1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for file 5.28. 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 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: christos@astron.com about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='file' 592PACKAGE_TARNAME='file' 593PACKAGE_VERSION='5.28' 594PACKAGE_STRING='file 5.28' 595PACKAGE_BUGREPORT='christos@astron.com' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638IS_CROSS_COMPILE_FALSE 639IS_CROSS_COMPILE_TRUE 640LIBOBJS 641HAVE_VISIBILITY 642CFLAG_VISIBILITY 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648MANIFEST_TOOL 649RANLIB 650ac_ct_AR 651AR 652DLLTOOL 653OBJDUMP 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659SED 660LIBTOOL 661LN_S 662EGREP 663GREP 664CPP 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682WARNINGS 683FSECT5_FALSE 684FSECT5_TRUE 685fsect 686pkgdatadir 687MINGW_FALSE 688MINGW_TRUE 689MINGW 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698AM_BACKSLASH 699AM_DEFAULT_VERBOSITY 700AM_DEFAULT_V 701AM_V 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725target_alias 726host_alias 727build_alias 728LIBS 729ECHO_T 730ECHO_N 731ECHO_C 732DEFS 733mandir 734localedir 735libdir 736psdir 737pdfdir 738dvidir 739htmldir 740infodir 741docdir 742oldincludedir 743includedir 744localstatedir 745sharedstatedir 746sysconfdir 747datadir 748datarootdir 749libexecdir 750sbindir 751bindir 752program_transform_name 753prefix 754exec_prefix 755PACKAGE_URL 756PACKAGE_BUGREPORT 757PACKAGE_STRING 758PACKAGE_VERSION 759PACKAGE_TARNAME 760PACKAGE_NAME 761PATH_SEPARATOR 762SHELL' 763ac_subst_files='' 764ac_user_opts=' 765enable_option_checking 766enable_silent_rules 767enable_elf 768enable_elf_core 769enable_zlib 770enable_fsect_man5 771enable_dependency_tracking 772enable_static 773with_pic 774enable_shared 775enable_fast_install 776with_gnu_ld 777with_sysroot 778enable_libtool_lock 779enable_largefile 780enable_warnings 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CPP' 791 792 793# Initialize some variables set by options. 794ac_init_help= 795ac_init_version=false 796ac_unrecognized_opts= 797ac_unrecognized_sep= 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid package name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"with_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1177Try \`$0 --help' for more information" 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 as_fn_error $? "missing argument to $ac_option" 1204fi 1205 1206if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 elif test "x$build_alias" != "x$host_alias"; then 1247 cross_compiling=yes 1248 fi 1249fi 1250 1251ac_tool_prefix= 1252test -n "$host_alias" && ac_tool_prefix=$host_alias- 1253 1254test "$silent" = yes && exec 6>/dev/null 1255 1256 1257ac_pwd=`pwd` && test -n "$ac_pwd" && 1258ac_ls_di=`ls -di .` && 1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1260 as_fn_error $? "working directory cannot be determined" 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262 as_fn_error $? "pwd does not report name of working directory" 1263 1264 1265# Find the source files, if location was not specified. 1266if test -z "$srcdir"; then 1267 ac_srcdir_defaulted=yes 1268 # Try the directory containing this script, then the parent directory. 1269 ac_confdir=`$as_dirname -- "$as_myself" || 1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271 X"$as_myself" : 'X\(//\)[^/]' \| \ 1272 X"$as_myself" : 'X\(//\)$' \| \ 1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274$as_echo X"$as_myself" | 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)[^/].*/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\).*/{ 1288 s//\1/ 1289 q 1290 } 1291 s/.*/./; q'` 1292 srcdir=$ac_confdir 1293 if test ! -r "$srcdir/$ac_unique_file"; then 1294 srcdir=.. 1295 fi 1296else 1297 ac_srcdir_defaulted=no 1298fi 1299if test ! -r "$srcdir/$ac_unique_file"; then 1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1302fi 1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304ac_abs_confdir=`( 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1306 pwd)` 1307# When building in place, set srcdir=. 1308if test "$ac_abs_confdir" = "$ac_pwd"; then 1309 srcdir=. 1310fi 1311# Remove unnecessary trailing slashes from srcdir. 1312# Double slashes in file names in object file debugging info 1313# mess up M-x gdb in Emacs. 1314case $srcdir in 1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316esac 1317for ac_var in $ac_precious_vars; do 1318 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_env_${ac_var}_value=\$${ac_var} 1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322done 1323 1324# 1325# Report the --help message. 1326# 1327if test "$ac_init_help" = "long"; then 1328 # Omit some internal or obsolete options to make the list less imposing. 1329 # This message is too long to be a string in the A/UX 3.1 sh. 1330 cat <<_ACEOF 1331\`configure' configures file 5.28 to adapt to many kinds of systems. 1332 1333Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1335To assign environment variables (e.g., CC, CFLAGS...), specify them as 1336VAR=VALUE. See below for descriptions of some of the useful variables. 1337 1338Defaults for the options are specified in brackets. 1339 1340Configuration: 1341 -h, --help display this help and exit 1342 --help=short display options specific to this package 1343 --help=recursive display the short help of all the included packages 1344 -V, --version display version information and exit 1345 -q, --quiet, --silent do not print \`checking ...' messages 1346 --cache-file=FILE cache test results in FILE [disabled] 1347 -C, --config-cache alias for \`--cache-file=config.cache' 1348 -n, --no-create do not create output files 1349 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350 1351Installation directories: 1352 --prefix=PREFIX install architecture-independent files in PREFIX 1353 [$ac_default_prefix] 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355 [PREFIX] 1356 1357By default, \`make install' will install all the files in 1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360for instance \`--prefix=\$HOME'. 1361 1362For better control, use the options below. 1363 1364Fine tuning of the installation directories: 1365 --bindir=DIR user executables [EPREFIX/bin] 1366 --sbindir=DIR system admin executables [EPREFIX/sbin] 1367 --libexecdir=DIR program executables [EPREFIX/libexec] 1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384_ACEOF 1385 1386 cat <<\_ACEOF 1387 1388Program names: 1389 --program-prefix=PREFIX prepend PREFIX to installed program names 1390 --program-suffix=SUFFIX append SUFFIX to installed program names 1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392 1393System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396_ACEOF 1397fi 1398 1399if test -n "$ac_init_help"; then 1400 case $ac_init_help in 1401 short | recursive ) echo "Configuration of file 5.28:";; 1402 esac 1403 cat <<\_ACEOF 1404 1405Optional Features: 1406 --disable-option-checking ignore unrecognized --enable/--with options 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --enable-silent-rules less verbose build output (undo: "make V=1") 1410 --disable-silent-rules verbose build output (undo: "make V=0") 1411 --disable-elf disable builtin ELF support 1412 --disable-elf-core disable ELF core file support 1413 --disable-zlib disable zlib compression support [default=auto] 1414 --enable-fsect-man5 enable file formats in man section 5 1415 --enable-dependency-tracking 1416 do not reject slow dependency extractors 1417 --disable-dependency-tracking 1418 speeds up one-time build 1419 --enable-static[=PKGS] build static libraries [default=no] 1420 --enable-shared[=PKGS] build shared libraries [default=yes] 1421 --enable-fast-install[=PKGS] 1422 optimize for fast installation [default=yes] 1423 --disable-libtool-lock avoid locking (might break parallel builds) 1424 --disable-largefile omit support for large files 1425 --disable-warnings disable compiler warnings 1426 1427Optional Packages: 1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1430 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1431 both] 1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1433 --with-sysroot=DIR Search for dependent libraries within DIR 1434 (or the compiler's sysroot if not specified). 1435 1436Some influential environment variables: 1437 CC C compiler command 1438 CFLAGS C compiler flags 1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1440 nonstandard directory <lib dir> 1441 LIBS libraries to pass to the linker, e.g. -l<library> 1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1443 you have headers in a nonstandard directory <include dir> 1444 CPP C preprocessor 1445 1446Use these variables to override the choices made by `configure' or to help 1447it to find libraries and programs with nonstandard names/locations. 1448 1449Report bugs to <christos@astron.com>. 1450_ACEOF 1451ac_status=$? 1452fi 1453 1454if test "$ac_init_help" = "recursive"; then 1455 # If there are subdirs, report their specific --help. 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1457 test -d "$ac_dir" || 1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1459 continue 1460 ac_builddir=. 1461 1462case "$ac_dir" in 1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464*) 1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1466 # A ".." for each directory in $ac_dir_suffix. 1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1468 case $ac_top_builddir_sub in 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1471 esac ;; 1472esac 1473ac_abs_top_builddir=$ac_pwd 1474ac_abs_builddir=$ac_pwd$ac_dir_suffix 1475# for backward compatibility: 1476ac_top_builddir=$ac_top_build_prefix 1477 1478case $srcdir in 1479 .) # We are building in place. 1480 ac_srcdir=. 1481 ac_top_srcdir=$ac_top_builddir_sub 1482 ac_abs_top_srcdir=$ac_pwd ;; 1483 [\\/]* | ?:[\\/]* ) # Absolute name. 1484 ac_srcdir=$srcdir$ac_dir_suffix; 1485 ac_top_srcdir=$srcdir 1486 ac_abs_top_srcdir=$srcdir ;; 1487 *) # Relative name. 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1491esac 1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1493 1494 cd "$ac_dir" || { ac_status=$?; continue; } 1495 # Check for guested configure. 1496 if test -f "$ac_srcdir/configure.gnu"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1499 elif test -f "$ac_srcdir/configure"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure" --help=recursive 1502 else 1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1504 fi || ac_status=$? 1505 cd "$ac_pwd" || { ac_status=$?; break; } 1506 done 1507fi 1508 1509test -n "$ac_init_help" && exit $ac_status 1510if $ac_init_version; then 1511 cat <<\_ACEOF 1512file configure 5.28 1513generated by GNU Autoconf 2.69 1514 1515Copyright (C) 2012 Free Software Foundation, Inc. 1516This configure script is free software; the Free Software Foundation 1517gives unlimited permission to copy, distribute and modify it. 1518_ACEOF 1519 exit 1520fi 1521 1522## ------------------------ ## 1523## Autoconf initialization. ## 1524## ------------------------ ## 1525 1526# ac_fn_c_try_compile LINENO 1527# -------------------------- 1528# Try to compile conftest.$ac_ext, and return whether this succeeded. 1529ac_fn_c_try_compile () 1530{ 1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1532 rm -f conftest.$ac_objext 1533 if { { ac_try="$ac_compile" 1534case "(($ac_try" in 1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1536 *) ac_try_echo=$ac_try;; 1537esac 1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1539$as_echo "$ac_try_echo"; } >&5 1540 (eval "$ac_compile") 2>conftest.err 1541 ac_status=$? 1542 if test -s conftest.err; then 1543 grep -v '^ *+' conftest.err >conftest.er1 1544 cat conftest.er1 >&5 1545 mv -f conftest.er1 conftest.err 1546 fi 1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1548 test $ac_status = 0; } && { 1549 test -z "$ac_c_werror_flag" || 1550 test ! -s conftest.err 1551 } && test -s conftest.$ac_objext; then : 1552 ac_retval=0 1553else 1554 $as_echo "$as_me: failed program was:" >&5 1555sed 's/^/| /' conftest.$ac_ext >&5 1556 1557 ac_retval=1 1558fi 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1560 as_fn_set_status $ac_retval 1561 1562} # ac_fn_c_try_compile 1563 1564# ac_fn_c_try_cpp LINENO 1565# ---------------------- 1566# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1567ac_fn_c_try_cpp () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 if { { ac_try="$ac_cpp conftest.$ac_ext" 1571case "(($ac_try" in 1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1573 *) ac_try_echo=$ac_try;; 1574esac 1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1576$as_echo "$ac_try_echo"; } >&5 1577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1578 ac_status=$? 1579 if test -s conftest.err; then 1580 grep -v '^ *+' conftest.err >conftest.er1 1581 cat conftest.er1 >&5 1582 mv -f conftest.er1 conftest.err 1583 fi 1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1585 test $ac_status = 0; } > conftest.i && { 1586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1587 test ! -s conftest.err 1588 }; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1597 as_fn_set_status $ac_retval 1598 1599} # ac_fn_c_try_cpp 1600 1601# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1602# ------------------------------------------------------- 1603# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1604# the include files in INCLUDES and setting the cache variable VAR 1605# accordingly. 1606ac_fn_c_check_header_mongrel () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 if eval \${$3+:} false; then : 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1611$as_echo_n "checking for $2... " >&6; } 1612if eval \${$3+:} false; then : 1613 $as_echo_n "(cached) " >&6 1614fi 1615eval ac_res=\$$3 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1617$as_echo "$ac_res" >&6; } 1618else 1619 # Is the header compilable? 1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1621$as_echo_n "checking $2 usability... " >&6; } 1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1623/* end confdefs.h. */ 1624$4 1625#include <$2> 1626_ACEOF 1627if ac_fn_c_try_compile "$LINENO"; then : 1628 ac_header_compiler=yes 1629else 1630 ac_header_compiler=no 1631fi 1632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1634$as_echo "$ac_header_compiler" >&6; } 1635 1636# Is the header present? 1637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1638$as_echo_n "checking $2 presence... " >&6; } 1639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640/* end confdefs.h. */ 1641#include <$2> 1642_ACEOF 1643if ac_fn_c_try_cpp "$LINENO"; then : 1644 ac_header_preproc=yes 1645else 1646 ac_header_preproc=no 1647fi 1648rm -f conftest.err conftest.i conftest.$ac_ext 1649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1650$as_echo "$ac_header_preproc" >&6; } 1651 1652# So? What about this header? 1653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1654 yes:no: ) 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1656$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1658$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1659 ;; 1660 no:yes:* ) 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1662$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1664$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1666$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1668$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1670$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1671( $as_echo "## ---------------------------------- ## 1672## Report this to christos@astron.com ## 1673## ---------------------------------- ##" 1674 ) | sed "s/^/$as_me: WARNING: /" >&2 1675 ;; 1676esac 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678$as_echo_n "checking for $2... " >&6; } 1679if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681else 1682 eval "$3=\$ac_header_compiler" 1683fi 1684eval ac_res=\$$3 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1686$as_echo "$ac_res" >&6; } 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 1690} # ac_fn_c_check_header_mongrel 1691 1692# ac_fn_c_try_run LINENO 1693# ---------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1695# that executables *can* be run. 1696ac_fn_c_try_run () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>&5 1707 ac_status=$? 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1710 { { case "(($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_try") 2>&5 1717 ac_status=$? 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; }; }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: program exited with status $ac_status" >&5 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=$ac_status 1727fi 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_run 1733 1734# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1735# ------------------------------------------------------- 1736# Tests whether HEADER exists and can be compiled using the include files in 1737# INCLUDES, setting the cache variable VAR accordingly. 1738ac_fn_c_check_header_compile () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742$as_echo_n "checking for $2... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748$4 1749#include <$2> 1750_ACEOF 1751if ac_fn_c_try_compile "$LINENO"; then : 1752 eval "$3=yes" 1753else 1754 eval "$3=no" 1755fi 1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1757fi 1758eval ac_res=\$$3 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1760$as_echo "$ac_res" >&6; } 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 1763} # ac_fn_c_check_header_compile 1764 1765# ac_fn_c_try_link LINENO 1766# ----------------------- 1767# Try to link conftest.$ac_ext, and return whether this succeeded. 1768ac_fn_c_try_link () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 rm -f conftest.$ac_objext conftest$ac_exeext 1772 if { { ac_try="$ac_link" 1773case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_link") 2>conftest.err 1780 ac_status=$? 1781 if test -s conftest.err; then 1782 grep -v '^ *+' conftest.err >conftest.er1 1783 cat conftest.er1 >&5 1784 mv -f conftest.er1 conftest.err 1785 fi 1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1787 test $ac_status = 0; } && { 1788 test -z "$ac_c_werror_flag" || 1789 test ! -s conftest.err 1790 } && test -s conftest$ac_exeext && { 1791 test "$cross_compiling" = yes || 1792 test -x conftest$ac_exeext 1793 }; then : 1794 ac_retval=0 1795else 1796 $as_echo "$as_me: failed program was:" >&5 1797sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=1 1800fi 1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1803 # interfere with the next link command; also delete a directory that is 1804 # left behind by Apple's compiler. We do this before executing the actions. 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 as_fn_set_status $ac_retval 1808 1809} # ac_fn_c_try_link 1810 1811# ac_fn_c_check_func LINENO FUNC VAR 1812# ---------------------------------- 1813# Tests whether FUNC exists, setting the cache variable VAR accordingly 1814ac_fn_c_check_func () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818$as_echo_n "checking for $2... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1826#define $2 innocuous_$2 1827 1828/* System header to define __stub macros and hopefully few prototypes, 1829 which can conflict with char $2 (); below. 1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1831 <limits.h> exists even on freestanding compilers. */ 1832 1833#ifdef __STDC__ 1834# include <limits.h> 1835#else 1836# include <assert.h> 1837#endif 1838 1839#undef $2 1840 1841/* Override any GCC internal prototype to avoid an error. 1842 Use char because int might match the return type of a GCC 1843 builtin and then its argument prototype would still apply. */ 1844#ifdef __cplusplus 1845extern "C" 1846#endif 1847char $2 (); 1848/* The GNU C library defines this for functions which it implements 1849 to always fail with ENOSYS. Some functions are actually named 1850 something starting with __ and the normal name is an alias. */ 1851#if defined __stub_$2 || defined __stub___$2 1852choke me 1853#endif 1854 1855int 1856main () 1857{ 1858return $2 (); 1859 ; 1860 return 0; 1861} 1862_ACEOF 1863if ac_fn_c_try_link "$LINENO"; then : 1864 eval "$3=yes" 1865else 1866 eval "$3=no" 1867fi 1868rm -f core conftest.err conftest.$ac_objext \ 1869 conftest$ac_exeext conftest.$ac_ext 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 1876} # ac_fn_c_check_func 1877 1878# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1879# ------------------------------------------- 1880# Tests whether TYPE exists after having included INCLUDES, setting cache 1881# variable VAR accordingly. 1882ac_fn_c_check_type () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1886$as_echo_n "checking for $2... " >&6; } 1887if eval \${$3+:} false; then : 1888 $as_echo_n "(cached) " >&6 1889else 1890 eval "$3=no" 1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892/* end confdefs.h. */ 1893$4 1894int 1895main () 1896{ 1897if (sizeof ($2)) 1898 return 0; 1899 ; 1900 return 0; 1901} 1902_ACEOF 1903if ac_fn_c_try_compile "$LINENO"; then : 1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$4 1907int 1908main () 1909{ 1910if (sizeof (($2))) 1911 return 0; 1912 ; 1913 return 0; 1914} 1915_ACEOF 1916if ac_fn_c_try_compile "$LINENO"; then : 1917 1918else 1919 eval "$3=yes" 1920fi 1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 1930} # ac_fn_c_check_type 1931 1932# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1933# ---------------------------------------------------- 1934# Tries to find if the field MEMBER exists in type AGGR, after including 1935# INCLUDES, setting cache variable VAR accordingly. 1936ac_fn_c_check_member () 1937{ 1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1940$as_echo_n "checking for $2.$3... " >&6; } 1941if eval \${$4+:} false; then : 1942 $as_echo_n "(cached) " >&6 1943else 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$5 1947int 1948main () 1949{ 1950static $2 ac_aggr; 1951if (ac_aggr.$3) 1952return 0; 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 eval "$4=yes" 1959else 1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1961/* end confdefs.h. */ 1962$5 1963int 1964main () 1965{ 1966static $2 ac_aggr; 1967if (sizeof ac_aggr.$3) 1968return 0; 1969 ; 1970 return 0; 1971} 1972_ACEOF 1973if ac_fn_c_try_compile "$LINENO"; then : 1974 eval "$4=yes" 1975else 1976 eval "$4=no" 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979fi 1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1981fi 1982eval ac_res=\$$4 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_member 1988 1989# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1990# --------------------------------------------- 1991# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1992# accordingly. 1993ac_fn_c_check_decl () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 as_decl_name=`echo $2|sed 's/ *(.*//'` 1997 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1999$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2000if eval \${$3+:} false; then : 2001 $as_echo_n "(cached) " >&6 2002else 2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004/* end confdefs.h. */ 2005$4 2006int 2007main () 2008{ 2009#ifndef $as_decl_name 2010#ifdef __cplusplus 2011 (void) $as_decl_use; 2012#else 2013 (void) $as_decl_name; 2014#endif 2015#endif 2016 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO"; then : 2022 eval "$3=yes" 2023else 2024 eval "$3=no" 2025fi 2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2027fi 2028eval ac_res=\$$3 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2030$as_echo "$ac_res" >&6; } 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032 2033} # ac_fn_c_check_decl 2034 2035# ac_fn_c_find_uintX_t LINENO BITS VAR 2036# ------------------------------------ 2037# Finds an unsigned integer type with width BITS, setting cache variable VAR 2038# accordingly. 2039ac_fn_c_find_uintX_t () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2043$as_echo_n "checking for uint$2_t... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 eval "$3=no" 2048 # Order is important - never check a type that is potentially smaller 2049 # than half of the expected target width. 2050 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2051 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2053/* end confdefs.h. */ 2054$ac_includes_default 2055int 2056main () 2057{ 2058static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2059test_array [0] = 0; 2060return test_array [0]; 2061 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 case $ac_type in #( 2068 uint$2_t) : 2069 eval "$3=yes" ;; #( 2070 *) : 2071 eval "$3=\$ac_type" ;; 2072esac 2073fi 2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075 if eval test \"x\$"$3"\" = x"no"; then : 2076 2077else 2078 break 2079fi 2080 done 2081fi 2082eval ac_res=\$$3 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2084$as_echo "$ac_res" >&6; } 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086 2087} # ac_fn_c_find_uintX_t 2088 2089# ac_fn_c_find_intX_t LINENO BITS VAR 2090# ----------------------------------- 2091# Finds a signed integer type with width BITS, setting cache variable VAR 2092# accordingly. 2093ac_fn_c_find_intX_t () 2094{ 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2097$as_echo_n "checking for int$2_t... " >&6; } 2098if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100else 2101 eval "$3=no" 2102 # Order is important - never check a type that is potentially smaller 2103 # than half of the expected target width. 2104 for ac_type in int$2_t 'int' 'long int' \ 2105 'long long int' 'short int' 'signed char'; do 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$ac_includes_default 2109 enum { N = $2 / 2 - 1 }; 2110int 2111main () 2112{ 2113static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2114test_array [0] = 0; 2115return test_array [0]; 2116 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123/* end confdefs.h. */ 2124$ac_includes_default 2125 enum { N = $2 / 2 - 1 }; 2126int 2127main () 2128{ 2129static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2130 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2131test_array [0] = 0; 2132return test_array [0]; 2133 2134 ; 2135 return 0; 2136} 2137_ACEOF 2138if ac_fn_c_try_compile "$LINENO"; then : 2139 2140else 2141 case $ac_type in #( 2142 int$2_t) : 2143 eval "$3=yes" ;; #( 2144 *) : 2145 eval "$3=\$ac_type" ;; 2146esac 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151 if eval test \"x\$"$3"\" = x"no"; then : 2152 2153else 2154 break 2155fi 2156 done 2157fi 2158eval ac_res=\$$3 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160$as_echo "$ac_res" >&6; } 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_find_intX_t 2164cat >config.log <<_ACEOF 2165This file contains any messages produced by compilers while 2166running configure, to aid debugging if configure makes a mistake. 2167 2168It was created by file $as_me 5.28, which was 2169generated by GNU Autoconf 2.69. Invocation command line was 2170 2171 $ $0 $@ 2172 2173_ACEOF 2174exec 5>>config.log 2175{ 2176cat <<_ASUNAME 2177## --------- ## 2178## Platform. ## 2179## --------- ## 2180 2181hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2182uname -m = `(uname -m) 2>/dev/null || echo unknown` 2183uname -r = `(uname -r) 2>/dev/null || echo unknown` 2184uname -s = `(uname -s) 2>/dev/null || echo unknown` 2185uname -v = `(uname -v) 2>/dev/null || echo unknown` 2186 2187/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2188/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2189 2190/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2191/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2192/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2193/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2194/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2195/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2196/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2197 2198_ASUNAME 2199 2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2201for as_dir in $PATH 2202do 2203 IFS=$as_save_IFS 2204 test -z "$as_dir" && as_dir=. 2205 $as_echo "PATH: $as_dir" 2206 done 2207IFS=$as_save_IFS 2208 2209} >&5 2210 2211cat >&5 <<_ACEOF 2212 2213 2214## ----------- ## 2215## Core tests. ## 2216## ----------- ## 2217 2218_ACEOF 2219 2220 2221# Keep a trace of the command line. 2222# Strip out --no-create and --no-recursion so they do not pile up. 2223# Strip out --silent because we don't want to record it for future runs. 2224# Also quote any args containing shell meta-characters. 2225# Make two passes to allow for proper duplicate-argument suppression. 2226ac_configure_args= 2227ac_configure_args0= 2228ac_configure_args1= 2229ac_must_keep_next=false 2230for ac_pass in 1 2 2231do 2232 for ac_arg 2233 do 2234 case $ac_arg in 2235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2237 | -silent | --silent | --silen | --sile | --sil) 2238 continue ;; 2239 *\'*) 2240 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2241 esac 2242 case $ac_pass in 2243 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2244 2) 2245 as_fn_append ac_configure_args1 " '$ac_arg'" 2246 if test $ac_must_keep_next = true; then 2247 ac_must_keep_next=false # Got value, back to normal. 2248 else 2249 case $ac_arg in 2250 *=* | --config-cache | -C | -disable-* | --disable-* \ 2251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2253 | -with-* | --with-* | -without-* | --without-* | --x) 2254 case "$ac_configure_args0 " in 2255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2256 esac 2257 ;; 2258 -* ) ac_must_keep_next=true ;; 2259 esac 2260 fi 2261 as_fn_append ac_configure_args " '$ac_arg'" 2262 ;; 2263 esac 2264 done 2265done 2266{ ac_configure_args0=; unset ac_configure_args0;} 2267{ ac_configure_args1=; unset ac_configure_args1;} 2268 2269# When interrupted or exit'd, cleanup temporary files, and complete 2270# config.log. We remove comments because anyway the quotes in there 2271# would cause problems or look ugly. 2272# WARNING: Use '\'' to represent an apostrophe within the trap. 2273# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2274trap 'exit_status=$? 2275 # Save into config.log some information that might help in debugging. 2276 { 2277 echo 2278 2279 $as_echo "## ---------------- ## 2280## Cache variables. ## 2281## ---------------- ##" 2282 echo 2283 # The following way of writing the cache mishandles newlines in values, 2284( 2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2286 eval ac_val=\$$ac_var 2287 case $ac_val in #( 2288 *${as_nl}*) 2289 case $ac_var in #( 2290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2292 esac 2293 case $ac_var in #( 2294 _ | IFS | as_nl) ;; #( 2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2296 *) { eval $ac_var=; unset $ac_var;} ;; 2297 esac ;; 2298 esac 2299 done 2300 (set) 2>&1 | 2301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2302 *${as_nl}ac_space=\ *) 2303 sed -n \ 2304 "s/'\''/'\''\\\\'\'''\''/g; 2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2306 ;; #( 2307 *) 2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2309 ;; 2310 esac | 2311 sort 2312) 2313 echo 2314 2315 $as_echo "## ----------------- ## 2316## Output variables. ## 2317## ----------------- ##" 2318 echo 2319 for ac_var in $ac_subst_vars 2320 do 2321 eval ac_val=\$$ac_var 2322 case $ac_val in 2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2324 esac 2325 $as_echo "$ac_var='\''$ac_val'\''" 2326 done | sort 2327 echo 2328 2329 if test -n "$ac_subst_files"; then 2330 $as_echo "## ------------------- ## 2331## File substitutions. ## 2332## ------------------- ##" 2333 echo 2334 for ac_var in $ac_subst_files 2335 do 2336 eval ac_val=\$$ac_var 2337 case $ac_val in 2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2339 esac 2340 $as_echo "$ac_var='\''$ac_val'\''" 2341 done | sort 2342 echo 2343 fi 2344 2345 if test -s confdefs.h; then 2346 $as_echo "## ----------- ## 2347## confdefs.h. ## 2348## ----------- ##" 2349 echo 2350 cat confdefs.h 2351 echo 2352 fi 2353 test "$ac_signal" != 0 && 2354 $as_echo "$as_me: caught signal $ac_signal" 2355 $as_echo "$as_me: exit $exit_status" 2356 } >&5 2357 rm -f core *.core core.conftest.* && 2358 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2359 exit $exit_status 2360' 0 2361for ac_signal in 1 2 13 15; do 2362 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2363done 2364ac_signal=0 2365 2366# confdefs.h avoids OS command line length limits that DEFS can exceed. 2367rm -f -r conftest* confdefs.h 2368 2369$as_echo "/* confdefs.h */" > confdefs.h 2370 2371# Predefined preprocessor variables. 2372 2373cat >>confdefs.h <<_ACEOF 2374#define PACKAGE_NAME "$PACKAGE_NAME" 2375_ACEOF 2376 2377cat >>confdefs.h <<_ACEOF 2378#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2379_ACEOF 2380 2381cat >>confdefs.h <<_ACEOF 2382#define PACKAGE_VERSION "$PACKAGE_VERSION" 2383_ACEOF 2384 2385cat >>confdefs.h <<_ACEOF 2386#define PACKAGE_STRING "$PACKAGE_STRING" 2387_ACEOF 2388 2389cat >>confdefs.h <<_ACEOF 2390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2391_ACEOF 2392 2393cat >>confdefs.h <<_ACEOF 2394#define PACKAGE_URL "$PACKAGE_URL" 2395_ACEOF 2396 2397 2398# Let the site file select an alternate cache file if it wants to. 2399# Prefer an explicitly selected file to automatically selected ones. 2400ac_site_file1=NONE 2401ac_site_file2=NONE 2402if test -n "$CONFIG_SITE"; then 2403 # We do not want a PATH search for config.site. 2404 case $CONFIG_SITE in #(( 2405 -*) ac_site_file1=./$CONFIG_SITE;; 2406 */*) ac_site_file1=$CONFIG_SITE;; 2407 *) ac_site_file1=./$CONFIG_SITE;; 2408 esac 2409elif test "x$prefix" != xNONE; then 2410 ac_site_file1=$prefix/share/config.site 2411 ac_site_file2=$prefix/etc/config.site 2412else 2413 ac_site_file1=$ac_default_prefix/share/config.site 2414 ac_site_file2=$ac_default_prefix/etc/config.site 2415fi 2416for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2417do 2418 test "x$ac_site_file" = xNONE && continue 2419 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2421$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2422 sed 's/^/| /' "$ac_site_file" >&5 2423 . "$ac_site_file" \ 2424 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2426as_fn_error $? "failed to load site script $ac_site_file 2427See \`config.log' for more details" "$LINENO" 5; } 2428 fi 2429done 2430 2431if test -r "$cache_file"; then 2432 # Some versions of bash will fail to source /dev/null (special files 2433 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2434 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2436$as_echo "$as_me: loading cache $cache_file" >&6;} 2437 case $cache_file in 2438 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2439 *) . "./$cache_file";; 2440 esac 2441 fi 2442else 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2444$as_echo "$as_me: creating cache $cache_file" >&6;} 2445 >$cache_file 2446fi 2447 2448as_fn_append ac_header_list " stdlib.h" 2449as_fn_append ac_header_list " unistd.h" 2450as_fn_append ac_header_list " sys/param.h" 2451# Check that the precious variables saved in the cache have kept the same 2452# value. 2453ac_cache_corrupted=false 2454for ac_var in $ac_precious_vars; do 2455 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2456 eval ac_new_set=\$ac_env_${ac_var}_set 2457 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2458 eval ac_new_val=\$ac_env_${ac_var}_value 2459 case $ac_old_set,$ac_new_set in 2460 set,) 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2462$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2463 ac_cache_corrupted=: ;; 2464 ,set) 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2466$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2467 ac_cache_corrupted=: ;; 2468 ,);; 2469 *) 2470 if test "x$ac_old_val" != "x$ac_new_val"; then 2471 # differences in whitespace do not lead to failure. 2472 ac_old_val_w=`echo x $ac_old_val` 2473 ac_new_val_w=`echo x $ac_new_val` 2474 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2476$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2477 ac_cache_corrupted=: 2478 else 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2480$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2481 eval $ac_var=\$ac_old_val 2482 fi 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2484$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2486$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2487 fi;; 2488 esac 2489 # Pass precious variables to config.status. 2490 if test "$ac_new_set" = set; then 2491 case $ac_new_val in 2492 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2493 *) ac_arg=$ac_var=$ac_new_val ;; 2494 esac 2495 case " $ac_configure_args " in 2496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2497 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2498 esac 2499 fi 2500done 2501if $ac_cache_corrupted; then 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2505$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2506 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2507fi 2508## -------------------- ## 2509## Main body of script. ## 2510## -------------------- ## 2511 2512ac_ext=c 2513ac_cpp='$CPP $CPPFLAGS' 2514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2516ac_compiler_gnu=$ac_cv_c_compiler_gnu 2517 2518 2519am__api_version='1.15' 2520 2521ac_aux_dir= 2522for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2523 if test -f "$ac_dir/install-sh"; then 2524 ac_aux_dir=$ac_dir 2525 ac_install_sh="$ac_aux_dir/install-sh -c" 2526 break 2527 elif test -f "$ac_dir/install.sh"; then 2528 ac_aux_dir=$ac_dir 2529 ac_install_sh="$ac_aux_dir/install.sh -c" 2530 break 2531 elif test -f "$ac_dir/shtool"; then 2532 ac_aux_dir=$ac_dir 2533 ac_install_sh="$ac_aux_dir/shtool install -c" 2534 break 2535 fi 2536done 2537if test -z "$ac_aux_dir"; then 2538 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2539fi 2540 2541# These three variables are undocumented and unsupported, 2542# and are intended to be withdrawn in a future Autoconf release. 2543# They can cause serious problems if a builder's source tree is in a directory 2544# whose full name contains unusual characters. 2545ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2546ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2547ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2548 2549 2550# Find a good install program. We prefer a C program (faster), 2551# so one script is as good as another. But avoid the broken or 2552# incompatible versions: 2553# SysV /etc/install, /usr/sbin/install 2554# SunOS /usr/etc/install 2555# IRIX /sbin/install 2556# AIX /bin/install 2557# AmigaOS /C/install, which installs bootblocks on floppy discs 2558# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2559# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2560# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2561# OS/2's system install, which has a completely different semantic 2562# ./install, which can be erroneously created by make from ./install.sh. 2563# Reject install programs that cannot install multiple files. 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2565$as_echo_n "checking for a BSD-compatible install... " >&6; } 2566if test -z "$INSTALL"; then 2567if ${ac_cv_path_install+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 # Account for people who put trailing slashes in PATH elements. 2576case $as_dir/ in #(( 2577 ./ | .// | /[cC]/* | \ 2578 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2579 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2580 /usr/ucb/* ) ;; 2581 *) 2582 # OSF1 and SCO ODT 3.0 have their own names for install. 2583 # Don't use installbsd from OSF since it installs stuff as root 2584 # by default. 2585 for ac_prog in ginstall scoinst install; do 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2588 if test $ac_prog = install && 2589 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2590 # AIX install. It has an incompatible calling convention. 2591 : 2592 elif test $ac_prog = install && 2593 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2594 # program-specific install script used by HP pwplus--don't use. 2595 : 2596 else 2597 rm -rf conftest.one conftest.two conftest.dir 2598 echo one > conftest.one 2599 echo two > conftest.two 2600 mkdir conftest.dir 2601 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2602 test -s conftest.one && test -s conftest.two && 2603 test -s conftest.dir/conftest.one && 2604 test -s conftest.dir/conftest.two 2605 then 2606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2607 break 3 2608 fi 2609 fi 2610 fi 2611 done 2612 done 2613 ;; 2614esac 2615 2616 done 2617IFS=$as_save_IFS 2618 2619rm -rf conftest.one conftest.two conftest.dir 2620 2621fi 2622 if test "${ac_cv_path_install+set}" = set; then 2623 INSTALL=$ac_cv_path_install 2624 else 2625 # As a last resort, use the slow shell script. Don't cache a 2626 # value for INSTALL within a source directory, because that will 2627 # break other packages using the cache if that directory is 2628 # removed, or if the value is a relative name. 2629 INSTALL=$ac_install_sh 2630 fi 2631fi 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2633$as_echo "$INSTALL" >&6; } 2634 2635# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2636# It thinks the first close brace ends the variable substitution. 2637test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2638 2639test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2640 2641test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2642 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2644$as_echo_n "checking whether build environment is sane... " >&6; } 2645# Reject unsafe characters in $srcdir or the absolute working directory 2646# name. Accept space and tab only in the latter. 2647am_lf=' 2648' 2649case `pwd` in 2650 *[\\\"\#\$\&\'\`$am_lf]*) 2651 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2652esac 2653case $srcdir in 2654 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2655 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2656esac 2657 2658# Do 'set' in a subshell so we don't clobber the current shell's 2659# arguments. Must try -L first in case configure is actually a 2660# symlink; some systems play weird games with the mod time of symlinks 2661# (eg FreeBSD returns the mod time of the symlink's containing 2662# directory). 2663if ( 2664 am_has_slept=no 2665 for am_try in 1 2; do 2666 echo "timestamp, slept: $am_has_slept" > conftest.file 2667 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2668 if test "$*" = "X"; then 2669 # -L didn't work. 2670 set X `ls -t "$srcdir/configure" conftest.file` 2671 fi 2672 if test "$*" != "X $srcdir/configure conftest.file" \ 2673 && test "$*" != "X conftest.file $srcdir/configure"; then 2674 2675 # If neither matched, then we have a broken ls. This can happen 2676 # if, for instance, CONFIG_SHELL is bash and it inherits a 2677 # broken ls alias from the environment. This has actually 2678 # happened. Such a system could not be considered "sane". 2679 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2680 alias in your environment" "$LINENO" 5 2681 fi 2682 if test "$2" = conftest.file || test $am_try -eq 2; then 2683 break 2684 fi 2685 # Just in case. 2686 sleep 1 2687 am_has_slept=yes 2688 done 2689 test "$2" = conftest.file 2690 ) 2691then 2692 # Ok. 2693 : 2694else 2695 as_fn_error $? "newly created file is older than distributed files! 2696Check your system clock" "$LINENO" 5 2697fi 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2699$as_echo "yes" >&6; } 2700# If we didn't sleep, we still need to ensure time stamps of config.status and 2701# generated files are strictly newer. 2702am_sleep_pid= 2703if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2704 ( sleep 1 ) & 2705 am_sleep_pid=$! 2706fi 2707 2708rm -f conftest.file 2709 2710test "$program_prefix" != NONE && 2711 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2712# Use a double $ so make ignores it. 2713test "$program_suffix" != NONE && 2714 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2715# Double any \ or $. 2716# By default was `s,x,x', remove it if useless. 2717ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2718program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2719 2720# Expand $ac_aux_dir to an absolute path. 2721am_aux_dir=`cd "$ac_aux_dir" && pwd` 2722 2723if test x"${MISSING+set}" != xset; then 2724 case $am_aux_dir in 2725 *\ * | *\ *) 2726 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2727 *) 2728 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2729 esac 2730fi 2731# Use eval to expand $SHELL 2732if eval "$MISSING --is-lightweight"; then 2733 am_missing_run="$MISSING " 2734else 2735 am_missing_run= 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2737$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2738fi 2739 2740if test x"${install_sh+set}" != xset; then 2741 case $am_aux_dir in 2742 *\ * | *\ *) 2743 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2744 *) 2745 install_sh="\${SHELL} $am_aux_dir/install-sh" 2746 esac 2747fi 2748 2749# Installed binaries are usually stripped using 'strip' when the user 2750# run "make install-strip". However 'strip' might not be the right 2751# tool to use in cross-compilation environments, therefore Automake 2752# will honor the 'STRIP' environment variable to overrule this program. 2753if test "$cross_compiling" != no; then 2754 if test -n "$ac_tool_prefix"; then 2755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2756set dummy ${ac_tool_prefix}strip; ac_word=$2 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2758$as_echo_n "checking for $ac_word... " >&6; } 2759if ${ac_cv_prog_STRIP+:} false; then : 2760 $as_echo_n "(cached) " >&6 2761else 2762 if test -n "$STRIP"; then 2763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2764else 2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2772 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777 done 2778IFS=$as_save_IFS 2779 2780fi 2781fi 2782STRIP=$ac_cv_prog_STRIP 2783if test -n "$STRIP"; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2785$as_echo "$STRIP" >&6; } 2786else 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788$as_echo "no" >&6; } 2789fi 2790 2791 2792fi 2793if test -z "$ac_cv_prog_STRIP"; then 2794 ac_ct_STRIP=$STRIP 2795 # Extract the first word of "strip", so it can be a program name with args. 2796set dummy strip; ac_word=$2 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2798$as_echo_n "checking for $ac_word... " >&6; } 2799if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2800 $as_echo_n "(cached) " >&6 2801else 2802 if test -n "$ac_ct_STRIP"; then 2803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2804else 2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2806for as_dir in $PATH 2807do 2808 IFS=$as_save_IFS 2809 test -z "$as_dir" && as_dir=. 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2812 ac_cv_prog_ac_ct_STRIP="strip" 2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2814 break 2 2815 fi 2816done 2817 done 2818IFS=$as_save_IFS 2819 2820fi 2821fi 2822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2823if test -n "$ac_ct_STRIP"; then 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2825$as_echo "$ac_ct_STRIP" >&6; } 2826else 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2828$as_echo "no" >&6; } 2829fi 2830 2831 if test "x$ac_ct_STRIP" = x; then 2832 STRIP=":" 2833 else 2834 case $cross_compiling:$ac_tool_warned in 2835yes:) 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2838ac_tool_warned=yes ;; 2839esac 2840 STRIP=$ac_ct_STRIP 2841 fi 2842else 2843 STRIP="$ac_cv_prog_STRIP" 2844fi 2845 2846fi 2847INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2848 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2850$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2851if test -z "$MKDIR_P"; then 2852 if ${ac_cv_path_mkdir+:} false; then : 2853 $as_echo_n "(cached) " >&6 2854else 2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2857do 2858 IFS=$as_save_IFS 2859 test -z "$as_dir" && as_dir=. 2860 for ac_prog in mkdir gmkdir; do 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2863 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2864 'mkdir (GNU coreutils) '* | \ 2865 'mkdir (coreutils) '* | \ 2866 'mkdir (fileutils) '4.1*) 2867 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2868 break 3;; 2869 esac 2870 done 2871 done 2872 done 2873IFS=$as_save_IFS 2874 2875fi 2876 2877 test -d ./--version && rmdir ./--version 2878 if test "${ac_cv_path_mkdir+set}" = set; then 2879 MKDIR_P="$ac_cv_path_mkdir -p" 2880 else 2881 # As a last resort, use the slow shell script. Don't cache a 2882 # value for MKDIR_P within a source directory, because that will 2883 # break other packages using the cache if that directory is 2884 # removed, or if the value is a relative name. 2885 MKDIR_P="$ac_install_sh -d" 2886 fi 2887fi 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2889$as_echo "$MKDIR_P" >&6; } 2890 2891for ac_prog in gawk mawk nawk awk 2892do 2893 # Extract the first word of "$ac_prog", so it can be a program name with args. 2894set dummy $ac_prog; ac_word=$2 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2896$as_echo_n "checking for $ac_word... " >&6; } 2897if ${ac_cv_prog_AWK+:} false; then : 2898 $as_echo_n "(cached) " >&6 2899else 2900 if test -n "$AWK"; then 2901 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2902else 2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2904for as_dir in $PATH 2905do 2906 IFS=$as_save_IFS 2907 test -z "$as_dir" && as_dir=. 2908 for ac_exec_ext in '' $ac_executable_extensions; do 2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2910 ac_cv_prog_AWK="$ac_prog" 2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2912 break 2 2913 fi 2914done 2915 done 2916IFS=$as_save_IFS 2917 2918fi 2919fi 2920AWK=$ac_cv_prog_AWK 2921if test -n "$AWK"; then 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2923$as_echo "$AWK" >&6; } 2924else 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2926$as_echo "no" >&6; } 2927fi 2928 2929 2930 test -n "$AWK" && break 2931done 2932 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2934$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2935set x ${MAKE-make} 2936ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2937if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 cat >conftest.make <<\_ACEOF 2941SHELL = /bin/sh 2942all: 2943 @echo '@@@%%%=$(MAKE)=@@@%%%' 2944_ACEOF 2945# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2946case `${MAKE-make} -f conftest.make 2>/dev/null` in 2947 *@@@%%%=?*=@@@%%%*) 2948 eval ac_cv_prog_make_${ac_make}_set=yes;; 2949 *) 2950 eval ac_cv_prog_make_${ac_make}_set=no;; 2951esac 2952rm -f conftest.make 2953fi 2954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2956$as_echo "yes" >&6; } 2957 SET_MAKE= 2958else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960$as_echo "no" >&6; } 2961 SET_MAKE="MAKE=${MAKE-make}" 2962fi 2963 2964rm -rf .tst 2>/dev/null 2965mkdir .tst 2>/dev/null 2966if test -d .tst; then 2967 am__leading_dot=. 2968else 2969 am__leading_dot=_ 2970fi 2971rmdir .tst 2>/dev/null 2972 2973# Check whether --enable-silent-rules was given. 2974if test "${enable_silent_rules+set}" = set; then : 2975 enableval=$enable_silent_rules; 2976fi 2977 2978case $enable_silent_rules in # ((( 2979 yes) AM_DEFAULT_VERBOSITY=0;; 2980 no) AM_DEFAULT_VERBOSITY=1;; 2981 *) AM_DEFAULT_VERBOSITY=1;; 2982esac 2983am_make=${MAKE-make} 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2985$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2986if ${am_cv_make_support_nested_variables+:} false; then : 2987 $as_echo_n "(cached) " >&6 2988else 2989 if $as_echo 'TRUE=$(BAR$(V)) 2990BAR0=false 2991BAR1=true 2992V=1 2993am__doit: 2994 @$(TRUE) 2995.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2996 am_cv_make_support_nested_variables=yes 2997else 2998 am_cv_make_support_nested_variables=no 2999fi 3000fi 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3002$as_echo "$am_cv_make_support_nested_variables" >&6; } 3003if test $am_cv_make_support_nested_variables = yes; then 3004 AM_V='$(V)' 3005 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3006else 3007 AM_V=$AM_DEFAULT_VERBOSITY 3008 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3009fi 3010AM_BACKSLASH='\' 3011 3012if test "`cd $srcdir && pwd`" != "`pwd`"; then 3013 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3014 # is not polluted with repeated "-I." 3015 am__isrc=' -I$(srcdir)' 3016 # test to see if srcdir already configured 3017 if test -f $srcdir/config.status; then 3018 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3019 fi 3020fi 3021 3022# test whether we have cygpath 3023if test -z "$CYGPATH_W"; then 3024 if (cygpath --version) >/dev/null 2>/dev/null; then 3025 CYGPATH_W='cygpath -w' 3026 else 3027 CYGPATH_W=echo 3028 fi 3029fi 3030 3031 3032# Define the identity of the package. 3033 PACKAGE='file' 3034 VERSION='5.28' 3035 3036 3037cat >>confdefs.h <<_ACEOF 3038#define PACKAGE "$PACKAGE" 3039_ACEOF 3040 3041 3042cat >>confdefs.h <<_ACEOF 3043#define VERSION "$VERSION" 3044_ACEOF 3045 3046# Some tools Automake needs. 3047 3048ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3049 3050 3051AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3052 3053 3054AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3055 3056 3057AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3058 3059 3060MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3061 3062# For better backward compatibility. To be removed once Automake 1.9.x 3063# dies out for good. For more background, see: 3064# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3065# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3066mkdir_p='$(MKDIR_P)' 3067 3068# We need awk for the "check" target (and possibly the TAP driver). The 3069# system "awk" is bad on some platforms. 3070# Always define AMTAR for backward compatibility. Yes, it's still used 3071# in the wild :-( We should find a proper way to deprecate it ... 3072AMTAR='$${TAR-tar}' 3073 3074 3075# We'll loop over all known methods to create a tar archive until one works. 3076_am_tools='gnutar pax cpio none' 3077 3078am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3079 3080 3081 3082 3083 3084 3085# POSIX will say in a future version that running "rm -f" with no argument 3086# is OK; and we want to be able to make that assumption in our Makefile 3087# recipes. So use an aggressive probe to check that the usage we want is 3088# actually supported "in the wild" to an acceptable degree. 3089# See automake bug#10828. 3090# To make any issue more visible, cause the running configure to be aborted 3091# by default if the 'rm' program in use doesn't match our expectations; the 3092# user can still override this though. 3093if rm -f && rm -fr && rm -rf; then : OK; else 3094 cat >&2 <<'END' 3095Oops! 3096 3097Your 'rm' program seems unable to run without file operands specified 3098on the command line, even when the '-f' option is present. This is contrary 3099to the behaviour of most rm programs out there, and not conforming with 3100the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3101 3102Please tell bug-automake@gnu.org about your system, including the value 3103of your $PATH and any error possibly output before this message. This 3104can help us improve future automake versions. 3105 3106END 3107 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3108 echo 'Configuration will proceed anyway, since you have set the' >&2 3109 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3110 echo >&2 3111 else 3112 cat >&2 <<'END' 3113Aborting the configuration process, to ensure you take notice of the issue. 3114 3115You can download and install GNU coreutils to get an 'rm' implementation 3116that behaves properly: <http://www.gnu.org/software/coreutils/>. 3117 3118If you want to complete the configuration process using your problematic 3119'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3120to "yes", and re-run configure. 3121 3122END 3123 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3124 fi 3125fi 3126 3127# Check whether --enable-silent-rules was given. 3128if test "${enable_silent_rules+set}" = set; then : 3129 enableval=$enable_silent_rules; 3130fi 3131 3132case $enable_silent_rules in # ((( 3133 yes) AM_DEFAULT_VERBOSITY=0;; 3134 no) AM_DEFAULT_VERBOSITY=1;; 3135 *) AM_DEFAULT_VERBOSITY=0;; 3136esac 3137am_make=${MAKE-make} 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3139$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3140if ${am_cv_make_support_nested_variables+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if $as_echo 'TRUE=$(BAR$(V)) 3144BAR0=false 3145BAR1=true 3146V=1 3147am__doit: 3148 @$(TRUE) 3149.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3150 am_cv_make_support_nested_variables=yes 3151else 3152 am_cv_make_support_nested_variables=no 3153fi 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3156$as_echo "$am_cv_make_support_nested_variables" >&6; } 3157if test $am_cv_make_support_nested_variables = yes; then 3158 AM_V='$(V)' 3159 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3160else 3161 AM_V=$AM_DEFAULT_VERBOSITY 3162 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3163fi 3164AM_BACKSLASH='\' 3165 3166 3167ac_config_headers="$ac_config_headers config.h" 3168 3169 3170 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3172$as_echo_n "checking for builtin ELF support... " >&6; } 3173# Check whether --enable-elf was given. 3174if test "${enable_elf+set}" = set; then : 3175 enableval=$enable_elf; if test "${enableval}" = yes; then 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3177$as_echo "yes" >&6; } 3178 3179$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3180 3181else 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3183$as_echo "no" >&6; } 3184fi 3185else 3186 3187 # enable by default 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3189$as_echo "yes" >&6; } 3190 3191$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3192 3193 3194fi 3195 3196 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3198$as_echo_n "checking for ELF core file support... " >&6; } 3199# Check whether --enable-elf-core was given. 3200if test "${enable_elf_core+set}" = set; then : 3201 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3203$as_echo "yes" >&6; } 3204 3205$as_echo "#define ELFCORE 1" >>confdefs.h 3206 3207else 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210fi 3211else 3212 3213 # enable by default 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3215$as_echo "yes" >&6; } 3216 3217$as_echo "#define ELFCORE 1" >>confdefs.h 3218 3219 3220fi 3221 3222 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3224$as_echo_n "checking for zlib support... " >&6; } 3225# Check whether --enable-zlib was given. 3226if test "${enable_zlib+set}" = set; then : 3227 enableval=$enable_zlib; 3228fi 3229 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3231$as_echo "$enable_zlib" >&6; } 3232 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3234$as_echo_n "checking for file formats in man section 5... " >&6; } 3235# Check whether --enable-fsect-man5 was given. 3236if test "${enable_fsect_man5+set}" = set; then : 3237 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3239$as_echo "yes" >&6; } 3240 fsect=5 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244 fsect=4 3245fi 3246else 3247 3248 # disable by default 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3250$as_echo "no" >&6; } 3251 fsect=4 3252 3253fi 3254 3255 3256# Make sure we can run config.sub. 3257$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3258 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3259 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3261$as_echo_n "checking build system type... " >&6; } 3262if ${ac_cv_build+:} false; then : 3263 $as_echo_n "(cached) " >&6 3264else 3265 ac_build_alias=$build_alias 3266test "x$ac_build_alias" = x && 3267 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3268test "x$ac_build_alias" = x && 3269 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3270ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3271 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3272 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3275$as_echo "$ac_cv_build" >&6; } 3276case $ac_cv_build in 3277*-*-*) ;; 3278*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3279esac 3280build=$ac_cv_build 3281ac_save_IFS=$IFS; IFS='-' 3282set x $ac_cv_build 3283shift 3284build_cpu=$1 3285build_vendor=$2 3286shift; shift 3287# Remember, the first character of IFS is used to create $*, 3288# except with old shells: 3289build_os=$* 3290IFS=$ac_save_IFS 3291case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3292 3293 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3295$as_echo_n "checking host system type... " >&6; } 3296if ${ac_cv_host+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298else 3299 if test "x$host_alias" = x; then 3300 ac_cv_host=$ac_cv_build 3301else 3302 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3304fi 3305 3306fi 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3308$as_echo "$ac_cv_host" >&6; } 3309case $ac_cv_host in 3310*-*-*) ;; 3311*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3312esac 3313host=$ac_cv_host 3314ac_save_IFS=$IFS; IFS='-' 3315set x $ac_cv_host 3316shift 3317host_cpu=$1 3318host_vendor=$2 3319shift; shift 3320# Remember, the first character of IFS is used to create $*, 3321# except with old shells: 3322host_os=$* 3323IFS=$ac_save_IFS 3324case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3325 3326 3327case "$host_os" in 3328 mingw32*) 3329 MINGW=1 3330 ;; 3331 *) 3332 MINGW=0 3333 ;; 3334esac 3335 3336 if test "$MINGW" = 1; then 3337 MINGW_TRUE= 3338 MINGW_FALSE='#' 3339else 3340 MINGW_TRUE='#' 3341 MINGW_FALSE= 3342fi 3343 3344 3345pkgdatadir='$(datadir)/misc' 3346 3347 3348 if test x$fsect = x5; then 3349 FSECT5_TRUE= 3350 FSECT5_FALSE='#' 3351else 3352 FSECT5_TRUE='#' 3353 FSECT5_FALSE= 3354fi 3355 3356 3357 3358 3359DEPDIR="${am__leading_dot}deps" 3360 3361ac_config_commands="$ac_config_commands depfiles" 3362 3363 3364am_make=${MAKE-make} 3365cat > confinc << 'END' 3366am__doit: 3367 @echo this is the am__doit target 3368.PHONY: am__doit 3369END 3370# If we don't find an include directive, just comment out the code. 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3372$as_echo_n "checking for style of include used by $am_make... " >&6; } 3373am__include="#" 3374am__quote= 3375_am_result=none 3376# First try GNU make style include. 3377echo "include confinc" > confmf 3378# Ignore all kinds of additional output from 'make'. 3379case `$am_make -s -f confmf 2> /dev/null` in #( 3380*the\ am__doit\ target*) 3381 am__include=include 3382 am__quote= 3383 _am_result=GNU 3384 ;; 3385esac 3386# Now try BSD make style include. 3387if test "$am__include" = "#"; then 3388 echo '.include "confinc"' > confmf 3389 case `$am_make -s -f confmf 2> /dev/null` in #( 3390 *the\ am__doit\ target*) 3391 am__include=.include 3392 am__quote="\"" 3393 _am_result=BSD 3394 ;; 3395 esac 3396fi 3397 3398 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3400$as_echo "$_am_result" >&6; } 3401rm -f confinc confmf 3402 3403# Check whether --enable-dependency-tracking was given. 3404if test "${enable_dependency_tracking+set}" = set; then : 3405 enableval=$enable_dependency_tracking; 3406fi 3407 3408if test "x$enable_dependency_tracking" != xno; then 3409 am_depcomp="$ac_aux_dir/depcomp" 3410 AMDEPBACKSLASH='\' 3411 am__nodep='_no' 3412fi 3413 if test "x$enable_dependency_tracking" != xno; then 3414 AMDEP_TRUE= 3415 AMDEP_FALSE='#' 3416else 3417 AMDEP_TRUE='#' 3418 AMDEP_FALSE= 3419fi 3420 3421 3422ac_ext=c 3423ac_cpp='$CPP $CPPFLAGS' 3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3426ac_compiler_gnu=$ac_cv_c_compiler_gnu 3427if test -n "$ac_tool_prefix"; then 3428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3429set dummy ${ac_tool_prefix}gcc; ac_word=$2 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3431$as_echo_n "checking for $ac_word... " >&6; } 3432if ${ac_cv_prog_CC+:} false; then : 3433 $as_echo_n "(cached) " >&6 3434else 3435 if test -n "$CC"; then 3436 ac_cv_prog_CC="$CC" # Let the user override the test. 3437else 3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439for as_dir in $PATH 3440do 3441 IFS=$as_save_IFS 3442 test -z "$as_dir" && as_dir=. 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3445 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449done 3450 done 3451IFS=$as_save_IFS 3452 3453fi 3454fi 3455CC=$ac_cv_prog_CC 3456if test -n "$CC"; then 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3458$as_echo "$CC" >&6; } 3459else 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461$as_echo "no" >&6; } 3462fi 3463 3464 3465fi 3466if test -z "$ac_cv_prog_CC"; then 3467 ac_ct_CC=$CC 3468 # Extract the first word of "gcc", so it can be a program name with args. 3469set dummy gcc; ac_word=$2 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3471$as_echo_n "checking for $ac_word... " >&6; } 3472if ${ac_cv_prog_ac_ct_CC+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 if test -n "$ac_ct_CC"; then 3476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3477else 3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479for as_dir in $PATH 3480do 3481 IFS=$as_save_IFS 3482 test -z "$as_dir" && as_dir=. 3483 for ac_exec_ext in '' $ac_executable_extensions; do 3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3485 ac_cv_prog_ac_ct_CC="gcc" 3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3487 break 2 3488 fi 3489done 3490 done 3491IFS=$as_save_IFS 3492 3493fi 3494fi 3495ac_ct_CC=$ac_cv_prog_ac_ct_CC 3496if test -n "$ac_ct_CC"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3498$as_echo "$ac_ct_CC" >&6; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502fi 3503 3504 if test "x$ac_ct_CC" = x; then 3505 CC="" 3506 else 3507 case $cross_compiling:$ac_tool_warned in 3508yes:) 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3511ac_tool_warned=yes ;; 3512esac 3513 CC=$ac_ct_CC 3514 fi 3515else 3516 CC="$ac_cv_prog_CC" 3517fi 3518 3519if test -z "$CC"; then 3520 if test -n "$ac_tool_prefix"; then 3521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3522set dummy ${ac_tool_prefix}cc; ac_word=$2 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3524$as_echo_n "checking for $ac_word... " >&6; } 3525if ${ac_cv_prog_CC+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 if test -n "$CC"; then 3529 ac_cv_prog_CC="$CC" # Let the user override the test. 3530else 3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3532for as_dir in $PATH 3533do 3534 IFS=$as_save_IFS 3535 test -z "$as_dir" && as_dir=. 3536 for ac_exec_ext in '' $ac_executable_extensions; do 3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3538 ac_cv_prog_CC="${ac_tool_prefix}cc" 3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3540 break 2 3541 fi 3542done 3543 done 3544IFS=$as_save_IFS 3545 3546fi 3547fi 3548CC=$ac_cv_prog_CC 3549if test -n "$CC"; then 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3551$as_echo "$CC" >&6; } 3552else 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554$as_echo "no" >&6; } 3555fi 3556 3557 3558 fi 3559fi 3560if test -z "$CC"; then 3561 # Extract the first word of "cc", so it can be a program name with args. 3562set dummy cc; ac_word=$2 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3564$as_echo_n "checking for $ac_word... " >&6; } 3565if ${ac_cv_prog_CC+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 if test -n "$CC"; then 3569 ac_cv_prog_CC="$CC" # Let the user override the test. 3570else 3571 ac_prog_rejected=no 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573for as_dir in $PATH 3574do 3575 IFS=$as_save_IFS 3576 test -z "$as_dir" && as_dir=. 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3580 ac_prog_rejected=yes 3581 continue 3582 fi 3583 ac_cv_prog_CC="cc" 3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3585 break 2 3586 fi 3587done 3588 done 3589IFS=$as_save_IFS 3590 3591if test $ac_prog_rejected = yes; then 3592 # We found a bogon in the path, so make sure we never use it. 3593 set dummy $ac_cv_prog_CC 3594 shift 3595 if test $# != 0; then 3596 # We chose a different compiler from the bogus one. 3597 # However, it has the same basename, so the bogon will be chosen 3598 # first if we set CC to just the basename; use the full file name. 3599 shift 3600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3601 fi 3602fi 3603fi 3604fi 3605CC=$ac_cv_prog_CC 3606if test -n "$CC"; then 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3608$as_echo "$CC" >&6; } 3609else 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611$as_echo "no" >&6; } 3612fi 3613 3614 3615fi 3616if test -z "$CC"; then 3617 if test -n "$ac_tool_prefix"; then 3618 for ac_prog in cl.exe 3619 do 3620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3621set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3623$as_echo_n "checking for $ac_word... " >&6; } 3624if ${ac_cv_prog_CC+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 if test -n "$CC"; then 3628 ac_cv_prog_CC="$CC" # Let the user override the test. 3629else 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3639 break 2 3640 fi 3641done 3642 done 3643IFS=$as_save_IFS 3644 3645fi 3646fi 3647CC=$ac_cv_prog_CC 3648if test -n "$CC"; then 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3650$as_echo "$CC" >&6; } 3651else 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653$as_echo "no" >&6; } 3654fi 3655 3656 3657 test -n "$CC" && break 3658 done 3659fi 3660if test -z "$CC"; then 3661 ac_ct_CC=$CC 3662 for ac_prog in cl.exe 3663do 3664 # Extract the first word of "$ac_prog", so it can be a program name with args. 3665set dummy $ac_prog; ac_word=$2 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3667$as_echo_n "checking for $ac_word... " >&6; } 3668if ${ac_cv_prog_ac_ct_CC+:} false; then : 3669 $as_echo_n "(cached) " >&6 3670else 3671 if test -n "$ac_ct_CC"; then 3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3673else 3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3675for as_dir in $PATH 3676do 3677 IFS=$as_save_IFS 3678 test -z "$as_dir" && as_dir=. 3679 for ac_exec_ext in '' $ac_executable_extensions; do 3680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3681 ac_cv_prog_ac_ct_CC="$ac_prog" 3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3683 break 2 3684 fi 3685done 3686 done 3687IFS=$as_save_IFS 3688 3689fi 3690fi 3691ac_ct_CC=$ac_cv_prog_ac_ct_CC 3692if test -n "$ac_ct_CC"; then 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3694$as_echo "$ac_ct_CC" >&6; } 3695else 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3697$as_echo "no" >&6; } 3698fi 3699 3700 3701 test -n "$ac_ct_CC" && break 3702done 3703 3704 if test "x$ac_ct_CC" = x; then 3705 CC="" 3706 else 3707 case $cross_compiling:$ac_tool_warned in 3708yes:) 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3711ac_tool_warned=yes ;; 3712esac 3713 CC=$ac_ct_CC 3714 fi 3715fi 3716 3717fi 3718 3719 3720test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3722as_fn_error $? "no acceptable C compiler found in \$PATH 3723See \`config.log' for more details" "$LINENO" 5; } 3724 3725# Provide some information about the compiler. 3726$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3727set X $ac_compile 3728ac_compiler=$2 3729for ac_option in --version -v -V -qversion; do 3730 { { ac_try="$ac_compiler $ac_option >&5" 3731case "(($ac_try" in 3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3733 *) ac_try_echo=$ac_try;; 3734esac 3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3736$as_echo "$ac_try_echo"; } >&5 3737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3738 ac_status=$? 3739 if test -s conftest.err; then 3740 sed '10a\ 3741... rest of stderr output deleted ... 3742 10q' conftest.err >conftest.er1 3743 cat conftest.er1 >&5 3744 fi 3745 rm -f conftest.er1 conftest.err 3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3747 test $ac_status = 0; } 3748done 3749 3750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751/* end confdefs.h. */ 3752 3753int 3754main () 3755{ 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761ac_clean_files_save=$ac_clean_files 3762ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3763# Try to create an executable without -o first, disregard a.out. 3764# It will help us diagnose broken compilers, and finding out an intuition 3765# of exeext. 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3767$as_echo_n "checking whether the C compiler works... " >&6; } 3768ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3769 3770# The possible output files: 3771ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3772 3773ac_rmfiles= 3774for ac_file in $ac_files 3775do 3776 case $ac_file in 3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3778 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3779 esac 3780done 3781rm -f $ac_rmfiles 3782 3783if { { ac_try="$ac_link_default" 3784case "(($ac_try" in 3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3786 *) ac_try_echo=$ac_try;; 3787esac 3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3789$as_echo "$ac_try_echo"; } >&5 3790 (eval "$ac_link_default") 2>&5 3791 ac_status=$? 3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3793 test $ac_status = 0; }; then : 3794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3795# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3796# in a Makefile. We should not override ac_cv_exeext if it was cached, 3797# so that the user can short-circuit this test for compilers unknown to 3798# Autoconf. 3799for ac_file in $ac_files '' 3800do 3801 test -f "$ac_file" || continue 3802 case $ac_file in 3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3804 ;; 3805 [ab].out ) 3806 # We found the default executable, but exeext='' is most 3807 # certainly right. 3808 break;; 3809 *.* ) 3810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3811 then :; else 3812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3813 fi 3814 # We set ac_cv_exeext here because the later test for it is not 3815 # safe: cross compilers may not add the suffix if given an `-o' 3816 # argument, so we may need to know it at that point already. 3817 # Even if this section looks crufty: it has the advantage of 3818 # actually working. 3819 break;; 3820 * ) 3821 break;; 3822 esac 3823done 3824test "$ac_cv_exeext" = no && ac_cv_exeext= 3825 3826else 3827 ac_file='' 3828fi 3829if test -z "$ac_file"; then : 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831$as_echo "no" >&6; } 3832$as_echo "$as_me: failed program was:" >&5 3833sed 's/^/| /' conftest.$ac_ext >&5 3834 3835{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3837as_fn_error 77 "C compiler cannot create executables 3838See \`config.log' for more details" "$LINENO" 5; } 3839else 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3841$as_echo "yes" >&6; } 3842fi 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3844$as_echo_n "checking for C compiler default output file name... " >&6; } 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3846$as_echo "$ac_file" >&6; } 3847ac_exeext=$ac_cv_exeext 3848 3849rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3850ac_clean_files=$ac_clean_files_save 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3852$as_echo_n "checking for suffix of executables... " >&6; } 3853if { { ac_try="$ac_link" 3854case "(($ac_try" in 3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3856 *) ac_try_echo=$ac_try;; 3857esac 3858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3859$as_echo "$ac_try_echo"; } >&5 3860 (eval "$ac_link") 2>&5 3861 ac_status=$? 3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3863 test $ac_status = 0; }; then : 3864 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3865# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3866# work properly (i.e., refer to `conftest.exe'), while it won't with 3867# `rm'. 3868for ac_file in conftest.exe conftest conftest.*; do 3869 test -f "$ac_file" || continue 3870 case $ac_file in 3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3872 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3873 break;; 3874 * ) break;; 3875 esac 3876done 3877else 3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3880as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3881See \`config.log' for more details" "$LINENO" 5; } 3882fi 3883rm -f conftest conftest$ac_cv_exeext 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3885$as_echo "$ac_cv_exeext" >&6; } 3886 3887rm -f conftest.$ac_ext 3888EXEEXT=$ac_cv_exeext 3889ac_exeext=$EXEEXT 3890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892#include <stdio.h> 3893int 3894main () 3895{ 3896FILE *f = fopen ("conftest.out", "w"); 3897 return ferror (f) || fclose (f) != 0; 3898 3899 ; 3900 return 0; 3901} 3902_ACEOF 3903ac_clean_files="$ac_clean_files conftest.out" 3904# Check that the compiler produces executables we can run. If not, either 3905# the compiler is broken, or we cross compile. 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3907$as_echo_n "checking whether we are cross compiling... " >&6; } 3908if test "$cross_compiling" != yes; then 3909 { { ac_try="$ac_link" 3910case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915$as_echo "$ac_try_echo"; } >&5 3916 (eval "$ac_link") 2>&5 3917 ac_status=$? 3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919 test $ac_status = 0; } 3920 if { ac_try='./conftest$ac_cv_exeext' 3921 { { case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926$as_echo "$ac_try_echo"; } >&5 3927 (eval "$ac_try") 2>&5 3928 ac_status=$? 3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930 test $ac_status = 0; }; }; then 3931 cross_compiling=no 3932 else 3933 if test "$cross_compiling" = maybe; then 3934 cross_compiling=yes 3935 else 3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error $? "cannot run C compiled programs. 3939If you meant to cross compile, use \`--host'. 3940See \`config.log' for more details" "$LINENO" 5; } 3941 fi 3942 fi 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3945$as_echo "$cross_compiling" >&6; } 3946 3947rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3948ac_clean_files=$ac_clean_files_save 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3950$as_echo_n "checking for suffix of object files... " >&6; } 3951if ${ac_cv_objext+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956 3957int 3958main () 3959{ 3960 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965rm -f conftest.o conftest.obj 3966if { { ac_try="$ac_compile" 3967case "(($ac_try" in 3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3969 *) ac_try_echo=$ac_try;; 3970esac 3971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3972$as_echo "$ac_try_echo"; } >&5 3973 (eval "$ac_compile") 2>&5 3974 ac_status=$? 3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3976 test $ac_status = 0; }; then : 3977 for ac_file in conftest.o conftest.obj conftest.*; do 3978 test -f "$ac_file" || continue; 3979 case $ac_file in 3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3982 break;; 3983 esac 3984done 3985else 3986 $as_echo "$as_me: failed program was:" >&5 3987sed 's/^/| /' conftest.$ac_ext >&5 3988 3989{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3991as_fn_error $? "cannot compute suffix of object files: cannot compile 3992See \`config.log' for more details" "$LINENO" 5; } 3993fi 3994rm -f conftest.$ac_cv_objext conftest.$ac_ext 3995fi 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3997$as_echo "$ac_cv_objext" >&6; } 3998OBJEXT=$ac_cv_objext 3999ac_objext=$OBJEXT 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4001$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4002if ${ac_cv_c_compiler_gnu+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007 4008int 4009main () 4010{ 4011#ifndef __GNUC__ 4012 choke me 4013#endif 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019if ac_fn_c_try_compile "$LINENO"; then : 4020 ac_compiler_gnu=yes 4021else 4022 ac_compiler_gnu=no 4023fi 4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4025ac_cv_c_compiler_gnu=$ac_compiler_gnu 4026 4027fi 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4029$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4030if test $ac_compiler_gnu = yes; then 4031 GCC=yes 4032else 4033 GCC= 4034fi 4035ac_test_CFLAGS=${CFLAGS+set} 4036ac_save_CFLAGS=$CFLAGS 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4038$as_echo_n "checking whether $CC accepts -g... " >&6; } 4039if ${ac_cv_prog_cc_g+:} false; then : 4040 $as_echo_n "(cached) " >&6 4041else 4042 ac_save_c_werror_flag=$ac_c_werror_flag 4043 ac_c_werror_flag=yes 4044 ac_cv_prog_cc_g=no 4045 CFLAGS="-g" 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048 4049int 4050main () 4051{ 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057if ac_fn_c_try_compile "$LINENO"; then : 4058 ac_cv_prog_cc_g=yes 4059else 4060 CFLAGS="" 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063 4064int 4065main () 4066{ 4067 4068 ; 4069 return 0; 4070} 4071_ACEOF 4072if ac_fn_c_try_compile "$LINENO"; then : 4073 4074else 4075 ac_c_werror_flag=$ac_save_c_werror_flag 4076 CFLAGS="-g" 4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078/* end confdefs.h. */ 4079 4080int 4081main () 4082{ 4083 4084 ; 4085 return 0; 4086} 4087_ACEOF 4088if ac_fn_c_try_compile "$LINENO"; then : 4089 ac_cv_prog_cc_g=yes 4090fi 4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4092fi 4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4094fi 4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4096 ac_c_werror_flag=$ac_save_c_werror_flag 4097fi 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4099$as_echo "$ac_cv_prog_cc_g" >&6; } 4100if test "$ac_test_CFLAGS" = set; then 4101 CFLAGS=$ac_save_CFLAGS 4102elif test $ac_cv_prog_cc_g = yes; then 4103 if test "$GCC" = yes; then 4104 CFLAGS="-g -O2" 4105 else 4106 CFLAGS="-g" 4107 fi 4108else 4109 if test "$GCC" = yes; then 4110 CFLAGS="-O2" 4111 else 4112 CFLAGS= 4113 fi 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4116$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4117if ${ac_cv_prog_cc_c89+:} false; then : 4118 $as_echo_n "(cached) " >&6 4119else 4120 ac_cv_prog_cc_c89=no 4121ac_save_CC=$CC 4122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124#include <stdarg.h> 4125#include <stdio.h> 4126struct stat; 4127/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4128struct buf { int x; }; 4129FILE * (*rcsopen) (struct buf *, struct stat *, int); 4130static char *e (p, i) 4131 char **p; 4132 int i; 4133{ 4134 return p[i]; 4135} 4136static char *f (char * (*g) (char **, int), char **p, ...) 4137{ 4138 char *s; 4139 va_list v; 4140 va_start (v,p); 4141 s = g (p, va_arg (v,int)); 4142 va_end (v); 4143 return s; 4144} 4145 4146/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4147 function prototypes and stuff, but not '\xHH' hex character constants. 4148 These don't provoke an error unfortunately, instead are silently treated 4149 as 'x'. The following induces an error, until -std is added to get 4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4151 array size at least. It's necessary to write '\x00'==0 to get something 4152 that's true only with -std. */ 4153int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4154 4155/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4156 inside strings and character constants. */ 4157#define FOO(x) 'x' 4158int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4159 4160int test (int i, double x); 4161struct s1 {int (*f) (int a);}; 4162struct s2 {int (*f) (double a);}; 4163int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4164int argc; 4165char **argv; 4166int 4167main () 4168{ 4169return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4176do 4177 CC="$ac_save_CC $ac_arg" 4178 if ac_fn_c_try_compile "$LINENO"; then : 4179 ac_cv_prog_cc_c89=$ac_arg 4180fi 4181rm -f core conftest.err conftest.$ac_objext 4182 test "x$ac_cv_prog_cc_c89" != "xno" && break 4183done 4184rm -f conftest.$ac_ext 4185CC=$ac_save_CC 4186 4187fi 4188# AC_CACHE_VAL 4189case "x$ac_cv_prog_cc_c89" in 4190 x) 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4192$as_echo "none needed" >&6; } ;; 4193 xno) 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4195$as_echo "unsupported" >&6; } ;; 4196 *) 4197 CC="$CC $ac_cv_prog_cc_c89" 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4199$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4200esac 4201if test "x$ac_cv_prog_cc_c89" != xno; then : 4202 4203fi 4204 4205ac_ext=c 4206ac_cpp='$CPP $CPPFLAGS' 4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4209ac_compiler_gnu=$ac_cv_c_compiler_gnu 4210 4211ac_ext=c 4212ac_cpp='$CPP $CPPFLAGS' 4213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4215ac_compiler_gnu=$ac_cv_c_compiler_gnu 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4217$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4218if ${am_cv_prog_cc_c_o+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222/* end confdefs.h. */ 4223 4224int 4225main () 4226{ 4227 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232 # Make sure it works both with $CC and with simple cc. 4233 # Following AC_PROG_CC_C_O, we do the test twice because some 4234 # compilers refuse to overwrite an existing .o file with -o, 4235 # though they will create one. 4236 am_cv_prog_cc_c_o=yes 4237 for am_i in 1 2; do 4238 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4239 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4240 ac_status=$? 4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4242 (exit $ac_status); } \ 4243 && test -f conftest2.$ac_objext; then 4244 : OK 4245 else 4246 am_cv_prog_cc_c_o=no 4247 break 4248 fi 4249 done 4250 rm -f core conftest* 4251 unset am_i 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4254$as_echo "$am_cv_prog_cc_c_o" >&6; } 4255if test "$am_cv_prog_cc_c_o" != yes; then 4256 # Losing compiler, so override with the script. 4257 # FIXME: It is wrong to rewrite CC. 4258 # But if we don't then we get into trouble of one sort or another. 4259 # A longer-term fix would be to have automake use am__CC in this case, 4260 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4261 CC="$am_aux_dir/compile $CC" 4262fi 4263ac_ext=c 4264ac_cpp='$CPP $CPPFLAGS' 4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4267ac_compiler_gnu=$ac_cv_c_compiler_gnu 4268 4269 4270depcc="$CC" am_compiler_list= 4271 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4273$as_echo_n "checking dependency style of $depcc... " >&6; } 4274if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4275 $as_echo_n "(cached) " >&6 4276else 4277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4278 # We make a subdir and do the tests there. Otherwise we can end up 4279 # making bogus files that we don't know about and never remove. For 4280 # instance it was reported that on HP-UX the gcc test will end up 4281 # making a dummy file named 'D' -- because '-MD' means "put the output 4282 # in D". 4283 rm -rf conftest.dir 4284 mkdir conftest.dir 4285 # Copy depcomp to subdir because otherwise we won't find it if we're 4286 # using a relative directory. 4287 cp "$am_depcomp" conftest.dir 4288 cd conftest.dir 4289 # We will build objects and dependencies in a subdirectory because 4290 # it helps to detect inapplicable dependency modes. For instance 4291 # both Tru64's cc and ICC support -MD to output dependencies as a 4292 # side effect of compilation, but ICC will put the dependencies in 4293 # the current directory while Tru64 will put them in the object 4294 # directory. 4295 mkdir sub 4296 4297 am_cv_CC_dependencies_compiler_type=none 4298 if test "$am_compiler_list" = ""; then 4299 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4300 fi 4301 am__universal=false 4302 case " $depcc " in #( 4303 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4304 esac 4305 4306 for depmode in $am_compiler_list; do 4307 # Setup a source with many dependencies, because some compilers 4308 # like to wrap large dependency lists on column 80 (with \), and 4309 # we should not choose a depcomp mode which is confused by this. 4310 # 4311 # We need to recreate these files for each test, as the compiler may 4312 # overwrite some of them when testing with obscure command lines. 4313 # This happens at least with the AIX C compiler. 4314 : > sub/conftest.c 4315 for i in 1 2 3 4 5 6; do 4316 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4317 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4318 # Solaris 10 /bin/sh. 4319 echo '/* dummy */' > sub/conftst$i.h 4320 done 4321 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4322 4323 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4324 # mode. It turns out that the SunPro C++ compiler does not properly 4325 # handle '-M -o', and we need to detect this. Also, some Intel 4326 # versions had trouble with output in subdirs. 4327 am__obj=sub/conftest.${OBJEXT-o} 4328 am__minus_obj="-o $am__obj" 4329 case $depmode in 4330 gcc) 4331 # This depmode causes a compiler race in universal mode. 4332 test "$am__universal" = false || continue 4333 ;; 4334 nosideeffect) 4335 # After this tag, mechanisms are not by side-effect, so they'll 4336 # only be used when explicitly requested. 4337 if test "x$enable_dependency_tracking" = xyes; then 4338 continue 4339 else 4340 break 4341 fi 4342 ;; 4343 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4344 # This compiler won't grok '-c -o', but also, the minuso test has 4345 # not run yet. These depmodes are late enough in the game, and 4346 # so weak that their functioning should not be impacted. 4347 am__obj=conftest.${OBJEXT-o} 4348 am__minus_obj= 4349 ;; 4350 none) break ;; 4351 esac 4352 if depmode=$depmode \ 4353 source=sub/conftest.c object=$am__obj \ 4354 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4355 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4356 >/dev/null 2>conftest.err && 4357 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4359 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4361 # icc doesn't choke on unknown options, it will just issue warnings 4362 # or remarks (even with -Werror). So we grep stderr for any message 4363 # that says an option was ignored or not supported. 4364 # When given -MP, icc 7.0 and 7.1 complain thusly: 4365 # icc: Command line warning: ignoring option '-M'; no argument required 4366 # The diagnosis changed in icc 8.0: 4367 # icc: Command line remark: option '-MP' not supported 4368 if (grep 'ignoring option' conftest.err || 4369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4370 am_cv_CC_dependencies_compiler_type=$depmode 4371 break 4372 fi 4373 fi 4374 done 4375 4376 cd .. 4377 rm -rf conftest.dir 4378else 4379 am_cv_CC_dependencies_compiler_type=none 4380fi 4381 4382fi 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4384$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4385CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4386 4387 if 4388 test "x$enable_dependency_tracking" != xno \ 4389 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4390 am__fastdepCC_TRUE= 4391 am__fastdepCC_FALSE='#' 4392else 4393 am__fastdepCC_TRUE='#' 4394 am__fastdepCC_FALSE= 4395fi 4396 4397 4398 case $ac_cv_prog_cc_stdc in #( 4399 no) : 4400 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4401 *) : 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4403$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4404if ${ac_cv_prog_cc_c99+:} false; then : 4405 $as_echo_n "(cached) " >&6 4406else 4407 ac_cv_prog_cc_c99=no 4408ac_save_CC=$CC 4409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410/* end confdefs.h. */ 4411#include <stdarg.h> 4412#include <stdbool.h> 4413#include <stdlib.h> 4414#include <wchar.h> 4415#include <stdio.h> 4416 4417// Check varargs macros. These examples are taken from C99 6.10.3.5. 4418#define debug(...) fprintf (stderr, __VA_ARGS__) 4419#define showlist(...) puts (#__VA_ARGS__) 4420#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4421static void 4422test_varargs_macros (void) 4423{ 4424 int x = 1234; 4425 int y = 5678; 4426 debug ("Flag"); 4427 debug ("X = %d\n", x); 4428 showlist (The first, second, and third items.); 4429 report (x>y, "x is %d but y is %d", x, y); 4430} 4431 4432// Check long long types. 4433#define BIG64 18446744073709551615ull 4434#define BIG32 4294967295ul 4435#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4436#if !BIG_OK 4437 your preprocessor is broken; 4438#endif 4439#if BIG_OK 4440#else 4441 your preprocessor is broken; 4442#endif 4443static long long int bignum = -9223372036854775807LL; 4444static unsigned long long int ubignum = BIG64; 4445 4446struct incomplete_array 4447{ 4448 int datasize; 4449 double data[]; 4450}; 4451 4452struct named_init { 4453 int number; 4454 const wchar_t *name; 4455 double average; 4456}; 4457 4458typedef const char *ccp; 4459 4460static inline int 4461test_restrict (ccp restrict text) 4462{ 4463 // See if C++-style comments work. 4464 // Iterate through items via the restricted pointer. 4465 // Also check for declarations in for loops. 4466 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4467 continue; 4468 return 0; 4469} 4470 4471// Check varargs and va_copy. 4472static void 4473test_varargs (const char *format, ...) 4474{ 4475 va_list args; 4476 va_start (args, format); 4477 va_list args_copy; 4478 va_copy (args_copy, args); 4479 4480 const char *str; 4481 int number; 4482 float fnumber; 4483 4484 while (*format) 4485 { 4486 switch (*format++) 4487 { 4488 case 's': // string 4489 str = va_arg (args_copy, const char *); 4490 break; 4491 case 'd': // int 4492 number = va_arg (args_copy, int); 4493 break; 4494 case 'f': // float 4495 fnumber = va_arg (args_copy, double); 4496 break; 4497 default: 4498 break; 4499 } 4500 } 4501 va_end (args_copy); 4502 va_end (args); 4503} 4504 4505int 4506main () 4507{ 4508 4509 // Check bool. 4510 _Bool success = false; 4511 4512 // Check restrict. 4513 if (test_restrict ("String literal") == 0) 4514 success = true; 4515 char *restrict newvar = "Another string"; 4516 4517 // Check varargs. 4518 test_varargs ("s, d' f .", "string", 65, 34.234); 4519 test_varargs_macros (); 4520 4521 // Check flexible array members. 4522 struct incomplete_array *ia = 4523 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4524 ia->datasize = 10; 4525 for (int i = 0; i < ia->datasize; ++i) 4526 ia->data[i] = i * 1.234; 4527 4528 // Check named initializers. 4529 struct named_init ni = { 4530 .number = 34, 4531 .name = L"Test wide string", 4532 .average = 543.34343, 4533 }; 4534 4535 ni.number = 58; 4536 4537 int dynamic_array[ni.number]; 4538 dynamic_array[ni.number - 1] = 543; 4539 4540 // work around unused variable warnings 4541 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4542 || dynamic_array[ni.number - 1] != 543); 4543 4544 ; 4545 return 0; 4546} 4547_ACEOF 4548for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4549do 4550 CC="$ac_save_CC $ac_arg" 4551 if ac_fn_c_try_compile "$LINENO"; then : 4552 ac_cv_prog_cc_c99=$ac_arg 4553fi 4554rm -f core conftest.err conftest.$ac_objext 4555 test "x$ac_cv_prog_cc_c99" != "xno" && break 4556done 4557rm -f conftest.$ac_ext 4558CC=$ac_save_CC 4559 4560fi 4561# AC_CACHE_VAL 4562case "x$ac_cv_prog_cc_c99" in 4563 x) 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4565$as_echo "none needed" >&6; } ;; 4566 xno) 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4568$as_echo "unsupported" >&6; } ;; 4569 *) 4570 CC="$CC $ac_cv_prog_cc_c99" 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4572$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4573esac 4574if test "x$ac_cv_prog_cc_c99" != xno; then : 4575 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4576else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4578$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4579if ${ac_cv_prog_cc_c89+:} false; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 ac_cv_prog_cc_c89=no 4583ac_save_CC=$CC 4584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4585/* end confdefs.h. */ 4586#include <stdarg.h> 4587#include <stdio.h> 4588struct stat; 4589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4590struct buf { int x; }; 4591FILE * (*rcsopen) (struct buf *, struct stat *, int); 4592static char *e (p, i) 4593 char **p; 4594 int i; 4595{ 4596 return p[i]; 4597} 4598static char *f (char * (*g) (char **, int), char **p, ...) 4599{ 4600 char *s; 4601 va_list v; 4602 va_start (v,p); 4603 s = g (p, va_arg (v,int)); 4604 va_end (v); 4605 return s; 4606} 4607 4608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4609 function prototypes and stuff, but not '\xHH' hex character constants. 4610 These don't provoke an error unfortunately, instead are silently treated 4611 as 'x'. The following induces an error, until -std is added to get 4612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4613 array size at least. It's necessary to write '\x00'==0 to get something 4614 that's true only with -std. */ 4615int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4616 4617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4618 inside strings and character constants. */ 4619#define FOO(x) 'x' 4620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4621 4622int test (int i, double x); 4623struct s1 {int (*f) (int a);}; 4624struct s2 {int (*f) (double a);}; 4625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4626int argc; 4627char **argv; 4628int 4629main () 4630{ 4631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4632 ; 4633 return 0; 4634} 4635_ACEOF 4636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4638do 4639 CC="$ac_save_CC $ac_arg" 4640 if ac_fn_c_try_compile "$LINENO"; then : 4641 ac_cv_prog_cc_c89=$ac_arg 4642fi 4643rm -f core conftest.err conftest.$ac_objext 4644 test "x$ac_cv_prog_cc_c89" != "xno" && break 4645done 4646rm -f conftest.$ac_ext 4647CC=$ac_save_CC 4648 4649fi 4650# AC_CACHE_VAL 4651case "x$ac_cv_prog_cc_c89" in 4652 x) 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4654$as_echo "none needed" >&6; } ;; 4655 xno) 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4657$as_echo "unsupported" >&6; } ;; 4658 *) 4659 CC="$CC $ac_cv_prog_cc_c89" 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4662esac 4663if test "x$ac_cv_prog_cc_c89" != xno; then : 4664 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4665else 4666 ac_cv_prog_cc_stdc=no 4667fi 4668 4669fi 4670 ;; 4671esac 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4673$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4674 if ${ac_cv_prog_cc_stdc+:} false; then : 4675 $as_echo_n "(cached) " >&6 4676fi 4677 4678 case $ac_cv_prog_cc_stdc in #( 4679 no) : 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4681$as_echo "unsupported" >&6; } ;; #( 4682 '') : 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4684$as_echo "none needed" >&6; } ;; #( 4685 *) : 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4687$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4688esac 4689 4690 4691ac_ext=c 4692ac_cpp='$CPP $CPPFLAGS' 4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695ac_compiler_gnu=$ac_cv_c_compiler_gnu 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4697$as_echo_n "checking how to run the C preprocessor... " >&6; } 4698# On Suns, sometimes $CPP names a directory. 4699if test -n "$CPP" && test -d "$CPP"; then 4700 CPP= 4701fi 4702if test -z "$CPP"; then 4703 if ${ac_cv_prog_CPP+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 # Double quotes because CPP needs to be expanded 4707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4708 do 4709 ac_preproc_ok=false 4710for ac_c_preproc_warn_flag in '' yes 4711do 4712 # Use a header file that comes with gcc, so configuring glibc 4713 # with a fresh cross-compiler works. 4714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4715 # <limits.h> exists even on freestanding compilers. 4716 # On the NeXT, cc -E runs the code through the compiler's parser, 4717 # not just through cpp. "Syntax error" is here to catch this case. 4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4719/* end confdefs.h. */ 4720#ifdef __STDC__ 4721# include <limits.h> 4722#else 4723# include <assert.h> 4724#endif 4725 Syntax error 4726_ACEOF 4727if ac_fn_c_try_cpp "$LINENO"; then : 4728 4729else 4730 # Broken: fails on valid input. 4731continue 4732fi 4733rm -f conftest.err conftest.i conftest.$ac_ext 4734 4735 # OK, works on sane cases. Now check whether nonexistent headers 4736 # can be detected and how. 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739#include <ac_nonexistent.h> 4740_ACEOF 4741if ac_fn_c_try_cpp "$LINENO"; then : 4742 # Broken: success on invalid input. 4743continue 4744else 4745 # Passes both tests. 4746ac_preproc_ok=: 4747break 4748fi 4749rm -f conftest.err conftest.i conftest.$ac_ext 4750 4751done 4752# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4753rm -f conftest.i conftest.err conftest.$ac_ext 4754if $ac_preproc_ok; then : 4755 break 4756fi 4757 4758 done 4759 ac_cv_prog_CPP=$CPP 4760 4761fi 4762 CPP=$ac_cv_prog_CPP 4763else 4764 ac_cv_prog_CPP=$CPP 4765fi 4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4767$as_echo "$CPP" >&6; } 4768ac_preproc_ok=false 4769for ac_c_preproc_warn_flag in '' yes 4770do 4771 # Use a header file that comes with gcc, so configuring glibc 4772 # with a fresh cross-compiler works. 4773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4774 # <limits.h> exists even on freestanding compilers. 4775 # On the NeXT, cc -E runs the code through the compiler's parser, 4776 # not just through cpp. "Syntax error" is here to catch this case. 4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778/* end confdefs.h. */ 4779#ifdef __STDC__ 4780# include <limits.h> 4781#else 4782# include <assert.h> 4783#endif 4784 Syntax error 4785_ACEOF 4786if ac_fn_c_try_cpp "$LINENO"; then : 4787 4788else 4789 # Broken: fails on valid input. 4790continue 4791fi 4792rm -f conftest.err conftest.i conftest.$ac_ext 4793 4794 # OK, works on sane cases. Now check whether nonexistent headers 4795 # can be detected and how. 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798#include <ac_nonexistent.h> 4799_ACEOF 4800if ac_fn_c_try_cpp "$LINENO"; then : 4801 # Broken: success on invalid input. 4802continue 4803else 4804 # Passes both tests. 4805ac_preproc_ok=: 4806break 4807fi 4808rm -f conftest.err conftest.i conftest.$ac_ext 4809 4810done 4811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4812rm -f conftest.i conftest.err conftest.$ac_ext 4813if $ac_preproc_ok; then : 4814 4815else 4816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4818as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4819See \`config.log' for more details" "$LINENO" 5; } 4820fi 4821 4822ac_ext=c 4823ac_cpp='$CPP $CPPFLAGS' 4824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4826ac_compiler_gnu=$ac_cv_c_compiler_gnu 4827 4828 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4830$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4831if ${ac_cv_path_GREP+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 if test -z "$GREP"; then 4835 ac_path_GREP_found=false 4836 # Loop through the user's path and test for each of PROGNAME-LIST 4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4839do 4840 IFS=$as_save_IFS 4841 test -z "$as_dir" && as_dir=. 4842 for ac_prog in grep ggrep; do 4843 for ac_exec_ext in '' $ac_executable_extensions; do 4844 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4845 as_fn_executable_p "$ac_path_GREP" || continue 4846# Check for GNU ac_path_GREP and select it if it is found. 4847 # Check for GNU $ac_path_GREP 4848case `"$ac_path_GREP" --version 2>&1` in 4849*GNU*) 4850 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4851*) 4852 ac_count=0 4853 $as_echo_n 0123456789 >"conftest.in" 4854 while : 4855 do 4856 cat "conftest.in" "conftest.in" >"conftest.tmp" 4857 mv "conftest.tmp" "conftest.in" 4858 cp "conftest.in" "conftest.nl" 4859 $as_echo 'GREP' >> "conftest.nl" 4860 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4862 as_fn_arith $ac_count + 1 && ac_count=$as_val 4863 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4864 # Best one so far, save it but keep looking for a better one 4865 ac_cv_path_GREP="$ac_path_GREP" 4866 ac_path_GREP_max=$ac_count 4867 fi 4868 # 10*(2^10) chars as input seems more than enough 4869 test $ac_count -gt 10 && break 4870 done 4871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4872esac 4873 4874 $ac_path_GREP_found && break 3 4875 done 4876 done 4877 done 4878IFS=$as_save_IFS 4879 if test -z "$ac_cv_path_GREP"; then 4880 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4881 fi 4882else 4883 ac_cv_path_GREP=$GREP 4884fi 4885 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4888$as_echo "$ac_cv_path_GREP" >&6; } 4889 GREP="$ac_cv_path_GREP" 4890 4891 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4893$as_echo_n "checking for egrep... " >&6; } 4894if ${ac_cv_path_EGREP+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4898 then ac_cv_path_EGREP="$GREP -E" 4899 else 4900 if test -z "$EGREP"; then 4901 ac_path_EGREP_found=false 4902 # Loop through the user's path and test for each of PROGNAME-LIST 4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4905do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_prog in egrep; do 4909 for ac_exec_ext in '' $ac_executable_extensions; do 4910 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4911 as_fn_executable_p "$ac_path_EGREP" || continue 4912# Check for GNU ac_path_EGREP and select it if it is found. 4913 # Check for GNU $ac_path_EGREP 4914case `"$ac_path_EGREP" --version 2>&1` in 4915*GNU*) 4916 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4917*) 4918 ac_count=0 4919 $as_echo_n 0123456789 >"conftest.in" 4920 while : 4921 do 4922 cat "conftest.in" "conftest.in" >"conftest.tmp" 4923 mv "conftest.tmp" "conftest.in" 4924 cp "conftest.in" "conftest.nl" 4925 $as_echo 'EGREP' >> "conftest.nl" 4926 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4928 as_fn_arith $ac_count + 1 && ac_count=$as_val 4929 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4930 # Best one so far, save it but keep looking for a better one 4931 ac_cv_path_EGREP="$ac_path_EGREP" 4932 ac_path_EGREP_max=$ac_count 4933 fi 4934 # 10*(2^10) chars as input seems more than enough 4935 test $ac_count -gt 10 && break 4936 done 4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4938esac 4939 4940 $ac_path_EGREP_found && break 3 4941 done 4942 done 4943 done 4944IFS=$as_save_IFS 4945 if test -z "$ac_cv_path_EGREP"; then 4946 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4947 fi 4948else 4949 ac_cv_path_EGREP=$EGREP 4950fi 4951 4952 fi 4953fi 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4955$as_echo "$ac_cv_path_EGREP" >&6; } 4956 EGREP="$ac_cv_path_EGREP" 4957 4958 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4960$as_echo_n "checking for ANSI C header files... " >&6; } 4961if ${ac_cv_header_stdc+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966#include <stdlib.h> 4967#include <stdarg.h> 4968#include <string.h> 4969#include <float.h> 4970 4971int 4972main () 4973{ 4974 4975 ; 4976 return 0; 4977} 4978_ACEOF 4979if ac_fn_c_try_compile "$LINENO"; then : 4980 ac_cv_header_stdc=yes 4981else 4982 ac_cv_header_stdc=no 4983fi 4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4985 4986if test $ac_cv_header_stdc = yes; then 4987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4989/* end confdefs.h. */ 4990#include <string.h> 4991 4992_ACEOF 4993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4994 $EGREP "memchr" >/dev/null 2>&1; then : 4995 4996else 4997 ac_cv_header_stdc=no 4998fi 4999rm -f conftest* 5000 5001fi 5002 5003if test $ac_cv_header_stdc = yes; then 5004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007#include <stdlib.h> 5008 5009_ACEOF 5010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5011 $EGREP "free" >/dev/null 2>&1; then : 5012 5013else 5014 ac_cv_header_stdc=no 5015fi 5016rm -f conftest* 5017 5018fi 5019 5020if test $ac_cv_header_stdc = yes; then 5021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5022 if test "$cross_compiling" = yes; then : 5023 : 5024else 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027#include <ctype.h> 5028#include <stdlib.h> 5029#if ((' ' & 0x0FF) == 0x020) 5030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5032#else 5033# define ISLOWER(c) \ 5034 (('a' <= (c) && (c) <= 'i') \ 5035 || ('j' <= (c) && (c) <= 'r') \ 5036 || ('s' <= (c) && (c) <= 'z')) 5037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5038#endif 5039 5040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5041int 5042main () 5043{ 5044 int i; 5045 for (i = 0; i < 256; i++) 5046 if (XOR (islower (i), ISLOWER (i)) 5047 || toupper (i) != TOUPPER (i)) 5048 return 2; 5049 return 0; 5050} 5051_ACEOF 5052if ac_fn_c_try_run "$LINENO"; then : 5053 5054else 5055 ac_cv_header_stdc=no 5056fi 5057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5058 conftest.$ac_objext conftest.beam conftest.$ac_ext 5059fi 5060 5061fi 5062fi 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5064$as_echo "$ac_cv_header_stdc" >&6; } 5065if test $ac_cv_header_stdc = yes; then 5066 5067$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5068 5069fi 5070 5071# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5072for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5073 inttypes.h stdint.h unistd.h 5074do : 5075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5077" 5078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5079 cat >>confdefs.h <<_ACEOF 5080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5081_ACEOF 5082 5083fi 5084 5085done 5086 5087 5088 5089 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5090if test "x$ac_cv_header_minix_config_h" = xyes; then : 5091 MINIX=yes 5092else 5093 MINIX= 5094fi 5095 5096 5097 if test "$MINIX" = yes; then 5098 5099$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5100 5101 5102$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5103 5104 5105$as_echo "#define _MINIX 1" >>confdefs.h 5106 5107 fi 5108 5109 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5111$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5112if ${ac_cv_safe_to_define___extensions__+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114else 5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117 5118# define __EXTENSIONS__ 1 5119 $ac_includes_default 5120int 5121main () 5122{ 5123 5124 ; 5125 return 0; 5126} 5127_ACEOF 5128if ac_fn_c_try_compile "$LINENO"; then : 5129 ac_cv_safe_to_define___extensions__=yes 5130else 5131 ac_cv_safe_to_define___extensions__=no 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5136$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5137 test $ac_cv_safe_to_define___extensions__ = yes && 5138 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5139 5140 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5141 5142 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5143 5144 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5145 5146 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5147 5148 5149 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5151$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5152if ${ac_cv_c_bigendian+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 ac_cv_c_bigendian=unknown 5156 # See if we're dealing with a universal compiler. 5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158/* end confdefs.h. */ 5159#ifndef __APPLE_CC__ 5160 not a universal capable compiler 5161 #endif 5162 typedef int dummy; 5163 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO"; then : 5166 5167 # Check for potential -arch flags. It is not universal unless 5168 # there are at least two -arch flags with different values. 5169 ac_arch= 5170 ac_prev= 5171 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5172 if test -n "$ac_prev"; then 5173 case $ac_word in 5174 i?86 | x86_64 | ppc | ppc64) 5175 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5176 ac_arch=$ac_word 5177 else 5178 ac_cv_c_bigendian=universal 5179 break 5180 fi 5181 ;; 5182 esac 5183 ac_prev= 5184 elif test "x$ac_word" = "x-arch"; then 5185 ac_prev=arch 5186 fi 5187 done 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5190 if test $ac_cv_c_bigendian = unknown; then 5191 # See if sys/param.h defines the BYTE_ORDER macro. 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194#include <sys/types.h> 5195 #include <sys/param.h> 5196 5197int 5198main () 5199{ 5200#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5201 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5202 && LITTLE_ENDIAN) 5203 bogus endian macros 5204 #endif 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 # It does; now see whether it defined to BIG_ENDIAN or not. 5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213/* end confdefs.h. */ 5214#include <sys/types.h> 5215 #include <sys/param.h> 5216 5217int 5218main () 5219{ 5220#if BYTE_ORDER != BIG_ENDIAN 5221 not big endian 5222 #endif 5223 5224 ; 5225 return 0; 5226} 5227_ACEOF 5228if ac_fn_c_try_compile "$LINENO"; then : 5229 ac_cv_c_bigendian=yes 5230else 5231 ac_cv_c_bigendian=no 5232fi 5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5234fi 5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5236 fi 5237 if test $ac_cv_c_bigendian = unknown; then 5238 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241#include <limits.h> 5242 5243int 5244main () 5245{ 5246#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5247 bogus endian macros 5248 #endif 5249 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_c_try_compile "$LINENO"; then : 5255 # It does; now see whether it defined to _BIG_ENDIAN or not. 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258#include <limits.h> 5259 5260int 5261main () 5262{ 5263#ifndef _BIG_ENDIAN 5264 not big endian 5265 #endif 5266 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271if ac_fn_c_try_compile "$LINENO"; then : 5272 ac_cv_c_bigendian=yes 5273else 5274 ac_cv_c_bigendian=no 5275fi 5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279 fi 5280 if test $ac_cv_c_bigendian = unknown; then 5281 # Compile a test program. 5282 if test "$cross_compiling" = yes; then : 5283 # Try to guess by grepping values from an object file. 5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285/* end confdefs.h. */ 5286short int ascii_mm[] = 5287 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5288 short int ascii_ii[] = 5289 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5290 int use_ascii (int i) { 5291 return ascii_mm[i] + ascii_ii[i]; 5292 } 5293 short int ebcdic_ii[] = 5294 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5295 short int ebcdic_mm[] = 5296 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5297 int use_ebcdic (int i) { 5298 return ebcdic_mm[i] + ebcdic_ii[i]; 5299 } 5300 extern int foo; 5301 5302int 5303main () 5304{ 5305return use_ascii (foo) == use_ebcdic (foo); 5306 ; 5307 return 0; 5308} 5309_ACEOF 5310if ac_fn_c_try_compile "$LINENO"; then : 5311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5312 ac_cv_c_bigendian=yes 5313 fi 5314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5315 if test "$ac_cv_c_bigendian" = unknown; then 5316 ac_cv_c_bigendian=no 5317 else 5318 # finding both strings is unlikely to happen, but who knows? 5319 ac_cv_c_bigendian=unknown 5320 fi 5321 fi 5322fi 5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5324else 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327$ac_includes_default 5328int 5329main () 5330{ 5331 5332 /* Are we little or big endian? From Harbison&Steele. */ 5333 union 5334 { 5335 long int l; 5336 char c[sizeof (long int)]; 5337 } u; 5338 u.l = 1; 5339 return u.c[sizeof (long int) - 1] == 1; 5340 5341 ; 5342 return 0; 5343} 5344_ACEOF 5345if ac_fn_c_try_run "$LINENO"; then : 5346 ac_cv_c_bigendian=no 5347else 5348 ac_cv_c_bigendian=yes 5349fi 5350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5351 conftest.$ac_objext conftest.beam conftest.$ac_ext 5352fi 5353 5354 fi 5355fi 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5357$as_echo "$ac_cv_c_bigendian" >&6; } 5358 case $ac_cv_c_bigendian in #( 5359 yes) 5360 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5361;; #( 5362 no) 5363 ;; #( 5364 universal) 5365 5366$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5367 5368 ;; #( 5369 *) 5370 as_fn_error $? "unknown endianness 5371 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5372 esac 5373 5374 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5376$as_echo_n "checking whether ln -s works... " >&6; } 5377LN_S=$as_ln_s 5378if test "$LN_S" = "ln -s"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5380$as_echo "yes" >&6; } 5381else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5383$as_echo "no, using $LN_S" >&6; } 5384fi 5385 5386case `pwd` in 5387 *\ * | *\ *) 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5389$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5390esac 5391 5392 5393 5394macro_version='2.4.2' 5395macro_revision='1.3337' 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409ltmain="$ac_aux_dir/ltmain.sh" 5410 5411# Backslashify metacharacters that are still active within 5412# double-quoted strings. 5413sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5414 5415# Same as above, but do not quote variable references. 5416double_quote_subst='s/\(["`\\]\)/\\\1/g' 5417 5418# Sed substitution to delay expansion of an escaped shell variable in a 5419# double_quote_subst'ed string. 5420delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5421 5422# Sed substitution to delay expansion of an escaped single quote. 5423delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5424 5425# Sed substitution to avoid accidental globbing in evaled expressions 5426no_glob_subst='s/\*/\\\*/g' 5427 5428ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5429ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5430ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5431 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5433$as_echo_n "checking how to print strings... " >&6; } 5434# Test print first, because it will be a builtin if present. 5435if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5436 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5437 ECHO='print -r --' 5438elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5439 ECHO='printf %s\n' 5440else 5441 # Use this function as a fallback that always works. 5442 func_fallback_echo () 5443 { 5444 eval 'cat <<_LTECHO_EOF 5445$1 5446_LTECHO_EOF' 5447 } 5448 ECHO='func_fallback_echo' 5449fi 5450 5451# func_echo_all arg... 5452# Invoke $ECHO with all args, space-separated. 5453func_echo_all () 5454{ 5455 $ECHO "" 5456} 5457 5458case "$ECHO" in 5459 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5460$as_echo "printf" >&6; } ;; 5461 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5462$as_echo "print -r" >&6; } ;; 5463 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5464$as_echo "cat" >&6; } ;; 5465esac 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5481$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5482if ${ac_cv_path_SED+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5486 for ac_i in 1 2 3 4 5 6 7; do 5487 ac_script="$ac_script$as_nl$ac_script" 5488 done 5489 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5490 { ac_script=; unset ac_script;} 5491 if test -z "$SED"; then 5492 ac_path_SED_found=false 5493 # Loop through the user's path and test for each of PROGNAME-LIST 5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 test -z "$as_dir" && as_dir=. 5499 for ac_prog in sed gsed; do 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5502 as_fn_executable_p "$ac_path_SED" || continue 5503# Check for GNU ac_path_SED and select it if it is found. 5504 # Check for GNU $ac_path_SED 5505case `"$ac_path_SED" --version 2>&1` in 5506*GNU*) 5507 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5508*) 5509 ac_count=0 5510 $as_echo_n 0123456789 >"conftest.in" 5511 while : 5512 do 5513 cat "conftest.in" "conftest.in" >"conftest.tmp" 5514 mv "conftest.tmp" "conftest.in" 5515 cp "conftest.in" "conftest.nl" 5516 $as_echo '' >> "conftest.nl" 5517 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5519 as_fn_arith $ac_count + 1 && ac_count=$as_val 5520 if test $ac_count -gt ${ac_path_SED_max-0}; then 5521 # Best one so far, save it but keep looking for a better one 5522 ac_cv_path_SED="$ac_path_SED" 5523 ac_path_SED_max=$ac_count 5524 fi 5525 # 10*(2^10) chars as input seems more than enough 5526 test $ac_count -gt 10 && break 5527 done 5528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5529esac 5530 5531 $ac_path_SED_found && break 3 5532 done 5533 done 5534 done 5535IFS=$as_save_IFS 5536 if test -z "$ac_cv_path_SED"; then 5537 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5538 fi 5539else 5540 ac_cv_path_SED=$SED 5541fi 5542 5543fi 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5545$as_echo "$ac_cv_path_SED" >&6; } 5546 SED="$ac_cv_path_SED" 5547 rm -f conftest.sed 5548 5549test -z "$SED" && SED=sed 5550Xsed="$SED -e 1s/^X//" 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5563$as_echo_n "checking for fgrep... " >&6; } 5564if ${ac_cv_path_FGREP+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5568 then ac_cv_path_FGREP="$GREP -F" 5569 else 5570 if test -z "$FGREP"; then 5571 ac_path_FGREP_found=false 5572 # Loop through the user's path and test for each of PROGNAME-LIST 5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5575do 5576 IFS=$as_save_IFS 5577 test -z "$as_dir" && as_dir=. 5578 for ac_prog in fgrep; do 5579 for ac_exec_ext in '' $ac_executable_extensions; do 5580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5581 as_fn_executable_p "$ac_path_FGREP" || continue 5582# Check for GNU ac_path_FGREP and select it if it is found. 5583 # Check for GNU $ac_path_FGREP 5584case `"$ac_path_FGREP" --version 2>&1` in 5585*GNU*) 5586 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5587*) 5588 ac_count=0 5589 $as_echo_n 0123456789 >"conftest.in" 5590 while : 5591 do 5592 cat "conftest.in" "conftest.in" >"conftest.tmp" 5593 mv "conftest.tmp" "conftest.in" 5594 cp "conftest.in" "conftest.nl" 5595 $as_echo 'FGREP' >> "conftest.nl" 5596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5598 as_fn_arith $ac_count + 1 && ac_count=$as_val 5599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5600 # Best one so far, save it but keep looking for a better one 5601 ac_cv_path_FGREP="$ac_path_FGREP" 5602 ac_path_FGREP_max=$ac_count 5603 fi 5604 # 10*(2^10) chars as input seems more than enough 5605 test $ac_count -gt 10 && break 5606 done 5607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5608esac 5609 5610 $ac_path_FGREP_found && break 3 5611 done 5612 done 5613 done 5614IFS=$as_save_IFS 5615 if test -z "$ac_cv_path_FGREP"; then 5616 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5617 fi 5618else 5619 ac_cv_path_FGREP=$FGREP 5620fi 5621 5622 fi 5623fi 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5625$as_echo "$ac_cv_path_FGREP" >&6; } 5626 FGREP="$ac_cv_path_FGREP" 5627 5628 5629test -z "$GREP" && GREP=grep 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649# Check whether --with-gnu-ld was given. 5650if test "${with_gnu_ld+set}" = set; then : 5651 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5652else 5653 with_gnu_ld=no 5654fi 5655 5656ac_prog=ld 5657if test "$GCC" = yes; then 5658 # Check if gcc -print-prog-name=ld gives a path. 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5660$as_echo_n "checking for ld used by $CC... " >&6; } 5661 case $host in 5662 *-*-mingw*) 5663 # gcc leaves a trailing carriage return which upsets mingw 5664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5665 *) 5666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5667 esac 5668 case $ac_prog in 5669 # Accept absolute paths. 5670 [\\/]* | ?:[\\/]*) 5671 re_direlt='/[^/][^/]*/\.\./' 5672 # Canonicalize the pathname of ld 5673 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5674 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5675 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5676 done 5677 test -z "$LD" && LD="$ac_prog" 5678 ;; 5679 "") 5680 # If it fails, then pretend we aren't using GCC. 5681 ac_prog=ld 5682 ;; 5683 *) 5684 # If it is relative, then search for the first ld in PATH. 5685 with_gnu_ld=unknown 5686 ;; 5687 esac 5688elif test "$with_gnu_ld" = yes; then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5690$as_echo_n "checking for GNU ld... " >&6; } 5691else 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5693$as_echo_n "checking for non-GNU ld... " >&6; } 5694fi 5695if ${lt_cv_path_LD+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 if test -z "$LD"; then 5699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5700 for ac_dir in $PATH; do 5701 IFS="$lt_save_ifs" 5702 test -z "$ac_dir" && ac_dir=. 5703 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5704 lt_cv_path_LD="$ac_dir/$ac_prog" 5705 # Check to see if the program is GNU ld. I'd rather use --version, 5706 # but apparently some variants of GNU ld only accept -v. 5707 # Break only if it was the GNU/non-GNU ld that we prefer. 5708 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5709 *GNU* | *'with BFD'*) 5710 test "$with_gnu_ld" != no && break 5711 ;; 5712 *) 5713 test "$with_gnu_ld" != yes && break 5714 ;; 5715 esac 5716 fi 5717 done 5718 IFS="$lt_save_ifs" 5719else 5720 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5721fi 5722fi 5723 5724LD="$lt_cv_path_LD" 5725if test -n "$LD"; then 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5727$as_echo "$LD" >&6; } 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730$as_echo "no" >&6; } 5731fi 5732test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5734$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5735if ${lt_cv_prog_gnu_ld+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5739case `$LD -v 2>&1 </dev/null` in 5740*GNU* | *'with BFD'*) 5741 lt_cv_prog_gnu_ld=yes 5742 ;; 5743*) 5744 lt_cv_prog_gnu_ld=no 5745 ;; 5746esac 5747fi 5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5749$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5750with_gnu_ld=$lt_cv_prog_gnu_ld 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5761$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5762if ${lt_cv_path_NM+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 if test -n "$NM"; then 5766 # Let the user override the test. 5767 lt_cv_path_NM="$NM" 5768else 5769 lt_nm_to_check="${ac_tool_prefix}nm" 5770 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5771 lt_nm_to_check="$lt_nm_to_check nm" 5772 fi 5773 for lt_tmp_nm in $lt_nm_to_check; do 5774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5775 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5776 IFS="$lt_save_ifs" 5777 test -z "$ac_dir" && ac_dir=. 5778 tmp_nm="$ac_dir/$lt_tmp_nm" 5779 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5780 # Check to see if the nm accepts a BSD-compat flag. 5781 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5782 # nm: unknown option "B" ignored 5783 # Tru64's nm complains that /dev/null is an invalid object file 5784 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5785 */dev/null* | *'Invalid file or object type'*) 5786 lt_cv_path_NM="$tmp_nm -B" 5787 break 5788 ;; 5789 *) 5790 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5791 */dev/null*) 5792 lt_cv_path_NM="$tmp_nm -p" 5793 break 5794 ;; 5795 *) 5796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5797 continue # so that we can try to find one that supports BSD flags 5798 ;; 5799 esac 5800 ;; 5801 esac 5802 fi 5803 done 5804 IFS="$lt_save_ifs" 5805 done 5806 : ${lt_cv_path_NM=no} 5807fi 5808fi 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5810$as_echo "$lt_cv_path_NM" >&6; } 5811if test "$lt_cv_path_NM" != "no"; then 5812 NM="$lt_cv_path_NM" 5813else 5814 # Didn't find any BSD compatible name lister, look for dumpbin. 5815 if test -n "$DUMPBIN"; then : 5816 # Let the user override the test. 5817 else 5818 if test -n "$ac_tool_prefix"; then 5819 for ac_prog in dumpbin "link -dump" 5820 do 5821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5822set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if ${ac_cv_prog_DUMPBIN+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$DUMPBIN"; then 5829 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5830else 5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832for as_dir in $PATH 5833do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5838 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840 break 2 5841 fi 5842done 5843 done 5844IFS=$as_save_IFS 5845 5846fi 5847fi 5848DUMPBIN=$ac_cv_prog_DUMPBIN 5849if test -n "$DUMPBIN"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5851$as_echo "$DUMPBIN" >&6; } 5852else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854$as_echo "no" >&6; } 5855fi 5856 5857 5858 test -n "$DUMPBIN" && break 5859 done 5860fi 5861if test -z "$DUMPBIN"; then 5862 ac_ct_DUMPBIN=$DUMPBIN 5863 for ac_prog in dumpbin "link -dump" 5864do 5865 # Extract the first word of "$ac_prog", so it can be a program name with args. 5866set dummy $ac_prog; ac_word=$2 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868$as_echo_n "checking for $ac_word... " >&6; } 5869if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test -n "$ac_ct_DUMPBIN"; then 5873 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5893if test -n "$ac_ct_DUMPBIN"; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5895$as_echo "$ac_ct_DUMPBIN" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898$as_echo "no" >&6; } 5899fi 5900 5901 5902 test -n "$ac_ct_DUMPBIN" && break 5903done 5904 5905 if test "x$ac_ct_DUMPBIN" = x; then 5906 DUMPBIN=":" 5907 else 5908 case $cross_compiling:$ac_tool_warned in 5909yes:) 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5912ac_tool_warned=yes ;; 5913esac 5914 DUMPBIN=$ac_ct_DUMPBIN 5915 fi 5916fi 5917 5918 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5919 *COFF*) 5920 DUMPBIN="$DUMPBIN -symbols" 5921 ;; 5922 *) 5923 DUMPBIN=: 5924 ;; 5925 esac 5926 fi 5927 5928 if test "$DUMPBIN" != ":"; then 5929 NM="$DUMPBIN" 5930 fi 5931fi 5932test -z "$NM" && NM=nm 5933 5934 5935 5936 5937 5938 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5940$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5941if ${lt_cv_nm_interface+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 lt_cv_nm_interface="BSD nm" 5945 echo "int some_variable = 0;" > conftest.$ac_ext 5946 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5947 (eval "$ac_compile" 2>conftest.err) 5948 cat conftest.err >&5 5949 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5950 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5951 cat conftest.err >&5 5952 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5953 cat conftest.out >&5 5954 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5955 lt_cv_nm_interface="MS dumpbin" 5956 fi 5957 rm -f conftest* 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5960$as_echo "$lt_cv_nm_interface" >&6; } 5961 5962# find the maximum length of command line arguments 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5964$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5965if ${lt_cv_sys_max_cmd_len+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 i=0 5969 teststring="ABCD" 5970 5971 case $build_os in 5972 msdosdjgpp*) 5973 # On DJGPP, this test can blow up pretty badly due to problems in libc 5974 # (any single argument exceeding 2000 bytes causes a buffer overrun 5975 # during glob expansion). Even if it were fixed, the result of this 5976 # check would be larger than it should be. 5977 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5978 ;; 5979 5980 gnu*) 5981 # Under GNU Hurd, this test is not required because there is 5982 # no limit to the length of command line arguments. 5983 # Libtool will interpret -1 as no limit whatsoever 5984 lt_cv_sys_max_cmd_len=-1; 5985 ;; 5986 5987 cygwin* | mingw* | cegcc*) 5988 # On Win9x/ME, this test blows up -- it succeeds, but takes 5989 # about 5 minutes as the teststring grows exponentially. 5990 # Worse, since 9x/ME are not pre-emptively multitasking, 5991 # you end up with a "frozen" computer, even though with patience 5992 # the test eventually succeeds (with a max line length of 256k). 5993 # Instead, let's just punt: use the minimum linelength reported by 5994 # all of the supported platforms: 8192 (on NT/2K/XP). 5995 lt_cv_sys_max_cmd_len=8192; 5996 ;; 5997 5998 mint*) 5999 # On MiNT this can take a long time and run out of memory. 6000 lt_cv_sys_max_cmd_len=8192; 6001 ;; 6002 6003 amigaos*) 6004 # On AmigaOS with pdksh, this test takes hours, literally. 6005 # So we just punt and use a minimum line length of 8192. 6006 lt_cv_sys_max_cmd_len=8192; 6007 ;; 6008 6009 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6010 # This has been around since 386BSD, at least. Likely further. 6011 if test -x /sbin/sysctl; then 6012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6013 elif test -x /usr/sbin/sysctl; then 6014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6015 else 6016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6017 fi 6018 # And add a safety zone 6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6021 ;; 6022 6023 interix*) 6024 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6025 lt_cv_sys_max_cmd_len=196608 6026 ;; 6027 6028 os2*) 6029 # The test takes a long time on OS/2. 6030 lt_cv_sys_max_cmd_len=8192 6031 ;; 6032 6033 osf*) 6034 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6035 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6036 # nice to cause kernel panics so lets avoid the loop below. 6037 # First set a reasonable default. 6038 lt_cv_sys_max_cmd_len=16384 6039 # 6040 if test -x /sbin/sysconfig; then 6041 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6042 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6043 esac 6044 fi 6045 ;; 6046 sco3.2v5*) 6047 lt_cv_sys_max_cmd_len=102400 6048 ;; 6049 sysv5* | sco5v6* | sysv4.2uw2*) 6050 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6051 if test -n "$kargmax"; then 6052 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6053 else 6054 lt_cv_sys_max_cmd_len=32768 6055 fi 6056 ;; 6057 *) 6058 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6059 if test -n "$lt_cv_sys_max_cmd_len"; then 6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6062 else 6063 # Make teststring a little bigger before we do anything with it. 6064 # a 1K string should be a reasonable start. 6065 for i in 1 2 3 4 5 6 7 8 ; do 6066 teststring=$teststring$teststring 6067 done 6068 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6069 # If test is not a shell built-in, we'll probably end up computing a 6070 # maximum length that is only half of the actual maximum length, but 6071 # we can't tell. 6072 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6073 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6074 test $i != 17 # 1/2 MB should be enough 6075 do 6076 i=`expr $i + 1` 6077 teststring=$teststring$teststring 6078 done 6079 # Only check the string length outside the loop. 6080 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6081 teststring= 6082 # Add a significant safety factor because C++ compilers can tack on 6083 # massive amounts of additional arguments before passing them to the 6084 # linker. It appears as though 1/2 is a usable value. 6085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6086 fi 6087 ;; 6088 esac 6089 6090fi 6091 6092if test -n $lt_cv_sys_max_cmd_len ; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6094$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6097$as_echo "none" >&6; } 6098fi 6099max_cmd_len=$lt_cv_sys_max_cmd_len 6100 6101 6102 6103 6104 6105 6106: ${CP="cp -f"} 6107: ${MV="mv -f"} 6108: ${RM="rm -f"} 6109 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6111$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6112# Try some XSI features 6113xsi_shell=no 6114( _lt_dummy="a/b/c" 6115 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6116 = c,a/b,b/c, \ 6117 && eval 'test $(( 1 + 1 )) -eq 2 \ 6118 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6119 && xsi_shell=yes 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6121$as_echo "$xsi_shell" >&6; } 6122 6123 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6125$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6126lt_shell_append=no 6127( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6128 >/dev/null 2>&1 \ 6129 && lt_shell_append=yes 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6131$as_echo "$lt_shell_append" >&6; } 6132 6133 6134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6135 lt_unset=unset 6136else 6137 lt_unset=false 6138fi 6139 6140 6141 6142 6143 6144# test EBCDIC or ASCII 6145case `echo X|tr X '\101'` in 6146 A) # ASCII based system 6147 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6148 lt_SP2NL='tr \040 \012' 6149 lt_NL2SP='tr \015\012 \040\040' 6150 ;; 6151 *) # EBCDIC based system 6152 lt_SP2NL='tr \100 \n' 6153 lt_NL2SP='tr \r\n \100\100' 6154 ;; 6155esac 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6166$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6167if ${lt_cv_to_host_file_cmd+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 case $host in 6171 *-*-mingw* ) 6172 case $build in 6173 *-*-mingw* ) # actually msys 6174 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6175 ;; 6176 *-*-cygwin* ) 6177 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6178 ;; 6179 * ) # otherwise, assume *nix 6180 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6181 ;; 6182 esac 6183 ;; 6184 *-*-cygwin* ) 6185 case $build in 6186 *-*-mingw* ) # actually msys 6187 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6188 ;; 6189 *-*-cygwin* ) 6190 lt_cv_to_host_file_cmd=func_convert_file_noop 6191 ;; 6192 * ) # otherwise, assume *nix 6193 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6194 ;; 6195 esac 6196 ;; 6197 * ) # unhandled hosts (and "normal" native builds) 6198 lt_cv_to_host_file_cmd=func_convert_file_noop 6199 ;; 6200esac 6201 6202fi 6203 6204to_host_file_cmd=$lt_cv_to_host_file_cmd 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6206$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6207 6208 6209 6210 6211 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6213$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6214if ${lt_cv_to_tool_file_cmd+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 #assume ordinary cross tools, or native build. 6218lt_cv_to_tool_file_cmd=func_convert_file_noop 6219case $host in 6220 *-*-mingw* ) 6221 case $build in 6222 *-*-mingw* ) # actually msys 6223 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6224 ;; 6225 esac 6226 ;; 6227esac 6228 6229fi 6230 6231to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6233$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6234 6235 6236 6237 6238 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6240$as_echo_n "checking for $LD option to reload object files... " >&6; } 6241if ${lt_cv_ld_reload_flag+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 lt_cv_ld_reload_flag='-r' 6245fi 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6247$as_echo "$lt_cv_ld_reload_flag" >&6; } 6248reload_flag=$lt_cv_ld_reload_flag 6249case $reload_flag in 6250"" | " "*) ;; 6251*) reload_flag=" $reload_flag" ;; 6252esac 6253reload_cmds='$LD$reload_flag -o $output$reload_objs' 6254case $host_os in 6255 cygwin* | mingw* | pw32* | cegcc*) 6256 if test "$GCC" != yes; then 6257 reload_cmds=false 6258 fi 6259 ;; 6260 darwin*) 6261 if test "$GCC" = yes; then 6262 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6263 else 6264 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6265 fi 6266 ;; 6267esac 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277if test -n "$ac_tool_prefix"; then 6278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6279set dummy ${ac_tool_prefix}objdump; ac_word=$2 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if ${ac_cv_prog_OBJDUMP+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$OBJDUMP"; then 6286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300 done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305OBJDUMP=$ac_cv_prog_OBJDUMP 6306if test -n "$OBJDUMP"; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6308$as_echo "$OBJDUMP" >&6; } 6309else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 6315fi 6316if test -z "$ac_cv_prog_OBJDUMP"; then 6317 ac_ct_OBJDUMP=$OBJDUMP 6318 # Extract the first word of "objdump", so it can be a program name with args. 6319set dummy objdump; ac_word=$2 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6321$as_echo_n "checking for $ac_word... " >&6; } 6322if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 if test -n "$ac_ct_OBJDUMP"; then 6326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6327else 6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329for as_dir in $PATH 6330do 6331 IFS=$as_save_IFS 6332 test -z "$as_dir" && as_dir=. 6333 for ac_exec_ext in '' $ac_executable_extensions; do 6334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6335 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6337 break 2 6338 fi 6339done 6340 done 6341IFS=$as_save_IFS 6342 6343fi 6344fi 6345ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6346if test -n "$ac_ct_OBJDUMP"; then 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6348$as_echo "$ac_ct_OBJDUMP" >&6; } 6349else 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6351$as_echo "no" >&6; } 6352fi 6353 6354 if test "x$ac_ct_OBJDUMP" = x; then 6355 OBJDUMP="false" 6356 else 6357 case $cross_compiling:$ac_tool_warned in 6358yes:) 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6361ac_tool_warned=yes ;; 6362esac 6363 OBJDUMP=$ac_ct_OBJDUMP 6364 fi 6365else 6366 OBJDUMP="$ac_cv_prog_OBJDUMP" 6367fi 6368 6369test -z "$OBJDUMP" && OBJDUMP=objdump 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6380$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6381if ${lt_cv_deplibs_check_method+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 lt_cv_file_magic_cmd='$MAGIC_CMD' 6385lt_cv_file_magic_test_file= 6386lt_cv_deplibs_check_method='unknown' 6387# Need to set the preceding variable on all platforms that support 6388# interlibrary dependencies. 6389# 'none' -- dependencies not supported. 6390# `unknown' -- same as none, but documents that we really don't know. 6391# 'pass_all' -- all dependencies passed with no checks. 6392# 'test_compile' -- check by making test program. 6393# 'file_magic [[regex]]' -- check by looking for files in library path 6394# which responds to the $file_magic_cmd with a given extended regex. 6395# If you have `file' or equivalent on your system and you're not sure 6396# whether `pass_all' will *always* work, you probably want this one. 6397 6398case $host_os in 6399aix[4-9]*) 6400 lt_cv_deplibs_check_method=pass_all 6401 ;; 6402 6403beos*) 6404 lt_cv_deplibs_check_method=pass_all 6405 ;; 6406 6407bsdi[45]*) 6408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6409 lt_cv_file_magic_cmd='/usr/bin/file -L' 6410 lt_cv_file_magic_test_file=/shlib/libc.so 6411 ;; 6412 6413cygwin*) 6414 # func_win32_libid is a shell function defined in ltmain.sh 6415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6416 lt_cv_file_magic_cmd='func_win32_libid' 6417 ;; 6418 6419mingw* | pw32*) 6420 # Base MSYS/MinGW do not provide the 'file' command needed by 6421 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6422 # unless we find 'file', for example because we are cross-compiling. 6423 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6424 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6426 lt_cv_file_magic_cmd='func_win32_libid' 6427 else 6428 # Keep this pattern in sync with the one in func_win32_libid. 6429 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6430 lt_cv_file_magic_cmd='$OBJDUMP -f' 6431 fi 6432 ;; 6433 6434cegcc*) 6435 # use the weaker test based on 'objdump'. See mingw*. 6436 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6437 lt_cv_file_magic_cmd='$OBJDUMP -f' 6438 ;; 6439 6440darwin* | rhapsody*) 6441 lt_cv_deplibs_check_method=pass_all 6442 ;; 6443 6444freebsd* | dragonfly*) 6445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6446 case $host_cpu in 6447 i*86 ) 6448 # Not sure whether the presence of OpenBSD here was a mistake. 6449 # Let's accept both of them until this is cleared up. 6450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6451 lt_cv_file_magic_cmd=/usr/bin/file 6452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6453 ;; 6454 esac 6455 else 6456 lt_cv_deplibs_check_method=pass_all 6457 fi 6458 ;; 6459 6460gnu*) 6461 lt_cv_deplibs_check_method=pass_all 6462 ;; 6463 6464haiku*) 6465 lt_cv_deplibs_check_method=pass_all 6466 ;; 6467 6468hpux10.20* | hpux11*) 6469 lt_cv_file_magic_cmd=/usr/bin/file 6470 case $host_cpu in 6471 ia64*) 6472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6474 ;; 6475 hppa*64*) 6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6477 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6478 ;; 6479 *) 6480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6481 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6482 ;; 6483 esac 6484 ;; 6485 6486interix[3-9]*) 6487 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6489 ;; 6490 6491irix5* | irix6* | nonstopux*) 6492 case $LD in 6493 *-32|*"-32 ") libmagic=32-bit;; 6494 *-n32|*"-n32 ") libmagic=N32;; 6495 *-64|*"-64 ") libmagic=64-bit;; 6496 *) libmagic=never-match;; 6497 esac 6498 lt_cv_deplibs_check_method=pass_all 6499 ;; 6500 6501# This must be glibc/ELF. 6502linux* | k*bsd*-gnu | kopensolaris*-gnu) 6503 lt_cv_deplibs_check_method=pass_all 6504 ;; 6505 6506netbsd*) 6507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6509 else 6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6511 fi 6512 ;; 6513 6514newos6*) 6515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6516 lt_cv_file_magic_cmd=/usr/bin/file 6517 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6518 ;; 6519 6520*nto* | *qnx*) 6521 lt_cv_deplibs_check_method=pass_all 6522 ;; 6523 6524openbsd*) 6525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6527 else 6528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6529 fi 6530 ;; 6531 6532osf3* | osf4* | osf5*) 6533 lt_cv_deplibs_check_method=pass_all 6534 ;; 6535 6536rdos*) 6537 lt_cv_deplibs_check_method=pass_all 6538 ;; 6539 6540solaris*) 6541 lt_cv_deplibs_check_method=pass_all 6542 ;; 6543 6544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6545 lt_cv_deplibs_check_method=pass_all 6546 ;; 6547 6548sysv4 | sysv4.3*) 6549 case $host_vendor in 6550 motorola) 6551 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]' 6552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6553 ;; 6554 ncr) 6555 lt_cv_deplibs_check_method=pass_all 6556 ;; 6557 sequent) 6558 lt_cv_file_magic_cmd='/bin/file' 6559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6560 ;; 6561 sni) 6562 lt_cv_file_magic_cmd='/bin/file' 6563 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6564 lt_cv_file_magic_test_file=/lib/libc.so 6565 ;; 6566 siemens) 6567 lt_cv_deplibs_check_method=pass_all 6568 ;; 6569 pc) 6570 lt_cv_deplibs_check_method=pass_all 6571 ;; 6572 esac 6573 ;; 6574 6575tpf*) 6576 lt_cv_deplibs_check_method=pass_all 6577 ;; 6578esac 6579 6580fi 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6582$as_echo "$lt_cv_deplibs_check_method" >&6; } 6583 6584file_magic_glob= 6585want_nocaseglob=no 6586if test "$build" = "$host"; then 6587 case $host_os in 6588 mingw* | pw32*) 6589 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6590 want_nocaseglob=yes 6591 else 6592 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6593 fi 6594 ;; 6595 esac 6596fi 6597 6598file_magic_cmd=$lt_cv_file_magic_cmd 6599deplibs_check_method=$lt_cv_deplibs_check_method 6600test -z "$deplibs_check_method" && deplibs_check_method=unknown 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623if test -n "$ac_tool_prefix"; then 6624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6625set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627$as_echo_n "checking for $ac_word... " >&6; } 6628if ${ac_cv_prog_DLLTOOL+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 if test -n "$DLLTOOL"; then 6632 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6633else 6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH 6636do 6637 IFS=$as_save_IFS 6638 test -z "$as_dir" && as_dir=. 6639 for ac_exec_ext in '' $ac_executable_extensions; do 6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6643 break 2 6644 fi 6645done 6646 done 6647IFS=$as_save_IFS 6648 6649fi 6650fi 6651DLLTOOL=$ac_cv_prog_DLLTOOL 6652if test -n "$DLLTOOL"; then 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6654$as_echo "$DLLTOOL" >&6; } 6655else 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6657$as_echo "no" >&6; } 6658fi 6659 6660 6661fi 6662if test -z "$ac_cv_prog_DLLTOOL"; then 6663 ac_ct_DLLTOOL=$DLLTOOL 6664 # Extract the first word of "dlltool", so it can be a program name with args. 6665set dummy dlltool; ac_word=$2 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667$as_echo_n "checking for $ac_word... " >&6; } 6668if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 if test -n "$ac_ct_DLLTOOL"; then 6672 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6673else 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6681 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685done 6686 done 6687IFS=$as_save_IFS 6688 6689fi 6690fi 6691ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6692if test -n "$ac_ct_DLLTOOL"; then 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6694$as_echo "$ac_ct_DLLTOOL" >&6; } 6695else 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697$as_echo "no" >&6; } 6698fi 6699 6700 if test "x$ac_ct_DLLTOOL" = x; then 6701 DLLTOOL="false" 6702 else 6703 case $cross_compiling:$ac_tool_warned in 6704yes:) 6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6707ac_tool_warned=yes ;; 6708esac 6709 DLLTOOL=$ac_ct_DLLTOOL 6710 fi 6711else 6712 DLLTOOL="$ac_cv_prog_DLLTOOL" 6713fi 6714 6715test -z "$DLLTOOL" && DLLTOOL=dlltool 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6727$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6728if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730else 6731 lt_cv_sharedlib_from_linklib_cmd='unknown' 6732 6733case $host_os in 6734cygwin* | mingw* | pw32* | cegcc*) 6735 # two different shell functions defined in ltmain.sh 6736 # decide which to use based on capabilities of $DLLTOOL 6737 case `$DLLTOOL --help 2>&1` in 6738 *--identify-strict*) 6739 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6740 ;; 6741 *) 6742 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6743 ;; 6744 esac 6745 ;; 6746*) 6747 # fallback: assume linklib IS sharedlib 6748 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6749 ;; 6750esac 6751 6752fi 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6754$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6755sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6756test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6757 6758 6759 6760 6761 6762 6763 6764if test -n "$ac_tool_prefix"; then 6765 for ac_prog in ar 6766 do 6767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6768set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770$as_echo_n "checking for $ac_word... " >&6; } 6771if ${ac_cv_prog_AR+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 if test -n "$AR"; then 6775 ac_cv_prog_AR="$AR" # Let the user override the test. 6776else 6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6784 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789 done 6790IFS=$as_save_IFS 6791 6792fi 6793fi 6794AR=$ac_cv_prog_AR 6795if test -n "$AR"; then 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6797$as_echo "$AR" >&6; } 6798else 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800$as_echo "no" >&6; } 6801fi 6802 6803 6804 test -n "$AR" && break 6805 done 6806fi 6807if test -z "$AR"; then 6808 ac_ct_AR=$AR 6809 for ac_prog in ar 6810do 6811 # Extract the first word of "$ac_prog", so it can be a program name with args. 6812set dummy $ac_prog; ac_word=$2 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6814$as_echo_n "checking for $ac_word... " >&6; } 6815if ${ac_cv_prog_ac_ct_AR+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817else 6818 if test -n "$ac_ct_AR"; then 6819 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6820else 6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822for as_dir in $PATH 6823do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6828 ac_cv_prog_ac_ct_AR="$ac_prog" 6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832done 6833 done 6834IFS=$as_save_IFS 6835 6836fi 6837fi 6838ac_ct_AR=$ac_cv_prog_ac_ct_AR 6839if test -n "$ac_ct_AR"; then 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6841$as_echo "$ac_ct_AR" >&6; } 6842else 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844$as_echo "no" >&6; } 6845fi 6846 6847 6848 test -n "$ac_ct_AR" && break 6849done 6850 6851 if test "x$ac_ct_AR" = x; then 6852 AR="false" 6853 else 6854 case $cross_compiling:$ac_tool_warned in 6855yes:) 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 AR=$ac_ct_AR 6861 fi 6862fi 6863 6864: ${AR=ar} 6865: ${AR_FLAGS=cru} 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6878$as_echo_n "checking for archiver @FILE support... " >&6; } 6879if ${lt_cv_ar_at_file+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 lt_cv_ar_at_file=no 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884/* end confdefs.h. */ 6885 6886int 6887main () 6888{ 6889 6890 ; 6891 return 0; 6892} 6893_ACEOF 6894if ac_fn_c_try_compile "$LINENO"; then : 6895 echo conftest.$ac_objext > conftest.lst 6896 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6898 (eval $lt_ar_try) 2>&5 6899 ac_status=$? 6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6901 test $ac_status = 0; } 6902 if test "$ac_status" -eq 0; then 6903 # Ensure the archiver fails upon bogus file names. 6904 rm -f conftest.$ac_objext libconftest.a 6905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6906 (eval $lt_ar_try) 2>&5 6907 ac_status=$? 6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6909 test $ac_status = 0; } 6910 if test "$ac_status" -ne 0; then 6911 lt_cv_ar_at_file=@ 6912 fi 6913 fi 6914 rm -f conftest.* libconftest.a 6915 6916fi 6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6918 6919fi 6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6921$as_echo "$lt_cv_ar_at_file" >&6; } 6922 6923if test "x$lt_cv_ar_at_file" = xno; then 6924 archiver_list_spec= 6925else 6926 archiver_list_spec=$lt_cv_ar_at_file 6927fi 6928 6929 6930 6931 6932 6933 6934 6935if test -n "$ac_tool_prefix"; then 6936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6937set dummy ${ac_tool_prefix}strip; ac_word=$2 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939$as_echo_n "checking for $ac_word... " >&6; } 6940if ${ac_cv_prog_STRIP+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test -n "$STRIP"; then 6944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6953 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958 done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963STRIP=$ac_cv_prog_STRIP 6964if test -n "$STRIP"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6966$as_echo "$STRIP" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971 6972 6973fi 6974if test -z "$ac_cv_prog_STRIP"; then 6975 ac_ct_STRIP=$STRIP 6976 # Extract the first word of "strip", so it can be a program name with args. 6977set dummy strip; ac_word=$2 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979$as_echo_n "checking for $ac_word... " >&6; } 6980if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -n "$ac_ct_STRIP"; then 6984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6985else 6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6993 ac_cv_prog_ac_ct_STRIP="strip" 6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998 done 6999IFS=$as_save_IFS 7000 7001fi 7002fi 7003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7004if test -n "$ac_ct_STRIP"; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7006$as_echo "$ac_ct_STRIP" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009$as_echo "no" >&6; } 7010fi 7011 7012 if test "x$ac_ct_STRIP" = x; then 7013 STRIP=":" 7014 else 7015 case $cross_compiling:$ac_tool_warned in 7016yes:) 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7019ac_tool_warned=yes ;; 7020esac 7021 STRIP=$ac_ct_STRIP 7022 fi 7023else 7024 STRIP="$ac_cv_prog_STRIP" 7025fi 7026 7027test -z "$STRIP" && STRIP=: 7028 7029 7030 7031 7032 7033 7034if test -n "$ac_tool_prefix"; then 7035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7036set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038$as_echo_n "checking for $ac_word... " >&6; } 7039if ${ac_cv_prog_RANLIB+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 if test -n "$RANLIB"; then 7043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7044else 7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046for as_dir in $PATH 7047do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056done 7057 done 7058IFS=$as_save_IFS 7059 7060fi 7061fi 7062RANLIB=$ac_cv_prog_RANLIB 7063if test -n "$RANLIB"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7065$as_echo "$RANLIB" >&6; } 7066else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068$as_echo "no" >&6; } 7069fi 7070 7071 7072fi 7073if test -z "$ac_cv_prog_RANLIB"; then 7074 ac_ct_RANLIB=$RANLIB 7075 # Extract the first word of "ranlib", so it can be a program name with args. 7076set dummy ranlib; ac_word=$2 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7078$as_echo_n "checking for $ac_word... " >&6; } 7079if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 if test -n "$ac_ct_RANLIB"; then 7083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7084else 7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086for as_dir in $PATH 7087do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7092 ac_cv_prog_ac_ct_RANLIB="ranlib" 7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096done 7097 done 7098IFS=$as_save_IFS 7099 7100fi 7101fi 7102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7103if test -n "$ac_ct_RANLIB"; then 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7105$as_echo "$ac_ct_RANLIB" >&6; } 7106else 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108$as_echo "no" >&6; } 7109fi 7110 7111 if test "x$ac_ct_RANLIB" = x; then 7112 RANLIB=":" 7113 else 7114 case $cross_compiling:$ac_tool_warned in 7115yes:) 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7118ac_tool_warned=yes ;; 7119esac 7120 RANLIB=$ac_ct_RANLIB 7121 fi 7122else 7123 RANLIB="$ac_cv_prog_RANLIB" 7124fi 7125 7126test -z "$RANLIB" && RANLIB=: 7127 7128 7129 7130 7131 7132 7133# Determine commands to create old-style static archives. 7134old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7135old_postinstall_cmds='chmod 644 $oldlib' 7136old_postuninstall_cmds= 7137 7138if test -n "$RANLIB"; then 7139 case $host_os in 7140 openbsd*) 7141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7142 ;; 7143 *) 7144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7145 ;; 7146 esac 7147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7148fi 7149 7150case $host_os in 7151 darwin*) 7152 lock_old_archive_extraction=yes ;; 7153 *) 7154 lock_old_archive_extraction=no ;; 7155esac 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195# If no C compiler was specified, use CC. 7196LTCC=${LTCC-"$CC"} 7197 7198# If no C compiler flags were specified, use CFLAGS. 7199LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7200 7201# Allow CC to be a program name with arguments. 7202compiler=$CC 7203 7204 7205# Check for command to grab the raw symbol name followed by C symbol from nm. 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7207$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7208if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 7212# These are sane defaults that work on at least a few old systems. 7213# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7214 7215# Character class describing NM global symbol codes. 7216symcode='[BCDEGRST]' 7217 7218# Regexp to match symbols that can be accessed directly from C. 7219sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7220 7221# Define system-specific variables. 7222case $host_os in 7223aix*) 7224 symcode='[BCDT]' 7225 ;; 7226cygwin* | mingw* | pw32* | cegcc*) 7227 symcode='[ABCDGISTW]' 7228 ;; 7229hpux*) 7230 if test "$host_cpu" = ia64; then 7231 symcode='[ABCDEGRST]' 7232 fi 7233 ;; 7234irix* | nonstopux*) 7235 symcode='[BCDEGRST]' 7236 ;; 7237osf*) 7238 symcode='[BCDEGQRST]' 7239 ;; 7240solaris*) 7241 symcode='[BDRT]' 7242 ;; 7243sco3.2v5*) 7244 symcode='[DT]' 7245 ;; 7246sysv4.2uw2*) 7247 symcode='[DT]' 7248 ;; 7249sysv5* | sco5v6* | unixware* | OpenUNIX*) 7250 symcode='[ABDT]' 7251 ;; 7252sysv4) 7253 symcode='[DFNSTU]' 7254 ;; 7255esac 7256 7257# If we're using GNU nm, then use its standard symbol codes. 7258case `$NM -V 2>&1` in 7259*GNU* | *'with BFD'*) 7260 symcode='[ABCDGIRSTW]' ;; 7261esac 7262 7263# Transform an extracted symbol line into a proper C declaration. 7264# Some systems (esp. on ia64) link data and code symbols differently, 7265# so use this general approach. 7266lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7267 7268# Transform an extracted symbol line into symbol name and symbol address 7269lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7270lt_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'" 7271 7272# Handle CRLF in mingw tool chain 7273opt_cr= 7274case $build_os in 7275mingw*) 7276 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7277 ;; 7278esac 7279 7280# Try without a prefix underscore, then with it. 7281for ac_symprfx in "" "_"; do 7282 7283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7284 symxfrm="\\1 $ac_symprfx\\2 \\2" 7285 7286 # Write the raw and C identifiers. 7287 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7288 # Fake it for dumpbin and say T for any non-static function 7289 # and D for any global variable. 7290 # Also find C++ and __fastcall symbols from MSVC++, 7291 # which start with @ or ?. 7292 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7293" {last_section=section; section=\$ 3};"\ 7294" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7295" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7296" \$ 0!~/External *\|/{next};"\ 7297" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7298" {if(hide[section]) next};"\ 7299" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7300" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7301" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7302" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7303" ' prfx=^$ac_symprfx" 7304 else 7305 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7306 fi 7307 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7308 7309 # Check to see that the pipe works correctly. 7310 pipe_works=no 7311 7312 rm -f conftest* 7313 cat > conftest.$ac_ext <<_LT_EOF 7314#ifdef __cplusplus 7315extern "C" { 7316#endif 7317char nm_test_var; 7318void nm_test_func(void); 7319void nm_test_func(void){} 7320#ifdef __cplusplus 7321} 7322#endif 7323int main(){nm_test_var='a';nm_test_func();return(0);} 7324_LT_EOF 7325 7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7327 (eval $ac_compile) 2>&5 7328 ac_status=$? 7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7330 test $ac_status = 0; }; then 7331 # Now try to grab the symbols. 7332 nlist=conftest.nm 7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7334 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7335 ac_status=$? 7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7337 test $ac_status = 0; } && test -s "$nlist"; then 7338 # Try sorting and uniquifying the output. 7339 if sort "$nlist" | uniq > "$nlist"T; then 7340 mv -f "$nlist"T "$nlist" 7341 else 7342 rm -f "$nlist"T 7343 fi 7344 7345 # Make sure that we snagged all the symbols we need. 7346 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7347 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7348 cat <<_LT_EOF > conftest.$ac_ext 7349/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7350#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7351/* DATA imports from DLLs on WIN32 con't be const, because runtime 7352 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7353# define LT_DLSYM_CONST 7354#elif defined(__osf__) 7355/* This system does not cope well with relocations in const data. */ 7356# define LT_DLSYM_CONST 7357#else 7358# define LT_DLSYM_CONST const 7359#endif 7360 7361#ifdef __cplusplus 7362extern "C" { 7363#endif 7364 7365_LT_EOF 7366 # Now generate the symbol file. 7367 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7368 7369 cat <<_LT_EOF >> conftest.$ac_ext 7370 7371/* The mapping between symbol names and symbols. */ 7372LT_DLSYM_CONST struct { 7373 const char *name; 7374 void *address; 7375} 7376lt__PROGRAM__LTX_preloaded_symbols[] = 7377{ 7378 { "@PROGRAM@", (void *) 0 }, 7379_LT_EOF 7380 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7381 cat <<\_LT_EOF >> conftest.$ac_ext 7382 {0, (void *) 0} 7383}; 7384 7385/* This works around a problem in FreeBSD linker */ 7386#ifdef FREEBSD_WORKAROUND 7387static const void *lt_preloaded_setup() { 7388 return lt__PROGRAM__LTX_preloaded_symbols; 7389} 7390#endif 7391 7392#ifdef __cplusplus 7393} 7394#endif 7395_LT_EOF 7396 # Now try linking the two files. 7397 mv conftest.$ac_objext conftstm.$ac_objext 7398 lt_globsym_save_LIBS=$LIBS 7399 lt_globsym_save_CFLAGS=$CFLAGS 7400 LIBS="conftstm.$ac_objext" 7401 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7403 (eval $ac_link) 2>&5 7404 ac_status=$? 7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7407 pipe_works=yes 7408 fi 7409 LIBS=$lt_globsym_save_LIBS 7410 CFLAGS=$lt_globsym_save_CFLAGS 7411 else 7412 echo "cannot find nm_test_func in $nlist" >&5 7413 fi 7414 else 7415 echo "cannot find nm_test_var in $nlist" >&5 7416 fi 7417 else 7418 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7419 fi 7420 else 7421 echo "$progname: failed program was:" >&5 7422 cat conftest.$ac_ext >&5 7423 fi 7424 rm -rf conftest* conftst* 7425 7426 # Do not use the global_symbol_pipe unless it works. 7427 if test "$pipe_works" = yes; then 7428 break 7429 else 7430 lt_cv_sys_global_symbol_pipe= 7431 fi 7432done 7433 7434fi 7435 7436if test -z "$lt_cv_sys_global_symbol_pipe"; then 7437 lt_cv_sys_global_symbol_to_cdecl= 7438fi 7439if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7441$as_echo "failed" >&6; } 7442else 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7444$as_echo "ok" >&6; } 7445fi 7446 7447# Response file support. 7448if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7449 nm_file_list_spec='@' 7450elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7451 nm_file_list_spec='@' 7452fi 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7481$as_echo_n "checking for sysroot... " >&6; } 7482 7483# Check whether --with-sysroot was given. 7484if test "${with_sysroot+set}" = set; then : 7485 withval=$with_sysroot; 7486else 7487 with_sysroot=no 7488fi 7489 7490 7491lt_sysroot= 7492case ${with_sysroot} in #( 7493 yes) 7494 if test "$GCC" = yes; then 7495 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7496 fi 7497 ;; #( 7498 /*) 7499 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7500 ;; #( 7501 no|'') 7502 ;; #( 7503 *) 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7505$as_echo "${with_sysroot}" >&6; } 7506 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7507 ;; 7508esac 7509 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7511$as_echo "${lt_sysroot:-no}" >&6; } 7512 7513 7514 7515 7516 7517# Check whether --enable-libtool-lock was given. 7518if test "${enable_libtool_lock+set}" = set; then : 7519 enableval=$enable_libtool_lock; 7520fi 7521 7522test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7523 7524# Some flags need to be propagated to the compiler or linker for good 7525# libtool support. 7526case $host in 7527ia64-*-hpux*) 7528 # Find out which ABI we are using. 7529 echo 'int i;' > conftest.$ac_ext 7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7531 (eval $ac_compile) 2>&5 7532 ac_status=$? 7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7534 test $ac_status = 0; }; then 7535 case `/usr/bin/file conftest.$ac_objext` in 7536 *ELF-32*) 7537 HPUX_IA64_MODE="32" 7538 ;; 7539 *ELF-64*) 7540 HPUX_IA64_MODE="64" 7541 ;; 7542 esac 7543 fi 7544 rm -rf conftest* 7545 ;; 7546*-*-irix6*) 7547 # Find out which ABI we are using. 7548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7550 (eval $ac_compile) 2>&5 7551 ac_status=$? 7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7553 test $ac_status = 0; }; then 7554 if test "$lt_cv_prog_gnu_ld" = yes; then 7555 case `/usr/bin/file conftest.$ac_objext` in 7556 *32-bit*) 7557 LD="${LD-ld} -melf32bsmip" 7558 ;; 7559 *N32*) 7560 LD="${LD-ld} -melf32bmipn32" 7561 ;; 7562 *64-bit*) 7563 LD="${LD-ld} -melf64bmip" 7564 ;; 7565 esac 7566 else 7567 case `/usr/bin/file conftest.$ac_objext` in 7568 *32-bit*) 7569 LD="${LD-ld} -32" 7570 ;; 7571 *N32*) 7572 LD="${LD-ld} -n32" 7573 ;; 7574 *64-bit*) 7575 LD="${LD-ld} -64" 7576 ;; 7577 esac 7578 fi 7579 fi 7580 rm -rf conftest* 7581 ;; 7582 7583x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7584s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7585 # Find out which ABI we are using. 7586 echo 'int i;' > conftest.$ac_ext 7587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7588 (eval $ac_compile) 2>&5 7589 ac_status=$? 7590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7591 test $ac_status = 0; }; then 7592 case `/usr/bin/file conftest.o` in 7593 *32-bit*) 7594 case $host in 7595 x86_64-*kfreebsd*-gnu) 7596 LD="${LD-ld} -m elf_i386_fbsd" 7597 ;; 7598 x86_64-*linux*) 7599 LD="${LD-ld} -m elf_i386" 7600 ;; 7601 ppc64-*linux*|powerpc64-*linux*) 7602 LD="${LD-ld} -m elf32ppclinux" 7603 ;; 7604 s390x-*linux*) 7605 LD="${LD-ld} -m elf_s390" 7606 ;; 7607 sparc64-*linux*) 7608 LD="${LD-ld} -m elf32_sparc" 7609 ;; 7610 esac 7611 ;; 7612 *64-bit*) 7613 case $host in 7614 x86_64-*kfreebsd*-gnu) 7615 LD="${LD-ld} -m elf_x86_64_fbsd" 7616 ;; 7617 x86_64-*linux*) 7618 LD="${LD-ld} -m elf_x86_64" 7619 ;; 7620 ppc*-*linux*|powerpc*-*linux*) 7621 LD="${LD-ld} -m elf64ppc" 7622 ;; 7623 s390*-*linux*|s390*-*tpf*) 7624 LD="${LD-ld} -m elf64_s390" 7625 ;; 7626 sparc*-*linux*) 7627 LD="${LD-ld} -m elf64_sparc" 7628 ;; 7629 esac 7630 ;; 7631 esac 7632 fi 7633 rm -rf conftest* 7634 ;; 7635 7636*-*-sco3.2v5*) 7637 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7638 SAVE_CFLAGS="$CFLAGS" 7639 CFLAGS="$CFLAGS -belf" 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7641$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7642if ${lt_cv_cc_needs_belf+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 ac_ext=c 7646ac_cpp='$CPP $CPPFLAGS' 7647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7649ac_compiler_gnu=$ac_cv_c_compiler_gnu 7650 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653 7654int 7655main () 7656{ 7657 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_link "$LINENO"; then : 7663 lt_cv_cc_needs_belf=yes 7664else 7665 lt_cv_cc_needs_belf=no 7666fi 7667rm -f core conftest.err conftest.$ac_objext \ 7668 conftest$ac_exeext conftest.$ac_ext 7669 ac_ext=c 7670ac_cpp='$CPP $CPPFLAGS' 7671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7673ac_compiler_gnu=$ac_cv_c_compiler_gnu 7674 7675fi 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7677$as_echo "$lt_cv_cc_needs_belf" >&6; } 7678 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7679 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7680 CFLAGS="$SAVE_CFLAGS" 7681 fi 7682 ;; 7683*-*solaris*) 7684 # Find out which ABI we are using. 7685 echo 'int i;' > conftest.$ac_ext 7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7687 (eval $ac_compile) 2>&5 7688 ac_status=$? 7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7690 test $ac_status = 0; }; then 7691 case `/usr/bin/file conftest.o` in 7692 *64-bit*) 7693 case $lt_cv_prog_gnu_ld in 7694 yes*) 7695 case $host in 7696 i?86-*-solaris*) 7697 LD="${LD-ld} -m elf_x86_64" 7698 ;; 7699 sparc*-*-solaris*) 7700 LD="${LD-ld} -m elf64_sparc" 7701 ;; 7702 esac 7703 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7704 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7705 LD="${LD-ld}_sol2" 7706 fi 7707 ;; 7708 *) 7709 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7710 LD="${LD-ld} -64" 7711 fi 7712 ;; 7713 esac 7714 ;; 7715 esac 7716 fi 7717 rm -rf conftest* 7718 ;; 7719esac 7720 7721need_locks="$enable_libtool_lock" 7722 7723if test -n "$ac_tool_prefix"; then 7724 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7725set dummy ${ac_tool_prefix}mt; ac_word=$2 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727$as_echo_n "checking for $ac_word... " >&6; } 7728if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 if test -n "$MANIFEST_TOOL"; then 7732 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7733else 7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7735for as_dir in $PATH 7736do 7737 IFS=$as_save_IFS 7738 test -z "$as_dir" && as_dir=. 7739 for ac_exec_ext in '' $ac_executable_extensions; do 7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7741 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7743 break 2 7744 fi 7745done 7746 done 7747IFS=$as_save_IFS 7748 7749fi 7750fi 7751MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7752if test -n "$MANIFEST_TOOL"; then 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7754$as_echo "$MANIFEST_TOOL" >&6; } 7755else 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7757$as_echo "no" >&6; } 7758fi 7759 7760 7761fi 7762if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7763 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7764 # Extract the first word of "mt", so it can be a program name with args. 7765set dummy mt; ac_word=$2 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767$as_echo_n "checking for $ac_word... " >&6; } 7768if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 if test -n "$ac_ct_MANIFEST_TOOL"; then 7772 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7773else 7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775for as_dir in $PATH 7776do 7777 IFS=$as_save_IFS 7778 test -z "$as_dir" && as_dir=. 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7781 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785done 7786 done 7787IFS=$as_save_IFS 7788 7789fi 7790fi 7791ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7792if test -n "$ac_ct_MANIFEST_TOOL"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7794$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799 7800 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7801 MANIFEST_TOOL=":" 7802 else 7803 case $cross_compiling:$ac_tool_warned in 7804yes:) 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7807ac_tool_warned=yes ;; 7808esac 7809 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7810 fi 7811else 7812 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7813fi 7814 7815test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7817$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7818if ${lt_cv_path_mainfest_tool+:} false; then : 7819 $as_echo_n "(cached) " >&6 7820else 7821 lt_cv_path_mainfest_tool=no 7822 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7823 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7824 cat conftest.err >&5 7825 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7826 lt_cv_path_mainfest_tool=yes 7827 fi 7828 rm -f conftest* 7829fi 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7831$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7832if test "x$lt_cv_path_mainfest_tool" != xyes; then 7833 MANIFEST_TOOL=: 7834fi 7835 7836 7837 7838 7839 7840 7841 case $host_os in 7842 rhapsody* | darwin*) 7843 if test -n "$ac_tool_prefix"; then 7844 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7845set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7847$as_echo_n "checking for $ac_word... " >&6; } 7848if ${ac_cv_prog_DSYMUTIL+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 if test -n "$DSYMUTIL"; then 7852 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7853else 7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7855for as_dir in $PATH 7856do 7857 IFS=$as_save_IFS 7858 test -z "$as_dir" && as_dir=. 7859 for ac_exec_ext in '' $ac_executable_extensions; do 7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7861 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7863 break 2 7864 fi 7865done 7866 done 7867IFS=$as_save_IFS 7868 7869fi 7870fi 7871DSYMUTIL=$ac_cv_prog_DSYMUTIL 7872if test -n "$DSYMUTIL"; then 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7874$as_echo "$DSYMUTIL" >&6; } 7875else 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7877$as_echo "no" >&6; } 7878fi 7879 7880 7881fi 7882if test -z "$ac_cv_prog_DSYMUTIL"; then 7883 ac_ct_DSYMUTIL=$DSYMUTIL 7884 # Extract the first word of "dsymutil", so it can be a program name with args. 7885set dummy dsymutil; ac_word=$2 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7887$as_echo_n "checking for $ac_word... " >&6; } 7888if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 if test -n "$ac_ct_DSYMUTIL"; then 7892 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7893else 7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7895for as_dir in $PATH 7896do 7897 IFS=$as_save_IFS 7898 test -z "$as_dir" && as_dir=. 7899 for ac_exec_ext in '' $ac_executable_extensions; do 7900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7901 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7903 break 2 7904 fi 7905done 7906 done 7907IFS=$as_save_IFS 7908 7909fi 7910fi 7911ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7912if test -n "$ac_ct_DSYMUTIL"; then 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7914$as_echo "$ac_ct_DSYMUTIL" >&6; } 7915else 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7917$as_echo "no" >&6; } 7918fi 7919 7920 if test "x$ac_ct_DSYMUTIL" = x; then 7921 DSYMUTIL=":" 7922 else 7923 case $cross_compiling:$ac_tool_warned in 7924yes:) 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7927ac_tool_warned=yes ;; 7928esac 7929 DSYMUTIL=$ac_ct_DSYMUTIL 7930 fi 7931else 7932 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7933fi 7934 7935 if test -n "$ac_tool_prefix"; then 7936 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7937set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7939$as_echo_n "checking for $ac_word... " >&6; } 7940if ${ac_cv_prog_NMEDIT+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 if test -n "$NMEDIT"; then 7944 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7945else 7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947for as_dir in $PATH 7948do 7949 IFS=$as_save_IFS 7950 test -z "$as_dir" && as_dir=. 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7953 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957done 7958 done 7959IFS=$as_save_IFS 7960 7961fi 7962fi 7963NMEDIT=$ac_cv_prog_NMEDIT 7964if test -n "$NMEDIT"; then 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7966$as_echo "$NMEDIT" >&6; } 7967else 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7969$as_echo "no" >&6; } 7970fi 7971 7972 7973fi 7974if test -z "$ac_cv_prog_NMEDIT"; then 7975 ac_ct_NMEDIT=$NMEDIT 7976 # Extract the first word of "nmedit", so it can be a program name with args. 7977set dummy nmedit; ac_word=$2 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7979$as_echo_n "checking for $ac_word... " >&6; } 7980if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7981 $as_echo_n "(cached) " >&6 7982else 7983 if test -n "$ac_ct_NMEDIT"; then 7984 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7985else 7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7987for as_dir in $PATH 7988do 7989 IFS=$as_save_IFS 7990 test -z "$as_dir" && as_dir=. 7991 for ac_exec_ext in '' $ac_executable_extensions; do 7992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7993 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7995 break 2 7996 fi 7997done 7998 done 7999IFS=$as_save_IFS 8000 8001fi 8002fi 8003ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8004if test -n "$ac_ct_NMEDIT"; then 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8006$as_echo "$ac_ct_NMEDIT" >&6; } 8007else 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8009$as_echo "no" >&6; } 8010fi 8011 8012 if test "x$ac_ct_NMEDIT" = x; then 8013 NMEDIT=":" 8014 else 8015 case $cross_compiling:$ac_tool_warned in 8016yes:) 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8019ac_tool_warned=yes ;; 8020esac 8021 NMEDIT=$ac_ct_NMEDIT 8022 fi 8023else 8024 NMEDIT="$ac_cv_prog_NMEDIT" 8025fi 8026 8027 if test -n "$ac_tool_prefix"; then 8028 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8029set dummy ${ac_tool_prefix}lipo; ac_word=$2 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8031$as_echo_n "checking for $ac_word... " >&6; } 8032if ${ac_cv_prog_LIPO+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034else 8035 if test -n "$LIPO"; then 8036 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8037else 8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8039for as_dir in $PATH 8040do 8041 IFS=$as_save_IFS 8042 test -z "$as_dir" && as_dir=. 8043 for ac_exec_ext in '' $ac_executable_extensions; do 8044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8045 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8047 break 2 8048 fi 8049done 8050 done 8051IFS=$as_save_IFS 8052 8053fi 8054fi 8055LIPO=$ac_cv_prog_LIPO 8056if test -n "$LIPO"; then 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8058$as_echo "$LIPO" >&6; } 8059else 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8061$as_echo "no" >&6; } 8062fi 8063 8064 8065fi 8066if test -z "$ac_cv_prog_LIPO"; then 8067 ac_ct_LIPO=$LIPO 8068 # Extract the first word of "lipo", so it can be a program name with args. 8069set dummy lipo; ac_word=$2 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8071$as_echo_n "checking for $ac_word... " >&6; } 8072if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 if test -n "$ac_ct_LIPO"; then 8076 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8077else 8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8079for as_dir in $PATH 8080do 8081 IFS=$as_save_IFS 8082 test -z "$as_dir" && as_dir=. 8083 for ac_exec_ext in '' $ac_executable_extensions; do 8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8085 ac_cv_prog_ac_ct_LIPO="lipo" 8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8087 break 2 8088 fi 8089done 8090 done 8091IFS=$as_save_IFS 8092 8093fi 8094fi 8095ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8096if test -n "$ac_ct_LIPO"; then 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8098$as_echo "$ac_ct_LIPO" >&6; } 8099else 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8101$as_echo "no" >&6; } 8102fi 8103 8104 if test "x$ac_ct_LIPO" = x; then 8105 LIPO=":" 8106 else 8107 case $cross_compiling:$ac_tool_warned in 8108yes:) 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8111ac_tool_warned=yes ;; 8112esac 8113 LIPO=$ac_ct_LIPO 8114 fi 8115else 8116 LIPO="$ac_cv_prog_LIPO" 8117fi 8118 8119 if test -n "$ac_tool_prefix"; then 8120 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8121set dummy ${ac_tool_prefix}otool; ac_word=$2 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8123$as_echo_n "checking for $ac_word... " >&6; } 8124if ${ac_cv_prog_OTOOL+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 if test -n "$OTOOL"; then 8128 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8129else 8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8131for as_dir in $PATH 8132do 8133 IFS=$as_save_IFS 8134 test -z "$as_dir" && as_dir=. 8135 for ac_exec_ext in '' $ac_executable_extensions; do 8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8137 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8139 break 2 8140 fi 8141done 8142 done 8143IFS=$as_save_IFS 8144 8145fi 8146fi 8147OTOOL=$ac_cv_prog_OTOOL 8148if test -n "$OTOOL"; then 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8150$as_echo "$OTOOL" >&6; } 8151else 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8153$as_echo "no" >&6; } 8154fi 8155 8156 8157fi 8158if test -z "$ac_cv_prog_OTOOL"; then 8159 ac_ct_OTOOL=$OTOOL 8160 # Extract the first word of "otool", so it can be a program name with args. 8161set dummy otool; ac_word=$2 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8163$as_echo_n "checking for $ac_word... " >&6; } 8164if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 if test -n "$ac_ct_OTOOL"; then 8168 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8169else 8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8171for as_dir in $PATH 8172do 8173 IFS=$as_save_IFS 8174 test -z "$as_dir" && as_dir=. 8175 for ac_exec_ext in '' $ac_executable_extensions; do 8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8177 ac_cv_prog_ac_ct_OTOOL="otool" 8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8179 break 2 8180 fi 8181done 8182 done 8183IFS=$as_save_IFS 8184 8185fi 8186fi 8187ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8188if test -n "$ac_ct_OTOOL"; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8190$as_echo "$ac_ct_OTOOL" >&6; } 8191else 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8193$as_echo "no" >&6; } 8194fi 8195 8196 if test "x$ac_ct_OTOOL" = x; then 8197 OTOOL=":" 8198 else 8199 case $cross_compiling:$ac_tool_warned in 8200yes:) 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8203ac_tool_warned=yes ;; 8204esac 8205 OTOOL=$ac_ct_OTOOL 8206 fi 8207else 8208 OTOOL="$ac_cv_prog_OTOOL" 8209fi 8210 8211 if test -n "$ac_tool_prefix"; then 8212 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8213set dummy ${ac_tool_prefix}otool64; ac_word=$2 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8215$as_echo_n "checking for $ac_word... " >&6; } 8216if ${ac_cv_prog_OTOOL64+:} false; then : 8217 $as_echo_n "(cached) " >&6 8218else 8219 if test -n "$OTOOL64"; then 8220 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8221else 8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8223for as_dir in $PATH 8224do 8225 IFS=$as_save_IFS 8226 test -z "$as_dir" && as_dir=. 8227 for ac_exec_ext in '' $ac_executable_extensions; do 8228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8229 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8231 break 2 8232 fi 8233done 8234 done 8235IFS=$as_save_IFS 8236 8237fi 8238fi 8239OTOOL64=$ac_cv_prog_OTOOL64 8240if test -n "$OTOOL64"; then 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8242$as_echo "$OTOOL64" >&6; } 8243else 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8245$as_echo "no" >&6; } 8246fi 8247 8248 8249fi 8250if test -z "$ac_cv_prog_OTOOL64"; then 8251 ac_ct_OTOOL64=$OTOOL64 8252 # Extract the first word of "otool64", so it can be a program name with args. 8253set dummy otool64; ac_word=$2 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8255$as_echo_n "checking for $ac_word... " >&6; } 8256if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8257 $as_echo_n "(cached) " >&6 8258else 8259 if test -n "$ac_ct_OTOOL64"; then 8260 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8261else 8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8263for as_dir in $PATH 8264do 8265 IFS=$as_save_IFS 8266 test -z "$as_dir" && as_dir=. 8267 for ac_exec_ext in '' $ac_executable_extensions; do 8268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8269 ac_cv_prog_ac_ct_OTOOL64="otool64" 8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8271 break 2 8272 fi 8273done 8274 done 8275IFS=$as_save_IFS 8276 8277fi 8278fi 8279ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8280if test -n "$ac_ct_OTOOL64"; then 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8282$as_echo "$ac_ct_OTOOL64" >&6; } 8283else 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285$as_echo "no" >&6; } 8286fi 8287 8288 if test "x$ac_ct_OTOOL64" = x; then 8289 OTOOL64=":" 8290 else 8291 case $cross_compiling:$ac_tool_warned in 8292yes:) 8293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8295ac_tool_warned=yes ;; 8296esac 8297 OTOOL64=$ac_ct_OTOOL64 8298 fi 8299else 8300 OTOOL64="$ac_cv_prog_OTOOL64" 8301fi 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8330$as_echo_n "checking for -single_module linker flag... " >&6; } 8331if ${lt_cv_apple_cc_single_mod+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 lt_cv_apple_cc_single_mod=no 8335 if test -z "${LT_MULTI_MODULE}"; then 8336 # By default we will add the -single_module flag. You can override 8337 # by either setting the environment variable LT_MULTI_MODULE 8338 # non-empty at configure time, or by adding -multi_module to the 8339 # link flags. 8340 rm -rf libconftest.dylib* 8341 echo "int foo(void){return 1;}" > conftest.c 8342 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8343-dynamiclib -Wl,-single_module conftest.c" >&5 8344 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8345 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8346 _lt_result=$? 8347 # If there is a non-empty error log, and "single_module" 8348 # appears in it, assume the flag caused a linker warning 8349 if test -s conftest.err && $GREP single_module conftest.err; then 8350 cat conftest.err >&5 8351 # Otherwise, if the output was created with a 0 exit code from 8352 # the compiler, it worked. 8353 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8354 lt_cv_apple_cc_single_mod=yes 8355 else 8356 cat conftest.err >&5 8357 fi 8358 rm -rf libconftest.dylib* 8359 rm -f conftest.* 8360 fi 8361fi 8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8363$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8364 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8366$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8367if ${lt_cv_ld_exported_symbols_list+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 lt_cv_ld_exported_symbols_list=no 8371 save_LDFLAGS=$LDFLAGS 8372 echo "_main" > conftest.sym 8373 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376 8377int 8378main () 8379{ 8380 8381 ; 8382 return 0; 8383} 8384_ACEOF 8385if ac_fn_c_try_link "$LINENO"; then : 8386 lt_cv_ld_exported_symbols_list=yes 8387else 8388 lt_cv_ld_exported_symbols_list=no 8389fi 8390rm -f core conftest.err conftest.$ac_objext \ 8391 conftest$ac_exeext conftest.$ac_ext 8392 LDFLAGS="$save_LDFLAGS" 8393 8394fi 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8396$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8397 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8399$as_echo_n "checking for -force_load linker flag... " >&6; } 8400if ${lt_cv_ld_force_load+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 lt_cv_ld_force_load=no 8404 cat > conftest.c << _LT_EOF 8405int forced_loaded() { return 2;} 8406_LT_EOF 8407 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8408 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8409 echo "$AR cru libconftest.a conftest.o" >&5 8410 $AR cru libconftest.a conftest.o 2>&5 8411 echo "$RANLIB libconftest.a" >&5 8412 $RANLIB libconftest.a 2>&5 8413 cat > conftest.c << _LT_EOF 8414int main() { return 0;} 8415_LT_EOF 8416 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8417 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8418 _lt_result=$? 8419 if test -s conftest.err && $GREP force_load conftest.err; then 8420 cat conftest.err >&5 8421 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8422 lt_cv_ld_force_load=yes 8423 else 8424 cat conftest.err >&5 8425 fi 8426 rm -f conftest.err libconftest.a conftest conftest.c 8427 rm -rf conftest.dSYM 8428 8429fi 8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8431$as_echo "$lt_cv_ld_force_load" >&6; } 8432 case $host_os in 8433 rhapsody* | darwin1.[012]) 8434 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8435 darwin1.*) 8436 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8437 darwin*) # darwin 5.x on 8438 # if running on 10.5 or later, the deployment target defaults 8439 # to the OS version, if on x86, and 10.4, the deployment 8440 # target defaults to 10.4. Don't you love it? 8441 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8442 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8443 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8444 10.[012]*) 8445 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8446 10.*) 8447 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8448 esac 8449 ;; 8450 esac 8451 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8452 _lt_dar_single_mod='$single_module' 8453 fi 8454 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8455 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8456 else 8457 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8458 fi 8459 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8460 _lt_dsymutil='~$DSYMUTIL $lib || :' 8461 else 8462 _lt_dsymutil= 8463 fi 8464 ;; 8465 esac 8466 8467for ac_header in dlfcn.h 8468do : 8469 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8470" 8471if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8472 cat >>confdefs.h <<_ACEOF 8473#define HAVE_DLFCN_H 1 8474_ACEOF 8475 8476fi 8477 8478done 8479 8480 8481 8482 8483 8484# Set options 8485# Check whether --enable-static was given. 8486if test "${enable_static+set}" = set; then : 8487 enableval=$enable_static; p=${PACKAGE-default} 8488 case $enableval in 8489 yes) enable_static=yes ;; 8490 no) enable_static=no ;; 8491 *) 8492 enable_static=no 8493 # Look at the argument we got. We use all the common list separators. 8494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8495 for pkg in $enableval; do 8496 IFS="$lt_save_ifs" 8497 if test "X$pkg" = "X$p"; then 8498 enable_static=yes 8499 fi 8500 done 8501 IFS="$lt_save_ifs" 8502 ;; 8503 esac 8504else 8505 enable_static=no 8506fi 8507 8508 8509 8510 8511 8512 8513 8514 8515# Check whether --with-pic was given. 8516if test "${with_pic+set}" = set; then : 8517 withval=$with_pic; lt_p=${PACKAGE-default} 8518 case $withval in 8519 yes|no) pic_mode=$withval ;; 8520 *) 8521 pic_mode=default 8522 # Look at the argument we got. We use all the common list separators. 8523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8524 for lt_pkg in $withval; do 8525 IFS="$lt_save_ifs" 8526 if test "X$lt_pkg" = "X$lt_p"; then 8527 pic_mode=yes 8528 fi 8529 done 8530 IFS="$lt_save_ifs" 8531 ;; 8532 esac 8533else 8534 pic_mode=default 8535fi 8536 8537 8538test -z "$pic_mode" && pic_mode=yes 8539 8540 8541 8542 8543 8544 8545 8546 8547 enable_dlopen=no 8548 8549 8550 enable_win32_dll=no 8551 8552 8553 # Check whether --enable-shared was given. 8554if test "${enable_shared+set}" = set; then : 8555 enableval=$enable_shared; p=${PACKAGE-default} 8556 case $enableval in 8557 yes) enable_shared=yes ;; 8558 no) enable_shared=no ;; 8559 *) 8560 enable_shared=no 8561 # Look at the argument we got. We use all the common list separators. 8562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8563 for pkg in $enableval; do 8564 IFS="$lt_save_ifs" 8565 if test "X$pkg" = "X$p"; then 8566 enable_shared=yes 8567 fi 8568 done 8569 IFS="$lt_save_ifs" 8570 ;; 8571 esac 8572else 8573 enable_shared=yes 8574fi 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 # Check whether --enable-fast-install was given. 8587if test "${enable_fast_install+set}" = set; then : 8588 enableval=$enable_fast_install; p=${PACKAGE-default} 8589 case $enableval in 8590 yes) enable_fast_install=yes ;; 8591 no) enable_fast_install=no ;; 8592 *) 8593 enable_fast_install=no 8594 # Look at the argument we got. We use all the common list separators. 8595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8596 for pkg in $enableval; do 8597 IFS="$lt_save_ifs" 8598 if test "X$pkg" = "X$p"; then 8599 enable_fast_install=yes 8600 fi 8601 done 8602 IFS="$lt_save_ifs" 8603 ;; 8604 esac 8605else 8606 enable_fast_install=yes 8607fi 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619# This can be used to rebuild libtool when needed 8620LIBTOOL_DEPS="$ltmain" 8621 8622# Always use our own libtool. 8623LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654test -z "$LN_S" && LN_S="ln -s" 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669if test -n "${ZSH_VERSION+set}" ; then 8670 setopt NO_GLOB_SUBST 8671fi 8672 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8674$as_echo_n "checking for objdir... " >&6; } 8675if ${lt_cv_objdir+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 rm -f .libs 2>/dev/null 8679mkdir .libs 2>/dev/null 8680if test -d .libs; then 8681 lt_cv_objdir=.libs 8682else 8683 # MS-DOS does not allow filenames that begin with a dot. 8684 lt_cv_objdir=_libs 8685fi 8686rmdir .libs 2>/dev/null 8687fi 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8689$as_echo "$lt_cv_objdir" >&6; } 8690objdir=$lt_cv_objdir 8691 8692 8693 8694 8695 8696cat >>confdefs.h <<_ACEOF 8697#define LT_OBJDIR "$lt_cv_objdir/" 8698_ACEOF 8699 8700 8701 8702 8703case $host_os in 8704aix3*) 8705 # AIX sometimes has problems with the GCC collect2 program. For some 8706 # reason, if we set the COLLECT_NAMES environment variable, the problems 8707 # vanish in a puff of smoke. 8708 if test "X${COLLECT_NAMES+set}" != Xset; then 8709 COLLECT_NAMES= 8710 export COLLECT_NAMES 8711 fi 8712 ;; 8713esac 8714 8715# Global variables: 8716ofile=libtool 8717can_build_shared=yes 8718 8719# All known linkers require a `.a' archive for static linking (except MSVC, 8720# which needs '.lib'). 8721libext=a 8722 8723with_gnu_ld="$lt_cv_prog_gnu_ld" 8724 8725old_CC="$CC" 8726old_CFLAGS="$CFLAGS" 8727 8728# Set sane defaults for various variables 8729test -z "$CC" && CC=cc 8730test -z "$LTCC" && LTCC=$CC 8731test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8732test -z "$LD" && LD=ld 8733test -z "$ac_objext" && ac_objext=o 8734 8735for cc_temp in $compiler""; do 8736 case $cc_temp in 8737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8739 \-*) ;; 8740 *) break;; 8741 esac 8742done 8743cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8744 8745 8746# Only perform the check for file, if the check method requires it 8747test -z "$MAGIC_CMD" && MAGIC_CMD=file 8748case $deplibs_check_method in 8749file_magic*) 8750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8752$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8753if ${lt_cv_path_MAGIC_CMD+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755else 8756 case $MAGIC_CMD in 8757[\\/*] | ?:[\\/]*) 8758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8759 ;; 8760*) 8761 lt_save_MAGIC_CMD="$MAGIC_CMD" 8762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8764 for ac_dir in $ac_dummy; do 8765 IFS="$lt_save_ifs" 8766 test -z "$ac_dir" && ac_dir=. 8767 if test -f $ac_dir/${ac_tool_prefix}file; then 8768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8769 if test -n "$file_magic_test_file"; then 8770 case $deplibs_check_method in 8771 "file_magic "*) 8772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8775 $EGREP "$file_magic_regex" > /dev/null; then 8776 : 8777 else 8778 cat <<_LT_EOF 1>&2 8779 8780*** Warning: the command libtool uses to detect shared libraries, 8781*** $file_magic_cmd, produces output that libtool cannot recognize. 8782*** The result is that libtool may fail to recognize shared libraries 8783*** as such. This will affect the creation of libtool libraries that 8784*** depend on shared libraries, but programs linked with such libtool 8785*** libraries will work regardless of this problem. Nevertheless, you 8786*** may want to report the problem to your system manager and/or to 8787*** bug-libtool@gnu.org 8788 8789_LT_EOF 8790 fi ;; 8791 esac 8792 fi 8793 break 8794 fi 8795 done 8796 IFS="$lt_save_ifs" 8797 MAGIC_CMD="$lt_save_MAGIC_CMD" 8798 ;; 8799esac 8800fi 8801 8802MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8803if test -n "$MAGIC_CMD"; then 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8805$as_echo "$MAGIC_CMD" >&6; } 8806else 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8808$as_echo "no" >&6; } 8809fi 8810 8811 8812 8813 8814 8815if test -z "$lt_cv_path_MAGIC_CMD"; then 8816 if test -n "$ac_tool_prefix"; then 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8818$as_echo_n "checking for file... " >&6; } 8819if ${lt_cv_path_MAGIC_CMD+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 case $MAGIC_CMD in 8823[\\/*] | ?:[\\/]*) 8824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8825 ;; 8826*) 8827 lt_save_MAGIC_CMD="$MAGIC_CMD" 8828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8830 for ac_dir in $ac_dummy; do 8831 IFS="$lt_save_ifs" 8832 test -z "$ac_dir" && ac_dir=. 8833 if test -f $ac_dir/file; then 8834 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8835 if test -n "$file_magic_test_file"; then 8836 case $deplibs_check_method in 8837 "file_magic "*) 8838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8841 $EGREP "$file_magic_regex" > /dev/null; then 8842 : 8843 else 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: the command libtool uses to detect shared libraries, 8847*** $file_magic_cmd, produces output that libtool cannot recognize. 8848*** The result is that libtool may fail to recognize shared libraries 8849*** as such. This will affect the creation of libtool libraries that 8850*** depend on shared libraries, but programs linked with such libtool 8851*** libraries will work regardless of this problem. Nevertheless, you 8852*** may want to report the problem to your system manager and/or to 8853*** bug-libtool@gnu.org 8854 8855_LT_EOF 8856 fi ;; 8857 esac 8858 fi 8859 break 8860 fi 8861 done 8862 IFS="$lt_save_ifs" 8863 MAGIC_CMD="$lt_save_MAGIC_CMD" 8864 ;; 8865esac 8866fi 8867 8868MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8869if test -n "$MAGIC_CMD"; then 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8871$as_echo "$MAGIC_CMD" >&6; } 8872else 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874$as_echo "no" >&6; } 8875fi 8876 8877 8878 else 8879 MAGIC_CMD=: 8880 fi 8881fi 8882 8883 fi 8884 ;; 8885esac 8886 8887# Use C for the default configuration in the libtool script 8888 8889lt_save_CC="$CC" 8890ac_ext=c 8891ac_cpp='$CPP $CPPFLAGS' 8892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8894ac_compiler_gnu=$ac_cv_c_compiler_gnu 8895 8896 8897# Source file extension for C test sources. 8898ac_ext=c 8899 8900# Object file extension for compiled C test sources. 8901objext=o 8902objext=$objext 8903 8904# Code to be used in simple compile tests 8905lt_simple_compile_test_code="int some_variable = 0;" 8906 8907# Code to be used in simple link tests 8908lt_simple_link_test_code='int main(){return(0);}' 8909 8910 8911 8912 8913 8914 8915 8916# If no C compiler was specified, use CC. 8917LTCC=${LTCC-"$CC"} 8918 8919# If no C compiler flags were specified, use CFLAGS. 8920LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8921 8922# Allow CC to be a program name with arguments. 8923compiler=$CC 8924 8925# Save the default compiler, since it gets overwritten when the other 8926# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8927compiler_DEFAULT=$CC 8928 8929# save warnings/boilerplate of simple test code 8930ac_outfile=conftest.$ac_objext 8931echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8932eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8933_lt_compiler_boilerplate=`cat conftest.err` 8934$RM conftest* 8935 8936ac_outfile=conftest.$ac_objext 8937echo "$lt_simple_link_test_code" >conftest.$ac_ext 8938eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8939_lt_linker_boilerplate=`cat conftest.err` 8940$RM -r conftest* 8941 8942 8943## CAVEAT EMPTOR: 8944## There is no encapsulation within the following macros, do not change 8945## the running order or otherwise move them around unless you know exactly 8946## what you are doing... 8947if test -n "$compiler"; then 8948 8949lt_prog_compiler_no_builtin_flag= 8950 8951if test "$GCC" = yes; then 8952 case $cc_basename in 8953 nvcc*) 8954 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8955 *) 8956 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8957 esac 8958 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8960$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8961if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963else 8964 lt_cv_prog_compiler_rtti_exceptions=no 8965 ac_outfile=conftest.$ac_objext 8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8967 lt_compiler_flag="-fno-rtti -fno-exceptions" 8968 # Insert the option either (1) after the last *FLAGS variable, or 8969 # (2) before a word containing "conftest.", or (3) at the end. 8970 # Note that $ac_compile itself does not contain backslashes and begins 8971 # with a dollar sign (not a hyphen), so the echo should work correctly. 8972 # The option is referenced via a variable to avoid confusing sed. 8973 lt_compile=`echo "$ac_compile" | $SED \ 8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8976 -e 's:$: $lt_compiler_flag:'` 8977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8978 (eval "$lt_compile" 2>conftest.err) 8979 ac_status=$? 8980 cat conftest.err >&5 8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982 if (exit $ac_status) && test -s "$ac_outfile"; then 8983 # The compiler can only warn and ignore the option if not recognized 8984 # So say no if there are warnings other than the usual output. 8985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8988 lt_cv_prog_compiler_rtti_exceptions=yes 8989 fi 8990 fi 8991 $RM conftest* 8992 8993fi 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8995$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8996 8997if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8999else 9000 : 9001fi 9002 9003fi 9004 9005 9006 9007 9008 9009 9010 lt_prog_compiler_wl= 9011lt_prog_compiler_pic= 9012lt_prog_compiler_static= 9013 9014 9015 if test "$GCC" = yes; then 9016 lt_prog_compiler_wl='-Wl,' 9017 lt_prog_compiler_static='-static' 9018 9019 case $host_os in 9020 aix*) 9021 # All AIX code is PIC. 9022 if test "$host_cpu" = ia64; then 9023 # AIX 5 now supports IA64 processor 9024 lt_prog_compiler_static='-Bstatic' 9025 fi 9026 ;; 9027 9028 amigaos*) 9029 case $host_cpu in 9030 powerpc) 9031 # see comment about AmigaOS4 .so support 9032 lt_prog_compiler_pic='-fPIC' 9033 ;; 9034 m68k) 9035 # FIXME: we need at least 68020 code to build shared libraries, but 9036 # adding the `-m68020' flag to GCC prevents building anything better, 9037 # like `-m68040'. 9038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9039 ;; 9040 esac 9041 ;; 9042 9043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9044 # PIC is the default for these OSes. 9045 ;; 9046 9047 mingw* | cygwin* | pw32* | os2* | cegcc*) 9048 # This hack is so that the source file can tell whether it is being 9049 # built for inclusion in a dll (and should export symbols for example). 9050 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9051 # (--disable-auto-import) libraries 9052 lt_prog_compiler_pic='-DDLL_EXPORT' 9053 ;; 9054 9055 darwin* | rhapsody*) 9056 # PIC is the default on this platform 9057 # Common symbols not allowed in MH_DYLIB files 9058 lt_prog_compiler_pic='-fno-common' 9059 ;; 9060 9061 haiku*) 9062 # PIC is the default for Haiku. 9063 # The "-static" flag exists, but is broken. 9064 lt_prog_compiler_static= 9065 ;; 9066 9067 hpux*) 9068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9070 # sets the default TLS model and affects inlining. 9071 case $host_cpu in 9072 hppa*64*) 9073 # +Z the default 9074 ;; 9075 *) 9076 lt_prog_compiler_pic='-fPIC' 9077 ;; 9078 esac 9079 ;; 9080 9081 interix[3-9]*) 9082 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9083 # Instead, we relocate shared libraries at runtime. 9084 ;; 9085 9086 msdosdjgpp*) 9087 # Just because we use GCC doesn't mean we suddenly get shared libraries 9088 # on systems that don't support them. 9089 lt_prog_compiler_can_build_shared=no 9090 enable_shared=no 9091 ;; 9092 9093 *nto* | *qnx*) 9094 # QNX uses GNU C++, but need to define -shared option too, otherwise 9095 # it will coredump. 9096 lt_prog_compiler_pic='-fPIC -shared' 9097 ;; 9098 9099 sysv4*MP*) 9100 if test -d /usr/nec; then 9101 lt_prog_compiler_pic=-Kconform_pic 9102 fi 9103 ;; 9104 9105 *) 9106 lt_prog_compiler_pic='-fPIC' 9107 ;; 9108 esac 9109 9110 case $cc_basename in 9111 nvcc*) # Cuda Compiler Driver 2.2 9112 lt_prog_compiler_wl='-Xlinker ' 9113 if test -n "$lt_prog_compiler_pic"; then 9114 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9115 fi 9116 ;; 9117 esac 9118 else 9119 # PORTME Check for flag to pass linker flags through the system compiler. 9120 case $host_os in 9121 aix*) 9122 lt_prog_compiler_wl='-Wl,' 9123 if test "$host_cpu" = ia64; then 9124 # AIX 5 now supports IA64 processor 9125 lt_prog_compiler_static='-Bstatic' 9126 else 9127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9128 fi 9129 ;; 9130 9131 mingw* | cygwin* | pw32* | os2* | cegcc*) 9132 # This hack is so that the source file can tell whether it is being 9133 # built for inclusion in a dll (and should export symbols for example). 9134 lt_prog_compiler_pic='-DDLL_EXPORT' 9135 ;; 9136 9137 hpux9* | hpux10* | hpux11*) 9138 lt_prog_compiler_wl='-Wl,' 9139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9140 # not for PA HP-UX. 9141 case $host_cpu in 9142 hppa*64*|ia64*) 9143 # +Z the default 9144 ;; 9145 *) 9146 lt_prog_compiler_pic='+Z' 9147 ;; 9148 esac 9149 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9150 lt_prog_compiler_static='${wl}-a ${wl}archive' 9151 ;; 9152 9153 irix5* | irix6* | nonstopux*) 9154 lt_prog_compiler_wl='-Wl,' 9155 # PIC (with -KPIC) is the default. 9156 lt_prog_compiler_static='-non_shared' 9157 ;; 9158 9159 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9160 case $cc_basename in 9161 # old Intel for x86_64 which still supported -KPIC. 9162 ecc*) 9163 lt_prog_compiler_wl='-Wl,' 9164 lt_prog_compiler_pic='-KPIC' 9165 lt_prog_compiler_static='-static' 9166 ;; 9167 # icc used to be incompatible with GCC. 9168 # ICC 10 doesn't accept -KPIC any more. 9169 icc* | ifort*) 9170 lt_prog_compiler_wl='-Wl,' 9171 lt_prog_compiler_pic='-fPIC' 9172 lt_prog_compiler_static='-static' 9173 ;; 9174 # Lahey Fortran 8.1. 9175 lf95*) 9176 lt_prog_compiler_wl='-Wl,' 9177 lt_prog_compiler_pic='--shared' 9178 lt_prog_compiler_static='--static' 9179 ;; 9180 nagfor*) 9181 # NAG Fortran compiler 9182 lt_prog_compiler_wl='-Wl,-Wl,,' 9183 lt_prog_compiler_pic='-PIC' 9184 lt_prog_compiler_static='-Bstatic' 9185 ;; 9186 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9187 # Portland Group compilers (*not* the Pentium gcc compiler, 9188 # which looks to be a dead project) 9189 lt_prog_compiler_wl='-Wl,' 9190 lt_prog_compiler_pic='-fpic' 9191 lt_prog_compiler_static='-Bstatic' 9192 ;; 9193 ccc*) 9194 lt_prog_compiler_wl='-Wl,' 9195 # All Alpha code is PIC. 9196 lt_prog_compiler_static='-non_shared' 9197 ;; 9198 xl* | bgxl* | bgf* | mpixl*) 9199 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9200 lt_prog_compiler_wl='-Wl,' 9201 lt_prog_compiler_pic='-qpic' 9202 lt_prog_compiler_static='-qstaticlink' 9203 ;; 9204 *) 9205 case `$CC -V 2>&1 | sed 5q` in 9206 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9207 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9208 lt_prog_compiler_pic='-KPIC' 9209 lt_prog_compiler_static='-Bstatic' 9210 lt_prog_compiler_wl='' 9211 ;; 9212 *Sun\ F* | *Sun*Fortran*) 9213 lt_prog_compiler_pic='-KPIC' 9214 lt_prog_compiler_static='-Bstatic' 9215 lt_prog_compiler_wl='-Qoption ld ' 9216 ;; 9217 *Sun\ C*) 9218 # Sun C 5.9 9219 lt_prog_compiler_pic='-KPIC' 9220 lt_prog_compiler_static='-Bstatic' 9221 lt_prog_compiler_wl='-Wl,' 9222 ;; 9223 *Intel*\ [CF]*Compiler*) 9224 lt_prog_compiler_wl='-Wl,' 9225 lt_prog_compiler_pic='-fPIC' 9226 lt_prog_compiler_static='-static' 9227 ;; 9228 *Portland\ Group*) 9229 lt_prog_compiler_wl='-Wl,' 9230 lt_prog_compiler_pic='-fpic' 9231 lt_prog_compiler_static='-Bstatic' 9232 ;; 9233 esac 9234 ;; 9235 esac 9236 ;; 9237 9238 newsos6) 9239 lt_prog_compiler_pic='-KPIC' 9240 lt_prog_compiler_static='-Bstatic' 9241 ;; 9242 9243 *nto* | *qnx*) 9244 # QNX uses GNU C++, but need to define -shared option too, otherwise 9245 # it will coredump. 9246 lt_prog_compiler_pic='-fPIC -shared' 9247 ;; 9248 9249 osf3* | osf4* | osf5*) 9250 lt_prog_compiler_wl='-Wl,' 9251 # All OSF/1 code is PIC. 9252 lt_prog_compiler_static='-non_shared' 9253 ;; 9254 9255 rdos*) 9256 lt_prog_compiler_static='-non_shared' 9257 ;; 9258 9259 solaris*) 9260 lt_prog_compiler_pic='-KPIC' 9261 lt_prog_compiler_static='-Bstatic' 9262 case $cc_basename in 9263 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9264 lt_prog_compiler_wl='-Qoption ld ';; 9265 *) 9266 lt_prog_compiler_wl='-Wl,';; 9267 esac 9268 ;; 9269 9270 sunos4*) 9271 lt_prog_compiler_wl='-Qoption ld ' 9272 lt_prog_compiler_pic='-PIC' 9273 lt_prog_compiler_static='-Bstatic' 9274 ;; 9275 9276 sysv4 | sysv4.2uw2* | sysv4.3*) 9277 lt_prog_compiler_wl='-Wl,' 9278 lt_prog_compiler_pic='-KPIC' 9279 lt_prog_compiler_static='-Bstatic' 9280 ;; 9281 9282 sysv4*MP*) 9283 if test -d /usr/nec ;then 9284 lt_prog_compiler_pic='-Kconform_pic' 9285 lt_prog_compiler_static='-Bstatic' 9286 fi 9287 ;; 9288 9289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9290 lt_prog_compiler_wl='-Wl,' 9291 lt_prog_compiler_pic='-KPIC' 9292 lt_prog_compiler_static='-Bstatic' 9293 ;; 9294 9295 unicos*) 9296 lt_prog_compiler_wl='-Wl,' 9297 lt_prog_compiler_can_build_shared=no 9298 ;; 9299 9300 uts4*) 9301 lt_prog_compiler_pic='-pic' 9302 lt_prog_compiler_static='-Bstatic' 9303 ;; 9304 9305 *) 9306 lt_prog_compiler_can_build_shared=no 9307 ;; 9308 esac 9309 fi 9310 9311case $host_os in 9312 # For platforms which do not support PIC, -DPIC is meaningless: 9313 *djgpp*) 9314 lt_prog_compiler_pic= 9315 ;; 9316 *) 9317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9318 ;; 9319esac 9320 9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9322$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9323if ${lt_cv_prog_compiler_pic+:} false; then : 9324 $as_echo_n "(cached) " >&6 9325else 9326 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9327fi 9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9329$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9330lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9331 9332# 9333# Check to make sure the PIC flag actually works. 9334# 9335if test -n "$lt_prog_compiler_pic"; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9337$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9338if ${lt_cv_prog_compiler_pic_works+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 lt_cv_prog_compiler_pic_works=no 9342 ac_outfile=conftest.$ac_objext 9343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9345 # Insert the option either (1) after the last *FLAGS variable, or 9346 # (2) before a word containing "conftest.", or (3) at the end. 9347 # Note that $ac_compile itself does not contain backslashes and begins 9348 # with a dollar sign (not a hyphen), so the echo should work correctly. 9349 # The option is referenced via a variable to avoid confusing sed. 9350 lt_compile=`echo "$ac_compile" | $SED \ 9351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9353 -e 's:$: $lt_compiler_flag:'` 9354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9355 (eval "$lt_compile" 2>conftest.err) 9356 ac_status=$? 9357 cat conftest.err >&5 9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9359 if (exit $ac_status) && test -s "$ac_outfile"; then 9360 # The compiler can only warn and ignore the option if not recognized 9361 # So say no if there are warnings other than the usual output. 9362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9365 lt_cv_prog_compiler_pic_works=yes 9366 fi 9367 fi 9368 $RM conftest* 9369 9370fi 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9372$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9373 9374if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9375 case $lt_prog_compiler_pic in 9376 "" | " "*) ;; 9377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9378 esac 9379else 9380 lt_prog_compiler_pic= 9381 lt_prog_compiler_can_build_shared=no 9382fi 9383 9384fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396# 9397# Check to make sure the static flag actually works. 9398# 9399wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9401$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9402if ${lt_cv_prog_compiler_static_works+:} false; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 lt_cv_prog_compiler_static_works=no 9406 save_LDFLAGS="$LDFLAGS" 9407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9408 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9410 # The linker can only warn and ignore the option if not recognized 9411 # So say no if there are warnings 9412 if test -s conftest.err; then 9413 # Append any errors to the config.log. 9414 cat conftest.err 1>&5 9415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9417 if diff conftest.exp conftest.er2 >/dev/null; then 9418 lt_cv_prog_compiler_static_works=yes 9419 fi 9420 else 9421 lt_cv_prog_compiler_static_works=yes 9422 fi 9423 fi 9424 $RM -r conftest* 9425 LDFLAGS="$save_LDFLAGS" 9426 9427fi 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9429$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9430 9431if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9432 : 9433else 9434 lt_prog_compiler_static= 9435fi 9436 9437 9438 9439 9440 9441 9442 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9444$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9445if ${lt_cv_prog_compiler_c_o+:} false; then : 9446 $as_echo_n "(cached) " >&6 9447else 9448 lt_cv_prog_compiler_c_o=no 9449 $RM -r conftest 2>/dev/null 9450 mkdir conftest 9451 cd conftest 9452 mkdir out 9453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9454 9455 lt_compiler_flag="-o out/conftest2.$ac_objext" 9456 # Insert the option either (1) after the last *FLAGS variable, or 9457 # (2) before a word containing "conftest.", or (3) at the end. 9458 # Note that $ac_compile itself does not contain backslashes and begins 9459 # with a dollar sign (not a hyphen), so the echo should work correctly. 9460 lt_compile=`echo "$ac_compile" | $SED \ 9461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9463 -e 's:$: $lt_compiler_flag:'` 9464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9465 (eval "$lt_compile" 2>out/conftest.err) 9466 ac_status=$? 9467 cat out/conftest.err >&5 9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9469 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9470 then 9471 # The compiler can only warn and ignore the option if not recognized 9472 # So say no if there are warnings 9473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9476 lt_cv_prog_compiler_c_o=yes 9477 fi 9478 fi 9479 chmod u+w . 2>&5 9480 $RM conftest* 9481 # SGI C++ compiler will create directory out/ii_files/ for 9482 # template instantiation 9483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9484 $RM out/* && rmdir out 9485 cd .. 9486 $RM -r conftest 9487 $RM conftest* 9488 9489fi 9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9491$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9492 9493 9494 9495 9496 9497 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9499$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9500if ${lt_cv_prog_compiler_c_o+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502else 9503 lt_cv_prog_compiler_c_o=no 9504 $RM -r conftest 2>/dev/null 9505 mkdir conftest 9506 cd conftest 9507 mkdir out 9508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9509 9510 lt_compiler_flag="-o out/conftest2.$ac_objext" 9511 # Insert the option either (1) after the last *FLAGS variable, or 9512 # (2) before a word containing "conftest.", or (3) at the end. 9513 # Note that $ac_compile itself does not contain backslashes and begins 9514 # with a dollar sign (not a hyphen), so the echo should work correctly. 9515 lt_compile=`echo "$ac_compile" | $SED \ 9516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9518 -e 's:$: $lt_compiler_flag:'` 9519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9520 (eval "$lt_compile" 2>out/conftest.err) 9521 ac_status=$? 9522 cat out/conftest.err >&5 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9525 then 9526 # The compiler can only warn and ignore the option if not recognized 9527 # So say no if there are warnings 9528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9531 lt_cv_prog_compiler_c_o=yes 9532 fi 9533 fi 9534 chmod u+w . 2>&5 9535 $RM conftest* 9536 # SGI C++ compiler will create directory out/ii_files/ for 9537 # template instantiation 9538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9539 $RM out/* && rmdir out 9540 cd .. 9541 $RM -r conftest 9542 $RM conftest* 9543 9544fi 9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9546$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9547 9548 9549 9550 9551hard_links="nottested" 9552if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9553 # do not overwrite the value of need_locks provided by the user 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9555$as_echo_n "checking if we can lock with hard links... " >&6; } 9556 hard_links=yes 9557 $RM conftest* 9558 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9559 touch conftest.a 9560 ln conftest.a conftest.b 2>&5 || hard_links=no 9561 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9563$as_echo "$hard_links" >&6; } 9564 if test "$hard_links" = no; then 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9566$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9567 need_locks=warn 9568 fi 9569else 9570 need_locks=no 9571fi 9572 9573 9574 9575 9576 9577 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9579$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9580 9581 runpath_var= 9582 allow_undefined_flag= 9583 always_export_symbols=no 9584 archive_cmds= 9585 archive_expsym_cmds= 9586 compiler_needs_object=no 9587 enable_shared_with_static_runtimes=no 9588 export_dynamic_flag_spec= 9589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9590 hardcode_automatic=no 9591 hardcode_direct=no 9592 hardcode_direct_absolute=no 9593 hardcode_libdir_flag_spec= 9594 hardcode_libdir_separator= 9595 hardcode_minus_L=no 9596 hardcode_shlibpath_var=unsupported 9597 inherit_rpath=no 9598 link_all_deplibs=unknown 9599 module_cmds= 9600 module_expsym_cmds= 9601 old_archive_from_new_cmds= 9602 old_archive_from_expsyms_cmds= 9603 thread_safe_flag_spec= 9604 whole_archive_flag_spec= 9605 # include_expsyms should be a list of space-separated symbols to be *always* 9606 # included in the symbol list 9607 include_expsyms= 9608 # exclude_expsyms can be an extended regexp of symbols to exclude 9609 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9610 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9611 # as well as any symbol that contains `d'. 9612 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9614 # platforms (ab)use it in PIC code, but their linkers get confused if 9615 # the symbol is explicitly referenced. Since portable code cannot 9616 # rely on this symbol name, it's probably fine to never include it in 9617 # preloaded symbol tables. 9618 # Exclude shared library initialization/finalization symbols. 9619 extract_expsyms_cmds= 9620 9621 case $host_os in 9622 cygwin* | mingw* | pw32* | cegcc*) 9623 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9624 # When not using gcc, we currently assume that we are using 9625 # Microsoft Visual C++. 9626 if test "$GCC" != yes; then 9627 with_gnu_ld=no 9628 fi 9629 ;; 9630 interix*) 9631 # we just hope/assume this is gcc and not c89 (= MSVC++) 9632 with_gnu_ld=yes 9633 ;; 9634 openbsd*) 9635 with_gnu_ld=no 9636 ;; 9637 esac 9638 9639 ld_shlibs=yes 9640 9641 # On some targets, GNU ld is compatible enough with the native linker 9642 # that we're better off using the native interface for both. 9643 lt_use_gnu_ld_interface=no 9644 if test "$with_gnu_ld" = yes; then 9645 case $host_os in 9646 aix*) 9647 # The AIX port of GNU ld has always aspired to compatibility 9648 # with the native linker. However, as the warning in the GNU ld 9649 # block says, versions before 2.19.5* couldn't really create working 9650 # shared libraries, regardless of the interface used. 9651 case `$LD -v 2>&1` in 9652 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9653 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9654 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9655 *) 9656 lt_use_gnu_ld_interface=yes 9657 ;; 9658 esac 9659 ;; 9660 *) 9661 lt_use_gnu_ld_interface=yes 9662 ;; 9663 esac 9664 fi 9665 9666 if test "$lt_use_gnu_ld_interface" = yes; then 9667 # If archive_cmds runs LD, not CC, wlarc should be empty 9668 wlarc='${wl}' 9669 9670 # Set some defaults for GNU ld with shared library support. These 9671 # are reset later if shared libraries are not supported. Putting them 9672 # here allows them to be overridden if necessary. 9673 runpath_var=LD_RUN_PATH 9674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9675 export_dynamic_flag_spec='${wl}--export-dynamic' 9676 # ancient GNU ld didn't support --whole-archive et. al. 9677 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9678 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9679 else 9680 whole_archive_flag_spec= 9681 fi 9682 supports_anon_versioning=no 9683 case `$LD -v 2>&1` in 9684 *GNU\ gold*) supports_anon_versioning=yes ;; 9685 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9686 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9687 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9688 *\ 2.11.*) ;; # other 2.11 versions 9689 *) supports_anon_versioning=yes ;; 9690 esac 9691 9692 # See if GNU ld supports shared libraries. 9693 case $host_os in 9694 aix[3-9]*) 9695 # On AIX/PPC, the GNU linker is very broken 9696 if test "$host_cpu" != ia64; then 9697 ld_shlibs=no 9698 cat <<_LT_EOF 1>&2 9699 9700*** Warning: the GNU linker, at least up to release 2.19, is reported 9701*** to be unable to reliably create shared libraries on AIX. 9702*** Therefore, libtool is disabling shared libraries support. If you 9703*** really care for shared libraries, you may want to install binutils 9704*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9705*** You will then need to restart the configuration process. 9706 9707_LT_EOF 9708 fi 9709 ;; 9710 9711 amigaos*) 9712 case $host_cpu in 9713 powerpc) 9714 # see comment about AmigaOS4 .so support 9715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9716 archive_expsym_cmds='' 9717 ;; 9718 m68k) 9719 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)' 9720 hardcode_libdir_flag_spec='-L$libdir' 9721 hardcode_minus_L=yes 9722 ;; 9723 esac 9724 ;; 9725 9726 beos*) 9727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9728 allow_undefined_flag=unsupported 9729 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9730 # support --undefined. This deserves some investigation. FIXME 9731 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9732 else 9733 ld_shlibs=no 9734 fi 9735 ;; 9736 9737 cygwin* | mingw* | pw32* | cegcc*) 9738 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9739 # as there is no search path for DLLs. 9740 hardcode_libdir_flag_spec='-L$libdir' 9741 export_dynamic_flag_spec='${wl}--export-all-symbols' 9742 allow_undefined_flag=unsupported 9743 always_export_symbols=no 9744 enable_shared_with_static_runtimes=yes 9745 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9746 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9747 9748 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9750 # If the export-symbols file already is a .def file (1st line 9751 # is EXPORTS), use it as is; otherwise, prepend... 9752 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9753 cp $export_symbols $output_objdir/$soname.def; 9754 else 9755 echo EXPORTS > $output_objdir/$soname.def; 9756 cat $export_symbols >> $output_objdir/$soname.def; 9757 fi~ 9758 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9759 else 9760 ld_shlibs=no 9761 fi 9762 ;; 9763 9764 haiku*) 9765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9766 link_all_deplibs=yes 9767 ;; 9768 9769 interix[3-9]*) 9770 hardcode_direct=no 9771 hardcode_shlibpath_var=no 9772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9773 export_dynamic_flag_spec='${wl}-E' 9774 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9775 # Instead, shared libraries are loaded at an image base (0x10000000 by 9776 # default) and relocated if they conflict, which is a slow very memory 9777 # consuming and fragmenting process. To avoid this, we pick a random, 9778 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9779 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9781 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' 9782 ;; 9783 9784 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9785 tmp_diet=no 9786 if test "$host_os" = linux-dietlibc; then 9787 case $cc_basename in 9788 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9789 esac 9790 fi 9791 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9792 && test "$tmp_diet" = no 9793 then 9794 tmp_addflag=' $pic_flag' 9795 tmp_sharedflag='-shared' 9796 case $cc_basename,$host_cpu in 9797 pgcc*) # Portland Group C compiler 9798 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9799 tmp_addflag=' $pic_flag' 9800 ;; 9801 pgf77* | pgf90* | pgf95* | pgfortran*) 9802 # Portland Group f77 and f90 compilers 9803 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9804 tmp_addflag=' $pic_flag -Mnomain' ;; 9805 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9806 tmp_addflag=' -i_dynamic' ;; 9807 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9808 tmp_addflag=' -i_dynamic -nofor_main' ;; 9809 ifc* | ifort*) # Intel Fortran compiler 9810 tmp_addflag=' -nofor_main' ;; 9811 lf95*) # Lahey Fortran 8.1 9812 whole_archive_flag_spec= 9813 tmp_sharedflag='--shared' ;; 9814 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9815 tmp_sharedflag='-qmkshrobj' 9816 tmp_addflag= ;; 9817 nvcc*) # Cuda Compiler Driver 2.2 9818 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9819 compiler_needs_object=yes 9820 ;; 9821 esac 9822 case `$CC -V 2>&1 | sed 5q` in 9823 *Sun\ C*) # Sun C 5.9 9824 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9825 compiler_needs_object=yes 9826 tmp_sharedflag='-G' ;; 9827 *Sun\ F*) # Sun Fortran 8.3 9828 tmp_sharedflag='-G' ;; 9829 esac 9830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9831 9832 if test "x$supports_anon_versioning" = xyes; then 9833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9835 echo "local: *; };" >> $output_objdir/$libname.ver~ 9836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9837 fi 9838 9839 case $cc_basename in 9840 xlf* | bgf* | bgxlf* | mpixlf*) 9841 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9842 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9844 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9845 if test "x$supports_anon_versioning" = xyes; then 9846 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9848 echo "local: *; };" >> $output_objdir/$libname.ver~ 9849 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9850 fi 9851 ;; 9852 esac 9853 else 9854 ld_shlibs=no 9855 fi 9856 ;; 9857 9858 netbsd*) 9859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9860 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9861 wlarc= 9862 else 9863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9864 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9865 fi 9866 ;; 9867 9868 solaris*) 9869 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9870 ld_shlibs=no 9871 cat <<_LT_EOF 1>&2 9872 9873*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9874*** create shared libraries on Solaris systems. Therefore, libtool 9875*** is disabling shared libraries support. We urge you to upgrade GNU 9876*** binutils to release 2.9.1 or newer. Another option is to modify 9877*** your PATH or compiler configuration so that the native linker is 9878*** used, and then restart. 9879 9880_LT_EOF 9881 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9883 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9884 else 9885 ld_shlibs=no 9886 fi 9887 ;; 9888 9889 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9890 case `$LD -v 2>&1` in 9891 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9892 ld_shlibs=no 9893 cat <<_LT_EOF 1>&2 9894 9895*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9896*** reliably create shared libraries on SCO systems. Therefore, libtool 9897*** is disabling shared libraries support. We urge you to upgrade GNU 9898*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9899*** your PATH or compiler configuration so that the native linker is 9900*** used, and then restart. 9901 9902_LT_EOF 9903 ;; 9904 *) 9905 # For security reasons, it is highly recommended that you always 9906 # use absolute paths for naming shared libraries, and exclude the 9907 # DT_RUNPATH tag from executables and libraries. But doing so 9908 # requires that you compile everything twice, which is a pain. 9909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9913 else 9914 ld_shlibs=no 9915 fi 9916 ;; 9917 esac 9918 ;; 9919 9920 sunos4*) 9921 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9922 wlarc= 9923 hardcode_direct=yes 9924 hardcode_shlibpath_var=no 9925 ;; 9926 9927 *) 9928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9930 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9931 else 9932 ld_shlibs=no 9933 fi 9934 ;; 9935 esac 9936 9937 if test "$ld_shlibs" = no; then 9938 runpath_var= 9939 hardcode_libdir_flag_spec= 9940 export_dynamic_flag_spec= 9941 whole_archive_flag_spec= 9942 fi 9943 else 9944 # PORTME fill in a description of your system's linker (not GNU ld) 9945 case $host_os in 9946 aix3*) 9947 allow_undefined_flag=unsupported 9948 always_export_symbols=yes 9949 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' 9950 # Note: this linker hardcodes the directories in LIBPATH if there 9951 # are no directories specified by -L. 9952 hardcode_minus_L=yes 9953 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9954 # Neither direct hardcoding nor static linking is supported with a 9955 # broken collect2. 9956 hardcode_direct=unsupported 9957 fi 9958 ;; 9959 9960 aix[4-9]*) 9961 if test "$host_cpu" = ia64; then 9962 # On IA64, the linker does run time linking by default, so we don't 9963 # have to do anything special. 9964 aix_use_runtimelinking=no 9965 exp_sym_flag='-Bexport' 9966 no_entry_flag="" 9967 else 9968 # If we're using GNU nm, then we don't want the "-C" option. 9969 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9970 # Also, AIX nm treats weak defined symbols like other global 9971 # defined symbols, whereas GNU nm marks them as "W". 9972 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9973 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9974 else 9975 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' 9976 fi 9977 aix_use_runtimelinking=no 9978 9979 # Test if we are trying to use run time linking or normal 9980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9981 # need to do runtime linking. 9982 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9983 for ld_flag in $LDFLAGS; do 9984 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9985 aix_use_runtimelinking=yes 9986 break 9987 fi 9988 done 9989 ;; 9990 esac 9991 9992 exp_sym_flag='-bexport' 9993 no_entry_flag='-bnoentry' 9994 fi 9995 9996 # When large executables or shared objects are built, AIX ld can 9997 # have problems creating the table of contents. If linking a library 9998 # or program results in "error TOC overflow" add -mminimal-toc to 9999 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10000 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10001 10002 archive_cmds='' 10003 hardcode_direct=yes 10004 hardcode_direct_absolute=yes 10005 hardcode_libdir_separator=':' 10006 link_all_deplibs=yes 10007 file_list_spec='${wl}-f,' 10008 10009 if test "$GCC" = yes; then 10010 case $host_os in aix4.[012]|aix4.[012].*) 10011 # We only want to do this on AIX 4.2 and lower, the check 10012 # below for broken collect2 doesn't work under 4.3+ 10013 collect2name=`${CC} -print-prog-name=collect2` 10014 if test -f "$collect2name" && 10015 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10016 then 10017 # We have reworked collect2 10018 : 10019 else 10020 # We have old collect2 10021 hardcode_direct=unsupported 10022 # It fails to find uninstalled libraries when the uninstalled 10023 # path is not listed in the libpath. Setting hardcode_minus_L 10024 # to unsupported forces relinking 10025 hardcode_minus_L=yes 10026 hardcode_libdir_flag_spec='-L$libdir' 10027 hardcode_libdir_separator= 10028 fi 10029 ;; 10030 esac 10031 shared_flag='-shared' 10032 if test "$aix_use_runtimelinking" = yes; then 10033 shared_flag="$shared_flag "'${wl}-G' 10034 fi 10035 else 10036 # not using gcc 10037 if test "$host_cpu" = ia64; then 10038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10039 # chokes on -Wl,-G. The following line is correct: 10040 shared_flag='-G' 10041 else 10042 if test "$aix_use_runtimelinking" = yes; then 10043 shared_flag='${wl}-G' 10044 else 10045 shared_flag='${wl}-bM:SRE' 10046 fi 10047 fi 10048 fi 10049 10050 export_dynamic_flag_spec='${wl}-bexpall' 10051 # It seems that -bexpall does not export symbols beginning with 10052 # underscore (_), so it is better to generate a list of symbols to export. 10053 always_export_symbols=yes 10054 if test "$aix_use_runtimelinking" = yes; then 10055 # Warning - without using the other runtime loading flags (-brtl), 10056 # -berok will link without error, but may produce a broken library. 10057 allow_undefined_flag='-berok' 10058 # Determine the default libpath from the value encoded in an 10059 # empty executable. 10060 if test "${lt_cv_aix_libpath+set}" = set; then 10061 aix_libpath=$lt_cv_aix_libpath 10062else 10063 if ${lt_cv_aix_libpath_+:} false; then : 10064 $as_echo_n "(cached) " >&6 10065else 10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067/* end confdefs.h. */ 10068 10069int 10070main () 10071{ 10072 10073 ; 10074 return 0; 10075} 10076_ACEOF 10077if ac_fn_c_try_link "$LINENO"; then : 10078 10079 lt_aix_libpath_sed=' 10080 /Import File Strings/,/^$/ { 10081 /^0/ { 10082 s/^0 *\([^ ]*\) *$/\1/ 10083 p 10084 } 10085 }' 10086 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10087 # Check for a 64-bit object if we didn't find anything. 10088 if test -z "$lt_cv_aix_libpath_"; then 10089 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10090 fi 10091fi 10092rm -f core conftest.err conftest.$ac_objext \ 10093 conftest$ac_exeext conftest.$ac_ext 10094 if test -z "$lt_cv_aix_libpath_"; then 10095 lt_cv_aix_libpath_="/usr/lib:/lib" 10096 fi 10097 10098fi 10099 10100 aix_libpath=$lt_cv_aix_libpath_ 10101fi 10102 10103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10104 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10105 else 10106 if test "$host_cpu" = ia64; then 10107 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10108 allow_undefined_flag="-z nodefs" 10109 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" 10110 else 10111 # Determine the default libpath from the value encoded in an 10112 # empty executable. 10113 if test "${lt_cv_aix_libpath+set}" = set; then 10114 aix_libpath=$lt_cv_aix_libpath 10115else 10116 if ${lt_cv_aix_libpath_+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121 10122int 10123main () 10124{ 10125 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130if ac_fn_c_try_link "$LINENO"; then : 10131 10132 lt_aix_libpath_sed=' 10133 /Import File Strings/,/^$/ { 10134 /^0/ { 10135 s/^0 *\([^ ]*\) *$/\1/ 10136 p 10137 } 10138 }' 10139 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10140 # Check for a 64-bit object if we didn't find anything. 10141 if test -z "$lt_cv_aix_libpath_"; then 10142 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10143 fi 10144fi 10145rm -f core conftest.err conftest.$ac_objext \ 10146 conftest$ac_exeext conftest.$ac_ext 10147 if test -z "$lt_cv_aix_libpath_"; then 10148 lt_cv_aix_libpath_="/usr/lib:/lib" 10149 fi 10150 10151fi 10152 10153 aix_libpath=$lt_cv_aix_libpath_ 10154fi 10155 10156 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10157 # Warning - without using the other run time loading flags, 10158 # -berok will link without error, but may produce a broken library. 10159 no_undefined_flag=' ${wl}-bernotok' 10160 allow_undefined_flag=' ${wl}-berok' 10161 if test "$with_gnu_ld" = yes; then 10162 # We only use this code for GNU lds that support --whole-archive. 10163 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10164 else 10165 # Exported symbols can be pulled into shared objects from archives 10166 whole_archive_flag_spec='$convenience' 10167 fi 10168 archive_cmds_need_lc=yes 10169 # This is similar to how AIX traditionally builds its shared libraries. 10170 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' 10171 fi 10172 fi 10173 ;; 10174 10175 amigaos*) 10176 case $host_cpu in 10177 powerpc) 10178 # see comment about AmigaOS4 .so support 10179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10180 archive_expsym_cmds='' 10181 ;; 10182 m68k) 10183 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)' 10184 hardcode_libdir_flag_spec='-L$libdir' 10185 hardcode_minus_L=yes 10186 ;; 10187 esac 10188 ;; 10189 10190 bsdi[45]*) 10191 export_dynamic_flag_spec=-rdynamic 10192 ;; 10193 10194 cygwin* | mingw* | pw32* | cegcc*) 10195 # When not using gcc, we currently assume that we are using 10196 # Microsoft Visual C++. 10197 # hardcode_libdir_flag_spec is actually meaningless, as there is 10198 # no search path for DLLs. 10199 case $cc_basename in 10200 cl*) 10201 # Native MSVC 10202 hardcode_libdir_flag_spec=' ' 10203 allow_undefined_flag=unsupported 10204 always_export_symbols=yes 10205 file_list_spec='@' 10206 # Tell ltmain to make .lib files, not .a files. 10207 libext=lib 10208 # Tell ltmain to make .dll files, not .so files. 10209 shrext_cmds=".dll" 10210 # FIXME: Setting linknames here is a bad hack. 10211 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10212 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10213 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10214 else 10215 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10216 fi~ 10217 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10218 linknames=' 10219 # The linker will not automatically build a static lib if we build a DLL. 10220 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10221 enable_shared_with_static_runtimes=yes 10222 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10224 # Don't use ranlib 10225 old_postinstall_cmds='chmod 644 $oldlib' 10226 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10227 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10228 case $lt_outputfile in 10229 *.exe|*.EXE) ;; 10230 *) 10231 lt_outputfile="$lt_outputfile.exe" 10232 lt_tool_outputfile="$lt_tool_outputfile.exe" 10233 ;; 10234 esac~ 10235 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10236 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10237 $RM "$lt_outputfile.manifest"; 10238 fi' 10239 ;; 10240 *) 10241 # Assume MSVC wrapper 10242 hardcode_libdir_flag_spec=' ' 10243 allow_undefined_flag=unsupported 10244 # Tell ltmain to make .lib files, not .a files. 10245 libext=lib 10246 # Tell ltmain to make .dll files, not .so files. 10247 shrext_cmds=".dll" 10248 # FIXME: Setting linknames here is a bad hack. 10249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10250 # The linker will automatically build a .lib file if we build a DLL. 10251 old_archive_from_new_cmds='true' 10252 # FIXME: Should let the user specify the lib program. 10253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10254 enable_shared_with_static_runtimes=yes 10255 ;; 10256 esac 10257 ;; 10258 10259 darwin* | rhapsody*) 10260 10261 10262 archive_cmds_need_lc=no 10263 hardcode_direct=no 10264 hardcode_automatic=yes 10265 hardcode_shlibpath_var=unsupported 10266 if test "$lt_cv_ld_force_load" = "yes"; then 10267 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10268 10269 else 10270 whole_archive_flag_spec='' 10271 fi 10272 link_all_deplibs=yes 10273 allow_undefined_flag="$_lt_dar_allow_undefined" 10274 case $cc_basename in 10275 ifort*) _lt_dar_can_shared=yes ;; 10276 *) _lt_dar_can_shared=$GCC ;; 10277 esac 10278 if test "$_lt_dar_can_shared" = "yes"; then 10279 output_verbose_link_cmd=func_echo_all 10280 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10281 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10282 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}" 10283 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}" 10284 10285 else 10286 ld_shlibs=no 10287 fi 10288 10289 ;; 10290 10291 dgux*) 10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10293 hardcode_libdir_flag_spec='-L$libdir' 10294 hardcode_shlibpath_var=no 10295 ;; 10296 10297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10298 # support. Future versions do this automatically, but an explicit c++rt0.o 10299 # does not break anything, and helps significantly (at the cost of a little 10300 # extra space). 10301 freebsd2.2*) 10302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10303 hardcode_libdir_flag_spec='-R$libdir' 10304 hardcode_direct=yes 10305 hardcode_shlibpath_var=no 10306 ;; 10307 10308 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10309 freebsd2.*) 10310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10311 hardcode_direct=yes 10312 hardcode_minus_L=yes 10313 hardcode_shlibpath_var=no 10314 ;; 10315 10316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10317 freebsd* | dragonfly*) 10318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10319 hardcode_libdir_flag_spec='-R$libdir' 10320 hardcode_direct=yes 10321 hardcode_shlibpath_var=no 10322 ;; 10323 10324 hpux9*) 10325 if test "$GCC" = yes; then 10326 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10327 else 10328 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' 10329 fi 10330 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10331 hardcode_libdir_separator=: 10332 hardcode_direct=yes 10333 10334 # hardcode_minus_L: Not really in the search PATH, 10335 # but as the default location of the library. 10336 hardcode_minus_L=yes 10337 export_dynamic_flag_spec='${wl}-E' 10338 ;; 10339 10340 hpux10*) 10341 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10342 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10343 else 10344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10345 fi 10346 if test "$with_gnu_ld" = no; then 10347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10348 hardcode_libdir_separator=: 10349 hardcode_direct=yes 10350 hardcode_direct_absolute=yes 10351 export_dynamic_flag_spec='${wl}-E' 10352 # hardcode_minus_L: Not really in the search PATH, 10353 # but as the default location of the library. 10354 hardcode_minus_L=yes 10355 fi 10356 ;; 10357 10358 hpux11*) 10359 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10360 case $host_cpu in 10361 hppa*64*) 10362 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10363 ;; 10364 ia64*) 10365 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10366 ;; 10367 *) 10368 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10369 ;; 10370 esac 10371 else 10372 case $host_cpu in 10373 hppa*64*) 10374 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10375 ;; 10376 ia64*) 10377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10378 ;; 10379 *) 10380 10381 # Older versions of the 11.00 compiler do not understand -b yet 10382 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10384$as_echo_n "checking if $CC understands -b... " >&6; } 10385if ${lt_cv_prog_compiler__b+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 lt_cv_prog_compiler__b=no 10389 save_LDFLAGS="$LDFLAGS" 10390 LDFLAGS="$LDFLAGS -b" 10391 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10393 # The linker can only warn and ignore the option if not recognized 10394 # So say no if there are warnings 10395 if test -s conftest.err; then 10396 # Append any errors to the config.log. 10397 cat conftest.err 1>&5 10398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10400 if diff conftest.exp conftest.er2 >/dev/null; then 10401 lt_cv_prog_compiler__b=yes 10402 fi 10403 else 10404 lt_cv_prog_compiler__b=yes 10405 fi 10406 fi 10407 $RM -r conftest* 10408 LDFLAGS="$save_LDFLAGS" 10409 10410fi 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10412$as_echo "$lt_cv_prog_compiler__b" >&6; } 10413 10414if test x"$lt_cv_prog_compiler__b" = xyes; then 10415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10416else 10417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10418fi 10419 10420 ;; 10421 esac 10422 fi 10423 if test "$with_gnu_ld" = no; then 10424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10425 hardcode_libdir_separator=: 10426 10427 case $host_cpu in 10428 hppa*64*|ia64*) 10429 hardcode_direct=no 10430 hardcode_shlibpath_var=no 10431 ;; 10432 *) 10433 hardcode_direct=yes 10434 hardcode_direct_absolute=yes 10435 export_dynamic_flag_spec='${wl}-E' 10436 10437 # hardcode_minus_L: Not really in the search PATH, 10438 # but as the default location of the library. 10439 hardcode_minus_L=yes 10440 ;; 10441 esac 10442 fi 10443 ;; 10444 10445 irix5* | irix6* | nonstopux*) 10446 if test "$GCC" = yes; then 10447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10448 # Try to use the -exported_symbol ld option, if it does not 10449 # work, assume that -exports_file does not work either and 10450 # implicitly export all symbols. 10451 # This should be the same for all languages, so no per-tag cache variable. 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10453$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10454if ${lt_cv_irix_exported_symbol+:} false; then : 10455 $as_echo_n "(cached) " >&6 10456else 10457 save_LDFLAGS="$LDFLAGS" 10458 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int foo (void) { return 0; } 10462_ACEOF 10463if ac_fn_c_try_link "$LINENO"; then : 10464 lt_cv_irix_exported_symbol=yes 10465else 10466 lt_cv_irix_exported_symbol=no 10467fi 10468rm -f core conftest.err conftest.$ac_objext \ 10469 conftest$ac_exeext conftest.$ac_ext 10470 LDFLAGS="$save_LDFLAGS" 10471fi 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10473$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10474 if test "$lt_cv_irix_exported_symbol" = yes; then 10475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10476 fi 10477 else 10478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10480 fi 10481 archive_cmds_need_lc='no' 10482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10483 hardcode_libdir_separator=: 10484 inherit_rpath=yes 10485 link_all_deplibs=yes 10486 ;; 10487 10488 netbsd*) 10489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10491 else 10492 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10493 fi 10494 hardcode_libdir_flag_spec='-R$libdir' 10495 hardcode_direct=yes 10496 hardcode_shlibpath_var=no 10497 ;; 10498 10499 newsos6) 10500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10501 hardcode_direct=yes 10502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10503 hardcode_libdir_separator=: 10504 hardcode_shlibpath_var=no 10505 ;; 10506 10507 *nto* | *qnx*) 10508 ;; 10509 10510 openbsd*) 10511 if test -f /usr/libexec/ld.so; then 10512 hardcode_direct=yes 10513 hardcode_shlibpath_var=no 10514 hardcode_direct_absolute=yes 10515 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10517 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10519 export_dynamic_flag_spec='${wl}-E' 10520 else 10521 case $host_os in 10522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10524 hardcode_libdir_flag_spec='-R$libdir' 10525 ;; 10526 *) 10527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10529 ;; 10530 esac 10531 fi 10532 else 10533 ld_shlibs=no 10534 fi 10535 ;; 10536 10537 os2*) 10538 hardcode_libdir_flag_spec='-L$libdir' 10539 hardcode_minus_L=yes 10540 allow_undefined_flag=unsupported 10541 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' 10542 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10543 ;; 10544 10545 osf3*) 10546 if test "$GCC" = yes; then 10547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10548 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10549 else 10550 allow_undefined_flag=' -expect_unresolved \*' 10551 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10552 fi 10553 archive_cmds_need_lc='no' 10554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10555 hardcode_libdir_separator=: 10556 ;; 10557 10558 osf4* | osf5*) # as osf3* with the addition of -msym flag 10559 if test "$GCC" = yes; then 10560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10561 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10563 else 10564 allow_undefined_flag=' -expect_unresolved \*' 10565 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10566 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~ 10567 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10568 10569 # Both c and cxx compiler support -rpath directly 10570 hardcode_libdir_flag_spec='-rpath $libdir' 10571 fi 10572 archive_cmds_need_lc='no' 10573 hardcode_libdir_separator=: 10574 ;; 10575 10576 solaris*) 10577 no_undefined_flag=' -z defs' 10578 if test "$GCC" = yes; then 10579 wlarc='${wl}' 10580 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10582 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10583 else 10584 case `$CC -V 2>&1` in 10585 *"Compilers 5.0"*) 10586 wlarc='' 10587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10590 ;; 10591 *) 10592 wlarc='${wl}' 10593 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10595 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10596 ;; 10597 esac 10598 fi 10599 hardcode_libdir_flag_spec='-R$libdir' 10600 hardcode_shlibpath_var=no 10601 case $host_os in 10602 solaris2.[0-5] | solaris2.[0-5].*) ;; 10603 *) 10604 # The compiler driver will combine and reorder linker options, 10605 # but understands `-z linker_flag'. GCC discards it without `$wl', 10606 # but is careful enough not to reorder. 10607 # Supported since Solaris 2.6 (maybe 2.5.1?) 10608 if test "$GCC" = yes; then 10609 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10610 else 10611 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10612 fi 10613 ;; 10614 esac 10615 link_all_deplibs=yes 10616 ;; 10617 10618 sunos4*) 10619 if test "x$host_vendor" = xsequent; then 10620 # Use $CC to link under sequent, because it throws in some extra .o 10621 # files that make .init and .fini sections work. 10622 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10623 else 10624 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10625 fi 10626 hardcode_libdir_flag_spec='-L$libdir' 10627 hardcode_direct=yes 10628 hardcode_minus_L=yes 10629 hardcode_shlibpath_var=no 10630 ;; 10631 10632 sysv4) 10633 case $host_vendor in 10634 sni) 10635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10636 hardcode_direct=yes # is this really true??? 10637 ;; 10638 siemens) 10639 ## LD is ld it makes a PLAMLIB 10640 ## CC just makes a GrossModule. 10641 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10642 reload_cmds='$CC -r -o $output$reload_objs' 10643 hardcode_direct=no 10644 ;; 10645 motorola) 10646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10647 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10648 ;; 10649 esac 10650 runpath_var='LD_RUN_PATH' 10651 hardcode_shlibpath_var=no 10652 ;; 10653 10654 sysv4.3*) 10655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10656 hardcode_shlibpath_var=no 10657 export_dynamic_flag_spec='-Bexport' 10658 ;; 10659 10660 sysv4*MP*) 10661 if test -d /usr/nec; then 10662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10663 hardcode_shlibpath_var=no 10664 runpath_var=LD_RUN_PATH 10665 hardcode_runpath_var=yes 10666 ld_shlibs=yes 10667 fi 10668 ;; 10669 10670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10671 no_undefined_flag='${wl}-z,text' 10672 archive_cmds_need_lc=no 10673 hardcode_shlibpath_var=no 10674 runpath_var='LD_RUN_PATH' 10675 10676 if test "$GCC" = yes; then 10677 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10678 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10679 else 10680 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10681 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10682 fi 10683 ;; 10684 10685 sysv5* | sco3.2v5* | sco5v6*) 10686 # Note: We can NOT use -z defs as we might desire, because we do not 10687 # link with -lc, and that would cause any symbols used from libc to 10688 # always be unresolved, which means just about no library would 10689 # ever link correctly. If we're not using GNU ld we use -z text 10690 # though, which does catch some bad symbols but isn't as heavy-handed 10691 # as -z defs. 10692 no_undefined_flag='${wl}-z,text' 10693 allow_undefined_flag='${wl}-z,nodefs' 10694 archive_cmds_need_lc=no 10695 hardcode_shlibpath_var=no 10696 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10697 hardcode_libdir_separator=':' 10698 link_all_deplibs=yes 10699 export_dynamic_flag_spec='${wl}-Bexport' 10700 runpath_var='LD_RUN_PATH' 10701 10702 if test "$GCC" = yes; then 10703 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10704 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10705 else 10706 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10707 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10708 fi 10709 ;; 10710 10711 uts4*) 10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10713 hardcode_libdir_flag_spec='-L$libdir' 10714 hardcode_shlibpath_var=no 10715 ;; 10716 10717 *) 10718 ld_shlibs=no 10719 ;; 10720 esac 10721 10722 if test x$host_vendor = xsni; then 10723 case $host in 10724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10725 export_dynamic_flag_spec='${wl}-Blargedynsym' 10726 ;; 10727 esac 10728 fi 10729 fi 10730 10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10732$as_echo "$ld_shlibs" >&6; } 10733test "$ld_shlibs" = no && can_build_shared=no 10734 10735with_gnu_ld=$with_gnu_ld 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751# 10752# Do we need to explicitly link libc? 10753# 10754case "x$archive_cmds_need_lc" in 10755x|xyes) 10756 # Assume -lc should be added 10757 archive_cmds_need_lc=yes 10758 10759 if test "$enable_shared" = yes && test "$GCC" = yes; then 10760 case $archive_cmds in 10761 *'~'*) 10762 # FIXME: we may have to deal with multi-command sequences. 10763 ;; 10764 '$CC '*) 10765 # Test whether the compiler implicitly links with -lc since on some 10766 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10767 # to ld, don't add -lc before -lgcc. 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10769$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10770if ${lt_cv_archive_cmds_need_lc+:} false; then : 10771 $as_echo_n "(cached) " >&6 10772else 10773 $RM conftest* 10774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10775 10776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10777 (eval $ac_compile) 2>&5 10778 ac_status=$? 10779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10780 test $ac_status = 0; } 2>conftest.err; then 10781 soname=conftest 10782 lib=conftest 10783 libobjs=conftest.$ac_objext 10784 deplibs= 10785 wl=$lt_prog_compiler_wl 10786 pic_flag=$lt_prog_compiler_pic 10787 compiler_flags=-v 10788 linker_flags=-v 10789 verstring= 10790 output_objdir=. 10791 libname=conftest 10792 lt_save_allow_undefined_flag=$allow_undefined_flag 10793 allow_undefined_flag= 10794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10795 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10796 ac_status=$? 10797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10798 test $ac_status = 0; } 10799 then 10800 lt_cv_archive_cmds_need_lc=no 10801 else 10802 lt_cv_archive_cmds_need_lc=yes 10803 fi 10804 allow_undefined_flag=$lt_save_allow_undefined_flag 10805 else 10806 cat conftest.err 1>&5 10807 fi 10808 $RM conftest* 10809 10810fi 10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10812$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10813 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10814 ;; 10815 esac 10816 fi 10817 ;; 10818esac 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10972$as_echo_n "checking dynamic linker characteristics... " >&6; } 10973 10974if test "$GCC" = yes; then 10975 case $host_os in 10976 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10977 *) lt_awk_arg="/^libraries:/" ;; 10978 esac 10979 case $host_os in 10980 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10981 *) lt_sed_strip_eq="s,=/,/,g" ;; 10982 esac 10983 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10984 case $lt_search_path_spec in 10985 *\;*) 10986 # if the path contains ";" then we assume it to be the separator 10987 # otherwise default to the standard path separator (i.e. ":") - it is 10988 # assumed that no part of a normal pathname contains ";" but that should 10989 # okay in the real world where ";" in dirpaths is itself problematic. 10990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10991 ;; 10992 *) 10993 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10994 ;; 10995 esac 10996 # Ok, now we have the path, separated by spaces, we can step through it 10997 # and add multilib dir if necessary. 10998 lt_tmp_lt_search_path_spec= 10999 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11000 for lt_sys_path in $lt_search_path_spec; do 11001 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11003 else 11004 test -d "$lt_sys_path" && \ 11005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11006 fi 11007 done 11008 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11009BEGIN {RS=" "; FS="/|\n";} { 11010 lt_foo=""; 11011 lt_count=0; 11012 for (lt_i = NF; lt_i > 0; lt_i--) { 11013 if ($lt_i != "" && $lt_i != ".") { 11014 if ($lt_i == "..") { 11015 lt_count++; 11016 } else { 11017 if (lt_count == 0) { 11018 lt_foo="/" $lt_i lt_foo; 11019 } else { 11020 lt_count--; 11021 } 11022 } 11023 } 11024 } 11025 if (lt_foo != "") { lt_freq[lt_foo]++; } 11026 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11027}'` 11028 # AWK program above erroneously prepends '/' to C:/dos/paths 11029 # for these hosts. 11030 case $host_os in 11031 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11032 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11033 esac 11034 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11035else 11036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11037fi 11038library_names_spec= 11039libname_spec='lib$name' 11040soname_spec= 11041shrext_cmds=".so" 11042postinstall_cmds= 11043postuninstall_cmds= 11044finish_cmds= 11045finish_eval= 11046shlibpath_var= 11047shlibpath_overrides_runpath=unknown 11048version_type=none 11049dynamic_linker="$host_os ld.so" 11050sys_lib_dlsearch_path_spec="/lib /usr/lib" 11051need_lib_prefix=unknown 11052hardcode_into_libs=no 11053 11054# when you set need_version to no, make sure it does not cause -set_version 11055# flags to be left without arguments 11056need_version=unknown 11057 11058case $host_os in 11059aix3*) 11060 version_type=linux # correct to gnu/linux during the next big refactor 11061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11062 shlibpath_var=LIBPATH 11063 11064 # AIX 3 has no versioning support, so we append a major version to the name. 11065 soname_spec='${libname}${release}${shared_ext}$major' 11066 ;; 11067 11068aix[4-9]*) 11069 version_type=linux # correct to gnu/linux during the next big refactor 11070 need_lib_prefix=no 11071 need_version=no 11072 hardcode_into_libs=yes 11073 if test "$host_cpu" = ia64; then 11074 # AIX 5 supports IA64 11075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11076 shlibpath_var=LD_LIBRARY_PATH 11077 else 11078 # With GCC up to 2.95.x, collect2 would create an import file 11079 # for dependence libraries. The import file would start with 11080 # the line `#! .'. This would cause the generated library to 11081 # depend on `.', always an invalid library. This was fixed in 11082 # development snapshots of GCC prior to 3.0. 11083 case $host_os in 11084 aix4 | aix4.[01] | aix4.[01].*) 11085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11086 echo ' yes ' 11087 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11088 : 11089 else 11090 can_build_shared=no 11091 fi 11092 ;; 11093 esac 11094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11095 # soname into executable. Probably we can add versioning support to 11096 # collect2, so additional links can be useful in future. 11097 if test "$aix_use_runtimelinking" = yes; then 11098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11099 # instead of lib<name>.a to let people know that these are not 11100 # typical AIX shared libraries. 11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11102 else 11103 # We preserve .a as extension for shared libraries through AIX4.2 11104 # and later when we are not doing run time linking. 11105 library_names_spec='${libname}${release}.a $libname.a' 11106 soname_spec='${libname}${release}${shared_ext}$major' 11107 fi 11108 shlibpath_var=LIBPATH 11109 fi 11110 ;; 11111 11112amigaos*) 11113 case $host_cpu in 11114 powerpc) 11115 # Since July 2007 AmigaOS4 officially supports .so libraries. 11116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11118 ;; 11119 m68k) 11120 library_names_spec='$libname.ixlibrary $libname.a' 11121 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11122 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 11123 ;; 11124 esac 11125 ;; 11126 11127beos*) 11128 library_names_spec='${libname}${shared_ext}' 11129 dynamic_linker="$host_os ld.so" 11130 shlibpath_var=LIBRARY_PATH 11131 ;; 11132 11133bsdi[45]*) 11134 version_type=linux # correct to gnu/linux during the next big refactor 11135 need_version=no 11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11137 soname_spec='${libname}${release}${shared_ext}$major' 11138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11139 shlibpath_var=LD_LIBRARY_PATH 11140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11142 # the default ld.so.conf also contains /usr/contrib/lib and 11143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11144 # libtool to hard-code these into programs 11145 ;; 11146 11147cygwin* | mingw* | pw32* | cegcc*) 11148 version_type=windows 11149 shrext_cmds=".dll" 11150 need_version=no 11151 need_lib_prefix=no 11152 11153 case $GCC,$cc_basename in 11154 yes,*) 11155 # gcc 11156 library_names_spec='$libname.dll.a' 11157 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11158 postinstall_cmds='base_file=`basename \${file}`~ 11159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11160 dldir=$destdir/`dirname \$dlpath`~ 11161 test -d \$dldir || mkdir -p \$dldir~ 11162 $install_prog $dir/$dlname \$dldir/$dlname~ 11163 chmod a+x \$dldir/$dlname~ 11164 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11165 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11166 fi' 11167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11168 dlpath=$dir/\$dldll~ 11169 $RM \$dlpath' 11170 shlibpath_overrides_runpath=yes 11171 11172 case $host_os in 11173 cygwin*) 11174 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11176 11177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11178 ;; 11179 mingw* | cegcc*) 11180 # MinGW DLLs use traditional 'lib' prefix 11181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11182 ;; 11183 pw32*) 11184 # pw32 DLLs use 'pw' prefix rather than 'lib' 11185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11186 ;; 11187 esac 11188 dynamic_linker='Win32 ld.exe' 11189 ;; 11190 11191 *,cl*) 11192 # Native MSVC 11193 libname_spec='$name' 11194 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11195 library_names_spec='${libname}.dll.lib' 11196 11197 case $build_os in 11198 mingw*) 11199 sys_lib_search_path_spec= 11200 lt_save_ifs=$IFS 11201 IFS=';' 11202 for lt_path in $LIB 11203 do 11204 IFS=$lt_save_ifs 11205 # Let DOS variable expansion print the short 8.3 style file name. 11206 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11207 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11208 done 11209 IFS=$lt_save_ifs 11210 # Convert to MSYS style. 11211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11212 ;; 11213 cygwin*) 11214 # Convert to unix form, then to dos form, then back to unix form 11215 # but this time dos style (no spaces!) so that the unix form looks 11216 # like /cygdrive/c/PROGRA~1:/cygdr... 11217 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11218 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11219 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11220 ;; 11221 *) 11222 sys_lib_search_path_spec="$LIB" 11223 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11224 # It is most probably a Windows format PATH. 11225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11226 else 11227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11228 fi 11229 # FIXME: find the short name or the path components, as spaces are 11230 # common. (e.g. "Program Files" -> "PROGRA~1") 11231 ;; 11232 esac 11233 11234 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11235 postinstall_cmds='base_file=`basename \${file}`~ 11236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11237 dldir=$destdir/`dirname \$dlpath`~ 11238 test -d \$dldir || mkdir -p \$dldir~ 11239 $install_prog $dir/$dlname \$dldir/$dlname' 11240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11241 dlpath=$dir/\$dldll~ 11242 $RM \$dlpath' 11243 shlibpath_overrides_runpath=yes 11244 dynamic_linker='Win32 link.exe' 11245 ;; 11246 11247 *) 11248 # Assume MSVC wrapper 11249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11250 dynamic_linker='Win32 ld.exe' 11251 ;; 11252 esac 11253 # FIXME: first we should search . and the directory the executable is in 11254 shlibpath_var=PATH 11255 ;; 11256 11257darwin* | rhapsody*) 11258 dynamic_linker="$host_os dyld" 11259 version_type=darwin 11260 need_lib_prefix=no 11261 need_version=no 11262 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11263 soname_spec='${libname}${release}${major}$shared_ext' 11264 shlibpath_overrides_runpath=yes 11265 shlibpath_var=DYLD_LIBRARY_PATH 11266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11267 11268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11270 ;; 11271 11272dgux*) 11273 version_type=linux # correct to gnu/linux during the next big refactor 11274 need_lib_prefix=no 11275 need_version=no 11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11277 soname_spec='${libname}${release}${shared_ext}$major' 11278 shlibpath_var=LD_LIBRARY_PATH 11279 ;; 11280 11281freebsd* | dragonfly*) 11282 # DragonFly does not have aout. When/if they implement a new 11283 # versioning mechanism, adjust this. 11284 if test -x /usr/bin/objformat; then 11285 objformat=`/usr/bin/objformat` 11286 else 11287 case $host_os in 11288 freebsd[23].*) objformat=aout ;; 11289 *) objformat=elf ;; 11290 esac 11291 fi 11292 version_type=freebsd-$objformat 11293 case $version_type in 11294 freebsd-elf*) 11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11296 need_version=no 11297 need_lib_prefix=no 11298 ;; 11299 freebsd-*) 11300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11301 need_version=yes 11302 ;; 11303 esac 11304 shlibpath_var=LD_LIBRARY_PATH 11305 case $host_os in 11306 freebsd2.*) 11307 shlibpath_overrides_runpath=yes 11308 ;; 11309 freebsd3.[01]* | freebsdelf3.[01]*) 11310 shlibpath_overrides_runpath=yes 11311 hardcode_into_libs=yes 11312 ;; 11313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11315 shlibpath_overrides_runpath=no 11316 hardcode_into_libs=yes 11317 ;; 11318 *) # from 4.6 on, and DragonFly 11319 shlibpath_overrides_runpath=yes 11320 hardcode_into_libs=yes 11321 ;; 11322 esac 11323 ;; 11324 11325gnu*) 11326 version_type=linux # correct to gnu/linux during the next big refactor 11327 need_lib_prefix=no 11328 need_version=no 11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11330 soname_spec='${libname}${release}${shared_ext}$major' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 shlibpath_overrides_runpath=no 11333 hardcode_into_libs=yes 11334 ;; 11335 11336haiku*) 11337 version_type=linux # correct to gnu/linux during the next big refactor 11338 need_lib_prefix=no 11339 need_version=no 11340 dynamic_linker="$host_os runtime_loader" 11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11342 soname_spec='${libname}${release}${shared_ext}$major' 11343 shlibpath_var=LIBRARY_PATH 11344 shlibpath_overrides_runpath=yes 11345 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11346 hardcode_into_libs=yes 11347 ;; 11348 11349hpux9* | hpux10* | hpux11*) 11350 # Give a soname corresponding to the major version so that dld.sl refuses to 11351 # link against other versions. 11352 version_type=sunos 11353 need_lib_prefix=no 11354 need_version=no 11355 case $host_cpu in 11356 ia64*) 11357 shrext_cmds='.so' 11358 hardcode_into_libs=yes 11359 dynamic_linker="$host_os dld.so" 11360 shlibpath_var=LD_LIBRARY_PATH 11361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11363 soname_spec='${libname}${release}${shared_ext}$major' 11364 if test "X$HPUX_IA64_MODE" = X32; then 11365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11366 else 11367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11368 fi 11369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11370 ;; 11371 hppa*64*) 11372 shrext_cmds='.sl' 11373 hardcode_into_libs=yes 11374 dynamic_linker="$host_os dld.sl" 11375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11378 soname_spec='${libname}${release}${shared_ext}$major' 11379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11381 ;; 11382 *) 11383 shrext_cmds='.sl' 11384 dynamic_linker="$host_os dld.sl" 11385 shlibpath_var=SHLIB_PATH 11386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11388 soname_spec='${libname}${release}${shared_ext}$major' 11389 ;; 11390 esac 11391 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11392 postinstall_cmds='chmod 555 $lib' 11393 # or fails outright, so override atomically: 11394 install_override_mode=555 11395 ;; 11396 11397interix[3-9]*) 11398 version_type=linux # correct to gnu/linux during the next big refactor 11399 need_lib_prefix=no 11400 need_version=no 11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11402 soname_spec='${libname}${release}${shared_ext}$major' 11403 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11404 shlibpath_var=LD_LIBRARY_PATH 11405 shlibpath_overrides_runpath=no 11406 hardcode_into_libs=yes 11407 ;; 11408 11409irix5* | irix6* | nonstopux*) 11410 case $host_os in 11411 nonstopux*) version_type=nonstopux ;; 11412 *) 11413 if test "$lt_cv_prog_gnu_ld" = yes; then 11414 version_type=linux # correct to gnu/linux during the next big refactor 11415 else 11416 version_type=irix 11417 fi ;; 11418 esac 11419 need_lib_prefix=no 11420 need_version=no 11421 soname_spec='${libname}${release}${shared_ext}$major' 11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11423 case $host_os in 11424 irix5* | nonstopux*) 11425 libsuff= shlibsuff= 11426 ;; 11427 *) 11428 case $LD in # libtool.m4 will add one of these switches to LD 11429 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11430 libsuff= shlibsuff= libmagic=32-bit;; 11431 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11432 libsuff=32 shlibsuff=N32 libmagic=N32;; 11433 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11434 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11435 *) libsuff= shlibsuff= libmagic=never-match;; 11436 esac 11437 ;; 11438 esac 11439 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11440 shlibpath_overrides_runpath=no 11441 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11442 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11443 hardcode_into_libs=yes 11444 ;; 11445 11446# No shared lib support for Linux oldld, aout, or coff. 11447linux*oldld* | linux*aout* | linux*coff*) 11448 dynamic_linker=no 11449 ;; 11450 11451# This must be glibc/ELF. 11452linux* | k*bsd*-gnu | kopensolaris*-gnu) 11453 version_type=linux # correct to gnu/linux during the next big refactor 11454 need_lib_prefix=no 11455 need_version=no 11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11457 soname_spec='${libname}${release}${shared_ext}$major' 11458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11459 shlibpath_var=LD_LIBRARY_PATH 11460 shlibpath_overrides_runpath=no 11461 11462 # Some binutils ld are patched to set DT_RUNPATH 11463 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 lt_cv_shlibpath_overrides_runpath=no 11467 save_LDFLAGS=$LDFLAGS 11468 save_libdir=$libdir 11469 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11470 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11472/* end confdefs.h. */ 11473 11474int 11475main () 11476{ 11477 11478 ; 11479 return 0; 11480} 11481_ACEOF 11482if ac_fn_c_try_link "$LINENO"; then : 11483 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11484 lt_cv_shlibpath_overrides_runpath=yes 11485fi 11486fi 11487rm -f core conftest.err conftest.$ac_objext \ 11488 conftest$ac_exeext conftest.$ac_ext 11489 LDFLAGS=$save_LDFLAGS 11490 libdir=$save_libdir 11491 11492fi 11493 11494 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11495 11496 # This implies no fast_install, which is unacceptable. 11497 # Some rework will be needed to allow for fast_install 11498 # before this can be enabled. 11499 hardcode_into_libs=yes 11500 11501 # Append ld.so.conf contents to the search path 11502 if test -f /etc/ld.so.conf; then 11503 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;s/"//g;/^$/d' | tr '\n' ' '` 11504 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11505 fi 11506 11507 # We used to test for /lib/ld.so.1 and disable shared libraries on 11508 # powerpc, because MkLinux only supported shared libraries with the 11509 # GNU dynamic linker. Since this was broken with cross compilers, 11510 # most powerpc-linux boxes support dynamic linking these days and 11511 # people can always --disable-shared, the test was removed, and we 11512 # assume the GNU/Linux dynamic linker is in use. 11513 dynamic_linker='GNU/Linux ld.so' 11514 ;; 11515 11516netbsd*) 11517 version_type=sunos 11518 need_lib_prefix=no 11519 need_version=no 11520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11523 dynamic_linker='NetBSD (a.out) ld.so' 11524 else 11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11526 soname_spec='${libname}${release}${shared_ext}$major' 11527 dynamic_linker='NetBSD ld.elf_so' 11528 fi 11529 shlibpath_var=LD_LIBRARY_PATH 11530 shlibpath_overrides_runpath=yes 11531 hardcode_into_libs=yes 11532 ;; 11533 11534newsos6) 11535 version_type=linux # correct to gnu/linux during the next big refactor 11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11537 shlibpath_var=LD_LIBRARY_PATH 11538 shlibpath_overrides_runpath=yes 11539 ;; 11540 11541*nto* | *qnx*) 11542 version_type=qnx 11543 need_lib_prefix=no 11544 need_version=no 11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11546 soname_spec='${libname}${release}${shared_ext}$major' 11547 shlibpath_var=LD_LIBRARY_PATH 11548 shlibpath_overrides_runpath=no 11549 hardcode_into_libs=yes 11550 dynamic_linker='ldqnx.so' 11551 ;; 11552 11553openbsd*) 11554 version_type=sunos 11555 sys_lib_dlsearch_path_spec="/usr/lib" 11556 need_lib_prefix=no 11557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11558 case $host_os in 11559 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11560 *) need_version=no ;; 11561 esac 11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11564 shlibpath_var=LD_LIBRARY_PATH 11565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11566 case $host_os in 11567 openbsd2.[89] | openbsd2.[89].*) 11568 shlibpath_overrides_runpath=no 11569 ;; 11570 *) 11571 shlibpath_overrides_runpath=yes 11572 ;; 11573 esac 11574 else 11575 shlibpath_overrides_runpath=yes 11576 fi 11577 ;; 11578 11579os2*) 11580 libname_spec='$name' 11581 shrext_cmds=".dll" 11582 need_lib_prefix=no 11583 library_names_spec='$libname${shared_ext} $libname.a' 11584 dynamic_linker='OS/2 ld.exe' 11585 shlibpath_var=LIBPATH 11586 ;; 11587 11588osf3* | osf4* | osf5*) 11589 version_type=osf 11590 need_lib_prefix=no 11591 need_version=no 11592 soname_spec='${libname}${release}${shared_ext}$major' 11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11594 shlibpath_var=LD_LIBRARY_PATH 11595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11597 ;; 11598 11599rdos*) 11600 dynamic_linker=no 11601 ;; 11602 11603solaris*) 11604 version_type=linux # correct to gnu/linux during the next big refactor 11605 need_lib_prefix=no 11606 need_version=no 11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11608 soname_spec='${libname}${release}${shared_ext}$major' 11609 shlibpath_var=LD_LIBRARY_PATH 11610 shlibpath_overrides_runpath=yes 11611 hardcode_into_libs=yes 11612 # ldd complains unless libraries are executable 11613 postinstall_cmds='chmod +x $lib' 11614 ;; 11615 11616sunos4*) 11617 version_type=sunos 11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11620 shlibpath_var=LD_LIBRARY_PATH 11621 shlibpath_overrides_runpath=yes 11622 if test "$with_gnu_ld" = yes; then 11623 need_lib_prefix=no 11624 fi 11625 need_version=yes 11626 ;; 11627 11628sysv4 | sysv4.3*) 11629 version_type=linux # correct to gnu/linux during the next big refactor 11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11631 soname_spec='${libname}${release}${shared_ext}$major' 11632 shlibpath_var=LD_LIBRARY_PATH 11633 case $host_vendor in 11634 sni) 11635 shlibpath_overrides_runpath=no 11636 need_lib_prefix=no 11637 runpath_var=LD_RUN_PATH 11638 ;; 11639 siemens) 11640 need_lib_prefix=no 11641 ;; 11642 motorola) 11643 need_lib_prefix=no 11644 need_version=no 11645 shlibpath_overrides_runpath=no 11646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11647 ;; 11648 esac 11649 ;; 11650 11651sysv4*MP*) 11652 if test -d /usr/nec ;then 11653 version_type=linux # correct to gnu/linux during the next big refactor 11654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11655 soname_spec='$libname${shared_ext}.$major' 11656 shlibpath_var=LD_LIBRARY_PATH 11657 fi 11658 ;; 11659 11660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11661 version_type=freebsd-elf 11662 need_lib_prefix=no 11663 need_version=no 11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11665 soname_spec='${libname}${release}${shared_ext}$major' 11666 shlibpath_var=LD_LIBRARY_PATH 11667 shlibpath_overrides_runpath=yes 11668 hardcode_into_libs=yes 11669 if test "$with_gnu_ld" = yes; then 11670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11671 else 11672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11673 case $host_os in 11674 sco3.2v5*) 11675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11676 ;; 11677 esac 11678 fi 11679 sys_lib_dlsearch_path_spec='/usr/lib' 11680 ;; 11681 11682tpf*) 11683 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11684 version_type=linux # correct to gnu/linux during the next big refactor 11685 need_lib_prefix=no 11686 need_version=no 11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11688 shlibpath_var=LD_LIBRARY_PATH 11689 shlibpath_overrides_runpath=no 11690 hardcode_into_libs=yes 11691 ;; 11692 11693uts4*) 11694 version_type=linux # correct to gnu/linux during the next big refactor 11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11696 soname_spec='${libname}${release}${shared_ext}$major' 11697 shlibpath_var=LD_LIBRARY_PATH 11698 ;; 11699 11700*) 11701 dynamic_linker=no 11702 ;; 11703esac 11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11705$as_echo "$dynamic_linker" >&6; } 11706test "$dynamic_linker" = no && can_build_shared=no 11707 11708variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11709if test "$GCC" = yes; then 11710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11711fi 11712 11713if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11714 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11715fi 11716if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11717 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11718fi 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11812$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11813hardcode_action= 11814if test -n "$hardcode_libdir_flag_spec" || 11815 test -n "$runpath_var" || 11816 test "X$hardcode_automatic" = "Xyes" ; then 11817 11818 # We can hardcode non-existent directories. 11819 if test "$hardcode_direct" != no && 11820 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11821 # have to relink, otherwise we might link with an installed library 11822 # when we should be linking with a yet-to-be-installed one 11823 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11824 test "$hardcode_minus_L" != no; then 11825 # Linking always hardcodes the temporary library directory. 11826 hardcode_action=relink 11827 else 11828 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11829 hardcode_action=immediate 11830 fi 11831else 11832 # We cannot hardcode anything, or else we can only hardcode existing 11833 # directories. 11834 hardcode_action=unsupported 11835fi 11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11837$as_echo "$hardcode_action" >&6; } 11838 11839if test "$hardcode_action" = relink || 11840 test "$inherit_rpath" = yes; then 11841 # Fast installation is not supported 11842 enable_fast_install=no 11843elif test "$shlibpath_overrides_runpath" = yes || 11844 test "$enable_shared" = no; then 11845 # Fast installation is not necessary 11846 enable_fast_install=needless 11847fi 11848 11849 11850 11851 11852 11853 11854 if test "x$enable_dlopen" != xyes; then 11855 enable_dlopen=unknown 11856 enable_dlopen_self=unknown 11857 enable_dlopen_self_static=unknown 11858else 11859 lt_cv_dlopen=no 11860 lt_cv_dlopen_libs= 11861 11862 case $host_os in 11863 beos*) 11864 lt_cv_dlopen="load_add_on" 11865 lt_cv_dlopen_libs= 11866 lt_cv_dlopen_self=yes 11867 ;; 11868 11869 mingw* | pw32* | cegcc*) 11870 lt_cv_dlopen="LoadLibrary" 11871 lt_cv_dlopen_libs= 11872 ;; 11873 11874 cygwin*) 11875 lt_cv_dlopen="dlopen" 11876 lt_cv_dlopen_libs= 11877 ;; 11878 11879 darwin*) 11880 # if libdl is installed we need to link against it 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11882$as_echo_n "checking for dlopen in -ldl... " >&6; } 11883if ${ac_cv_lib_dl_dlopen+:} false; then : 11884 $as_echo_n "(cached) " >&6 11885else 11886 ac_check_lib_save_LIBS=$LIBS 11887LIBS="-ldl $LIBS" 11888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11889/* end confdefs.h. */ 11890 11891/* Override any GCC internal prototype to avoid an error. 11892 Use char because int might match the return type of a GCC 11893 builtin and then its argument prototype would still apply. */ 11894#ifdef __cplusplus 11895extern "C" 11896#endif 11897char dlopen (); 11898int 11899main () 11900{ 11901return dlopen (); 11902 ; 11903 return 0; 11904} 11905_ACEOF 11906if ac_fn_c_try_link "$LINENO"; then : 11907 ac_cv_lib_dl_dlopen=yes 11908else 11909 ac_cv_lib_dl_dlopen=no 11910fi 11911rm -f core conftest.err conftest.$ac_objext \ 11912 conftest$ac_exeext conftest.$ac_ext 11913LIBS=$ac_check_lib_save_LIBS 11914fi 11915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11916$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11917if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11919else 11920 11921 lt_cv_dlopen="dyld" 11922 lt_cv_dlopen_libs= 11923 lt_cv_dlopen_self=yes 11924 11925fi 11926 11927 ;; 11928 11929 *) 11930 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11931if test "x$ac_cv_func_shl_load" = xyes; then : 11932 lt_cv_dlopen="shl_load" 11933else 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11935$as_echo_n "checking for shl_load in -ldld... " >&6; } 11936if ${ac_cv_lib_dld_shl_load+:} false; then : 11937 $as_echo_n "(cached) " >&6 11938else 11939 ac_check_lib_save_LIBS=$LIBS 11940LIBS="-ldld $LIBS" 11941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11942/* end confdefs.h. */ 11943 11944/* Override any GCC internal prototype to avoid an error. 11945 Use char because int might match the return type of a GCC 11946 builtin and then its argument prototype would still apply. */ 11947#ifdef __cplusplus 11948extern "C" 11949#endif 11950char shl_load (); 11951int 11952main () 11953{ 11954return shl_load (); 11955 ; 11956 return 0; 11957} 11958_ACEOF 11959if ac_fn_c_try_link "$LINENO"; then : 11960 ac_cv_lib_dld_shl_load=yes 11961else 11962 ac_cv_lib_dld_shl_load=no 11963fi 11964rm -f core conftest.err conftest.$ac_objext \ 11965 conftest$ac_exeext conftest.$ac_ext 11966LIBS=$ac_check_lib_save_LIBS 11967fi 11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11969$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11970if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11972else 11973 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11974if test "x$ac_cv_func_dlopen" = xyes; then : 11975 lt_cv_dlopen="dlopen" 11976else 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11978$as_echo_n "checking for dlopen in -ldl... " >&6; } 11979if ${ac_cv_lib_dl_dlopen+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 ac_check_lib_save_LIBS=$LIBS 11983LIBS="-ldl $LIBS" 11984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985/* end confdefs.h. */ 11986 11987/* Override any GCC internal prototype to avoid an error. 11988 Use char because int might match the return type of a GCC 11989 builtin and then its argument prototype would still apply. */ 11990#ifdef __cplusplus 11991extern "C" 11992#endif 11993char dlopen (); 11994int 11995main () 11996{ 11997return dlopen (); 11998 ; 11999 return 0; 12000} 12001_ACEOF 12002if ac_fn_c_try_link "$LINENO"; then : 12003 ac_cv_lib_dl_dlopen=yes 12004else 12005 ac_cv_lib_dl_dlopen=no 12006fi 12007rm -f core conftest.err conftest.$ac_objext \ 12008 conftest$ac_exeext conftest.$ac_ext 12009LIBS=$ac_check_lib_save_LIBS 12010fi 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12012$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12013if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12015else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12017$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12018if ${ac_cv_lib_svld_dlopen+:} false; then : 12019 $as_echo_n "(cached) " >&6 12020else 12021 ac_check_lib_save_LIBS=$LIBS 12022LIBS="-lsvld $LIBS" 12023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024/* end confdefs.h. */ 12025 12026/* Override any GCC internal prototype to avoid an error. 12027 Use char because int might match the return type of a GCC 12028 builtin and then its argument prototype would still apply. */ 12029#ifdef __cplusplus 12030extern "C" 12031#endif 12032char dlopen (); 12033int 12034main () 12035{ 12036return dlopen (); 12037 ; 12038 return 0; 12039} 12040_ACEOF 12041if ac_fn_c_try_link "$LINENO"; then : 12042 ac_cv_lib_svld_dlopen=yes 12043else 12044 ac_cv_lib_svld_dlopen=no 12045fi 12046rm -f core conftest.err conftest.$ac_objext \ 12047 conftest$ac_exeext conftest.$ac_ext 12048LIBS=$ac_check_lib_save_LIBS 12049fi 12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12051$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12052if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12054else 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12056$as_echo_n "checking for dld_link in -ldld... " >&6; } 12057if ${ac_cv_lib_dld_dld_link+:} false; then : 12058 $as_echo_n "(cached) " >&6 12059else 12060 ac_check_lib_save_LIBS=$LIBS 12061LIBS="-ldld $LIBS" 12062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12063/* end confdefs.h. */ 12064 12065/* Override any GCC internal prototype to avoid an error. 12066 Use char because int might match the return type of a GCC 12067 builtin and then its argument prototype would still apply. */ 12068#ifdef __cplusplus 12069extern "C" 12070#endif 12071char dld_link (); 12072int 12073main () 12074{ 12075return dld_link (); 12076 ; 12077 return 0; 12078} 12079_ACEOF 12080if ac_fn_c_try_link "$LINENO"; then : 12081 ac_cv_lib_dld_dld_link=yes 12082else 12083 ac_cv_lib_dld_dld_link=no 12084fi 12085rm -f core conftest.err conftest.$ac_objext \ 12086 conftest$ac_exeext conftest.$ac_ext 12087LIBS=$ac_check_lib_save_LIBS 12088fi 12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12090$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12091if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12093fi 12094 12095 12096fi 12097 12098 12099fi 12100 12101 12102fi 12103 12104 12105fi 12106 12107 12108fi 12109 12110 ;; 12111 esac 12112 12113 if test "x$lt_cv_dlopen" != xno; then 12114 enable_dlopen=yes 12115 else 12116 enable_dlopen=no 12117 fi 12118 12119 case $lt_cv_dlopen in 12120 dlopen) 12121 save_CPPFLAGS="$CPPFLAGS" 12122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12123 12124 save_LDFLAGS="$LDFLAGS" 12125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12126 12127 save_LIBS="$LIBS" 12128 LIBS="$lt_cv_dlopen_libs $LIBS" 12129 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12131$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12132if ${lt_cv_dlopen_self+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 if test "$cross_compiling" = yes; then : 12136 lt_cv_dlopen_self=cross 12137else 12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12139 lt_status=$lt_dlunknown 12140 cat > conftest.$ac_ext <<_LT_EOF 12141#line $LINENO "configure" 12142#include "confdefs.h" 12143 12144#if HAVE_DLFCN_H 12145#include <dlfcn.h> 12146#endif 12147 12148#include <stdio.h> 12149 12150#ifdef RTLD_GLOBAL 12151# define LT_DLGLOBAL RTLD_GLOBAL 12152#else 12153# ifdef DL_GLOBAL 12154# define LT_DLGLOBAL DL_GLOBAL 12155# else 12156# define LT_DLGLOBAL 0 12157# endif 12158#endif 12159 12160/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12161 find out it does not work in some platform. */ 12162#ifndef LT_DLLAZY_OR_NOW 12163# ifdef RTLD_LAZY 12164# define LT_DLLAZY_OR_NOW RTLD_LAZY 12165# else 12166# ifdef DL_LAZY 12167# define LT_DLLAZY_OR_NOW DL_LAZY 12168# else 12169# ifdef RTLD_NOW 12170# define LT_DLLAZY_OR_NOW RTLD_NOW 12171# else 12172# ifdef DL_NOW 12173# define LT_DLLAZY_OR_NOW DL_NOW 12174# else 12175# define LT_DLLAZY_OR_NOW 0 12176# endif 12177# endif 12178# endif 12179# endif 12180#endif 12181 12182/* When -fvisbility=hidden is used, assume the code has been annotated 12183 correspondingly for the symbols needed. */ 12184#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12185int fnord () __attribute__((visibility("default"))); 12186#endif 12187 12188int fnord () { return 42; } 12189int main () 12190{ 12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12192 int status = $lt_dlunknown; 12193 12194 if (self) 12195 { 12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12197 else 12198 { 12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12200 else puts (dlerror ()); 12201 } 12202 /* dlclose (self); */ 12203 } 12204 else 12205 puts (dlerror ()); 12206 12207 return status; 12208} 12209_LT_EOF 12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12211 (eval $ac_link) 2>&5 12212 ac_status=$? 12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12215 (./conftest; exit; ) >&5 2>/dev/null 12216 lt_status=$? 12217 case x$lt_status in 12218 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12219 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12220 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12221 esac 12222 else : 12223 # compilation failed 12224 lt_cv_dlopen_self=no 12225 fi 12226fi 12227rm -fr conftest* 12228 12229 12230fi 12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12232$as_echo "$lt_cv_dlopen_self" >&6; } 12233 12234 if test "x$lt_cv_dlopen_self" = xyes; then 12235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12237$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12238if ${lt_cv_dlopen_self_static+:} false; then : 12239 $as_echo_n "(cached) " >&6 12240else 12241 if test "$cross_compiling" = yes; then : 12242 lt_cv_dlopen_self_static=cross 12243else 12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12245 lt_status=$lt_dlunknown 12246 cat > conftest.$ac_ext <<_LT_EOF 12247#line $LINENO "configure" 12248#include "confdefs.h" 12249 12250#if HAVE_DLFCN_H 12251#include <dlfcn.h> 12252#endif 12253 12254#include <stdio.h> 12255 12256#ifdef RTLD_GLOBAL 12257# define LT_DLGLOBAL RTLD_GLOBAL 12258#else 12259# ifdef DL_GLOBAL 12260# define LT_DLGLOBAL DL_GLOBAL 12261# else 12262# define LT_DLGLOBAL 0 12263# endif 12264#endif 12265 12266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12267 find out it does not work in some platform. */ 12268#ifndef LT_DLLAZY_OR_NOW 12269# ifdef RTLD_LAZY 12270# define LT_DLLAZY_OR_NOW RTLD_LAZY 12271# else 12272# ifdef DL_LAZY 12273# define LT_DLLAZY_OR_NOW DL_LAZY 12274# else 12275# ifdef RTLD_NOW 12276# define LT_DLLAZY_OR_NOW RTLD_NOW 12277# else 12278# ifdef DL_NOW 12279# define LT_DLLAZY_OR_NOW DL_NOW 12280# else 12281# define LT_DLLAZY_OR_NOW 0 12282# endif 12283# endif 12284# endif 12285# endif 12286#endif 12287 12288/* When -fvisbility=hidden is used, assume the code has been annotated 12289 correspondingly for the symbols needed. */ 12290#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12291int fnord () __attribute__((visibility("default"))); 12292#endif 12293 12294int fnord () { return 42; } 12295int main () 12296{ 12297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12298 int status = $lt_dlunknown; 12299 12300 if (self) 12301 { 12302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12303 else 12304 { 12305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12306 else puts (dlerror ()); 12307 } 12308 /* dlclose (self); */ 12309 } 12310 else 12311 puts (dlerror ()); 12312 12313 return status; 12314} 12315_LT_EOF 12316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12317 (eval $ac_link) 2>&5 12318 ac_status=$? 12319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12320 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12321 (./conftest; exit; ) >&5 2>/dev/null 12322 lt_status=$? 12323 case x$lt_status in 12324 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12325 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12326 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12327 esac 12328 else : 12329 # compilation failed 12330 lt_cv_dlopen_self_static=no 12331 fi 12332fi 12333rm -fr conftest* 12334 12335 12336fi 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12338$as_echo "$lt_cv_dlopen_self_static" >&6; } 12339 fi 12340 12341 CPPFLAGS="$save_CPPFLAGS" 12342 LDFLAGS="$save_LDFLAGS" 12343 LIBS="$save_LIBS" 12344 ;; 12345 esac 12346 12347 case $lt_cv_dlopen_self in 12348 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12349 *) enable_dlopen_self=unknown ;; 12350 esac 12351 12352 case $lt_cv_dlopen_self_static in 12353 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12354 *) enable_dlopen_self_static=unknown ;; 12355 esac 12356fi 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374striplib= 12375old_striplib= 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12377$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12378if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12379 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12380 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12382$as_echo "yes" >&6; } 12383else 12384# FIXME - insert some real tests, host_os isn't really good enough 12385 case $host_os in 12386 darwin*) 12387 if test -n "$STRIP" ; then 12388 striplib="$STRIP -x" 12389 old_striplib="$STRIP -S" 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12391$as_echo "yes" >&6; } 12392 else 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12394$as_echo "no" >&6; } 12395 fi 12396 ;; 12397 *) 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12399$as_echo "no" >&6; } 12400 ;; 12401 esac 12402fi 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 # Report which library types will actually be built 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12417$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12419$as_echo "$can_build_shared" >&6; } 12420 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12422$as_echo_n "checking whether to build shared libraries... " >&6; } 12423 test "$can_build_shared" = "no" && enable_shared=no 12424 12425 # On AIX, shared libraries and static libraries use the same namespace, and 12426 # are all built from PIC. 12427 case $host_os in 12428 aix3*) 12429 test "$enable_shared" = yes && enable_static=no 12430 if test -n "$RANLIB"; then 12431 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12432 postinstall_cmds='$RANLIB $lib' 12433 fi 12434 ;; 12435 12436 aix[4-9]*) 12437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12438 test "$enable_shared" = yes && enable_static=no 12439 fi 12440 ;; 12441 esac 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12443$as_echo "$enable_shared" >&6; } 12444 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12446$as_echo_n "checking whether to build static libraries... " >&6; } 12447 # Make sure either enable_shared or enable_static is yes. 12448 test "$enable_shared" = yes || enable_static=yes 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12450$as_echo "$enable_static" >&6; } 12451 12452 12453 12454 12455fi 12456ac_ext=c 12457ac_cpp='$CPP $CPPFLAGS' 12458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12460ac_compiler_gnu=$ac_cv_c_compiler_gnu 12461 12462CC="$lt_save_CC" 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 ac_config_commands="$ac_config_commands libtool" 12479 12480 12481 12482 12483# Only expand once: 12484 12485 12486 12487 12488 CFLAG_VISIBILITY= 12489 HAVE_VISIBILITY=0 12490 if test -n "$GCC"; then 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 12492$as_echo_n "checking whether the -Werror option is usable... " >&6; } 12493 if ${gl_cv_cc_vis_werror+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 12497 gl_save_CFLAGS="$CFLAGS" 12498 CFLAGS="$CFLAGS -Werror" 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502int 12503main () 12504{ 12505 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_compile "$LINENO"; then : 12511 gl_cv_cc_vis_werror=yes 12512else 12513 gl_cv_cc_vis_werror=no 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516 CFLAGS="$gl_save_CFLAGS" 12517fi 12518 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 12520$as_echo "$gl_cv_cc_vis_werror" >&6; } 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 12522$as_echo_n "checking for simple visibility declarations... " >&6; } 12523 if ${gl_cv_cc_visibility+:} false; then : 12524 $as_echo_n "(cached) " >&6 12525else 12526 12527 gl_save_CFLAGS="$CFLAGS" 12528 CFLAGS="$CFLAGS -fvisibility=hidden" 12529 if test $gl_cv_cc_vis_werror = yes; then 12530 CFLAGS="$CFLAGS -Werror" 12531 fi 12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12533/* end confdefs.h. */ 12534extern __attribute__((__visibility__("hidden"))) int hiddenvar; 12535 extern __attribute__((__visibility__("default"))) int exportedvar; 12536 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 12537 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 12538 void dummyfunc (void) {} 12539 12540int 12541main () 12542{ 12543 12544 ; 12545 return 0; 12546} 12547_ACEOF 12548if ac_fn_c_try_compile "$LINENO"; then : 12549 gl_cv_cc_visibility=yes 12550else 12551 gl_cv_cc_visibility=no 12552fi 12553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12554 CFLAGS="$gl_save_CFLAGS" 12555fi 12556 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 12558$as_echo "$gl_cv_cc_visibility" >&6; } 12559 if test $gl_cv_cc_visibility = yes; then 12560 CFLAG_VISIBILITY="-fvisibility=hidden" 12561 HAVE_VISIBILITY=1 12562 fi 12563 fi 12564 12565 12566 12567cat >>confdefs.h <<_ACEOF 12568#define HAVE_VISIBILITY $HAVE_VISIBILITY 12569_ACEOF 12570 12571 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12573$as_echo_n "checking for ANSI C header files... " >&6; } 12574if ${ac_cv_header_stdc+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579#include <stdlib.h> 12580#include <stdarg.h> 12581#include <string.h> 12582#include <float.h> 12583 12584int 12585main () 12586{ 12587 12588 ; 12589 return 0; 12590} 12591_ACEOF 12592if ac_fn_c_try_compile "$LINENO"; then : 12593 ac_cv_header_stdc=yes 12594else 12595 ac_cv_header_stdc=no 12596fi 12597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12598 12599if test $ac_cv_header_stdc = yes; then 12600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603#include <string.h> 12604 12605_ACEOF 12606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12607 $EGREP "memchr" >/dev/null 2>&1; then : 12608 12609else 12610 ac_cv_header_stdc=no 12611fi 12612rm -f conftest* 12613 12614fi 12615 12616if test $ac_cv_header_stdc = yes; then 12617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620#include <stdlib.h> 12621 12622_ACEOF 12623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12624 $EGREP "free" >/dev/null 2>&1; then : 12625 12626else 12627 ac_cv_header_stdc=no 12628fi 12629rm -f conftest* 12630 12631fi 12632 12633if test $ac_cv_header_stdc = yes; then 12634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12635 if test "$cross_compiling" = yes; then : 12636 : 12637else 12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12639/* end confdefs.h. */ 12640#include <ctype.h> 12641#include <stdlib.h> 12642#if ((' ' & 0x0FF) == 0x020) 12643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12645#else 12646# define ISLOWER(c) \ 12647 (('a' <= (c) && (c) <= 'i') \ 12648 || ('j' <= (c) && (c) <= 'r') \ 12649 || ('s' <= (c) && (c) <= 'z')) 12650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12651#endif 12652 12653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12654int 12655main () 12656{ 12657 int i; 12658 for (i = 0; i < 256; i++) 12659 if (XOR (islower (i), ISLOWER (i)) 12660 || toupper (i) != TOUPPER (i)) 12661 return 2; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_run "$LINENO"; then : 12666 12667else 12668 ac_cv_header_stdc=no 12669fi 12670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12671 conftest.$ac_objext conftest.beam conftest.$ac_ext 12672fi 12673 12674fi 12675fi 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12677$as_echo "$ac_cv_header_stdc" >&6; } 12678if test $ac_cv_header_stdc = yes; then 12679 12680$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12681 12682fi 12683 12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 12685$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 12686if ${ac_cv_header_sys_types_h_makedev+:} false; then : 12687 $as_echo_n "(cached) " >&6 12688else 12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12690/* end confdefs.h. */ 12691#include <sys/types.h> 12692int 12693main () 12694{ 12695return makedev(0, 0); 12696 ; 12697 return 0; 12698} 12699_ACEOF 12700if ac_fn_c_try_link "$LINENO"; then : 12701 ac_cv_header_sys_types_h_makedev=yes 12702else 12703 ac_cv_header_sys_types_h_makedev=no 12704fi 12705rm -f core conftest.err conftest.$ac_objext \ 12706 conftest$ac_exeext conftest.$ac_ext 12707 12708fi 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 12710$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 12711 12712if test $ac_cv_header_sys_types_h_makedev = no; then 12713ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 12714if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 12715 12716$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 12717 12718fi 12719 12720 12721 12722 if test $ac_cv_header_sys_mkdev_h = no; then 12723 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 12724if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 12725 12726$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 12727 12728fi 12729 12730 12731 fi 12732fi 12733 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12735$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12736if ${ac_cv_header_sys_wait_h+:} false; then : 12737 $as_echo_n "(cached) " >&6 12738else 12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740/* end confdefs.h. */ 12741#include <sys/types.h> 12742#include <sys/wait.h> 12743#ifndef WEXITSTATUS 12744# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12745#endif 12746#ifndef WIFEXITED 12747# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12748#endif 12749 12750int 12751main () 12752{ 12753 int s; 12754 wait (&s); 12755 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12756 ; 12757 return 0; 12758} 12759_ACEOF 12760if ac_fn_c_try_compile "$LINENO"; then : 12761 ac_cv_header_sys_wait_h=yes 12762else 12763 ac_cv_header_sys_wait_h=no 12764fi 12765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12766fi 12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12768$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12769if test $ac_cv_header_sys_wait_h = yes; then 12770 12771$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12772 12773fi 12774 12775for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h 12776do : 12777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12780 cat >>confdefs.h <<_ACEOF 12781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12782_ACEOF 12783 12784fi 12785 12786done 12787 12788for ac_header in stddef.h utime.h wchar.h wctype.h limits.h 12789do : 12790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12791ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12792if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12793 cat >>confdefs.h <<_ACEOF 12794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12795_ACEOF 12796 12797fi 12798 12799done 12800 12801for ac_header in getopt.h err.h xlocale.h signal.h 12802do : 12803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12804ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12805if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12806 cat >>confdefs.h <<_ACEOF 12807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12808_ACEOF 12809 12810fi 12811 12812done 12813 12814for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h 12815do : 12816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12817ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12818if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12819 cat >>confdefs.h <<_ACEOF 12820#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12821_ACEOF 12822 12823fi 12824 12825done 12826 12827if test "$enable_zlib" != "no"; then 12828 for ac_header in zlib.h 12829do : 12830 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12831if test "x$ac_cv_header_zlib_h" = xyes; then : 12832 cat >>confdefs.h <<_ACEOF 12833#define HAVE_ZLIB_H 1 12834_ACEOF 12835 12836fi 12837 12838done 12839 12840fi 12841ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" " 12842#ifdef HAVE_SIGNAL_H 12843#include <signal.h> 12844#endif 12845" 12846if test "x$ac_cv_type_sig_t" = xyes; then : 12847 12848$as_echo "#define HAVE_SIG_T 1" >>confdefs.h 12849 12850fi 12851 12852 12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12854$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12855if ${ac_cv_c_const+:} false; then : 12856 $as_echo_n "(cached) " >&6 12857else 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860 12861int 12862main () 12863{ 12864 12865#ifndef __cplusplus 12866 /* Ultrix mips cc rejects this sort of thing. */ 12867 typedef int charset[2]; 12868 const charset cs = { 0, 0 }; 12869 /* SunOS 4.1.1 cc rejects this. */ 12870 char const *const *pcpcc; 12871 char **ppc; 12872 /* NEC SVR4.0.2 mips cc rejects this. */ 12873 struct point {int x, y;}; 12874 static struct point const zero = {0,0}; 12875 /* AIX XL C 1.02.0.0 rejects this. 12876 It does not let you subtract one const X* pointer from another in 12877 an arm of an if-expression whose if-part is not a constant 12878 expression */ 12879 const char *g = "string"; 12880 pcpcc = &g + (g ? g-g : 0); 12881 /* HPUX 7.0 cc rejects these. */ 12882 ++pcpcc; 12883 ppc = (char**) pcpcc; 12884 pcpcc = (char const *const *) ppc; 12885 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12886 char tx; 12887 char *t = &tx; 12888 char const *s = 0 ? (char *) 0 : (char const *) 0; 12889 12890 *t++ = 0; 12891 if (s) return 0; 12892 } 12893 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12894 int x[] = {25, 17}; 12895 const int *foo = &x[0]; 12896 ++foo; 12897 } 12898 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12899 typedef const int *iptr; 12900 iptr p = 0; 12901 ++p; 12902 } 12903 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12904 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12905 struct s { int j; const int *ap[3]; } bx; 12906 struct s *b = &bx; b->j = 5; 12907 } 12908 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12909 const int foo = 10; 12910 if (!foo) return 0; 12911 } 12912 return !cs[0] && !zero.x; 12913#endif 12914 12915 ; 12916 return 0; 12917} 12918_ACEOF 12919if ac_fn_c_try_compile "$LINENO"; then : 12920 ac_cv_c_const=yes 12921else 12922 ac_cv_c_const=no 12923fi 12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12925fi 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12927$as_echo "$ac_cv_c_const" >&6; } 12928if test $ac_cv_c_const = no; then 12929 12930$as_echo "#define const /**/" >>confdefs.h 12931 12932fi 12933 12934ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12935if test "x$ac_cv_type_off_t" = xyes; then : 12936 12937else 12938 12939cat >>confdefs.h <<_ACEOF 12940#define off_t long int 12941_ACEOF 12942 12943fi 12944 12945ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12946if test "x$ac_cv_type_size_t" = xyes; then : 12947 12948else 12949 12950cat >>confdefs.h <<_ACEOF 12951#define size_t unsigned int 12952_ACEOF 12953 12954fi 12955 12956ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12957if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12958 12959cat >>confdefs.h <<_ACEOF 12960#define HAVE_STRUCT_STAT_ST_RDEV 1 12961_ACEOF 12962 12963 12964fi 12965 12966 12967ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default" 12968if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 12969 12970cat >>confdefs.h <<_ACEOF 12971#define HAVE_STRUCT_TM_TM_GMTOFF 1 12972_ACEOF 12973 12974 12975fi 12976 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12978$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12979if ${ac_cv_struct_tm+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984#include <sys/types.h> 12985#include <time.h> 12986 12987int 12988main () 12989{ 12990struct tm tm; 12991 int *p = &tm.tm_sec; 12992 return !p; 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997if ac_fn_c_try_compile "$LINENO"; then : 12998 ac_cv_struct_tm=time.h 12999else 13000 ac_cv_struct_tm=sys/time.h 13001fi 13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13003fi 13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13005$as_echo "$ac_cv_struct_tm" >&6; } 13006if test $ac_cv_struct_tm = sys/time.h; then 13007 13008$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13009 13010fi 13011 13012ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13013#include <$ac_cv_struct_tm> 13014 13015" 13016if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13017 13018cat >>confdefs.h <<_ACEOF 13019#define HAVE_STRUCT_TM_TM_ZONE 1 13020_ACEOF 13021 13022 13023fi 13024 13025if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13026 13027$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13028 13029else 13030 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13031" 13032if test "x$ac_cv_have_decl_tzname" = xyes; then : 13033 ac_have_decl=1 13034else 13035 ac_have_decl=0 13036fi 13037 13038cat >>confdefs.h <<_ACEOF 13039#define HAVE_DECL_TZNAME $ac_have_decl 13040_ACEOF 13041 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13043$as_echo_n "checking for tzname... " >&6; } 13044if ${ac_cv_var_tzname+:} false; then : 13045 $as_echo_n "(cached) " >&6 13046else 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049#include <time.h> 13050#if !HAVE_DECL_TZNAME 13051extern char *tzname[]; 13052#endif 13053 13054int 13055main () 13056{ 13057return tzname[0][0]; 13058 ; 13059 return 0; 13060} 13061_ACEOF 13062if ac_fn_c_try_link "$LINENO"; then : 13063 ac_cv_var_tzname=yes 13064else 13065 ac_cv_var_tzname=no 13066fi 13067rm -f core conftest.err conftest.$ac_objext \ 13068 conftest$ac_exeext conftest.$ac_ext 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13071$as_echo "$ac_cv_var_tzname" >&6; } 13072 if test $ac_cv_var_tzname = yes; then 13073 13074$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13075 13076 fi 13077fi 13078 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 13080$as_echo_n "checking for tm_zone in struct tm... " >&6; } 13081if ${ac_cv_struct_tm_zone+:} false; then : 13082 $as_echo_n "(cached) " >&6 13083else 13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086#include <sys/types.h> 13087#include <$ac_cv_struct_tm> 13088int 13089main () 13090{ 13091struct tm tm; tm.tm_zone; 13092 ; 13093 return 0; 13094} 13095_ACEOF 13096if ac_fn_c_try_compile "$LINENO"; then : 13097 ac_cv_struct_tm_zone=yes 13098else 13099 ac_cv_struct_tm_zone=no 13100fi 13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13102fi 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 13104$as_echo "$ac_cv_struct_tm_zone" >&6; } 13105if test "$ac_cv_struct_tm_zone" = yes; then 13106 13107$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13108 13109fi 13110 13111# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 13112# consider it declared and we won't give our own extern. 13113ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13114" 13115if test "x$ac_cv_have_decl_tzname" = xyes; then : 13116 ac_have_decl=1 13117else 13118 ac_have_decl=0 13119fi 13120 13121cat >>confdefs.h <<_ACEOF 13122#define HAVE_DECL_TZNAME $ac_have_decl 13123_ACEOF 13124 13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13126$as_echo_n "checking for tzname... " >&6; } 13127if ${ac_cv_var_tzname+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129else 13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131/* end confdefs.h. */ 13132#include <time.h> 13133#if !HAVE_DECL_TZNAME 13134extern char *tzname[]; 13135#endif 13136int 13137main () 13138{ 13139return tzname[0][0]; 13140 ; 13141 return 0; 13142} 13143_ACEOF 13144if ac_fn_c_try_link "$LINENO"; then : 13145 ac_cv_var_tzname=yes 13146else 13147 ac_cv_var_tzname=no 13148fi 13149rm -f core conftest.err conftest.$ac_objext \ 13150 conftest$ac_exeext conftest.$ac_ext 13151fi 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13153$as_echo "$ac_cv_var_tzname" >&6; } 13154 if test $ac_cv_var_tzname = yes; then 13155 13156$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13157 13158 fi 13159 13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 13161$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 13162if ${ac_cv_struct_tm_isdst+:} false; then : 13163 $as_echo_n "(cached) " >&6 13164else 13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166/* end confdefs.h. */ 13167#include <sys/types.h> 13168#include <$ac_cv_struct_tm> 13169int 13170main () 13171{ 13172struct tm tm; tm.tm_isdst; 13173 ; 13174 return 0; 13175} 13176_ACEOF 13177if ac_fn_c_try_compile "$LINENO"; then : 13178 ac_cv_struct_tm_isdst=yes 13179else 13180 ac_cv_struct_tm_isdst=no 13181fi 13182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13183fi 13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 13185$as_echo "$ac_cv_struct_tm_isdst" >&6; } 13186if test "$ac_cv_struct_tm_isdst" = yes; then 13187 13188$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 13189 13190fi 13191 13192 13193ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 13194" 13195if test "x$ac_cv_have_decl_daylight" = xyes; then : 13196 ac_have_decl=1 13197else 13198 ac_have_decl=0 13199fi 13200 13201cat >>confdefs.h <<_ACEOF 13202#define HAVE_DECL_DAYLIGHT $ac_have_decl 13203_ACEOF 13204 13205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 13206$as_echo_n "checking for daylight... " >&6; } 13207if ${ac_cv_var_daylight+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211/* end confdefs.h. */ 13212#include <time.h> 13213#if !HAVE_DECL_DAYLIGHT 13214extern int daylight; 13215#endif 13216int 13217main () 13218{ 13219atoi(daylight); 13220 ; 13221 return 0; 13222} 13223_ACEOF 13224if ac_fn_c_try_link "$LINENO"; then : 13225 ac_cv_var_daylight=yes 13226else 13227 ac_cv_var_daylight=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext \ 13230 conftest$ac_exeext conftest.$ac_ext 13231fi 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 13233$as_echo "$ac_cv_var_daylight" >&6; } 13234 if test $ac_cv_var_daylight = yes; then 13235 13236$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 13237 13238 fi 13239 13240# Check whether --enable-largefile was given. 13241if test "${enable_largefile+set}" = set; then : 13242 enableval=$enable_largefile; 13243fi 13244 13245if test "$enable_largefile" != no; then 13246 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13248$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13249if ${ac_cv_sys_largefile_CC+:} false; then : 13250 $as_echo_n "(cached) " >&6 13251else 13252 ac_cv_sys_largefile_CC=no 13253 if test "$GCC" != yes; then 13254 ac_save_CC=$CC 13255 while :; do 13256 # IRIX 6.2 and later do not support large files by default, 13257 # so use the C compiler's -n32 option if that helps. 13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260#include <sys/types.h> 13261 /* Check that off_t can represent 2**63 - 1 correctly. 13262 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13263 since some C++ compilers masquerading as C compilers 13264 incorrectly reject 9223372036854775807. */ 13265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13267 && LARGE_OFF_T % 2147483647 == 1) 13268 ? 1 : -1]; 13269int 13270main () 13271{ 13272 13273 ; 13274 return 0; 13275} 13276_ACEOF 13277 if ac_fn_c_try_compile "$LINENO"; then : 13278 break 13279fi 13280rm -f core conftest.err conftest.$ac_objext 13281 CC="$CC -n32" 13282 if ac_fn_c_try_compile "$LINENO"; then : 13283 ac_cv_sys_largefile_CC=' -n32'; break 13284fi 13285rm -f core conftest.err conftest.$ac_objext 13286 break 13287 done 13288 CC=$ac_save_CC 13289 rm -f conftest.$ac_ext 13290 fi 13291fi 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13293$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13294 if test "$ac_cv_sys_largefile_CC" != no; then 13295 CC=$CC$ac_cv_sys_largefile_CC 13296 fi 13297 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13299$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13300if ${ac_cv_sys_file_offset_bits+:} false; then : 13301 $as_echo_n "(cached) " >&6 13302else 13303 while :; do 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305/* end confdefs.h. */ 13306#include <sys/types.h> 13307 /* Check that off_t can represent 2**63 - 1 correctly. 13308 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13309 since some C++ compilers masquerading as C compilers 13310 incorrectly reject 9223372036854775807. */ 13311#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13313 && LARGE_OFF_T % 2147483647 == 1) 13314 ? 1 : -1]; 13315int 13316main () 13317{ 13318 13319 ; 13320 return 0; 13321} 13322_ACEOF 13323if ac_fn_c_try_compile "$LINENO"; then : 13324 ac_cv_sys_file_offset_bits=no; break 13325fi 13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13328/* end confdefs.h. */ 13329#define _FILE_OFFSET_BITS 64 13330#include <sys/types.h> 13331 /* Check that off_t can represent 2**63 - 1 correctly. 13332 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13333 since some C++ compilers masquerading as C compilers 13334 incorrectly reject 9223372036854775807. */ 13335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13337 && LARGE_OFF_T % 2147483647 == 1) 13338 ? 1 : -1]; 13339int 13340main () 13341{ 13342 13343 ; 13344 return 0; 13345} 13346_ACEOF 13347if ac_fn_c_try_compile "$LINENO"; then : 13348 ac_cv_sys_file_offset_bits=64; break 13349fi 13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13351 ac_cv_sys_file_offset_bits=unknown 13352 break 13353done 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13356$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13357case $ac_cv_sys_file_offset_bits in #( 13358 no | unknown) ;; 13359 *) 13360cat >>confdefs.h <<_ACEOF 13361#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13362_ACEOF 13363;; 13364esac 13365rm -rf conftest* 13366 if test $ac_cv_sys_file_offset_bits = unknown; then 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13368$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13369if ${ac_cv_sys_large_files+:} false; then : 13370 $as_echo_n "(cached) " >&6 13371else 13372 while :; do 13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13374/* end confdefs.h. */ 13375#include <sys/types.h> 13376 /* Check that off_t can represent 2**63 - 1 correctly. 13377 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13378 since some C++ compilers masquerading as C compilers 13379 incorrectly reject 9223372036854775807. */ 13380#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13382 && LARGE_OFF_T % 2147483647 == 1) 13383 ? 1 : -1]; 13384int 13385main () 13386{ 13387 13388 ; 13389 return 0; 13390} 13391_ACEOF 13392if ac_fn_c_try_compile "$LINENO"; then : 13393 ac_cv_sys_large_files=no; break 13394fi 13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397/* end confdefs.h. */ 13398#define _LARGE_FILES 1 13399#include <sys/types.h> 13400 /* Check that off_t can represent 2**63 - 1 correctly. 13401 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13402 since some C++ compilers masquerading as C compilers 13403 incorrectly reject 9223372036854775807. */ 13404#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13406 && LARGE_OFF_T % 2147483647 == 1) 13407 ? 1 : -1]; 13408int 13409main () 13410{ 13411 13412 ; 13413 return 0; 13414} 13415_ACEOF 13416if ac_fn_c_try_compile "$LINENO"; then : 13417 ac_cv_sys_large_files=1; break 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420 ac_cv_sys_large_files=unknown 13421 break 13422done 13423fi 13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13425$as_echo "$ac_cv_sys_large_files" >&6; } 13426case $ac_cv_sys_large_files in #( 13427 no | unknown) ;; 13428 *) 13429cat >>confdefs.h <<_ACEOF 13430#define _LARGE_FILES $ac_cv_sys_large_files 13431_ACEOF 13432;; 13433esac 13434rm -rf conftest* 13435 fi 13436 13437 13438fi 13439 13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13441$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 13442if ${ac_cv_sys_largefile_source+:} false; then : 13443 $as_echo_n "(cached) " >&6 13444else 13445 while :; do 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448#include <sys/types.h> /* for off_t */ 13449 #include <stdio.h> 13450int 13451main () 13452{ 13453int (*fp) (FILE *, off_t, int) = fseeko; 13454 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_c_try_link "$LINENO"; then : 13460 ac_cv_sys_largefile_source=no; break 13461fi 13462rm -f core conftest.err conftest.$ac_objext \ 13463 conftest$ac_exeext conftest.$ac_ext 13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13465/* end confdefs.h. */ 13466#define _LARGEFILE_SOURCE 1 13467#include <sys/types.h> /* for off_t */ 13468 #include <stdio.h> 13469int 13470main () 13471{ 13472int (*fp) (FILE *, off_t, int) = fseeko; 13473 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13474 ; 13475 return 0; 13476} 13477_ACEOF 13478if ac_fn_c_try_link "$LINENO"; then : 13479 ac_cv_sys_largefile_source=1; break 13480fi 13481rm -f core conftest.err conftest.$ac_objext \ 13482 conftest$ac_exeext conftest.$ac_ext 13483 ac_cv_sys_largefile_source=unknown 13484 break 13485done 13486fi 13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13488$as_echo "$ac_cv_sys_largefile_source" >&6; } 13489case $ac_cv_sys_largefile_source in #( 13490 no | unknown) ;; 13491 *) 13492cat >>confdefs.h <<_ACEOF 13493#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13494_ACEOF 13495;; 13496esac 13497rm -rf conftest* 13498 13499# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13500# in glibc 2.1.3, but that breaks too many other things. 13501# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13502if test $ac_cv_sys_largefile_source != unknown; then 13503 13504$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 13505 13506fi 13507 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 13509$as_echo_n "checking for mbstate_t... " >&6; } 13510if ${ac_cv_type_mbstate_t+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515$ac_includes_default 13516# include <wchar.h> 13517int 13518main () 13519{ 13520mbstate_t x; return sizeof x; 13521 ; 13522 return 0; 13523} 13524_ACEOF 13525if ac_fn_c_try_compile "$LINENO"; then : 13526 ac_cv_type_mbstate_t=yes 13527else 13528 ac_cv_type_mbstate_t=no 13529fi 13530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13531fi 13532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 13533$as_echo "$ac_cv_type_mbstate_t" >&6; } 13534 if test $ac_cv_type_mbstate_t = yes; then 13535 13536$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 13537 13538 else 13539 13540$as_echo "#define mbstate_t int" >>confdefs.h 13541 13542 fi 13543 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 13545$as_echo_n "checking for struct option in getopt... " >&6; } 13546if ${ac_cv_struct_option_getopt_h+:} false; then : 13547 $as_echo_n "(cached) " >&6 13548else 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13550/* end confdefs.h. */ 13551#include <getopt.h> 13552int 13553main () 13554{ 13555struct option op; op.name; 13556 ; 13557 return 0; 13558} 13559_ACEOF 13560if ac_fn_c_try_compile "$LINENO"; then : 13561 ac_cv_struct_option_getopt_h=yes 13562else 13563 ac_cv_struct_option_getopt_h=no 13564fi 13565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13566fi 13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 13568$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 13569if test "$ac_cv_struct_option_getopt_h" = yes; then 13570 13571$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 13572 13573fi 13574 13575ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13576if test "x$ac_cv_type_pid_t" = xyes; then : 13577 13578else 13579 13580cat >>confdefs.h <<_ACEOF 13581#define pid_t int 13582_ACEOF 13583 13584fi 13585 13586ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 13587case $ac_cv_c_uint8_t in #( 13588 no|yes) ;; #( 13589 *) 13590 13591$as_echo "#define _UINT8_T 1" >>confdefs.h 13592 13593 13594cat >>confdefs.h <<_ACEOF 13595#define uint8_t $ac_cv_c_uint8_t 13596_ACEOF 13597;; 13598 esac 13599 13600ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 13601case $ac_cv_c_uint16_t in #( 13602 no|yes) ;; #( 13603 *) 13604 13605 13606cat >>confdefs.h <<_ACEOF 13607#define uint16_t $ac_cv_c_uint16_t 13608_ACEOF 13609;; 13610 esac 13611 13612ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 13613case $ac_cv_c_uint32_t in #( 13614 no|yes) ;; #( 13615 *) 13616 13617$as_echo "#define _UINT32_T 1" >>confdefs.h 13618 13619 13620cat >>confdefs.h <<_ACEOF 13621#define uint32_t $ac_cv_c_uint32_t 13622_ACEOF 13623;; 13624 esac 13625 13626ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 13627case $ac_cv_c_int32_t in #( 13628 no|yes) ;; #( 13629 *) 13630 13631cat >>confdefs.h <<_ACEOF 13632#define int32_t $ac_cv_c_int32_t 13633_ACEOF 13634;; 13635esac 13636 13637ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 13638case $ac_cv_c_uint64_t in #( 13639 no|yes) ;; #( 13640 *) 13641 13642$as_echo "#define _UINT64_T 1" >>confdefs.h 13643 13644 13645cat >>confdefs.h <<_ACEOF 13646#define uint64_t $ac_cv_c_uint64_t 13647_ACEOF 13648;; 13649 esac 13650 13651ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 13652case $ac_cv_c_int64_t in #( 13653 no|yes) ;; #( 13654 *) 13655 13656cat >>confdefs.h <<_ACEOF 13657#define int64_t $ac_cv_c_int64_t 13658_ACEOF 13659;; 13660esac 13661 13662 13663 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 13664if test "x$ac_cv_type_intptr_t" = xyes; then : 13665 13666$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 13667 13668else 13669 for ac_type in 'int' 'long int' 'long long int'; do 13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13671/* end confdefs.h. */ 13672$ac_includes_default 13673int 13674main () 13675{ 13676static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13677test_array [0] = 0; 13678return test_array [0]; 13679 13680 ; 13681 return 0; 13682} 13683_ACEOF 13684if ac_fn_c_try_compile "$LINENO"; then : 13685 13686cat >>confdefs.h <<_ACEOF 13687#define intptr_t $ac_type 13688_ACEOF 13689 13690 ac_type= 13691fi 13692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13693 test -z "$ac_type" && break 13694 done 13695fi 13696 13697 13698 13699 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 13700if test "x$ac_cv_type_uintptr_t" = xyes; then : 13701 13702$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 13703 13704else 13705 for ac_type in 'unsigned int' 'unsigned long int' \ 13706 'unsigned long long int'; do 13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13708/* end confdefs.h. */ 13709$ac_includes_default 13710int 13711main () 13712{ 13713static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13714test_array [0] = 0; 13715return test_array [0]; 13716 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721if ac_fn_c_try_compile "$LINENO"; then : 13722 13723cat >>confdefs.h <<_ACEOF 13724#define uintptr_t $ac_type 13725_ACEOF 13726 13727 ac_type= 13728fi 13729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13730 test -z "$ac_type" && break 13731 done 13732fi 13733 13734 13735 13736 13737 13738 for ac_header in $ac_header_list 13739do : 13740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13741ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13742" 13743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13744 cat >>confdefs.h <<_ACEOF 13745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13746_ACEOF 13747 13748fi 13749 13750done 13751 13752 13753 13754 13755 13756 13757 13758 13759for ac_func in getpagesize 13760do : 13761 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13762if test "x$ac_cv_func_getpagesize" = xyes; then : 13763 cat >>confdefs.h <<_ACEOF 13764#define HAVE_GETPAGESIZE 1 13765_ACEOF 13766 13767fi 13768done 13769 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13771$as_echo_n "checking for working mmap... " >&6; } 13772if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 if test "$cross_compiling" = yes; then : 13776 ac_cv_func_mmap_fixed_mapped=no 13777else 13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13779/* end confdefs.h. */ 13780$ac_includes_default 13781/* malloc might have been renamed as rpl_malloc. */ 13782#undef malloc 13783 13784/* Thanks to Mike Haertel and Jim Avera for this test. 13785 Here is a matrix of mmap possibilities: 13786 mmap private not fixed 13787 mmap private fixed at somewhere currently unmapped 13788 mmap private fixed at somewhere already mapped 13789 mmap shared not fixed 13790 mmap shared fixed at somewhere currently unmapped 13791 mmap shared fixed at somewhere already mapped 13792 For private mappings, we should verify that changes cannot be read() 13793 back from the file, nor mmap's back from the file at a different 13794 address. (There have been systems where private was not correctly 13795 implemented like the infamous i386 svr4.0, and systems where the 13796 VM page cache was not coherent with the file system buffer cache 13797 like early versions of FreeBSD and possibly contemporary NetBSD.) 13798 For shared mappings, we should conversely verify that changes get 13799 propagated back to all the places they're supposed to be. 13800 13801 Grep wants private fixed already mapped. 13802 The main things grep needs to know about mmap are: 13803 * does it exist and is it safe to write into the mmap'd area 13804 * how to use it (BSD variants) */ 13805 13806#include <fcntl.h> 13807#include <sys/mman.h> 13808 13809#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13810char *malloc (); 13811#endif 13812 13813/* This mess was copied from the GNU getpagesize.h. */ 13814#ifndef HAVE_GETPAGESIZE 13815# ifdef _SC_PAGESIZE 13816# define getpagesize() sysconf(_SC_PAGESIZE) 13817# else /* no _SC_PAGESIZE */ 13818# ifdef HAVE_SYS_PARAM_H 13819# include <sys/param.h> 13820# ifdef EXEC_PAGESIZE 13821# define getpagesize() EXEC_PAGESIZE 13822# else /* no EXEC_PAGESIZE */ 13823# ifdef NBPG 13824# define getpagesize() NBPG * CLSIZE 13825# ifndef CLSIZE 13826# define CLSIZE 1 13827# endif /* no CLSIZE */ 13828# else /* no NBPG */ 13829# ifdef NBPC 13830# define getpagesize() NBPC 13831# else /* no NBPC */ 13832# ifdef PAGESIZE 13833# define getpagesize() PAGESIZE 13834# endif /* PAGESIZE */ 13835# endif /* no NBPC */ 13836# endif /* no NBPG */ 13837# endif /* no EXEC_PAGESIZE */ 13838# else /* no HAVE_SYS_PARAM_H */ 13839# define getpagesize() 8192 /* punt totally */ 13840# endif /* no HAVE_SYS_PARAM_H */ 13841# endif /* no _SC_PAGESIZE */ 13842 13843#endif /* no HAVE_GETPAGESIZE */ 13844 13845int 13846main () 13847{ 13848 char *data, *data2, *data3; 13849 const char *cdata2; 13850 int i, pagesize; 13851 int fd, fd2; 13852 13853 pagesize = getpagesize (); 13854 13855 /* First, make a file with some known garbage in it. */ 13856 data = (char *) malloc (pagesize); 13857 if (!data) 13858 return 1; 13859 for (i = 0; i < pagesize; ++i) 13860 *(data + i) = rand (); 13861 umask (0); 13862 fd = creat ("conftest.mmap", 0600); 13863 if (fd < 0) 13864 return 2; 13865 if (write (fd, data, pagesize) != pagesize) 13866 return 3; 13867 close (fd); 13868 13869 /* Next, check that the tail of a page is zero-filled. File must have 13870 non-zero length, otherwise we risk SIGBUS for entire page. */ 13871 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13872 if (fd2 < 0) 13873 return 4; 13874 cdata2 = ""; 13875 if (write (fd2, cdata2, 1) != 1) 13876 return 5; 13877 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13878 if (data2 == MAP_FAILED) 13879 return 6; 13880 for (i = 0; i < pagesize; ++i) 13881 if (*(data2 + i)) 13882 return 7; 13883 close (fd2); 13884 if (munmap (data2, pagesize)) 13885 return 8; 13886 13887 /* Next, try to mmap the file at a fixed address which already has 13888 something else allocated at it. If we can, also make sure that 13889 we see the same garbage. */ 13890 fd = open ("conftest.mmap", O_RDWR); 13891 if (fd < 0) 13892 return 9; 13893 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13894 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13895 return 10; 13896 for (i = 0; i < pagesize; ++i) 13897 if (*(data + i) != *(data2 + i)) 13898 return 11; 13899 13900 /* Finally, make sure that changes to the mapped area do not 13901 percolate back to the file as seen by read(). (This is a bug on 13902 some variants of i386 svr4.0.) */ 13903 for (i = 0; i < pagesize; ++i) 13904 *(data2 + i) = *(data2 + i) + 1; 13905 data3 = (char *) malloc (pagesize); 13906 if (!data3) 13907 return 12; 13908 if (read (fd, data3, pagesize) != pagesize) 13909 return 13; 13910 for (i = 0; i < pagesize; ++i) 13911 if (*(data + i) != *(data3 + i)) 13912 return 14; 13913 close (fd); 13914 return 0; 13915} 13916_ACEOF 13917if ac_fn_c_try_run "$LINENO"; then : 13918 ac_cv_func_mmap_fixed_mapped=yes 13919else 13920 ac_cv_func_mmap_fixed_mapped=no 13921fi 13922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13923 conftest.$ac_objext conftest.beam conftest.$ac_ext 13924fi 13925 13926fi 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13928$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13929if test $ac_cv_func_mmap_fixed_mapped = yes; then 13930 13931$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13932 13933fi 13934rm -f conftest.mmap conftest.txt 13935 13936for ac_header in vfork.h 13937do : 13938 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13939if test "x$ac_cv_header_vfork_h" = xyes; then : 13940 cat >>confdefs.h <<_ACEOF 13941#define HAVE_VFORK_H 1 13942_ACEOF 13943 13944fi 13945 13946done 13947 13948for ac_func in fork vfork 13949do : 13950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13952if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13953 cat >>confdefs.h <<_ACEOF 13954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13955_ACEOF 13956 13957fi 13958done 13959 13960if test "x$ac_cv_func_fork" = xyes; then 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13962$as_echo_n "checking for working fork... " >&6; } 13963if ${ac_cv_func_fork_works+:} false; then : 13964 $as_echo_n "(cached) " >&6 13965else 13966 if test "$cross_compiling" = yes; then : 13967 ac_cv_func_fork_works=cross 13968else 13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971$ac_includes_default 13972int 13973main () 13974{ 13975 13976 /* By Ruediger Kuhlmann. */ 13977 return fork () < 0; 13978 13979 ; 13980 return 0; 13981} 13982_ACEOF 13983if ac_fn_c_try_run "$LINENO"; then : 13984 ac_cv_func_fork_works=yes 13985else 13986 ac_cv_func_fork_works=no 13987fi 13988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13989 conftest.$ac_objext conftest.beam conftest.$ac_ext 13990fi 13991 13992fi 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13994$as_echo "$ac_cv_func_fork_works" >&6; } 13995 13996else 13997 ac_cv_func_fork_works=$ac_cv_func_fork 13998fi 13999if test "x$ac_cv_func_fork_works" = xcross; then 14000 case $host in 14001 *-*-amigaos* | *-*-msdosdjgpp*) 14002 # Override, as these systems have only a dummy fork() stub 14003 ac_cv_func_fork_works=no 14004 ;; 14005 *) 14006 ac_cv_func_fork_works=yes 14007 ;; 14008 esac 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14010$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14011fi 14012ac_cv_func_vfork_works=$ac_cv_func_vfork 14013if test "x$ac_cv_func_vfork" = xyes; then 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14015$as_echo_n "checking for working vfork... " >&6; } 14016if ${ac_cv_func_vfork_works+:} false; then : 14017 $as_echo_n "(cached) " >&6 14018else 14019 if test "$cross_compiling" = yes; then : 14020 ac_cv_func_vfork_works=cross 14021else 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024/* Thanks to Paul Eggert for this test. */ 14025$ac_includes_default 14026#include <sys/wait.h> 14027#ifdef HAVE_VFORK_H 14028# include <vfork.h> 14029#endif 14030/* On some sparc systems, changes by the child to local and incoming 14031 argument registers are propagated back to the parent. The compiler 14032 is told about this with #include <vfork.h>, but some compilers 14033 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14034 static variable whose address is put into a register that is 14035 clobbered by the vfork. */ 14036static void 14037#ifdef __cplusplus 14038sparc_address_test (int arg) 14039# else 14040sparc_address_test (arg) int arg; 14041#endif 14042{ 14043 static pid_t child; 14044 if (!child) { 14045 child = vfork (); 14046 if (child < 0) { 14047 perror ("vfork"); 14048 _exit(2); 14049 } 14050 if (!child) { 14051 arg = getpid(); 14052 write(-1, "", 0); 14053 _exit (arg); 14054 } 14055 } 14056} 14057 14058int 14059main () 14060{ 14061 pid_t parent = getpid (); 14062 pid_t child; 14063 14064 sparc_address_test (0); 14065 14066 child = vfork (); 14067 14068 if (child == 0) { 14069 /* Here is another test for sparc vfork register problems. This 14070 test uses lots of local variables, at least as many local 14071 variables as main has allocated so far including compiler 14072 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14073 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14074 reuse the register of parent for one of the local variables, 14075 since it will think that parent can't possibly be used any more 14076 in this routine. Assigning to the local variable will thus 14077 munge parent in the parent process. */ 14078 pid_t 14079 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14080 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14081 /* Convince the compiler that p..p7 are live; otherwise, it might 14082 use the same hardware register for all 8 local variables. */ 14083 if (p != p1 || p != p2 || p != p3 || p != p4 14084 || p != p5 || p != p6 || p != p7) 14085 _exit(1); 14086 14087 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14088 from child file descriptors. If the child closes a descriptor 14089 before it execs or exits, this munges the parent's descriptor 14090 as well. Test for this by closing stdout in the child. */ 14091 _exit(close(fileno(stdout)) != 0); 14092 } else { 14093 int status; 14094 struct stat st; 14095 14096 while (wait(&status) != child) 14097 ; 14098 return ( 14099 /* Was there some problem with vforking? */ 14100 child < 0 14101 14102 /* Did the child fail? (This shouldn't happen.) */ 14103 || status 14104 14105 /* Did the vfork/compiler bug occur? */ 14106 || parent != getpid() 14107 14108 /* Did the file descriptor bug occur? */ 14109 || fstat(fileno(stdout), &st) != 0 14110 ); 14111 } 14112} 14113_ACEOF 14114if ac_fn_c_try_run "$LINENO"; then : 14115 ac_cv_func_vfork_works=yes 14116else 14117 ac_cv_func_vfork_works=no 14118fi 14119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14120 conftest.$ac_objext conftest.beam conftest.$ac_ext 14121fi 14122 14123fi 14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14125$as_echo "$ac_cv_func_vfork_works" >&6; } 14126 14127fi; 14128if test "x$ac_cv_func_fork_works" = xcross; then 14129 ac_cv_func_vfork_works=$ac_cv_func_vfork 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14131$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14132fi 14133 14134if test "x$ac_cv_func_vfork_works" = xyes; then 14135 14136$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14137 14138else 14139 14140$as_echo "#define vfork fork" >>confdefs.h 14141 14142fi 14143if test "x$ac_cv_func_fork_works" = xyes; then 14144 14145$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14146 14147fi 14148 14149 14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 14151$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 14152if ${ac_cv_func_mbrtowc+:} false; then : 14153 $as_echo_n "(cached) " >&6 14154else 14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156/* end confdefs.h. */ 14157#include <wchar.h> 14158int 14159main () 14160{ 14161wchar_t wc; 14162 char const s[] = ""; 14163 size_t n = 1; 14164 mbstate_t state; 14165 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 14166 ; 14167 return 0; 14168} 14169_ACEOF 14170if ac_fn_c_try_link "$LINENO"; then : 14171 ac_cv_func_mbrtowc=yes 14172else 14173 ac_cv_func_mbrtowc=no 14174fi 14175rm -f core conftest.err conftest.$ac_objext \ 14176 conftest$ac_exeext conftest.$ac_ext 14177fi 14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 14179$as_echo "$ac_cv_func_mbrtowc" >&6; } 14180 if test $ac_cv_func_mbrtowc = yes; then 14181 14182$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 14183 14184 fi 14185 14186 14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 14188$as_echo_n "checking for gcc compiler warnings... " >&6; } 14189# Check whether --enable-warnings was given. 14190if test "${enable_warnings+set}" = set; then : 14191 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14193$as_echo "no" >&6; } 14194 WARNINGS= 14195else 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14197$as_echo "yes" >&6; } 14198 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14199 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14200 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14201 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14202fi 14203else 14204 14205if test "$GCC" = yes; then 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14207$as_echo "yes" >&6; } 14208 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14209 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14210 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14211 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14212else 14213 WARNINGS= 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14215$as_echo "no" >&6; } 14216fi 14217fi 14218 14219 14220for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale 14221do : 14222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14223ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14224if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14225 cat >>confdefs.h <<_ACEOF 14226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14227_ACEOF 14228 14229fi 14230done 14231 14232 14233ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 14234if test "x$ac_cv_func_getopt_long" = xyes; then : 14235 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 14236 14237else 14238 case " $LIBOBJS " in 14239 *" getopt_long.$ac_objext "* ) ;; 14240 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 14241 ;; 14242esac 14243 14244fi 14245 14246ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 14247if test "x$ac_cv_func_asprintf" = xyes; then : 14248 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 14249 14250else 14251 case " $LIBOBJS " in 14252 *" asprintf.$ac_objext "* ) ;; 14253 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 14254 ;; 14255esac 14256 14257fi 14258 14259ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14260if test "x$ac_cv_func_vasprintf" = xyes; then : 14261 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 14262 14263else 14264 case " $LIBOBJS " in 14265 *" vasprintf.$ac_objext "* ) ;; 14266 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 14267 ;; 14268esac 14269 14270fi 14271 14272ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 14273if test "x$ac_cv_func_strlcpy" = xyes; then : 14274 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 14275 14276else 14277 case " $LIBOBJS " in 14278 *" strlcpy.$ac_objext "* ) ;; 14279 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 14280 ;; 14281esac 14282 14283fi 14284 14285ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 14286if test "x$ac_cv_func_strlcat" = xyes; then : 14287 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 14288 14289else 14290 case " $LIBOBJS " in 14291 *" strlcat.$ac_objext "* ) ;; 14292 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 14293 ;; 14294esac 14295 14296fi 14297 14298ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14299if test "x$ac_cv_func_getline" = xyes; then : 14300 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 14301 14302else 14303 case " $LIBOBJS " in 14304 *" getline.$ac_objext "* ) ;; 14305 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 14306 ;; 14307esac 14308 14309fi 14310 14311ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 14312if test "x$ac_cv_func_ctime_r" = xyes; then : 14313 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 14314 14315else 14316 case " $LIBOBJS " in 14317 *" ctime_r.$ac_objext "* ) ;; 14318 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 14319 ;; 14320esac 14321 14322fi 14323 14324ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 14325if test "x$ac_cv_func_asctime_r" = xyes; then : 14326 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h 14327 14328else 14329 case " $LIBOBJS " in 14330 *" asctime_r.$ac_objext "* ) ;; 14331 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 14332 ;; 14333esac 14334 14335fi 14336 14337ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 14338if test "x$ac_cv_func_localtime_r" = xyes; then : 14339 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 14340 14341else 14342 case " $LIBOBJS " in 14343 *" localtime_r.$ac_objext "* ) ;; 14344 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 14345 ;; 14346esac 14347 14348fi 14349 14350ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 14351if test "x$ac_cv_func_gmtime_r" = xyes; then : 14352 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 14353 14354else 14355 case " $LIBOBJS " in 14356 *" gmtime_r.$ac_objext "* ) ;; 14357 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 14358 ;; 14359esac 14360 14361fi 14362 14363ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 14364if test "x$ac_cv_func_pread" = xyes; then : 14365 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 14366 14367else 14368 case " $LIBOBJS " in 14369 *" pread.$ac_objext "* ) ;; 14370 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 14371 ;; 14372esac 14373 14374fi 14375 14376ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14377if test "x$ac_cv_func_strcasestr" = xyes; then : 14378 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 14379 14380else 14381 case " $LIBOBJS " in 14382 *" strcasestr.$ac_objext "* ) ;; 14383 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 14384 ;; 14385esac 14386 14387fi 14388 14389ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 14390if test "x$ac_cv_func_fmtcheck" = xyes; then : 14391 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h 14392 14393else 14394 case " $LIBOBJS " in 14395 *" fmtcheck.$ac_objext "* ) ;; 14396 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 14397 ;; 14398esac 14399 14400fi 14401 14402ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 14403if test "x$ac_cv_func_dprintf" = xyes; then : 14404 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h 14405 14406else 14407 case " $LIBOBJS " in 14408 *" dprintf.$ac_objext "* ) ;; 14409 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 14410 ;; 14411esac 14412 14413fi 14414 14415 14416 14417if test "$enable_zlib" != "no"; then 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 14419$as_echo_n "checking for gzopen in -lz... " >&6; } 14420if ${ac_cv_lib_z_gzopen+:} false; then : 14421 $as_echo_n "(cached) " >&6 14422else 14423 ac_check_lib_save_LIBS=$LIBS 14424LIBS="-lz $LIBS" 14425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427 14428/* Override any GCC internal prototype to avoid an error. 14429 Use char because int might match the return type of a GCC 14430 builtin and then its argument prototype would still apply. */ 14431#ifdef __cplusplus 14432extern "C" 14433#endif 14434char gzopen (); 14435int 14436main () 14437{ 14438return gzopen (); 14439 ; 14440 return 0; 14441} 14442_ACEOF 14443if ac_fn_c_try_link "$LINENO"; then : 14444 ac_cv_lib_z_gzopen=yes 14445else 14446 ac_cv_lib_z_gzopen=no 14447fi 14448rm -f core conftest.err conftest.$ac_objext \ 14449 conftest$ac_exeext conftest.$ac_ext 14450LIBS=$ac_check_lib_save_LIBS 14451fi 14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 14453$as_echo "$ac_cv_lib_z_gzopen" >&6; } 14454if test "x$ac_cv_lib_z_gzopen" = xyes; then : 14455 cat >>confdefs.h <<_ACEOF 14456#define HAVE_LIBZ 1 14457_ACEOF 14458 14459 LIBS="-lz $LIBS" 14460 14461fi 14462 14463fi 14464if test "$MINGW" = 1; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 14466$as_echo_n "checking for regexec in -lgnurx... " >&6; } 14467if ${ac_cv_lib_gnurx_regexec+:} false; then : 14468 $as_echo_n "(cached) " >&6 14469else 14470 ac_check_lib_save_LIBS=$LIBS 14471LIBS="-lgnurx $LIBS" 14472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14473/* end confdefs.h. */ 14474 14475/* Override any GCC internal prototype to avoid an error. 14476 Use char because int might match the return type of a GCC 14477 builtin and then its argument prototype would still apply. */ 14478#ifdef __cplusplus 14479extern "C" 14480#endif 14481char regexec (); 14482int 14483main () 14484{ 14485return regexec (); 14486 ; 14487 return 0; 14488} 14489_ACEOF 14490if ac_fn_c_try_link "$LINENO"; then : 14491 ac_cv_lib_gnurx_regexec=yes 14492else 14493 ac_cv_lib_gnurx_regexec=no 14494fi 14495rm -f core conftest.err conftest.$ac_objext \ 14496 conftest$ac_exeext conftest.$ac_ext 14497LIBS=$ac_check_lib_save_LIBS 14498fi 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 14500$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 14501if test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 14502 cat >>confdefs.h <<_ACEOF 14503#define HAVE_LIBGNURX 1 14504_ACEOF 14505 14506 LIBS="-lgnurx $LIBS" 14507 14508else 14509 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 14510fi 14511 14512fi 14513 14514 if test "$cross_compiling" = yes; then 14515 IS_CROSS_COMPILE_TRUE= 14516 IS_CROSS_COMPILE_FALSE='#' 14517else 14518 IS_CROSS_COMPILE_TRUE='#' 14519 IS_CROSS_COMPILE_FALSE= 14520fi 14521 14522 14523if test "$enable_zlib" = "yes"; then 14524 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 14525 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 14526 fi 14527elif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 14528 14529$as_echo "#define ZLIBSUPPORT 1" >>confdefs.h 14530 14531fi 14532 14533ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 14534 14535cat >confcache <<\_ACEOF 14536# This file is a shell script that caches the results of configure 14537# tests run on this system so they can be shared between configure 14538# scripts and configure runs, see configure's option --config-cache. 14539# It is not useful on other systems. If it contains results you don't 14540# want to keep, you may remove or edit it. 14541# 14542# config.status only pays attention to the cache file if you give it 14543# the --recheck option to rerun configure. 14544# 14545# `ac_cv_env_foo' variables (set or unset) will be overridden when 14546# loading this file, other *unset* `ac_cv_foo' will be assigned the 14547# following values. 14548 14549_ACEOF 14550 14551# The following way of writing the cache mishandles newlines in values, 14552# but we know of no workaround that is simple, portable, and efficient. 14553# So, we kill variables containing newlines. 14554# Ultrix sh set writes to stderr and can't be redirected directly, 14555# and sets the high bit in the cache file unless we assign to the vars. 14556( 14557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14558 eval ac_val=\$$ac_var 14559 case $ac_val in #( 14560 *${as_nl}*) 14561 case $ac_var in #( 14562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14564 esac 14565 case $ac_var in #( 14566 _ | IFS | as_nl) ;; #( 14567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14568 *) { eval $ac_var=; unset $ac_var;} ;; 14569 esac ;; 14570 esac 14571 done 14572 14573 (set) 2>&1 | 14574 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14575 *${as_nl}ac_space=\ *) 14576 # `set' does not quote correctly, so add quotes: double-quote 14577 # substitution turns \\\\ into \\, and sed turns \\ into \. 14578 sed -n \ 14579 "s/'/'\\\\''/g; 14580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14581 ;; #( 14582 *) 14583 # `set' quotes correctly as required by POSIX, so do not add quotes. 14584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14585 ;; 14586 esac | 14587 sort 14588) | 14589 sed ' 14590 /^ac_cv_env_/b end 14591 t clear 14592 :clear 14593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14594 t end 14595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14596 :end' >>confcache 14597if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14598 if test -w "$cache_file"; then 14599 if test "x$cache_file" != "x/dev/null"; then 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14601$as_echo "$as_me: updating cache $cache_file" >&6;} 14602 if test ! -f "$cache_file" || test -h "$cache_file"; then 14603 cat confcache >"$cache_file" 14604 else 14605 case $cache_file in #( 14606 */* | ?:*) 14607 mv -f confcache "$cache_file"$$ && 14608 mv -f "$cache_file"$$ "$cache_file" ;; #( 14609 *) 14610 mv -f confcache "$cache_file" ;; 14611 esac 14612 fi 14613 fi 14614 else 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14616$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14617 fi 14618fi 14619rm -f confcache 14620 14621test "x$prefix" = xNONE && prefix=$ac_default_prefix 14622# Let make expand exec_prefix. 14623test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14624 14625DEFS=-DHAVE_CONFIG_H 14626 14627ac_libobjs= 14628ac_ltlibobjs= 14629U= 14630for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14631 # 1. Remove the extension, and $U if already installed. 14632 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14633 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14634 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14635 # will be set to the directory where LIBOBJS objects are built. 14636 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14637 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14638done 14639LIBOBJS=$ac_libobjs 14640 14641LTLIBOBJS=$ac_ltlibobjs 14642 14643 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14645$as_echo_n "checking that generated files are newer than configure... " >&6; } 14646 if test -n "$am_sleep_pid"; then 14647 # Hide warnings about reused PIDs. 14648 wait $am_sleep_pid 2>/dev/null 14649 fi 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14651$as_echo "done" >&6; } 14652 if test -n "$EXEEXT"; then 14653 am__EXEEXT_TRUE= 14654 am__EXEEXT_FALSE='#' 14655else 14656 am__EXEEXT_TRUE='#' 14657 am__EXEEXT_FALSE= 14658fi 14659 14660if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 14661 as_fn_error $? "conditional \"MINGW\" was never defined. 14662Usually this means the macro was only invoked conditionally." "$LINENO" 5 14663fi 14664if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 14665 as_fn_error $? "conditional \"FSECT5\" was never defined. 14666Usually this means the macro was only invoked conditionally." "$LINENO" 5 14667fi 14668if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14669 as_fn_error $? "conditional \"AMDEP\" was never defined. 14670Usually this means the macro was only invoked conditionally." "$LINENO" 5 14671fi 14672if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14673 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14674Usually this means the macro was only invoked conditionally." "$LINENO" 5 14675fi 14676 14677if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 14678 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 14679Usually this means the macro was only invoked conditionally." "$LINENO" 5 14680fi 14681 14682: "${CONFIG_STATUS=./config.status}" 14683ac_write_fail=0 14684ac_clean_files_save=$ac_clean_files 14685ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14688as_write_fail=0 14689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14690#! $SHELL 14691# Generated by $as_me. 14692# Run this file to recreate the current configuration. 14693# Compiler output produced by configure, useful for debugging 14694# configure, is in config.log if it exists. 14695 14696debug=false 14697ac_cs_recheck=false 14698ac_cs_silent=false 14699 14700SHELL=\${CONFIG_SHELL-$SHELL} 14701export SHELL 14702_ASEOF 14703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14704## -------------------- ## 14705## M4sh Initialization. ## 14706## -------------------- ## 14707 14708# Be more Bourne compatible 14709DUALCASE=1; export DUALCASE # for MKS sh 14710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14711 emulate sh 14712 NULLCMD=: 14713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14714 # is contrary to our usage. Disable this feature. 14715 alias -g '${1+"$@"}'='"$@"' 14716 setopt NO_GLOB_SUBST 14717else 14718 case `(set -o) 2>/dev/null` in #( 14719 *posix*) : 14720 set -o posix ;; #( 14721 *) : 14722 ;; 14723esac 14724fi 14725 14726 14727as_nl=' 14728' 14729export as_nl 14730# Printing a long string crashes Solaris 7 /usr/bin/printf. 14731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14734# Prefer a ksh shell builtin over an external printf program on Solaris, 14735# but without wasting forks for bash or zsh. 14736if test -z "$BASH_VERSION$ZSH_VERSION" \ 14737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14738 as_echo='print -r --' 14739 as_echo_n='print -rn --' 14740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14741 as_echo='printf %s\n' 14742 as_echo_n='printf %s' 14743else 14744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14746 as_echo_n='/usr/ucb/echo -n' 14747 else 14748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14749 as_echo_n_body='eval 14750 arg=$1; 14751 case $arg in #( 14752 *"$as_nl"*) 14753 expr "X$arg" : "X\\(.*\\)$as_nl"; 14754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14755 esac; 14756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14757 ' 14758 export as_echo_n_body 14759 as_echo_n='sh -c $as_echo_n_body as_echo' 14760 fi 14761 export as_echo_body 14762 as_echo='sh -c $as_echo_body as_echo' 14763fi 14764 14765# The user is always right. 14766if test "${PATH_SEPARATOR+set}" != set; then 14767 PATH_SEPARATOR=: 14768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14770 PATH_SEPARATOR=';' 14771 } 14772fi 14773 14774 14775# IFS 14776# We need space, tab and new line, in precisely that order. Quoting is 14777# there to prevent editors from complaining about space-tab. 14778# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14779# splitting by setting IFS to empty value.) 14780IFS=" "" $as_nl" 14781 14782# Find who we are. Look in the path if we contain no directory separator. 14783as_myself= 14784case $0 in #(( 14785 *[\\/]* ) as_myself=$0 ;; 14786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14787for as_dir in $PATH 14788do 14789 IFS=$as_save_IFS 14790 test -z "$as_dir" && as_dir=. 14791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14792 done 14793IFS=$as_save_IFS 14794 14795 ;; 14796esac 14797# We did not find ourselves, most probably we were run as `sh COMMAND' 14798# in which case we are not to be found in the path. 14799if test "x$as_myself" = x; then 14800 as_myself=$0 14801fi 14802if test ! -f "$as_myself"; then 14803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14804 exit 1 14805fi 14806 14807# Unset variables that we do not need and which cause bugs (e.g. in 14808# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14809# suppresses any "Segmentation fault" message there. '((' could 14810# trigger a bug in pdksh 5.2.14. 14811for as_var in BASH_ENV ENV MAIL MAILPATH 14812do eval test x\${$as_var+set} = xset \ 14813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14814done 14815PS1='$ ' 14816PS2='> ' 14817PS4='+ ' 14818 14819# NLS nuisances. 14820LC_ALL=C 14821export LC_ALL 14822LANGUAGE=C 14823export LANGUAGE 14824 14825# CDPATH. 14826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14827 14828 14829# as_fn_error STATUS ERROR [LINENO LOG_FD] 14830# ---------------------------------------- 14831# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14832# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14833# script with STATUS, using 1 if that was 0. 14834as_fn_error () 14835{ 14836 as_status=$1; test $as_status -eq 0 && as_status=1 14837 if test "$4"; then 14838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14840 fi 14841 $as_echo "$as_me: error: $2" >&2 14842 as_fn_exit $as_status 14843} # as_fn_error 14844 14845 14846# as_fn_set_status STATUS 14847# ----------------------- 14848# Set $? to STATUS, without forking. 14849as_fn_set_status () 14850{ 14851 return $1 14852} # as_fn_set_status 14853 14854# as_fn_exit STATUS 14855# ----------------- 14856# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14857as_fn_exit () 14858{ 14859 set +e 14860 as_fn_set_status $1 14861 exit $1 14862} # as_fn_exit 14863 14864# as_fn_unset VAR 14865# --------------- 14866# Portably unset VAR. 14867as_fn_unset () 14868{ 14869 { eval $1=; unset $1;} 14870} 14871as_unset=as_fn_unset 14872# as_fn_append VAR VALUE 14873# ---------------------- 14874# Append the text in VALUE to the end of the definition contained in VAR. Take 14875# advantage of any shell optimizations that allow amortized linear growth over 14876# repeated appends, instead of the typical quadratic growth present in naive 14877# implementations. 14878if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14879 eval 'as_fn_append () 14880 { 14881 eval $1+=\$2 14882 }' 14883else 14884 as_fn_append () 14885 { 14886 eval $1=\$$1\$2 14887 } 14888fi # as_fn_append 14889 14890# as_fn_arith ARG... 14891# ------------------ 14892# Perform arithmetic evaluation on the ARGs, and store the result in the 14893# global $as_val. Take advantage of shells that can avoid forks. The arguments 14894# must be portable across $(()) and expr. 14895if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14896 eval 'as_fn_arith () 14897 { 14898 as_val=$(( $* )) 14899 }' 14900else 14901 as_fn_arith () 14902 { 14903 as_val=`expr "$@" || test $? -eq 1` 14904 } 14905fi # as_fn_arith 14906 14907 14908if expr a : '\(a\)' >/dev/null 2>&1 && 14909 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14910 as_expr=expr 14911else 14912 as_expr=false 14913fi 14914 14915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14916 as_basename=basename 14917else 14918 as_basename=false 14919fi 14920 14921if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14922 as_dirname=dirname 14923else 14924 as_dirname=false 14925fi 14926 14927as_me=`$as_basename -- "$0" || 14928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14929 X"$0" : 'X\(//\)$' \| \ 14930 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14931$as_echo X/"$0" | 14932 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14933 s//\1/ 14934 q 14935 } 14936 /^X\/\(\/\/\)$/{ 14937 s//\1/ 14938 q 14939 } 14940 /^X\/\(\/\).*/{ 14941 s//\1/ 14942 q 14943 } 14944 s/.*/./; q'` 14945 14946# Avoid depending upon Character Ranges. 14947as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14948as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14949as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14950as_cr_digits='0123456789' 14951as_cr_alnum=$as_cr_Letters$as_cr_digits 14952 14953ECHO_C= ECHO_N= ECHO_T= 14954case `echo -n x` in #((((( 14955-n*) 14956 case `echo 'xy\c'` in 14957 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14958 xy) ECHO_C='\c';; 14959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14960 ECHO_T=' ';; 14961 esac;; 14962*) 14963 ECHO_N='-n';; 14964esac 14965 14966rm -f conf$$ conf$$.exe conf$$.file 14967if test -d conf$$.dir; then 14968 rm -f conf$$.dir/conf$$.file 14969else 14970 rm -f conf$$.dir 14971 mkdir conf$$.dir 2>/dev/null 14972fi 14973if (echo >conf$$.file) 2>/dev/null; then 14974 if ln -s conf$$.file conf$$ 2>/dev/null; then 14975 as_ln_s='ln -s' 14976 # ... but there are two gotchas: 14977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14979 # In both cases, we have to default to `cp -pR'. 14980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14981 as_ln_s='cp -pR' 14982 elif ln conf$$.file conf$$ 2>/dev/null; then 14983 as_ln_s=ln 14984 else 14985 as_ln_s='cp -pR' 14986 fi 14987else 14988 as_ln_s='cp -pR' 14989fi 14990rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14991rmdir conf$$.dir 2>/dev/null 14992 14993 14994# as_fn_mkdir_p 14995# ------------- 14996# Create "$as_dir" as a directory, including parents if necessary. 14997as_fn_mkdir_p () 14998{ 14999 15000 case $as_dir in #( 15001 -*) as_dir=./$as_dir;; 15002 esac 15003 test -d "$as_dir" || eval $as_mkdir_p || { 15004 as_dirs= 15005 while :; do 15006 case $as_dir in #( 15007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15008 *) as_qdir=$as_dir;; 15009 esac 15010 as_dirs="'$as_qdir' $as_dirs" 15011 as_dir=`$as_dirname -- "$as_dir" || 15012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15013 X"$as_dir" : 'X\(//\)[^/]' \| \ 15014 X"$as_dir" : 'X\(//\)$' \| \ 15015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15016$as_echo X"$as_dir" | 15017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15018 s//\1/ 15019 q 15020 } 15021 /^X\(\/\/\)[^/].*/{ 15022 s//\1/ 15023 q 15024 } 15025 /^X\(\/\/\)$/{ 15026 s//\1/ 15027 q 15028 } 15029 /^X\(\/\).*/{ 15030 s//\1/ 15031 q 15032 } 15033 s/.*/./; q'` 15034 test -d "$as_dir" && break 15035 done 15036 test -z "$as_dirs" || eval "mkdir $as_dirs" 15037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15038 15039 15040} # as_fn_mkdir_p 15041if mkdir -p . 2>/dev/null; then 15042 as_mkdir_p='mkdir -p "$as_dir"' 15043else 15044 test -d ./-p && rmdir ./-p 15045 as_mkdir_p=false 15046fi 15047 15048 15049# as_fn_executable_p FILE 15050# ----------------------- 15051# Test if FILE is an executable regular file. 15052as_fn_executable_p () 15053{ 15054 test -f "$1" && test -x "$1" 15055} # as_fn_executable_p 15056as_test_x='test -x' 15057as_executable_p=as_fn_executable_p 15058 15059# Sed expression to map a string onto a valid CPP name. 15060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15061 15062# Sed expression to map a string onto a valid variable name. 15063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15064 15065 15066exec 6>&1 15067## ----------------------------------- ## 15068## Main body of $CONFIG_STATUS script. ## 15069## ----------------------------------- ## 15070_ASEOF 15071test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15072 15073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15074# Save the log message, to keep $0 and so on meaningful, and to 15075# report actual input values of CONFIG_FILES etc. instead of their 15076# values after options handling. 15077ac_log=" 15078This file was extended by file $as_me 5.28, which was 15079generated by GNU Autoconf 2.69. Invocation command line was 15080 15081 CONFIG_FILES = $CONFIG_FILES 15082 CONFIG_HEADERS = $CONFIG_HEADERS 15083 CONFIG_LINKS = $CONFIG_LINKS 15084 CONFIG_COMMANDS = $CONFIG_COMMANDS 15085 $ $0 $@ 15086 15087on `(hostname || uname -n) 2>/dev/null | sed 1q` 15088" 15089 15090_ACEOF 15091 15092case $ac_config_files in *" 15093"*) set x $ac_config_files; shift; ac_config_files=$*;; 15094esac 15095 15096case $ac_config_headers in *" 15097"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15098esac 15099 15100 15101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15102# Files that config.status was made for. 15103config_files="$ac_config_files" 15104config_headers="$ac_config_headers" 15105config_commands="$ac_config_commands" 15106 15107_ACEOF 15108 15109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15110ac_cs_usage="\ 15111\`$as_me' instantiates files and other configuration actions 15112from templates according to the current configuration. Unless the files 15113and actions are specified as TAGs, all are instantiated by default. 15114 15115Usage: $0 [OPTION]... [TAG]... 15116 15117 -h, --help print this help, then exit 15118 -V, --version print version number and configuration settings, then exit 15119 --config print configuration, then exit 15120 -q, --quiet, --silent 15121 do not print progress messages 15122 -d, --debug don't remove temporary files 15123 --recheck update $as_me by reconfiguring in the same conditions 15124 --file=FILE[:TEMPLATE] 15125 instantiate the configuration file FILE 15126 --header=FILE[:TEMPLATE] 15127 instantiate the configuration header FILE 15128 15129Configuration files: 15130$config_files 15131 15132Configuration headers: 15133$config_headers 15134 15135Configuration commands: 15136$config_commands 15137 15138Report bugs to <christos@astron.com>." 15139 15140_ACEOF 15141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15142ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15143ac_cs_version="\\ 15144file config.status 5.28 15145configured by $0, generated by GNU Autoconf 2.69, 15146 with options \\"\$ac_cs_config\\" 15147 15148Copyright (C) 2012 Free Software Foundation, Inc. 15149This config.status script is free software; the Free Software Foundation 15150gives unlimited permission to copy, distribute and modify it." 15151 15152ac_pwd='$ac_pwd' 15153srcdir='$srcdir' 15154INSTALL='$INSTALL' 15155MKDIR_P='$MKDIR_P' 15156AWK='$AWK' 15157test -n "\$AWK" || AWK=awk 15158_ACEOF 15159 15160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15161# The default lists apply if the user does not specify any file. 15162ac_need_defaults=: 15163while test $# != 0 15164do 15165 case $1 in 15166 --*=?*) 15167 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15169 ac_shift=: 15170 ;; 15171 --*=) 15172 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15173 ac_optarg= 15174 ac_shift=: 15175 ;; 15176 *) 15177 ac_option=$1 15178 ac_optarg=$2 15179 ac_shift=shift 15180 ;; 15181 esac 15182 15183 case $ac_option in 15184 # Handling of the options. 15185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15186 ac_cs_recheck=: ;; 15187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15188 $as_echo "$ac_cs_version"; exit ;; 15189 --config | --confi | --conf | --con | --co | --c ) 15190 $as_echo "$ac_cs_config"; exit ;; 15191 --debug | --debu | --deb | --de | --d | -d ) 15192 debug=: ;; 15193 --file | --fil | --fi | --f ) 15194 $ac_shift 15195 case $ac_optarg in 15196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15197 '') as_fn_error $? "missing file argument" ;; 15198 esac 15199 as_fn_append CONFIG_FILES " '$ac_optarg'" 15200 ac_need_defaults=false;; 15201 --header | --heade | --head | --hea ) 15202 $ac_shift 15203 case $ac_optarg in 15204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15205 esac 15206 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15207 ac_need_defaults=false;; 15208 --he | --h) 15209 # Conflict between --help and --header 15210 as_fn_error $? "ambiguous option: \`$1' 15211Try \`$0 --help' for more information.";; 15212 --help | --hel | -h ) 15213 $as_echo "$ac_cs_usage"; exit ;; 15214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15215 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15216 ac_cs_silent=: ;; 15217 15218 # This is an error. 15219 -*) as_fn_error $? "unrecognized option: \`$1' 15220Try \`$0 --help' for more information." ;; 15221 15222 *) as_fn_append ac_config_targets " $1" 15223 ac_need_defaults=false ;; 15224 15225 esac 15226 shift 15227done 15228 15229ac_configure_extra_args= 15230 15231if $ac_cs_silent; then 15232 exec 6>/dev/null 15233 ac_configure_extra_args="$ac_configure_extra_args --silent" 15234fi 15235 15236_ACEOF 15237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15238if \$ac_cs_recheck; then 15239 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15240 shift 15241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15242 CONFIG_SHELL='$SHELL' 15243 export CONFIG_SHELL 15244 exec "\$@" 15245fi 15246 15247_ACEOF 15248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15249exec 5>>config.log 15250{ 15251 echo 15252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15253## Running $as_me. ## 15254_ASBOX 15255 $as_echo "$ac_log" 15256} >&5 15257 15258_ACEOF 15259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15260# 15261# INIT-COMMANDS 15262# 15263AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15264 15265 15266# The HP-UX ksh and POSIX shell print the target directory to stdout 15267# if CDPATH is set. 15268(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15269 15270sed_quote_subst='$sed_quote_subst' 15271double_quote_subst='$double_quote_subst' 15272delay_variable_subst='$delay_variable_subst' 15273macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15274macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15275enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15276pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15277enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15278enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15279SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15280ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15281PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15282host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15283host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15284host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15285build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15286build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15287build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15288SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15289Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15290GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15291EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15292FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15293LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15294NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15295LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15296max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15297ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15298exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15299lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15300lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15301lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15302lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15303lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15304reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15305reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15306OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15307deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15308file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15309file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15310want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15311DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15312sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15313AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15314AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15315archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15316STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15317RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15318old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15319old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15320old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15321lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15322CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15323CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15324compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15325GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15326lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15327lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15328lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15329lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 15330nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15331lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15332objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15333MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15334lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15335lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15336lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15337lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15338lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15339need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15340MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15341DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15342NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15343LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15344OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15345OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15346libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15347shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15348extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15349archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15350enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15351export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15352whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15353compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15354old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15355old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15356archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15357archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15358module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15359module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15360with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15361allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15362no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15363hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15364hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15365hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15366hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15367hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15368hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15369hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15370inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15371link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15372always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15373export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15374exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15375include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15376prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15377postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15378file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15379variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15380need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15381need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15382version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15383runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15384shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15385shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15386libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15387library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15388soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15389install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15390postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15391postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15392finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15393finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15394hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15395sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15396sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15397hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15398enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15399enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15400enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15401old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15402striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15403 15404LTCC='$LTCC' 15405LTCFLAGS='$LTCFLAGS' 15406compiler='$compiler_DEFAULT' 15407 15408# A function that is used when there is no print builtin or printf. 15409func_fallback_echo () 15410{ 15411 eval 'cat <<_LTECHO_EOF 15412\$1 15413_LTECHO_EOF' 15414} 15415 15416# Quote evaled strings. 15417for var in SHELL \ 15418ECHO \ 15419PATH_SEPARATOR \ 15420SED \ 15421GREP \ 15422EGREP \ 15423FGREP \ 15424LD \ 15425NM \ 15426LN_S \ 15427lt_SP2NL \ 15428lt_NL2SP \ 15429reload_flag \ 15430OBJDUMP \ 15431deplibs_check_method \ 15432file_magic_cmd \ 15433file_magic_glob \ 15434want_nocaseglob \ 15435DLLTOOL \ 15436sharedlib_from_linklib_cmd \ 15437AR \ 15438AR_FLAGS \ 15439archiver_list_spec \ 15440STRIP \ 15441RANLIB \ 15442CC \ 15443CFLAGS \ 15444compiler \ 15445lt_cv_sys_global_symbol_pipe \ 15446lt_cv_sys_global_symbol_to_cdecl \ 15447lt_cv_sys_global_symbol_to_c_name_address \ 15448lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15449nm_file_list_spec \ 15450lt_prog_compiler_no_builtin_flag \ 15451lt_prog_compiler_pic \ 15452lt_prog_compiler_wl \ 15453lt_prog_compiler_static \ 15454lt_cv_prog_compiler_c_o \ 15455need_locks \ 15456MANIFEST_TOOL \ 15457DSYMUTIL \ 15458NMEDIT \ 15459LIPO \ 15460OTOOL \ 15461OTOOL64 \ 15462shrext_cmds \ 15463export_dynamic_flag_spec \ 15464whole_archive_flag_spec \ 15465compiler_needs_object \ 15466with_gnu_ld \ 15467allow_undefined_flag \ 15468no_undefined_flag \ 15469hardcode_libdir_flag_spec \ 15470hardcode_libdir_separator \ 15471exclude_expsyms \ 15472include_expsyms \ 15473file_list_spec \ 15474variables_saved_for_relink \ 15475libname_spec \ 15476library_names_spec \ 15477soname_spec \ 15478install_override_mode \ 15479finish_eval \ 15480old_striplib \ 15481striplib; do 15482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15483 *[\\\\\\\`\\"\\\$]*) 15484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15485 ;; 15486 *) 15487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15488 ;; 15489 esac 15490done 15491 15492# Double-quote double-evaled strings. 15493for var in reload_cmds \ 15494old_postinstall_cmds \ 15495old_postuninstall_cmds \ 15496old_archive_cmds \ 15497extract_expsyms_cmds \ 15498old_archive_from_new_cmds \ 15499old_archive_from_expsyms_cmds \ 15500archive_cmds \ 15501archive_expsym_cmds \ 15502module_cmds \ 15503module_expsym_cmds \ 15504export_symbols_cmds \ 15505prelink_cmds \ 15506postlink_cmds \ 15507postinstall_cmds \ 15508postuninstall_cmds \ 15509finish_cmds \ 15510sys_lib_search_path_spec \ 15511sys_lib_dlsearch_path_spec; do 15512 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15513 *[\\\\\\\`\\"\\\$]*) 15514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15515 ;; 15516 *) 15517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15518 ;; 15519 esac 15520done 15521 15522ac_aux_dir='$ac_aux_dir' 15523xsi_shell='$xsi_shell' 15524lt_shell_append='$lt_shell_append' 15525 15526# See if we are running on zsh, and set the options which allow our 15527# commands through without removal of \ escapes INIT. 15528if test -n "\${ZSH_VERSION+set}" ; then 15529 setopt NO_GLOB_SUBST 15530fi 15531 15532 15533 PACKAGE='$PACKAGE' 15534 VERSION='$VERSION' 15535 TIMESTAMP='$TIMESTAMP' 15536 RM='$RM' 15537 ofile='$ofile' 15538 15539 15540 15541 15542_ACEOF 15543 15544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15545 15546# Handling of arguments. 15547for ac_config_target in $ac_config_targets 15548do 15549 case $ac_config_target in 15550 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15551 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15552 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15553 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15554 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15555 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 15556 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15557 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15558 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 15559 15560 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15561 esac 15562done 15563 15564 15565# If the user did not use the arguments to specify the items to instantiate, 15566# then the envvar interface is used. Set only those that are not. 15567# We use the long form for the default assignment because of an extremely 15568# bizarre bug on SunOS 4.1.3. 15569if $ac_need_defaults; then 15570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15571 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15573fi 15574 15575# Have a temporary directory for convenience. Make it in the build tree 15576# simply because there is no reason against having it here, and in addition, 15577# creating and moving files from /tmp can sometimes cause problems. 15578# Hook for its removal unless debugging. 15579# Note that there is a small window in which the directory will not be cleaned: 15580# after its creation but before its name has been assigned to `$tmp'. 15581$debug || 15582{ 15583 tmp= ac_tmp= 15584 trap 'exit_status=$? 15585 : "${ac_tmp:=$tmp}" 15586 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15587' 0 15588 trap 'as_fn_exit 1' 1 2 13 15 15589} 15590# Create a (secure) tmp directory for tmp files. 15591 15592{ 15593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15594 test -d "$tmp" 15595} || 15596{ 15597 tmp=./conf$$-$RANDOM 15598 (umask 077 && mkdir "$tmp") 15599} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15600ac_tmp=$tmp 15601 15602# Set up the scripts for CONFIG_FILES section. 15603# No need to generate them if there are no CONFIG_FILES. 15604# This happens for instance with `./config.status config.h'. 15605if test -n "$CONFIG_FILES"; then 15606 15607 15608ac_cr=`echo X | tr X '\015'` 15609# On cygwin, bash can eat \r inside `` if the user requested igncr. 15610# But we know of no other shell where ac_cr would be empty at this 15611# point, so we can use a bashism as a fallback. 15612if test "x$ac_cr" = x; then 15613 eval ac_cr=\$\'\\r\' 15614fi 15615ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15616if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15617 ac_cs_awk_cr='\\r' 15618else 15619 ac_cs_awk_cr=$ac_cr 15620fi 15621 15622echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15623_ACEOF 15624 15625 15626{ 15627 echo "cat >conf$$subs.awk <<_ACEOF" && 15628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15629 echo "_ACEOF" 15630} >conf$$subs.sh || 15631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15632ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15633ac_delim='%!_!# ' 15634for ac_last_try in false false false false false :; do 15635 . ./conf$$subs.sh || 15636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15637 15638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15639 if test $ac_delim_n = $ac_delim_num; then 15640 break 15641 elif $ac_last_try; then 15642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15643 else 15644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15645 fi 15646done 15647rm -f conf$$subs.sh 15648 15649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15650cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15651_ACEOF 15652sed -n ' 15653h 15654s/^/S["/; s/!.*/"]=/ 15655p 15656g 15657s/^[^!]*!// 15658:repl 15659t repl 15660s/'"$ac_delim"'$// 15661t delim 15662:nl 15663h 15664s/\(.\{148\}\)..*/\1/ 15665t more1 15666s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15667p 15668n 15669b repl 15670:more1 15671s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15672p 15673g 15674s/.\{148\}// 15675t nl 15676:delim 15677h 15678s/\(.\{148\}\)..*/\1/ 15679t more2 15680s/["\\]/\\&/g; s/^/"/; s/$/"/ 15681p 15682b 15683:more2 15684s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15685p 15686g 15687s/.\{148\}// 15688t delim 15689' <conf$$subs.awk | sed ' 15690/^[^""]/{ 15691 N 15692 s/\n// 15693} 15694' >>$CONFIG_STATUS || ac_write_fail=1 15695rm -f conf$$subs.awk 15696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15697_ACAWK 15698cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15699 for (key in S) S_is_set[key] = 1 15700 FS = "" 15701 15702} 15703{ 15704 line = $ 0 15705 nfields = split(line, field, "@") 15706 substed = 0 15707 len = length(field[1]) 15708 for (i = 2; i < nfields; i++) { 15709 key = field[i] 15710 keylen = length(key) 15711 if (S_is_set[key]) { 15712 value = S[key] 15713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15714 len += length(value) + length(field[++i]) 15715 substed = 1 15716 } else 15717 len += 1 + keylen 15718 } 15719 15720 print line 15721} 15722 15723_ACAWK 15724_ACEOF 15725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15726if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15728else 15729 cat 15730fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15732_ACEOF 15733 15734# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15735# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15736# trailing colons and then remove the whole line if VPATH becomes empty 15737# (actually we leave an empty line to preserve line numbers). 15738if test "x$srcdir" = x.; then 15739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15740h 15741s/// 15742s/^/:/ 15743s/[ ]*$/:/ 15744s/:\$(srcdir):/:/g 15745s/:\${srcdir}:/:/g 15746s/:@srcdir@:/:/g 15747s/^:*// 15748s/:*$// 15749x 15750s/\(=[ ]*\).*/\1/ 15751G 15752s/\n// 15753s/^[^=]*=[ ]*$// 15754}' 15755fi 15756 15757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15758fi # test -n "$CONFIG_FILES" 15759 15760# Set up the scripts for CONFIG_HEADERS section. 15761# No need to generate them if there are no CONFIG_HEADERS. 15762# This happens for instance with `./config.status Makefile'. 15763if test -n "$CONFIG_HEADERS"; then 15764cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15765BEGIN { 15766_ACEOF 15767 15768# Transform confdefs.h into an awk script `defines.awk', embedded as 15769# here-document in config.status, that substitutes the proper values into 15770# config.h.in to produce config.h. 15771 15772# Create a delimiter string that does not exist in confdefs.h, to ease 15773# handling of long lines. 15774ac_delim='%!_!# ' 15775for ac_last_try in false false :; do 15776 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15777 if test -z "$ac_tt"; then 15778 break 15779 elif $ac_last_try; then 15780 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15781 else 15782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15783 fi 15784done 15785 15786# For the awk script, D is an array of macro values keyed by name, 15787# likewise P contains macro parameters if any. Preserve backslash 15788# newline sequences. 15789 15790ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15791sed -n ' 15792s/.\{148\}/&'"$ac_delim"'/g 15793t rset 15794:rset 15795s/^[ ]*#[ ]*define[ ][ ]*/ / 15796t def 15797d 15798:def 15799s/\\$// 15800t bsnl 15801s/["\\]/\\&/g 15802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15803D["\1"]=" \3"/p 15804s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15805d 15806:bsnl 15807s/["\\]/\\&/g 15808s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15809D["\1"]=" \3\\\\\\n"\\/p 15810t cont 15811s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15812t cont 15813d 15814:cont 15815n 15816s/.\{148\}/&'"$ac_delim"'/g 15817t clear 15818:clear 15819s/\\$// 15820t bsnlc 15821s/["\\]/\\&/g; s/^/"/; s/$/"/p 15822d 15823:bsnlc 15824s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15825b cont 15826' <confdefs.h | sed ' 15827s/'"$ac_delim"'/"\\\ 15828"/g' >>$CONFIG_STATUS || ac_write_fail=1 15829 15830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15831 for (key in D) D_is_set[key] = 1 15832 FS = "" 15833} 15834/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15835 line = \$ 0 15836 split(line, arg, " ") 15837 if (arg[1] == "#") { 15838 defundef = arg[2] 15839 mac1 = arg[3] 15840 } else { 15841 defundef = substr(arg[1], 2) 15842 mac1 = arg[2] 15843 } 15844 split(mac1, mac2, "(") #) 15845 macro = mac2[1] 15846 prefix = substr(line, 1, index(line, defundef) - 1) 15847 if (D_is_set[macro]) { 15848 # Preserve the white space surrounding the "#". 15849 print prefix "define", macro P[macro] D[macro] 15850 next 15851 } else { 15852 # Replace #undef with comments. This is necessary, for example, 15853 # in the case of _POSIX_SOURCE, which is predefined and required 15854 # on some systems where configure will not decide to define it. 15855 if (defundef == "undef") { 15856 print "/*", prefix defundef, macro, "*/" 15857 next 15858 } 15859 } 15860} 15861{ print } 15862_ACAWK 15863_ACEOF 15864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15865 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15866fi # test -n "$CONFIG_HEADERS" 15867 15868 15869eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15870shift 15871for ac_tag 15872do 15873 case $ac_tag in 15874 :[FHLC]) ac_mode=$ac_tag; continue;; 15875 esac 15876 case $ac_mode$ac_tag in 15877 :[FHL]*:*);; 15878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15879 :[FH]-) ac_tag=-:-;; 15880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15881 esac 15882 ac_save_IFS=$IFS 15883 IFS=: 15884 set x $ac_tag 15885 IFS=$ac_save_IFS 15886 shift 15887 ac_file=$1 15888 shift 15889 15890 case $ac_mode in 15891 :L) ac_source=$1;; 15892 :[FH]) 15893 ac_file_inputs= 15894 for ac_f 15895 do 15896 case $ac_f in 15897 -) ac_f="$ac_tmp/stdin";; 15898 *) # Look for the file first in the build tree, then in the source tree 15899 # (if the path is not absolute). The absolute path cannot be DOS-style, 15900 # because $ac_f cannot contain `:'. 15901 test -f "$ac_f" || 15902 case $ac_f in 15903 [\\/$]*) false;; 15904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15905 esac || 15906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15907 esac 15908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15909 as_fn_append ac_file_inputs " '$ac_f'" 15910 done 15911 15912 # Let's still pretend it is `configure' which instantiates (i.e., don't 15913 # use $as_me), people would be surprised to read: 15914 # /* config.h. Generated by config.status. */ 15915 configure_input='Generated from '` 15916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15917 `' by configure.' 15918 if test x"$ac_file" != x-; then 15919 configure_input="$ac_file. $configure_input" 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15921$as_echo "$as_me: creating $ac_file" >&6;} 15922 fi 15923 # Neutralize special characters interpreted by sed in replacement strings. 15924 case $configure_input in #( 15925 *\&* | *\|* | *\\* ) 15926 ac_sed_conf_input=`$as_echo "$configure_input" | 15927 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15928 *) ac_sed_conf_input=$configure_input;; 15929 esac 15930 15931 case $ac_tag in 15932 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15934 esac 15935 ;; 15936 esac 15937 15938 ac_dir=`$as_dirname -- "$ac_file" || 15939$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15940 X"$ac_file" : 'X\(//\)[^/]' \| \ 15941 X"$ac_file" : 'X\(//\)$' \| \ 15942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15943$as_echo X"$ac_file" | 15944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15945 s//\1/ 15946 q 15947 } 15948 /^X\(\/\/\)[^/].*/{ 15949 s//\1/ 15950 q 15951 } 15952 /^X\(\/\/\)$/{ 15953 s//\1/ 15954 q 15955 } 15956 /^X\(\/\).*/{ 15957 s//\1/ 15958 q 15959 } 15960 s/.*/./; q'` 15961 as_dir="$ac_dir"; as_fn_mkdir_p 15962 ac_builddir=. 15963 15964case "$ac_dir" in 15965.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15966*) 15967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15968 # A ".." for each directory in $ac_dir_suffix. 15969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15970 case $ac_top_builddir_sub in 15971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15973 esac ;; 15974esac 15975ac_abs_top_builddir=$ac_pwd 15976ac_abs_builddir=$ac_pwd$ac_dir_suffix 15977# for backward compatibility: 15978ac_top_builddir=$ac_top_build_prefix 15979 15980case $srcdir in 15981 .) # We are building in place. 15982 ac_srcdir=. 15983 ac_top_srcdir=$ac_top_builddir_sub 15984 ac_abs_top_srcdir=$ac_pwd ;; 15985 [\\/]* | ?:[\\/]* ) # Absolute name. 15986 ac_srcdir=$srcdir$ac_dir_suffix; 15987 ac_top_srcdir=$srcdir 15988 ac_abs_top_srcdir=$srcdir ;; 15989 *) # Relative name. 15990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15991 ac_top_srcdir=$ac_top_build_prefix$srcdir 15992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15993esac 15994ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15995 15996 15997 case $ac_mode in 15998 :F) 15999 # 16000 # CONFIG_FILE 16001 # 16002 16003 case $INSTALL in 16004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16006 esac 16007 ac_MKDIR_P=$MKDIR_P 16008 case $MKDIR_P in 16009 [\\/$]* | ?:[\\/]* ) ;; 16010 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16011 esac 16012_ACEOF 16013 16014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16015# If the template does not know about datarootdir, expand it. 16016# FIXME: This hack should be removed a few years after 2.60. 16017ac_datarootdir_hack=; ac_datarootdir_seen= 16018ac_sed_dataroot=' 16019/datarootdir/ { 16020 p 16021 q 16022} 16023/@datadir@/p 16024/@docdir@/p 16025/@infodir@/p 16026/@localedir@/p 16027/@mandir@/p' 16028case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16029*datarootdir*) ac_datarootdir_seen=yes;; 16030*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16032$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16033_ACEOF 16034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16035 ac_datarootdir_hack=' 16036 s&@datadir@&$datadir&g 16037 s&@docdir@&$docdir&g 16038 s&@infodir@&$infodir&g 16039 s&@localedir@&$localedir&g 16040 s&@mandir@&$mandir&g 16041 s&\\\${datarootdir}&$datarootdir&g' ;; 16042esac 16043_ACEOF 16044 16045# Neutralize VPATH when `$srcdir' = `.'. 16046# Shell code in configure.ac might set extrasub. 16047# FIXME: do we really want to maintain this feature? 16048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16049ac_sed_extra="$ac_vpsub 16050$extrasub 16051_ACEOF 16052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16053:t 16054/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16055s|@configure_input@|$ac_sed_conf_input|;t t 16056s&@top_builddir@&$ac_top_builddir_sub&;t t 16057s&@top_build_prefix@&$ac_top_build_prefix&;t t 16058s&@srcdir@&$ac_srcdir&;t t 16059s&@abs_srcdir@&$ac_abs_srcdir&;t t 16060s&@top_srcdir@&$ac_top_srcdir&;t t 16061s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16062s&@builddir@&$ac_builddir&;t t 16063s&@abs_builddir@&$ac_abs_builddir&;t t 16064s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16065s&@INSTALL@&$ac_INSTALL&;t t 16066s&@MKDIR_P@&$ac_MKDIR_P&;t t 16067$ac_datarootdir_hack 16068" 16069eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16070 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16071 16072test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16073 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16075 "$ac_tmp/out"`; test -z "$ac_out"; } && 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16077which seems to be undefined. Please make sure it is defined" >&5 16078$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16079which seems to be undefined. Please make sure it is defined" >&2;} 16080 16081 rm -f "$ac_tmp/stdin" 16082 case $ac_file in 16083 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16084 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16085 esac \ 16086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16087 ;; 16088 :H) 16089 # 16090 # CONFIG_HEADER 16091 # 16092 if test x"$ac_file" != x-; then 16093 { 16094 $as_echo "/* $configure_input */" \ 16095 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16096 } >"$ac_tmp/config.h" \ 16097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16098 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16100$as_echo "$as_me: $ac_file is unchanged" >&6;} 16101 else 16102 rm -f "$ac_file" 16103 mv "$ac_tmp/config.h" "$ac_file" \ 16104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16105 fi 16106 else 16107 $as_echo "/* $configure_input */" \ 16108 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16109 || as_fn_error $? "could not create -" "$LINENO" 5 16110 fi 16111# Compute "$ac_file"'s index in $config_headers. 16112_am_arg="$ac_file" 16113_am_stamp_count=1 16114for _am_header in $config_headers :; do 16115 case $_am_header in 16116 $_am_arg | $_am_arg:* ) 16117 break ;; 16118 * ) 16119 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16120 esac 16121done 16122echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16123$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16124 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16125 X"$_am_arg" : 'X\(//\)$' \| \ 16126 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16127$as_echo X"$_am_arg" | 16128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16129 s//\1/ 16130 q 16131 } 16132 /^X\(\/\/\)[^/].*/{ 16133 s//\1/ 16134 q 16135 } 16136 /^X\(\/\/\)$/{ 16137 s//\1/ 16138 q 16139 } 16140 /^X\(\/\).*/{ 16141 s//\1/ 16142 q 16143 } 16144 s/.*/./; q'`/stamp-h$_am_stamp_count 16145 ;; 16146 16147 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16148$as_echo "$as_me: executing $ac_file commands" >&6;} 16149 ;; 16150 esac 16151 16152 16153 case $ac_file$ac_mode in 16154 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16155 # Older Autoconf quotes --file arguments for eval, but not when files 16156 # are listed without --file. Let's play safe and only enable the eval 16157 # if we detect the quoting. 16158 case $CONFIG_FILES in 16159 *\'*) eval set x "$CONFIG_FILES" ;; 16160 *) set x $CONFIG_FILES ;; 16161 esac 16162 shift 16163 for mf 16164 do 16165 # Strip MF so we end up with the name of the file. 16166 mf=`echo "$mf" | sed -e 's/:.*$//'` 16167 # Check whether this is an Automake generated Makefile or not. 16168 # We used to match only the files named 'Makefile.in', but 16169 # some people rename them; so instead we look at the file content. 16170 # Grep'ing the first line is not enough: some people post-process 16171 # each Makefile.in and add a new line on top of each file to say so. 16172 # Grep'ing the whole file is not good either: AIX grep has a line 16173 # limit of 2048, but all sed's we know have understand at least 4000. 16174 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16175 dirpart=`$as_dirname -- "$mf" || 16176$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16177 X"$mf" : 'X\(//\)[^/]' \| \ 16178 X"$mf" : 'X\(//\)$' \| \ 16179 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16180$as_echo X"$mf" | 16181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16182 s//\1/ 16183 q 16184 } 16185 /^X\(\/\/\)[^/].*/{ 16186 s//\1/ 16187 q 16188 } 16189 /^X\(\/\/\)$/{ 16190 s//\1/ 16191 q 16192 } 16193 /^X\(\/\).*/{ 16194 s//\1/ 16195 q 16196 } 16197 s/.*/./; q'` 16198 else 16199 continue 16200 fi 16201 # Extract the definition of DEPDIR, am__include, and am__quote 16202 # from the Makefile without running 'make'. 16203 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16204 test -z "$DEPDIR" && continue 16205 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16206 test -z "$am__include" && continue 16207 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16208 # Find all dependency output files, they are included files with 16209 # $(DEPDIR) in their names. We invoke sed twice because it is the 16210 # simplest approach to changing $(DEPDIR) to its actual value in the 16211 # expansion. 16212 for file in `sed -n " 16213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16215 # Make sure the directory exists. 16216 test -f "$dirpart/$file" && continue 16217 fdir=`$as_dirname -- "$file" || 16218$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16219 X"$file" : 'X\(//\)[^/]' \| \ 16220 X"$file" : 'X\(//\)$' \| \ 16221 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16222$as_echo X"$file" | 16223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16224 s//\1/ 16225 q 16226 } 16227 /^X\(\/\/\)[^/].*/{ 16228 s//\1/ 16229 q 16230 } 16231 /^X\(\/\/\)$/{ 16232 s//\1/ 16233 q 16234 } 16235 /^X\(\/\).*/{ 16236 s//\1/ 16237 q 16238 } 16239 s/.*/./; q'` 16240 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16241 # echo "creating $dirpart/$file" 16242 echo '# dummy' > "$dirpart/$file" 16243 done 16244 done 16245} 16246 ;; 16247 "libtool":C) 16248 16249 # See if we are running on zsh, and set the options which allow our 16250 # commands through without removal of \ escapes. 16251 if test -n "${ZSH_VERSION+set}" ; then 16252 setopt NO_GLOB_SUBST 16253 fi 16254 16255 cfgfile="${ofile}T" 16256 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16257 $RM "$cfgfile" 16258 16259 cat <<_LT_EOF >> "$cfgfile" 16260#! $SHELL 16261 16262# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16263# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16265# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16266# 16267# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16268# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 16269# Foundation, Inc. 16270# Written by Gordon Matzigkeit, 1996 16271# 16272# This file is part of GNU Libtool. 16273# 16274# GNU Libtool is free software; you can redistribute it and/or 16275# modify it under the terms of the GNU General Public License as 16276# published by the Free Software Foundation; either version 2 of 16277# the License, or (at your option) any later version. 16278# 16279# As a special exception to the GNU General Public License, 16280# if you distribute this file as part of a program or library that 16281# is built using GNU Libtool, you may include this file under the 16282# same distribution terms that you use for the rest of that program. 16283# 16284# GNU Libtool is distributed in the hope that it will be useful, 16285# but WITHOUT ANY WARRANTY; without even the implied warranty of 16286# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16287# GNU General Public License for more details. 16288# 16289# You should have received a copy of the GNU General Public License 16290# along with GNU Libtool; see the file COPYING. If not, a copy 16291# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16292# obtained by writing to the Free Software Foundation, Inc., 16293# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16294 16295 16296# The names of the tagged configurations supported by this script. 16297available_tags="" 16298 16299# ### BEGIN LIBTOOL CONFIG 16300 16301# Which release of libtool.m4 was used? 16302macro_version=$macro_version 16303macro_revision=$macro_revision 16304 16305# Whether or not to build static libraries. 16306build_old_libs=$enable_static 16307 16308# What type of objects to build. 16309pic_mode=$pic_mode 16310 16311# Whether or not to build shared libraries. 16312build_libtool_libs=$enable_shared 16313 16314# Whether or not to optimize for fast installation. 16315fast_install=$enable_fast_install 16316 16317# Shell to use when invoking shell scripts. 16318SHELL=$lt_SHELL 16319 16320# An echo program that protects backslashes. 16321ECHO=$lt_ECHO 16322 16323# The PATH separator for the build system. 16324PATH_SEPARATOR=$lt_PATH_SEPARATOR 16325 16326# The host system. 16327host_alias=$host_alias 16328host=$host 16329host_os=$host_os 16330 16331# The build system. 16332build_alias=$build_alias 16333build=$build 16334build_os=$build_os 16335 16336# A sed program that does not truncate output. 16337SED=$lt_SED 16338 16339# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16340Xsed="\$SED -e 1s/^X//" 16341 16342# A grep program that handles long lines. 16343GREP=$lt_GREP 16344 16345# An ERE matcher. 16346EGREP=$lt_EGREP 16347 16348# A literal string matcher. 16349FGREP=$lt_FGREP 16350 16351# A BSD- or MS-compatible name lister. 16352NM=$lt_NM 16353 16354# Whether we need soft or hard links. 16355LN_S=$lt_LN_S 16356 16357# What is the maximum length of a command? 16358max_cmd_len=$max_cmd_len 16359 16360# Object file suffix (normally "o"). 16361objext=$ac_objext 16362 16363# Executable file suffix (normally ""). 16364exeext=$exeext 16365 16366# whether the shell understands "unset". 16367lt_unset=$lt_unset 16368 16369# turn spaces into newlines. 16370SP2NL=$lt_lt_SP2NL 16371 16372# turn newlines into spaces. 16373NL2SP=$lt_lt_NL2SP 16374 16375# convert \$build file names to \$host format. 16376to_host_file_cmd=$lt_cv_to_host_file_cmd 16377 16378# convert \$build files to toolchain format. 16379to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16380 16381# An object symbol dumper. 16382OBJDUMP=$lt_OBJDUMP 16383 16384# Method to check whether dependent libraries are shared objects. 16385deplibs_check_method=$lt_deplibs_check_method 16386 16387# Command to use when deplibs_check_method = "file_magic". 16388file_magic_cmd=$lt_file_magic_cmd 16389 16390# How to find potential files when deplibs_check_method = "file_magic". 16391file_magic_glob=$lt_file_magic_glob 16392 16393# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16394want_nocaseglob=$lt_want_nocaseglob 16395 16396# DLL creation program. 16397DLLTOOL=$lt_DLLTOOL 16398 16399# Command to associate shared and link libraries. 16400sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16401 16402# The archiver. 16403AR=$lt_AR 16404 16405# Flags to create an archive. 16406AR_FLAGS=$lt_AR_FLAGS 16407 16408# How to feed a file listing to the archiver. 16409archiver_list_spec=$lt_archiver_list_spec 16410 16411# A symbol stripping program. 16412STRIP=$lt_STRIP 16413 16414# Commands used to install an old-style archive. 16415RANLIB=$lt_RANLIB 16416old_postinstall_cmds=$lt_old_postinstall_cmds 16417old_postuninstall_cmds=$lt_old_postuninstall_cmds 16418 16419# Whether to use a lock for old archive extraction. 16420lock_old_archive_extraction=$lock_old_archive_extraction 16421 16422# A C compiler. 16423LTCC=$lt_CC 16424 16425# LTCC compiler flags. 16426LTCFLAGS=$lt_CFLAGS 16427 16428# Take the output of nm and produce a listing of raw symbols and C names. 16429global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16430 16431# Transform the output of nm in a proper C declaration. 16432global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16433 16434# Transform the output of nm in a C name address pair. 16435global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16436 16437# Transform the output of nm in a C name address pair when lib prefix is needed. 16438global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16439 16440# Specify filename containing input files for \$NM. 16441nm_file_list_spec=$lt_nm_file_list_spec 16442 16443# The root where to search for dependent libraries,and in which our libraries should be installed. 16444lt_sysroot=$lt_sysroot 16445 16446# The name of the directory that contains temporary libtool files. 16447objdir=$objdir 16448 16449# Used to examine libraries when file_magic_cmd begins with "file". 16450MAGIC_CMD=$MAGIC_CMD 16451 16452# Must we lock files when doing compilation? 16453need_locks=$lt_need_locks 16454 16455# Manifest tool. 16456MANIFEST_TOOL=$lt_MANIFEST_TOOL 16457 16458# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16459DSYMUTIL=$lt_DSYMUTIL 16460 16461# Tool to change global to local symbols on Mac OS X. 16462NMEDIT=$lt_NMEDIT 16463 16464# Tool to manipulate fat objects and archives on Mac OS X. 16465LIPO=$lt_LIPO 16466 16467# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16468OTOOL=$lt_OTOOL 16469 16470# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16471OTOOL64=$lt_OTOOL64 16472 16473# Old archive suffix (normally "a"). 16474libext=$libext 16475 16476# Shared library suffix (normally ".so"). 16477shrext_cmds=$lt_shrext_cmds 16478 16479# The commands to extract the exported symbol list from a shared archive. 16480extract_expsyms_cmds=$lt_extract_expsyms_cmds 16481 16482# Variables whose values should be saved in libtool wrapper scripts and 16483# restored at link time. 16484variables_saved_for_relink=$lt_variables_saved_for_relink 16485 16486# Do we need the "lib" prefix for modules? 16487need_lib_prefix=$need_lib_prefix 16488 16489# Do we need a version for libraries? 16490need_version=$need_version 16491 16492# Library versioning type. 16493version_type=$version_type 16494 16495# Shared library runtime path variable. 16496runpath_var=$runpath_var 16497 16498# Shared library path variable. 16499shlibpath_var=$shlibpath_var 16500 16501# Is shlibpath searched before the hard-coded library search path? 16502shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16503 16504# Format of library name prefix. 16505libname_spec=$lt_libname_spec 16506 16507# List of archive names. First name is the real one, the rest are links. 16508# The last name is the one that the linker finds with -lNAME 16509library_names_spec=$lt_library_names_spec 16510 16511# The coded name of the library, if different from the real name. 16512soname_spec=$lt_soname_spec 16513 16514# Permission mode override for installation of shared libraries. 16515install_override_mode=$lt_install_override_mode 16516 16517# Command to use after installation of a shared archive. 16518postinstall_cmds=$lt_postinstall_cmds 16519 16520# Command to use after uninstallation of a shared archive. 16521postuninstall_cmds=$lt_postuninstall_cmds 16522 16523# Commands used to finish a libtool library installation in a directory. 16524finish_cmds=$lt_finish_cmds 16525 16526# As "finish_cmds", except a single script fragment to be evaled but 16527# not shown. 16528finish_eval=$lt_finish_eval 16529 16530# Whether we should hardcode library paths into libraries. 16531hardcode_into_libs=$hardcode_into_libs 16532 16533# Compile-time system search path for libraries. 16534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16535 16536# Run-time system search path for libraries. 16537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16538 16539# Whether dlopen is supported. 16540dlopen_support=$enable_dlopen 16541 16542# Whether dlopen of programs is supported. 16543dlopen_self=$enable_dlopen_self 16544 16545# Whether dlopen of statically linked programs is supported. 16546dlopen_self_static=$enable_dlopen_self_static 16547 16548# Commands to strip libraries. 16549old_striplib=$lt_old_striplib 16550striplib=$lt_striplib 16551 16552 16553# The linker used to build libraries. 16554LD=$lt_LD 16555 16556# How to create reloadable object files. 16557reload_flag=$lt_reload_flag 16558reload_cmds=$lt_reload_cmds 16559 16560# Commands used to build an old-style archive. 16561old_archive_cmds=$lt_old_archive_cmds 16562 16563# A language specific compiler. 16564CC=$lt_compiler 16565 16566# Is the compiler the GNU compiler? 16567with_gcc=$GCC 16568 16569# Compiler flag to turn off builtin functions. 16570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16571 16572# Additional compiler flags for building library objects. 16573pic_flag=$lt_lt_prog_compiler_pic 16574 16575# How to pass a linker flag through the compiler. 16576wl=$lt_lt_prog_compiler_wl 16577 16578# Compiler flag to prevent dynamic linking. 16579link_static_flag=$lt_lt_prog_compiler_static 16580 16581# Does compiler simultaneously support -c and -o options? 16582compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16583 16584# Whether or not to add -lc for building shared libraries. 16585build_libtool_need_lc=$archive_cmds_need_lc 16586 16587# Whether or not to disallow shared libs when runtime libs are static. 16588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16589 16590# Compiler flag to allow reflexive dlopens. 16591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16592 16593# Compiler flag to generate shared objects directly from archives. 16594whole_archive_flag_spec=$lt_whole_archive_flag_spec 16595 16596# Whether the compiler copes with passing no objects directly. 16597compiler_needs_object=$lt_compiler_needs_object 16598 16599# Create an old-style archive from a shared archive. 16600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16601 16602# Create a temporary old-style archive to link instead of a shared archive. 16603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16604 16605# Commands used to build a shared archive. 16606archive_cmds=$lt_archive_cmds 16607archive_expsym_cmds=$lt_archive_expsym_cmds 16608 16609# Commands used to build a loadable module if different from building 16610# a shared archive. 16611module_cmds=$lt_module_cmds 16612module_expsym_cmds=$lt_module_expsym_cmds 16613 16614# Whether we are building with GNU ld or not. 16615with_gnu_ld=$lt_with_gnu_ld 16616 16617# Flag that allows shared libraries with undefined symbols to be built. 16618allow_undefined_flag=$lt_allow_undefined_flag 16619 16620# Flag that enforces no undefined symbols. 16621no_undefined_flag=$lt_no_undefined_flag 16622 16623# Flag to hardcode \$libdir into a binary during linking. 16624# This must work even if \$libdir does not exist 16625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16626 16627# Whether we need a single "-rpath" flag with a separated argument. 16628hardcode_libdir_separator=$lt_hardcode_libdir_separator 16629 16630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16631# DIR into the resulting binary. 16632hardcode_direct=$hardcode_direct 16633 16634# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16635# DIR into the resulting binary and the resulting library dependency is 16636# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16637# library is relocated. 16638hardcode_direct_absolute=$hardcode_direct_absolute 16639 16640# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16641# into the resulting binary. 16642hardcode_minus_L=$hardcode_minus_L 16643 16644# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16645# into the resulting binary. 16646hardcode_shlibpath_var=$hardcode_shlibpath_var 16647 16648# Set to "yes" if building a shared library automatically hardcodes DIR 16649# into the library and all subsequent libraries and executables linked 16650# against it. 16651hardcode_automatic=$hardcode_automatic 16652 16653# Set to yes if linker adds runtime paths of dependent libraries 16654# to runtime path list. 16655inherit_rpath=$inherit_rpath 16656 16657# Whether libtool must link a program against all its dependency libraries. 16658link_all_deplibs=$link_all_deplibs 16659 16660# Set to "yes" if exported symbols are required. 16661always_export_symbols=$always_export_symbols 16662 16663# The commands to list exported symbols. 16664export_symbols_cmds=$lt_export_symbols_cmds 16665 16666# Symbols that should not be listed in the preloaded symbols. 16667exclude_expsyms=$lt_exclude_expsyms 16668 16669# Symbols that must always be exported. 16670include_expsyms=$lt_include_expsyms 16671 16672# Commands necessary for linking programs (against libraries) with templates. 16673prelink_cmds=$lt_prelink_cmds 16674 16675# Commands necessary for finishing linking programs. 16676postlink_cmds=$lt_postlink_cmds 16677 16678# Specify filename containing input files. 16679file_list_spec=$lt_file_list_spec 16680 16681# How to hardcode a shared library path into an executable. 16682hardcode_action=$hardcode_action 16683 16684# ### END LIBTOOL CONFIG 16685 16686_LT_EOF 16687 16688 case $host_os in 16689 aix3*) 16690 cat <<\_LT_EOF >> "$cfgfile" 16691# AIX sometimes has problems with the GCC collect2 program. For some 16692# reason, if we set the COLLECT_NAMES environment variable, the problems 16693# vanish in a puff of smoke. 16694if test "X${COLLECT_NAMES+set}" != Xset; then 16695 COLLECT_NAMES= 16696 export COLLECT_NAMES 16697fi 16698_LT_EOF 16699 ;; 16700 esac 16701 16702 16703ltmain="$ac_aux_dir/ltmain.sh" 16704 16705 16706 # We use sed instead of cat because bash on DJGPP gets confused if 16707 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16708 # text mode, it properly converts lines to CR/LF. This bash problem 16709 # is reportedly fixed, but why not run on old versions too? 16710 sed '$q' "$ltmain" >> "$cfgfile" \ 16711 || (rm -f "$cfgfile"; exit 1) 16712 16713 if test x"$xsi_shell" = xyes; then 16714 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 16715func_dirname ()\ 16716{\ 16717\ case ${1} in\ 16718\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16719\ * ) func_dirname_result="${3}" ;;\ 16720\ esac\ 16721} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 16722 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16724test 0 -eq $? || _lt_function_replace_fail=: 16725 16726 16727 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 16728func_basename ()\ 16729{\ 16730\ func_basename_result="${1##*/}"\ 16731} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16732 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16734test 0 -eq $? || _lt_function_replace_fail=: 16735 16736 16737 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 16738func_dirname_and_basename ()\ 16739{\ 16740\ case ${1} in\ 16741\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16742\ * ) func_dirname_result="${3}" ;;\ 16743\ esac\ 16744\ func_basename_result="${1##*/}"\ 16745} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16746 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16748test 0 -eq $? || _lt_function_replace_fail=: 16749 16750 16751 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 16752func_stripname ()\ 16753{\ 16754\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 16755\ # positional parameters, so assign one to ordinary parameter first.\ 16756\ func_stripname_result=${3}\ 16757\ func_stripname_result=${func_stripname_result#"${1}"}\ 16758\ func_stripname_result=${func_stripname_result%"${2}"}\ 16759} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 16760 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16762test 0 -eq $? || _lt_function_replace_fail=: 16763 16764 16765 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 16766func_split_long_opt ()\ 16767{\ 16768\ func_split_long_opt_name=${1%%=*}\ 16769\ func_split_long_opt_arg=${1#*=}\ 16770} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16771 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16773test 0 -eq $? || _lt_function_replace_fail=: 16774 16775 16776 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 16777func_split_short_opt ()\ 16778{\ 16779\ func_split_short_opt_arg=${1#??}\ 16780\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 16781} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16782 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16784test 0 -eq $? || _lt_function_replace_fail=: 16785 16786 16787 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 16788func_lo2o ()\ 16789{\ 16790\ case ${1} in\ 16791\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 16792\ *) func_lo2o_result=${1} ;;\ 16793\ esac\ 16794} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 16795 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16797test 0 -eq $? || _lt_function_replace_fail=: 16798 16799 16800 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 16801func_xform ()\ 16802{\ 16803 func_xform_result=${1%.*}.lo\ 16804} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 16805 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16807test 0 -eq $? || _lt_function_replace_fail=: 16808 16809 16810 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 16811func_arith ()\ 16812{\ 16813 func_arith_result=$(( $* ))\ 16814} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 16815 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16817test 0 -eq $? || _lt_function_replace_fail=: 16818 16819 16820 sed -e '/^func_len ()$/,/^} # func_len /c\ 16821func_len ()\ 16822{\ 16823 func_len_result=${#1}\ 16824} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 16825 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16827test 0 -eq $? || _lt_function_replace_fail=: 16828 16829fi 16830 16831if test x"$lt_shell_append" = xyes; then 16832 sed -e '/^func_append ()$/,/^} # func_append /c\ 16833func_append ()\ 16834{\ 16835 eval "${1}+=\\${2}"\ 16836} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 16837 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16839test 0 -eq $? || _lt_function_replace_fail=: 16840 16841 16842 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 16843func_append_quoted ()\ 16844{\ 16845\ func_quote_for_eval "${2}"\ 16846\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 16847} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 16848 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16850test 0 -eq $? || _lt_function_replace_fail=: 16851 16852 16853 # Save a `func_append' function call where possible by direct use of '+=' 16854 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 16855 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16857 test 0 -eq $? || _lt_function_replace_fail=: 16858else 16859 # Save a `func_append' function call even when '+=' is not available 16860 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16861 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16863 test 0 -eq $? || _lt_function_replace_fail=: 16864fi 16865 16866if test x"$_lt_function_replace_fail" = x":"; then 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16868$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16869fi 16870 16871 16872 mv -f "$cfgfile" "$ofile" || 16873 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16874 chmod +x "$ofile" 16875 16876 ;; 16877 16878 esac 16879done # for ac_tag 16880 16881 16882as_fn_exit 0 16883_ACEOF 16884ac_clean_files=$ac_clean_files_save 16885 16886test $ac_write_fail = 0 || 16887 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16888 16889 16890# configure is writing to config.log, and then calls config.status. 16891# config.status does its own redirection, appending to config.log. 16892# Unfortunately, on DOS this fails, as config.log is still kept open 16893# by configure, so config.status won't be able to write to it; its 16894# output is simply discarded. So we exec the FD to /dev/null, 16895# effectively closing config.log, so it can be properly (re)opened and 16896# appended to by config.status. When coming back to configure, we 16897# need to make the FD available again. 16898if test "$no_create" != yes; then 16899 ac_cs_success=: 16900 ac_config_status_args= 16901 test "$silent" = yes && 16902 ac_config_status_args="$ac_config_status_args --quiet" 16903 exec 5>/dev/null 16904 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16905 exec 5>>config.log 16906 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16907 # would make configure fail if this is the last instruction. 16908 $ac_cs_success || as_fn_exit 1 16909fi 16910if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16912$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16913fi 16914 16915