1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for file 5.14. 4# 5# Report bugs to <christos@astron.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 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. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: christos@astron.com about your system, including any 271$0: error possibly output before this message. Then install 272$0: a modern shell, or manually run the script under such a 273$0: shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560 561# Check that we are running under the correct shell. 562SHELL=${CONFIG_SHELL-/bin/sh} 563 564case X$lt_ECHO in 565X*--fallback-echo) 566 # Remove one level of quotation (which was required for Make). 567 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 568 ;; 569esac 570 571ECHO=${lt_ECHO-echo} 572if test "X$1" = X--no-reexec; then 573 # Discard the --no-reexec flag, and continue. 574 shift 575elif test "X$1" = X--fallback-echo; then 576 # Avoid inline document here, it may be left over 577 : 578elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 579 # Yippee, $ECHO works! 580 : 581else 582 # Restart under the correct shell. 583 exec $SHELL "$0" --no-reexec ${1+"$@"} 584fi 585 586if test "X$1" = X--fallback-echo; then 587 # used as fallback echo 588 shift 589 cat <<_LT_EOF 590$* 591_LT_EOF 592 exit 0 593fi 594 595# The HP-UX ksh and POSIX shell print the target directory to stdout 596# if CDPATH is set. 597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 598 599if test -z "$lt_ECHO"; then 600 if test "X${echo_test_string+set}" != Xset; then 601 # find a string as large as possible, as long as the shell can cope with it 602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 604 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 605 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 606 then 607 break 608 fi 609 done 610 fi 611 612 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 613 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 614 test "X$echo_testing_string" = "X$echo_test_string"; then 615 : 616 else 617 # The Solaris, AIX, and Digital Unix default echo programs unquote 618 # backslashes. This makes it impossible to quote backslashes using 619 # echo "$something" | sed 's/\\/\\\\/g' 620 # 621 # So, first we look for a working echo in the user's PATH. 622 623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 624 for dir in $PATH /usr/ucb; do 625 IFS="$lt_save_ifs" 626 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 627 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 ECHO="$dir/echo" 631 break 632 fi 633 done 634 IFS="$lt_save_ifs" 635 636 if test "X$ECHO" = Xecho; then 637 # We didn't find a better echo, so look for alternatives. 638 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 639 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 # This shell has a builtin print -r that does the trick. 642 ECHO='print -r' 643 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 644 test "X$CONFIG_SHELL" != X/bin/ksh; then 645 # If we have ksh, try running configure again with it. 646 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 647 export ORIGINAL_CONFIG_SHELL 648 CONFIG_SHELL=/bin/ksh 649 export CONFIG_SHELL 650 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 651 else 652 # Try using printf. 653 ECHO='printf %s\n' 654 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # Cool, printf works 658 : 659 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 660 test "X$echo_testing_string" = 'X\t' && 661 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 662 test "X$echo_testing_string" = "X$echo_test_string"; then 663 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 664 export CONFIG_SHELL 665 SHELL="$CONFIG_SHELL" 666 export SHELL 667 ECHO="$CONFIG_SHELL $0 --fallback-echo" 668 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 669 test "X$echo_testing_string" = 'X\t' && 670 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 671 test "X$echo_testing_string" = "X$echo_test_string"; then 672 ECHO="$CONFIG_SHELL $0 --fallback-echo" 673 else 674 # maybe with a smaller string... 675 prev=: 676 677 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 678 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 679 then 680 break 681 fi 682 prev="$cmd" 683 done 684 685 if test "$prev" != 'sed 50q "$0"'; then 686 echo_test_string=`eval $prev` 687 export echo_test_string 688 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 689 else 690 # Oops. We lost completely, so just stick with echo. 691 ECHO=echo 692 fi 693 fi 694 fi 695 fi 696 fi 697fi 698 699# Copy echo and quote the copy suitably for passing to libtool from 700# the Makefile, instead of quoting the original, which is used later. 701lt_ECHO=$ECHO 702if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 703 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 704fi 705 706 707 708 709test -n "$DJDIR" || exec 7<&0 </dev/null 710exec 6>&1 711 712# Name of the host. 713# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 714# so uname gets run too. 715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 716 717# 718# Initializations. 719# 720ac_default_prefix=/usr/local 721ac_clean_files= 722ac_config_libobj_dir=. 723LIBOBJS= 724cross_compiling=no 725subdirs= 726MFLAGS= 727MAKEFLAGS= 728 729# Identity of this package. 730PACKAGE_NAME='file' 731PACKAGE_TARNAME='file' 732PACKAGE_VERSION='5.14' 733PACKAGE_STRING='file 5.14' 734PACKAGE_BUGREPORT='christos@astron.com' 735PACKAGE_URL='' 736 737# Factoring default headers for most tests. 738ac_includes_default="\ 739#include <stdio.h> 740#ifdef HAVE_SYS_TYPES_H 741# include <sys/types.h> 742#endif 743#ifdef HAVE_SYS_STAT_H 744# include <sys/stat.h> 745#endif 746#ifdef STDC_HEADERS 747# include <stdlib.h> 748# include <stddef.h> 749#else 750# ifdef HAVE_STDLIB_H 751# include <stdlib.h> 752# endif 753#endif 754#ifdef HAVE_STRING_H 755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 756# include <memory.h> 757# endif 758# include <string.h> 759#endif 760#ifdef HAVE_STRINGS_H 761# include <strings.h> 762#endif 763#ifdef HAVE_INTTYPES_H 764# include <inttypes.h> 765#endif 766#ifdef HAVE_STDINT_H 767# include <stdint.h> 768#endif 769#ifdef HAVE_UNISTD_H 770# include <unistd.h> 771#endif" 772 773ac_header_list= 774ac_subst_vars='am__EXEEXT_FALSE 775am__EXEEXT_TRUE 776LTLIBOBJS 777IS_CROSS_COMPILE_FALSE 778IS_CROSS_COMPILE_TRUE 779LIBOBJS 780HAVE_VISIBILITY 781CFLAG_VISIBILITY 782OTOOL64 783OTOOL 784LIPO 785NMEDIT 786DSYMUTIL 787lt_ECHO 788RANLIB 789AR 790OBJDUMP 791NM 792ac_ct_DUMPBIN 793DUMPBIN 794LD 795FGREP 796SED 797LIBTOOL 798LN_S 799EGREP 800GREP 801CPP 802am__fastdepCC_FALSE 803am__fastdepCC_TRUE 804CCDEPMODE 805am__nodep 806AMDEPBACKSLASH 807AMDEP_FALSE 808AMDEP_TRUE 809am__quote 810am__include 811DEPDIR 812OBJEXT 813EXEEXT 814ac_ct_CC 815CPPFLAGS 816LDFLAGS 817CFLAGS 818CC 819WARNINGS 820FSECT5_FALSE 821FSECT5_TRUE 822fsect 823pkgdatadir 824MINGW_FALSE 825MINGW_TRUE 826MINGW 827host_os 828host_vendor 829host_cpu 830host 831build_os 832build_vendor 833build_cpu 834build 835AM_BACKSLASH 836AM_DEFAULT_VERBOSITY 837AM_DEFAULT_V 838AM_V 839MAINT 840MAINTAINER_MODE_FALSE 841MAINTAINER_MODE_TRUE 842am__untar 843am__tar 844AMTAR 845am__leading_dot 846SET_MAKE 847AWK 848mkdir_p 849MKDIR_P 850INSTALL_STRIP_PROGRAM 851STRIP 852install_sh 853MAKEINFO 854AUTOHEADER 855AUTOMAKE 856AUTOCONF 857ACLOCAL 858VERSION 859PACKAGE 860CYGPATH_W 861am__isrc 862INSTALL_DATA 863INSTALL_SCRIPT 864INSTALL_PROGRAM 865target_alias 866host_alias 867build_alias 868LIBS 869ECHO_T 870ECHO_N 871ECHO_C 872DEFS 873mandir 874localedir 875libdir 876psdir 877pdfdir 878dvidir 879htmldir 880infodir 881docdir 882oldincludedir 883includedir 884localstatedir 885sharedstatedir 886sysconfdir 887datadir 888datarootdir 889libexecdir 890sbindir 891bindir 892program_transform_name 893prefix 894exec_prefix 895PACKAGE_URL 896PACKAGE_BUGREPORT 897PACKAGE_STRING 898PACKAGE_VERSION 899PACKAGE_TARNAME 900PACKAGE_NAME 901PATH_SEPARATOR 902SHELL' 903ac_subst_files='' 904ac_user_opts=' 905enable_option_checking 906enable_maintainer_mode 907enable_silent_rules 908enable_elf 909enable_elf_core 910enable_fsect_man5 911enable_dependency_tracking 912enable_static 913with_pic 914enable_shared 915enable_fast_install 916with_gnu_ld 917enable_libtool_lock 918enable_largefile 919enable_warnings 920' 921 ac_precious_vars='build_alias 922host_alias 923target_alias 924CC 925CFLAGS 926LDFLAGS 927LIBS 928CPPFLAGS 929CPP' 930 931 932# Initialize some variables set by options. 933ac_init_help= 934ac_init_version=false 935ac_unrecognized_opts= 936ac_unrecognized_sep= 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968includedir='${prefix}/include' 969oldincludedir='/usr/include' 970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 971infodir='${datarootdir}/info' 972htmldir='${docdir}' 973dvidir='${docdir}' 974pdfdir='${docdir}' 975psdir='${docdir}' 976libdir='${exec_prefix}/lib' 977localedir='${datarootdir}/locale' 978mandir='${datarootdir}/man' 979 980ac_prev= 981ac_dashdash= 982for ac_option 983do 984 # If the previous option needs an argument, assign it. 985 if test -n "$ac_prev"; then 986 eval $ac_prev=\$ac_option 987 ac_prev= 988 continue 989 fi 990 991 case $ac_option in 992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 993 *=) ac_optarg= ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 as_fn_error $? "invalid feature name: $ac_useropt" 1040 ac_useropt_orig=$ac_useropt 1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1042 case $ac_user_opts in 1043 *" 1044"enable_$ac_useropt" 1045"*) ;; 1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1047 ac_unrecognized_sep=', ';; 1048 esac 1049 eval enable_$ac_useropt=no ;; 1050 1051 -docdir | --docdir | --docdi | --doc | --do) 1052 ac_prev=docdir ;; 1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1054 docdir=$ac_optarg ;; 1055 1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1057 ac_prev=dvidir ;; 1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1059 dvidir=$ac_optarg ;; 1060 1061 -enable-* | --enable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid feature name: $ac_useropt" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1221 ac_prev=sbindir ;; 1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1223 | --sbi=* | --sb=*) 1224 sbindir=$ac_optarg ;; 1225 1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1228 | --sharedst | --shareds | --shared | --share | --shar \ 1229 | --sha | --sh) 1230 ac_prev=sharedstatedir ;; 1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1234 | --sha=* | --sh=*) 1235 sharedstatedir=$ac_optarg ;; 1236 1237 -site | --site | --sit) 1238 ac_prev=site ;; 1239 -site=* | --site=* | --sit=*) 1240 site=$ac_optarg ;; 1241 1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1243 ac_prev=srcdir ;; 1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1245 srcdir=$ac_optarg ;; 1246 1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1248 | --syscon | --sysco | --sysc | --sys | --sy) 1249 ac_prev=sysconfdir ;; 1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1252 sysconfdir=$ac_optarg ;; 1253 1254 -target | --target | --targe | --targ | --tar | --ta | --t) 1255 ac_prev=target_alias ;; 1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1257 target_alias=$ac_optarg ;; 1258 1259 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1260 verbose=yes ;; 1261 1262 -version | --version | --versio | --versi | --vers | -V) 1263 ac_init_version=: ;; 1264 1265 -with-* | --with-*) 1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1269 as_fn_error $? "invalid package name: $ac_useropt" 1270 ac_useropt_orig=$ac_useropt 1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1272 case $ac_user_opts in 1273 *" 1274"with_$ac_useropt" 1275"*) ;; 1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1277 ac_unrecognized_sep=', ';; 1278 esac 1279 eval with_$ac_useropt=\$ac_optarg ;; 1280 1281 -without-* | --without-*) 1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1283 # Reject names that are not valid shell variable names. 1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1285 as_fn_error $? "invalid package name: $ac_useropt" 1286 ac_useropt_orig=$ac_useropt 1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1288 case $ac_user_opts in 1289 *" 1290"with_$ac_useropt" 1291"*) ;; 1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1293 ac_unrecognized_sep=', ';; 1294 esac 1295 eval with_$ac_useropt=no ;; 1296 1297 --x) 1298 # Obsolete; use --with-x. 1299 with_x=yes ;; 1300 1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1302 | --x-incl | --x-inc | --x-in | --x-i) 1303 ac_prev=x_includes ;; 1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1306 x_includes=$ac_optarg ;; 1307 1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1310 ac_prev=x_libraries ;; 1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1313 x_libraries=$ac_optarg ;; 1314 1315 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1316Try \`$0 --help' for more information" 1317 ;; 1318 1319 *=*) 1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1321 # Reject names that are not valid shell variable names. 1322 case $ac_envvar in #( 1323 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1325 esac 1326 eval $ac_envvar=\$ac_optarg 1327 export $ac_envvar ;; 1328 1329 *) 1330 # FIXME: should be removed in autoconf 3.0. 1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1335 ;; 1336 1337 esac 1338done 1339 1340if test -n "$ac_prev"; then 1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1342 as_fn_error $? "missing argument to $ac_option" 1343fi 1344 1345if test -n "$ac_unrecognized_opts"; then 1346 case $enable_option_checking in 1347 no) ;; 1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1350 esac 1351fi 1352 1353# Check all directory arguments for consistency. 1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1355 datadir sysconfdir sharedstatedir localstatedir includedir \ 1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1357 libdir localedir mandir 1358do 1359 eval ac_val=\$$ac_var 1360 # Remove trailing slashes. 1361 case $ac_val in 1362 */ ) 1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1364 eval $ac_var=\$ac_val;; 1365 esac 1366 # Be sure to have absolute directory names. 1367 case $ac_val in 1368 [\\/$]* | ?:[\\/]* ) continue;; 1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1370 esac 1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1372done 1373 1374# There might be people who depend on the old broken behavior: `$host' 1375# used to hold the argument of --host etc. 1376# FIXME: To remove some day. 1377build=$build_alias 1378host=$host_alias 1379target=$target_alias 1380 1381# FIXME: To remove some day. 1382if test "x$host_alias" != x; then 1383 if test "x$build_alias" = x; then 1384 cross_compiling=maybe 1385 elif test "x$build_alias" != "x$host_alias"; then 1386 cross_compiling=yes 1387 fi 1388fi 1389 1390ac_tool_prefix= 1391test -n "$host_alias" && ac_tool_prefix=$host_alias- 1392 1393test "$silent" = yes && exec 6>/dev/null 1394 1395 1396ac_pwd=`pwd` && test -n "$ac_pwd" && 1397ac_ls_di=`ls -di .` && 1398ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1399 as_fn_error $? "working directory cannot be determined" 1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1401 as_fn_error $? "pwd does not report name of working directory" 1402 1403 1404# Find the source files, if location was not specified. 1405if test -z "$srcdir"; then 1406 ac_srcdir_defaulted=yes 1407 # Try the directory containing this script, then the parent directory. 1408 ac_confdir=`$as_dirname -- "$as_myself" || 1409$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1410 X"$as_myself" : 'X\(//\)[^/]' \| \ 1411 X"$as_myself" : 'X\(//\)$' \| \ 1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1413$as_echo X"$as_myself" | 1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1415 s//\1/ 1416 q 1417 } 1418 /^X\(\/\/\)[^/].*/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\/\)$/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\).*/{ 1427 s//\1/ 1428 q 1429 } 1430 s/.*/./; q'` 1431 srcdir=$ac_confdir 1432 if test ! -r "$srcdir/$ac_unique_file"; then 1433 srcdir=.. 1434 fi 1435else 1436 ac_srcdir_defaulted=no 1437fi 1438if test ! -r "$srcdir/$ac_unique_file"; then 1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1441fi 1442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1443ac_abs_confdir=`( 1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1445 pwd)` 1446# When building in place, set srcdir=. 1447if test "$ac_abs_confdir" = "$ac_pwd"; then 1448 srcdir=. 1449fi 1450# Remove unnecessary trailing slashes from srcdir. 1451# Double slashes in file names in object file debugging info 1452# mess up M-x gdb in Emacs. 1453case $srcdir in 1454*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1455esac 1456for ac_var in $ac_precious_vars; do 1457 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1458 eval ac_env_${ac_var}_value=\$${ac_var} 1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1460 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1461done 1462 1463# 1464# Report the --help message. 1465# 1466if test "$ac_init_help" = "long"; then 1467 # Omit some internal or obsolete options to make the list less imposing. 1468 # This message is too long to be a string in the A/UX 3.1 sh. 1469 cat <<_ACEOF 1470\`configure' configures file 5.14 to adapt to many kinds of systems. 1471 1472Usage: $0 [OPTION]... [VAR=VALUE]... 1473 1474To assign environment variables (e.g., CC, CFLAGS...), specify them as 1475VAR=VALUE. See below for descriptions of some of the useful variables. 1476 1477Defaults for the options are specified in brackets. 1478 1479Configuration: 1480 -h, --help display this help and exit 1481 --help=short display options specific to this package 1482 --help=recursive display the short help of all the included packages 1483 -V, --version display version information and exit 1484 -q, --quiet, --silent do not print \`checking ...' messages 1485 --cache-file=FILE cache test results in FILE [disabled] 1486 -C, --config-cache alias for \`--cache-file=config.cache' 1487 -n, --no-create do not create output files 1488 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1489 1490Installation directories: 1491 --prefix=PREFIX install architecture-independent files in PREFIX 1492 [$ac_default_prefix] 1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1494 [PREFIX] 1495 1496By default, \`make install' will install all the files in 1497\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1498an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1499for instance \`--prefix=\$HOME'. 1500 1501For better control, use the options below. 1502 1503Fine tuning of the installation directories: 1504 --bindir=DIR user executables [EPREFIX/bin] 1505 --sbindir=DIR system admin executables [EPREFIX/sbin] 1506 --libexecdir=DIR program executables [EPREFIX/libexec] 1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1510 --libdir=DIR object code libraries [EPREFIX/lib] 1511 --includedir=DIR C header files [PREFIX/include] 1512 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1515 --infodir=DIR info documentation [DATAROOTDIR/info] 1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1517 --mandir=DIR man documentation [DATAROOTDIR/man] 1518 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1519 --htmldir=DIR html documentation [DOCDIR] 1520 --dvidir=DIR dvi documentation [DOCDIR] 1521 --pdfdir=DIR pdf documentation [DOCDIR] 1522 --psdir=DIR ps documentation [DOCDIR] 1523_ACEOF 1524 1525 cat <<\_ACEOF 1526 1527Program names: 1528 --program-prefix=PREFIX prepend PREFIX to installed program names 1529 --program-suffix=SUFFIX append SUFFIX to installed program names 1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1531 1532System types: 1533 --build=BUILD configure for building on BUILD [guessed] 1534 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1535_ACEOF 1536fi 1537 1538if test -n "$ac_init_help"; then 1539 case $ac_init_help in 1540 short | recursive ) echo "Configuration of file 5.14:";; 1541 esac 1542 cat <<\_ACEOF 1543 1544Optional Features: 1545 --disable-option-checking ignore unrecognized --enable/--with options 1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1548 --enable-maintainer-mode 1549 enable make rules and dependencies not useful (and 1550 sometimes confusing) to the casual installer 1551 --enable-silent-rules less verbose build output (undo: "make V=1") 1552 --disable-silent-rules verbose build output (undo: "make V=0") 1553 --disable-elf disable builtin ELF support 1554 --disable-elf-core disable ELF core file support 1555 --enable-fsect-man5 enable file formats in man section 5 1556 --enable-dependency-tracking 1557 do not reject slow dependency extractors 1558 --disable-dependency-tracking 1559 speeds up one-time build 1560 --enable-static[=PKGS] build static libraries [default=no] 1561 --enable-shared[=PKGS] build shared libraries [default=yes] 1562 --enable-fast-install[=PKGS] 1563 optimize for fast installation [default=yes] 1564 --disable-libtool-lock avoid locking (might break parallel builds) 1565 --disable-largefile omit support for large files 1566 --disable-warnings disable compiler warnings 1567 1568Optional Packages: 1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1571 --with-pic try to use only PIC/non-PIC objects [default=use 1572 both] 1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1574 1575Some influential environment variables: 1576 CC C compiler command 1577 CFLAGS C compiler flags 1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1579 nonstandard directory <lib dir> 1580 LIBS libraries to pass to the linker, e.g. -l<library> 1581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1582 you have headers in a nonstandard directory <include dir> 1583 CPP C preprocessor 1584 1585Use these variables to override the choices made by `configure' or to help 1586it to find libraries and programs with nonstandard names/locations. 1587 1588Report bugs to <christos@astron.com>. 1589_ACEOF 1590ac_status=$? 1591fi 1592 1593if test "$ac_init_help" = "recursive"; then 1594 # If there are subdirs, report their specific --help. 1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1596 test -d "$ac_dir" || 1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1598 continue 1599 ac_builddir=. 1600 1601case "$ac_dir" in 1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1603*) 1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1605 # A ".." for each directory in $ac_dir_suffix. 1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1607 case $ac_top_builddir_sub in 1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1610 esac ;; 1611esac 1612ac_abs_top_builddir=$ac_pwd 1613ac_abs_builddir=$ac_pwd$ac_dir_suffix 1614# for backward compatibility: 1615ac_top_builddir=$ac_top_build_prefix 1616 1617case $srcdir in 1618 .) # We are building in place. 1619 ac_srcdir=. 1620 ac_top_srcdir=$ac_top_builddir_sub 1621 ac_abs_top_srcdir=$ac_pwd ;; 1622 [\\/]* | ?:[\\/]* ) # Absolute name. 1623 ac_srcdir=$srcdir$ac_dir_suffix; 1624 ac_top_srcdir=$srcdir 1625 ac_abs_top_srcdir=$srcdir ;; 1626 *) # Relative name. 1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1628 ac_top_srcdir=$ac_top_build_prefix$srcdir 1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1630esac 1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1632 1633 cd "$ac_dir" || { ac_status=$?; continue; } 1634 # Check for guested configure. 1635 if test -f "$ac_srcdir/configure.gnu"; then 1636 echo && 1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1638 elif test -f "$ac_srcdir/configure"; then 1639 echo && 1640 $SHELL "$ac_srcdir/configure" --help=recursive 1641 else 1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1643 fi || ac_status=$? 1644 cd "$ac_pwd" || { ac_status=$?; break; } 1645 done 1646fi 1647 1648test -n "$ac_init_help" && exit $ac_status 1649if $ac_init_version; then 1650 cat <<\_ACEOF 1651file configure 5.14 1652generated by GNU Autoconf 2.69 1653 1654Copyright (C) 2012 Free Software Foundation, Inc. 1655This configure script is free software; the Free Software Foundation 1656gives unlimited permission to copy, distribute and modify it. 1657_ACEOF 1658 exit 1659fi 1660 1661## ------------------------ ## 1662## Autoconf initialization. ## 1663## ------------------------ ## 1664 1665# ac_fn_c_try_compile LINENO 1666# -------------------------- 1667# Try to compile conftest.$ac_ext, and return whether this succeeded. 1668ac_fn_c_try_compile () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 rm -f conftest.$ac_objext 1672 if { { ac_try="$ac_compile" 1673case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678$as_echo "$ac_try_echo"; } >&5 1679 (eval "$ac_compile") 2>conftest.err 1680 ac_status=$? 1681 if test -s conftest.err; then 1682 grep -v '^ *+' conftest.err >conftest.er1 1683 cat conftest.er1 >&5 1684 mv -f conftest.er1 conftest.err 1685 fi 1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; } && { 1688 test -z "$ac_c_werror_flag" || 1689 test ! -s conftest.err 1690 } && test -s conftest.$ac_objext; then : 1691 ac_retval=0 1692else 1693 $as_echo "$as_me: failed program was:" >&5 1694sed 's/^/| /' conftest.$ac_ext >&5 1695 1696 ac_retval=1 1697fi 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 as_fn_set_status $ac_retval 1700 1701} # ac_fn_c_try_compile 1702 1703# ac_fn_c_try_cpp LINENO 1704# ---------------------- 1705# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1706ac_fn_c_try_cpp () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 if { { ac_try="$ac_cpp conftest.$ac_ext" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } > conftest.i && { 1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 }; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=1 1734fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_cpp 1739 1740# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1741# ------------------------------------------------------- 1742# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1743# the include files in INCLUDES and setting the cache variable VAR 1744# accordingly. 1745ac_fn_c_check_header_mongrel () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 if eval \${$3+:} false; then : 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750$as_echo_n "checking for $2... " >&6; } 1751if eval \${$3+:} false; then : 1752 $as_echo_n "(cached) " >&6 1753fi 1754eval ac_res=\$$3 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1756$as_echo "$ac_res" >&6; } 1757else 1758 # Is the header compilable? 1759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1760$as_echo_n "checking $2 usability... " >&6; } 1761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762/* end confdefs.h. */ 1763$4 1764#include <$2> 1765_ACEOF 1766if ac_fn_c_try_compile "$LINENO"; then : 1767 ac_header_compiler=yes 1768else 1769 ac_header_compiler=no 1770fi 1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1773$as_echo "$ac_header_compiler" >&6; } 1774 1775# Is the header present? 1776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1777$as_echo_n "checking $2 presence... " >&6; } 1778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780#include <$2> 1781_ACEOF 1782if ac_fn_c_try_cpp "$LINENO"; then : 1783 ac_header_preproc=yes 1784else 1785 ac_header_preproc=no 1786fi 1787rm -f conftest.err conftest.i conftest.$ac_ext 1788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1789$as_echo "$ac_header_preproc" >&6; } 1790 1791# So? What about this header? 1792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1793 yes:no: ) 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1795$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1797$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1798 ;; 1799 no:yes:* ) 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1801$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1803$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1805$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1807$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1810( $as_echo "## ---------------------------------- ## 1811## Report this to christos@astron.com ## 1812## ---------------------------------- ##" 1813 ) | sed "s/^/$as_me: WARNING: /" >&2 1814 ;; 1815esac 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817$as_echo_n "checking for $2... " >&6; } 1818if eval \${$3+:} false; then : 1819 $as_echo_n "(cached) " >&6 1820else 1821 eval "$3=\$ac_header_compiler" 1822fi 1823eval ac_res=\$$3 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825$as_echo "$ac_res" >&6; } 1826fi 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_header_mongrel 1830 1831# ac_fn_c_try_run LINENO 1832# ---------------------- 1833# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1834# that executables *can* be run. 1835ac_fn_c_try_run () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 if { { ac_try="$ac_link" 1839case "(($ac_try" in 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1841 *) ac_try_echo=$ac_try;; 1842esac 1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1844$as_echo "$ac_try_echo"; } >&5 1845 (eval "$ac_link") 2>&5 1846 ac_status=$? 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1849 { { case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_try") 2>&5 1856 ac_status=$? 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; }; }; then : 1859 ac_retval=0 1860else 1861 $as_echo "$as_me: program exited with status $ac_status" >&5 1862 $as_echo "$as_me: failed program was:" >&5 1863sed 's/^/| /' conftest.$ac_ext >&5 1864 1865 ac_retval=$ac_status 1866fi 1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 as_fn_set_status $ac_retval 1870 1871} # ac_fn_c_try_run 1872 1873# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1874# ------------------------------------------------------- 1875# Tests whether HEADER exists and can be compiled using the include files in 1876# INCLUDES, setting the cache variable VAR accordingly. 1877ac_fn_c_check_header_compile () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1881$as_echo_n "checking for $2... " >&6; } 1882if eval \${$3+:} false; then : 1883 $as_echo_n "(cached) " >&6 1884else 1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887$4 1888#include <$2> 1889_ACEOF 1890if ac_fn_c_try_compile "$LINENO"; then : 1891 eval "$3=yes" 1892else 1893 eval "$3=no" 1894fi 1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1901 1902} # ac_fn_c_check_header_compile 1903 1904# ac_fn_c_try_link LINENO 1905# ----------------------- 1906# Try to link conftest.$ac_ext, and return whether this succeeded. 1907ac_fn_c_try_link () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 rm -f conftest.$ac_objext conftest$ac_exeext 1911 if { { ac_try="$ac_link" 1912case "(($ac_try" in 1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1914 *) ac_try_echo=$ac_try;; 1915esac 1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1917$as_echo "$ac_try_echo"; } >&5 1918 (eval "$ac_link") 2>conftest.err 1919 ac_status=$? 1920 if test -s conftest.err; then 1921 grep -v '^ *+' conftest.err >conftest.er1 1922 cat conftest.er1 >&5 1923 mv -f conftest.er1 conftest.err 1924 fi 1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1926 test $ac_status = 0; } && { 1927 test -z "$ac_c_werror_flag" || 1928 test ! -s conftest.err 1929 } && test -s conftest$ac_exeext && { 1930 test "$cross_compiling" = yes || 1931 test -x conftest$ac_exeext 1932 }; then : 1933 ac_retval=0 1934else 1935 $as_echo "$as_me: failed program was:" >&5 1936sed 's/^/| /' conftest.$ac_ext >&5 1937 1938 ac_retval=1 1939fi 1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1942 # interfere with the next link command; also delete a directory that is 1943 # left behind by Apple's compiler. We do this before executing the actions. 1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948} # ac_fn_c_try_link 1949 1950# ac_fn_c_check_func LINENO FUNC VAR 1951# ---------------------------------- 1952# Tests whether FUNC exists, setting the cache variable VAR accordingly 1953ac_fn_c_check_func () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960else 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1965#define $2 innocuous_$2 1966 1967/* System header to define __stub macros and hopefully few prototypes, 1968 which can conflict with char $2 (); below. 1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1970 <limits.h> exists even on freestanding compilers. */ 1971 1972#ifdef __STDC__ 1973# include <limits.h> 1974#else 1975# include <assert.h> 1976#endif 1977 1978#undef $2 1979 1980/* Override any GCC internal prototype to avoid an error. 1981 Use char because int might match the return type of a GCC 1982 builtin and then its argument prototype would still apply. */ 1983#ifdef __cplusplus 1984extern "C" 1985#endif 1986char $2 (); 1987/* The GNU C library defines this for functions which it implements 1988 to always fail with ENOSYS. Some functions are actually named 1989 something starting with __ and the normal name is an alias. */ 1990#if defined __stub_$2 || defined __stub___$2 1991choke me 1992#endif 1993 1994int 1995main () 1996{ 1997return $2 (); 1998 ; 1999 return 0; 2000} 2001_ACEOF 2002if ac_fn_c_try_link "$LINENO"; then : 2003 eval "$3=yes" 2004else 2005 eval "$3=no" 2006fi 2007rm -f core conftest.err conftest.$ac_objext \ 2008 conftest$ac_exeext conftest.$ac_ext 2009fi 2010eval ac_res=\$$3 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2012$as_echo "$ac_res" >&6; } 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015} # ac_fn_c_check_func 2016 2017# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2018# ------------------------------------------- 2019# Tests whether TYPE exists after having included INCLUDES, setting cache 2020# variable VAR accordingly. 2021ac_fn_c_check_type () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2025$as_echo_n "checking for $2... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028else 2029 eval "$3=no" 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033int 2034main () 2035{ 2036if (sizeof ($2)) 2037 return 0; 2038 ; 2039 return 0; 2040} 2041_ACEOF 2042if ac_fn_c_try_compile "$LINENO"; then : 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044/* end confdefs.h. */ 2045$4 2046int 2047main () 2048{ 2049if (sizeof (($2))) 2050 return 0; 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 2057else 2058 eval "$3=yes" 2059fi 2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061fi 2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2063fi 2064eval ac_res=\$$3 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2066$as_echo "$ac_res" >&6; } 2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 2069} # ac_fn_c_check_type 2070 2071# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2072# ---------------------------------------------------- 2073# Tries to find if the field MEMBER exists in type AGGR, after including 2074# INCLUDES, setting cache variable VAR accordingly. 2075ac_fn_c_check_member () 2076{ 2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2079$as_echo_n "checking for $2.$3... " >&6; } 2080if eval \${$4+:} false; then : 2081 $as_echo_n "(cached) " >&6 2082else 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084/* end confdefs.h. */ 2085$5 2086int 2087main () 2088{ 2089static $2 ac_aggr; 2090if (ac_aggr.$3) 2091return 0; 2092 ; 2093 return 0; 2094} 2095_ACEOF 2096if ac_fn_c_try_compile "$LINENO"; then : 2097 eval "$4=yes" 2098else 2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$5 2102int 2103main () 2104{ 2105static $2 ac_aggr; 2106if (sizeof ac_aggr.$3) 2107return 0; 2108 ; 2109 return 0; 2110} 2111_ACEOF 2112if ac_fn_c_try_compile "$LINENO"; then : 2113 eval "$4=yes" 2114else 2115 eval "$4=no" 2116fi 2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2118fi 2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2120fi 2121eval ac_res=\$$4 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2123$as_echo "$ac_res" >&6; } 2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2125 2126} # ac_fn_c_check_member 2127 2128# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2129# --------------------------------------------- 2130# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2131# accordingly. 2132ac_fn_c_check_decl () 2133{ 2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2135 as_decl_name=`echo $2|sed 's/ *(.*//'` 2136 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2138$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2139if eval \${$3+:} false; then : 2140 $as_echo_n "(cached) " >&6 2141else 2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2143/* end confdefs.h. */ 2144$4 2145int 2146main () 2147{ 2148#ifndef $as_decl_name 2149#ifdef __cplusplus 2150 (void) $as_decl_use; 2151#else 2152 (void) $as_decl_name; 2153#endif 2154#endif 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 eval "$3=yes" 2162else 2163 eval "$3=no" 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166fi 2167eval ac_res=\$$3 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2169$as_echo "$ac_res" >&6; } 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 2172} # ac_fn_c_check_decl 2173 2174# ac_fn_c_find_uintX_t LINENO BITS VAR 2175# ------------------------------------ 2176# Finds an unsigned integer type with width BITS, setting cache variable VAR 2177# accordingly. 2178ac_fn_c_find_uintX_t () 2179{ 2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2182$as_echo_n "checking for uint$2_t... " >&6; } 2183if eval \${$3+:} false; then : 2184 $as_echo_n "(cached) " >&6 2185else 2186 eval "$3=no" 2187 # Order is important - never check a type that is potentially smaller 2188 # than half of the expected target width. 2189 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2190 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$ac_includes_default 2194int 2195main () 2196{ 2197static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2198test_array [0] = 0; 2199return test_array [0]; 2200 2201 ; 2202 return 0; 2203} 2204_ACEOF 2205if ac_fn_c_try_compile "$LINENO"; then : 2206 case $ac_type in #( 2207 uint$2_t) : 2208 eval "$3=yes" ;; #( 2209 *) : 2210 eval "$3=\$ac_type" ;; 2211esac 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214 if eval test \"x\$"$3"\" = x"no"; then : 2215 2216else 2217 break 2218fi 2219 done 2220fi 2221eval ac_res=\$$3 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2223$as_echo "$ac_res" >&6; } 2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2225 2226} # ac_fn_c_find_uintX_t 2227 2228# ac_fn_c_find_intX_t LINENO BITS VAR 2229# ----------------------------------- 2230# Finds a signed integer type with width BITS, setting cache variable VAR 2231# accordingly. 2232ac_fn_c_find_intX_t () 2233{ 2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2236$as_echo_n "checking for int$2_t... " >&6; } 2237if eval \${$3+:} false; then : 2238 $as_echo_n "(cached) " >&6 2239else 2240 eval "$3=no" 2241 # Order is important - never check a type that is potentially smaller 2242 # than half of the expected target width. 2243 for ac_type in int$2_t 'int' 'long int' \ 2244 'long long int' 'short int' 'signed char'; do 2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2246/* end confdefs.h. */ 2247$ac_includes_default 2248 enum { N = $2 / 2 - 1 }; 2249int 2250main () 2251{ 2252static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2253test_array [0] = 0; 2254return test_array [0]; 2255 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_c_try_compile "$LINENO"; then : 2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2262/* end confdefs.h. */ 2263$ac_includes_default 2264 enum { N = $2 / 2 - 1 }; 2265int 2266main () 2267{ 2268static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2269 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2270test_array [0] = 0; 2271return test_array [0]; 2272 2273 ; 2274 return 0; 2275} 2276_ACEOF 2277if ac_fn_c_try_compile "$LINENO"; then : 2278 2279else 2280 case $ac_type in #( 2281 int$2_t) : 2282 eval "$3=yes" ;; #( 2283 *) : 2284 eval "$3=\$ac_type" ;; 2285esac 2286fi 2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2288fi 2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2290 if eval test \"x\$"$3"\" = x"no"; then : 2291 2292else 2293 break 2294fi 2295 done 2296fi 2297eval ac_res=\$$3 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2299$as_echo "$ac_res" >&6; } 2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2301 2302} # ac_fn_c_find_intX_t 2303cat >config.log <<_ACEOF 2304This file contains any messages produced by compilers while 2305running configure, to aid debugging if configure makes a mistake. 2306 2307It was created by file $as_me 5.14, which was 2308generated by GNU Autoconf 2.69. Invocation command line was 2309 2310 $ $0 $@ 2311 2312_ACEOF 2313exec 5>>config.log 2314{ 2315cat <<_ASUNAME 2316## --------- ## 2317## Platform. ## 2318## --------- ## 2319 2320hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2321uname -m = `(uname -m) 2>/dev/null || echo unknown` 2322uname -r = `(uname -r) 2>/dev/null || echo unknown` 2323uname -s = `(uname -s) 2>/dev/null || echo unknown` 2324uname -v = `(uname -v) 2>/dev/null || echo unknown` 2325 2326/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2327/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2328 2329/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2330/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2331/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2332/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2333/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2334/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2335/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2336 2337_ASUNAME 2338 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 $as_echo "PATH: $as_dir" 2345 done 2346IFS=$as_save_IFS 2347 2348} >&5 2349 2350cat >&5 <<_ACEOF 2351 2352 2353## ----------- ## 2354## Core tests. ## 2355## ----------- ## 2356 2357_ACEOF 2358 2359 2360# Keep a trace of the command line. 2361# Strip out --no-create and --no-recursion so they do not pile up. 2362# Strip out --silent because we don't want to record it for future runs. 2363# Also quote any args containing shell meta-characters. 2364# Make two passes to allow for proper duplicate-argument suppression. 2365ac_configure_args= 2366ac_configure_args0= 2367ac_configure_args1= 2368ac_must_keep_next=false 2369for ac_pass in 1 2 2370do 2371 for ac_arg 2372 do 2373 case $ac_arg in 2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2376 | -silent | --silent | --silen | --sile | --sil) 2377 continue ;; 2378 *\'*) 2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2380 esac 2381 case $ac_pass in 2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2383 2) 2384 as_fn_append ac_configure_args1 " '$ac_arg'" 2385 if test $ac_must_keep_next = true; then 2386 ac_must_keep_next=false # Got value, back to normal. 2387 else 2388 case $ac_arg in 2389 *=* | --config-cache | -C | -disable-* | --disable-* \ 2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2392 | -with-* | --with-* | -without-* | --without-* | --x) 2393 case "$ac_configure_args0 " in 2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2395 esac 2396 ;; 2397 -* ) ac_must_keep_next=true ;; 2398 esac 2399 fi 2400 as_fn_append ac_configure_args " '$ac_arg'" 2401 ;; 2402 esac 2403 done 2404done 2405{ ac_configure_args0=; unset ac_configure_args0;} 2406{ ac_configure_args1=; unset ac_configure_args1;} 2407 2408# When interrupted or exit'd, cleanup temporary files, and complete 2409# config.log. We remove comments because anyway the quotes in there 2410# would cause problems or look ugly. 2411# WARNING: Use '\'' to represent an apostrophe within the trap. 2412# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2413trap 'exit_status=$? 2414 # Save into config.log some information that might help in debugging. 2415 { 2416 echo 2417 2418 $as_echo "## ---------------- ## 2419## Cache variables. ## 2420## ---------------- ##" 2421 echo 2422 # The following way of writing the cache mishandles newlines in values, 2423( 2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2425 eval ac_val=\$$ac_var 2426 case $ac_val in #( 2427 *${as_nl}*) 2428 case $ac_var in #( 2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2431 esac 2432 case $ac_var in #( 2433 _ | IFS | as_nl) ;; #( 2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2435 *) { eval $ac_var=; unset $ac_var;} ;; 2436 esac ;; 2437 esac 2438 done 2439 (set) 2>&1 | 2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2441 *${as_nl}ac_space=\ *) 2442 sed -n \ 2443 "s/'\''/'\''\\\\'\'''\''/g; 2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2445 ;; #( 2446 *) 2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2448 ;; 2449 esac | 2450 sort 2451) 2452 echo 2453 2454 $as_echo "## ----------------- ## 2455## Output variables. ## 2456## ----------------- ##" 2457 echo 2458 for ac_var in $ac_subst_vars 2459 do 2460 eval ac_val=\$$ac_var 2461 case $ac_val in 2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2463 esac 2464 $as_echo "$ac_var='\''$ac_val'\''" 2465 done | sort 2466 echo 2467 2468 if test -n "$ac_subst_files"; then 2469 $as_echo "## ------------------- ## 2470## File substitutions. ## 2471## ------------------- ##" 2472 echo 2473 for ac_var in $ac_subst_files 2474 do 2475 eval ac_val=\$$ac_var 2476 case $ac_val in 2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2478 esac 2479 $as_echo "$ac_var='\''$ac_val'\''" 2480 done | sort 2481 echo 2482 fi 2483 2484 if test -s confdefs.h; then 2485 $as_echo "## ----------- ## 2486## confdefs.h. ## 2487## ----------- ##" 2488 echo 2489 cat confdefs.h 2490 echo 2491 fi 2492 test "$ac_signal" != 0 && 2493 $as_echo "$as_me: caught signal $ac_signal" 2494 $as_echo "$as_me: exit $exit_status" 2495 } >&5 2496 rm -f core *.core core.conftest.* && 2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2498 exit $exit_status 2499' 0 2500for ac_signal in 1 2 13 15; do 2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2502done 2503ac_signal=0 2504 2505# confdefs.h avoids OS command line length limits that DEFS can exceed. 2506rm -f -r conftest* confdefs.h 2507 2508$as_echo "/* confdefs.h */" > confdefs.h 2509 2510# Predefined preprocessor variables. 2511 2512cat >>confdefs.h <<_ACEOF 2513#define PACKAGE_NAME "$PACKAGE_NAME" 2514_ACEOF 2515 2516cat >>confdefs.h <<_ACEOF 2517#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2518_ACEOF 2519 2520cat >>confdefs.h <<_ACEOF 2521#define PACKAGE_VERSION "$PACKAGE_VERSION" 2522_ACEOF 2523 2524cat >>confdefs.h <<_ACEOF 2525#define PACKAGE_STRING "$PACKAGE_STRING" 2526_ACEOF 2527 2528cat >>confdefs.h <<_ACEOF 2529#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2530_ACEOF 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_URL "$PACKAGE_URL" 2534_ACEOF 2535 2536 2537# Let the site file select an alternate cache file if it wants to. 2538# Prefer an explicitly selected file to automatically selected ones. 2539ac_site_file1=NONE 2540ac_site_file2=NONE 2541if test -n "$CONFIG_SITE"; then 2542 # We do not want a PATH search for config.site. 2543 case $CONFIG_SITE in #(( 2544 -*) ac_site_file1=./$CONFIG_SITE;; 2545 */*) ac_site_file1=$CONFIG_SITE;; 2546 *) ac_site_file1=./$CONFIG_SITE;; 2547 esac 2548elif test "x$prefix" != xNONE; then 2549 ac_site_file1=$prefix/share/config.site 2550 ac_site_file2=$prefix/etc/config.site 2551else 2552 ac_site_file1=$ac_default_prefix/share/config.site 2553 ac_site_file2=$ac_default_prefix/etc/config.site 2554fi 2555for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2556do 2557 test "x$ac_site_file" = xNONE && continue 2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2560$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2561 sed 's/^/| /' "$ac_site_file" >&5 2562 . "$ac_site_file" \ 2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2565as_fn_error $? "failed to load site script $ac_site_file 2566See \`config.log' for more details" "$LINENO" 5; } 2567 fi 2568done 2569 2570if test -r "$cache_file"; then 2571 # Some versions of bash will fail to source /dev/null (special files 2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2575$as_echo "$as_me: loading cache $cache_file" >&6;} 2576 case $cache_file in 2577 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2578 *) . "./$cache_file";; 2579 esac 2580 fi 2581else 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2583$as_echo "$as_me: creating cache $cache_file" >&6;} 2584 >$cache_file 2585fi 2586 2587as_fn_append ac_header_list " stdlib.h" 2588as_fn_append ac_header_list " unistd.h" 2589as_fn_append ac_header_list " sys/param.h" 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.12' 2659 2660ac_aux_dir= 2661for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2662 if test -f "$ac_dir/install-sh"; then 2663 ac_aux_dir=$ac_dir 2664 ac_install_sh="$ac_aux_dir/install-sh -c" 2665 break 2666 elif test -f "$ac_dir/install.sh"; then 2667 ac_aux_dir=$ac_dir 2668 ac_install_sh="$ac_aux_dir/install.sh -c" 2669 break 2670 elif test -f "$ac_dir/shtool"; then 2671 ac_aux_dir=$ac_dir 2672 ac_install_sh="$ac_aux_dir/shtool install -c" 2673 break 2674 fi 2675done 2676if test -z "$ac_aux_dir"; then 2677 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2678fi 2679 2680# These three variables are undocumented and unsupported, 2681# and are intended to be withdrawn in a future Autoconf release. 2682# They can cause serious problems if a builder's source tree is in a directory 2683# whose full name contains unusual characters. 2684ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2685ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2686ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2687 2688 2689# Find a good install program. We prefer a C program (faster), 2690# so one script is as good as another. But avoid the broken or 2691# incompatible versions: 2692# SysV /etc/install, /usr/sbin/install 2693# SunOS /usr/etc/install 2694# IRIX /sbin/install 2695# AIX /bin/install 2696# AmigaOS /C/install, which installs bootblocks on floppy discs 2697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2698# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2700# OS/2's system install, which has a completely different semantic 2701# ./install, which can be erroneously created by make from ./install.sh. 2702# Reject install programs that cannot install multiple files. 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2704$as_echo_n "checking for a BSD-compatible install... " >&6; } 2705if test -z "$INSTALL"; then 2706if ${ac_cv_path_install+:} false; then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 # Account for people who put trailing slashes in PATH elements. 2715case $as_dir/ in #(( 2716 ./ | .// | /[cC]/* | \ 2717 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2718 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2719 /usr/ucb/* ) ;; 2720 *) 2721 # OSF1 and SCO ODT 3.0 have their own names for install. 2722 # Don't use installbsd from OSF since it installs stuff as root 2723 # by default. 2724 for ac_prog in ginstall scoinst install; do 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2727 if test $ac_prog = install && 2728 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2729 # AIX install. It has an incompatible calling convention. 2730 : 2731 elif test $ac_prog = install && 2732 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2733 # program-specific install script used by HP pwplus--don't use. 2734 : 2735 else 2736 rm -rf conftest.one conftest.two conftest.dir 2737 echo one > conftest.one 2738 echo two > conftest.two 2739 mkdir conftest.dir 2740 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2741 test -s conftest.one && test -s conftest.two && 2742 test -s conftest.dir/conftest.one && 2743 test -s conftest.dir/conftest.two 2744 then 2745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2746 break 3 2747 fi 2748 fi 2749 fi 2750 done 2751 done 2752 ;; 2753esac 2754 2755 done 2756IFS=$as_save_IFS 2757 2758rm -rf conftest.one conftest.two conftest.dir 2759 2760fi 2761 if test "${ac_cv_path_install+set}" = set; then 2762 INSTALL=$ac_cv_path_install 2763 else 2764 # As a last resort, use the slow shell script. Don't cache a 2765 # value for INSTALL within a source directory, because that will 2766 # break other packages using the cache if that directory is 2767 # removed, or if the value is a relative name. 2768 INSTALL=$ac_install_sh 2769 fi 2770fi 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2772$as_echo "$INSTALL" >&6; } 2773 2774# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2775# It thinks the first close brace ends the variable substitution. 2776test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2777 2778test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2779 2780test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2781 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2783$as_echo_n "checking whether build environment is sane... " >&6; } 2784# Reject unsafe characters in $srcdir or the absolute working directory 2785# name. Accept space and tab only in the latter. 2786am_lf=' 2787' 2788case `pwd` in 2789 *[\\\"\#\$\&\'\`$am_lf]*) 2790 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2791esac 2792case $srcdir in 2793 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2794 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2795esac 2796 2797# Do 'set' in a subshell so we don't clobber the current shell's 2798# arguments. Must try -L first in case configure is actually a 2799# symlink; some systems play weird games with the mod time of symlinks 2800# (eg FreeBSD returns the mod time of the symlink's containing 2801# directory). 2802if ( 2803 am_has_slept=no 2804 for am_try in 1 2; do 2805 echo "timestamp, slept: $am_has_slept" > conftest.file 2806 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2807 if test "$*" = "X"; then 2808 # -L didn't work. 2809 set X `ls -t "$srcdir/configure" conftest.file` 2810 fi 2811 if test "$*" != "X $srcdir/configure conftest.file" \ 2812 && test "$*" != "X conftest.file $srcdir/configure"; then 2813 2814 # If neither matched, then we have a broken ls. This can happen 2815 # if, for instance, CONFIG_SHELL is bash and it inherits a 2816 # broken ls alias from the environment. This has actually 2817 # happened. Such a system could not be considered "sane". 2818 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2819 alias in your environment" "$LINENO" 5 2820 fi 2821 if test "$2" = conftest.file || test $am_try -eq 2; then 2822 break 2823 fi 2824 # Just in case. 2825 sleep 1 2826 am_has_slept=yes 2827 done 2828 test "$2" = conftest.file 2829 ) 2830then 2831 # Ok. 2832 : 2833else 2834 as_fn_error $? "newly created file is older than distributed files! 2835Check your system clock" "$LINENO" 5 2836fi 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2838$as_echo "yes" >&6; } 2839# If we didn't sleep, we still need to ensure time stamps of config.status and 2840# generated files are strictly newer. 2841am_sleep_pid= 2842if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2843 ( sleep 1 ) & 2844 am_sleep_pid=$! 2845fi 2846 2847rm -f conftest.file 2848 2849test "$program_prefix" != NONE && 2850 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2851# Use a double $ so make ignores it. 2852test "$program_suffix" != NONE && 2853 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2854# Double any \ or $. 2855# By default was `s,x,x', remove it if useless. 2856ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2857program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2858 2859# expand $ac_aux_dir to an absolute path 2860am_aux_dir=`cd $ac_aux_dir && pwd` 2861 2862if test x"${MISSING+set}" != xset; then 2863 case $am_aux_dir in 2864 *\ * | *\ *) 2865 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2866 *) 2867 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2868 esac 2869fi 2870# Use eval to expand $SHELL 2871if eval "$MISSING --run true"; then 2872 am_missing_run="$MISSING --run " 2873else 2874 am_missing_run= 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2876$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2877fi 2878 2879if test x"${install_sh}" != xset; then 2880 case $am_aux_dir in 2881 *\ * | *\ *) 2882 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2883 *) 2884 install_sh="\${SHELL} $am_aux_dir/install-sh" 2885 esac 2886fi 2887 2888# Installed binaries are usually stripped using 'strip' when the user 2889# run "make install-strip". However 'strip' might not be the right 2890# tool to use in cross-compilation environments, therefore Automake 2891# will honor the 'STRIP' environment variable to overrule this program. 2892if test "$cross_compiling" != no; then 2893 if test -n "$ac_tool_prefix"; then 2894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2895set dummy ${ac_tool_prefix}strip; ac_word=$2 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897$as_echo_n "checking for $ac_word... " >&6; } 2898if ${ac_cv_prog_STRIP+:} false; then : 2899 $as_echo_n "(cached) " >&6 2900else 2901 if test -n "$STRIP"; then 2902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2911 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916 done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921STRIP=$ac_cv_prog_STRIP 2922if test -n "$STRIP"; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2924$as_echo "$STRIP" >&6; } 2925else 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927$as_echo "no" >&6; } 2928fi 2929 2930 2931fi 2932if test -z "$ac_cv_prog_STRIP"; then 2933 ac_ct_STRIP=$STRIP 2934 # Extract the first word of "strip", so it can be a program name with args. 2935set dummy strip; ac_word=$2 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2937$as_echo_n "checking for $ac_word... " >&6; } 2938if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2939 $as_echo_n "(cached) " >&6 2940else 2941 if test -n "$ac_ct_STRIP"; then 2942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2943else 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945for as_dir in $PATH 2946do 2947 IFS=$as_save_IFS 2948 test -z "$as_dir" && as_dir=. 2949 for ac_exec_ext in '' $ac_executable_extensions; do 2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2951 ac_cv_prog_ac_ct_STRIP="strip" 2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2953 break 2 2954 fi 2955done 2956 done 2957IFS=$as_save_IFS 2958 2959fi 2960fi 2961ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2962if test -n "$ac_ct_STRIP"; then 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2964$as_echo "$ac_ct_STRIP" >&6; } 2965else 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967$as_echo "no" >&6; } 2968fi 2969 2970 if test "x$ac_ct_STRIP" = x; then 2971 STRIP=":" 2972 else 2973 case $cross_compiling:$ac_tool_warned in 2974yes:) 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2977ac_tool_warned=yes ;; 2978esac 2979 STRIP=$ac_ct_STRIP 2980 fi 2981else 2982 STRIP="$ac_cv_prog_STRIP" 2983fi 2984 2985fi 2986INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2987 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2989$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2990if test -z "$MKDIR_P"; then 2991 if ${ac_cv_path_mkdir+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2996do 2997 IFS=$as_save_IFS 2998 test -z "$as_dir" && as_dir=. 2999 for ac_prog in mkdir gmkdir; do 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3002 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3003 'mkdir (GNU coreutils) '* | \ 3004 'mkdir (coreutils) '* | \ 3005 'mkdir (fileutils) '4.1*) 3006 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3007 break 3;; 3008 esac 3009 done 3010 done 3011 done 3012IFS=$as_save_IFS 3013 3014fi 3015 3016 test -d ./--version && rmdir ./--version 3017 if test "${ac_cv_path_mkdir+set}" = set; then 3018 MKDIR_P="$ac_cv_path_mkdir -p" 3019 else 3020 # As a last resort, use the slow shell script. Don't cache a 3021 # value for MKDIR_P within a source directory, because that will 3022 # break other packages using the cache if that directory is 3023 # removed, or if the value is a relative name. 3024 MKDIR_P="$ac_install_sh -d" 3025 fi 3026fi 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3028$as_echo "$MKDIR_P" >&6; } 3029 3030for ac_prog in gawk mawk nawk awk 3031do 3032 # Extract the first word of "$ac_prog", so it can be a program name with args. 3033set dummy $ac_prog; ac_word=$2 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035$as_echo_n "checking for $ac_word... " >&6; } 3036if ${ac_cv_prog_AWK+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 if test -n "$AWK"; then 3040 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 ac_cv_prog_AWK="$ac_prog" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057fi 3058fi 3059AWK=$ac_cv_prog_AWK 3060if test -n "$AWK"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3062$as_echo "$AWK" >&6; } 3063else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065$as_echo "no" >&6; } 3066fi 3067 3068 3069 test -n "$AWK" && break 3070done 3071 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3073$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3074set x ${MAKE-make} 3075ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3076if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078else 3079 cat >conftest.make <<\_ACEOF 3080SHELL = /bin/sh 3081all: 3082 @echo '@@@%%%=$(MAKE)=@@@%%%' 3083_ACEOF 3084# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3085case `${MAKE-make} -f conftest.make 2>/dev/null` in 3086 *@@@%%%=?*=@@@%%%*) 3087 eval ac_cv_prog_make_${ac_make}_set=yes;; 3088 *) 3089 eval ac_cv_prog_make_${ac_make}_set=no;; 3090esac 3091rm -f conftest.make 3092fi 3093if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3095$as_echo "yes" >&6; } 3096 SET_MAKE= 3097else 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099$as_echo "no" >&6; } 3100 SET_MAKE="MAKE=${MAKE-make}" 3101fi 3102 3103rm -rf .tst 2>/dev/null 3104mkdir .tst 2>/dev/null 3105if test -d .tst; then 3106 am__leading_dot=. 3107else 3108 am__leading_dot=_ 3109fi 3110rmdir .tst 2>/dev/null 3111 3112if test "`cd $srcdir && pwd`" != "`pwd`"; then 3113 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3114 # is not polluted with repeated "-I." 3115 am__isrc=' -I$(srcdir)' 3116 # test to see if srcdir already configured 3117 if test -f $srcdir/config.status; then 3118 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3119 fi 3120fi 3121 3122# test whether we have cygpath 3123if test -z "$CYGPATH_W"; then 3124 if (cygpath --version) >/dev/null 2>/dev/null; then 3125 CYGPATH_W='cygpath -w' 3126 else 3127 CYGPATH_W=echo 3128 fi 3129fi 3130 3131 3132# Define the identity of the package. 3133 PACKAGE='file' 3134 VERSION='5.14' 3135 3136 3137cat >>confdefs.h <<_ACEOF 3138#define PACKAGE "$PACKAGE" 3139_ACEOF 3140 3141 3142cat >>confdefs.h <<_ACEOF 3143#define VERSION "$VERSION" 3144_ACEOF 3145 3146# Some tools Automake needs. 3147 3148ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3149 3150 3151AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3152 3153 3154AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3155 3156 3157AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3158 3159 3160MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3161 3162# For better backward compatibility. To be removed once Automake 1.9.x 3163# dies out for good. For more background, see: 3164# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3165# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3166mkdir_p='$(MKDIR_P)' 3167 3168# We need awk for the "check" target. The system "awk" is bad on 3169# some platforms. 3170# Always define AMTAR for backward compatibility. Yes, it's still used 3171# in the wild :-( We should find a proper way to deprecate it ... 3172AMTAR='$${TAR-tar}' 3173 3174am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3175 3176 3177 3178 3179 3180 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3182$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3183 # Check whether --enable-maintainer-mode was given. 3184if test "${enable_maintainer_mode+set}" = set; then : 3185 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3186else 3187 USE_MAINTAINER_MODE=no 3188fi 3189 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3191$as_echo "$USE_MAINTAINER_MODE" >&6; } 3192 if test $USE_MAINTAINER_MODE = yes; then 3193 MAINTAINER_MODE_TRUE= 3194 MAINTAINER_MODE_FALSE='#' 3195else 3196 MAINTAINER_MODE_TRUE='#' 3197 MAINTAINER_MODE_FALSE= 3198fi 3199 3200 MAINT=$MAINTAINER_MODE_TRUE 3201 3202 3203# Check whether --enable-silent-rules was given. 3204if test "${enable_silent_rules+set}" = set; then : 3205 enableval=$enable_silent_rules; 3206fi 3207 3208case $enable_silent_rules in # ((( 3209 yes) AM_DEFAULT_VERBOSITY=0;; 3210 no) AM_DEFAULT_VERBOSITY=1;; 3211 *) AM_DEFAULT_VERBOSITY=0;; 3212esac 3213am_make=${MAKE-make} 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3215$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3216if ${am_cv_make_support_nested_variables+:} false; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if $as_echo 'TRUE=$(BAR$(V)) 3220BAR0=false 3221BAR1=true 3222V=1 3223am__doit: 3224 @$(TRUE) 3225.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3226 am_cv_make_support_nested_variables=yes 3227else 3228 am_cv_make_support_nested_variables=no 3229fi 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3232$as_echo "$am_cv_make_support_nested_variables" >&6; } 3233if test $am_cv_make_support_nested_variables = yes; then 3234 AM_V='$(V)' 3235 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3236else 3237 AM_V=$AM_DEFAULT_VERBOSITY 3238 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3239fi 3240AM_BACKSLASH='\' 3241 3242 3243ac_config_headers="$ac_config_headers config.h" 3244 3245 3246 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3248$as_echo_n "checking for builtin ELF support... " >&6; } 3249# Check whether --enable-elf was given. 3250if test "${enable_elf+set}" = set; then : 3251 enableval=$enable_elf; if test "${enableval}" = yes; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3253$as_echo "yes" >&6; } 3254 3255$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3256 3257else 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259$as_echo "no" >&6; } 3260fi 3261else 3262 3263 # enable by default 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3265$as_echo "yes" >&6; } 3266 3267$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3268 3269 3270fi 3271 3272 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3274$as_echo_n "checking for ELF core file support... " >&6; } 3275# Check whether --enable-elf-core was given. 3276if test "${enable_elf_core+set}" = set; then : 3277 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3279$as_echo "yes" >&6; } 3280 3281$as_echo "#define ELFCORE 1" >>confdefs.h 3282 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286fi 3287else 3288 3289 # enable by default 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3291$as_echo "yes" >&6; } 3292 3293$as_echo "#define ELFCORE 1" >>confdefs.h 3294 3295 3296fi 3297 3298 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3300$as_echo_n "checking for file formats in man section 5... " >&6; } 3301# Check whether --enable-fsect-man5 was given. 3302if test "${enable_fsect_man5+set}" = set; then : 3303 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3305$as_echo "yes" >&6; } 3306 fsect=5 3307else 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309$as_echo "no" >&6; } 3310 fsect=4 3311fi 3312else 3313 3314 # disable by default 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316$as_echo "no" >&6; } 3317 fsect=4 3318 3319fi 3320 3321 3322# Make sure we can run config.sub. 3323$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3324 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3325 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3327$as_echo_n "checking build system type... " >&6; } 3328if ${ac_cv_build+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 ac_build_alias=$build_alias 3332test "x$ac_build_alias" = x && 3333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3334test "x$ac_build_alias" = x && 3335 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3336ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3337 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3338 3339fi 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3341$as_echo "$ac_cv_build" >&6; } 3342case $ac_cv_build in 3343*-*-*) ;; 3344*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3345esac 3346build=$ac_cv_build 3347ac_save_IFS=$IFS; IFS='-' 3348set x $ac_cv_build 3349shift 3350build_cpu=$1 3351build_vendor=$2 3352shift; shift 3353# Remember, the first character of IFS is used to create $*, 3354# except with old shells: 3355build_os=$* 3356IFS=$ac_save_IFS 3357case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3358 3359 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3361$as_echo_n "checking host system type... " >&6; } 3362if ${ac_cv_host+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test "x$host_alias" = x; then 3366 ac_cv_host=$ac_cv_build 3367else 3368 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3370fi 3371 3372fi 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3374$as_echo "$ac_cv_host" >&6; } 3375case $ac_cv_host in 3376*-*-*) ;; 3377*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3378esac 3379host=$ac_cv_host 3380ac_save_IFS=$IFS; IFS='-' 3381set x $ac_cv_host 3382shift 3383host_cpu=$1 3384host_vendor=$2 3385shift; shift 3386# Remember, the first character of IFS is used to create $*, 3387# except with old shells: 3388host_os=$* 3389IFS=$ac_save_IFS 3390case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3391 3392 3393case "$host_os" in 3394 mingw32*) 3395 MINGW=1 3396 ;; 3397 *) 3398 MINGW=0 3399 ;; 3400esac 3401 3402 if test "$MINGW" = 1; then 3403 MINGW_TRUE= 3404 MINGW_FALSE='#' 3405else 3406 MINGW_TRUE='#' 3407 MINGW_FALSE= 3408fi 3409 3410 3411pkgdatadir='$(datadir)/misc' 3412 3413 3414 if test x$fsect = x5; then 3415 FSECT5_TRUE= 3416 FSECT5_FALSE='#' 3417else 3418 FSECT5_TRUE='#' 3419 FSECT5_FALSE= 3420fi 3421 3422 3423 3424 3425DEPDIR="${am__leading_dot}deps" 3426 3427ac_config_commands="$ac_config_commands depfiles" 3428 3429 3430am_make=${MAKE-make} 3431cat > confinc << 'END' 3432am__doit: 3433 @echo this is the am__doit target 3434.PHONY: am__doit 3435END 3436# If we don't find an include directive, just comment out the code. 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3438$as_echo_n "checking for style of include used by $am_make... " >&6; } 3439am__include="#" 3440am__quote= 3441_am_result=none 3442# First try GNU make style include. 3443echo "include confinc" > confmf 3444# Ignore all kinds of additional output from 'make'. 3445case `$am_make -s -f confmf 2> /dev/null` in #( 3446*the\ am__doit\ target*) 3447 am__include=include 3448 am__quote= 3449 _am_result=GNU 3450 ;; 3451esac 3452# Now try BSD make style include. 3453if test "$am__include" = "#"; then 3454 echo '.include "confinc"' > confmf 3455 case `$am_make -s -f confmf 2> /dev/null` in #( 3456 *the\ am__doit\ target*) 3457 am__include=.include 3458 am__quote="\"" 3459 _am_result=BSD 3460 ;; 3461 esac 3462fi 3463 3464 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3466$as_echo "$_am_result" >&6; } 3467rm -f confinc confmf 3468 3469# Check whether --enable-dependency-tracking was given. 3470if test "${enable_dependency_tracking+set}" = set; then : 3471 enableval=$enable_dependency_tracking; 3472fi 3473 3474if test "x$enable_dependency_tracking" != xno; then 3475 am_depcomp="$ac_aux_dir/depcomp" 3476 AMDEPBACKSLASH='\' 3477 am__nodep='_no' 3478fi 3479 if test "x$enable_dependency_tracking" != xno; then 3480 AMDEP_TRUE= 3481 AMDEP_FALSE='#' 3482else 3483 AMDEP_TRUE='#' 3484 AMDEP_FALSE= 3485fi 3486 3487 3488ac_ext=c 3489ac_cpp='$CPP $CPPFLAGS' 3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3492ac_compiler_gnu=$ac_cv_c_compiler_gnu 3493if test -n "$ac_tool_prefix"; then 3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3495set dummy ${ac_tool_prefix}gcc; ac_word=$2 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3497$as_echo_n "checking for $ac_word... " >&6; } 3498if ${ac_cv_prog_CC+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 if test -n "$CC"; then 3502 ac_cv_prog_CC="$CC" # Let the user override the test. 3503else 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3511 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519fi 3520fi 3521CC=$ac_cv_prog_CC 3522if test -n "$CC"; then 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3524$as_echo "$CC" >&6; } 3525else 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528fi 3529 3530 3531fi 3532if test -z "$ac_cv_prog_CC"; then 3533 ac_ct_CC=$CC 3534 # Extract the first word of "gcc", so it can be a program name with args. 3535set dummy gcc; ac_word=$2 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3537$as_echo_n "checking for $ac_word... " >&6; } 3538if ${ac_cv_prog_ac_ct_CC+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 if test -n "$ac_ct_CC"; then 3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 test -z "$as_dir" && as_dir=. 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3551 ac_cv_prog_ac_ct_CC="gcc" 3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555done 3556 done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561ac_ct_CC=$ac_cv_prog_ac_ct_CC 3562if test -n "$ac_ct_CC"; then 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3564$as_echo "$ac_ct_CC" >&6; } 3565else 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567$as_echo "no" >&6; } 3568fi 3569 3570 if test "x$ac_ct_CC" = x; then 3571 CC="" 3572 else 3573 case $cross_compiling:$ac_tool_warned in 3574yes:) 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3577ac_tool_warned=yes ;; 3578esac 3579 CC=$ac_ct_CC 3580 fi 3581else 3582 CC="$ac_cv_prog_CC" 3583fi 3584 3585if test -z "$CC"; then 3586 if test -n "$ac_tool_prefix"; then 3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3588set dummy ${ac_tool_prefix}cc; ac_word=$2 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3590$as_echo_n "checking for $ac_word... " >&6; } 3591if ${ac_cv_prog_CC+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 if test -n "$CC"; then 3595 ac_cv_prog_CC="$CC" # Let the user override the test. 3596else 3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598for as_dir in $PATH 3599do 3600 IFS=$as_save_IFS 3601 test -z "$as_dir" && as_dir=. 3602 for ac_exec_ext in '' $ac_executable_extensions; do 3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3604 ac_cv_prog_CC="${ac_tool_prefix}cc" 3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3606 break 2 3607 fi 3608done 3609 done 3610IFS=$as_save_IFS 3611 3612fi 3613fi 3614CC=$ac_cv_prog_CC 3615if test -n "$CC"; then 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3617$as_echo "$CC" >&6; } 3618else 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3620$as_echo "no" >&6; } 3621fi 3622 3623 3624 fi 3625fi 3626if test -z "$CC"; then 3627 # Extract the first word of "cc", so it can be a program name with args. 3628set dummy cc; ac_word=$2 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3630$as_echo_n "checking for $ac_word... " >&6; } 3631if ${ac_cv_prog_CC+:} false; then : 3632 $as_echo_n "(cached) " >&6 3633else 3634 if test -n "$CC"; then 3635 ac_cv_prog_CC="$CC" # Let the user override the test. 3636else 3637 ac_prog_rejected=no 3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639for as_dir in $PATH 3640do 3641 IFS=$as_save_IFS 3642 test -z "$as_dir" && as_dir=. 3643 for ac_exec_ext in '' $ac_executable_extensions; do 3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3646 ac_prog_rejected=yes 3647 continue 3648 fi 3649 ac_cv_prog_CC="cc" 3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3651 break 2 3652 fi 3653done 3654 done 3655IFS=$as_save_IFS 3656 3657if test $ac_prog_rejected = yes; then 3658 # We found a bogon in the path, so make sure we never use it. 3659 set dummy $ac_cv_prog_CC 3660 shift 3661 if test $# != 0; then 3662 # We chose a different compiler from the bogus one. 3663 # However, it has the same basename, so the bogon will be chosen 3664 # first if we set CC to just the basename; use the full file name. 3665 shift 3666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3667 fi 3668fi 3669fi 3670fi 3671CC=$ac_cv_prog_CC 3672if test -n "$CC"; then 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3674$as_echo "$CC" >&6; } 3675else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3677$as_echo "no" >&6; } 3678fi 3679 3680 3681fi 3682if test -z "$CC"; then 3683 if test -n "$ac_tool_prefix"; then 3684 for ac_prog in cl.exe 3685 do 3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3687set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3689$as_echo_n "checking for $ac_word... " >&6; } 3690if ${ac_cv_prog_CC+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 if test -n "$CC"; then 3694 ac_cv_prog_CC="$CC" # Let the user override the test. 3695else 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_exec_ext in '' $ac_executable_extensions; do 3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3705 break 2 3706 fi 3707done 3708 done 3709IFS=$as_save_IFS 3710 3711fi 3712fi 3713CC=$ac_cv_prog_CC 3714if test -n "$CC"; then 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3716$as_echo "$CC" >&6; } 3717else 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719$as_echo "no" >&6; } 3720fi 3721 3722 3723 test -n "$CC" && break 3724 done 3725fi 3726if test -z "$CC"; then 3727 ac_ct_CC=$CC 3728 for ac_prog in cl.exe 3729do 3730 # Extract the first word of "$ac_prog", so it can be a program name with args. 3731set dummy $ac_prog; ac_word=$2 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3733$as_echo_n "checking for $ac_word... " >&6; } 3734if ${ac_cv_prog_ac_ct_CC+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 if test -n "$ac_ct_CC"; then 3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3739else 3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 for ac_exec_ext in '' $ac_executable_extensions; do 3746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3747 ac_cv_prog_ac_ct_CC="$ac_prog" 3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3749 break 2 3750 fi 3751done 3752 done 3753IFS=$as_save_IFS 3754 3755fi 3756fi 3757ac_ct_CC=$ac_cv_prog_ac_ct_CC 3758if test -n "$ac_ct_CC"; then 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3760$as_echo "$ac_ct_CC" >&6; } 3761else 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3763$as_echo "no" >&6; } 3764fi 3765 3766 3767 test -n "$ac_ct_CC" && break 3768done 3769 3770 if test "x$ac_ct_CC" = x; then 3771 CC="" 3772 else 3773 case $cross_compiling:$ac_tool_warned in 3774yes:) 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3777ac_tool_warned=yes ;; 3778esac 3779 CC=$ac_ct_CC 3780 fi 3781fi 3782 3783fi 3784 3785 3786test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3788as_fn_error $? "no acceptable C compiler found in \$PATH 3789See \`config.log' for more details" "$LINENO" 5; } 3790 3791# Provide some information about the compiler. 3792$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3793set X $ac_compile 3794ac_compiler=$2 3795for ac_option in --version -v -V -qversion; do 3796 { { ac_try="$ac_compiler $ac_option >&5" 3797case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800esac 3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3802$as_echo "$ac_try_echo"; } >&5 3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3804 ac_status=$? 3805 if test -s conftest.err; then 3806 sed '10a\ 3807... rest of stderr output deleted ... 3808 10q' conftest.err >conftest.er1 3809 cat conftest.er1 >&5 3810 fi 3811 rm -f conftest.er1 conftest.err 3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3813 test $ac_status = 0; } 3814done 3815 3816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818 3819int 3820main () 3821{ 3822 3823 ; 3824 return 0; 3825} 3826_ACEOF 3827ac_clean_files_save=$ac_clean_files 3828ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3829# Try to create an executable without -o first, disregard a.out. 3830# It will help us diagnose broken compilers, and finding out an intuition 3831# of exeext. 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3833$as_echo_n "checking whether the C compiler works... " >&6; } 3834ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3835 3836# The possible output files: 3837ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3838 3839ac_rmfiles= 3840for ac_file in $ac_files 3841do 3842 case $ac_file in 3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3845 esac 3846done 3847rm -f $ac_rmfiles 3848 3849if { { ac_try="$ac_link_default" 3850case "(($ac_try" in 3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3852 *) ac_try_echo=$ac_try;; 3853esac 3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3855$as_echo "$ac_try_echo"; } >&5 3856 (eval "$ac_link_default") 2>&5 3857 ac_status=$? 3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3859 test $ac_status = 0; }; then : 3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3861# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3862# in a Makefile. We should not override ac_cv_exeext if it was cached, 3863# so that the user can short-circuit this test for compilers unknown to 3864# Autoconf. 3865for ac_file in $ac_files '' 3866do 3867 test -f "$ac_file" || continue 3868 case $ac_file in 3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3870 ;; 3871 [ab].out ) 3872 # We found the default executable, but exeext='' is most 3873 # certainly right. 3874 break;; 3875 *.* ) 3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3877 then :; else 3878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3879 fi 3880 # We set ac_cv_exeext here because the later test for it is not 3881 # safe: cross compilers may not add the suffix if given an `-o' 3882 # argument, so we may need to know it at that point already. 3883 # Even if this section looks crufty: it has the advantage of 3884 # actually working. 3885 break;; 3886 * ) 3887 break;; 3888 esac 3889done 3890test "$ac_cv_exeext" = no && ac_cv_exeext= 3891 3892else 3893 ac_file='' 3894fi 3895if test -z "$ac_file"; then : 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3897$as_echo "no" >&6; } 3898$as_echo "$as_me: failed program was:" >&5 3899sed 's/^/| /' conftest.$ac_ext >&5 3900 3901{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3903as_fn_error 77 "C compiler cannot create executables 3904See \`config.log' for more details" "$LINENO" 5; } 3905else 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3907$as_echo "yes" >&6; } 3908fi 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3910$as_echo_n "checking for C compiler default output file name... " >&6; } 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3912$as_echo "$ac_file" >&6; } 3913ac_exeext=$ac_cv_exeext 3914 3915rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3916ac_clean_files=$ac_clean_files_save 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3918$as_echo_n "checking for suffix of executables... " >&6; } 3919if { { ac_try="$ac_link" 3920case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923esac 3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3925$as_echo "$ac_try_echo"; } >&5 3926 (eval "$ac_link") 2>&5 3927 ac_status=$? 3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3929 test $ac_status = 0; }; then : 3930 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3932# work properly (i.e., refer to `conftest.exe'), while it won't with 3933# `rm'. 3934for ac_file in conftest.exe conftest conftest.*; do 3935 test -f "$ac_file" || continue 3936 case $ac_file in 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3939 break;; 3940 * ) break;; 3941 esac 3942done 3943else 3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3946as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3947See \`config.log' for more details" "$LINENO" 5; } 3948fi 3949rm -f conftest conftest$ac_cv_exeext 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3951$as_echo "$ac_cv_exeext" >&6; } 3952 3953rm -f conftest.$ac_ext 3954EXEEXT=$ac_cv_exeext 3955ac_exeext=$EXEEXT 3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958#include <stdio.h> 3959int 3960main () 3961{ 3962FILE *f = fopen ("conftest.out", "w"); 3963 return ferror (f) || fclose (f) != 0; 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969ac_clean_files="$ac_clean_files conftest.out" 3970# Check that the compiler produces executables we can run. If not, either 3971# the compiler is broken, or we cross compile. 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3973$as_echo_n "checking whether we are cross compiling... " >&6; } 3974if test "$cross_compiling" != yes; then 3975 { { ac_try="$ac_link" 3976case "(($ac_try" in 3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3978 *) ac_try_echo=$ac_try;; 3979esac 3980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3981$as_echo "$ac_try_echo"; } >&5 3982 (eval "$ac_link") 2>&5 3983 ac_status=$? 3984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3985 test $ac_status = 0; } 3986 if { ac_try='./conftest$ac_cv_exeext' 3987 { { case "(($ac_try" in 3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3989 *) ac_try_echo=$ac_try;; 3990esac 3991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3992$as_echo "$ac_try_echo"; } >&5 3993 (eval "$ac_try") 2>&5 3994 ac_status=$? 3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3996 test $ac_status = 0; }; }; then 3997 cross_compiling=no 3998 else 3999 if test "$cross_compiling" = maybe; then 4000 cross_compiling=yes 4001 else 4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4004as_fn_error $? "cannot run C compiled programs. 4005If you meant to cross compile, use \`--host'. 4006See \`config.log' for more details" "$LINENO" 5; } 4007 fi 4008 fi 4009fi 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4011$as_echo "$cross_compiling" >&6; } 4012 4013rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4014ac_clean_files=$ac_clean_files_save 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4016$as_echo_n "checking for suffix of object files... " >&6; } 4017if ${ac_cv_objext+:} false; then : 4018 $as_echo_n "(cached) " >&6 4019else 4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022 4023int 4024main () 4025{ 4026 4027 ; 4028 return 0; 4029} 4030_ACEOF 4031rm -f conftest.o conftest.obj 4032if { { ac_try="$ac_compile" 4033case "(($ac_try" in 4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4035 *) ac_try_echo=$ac_try;; 4036esac 4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4038$as_echo "$ac_try_echo"; } >&5 4039 (eval "$ac_compile") 2>&5 4040 ac_status=$? 4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4042 test $ac_status = 0; }; then : 4043 for ac_file in conftest.o conftest.obj conftest.*; do 4044 test -f "$ac_file" || continue; 4045 case $ac_file in 4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4047 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4048 break;; 4049 esac 4050done 4051else 4052 $as_echo "$as_me: failed program was:" >&5 4053sed 's/^/| /' conftest.$ac_ext >&5 4054 4055{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4057as_fn_error $? "cannot compute suffix of object files: cannot compile 4058See \`config.log' for more details" "$LINENO" 5; } 4059fi 4060rm -f conftest.$ac_cv_objext conftest.$ac_ext 4061fi 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4063$as_echo "$ac_cv_objext" >&6; } 4064OBJEXT=$ac_cv_objext 4065ac_objext=$OBJEXT 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4067$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4068if ${ac_cv_c_compiler_gnu+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073 4074int 4075main () 4076{ 4077#ifndef __GNUC__ 4078 choke me 4079#endif 4080 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085if ac_fn_c_try_compile "$LINENO"; then : 4086 ac_compiler_gnu=yes 4087else 4088 ac_compiler_gnu=no 4089fi 4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4091ac_cv_c_compiler_gnu=$ac_compiler_gnu 4092 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4095$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4096if test $ac_compiler_gnu = yes; then 4097 GCC=yes 4098else 4099 GCC= 4100fi 4101ac_test_CFLAGS=${CFLAGS+set} 4102ac_save_CFLAGS=$CFLAGS 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4104$as_echo_n "checking whether $CC accepts -g... " >&6; } 4105if ${ac_cv_prog_cc_g+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 ac_save_c_werror_flag=$ac_c_werror_flag 4109 ac_c_werror_flag=yes 4110 ac_cv_prog_cc_g=no 4111 CFLAGS="-g" 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114 4115int 4116main () 4117{ 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 ac_cv_prog_cc_g=yes 4125else 4126 CFLAGS="" 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129 4130int 4131main () 4132{ 4133 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138if ac_fn_c_try_compile "$LINENO"; then : 4139 4140else 4141 ac_c_werror_flag=$ac_save_c_werror_flag 4142 CFLAGS="-g" 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145 4146int 4147main () 4148{ 4149 4150 ; 4151 return 0; 4152} 4153_ACEOF 4154if ac_fn_c_try_compile "$LINENO"; then : 4155 ac_cv_prog_cc_g=yes 4156fi 4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4158fi 4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4160fi 4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4162 ac_c_werror_flag=$ac_save_c_werror_flag 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4165$as_echo "$ac_cv_prog_cc_g" >&6; } 4166if test "$ac_test_CFLAGS" = set; then 4167 CFLAGS=$ac_save_CFLAGS 4168elif test $ac_cv_prog_cc_g = yes; then 4169 if test "$GCC" = yes; then 4170 CFLAGS="-g -O2" 4171 else 4172 CFLAGS="-g" 4173 fi 4174else 4175 if test "$GCC" = yes; then 4176 CFLAGS="-O2" 4177 else 4178 CFLAGS= 4179 fi 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4182$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4183if ${ac_cv_prog_cc_c89+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 ac_cv_prog_cc_c89=no 4187ac_save_CC=$CC 4188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189/* end confdefs.h. */ 4190#include <stdarg.h> 4191#include <stdio.h> 4192struct stat; 4193/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4194struct buf { int x; }; 4195FILE * (*rcsopen) (struct buf *, struct stat *, int); 4196static char *e (p, i) 4197 char **p; 4198 int i; 4199{ 4200 return p[i]; 4201} 4202static char *f (char * (*g) (char **, int), char **p, ...) 4203{ 4204 char *s; 4205 va_list v; 4206 va_start (v,p); 4207 s = g (p, va_arg (v,int)); 4208 va_end (v); 4209 return s; 4210} 4211 4212/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4213 function prototypes and stuff, but not '\xHH' hex character constants. 4214 These don't provoke an error unfortunately, instead are silently treated 4215 as 'x'. The following induces an error, until -std is added to get 4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4217 array size at least. It's necessary to write '\x00'==0 to get something 4218 that's true only with -std. */ 4219int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4220 4221/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4222 inside strings and character constants. */ 4223#define FOO(x) 'x' 4224int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4225 4226int test (int i, double x); 4227struct s1 {int (*f) (int a);}; 4228struct s2 {int (*f) (double a);}; 4229int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4230int argc; 4231char **argv; 4232int 4233main () 4234{ 4235return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4242do 4243 CC="$ac_save_CC $ac_arg" 4244 if ac_fn_c_try_compile "$LINENO"; then : 4245 ac_cv_prog_cc_c89=$ac_arg 4246fi 4247rm -f core conftest.err conftest.$ac_objext 4248 test "x$ac_cv_prog_cc_c89" != "xno" && break 4249done 4250rm -f conftest.$ac_ext 4251CC=$ac_save_CC 4252 4253fi 4254# AC_CACHE_VAL 4255case "x$ac_cv_prog_cc_c89" in 4256 x) 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4258$as_echo "none needed" >&6; } ;; 4259 xno) 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4261$as_echo "unsupported" >&6; } ;; 4262 *) 4263 CC="$CC $ac_cv_prog_cc_c89" 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4265$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4266esac 4267if test "x$ac_cv_prog_cc_c89" != xno; then : 4268 4269fi 4270 4271ac_ext=c 4272ac_cpp='$CPP $CPPFLAGS' 4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4275ac_compiler_gnu=$ac_cv_c_compiler_gnu 4276 4277depcc="$CC" am_compiler_list= 4278 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4280$as_echo_n "checking dependency style of $depcc... " >&6; } 4281if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4282 $as_echo_n "(cached) " >&6 4283else 4284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4285 # We make a subdir and do the tests there. Otherwise we can end up 4286 # making bogus files that we don't know about and never remove. For 4287 # instance it was reported that on HP-UX the gcc test will end up 4288 # making a dummy file named 'D' -- because '-MD' means "put the output 4289 # in D". 4290 rm -rf conftest.dir 4291 mkdir conftest.dir 4292 # Copy depcomp to subdir because otherwise we won't find it if we're 4293 # using a relative directory. 4294 cp "$am_depcomp" conftest.dir 4295 cd conftest.dir 4296 # We will build objects and dependencies in a subdirectory because 4297 # it helps to detect inapplicable dependency modes. For instance 4298 # both Tru64's cc and ICC support -MD to output dependencies as a 4299 # side effect of compilation, but ICC will put the dependencies in 4300 # the current directory while Tru64 will put them in the object 4301 # directory. 4302 mkdir sub 4303 4304 am_cv_CC_dependencies_compiler_type=none 4305 if test "$am_compiler_list" = ""; then 4306 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4307 fi 4308 am__universal=false 4309 case " $depcc " in #( 4310 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4311 esac 4312 4313 for depmode in $am_compiler_list; do 4314 # Setup a source with many dependencies, because some compilers 4315 # like to wrap large dependency lists on column 80 (with \), and 4316 # we should not choose a depcomp mode which is confused by this. 4317 # 4318 # We need to recreate these files for each test, as the compiler may 4319 # overwrite some of them when testing with obscure command lines. 4320 # This happens at least with the AIX C compiler. 4321 : > sub/conftest.c 4322 for i in 1 2 3 4 5 6; do 4323 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4324 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4325 # Solaris 10 /bin/sh. 4326 echo '/* dummy */' > sub/conftst$i.h 4327 done 4328 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4329 4330 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4331 # mode. It turns out that the SunPro C++ compiler does not properly 4332 # handle '-M -o', and we need to detect this. Also, some Intel 4333 # versions had trouble with output in subdirs. 4334 am__obj=sub/conftest.${OBJEXT-o} 4335 am__minus_obj="-o $am__obj" 4336 case $depmode in 4337 gcc) 4338 # This depmode causes a compiler race in universal mode. 4339 test "$am__universal" = false || continue 4340 ;; 4341 nosideeffect) 4342 # After this tag, mechanisms are not by side-effect, so they'll 4343 # only be used when explicitly requested. 4344 if test "x$enable_dependency_tracking" = xyes; then 4345 continue 4346 else 4347 break 4348 fi 4349 ;; 4350 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4351 # This compiler won't grok '-c -o', but also, the minuso test has 4352 # not run yet. These depmodes are late enough in the game, and 4353 # so weak that their functioning should not be impacted. 4354 am__obj=conftest.${OBJEXT-o} 4355 am__minus_obj= 4356 ;; 4357 none) break ;; 4358 esac 4359 if depmode=$depmode \ 4360 source=sub/conftest.c object=$am__obj \ 4361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4362 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4363 >/dev/null 2>conftest.err && 4364 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4366 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4368 # icc doesn't choke on unknown options, it will just issue warnings 4369 # or remarks (even with -Werror). So we grep stderr for any message 4370 # that says an option was ignored or not supported. 4371 # When given -MP, icc 7.0 and 7.1 complain thusly: 4372 # icc: Command line warning: ignoring option '-M'; no argument required 4373 # The diagnosis changed in icc 8.0: 4374 # icc: Command line remark: option '-MP' not supported 4375 if (grep 'ignoring option' conftest.err || 4376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4377 am_cv_CC_dependencies_compiler_type=$depmode 4378 break 4379 fi 4380 fi 4381 done 4382 4383 cd .. 4384 rm -rf conftest.dir 4385else 4386 am_cv_CC_dependencies_compiler_type=none 4387fi 4388 4389fi 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4391$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4392CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4393 4394 if 4395 test "x$enable_dependency_tracking" != xno \ 4396 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4397 am__fastdepCC_TRUE= 4398 am__fastdepCC_FALSE='#' 4399else 4400 am__fastdepCC_TRUE='#' 4401 am__fastdepCC_FALSE= 4402fi 4403 4404 4405 case $ac_cv_prog_cc_stdc in #( 4406 no) : 4407 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4408 *) : 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4410$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4411if ${ac_cv_prog_cc_c99+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 ac_cv_prog_cc_c99=no 4415ac_save_CC=$CC 4416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417/* end confdefs.h. */ 4418#include <stdarg.h> 4419#include <stdbool.h> 4420#include <stdlib.h> 4421#include <wchar.h> 4422#include <stdio.h> 4423 4424// Check varargs macros. These examples are taken from C99 6.10.3.5. 4425#define debug(...) fprintf (stderr, __VA_ARGS__) 4426#define showlist(...) puts (#__VA_ARGS__) 4427#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4428static void 4429test_varargs_macros (void) 4430{ 4431 int x = 1234; 4432 int y = 5678; 4433 debug ("Flag"); 4434 debug ("X = %d\n", x); 4435 showlist (The first, second, and third items.); 4436 report (x>y, "x is %d but y is %d", x, y); 4437} 4438 4439// Check long long types. 4440#define BIG64 18446744073709551615ull 4441#define BIG32 4294967295ul 4442#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4443#if !BIG_OK 4444 your preprocessor is broken; 4445#endif 4446#if BIG_OK 4447#else 4448 your preprocessor is broken; 4449#endif 4450static long long int bignum = -9223372036854775807LL; 4451static unsigned long long int ubignum = BIG64; 4452 4453struct incomplete_array 4454{ 4455 int datasize; 4456 double data[]; 4457}; 4458 4459struct named_init { 4460 int number; 4461 const wchar_t *name; 4462 double average; 4463}; 4464 4465typedef const char *ccp; 4466 4467static inline int 4468test_restrict (ccp restrict text) 4469{ 4470 // See if C++-style comments work. 4471 // Iterate through items via the restricted pointer. 4472 // Also check for declarations in for loops. 4473 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4474 continue; 4475 return 0; 4476} 4477 4478// Check varargs and va_copy. 4479static void 4480test_varargs (const char *format, ...) 4481{ 4482 va_list args; 4483 va_start (args, format); 4484 va_list args_copy; 4485 va_copy (args_copy, args); 4486 4487 const char *str; 4488 int number; 4489 float fnumber; 4490 4491 while (*format) 4492 { 4493 switch (*format++) 4494 { 4495 case 's': // string 4496 str = va_arg (args_copy, const char *); 4497 break; 4498 case 'd': // int 4499 number = va_arg (args_copy, int); 4500 break; 4501 case 'f': // float 4502 fnumber = va_arg (args_copy, double); 4503 break; 4504 default: 4505 break; 4506 } 4507 } 4508 va_end (args_copy); 4509 va_end (args); 4510} 4511 4512int 4513main () 4514{ 4515 4516 // Check bool. 4517 _Bool success = false; 4518 4519 // Check restrict. 4520 if (test_restrict ("String literal") == 0) 4521 success = true; 4522 char *restrict newvar = "Another string"; 4523 4524 // Check varargs. 4525 test_varargs ("s, d' f .", "string", 65, 34.234); 4526 test_varargs_macros (); 4527 4528 // Check flexible array members. 4529 struct incomplete_array *ia = 4530 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4531 ia->datasize = 10; 4532 for (int i = 0; i < ia->datasize; ++i) 4533 ia->data[i] = i * 1.234; 4534 4535 // Check named initializers. 4536 struct named_init ni = { 4537 .number = 34, 4538 .name = L"Test wide string", 4539 .average = 543.34343, 4540 }; 4541 4542 ni.number = 58; 4543 4544 int dynamic_array[ni.number]; 4545 dynamic_array[ni.number - 1] = 543; 4546 4547 // work around unused variable warnings 4548 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4549 || dynamic_array[ni.number - 1] != 543); 4550 4551 ; 4552 return 0; 4553} 4554_ACEOF 4555for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4556do 4557 CC="$ac_save_CC $ac_arg" 4558 if ac_fn_c_try_compile "$LINENO"; then : 4559 ac_cv_prog_cc_c99=$ac_arg 4560fi 4561rm -f core conftest.err conftest.$ac_objext 4562 test "x$ac_cv_prog_cc_c99" != "xno" && break 4563done 4564rm -f conftest.$ac_ext 4565CC=$ac_save_CC 4566 4567fi 4568# AC_CACHE_VAL 4569case "x$ac_cv_prog_cc_c99" in 4570 x) 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4572$as_echo "none needed" >&6; } ;; 4573 xno) 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4575$as_echo "unsupported" >&6; } ;; 4576 *) 4577 CC="$CC $ac_cv_prog_cc_c99" 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4579$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4580esac 4581if test "x$ac_cv_prog_cc_c99" != xno; then : 4582 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4583else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4586if ${ac_cv_prog_cc_c89+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588else 4589 ac_cv_prog_cc_c89=no 4590ac_save_CC=$CC 4591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4592/* end confdefs.h. */ 4593#include <stdarg.h> 4594#include <stdio.h> 4595struct stat; 4596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4597struct buf { int x; }; 4598FILE * (*rcsopen) (struct buf *, struct stat *, int); 4599static char *e (p, i) 4600 char **p; 4601 int i; 4602{ 4603 return p[i]; 4604} 4605static char *f (char * (*g) (char **, int), char **p, ...) 4606{ 4607 char *s; 4608 va_list v; 4609 va_start (v,p); 4610 s = g (p, va_arg (v,int)); 4611 va_end (v); 4612 return s; 4613} 4614 4615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4616 function prototypes and stuff, but not '\xHH' hex character constants. 4617 These don't provoke an error unfortunately, instead are silently treated 4618 as 'x'. The following induces an error, until -std is added to get 4619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4620 array size at least. It's necessary to write '\x00'==0 to get something 4621 that's true only with -std. */ 4622int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4623 4624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4625 inside strings and character constants. */ 4626#define FOO(x) 'x' 4627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4628 4629int test (int i, double x); 4630struct s1 {int (*f) (int a);}; 4631struct s2 {int (*f) (double a);}; 4632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4633int argc; 4634char **argv; 4635int 4636main () 4637{ 4638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4639 ; 4640 return 0; 4641} 4642_ACEOF 4643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4645do 4646 CC="$ac_save_CC $ac_arg" 4647 if ac_fn_c_try_compile "$LINENO"; then : 4648 ac_cv_prog_cc_c89=$ac_arg 4649fi 4650rm -f core conftest.err conftest.$ac_objext 4651 test "x$ac_cv_prog_cc_c89" != "xno" && break 4652done 4653rm -f conftest.$ac_ext 4654CC=$ac_save_CC 4655 4656fi 4657# AC_CACHE_VAL 4658case "x$ac_cv_prog_cc_c89" in 4659 x) 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4661$as_echo "none needed" >&6; } ;; 4662 xno) 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4664$as_echo "unsupported" >&6; } ;; 4665 *) 4666 CC="$CC $ac_cv_prog_cc_c89" 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4669esac 4670if test "x$ac_cv_prog_cc_c89" != xno; then : 4671 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4672else 4673 ac_cv_prog_cc_stdc=no 4674fi 4675 4676fi 4677 ;; 4678esac 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4680$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4681 if ${ac_cv_prog_cc_stdc+:} false; then : 4682 $as_echo_n "(cached) " >&6 4683fi 4684 4685 case $ac_cv_prog_cc_stdc in #( 4686 no) : 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4688$as_echo "unsupported" >&6; } ;; #( 4689 '') : 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4691$as_echo "none needed" >&6; } ;; #( 4692 *) : 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4694$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4695esac 4696 4697 4698ac_ext=c 4699ac_cpp='$CPP $CPPFLAGS' 4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4702ac_compiler_gnu=$ac_cv_c_compiler_gnu 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4704$as_echo_n "checking how to run the C preprocessor... " >&6; } 4705# On Suns, sometimes $CPP names a directory. 4706if test -n "$CPP" && test -d "$CPP"; then 4707 CPP= 4708fi 4709if test -z "$CPP"; then 4710 if ${ac_cv_prog_CPP+:} false; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 # Double quotes because CPP needs to be expanded 4714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4715 do 4716 ac_preproc_ok=false 4717for ac_c_preproc_warn_flag in '' yes 4718do 4719 # Use a header file that comes with gcc, so configuring glibc 4720 # with a fresh cross-compiler works. 4721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4722 # <limits.h> exists even on freestanding compilers. 4723 # On the NeXT, cc -E runs the code through the compiler's parser, 4724 # not just through cpp. "Syntax error" is here to catch this case. 4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4726/* end confdefs.h. */ 4727#ifdef __STDC__ 4728# include <limits.h> 4729#else 4730# include <assert.h> 4731#endif 4732 Syntax error 4733_ACEOF 4734if ac_fn_c_try_cpp "$LINENO"; then : 4735 4736else 4737 # Broken: fails on valid input. 4738continue 4739fi 4740rm -f conftest.err conftest.i conftest.$ac_ext 4741 4742 # OK, works on sane cases. Now check whether nonexistent headers 4743 # can be detected and how. 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745/* end confdefs.h. */ 4746#include <ac_nonexistent.h> 4747_ACEOF 4748if ac_fn_c_try_cpp "$LINENO"; then : 4749 # Broken: success on invalid input. 4750continue 4751else 4752 # Passes both tests. 4753ac_preproc_ok=: 4754break 4755fi 4756rm -f conftest.err conftest.i conftest.$ac_ext 4757 4758done 4759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4760rm -f conftest.i conftest.err conftest.$ac_ext 4761if $ac_preproc_ok; then : 4762 break 4763fi 4764 4765 done 4766 ac_cv_prog_CPP=$CPP 4767 4768fi 4769 CPP=$ac_cv_prog_CPP 4770else 4771 ac_cv_prog_CPP=$CPP 4772fi 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4774$as_echo "$CPP" >&6; } 4775ac_preproc_ok=false 4776for ac_c_preproc_warn_flag in '' yes 4777do 4778 # Use a header file that comes with gcc, so configuring glibc 4779 # with a fresh cross-compiler works. 4780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4781 # <limits.h> exists even on freestanding compilers. 4782 # On the NeXT, cc -E runs the code through the compiler's parser, 4783 # not just through cpp. "Syntax error" is here to catch this case. 4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786#ifdef __STDC__ 4787# include <limits.h> 4788#else 4789# include <assert.h> 4790#endif 4791 Syntax error 4792_ACEOF 4793if ac_fn_c_try_cpp "$LINENO"; then : 4794 4795else 4796 # Broken: fails on valid input. 4797continue 4798fi 4799rm -f conftest.err conftest.i conftest.$ac_ext 4800 4801 # OK, works on sane cases. Now check whether nonexistent headers 4802 # can be detected and how. 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805#include <ac_nonexistent.h> 4806_ACEOF 4807if ac_fn_c_try_cpp "$LINENO"; then : 4808 # Broken: success on invalid input. 4809continue 4810else 4811 # Passes both tests. 4812ac_preproc_ok=: 4813break 4814fi 4815rm -f conftest.err conftest.i conftest.$ac_ext 4816 4817done 4818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4819rm -f conftest.i conftest.err conftest.$ac_ext 4820if $ac_preproc_ok; then : 4821 4822else 4823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4825as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4826See \`config.log' for more details" "$LINENO" 5; } 4827fi 4828 4829ac_ext=c 4830ac_cpp='$CPP $CPPFLAGS' 4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4833ac_compiler_gnu=$ac_cv_c_compiler_gnu 4834 4835 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4837$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4838if ${ac_cv_path_GREP+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 if test -z "$GREP"; then 4842 ac_path_GREP_found=false 4843 # Loop through the user's path and test for each of PROGNAME-LIST 4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_prog in grep ggrep; do 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4852 as_fn_executable_p "$ac_path_GREP" || continue 4853# Check for GNU ac_path_GREP and select it if it is found. 4854 # Check for GNU $ac_path_GREP 4855case `"$ac_path_GREP" --version 2>&1` in 4856*GNU*) 4857 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4858*) 4859 ac_count=0 4860 $as_echo_n 0123456789 >"conftest.in" 4861 while : 4862 do 4863 cat "conftest.in" "conftest.in" >"conftest.tmp" 4864 mv "conftest.tmp" "conftest.in" 4865 cp "conftest.in" "conftest.nl" 4866 $as_echo 'GREP' >> "conftest.nl" 4867 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4869 as_fn_arith $ac_count + 1 && ac_count=$as_val 4870 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4871 # Best one so far, save it but keep looking for a better one 4872 ac_cv_path_GREP="$ac_path_GREP" 4873 ac_path_GREP_max=$ac_count 4874 fi 4875 # 10*(2^10) chars as input seems more than enough 4876 test $ac_count -gt 10 && break 4877 done 4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4879esac 4880 4881 $ac_path_GREP_found && break 3 4882 done 4883 done 4884 done 4885IFS=$as_save_IFS 4886 if test -z "$ac_cv_path_GREP"; then 4887 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4888 fi 4889else 4890 ac_cv_path_GREP=$GREP 4891fi 4892 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4895$as_echo "$ac_cv_path_GREP" >&6; } 4896 GREP="$ac_cv_path_GREP" 4897 4898 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4900$as_echo_n "checking for egrep... " >&6; } 4901if ${ac_cv_path_EGREP+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4905 then ac_cv_path_EGREP="$GREP -E" 4906 else 4907 if test -z "$EGREP"; then 4908 ac_path_EGREP_found=false 4909 # Loop through the user's path and test for each of PROGNAME-LIST 4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4911for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4912do 4913 IFS=$as_save_IFS 4914 test -z "$as_dir" && as_dir=. 4915 for ac_prog in egrep; do 4916 for ac_exec_ext in '' $ac_executable_extensions; do 4917 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4918 as_fn_executable_p "$ac_path_EGREP" || continue 4919# Check for GNU ac_path_EGREP and select it if it is found. 4920 # Check for GNU $ac_path_EGREP 4921case `"$ac_path_EGREP" --version 2>&1` in 4922*GNU*) 4923 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4924*) 4925 ac_count=0 4926 $as_echo_n 0123456789 >"conftest.in" 4927 while : 4928 do 4929 cat "conftest.in" "conftest.in" >"conftest.tmp" 4930 mv "conftest.tmp" "conftest.in" 4931 cp "conftest.in" "conftest.nl" 4932 $as_echo 'EGREP' >> "conftest.nl" 4933 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4935 as_fn_arith $ac_count + 1 && ac_count=$as_val 4936 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4937 # Best one so far, save it but keep looking for a better one 4938 ac_cv_path_EGREP="$ac_path_EGREP" 4939 ac_path_EGREP_max=$ac_count 4940 fi 4941 # 10*(2^10) chars as input seems more than enough 4942 test $ac_count -gt 10 && break 4943 done 4944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4945esac 4946 4947 $ac_path_EGREP_found && break 3 4948 done 4949 done 4950 done 4951IFS=$as_save_IFS 4952 if test -z "$ac_cv_path_EGREP"; then 4953 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4954 fi 4955else 4956 ac_cv_path_EGREP=$EGREP 4957fi 4958 4959 fi 4960fi 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4962$as_echo "$ac_cv_path_EGREP" >&6; } 4963 EGREP="$ac_cv_path_EGREP" 4964 4965 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4967$as_echo_n "checking for ANSI C header files... " >&6; } 4968if ${ac_cv_header_stdc+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4972/* end confdefs.h. */ 4973#include <stdlib.h> 4974#include <stdarg.h> 4975#include <string.h> 4976#include <float.h> 4977 4978int 4979main () 4980{ 4981 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986if ac_fn_c_try_compile "$LINENO"; then : 4987 ac_cv_header_stdc=yes 4988else 4989 ac_cv_header_stdc=no 4990fi 4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4992 4993if test $ac_cv_header_stdc = yes; then 4994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996/* end confdefs.h. */ 4997#include <string.h> 4998 4999_ACEOF 5000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5001 $EGREP "memchr" >/dev/null 2>&1; then : 5002 5003else 5004 ac_cv_header_stdc=no 5005fi 5006rm -f conftest* 5007 5008fi 5009 5010if test $ac_cv_header_stdc = yes; then 5011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014#include <stdlib.h> 5015 5016_ACEOF 5017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5018 $EGREP "free" >/dev/null 2>&1; then : 5019 5020else 5021 ac_cv_header_stdc=no 5022fi 5023rm -f conftest* 5024 5025fi 5026 5027if test $ac_cv_header_stdc = yes; then 5028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5029 if test "$cross_compiling" = yes; then : 5030 : 5031else 5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033/* end confdefs.h. */ 5034#include <ctype.h> 5035#include <stdlib.h> 5036#if ((' ' & 0x0FF) == 0x020) 5037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5039#else 5040# define ISLOWER(c) \ 5041 (('a' <= (c) && (c) <= 'i') \ 5042 || ('j' <= (c) && (c) <= 'r') \ 5043 || ('s' <= (c) && (c) <= 'z')) 5044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5045#endif 5046 5047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5048int 5049main () 5050{ 5051 int i; 5052 for (i = 0; i < 256; i++) 5053 if (XOR (islower (i), ISLOWER (i)) 5054 || toupper (i) != TOUPPER (i)) 5055 return 2; 5056 return 0; 5057} 5058_ACEOF 5059if ac_fn_c_try_run "$LINENO"; then : 5060 5061else 5062 ac_cv_header_stdc=no 5063fi 5064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5065 conftest.$ac_objext conftest.beam conftest.$ac_ext 5066fi 5067 5068fi 5069fi 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5071$as_echo "$ac_cv_header_stdc" >&6; } 5072if test $ac_cv_header_stdc = yes; then 5073 5074$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5075 5076fi 5077 5078# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5079for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5080 inttypes.h stdint.h unistd.h 5081do : 5082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5083ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5084" 5085if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5086 cat >>confdefs.h <<_ACEOF 5087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5088_ACEOF 5089 5090fi 5091 5092done 5093 5094 5095 5096 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5097if test "x$ac_cv_header_minix_config_h" = xyes; then : 5098 MINIX=yes 5099else 5100 MINIX= 5101fi 5102 5103 5104 if test "$MINIX" = yes; then 5105 5106$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5107 5108 5109$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5110 5111 5112$as_echo "#define _MINIX 1" >>confdefs.h 5113 5114 fi 5115 5116 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5118$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5119if ${ac_cv_safe_to_define___extensions__+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124 5125# define __EXTENSIONS__ 1 5126 $ac_includes_default 5127int 5128main () 5129{ 5130 5131 ; 5132 return 0; 5133} 5134_ACEOF 5135if ac_fn_c_try_compile "$LINENO"; then : 5136 ac_cv_safe_to_define___extensions__=yes 5137else 5138 ac_cv_safe_to_define___extensions__=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5143$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5144 test $ac_cv_safe_to_define___extensions__ = yes && 5145 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5146 5147 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5148 5149 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5150 5151 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5152 5153 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5154 5155 5156if test "x$CC" != xcc; then 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5158$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5159else 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5161$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5162fi 5163set dummy $CC; ac_cc=`$as_echo "$2" | 5164 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5165if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170 5171int 5172main () 5173{ 5174 5175 ; 5176 return 0; 5177} 5178_ACEOF 5179# Make sure it works both with $CC and with simple cc. 5180# We do the test twice because some compilers refuse to overwrite an 5181# existing .o file with -o, though they will create one. 5182ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5183rm -f conftest2.* 5184if { { case "(($ac_try" in 5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5186 *) ac_try_echo=$ac_try;; 5187esac 5188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5189$as_echo "$ac_try_echo"; } >&5 5190 (eval "$ac_try") 2>&5 5191 ac_status=$? 5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5193 test $ac_status = 0; } && 5194 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5196 *) ac_try_echo=$ac_try;; 5197esac 5198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5199$as_echo "$ac_try_echo"; } >&5 5200 (eval "$ac_try") 2>&5 5201 ac_status=$? 5202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5203 test $ac_status = 0; }; 5204then 5205 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5206 if test "x$CC" != xcc; then 5207 # Test first that cc exists at all. 5208 if { ac_try='cc -c conftest.$ac_ext >&5' 5209 { { case "(($ac_try" in 5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5211 *) ac_try_echo=$ac_try;; 5212esac 5213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5214$as_echo "$ac_try_echo"; } >&5 5215 (eval "$ac_try") 2>&5 5216 ac_status=$? 5217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5218 test $ac_status = 0; }; }; then 5219 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5220 rm -f conftest2.* 5221 if { { case "(($ac_try" in 5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5223 *) ac_try_echo=$ac_try;; 5224esac 5225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5226$as_echo "$ac_try_echo"; } >&5 5227 (eval "$ac_try") 2>&5 5228 ac_status=$? 5229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5230 test $ac_status = 0; } && 5231 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5233 *) ac_try_echo=$ac_try;; 5234esac 5235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5236$as_echo "$ac_try_echo"; } >&5 5237 (eval "$ac_try") 2>&5 5238 ac_status=$? 5239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5240 test $ac_status = 0; }; 5241 then 5242 # cc works too. 5243 : 5244 else 5245 # cc exists but doesn't like -o. 5246 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5247 fi 5248 fi 5249 fi 5250else 5251 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5252fi 5253rm -f core conftest* 5254 5255fi 5256if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5258$as_echo "yes" >&6; } 5259else 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5261$as_echo "no" >&6; } 5262 5263$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5264 5265fi 5266 5267# FIXME: we rely on the cache variable name because 5268# there is no other way. 5269set dummy $CC 5270am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5271eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5272if test "$am_t" != yes; then 5273 # Losing compiler, so override with the script. 5274 # FIXME: It is wrong to rewrite CC. 5275 # But if we don't then we get into trouble of one sort or another. 5276 # A longer-term fix would be to have automake use am__CC in this case, 5277 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5278 CC="$am_aux_dir/compile $CC" 5279fi 5280 5281 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5283$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5284if ${ac_cv_c_bigendian+:} false; then : 5285 $as_echo_n "(cached) " >&6 5286else 5287 ac_cv_c_bigendian=unknown 5288 # See if we're dealing with a universal compiler. 5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5290/* end confdefs.h. */ 5291#ifndef __APPLE_CC__ 5292 not a universal capable compiler 5293 #endif 5294 typedef int dummy; 5295 5296_ACEOF 5297if ac_fn_c_try_compile "$LINENO"; then : 5298 5299 # Check for potential -arch flags. It is not universal unless 5300 # there are at least two -arch flags with different values. 5301 ac_arch= 5302 ac_prev= 5303 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5304 if test -n "$ac_prev"; then 5305 case $ac_word in 5306 i?86 | x86_64 | ppc | ppc64) 5307 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5308 ac_arch=$ac_word 5309 else 5310 ac_cv_c_bigendian=universal 5311 break 5312 fi 5313 ;; 5314 esac 5315 ac_prev= 5316 elif test "x$ac_word" = "x-arch"; then 5317 ac_prev=arch 5318 fi 5319 done 5320fi 5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5322 if test $ac_cv_c_bigendian = unknown; then 5323 # See if sys/param.h defines the BYTE_ORDER macro. 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326#include <sys/types.h> 5327 #include <sys/param.h> 5328 5329int 5330main () 5331{ 5332#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5333 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5334 && LITTLE_ENDIAN) 5335 bogus endian macros 5336 #endif 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 # It does; now see whether it defined to BIG_ENDIAN or not. 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345/* end confdefs.h. */ 5346#include <sys/types.h> 5347 #include <sys/param.h> 5348 5349int 5350main () 5351{ 5352#if BYTE_ORDER != BIG_ENDIAN 5353 not big endian 5354 #endif 5355 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360if ac_fn_c_try_compile "$LINENO"; then : 5361 ac_cv_c_bigendian=yes 5362else 5363 ac_cv_c_bigendian=no 5364fi 5365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5366fi 5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5368 fi 5369 if test $ac_cv_c_bigendian = unknown; then 5370 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373#include <limits.h> 5374 5375int 5376main () 5377{ 5378#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5379 bogus endian macros 5380 #endif 5381 5382 ; 5383 return 0; 5384} 5385_ACEOF 5386if ac_fn_c_try_compile "$LINENO"; then : 5387 # It does; now see whether it defined to _BIG_ENDIAN or not. 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390#include <limits.h> 5391 5392int 5393main () 5394{ 5395#ifndef _BIG_ENDIAN 5396 not big endian 5397 #endif 5398 5399 ; 5400 return 0; 5401} 5402_ACEOF 5403if ac_fn_c_try_compile "$LINENO"; then : 5404 ac_cv_c_bigendian=yes 5405else 5406 ac_cv_c_bigendian=no 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409fi 5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5411 fi 5412 if test $ac_cv_c_bigendian = unknown; then 5413 # Compile a test program. 5414 if test "$cross_compiling" = yes; then : 5415 # Try to guess by grepping values from an object file. 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418short int ascii_mm[] = 5419 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5420 short int ascii_ii[] = 5421 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5422 int use_ascii (int i) { 5423 return ascii_mm[i] + ascii_ii[i]; 5424 } 5425 short int ebcdic_ii[] = 5426 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5427 short int ebcdic_mm[] = 5428 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5429 int use_ebcdic (int i) { 5430 return ebcdic_mm[i] + ebcdic_ii[i]; 5431 } 5432 extern int foo; 5433 5434int 5435main () 5436{ 5437return use_ascii (foo) == use_ebcdic (foo); 5438 ; 5439 return 0; 5440} 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO"; then : 5443 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5444 ac_cv_c_bigendian=yes 5445 fi 5446 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5447 if test "$ac_cv_c_bigendian" = unknown; then 5448 ac_cv_c_bigendian=no 5449 else 5450 # finding both strings is unlikely to happen, but who knows? 5451 ac_cv_c_bigendian=unknown 5452 fi 5453 fi 5454fi 5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5456else 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458/* end confdefs.h. */ 5459$ac_includes_default 5460int 5461main () 5462{ 5463 5464 /* Are we little or big endian? From Harbison&Steele. */ 5465 union 5466 { 5467 long int l; 5468 char c[sizeof (long int)]; 5469 } u; 5470 u.l = 1; 5471 return u.c[sizeof (long int) - 1] == 1; 5472 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477if ac_fn_c_try_run "$LINENO"; then : 5478 ac_cv_c_bigendian=no 5479else 5480 ac_cv_c_bigendian=yes 5481fi 5482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5483 conftest.$ac_objext conftest.beam conftest.$ac_ext 5484fi 5485 5486 fi 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5489$as_echo "$ac_cv_c_bigendian" >&6; } 5490 case $ac_cv_c_bigendian in #( 5491 yes) 5492 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5493;; #( 5494 no) 5495 ;; #( 5496 universal) 5497 5498$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5499 5500 ;; #( 5501 *) 5502 as_fn_error $? "unknown endianness 5503 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5504 esac 5505 5506 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5508$as_echo_n "checking whether ln -s works... " >&6; } 5509LN_S=$as_ln_s 5510if test "$LN_S" = "ln -s"; then 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5512$as_echo "yes" >&6; } 5513else 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5515$as_echo "no, using $LN_S" >&6; } 5516fi 5517 5518case `pwd` in 5519 *\ * | *\ *) 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5521$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5522esac 5523 5524 5525 5526macro_version='2.2.6b' 5527macro_revision='1.3017' 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541ltmain="$ac_aux_dir/ltmain.sh" 5542 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5544$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5545if ${ac_cv_path_SED+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547else 5548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5549 for ac_i in 1 2 3 4 5 6 7; do 5550 ac_script="$ac_script$as_nl$ac_script" 5551 done 5552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5553 { ac_script=; unset ac_script;} 5554 if test -z "$SED"; then 5555 ac_path_SED_found=false 5556 # Loop through the user's path and test for each of PROGNAME-LIST 5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5558for as_dir in $PATH 5559do 5560 IFS=$as_save_IFS 5561 test -z "$as_dir" && as_dir=. 5562 for ac_prog in sed gsed; do 5563 for ac_exec_ext in '' $ac_executable_extensions; do 5564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5565 as_fn_executable_p "$ac_path_SED" || continue 5566# Check for GNU ac_path_SED and select it if it is found. 5567 # Check for GNU $ac_path_SED 5568case `"$ac_path_SED" --version 2>&1` in 5569*GNU*) 5570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5571*) 5572 ac_count=0 5573 $as_echo_n 0123456789 >"conftest.in" 5574 while : 5575 do 5576 cat "conftest.in" "conftest.in" >"conftest.tmp" 5577 mv "conftest.tmp" "conftest.in" 5578 cp "conftest.in" "conftest.nl" 5579 $as_echo '' >> "conftest.nl" 5580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5582 as_fn_arith $ac_count + 1 && ac_count=$as_val 5583 if test $ac_count -gt ${ac_path_SED_max-0}; then 5584 # Best one so far, save it but keep looking for a better one 5585 ac_cv_path_SED="$ac_path_SED" 5586 ac_path_SED_max=$ac_count 5587 fi 5588 # 10*(2^10) chars as input seems more than enough 5589 test $ac_count -gt 10 && break 5590 done 5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5592esac 5593 5594 $ac_path_SED_found && break 3 5595 done 5596 done 5597 done 5598IFS=$as_save_IFS 5599 if test -z "$ac_cv_path_SED"; then 5600 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5601 fi 5602else 5603 ac_cv_path_SED=$SED 5604fi 5605 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5608$as_echo "$ac_cv_path_SED" >&6; } 5609 SED="$ac_cv_path_SED" 5610 rm -f conftest.sed 5611 5612test -z "$SED" && SED=sed 5613Xsed="$SED -e 1s/^X//" 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5626$as_echo_n "checking for fgrep... " >&6; } 5627if ${ac_cv_path_FGREP+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5631 then ac_cv_path_FGREP="$GREP -F" 5632 else 5633 if test -z "$FGREP"; then 5634 ac_path_FGREP_found=false 5635 # Loop through the user's path and test for each of PROGNAME-LIST 5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_prog in fgrep; do 5642 for ac_exec_ext in '' $ac_executable_extensions; do 5643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5644 as_fn_executable_p "$ac_path_FGREP" || continue 5645# Check for GNU ac_path_FGREP and select it if it is found. 5646 # Check for GNU $ac_path_FGREP 5647case `"$ac_path_FGREP" --version 2>&1` in 5648*GNU*) 5649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5650*) 5651 ac_count=0 5652 $as_echo_n 0123456789 >"conftest.in" 5653 while : 5654 do 5655 cat "conftest.in" "conftest.in" >"conftest.tmp" 5656 mv "conftest.tmp" "conftest.in" 5657 cp "conftest.in" "conftest.nl" 5658 $as_echo 'FGREP' >> "conftest.nl" 5659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5661 as_fn_arith $ac_count + 1 && ac_count=$as_val 5662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5663 # Best one so far, save it but keep looking for a better one 5664 ac_cv_path_FGREP="$ac_path_FGREP" 5665 ac_path_FGREP_max=$ac_count 5666 fi 5667 # 10*(2^10) chars as input seems more than enough 5668 test $ac_count -gt 10 && break 5669 done 5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5671esac 5672 5673 $ac_path_FGREP_found && break 3 5674 done 5675 done 5676 done 5677IFS=$as_save_IFS 5678 if test -z "$ac_cv_path_FGREP"; then 5679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5680 fi 5681else 5682 ac_cv_path_FGREP=$FGREP 5683fi 5684 5685 fi 5686fi 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5688$as_echo "$ac_cv_path_FGREP" >&6; } 5689 FGREP="$ac_cv_path_FGREP" 5690 5691 5692test -z "$GREP" && GREP=grep 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712# Check whether --with-gnu-ld was given. 5713if test "${with_gnu_ld+set}" = set; then : 5714 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5715else 5716 with_gnu_ld=no 5717fi 5718 5719ac_prog=ld 5720if test "$GCC" = yes; then 5721 # Check if gcc -print-prog-name=ld gives a path. 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5723$as_echo_n "checking for ld used by $CC... " >&6; } 5724 case $host in 5725 *-*-mingw*) 5726 # gcc leaves a trailing carriage return which upsets mingw 5727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5728 *) 5729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5730 esac 5731 case $ac_prog in 5732 # Accept absolute paths. 5733 [\\/]* | ?:[\\/]*) 5734 re_direlt='/[^/][^/]*/\.\./' 5735 # Canonicalize the pathname of ld 5736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5739 done 5740 test -z "$LD" && LD="$ac_prog" 5741 ;; 5742 "") 5743 # If it fails, then pretend we aren't using GCC. 5744 ac_prog=ld 5745 ;; 5746 *) 5747 # If it is relative, then search for the first ld in PATH. 5748 with_gnu_ld=unknown 5749 ;; 5750 esac 5751elif test "$with_gnu_ld" = yes; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5753$as_echo_n "checking for GNU ld... " >&6; } 5754else 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5756$as_echo_n "checking for non-GNU ld... " >&6; } 5757fi 5758if ${lt_cv_path_LD+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 if test -z "$LD"; then 5762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5763 for ac_dir in $PATH; do 5764 IFS="$lt_save_ifs" 5765 test -z "$ac_dir" && ac_dir=. 5766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5767 lt_cv_path_LD="$ac_dir/$ac_prog" 5768 # Check to see if the program is GNU ld. I'd rather use --version, 5769 # but apparently some variants of GNU ld only accept -v. 5770 # Break only if it was the GNU/non-GNU ld that we prefer. 5771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5772 *GNU* | *'with BFD'*) 5773 test "$with_gnu_ld" != no && break 5774 ;; 5775 *) 5776 test "$with_gnu_ld" != yes && break 5777 ;; 5778 esac 5779 fi 5780 done 5781 IFS="$lt_save_ifs" 5782else 5783 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5784fi 5785fi 5786 5787LD="$lt_cv_path_LD" 5788if test -n "$LD"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5790$as_echo "$LD" >&6; } 5791else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794fi 5795test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5797$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5798if ${lt_cv_prog_gnu_ld+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5802case `$LD -v 2>&1 </dev/null` in 5803*GNU* | *'with BFD'*) 5804 lt_cv_prog_gnu_ld=yes 5805 ;; 5806*) 5807 lt_cv_prog_gnu_ld=no 5808 ;; 5809esac 5810fi 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5812$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5813with_gnu_ld=$lt_cv_prog_gnu_ld 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5824$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5825if ${lt_cv_path_NM+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$NM"; then 5829 # Let the user override the test. 5830 lt_cv_path_NM="$NM" 5831else 5832 lt_nm_to_check="${ac_tool_prefix}nm" 5833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5834 lt_nm_to_check="$lt_nm_to_check nm" 5835 fi 5836 for lt_tmp_nm in $lt_nm_to_check; do 5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5838 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5839 IFS="$lt_save_ifs" 5840 test -z "$ac_dir" && ac_dir=. 5841 tmp_nm="$ac_dir/$lt_tmp_nm" 5842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5843 # Check to see if the nm accepts a BSD-compat flag. 5844 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5845 # nm: unknown option "B" ignored 5846 # Tru64's nm complains that /dev/null is an invalid object file 5847 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5848 */dev/null* | *'Invalid file or object type'*) 5849 lt_cv_path_NM="$tmp_nm -B" 5850 break 5851 ;; 5852 *) 5853 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5854 */dev/null*) 5855 lt_cv_path_NM="$tmp_nm -p" 5856 break 5857 ;; 5858 *) 5859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5860 continue # so that we can try to find one that supports BSD flags 5861 ;; 5862 esac 5863 ;; 5864 esac 5865 fi 5866 done 5867 IFS="$lt_save_ifs" 5868 done 5869 : ${lt_cv_path_NM=no} 5870fi 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5873$as_echo "$lt_cv_path_NM" >&6; } 5874if test "$lt_cv_path_NM" != "no"; then 5875 NM="$lt_cv_path_NM" 5876else 5877 # Didn't find any BSD compatible name lister, look for dumpbin. 5878 if test -n "$ac_tool_prefix"; then 5879 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5880 do 5881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5882set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5884$as_echo_n "checking for $ac_word... " >&6; } 5885if ${ac_cv_prog_DUMPBIN+:} false; then : 5886 $as_echo_n "(cached) " >&6 5887else 5888 if test -n "$DUMPBIN"; then 5889 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5890else 5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5892for as_dir in $PATH 5893do 5894 IFS=$as_save_IFS 5895 test -z "$as_dir" && as_dir=. 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5898 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5900 break 2 5901 fi 5902done 5903 done 5904IFS=$as_save_IFS 5905 5906fi 5907fi 5908DUMPBIN=$ac_cv_prog_DUMPBIN 5909if test -n "$DUMPBIN"; then 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5911$as_echo "$DUMPBIN" >&6; } 5912else 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5914$as_echo "no" >&6; } 5915fi 5916 5917 5918 test -n "$DUMPBIN" && break 5919 done 5920fi 5921if test -z "$DUMPBIN"; then 5922 ac_ct_DUMPBIN=$DUMPBIN 5923 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5924do 5925 # Extract the first word of "$ac_prog", so it can be a program name with args. 5926set dummy $ac_prog; ac_word=$2 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5928$as_echo_n "checking for $ac_word... " >&6; } 5929if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 if test -n "$ac_ct_DUMPBIN"; then 5933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947 done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5953if test -n "$ac_ct_DUMPBIN"; then 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5955$as_echo "$ac_ct_DUMPBIN" >&6; } 5956else 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958$as_echo "no" >&6; } 5959fi 5960 5961 5962 test -n "$ac_ct_DUMPBIN" && break 5963done 5964 5965 if test "x$ac_ct_DUMPBIN" = x; then 5966 DUMPBIN=":" 5967 else 5968 case $cross_compiling:$ac_tool_warned in 5969yes:) 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 DUMPBIN=$ac_ct_DUMPBIN 5975 fi 5976fi 5977 5978 5979 if test "$DUMPBIN" != ":"; then 5980 NM="$DUMPBIN" 5981 fi 5982fi 5983test -z "$NM" && NM=nm 5984 5985 5986 5987 5988 5989 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5991$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5992if ${lt_cv_nm_interface+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 lt_cv_nm_interface="BSD nm" 5996 echo "int some_variable = 0;" > conftest.$ac_ext 5997 (eval echo "\"\$as_me:5997: $ac_compile\"" >&5) 5998 (eval "$ac_compile" 2>conftest.err) 5999 cat conftest.err >&5 6000 (eval echo "\"\$as_me:6000: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6001 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6002 cat conftest.err >&5 6003 (eval echo "\"\$as_me:6003: output\"" >&5) 6004 cat conftest.out >&5 6005 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6006 lt_cv_nm_interface="MS dumpbin" 6007 fi 6008 rm -f conftest* 6009fi 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6011$as_echo "$lt_cv_nm_interface" >&6; } 6012 6013# find the maximum length of command line arguments 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6015$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6016if ${lt_cv_sys_max_cmd_len+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 i=0 6020 teststring="ABCD" 6021 6022 case $build_os in 6023 msdosdjgpp*) 6024 # On DJGPP, this test can blow up pretty badly due to problems in libc 6025 # (any single argument exceeding 2000 bytes causes a buffer overrun 6026 # during glob expansion). Even if it were fixed, the result of this 6027 # check would be larger than it should be. 6028 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6029 ;; 6030 6031 gnu*) 6032 # Under GNU Hurd, this test is not required because there is 6033 # no limit to the length of command line arguments. 6034 # Libtool will interpret -1 as no limit whatsoever 6035 lt_cv_sys_max_cmd_len=-1; 6036 ;; 6037 6038 cygwin* | mingw* | cegcc*) 6039 # On Win9x/ME, this test blows up -- it succeeds, but takes 6040 # about 5 minutes as the teststring grows exponentially. 6041 # Worse, since 9x/ME are not pre-emptively multitasking, 6042 # you end up with a "frozen" computer, even though with patience 6043 # the test eventually succeeds (with a max line length of 256k). 6044 # Instead, let's just punt: use the minimum linelength reported by 6045 # all of the supported platforms: 8192 (on NT/2K/XP). 6046 lt_cv_sys_max_cmd_len=8192; 6047 ;; 6048 6049 amigaos*) 6050 # On AmigaOS with pdksh, this test takes hours, literally. 6051 # So we just punt and use a minimum line length of 8192. 6052 lt_cv_sys_max_cmd_len=8192; 6053 ;; 6054 6055 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6056 # This has been around since 386BSD, at least. Likely further. 6057 if test -x /sbin/sysctl; then 6058 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6059 elif test -x /usr/sbin/sysctl; then 6060 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6061 else 6062 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6063 fi 6064 # And add a safety zone 6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6067 ;; 6068 6069 interix*) 6070 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6071 lt_cv_sys_max_cmd_len=196608 6072 ;; 6073 6074 osf*) 6075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6077 # nice to cause kernel panics so lets avoid the loop below. 6078 # First set a reasonable default. 6079 lt_cv_sys_max_cmd_len=16384 6080 # 6081 if test -x /sbin/sysconfig; then 6082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6083 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6084 esac 6085 fi 6086 ;; 6087 sco3.2v5*) 6088 lt_cv_sys_max_cmd_len=102400 6089 ;; 6090 sysv5* | sco5v6* | sysv4.2uw2*) 6091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6092 if test -n "$kargmax"; then 6093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6094 else 6095 lt_cv_sys_max_cmd_len=32768 6096 fi 6097 ;; 6098 *) 6099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6100 if test -n "$lt_cv_sys_max_cmd_len"; then 6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6103 else 6104 # Make teststring a little bigger before we do anything with it. 6105 # a 1K string should be a reasonable start. 6106 for i in 1 2 3 4 5 6 7 8 ; do 6107 teststring=$teststring$teststring 6108 done 6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6110 # If test is not a shell built-in, we'll probably end up computing a 6111 # maximum length that is only half of the actual maximum length, but 6112 # we can't tell. 6113 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6114 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6115 test $i != 17 # 1/2 MB should be enough 6116 do 6117 i=`expr $i + 1` 6118 teststring=$teststring$teststring 6119 done 6120 # Only check the string length outside the loop. 6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6122 teststring= 6123 # Add a significant safety factor because C++ compilers can tack on 6124 # massive amounts of additional arguments before passing them to the 6125 # linker. It appears as though 1/2 is a usable value. 6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6127 fi 6128 ;; 6129 esac 6130 6131fi 6132 6133if test -n $lt_cv_sys_max_cmd_len ; then 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6135$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6136else 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6138$as_echo "none" >&6; } 6139fi 6140max_cmd_len=$lt_cv_sys_max_cmd_len 6141 6142 6143 6144 6145 6146 6147: ${CP="cp -f"} 6148: ${MV="mv -f"} 6149: ${RM="rm -f"} 6150 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6152$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6153# Try some XSI features 6154xsi_shell=no 6155( _lt_dummy="a/b/c" 6156 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6157 = c,a/b,, \ 6158 && eval 'test $(( 1 + 1 )) -eq 2 \ 6159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6160 && xsi_shell=yes 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6162$as_echo "$xsi_shell" >&6; } 6163 6164 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6166$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6167lt_shell_append=no 6168( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6169 >/dev/null 2>&1 \ 6170 && lt_shell_append=yes 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6172$as_echo "$lt_shell_append" >&6; } 6173 6174 6175if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6176 lt_unset=unset 6177else 6178 lt_unset=false 6179fi 6180 6181 6182 6183 6184 6185# test EBCDIC or ASCII 6186case `echo X|tr X '\101'` in 6187 A) # ASCII based system 6188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6189 lt_SP2NL='tr \040 \012' 6190 lt_NL2SP='tr \015\012 \040\040' 6191 ;; 6192 *) # EBCDIC based system 6193 lt_SP2NL='tr \100 \n' 6194 lt_NL2SP='tr \r\n \100\100' 6195 ;; 6196esac 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6207$as_echo_n "checking for $LD option to reload object files... " >&6; } 6208if ${lt_cv_ld_reload_flag+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 lt_cv_ld_reload_flag='-r' 6212fi 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6214$as_echo "$lt_cv_ld_reload_flag" >&6; } 6215reload_flag=$lt_cv_ld_reload_flag 6216case $reload_flag in 6217"" | " "*) ;; 6218*) reload_flag=" $reload_flag" ;; 6219esac 6220reload_cmds='$LD$reload_flag -o $output$reload_objs' 6221case $host_os in 6222 darwin*) 6223 if test "$GCC" = yes; then 6224 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6225 else 6226 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6227 fi 6228 ;; 6229esac 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239if test -n "$ac_tool_prefix"; then 6240 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6241set dummy ${ac_tool_prefix}objdump; ac_word=$2 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6243$as_echo_n "checking for $ac_word... " >&6; } 6244if ${ac_cv_prog_OBJDUMP+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 if test -n "$OBJDUMP"; then 6248 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262 done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267OBJDUMP=$ac_cv_prog_OBJDUMP 6268if test -n "$OBJDUMP"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6270$as_echo "$OBJDUMP" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 6277fi 6278if test -z "$ac_cv_prog_OBJDUMP"; then 6279 ac_ct_OBJDUMP=$OBJDUMP 6280 # Extract the first word of "objdump", so it can be a program name with args. 6281set dummy objdump; ac_word=$2 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6283$as_echo_n "checking for $ac_word... " >&6; } 6284if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 if test -n "$ac_ct_OBJDUMP"; then 6288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6289else 6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291for as_dir in $PATH 6292do 6293 IFS=$as_save_IFS 6294 test -z "$as_dir" && as_dir=. 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6297 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302 done 6303IFS=$as_save_IFS 6304 6305fi 6306fi 6307ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6308if test -n "$ac_ct_OBJDUMP"; then 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6310$as_echo "$ac_ct_OBJDUMP" >&6; } 6311else 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6313$as_echo "no" >&6; } 6314fi 6315 6316 if test "x$ac_ct_OBJDUMP" = x; then 6317 OBJDUMP="false" 6318 else 6319 case $cross_compiling:$ac_tool_warned in 6320yes:) 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6323ac_tool_warned=yes ;; 6324esac 6325 OBJDUMP=$ac_ct_OBJDUMP 6326 fi 6327else 6328 OBJDUMP="$ac_cv_prog_OBJDUMP" 6329fi 6330 6331test -z "$OBJDUMP" && OBJDUMP=objdump 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6342$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6343if ${lt_cv_deplibs_check_method+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 lt_cv_file_magic_cmd='$MAGIC_CMD' 6347lt_cv_file_magic_test_file= 6348lt_cv_deplibs_check_method='unknown' 6349# Need to set the preceding variable on all platforms that support 6350# interlibrary dependencies. 6351# 'none' -- dependencies not supported. 6352# `unknown' -- same as none, but documents that we really don't know. 6353# 'pass_all' -- all dependencies passed with no checks. 6354# 'test_compile' -- check by making test program. 6355# 'file_magic [[regex]]' -- check by looking for files in library path 6356# which responds to the $file_magic_cmd with a given extended regex. 6357# If you have `file' or equivalent on your system and you're not sure 6358# whether `pass_all' will *always* work, you probably want this one. 6359 6360case $host_os in 6361aix[4-9]*) 6362 lt_cv_deplibs_check_method=pass_all 6363 ;; 6364 6365beos*) 6366 lt_cv_deplibs_check_method=pass_all 6367 ;; 6368 6369bsdi[45]*) 6370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6371 lt_cv_file_magic_cmd='/usr/bin/file -L' 6372 lt_cv_file_magic_test_file=/shlib/libc.so 6373 ;; 6374 6375cygwin*) 6376 # func_win32_libid is a shell function defined in ltmain.sh 6377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6378 lt_cv_file_magic_cmd='func_win32_libid' 6379 ;; 6380 6381mingw* | pw32*) 6382 # Base MSYS/MinGW do not provide the 'file' command needed by 6383 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6384 # unless we find 'file', for example because we are cross-compiling. 6385 if ( file / ) >/dev/null 2>&1; then 6386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6387 lt_cv_file_magic_cmd='func_win32_libid' 6388 else 6389 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6390 lt_cv_file_magic_cmd='$OBJDUMP -f' 6391 fi 6392 ;; 6393 6394cegcc) 6395 # use the weaker test based on 'objdump'. See mingw*. 6396 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6397 lt_cv_file_magic_cmd='$OBJDUMP -f' 6398 ;; 6399 6400darwin* | rhapsody*) 6401 lt_cv_deplibs_check_method=pass_all 6402 ;; 6403 6404freebsd* | dragonfly*) 6405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6406 case $host_cpu in 6407 i*86 ) 6408 # Not sure whether the presence of OpenBSD here was a mistake. 6409 # Let's accept both of them until this is cleared up. 6410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6411 lt_cv_file_magic_cmd=/usr/bin/file 6412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6413 ;; 6414 esac 6415 else 6416 lt_cv_deplibs_check_method=pass_all 6417 fi 6418 ;; 6419 6420gnu*) 6421 lt_cv_deplibs_check_method=pass_all 6422 ;; 6423 6424hpux10.20* | hpux11*) 6425 lt_cv_file_magic_cmd=/usr/bin/file 6426 case $host_cpu in 6427 ia64*) 6428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6429 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6430 ;; 6431 hppa*64*) 6432 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]' 6433 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6434 ;; 6435 *) 6436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6437 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6438 ;; 6439 esac 6440 ;; 6441 6442interix[3-9]*) 6443 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6445 ;; 6446 6447irix5* | irix6* | nonstopux*) 6448 case $LD in 6449 *-32|*"-32 ") libmagic=32-bit;; 6450 *-n32|*"-n32 ") libmagic=N32;; 6451 *-64|*"-64 ") libmagic=64-bit;; 6452 *) libmagic=never-match;; 6453 esac 6454 lt_cv_deplibs_check_method=pass_all 6455 ;; 6456 6457# This must be Linux ELF. 6458linux* | k*bsd*-gnu) 6459 lt_cv_deplibs_check_method=pass_all 6460 ;; 6461 6462netbsd*) 6463 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6465 else 6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6467 fi 6468 ;; 6469 6470newos6*) 6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6472 lt_cv_file_magic_cmd=/usr/bin/file 6473 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6474 ;; 6475 6476*nto* | *qnx*) 6477 lt_cv_deplibs_check_method=pass_all 6478 ;; 6479 6480openbsd*) 6481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6483 else 6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6485 fi 6486 ;; 6487 6488osf3* | osf4* | osf5*) 6489 lt_cv_deplibs_check_method=pass_all 6490 ;; 6491 6492rdos*) 6493 lt_cv_deplibs_check_method=pass_all 6494 ;; 6495 6496solaris*) 6497 lt_cv_deplibs_check_method=pass_all 6498 ;; 6499 6500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6501 lt_cv_deplibs_check_method=pass_all 6502 ;; 6503 6504sysv4 | sysv4.3*) 6505 case $host_vendor in 6506 motorola) 6507 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]' 6508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6509 ;; 6510 ncr) 6511 lt_cv_deplibs_check_method=pass_all 6512 ;; 6513 sequent) 6514 lt_cv_file_magic_cmd='/bin/file' 6515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6516 ;; 6517 sni) 6518 lt_cv_file_magic_cmd='/bin/file' 6519 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6520 lt_cv_file_magic_test_file=/lib/libc.so 6521 ;; 6522 siemens) 6523 lt_cv_deplibs_check_method=pass_all 6524 ;; 6525 pc) 6526 lt_cv_deplibs_check_method=pass_all 6527 ;; 6528 esac 6529 ;; 6530 6531tpf*) 6532 lt_cv_deplibs_check_method=pass_all 6533 ;; 6534esac 6535 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6538$as_echo "$lt_cv_deplibs_check_method" >&6; } 6539file_magic_cmd=$lt_cv_file_magic_cmd 6540deplibs_check_method=$lt_cv_deplibs_check_method 6541test -z "$deplibs_check_method" && deplibs_check_method=unknown 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554if test -n "$ac_tool_prefix"; then 6555 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6556set dummy ${ac_tool_prefix}ar; ac_word=$2 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6558$as_echo_n "checking for $ac_word... " >&6; } 6559if ${ac_cv_prog_AR+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 if test -n "$AR"; then 6563 ac_cv_prog_AR="$AR" # Let the user override the test. 6564else 6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566for as_dir in $PATH 6567do 6568 IFS=$as_save_IFS 6569 test -z "$as_dir" && as_dir=. 6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6572 ac_cv_prog_AR="${ac_tool_prefix}ar" 6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6574 break 2 6575 fi 6576done 6577 done 6578IFS=$as_save_IFS 6579 6580fi 6581fi 6582AR=$ac_cv_prog_AR 6583if test -n "$AR"; then 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6585$as_echo "$AR" >&6; } 6586else 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6588$as_echo "no" >&6; } 6589fi 6590 6591 6592fi 6593if test -z "$ac_cv_prog_AR"; then 6594 ac_ct_AR=$AR 6595 # Extract the first word of "ar", so it can be a program name with args. 6596set dummy ar; ac_word=$2 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598$as_echo_n "checking for $ac_word... " >&6; } 6599if ${ac_cv_prog_ac_ct_AR+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 if test -n "$ac_ct_AR"; then 6603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_ac_ct_AR="ar" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622ac_ct_AR=$ac_cv_prog_ac_ct_AR 6623if test -n "$ac_ct_AR"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6625$as_echo "$ac_ct_AR" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 if test "x$ac_ct_AR" = x; then 6632 AR="false" 6633 else 6634 case $cross_compiling:$ac_tool_warned in 6635yes:) 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6638ac_tool_warned=yes ;; 6639esac 6640 AR=$ac_ct_AR 6641 fi 6642else 6643 AR="$ac_cv_prog_AR" 6644fi 6645 6646test -z "$AR" && AR=ar 6647test -z "$AR_FLAGS" && AR_FLAGS=cru 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659if test -n "$ac_tool_prefix"; then 6660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6661set dummy ${ac_tool_prefix}strip; ac_word=$2 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6663$as_echo_n "checking for $ac_word... " >&6; } 6664if ${ac_cv_prog_STRIP+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666else 6667 if test -n "$STRIP"; then 6668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6669else 6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671for as_dir in $PATH 6672do 6673 IFS=$as_save_IFS 6674 test -z "$as_dir" && as_dir=. 6675 for ac_exec_ext in '' $ac_executable_extensions; do 6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6677 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6679 break 2 6680 fi 6681done 6682 done 6683IFS=$as_save_IFS 6684 6685fi 6686fi 6687STRIP=$ac_cv_prog_STRIP 6688if test -n "$STRIP"; then 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6690$as_echo "$STRIP" >&6; } 6691else 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6693$as_echo "no" >&6; } 6694fi 6695 6696 6697fi 6698if test -z "$ac_cv_prog_STRIP"; then 6699 ac_ct_STRIP=$STRIP 6700 # Extract the first word of "strip", so it can be a program name with args. 6701set dummy strip; ac_word=$2 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703$as_echo_n "checking for $ac_word... " >&6; } 6704if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 if test -n "$ac_ct_STRIP"; then 6708 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 test -z "$as_dir" && as_dir=. 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6717 ac_cv_prog_ac_ct_STRIP="strip" 6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi 6726fi 6727ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6728if test -n "$ac_ct_STRIP"; then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6730$as_echo "$ac_ct_STRIP" >&6; } 6731else 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734fi 6735 6736 if test "x$ac_ct_STRIP" = x; then 6737 STRIP=":" 6738 else 6739 case $cross_compiling:$ac_tool_warned in 6740yes:) 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6743ac_tool_warned=yes ;; 6744esac 6745 STRIP=$ac_ct_STRIP 6746 fi 6747else 6748 STRIP="$ac_cv_prog_STRIP" 6749fi 6750 6751test -z "$STRIP" && STRIP=: 6752 6753 6754 6755 6756 6757 6758if test -n "$ac_tool_prefix"; then 6759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6760set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6762$as_echo_n "checking for $ac_word... " >&6; } 6763if ${ac_cv_prog_RANLIB+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 if test -n "$RANLIB"; then 6767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6768else 6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6770for as_dir in $PATH 6771do 6772 IFS=$as_save_IFS 6773 test -z "$as_dir" && as_dir=. 6774 for ac_exec_ext in '' $ac_executable_extensions; do 6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6778 break 2 6779 fi 6780done 6781 done 6782IFS=$as_save_IFS 6783 6784fi 6785fi 6786RANLIB=$ac_cv_prog_RANLIB 6787if test -n "$RANLIB"; then 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6789$as_echo "$RANLIB" >&6; } 6790else 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6792$as_echo "no" >&6; } 6793fi 6794 6795 6796fi 6797if test -z "$ac_cv_prog_RANLIB"; then 6798 ac_ct_RANLIB=$RANLIB 6799 # Extract the first word of "ranlib", so it can be a program name with args. 6800set dummy ranlib; ac_word=$2 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802$as_echo_n "checking for $ac_word... " >&6; } 6803if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 if test -n "$ac_ct_RANLIB"; then 6807 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6808else 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6810for as_dir in $PATH 6811do 6812 IFS=$as_save_IFS 6813 test -z "$as_dir" && as_dir=. 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6816 ac_cv_prog_ac_ct_RANLIB="ranlib" 6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6827if test -n "$ac_ct_RANLIB"; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6829$as_echo "$ac_ct_RANLIB" >&6; } 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832$as_echo "no" >&6; } 6833fi 6834 6835 if test "x$ac_ct_RANLIB" = x; then 6836 RANLIB=":" 6837 else 6838 case $cross_compiling:$ac_tool_warned in 6839yes:) 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6842ac_tool_warned=yes ;; 6843esac 6844 RANLIB=$ac_ct_RANLIB 6845 fi 6846else 6847 RANLIB="$ac_cv_prog_RANLIB" 6848fi 6849 6850test -z "$RANLIB" && RANLIB=: 6851 6852 6853 6854 6855 6856 6857# Determine commands to create old-style static archives. 6858old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6859old_postinstall_cmds='chmod 644 $oldlib' 6860old_postuninstall_cmds= 6861 6862if test -n "$RANLIB"; then 6863 case $host_os in 6864 openbsd*) 6865 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6866 ;; 6867 *) 6868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6869 ;; 6870 esac 6871 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6872fi 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907# If no C compiler was specified, use CC. 6908LTCC=${LTCC-"$CC"} 6909 6910# If no C compiler flags were specified, use CFLAGS. 6911LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6912 6913# Allow CC to be a program name with arguments. 6914compiler=$CC 6915 6916 6917# Check for command to grab the raw symbol name followed by C symbol from nm. 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6919$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6920if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 6924# These are sane defaults that work on at least a few old systems. 6925# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6926 6927# Character class describing NM global symbol codes. 6928symcode='[BCDEGRST]' 6929 6930# Regexp to match symbols that can be accessed directly from C. 6931sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6932 6933# Define system-specific variables. 6934case $host_os in 6935aix*) 6936 symcode='[BCDT]' 6937 ;; 6938cygwin* | mingw* | pw32* | cegcc*) 6939 symcode='[ABCDGISTW]' 6940 ;; 6941hpux*) 6942 if test "$host_cpu" = ia64; then 6943 symcode='[ABCDEGRST]' 6944 fi 6945 ;; 6946irix* | nonstopux*) 6947 symcode='[BCDEGRST]' 6948 ;; 6949osf*) 6950 symcode='[BCDEGQRST]' 6951 ;; 6952solaris*) 6953 symcode='[BDRT]' 6954 ;; 6955sco3.2v5*) 6956 symcode='[DT]' 6957 ;; 6958sysv4.2uw2*) 6959 symcode='[DT]' 6960 ;; 6961sysv5* | sco5v6* | unixware* | OpenUNIX*) 6962 symcode='[ABDT]' 6963 ;; 6964sysv4) 6965 symcode='[DFNSTU]' 6966 ;; 6967esac 6968 6969# If we're using GNU nm, then use its standard symbol codes. 6970case `$NM -V 2>&1` in 6971*GNU* | *'with BFD'*) 6972 symcode='[ABCDGIRSTW]' ;; 6973esac 6974 6975# Transform an extracted symbol line into a proper C declaration. 6976# Some systems (esp. on ia64) link data and code symbols differently, 6977# so use this general approach. 6978lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6979 6980# Transform an extracted symbol line into symbol name and symbol address 6981lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6982lt_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'" 6983 6984# Handle CRLF in mingw tool chain 6985opt_cr= 6986case $build_os in 6987mingw*) 6988 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6989 ;; 6990esac 6991 6992# Try without a prefix underscore, then with it. 6993for ac_symprfx in "" "_"; do 6994 6995 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6996 symxfrm="\\1 $ac_symprfx\\2 \\2" 6997 6998 # Write the raw and C identifiers. 6999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7000 # Fake it for dumpbin and say T for any non-static function 7001 # and D for any global variable. 7002 # Also find C++ and __fastcall symbols from MSVC++, 7003 # which start with @ or ?. 7004 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7005" {last_section=section; section=\$ 3};"\ 7006" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7007" \$ 0!~/External *\|/{next};"\ 7008" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7009" {if(hide[section]) next};"\ 7010" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7011" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7012" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7013" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7014" ' prfx=^$ac_symprfx" 7015 else 7016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7017 fi 7018 7019 # Check to see that the pipe works correctly. 7020 pipe_works=no 7021 7022 rm -f conftest* 7023 cat > conftest.$ac_ext <<_LT_EOF 7024#ifdef __cplusplus 7025extern "C" { 7026#endif 7027char nm_test_var; 7028void nm_test_func(void); 7029void nm_test_func(void){} 7030#ifdef __cplusplus 7031} 7032#endif 7033int main(){nm_test_var='a';nm_test_func();return(0);} 7034_LT_EOF 7035 7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7037 (eval $ac_compile) 2>&5 7038 ac_status=$? 7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7040 test $ac_status = 0; }; then 7041 # Now try to grab the symbols. 7042 nlist=conftest.nm 7043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7044 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7045 ac_status=$? 7046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7047 test $ac_status = 0; } && test -s "$nlist"; then 7048 # Try sorting and uniquifying the output. 7049 if sort "$nlist" | uniq > "$nlist"T; then 7050 mv -f "$nlist"T "$nlist" 7051 else 7052 rm -f "$nlist"T 7053 fi 7054 7055 # Make sure that we snagged all the symbols we need. 7056 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7057 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7058 cat <<_LT_EOF > conftest.$ac_ext 7059#ifdef __cplusplus 7060extern "C" { 7061#endif 7062 7063_LT_EOF 7064 # Now generate the symbol file. 7065 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7066 7067 cat <<_LT_EOF >> conftest.$ac_ext 7068 7069/* The mapping between symbol names and symbols. */ 7070const struct { 7071 const char *name; 7072 void *address; 7073} 7074lt__PROGRAM__LTX_preloaded_symbols[] = 7075{ 7076 { "@PROGRAM@", (void *) 0 }, 7077_LT_EOF 7078 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7079 cat <<\_LT_EOF >> conftest.$ac_ext 7080 {0, (void *) 0} 7081}; 7082 7083/* This works around a problem in FreeBSD linker */ 7084#ifdef FREEBSD_WORKAROUND 7085static const void *lt_preloaded_setup() { 7086 return lt__PROGRAM__LTX_preloaded_symbols; 7087} 7088#endif 7089 7090#ifdef __cplusplus 7091} 7092#endif 7093_LT_EOF 7094 # Now try linking the two files. 7095 mv conftest.$ac_objext conftstm.$ac_objext 7096 lt_save_LIBS="$LIBS" 7097 lt_save_CFLAGS="$CFLAGS" 7098 LIBS="conftstm.$ac_objext" 7099 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7101 (eval $ac_link) 2>&5 7102 ac_status=$? 7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7104 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7105 pipe_works=yes 7106 fi 7107 LIBS="$lt_save_LIBS" 7108 CFLAGS="$lt_save_CFLAGS" 7109 else 7110 echo "cannot find nm_test_func in $nlist" >&5 7111 fi 7112 else 7113 echo "cannot find nm_test_var in $nlist" >&5 7114 fi 7115 else 7116 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7117 fi 7118 else 7119 echo "$progname: failed program was:" >&5 7120 cat conftest.$ac_ext >&5 7121 fi 7122 rm -rf conftest* conftst* 7123 7124 # Do not use the global_symbol_pipe unless it works. 7125 if test "$pipe_works" = yes; then 7126 break 7127 else 7128 lt_cv_sys_global_symbol_pipe= 7129 fi 7130done 7131 7132fi 7133 7134if test -z "$lt_cv_sys_global_symbol_pipe"; then 7135 lt_cv_sys_global_symbol_to_cdecl= 7136fi 7137if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7139$as_echo "failed" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7142$as_echo "ok" >&6; } 7143fi 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166# Check whether --enable-libtool-lock was given. 7167if test "${enable_libtool_lock+set}" = set; then : 7168 enableval=$enable_libtool_lock; 7169fi 7170 7171test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7172 7173# Some flags need to be propagated to the compiler or linker for good 7174# libtool support. 7175case $host in 7176ia64-*-hpux*) 7177 # Find out which ABI we are using. 7178 echo 'int i;' > conftest.$ac_ext 7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7180 (eval $ac_compile) 2>&5 7181 ac_status=$? 7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7183 test $ac_status = 0; }; then 7184 case `/usr/bin/file conftest.$ac_objext` in 7185 *ELF-32*) 7186 HPUX_IA64_MODE="32" 7187 ;; 7188 *ELF-64*) 7189 HPUX_IA64_MODE="64" 7190 ;; 7191 esac 7192 fi 7193 rm -rf conftest* 7194 ;; 7195*-*-irix6*) 7196 # Find out which ABI we are using. 7197 echo '#line 7197 "configure"' > conftest.$ac_ext 7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7199 (eval $ac_compile) 2>&5 7200 ac_status=$? 7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7202 test $ac_status = 0; }; then 7203 if test "$lt_cv_prog_gnu_ld" = yes; then 7204 case `/usr/bin/file conftest.$ac_objext` in 7205 *32-bit*) 7206 LD="${LD-ld} -melf32bsmip" 7207 ;; 7208 *N32*) 7209 LD="${LD-ld} -melf32bmipn32" 7210 ;; 7211 *64-bit*) 7212 LD="${LD-ld} -melf64bmip" 7213 ;; 7214 esac 7215 else 7216 case `/usr/bin/file conftest.$ac_objext` in 7217 *32-bit*) 7218 LD="${LD-ld} -32" 7219 ;; 7220 *N32*) 7221 LD="${LD-ld} -n32" 7222 ;; 7223 *64-bit*) 7224 LD="${LD-ld} -64" 7225 ;; 7226 esac 7227 fi 7228 fi 7229 rm -rf conftest* 7230 ;; 7231 7232x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7233s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7234 # Find out which ABI we are using. 7235 echo 'int i;' > conftest.$ac_ext 7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7237 (eval $ac_compile) 2>&5 7238 ac_status=$? 7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7240 test $ac_status = 0; }; then 7241 case `/usr/bin/file conftest.o` in 7242 *32-bit*) 7243 case $host in 7244 x86_64-*kfreebsd*-gnu) 7245 LD="${LD-ld} -m elf_i386_fbsd" 7246 ;; 7247 x86_64-*linux*) 7248 LD="${LD-ld} -m elf_i386" 7249 ;; 7250 ppc64-*linux*|powerpc64-*linux*) 7251 LD="${LD-ld} -m elf32ppclinux" 7252 ;; 7253 s390x-*linux*) 7254 LD="${LD-ld} -m elf_s390" 7255 ;; 7256 sparc64-*linux*) 7257 LD="${LD-ld} -m elf32_sparc" 7258 ;; 7259 esac 7260 ;; 7261 *64-bit*) 7262 case $host in 7263 x86_64-*kfreebsd*-gnu) 7264 LD="${LD-ld} -m elf_x86_64_fbsd" 7265 ;; 7266 x86_64-*linux*) 7267 LD="${LD-ld} -m elf_x86_64" 7268 ;; 7269 ppc*-*linux*|powerpc*-*linux*) 7270 LD="${LD-ld} -m elf64ppc" 7271 ;; 7272 s390*-*linux*|s390*-*tpf*) 7273 LD="${LD-ld} -m elf64_s390" 7274 ;; 7275 sparc*-*linux*) 7276 LD="${LD-ld} -m elf64_sparc" 7277 ;; 7278 esac 7279 ;; 7280 esac 7281 fi 7282 rm -rf conftest* 7283 ;; 7284 7285*-*-sco3.2v5*) 7286 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7287 SAVE_CFLAGS="$CFLAGS" 7288 CFLAGS="$CFLAGS -belf" 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7290$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7291if ${lt_cv_cc_needs_belf+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 ac_ext=c 7295ac_cpp='$CPP $CPPFLAGS' 7296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7298ac_compiler_gnu=$ac_cv_c_compiler_gnu 7299 7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7301/* end confdefs.h. */ 7302 7303int 7304main () 7305{ 7306 7307 ; 7308 return 0; 7309} 7310_ACEOF 7311if ac_fn_c_try_link "$LINENO"; then : 7312 lt_cv_cc_needs_belf=yes 7313else 7314 lt_cv_cc_needs_belf=no 7315fi 7316rm -f core conftest.err conftest.$ac_objext \ 7317 conftest$ac_exeext conftest.$ac_ext 7318 ac_ext=c 7319ac_cpp='$CPP $CPPFLAGS' 7320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7322ac_compiler_gnu=$ac_cv_c_compiler_gnu 7323 7324fi 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7326$as_echo "$lt_cv_cc_needs_belf" >&6; } 7327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7329 CFLAGS="$SAVE_CFLAGS" 7330 fi 7331 ;; 7332sparc*-*solaris*) 7333 # Find out which ABI we are using. 7334 echo 'int i;' > conftest.$ac_ext 7335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7336 (eval $ac_compile) 2>&5 7337 ac_status=$? 7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7339 test $ac_status = 0; }; then 7340 case `/usr/bin/file conftest.o` in 7341 *64-bit*) 7342 case $lt_cv_prog_gnu_ld in 7343 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7344 *) 7345 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7346 LD="${LD-ld} -64" 7347 fi 7348 ;; 7349 esac 7350 ;; 7351 esac 7352 fi 7353 rm -rf conftest* 7354 ;; 7355esac 7356 7357need_locks="$enable_libtool_lock" 7358 7359 7360 case $host_os in 7361 rhapsody* | darwin*) 7362 if test -n "$ac_tool_prefix"; then 7363 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7364set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7366$as_echo_n "checking for $ac_word... " >&6; } 7367if ${ac_cv_prog_DSYMUTIL+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 if test -n "$DSYMUTIL"; then 7371 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7372else 7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374for as_dir in $PATH 7375do 7376 IFS=$as_save_IFS 7377 test -z "$as_dir" && as_dir=. 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7380 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384done 7385 done 7386IFS=$as_save_IFS 7387 7388fi 7389fi 7390DSYMUTIL=$ac_cv_prog_DSYMUTIL 7391if test -n "$DSYMUTIL"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7393$as_echo "$DSYMUTIL" >&6; } 7394else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396$as_echo "no" >&6; } 7397fi 7398 7399 7400fi 7401if test -z "$ac_cv_prog_DSYMUTIL"; then 7402 ac_ct_DSYMUTIL=$DSYMUTIL 7403 # Extract the first word of "dsymutil", so it can be a program name with args. 7404set dummy dsymutil; ac_word=$2 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406$as_echo_n "checking for $ac_word... " >&6; } 7407if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 if test -n "$ac_ct_DSYMUTIL"; then 7411 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7412else 7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7414for as_dir in $PATH 7415do 7416 IFS=$as_save_IFS 7417 test -z "$as_dir" && as_dir=. 7418 for ac_exec_ext in '' $ac_executable_extensions; do 7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7420 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7422 break 2 7423 fi 7424done 7425 done 7426IFS=$as_save_IFS 7427 7428fi 7429fi 7430ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7431if test -n "$ac_ct_DSYMUTIL"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7433$as_echo "$ac_ct_DSYMUTIL" >&6; } 7434else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436$as_echo "no" >&6; } 7437fi 7438 7439 if test "x$ac_ct_DSYMUTIL" = x; then 7440 DSYMUTIL=":" 7441 else 7442 case $cross_compiling:$ac_tool_warned in 7443yes:) 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7446ac_tool_warned=yes ;; 7447esac 7448 DSYMUTIL=$ac_ct_DSYMUTIL 7449 fi 7450else 7451 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7452fi 7453 7454 if test -n "$ac_tool_prefix"; then 7455 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7456set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7458$as_echo_n "checking for $ac_word... " >&6; } 7459if ${ac_cv_prog_NMEDIT+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 if test -n "$NMEDIT"; then 7463 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7464else 7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466for as_dir in $PATH 7467do 7468 IFS=$as_save_IFS 7469 test -z "$as_dir" && as_dir=. 7470 for ac_exec_ext in '' $ac_executable_extensions; do 7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7472 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7474 break 2 7475 fi 7476done 7477 done 7478IFS=$as_save_IFS 7479 7480fi 7481fi 7482NMEDIT=$ac_cv_prog_NMEDIT 7483if test -n "$NMEDIT"; then 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7485$as_echo "$NMEDIT" >&6; } 7486else 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7488$as_echo "no" >&6; } 7489fi 7490 7491 7492fi 7493if test -z "$ac_cv_prog_NMEDIT"; then 7494 ac_ct_NMEDIT=$NMEDIT 7495 # Extract the first word of "nmedit", so it can be a program name with args. 7496set dummy nmedit; ac_word=$2 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7498$as_echo_n "checking for $ac_word... " >&6; } 7499if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7500 $as_echo_n "(cached) " >&6 7501else 7502 if test -n "$ac_ct_NMEDIT"; then 7503 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7504else 7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506for as_dir in $PATH 7507do 7508 IFS=$as_save_IFS 7509 test -z "$as_dir" && as_dir=. 7510 for ac_exec_ext in '' $ac_executable_extensions; do 7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7512 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7514 break 2 7515 fi 7516done 7517 done 7518IFS=$as_save_IFS 7519 7520fi 7521fi 7522ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7523if test -n "$ac_ct_NMEDIT"; then 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7525$as_echo "$ac_ct_NMEDIT" >&6; } 7526else 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7528$as_echo "no" >&6; } 7529fi 7530 7531 if test "x$ac_ct_NMEDIT" = x; then 7532 NMEDIT=":" 7533 else 7534 case $cross_compiling:$ac_tool_warned in 7535yes:) 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7538ac_tool_warned=yes ;; 7539esac 7540 NMEDIT=$ac_ct_NMEDIT 7541 fi 7542else 7543 NMEDIT="$ac_cv_prog_NMEDIT" 7544fi 7545 7546 if test -n "$ac_tool_prefix"; then 7547 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7548set dummy ${ac_tool_prefix}lipo; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if ${ac_cv_prog_LIPO+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$LIPO"; then 7555 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574LIPO=$ac_cv_prog_LIPO 7575if test -n "$LIPO"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7577$as_echo "$LIPO" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 7584fi 7585if test -z "$ac_cv_prog_LIPO"; then 7586 ac_ct_LIPO=$LIPO 7587 # Extract the first word of "lipo", so it can be a program name with args. 7588set dummy lipo; ac_word=$2 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590$as_echo_n "checking for $ac_word... " >&6; } 7591if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 if test -n "$ac_ct_LIPO"; then 7595 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7596else 7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598for as_dir in $PATH 7599do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7604 ac_cv_prog_ac_ct_LIPO="lipo" 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608done 7609 done 7610IFS=$as_save_IFS 7611 7612fi 7613fi 7614ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7615if test -n "$ac_ct_LIPO"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7617$as_echo "$ac_ct_LIPO" >&6; } 7618else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620$as_echo "no" >&6; } 7621fi 7622 7623 if test "x$ac_ct_LIPO" = x; then 7624 LIPO=":" 7625 else 7626 case $cross_compiling:$ac_tool_warned in 7627yes:) 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7630ac_tool_warned=yes ;; 7631esac 7632 LIPO=$ac_ct_LIPO 7633 fi 7634else 7635 LIPO="$ac_cv_prog_LIPO" 7636fi 7637 7638 if test -n "$ac_tool_prefix"; then 7639 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7640set dummy ${ac_tool_prefix}otool; ac_word=$2 7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7642$as_echo_n "checking for $ac_word... " >&6; } 7643if ${ac_cv_prog_OTOOL+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 if test -n "$OTOOL"; then 7647 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7648else 7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7650for as_dir in $PATH 7651do 7652 IFS=$as_save_IFS 7653 test -z "$as_dir" && as_dir=. 7654 for ac_exec_ext in '' $ac_executable_extensions; do 7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7656 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7658 break 2 7659 fi 7660done 7661 done 7662IFS=$as_save_IFS 7663 7664fi 7665fi 7666OTOOL=$ac_cv_prog_OTOOL 7667if test -n "$OTOOL"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7669$as_echo "$OTOOL" >&6; } 7670else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672$as_echo "no" >&6; } 7673fi 7674 7675 7676fi 7677if test -z "$ac_cv_prog_OTOOL"; then 7678 ac_ct_OTOOL=$OTOOL 7679 # Extract the first word of "otool", so it can be a program name with args. 7680set dummy otool; ac_word=$2 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7682$as_echo_n "checking for $ac_word... " >&6; } 7683if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 if test -n "$ac_ct_OTOOL"; then 7687 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7688else 7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7690for as_dir in $PATH 7691do 7692 IFS=$as_save_IFS 7693 test -z "$as_dir" && as_dir=. 7694 for ac_exec_ext in '' $ac_executable_extensions; do 7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7696 ac_cv_prog_ac_ct_OTOOL="otool" 7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7698 break 2 7699 fi 7700done 7701 done 7702IFS=$as_save_IFS 7703 7704fi 7705fi 7706ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7707if test -n "$ac_ct_OTOOL"; then 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7709$as_echo "$ac_ct_OTOOL" >&6; } 7710else 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7712$as_echo "no" >&6; } 7713fi 7714 7715 if test "x$ac_ct_OTOOL" = x; then 7716 OTOOL=":" 7717 else 7718 case $cross_compiling:$ac_tool_warned in 7719yes:) 7720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7722ac_tool_warned=yes ;; 7723esac 7724 OTOOL=$ac_ct_OTOOL 7725 fi 7726else 7727 OTOOL="$ac_cv_prog_OTOOL" 7728fi 7729 7730 if test -n "$ac_tool_prefix"; then 7731 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7732set dummy ${ac_tool_prefix}otool64; ac_word=$2 7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7734$as_echo_n "checking for $ac_word... " >&6; } 7735if ${ac_cv_prog_OTOOL64+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 if test -n "$OTOOL64"; then 7739 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7740else 7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7742for as_dir in $PATH 7743do 7744 IFS=$as_save_IFS 7745 test -z "$as_dir" && as_dir=. 7746 for ac_exec_ext in '' $ac_executable_extensions; do 7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7748 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7750 break 2 7751 fi 7752done 7753 done 7754IFS=$as_save_IFS 7755 7756fi 7757fi 7758OTOOL64=$ac_cv_prog_OTOOL64 7759if test -n "$OTOOL64"; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7761$as_echo "$OTOOL64" >&6; } 7762else 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7764$as_echo "no" >&6; } 7765fi 7766 7767 7768fi 7769if test -z "$ac_cv_prog_OTOOL64"; then 7770 ac_ct_OTOOL64=$OTOOL64 7771 # Extract the first word of "otool64", so it can be a program name with args. 7772set dummy otool64; ac_word=$2 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7774$as_echo_n "checking for $ac_word... " >&6; } 7775if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 if test -n "$ac_ct_OTOOL64"; then 7779 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7780else 7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782for as_dir in $PATH 7783do 7784 IFS=$as_save_IFS 7785 test -z "$as_dir" && as_dir=. 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7788 ac_cv_prog_ac_ct_OTOOL64="otool64" 7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792done 7793 done 7794IFS=$as_save_IFS 7795 7796fi 7797fi 7798ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7799if test -n "$ac_ct_OTOOL64"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7801$as_echo "$ac_ct_OTOOL64" >&6; } 7802else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804$as_echo "no" >&6; } 7805fi 7806 7807 if test "x$ac_ct_OTOOL64" = x; then 7808 OTOOL64=":" 7809 else 7810 case $cross_compiling:$ac_tool_warned in 7811yes:) 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7814ac_tool_warned=yes ;; 7815esac 7816 OTOOL64=$ac_ct_OTOOL64 7817 fi 7818else 7819 OTOOL64="$ac_cv_prog_OTOOL64" 7820fi 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7849$as_echo_n "checking for -single_module linker flag... " >&6; } 7850if ${lt_cv_apple_cc_single_mod+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 lt_cv_apple_cc_single_mod=no 7854 if test -z "${LT_MULTI_MODULE}"; then 7855 # By default we will add the -single_module flag. You can override 7856 # by either setting the environment variable LT_MULTI_MODULE 7857 # non-empty at configure time, or by adding -multi_module to the 7858 # link flags. 7859 rm -rf libconftest.dylib* 7860 echo "int foo(void){return 1;}" > conftest.c 7861 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7862-dynamiclib -Wl,-single_module conftest.c" >&5 7863 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7864 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7865 _lt_result=$? 7866 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7867 lt_cv_apple_cc_single_mod=yes 7868 else 7869 cat conftest.err >&5 7870 fi 7871 rm -rf libconftest.dylib* 7872 rm -f conftest.* 7873 fi 7874fi 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7876$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7878$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7879if ${lt_cv_ld_exported_symbols_list+:} false; then : 7880 $as_echo_n "(cached) " >&6 7881else 7882 lt_cv_ld_exported_symbols_list=no 7883 save_LDFLAGS=$LDFLAGS 7884 echo "_main" > conftest.sym 7885 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7887/* end confdefs.h. */ 7888 7889int 7890main () 7891{ 7892 7893 ; 7894 return 0; 7895} 7896_ACEOF 7897if ac_fn_c_try_link "$LINENO"; then : 7898 lt_cv_ld_exported_symbols_list=yes 7899else 7900 lt_cv_ld_exported_symbols_list=no 7901fi 7902rm -f core conftest.err conftest.$ac_objext \ 7903 conftest$ac_exeext conftest.$ac_ext 7904 LDFLAGS="$save_LDFLAGS" 7905 7906fi 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7908$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7909 case $host_os in 7910 rhapsody* | darwin1.[012]) 7911 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7912 darwin1.*) 7913 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7914 darwin*) # darwin 5.x on 7915 # if running on 10.5 or later, the deployment target defaults 7916 # to the OS version, if on x86, and 10.4, the deployment 7917 # target defaults to 10.4. Don't you love it? 7918 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7919 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7920 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7921 10.[012]*) 7922 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7923 10.*) 7924 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7925 esac 7926 ;; 7927 esac 7928 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7929 _lt_dar_single_mod='$single_module' 7930 fi 7931 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7932 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7933 else 7934 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7935 fi 7936 if test "$DSYMUTIL" != ":"; then 7937 _lt_dsymutil='~$DSYMUTIL $lib || :' 7938 else 7939 _lt_dsymutil= 7940 fi 7941 ;; 7942 esac 7943 7944for ac_header in dlfcn.h 7945do : 7946 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7947" 7948if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7949 cat >>confdefs.h <<_ACEOF 7950#define HAVE_DLFCN_H 1 7951_ACEOF 7952 7953fi 7954 7955done 7956 7957 7958 7959# Set options 7960# Check whether --enable-static was given. 7961if test "${enable_static+set}" = set; then : 7962 enableval=$enable_static; p=${PACKAGE-default} 7963 case $enableval in 7964 yes) enable_static=yes ;; 7965 no) enable_static=no ;; 7966 *) 7967 enable_static=no 7968 # Look at the argument we got. We use all the common list separators. 7969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7970 for pkg in $enableval; do 7971 IFS="$lt_save_ifs" 7972 if test "X$pkg" = "X$p"; then 7973 enable_static=yes 7974 fi 7975 done 7976 IFS="$lt_save_ifs" 7977 ;; 7978 esac 7979else 7980 enable_static=no 7981fi 7982 7983 7984 7985 7986 7987 7988 7989 7990# Check whether --with-pic was given. 7991if test "${with_pic+set}" = set; then : 7992 withval=$with_pic; pic_mode="$withval" 7993else 7994 pic_mode=default 7995fi 7996 7997 7998test -z "$pic_mode" && pic_mode=yes 7999 8000 8001 8002 8003 8004 8005 8006 8007 enable_dlopen=no 8008 8009 8010 enable_win32_dll=no 8011 8012 8013 # Check whether --enable-shared was given. 8014if test "${enable_shared+set}" = set; then : 8015 enableval=$enable_shared; p=${PACKAGE-default} 8016 case $enableval in 8017 yes) enable_shared=yes ;; 8018 no) enable_shared=no ;; 8019 *) 8020 enable_shared=no 8021 # Look at the argument we got. We use all the common list separators. 8022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8023 for pkg in $enableval; do 8024 IFS="$lt_save_ifs" 8025 if test "X$pkg" = "X$p"; then 8026 enable_shared=yes 8027 fi 8028 done 8029 IFS="$lt_save_ifs" 8030 ;; 8031 esac 8032else 8033 enable_shared=yes 8034fi 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 # Check whether --enable-fast-install was given. 8047if test "${enable_fast_install+set}" = set; then : 8048 enableval=$enable_fast_install; p=${PACKAGE-default} 8049 case $enableval in 8050 yes) enable_fast_install=yes ;; 8051 no) enable_fast_install=no ;; 8052 *) 8053 enable_fast_install=no 8054 # Look at the argument we got. We use all the common list separators. 8055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8056 for pkg in $enableval; do 8057 IFS="$lt_save_ifs" 8058 if test "X$pkg" = "X$p"; then 8059 enable_fast_install=yes 8060 fi 8061 done 8062 IFS="$lt_save_ifs" 8063 ;; 8064 esac 8065else 8066 enable_fast_install=yes 8067fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079# This can be used to rebuild libtool when needed 8080LIBTOOL_DEPS="$ltmain" 8081 8082# Always use our own libtool. 8083LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109test -z "$LN_S" && LN_S="ln -s" 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124if test -n "${ZSH_VERSION+set}" ; then 8125 setopt NO_GLOB_SUBST 8126fi 8127 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8129$as_echo_n "checking for objdir... " >&6; } 8130if ${lt_cv_objdir+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 rm -f .libs 2>/dev/null 8134mkdir .libs 2>/dev/null 8135if test -d .libs; then 8136 lt_cv_objdir=.libs 8137else 8138 # MS-DOS does not allow filenames that begin with a dot. 8139 lt_cv_objdir=_libs 8140fi 8141rmdir .libs 2>/dev/null 8142fi 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8144$as_echo "$lt_cv_objdir" >&6; } 8145objdir=$lt_cv_objdir 8146 8147 8148 8149 8150 8151cat >>confdefs.h <<_ACEOF 8152#define LT_OBJDIR "$lt_cv_objdir/" 8153_ACEOF 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171case $host_os in 8172aix3*) 8173 # AIX sometimes has problems with the GCC collect2 program. For some 8174 # reason, if we set the COLLECT_NAMES environment variable, the problems 8175 # vanish in a puff of smoke. 8176 if test "X${COLLECT_NAMES+set}" != Xset; then 8177 COLLECT_NAMES= 8178 export COLLECT_NAMES 8179 fi 8180 ;; 8181esac 8182 8183# Sed substitution that helps us do robust quoting. It backslashifies 8184# metacharacters that are still active within double-quoted strings. 8185sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8186 8187# Same as above, but do not quote variable references. 8188double_quote_subst='s/\(["`\\]\)/\\\1/g' 8189 8190# Sed substitution to delay expansion of an escaped shell variable in a 8191# double_quote_subst'ed string. 8192delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8193 8194# Sed substitution to delay expansion of an escaped single quote. 8195delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8196 8197# Sed substitution to avoid accidental globbing in evaled expressions 8198no_glob_subst='s/\*/\\\*/g' 8199 8200# Global variables: 8201ofile=libtool 8202can_build_shared=yes 8203 8204# All known linkers require a `.a' archive for static linking (except MSVC, 8205# which needs '.lib'). 8206libext=a 8207 8208with_gnu_ld="$lt_cv_prog_gnu_ld" 8209 8210old_CC="$CC" 8211old_CFLAGS="$CFLAGS" 8212 8213# Set sane defaults for various variables 8214test -z "$CC" && CC=cc 8215test -z "$LTCC" && LTCC=$CC 8216test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8217test -z "$LD" && LD=ld 8218test -z "$ac_objext" && ac_objext=o 8219 8220for cc_temp in $compiler""; do 8221 case $cc_temp in 8222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8224 \-*) ;; 8225 *) break;; 8226 esac 8227done 8228cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8229 8230 8231# Only perform the check for file, if the check method requires it 8232test -z "$MAGIC_CMD" && MAGIC_CMD=file 8233case $deplibs_check_method in 8234file_magic*) 8235 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8237$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8238if ${lt_cv_path_MAGIC_CMD+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 case $MAGIC_CMD in 8242[\\/*] | ?:[\\/]*) 8243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8244 ;; 8245*) 8246 lt_save_MAGIC_CMD="$MAGIC_CMD" 8247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8248 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8249 for ac_dir in $ac_dummy; do 8250 IFS="$lt_save_ifs" 8251 test -z "$ac_dir" && ac_dir=. 8252 if test -f $ac_dir/${ac_tool_prefix}file; then 8253 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8254 if test -n "$file_magic_test_file"; then 8255 case $deplibs_check_method in 8256 "file_magic "*) 8257 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8260 $EGREP "$file_magic_regex" > /dev/null; then 8261 : 8262 else 8263 cat <<_LT_EOF 1>&2 8264 8265*** Warning: the command libtool uses to detect shared libraries, 8266*** $file_magic_cmd, produces output that libtool cannot recognize. 8267*** The result is that libtool may fail to recognize shared libraries 8268*** as such. This will affect the creation of libtool libraries that 8269*** depend on shared libraries, but programs linked with such libtool 8270*** libraries will work regardless of this problem. Nevertheless, you 8271*** may want to report the problem to your system manager and/or to 8272*** bug-libtool@gnu.org 8273 8274_LT_EOF 8275 fi ;; 8276 esac 8277 fi 8278 break 8279 fi 8280 done 8281 IFS="$lt_save_ifs" 8282 MAGIC_CMD="$lt_save_MAGIC_CMD" 8283 ;; 8284esac 8285fi 8286 8287MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8288if test -n "$MAGIC_CMD"; then 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8290$as_echo "$MAGIC_CMD" >&6; } 8291else 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8293$as_echo "no" >&6; } 8294fi 8295 8296 8297 8298 8299 8300if test -z "$lt_cv_path_MAGIC_CMD"; then 8301 if test -n "$ac_tool_prefix"; then 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8303$as_echo_n "checking for file... " >&6; } 8304if ${lt_cv_path_MAGIC_CMD+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 case $MAGIC_CMD in 8308[\\/*] | ?:[\\/]*) 8309 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8310 ;; 8311*) 8312 lt_save_MAGIC_CMD="$MAGIC_CMD" 8313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8314 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8315 for ac_dir in $ac_dummy; do 8316 IFS="$lt_save_ifs" 8317 test -z "$ac_dir" && ac_dir=. 8318 if test -f $ac_dir/file; then 8319 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8320 if test -n "$file_magic_test_file"; then 8321 case $deplibs_check_method in 8322 "file_magic "*) 8323 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8325 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8326 $EGREP "$file_magic_regex" > /dev/null; then 8327 : 8328 else 8329 cat <<_LT_EOF 1>&2 8330 8331*** Warning: the command libtool uses to detect shared libraries, 8332*** $file_magic_cmd, produces output that libtool cannot recognize. 8333*** The result is that libtool may fail to recognize shared libraries 8334*** as such. This will affect the creation of libtool libraries that 8335*** depend on shared libraries, but programs linked with such libtool 8336*** libraries will work regardless of this problem. Nevertheless, you 8337*** may want to report the problem to your system manager and/or to 8338*** bug-libtool@gnu.org 8339 8340_LT_EOF 8341 fi ;; 8342 esac 8343 fi 8344 break 8345 fi 8346 done 8347 IFS="$lt_save_ifs" 8348 MAGIC_CMD="$lt_save_MAGIC_CMD" 8349 ;; 8350esac 8351fi 8352 8353MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8354if test -n "$MAGIC_CMD"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8356$as_echo "$MAGIC_CMD" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 8363 else 8364 MAGIC_CMD=: 8365 fi 8366fi 8367 8368 fi 8369 ;; 8370esac 8371 8372# Use C for the default configuration in the libtool script 8373 8374lt_save_CC="$CC" 8375ac_ext=c 8376ac_cpp='$CPP $CPPFLAGS' 8377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8379ac_compiler_gnu=$ac_cv_c_compiler_gnu 8380 8381 8382# Source file extension for C test sources. 8383ac_ext=c 8384 8385# Object file extension for compiled C test sources. 8386objext=o 8387objext=$objext 8388 8389# Code to be used in simple compile tests 8390lt_simple_compile_test_code="int some_variable = 0;" 8391 8392# Code to be used in simple link tests 8393lt_simple_link_test_code='int main(){return(0);}' 8394 8395 8396 8397 8398 8399 8400 8401# If no C compiler was specified, use CC. 8402LTCC=${LTCC-"$CC"} 8403 8404# If no C compiler flags were specified, use CFLAGS. 8405LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8406 8407# Allow CC to be a program name with arguments. 8408compiler=$CC 8409 8410# Save the default compiler, since it gets overwritten when the other 8411# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8412compiler_DEFAULT=$CC 8413 8414# save warnings/boilerplate of simple test code 8415ac_outfile=conftest.$ac_objext 8416echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8417eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8418_lt_compiler_boilerplate=`cat conftest.err` 8419$RM conftest* 8420 8421ac_outfile=conftest.$ac_objext 8422echo "$lt_simple_link_test_code" >conftest.$ac_ext 8423eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8424_lt_linker_boilerplate=`cat conftest.err` 8425$RM -r conftest* 8426 8427 8428## CAVEAT EMPTOR: 8429## There is no encapsulation within the following macros, do not change 8430## the running order or otherwise move them around unless you know exactly 8431## what you are doing... 8432if test -n "$compiler"; then 8433 8434lt_prog_compiler_no_builtin_flag= 8435 8436if test "$GCC" = yes; then 8437 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8438 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8440$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8441if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8442 $as_echo_n "(cached) " >&6 8443else 8444 lt_cv_prog_compiler_rtti_exceptions=no 8445 ac_outfile=conftest.$ac_objext 8446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8447 lt_compiler_flag="-fno-rtti -fno-exceptions" 8448 # Insert the option either (1) after the last *FLAGS variable, or 8449 # (2) before a word containing "conftest.", or (3) at the end. 8450 # Note that $ac_compile itself does not contain backslashes and begins 8451 # with a dollar sign (not a hyphen), so the echo should work correctly. 8452 # The option is referenced via a variable to avoid confusing sed. 8453 lt_compile=`echo "$ac_compile" | $SED \ 8454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8456 -e 's:$: $lt_compiler_flag:'` 8457 (eval echo "\"\$as_me:8457: $lt_compile\"" >&5) 8458 (eval "$lt_compile" 2>conftest.err) 8459 ac_status=$? 8460 cat conftest.err >&5 8461 echo "$as_me:8461: \$? = $ac_status" >&5 8462 if (exit $ac_status) && test -s "$ac_outfile"; then 8463 # The compiler can only warn and ignore the option if not recognized 8464 # So say no if there are warnings other than the usual output. 8465 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8468 lt_cv_prog_compiler_rtti_exceptions=yes 8469 fi 8470 fi 8471 $RM conftest* 8472 8473fi 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8475$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8476 8477if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8478 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8479else 8480 : 8481fi 8482 8483fi 8484 8485 8486 8487 8488 8489 8490 lt_prog_compiler_wl= 8491lt_prog_compiler_pic= 8492lt_prog_compiler_static= 8493 8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8495$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8496 8497 if test "$GCC" = yes; then 8498 lt_prog_compiler_wl='-Wl,' 8499 lt_prog_compiler_static='-static' 8500 8501 case $host_os in 8502 aix*) 8503 # All AIX code is PIC. 8504 if test "$host_cpu" = ia64; then 8505 # AIX 5 now supports IA64 processor 8506 lt_prog_compiler_static='-Bstatic' 8507 fi 8508 ;; 8509 8510 amigaos*) 8511 case $host_cpu in 8512 powerpc) 8513 # see comment about AmigaOS4 .so support 8514 lt_prog_compiler_pic='-fPIC' 8515 ;; 8516 m68k) 8517 # FIXME: we need at least 68020 code to build shared libraries, but 8518 # adding the `-m68020' flag to GCC prevents building anything better, 8519 # like `-m68040'. 8520 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8521 ;; 8522 esac 8523 ;; 8524 8525 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8526 # PIC is the default for these OSes. 8527 ;; 8528 8529 mingw* | cygwin* | pw32* | os2* | cegcc*) 8530 # This hack is so that the source file can tell whether it is being 8531 # built for inclusion in a dll (and should export symbols for example). 8532 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8533 # (--disable-auto-import) libraries 8534 lt_prog_compiler_pic='-DDLL_EXPORT' 8535 ;; 8536 8537 darwin* | rhapsody*) 8538 # PIC is the default on this platform 8539 # Common symbols not allowed in MH_DYLIB files 8540 lt_prog_compiler_pic='-fno-common' 8541 ;; 8542 8543 hpux*) 8544 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8545 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8546 # sets the default TLS model and affects inlining. 8547 case $host_cpu in 8548 hppa*64*) 8549 # +Z the default 8550 ;; 8551 *) 8552 lt_prog_compiler_pic='-fPIC' 8553 ;; 8554 esac 8555 ;; 8556 8557 interix[3-9]*) 8558 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8559 # Instead, we relocate shared libraries at runtime. 8560 ;; 8561 8562 msdosdjgpp*) 8563 # Just because we use GCC doesn't mean we suddenly get shared libraries 8564 # on systems that don't support them. 8565 lt_prog_compiler_can_build_shared=no 8566 enable_shared=no 8567 ;; 8568 8569 *nto* | *qnx*) 8570 # QNX uses GNU C++, but need to define -shared option too, otherwise 8571 # it will coredump. 8572 lt_prog_compiler_pic='-fPIC -shared' 8573 ;; 8574 8575 sysv4*MP*) 8576 if test -d /usr/nec; then 8577 lt_prog_compiler_pic=-Kconform_pic 8578 fi 8579 ;; 8580 8581 *) 8582 lt_prog_compiler_pic='-fPIC' 8583 ;; 8584 esac 8585 else 8586 # PORTME Check for flag to pass linker flags through the system compiler. 8587 case $host_os in 8588 aix*) 8589 lt_prog_compiler_wl='-Wl,' 8590 if test "$host_cpu" = ia64; then 8591 # AIX 5 now supports IA64 processor 8592 lt_prog_compiler_static='-Bstatic' 8593 else 8594 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8595 fi 8596 ;; 8597 8598 mingw* | cygwin* | pw32* | os2* | cegcc*) 8599 # This hack is so that the source file can tell whether it is being 8600 # built for inclusion in a dll (and should export symbols for example). 8601 lt_prog_compiler_pic='-DDLL_EXPORT' 8602 ;; 8603 8604 hpux9* | hpux10* | hpux11*) 8605 lt_prog_compiler_wl='-Wl,' 8606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8607 # not for PA HP-UX. 8608 case $host_cpu in 8609 hppa*64*|ia64*) 8610 # +Z the default 8611 ;; 8612 *) 8613 lt_prog_compiler_pic='+Z' 8614 ;; 8615 esac 8616 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8617 lt_prog_compiler_static='${wl}-a ${wl}archive' 8618 ;; 8619 8620 irix5* | irix6* | nonstopux*) 8621 lt_prog_compiler_wl='-Wl,' 8622 # PIC (with -KPIC) is the default. 8623 lt_prog_compiler_static='-non_shared' 8624 ;; 8625 8626 linux* | k*bsd*-gnu) 8627 case $cc_basename in 8628 # old Intel for x86_64 which still supported -KPIC. 8629 ecc*) 8630 lt_prog_compiler_wl='-Wl,' 8631 lt_prog_compiler_pic='-KPIC' 8632 lt_prog_compiler_static='-static' 8633 ;; 8634 # icc used to be incompatible with GCC. 8635 # ICC 10 doesn't accept -KPIC any more. 8636 icc* | ifort*) 8637 lt_prog_compiler_wl='-Wl,' 8638 lt_prog_compiler_pic='-fPIC' 8639 lt_prog_compiler_static='-static' 8640 ;; 8641 # Lahey Fortran 8.1. 8642 lf95*) 8643 lt_prog_compiler_wl='-Wl,' 8644 lt_prog_compiler_pic='--shared' 8645 lt_prog_compiler_static='--static' 8646 ;; 8647 pgcc* | pgf77* | pgf90* | pgf95*) 8648 # Portland Group compilers (*not* the Pentium gcc compiler, 8649 # which looks to be a dead project) 8650 lt_prog_compiler_wl='-Wl,' 8651 lt_prog_compiler_pic='-fpic' 8652 lt_prog_compiler_static='-Bstatic' 8653 ;; 8654 ccc*) 8655 lt_prog_compiler_wl='-Wl,' 8656 # All Alpha code is PIC. 8657 lt_prog_compiler_static='-non_shared' 8658 ;; 8659 xl*) 8660 # IBM XL C 8.0/Fortran 10.1 on PPC 8661 lt_prog_compiler_wl='-Wl,' 8662 lt_prog_compiler_pic='-qpic' 8663 lt_prog_compiler_static='-qstaticlink' 8664 ;; 8665 *) 8666 case `$CC -V 2>&1 | sed 5q` in 8667 *Sun\ C*) 8668 # Sun C 5.9 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 lt_prog_compiler_wl='-Wl,' 8672 ;; 8673 *Sun\ F*) 8674 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8675 lt_prog_compiler_pic='-KPIC' 8676 lt_prog_compiler_static='-Bstatic' 8677 lt_prog_compiler_wl='' 8678 ;; 8679 esac 8680 ;; 8681 esac 8682 ;; 8683 8684 newsos6) 8685 lt_prog_compiler_pic='-KPIC' 8686 lt_prog_compiler_static='-Bstatic' 8687 ;; 8688 8689 *nto* | *qnx*) 8690 # QNX uses GNU C++, but need to define -shared option too, otherwise 8691 # it will coredump. 8692 lt_prog_compiler_pic='-fPIC -shared' 8693 ;; 8694 8695 osf3* | osf4* | osf5*) 8696 lt_prog_compiler_wl='-Wl,' 8697 # All OSF/1 code is PIC. 8698 lt_prog_compiler_static='-non_shared' 8699 ;; 8700 8701 rdos*) 8702 lt_prog_compiler_static='-non_shared' 8703 ;; 8704 8705 solaris*) 8706 lt_prog_compiler_pic='-KPIC' 8707 lt_prog_compiler_static='-Bstatic' 8708 case $cc_basename in 8709 f77* | f90* | f95*) 8710 lt_prog_compiler_wl='-Qoption ld ';; 8711 *) 8712 lt_prog_compiler_wl='-Wl,';; 8713 esac 8714 ;; 8715 8716 sunos4*) 8717 lt_prog_compiler_wl='-Qoption ld ' 8718 lt_prog_compiler_pic='-PIC' 8719 lt_prog_compiler_static='-Bstatic' 8720 ;; 8721 8722 sysv4 | sysv4.2uw2* | sysv4.3*) 8723 lt_prog_compiler_wl='-Wl,' 8724 lt_prog_compiler_pic='-KPIC' 8725 lt_prog_compiler_static='-Bstatic' 8726 ;; 8727 8728 sysv4*MP*) 8729 if test -d /usr/nec ;then 8730 lt_prog_compiler_pic='-Kconform_pic' 8731 lt_prog_compiler_static='-Bstatic' 8732 fi 8733 ;; 8734 8735 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8736 lt_prog_compiler_wl='-Wl,' 8737 lt_prog_compiler_pic='-KPIC' 8738 lt_prog_compiler_static='-Bstatic' 8739 ;; 8740 8741 unicos*) 8742 lt_prog_compiler_wl='-Wl,' 8743 lt_prog_compiler_can_build_shared=no 8744 ;; 8745 8746 uts4*) 8747 lt_prog_compiler_pic='-pic' 8748 lt_prog_compiler_static='-Bstatic' 8749 ;; 8750 8751 *) 8752 lt_prog_compiler_can_build_shared=no 8753 ;; 8754 esac 8755 fi 8756 8757case $host_os in 8758 # For platforms which do not support PIC, -DPIC is meaningless: 8759 *djgpp*) 8760 lt_prog_compiler_pic= 8761 ;; 8762 *) 8763 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8764 ;; 8765esac 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8767$as_echo "$lt_prog_compiler_pic" >&6; } 8768 8769 8770 8771 8772 8773 8774# 8775# Check to make sure the PIC flag actually works. 8776# 8777if test -n "$lt_prog_compiler_pic"; then 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8779$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8780if ${lt_cv_prog_compiler_pic_works+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 lt_cv_prog_compiler_pic_works=no 8784 ac_outfile=conftest.$ac_objext 8785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8786 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8787 # Insert the option either (1) after the last *FLAGS variable, or 8788 # (2) before a word containing "conftest.", or (3) at the end. 8789 # Note that $ac_compile itself does not contain backslashes and begins 8790 # with a dollar sign (not a hyphen), so the echo should work correctly. 8791 # The option is referenced via a variable to avoid confusing sed. 8792 lt_compile=`echo "$ac_compile" | $SED \ 8793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8795 -e 's:$: $lt_compiler_flag:'` 8796 (eval echo "\"\$as_me:8796: $lt_compile\"" >&5) 8797 (eval "$lt_compile" 2>conftest.err) 8798 ac_status=$? 8799 cat conftest.err >&5 8800 echo "$as_me:8800: \$? = $ac_status" >&5 8801 if (exit $ac_status) && test -s "$ac_outfile"; then 8802 # The compiler can only warn and ignore the option if not recognized 8803 # So say no if there are warnings other than the usual output. 8804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8807 lt_cv_prog_compiler_pic_works=yes 8808 fi 8809 fi 8810 $RM conftest* 8811 8812fi 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8814$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8815 8816if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8817 case $lt_prog_compiler_pic in 8818 "" | " "*) ;; 8819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8820 esac 8821else 8822 lt_prog_compiler_pic= 8823 lt_prog_compiler_can_build_shared=no 8824fi 8825 8826fi 8827 8828 8829 8830 8831 8832 8833# 8834# Check to make sure the static flag actually works. 8835# 8836wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8838$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8839if ${lt_cv_prog_compiler_static_works+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 lt_cv_prog_compiler_static_works=no 8843 save_LDFLAGS="$LDFLAGS" 8844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8845 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8847 # The linker can only warn and ignore the option if not recognized 8848 # So say no if there are warnings 8849 if test -s conftest.err; then 8850 # Append any errors to the config.log. 8851 cat conftest.err 1>&5 8852 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8854 if diff conftest.exp conftest.er2 >/dev/null; then 8855 lt_cv_prog_compiler_static_works=yes 8856 fi 8857 else 8858 lt_cv_prog_compiler_static_works=yes 8859 fi 8860 fi 8861 $RM -r conftest* 8862 LDFLAGS="$save_LDFLAGS" 8863 8864fi 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8866$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8867 8868if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8869 : 8870else 8871 lt_prog_compiler_static= 8872fi 8873 8874 8875 8876 8877 8878 8879 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8881$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8882if ${lt_cv_prog_compiler_c_o+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 lt_cv_prog_compiler_c_o=no 8886 $RM -r conftest 2>/dev/null 8887 mkdir conftest 8888 cd conftest 8889 mkdir out 8890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8891 8892 lt_compiler_flag="-o out/conftest2.$ac_objext" 8893 # Insert the option either (1) after the last *FLAGS variable, or 8894 # (2) before a word containing "conftest.", or (3) at the end. 8895 # Note that $ac_compile itself does not contain backslashes and begins 8896 # with a dollar sign (not a hyphen), so the echo should work correctly. 8897 lt_compile=`echo "$ac_compile" | $SED \ 8898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8900 -e 's:$: $lt_compiler_flag:'` 8901 (eval echo "\"\$as_me:8901: $lt_compile\"" >&5) 8902 (eval "$lt_compile" 2>out/conftest.err) 8903 ac_status=$? 8904 cat out/conftest.err >&5 8905 echo "$as_me:8905: \$? = $ac_status" >&5 8906 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8907 then 8908 # The compiler can only warn and ignore the option if not recognized 8909 # So say no if there are warnings 8910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8913 lt_cv_prog_compiler_c_o=yes 8914 fi 8915 fi 8916 chmod u+w . 2>&5 8917 $RM conftest* 8918 # SGI C++ compiler will create directory out/ii_files/ for 8919 # template instantiation 8920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8921 $RM out/* && rmdir out 8922 cd .. 8923 $RM -r conftest 8924 $RM conftest* 8925 8926fi 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8928$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8929 8930 8931 8932 8933 8934 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8936$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8937if ${lt_cv_prog_compiler_c_o+:} false; then : 8938 $as_echo_n "(cached) " >&6 8939else 8940 lt_cv_prog_compiler_c_o=no 8941 $RM -r conftest 2>/dev/null 8942 mkdir conftest 8943 cd conftest 8944 mkdir out 8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8946 8947 lt_compiler_flag="-o out/conftest2.$ac_objext" 8948 # Insert the option either (1) after the last *FLAGS variable, or 8949 # (2) before a word containing "conftest.", or (3) at the end. 8950 # Note that $ac_compile itself does not contain backslashes and begins 8951 # with a dollar sign (not a hyphen), so the echo should work correctly. 8952 lt_compile=`echo "$ac_compile" | $SED \ 8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8955 -e 's:$: $lt_compiler_flag:'` 8956 (eval echo "\"\$as_me:8956: $lt_compile\"" >&5) 8957 (eval "$lt_compile" 2>out/conftest.err) 8958 ac_status=$? 8959 cat out/conftest.err >&5 8960 echo "$as_me:8960: \$? = $ac_status" >&5 8961 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8962 then 8963 # The compiler can only warn and ignore the option if not recognized 8964 # So say no if there are warnings 8965 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8968 lt_cv_prog_compiler_c_o=yes 8969 fi 8970 fi 8971 chmod u+w . 2>&5 8972 $RM conftest* 8973 # SGI C++ compiler will create directory out/ii_files/ for 8974 # template instantiation 8975 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8976 $RM out/* && rmdir out 8977 cd .. 8978 $RM -r conftest 8979 $RM conftest* 8980 8981fi 8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8983$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8984 8985 8986 8987 8988hard_links="nottested" 8989if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8990 # do not overwrite the value of need_locks provided by the user 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8992$as_echo_n "checking if we can lock with hard links... " >&6; } 8993 hard_links=yes 8994 $RM conftest* 8995 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8996 touch conftest.a 8997 ln conftest.a conftest.b 2>&5 || hard_links=no 8998 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9000$as_echo "$hard_links" >&6; } 9001 if test "$hard_links" = no; then 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9003$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9004 need_locks=warn 9005 fi 9006else 9007 need_locks=no 9008fi 9009 9010 9011 9012 9013 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9016$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9017 9018 runpath_var= 9019 allow_undefined_flag= 9020 always_export_symbols=no 9021 archive_cmds= 9022 archive_expsym_cmds= 9023 compiler_needs_object=no 9024 enable_shared_with_static_runtimes=no 9025 export_dynamic_flag_spec= 9026 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9027 hardcode_automatic=no 9028 hardcode_direct=no 9029 hardcode_direct_absolute=no 9030 hardcode_libdir_flag_spec= 9031 hardcode_libdir_flag_spec_ld= 9032 hardcode_libdir_separator= 9033 hardcode_minus_L=no 9034 hardcode_shlibpath_var=unsupported 9035 inherit_rpath=no 9036 link_all_deplibs=unknown 9037 module_cmds= 9038 module_expsym_cmds= 9039 old_archive_from_new_cmds= 9040 old_archive_from_expsyms_cmds= 9041 thread_safe_flag_spec= 9042 whole_archive_flag_spec= 9043 # include_expsyms should be a list of space-separated symbols to be *always* 9044 # included in the symbol list 9045 include_expsyms= 9046 # exclude_expsyms can be an extended regexp of symbols to exclude 9047 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9048 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9049 # as well as any symbol that contains `d'. 9050 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9051 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9052 # platforms (ab)use it in PIC code, but their linkers get confused if 9053 # the symbol is explicitly referenced. Since portable code cannot 9054 # rely on this symbol name, it's probably fine to never include it in 9055 # preloaded symbol tables. 9056 # Exclude shared library initialization/finalization symbols. 9057 extract_expsyms_cmds= 9058 9059 case $host_os in 9060 cygwin* | mingw* | pw32* | cegcc*) 9061 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9062 # When not using gcc, we currently assume that we are using 9063 # Microsoft Visual C++. 9064 if test "$GCC" != yes; then 9065 with_gnu_ld=no 9066 fi 9067 ;; 9068 interix*) 9069 # we just hope/assume this is gcc and not c89 (= MSVC++) 9070 with_gnu_ld=yes 9071 ;; 9072 openbsd*) 9073 with_gnu_ld=no 9074 ;; 9075 esac 9076 9077 ld_shlibs=yes 9078 if test "$with_gnu_ld" = yes; then 9079 # If archive_cmds runs LD, not CC, wlarc should be empty 9080 wlarc='${wl}' 9081 9082 # Set some defaults for GNU ld with shared library support. These 9083 # are reset later if shared libraries are not supported. Putting them 9084 # here allows them to be overridden if necessary. 9085 runpath_var=LD_RUN_PATH 9086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9087 export_dynamic_flag_spec='${wl}--export-dynamic' 9088 # ancient GNU ld didn't support --whole-archive et. al. 9089 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9090 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9091 else 9092 whole_archive_flag_spec= 9093 fi 9094 supports_anon_versioning=no 9095 case `$LD -v 2>&1` in 9096 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9099 *\ 2.11.*) ;; # other 2.11 versions 9100 *) supports_anon_versioning=yes ;; 9101 esac 9102 9103 # See if GNU ld supports shared libraries. 9104 case $host_os in 9105 aix[3-9]*) 9106 # On AIX/PPC, the GNU linker is very broken 9107 if test "$host_cpu" != ia64; then 9108 ld_shlibs=no 9109 cat <<_LT_EOF 1>&2 9110 9111*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9112*** to be unable to reliably create shared libraries on AIX. 9113*** Therefore, libtool is disabling shared libraries support. If you 9114*** really care for shared libraries, you may want to modify your PATH 9115*** so that a non-GNU linker is found, and then restart. 9116 9117_LT_EOF 9118 fi 9119 ;; 9120 9121 amigaos*) 9122 case $host_cpu in 9123 powerpc) 9124 # see comment about AmigaOS4 .so support 9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9126 archive_expsym_cmds='' 9127 ;; 9128 m68k) 9129 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)' 9130 hardcode_libdir_flag_spec='-L$libdir' 9131 hardcode_minus_L=yes 9132 ;; 9133 esac 9134 ;; 9135 9136 beos*) 9137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9138 allow_undefined_flag=unsupported 9139 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9140 # support --undefined. This deserves some investigation. FIXME 9141 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9142 else 9143 ld_shlibs=no 9144 fi 9145 ;; 9146 9147 cygwin* | mingw* | pw32* | cegcc*) 9148 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9149 # as there is no search path for DLLs. 9150 hardcode_libdir_flag_spec='-L$libdir' 9151 allow_undefined_flag=unsupported 9152 always_export_symbols=no 9153 enable_shared_with_static_runtimes=yes 9154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9155 9156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9158 # If the export-symbols file already is a .def file (1st line 9159 # is EXPORTS), use it as is; otherwise, prepend... 9160 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9161 cp $export_symbols $output_objdir/$soname.def; 9162 else 9163 echo EXPORTS > $output_objdir/$soname.def; 9164 cat $export_symbols >> $output_objdir/$soname.def; 9165 fi~ 9166 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9167 else 9168 ld_shlibs=no 9169 fi 9170 ;; 9171 9172 interix[3-9]*) 9173 hardcode_direct=no 9174 hardcode_shlibpath_var=no 9175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9176 export_dynamic_flag_spec='${wl}-E' 9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9178 # Instead, shared libraries are loaded at an image base (0x10000000 by 9179 # default) and relocated if they conflict, which is a slow very memory 9180 # consuming and fragmenting process. To avoid this, we pick a random, 9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9184 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' 9185 ;; 9186 9187 gnu* | linux* | tpf* | k*bsd*-gnu) 9188 tmp_diet=no 9189 if test "$host_os" = linux-dietlibc; then 9190 case $cc_basename in 9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9192 esac 9193 fi 9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9195 && test "$tmp_diet" = no 9196 then 9197 tmp_addflag= 9198 tmp_sharedflag='-shared' 9199 case $cc_basename,$host_cpu in 9200 pgcc*) # Portland Group C compiler 9201 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' 9202 tmp_addflag=' $pic_flag' 9203 ;; 9204 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9205 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' 9206 tmp_addflag=' $pic_flag -Mnomain' ;; 9207 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9208 tmp_addflag=' -i_dynamic' ;; 9209 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9210 tmp_addflag=' -i_dynamic -nofor_main' ;; 9211 ifc* | ifort*) # Intel Fortran compiler 9212 tmp_addflag=' -nofor_main' ;; 9213 lf95*) # Lahey Fortran 8.1 9214 whole_archive_flag_spec= 9215 tmp_sharedflag='--shared' ;; 9216 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9217 tmp_sharedflag='-qmkshrobj' 9218 tmp_addflag= ;; 9219 esac 9220 case `$CC -V 2>&1 | sed 5q` in 9221 *Sun\ C*) # Sun C 5.9 9222 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' 9223 compiler_needs_object=yes 9224 tmp_sharedflag='-G' ;; 9225 *Sun\ F*) # Sun Fortran 8.3 9226 tmp_sharedflag='-G' ;; 9227 esac 9228 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9229 9230 if test "x$supports_anon_versioning" = xyes; then 9231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9233 echo "local: *; };" >> $output_objdir/$libname.ver~ 9234 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9235 fi 9236 9237 case $cc_basename in 9238 xlf*) 9239 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9240 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9241 hardcode_libdir_flag_spec= 9242 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9243 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9244 if test "x$supports_anon_versioning" = xyes; then 9245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9247 echo "local: *; };" >> $output_objdir/$libname.ver~ 9248 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9249 fi 9250 ;; 9251 esac 9252 else 9253 ld_shlibs=no 9254 fi 9255 ;; 9256 9257 netbsd*) 9258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9259 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9260 wlarc= 9261 else 9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9264 fi 9265 ;; 9266 9267 solaris*) 9268 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9269 ld_shlibs=no 9270 cat <<_LT_EOF 1>&2 9271 9272*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9273*** create shared libraries on Solaris systems. Therefore, libtool 9274*** is disabling shared libraries support. We urge you to upgrade GNU 9275*** binutils to release 2.9.1 or newer. Another option is to modify 9276*** your PATH or compiler configuration so that the native linker is 9277*** used, and then restart. 9278 9279_LT_EOF 9280 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9283 else 9284 ld_shlibs=no 9285 fi 9286 ;; 9287 9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9289 case `$LD -v 2>&1` in 9290 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9291 ld_shlibs=no 9292 cat <<_LT_EOF 1>&2 9293 9294*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9295*** reliably create shared libraries on SCO systems. Therefore, libtool 9296*** is disabling shared libraries support. We urge you to upgrade GNU 9297*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9298*** your PATH or compiler configuration so that the native linker is 9299*** used, and then restart. 9300 9301_LT_EOF 9302 ;; 9303 *) 9304 # For security reasons, it is highly recommended that you always 9305 # use absolute paths for naming shared libraries, and exclude the 9306 # DT_RUNPATH tag from executables and libraries. But doing so 9307 # requires that you compile everything twice, which is a pain. 9308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9312 else 9313 ld_shlibs=no 9314 fi 9315 ;; 9316 esac 9317 ;; 9318 9319 sunos4*) 9320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9321 wlarc= 9322 hardcode_direct=yes 9323 hardcode_shlibpath_var=no 9324 ;; 9325 9326 *) 9327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9330 else 9331 ld_shlibs=no 9332 fi 9333 ;; 9334 esac 9335 9336 if test "$ld_shlibs" = no; then 9337 runpath_var= 9338 hardcode_libdir_flag_spec= 9339 export_dynamic_flag_spec= 9340 whole_archive_flag_spec= 9341 fi 9342 else 9343 # PORTME fill in a description of your system's linker (not GNU ld) 9344 case $host_os in 9345 aix3*) 9346 allow_undefined_flag=unsupported 9347 always_export_symbols=yes 9348 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' 9349 # Note: this linker hardcodes the directories in LIBPATH if there 9350 # are no directories specified by -L. 9351 hardcode_minus_L=yes 9352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9353 # Neither direct hardcoding nor static linking is supported with a 9354 # broken collect2. 9355 hardcode_direct=unsupported 9356 fi 9357 ;; 9358 9359 aix[4-9]*) 9360 if test "$host_cpu" = ia64; then 9361 # On IA64, the linker does run time linking by default, so we don't 9362 # have to do anything special. 9363 aix_use_runtimelinking=no 9364 exp_sym_flag='-Bexport' 9365 no_entry_flag="" 9366 else 9367 # If we're using GNU nm, then we don't want the "-C" option. 9368 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9370 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' 9371 else 9372 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' 9373 fi 9374 aix_use_runtimelinking=no 9375 9376 # Test if we are trying to use run time linking or normal 9377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9378 # need to do runtime linking. 9379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9380 for ld_flag in $LDFLAGS; do 9381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9382 aix_use_runtimelinking=yes 9383 break 9384 fi 9385 done 9386 ;; 9387 esac 9388 9389 exp_sym_flag='-bexport' 9390 no_entry_flag='-bnoentry' 9391 fi 9392 9393 # When large executables or shared objects are built, AIX ld can 9394 # have problems creating the table of contents. If linking a library 9395 # or program results in "error TOC overflow" add -mminimal-toc to 9396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9398 9399 archive_cmds='' 9400 hardcode_direct=yes 9401 hardcode_direct_absolute=yes 9402 hardcode_libdir_separator=':' 9403 link_all_deplibs=yes 9404 file_list_spec='${wl}-f,' 9405 9406 if test "$GCC" = yes; then 9407 case $host_os in aix4.[012]|aix4.[012].*) 9408 # We only want to do this on AIX 4.2 and lower, the check 9409 # below for broken collect2 doesn't work under 4.3+ 9410 collect2name=`${CC} -print-prog-name=collect2` 9411 if test -f "$collect2name" && 9412 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9413 then 9414 # We have reworked collect2 9415 : 9416 else 9417 # We have old collect2 9418 hardcode_direct=unsupported 9419 # It fails to find uninstalled libraries when the uninstalled 9420 # path is not listed in the libpath. Setting hardcode_minus_L 9421 # to unsupported forces relinking 9422 hardcode_minus_L=yes 9423 hardcode_libdir_flag_spec='-L$libdir' 9424 hardcode_libdir_separator= 9425 fi 9426 ;; 9427 esac 9428 shared_flag='-shared' 9429 if test "$aix_use_runtimelinking" = yes; then 9430 shared_flag="$shared_flag "'${wl}-G' 9431 fi 9432 else 9433 # not using gcc 9434 if test "$host_cpu" = ia64; then 9435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9436 # chokes on -Wl,-G. The following line is correct: 9437 shared_flag='-G' 9438 else 9439 if test "$aix_use_runtimelinking" = yes; then 9440 shared_flag='${wl}-G' 9441 else 9442 shared_flag='${wl}-bM:SRE' 9443 fi 9444 fi 9445 fi 9446 9447 export_dynamic_flag_spec='${wl}-bexpall' 9448 # It seems that -bexpall does not export symbols beginning with 9449 # underscore (_), so it is better to generate a list of symbols to export. 9450 always_export_symbols=yes 9451 if test "$aix_use_runtimelinking" = yes; then 9452 # Warning - without using the other runtime loading flags (-brtl), 9453 # -berok will link without error, but may produce a broken library. 9454 allow_undefined_flag='-berok' 9455 # Determine the default libpath from the value encoded in an 9456 # empty executable. 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459 9460int 9461main () 9462{ 9463 9464 ; 9465 return 0; 9466} 9467_ACEOF 9468if ac_fn_c_try_link "$LINENO"; then : 9469 9470lt_aix_libpath_sed=' 9471 /Import File Strings/,/^$/ { 9472 /^0/ { 9473 s/^0 *\(.*\)$/\1/ 9474 p 9475 } 9476 }' 9477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9478# Check for a 64-bit object if we didn't find anything. 9479if test -z "$aix_libpath"; then 9480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9481fi 9482fi 9483rm -f core conftest.err conftest.$ac_objext \ 9484 conftest$ac_exeext conftest.$ac_ext 9485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9486 9487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9488 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" 9489 else 9490 if test "$host_cpu" = ia64; then 9491 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9492 allow_undefined_flag="-z nodefs" 9493 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" 9494 else 9495 # Determine the default libpath from the value encoded in an 9496 # empty executable. 9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9498/* end confdefs.h. */ 9499 9500int 9501main () 9502{ 9503 9504 ; 9505 return 0; 9506} 9507_ACEOF 9508if ac_fn_c_try_link "$LINENO"; then : 9509 9510lt_aix_libpath_sed=' 9511 /Import File Strings/,/^$/ { 9512 /^0/ { 9513 s/^0 *\(.*\)$/\1/ 9514 p 9515 } 9516 }' 9517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9518# Check for a 64-bit object if we didn't find anything. 9519if test -z "$aix_libpath"; then 9520 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9521fi 9522fi 9523rm -f core conftest.err conftest.$ac_objext \ 9524 conftest$ac_exeext conftest.$ac_ext 9525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9526 9527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9528 # Warning - without using the other run time loading flags, 9529 # -berok will link without error, but may produce a broken library. 9530 no_undefined_flag=' ${wl}-bernotok' 9531 allow_undefined_flag=' ${wl}-berok' 9532 # Exported symbols can be pulled into shared objects from archives 9533 whole_archive_flag_spec='$convenience' 9534 archive_cmds_need_lc=yes 9535 # This is similar to how AIX traditionally builds its shared libraries. 9536 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' 9537 fi 9538 fi 9539 ;; 9540 9541 amigaos*) 9542 case $host_cpu in 9543 powerpc) 9544 # see comment about AmigaOS4 .so support 9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9546 archive_expsym_cmds='' 9547 ;; 9548 m68k) 9549 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)' 9550 hardcode_libdir_flag_spec='-L$libdir' 9551 hardcode_minus_L=yes 9552 ;; 9553 esac 9554 ;; 9555 9556 bsdi[45]*) 9557 export_dynamic_flag_spec=-rdynamic 9558 ;; 9559 9560 cygwin* | mingw* | pw32* | cegcc*) 9561 # When not using gcc, we currently assume that we are using 9562 # Microsoft Visual C++. 9563 # hardcode_libdir_flag_spec is actually meaningless, as there is 9564 # no search path for DLLs. 9565 hardcode_libdir_flag_spec=' ' 9566 allow_undefined_flag=unsupported 9567 # Tell ltmain to make .lib files, not .a files. 9568 libext=lib 9569 # Tell ltmain to make .dll files, not .so files. 9570 shrext_cmds=".dll" 9571 # FIXME: Setting linknames here is a bad hack. 9572 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9573 # The linker will automatically build a .lib file if we build a DLL. 9574 old_archive_from_new_cmds='true' 9575 # FIXME: Should let the user specify the lib program. 9576 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9577 fix_srcfile_path='`cygpath -w "$srcfile"`' 9578 enable_shared_with_static_runtimes=yes 9579 ;; 9580 9581 darwin* | rhapsody*) 9582 9583 9584 archive_cmds_need_lc=no 9585 hardcode_direct=no 9586 hardcode_automatic=yes 9587 hardcode_shlibpath_var=unsupported 9588 whole_archive_flag_spec='' 9589 link_all_deplibs=yes 9590 allow_undefined_flag="$_lt_dar_allow_undefined" 9591 case $cc_basename in 9592 ifort*) _lt_dar_can_shared=yes ;; 9593 *) _lt_dar_can_shared=$GCC ;; 9594 esac 9595 if test "$_lt_dar_can_shared" = "yes"; then 9596 output_verbose_link_cmd=echo 9597 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9598 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9599 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}" 9600 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}" 9601 9602 else 9603 ld_shlibs=no 9604 fi 9605 9606 ;; 9607 9608 dgux*) 9609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9610 hardcode_libdir_flag_spec='-L$libdir' 9611 hardcode_shlibpath_var=no 9612 ;; 9613 9614 freebsd1*) 9615 ld_shlibs=no 9616 ;; 9617 9618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9619 # support. Future versions do this automatically, but an explicit c++rt0.o 9620 # does not break anything, and helps significantly (at the cost of a little 9621 # extra space). 9622 freebsd2.2*) 9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9624 hardcode_libdir_flag_spec='-R$libdir' 9625 hardcode_direct=yes 9626 hardcode_shlibpath_var=no 9627 ;; 9628 9629 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9630 freebsd2*) 9631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9632 hardcode_direct=yes 9633 hardcode_minus_L=yes 9634 hardcode_shlibpath_var=no 9635 ;; 9636 9637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9638 freebsd* | dragonfly*) 9639 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9640 hardcode_libdir_flag_spec='-R$libdir' 9641 hardcode_direct=yes 9642 hardcode_shlibpath_var=no 9643 ;; 9644 9645 hpux9*) 9646 if test "$GCC" = yes; then 9647 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' 9648 else 9649 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' 9650 fi 9651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9652 hardcode_libdir_separator=: 9653 hardcode_direct=yes 9654 9655 # hardcode_minus_L: Not really in the search PATH, 9656 # but as the default location of the library. 9657 hardcode_minus_L=yes 9658 export_dynamic_flag_spec='${wl}-E' 9659 ;; 9660 9661 hpux10*) 9662 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9664 else 9665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9666 fi 9667 if test "$with_gnu_ld" = no; then 9668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9669 hardcode_libdir_flag_spec_ld='+b $libdir' 9670 hardcode_libdir_separator=: 9671 hardcode_direct=yes 9672 hardcode_direct_absolute=yes 9673 export_dynamic_flag_spec='${wl}-E' 9674 # hardcode_minus_L: Not really in the search PATH, 9675 # but as the default location of the library. 9676 hardcode_minus_L=yes 9677 fi 9678 ;; 9679 9680 hpux11*) 9681 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9682 case $host_cpu in 9683 hppa*64*) 9684 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9685 ;; 9686 ia64*) 9687 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9688 ;; 9689 *) 9690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9691 ;; 9692 esac 9693 else 9694 case $host_cpu in 9695 hppa*64*) 9696 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9697 ;; 9698 ia64*) 9699 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9700 ;; 9701 *) 9702 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9703 ;; 9704 esac 9705 fi 9706 if test "$with_gnu_ld" = no; then 9707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9708 hardcode_libdir_separator=: 9709 9710 case $host_cpu in 9711 hppa*64*|ia64*) 9712 hardcode_direct=no 9713 hardcode_shlibpath_var=no 9714 ;; 9715 *) 9716 hardcode_direct=yes 9717 hardcode_direct_absolute=yes 9718 export_dynamic_flag_spec='${wl}-E' 9719 9720 # hardcode_minus_L: Not really in the search PATH, 9721 # but as the default location of the library. 9722 hardcode_minus_L=yes 9723 ;; 9724 esac 9725 fi 9726 ;; 9727 9728 irix5* | irix6* | nonstopux*) 9729 if test "$GCC" = yes; then 9730 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' 9731 # Try to use the -exported_symbol ld option, if it does not 9732 # work, assume that -exports_file does not work either and 9733 # implicitly export all symbols. 9734 save_LDFLAGS="$LDFLAGS" 9735 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9737/* end confdefs.h. */ 9738int foo(void) {} 9739_ACEOF 9740if ac_fn_c_try_link "$LINENO"; then : 9741 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' 9742 9743fi 9744rm -f core conftest.err conftest.$ac_objext \ 9745 conftest$ac_exeext conftest.$ac_ext 9746 LDFLAGS="$save_LDFLAGS" 9747 else 9748 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' 9749 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' 9750 fi 9751 archive_cmds_need_lc='no' 9752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9753 hardcode_libdir_separator=: 9754 inherit_rpath=yes 9755 link_all_deplibs=yes 9756 ;; 9757 9758 netbsd*) 9759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9761 else 9762 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9763 fi 9764 hardcode_libdir_flag_spec='-R$libdir' 9765 hardcode_direct=yes 9766 hardcode_shlibpath_var=no 9767 ;; 9768 9769 newsos6) 9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9771 hardcode_direct=yes 9772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9773 hardcode_libdir_separator=: 9774 hardcode_shlibpath_var=no 9775 ;; 9776 9777 *nto* | *qnx*) 9778 ;; 9779 9780 openbsd*) 9781 if test -f /usr/libexec/ld.so; then 9782 hardcode_direct=yes 9783 hardcode_shlibpath_var=no 9784 hardcode_direct_absolute=yes 9785 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9787 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9789 export_dynamic_flag_spec='${wl}-E' 9790 else 9791 case $host_os in 9792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9794 hardcode_libdir_flag_spec='-R$libdir' 9795 ;; 9796 *) 9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9799 ;; 9800 esac 9801 fi 9802 else 9803 ld_shlibs=no 9804 fi 9805 ;; 9806 9807 os2*) 9808 hardcode_libdir_flag_spec='-L$libdir' 9809 hardcode_minus_L=yes 9810 allow_undefined_flag=unsupported 9811 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' 9812 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9813 ;; 9814 9815 osf3*) 9816 if test "$GCC" = yes; then 9817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9818 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' 9819 else 9820 allow_undefined_flag=' -expect_unresolved \*' 9821 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' 9822 fi 9823 archive_cmds_need_lc='no' 9824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9825 hardcode_libdir_separator=: 9826 ;; 9827 9828 osf4* | osf5*) # as osf3* with the addition of -msym flag 9829 if test "$GCC" = yes; then 9830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9831 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' 9832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9833 else 9834 allow_undefined_flag=' -expect_unresolved \*' 9835 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' 9836 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~ 9837 $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' 9838 9839 # Both c and cxx compiler support -rpath directly 9840 hardcode_libdir_flag_spec='-rpath $libdir' 9841 fi 9842 archive_cmds_need_lc='no' 9843 hardcode_libdir_separator=: 9844 ;; 9845 9846 solaris*) 9847 no_undefined_flag=' -z defs' 9848 if test "$GCC" = yes; then 9849 wlarc='${wl}' 9850 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9852 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9853 else 9854 case `$CC -V 2>&1` in 9855 *"Compilers 5.0"*) 9856 wlarc='' 9857 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9860 ;; 9861 *) 9862 wlarc='${wl}' 9863 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9864 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9865 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9866 ;; 9867 esac 9868 fi 9869 hardcode_libdir_flag_spec='-R$libdir' 9870 hardcode_shlibpath_var=no 9871 case $host_os in 9872 solaris2.[0-5] | solaris2.[0-5].*) ;; 9873 *) 9874 # The compiler driver will combine and reorder linker options, 9875 # but understands `-z linker_flag'. GCC discards it without `$wl', 9876 # but is careful enough not to reorder. 9877 # Supported since Solaris 2.6 (maybe 2.5.1?) 9878 if test "$GCC" = yes; then 9879 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9880 else 9881 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9882 fi 9883 ;; 9884 esac 9885 link_all_deplibs=yes 9886 ;; 9887 9888 sunos4*) 9889 if test "x$host_vendor" = xsequent; then 9890 # Use $CC to link under sequent, because it throws in some extra .o 9891 # files that make .init and .fini sections work. 9892 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9893 else 9894 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9895 fi 9896 hardcode_libdir_flag_spec='-L$libdir' 9897 hardcode_direct=yes 9898 hardcode_minus_L=yes 9899 hardcode_shlibpath_var=no 9900 ;; 9901 9902 sysv4) 9903 case $host_vendor in 9904 sni) 9905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9906 hardcode_direct=yes # is this really true??? 9907 ;; 9908 siemens) 9909 ## LD is ld it makes a PLAMLIB 9910 ## CC just makes a GrossModule. 9911 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9912 reload_cmds='$CC -r -o $output$reload_objs' 9913 hardcode_direct=no 9914 ;; 9915 motorola) 9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9917 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9918 ;; 9919 esac 9920 runpath_var='LD_RUN_PATH' 9921 hardcode_shlibpath_var=no 9922 ;; 9923 9924 sysv4.3*) 9925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9926 hardcode_shlibpath_var=no 9927 export_dynamic_flag_spec='-Bexport' 9928 ;; 9929 9930 sysv4*MP*) 9931 if test -d /usr/nec; then 9932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9933 hardcode_shlibpath_var=no 9934 runpath_var=LD_RUN_PATH 9935 hardcode_runpath_var=yes 9936 ld_shlibs=yes 9937 fi 9938 ;; 9939 9940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9941 no_undefined_flag='${wl}-z,text' 9942 archive_cmds_need_lc=no 9943 hardcode_shlibpath_var=no 9944 runpath_var='LD_RUN_PATH' 9945 9946 if test "$GCC" = yes; then 9947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9949 else 9950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 fi 9953 ;; 9954 9955 sysv5* | sco3.2v5* | sco5v6*) 9956 # Note: We can NOT use -z defs as we might desire, because we do not 9957 # link with -lc, and that would cause any symbols used from libc to 9958 # always be unresolved, which means just about no library would 9959 # ever link correctly. If we're not using GNU ld we use -z text 9960 # though, which does catch some bad symbols but isn't as heavy-handed 9961 # as -z defs. 9962 no_undefined_flag='${wl}-z,text' 9963 allow_undefined_flag='${wl}-z,nodefs' 9964 archive_cmds_need_lc=no 9965 hardcode_shlibpath_var=no 9966 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9967 hardcode_libdir_separator=':' 9968 link_all_deplibs=yes 9969 export_dynamic_flag_spec='${wl}-Bexport' 9970 runpath_var='LD_RUN_PATH' 9971 9972 if test "$GCC" = yes; then 9973 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9975 else 9976 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9978 fi 9979 ;; 9980 9981 uts4*) 9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9983 hardcode_libdir_flag_spec='-L$libdir' 9984 hardcode_shlibpath_var=no 9985 ;; 9986 9987 *) 9988 ld_shlibs=no 9989 ;; 9990 esac 9991 9992 if test x$host_vendor = xsni; then 9993 case $host in 9994 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9995 export_dynamic_flag_spec='${wl}-Blargedynsym' 9996 ;; 9997 esac 9998 fi 9999 fi 10000 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10002$as_echo "$ld_shlibs" >&6; } 10003test "$ld_shlibs" = no && can_build_shared=no 10004 10005with_gnu_ld=$with_gnu_ld 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021# 10022# Do we need to explicitly link libc? 10023# 10024case "x$archive_cmds_need_lc" in 10025x|xyes) 10026 # Assume -lc should be added 10027 archive_cmds_need_lc=yes 10028 10029 if test "$enable_shared" = yes && test "$GCC" = yes; then 10030 case $archive_cmds in 10031 *'~'*) 10032 # FIXME: we may have to deal with multi-command sequences. 10033 ;; 10034 '$CC '*) 10035 # Test whether the compiler implicitly links with -lc since on some 10036 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10037 # to ld, don't add -lc before -lgcc. 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10039$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10040 $RM conftest* 10041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10042 10043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10044 (eval $ac_compile) 2>&5 10045 ac_status=$? 10046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10047 test $ac_status = 0; } 2>conftest.err; then 10048 soname=conftest 10049 lib=conftest 10050 libobjs=conftest.$ac_objext 10051 deplibs= 10052 wl=$lt_prog_compiler_wl 10053 pic_flag=$lt_prog_compiler_pic 10054 compiler_flags=-v 10055 linker_flags=-v 10056 verstring= 10057 output_objdir=. 10058 libname=conftest 10059 lt_save_allow_undefined_flag=$allow_undefined_flag 10060 allow_undefined_flag= 10061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10062 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10063 ac_status=$? 10064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10065 test $ac_status = 0; } 10066 then 10067 archive_cmds_need_lc=no 10068 else 10069 archive_cmds_need_lc=yes 10070 fi 10071 allow_undefined_flag=$lt_save_allow_undefined_flag 10072 else 10073 cat conftest.err 1>&5 10074 fi 10075 $RM conftest* 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10077$as_echo "$archive_cmds_need_lc" >&6; } 10078 ;; 10079 esac 10080 fi 10081 ;; 10082esac 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10241$as_echo_n "checking dynamic linker characteristics... " >&6; } 10242 10243if test "$GCC" = yes; then 10244 case $host_os in 10245 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10246 *) lt_awk_arg="/^libraries:/" ;; 10247 esac 10248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10249 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10250 # if the path contains ";" then we assume it to be the separator 10251 # otherwise default to the standard path separator (i.e. ":") - it is 10252 # assumed that no part of a normal pathname contains ";" but that should 10253 # okay in the real world where ";" in dirpaths is itself problematic. 10254 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10255 else 10256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10257 fi 10258 # Ok, now we have the path, separated by spaces, we can step through it 10259 # and add multilib dir if necessary. 10260 lt_tmp_lt_search_path_spec= 10261 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10262 for lt_sys_path in $lt_search_path_spec; do 10263 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10265 else 10266 test -d "$lt_sys_path" && \ 10267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10268 fi 10269 done 10270 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10271BEGIN {RS=" "; FS="/|\n";} { 10272 lt_foo=""; 10273 lt_count=0; 10274 for (lt_i = NF; lt_i > 0; lt_i--) { 10275 if ($lt_i != "" && $lt_i != ".") { 10276 if ($lt_i == "..") { 10277 lt_count++; 10278 } else { 10279 if (lt_count == 0) { 10280 lt_foo="/" $lt_i lt_foo; 10281 } else { 10282 lt_count--; 10283 } 10284 } 10285 } 10286 } 10287 if (lt_foo != "") { lt_freq[lt_foo]++; } 10288 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10289}'` 10290 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10291else 10292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10293fi 10294library_names_spec= 10295libname_spec='lib$name' 10296soname_spec= 10297shrext_cmds=".so" 10298postinstall_cmds= 10299postuninstall_cmds= 10300finish_cmds= 10301finish_eval= 10302shlibpath_var= 10303shlibpath_overrides_runpath=unknown 10304version_type=none 10305dynamic_linker="$host_os ld.so" 10306sys_lib_dlsearch_path_spec="/lib /usr/lib" 10307need_lib_prefix=unknown 10308hardcode_into_libs=no 10309 10310# when you set need_version to no, make sure it does not cause -set_version 10311# flags to be left without arguments 10312need_version=unknown 10313 10314case $host_os in 10315aix3*) 10316 version_type=linux 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10318 shlibpath_var=LIBPATH 10319 10320 # AIX 3 has no versioning support, so we append a major version to the name. 10321 soname_spec='${libname}${release}${shared_ext}$major' 10322 ;; 10323 10324aix[4-9]*) 10325 version_type=linux 10326 need_lib_prefix=no 10327 need_version=no 10328 hardcode_into_libs=yes 10329 if test "$host_cpu" = ia64; then 10330 # AIX 5 supports IA64 10331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10332 shlibpath_var=LD_LIBRARY_PATH 10333 else 10334 # With GCC up to 2.95.x, collect2 would create an import file 10335 # for dependence libraries. The import file would start with 10336 # the line `#! .'. This would cause the generated library to 10337 # depend on `.', always an invalid library. This was fixed in 10338 # development snapshots of GCC prior to 3.0. 10339 case $host_os in 10340 aix4 | aix4.[01] | aix4.[01].*) 10341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10342 echo ' yes ' 10343 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10344 : 10345 else 10346 can_build_shared=no 10347 fi 10348 ;; 10349 esac 10350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10351 # soname into executable. Probably we can add versioning support to 10352 # collect2, so additional links can be useful in future. 10353 if test "$aix_use_runtimelinking" = yes; then 10354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10355 # instead of lib<name>.a to let people know that these are not 10356 # typical AIX shared libraries. 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 else 10359 # We preserve .a as extension for shared libraries through AIX4.2 10360 # and later when we are not doing run time linking. 10361 library_names_spec='${libname}${release}.a $libname.a' 10362 soname_spec='${libname}${release}${shared_ext}$major' 10363 fi 10364 shlibpath_var=LIBPATH 10365 fi 10366 ;; 10367 10368amigaos*) 10369 case $host_cpu in 10370 powerpc) 10371 # Since July 2007 AmigaOS4 officially supports .so libraries. 10372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10374 ;; 10375 m68k) 10376 library_names_spec='$libname.ixlibrary $libname.a' 10377 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10378 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' 10379 ;; 10380 esac 10381 ;; 10382 10383beos*) 10384 library_names_spec='${libname}${shared_ext}' 10385 dynamic_linker="$host_os ld.so" 10386 shlibpath_var=LIBRARY_PATH 10387 ;; 10388 10389bsdi[45]*) 10390 version_type=linux 10391 need_version=no 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10393 soname_spec='${libname}${release}${shared_ext}$major' 10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10395 shlibpath_var=LD_LIBRARY_PATH 10396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10398 # the default ld.so.conf also contains /usr/contrib/lib and 10399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10400 # libtool to hard-code these into programs 10401 ;; 10402 10403cygwin* | mingw* | pw32* | cegcc*) 10404 version_type=windows 10405 shrext_cmds=".dll" 10406 need_version=no 10407 need_lib_prefix=no 10408 10409 case $GCC,$host_os in 10410 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10411 library_names_spec='$libname.dll.a' 10412 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10413 postinstall_cmds='base_file=`basename \${file}`~ 10414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10415 dldir=$destdir/`dirname \$dlpath`~ 10416 test -d \$dldir || mkdir -p \$dldir~ 10417 $install_prog $dir/$dlname \$dldir/$dlname~ 10418 chmod a+x \$dldir/$dlname~ 10419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10421 fi' 10422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10423 dlpath=$dir/\$dldll~ 10424 $RM \$dlpath' 10425 shlibpath_overrides_runpath=yes 10426 10427 case $host_os in 10428 cygwin*) 10429 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10431 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10432 ;; 10433 mingw* | cegcc*) 10434 # MinGW DLLs use traditional 'lib' prefix 10435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10436 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10437 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10438 # It is most probably a Windows format PATH printed by 10439 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10440 # path with ; separators, and with drive letters. We can handle the 10441 # drive letters (cygwin fileutils understands them), so leave them, 10442 # especially as we might pass files found there to a mingw objdump, 10443 # which wouldn't understand a cygwinified path. Ahh. 10444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10445 else 10446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10447 fi 10448 ;; 10449 pw32*) 10450 # pw32 DLLs use 'pw' prefix rather than 'lib' 10451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10452 ;; 10453 esac 10454 ;; 10455 10456 *) 10457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10458 ;; 10459 esac 10460 dynamic_linker='Win32 ld.exe' 10461 # FIXME: first we should search . and the directory the executable is in 10462 shlibpath_var=PATH 10463 ;; 10464 10465darwin* | rhapsody*) 10466 dynamic_linker="$host_os dyld" 10467 version_type=darwin 10468 need_lib_prefix=no 10469 need_version=no 10470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10471 soname_spec='${libname}${release}${major}$shared_ext' 10472 shlibpath_overrides_runpath=yes 10473 shlibpath_var=DYLD_LIBRARY_PATH 10474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10475 10476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10478 ;; 10479 10480dgux*) 10481 version_type=linux 10482 need_lib_prefix=no 10483 need_version=no 10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10485 soname_spec='${libname}${release}${shared_ext}$major' 10486 shlibpath_var=LD_LIBRARY_PATH 10487 ;; 10488 10489freebsd1*) 10490 dynamic_linker=no 10491 ;; 10492 10493freebsd* | dragonfly*) 10494 # DragonFly does not have aout. When/if they implement a new 10495 # versioning mechanism, adjust this. 10496 if test -x /usr/bin/objformat; then 10497 objformat=`/usr/bin/objformat` 10498 else 10499 case $host_os in 10500 freebsd[123]*) objformat=aout ;; 10501 *) objformat=elf ;; 10502 esac 10503 fi 10504 version_type=freebsd-$objformat 10505 case $version_type in 10506 freebsd-elf*) 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10508 need_version=no 10509 need_lib_prefix=no 10510 ;; 10511 freebsd-*) 10512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10513 need_version=yes 10514 ;; 10515 esac 10516 shlibpath_var=LD_LIBRARY_PATH 10517 case $host_os in 10518 freebsd2*) 10519 shlibpath_overrides_runpath=yes 10520 ;; 10521 freebsd3.[01]* | freebsdelf3.[01]*) 10522 shlibpath_overrides_runpath=yes 10523 hardcode_into_libs=yes 10524 ;; 10525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10527 shlibpath_overrides_runpath=no 10528 hardcode_into_libs=yes 10529 ;; 10530 *) # from 4.6 on, and DragonFly 10531 shlibpath_overrides_runpath=yes 10532 hardcode_into_libs=yes 10533 ;; 10534 esac 10535 ;; 10536 10537gnu*) 10538 version_type=linux 10539 need_lib_prefix=no 10540 need_version=no 10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10542 soname_spec='${libname}${release}${shared_ext}$major' 10543 shlibpath_var=LD_LIBRARY_PATH 10544 hardcode_into_libs=yes 10545 ;; 10546 10547hpux9* | hpux10* | hpux11*) 10548 # Give a soname corresponding to the major version so that dld.sl refuses to 10549 # link against other versions. 10550 version_type=sunos 10551 need_lib_prefix=no 10552 need_version=no 10553 case $host_cpu in 10554 ia64*) 10555 shrext_cmds='.so' 10556 hardcode_into_libs=yes 10557 dynamic_linker="$host_os dld.so" 10558 shlibpath_var=LD_LIBRARY_PATH 10559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10561 soname_spec='${libname}${release}${shared_ext}$major' 10562 if test "X$HPUX_IA64_MODE" = X32; then 10563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10564 else 10565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10566 fi 10567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10568 ;; 10569 hppa*64*) 10570 shrext_cmds='.sl' 10571 hardcode_into_libs=yes 10572 dynamic_linker="$host_os dld.sl" 10573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10576 soname_spec='${libname}${release}${shared_ext}$major' 10577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10579 ;; 10580 *) 10581 shrext_cmds='.sl' 10582 dynamic_linker="$host_os dld.sl" 10583 shlibpath_var=SHLIB_PATH 10584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10586 soname_spec='${libname}${release}${shared_ext}$major' 10587 ;; 10588 esac 10589 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10590 postinstall_cmds='chmod 555 $lib' 10591 ;; 10592 10593interix[3-9]*) 10594 version_type=linux 10595 need_lib_prefix=no 10596 need_version=no 10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10598 soname_spec='${libname}${release}${shared_ext}$major' 10599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10600 shlibpath_var=LD_LIBRARY_PATH 10601 shlibpath_overrides_runpath=no 10602 hardcode_into_libs=yes 10603 ;; 10604 10605irix5* | irix6* | nonstopux*) 10606 case $host_os in 10607 nonstopux*) version_type=nonstopux ;; 10608 *) 10609 if test "$lt_cv_prog_gnu_ld" = yes; then 10610 version_type=linux 10611 else 10612 version_type=irix 10613 fi ;; 10614 esac 10615 need_lib_prefix=no 10616 need_version=no 10617 soname_spec='${libname}${release}${shared_ext}$major' 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10619 case $host_os in 10620 irix5* | nonstopux*) 10621 libsuff= shlibsuff= 10622 ;; 10623 *) 10624 case $LD in # libtool.m4 will add one of these switches to LD 10625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10626 libsuff= shlibsuff= libmagic=32-bit;; 10627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10628 libsuff=32 shlibsuff=N32 libmagic=N32;; 10629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10630 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10631 *) libsuff= shlibsuff= libmagic=never-match;; 10632 esac 10633 ;; 10634 esac 10635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10636 shlibpath_overrides_runpath=no 10637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10639 hardcode_into_libs=yes 10640 ;; 10641 10642# No shared lib support for Linux oldld, aout, or coff. 10643linux*oldld* | linux*aout* | linux*coff*) 10644 dynamic_linker=no 10645 ;; 10646 10647# This must be Linux ELF. 10648linux* | k*bsd*-gnu) 10649 version_type=linux 10650 need_lib_prefix=no 10651 need_version=no 10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10653 soname_spec='${libname}${release}${shared_ext}$major' 10654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10655 shlibpath_var=LD_LIBRARY_PATH 10656 shlibpath_overrides_runpath=no 10657 # Some binutils ld are patched to set DT_RUNPATH 10658 save_LDFLAGS=$LDFLAGS 10659 save_libdir=$libdir 10660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664 10665int 10666main () 10667{ 10668 10669 ; 10670 return 0; 10671} 10672_ACEOF 10673if ac_fn_c_try_link "$LINENO"; then : 10674 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10675 shlibpath_overrides_runpath=yes 10676fi 10677fi 10678rm -f core conftest.err conftest.$ac_objext \ 10679 conftest$ac_exeext conftest.$ac_ext 10680 LDFLAGS=$save_LDFLAGS 10681 libdir=$save_libdir 10682 10683 # This implies no fast_install, which is unacceptable. 10684 # Some rework will be needed to allow for fast_install 10685 # before this can be enabled. 10686 hardcode_into_libs=yes 10687 10688 # Append ld.so.conf contents to the search path 10689 if test -f /etc/ld.so.conf; then 10690 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' ' '` 10691 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10692 fi 10693 10694 # We used to test for /lib/ld.so.1 and disable shared libraries on 10695 # powerpc, because MkLinux only supported shared libraries with the 10696 # GNU dynamic linker. Since this was broken with cross compilers, 10697 # most powerpc-linux boxes support dynamic linking these days and 10698 # people can always --disable-shared, the test was removed, and we 10699 # assume the GNU/Linux dynamic linker is in use. 10700 dynamic_linker='GNU/Linux ld.so' 10701 ;; 10702 10703netbsd*) 10704 version_type=sunos 10705 need_lib_prefix=no 10706 need_version=no 10707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10710 dynamic_linker='NetBSD (a.out) ld.so' 10711 else 10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10713 soname_spec='${libname}${release}${shared_ext}$major' 10714 dynamic_linker='NetBSD ld.elf_so' 10715 fi 10716 shlibpath_var=LD_LIBRARY_PATH 10717 shlibpath_overrides_runpath=yes 10718 hardcode_into_libs=yes 10719 ;; 10720 10721newsos6) 10722 version_type=linux 10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10724 shlibpath_var=LD_LIBRARY_PATH 10725 shlibpath_overrides_runpath=yes 10726 ;; 10727 10728*nto* | *qnx*) 10729 version_type=qnx 10730 need_lib_prefix=no 10731 need_version=no 10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10733 soname_spec='${libname}${release}${shared_ext}$major' 10734 shlibpath_var=LD_LIBRARY_PATH 10735 shlibpath_overrides_runpath=no 10736 hardcode_into_libs=yes 10737 dynamic_linker='ldqnx.so' 10738 ;; 10739 10740openbsd*) 10741 version_type=sunos 10742 sys_lib_dlsearch_path_spec="/usr/lib" 10743 need_lib_prefix=no 10744 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10745 case $host_os in 10746 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10747 *) need_version=no ;; 10748 esac 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10751 shlibpath_var=LD_LIBRARY_PATH 10752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10753 case $host_os in 10754 openbsd2.[89] | openbsd2.[89].*) 10755 shlibpath_overrides_runpath=no 10756 ;; 10757 *) 10758 shlibpath_overrides_runpath=yes 10759 ;; 10760 esac 10761 else 10762 shlibpath_overrides_runpath=yes 10763 fi 10764 ;; 10765 10766os2*) 10767 libname_spec='$name' 10768 shrext_cmds=".dll" 10769 need_lib_prefix=no 10770 library_names_spec='$libname${shared_ext} $libname.a' 10771 dynamic_linker='OS/2 ld.exe' 10772 shlibpath_var=LIBPATH 10773 ;; 10774 10775osf3* | osf4* | osf5*) 10776 version_type=osf 10777 need_lib_prefix=no 10778 need_version=no 10779 soname_spec='${libname}${release}${shared_ext}$major' 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10781 shlibpath_var=LD_LIBRARY_PATH 10782 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10783 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10784 ;; 10785 10786rdos*) 10787 dynamic_linker=no 10788 ;; 10789 10790solaris*) 10791 version_type=linux 10792 need_lib_prefix=no 10793 need_version=no 10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10795 soname_spec='${libname}${release}${shared_ext}$major' 10796 shlibpath_var=LD_LIBRARY_PATH 10797 shlibpath_overrides_runpath=yes 10798 hardcode_into_libs=yes 10799 # ldd complains unless libraries are executable 10800 postinstall_cmds='chmod +x $lib' 10801 ;; 10802 10803sunos4*) 10804 version_type=sunos 10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10807 shlibpath_var=LD_LIBRARY_PATH 10808 shlibpath_overrides_runpath=yes 10809 if test "$with_gnu_ld" = yes; then 10810 need_lib_prefix=no 10811 fi 10812 need_version=yes 10813 ;; 10814 10815sysv4 | sysv4.3*) 10816 version_type=linux 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10818 soname_spec='${libname}${release}${shared_ext}$major' 10819 shlibpath_var=LD_LIBRARY_PATH 10820 case $host_vendor in 10821 sni) 10822 shlibpath_overrides_runpath=no 10823 need_lib_prefix=no 10824 runpath_var=LD_RUN_PATH 10825 ;; 10826 siemens) 10827 need_lib_prefix=no 10828 ;; 10829 motorola) 10830 need_lib_prefix=no 10831 need_version=no 10832 shlibpath_overrides_runpath=no 10833 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10834 ;; 10835 esac 10836 ;; 10837 10838sysv4*MP*) 10839 if test -d /usr/nec ;then 10840 version_type=linux 10841 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10842 soname_spec='$libname${shared_ext}.$major' 10843 shlibpath_var=LD_LIBRARY_PATH 10844 fi 10845 ;; 10846 10847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10848 version_type=freebsd-elf 10849 need_lib_prefix=no 10850 need_version=no 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10852 soname_spec='${libname}${release}${shared_ext}$major' 10853 shlibpath_var=LD_LIBRARY_PATH 10854 shlibpath_overrides_runpath=yes 10855 hardcode_into_libs=yes 10856 if test "$with_gnu_ld" = yes; then 10857 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10858 else 10859 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10860 case $host_os in 10861 sco3.2v5*) 10862 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10863 ;; 10864 esac 10865 fi 10866 sys_lib_dlsearch_path_spec='/usr/lib' 10867 ;; 10868 10869tpf*) 10870 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10871 version_type=linux 10872 need_lib_prefix=no 10873 need_version=no 10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10875 shlibpath_var=LD_LIBRARY_PATH 10876 shlibpath_overrides_runpath=no 10877 hardcode_into_libs=yes 10878 ;; 10879 10880uts4*) 10881 version_type=linux 10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10883 soname_spec='${libname}${release}${shared_ext}$major' 10884 shlibpath_var=LD_LIBRARY_PATH 10885 ;; 10886 10887*) 10888 dynamic_linker=no 10889 ;; 10890esac 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10892$as_echo "$dynamic_linker" >&6; } 10893test "$dynamic_linker" = no && can_build_shared=no 10894 10895variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10896if test "$GCC" = yes; then 10897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10898fi 10899 10900if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10901 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10902fi 10903if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10904 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10905fi 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10994$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10995hardcode_action= 10996if test -n "$hardcode_libdir_flag_spec" || 10997 test -n "$runpath_var" || 10998 test "X$hardcode_automatic" = "Xyes" ; then 10999 11000 # We can hardcode non-existent directories. 11001 if test "$hardcode_direct" != no && 11002 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11003 # have to relink, otherwise we might link with an installed library 11004 # when we should be linking with a yet-to-be-installed one 11005 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11006 test "$hardcode_minus_L" != no; then 11007 # Linking always hardcodes the temporary library directory. 11008 hardcode_action=relink 11009 else 11010 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11011 hardcode_action=immediate 11012 fi 11013else 11014 # We cannot hardcode anything, or else we can only hardcode existing 11015 # directories. 11016 hardcode_action=unsupported 11017fi 11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11019$as_echo "$hardcode_action" >&6; } 11020 11021if test "$hardcode_action" = relink || 11022 test "$inherit_rpath" = yes; then 11023 # Fast installation is not supported 11024 enable_fast_install=no 11025elif test "$shlibpath_overrides_runpath" = yes || 11026 test "$enable_shared" = no; then 11027 # Fast installation is not necessary 11028 enable_fast_install=needless 11029fi 11030 11031 11032 11033 11034 11035 11036 if test "x$enable_dlopen" != xyes; then 11037 enable_dlopen=unknown 11038 enable_dlopen_self=unknown 11039 enable_dlopen_self_static=unknown 11040else 11041 lt_cv_dlopen=no 11042 lt_cv_dlopen_libs= 11043 11044 case $host_os in 11045 beos*) 11046 lt_cv_dlopen="load_add_on" 11047 lt_cv_dlopen_libs= 11048 lt_cv_dlopen_self=yes 11049 ;; 11050 11051 mingw* | pw32* | cegcc*) 11052 lt_cv_dlopen="LoadLibrary" 11053 lt_cv_dlopen_libs= 11054 ;; 11055 11056 cygwin*) 11057 lt_cv_dlopen="dlopen" 11058 lt_cv_dlopen_libs= 11059 ;; 11060 11061 darwin*) 11062 # if libdl is installed we need to link against it 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11064$as_echo_n "checking for dlopen in -ldl... " >&6; } 11065if ${ac_cv_lib_dl_dlopen+:} false; then : 11066 $as_echo_n "(cached) " >&6 11067else 11068 ac_check_lib_save_LIBS=$LIBS 11069LIBS="-ldl $LIBS" 11070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11071/* end confdefs.h. */ 11072 11073/* Override any GCC internal prototype to avoid an error. 11074 Use char because int might match the return type of a GCC 11075 builtin and then its argument prototype would still apply. */ 11076#ifdef __cplusplus 11077extern "C" 11078#endif 11079char dlopen (); 11080int 11081main () 11082{ 11083return dlopen (); 11084 ; 11085 return 0; 11086} 11087_ACEOF 11088if ac_fn_c_try_link "$LINENO"; then : 11089 ac_cv_lib_dl_dlopen=yes 11090else 11091 ac_cv_lib_dl_dlopen=no 11092fi 11093rm -f core conftest.err conftest.$ac_objext \ 11094 conftest$ac_exeext conftest.$ac_ext 11095LIBS=$ac_check_lib_save_LIBS 11096fi 11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11098$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11099if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11101else 11102 11103 lt_cv_dlopen="dyld" 11104 lt_cv_dlopen_libs= 11105 lt_cv_dlopen_self=yes 11106 11107fi 11108 11109 ;; 11110 11111 *) 11112 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11113if test "x$ac_cv_func_shl_load" = xyes; then : 11114 lt_cv_dlopen="shl_load" 11115else 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11117$as_echo_n "checking for shl_load in -ldld... " >&6; } 11118if ${ac_cv_lib_dld_shl_load+:} false; then : 11119 $as_echo_n "(cached) " >&6 11120else 11121 ac_check_lib_save_LIBS=$LIBS 11122LIBS="-ldld $LIBS" 11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124/* end confdefs.h. */ 11125 11126/* Override any GCC internal prototype to avoid an error. 11127 Use char because int might match the return type of a GCC 11128 builtin and then its argument prototype would still apply. */ 11129#ifdef __cplusplus 11130extern "C" 11131#endif 11132char shl_load (); 11133int 11134main () 11135{ 11136return shl_load (); 11137 ; 11138 return 0; 11139} 11140_ACEOF 11141if ac_fn_c_try_link "$LINENO"; then : 11142 ac_cv_lib_dld_shl_load=yes 11143else 11144 ac_cv_lib_dld_shl_load=no 11145fi 11146rm -f core conftest.err conftest.$ac_objext \ 11147 conftest$ac_exeext conftest.$ac_ext 11148LIBS=$ac_check_lib_save_LIBS 11149fi 11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11151$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11152if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11153 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11154else 11155 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11156if test "x$ac_cv_func_dlopen" = xyes; then : 11157 lt_cv_dlopen="dlopen" 11158else 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11160$as_echo_n "checking for dlopen in -ldl... " >&6; } 11161if ${ac_cv_lib_dl_dlopen+:} false; then : 11162 $as_echo_n "(cached) " >&6 11163else 11164 ac_check_lib_save_LIBS=$LIBS 11165LIBS="-ldl $LIBS" 11166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11167/* end confdefs.h. */ 11168 11169/* Override any GCC internal prototype to avoid an error. 11170 Use char because int might match the return type of a GCC 11171 builtin and then its argument prototype would still apply. */ 11172#ifdef __cplusplus 11173extern "C" 11174#endif 11175char dlopen (); 11176int 11177main () 11178{ 11179return dlopen (); 11180 ; 11181 return 0; 11182} 11183_ACEOF 11184if ac_fn_c_try_link "$LINENO"; then : 11185 ac_cv_lib_dl_dlopen=yes 11186else 11187 ac_cv_lib_dl_dlopen=no 11188fi 11189rm -f core conftest.err conftest.$ac_objext \ 11190 conftest$ac_exeext conftest.$ac_ext 11191LIBS=$ac_check_lib_save_LIBS 11192fi 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11194$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11195if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11197else 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11199$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11200if ${ac_cv_lib_svld_dlopen+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 ac_check_lib_save_LIBS=$LIBS 11204LIBS="-lsvld $LIBS" 11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11206/* end confdefs.h. */ 11207 11208/* Override any GCC internal prototype to avoid an error. 11209 Use char because int might match the return type of a GCC 11210 builtin and then its argument prototype would still apply. */ 11211#ifdef __cplusplus 11212extern "C" 11213#endif 11214char dlopen (); 11215int 11216main () 11217{ 11218return dlopen (); 11219 ; 11220 return 0; 11221} 11222_ACEOF 11223if ac_fn_c_try_link "$LINENO"; then : 11224 ac_cv_lib_svld_dlopen=yes 11225else 11226 ac_cv_lib_svld_dlopen=no 11227fi 11228rm -f core conftest.err conftest.$ac_objext \ 11229 conftest$ac_exeext conftest.$ac_ext 11230LIBS=$ac_check_lib_save_LIBS 11231fi 11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11233$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11234if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11236else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11238$as_echo_n "checking for dld_link in -ldld... " >&6; } 11239if ${ac_cv_lib_dld_dld_link+:} false; then : 11240 $as_echo_n "(cached) " >&6 11241else 11242 ac_check_lib_save_LIBS=$LIBS 11243LIBS="-ldld $LIBS" 11244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11245/* end confdefs.h. */ 11246 11247/* Override any GCC internal prototype to avoid an error. 11248 Use char because int might match the return type of a GCC 11249 builtin and then its argument prototype would still apply. */ 11250#ifdef __cplusplus 11251extern "C" 11252#endif 11253char dld_link (); 11254int 11255main () 11256{ 11257return dld_link (); 11258 ; 11259 return 0; 11260} 11261_ACEOF 11262if ac_fn_c_try_link "$LINENO"; then : 11263 ac_cv_lib_dld_dld_link=yes 11264else 11265 ac_cv_lib_dld_dld_link=no 11266fi 11267rm -f core conftest.err conftest.$ac_objext \ 11268 conftest$ac_exeext conftest.$ac_ext 11269LIBS=$ac_check_lib_save_LIBS 11270fi 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11272$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11273if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11275fi 11276 11277 11278fi 11279 11280 11281fi 11282 11283 11284fi 11285 11286 11287fi 11288 11289 11290fi 11291 11292 ;; 11293 esac 11294 11295 if test "x$lt_cv_dlopen" != xno; then 11296 enable_dlopen=yes 11297 else 11298 enable_dlopen=no 11299 fi 11300 11301 case $lt_cv_dlopen in 11302 dlopen) 11303 save_CPPFLAGS="$CPPFLAGS" 11304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11305 11306 save_LDFLAGS="$LDFLAGS" 11307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11308 11309 save_LIBS="$LIBS" 11310 LIBS="$lt_cv_dlopen_libs $LIBS" 11311 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11313$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11314if ${lt_cv_dlopen_self+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316else 11317 if test "$cross_compiling" = yes; then : 11318 lt_cv_dlopen_self=cross 11319else 11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11321 lt_status=$lt_dlunknown 11322 cat > conftest.$ac_ext <<_LT_EOF 11323#line 11323 "configure" 11324#include "confdefs.h" 11325 11326#if HAVE_DLFCN_H 11327#include <dlfcn.h> 11328#endif 11329 11330#include <stdio.h> 11331 11332#ifdef RTLD_GLOBAL 11333# define LT_DLGLOBAL RTLD_GLOBAL 11334#else 11335# ifdef DL_GLOBAL 11336# define LT_DLGLOBAL DL_GLOBAL 11337# else 11338# define LT_DLGLOBAL 0 11339# endif 11340#endif 11341 11342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11343 find out it does not work in some platform. */ 11344#ifndef LT_DLLAZY_OR_NOW 11345# ifdef RTLD_LAZY 11346# define LT_DLLAZY_OR_NOW RTLD_LAZY 11347# else 11348# ifdef DL_LAZY 11349# define LT_DLLAZY_OR_NOW DL_LAZY 11350# else 11351# ifdef RTLD_NOW 11352# define LT_DLLAZY_OR_NOW RTLD_NOW 11353# else 11354# ifdef DL_NOW 11355# define LT_DLLAZY_OR_NOW DL_NOW 11356# else 11357# define LT_DLLAZY_OR_NOW 0 11358# endif 11359# endif 11360# endif 11361# endif 11362#endif 11363 11364void fnord() { int i=42;} 11365int main () 11366{ 11367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11368 int status = $lt_dlunknown; 11369 11370 if (self) 11371 { 11372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11374 /* dlclose (self); */ 11375 } 11376 else 11377 puts (dlerror ()); 11378 11379 return status; 11380} 11381_LT_EOF 11382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11383 (eval $ac_link) 2>&5 11384 ac_status=$? 11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11387 (./conftest; exit; ) >&5 2>/dev/null 11388 lt_status=$? 11389 case x$lt_status in 11390 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11391 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11392 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11393 esac 11394 else : 11395 # compilation failed 11396 lt_cv_dlopen_self=no 11397 fi 11398fi 11399rm -fr conftest* 11400 11401 11402fi 11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11404$as_echo "$lt_cv_dlopen_self" >&6; } 11405 11406 if test "x$lt_cv_dlopen_self" = xyes; then 11407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11409$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11410if ${lt_cv_dlopen_self_static+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412else 11413 if test "$cross_compiling" = yes; then : 11414 lt_cv_dlopen_self_static=cross 11415else 11416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11417 lt_status=$lt_dlunknown 11418 cat > conftest.$ac_ext <<_LT_EOF 11419#line 11419 "configure" 11420#include "confdefs.h" 11421 11422#if HAVE_DLFCN_H 11423#include <dlfcn.h> 11424#endif 11425 11426#include <stdio.h> 11427 11428#ifdef RTLD_GLOBAL 11429# define LT_DLGLOBAL RTLD_GLOBAL 11430#else 11431# ifdef DL_GLOBAL 11432# define LT_DLGLOBAL DL_GLOBAL 11433# else 11434# define LT_DLGLOBAL 0 11435# endif 11436#endif 11437 11438/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11439 find out it does not work in some platform. */ 11440#ifndef LT_DLLAZY_OR_NOW 11441# ifdef RTLD_LAZY 11442# define LT_DLLAZY_OR_NOW RTLD_LAZY 11443# else 11444# ifdef DL_LAZY 11445# define LT_DLLAZY_OR_NOW DL_LAZY 11446# else 11447# ifdef RTLD_NOW 11448# define LT_DLLAZY_OR_NOW RTLD_NOW 11449# else 11450# ifdef DL_NOW 11451# define LT_DLLAZY_OR_NOW DL_NOW 11452# else 11453# define LT_DLLAZY_OR_NOW 0 11454# endif 11455# endif 11456# endif 11457# endif 11458#endif 11459 11460void fnord() { int i=42;} 11461int main () 11462{ 11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11464 int status = $lt_dlunknown; 11465 11466 if (self) 11467 { 11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11469 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11470 /* dlclose (self); */ 11471 } 11472 else 11473 puts (dlerror ()); 11474 11475 return status; 11476} 11477_LT_EOF 11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11479 (eval $ac_link) 2>&5 11480 ac_status=$? 11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11482 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11483 (./conftest; exit; ) >&5 2>/dev/null 11484 lt_status=$? 11485 case x$lt_status in 11486 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11487 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11488 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11489 esac 11490 else : 11491 # compilation failed 11492 lt_cv_dlopen_self_static=no 11493 fi 11494fi 11495rm -fr conftest* 11496 11497 11498fi 11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11500$as_echo "$lt_cv_dlopen_self_static" >&6; } 11501 fi 11502 11503 CPPFLAGS="$save_CPPFLAGS" 11504 LDFLAGS="$save_LDFLAGS" 11505 LIBS="$save_LIBS" 11506 ;; 11507 esac 11508 11509 case $lt_cv_dlopen_self in 11510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11511 *) enable_dlopen_self=unknown ;; 11512 esac 11513 11514 case $lt_cv_dlopen_self_static in 11515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11516 *) enable_dlopen_self_static=unknown ;; 11517 esac 11518fi 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536striplib= 11537old_striplib= 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11539$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11540if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11541 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11542 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11544$as_echo "yes" >&6; } 11545else 11546# FIXME - insert some real tests, host_os isn't really good enough 11547 case $host_os in 11548 darwin*) 11549 if test -n "$STRIP" ; then 11550 striplib="$STRIP -x" 11551 old_striplib="$STRIP -S" 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11553$as_echo "yes" >&6; } 11554 else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11556$as_echo "no" >&6; } 11557 fi 11558 ;; 11559 *) 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11561$as_echo "no" >&6; } 11562 ;; 11563 esac 11564fi 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 # Report which library types will actually be built 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11579$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11581$as_echo "$can_build_shared" >&6; } 11582 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11584$as_echo_n "checking whether to build shared libraries... " >&6; } 11585 test "$can_build_shared" = "no" && enable_shared=no 11586 11587 # On AIX, shared libraries and static libraries use the same namespace, and 11588 # are all built from PIC. 11589 case $host_os in 11590 aix3*) 11591 test "$enable_shared" = yes && enable_static=no 11592 if test -n "$RANLIB"; then 11593 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11594 postinstall_cmds='$RANLIB $lib' 11595 fi 11596 ;; 11597 11598 aix[4-9]*) 11599 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11600 test "$enable_shared" = yes && enable_static=no 11601 fi 11602 ;; 11603 esac 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11605$as_echo "$enable_shared" >&6; } 11606 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11608$as_echo_n "checking whether to build static libraries... " >&6; } 11609 # Make sure either enable_shared or enable_static is yes. 11610 test "$enable_shared" = yes || enable_static=yes 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11612$as_echo "$enable_static" >&6; } 11613 11614 11615 11616 11617fi 11618ac_ext=c 11619ac_cpp='$CPP $CPPFLAGS' 11620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11622ac_compiler_gnu=$ac_cv_c_compiler_gnu 11623 11624CC="$lt_save_CC" 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 ac_config_commands="$ac_config_commands libtool" 11639 11640 11641 11642 11643# Only expand once: 11644 11645 11646 11647 11648 CFLAG_VISIBILITY= 11649 HAVE_VISIBILITY=0 11650 if test -n "$GCC"; then 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 11652$as_echo_n "checking whether the -Werror option is usable... " >&6; } 11653 if ${gl_cv_cc_vis_werror+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 11657 gl_save_CFLAGS="$CFLAGS" 11658 CFLAGS="$CFLAGS -Werror" 11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11660/* end confdefs.h. */ 11661 11662int 11663main () 11664{ 11665 11666 ; 11667 return 0; 11668} 11669_ACEOF 11670if ac_fn_c_try_compile "$LINENO"; then : 11671 gl_cv_cc_vis_werror=yes 11672else 11673 gl_cv_cc_vis_werror=no 11674fi 11675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11676 CFLAGS="$gl_save_CFLAGS" 11677fi 11678 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 11680$as_echo "$gl_cv_cc_vis_werror" >&6; } 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 11682$as_echo_n "checking for simple visibility declarations... " >&6; } 11683 if ${gl_cv_cc_visibility+:} false; then : 11684 $as_echo_n "(cached) " >&6 11685else 11686 11687 gl_save_CFLAGS="$CFLAGS" 11688 CFLAGS="$CFLAGS -fvisibility=hidden" 11689 if test $gl_cv_cc_vis_werror = yes; then 11690 CFLAGS="$CFLAGS -Werror" 11691 fi 11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694extern __attribute__((__visibility__("hidden"))) int hiddenvar; 11695 extern __attribute__((__visibility__("default"))) int exportedvar; 11696 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 11697 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 11698 void dummyfunc (void) {} 11699int 11700main () 11701{ 11702 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707if ac_fn_c_try_compile "$LINENO"; then : 11708 gl_cv_cc_visibility=yes 11709else 11710 gl_cv_cc_visibility=no 11711fi 11712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11713 CFLAGS="$gl_save_CFLAGS" 11714fi 11715 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 11717$as_echo "$gl_cv_cc_visibility" >&6; } 11718 if test $gl_cv_cc_visibility = yes; then 11719 CFLAG_VISIBILITY="-fvisibility=hidden" 11720 HAVE_VISIBILITY=1 11721 fi 11722 fi 11723 11724 11725 11726cat >>confdefs.h <<_ACEOF 11727#define HAVE_VISIBILITY $HAVE_VISIBILITY 11728_ACEOF 11729 11730 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11732$as_echo_n "checking for ANSI C header files... " >&6; } 11733if ${ac_cv_header_stdc+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735else 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738#include <stdlib.h> 11739#include <stdarg.h> 11740#include <string.h> 11741#include <float.h> 11742 11743int 11744main () 11745{ 11746 11747 ; 11748 return 0; 11749} 11750_ACEOF 11751if ac_fn_c_try_compile "$LINENO"; then : 11752 ac_cv_header_stdc=yes 11753else 11754 ac_cv_header_stdc=no 11755fi 11756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11757 11758if test $ac_cv_header_stdc = yes; then 11759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11761/* end confdefs.h. */ 11762#include <string.h> 11763 11764_ACEOF 11765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11766 $EGREP "memchr" >/dev/null 2>&1; then : 11767 11768else 11769 ac_cv_header_stdc=no 11770fi 11771rm -f conftest* 11772 11773fi 11774 11775if test $ac_cv_header_stdc = yes; then 11776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779#include <stdlib.h> 11780 11781_ACEOF 11782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11783 $EGREP "free" >/dev/null 2>&1; then : 11784 11785else 11786 ac_cv_header_stdc=no 11787fi 11788rm -f conftest* 11789 11790fi 11791 11792if test $ac_cv_header_stdc = yes; then 11793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11794 if test "$cross_compiling" = yes; then : 11795 : 11796else 11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799#include <ctype.h> 11800#include <stdlib.h> 11801#if ((' ' & 0x0FF) == 0x020) 11802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11804#else 11805# define ISLOWER(c) \ 11806 (('a' <= (c) && (c) <= 'i') \ 11807 || ('j' <= (c) && (c) <= 'r') \ 11808 || ('s' <= (c) && (c) <= 'z')) 11809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11810#endif 11811 11812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11813int 11814main () 11815{ 11816 int i; 11817 for (i = 0; i < 256; i++) 11818 if (XOR (islower (i), ISLOWER (i)) 11819 || toupper (i) != TOUPPER (i)) 11820 return 2; 11821 return 0; 11822} 11823_ACEOF 11824if ac_fn_c_try_run "$LINENO"; then : 11825 11826else 11827 ac_cv_header_stdc=no 11828fi 11829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11830 conftest.$ac_objext conftest.beam conftest.$ac_ext 11831fi 11832 11833fi 11834fi 11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11836$as_echo "$ac_cv_header_stdc" >&6; } 11837if test $ac_cv_header_stdc = yes; then 11838 11839$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11840 11841fi 11842 11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 11844$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 11845if ${ac_cv_header_sys_types_h_makedev+:} false; then : 11846 $as_echo_n "(cached) " >&6 11847else 11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11849/* end confdefs.h. */ 11850#include <sys/types.h> 11851int 11852main () 11853{ 11854return makedev(0, 0); 11855 ; 11856 return 0; 11857} 11858_ACEOF 11859if ac_fn_c_try_link "$LINENO"; then : 11860 ac_cv_header_sys_types_h_makedev=yes 11861else 11862 ac_cv_header_sys_types_h_makedev=no 11863fi 11864rm -f core conftest.err conftest.$ac_objext \ 11865 conftest$ac_exeext conftest.$ac_ext 11866 11867fi 11868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 11869$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 11870 11871if test $ac_cv_header_sys_types_h_makedev = no; then 11872ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 11873if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 11874 11875$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 11876 11877fi 11878 11879 11880 11881 if test $ac_cv_header_sys_mkdev_h = no; then 11882 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 11883if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 11884 11885$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 11886 11887fi 11888 11889 11890 fi 11891fi 11892 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 11894$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 11895if ${ac_cv_header_sys_wait_h+:} false; then : 11896 $as_echo_n "(cached) " >&6 11897else 11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11899/* end confdefs.h. */ 11900#include <sys/types.h> 11901#include <sys/wait.h> 11902#ifndef WEXITSTATUS 11903# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11904#endif 11905#ifndef WIFEXITED 11906# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11907#endif 11908 11909int 11910main () 11911{ 11912 int s; 11913 wait (&s); 11914 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919if ac_fn_c_try_compile "$LINENO"; then : 11920 ac_cv_header_sys_wait_h=yes 11921else 11922 ac_cv_header_sys_wait_h=no 11923fi 11924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11925fi 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 11927$as_echo "$ac_cv_header_sys_wait_h" >&6; } 11928if test $ac_cv_header_sys_wait_h = yes; then 11929 11930$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11931 11932fi 11933 11934for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h 11935do : 11936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11937ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11938if eval test \"x\$"$as_ac_Header"\" = 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 stddef.h 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" 11951if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11952 cat >>confdefs.h <<_ACEOF 11953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11954_ACEOF 11955 11956fi 11957 11958done 11959 11960for ac_header in getopt.h err.h 11961do : 11962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11963ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11965 cat >>confdefs.h <<_ACEOF 11966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11967_ACEOF 11968 11969fi 11970 11971done 11972 11973for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h 11974do : 11975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11976ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11978 cat >>confdefs.h <<_ACEOF 11979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11980_ACEOF 11981 11982fi 11983 11984done 11985 11986for ac_header in zlib.h 11987do : 11988 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 11989if test "x$ac_cv_header_zlib_h" = xyes; then : 11990 cat >>confdefs.h <<_ACEOF 11991#define HAVE_ZLIB_H 1 11992_ACEOF 11993 11994fi 11995 11996done 11997 11998 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12000$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12001if ${ac_cv_c_const+:} false; then : 12002 $as_echo_n "(cached) " >&6 12003else 12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12005/* end confdefs.h. */ 12006 12007int 12008main () 12009{ 12010 12011#ifndef __cplusplus 12012 /* Ultrix mips cc rejects this sort of thing. */ 12013 typedef int charset[2]; 12014 const charset cs = { 0, 0 }; 12015 /* SunOS 4.1.1 cc rejects this. */ 12016 char const *const *pcpcc; 12017 char **ppc; 12018 /* NEC SVR4.0.2 mips cc rejects this. */ 12019 struct point {int x, y;}; 12020 static struct point const zero = {0,0}; 12021 /* AIX XL C 1.02.0.0 rejects this. 12022 It does not let you subtract one const X* pointer from another in 12023 an arm of an if-expression whose if-part is not a constant 12024 expression */ 12025 const char *g = "string"; 12026 pcpcc = &g + (g ? g-g : 0); 12027 /* HPUX 7.0 cc rejects these. */ 12028 ++pcpcc; 12029 ppc = (char**) pcpcc; 12030 pcpcc = (char const *const *) ppc; 12031 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12032 char tx; 12033 char *t = &tx; 12034 char const *s = 0 ? (char *) 0 : (char const *) 0; 12035 12036 *t++ = 0; 12037 if (s) return 0; 12038 } 12039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12040 int x[] = {25, 17}; 12041 const int *foo = &x[0]; 12042 ++foo; 12043 } 12044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12045 typedef const int *iptr; 12046 iptr p = 0; 12047 ++p; 12048 } 12049 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12050 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12051 struct s { int j; const int *ap[3]; } bx; 12052 struct s *b = &bx; b->j = 5; 12053 } 12054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12055 const int foo = 10; 12056 if (!foo) return 0; 12057 } 12058 return !cs[0] && !zero.x; 12059#endif 12060 12061 ; 12062 return 0; 12063} 12064_ACEOF 12065if ac_fn_c_try_compile "$LINENO"; then : 12066 ac_cv_c_const=yes 12067else 12068 ac_cv_c_const=no 12069fi 12070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12071fi 12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12073$as_echo "$ac_cv_c_const" >&6; } 12074if test $ac_cv_c_const = no; then 12075 12076$as_echo "#define const /**/" >>confdefs.h 12077 12078fi 12079 12080ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12081if test "x$ac_cv_type_off_t" = xyes; then : 12082 12083else 12084 12085cat >>confdefs.h <<_ACEOF 12086#define off_t long int 12087_ACEOF 12088 12089fi 12090 12091ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12092if test "x$ac_cv_type_size_t" = xyes; then : 12093 12094else 12095 12096cat >>confdefs.h <<_ACEOF 12097#define size_t unsigned int 12098_ACEOF 12099 12100fi 12101 12102ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12103if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12104 12105cat >>confdefs.h <<_ACEOF 12106#define HAVE_STRUCT_STAT_ST_RDEV 1 12107_ACEOF 12108 12109 12110fi 12111 12112 12113ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default" 12114if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 12115 12116cat >>confdefs.h <<_ACEOF 12117#define HAVE_STRUCT_TM_TM_GMTOFF 1 12118_ACEOF 12119 12120 12121fi 12122 12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12124$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12125if ${ac_cv_struct_tm+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12129/* end confdefs.h. */ 12130#include <sys/types.h> 12131#include <time.h> 12132 12133int 12134main () 12135{ 12136struct tm tm; 12137 int *p = &tm.tm_sec; 12138 return !p; 12139 ; 12140 return 0; 12141} 12142_ACEOF 12143if ac_fn_c_try_compile "$LINENO"; then : 12144 ac_cv_struct_tm=time.h 12145else 12146 ac_cv_struct_tm=sys/time.h 12147fi 12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12149fi 12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12151$as_echo "$ac_cv_struct_tm" >&6; } 12152if test $ac_cv_struct_tm = sys/time.h; then 12153 12154$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12155 12156fi 12157 12158ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 12159#include <$ac_cv_struct_tm> 12160 12161" 12162if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 12163 12164cat >>confdefs.h <<_ACEOF 12165#define HAVE_STRUCT_TM_TM_ZONE 1 12166_ACEOF 12167 12168 12169fi 12170 12171if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 12172 12173$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 12174 12175else 12176 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 12177" 12178if test "x$ac_cv_have_decl_tzname" = xyes; then : 12179 ac_have_decl=1 12180else 12181 ac_have_decl=0 12182fi 12183 12184cat >>confdefs.h <<_ACEOF 12185#define HAVE_DECL_TZNAME $ac_have_decl 12186_ACEOF 12187 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 12189$as_echo_n "checking for tzname... " >&6; } 12190if ${ac_cv_var_tzname+:} false; then : 12191 $as_echo_n "(cached) " >&6 12192else 12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12194/* end confdefs.h. */ 12195#include <time.h> 12196#if !HAVE_DECL_TZNAME 12197extern char *tzname[]; 12198#endif 12199 12200int 12201main () 12202{ 12203return tzname[0][0]; 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208if ac_fn_c_try_link "$LINENO"; then : 12209 ac_cv_var_tzname=yes 12210else 12211 ac_cv_var_tzname=no 12212fi 12213rm -f core conftest.err conftest.$ac_objext \ 12214 conftest$ac_exeext conftest.$ac_ext 12215fi 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 12217$as_echo "$ac_cv_var_tzname" >&6; } 12218 if test $ac_cv_var_tzname = yes; then 12219 12220$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 12221 12222 fi 12223fi 12224 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 12226$as_echo_n "checking for tm_zone in struct tm... " >&6; } 12227if ${ac_cv_struct_tm_zone+:} false; then : 12228 $as_echo_n "(cached) " >&6 12229else 12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12231/* end confdefs.h. */ 12232#include <sys/types.h> 12233#include <$ac_cv_struct_tm> 12234int 12235main () 12236{ 12237struct tm tm; tm.tm_zone; 12238 ; 12239 return 0; 12240} 12241_ACEOF 12242if ac_fn_c_try_compile "$LINENO"; then : 12243 ac_cv_struct_tm_zone=yes 12244else 12245 ac_cv_struct_tm_zone=no 12246fi 12247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12248fi 12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 12250$as_echo "$ac_cv_struct_tm_zone" >&6; } 12251if test "$ac_cv_struct_tm_zone" = yes; then 12252 12253$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 12254 12255fi 12256 12257# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 12258# consider it declared and we won't give our own extern. 12259ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 12260" 12261if test "x$ac_cv_have_decl_tzname" = xyes; then : 12262 ac_have_decl=1 12263else 12264 ac_have_decl=0 12265fi 12266 12267cat >>confdefs.h <<_ACEOF 12268#define HAVE_DECL_TZNAME $ac_have_decl 12269_ACEOF 12270 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 12272$as_echo_n "checking for tzname... " >&6; } 12273if ${ac_cv_var_tzname+:} false; then : 12274 $as_echo_n "(cached) " >&6 12275else 12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12277/* end confdefs.h. */ 12278#include <time.h> 12279#if !HAVE_DECL_TZNAME 12280extern char *tzname[]; 12281#endif 12282int 12283main () 12284{ 12285return tzname[0][0]; 12286 ; 12287 return 0; 12288} 12289_ACEOF 12290if ac_fn_c_try_link "$LINENO"; then : 12291 ac_cv_var_tzname=yes 12292else 12293 ac_cv_var_tzname=no 12294fi 12295rm -f core conftest.err conftest.$ac_objext \ 12296 conftest$ac_exeext conftest.$ac_ext 12297fi 12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 12299$as_echo "$ac_cv_var_tzname" >&6; } 12300 if test $ac_cv_var_tzname = yes; then 12301 12302$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 12303 12304 fi 12305 12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 12307$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 12308if ${ac_cv_struct_tm_isdst+:} false; then : 12309 $as_echo_n "(cached) " >&6 12310else 12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12312/* end confdefs.h. */ 12313#include <sys/types.h> 12314#include <$ac_cv_struct_tm> 12315int 12316main () 12317{ 12318struct tm tm; tm.tm_isdst; 12319 ; 12320 return 0; 12321} 12322_ACEOF 12323if ac_fn_c_try_compile "$LINENO"; then : 12324 ac_cv_struct_tm_isdst=yes 12325else 12326 ac_cv_struct_tm_isdst=no 12327fi 12328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12329fi 12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 12331$as_echo "$ac_cv_struct_tm_isdst" >&6; } 12332if test "$ac_cv_struct_tm_isdst" = yes; then 12333 12334$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 12335 12336fi 12337 12338 12339ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 12340" 12341if test "x$ac_cv_have_decl_daylight" = xyes; then : 12342 ac_have_decl=1 12343else 12344 ac_have_decl=0 12345fi 12346 12347cat >>confdefs.h <<_ACEOF 12348#define HAVE_DECL_DAYLIGHT $ac_have_decl 12349_ACEOF 12350 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 12352$as_echo_n "checking for daylight... " >&6; } 12353if ${ac_cv_var_daylight+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357/* end confdefs.h. */ 12358#include <time.h> 12359#if !HAVE_DECL_DAYLIGHT 12360extern int daylight; 12361#endif 12362int 12363main () 12364{ 12365atoi(daylight); 12366 ; 12367 return 0; 12368} 12369_ACEOF 12370if ac_fn_c_try_link "$LINENO"; then : 12371 ac_cv_var_daylight=yes 12372else 12373 ac_cv_var_daylight=no 12374fi 12375rm -f core conftest.err conftest.$ac_objext \ 12376 conftest$ac_exeext conftest.$ac_ext 12377fi 12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 12379$as_echo "$ac_cv_var_daylight" >&6; } 12380 if test $ac_cv_var_daylight = yes; then 12381 12382$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 12383 12384 fi 12385 12386# Check whether --enable-largefile was given. 12387if test "${enable_largefile+set}" = set; then : 12388 enableval=$enable_largefile; 12389fi 12390 12391if test "$enable_largefile" != no; then 12392 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12394$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12395if ${ac_cv_sys_largefile_CC+:} false; then : 12396 $as_echo_n "(cached) " >&6 12397else 12398 ac_cv_sys_largefile_CC=no 12399 if test "$GCC" != yes; then 12400 ac_save_CC=$CC 12401 while :; do 12402 # IRIX 6.2 and later do not support large files by default, 12403 # so use the C compiler's -n32 option if that helps. 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12405/* end confdefs.h. */ 12406#include <sys/types.h> 12407 /* Check that off_t can represent 2**63 - 1 correctly. 12408 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12409 since some C++ compilers masquerading as C compilers 12410 incorrectly reject 9223372036854775807. */ 12411#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12413 && LARGE_OFF_T % 2147483647 == 1) 12414 ? 1 : -1]; 12415int 12416main () 12417{ 12418 12419 ; 12420 return 0; 12421} 12422_ACEOF 12423 if ac_fn_c_try_compile "$LINENO"; then : 12424 break 12425fi 12426rm -f core conftest.err conftest.$ac_objext 12427 CC="$CC -n32" 12428 if ac_fn_c_try_compile "$LINENO"; then : 12429 ac_cv_sys_largefile_CC=' -n32'; break 12430fi 12431rm -f core conftest.err conftest.$ac_objext 12432 break 12433 done 12434 CC=$ac_save_CC 12435 rm -f conftest.$ac_ext 12436 fi 12437fi 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12439$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12440 if test "$ac_cv_sys_largefile_CC" != no; then 12441 CC=$CC$ac_cv_sys_largefile_CC 12442 fi 12443 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12445$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12446if ${ac_cv_sys_file_offset_bits+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 while :; do 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12451/* end confdefs.h. */ 12452#include <sys/types.h> 12453 /* Check that off_t can represent 2**63 - 1 correctly. 12454 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12455 since some C++ compilers masquerading as C compilers 12456 incorrectly reject 9223372036854775807. */ 12457#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12459 && LARGE_OFF_T % 2147483647 == 1) 12460 ? 1 : -1]; 12461int 12462main () 12463{ 12464 12465 ; 12466 return 0; 12467} 12468_ACEOF 12469if ac_fn_c_try_compile "$LINENO"; then : 12470 ac_cv_sys_file_offset_bits=no; break 12471fi 12472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12474/* end confdefs.h. */ 12475#define _FILE_OFFSET_BITS 64 12476#include <sys/types.h> 12477 /* Check that off_t can represent 2**63 - 1 correctly. 12478 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12479 since some C++ compilers masquerading as C compilers 12480 incorrectly reject 9223372036854775807. */ 12481#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12483 && LARGE_OFF_T % 2147483647 == 1) 12484 ? 1 : -1]; 12485int 12486main () 12487{ 12488 12489 ; 12490 return 0; 12491} 12492_ACEOF 12493if ac_fn_c_try_compile "$LINENO"; then : 12494 ac_cv_sys_file_offset_bits=64; break 12495fi 12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12497 ac_cv_sys_file_offset_bits=unknown 12498 break 12499done 12500fi 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12502$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12503case $ac_cv_sys_file_offset_bits in #( 12504 no | unknown) ;; 12505 *) 12506cat >>confdefs.h <<_ACEOF 12507#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12508_ACEOF 12509;; 12510esac 12511rm -rf conftest* 12512 if test $ac_cv_sys_file_offset_bits = unknown; then 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12514$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12515if ${ac_cv_sys_large_files+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 while :; do 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521#include <sys/types.h> 12522 /* Check that off_t can represent 2**63 - 1 correctly. 12523 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12524 since some C++ compilers masquerading as C compilers 12525 incorrectly reject 9223372036854775807. */ 12526#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12528 && LARGE_OFF_T % 2147483647 == 1) 12529 ? 1 : -1]; 12530int 12531main () 12532{ 12533 12534 ; 12535 return 0; 12536} 12537_ACEOF 12538if ac_fn_c_try_compile "$LINENO"; then : 12539 ac_cv_sys_large_files=no; break 12540fi 12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12543/* end confdefs.h. */ 12544#define _LARGE_FILES 1 12545#include <sys/types.h> 12546 /* Check that off_t can represent 2**63 - 1 correctly. 12547 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12548 since some C++ compilers masquerading as C compilers 12549 incorrectly reject 9223372036854775807. */ 12550#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12552 && LARGE_OFF_T % 2147483647 == 1) 12553 ? 1 : -1]; 12554int 12555main () 12556{ 12557 12558 ; 12559 return 0; 12560} 12561_ACEOF 12562if ac_fn_c_try_compile "$LINENO"; then : 12563 ac_cv_sys_large_files=1; break 12564fi 12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12566 ac_cv_sys_large_files=unknown 12567 break 12568done 12569fi 12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12571$as_echo "$ac_cv_sys_large_files" >&6; } 12572case $ac_cv_sys_large_files in #( 12573 no | unknown) ;; 12574 *) 12575cat >>confdefs.h <<_ACEOF 12576#define _LARGE_FILES $ac_cv_sys_large_files 12577_ACEOF 12578;; 12579esac 12580rm -rf conftest* 12581 fi 12582 12583 12584fi 12585 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12587$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12588if ${ac_cv_sys_largefile_source+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 while :; do 12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12593/* end confdefs.h. */ 12594#include <sys/types.h> /* for off_t */ 12595 #include <stdio.h> 12596int 12597main () 12598{ 12599int (*fp) (FILE *, off_t, int) = fseeko; 12600 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12601 ; 12602 return 0; 12603} 12604_ACEOF 12605if ac_fn_c_try_link "$LINENO"; then : 12606 ac_cv_sys_largefile_source=no; break 12607fi 12608rm -f core conftest.err conftest.$ac_objext \ 12609 conftest$ac_exeext conftest.$ac_ext 12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611/* end confdefs.h. */ 12612#define _LARGEFILE_SOURCE 1 12613#include <sys/types.h> /* for off_t */ 12614 #include <stdio.h> 12615int 12616main () 12617{ 12618int (*fp) (FILE *, off_t, int) = fseeko; 12619 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12620 ; 12621 return 0; 12622} 12623_ACEOF 12624if ac_fn_c_try_link "$LINENO"; then : 12625 ac_cv_sys_largefile_source=1; break 12626fi 12627rm -f core conftest.err conftest.$ac_objext \ 12628 conftest$ac_exeext conftest.$ac_ext 12629 ac_cv_sys_largefile_source=unknown 12630 break 12631done 12632fi 12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12634$as_echo "$ac_cv_sys_largefile_source" >&6; } 12635case $ac_cv_sys_largefile_source in #( 12636 no | unknown) ;; 12637 *) 12638cat >>confdefs.h <<_ACEOF 12639#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12640_ACEOF 12641;; 12642esac 12643rm -rf conftest* 12644 12645# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12646# in glibc 2.1.3, but that breaks too many other things. 12647# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12648if test $ac_cv_sys_largefile_source != unknown; then 12649 12650$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12651 12652fi 12653 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 12655$as_echo_n "checking for mbstate_t... " >&6; } 12656if ${ac_cv_type_mbstate_t+:} false; then : 12657 $as_echo_n "(cached) " >&6 12658else 12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12660/* end confdefs.h. */ 12661$ac_includes_default 12662# include <wchar.h> 12663int 12664main () 12665{ 12666mbstate_t x; return sizeof x; 12667 ; 12668 return 0; 12669} 12670_ACEOF 12671if ac_fn_c_try_compile "$LINENO"; then : 12672 ac_cv_type_mbstate_t=yes 12673else 12674 ac_cv_type_mbstate_t=no 12675fi 12676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12677fi 12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 12679$as_echo "$ac_cv_type_mbstate_t" >&6; } 12680 if test $ac_cv_type_mbstate_t = yes; then 12681 12682$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 12683 12684 else 12685 12686$as_echo "#define mbstate_t int" >>confdefs.h 12687 12688 fi 12689 12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 12691$as_echo_n "checking for struct option in getopt... " >&6; } 12692if ${ac_cv_struct_option_getopt_h+:} false; then : 12693 $as_echo_n "(cached) " >&6 12694else 12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12696/* end confdefs.h. */ 12697#include <getopt.h> 12698int 12699main () 12700{ 12701struct option op; op.name; 12702 ; 12703 return 0; 12704} 12705_ACEOF 12706if ac_fn_c_try_compile "$LINENO"; then : 12707 ac_cv_struct_option_getopt_h=yes 12708else 12709 ac_cv_struct_option_getopt_h=no 12710fi 12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12712fi 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 12714$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 12715if test "$ac_cv_struct_option_getopt_h" = yes; then 12716 12717$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 12718 12719fi 12720 12721ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12722if test "x$ac_cv_type_pid_t" = xyes; then : 12723 12724else 12725 12726cat >>confdefs.h <<_ACEOF 12727#define pid_t int 12728_ACEOF 12729 12730fi 12731 12732ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 12733case $ac_cv_c_uint8_t in #( 12734 no|yes) ;; #( 12735 *) 12736 12737$as_echo "#define _UINT8_T 1" >>confdefs.h 12738 12739 12740cat >>confdefs.h <<_ACEOF 12741#define uint8_t $ac_cv_c_uint8_t 12742_ACEOF 12743;; 12744 esac 12745 12746ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 12747case $ac_cv_c_uint16_t in #( 12748 no|yes) ;; #( 12749 *) 12750 12751 12752cat >>confdefs.h <<_ACEOF 12753#define uint16_t $ac_cv_c_uint16_t 12754_ACEOF 12755;; 12756 esac 12757 12758ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 12759case $ac_cv_c_uint32_t in #( 12760 no|yes) ;; #( 12761 *) 12762 12763$as_echo "#define _UINT32_T 1" >>confdefs.h 12764 12765 12766cat >>confdefs.h <<_ACEOF 12767#define uint32_t $ac_cv_c_uint32_t 12768_ACEOF 12769;; 12770 esac 12771 12772ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 12773case $ac_cv_c_int32_t in #( 12774 no|yes) ;; #( 12775 *) 12776 12777cat >>confdefs.h <<_ACEOF 12778#define int32_t $ac_cv_c_int32_t 12779_ACEOF 12780;; 12781esac 12782 12783ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 12784case $ac_cv_c_uint64_t in #( 12785 no|yes) ;; #( 12786 *) 12787 12788$as_echo "#define _UINT64_T 1" >>confdefs.h 12789 12790 12791cat >>confdefs.h <<_ACEOF 12792#define uint64_t $ac_cv_c_uint64_t 12793_ACEOF 12794;; 12795 esac 12796 12797ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 12798case $ac_cv_c_int64_t in #( 12799 no|yes) ;; #( 12800 *) 12801 12802cat >>confdefs.h <<_ACEOF 12803#define int64_t $ac_cv_c_int64_t 12804_ACEOF 12805;; 12806esac 12807 12808 12809 12810 12811 for ac_header in $ac_header_list 12812do : 12813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12814ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12815" 12816if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12817 cat >>confdefs.h <<_ACEOF 12818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12819_ACEOF 12820 12821fi 12822 12823done 12824 12825 12826 12827 12828 12829 12830 12831 12832for ac_func in getpagesize 12833do : 12834 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12835if test "x$ac_cv_func_getpagesize" = xyes; then : 12836 cat >>confdefs.h <<_ACEOF 12837#define HAVE_GETPAGESIZE 1 12838_ACEOF 12839 12840fi 12841done 12842 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12844$as_echo_n "checking for working mmap... " >&6; } 12845if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847else 12848 if test "$cross_compiling" = yes; then : 12849 ac_cv_func_mmap_fixed_mapped=no 12850else 12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853$ac_includes_default 12854/* malloc might have been renamed as rpl_malloc. */ 12855#undef malloc 12856 12857/* Thanks to Mike Haertel and Jim Avera for this test. 12858 Here is a matrix of mmap possibilities: 12859 mmap private not fixed 12860 mmap private fixed at somewhere currently unmapped 12861 mmap private fixed at somewhere already mapped 12862 mmap shared not fixed 12863 mmap shared fixed at somewhere currently unmapped 12864 mmap shared fixed at somewhere already mapped 12865 For private mappings, we should verify that changes cannot be read() 12866 back from the file, nor mmap's back from the file at a different 12867 address. (There have been systems where private was not correctly 12868 implemented like the infamous i386 svr4.0, and systems where the 12869 VM page cache was not coherent with the file system buffer cache 12870 like early versions of FreeBSD and possibly contemporary NetBSD.) 12871 For shared mappings, we should conversely verify that changes get 12872 propagated back to all the places they're supposed to be. 12873 12874 Grep wants private fixed already mapped. 12875 The main things grep needs to know about mmap are: 12876 * does it exist and is it safe to write into the mmap'd area 12877 * how to use it (BSD variants) */ 12878 12879#include <fcntl.h> 12880#include <sys/mman.h> 12881 12882#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12883char *malloc (); 12884#endif 12885 12886/* This mess was copied from the GNU getpagesize.h. */ 12887#ifndef HAVE_GETPAGESIZE 12888# ifdef _SC_PAGESIZE 12889# define getpagesize() sysconf(_SC_PAGESIZE) 12890# else /* no _SC_PAGESIZE */ 12891# ifdef HAVE_SYS_PARAM_H 12892# include <sys/param.h> 12893# ifdef EXEC_PAGESIZE 12894# define getpagesize() EXEC_PAGESIZE 12895# else /* no EXEC_PAGESIZE */ 12896# ifdef NBPG 12897# define getpagesize() NBPG * CLSIZE 12898# ifndef CLSIZE 12899# define CLSIZE 1 12900# endif /* no CLSIZE */ 12901# else /* no NBPG */ 12902# ifdef NBPC 12903# define getpagesize() NBPC 12904# else /* no NBPC */ 12905# ifdef PAGESIZE 12906# define getpagesize() PAGESIZE 12907# endif /* PAGESIZE */ 12908# endif /* no NBPC */ 12909# endif /* no NBPG */ 12910# endif /* no EXEC_PAGESIZE */ 12911# else /* no HAVE_SYS_PARAM_H */ 12912# define getpagesize() 8192 /* punt totally */ 12913# endif /* no HAVE_SYS_PARAM_H */ 12914# endif /* no _SC_PAGESIZE */ 12915 12916#endif /* no HAVE_GETPAGESIZE */ 12917 12918int 12919main () 12920{ 12921 char *data, *data2, *data3; 12922 const char *cdata2; 12923 int i, pagesize; 12924 int fd, fd2; 12925 12926 pagesize = getpagesize (); 12927 12928 /* First, make a file with some known garbage in it. */ 12929 data = (char *) malloc (pagesize); 12930 if (!data) 12931 return 1; 12932 for (i = 0; i < pagesize; ++i) 12933 *(data + i) = rand (); 12934 umask (0); 12935 fd = creat ("conftest.mmap", 0600); 12936 if (fd < 0) 12937 return 2; 12938 if (write (fd, data, pagesize) != pagesize) 12939 return 3; 12940 close (fd); 12941 12942 /* Next, check that the tail of a page is zero-filled. File must have 12943 non-zero length, otherwise we risk SIGBUS for entire page. */ 12944 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12945 if (fd2 < 0) 12946 return 4; 12947 cdata2 = ""; 12948 if (write (fd2, cdata2, 1) != 1) 12949 return 5; 12950 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12951 if (data2 == MAP_FAILED) 12952 return 6; 12953 for (i = 0; i < pagesize; ++i) 12954 if (*(data2 + i)) 12955 return 7; 12956 close (fd2); 12957 if (munmap (data2, pagesize)) 12958 return 8; 12959 12960 /* Next, try to mmap the file at a fixed address which already has 12961 something else allocated at it. If we can, also make sure that 12962 we see the same garbage. */ 12963 fd = open ("conftest.mmap", O_RDWR); 12964 if (fd < 0) 12965 return 9; 12966 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12967 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12968 return 10; 12969 for (i = 0; i < pagesize; ++i) 12970 if (*(data + i) != *(data2 + i)) 12971 return 11; 12972 12973 /* Finally, make sure that changes to the mapped area do not 12974 percolate back to the file as seen by read(). (This is a bug on 12975 some variants of i386 svr4.0.) */ 12976 for (i = 0; i < pagesize; ++i) 12977 *(data2 + i) = *(data2 + i) + 1; 12978 data3 = (char *) malloc (pagesize); 12979 if (!data3) 12980 return 12; 12981 if (read (fd, data3, pagesize) != pagesize) 12982 return 13; 12983 for (i = 0; i < pagesize; ++i) 12984 if (*(data + i) != *(data3 + i)) 12985 return 14; 12986 close (fd); 12987 return 0; 12988} 12989_ACEOF 12990if ac_fn_c_try_run "$LINENO"; then : 12991 ac_cv_func_mmap_fixed_mapped=yes 12992else 12993 ac_cv_func_mmap_fixed_mapped=no 12994fi 12995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12996 conftest.$ac_objext conftest.beam conftest.$ac_ext 12997fi 12998 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13001$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13002if test $ac_cv_func_mmap_fixed_mapped = yes; then 13003 13004$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13005 13006fi 13007rm -f conftest.mmap conftest.txt 13008 13009for ac_header in vfork.h 13010do : 13011 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13012if test "x$ac_cv_header_vfork_h" = xyes; then : 13013 cat >>confdefs.h <<_ACEOF 13014#define HAVE_VFORK_H 1 13015_ACEOF 13016 13017fi 13018 13019done 13020 13021for ac_func in fork vfork 13022do : 13023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13024ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13025if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13026 cat >>confdefs.h <<_ACEOF 13027#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13028_ACEOF 13029 13030fi 13031done 13032 13033if test "x$ac_cv_func_fork" = xyes; then 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13035$as_echo_n "checking for working fork... " >&6; } 13036if ${ac_cv_func_fork_works+:} false; then : 13037 $as_echo_n "(cached) " >&6 13038else 13039 if test "$cross_compiling" = yes; then : 13040 ac_cv_func_fork_works=cross 13041else 13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13043/* end confdefs.h. */ 13044$ac_includes_default 13045int 13046main () 13047{ 13048 13049 /* By Ruediger Kuhlmann. */ 13050 return fork () < 0; 13051 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056if ac_fn_c_try_run "$LINENO"; then : 13057 ac_cv_func_fork_works=yes 13058else 13059 ac_cv_func_fork_works=no 13060fi 13061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13062 conftest.$ac_objext conftest.beam conftest.$ac_ext 13063fi 13064 13065fi 13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13067$as_echo "$ac_cv_func_fork_works" >&6; } 13068 13069else 13070 ac_cv_func_fork_works=$ac_cv_func_fork 13071fi 13072if test "x$ac_cv_func_fork_works" = xcross; then 13073 case $host in 13074 *-*-amigaos* | *-*-msdosdjgpp*) 13075 # Override, as these systems have only a dummy fork() stub 13076 ac_cv_func_fork_works=no 13077 ;; 13078 *) 13079 ac_cv_func_fork_works=yes 13080 ;; 13081 esac 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13083$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13084fi 13085ac_cv_func_vfork_works=$ac_cv_func_vfork 13086if test "x$ac_cv_func_vfork" = xyes; then 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 13088$as_echo_n "checking for working vfork... " >&6; } 13089if ${ac_cv_func_vfork_works+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 if test "$cross_compiling" = yes; then : 13093 ac_cv_func_vfork_works=cross 13094else 13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096/* end confdefs.h. */ 13097/* Thanks to Paul Eggert for this test. */ 13098$ac_includes_default 13099#include <sys/wait.h> 13100#ifdef HAVE_VFORK_H 13101# include <vfork.h> 13102#endif 13103/* On some sparc systems, changes by the child to local and incoming 13104 argument registers are propagated back to the parent. The compiler 13105 is told about this with #include <vfork.h>, but some compilers 13106 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 13107 static variable whose address is put into a register that is 13108 clobbered by the vfork. */ 13109static void 13110#ifdef __cplusplus 13111sparc_address_test (int arg) 13112# else 13113sparc_address_test (arg) int arg; 13114#endif 13115{ 13116 static pid_t child; 13117 if (!child) { 13118 child = vfork (); 13119 if (child < 0) { 13120 perror ("vfork"); 13121 _exit(2); 13122 } 13123 if (!child) { 13124 arg = getpid(); 13125 write(-1, "", 0); 13126 _exit (arg); 13127 } 13128 } 13129} 13130 13131int 13132main () 13133{ 13134 pid_t parent = getpid (); 13135 pid_t child; 13136 13137 sparc_address_test (0); 13138 13139 child = vfork (); 13140 13141 if (child == 0) { 13142 /* Here is another test for sparc vfork register problems. This 13143 test uses lots of local variables, at least as many local 13144 variables as main has allocated so far including compiler 13145 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 13146 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 13147 reuse the register of parent for one of the local variables, 13148 since it will think that parent can't possibly be used any more 13149 in this routine. Assigning to the local variable will thus 13150 munge parent in the parent process. */ 13151 pid_t 13152 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13153 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13154 /* Convince the compiler that p..p7 are live; otherwise, it might 13155 use the same hardware register for all 8 local variables. */ 13156 if (p != p1 || p != p2 || p != p3 || p != p4 13157 || p != p5 || p != p6 || p != p7) 13158 _exit(1); 13159 13160 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 13161 from child file descriptors. If the child closes a descriptor 13162 before it execs or exits, this munges the parent's descriptor 13163 as well. Test for this by closing stdout in the child. */ 13164 _exit(close(fileno(stdout)) != 0); 13165 } else { 13166 int status; 13167 struct stat st; 13168 13169 while (wait(&status) != child) 13170 ; 13171 return ( 13172 /* Was there some problem with vforking? */ 13173 child < 0 13174 13175 /* Did the child fail? (This shouldn't happen.) */ 13176 || status 13177 13178 /* Did the vfork/compiler bug occur? */ 13179 || parent != getpid() 13180 13181 /* Did the file descriptor bug occur? */ 13182 || fstat(fileno(stdout), &st) != 0 13183 ); 13184 } 13185} 13186_ACEOF 13187if ac_fn_c_try_run "$LINENO"; then : 13188 ac_cv_func_vfork_works=yes 13189else 13190 ac_cv_func_vfork_works=no 13191fi 13192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13193 conftest.$ac_objext conftest.beam conftest.$ac_ext 13194fi 13195 13196fi 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 13198$as_echo "$ac_cv_func_vfork_works" >&6; } 13199 13200fi; 13201if test "x$ac_cv_func_fork_works" = xcross; then 13202 ac_cv_func_vfork_works=$ac_cv_func_vfork 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13204$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13205fi 13206 13207if test "x$ac_cv_func_vfork_works" = xyes; then 13208 13209$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 13210 13211else 13212 13213$as_echo "#define vfork fork" >>confdefs.h 13214 13215fi 13216if test "x$ac_cv_func_fork_works" = xyes; then 13217 13218$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 13219 13220fi 13221 13222 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 13224$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 13225if ${ac_cv_func_mbrtowc+:} false; then : 13226 $as_echo_n "(cached) " >&6 13227else 13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13229/* end confdefs.h. */ 13230#include <wchar.h> 13231int 13232main () 13233{ 13234wchar_t wc; 13235 char const s[] = ""; 13236 size_t n = 1; 13237 mbstate_t state; 13238 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 13239 ; 13240 return 0; 13241} 13242_ACEOF 13243if ac_fn_c_try_link "$LINENO"; then : 13244 ac_cv_func_mbrtowc=yes 13245else 13246 ac_cv_func_mbrtowc=no 13247fi 13248rm -f core conftest.err conftest.$ac_objext \ 13249 conftest$ac_exeext conftest.$ac_ext 13250fi 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 13252$as_echo "$ac_cv_func_mbrtowc" >&6; } 13253 if test $ac_cv_func_mbrtowc = yes; then 13254 13255$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 13256 13257 fi 13258 13259 13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 13261$as_echo_n "checking for gcc compiler warnings... " >&6; } 13262# Check whether --enable-warnings was given. 13263if test "${enable_warnings+set}" = set; then : 13264 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13266$as_echo "no" >&6; } 13267 WARNINGS= 13268else 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13270$as_echo "yes" >&6; } 13271 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 13272 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 13273 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 13274 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 13275fi 13276else 13277 13278if test "$GCC" = yes; then 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13280$as_echo "yes" >&6; } 13281 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 13282 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 13283 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 13284 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 13285else 13286 WARNINGS= 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13288$as_echo "no" >&6; } 13289fi 13290fi 13291 13292 13293for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof 13294do : 13295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13297if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13298 cat >>confdefs.h <<_ACEOF 13299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13300_ACEOF 13301 13302fi 13303done 13304 13305 13306ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 13307if test "x$ac_cv_func_getopt_long" = xyes; then : 13308 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 13309 13310else 13311 case " $LIBOBJS " in 13312 *" getopt_long.$ac_objext "* ) ;; 13313 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 13314 ;; 13315esac 13316 13317fi 13318 13319ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 13320if test "x$ac_cv_func_asprintf" = xyes; then : 13321 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 13322 13323else 13324 case " $LIBOBJS " in 13325 *" asprintf.$ac_objext "* ) ;; 13326 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 13327 ;; 13328esac 13329 13330fi 13331 13332ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 13333if test "x$ac_cv_func_vasprintf" = xyes; then : 13334 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 13335 13336else 13337 case " $LIBOBJS " in 13338 *" vasprintf.$ac_objext "* ) ;; 13339 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 13340 ;; 13341esac 13342 13343fi 13344 13345ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 13346if test "x$ac_cv_func_strlcpy" = xyes; then : 13347 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 13348 13349else 13350 case " $LIBOBJS " in 13351 *" strlcpy.$ac_objext "* ) ;; 13352 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 13353 ;; 13354esac 13355 13356fi 13357 13358ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 13359if test "x$ac_cv_func_strlcat" = xyes; then : 13360 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 13361 13362else 13363 case " $LIBOBJS " in 13364 *" strlcat.$ac_objext "* ) ;; 13365 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 13366 ;; 13367esac 13368 13369fi 13370 13371ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 13372if test "x$ac_cv_func_getline" = xyes; then : 13373 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 13374 13375else 13376 case " $LIBOBJS " in 13377 *" getline.$ac_objext "* ) ;; 13378 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 13379 ;; 13380esac 13381 13382fi 13383 13384ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 13385if test "x$ac_cv_func_ctime_r" = xyes; then : 13386 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 13387 13388else 13389 case " $LIBOBJS " in 13390 *" ctime_r.$ac_objext "* ) ;; 13391 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 13392 ;; 13393esac 13394 13395fi 13396 13397ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 13398if test "x$ac_cv_func_asctime_r" = xyes; then : 13399 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h 13400 13401else 13402 case " $LIBOBJS " in 13403 *" asctime_r.$ac_objext "* ) ;; 13404 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 13405 ;; 13406esac 13407 13408fi 13409 13410ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 13411if test "x$ac_cv_func_pread" = xyes; then : 13412 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 13413 13414else 13415 case " $LIBOBJS " in 13416 *" pread.$ac_objext "* ) ;; 13417 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 13418 ;; 13419esac 13420 13421fi 13422 13423 13424 13425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 13426$as_echo_n "checking for gzopen in -lz... " >&6; } 13427if ${ac_cv_lib_z_gzopen+:} false; then : 13428 $as_echo_n "(cached) " >&6 13429else 13430 ac_check_lib_save_LIBS=$LIBS 13431LIBS="-lz $LIBS" 13432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13433/* end confdefs.h. */ 13434 13435/* Override any GCC internal prototype to avoid an error. 13436 Use char because int might match the return type of a GCC 13437 builtin and then its argument prototype would still apply. */ 13438#ifdef __cplusplus 13439extern "C" 13440#endif 13441char gzopen (); 13442int 13443main () 13444{ 13445return gzopen (); 13446 ; 13447 return 0; 13448} 13449_ACEOF 13450if ac_fn_c_try_link "$LINENO"; then : 13451 ac_cv_lib_z_gzopen=yes 13452else 13453 ac_cv_lib_z_gzopen=no 13454fi 13455rm -f core conftest.err conftest.$ac_objext \ 13456 conftest$ac_exeext conftest.$ac_ext 13457LIBS=$ac_check_lib_save_LIBS 13458fi 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 13460$as_echo "$ac_cv_lib_z_gzopen" >&6; } 13461if test "x$ac_cv_lib_z_gzopen" = xyes; then : 13462 cat >>confdefs.h <<_ACEOF 13463#define HAVE_LIBZ 1 13464_ACEOF 13465 13466 LIBS="-lz $LIBS" 13467 13468fi 13469 13470if test "$MINGW" = 1; then 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 13472$as_echo_n "checking for regexec in -lgnurx... " >&6; } 13473if ${ac_cv_lib_gnurx_regexec+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475else 13476 ac_check_lib_save_LIBS=$LIBS 13477LIBS="-lgnurx $LIBS" 13478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13479/* end confdefs.h. */ 13480 13481/* Override any GCC internal prototype to avoid an error. 13482 Use char because int might match the return type of a GCC 13483 builtin and then its argument prototype would still apply. */ 13484#ifdef __cplusplus 13485extern "C" 13486#endif 13487char regexec (); 13488int 13489main () 13490{ 13491return regexec (); 13492 ; 13493 return 0; 13494} 13495_ACEOF 13496if ac_fn_c_try_link "$LINENO"; then : 13497 ac_cv_lib_gnurx_regexec=yes 13498else 13499 ac_cv_lib_gnurx_regexec=no 13500fi 13501rm -f core conftest.err conftest.$ac_objext \ 13502 conftest$ac_exeext conftest.$ac_ext 13503LIBS=$ac_check_lib_save_LIBS 13504fi 13505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 13506$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 13507if test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 13508 cat >>confdefs.h <<_ACEOF 13509#define HAVE_LIBGNURX 1 13510_ACEOF 13511 13512 LIBS="-lgnurx $LIBS" 13513 13514else 13515 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 13516fi 13517 13518fi 13519 13520 if test "$cross_compiling" = yes; then 13521 IS_CROSS_COMPILE_TRUE= 13522 IS_CROSS_COMPILE_FALSE='#' 13523else 13524 IS_CROSS_COMPILE_TRUE='#' 13525 IS_CROSS_COMPILE_FALSE= 13526fi 13527 13528 13529ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 13530 13531cat >confcache <<\_ACEOF 13532# This file is a shell script that caches the results of configure 13533# tests run on this system so they can be shared between configure 13534# scripts and configure runs, see configure's option --config-cache. 13535# It is not useful on other systems. If it contains results you don't 13536# want to keep, you may remove or edit it. 13537# 13538# config.status only pays attention to the cache file if you give it 13539# the --recheck option to rerun configure. 13540# 13541# `ac_cv_env_foo' variables (set or unset) will be overridden when 13542# loading this file, other *unset* `ac_cv_foo' will be assigned the 13543# following values. 13544 13545_ACEOF 13546 13547# The following way of writing the cache mishandles newlines in values, 13548# but we know of no workaround that is simple, portable, and efficient. 13549# So, we kill variables containing newlines. 13550# Ultrix sh set writes to stderr and can't be redirected directly, 13551# and sets the high bit in the cache file unless we assign to the vars. 13552( 13553 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13554 eval ac_val=\$$ac_var 13555 case $ac_val in #( 13556 *${as_nl}*) 13557 case $ac_var in #( 13558 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13559$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13560 esac 13561 case $ac_var in #( 13562 _ | IFS | as_nl) ;; #( 13563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13564 *) { eval $ac_var=; unset $ac_var;} ;; 13565 esac ;; 13566 esac 13567 done 13568 13569 (set) 2>&1 | 13570 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13571 *${as_nl}ac_space=\ *) 13572 # `set' does not quote correctly, so add quotes: double-quote 13573 # substitution turns \\\\ into \\, and sed turns \\ into \. 13574 sed -n \ 13575 "s/'/'\\\\''/g; 13576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13577 ;; #( 13578 *) 13579 # `set' quotes correctly as required by POSIX, so do not add quotes. 13580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13581 ;; 13582 esac | 13583 sort 13584) | 13585 sed ' 13586 /^ac_cv_env_/b end 13587 t clear 13588 :clear 13589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13590 t end 13591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13592 :end' >>confcache 13593if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13594 if test -w "$cache_file"; then 13595 if test "x$cache_file" != "x/dev/null"; then 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13597$as_echo "$as_me: updating cache $cache_file" >&6;} 13598 if test ! -f "$cache_file" || test -h "$cache_file"; then 13599 cat confcache >"$cache_file" 13600 else 13601 case $cache_file in #( 13602 */* | ?:*) 13603 mv -f confcache "$cache_file"$$ && 13604 mv -f "$cache_file"$$ "$cache_file" ;; #( 13605 *) 13606 mv -f confcache "$cache_file" ;; 13607 esac 13608 fi 13609 fi 13610 else 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13612$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13613 fi 13614fi 13615rm -f confcache 13616 13617test "x$prefix" = xNONE && prefix=$ac_default_prefix 13618# Let make expand exec_prefix. 13619test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13620 13621DEFS=-DHAVE_CONFIG_H 13622 13623ac_libobjs= 13624ac_ltlibobjs= 13625U= 13626for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13627 # 1. Remove the extension, and $U if already installed. 13628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13629 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13631 # will be set to the directory where LIBOBJS objects are built. 13632 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13633 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13634done 13635LIBOBJS=$ac_libobjs 13636 13637LTLIBOBJS=$ac_ltlibobjs 13638 13639 13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13641$as_echo_n "checking that generated files are newer than configure... " >&6; } 13642 if test -n "$am_sleep_pid"; then 13643 # Hide warnings about reused PIDs. 13644 wait $am_sleep_pid 2>/dev/null 13645 fi 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13647$as_echo "done" >&6; } 13648 if test -n "$EXEEXT"; then 13649 am__EXEEXT_TRUE= 13650 am__EXEEXT_FALSE='#' 13651else 13652 am__EXEEXT_TRUE='#' 13653 am__EXEEXT_FALSE= 13654fi 13655 13656if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13657 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13658Usually this means the macro was only invoked conditionally." "$LINENO" 5 13659fi 13660if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 13661 as_fn_error $? "conditional \"MINGW\" was never defined. 13662Usually this means the macro was only invoked conditionally." "$LINENO" 5 13663fi 13664if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 13665 as_fn_error $? "conditional \"FSECT5\" was never defined. 13666Usually this means the macro was only invoked conditionally." "$LINENO" 5 13667fi 13668if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13669 as_fn_error $? "conditional \"AMDEP\" was never defined. 13670Usually this means the macro was only invoked conditionally." "$LINENO" 5 13671fi 13672if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13673 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13674Usually this means the macro was only invoked conditionally." "$LINENO" 5 13675fi 13676 13677if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 13678 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 13679Usually this means the macro was only invoked conditionally." "$LINENO" 5 13680fi 13681 13682: "${CONFIG_STATUS=./config.status}" 13683ac_write_fail=0 13684ac_clean_files_save=$ac_clean_files 13685ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13688as_write_fail=0 13689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13690#! $SHELL 13691# Generated by $as_me. 13692# Run this file to recreate the current configuration. 13693# Compiler output produced by configure, useful for debugging 13694# configure, is in config.log if it exists. 13695 13696debug=false 13697ac_cs_recheck=false 13698ac_cs_silent=false 13699 13700SHELL=\${CONFIG_SHELL-$SHELL} 13701export SHELL 13702_ASEOF 13703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13704## -------------------- ## 13705## M4sh Initialization. ## 13706## -------------------- ## 13707 13708# Be more Bourne compatible 13709DUALCASE=1; export DUALCASE # for MKS sh 13710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13711 emulate sh 13712 NULLCMD=: 13713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13714 # is contrary to our usage. Disable this feature. 13715 alias -g '${1+"$@"}'='"$@"' 13716 setopt NO_GLOB_SUBST 13717else 13718 case `(set -o) 2>/dev/null` in #( 13719 *posix*) : 13720 set -o posix ;; #( 13721 *) : 13722 ;; 13723esac 13724fi 13725 13726 13727as_nl=' 13728' 13729export as_nl 13730# Printing a long string crashes Solaris 7 /usr/bin/printf. 13731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13734# Prefer a ksh shell builtin over an external printf program on Solaris, 13735# but without wasting forks for bash or zsh. 13736if test -z "$BASH_VERSION$ZSH_VERSION" \ 13737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13738 as_echo='print -r --' 13739 as_echo_n='print -rn --' 13740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13741 as_echo='printf %s\n' 13742 as_echo_n='printf %s' 13743else 13744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13746 as_echo_n='/usr/ucb/echo -n' 13747 else 13748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13749 as_echo_n_body='eval 13750 arg=$1; 13751 case $arg in #( 13752 *"$as_nl"*) 13753 expr "X$arg" : "X\\(.*\\)$as_nl"; 13754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13755 esac; 13756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13757 ' 13758 export as_echo_n_body 13759 as_echo_n='sh -c $as_echo_n_body as_echo' 13760 fi 13761 export as_echo_body 13762 as_echo='sh -c $as_echo_body as_echo' 13763fi 13764 13765# The user is always right. 13766if test "${PATH_SEPARATOR+set}" != set; then 13767 PATH_SEPARATOR=: 13768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13770 PATH_SEPARATOR=';' 13771 } 13772fi 13773 13774 13775# IFS 13776# We need space, tab and new line, in precisely that order. Quoting is 13777# there to prevent editors from complaining about space-tab. 13778# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13779# splitting by setting IFS to empty value.) 13780IFS=" "" $as_nl" 13781 13782# Find who we are. Look in the path if we contain no directory separator. 13783as_myself= 13784case $0 in #(( 13785 *[\\/]* ) as_myself=$0 ;; 13786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13787for as_dir in $PATH 13788do 13789 IFS=$as_save_IFS 13790 test -z "$as_dir" && as_dir=. 13791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13792 done 13793IFS=$as_save_IFS 13794 13795 ;; 13796esac 13797# We did not find ourselves, most probably we were run as `sh COMMAND' 13798# in which case we are not to be found in the path. 13799if test "x$as_myself" = x; then 13800 as_myself=$0 13801fi 13802if test ! -f "$as_myself"; then 13803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13804 exit 1 13805fi 13806 13807# Unset variables that we do not need and which cause bugs (e.g. in 13808# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13809# suppresses any "Segmentation fault" message there. '((' could 13810# trigger a bug in pdksh 5.2.14. 13811for as_var in BASH_ENV ENV MAIL MAILPATH 13812do eval test x\${$as_var+set} = xset \ 13813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13814done 13815PS1='$ ' 13816PS2='> ' 13817PS4='+ ' 13818 13819# NLS nuisances. 13820LC_ALL=C 13821export LC_ALL 13822LANGUAGE=C 13823export LANGUAGE 13824 13825# CDPATH. 13826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13827 13828 13829# as_fn_error STATUS ERROR [LINENO LOG_FD] 13830# ---------------------------------------- 13831# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13832# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13833# script with STATUS, using 1 if that was 0. 13834as_fn_error () 13835{ 13836 as_status=$1; test $as_status -eq 0 && as_status=1 13837 if test "$4"; then 13838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13840 fi 13841 $as_echo "$as_me: error: $2" >&2 13842 as_fn_exit $as_status 13843} # as_fn_error 13844 13845 13846# as_fn_set_status STATUS 13847# ----------------------- 13848# Set $? to STATUS, without forking. 13849as_fn_set_status () 13850{ 13851 return $1 13852} # as_fn_set_status 13853 13854# as_fn_exit STATUS 13855# ----------------- 13856# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13857as_fn_exit () 13858{ 13859 set +e 13860 as_fn_set_status $1 13861 exit $1 13862} # as_fn_exit 13863 13864# as_fn_unset VAR 13865# --------------- 13866# Portably unset VAR. 13867as_fn_unset () 13868{ 13869 { eval $1=; unset $1;} 13870} 13871as_unset=as_fn_unset 13872# as_fn_append VAR VALUE 13873# ---------------------- 13874# Append the text in VALUE to the end of the definition contained in VAR. Take 13875# advantage of any shell optimizations that allow amortized linear growth over 13876# repeated appends, instead of the typical quadratic growth present in naive 13877# implementations. 13878if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13879 eval 'as_fn_append () 13880 { 13881 eval $1+=\$2 13882 }' 13883else 13884 as_fn_append () 13885 { 13886 eval $1=\$$1\$2 13887 } 13888fi # as_fn_append 13889 13890# as_fn_arith ARG... 13891# ------------------ 13892# Perform arithmetic evaluation on the ARGs, and store the result in the 13893# global $as_val. Take advantage of shells that can avoid forks. The arguments 13894# must be portable across $(()) and expr. 13895if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13896 eval 'as_fn_arith () 13897 { 13898 as_val=$(( $* )) 13899 }' 13900else 13901 as_fn_arith () 13902 { 13903 as_val=`expr "$@" || test $? -eq 1` 13904 } 13905fi # as_fn_arith 13906 13907 13908if expr a : '\(a\)' >/dev/null 2>&1 && 13909 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13910 as_expr=expr 13911else 13912 as_expr=false 13913fi 13914 13915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13916 as_basename=basename 13917else 13918 as_basename=false 13919fi 13920 13921if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13922 as_dirname=dirname 13923else 13924 as_dirname=false 13925fi 13926 13927as_me=`$as_basename -- "$0" || 13928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13929 X"$0" : 'X\(//\)$' \| \ 13930 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13931$as_echo X/"$0" | 13932 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13933 s//\1/ 13934 q 13935 } 13936 /^X\/\(\/\/\)$/{ 13937 s//\1/ 13938 q 13939 } 13940 /^X\/\(\/\).*/{ 13941 s//\1/ 13942 q 13943 } 13944 s/.*/./; q'` 13945 13946# Avoid depending upon Character Ranges. 13947as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13948as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13949as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13950as_cr_digits='0123456789' 13951as_cr_alnum=$as_cr_Letters$as_cr_digits 13952 13953ECHO_C= ECHO_N= ECHO_T= 13954case `echo -n x` in #((((( 13955-n*) 13956 case `echo 'xy\c'` in 13957 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13958 xy) ECHO_C='\c';; 13959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13960 ECHO_T=' ';; 13961 esac;; 13962*) 13963 ECHO_N='-n';; 13964esac 13965 13966rm -f conf$$ conf$$.exe conf$$.file 13967if test -d conf$$.dir; then 13968 rm -f conf$$.dir/conf$$.file 13969else 13970 rm -f conf$$.dir 13971 mkdir conf$$.dir 2>/dev/null 13972fi 13973if (echo >conf$$.file) 2>/dev/null; then 13974 if ln -s conf$$.file conf$$ 2>/dev/null; then 13975 as_ln_s='ln -s' 13976 # ... but there are two gotchas: 13977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13979 # In both cases, we have to default to `cp -pR'. 13980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13981 as_ln_s='cp -pR' 13982 elif ln conf$$.file conf$$ 2>/dev/null; then 13983 as_ln_s=ln 13984 else 13985 as_ln_s='cp -pR' 13986 fi 13987else 13988 as_ln_s='cp -pR' 13989fi 13990rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13991rmdir conf$$.dir 2>/dev/null 13992 13993 13994# as_fn_mkdir_p 13995# ------------- 13996# Create "$as_dir" as a directory, including parents if necessary. 13997as_fn_mkdir_p () 13998{ 13999 14000 case $as_dir in #( 14001 -*) as_dir=./$as_dir;; 14002 esac 14003 test -d "$as_dir" || eval $as_mkdir_p || { 14004 as_dirs= 14005 while :; do 14006 case $as_dir in #( 14007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14008 *) as_qdir=$as_dir;; 14009 esac 14010 as_dirs="'$as_qdir' $as_dirs" 14011 as_dir=`$as_dirname -- "$as_dir" || 14012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14013 X"$as_dir" : 'X\(//\)[^/]' \| \ 14014 X"$as_dir" : 'X\(//\)$' \| \ 14015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14016$as_echo X"$as_dir" | 14017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14018 s//\1/ 14019 q 14020 } 14021 /^X\(\/\/\)[^/].*/{ 14022 s//\1/ 14023 q 14024 } 14025 /^X\(\/\/\)$/{ 14026 s//\1/ 14027 q 14028 } 14029 /^X\(\/\).*/{ 14030 s//\1/ 14031 q 14032 } 14033 s/.*/./; q'` 14034 test -d "$as_dir" && break 14035 done 14036 test -z "$as_dirs" || eval "mkdir $as_dirs" 14037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14038 14039 14040} # as_fn_mkdir_p 14041if mkdir -p . 2>/dev/null; then 14042 as_mkdir_p='mkdir -p "$as_dir"' 14043else 14044 test -d ./-p && rmdir ./-p 14045 as_mkdir_p=false 14046fi 14047 14048 14049# as_fn_executable_p FILE 14050# ----------------------- 14051# Test if FILE is an executable regular file. 14052as_fn_executable_p () 14053{ 14054 test -f "$1" && test -x "$1" 14055} # as_fn_executable_p 14056as_test_x='test -x' 14057as_executable_p=as_fn_executable_p 14058 14059# Sed expression to map a string onto a valid CPP name. 14060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14061 14062# Sed expression to map a string onto a valid variable name. 14063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14064 14065 14066exec 6>&1 14067## ----------------------------------- ## 14068## Main body of $CONFIG_STATUS script. ## 14069## ----------------------------------- ## 14070_ASEOF 14071test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14072 14073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14074# Save the log message, to keep $0 and so on meaningful, and to 14075# report actual input values of CONFIG_FILES etc. instead of their 14076# values after options handling. 14077ac_log=" 14078This file was extended by file $as_me 5.14, which was 14079generated by GNU Autoconf 2.69. Invocation command line was 14080 14081 CONFIG_FILES = $CONFIG_FILES 14082 CONFIG_HEADERS = $CONFIG_HEADERS 14083 CONFIG_LINKS = $CONFIG_LINKS 14084 CONFIG_COMMANDS = $CONFIG_COMMANDS 14085 $ $0 $@ 14086 14087on `(hostname || uname -n) 2>/dev/null | sed 1q` 14088" 14089 14090_ACEOF 14091 14092case $ac_config_files in *" 14093"*) set x $ac_config_files; shift; ac_config_files=$*;; 14094esac 14095 14096case $ac_config_headers in *" 14097"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14098esac 14099 14100 14101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14102# Files that config.status was made for. 14103config_files="$ac_config_files" 14104config_headers="$ac_config_headers" 14105config_commands="$ac_config_commands" 14106 14107_ACEOF 14108 14109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14110ac_cs_usage="\ 14111\`$as_me' instantiates files and other configuration actions 14112from templates according to the current configuration. Unless the files 14113and actions are specified as TAGs, all are instantiated by default. 14114 14115Usage: $0 [OPTION]... [TAG]... 14116 14117 -h, --help print this help, then exit 14118 -V, --version print version number and configuration settings, then exit 14119 --config print configuration, then exit 14120 -q, --quiet, --silent 14121 do not print progress messages 14122 -d, --debug don't remove temporary files 14123 --recheck update $as_me by reconfiguring in the same conditions 14124 --file=FILE[:TEMPLATE] 14125 instantiate the configuration file FILE 14126 --header=FILE[:TEMPLATE] 14127 instantiate the configuration header FILE 14128 14129Configuration files: 14130$config_files 14131 14132Configuration headers: 14133$config_headers 14134 14135Configuration commands: 14136$config_commands 14137 14138Report bugs to <christos@astron.com>." 14139 14140_ACEOF 14141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14142ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14143ac_cs_version="\\ 14144file config.status 5.14 14145configured by $0, generated by GNU Autoconf 2.69, 14146 with options \\"\$ac_cs_config\\" 14147 14148Copyright (C) 2012 Free Software Foundation, Inc. 14149This config.status script is free software; the Free Software Foundation 14150gives unlimited permission to copy, distribute and modify it." 14151 14152ac_pwd='$ac_pwd' 14153srcdir='$srcdir' 14154INSTALL='$INSTALL' 14155MKDIR_P='$MKDIR_P' 14156AWK='$AWK' 14157test -n "\$AWK" || AWK=awk 14158_ACEOF 14159 14160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14161# The default lists apply if the user does not specify any file. 14162ac_need_defaults=: 14163while test $# != 0 14164do 14165 case $1 in 14166 --*=?*) 14167 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14169 ac_shift=: 14170 ;; 14171 --*=) 14172 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14173 ac_optarg= 14174 ac_shift=: 14175 ;; 14176 *) 14177 ac_option=$1 14178 ac_optarg=$2 14179 ac_shift=shift 14180 ;; 14181 esac 14182 14183 case $ac_option in 14184 # Handling of the options. 14185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14186 ac_cs_recheck=: ;; 14187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14188 $as_echo "$ac_cs_version"; exit ;; 14189 --config | --confi | --conf | --con | --co | --c ) 14190 $as_echo "$ac_cs_config"; exit ;; 14191 --debug | --debu | --deb | --de | --d | -d ) 14192 debug=: ;; 14193 --file | --fil | --fi | --f ) 14194 $ac_shift 14195 case $ac_optarg in 14196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14197 '') as_fn_error $? "missing file argument" ;; 14198 esac 14199 as_fn_append CONFIG_FILES " '$ac_optarg'" 14200 ac_need_defaults=false;; 14201 --header | --heade | --head | --hea ) 14202 $ac_shift 14203 case $ac_optarg in 14204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14205 esac 14206 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14207 ac_need_defaults=false;; 14208 --he | --h) 14209 # Conflict between --help and --header 14210 as_fn_error $? "ambiguous option: \`$1' 14211Try \`$0 --help' for more information.";; 14212 --help | --hel | -h ) 14213 $as_echo "$ac_cs_usage"; exit ;; 14214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14215 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14216 ac_cs_silent=: ;; 14217 14218 # This is an error. 14219 -*) as_fn_error $? "unrecognized option: \`$1' 14220Try \`$0 --help' for more information." ;; 14221 14222 *) as_fn_append ac_config_targets " $1" 14223 ac_need_defaults=false ;; 14224 14225 esac 14226 shift 14227done 14228 14229ac_configure_extra_args= 14230 14231if $ac_cs_silent; then 14232 exec 6>/dev/null 14233 ac_configure_extra_args="$ac_configure_extra_args --silent" 14234fi 14235 14236_ACEOF 14237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14238if \$ac_cs_recheck; then 14239 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14240 shift 14241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14242 CONFIG_SHELL='$SHELL' 14243 export CONFIG_SHELL 14244 exec "\$@" 14245fi 14246 14247_ACEOF 14248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14249exec 5>>config.log 14250{ 14251 echo 14252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14253## Running $as_me. ## 14254_ASBOX 14255 $as_echo "$ac_log" 14256} >&5 14257 14258_ACEOF 14259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14260# 14261# INIT-COMMANDS 14262# 14263AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14264 14265 14266# The HP-UX ksh and POSIX shell print the target directory to stdout 14267# if CDPATH is set. 14268(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14269 14270sed_quote_subst='$sed_quote_subst' 14271double_quote_subst='$double_quote_subst' 14272delay_variable_subst='$delay_variable_subst' 14273macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14274macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14275enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14276pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14277enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14278enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14279host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14280host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14281host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14282build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14283build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14284build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14285SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14286Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14287GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14288EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14289FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14290LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14291NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14292LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14293max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14294ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14295exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14296lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14297lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14298lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14299reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14300reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14301OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14302deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14303file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14304AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14305AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14306STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14307RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14308old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14309old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14310old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14311CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14312CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14313compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14314GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14315lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14316lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14317lt_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"`' 14318lt_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"`' 14319objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14320SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14321ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14322MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14323lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14324lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14325lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14326lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14327lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14328need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14329DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14330NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14331LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14332OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14333OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14334libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14335shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14336extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14337archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14338enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14339export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14340whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14341compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14342old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14343old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14344archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14345archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14346module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14347module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14348with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14349allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14350no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14351hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14352hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14353hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14354hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14355hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14356hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14357hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14358hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14359inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14360link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14361fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14362always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14363export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14364exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14365include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14366prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14367file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14368variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14369need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14370need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14371version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14372runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14373shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14374shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14375libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14376library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14377soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14378postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14379postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14380finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14381finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14382hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14383sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14384sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14385hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14386enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14387enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14388enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14389old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14390striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14391 14392LTCC='$LTCC' 14393LTCFLAGS='$LTCFLAGS' 14394compiler='$compiler_DEFAULT' 14395 14396# Quote evaled strings. 14397for var in SED \ 14398GREP \ 14399EGREP \ 14400FGREP \ 14401LD \ 14402NM \ 14403LN_S \ 14404lt_SP2NL \ 14405lt_NL2SP \ 14406reload_flag \ 14407OBJDUMP \ 14408deplibs_check_method \ 14409file_magic_cmd \ 14410AR \ 14411AR_FLAGS \ 14412STRIP \ 14413RANLIB \ 14414CC \ 14415CFLAGS \ 14416compiler \ 14417lt_cv_sys_global_symbol_pipe \ 14418lt_cv_sys_global_symbol_to_cdecl \ 14419lt_cv_sys_global_symbol_to_c_name_address \ 14420lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14421SHELL \ 14422ECHO \ 14423lt_prog_compiler_no_builtin_flag \ 14424lt_prog_compiler_wl \ 14425lt_prog_compiler_pic \ 14426lt_prog_compiler_static \ 14427lt_cv_prog_compiler_c_o \ 14428need_locks \ 14429DSYMUTIL \ 14430NMEDIT \ 14431LIPO \ 14432OTOOL \ 14433OTOOL64 \ 14434shrext_cmds \ 14435export_dynamic_flag_spec \ 14436whole_archive_flag_spec \ 14437compiler_needs_object \ 14438with_gnu_ld \ 14439allow_undefined_flag \ 14440no_undefined_flag \ 14441hardcode_libdir_flag_spec \ 14442hardcode_libdir_flag_spec_ld \ 14443hardcode_libdir_separator \ 14444fix_srcfile_path \ 14445exclude_expsyms \ 14446include_expsyms \ 14447file_list_spec \ 14448variables_saved_for_relink \ 14449libname_spec \ 14450library_names_spec \ 14451soname_spec \ 14452finish_eval \ 14453old_striplib \ 14454striplib; do 14455 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14456 *[\\\\\\\`\\"\\\$]*) 14457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14458 ;; 14459 *) 14460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14461 ;; 14462 esac 14463done 14464 14465# Double-quote double-evaled strings. 14466for var in reload_cmds \ 14467old_postinstall_cmds \ 14468old_postuninstall_cmds \ 14469old_archive_cmds \ 14470extract_expsyms_cmds \ 14471old_archive_from_new_cmds \ 14472old_archive_from_expsyms_cmds \ 14473archive_cmds \ 14474archive_expsym_cmds \ 14475module_cmds \ 14476module_expsym_cmds \ 14477export_symbols_cmds \ 14478prelink_cmds \ 14479postinstall_cmds \ 14480postuninstall_cmds \ 14481finish_cmds \ 14482sys_lib_search_path_spec \ 14483sys_lib_dlsearch_path_spec; do 14484 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14485 *[\\\\\\\`\\"\\\$]*) 14486 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14487 ;; 14488 *) 14489 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14490 ;; 14491 esac 14492done 14493 14494# Fix-up fallback echo if it was mangled by the above quoting rules. 14495case \$lt_ECHO in 14496*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14497 ;; 14498esac 14499 14500ac_aux_dir='$ac_aux_dir' 14501xsi_shell='$xsi_shell' 14502lt_shell_append='$lt_shell_append' 14503 14504# See if we are running on zsh, and set the options which allow our 14505# commands through without removal of \ escapes INIT. 14506if test -n "\${ZSH_VERSION+set}" ; then 14507 setopt NO_GLOB_SUBST 14508fi 14509 14510 14511 PACKAGE='$PACKAGE' 14512 VERSION='$VERSION' 14513 TIMESTAMP='$TIMESTAMP' 14514 RM='$RM' 14515 ofile='$ofile' 14516 14517 14518 14519 14520_ACEOF 14521 14522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14523 14524# Handling of arguments. 14525for ac_config_target in $ac_config_targets 14526do 14527 case $ac_config_target in 14528 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14530 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14531 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14532 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14533 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 14534 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14535 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14536 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 14537 14538 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14539 esac 14540done 14541 14542 14543# If the user did not use the arguments to specify the items to instantiate, 14544# then the envvar interface is used. Set only those that are not. 14545# We use the long form for the default assignment because of an extremely 14546# bizarre bug on SunOS 4.1.3. 14547if $ac_need_defaults; then 14548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14551fi 14552 14553# Have a temporary directory for convenience. Make it in the build tree 14554# simply because there is no reason against having it here, and in addition, 14555# creating and moving files from /tmp can sometimes cause problems. 14556# Hook for its removal unless debugging. 14557# Note that there is a small window in which the directory will not be cleaned: 14558# after its creation but before its name has been assigned to `$tmp'. 14559$debug || 14560{ 14561 tmp= ac_tmp= 14562 trap 'exit_status=$? 14563 : "${ac_tmp:=$tmp}" 14564 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14565' 0 14566 trap 'as_fn_exit 1' 1 2 13 15 14567} 14568# Create a (secure) tmp directory for tmp files. 14569 14570{ 14571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14572 test -d "$tmp" 14573} || 14574{ 14575 tmp=./conf$$-$RANDOM 14576 (umask 077 && mkdir "$tmp") 14577} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14578ac_tmp=$tmp 14579 14580# Set up the scripts for CONFIG_FILES section. 14581# No need to generate them if there are no CONFIG_FILES. 14582# This happens for instance with `./config.status config.h'. 14583if test -n "$CONFIG_FILES"; then 14584 14585 14586ac_cr=`echo X | tr X '\015'` 14587# On cygwin, bash can eat \r inside `` if the user requested igncr. 14588# But we know of no other shell where ac_cr would be empty at this 14589# point, so we can use a bashism as a fallback. 14590if test "x$ac_cr" = x; then 14591 eval ac_cr=\$\'\\r\' 14592fi 14593ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14594if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14595 ac_cs_awk_cr='\\r' 14596else 14597 ac_cs_awk_cr=$ac_cr 14598fi 14599 14600echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14601_ACEOF 14602 14603 14604{ 14605 echo "cat >conf$$subs.awk <<_ACEOF" && 14606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14607 echo "_ACEOF" 14608} >conf$$subs.sh || 14609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14610ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14611ac_delim='%!_!# ' 14612for ac_last_try in false false false false false :; do 14613 . ./conf$$subs.sh || 14614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14615 14616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14617 if test $ac_delim_n = $ac_delim_num; then 14618 break 14619 elif $ac_last_try; then 14620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14621 else 14622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14623 fi 14624done 14625rm -f conf$$subs.sh 14626 14627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14628cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14629_ACEOF 14630sed -n ' 14631h 14632s/^/S["/; s/!.*/"]=/ 14633p 14634g 14635s/^[^!]*!// 14636:repl 14637t repl 14638s/'"$ac_delim"'$// 14639t delim 14640:nl 14641h 14642s/\(.\{148\}\)..*/\1/ 14643t more1 14644s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14645p 14646n 14647b repl 14648:more1 14649s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14650p 14651g 14652s/.\{148\}// 14653t nl 14654:delim 14655h 14656s/\(.\{148\}\)..*/\1/ 14657t more2 14658s/["\\]/\\&/g; s/^/"/; s/$/"/ 14659p 14660b 14661:more2 14662s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14663p 14664g 14665s/.\{148\}// 14666t delim 14667' <conf$$subs.awk | sed ' 14668/^[^""]/{ 14669 N 14670 s/\n// 14671} 14672' >>$CONFIG_STATUS || ac_write_fail=1 14673rm -f conf$$subs.awk 14674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14675_ACAWK 14676cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14677 for (key in S) S_is_set[key] = 1 14678 FS = "" 14679 14680} 14681{ 14682 line = $ 0 14683 nfields = split(line, field, "@") 14684 substed = 0 14685 len = length(field[1]) 14686 for (i = 2; i < nfields; i++) { 14687 key = field[i] 14688 keylen = length(key) 14689 if (S_is_set[key]) { 14690 value = S[key] 14691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14692 len += length(value) + length(field[++i]) 14693 substed = 1 14694 } else 14695 len += 1 + keylen 14696 } 14697 14698 print line 14699} 14700 14701_ACAWK 14702_ACEOF 14703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14704if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14706else 14707 cat 14708fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14710_ACEOF 14711 14712# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14713# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14714# trailing colons and then remove the whole line if VPATH becomes empty 14715# (actually we leave an empty line to preserve line numbers). 14716if test "x$srcdir" = x.; then 14717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14718h 14719s/// 14720s/^/:/ 14721s/[ ]*$/:/ 14722s/:\$(srcdir):/:/g 14723s/:\${srcdir}:/:/g 14724s/:@srcdir@:/:/g 14725s/^:*// 14726s/:*$// 14727x 14728s/\(=[ ]*\).*/\1/ 14729G 14730s/\n// 14731s/^[^=]*=[ ]*$// 14732}' 14733fi 14734 14735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14736fi # test -n "$CONFIG_FILES" 14737 14738# Set up the scripts for CONFIG_HEADERS section. 14739# No need to generate them if there are no CONFIG_HEADERS. 14740# This happens for instance with `./config.status Makefile'. 14741if test -n "$CONFIG_HEADERS"; then 14742cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14743BEGIN { 14744_ACEOF 14745 14746# Transform confdefs.h into an awk script `defines.awk', embedded as 14747# here-document in config.status, that substitutes the proper values into 14748# config.h.in to produce config.h. 14749 14750# Create a delimiter string that does not exist in confdefs.h, to ease 14751# handling of long lines. 14752ac_delim='%!_!# ' 14753for ac_last_try in false false :; do 14754 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14755 if test -z "$ac_tt"; then 14756 break 14757 elif $ac_last_try; then 14758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14759 else 14760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14761 fi 14762done 14763 14764# For the awk script, D is an array of macro values keyed by name, 14765# likewise P contains macro parameters if any. Preserve backslash 14766# newline sequences. 14767 14768ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14769sed -n ' 14770s/.\{148\}/&'"$ac_delim"'/g 14771t rset 14772:rset 14773s/^[ ]*#[ ]*define[ ][ ]*/ / 14774t def 14775d 14776:def 14777s/\\$// 14778t bsnl 14779s/["\\]/\\&/g 14780s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14781D["\1"]=" \3"/p 14782s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14783d 14784:bsnl 14785s/["\\]/\\&/g 14786s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14787D["\1"]=" \3\\\\\\n"\\/p 14788t cont 14789s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14790t cont 14791d 14792:cont 14793n 14794s/.\{148\}/&'"$ac_delim"'/g 14795t clear 14796:clear 14797s/\\$// 14798t bsnlc 14799s/["\\]/\\&/g; s/^/"/; s/$/"/p 14800d 14801:bsnlc 14802s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14803b cont 14804' <confdefs.h | sed ' 14805s/'"$ac_delim"'/"\\\ 14806"/g' >>$CONFIG_STATUS || ac_write_fail=1 14807 14808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14809 for (key in D) D_is_set[key] = 1 14810 FS = "" 14811} 14812/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14813 line = \$ 0 14814 split(line, arg, " ") 14815 if (arg[1] == "#") { 14816 defundef = arg[2] 14817 mac1 = arg[3] 14818 } else { 14819 defundef = substr(arg[1], 2) 14820 mac1 = arg[2] 14821 } 14822 split(mac1, mac2, "(") #) 14823 macro = mac2[1] 14824 prefix = substr(line, 1, index(line, defundef) - 1) 14825 if (D_is_set[macro]) { 14826 # Preserve the white space surrounding the "#". 14827 print prefix "define", macro P[macro] D[macro] 14828 next 14829 } else { 14830 # Replace #undef with comments. This is necessary, for example, 14831 # in the case of _POSIX_SOURCE, which is predefined and required 14832 # on some systems where configure will not decide to define it. 14833 if (defundef == "undef") { 14834 print "/*", prefix defundef, macro, "*/" 14835 next 14836 } 14837 } 14838} 14839{ print } 14840_ACAWK 14841_ACEOF 14842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14844fi # test -n "$CONFIG_HEADERS" 14845 14846 14847eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14848shift 14849for ac_tag 14850do 14851 case $ac_tag in 14852 :[FHLC]) ac_mode=$ac_tag; continue;; 14853 esac 14854 case $ac_mode$ac_tag in 14855 :[FHL]*:*);; 14856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14857 :[FH]-) ac_tag=-:-;; 14858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14859 esac 14860 ac_save_IFS=$IFS 14861 IFS=: 14862 set x $ac_tag 14863 IFS=$ac_save_IFS 14864 shift 14865 ac_file=$1 14866 shift 14867 14868 case $ac_mode in 14869 :L) ac_source=$1;; 14870 :[FH]) 14871 ac_file_inputs= 14872 for ac_f 14873 do 14874 case $ac_f in 14875 -) ac_f="$ac_tmp/stdin";; 14876 *) # Look for the file first in the build tree, then in the source tree 14877 # (if the path is not absolute). The absolute path cannot be DOS-style, 14878 # because $ac_f cannot contain `:'. 14879 test -f "$ac_f" || 14880 case $ac_f in 14881 [\\/$]*) false;; 14882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14883 esac || 14884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14885 esac 14886 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14887 as_fn_append ac_file_inputs " '$ac_f'" 14888 done 14889 14890 # Let's still pretend it is `configure' which instantiates (i.e., don't 14891 # use $as_me), people would be surprised to read: 14892 # /* config.h. Generated by config.status. */ 14893 configure_input='Generated from '` 14894 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14895 `' by configure.' 14896 if test x"$ac_file" != x-; then 14897 configure_input="$ac_file. $configure_input" 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14899$as_echo "$as_me: creating $ac_file" >&6;} 14900 fi 14901 # Neutralize special characters interpreted by sed in replacement strings. 14902 case $configure_input in #( 14903 *\&* | *\|* | *\\* ) 14904 ac_sed_conf_input=`$as_echo "$configure_input" | 14905 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14906 *) ac_sed_conf_input=$configure_input;; 14907 esac 14908 14909 case $ac_tag in 14910 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14912 esac 14913 ;; 14914 esac 14915 14916 ac_dir=`$as_dirname -- "$ac_file" || 14917$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14918 X"$ac_file" : 'X\(//\)[^/]' \| \ 14919 X"$ac_file" : 'X\(//\)$' \| \ 14920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14921$as_echo X"$ac_file" | 14922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14923 s//\1/ 14924 q 14925 } 14926 /^X\(\/\/\)[^/].*/{ 14927 s//\1/ 14928 q 14929 } 14930 /^X\(\/\/\)$/{ 14931 s//\1/ 14932 q 14933 } 14934 /^X\(\/\).*/{ 14935 s//\1/ 14936 q 14937 } 14938 s/.*/./; q'` 14939 as_dir="$ac_dir"; as_fn_mkdir_p 14940 ac_builddir=. 14941 14942case "$ac_dir" in 14943.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14944*) 14945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14946 # A ".." for each directory in $ac_dir_suffix. 14947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14948 case $ac_top_builddir_sub in 14949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14951 esac ;; 14952esac 14953ac_abs_top_builddir=$ac_pwd 14954ac_abs_builddir=$ac_pwd$ac_dir_suffix 14955# for backward compatibility: 14956ac_top_builddir=$ac_top_build_prefix 14957 14958case $srcdir in 14959 .) # We are building in place. 14960 ac_srcdir=. 14961 ac_top_srcdir=$ac_top_builddir_sub 14962 ac_abs_top_srcdir=$ac_pwd ;; 14963 [\\/]* | ?:[\\/]* ) # Absolute name. 14964 ac_srcdir=$srcdir$ac_dir_suffix; 14965 ac_top_srcdir=$srcdir 14966 ac_abs_top_srcdir=$srcdir ;; 14967 *) # Relative name. 14968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14969 ac_top_srcdir=$ac_top_build_prefix$srcdir 14970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14971esac 14972ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14973 14974 14975 case $ac_mode in 14976 :F) 14977 # 14978 # CONFIG_FILE 14979 # 14980 14981 case $INSTALL in 14982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14984 esac 14985 ac_MKDIR_P=$MKDIR_P 14986 case $MKDIR_P in 14987 [\\/$]* | ?:[\\/]* ) ;; 14988 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14989 esac 14990_ACEOF 14991 14992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14993# If the template does not know about datarootdir, expand it. 14994# FIXME: This hack should be removed a few years after 2.60. 14995ac_datarootdir_hack=; ac_datarootdir_seen= 14996ac_sed_dataroot=' 14997/datarootdir/ { 14998 p 14999 q 15000} 15001/@datadir@/p 15002/@docdir@/p 15003/@infodir@/p 15004/@localedir@/p 15005/@mandir@/p' 15006case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15007*datarootdir*) ac_datarootdir_seen=yes;; 15008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15010$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15011_ACEOF 15012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15013 ac_datarootdir_hack=' 15014 s&@datadir@&$datadir&g 15015 s&@docdir@&$docdir&g 15016 s&@infodir@&$infodir&g 15017 s&@localedir@&$localedir&g 15018 s&@mandir@&$mandir&g 15019 s&\\\${datarootdir}&$datarootdir&g' ;; 15020esac 15021_ACEOF 15022 15023# Neutralize VPATH when `$srcdir' = `.'. 15024# Shell code in configure.ac might set extrasub. 15025# FIXME: do we really want to maintain this feature? 15026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15027ac_sed_extra="$ac_vpsub 15028$extrasub 15029_ACEOF 15030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15031:t 15032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15033s|@configure_input@|$ac_sed_conf_input|;t t 15034s&@top_builddir@&$ac_top_builddir_sub&;t t 15035s&@top_build_prefix@&$ac_top_build_prefix&;t t 15036s&@srcdir@&$ac_srcdir&;t t 15037s&@abs_srcdir@&$ac_abs_srcdir&;t t 15038s&@top_srcdir@&$ac_top_srcdir&;t t 15039s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15040s&@builddir@&$ac_builddir&;t t 15041s&@abs_builddir@&$ac_abs_builddir&;t t 15042s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15043s&@INSTALL@&$ac_INSTALL&;t t 15044s&@MKDIR_P@&$ac_MKDIR_P&;t t 15045$ac_datarootdir_hack 15046" 15047eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15049 15050test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15053 "$ac_tmp/out"`; test -z "$ac_out"; } && 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15055which seems to be undefined. Please make sure it is defined" >&5 15056$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15057which seems to be undefined. Please make sure it is defined" >&2;} 15058 15059 rm -f "$ac_tmp/stdin" 15060 case $ac_file in 15061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15063 esac \ 15064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15065 ;; 15066 :H) 15067 # 15068 # CONFIG_HEADER 15069 # 15070 if test x"$ac_file" != x-; then 15071 { 15072 $as_echo "/* $configure_input */" \ 15073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15074 } >"$ac_tmp/config.h" \ 15075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15078$as_echo "$as_me: $ac_file is unchanged" >&6;} 15079 else 15080 rm -f "$ac_file" 15081 mv "$ac_tmp/config.h" "$ac_file" \ 15082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15083 fi 15084 else 15085 $as_echo "/* $configure_input */" \ 15086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15087 || as_fn_error $? "could not create -" "$LINENO" 5 15088 fi 15089# Compute "$ac_file"'s index in $config_headers. 15090_am_arg="$ac_file" 15091_am_stamp_count=1 15092for _am_header in $config_headers :; do 15093 case $_am_header in 15094 $_am_arg | $_am_arg:* ) 15095 break ;; 15096 * ) 15097 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15098 esac 15099done 15100echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15101$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15102 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15103 X"$_am_arg" : 'X\(//\)$' \| \ 15104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15105$as_echo X"$_am_arg" | 15106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15107 s//\1/ 15108 q 15109 } 15110 /^X\(\/\/\)[^/].*/{ 15111 s//\1/ 15112 q 15113 } 15114 /^X\(\/\/\)$/{ 15115 s//\1/ 15116 q 15117 } 15118 /^X\(\/\).*/{ 15119 s//\1/ 15120 q 15121 } 15122 s/.*/./; q'`/stamp-h$_am_stamp_count 15123 ;; 15124 15125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15126$as_echo "$as_me: executing $ac_file commands" >&6;} 15127 ;; 15128 esac 15129 15130 15131 case $ac_file$ac_mode in 15132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15133 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15134 # are listed without --file. Let's play safe and only enable the eval 15135 # if we detect the quoting. 15136 case $CONFIG_FILES in 15137 *\'*) eval set x "$CONFIG_FILES" ;; 15138 *) set x $CONFIG_FILES ;; 15139 esac 15140 shift 15141 for mf 15142 do 15143 # Strip MF so we end up with the name of the file. 15144 mf=`echo "$mf" | sed -e 's/:.*$//'` 15145 # Check whether this is an Automake generated Makefile or not. 15146 # We used to match only the files named 'Makefile.in', but 15147 # some people rename them; so instead we look at the file content. 15148 # Grep'ing the first line is not enough: some people post-process 15149 # each Makefile.in and add a new line on top of each file to say so. 15150 # Grep'ing the whole file is not good either: AIX grep has a line 15151 # limit of 2048, but all sed's we know have understand at least 4000. 15152 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15153 dirpart=`$as_dirname -- "$mf" || 15154$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15155 X"$mf" : 'X\(//\)[^/]' \| \ 15156 X"$mf" : 'X\(//\)$' \| \ 15157 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15158$as_echo X"$mf" | 15159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15160 s//\1/ 15161 q 15162 } 15163 /^X\(\/\/\)[^/].*/{ 15164 s//\1/ 15165 q 15166 } 15167 /^X\(\/\/\)$/{ 15168 s//\1/ 15169 q 15170 } 15171 /^X\(\/\).*/{ 15172 s//\1/ 15173 q 15174 } 15175 s/.*/./; q'` 15176 else 15177 continue 15178 fi 15179 # Extract the definition of DEPDIR, am__include, and am__quote 15180 # from the Makefile without running 'make'. 15181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15182 test -z "$DEPDIR" && continue 15183 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15184 test -z "am__include" && continue 15185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15186 # Find all dependency output files, they are included files with 15187 # $(DEPDIR) in their names. We invoke sed twice because it is the 15188 # simplest approach to changing $(DEPDIR) to its actual value in the 15189 # expansion. 15190 for file in `sed -n " 15191 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15192 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15193 # Make sure the directory exists. 15194 test -f "$dirpart/$file" && continue 15195 fdir=`$as_dirname -- "$file" || 15196$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15197 X"$file" : 'X\(//\)[^/]' \| \ 15198 X"$file" : 'X\(//\)$' \| \ 15199 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15200$as_echo X"$file" | 15201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15202 s//\1/ 15203 q 15204 } 15205 /^X\(\/\/\)[^/].*/{ 15206 s//\1/ 15207 q 15208 } 15209 /^X\(\/\/\)$/{ 15210 s//\1/ 15211 q 15212 } 15213 /^X\(\/\).*/{ 15214 s//\1/ 15215 q 15216 } 15217 s/.*/./; q'` 15218 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15219 # echo "creating $dirpart/$file" 15220 echo '# dummy' > "$dirpart/$file" 15221 done 15222 done 15223} 15224 ;; 15225 "libtool":C) 15226 15227 # See if we are running on zsh, and set the options which allow our 15228 # commands through without removal of \ escapes. 15229 if test -n "${ZSH_VERSION+set}" ; then 15230 setopt NO_GLOB_SUBST 15231 fi 15232 15233 cfgfile="${ofile}T" 15234 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15235 $RM "$cfgfile" 15236 15237 cat <<_LT_EOF >> "$cfgfile" 15238#! $SHELL 15239 15240# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15241# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15242# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15243# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15244# 15245# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15246# 2006, 2007, 2008 Free Software Foundation, Inc. 15247# Written by Gordon Matzigkeit, 1996 15248# 15249# This file is part of GNU Libtool. 15250# 15251# GNU Libtool is free software; you can redistribute it and/or 15252# modify it under the terms of the GNU General Public License as 15253# published by the Free Software Foundation; either version 2 of 15254# the License, or (at your option) any later version. 15255# 15256# As a special exception to the GNU General Public License, 15257# if you distribute this file as part of a program or library that 15258# is built using GNU Libtool, you may include this file under the 15259# same distribution terms that you use for the rest of that program. 15260# 15261# GNU Libtool is distributed in the hope that it will be useful, 15262# but WITHOUT ANY WARRANTY; without even the implied warranty of 15263# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15264# GNU General Public License for more details. 15265# 15266# You should have received a copy of the GNU General Public License 15267# along with GNU Libtool; see the file COPYING. If not, a copy 15268# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15269# obtained by writing to the Free Software Foundation, Inc., 15270# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15271 15272 15273# The names of the tagged configurations supported by this script. 15274available_tags="" 15275 15276# ### BEGIN LIBTOOL CONFIG 15277 15278# Which release of libtool.m4 was used? 15279macro_version=$macro_version 15280macro_revision=$macro_revision 15281 15282# Whether or not to build static libraries. 15283build_old_libs=$enable_static 15284 15285# What type of objects to build. 15286pic_mode=$pic_mode 15287 15288# Whether or not to build shared libraries. 15289build_libtool_libs=$enable_shared 15290 15291# Whether or not to optimize for fast installation. 15292fast_install=$enable_fast_install 15293 15294# The host system. 15295host_alias=$host_alias 15296host=$host 15297host_os=$host_os 15298 15299# The build system. 15300build_alias=$build_alias 15301build=$build 15302build_os=$build_os 15303 15304# A sed program that does not truncate output. 15305SED=$lt_SED 15306 15307# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15308Xsed="\$SED -e 1s/^X//" 15309 15310# A grep program that handles long lines. 15311GREP=$lt_GREP 15312 15313# An ERE matcher. 15314EGREP=$lt_EGREP 15315 15316# A literal string matcher. 15317FGREP=$lt_FGREP 15318 15319# A BSD- or MS-compatible name lister. 15320NM=$lt_NM 15321 15322# Whether we need soft or hard links. 15323LN_S=$lt_LN_S 15324 15325# What is the maximum length of a command? 15326max_cmd_len=$max_cmd_len 15327 15328# Object file suffix (normally "o"). 15329objext=$ac_objext 15330 15331# Executable file suffix (normally ""). 15332exeext=$exeext 15333 15334# whether the shell understands "unset". 15335lt_unset=$lt_unset 15336 15337# turn spaces into newlines. 15338SP2NL=$lt_lt_SP2NL 15339 15340# turn newlines into spaces. 15341NL2SP=$lt_lt_NL2SP 15342 15343# How to create reloadable object files. 15344reload_flag=$lt_reload_flag 15345reload_cmds=$lt_reload_cmds 15346 15347# An object symbol dumper. 15348OBJDUMP=$lt_OBJDUMP 15349 15350# Method to check whether dependent libraries are shared objects. 15351deplibs_check_method=$lt_deplibs_check_method 15352 15353# Command to use when deplibs_check_method == "file_magic". 15354file_magic_cmd=$lt_file_magic_cmd 15355 15356# The archiver. 15357AR=$lt_AR 15358AR_FLAGS=$lt_AR_FLAGS 15359 15360# A symbol stripping program. 15361STRIP=$lt_STRIP 15362 15363# Commands used to install an old-style archive. 15364RANLIB=$lt_RANLIB 15365old_postinstall_cmds=$lt_old_postinstall_cmds 15366old_postuninstall_cmds=$lt_old_postuninstall_cmds 15367 15368# A C compiler. 15369LTCC=$lt_CC 15370 15371# LTCC compiler flags. 15372LTCFLAGS=$lt_CFLAGS 15373 15374# Take the output of nm and produce a listing of raw symbols and C names. 15375global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15376 15377# Transform the output of nm in a proper C declaration. 15378global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15379 15380# Transform the output of nm in a C name address pair. 15381global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15382 15383# Transform the output of nm in a C name address pair when lib prefix is needed. 15384global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15385 15386# The name of the directory that contains temporary libtool files. 15387objdir=$objdir 15388 15389# Shell to use when invoking shell scripts. 15390SHELL=$lt_SHELL 15391 15392# An echo program that does not interpret backslashes. 15393ECHO=$lt_ECHO 15394 15395# Used to examine libraries when file_magic_cmd begins with "file". 15396MAGIC_CMD=$MAGIC_CMD 15397 15398# Must we lock files when doing compilation? 15399need_locks=$lt_need_locks 15400 15401# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15402DSYMUTIL=$lt_DSYMUTIL 15403 15404# Tool to change global to local symbols on Mac OS X. 15405NMEDIT=$lt_NMEDIT 15406 15407# Tool to manipulate fat objects and archives on Mac OS X. 15408LIPO=$lt_LIPO 15409 15410# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15411OTOOL=$lt_OTOOL 15412 15413# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15414OTOOL64=$lt_OTOOL64 15415 15416# Old archive suffix (normally "a"). 15417libext=$libext 15418 15419# Shared library suffix (normally ".so"). 15420shrext_cmds=$lt_shrext_cmds 15421 15422# The commands to extract the exported symbol list from a shared archive. 15423extract_expsyms_cmds=$lt_extract_expsyms_cmds 15424 15425# Variables whose values should be saved in libtool wrapper scripts and 15426# restored at link time. 15427variables_saved_for_relink=$lt_variables_saved_for_relink 15428 15429# Do we need the "lib" prefix for modules? 15430need_lib_prefix=$need_lib_prefix 15431 15432# Do we need a version for libraries? 15433need_version=$need_version 15434 15435# Library versioning type. 15436version_type=$version_type 15437 15438# Shared library runtime path variable. 15439runpath_var=$runpath_var 15440 15441# Shared library path variable. 15442shlibpath_var=$shlibpath_var 15443 15444# Is shlibpath searched before the hard-coded library search path? 15445shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15446 15447# Format of library name prefix. 15448libname_spec=$lt_libname_spec 15449 15450# List of archive names. First name is the real one, the rest are links. 15451# The last name is the one that the linker finds with -lNAME 15452library_names_spec=$lt_library_names_spec 15453 15454# The coded name of the library, if different from the real name. 15455soname_spec=$lt_soname_spec 15456 15457# Command to use after installation of a shared archive. 15458postinstall_cmds=$lt_postinstall_cmds 15459 15460# Command to use after uninstallation of a shared archive. 15461postuninstall_cmds=$lt_postuninstall_cmds 15462 15463# Commands used to finish a libtool library installation in a directory. 15464finish_cmds=$lt_finish_cmds 15465 15466# As "finish_cmds", except a single script fragment to be evaled but 15467# not shown. 15468finish_eval=$lt_finish_eval 15469 15470# Whether we should hardcode library paths into libraries. 15471hardcode_into_libs=$hardcode_into_libs 15472 15473# Compile-time system search path for libraries. 15474sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15475 15476# Run-time system search path for libraries. 15477sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15478 15479# Whether dlopen is supported. 15480dlopen_support=$enable_dlopen 15481 15482# Whether dlopen of programs is supported. 15483dlopen_self=$enable_dlopen_self 15484 15485# Whether dlopen of statically linked programs is supported. 15486dlopen_self_static=$enable_dlopen_self_static 15487 15488# Commands to strip libraries. 15489old_striplib=$lt_old_striplib 15490striplib=$lt_striplib 15491 15492 15493# The linker used to build libraries. 15494LD=$lt_LD 15495 15496# Commands used to build an old-style archive. 15497old_archive_cmds=$lt_old_archive_cmds 15498 15499# A language specific compiler. 15500CC=$lt_compiler 15501 15502# Is the compiler the GNU compiler? 15503with_gcc=$GCC 15504 15505# Compiler flag to turn off builtin functions. 15506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15507 15508# How to pass a linker flag through the compiler. 15509wl=$lt_lt_prog_compiler_wl 15510 15511# Additional compiler flags for building library objects. 15512pic_flag=$lt_lt_prog_compiler_pic 15513 15514# Compiler flag to prevent dynamic linking. 15515link_static_flag=$lt_lt_prog_compiler_static 15516 15517# Does compiler simultaneously support -c and -o options? 15518compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15519 15520# Whether or not to add -lc for building shared libraries. 15521build_libtool_need_lc=$archive_cmds_need_lc 15522 15523# Whether or not to disallow shared libs when runtime libs are static. 15524allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15525 15526# Compiler flag to allow reflexive dlopens. 15527export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15528 15529# Compiler flag to generate shared objects directly from archives. 15530whole_archive_flag_spec=$lt_whole_archive_flag_spec 15531 15532# Whether the compiler copes with passing no objects directly. 15533compiler_needs_object=$lt_compiler_needs_object 15534 15535# Create an old-style archive from a shared archive. 15536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15537 15538# Create a temporary old-style archive to link instead of a shared archive. 15539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15540 15541# Commands used to build a shared archive. 15542archive_cmds=$lt_archive_cmds 15543archive_expsym_cmds=$lt_archive_expsym_cmds 15544 15545# Commands used to build a loadable module if different from building 15546# a shared archive. 15547module_cmds=$lt_module_cmds 15548module_expsym_cmds=$lt_module_expsym_cmds 15549 15550# Whether we are building with GNU ld or not. 15551with_gnu_ld=$lt_with_gnu_ld 15552 15553# Flag that allows shared libraries with undefined symbols to be built. 15554allow_undefined_flag=$lt_allow_undefined_flag 15555 15556# Flag that enforces no undefined symbols. 15557no_undefined_flag=$lt_no_undefined_flag 15558 15559# Flag to hardcode \$libdir into a binary during linking. 15560# This must work even if \$libdir does not exist 15561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15562 15563# If ld is used when linking, flag to hardcode \$libdir into a binary 15564# during linking. This must work even if \$libdir does not exist. 15565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15566 15567# Whether we need a single "-rpath" flag with a separated argument. 15568hardcode_libdir_separator=$lt_hardcode_libdir_separator 15569 15570# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15571# DIR into the resulting binary. 15572hardcode_direct=$hardcode_direct 15573 15574# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15575# DIR into the resulting binary and the resulting library dependency is 15576# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15577# library is relocated. 15578hardcode_direct_absolute=$hardcode_direct_absolute 15579 15580# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15581# into the resulting binary. 15582hardcode_minus_L=$hardcode_minus_L 15583 15584# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15585# into the resulting binary. 15586hardcode_shlibpath_var=$hardcode_shlibpath_var 15587 15588# Set to "yes" if building a shared library automatically hardcodes DIR 15589# into the library and all subsequent libraries and executables linked 15590# against it. 15591hardcode_automatic=$hardcode_automatic 15592 15593# Set to yes if linker adds runtime paths of dependent libraries 15594# to runtime path list. 15595inherit_rpath=$inherit_rpath 15596 15597# Whether libtool must link a program against all its dependency libraries. 15598link_all_deplibs=$link_all_deplibs 15599 15600# Fix the shell variable \$srcfile for the compiler. 15601fix_srcfile_path=$lt_fix_srcfile_path 15602 15603# Set to "yes" if exported symbols are required. 15604always_export_symbols=$always_export_symbols 15605 15606# The commands to list exported symbols. 15607export_symbols_cmds=$lt_export_symbols_cmds 15608 15609# Symbols that should not be listed in the preloaded symbols. 15610exclude_expsyms=$lt_exclude_expsyms 15611 15612# Symbols that must always be exported. 15613include_expsyms=$lt_include_expsyms 15614 15615# Commands necessary for linking programs (against libraries) with templates. 15616prelink_cmds=$lt_prelink_cmds 15617 15618# Specify filename containing input files. 15619file_list_spec=$lt_file_list_spec 15620 15621# How to hardcode a shared library path into an executable. 15622hardcode_action=$hardcode_action 15623 15624# ### END LIBTOOL CONFIG 15625 15626_LT_EOF 15627 15628 case $host_os in 15629 aix3*) 15630 cat <<\_LT_EOF >> "$cfgfile" 15631# AIX sometimes has problems with the GCC collect2 program. For some 15632# reason, if we set the COLLECT_NAMES environment variable, the problems 15633# vanish in a puff of smoke. 15634if test "X${COLLECT_NAMES+set}" != Xset; then 15635 COLLECT_NAMES= 15636 export COLLECT_NAMES 15637fi 15638_LT_EOF 15639 ;; 15640 esac 15641 15642 15643ltmain="$ac_aux_dir/ltmain.sh" 15644 15645 15646 # We use sed instead of cat because bash on DJGPP gets confused if 15647 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15648 # text mode, it properly converts lines to CR/LF. This bash problem 15649 # is reportedly fixed, but why not run on old versions too? 15650 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15651 || (rm -f "$cfgfile"; exit 1) 15652 15653 case $xsi_shell in 15654 yes) 15655 cat << \_LT_EOF >> "$cfgfile" 15656 15657# func_dirname file append nondir_replacement 15658# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15659# otherwise set result to NONDIR_REPLACEMENT. 15660func_dirname () 15661{ 15662 case ${1} in 15663 */*) func_dirname_result="${1%/*}${2}" ;; 15664 * ) func_dirname_result="${3}" ;; 15665 esac 15666} 15667 15668# func_basename file 15669func_basename () 15670{ 15671 func_basename_result="${1##*/}" 15672} 15673 15674# func_dirname_and_basename file append nondir_replacement 15675# perform func_basename and func_dirname in a single function 15676# call: 15677# dirname: Compute the dirname of FILE. If nonempty, 15678# add APPEND to the result, otherwise set result 15679# to NONDIR_REPLACEMENT. 15680# value returned in "$func_dirname_result" 15681# basename: Compute filename of FILE. 15682# value retuned in "$func_basename_result" 15683# Implementation must be kept synchronized with func_dirname 15684# and func_basename. For efficiency, we do not delegate to 15685# those functions but instead duplicate the functionality here. 15686func_dirname_and_basename () 15687{ 15688 case ${1} in 15689 */*) func_dirname_result="${1%/*}${2}" ;; 15690 * ) func_dirname_result="${3}" ;; 15691 esac 15692 func_basename_result="${1##*/}" 15693} 15694 15695# func_stripname prefix suffix name 15696# strip PREFIX and SUFFIX off of NAME. 15697# PREFIX and SUFFIX must not contain globbing or regex special 15698# characters, hashes, percent signs, but SUFFIX may contain a leading 15699# dot (in which case that matches only a dot). 15700func_stripname () 15701{ 15702 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15703 # positional parameters, so assign one to ordinary parameter first. 15704 func_stripname_result=${3} 15705 func_stripname_result=${func_stripname_result#"${1}"} 15706 func_stripname_result=${func_stripname_result%"${2}"} 15707} 15708 15709# func_opt_split 15710func_opt_split () 15711{ 15712 func_opt_split_opt=${1%%=*} 15713 func_opt_split_arg=${1#*=} 15714} 15715 15716# func_lo2o object 15717func_lo2o () 15718{ 15719 case ${1} in 15720 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15721 *) func_lo2o_result=${1} ;; 15722 esac 15723} 15724 15725# func_xform libobj-or-source 15726func_xform () 15727{ 15728 func_xform_result=${1%.*}.lo 15729} 15730 15731# func_arith arithmetic-term... 15732func_arith () 15733{ 15734 func_arith_result=$(( $* )) 15735} 15736 15737# func_len string 15738# STRING may not start with a hyphen. 15739func_len () 15740{ 15741 func_len_result=${#1} 15742} 15743 15744_LT_EOF 15745 ;; 15746 *) # Bourne compatible functions. 15747 cat << \_LT_EOF >> "$cfgfile" 15748 15749# func_dirname file append nondir_replacement 15750# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15751# otherwise set result to NONDIR_REPLACEMENT. 15752func_dirname () 15753{ 15754 # Extract subdirectory from the argument. 15755 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15756 if test "X$func_dirname_result" = "X${1}"; then 15757 func_dirname_result="${3}" 15758 else 15759 func_dirname_result="$func_dirname_result${2}" 15760 fi 15761} 15762 15763# func_basename file 15764func_basename () 15765{ 15766 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15767} 15768 15769 15770# func_stripname prefix suffix name 15771# strip PREFIX and SUFFIX off of NAME. 15772# PREFIX and SUFFIX must not contain globbing or regex special 15773# characters, hashes, percent signs, but SUFFIX may contain a leading 15774# dot (in which case that matches only a dot). 15775# func_strip_suffix prefix name 15776func_stripname () 15777{ 15778 case ${2} in 15779 .*) func_stripname_result=`$ECHO "X${3}" \ 15780 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15781 *) func_stripname_result=`$ECHO "X${3}" \ 15782 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15783 esac 15784} 15785 15786# sed scripts: 15787my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15788my_sed_long_arg='1s/^-[^=]*=//' 15789 15790# func_opt_split 15791func_opt_split () 15792{ 15793 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15794 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15795} 15796 15797# func_lo2o object 15798func_lo2o () 15799{ 15800 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15801} 15802 15803# func_xform libobj-or-source 15804func_xform () 15805{ 15806 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15807} 15808 15809# func_arith arithmetic-term... 15810func_arith () 15811{ 15812 func_arith_result=`expr "$@"` 15813} 15814 15815# func_len string 15816# STRING may not start with a hyphen. 15817func_len () 15818{ 15819 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15820} 15821 15822_LT_EOF 15823esac 15824 15825case $lt_shell_append in 15826 yes) 15827 cat << \_LT_EOF >> "$cfgfile" 15828 15829# func_append var value 15830# Append VALUE to the end of shell variable VAR. 15831func_append () 15832{ 15833 eval "$1+=\$2" 15834} 15835_LT_EOF 15836 ;; 15837 *) 15838 cat << \_LT_EOF >> "$cfgfile" 15839 15840# func_append var value 15841# Append VALUE to the end of shell variable VAR. 15842func_append () 15843{ 15844 eval "$1=\$$1\$2" 15845} 15846 15847_LT_EOF 15848 ;; 15849 esac 15850 15851 15852 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15853 || (rm -f "$cfgfile"; exit 1) 15854 15855 mv -f "$cfgfile" "$ofile" || 15856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15857 chmod +x "$ofile" 15858 15859 ;; 15860 15861 esac 15862done # for ac_tag 15863 15864 15865as_fn_exit 0 15866_ACEOF 15867ac_clean_files=$ac_clean_files_save 15868 15869test $ac_write_fail = 0 || 15870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15871 15872 15873# configure is writing to config.log, and then calls config.status. 15874# config.status does its own redirection, appending to config.log. 15875# Unfortunately, on DOS this fails, as config.log is still kept open 15876# by configure, so config.status won't be able to write to it; its 15877# output is simply discarded. So we exec the FD to /dev/null, 15878# effectively closing config.log, so it can be properly (re)opened and 15879# appended to by config.status. When coming back to configure, we 15880# need to make the FD available again. 15881if test "$no_create" != yes; then 15882 ac_cs_success=: 15883 ac_config_status_args= 15884 test "$silent" = yes && 15885 ac_config_status_args="$ac_config_status_args --quiet" 15886 exec 5>/dev/null 15887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15888 exec 5>>config.log 15889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15890 # would make configure fail if this is the last instruction. 15891 $ac_cs_success || as_fn_exit 1 15892fi 15893if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15895$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15896fi 15897 15898