1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for file 5.30. 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.30' 594PACKAGE_STRING='file 5.30' 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 698MAINT 699MAINTAINER_MODE_FALSE 700MAINTAINER_MODE_TRUE 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_maintainer_mode 771enable_elf 772enable_elf_core 773enable_zlib 774enable_fsect_man5 775enable_dependency_tracking 776enable_static 777with_pic 778enable_shared 779enable_fast_install 780with_gnu_ld 781with_sysroot 782enable_libtool_lock 783enable_largefile 784enable_warnings 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794CPP' 795 796 797# Initialize some variables set by options. 798ac_init_help= 799ac_init_version=false 800ac_unrecognized_opts= 801ac_unrecognized_sep= 802# The variables have the same names as the options, with 803# dashes changed to underlines. 804cache_file=/dev/null 805exec_prefix=NONE 806no_create= 807no_recursion= 808prefix=NONE 809program_prefix=NONE 810program_suffix=NONE 811program_transform_name=s,x,x, 812silent= 813site= 814srcdir= 815verbose= 816x_includes=NONE 817x_libraries=NONE 818 819# Installation directory options. 820# These are left unexpanded so users can "make install exec_prefix=/foo" 821# and all the variables that are supposed to be based on exec_prefix 822# by default will actually change. 823# Use braces instead of parens because sh, perl, etc. also accept them. 824# (The list follows the same order as the GNU Coding Standards.) 825bindir='${exec_prefix}/bin' 826sbindir='${exec_prefix}/sbin' 827libexecdir='${exec_prefix}/libexec' 828datarootdir='${prefix}/share' 829datadir='${datarootdir}' 830sysconfdir='${prefix}/etc' 831sharedstatedir='${prefix}/com' 832localstatedir='${prefix}/var' 833includedir='${prefix}/include' 834oldincludedir='/usr/include' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836infodir='${datarootdir}/info' 837htmldir='${docdir}' 838dvidir='${docdir}' 839pdfdir='${docdir}' 840psdir='${docdir}' 841libdir='${exec_prefix}/lib' 842localedir='${datarootdir}/locale' 843mandir='${datarootdir}/man' 844 845ac_prev= 846ac_dashdash= 847for ac_option 848do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 # Accept the important Cygnus configure options, so we can diagnose typos. 863 864 case $ac_dashdash$ac_option in 865 --) 866 ac_dashdash=yes ;; 867 868 -bindir | --bindir | --bindi | --bind | --bin | --bi) 869 ac_prev=bindir ;; 870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 871 bindir=$ac_optarg ;; 872 873 -build | --build | --buil | --bui | --bu) 874 ac_prev=build_alias ;; 875 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 876 build_alias=$ac_optarg ;; 877 878 -cache-file | --cache-file | --cache-fil | --cache-fi \ 879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 880 ac_prev=cache_file ;; 881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 883 cache_file=$ac_optarg ;; 884 885 --config-cache | -C) 886 cache_file=config.cache ;; 887 888 -datadir | --datadir | --datadi | --datad) 889 ac_prev=datadir ;; 890 -datadir=* | --datadir=* | --datadi=* | --datad=*) 891 datadir=$ac_optarg ;; 892 893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 894 | --dataroo | --dataro | --datar) 895 ac_prev=datarootdir ;; 896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 898 datarootdir=$ac_optarg ;; 899 900 -disable-* | --disable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error $? "invalid feature name: $ac_useropt" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=no ;; 915 916 -docdir | --docdir | --docdi | --doc | --do) 917 ac_prev=docdir ;; 918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 919 docdir=$ac_optarg ;; 920 921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 922 ac_prev=dvidir ;; 923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 924 dvidir=$ac_optarg ;; 925 926 -enable-* | --enable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=\$ac_optarg ;; 941 942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 944 | --exec | --exe | --ex) 945 ac_prev=exec_prefix ;; 946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 948 | --exec=* | --exe=* | --ex=*) 949 exec_prefix=$ac_optarg ;; 950 951 -gas | --gas | --ga | --g) 952 # Obsolete; use --with-gas. 953 with_gas=yes ;; 954 955 -help | --help | --hel | --he | -h) 956 ac_init_help=long ;; 957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 958 ac_init_help=recursive ;; 959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 960 ac_init_help=short ;; 961 962 -host | --host | --hos | --ho) 963 ac_prev=host_alias ;; 964 -host=* | --host=* | --hos=* | --ho=*) 965 host_alias=$ac_optarg ;; 966 967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 968 ac_prev=htmldir ;; 969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 970 | --ht=*) 971 htmldir=$ac_optarg ;; 972 973 -includedir | --includedir | --includedi | --included | --include \ 974 | --includ | --inclu | --incl | --inc) 975 ac_prev=includedir ;; 976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 977 | --includ=* | --inclu=* | --incl=* | --inc=*) 978 includedir=$ac_optarg ;; 979 980 -infodir | --infodir | --infodi | --infod | --info | --inf) 981 ac_prev=infodir ;; 982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 983 infodir=$ac_optarg ;; 984 985 -libdir | --libdir | --libdi | --libd) 986 ac_prev=libdir ;; 987 -libdir=* | --libdir=* | --libdi=* | --libd=*) 988 libdir=$ac_optarg ;; 989 990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 991 | --libexe | --libex | --libe) 992 ac_prev=libexecdir ;; 993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 994 | --libexe=* | --libex=* | --libe=*) 995 libexecdir=$ac_optarg ;; 996 997 -localedir | --localedir | --localedi | --localed | --locale) 998 ac_prev=localedir ;; 999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1000 localedir=$ac_optarg ;; 1001 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1003 | --localstate | --localstat | --localsta | --localst | --locals) 1004 ac_prev=localstatedir ;; 1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1007 localstatedir=$ac_optarg ;; 1008 1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1010 ac_prev=mandir ;; 1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1012 mandir=$ac_optarg ;; 1013 1014 -nfp | --nfp | --nf) 1015 # Obsolete; use --without-fp. 1016 with_fp=no ;; 1017 1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1019 | --no-cr | --no-c | -n) 1020 no_create=yes ;; 1021 1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1024 no_recursion=yes ;; 1025 1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1028 | --oldin | --oldi | --old | --ol | --o) 1029 ac_prev=oldincludedir ;; 1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1033 oldincludedir=$ac_optarg ;; 1034 1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1036 ac_prev=prefix ;; 1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1038 prefix=$ac_optarg ;; 1039 1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1041 | --program-pre | --program-pr | --program-p) 1042 ac_prev=program_prefix ;; 1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1045 program_prefix=$ac_optarg ;; 1046 1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1048 | --program-suf | --program-su | --program-s) 1049 ac_prev=program_suffix ;; 1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1052 program_suffix=$ac_optarg ;; 1053 1054 -program-transform-name | --program-transform-name \ 1055 | --program-transform-nam | --program-transform-na \ 1056 | --program-transform-n | --program-transform- \ 1057 | --program-transform | --program-transfor \ 1058 | --program-transfo | --program-transf \ 1059 | --program-trans | --program-tran \ 1060 | --progr-tra | --program-tr | --program-t) 1061 ac_prev=program_transform_name ;; 1062 -program-transform-name=* | --program-transform-name=* \ 1063 | --program-transform-nam=* | --program-transform-na=* \ 1064 | --program-transform-n=* | --program-transform-=* \ 1065 | --program-transform=* | --program-transfor=* \ 1066 | --program-transfo=* | --program-transf=* \ 1067 | --program-trans=* | --program-tran=* \ 1068 | --progr-tra=* | --program-tr=* | --program-t=*) 1069 program_transform_name=$ac_optarg ;; 1070 1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1072 ac_prev=pdfdir ;; 1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1074 pdfdir=$ac_optarg ;; 1075 1076 -psdir | --psdir | --psdi | --psd | --ps) 1077 ac_prev=psdir ;; 1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1079 psdir=$ac_optarg ;; 1080 1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1082 | -silent | --silent | --silen | --sile | --sil) 1083 silent=yes ;; 1084 1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1086 ac_prev=sbindir ;; 1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1088 | --sbi=* | --sb=*) 1089 sbindir=$ac_optarg ;; 1090 1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1093 | --sharedst | --shareds | --shared | --share | --shar \ 1094 | --sha | --sh) 1095 ac_prev=sharedstatedir ;; 1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1099 | --sha=* | --sh=*) 1100 sharedstatedir=$ac_optarg ;; 1101 1102 -site | --site | --sit) 1103 ac_prev=site ;; 1104 -site=* | --site=* | --sit=*) 1105 site=$ac_optarg ;; 1106 1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1108 ac_prev=srcdir ;; 1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1110 srcdir=$ac_optarg ;; 1111 1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1113 | --syscon | --sysco | --sysc | --sys | --sy) 1114 ac_prev=sysconfdir ;; 1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1117 sysconfdir=$ac_optarg ;; 1118 1119 -target | --target | --targe | --targ | --tar | --ta | --t) 1120 ac_prev=target_alias ;; 1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1122 target_alias=$ac_optarg ;; 1123 1124 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1125 verbose=yes ;; 1126 1127 -version | --version | --versio | --versi | --vers | -V) 1128 ac_init_version=: ;; 1129 1130 -with-* | --with-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid package name: $ac_useropt" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"with_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval with_$ac_useropt=\$ac_optarg ;; 1145 1146 -without-* | --without-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=no ;; 1161 1162 --x) 1163 # Obsolete; use --with-x. 1164 with_x=yes ;; 1165 1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1167 | --x-incl | --x-inc | --x-in | --x-i) 1168 ac_prev=x_includes ;; 1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1171 x_includes=$ac_optarg ;; 1172 1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1175 ac_prev=x_libraries ;; 1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1178 x_libraries=$ac_optarg ;; 1179 1180 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1181Try \`$0 --help' for more information" 1182 ;; 1183 1184 *=*) 1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1186 # Reject names that are not valid shell variable names. 1187 case $ac_envvar in #( 1188 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1190 esac 1191 eval $ac_envvar=\$ac_optarg 1192 export $ac_envvar ;; 1193 1194 *) 1195 # FIXME: should be removed in autoconf 3.0. 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1200 ;; 1201 1202 esac 1203done 1204 1205if test -n "$ac_prev"; then 1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1207 as_fn_error $? "missing argument to $ac_option" 1208fi 1209 1210if test -n "$ac_unrecognized_opts"; then 1211 case $enable_option_checking in 1212 no) ;; 1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1215 esac 1216fi 1217 1218# Check all directory arguments for consistency. 1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1220 datadir sysconfdir sharedstatedir localstatedir includedir \ 1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1222 libdir localedir mandir 1223do 1224 eval ac_val=\$$ac_var 1225 # Remove trailing slashes. 1226 case $ac_val in 1227 */ ) 1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1229 eval $ac_var=\$ac_val;; 1230 esac 1231 # Be sure to have absolute directory names. 1232 case $ac_val in 1233 [\\/$]* | ?:[\\/]* ) continue;; 1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1235 esac 1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1237done 1238 1239# There might be people who depend on the old broken behavior: `$host' 1240# used to hold the argument of --host etc. 1241# FIXME: To remove some day. 1242build=$build_alias 1243host=$host_alias 1244target=$target_alias 1245 1246# FIXME: To remove some day. 1247if test "x$host_alias" != x; then 1248 if test "x$build_alias" = x; then 1249 cross_compiling=maybe 1250 elif test "x$build_alias" != "x$host_alias"; then 1251 cross_compiling=yes 1252 fi 1253fi 1254 1255ac_tool_prefix= 1256test -n "$host_alias" && ac_tool_prefix=$host_alias- 1257 1258test "$silent" = yes && exec 6>/dev/null 1259 1260 1261ac_pwd=`pwd` && test -n "$ac_pwd" && 1262ac_ls_di=`ls -di .` && 1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1264 as_fn_error $? "working directory cannot be determined" 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1266 as_fn_error $? "pwd does not report name of working directory" 1267 1268 1269# Find the source files, if location was not specified. 1270if test -z "$srcdir"; then 1271 ac_srcdir_defaulted=yes 1272 # Try the directory containing this script, then the parent directory. 1273 ac_confdir=`$as_dirname -- "$as_myself" || 1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1275 X"$as_myself" : 'X\(//\)[^/]' \| \ 1276 X"$as_myself" : 'X\(//\)$' \| \ 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1278$as_echo X"$as_myself" | 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)[^/].*/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\).*/{ 1292 s//\1/ 1293 q 1294 } 1295 s/.*/./; q'` 1296 srcdir=$ac_confdir 1297 if test ! -r "$srcdir/$ac_unique_file"; then 1298 srcdir=.. 1299 fi 1300else 1301 ac_srcdir_defaulted=no 1302fi 1303if test ! -r "$srcdir/$ac_unique_file"; then 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1306fi 1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1308ac_abs_confdir=`( 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1310 pwd)` 1311# When building in place, set srcdir=. 1312if test "$ac_abs_confdir" = "$ac_pwd"; then 1313 srcdir=. 1314fi 1315# Remove unnecessary trailing slashes from srcdir. 1316# Double slashes in file names in object file debugging info 1317# mess up M-x gdb in Emacs. 1318case $srcdir in 1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1320esac 1321for ac_var in $ac_precious_vars; do 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_env_${ac_var}_value=\$${ac_var} 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1326done 1327 1328# 1329# Report the --help message. 1330# 1331if test "$ac_init_help" = "long"; then 1332 # Omit some internal or obsolete options to make the list less imposing. 1333 # This message is too long to be a string in the A/UX 3.1 sh. 1334 cat <<_ACEOF 1335\`configure' configures file 5.30 to adapt to many kinds of systems. 1336 1337Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1339To assign environment variables (e.g., CC, CFLAGS...), specify them as 1340VAR=VALUE. See below for descriptions of some of the useful variables. 1341 1342Defaults for the options are specified in brackets. 1343 1344Configuration: 1345 -h, --help display this help and exit 1346 --help=short display options specific to this package 1347 --help=recursive display the short help of all the included packages 1348 -V, --version display version information and exit 1349 -q, --quiet, --silent do not print \`checking ...' messages 1350 --cache-file=FILE cache test results in FILE [disabled] 1351 -C, --config-cache alias for \`--cache-file=config.cache' 1352 -n, --no-create do not create output files 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1354 1355Installation directories: 1356 --prefix=PREFIX install architecture-independent files in PREFIX 1357 [$ac_default_prefix] 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1359 [PREFIX] 1360 1361By default, \`make install' will install all the files in 1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1363an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1364for instance \`--prefix=\$HOME'. 1365 1366For better control, use the options below. 1367 1368Fine tuning of the installation directories: 1369 --bindir=DIR user executables [EPREFIX/bin] 1370 --sbindir=DIR system admin executables [EPREFIX/sbin] 1371 --libexecdir=DIR program executables [EPREFIX/libexec] 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1375 --libdir=DIR object code libraries [EPREFIX/lib] 1376 --includedir=DIR C header files [PREFIX/include] 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1380 --infodir=DIR info documentation [DATAROOTDIR/info] 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1382 --mandir=DIR man documentation [DATAROOTDIR/man] 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1384 --htmldir=DIR html documentation [DOCDIR] 1385 --dvidir=DIR dvi documentation [DOCDIR] 1386 --pdfdir=DIR pdf documentation [DOCDIR] 1387 --psdir=DIR ps documentation [DOCDIR] 1388_ACEOF 1389 1390 cat <<\_ACEOF 1391 1392Program names: 1393 --program-prefix=PREFIX prepend PREFIX to installed program names 1394 --program-suffix=SUFFIX append SUFFIX to installed program names 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1396 1397System types: 1398 --build=BUILD configure for building on BUILD [guessed] 1399 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1400_ACEOF 1401fi 1402 1403if test -n "$ac_init_help"; then 1404 case $ac_init_help in 1405 short | recursive ) echo "Configuration of file 5.30:";; 1406 esac 1407 cat <<\_ACEOF 1408 1409Optional Features: 1410 --disable-option-checking ignore unrecognized --enable/--with options 1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1413 --enable-silent-rules less verbose build output (undo: "make V=1") 1414 --disable-silent-rules verbose build output (undo: "make V=0") 1415 --enable-maintainer-mode 1416 enable make rules and dependencies not useful (and 1417 sometimes confusing) to the casual installer 1418 --disable-elf disable builtin ELF support 1419 --disable-elf-core disable ELF core file support 1420 --disable-zlib disable zlib compression support [default=auto] 1421 --enable-fsect-man5 enable file formats in man section 5 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --enable-static[=PKGS] build static libraries [default=no] 1427 --enable-shared[=PKGS] build shared libraries [default=yes] 1428 --enable-fast-install[=PKGS] 1429 optimize for fast installation [default=yes] 1430 --disable-libtool-lock avoid locking (might break parallel builds) 1431 --disable-largefile omit support for large files 1432 --disable-warnings disable compiler warnings 1433 1434Optional Packages: 1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1438 both] 1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1440 --with-sysroot=DIR Search for dependent libraries within DIR 1441 (or the compiler's sysroot if not specified). 1442 1443Some influential environment variables: 1444 CC C compiler command 1445 CFLAGS C compiler flags 1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1447 nonstandard directory <lib dir> 1448 LIBS libraries to pass to the linker, e.g. -l<library> 1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1450 you have headers in a nonstandard directory <include dir> 1451 CPP C preprocessor 1452 1453Use these variables to override the choices made by `configure' or to help 1454it to find libraries and programs with nonstandard names/locations. 1455 1456Report bugs to <christos@astron.com>. 1457_ACEOF 1458ac_status=$? 1459fi 1460 1461if test "$ac_init_help" = "recursive"; then 1462 # If there are subdirs, report their specific --help. 1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1464 test -d "$ac_dir" || 1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1466 continue 1467 ac_builddir=. 1468 1469case "$ac_dir" in 1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471*) 1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1473 # A ".." for each directory in $ac_dir_suffix. 1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1475 case $ac_top_builddir_sub in 1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1478 esac ;; 1479esac 1480ac_abs_top_builddir=$ac_pwd 1481ac_abs_builddir=$ac_pwd$ac_dir_suffix 1482# for backward compatibility: 1483ac_top_builddir=$ac_top_build_prefix 1484 1485case $srcdir in 1486 .) # We are building in place. 1487 ac_srcdir=. 1488 ac_top_srcdir=$ac_top_builddir_sub 1489 ac_abs_top_srcdir=$ac_pwd ;; 1490 [\\/]* | ?:[\\/]* ) # Absolute name. 1491 ac_srcdir=$srcdir$ac_dir_suffix; 1492 ac_top_srcdir=$srcdir 1493 ac_abs_top_srcdir=$srcdir ;; 1494 *) # Relative name. 1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1496 ac_top_srcdir=$ac_top_build_prefix$srcdir 1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1498esac 1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1500 1501 cd "$ac_dir" || { ac_status=$?; continue; } 1502 # Check for guested configure. 1503 if test -f "$ac_srcdir/configure.gnu"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1506 elif test -f "$ac_srcdir/configure"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure" --help=recursive 1509 else 1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1511 fi || ac_status=$? 1512 cd "$ac_pwd" || { ac_status=$?; break; } 1513 done 1514fi 1515 1516test -n "$ac_init_help" && exit $ac_status 1517if $ac_init_version; then 1518 cat <<\_ACEOF 1519file configure 5.30 1520generated by GNU Autoconf 2.69 1521 1522Copyright (C) 2012 Free Software Foundation, Inc. 1523This configure script is free software; the Free Software Foundation 1524gives unlimited permission to copy, distribute and modify it. 1525_ACEOF 1526 exit 1527fi 1528 1529## ------------------------ ## 1530## Autoconf initialization. ## 1531## ------------------------ ## 1532 1533# ac_fn_c_try_compile LINENO 1534# -------------------------- 1535# Try to compile conftest.$ac_ext, and return whether this succeeded. 1536ac_fn_c_try_compile () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext 1540 if { { ac_try="$ac_compile" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_compile") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest.$ac_objext; then : 1559 ac_retval=0 1560else 1561 $as_echo "$as_me: failed program was:" >&5 1562sed 's/^/| /' conftest.$ac_ext >&5 1563 1564 ac_retval=1 1565fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_compile 1570 1571# ac_fn_c_try_cpp LINENO 1572# ---------------------- 1573# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_cpp () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 if { { ac_try="$ac_cpp conftest.$ac_ext" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } > conftest.i && { 1593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 }; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_cpp 1607 1608# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1609# ------------------------------------------------------- 1610# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1611# the include files in INCLUDES and setting the cache variable VAR 1612# accordingly. 1613ac_fn_c_check_header_mongrel () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 if eval \${$3+:} false; then : 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1618$as_echo_n "checking for $2... " >&6; } 1619if eval \${$3+:} false; then : 1620 $as_echo_n "(cached) " >&6 1621fi 1622eval ac_res=\$$3 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624$as_echo "$ac_res" >&6; } 1625else 1626 # Is the header compilable? 1627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1628$as_echo_n "checking $2 usability... " >&6; } 1629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1630/* end confdefs.h. */ 1631$4 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_compile "$LINENO"; then : 1635 ac_header_compiler=yes 1636else 1637 ac_header_compiler=no 1638fi 1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1641$as_echo "$ac_header_compiler" >&6; } 1642 1643# Is the header present? 1644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1645$as_echo_n "checking $2 presence... " >&6; } 1646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648#include <$2> 1649_ACEOF 1650if ac_fn_c_try_cpp "$LINENO"; then : 1651 ac_header_preproc=yes 1652else 1653 ac_header_preproc=no 1654fi 1655rm -f conftest.err conftest.i conftest.$ac_ext 1656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1657$as_echo "$ac_header_preproc" >&6; } 1658 1659# So? What about this header? 1660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1661 yes:no: ) 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1663$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1666 ;; 1667 no:yes:* ) 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1669$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1671$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1673$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1675$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1677$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1678( $as_echo "## ---------------------------------- ## 1679## Report this to christos@astron.com ## 1680## ---------------------------------- ##" 1681 ) | sed "s/^/$as_me: WARNING: /" >&2 1682 ;; 1683esac 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685$as_echo_n "checking for $2... " >&6; } 1686if eval \${$3+:} false; then : 1687 $as_echo_n "(cached) " >&6 1688else 1689 eval "$3=\$ac_header_compiler" 1690fi 1691eval ac_res=\$$3 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1693$as_echo "$ac_res" >&6; } 1694fi 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 1697} # ac_fn_c_check_header_mongrel 1698 1699# ac_fn_c_try_run LINENO 1700# ---------------------- 1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1702# that executables *can* be run. 1703ac_fn_c_try_run () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if { { ac_try="$ac_link" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712$as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_link") 2>&5 1714 ac_status=$? 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1717 { { case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_try") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; }; }; then : 1727 ac_retval=0 1728else 1729 $as_echo "$as_me: program exited with status $ac_status" >&5 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=$ac_status 1734fi 1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_run 1740 1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1742# ------------------------------------------------------- 1743# Tests whether HEADER exists and can be compiled using the include files in 1744# INCLUDES, setting the cache variable VAR accordingly. 1745ac_fn_c_check_header_compile () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749$as_echo_n "checking for $2... " >&6; } 1750if eval \${$3+:} false; then : 1751 $as_echo_n "(cached) " >&6 1752else 1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755$4 1756#include <$2> 1757_ACEOF 1758if ac_fn_c_try_compile "$LINENO"; then : 1759 eval "$3=yes" 1760else 1761 eval "$3=no" 1762fi 1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1764fi 1765eval ac_res=\$$3 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767$as_echo "$ac_res" >&6; } 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 1770} # ac_fn_c_check_header_compile 1771 1772# ac_fn_c_try_link LINENO 1773# ----------------------- 1774# Try to link conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_link () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 rm -f conftest.$ac_objext conftest$ac_exeext 1779 if { { ac_try="$ac_link" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { 1795 test -z "$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 } && test -s conftest$ac_exeext && { 1798 test "$cross_compiling" = yes || 1799 test -x conftest$ac_exeext 1800 }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_link 1817 1818# ac_fn_c_check_func LINENO FUNC VAR 1819# ---------------------------------- 1820# Tests whether FUNC exists, setting the cache variable VAR accordingly 1821ac_fn_c_check_func () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825$as_echo_n "checking for $2... " >&6; } 1826if eval \${$3+:} false; then : 1827 $as_echo_n "(cached) " >&6 1828else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1833#define $2 innocuous_$2 1834 1835/* System header to define __stub macros and hopefully few prototypes, 1836 which can conflict with char $2 (); below. 1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1838 <limits.h> exists even on freestanding compilers. */ 1839 1840#ifdef __STDC__ 1841# include <limits.h> 1842#else 1843# include <assert.h> 1844#endif 1845 1846#undef $2 1847 1848/* Override any GCC internal prototype to avoid an error. 1849 Use char because int might match the return type of a GCC 1850 builtin and then its argument prototype would still apply. */ 1851#ifdef __cplusplus 1852extern "C" 1853#endif 1854char $2 (); 1855/* The GNU C library defines this for functions which it implements 1856 to always fail with ENOSYS. Some functions are actually named 1857 something starting with __ and the normal name is an alias. */ 1858#if defined __stub_$2 || defined __stub___$2 1859choke me 1860#endif 1861 1862int 1863main () 1864{ 1865return $2 (); 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_link "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext \ 1876 conftest$ac_exeext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_func 1884 1885# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1886# ------------------------------------------- 1887# Tests whether TYPE exists after having included INCLUDES, setting cache 1888# variable VAR accordingly. 1889ac_fn_c_check_type () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 eval "$3=no" 1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899/* end confdefs.h. */ 1900$4 1901int 1902main () 1903{ 1904if (sizeof ($2)) 1905 return 0; 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913$4 1914int 1915main () 1916{ 1917if (sizeof (($2))) 1918 return 0; 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 1925else 1926 eval "$3=yes" 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_c_check_type 1938 1939# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1940# ---------------------------------------------------- 1941# Tries to find if the field MEMBER exists in type AGGR, after including 1942# INCLUDES, setting cache variable VAR accordingly. 1943ac_fn_c_check_member () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1947$as_echo_n "checking for $2.$3... " >&6; } 1948if eval \${$4+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$5 1954int 1955main () 1956{ 1957static $2 ac_aggr; 1958if (ac_aggr.$3) 1959return 0; 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 eval "$4=yes" 1966else 1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969$5 1970int 1971main () 1972{ 1973static $2 ac_aggr; 1974if (sizeof ac_aggr.$3) 1975return 0; 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980if ac_fn_c_try_compile "$LINENO"; then : 1981 eval "$4=yes" 1982else 1983 eval "$4=no" 1984fi 1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1986fi 1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1988fi 1989eval ac_res=\$$4 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1991$as_echo "$ac_res" >&6; } 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1994} # ac_fn_c_check_member 1995 1996# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1997# --------------------------------------------- 1998# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1999# accordingly. 2000ac_fn_c_check_decl () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 as_decl_name=`echo $2|sed 's/ *(.*//'` 2004 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2006$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2007if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009else 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main () 2015{ 2016#ifndef $as_decl_name 2017#ifdef __cplusplus 2018 (void) $as_decl_use; 2019#else 2020 (void) $as_decl_name; 2021#endif 2022#endif 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 eval "$3=yes" 2030else 2031 eval "$3=no" 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2034fi 2035eval ac_res=\$$3 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2037$as_echo "$ac_res" >&6; } 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2039 2040} # ac_fn_c_check_decl 2041 2042# ac_fn_c_find_uintX_t LINENO BITS VAR 2043# ------------------------------------ 2044# Finds an unsigned integer type with width BITS, setting cache variable VAR 2045# accordingly. 2046ac_fn_c_find_uintX_t () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2050$as_echo_n "checking for uint$2_t... " >&6; } 2051if eval \${$3+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 eval "$3=no" 2055 # Order is important - never check a type that is potentially smaller 2056 # than half of the expected target width. 2057 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2058 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$ac_includes_default 2062int 2063main () 2064{ 2065static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2066test_array [0] = 0; 2067return test_array [0]; 2068 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_compile "$LINENO"; then : 2074 case $ac_type in #( 2075 uint$2_t) : 2076 eval "$3=yes" ;; #( 2077 *) : 2078 eval "$3=\$ac_type" ;; 2079esac 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 if eval test \"x\$"$3"\" = x"no"; then : 2083 2084else 2085 break 2086fi 2087 done 2088fi 2089eval ac_res=\$$3 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2091$as_echo "$ac_res" >&6; } 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 2094} # ac_fn_c_find_uintX_t 2095 2096# ac_fn_c_find_intX_t LINENO BITS VAR 2097# ----------------------------------- 2098# Finds a signed integer type with width BITS, setting cache variable VAR 2099# accordingly. 2100ac_fn_c_find_intX_t () 2101{ 2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2104$as_echo_n "checking for int$2_t... " >&6; } 2105if eval \${$3+:} false; then : 2106 $as_echo_n "(cached) " >&6 2107else 2108 eval "$3=no" 2109 # Order is important - never check a type that is potentially smaller 2110 # than half of the expected target width. 2111 for ac_type in int$2_t 'int' 'long int' \ 2112 'long long int' 'short int' 'signed char'; do 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$ac_includes_default 2116 enum { N = $2 / 2 - 1 }; 2117int 2118main () 2119{ 2120static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2121test_array [0] = 0; 2122return test_array [0]; 2123 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130/* end confdefs.h. */ 2131$ac_includes_default 2132 enum { N = $2 / 2 - 1 }; 2133int 2134main () 2135{ 2136static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2137 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2138test_array [0] = 0; 2139return test_array [0]; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO"; then : 2146 2147else 2148 case $ac_type in #( 2149 int$2_t) : 2150 eval "$3=yes" ;; #( 2151 *) : 2152 eval "$3=\$ac_type" ;; 2153esac 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158 if eval test \"x\$"$3"\" = x"no"; then : 2159 2160else 2161 break 2162fi 2163 done 2164fi 2165eval ac_res=\$$3 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2167$as_echo "$ac_res" >&6; } 2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2169 2170} # ac_fn_c_find_intX_t 2171cat >config.log <<_ACEOF 2172This file contains any messages produced by compilers while 2173running configure, to aid debugging if configure makes a mistake. 2174 2175It was created by file $as_me 5.30, which was 2176generated by GNU Autoconf 2.69. Invocation command line was 2177 2178 $ $0 $@ 2179 2180_ACEOF 2181exec 5>>config.log 2182{ 2183cat <<_ASUNAME 2184## --------- ## 2185## Platform. ## 2186## --------- ## 2187 2188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2189uname -m = `(uname -m) 2>/dev/null || echo unknown` 2190uname -r = `(uname -r) 2>/dev/null || echo unknown` 2191uname -s = `(uname -s) 2>/dev/null || echo unknown` 2192uname -v = `(uname -v) 2>/dev/null || echo unknown` 2193 2194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2196 2197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2200/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2204 2205_ASUNAME 2206 2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2208for as_dir in $PATH 2209do 2210 IFS=$as_save_IFS 2211 test -z "$as_dir" && as_dir=. 2212 $as_echo "PATH: $as_dir" 2213 done 2214IFS=$as_save_IFS 2215 2216} >&5 2217 2218cat >&5 <<_ACEOF 2219 2220 2221## ----------- ## 2222## Core tests. ## 2223## ----------- ## 2224 2225_ACEOF 2226 2227 2228# Keep a trace of the command line. 2229# Strip out --no-create and --no-recursion so they do not pile up. 2230# Strip out --silent because we don't want to record it for future runs. 2231# Also quote any args containing shell meta-characters. 2232# Make two passes to allow for proper duplicate-argument suppression. 2233ac_configure_args= 2234ac_configure_args0= 2235ac_configure_args1= 2236ac_must_keep_next=false 2237for ac_pass in 1 2 2238do 2239 for ac_arg 2240 do 2241 case $ac_arg in 2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2244 | -silent | --silent | --silen | --sile | --sil) 2245 continue ;; 2246 *\'*) 2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2248 esac 2249 case $ac_pass in 2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2251 2) 2252 as_fn_append ac_configure_args1 " '$ac_arg'" 2253 if test $ac_must_keep_next = true; then 2254 ac_must_keep_next=false # Got value, back to normal. 2255 else 2256 case $ac_arg in 2257 *=* | --config-cache | -C | -disable-* | --disable-* \ 2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2260 | -with-* | --with-* | -without-* | --without-* | --x) 2261 case "$ac_configure_args0 " in 2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2263 esac 2264 ;; 2265 -* ) ac_must_keep_next=true ;; 2266 esac 2267 fi 2268 as_fn_append ac_configure_args " '$ac_arg'" 2269 ;; 2270 esac 2271 done 2272done 2273{ ac_configure_args0=; unset ac_configure_args0;} 2274{ ac_configure_args1=; unset ac_configure_args1;} 2275 2276# When interrupted or exit'd, cleanup temporary files, and complete 2277# config.log. We remove comments because anyway the quotes in there 2278# would cause problems or look ugly. 2279# WARNING: Use '\'' to represent an apostrophe within the trap. 2280# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2281trap 'exit_status=$? 2282 # Save into config.log some information that might help in debugging. 2283 { 2284 echo 2285 2286 $as_echo "## ---------------- ## 2287## Cache variables. ## 2288## ---------------- ##" 2289 echo 2290 # The following way of writing the cache mishandles newlines in values, 2291( 2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2293 eval ac_val=\$$ac_var 2294 case $ac_val in #( 2295 *${as_nl}*) 2296 case $ac_var in #( 2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2299 esac 2300 case $ac_var in #( 2301 _ | IFS | as_nl) ;; #( 2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2303 *) { eval $ac_var=; unset $ac_var;} ;; 2304 esac ;; 2305 esac 2306 done 2307 (set) 2>&1 | 2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2309 *${as_nl}ac_space=\ *) 2310 sed -n \ 2311 "s/'\''/'\''\\\\'\'''\''/g; 2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2313 ;; #( 2314 *) 2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2316 ;; 2317 esac | 2318 sort 2319) 2320 echo 2321 2322 $as_echo "## ----------------- ## 2323## Output variables. ## 2324## ----------------- ##" 2325 echo 2326 for ac_var in $ac_subst_vars 2327 do 2328 eval ac_val=\$$ac_var 2329 case $ac_val in 2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2331 esac 2332 $as_echo "$ac_var='\''$ac_val'\''" 2333 done | sort 2334 echo 2335 2336 if test -n "$ac_subst_files"; then 2337 $as_echo "## ------------------- ## 2338## File substitutions. ## 2339## ------------------- ##" 2340 echo 2341 for ac_var in $ac_subst_files 2342 do 2343 eval ac_val=\$$ac_var 2344 case $ac_val in 2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2346 esac 2347 $as_echo "$ac_var='\''$ac_val'\''" 2348 done | sort 2349 echo 2350 fi 2351 2352 if test -s confdefs.h; then 2353 $as_echo "## ----------- ## 2354## confdefs.h. ## 2355## ----------- ##" 2356 echo 2357 cat confdefs.h 2358 echo 2359 fi 2360 test "$ac_signal" != 0 && 2361 $as_echo "$as_me: caught signal $ac_signal" 2362 $as_echo "$as_me: exit $exit_status" 2363 } >&5 2364 rm -f core *.core core.conftest.* && 2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2366 exit $exit_status 2367' 0 2368for ac_signal in 1 2 13 15; do 2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2370done 2371ac_signal=0 2372 2373# confdefs.h avoids OS command line length limits that DEFS can exceed. 2374rm -f -r conftest* confdefs.h 2375 2376$as_echo "/* confdefs.h */" > confdefs.h 2377 2378# Predefined preprocessor variables. 2379 2380cat >>confdefs.h <<_ACEOF 2381#define PACKAGE_NAME "$PACKAGE_NAME" 2382_ACEOF 2383 2384cat >>confdefs.h <<_ACEOF 2385#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2386_ACEOF 2387 2388cat >>confdefs.h <<_ACEOF 2389#define PACKAGE_VERSION "$PACKAGE_VERSION" 2390_ACEOF 2391 2392cat >>confdefs.h <<_ACEOF 2393#define PACKAGE_STRING "$PACKAGE_STRING" 2394_ACEOF 2395 2396cat >>confdefs.h <<_ACEOF 2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2398_ACEOF 2399 2400cat >>confdefs.h <<_ACEOF 2401#define PACKAGE_URL "$PACKAGE_URL" 2402_ACEOF 2403 2404 2405# Let the site file select an alternate cache file if it wants to. 2406# Prefer an explicitly selected file to automatically selected ones. 2407ac_site_file1=NONE 2408ac_site_file2=NONE 2409if test -n "$CONFIG_SITE"; then 2410 # We do not want a PATH search for config.site. 2411 case $CONFIG_SITE in #(( 2412 -*) ac_site_file1=./$CONFIG_SITE;; 2413 */*) ac_site_file1=$CONFIG_SITE;; 2414 *) ac_site_file1=./$CONFIG_SITE;; 2415 esac 2416elif test "x$prefix" != xNONE; then 2417 ac_site_file1=$prefix/share/config.site 2418 ac_site_file2=$prefix/etc/config.site 2419else 2420 ac_site_file1=$ac_default_prefix/share/config.site 2421 ac_site_file2=$ac_default_prefix/etc/config.site 2422fi 2423for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2424do 2425 test "x$ac_site_file" = xNONE && continue 2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2428$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2429 sed 's/^/| /' "$ac_site_file" >&5 2430 . "$ac_site_file" \ 2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2433as_fn_error $? "failed to load site script $ac_site_file 2434See \`config.log' for more details" "$LINENO" 5; } 2435 fi 2436done 2437 2438if test -r "$cache_file"; then 2439 # Some versions of bash will fail to source /dev/null (special files 2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2443$as_echo "$as_me: loading cache $cache_file" >&6;} 2444 case $cache_file in 2445 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2446 *) . "./$cache_file";; 2447 esac 2448 fi 2449else 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2451$as_echo "$as_me: creating cache $cache_file" >&6;} 2452 >$cache_file 2453fi 2454 2455as_fn_append ac_header_list " stdlib.h" 2456as_fn_append ac_header_list " unistd.h" 2457as_fn_append ac_header_list " sys/param.h" 2458# Check that the precious variables saved in the cache have kept the same 2459# value. 2460ac_cache_corrupted=false 2461for ac_var in $ac_precious_vars; do 2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2463 eval ac_new_set=\$ac_env_${ac_var}_set 2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2465 eval ac_new_val=\$ac_env_${ac_var}_value 2466 case $ac_old_set,$ac_new_set in 2467 set,) 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2469$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2470 ac_cache_corrupted=: ;; 2471 ,set) 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2473$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2474 ac_cache_corrupted=: ;; 2475 ,);; 2476 *) 2477 if test "x$ac_old_val" != "x$ac_new_val"; then 2478 # differences in whitespace do not lead to failure. 2479 ac_old_val_w=`echo x $ac_old_val` 2480 ac_new_val_w=`echo x $ac_new_val` 2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2483$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2484 ac_cache_corrupted=: 2485 else 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2487$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2488 eval $ac_var=\$ac_old_val 2489 fi 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2491$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2493$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2494 fi;; 2495 esac 2496 # Pass precious variables to config.status. 2497 if test "$ac_new_set" = set; then 2498 case $ac_new_val in 2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2500 *) ac_arg=$ac_var=$ac_new_val ;; 2501 esac 2502 case " $ac_configure_args " in 2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2505 esac 2506 fi 2507done 2508if $ac_cache_corrupted; then 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2512$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2514fi 2515## -------------------- ## 2516## Main body of script. ## 2517## -------------------- ## 2518 2519ac_ext=c 2520ac_cpp='$CPP $CPPFLAGS' 2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2523ac_compiler_gnu=$ac_cv_c_compiler_gnu 2524 2525 2526am__api_version='1.15' 2527 2528ac_aux_dir= 2529for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2530 if test -f "$ac_dir/install-sh"; then 2531 ac_aux_dir=$ac_dir 2532 ac_install_sh="$ac_aux_dir/install-sh -c" 2533 break 2534 elif test -f "$ac_dir/install.sh"; then 2535 ac_aux_dir=$ac_dir 2536 ac_install_sh="$ac_aux_dir/install.sh -c" 2537 break 2538 elif test -f "$ac_dir/shtool"; then 2539 ac_aux_dir=$ac_dir 2540 ac_install_sh="$ac_aux_dir/shtool install -c" 2541 break 2542 fi 2543done 2544if test -z "$ac_aux_dir"; then 2545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2546fi 2547 2548# These three variables are undocumented and unsupported, 2549# and are intended to be withdrawn in a future Autoconf release. 2550# They can cause serious problems if a builder's source tree is in a directory 2551# whose full name contains unusual characters. 2552ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2553ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2554ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2555 2556 2557# Find a good install program. We prefer a C program (faster), 2558# so one script is as good as another. But avoid the broken or 2559# incompatible versions: 2560# SysV /etc/install, /usr/sbin/install 2561# SunOS /usr/etc/install 2562# IRIX /sbin/install 2563# AIX /bin/install 2564# AmigaOS /C/install, which installs bootblocks on floppy discs 2565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2566# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2568# OS/2's system install, which has a completely different semantic 2569# ./install, which can be erroneously created by make from ./install.sh. 2570# Reject install programs that cannot install multiple files. 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2572$as_echo_n "checking for a BSD-compatible install... " >&6; } 2573if test -z "$INSTALL"; then 2574if ${ac_cv_path_install+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 # Account for people who put trailing slashes in PATH elements. 2583case $as_dir/ in #(( 2584 ./ | .// | /[cC]/* | \ 2585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2587 /usr/ucb/* ) ;; 2588 *) 2589 # OSF1 and SCO ODT 3.0 have their own names for install. 2590 # Don't use installbsd from OSF since it installs stuff as root 2591 # by default. 2592 for ac_prog in ginstall scoinst install; do 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2595 if test $ac_prog = install && 2596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2597 # AIX install. It has an incompatible calling convention. 2598 : 2599 elif test $ac_prog = install && 2600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2601 # program-specific install script used by HP pwplus--don't use. 2602 : 2603 else 2604 rm -rf conftest.one conftest.two conftest.dir 2605 echo one > conftest.one 2606 echo two > conftest.two 2607 mkdir conftest.dir 2608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2609 test -s conftest.one && test -s conftest.two && 2610 test -s conftest.dir/conftest.one && 2611 test -s conftest.dir/conftest.two 2612 then 2613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2614 break 3 2615 fi 2616 fi 2617 fi 2618 done 2619 done 2620 ;; 2621esac 2622 2623 done 2624IFS=$as_save_IFS 2625 2626rm -rf conftest.one conftest.two conftest.dir 2627 2628fi 2629 if test "${ac_cv_path_install+set}" = set; then 2630 INSTALL=$ac_cv_path_install 2631 else 2632 # As a last resort, use the slow shell script. Don't cache a 2633 # value for INSTALL within a source directory, because that will 2634 # break other packages using the cache if that directory is 2635 # removed, or if the value is a relative name. 2636 INSTALL=$ac_install_sh 2637 fi 2638fi 2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2640$as_echo "$INSTALL" >&6; } 2641 2642# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2643# It thinks the first close brace ends the variable substitution. 2644test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2645 2646test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2647 2648test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2649 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2651$as_echo_n "checking whether build environment is sane... " >&6; } 2652# Reject unsafe characters in $srcdir or the absolute working directory 2653# name. Accept space and tab only in the latter. 2654am_lf=' 2655' 2656case `pwd` in 2657 *[\\\"\#\$\&\'\`$am_lf]*) 2658 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2659esac 2660case $srcdir in 2661 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2662 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2663esac 2664 2665# Do 'set' in a subshell so we don't clobber the current shell's 2666# arguments. Must try -L first in case configure is actually a 2667# symlink; some systems play weird games with the mod time of symlinks 2668# (eg FreeBSD returns the mod time of the symlink's containing 2669# directory). 2670if ( 2671 am_has_slept=no 2672 for am_try in 1 2; do 2673 echo "timestamp, slept: $am_has_slept" > conftest.file 2674 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2675 if test "$*" = "X"; then 2676 # -L didn't work. 2677 set X `ls -t "$srcdir/configure" conftest.file` 2678 fi 2679 if test "$*" != "X $srcdir/configure conftest.file" \ 2680 && test "$*" != "X conftest.file $srcdir/configure"; then 2681 2682 # If neither matched, then we have a broken ls. This can happen 2683 # if, for instance, CONFIG_SHELL is bash and it inherits a 2684 # broken ls alias from the environment. This has actually 2685 # happened. Such a system could not be considered "sane". 2686 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2687 alias in your environment" "$LINENO" 5 2688 fi 2689 if test "$2" = conftest.file || test $am_try -eq 2; then 2690 break 2691 fi 2692 # Just in case. 2693 sleep 1 2694 am_has_slept=yes 2695 done 2696 test "$2" = conftest.file 2697 ) 2698then 2699 # Ok. 2700 : 2701else 2702 as_fn_error $? "newly created file is older than distributed files! 2703Check your system clock" "$LINENO" 5 2704fi 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2706$as_echo "yes" >&6; } 2707# If we didn't sleep, we still need to ensure time stamps of config.status and 2708# generated files are strictly newer. 2709am_sleep_pid= 2710if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2711 ( sleep 1 ) & 2712 am_sleep_pid=$! 2713fi 2714 2715rm -f conftest.file 2716 2717test "$program_prefix" != NONE && 2718 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2719# Use a double $ so make ignores it. 2720test "$program_suffix" != NONE && 2721 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2722# Double any \ or $. 2723# By default was `s,x,x', remove it if useless. 2724ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2725program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2726 2727# Expand $ac_aux_dir to an absolute path. 2728am_aux_dir=`cd "$ac_aux_dir" && pwd` 2729 2730if test x"${MISSING+set}" != xset; then 2731 case $am_aux_dir in 2732 *\ * | *\ *) 2733 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2734 *) 2735 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2736 esac 2737fi 2738# Use eval to expand $SHELL 2739if eval "$MISSING --is-lightweight"; then 2740 am_missing_run="$MISSING " 2741else 2742 am_missing_run= 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2744$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2745fi 2746 2747if test x"${install_sh+set}" != xset; then 2748 case $am_aux_dir in 2749 *\ * | *\ *) 2750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2751 *) 2752 install_sh="\${SHELL} $am_aux_dir/install-sh" 2753 esac 2754fi 2755 2756# Installed binaries are usually stripped using 'strip' when the user 2757# run "make install-strip". However 'strip' might not be the right 2758# tool to use in cross-compilation environments, therefore Automake 2759# will honor the 'STRIP' environment variable to overrule this program. 2760if test "$cross_compiling" != no; then 2761 if test -n "$ac_tool_prefix"; then 2762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2763set dummy ${ac_tool_prefix}strip; ac_word=$2 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2765$as_echo_n "checking for $ac_word... " >&6; } 2766if ${ac_cv_prog_STRIP+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768else 2769 if test -n "$STRIP"; then 2770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2771else 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 test -z "$as_dir" && as_dir=. 2777 for ac_exec_ext in '' $ac_executable_extensions; do 2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2779 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2781 break 2 2782 fi 2783done 2784 done 2785IFS=$as_save_IFS 2786 2787fi 2788fi 2789STRIP=$ac_cv_prog_STRIP 2790if test -n "$STRIP"; then 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2792$as_echo "$STRIP" >&6; } 2793else 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2795$as_echo "no" >&6; } 2796fi 2797 2798 2799fi 2800if test -z "$ac_cv_prog_STRIP"; then 2801 ac_ct_STRIP=$STRIP 2802 # Extract the first word of "strip", so it can be a program name with args. 2803set dummy strip; ac_word=$2 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2805$as_echo_n "checking for $ac_word... " >&6; } 2806if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test -n "$ac_ct_STRIP"; then 2810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2819 ac_cv_prog_ac_ct_STRIP="strip" 2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2830if test -n "$ac_ct_STRIP"; then 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2832$as_echo "$ac_ct_STRIP" >&6; } 2833else 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835$as_echo "no" >&6; } 2836fi 2837 2838 if test "x$ac_ct_STRIP" = x; then 2839 STRIP=":" 2840 else 2841 case $cross_compiling:$ac_tool_warned in 2842yes:) 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2845ac_tool_warned=yes ;; 2846esac 2847 STRIP=$ac_ct_STRIP 2848 fi 2849else 2850 STRIP="$ac_cv_prog_STRIP" 2851fi 2852 2853fi 2854INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2855 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2857$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2858if test -z "$MKDIR_P"; then 2859 if ${ac_cv_path_mkdir+:} false; then : 2860 $as_echo_n "(cached) " >&6 2861else 2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_prog in mkdir gmkdir; do 2868 for ac_exec_ext in '' $ac_executable_extensions; do 2869 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2871 'mkdir (GNU coreutils) '* | \ 2872 'mkdir (coreutils) '* | \ 2873 'mkdir (fileutils) '4.1*) 2874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2875 break 3;; 2876 esac 2877 done 2878 done 2879 done 2880IFS=$as_save_IFS 2881 2882fi 2883 2884 test -d ./--version && rmdir ./--version 2885 if test "${ac_cv_path_mkdir+set}" = set; then 2886 MKDIR_P="$ac_cv_path_mkdir -p" 2887 else 2888 # As a last resort, use the slow shell script. Don't cache a 2889 # value for MKDIR_P within a source directory, because that will 2890 # break other packages using the cache if that directory is 2891 # removed, or if the value is a relative name. 2892 MKDIR_P="$ac_install_sh -d" 2893 fi 2894fi 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2896$as_echo "$MKDIR_P" >&6; } 2897 2898for ac_prog in gawk mawk nawk awk 2899do 2900 # Extract the first word of "$ac_prog", so it can be a program name with args. 2901set dummy $ac_prog; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if ${ac_cv_prog_AWK+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$AWK"; then 2908 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2917 ac_cv_prog_AWK="$ac_prog" 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927AWK=$ac_cv_prog_AWK 2928if test -n "$AWK"; then 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2930$as_echo "$AWK" >&6; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 2937 test -n "$AWK" && break 2938done 2939 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2941$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2942set x ${MAKE-make} 2943ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2944if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 cat >conftest.make <<\_ACEOF 2948SHELL = /bin/sh 2949all: 2950 @echo '@@@%%%=$(MAKE)=@@@%%%' 2951_ACEOF 2952# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2953case `${MAKE-make} -f conftest.make 2>/dev/null` in 2954 *@@@%%%=?*=@@@%%%*) 2955 eval ac_cv_prog_make_${ac_make}_set=yes;; 2956 *) 2957 eval ac_cv_prog_make_${ac_make}_set=no;; 2958esac 2959rm -f conftest.make 2960fi 2961if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2963$as_echo "yes" >&6; } 2964 SET_MAKE= 2965else 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967$as_echo "no" >&6; } 2968 SET_MAKE="MAKE=${MAKE-make}" 2969fi 2970 2971rm -rf .tst 2>/dev/null 2972mkdir .tst 2>/dev/null 2973if test -d .tst; then 2974 am__leading_dot=. 2975else 2976 am__leading_dot=_ 2977fi 2978rmdir .tst 2>/dev/null 2979 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2981$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2982 # Check whether --enable-maintainer-mode was given. 2983if test "${enable_maintainer_mode+set}" = set; then : 2984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2985else 2986 USE_MAINTAINER_MODE=no 2987fi 2988 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2990$as_echo "$USE_MAINTAINER_MODE" >&6; } 2991 if test $USE_MAINTAINER_MODE = yes; then 2992 MAINTAINER_MODE_TRUE= 2993 MAINTAINER_MODE_FALSE='#' 2994else 2995 MAINTAINER_MODE_TRUE='#' 2996 MAINTAINER_MODE_FALSE= 2997fi 2998 2999 MAINT=$MAINTAINER_MODE_TRUE 3000 3001 3002# Check whether --enable-silent-rules was given. 3003if test "${enable_silent_rules+set}" = set; then : 3004 enableval=$enable_silent_rules; 3005fi 3006 3007case $enable_silent_rules in # ((( 3008 yes) AM_DEFAULT_VERBOSITY=0;; 3009 no) AM_DEFAULT_VERBOSITY=1;; 3010 *) AM_DEFAULT_VERBOSITY=1;; 3011esac 3012am_make=${MAKE-make} 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3014$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3015if ${am_cv_make_support_nested_variables+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if $as_echo 'TRUE=$(BAR$(V)) 3019BAR0=false 3020BAR1=true 3021V=1 3022am__doit: 3023 @$(TRUE) 3024.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3025 am_cv_make_support_nested_variables=yes 3026else 3027 am_cv_make_support_nested_variables=no 3028fi 3029fi 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3031$as_echo "$am_cv_make_support_nested_variables" >&6; } 3032if test $am_cv_make_support_nested_variables = yes; then 3033 AM_V='$(V)' 3034 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3035else 3036 AM_V=$AM_DEFAULT_VERBOSITY 3037 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3038fi 3039AM_BACKSLASH='\' 3040 3041if test "`cd $srcdir && pwd`" != "`pwd`"; then 3042 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3043 # is not polluted with repeated "-I." 3044 am__isrc=' -I$(srcdir)' 3045 # test to see if srcdir already configured 3046 if test -f $srcdir/config.status; then 3047 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3048 fi 3049fi 3050 3051# test whether we have cygpath 3052if test -z "$CYGPATH_W"; then 3053 if (cygpath --version) >/dev/null 2>/dev/null; then 3054 CYGPATH_W='cygpath -w' 3055 else 3056 CYGPATH_W=echo 3057 fi 3058fi 3059 3060 3061# Define the identity of the package. 3062 PACKAGE='file' 3063 VERSION='5.30' 3064 3065 3066cat >>confdefs.h <<_ACEOF 3067#define PACKAGE "$PACKAGE" 3068_ACEOF 3069 3070 3071cat >>confdefs.h <<_ACEOF 3072#define VERSION "$VERSION" 3073_ACEOF 3074 3075# Some tools Automake needs. 3076 3077ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3078 3079 3080AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3081 3082 3083AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3084 3085 3086AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3087 3088 3089MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3090 3091# For better backward compatibility. To be removed once Automake 1.9.x 3092# dies out for good. For more background, see: 3093# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3094# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3095mkdir_p='$(MKDIR_P)' 3096 3097# We need awk for the "check" target (and possibly the TAP driver). The 3098# system "awk" is bad on some platforms. 3099# Always define AMTAR for backward compatibility. Yes, it's still used 3100# in the wild :-( We should find a proper way to deprecate it ... 3101AMTAR='$${TAR-tar}' 3102 3103 3104# We'll loop over all known methods to create a tar archive until one works. 3105_am_tools='gnutar pax cpio none' 3106 3107am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3108 3109 3110 3111 3112 3113 3114# POSIX will say in a future version that running "rm -f" with no argument 3115# is OK; and we want to be able to make that assumption in our Makefile 3116# recipes. So use an aggressive probe to check that the usage we want is 3117# actually supported "in the wild" to an acceptable degree. 3118# See automake bug#10828. 3119# To make any issue more visible, cause the running configure to be aborted 3120# by default if the 'rm' program in use doesn't match our expectations; the 3121# user can still override this though. 3122if rm -f && rm -fr && rm -rf; then : OK; else 3123 cat >&2 <<'END' 3124Oops! 3125 3126Your 'rm' program seems unable to run without file operands specified 3127on the command line, even when the '-f' option is present. This is contrary 3128to the behaviour of most rm programs out there, and not conforming with 3129the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3130 3131Please tell bug-automake@gnu.org about your system, including the value 3132of your $PATH and any error possibly output before this message. This 3133can help us improve future automake versions. 3134 3135END 3136 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3137 echo 'Configuration will proceed anyway, since you have set the' >&2 3138 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3139 echo >&2 3140 else 3141 cat >&2 <<'END' 3142Aborting the configuration process, to ensure you take notice of the issue. 3143 3144You can download and install GNU coreutils to get an 'rm' implementation 3145that behaves properly: <http://www.gnu.org/software/coreutils/>. 3146 3147If you want to complete the configuration process using your problematic 3148'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3149to "yes", and re-run configure. 3150 3151END 3152 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3153 fi 3154fi 3155 3156# Check whether --enable-silent-rules was given. 3157if test "${enable_silent_rules+set}" = set; then : 3158 enableval=$enable_silent_rules; 3159fi 3160 3161case $enable_silent_rules in # ((( 3162 yes) AM_DEFAULT_VERBOSITY=0;; 3163 no) AM_DEFAULT_VERBOSITY=1;; 3164 *) AM_DEFAULT_VERBOSITY=0;; 3165esac 3166am_make=${MAKE-make} 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3168$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3169if ${am_cv_make_support_nested_variables+:} false; then : 3170 $as_echo_n "(cached) " >&6 3171else 3172 if $as_echo 'TRUE=$(BAR$(V)) 3173BAR0=false 3174BAR1=true 3175V=1 3176am__doit: 3177 @$(TRUE) 3178.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3179 am_cv_make_support_nested_variables=yes 3180else 3181 am_cv_make_support_nested_variables=no 3182fi 3183fi 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3185$as_echo "$am_cv_make_support_nested_variables" >&6; } 3186if test $am_cv_make_support_nested_variables = yes; then 3187 AM_V='$(V)' 3188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3189else 3190 AM_V=$AM_DEFAULT_VERBOSITY 3191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3192fi 3193AM_BACKSLASH='\' 3194 3195 3196ac_config_headers="$ac_config_headers config.h" 3197 3198 3199 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3201$as_echo_n "checking for builtin ELF support... " >&6; } 3202# Check whether --enable-elf was given. 3203if test "${enable_elf+set}" = set; then : 3204 enableval=$enable_elf; if test "${enableval}" = yes; then 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3206$as_echo "yes" >&6; } 3207 3208$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3209 3210else 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3212$as_echo "no" >&6; } 3213fi 3214else 3215 3216 # enable by default 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3218$as_echo "yes" >&6; } 3219 3220$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3221 3222 3223fi 3224 3225 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3227$as_echo_n "checking for ELF core file support... " >&6; } 3228# Check whether --enable-elf-core was given. 3229if test "${enable_elf_core+set}" = set; then : 3230 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3232$as_echo "yes" >&6; } 3233 3234$as_echo "#define ELFCORE 1" >>confdefs.h 3235 3236else 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238$as_echo "no" >&6; } 3239fi 3240else 3241 3242 # enable by default 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3244$as_echo "yes" >&6; } 3245 3246$as_echo "#define ELFCORE 1" >>confdefs.h 3247 3248 3249fi 3250 3251 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3253$as_echo_n "checking for zlib support... " >&6; } 3254# Check whether --enable-zlib was given. 3255if test "${enable_zlib+set}" = set; then : 3256 enableval=$enable_zlib; 3257fi 3258 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3260$as_echo "$enable_zlib" >&6; } 3261 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3263$as_echo_n "checking for file formats in man section 5... " >&6; } 3264# Check whether --enable-fsect-man5 was given. 3265if test "${enable_fsect_man5+set}" = set; then : 3266 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3268$as_echo "yes" >&6; } 3269 fsect=5 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273 fsect=4 3274fi 3275else 3276 3277 # disable by default 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280 fsect=4 3281 3282fi 3283 3284 3285# Make sure we can run config.sub. 3286$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3287 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3288 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3290$as_echo_n "checking build system type... " >&6; } 3291if ${ac_cv_build+:} false; then : 3292 $as_echo_n "(cached) " >&6 3293else 3294 ac_build_alias=$build_alias 3295test "x$ac_build_alias" = x && 3296 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3297test "x$ac_build_alias" = x && 3298 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3299ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3300 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3301 3302fi 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3304$as_echo "$ac_cv_build" >&6; } 3305case $ac_cv_build in 3306*-*-*) ;; 3307*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3308esac 3309build=$ac_cv_build 3310ac_save_IFS=$IFS; IFS='-' 3311set x $ac_cv_build 3312shift 3313build_cpu=$1 3314build_vendor=$2 3315shift; shift 3316# Remember, the first character of IFS is used to create $*, 3317# except with old shells: 3318build_os=$* 3319IFS=$ac_save_IFS 3320case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3321 3322 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3324$as_echo_n "checking host system type... " >&6; } 3325if ${ac_cv_host+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 if test "x$host_alias" = x; then 3329 ac_cv_host=$ac_cv_build 3330else 3331 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3332 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3333fi 3334 3335fi 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3337$as_echo "$ac_cv_host" >&6; } 3338case $ac_cv_host in 3339*-*-*) ;; 3340*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3341esac 3342host=$ac_cv_host 3343ac_save_IFS=$IFS; IFS='-' 3344set x $ac_cv_host 3345shift 3346host_cpu=$1 3347host_vendor=$2 3348shift; shift 3349# Remember, the first character of IFS is used to create $*, 3350# except with old shells: 3351host_os=$* 3352IFS=$ac_save_IFS 3353case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3354 3355 3356case "$host_os" in 3357 mingw32*) 3358 MINGW=1 3359 ;; 3360 *) 3361 MINGW=0 3362 ;; 3363esac 3364 3365 if test "$MINGW" = 1; then 3366 MINGW_TRUE= 3367 MINGW_FALSE='#' 3368else 3369 MINGW_TRUE='#' 3370 MINGW_FALSE= 3371fi 3372 3373 3374pkgdatadir='$(datadir)/misc' 3375 3376 3377 if test x$fsect = x5; then 3378 FSECT5_TRUE= 3379 FSECT5_FALSE='#' 3380else 3381 FSECT5_TRUE='#' 3382 FSECT5_FALSE= 3383fi 3384 3385 3386 3387 3388DEPDIR="${am__leading_dot}deps" 3389 3390ac_config_commands="$ac_config_commands depfiles" 3391 3392 3393am_make=${MAKE-make} 3394cat > confinc << 'END' 3395am__doit: 3396 @echo this is the am__doit target 3397.PHONY: am__doit 3398END 3399# If we don't find an include directive, just comment out the code. 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3401$as_echo_n "checking for style of include used by $am_make... " >&6; } 3402am__include="#" 3403am__quote= 3404_am_result=none 3405# First try GNU make style include. 3406echo "include confinc" > confmf 3407# Ignore all kinds of additional output from 'make'. 3408case `$am_make -s -f confmf 2> /dev/null` in #( 3409*the\ am__doit\ target*) 3410 am__include=include 3411 am__quote= 3412 _am_result=GNU 3413 ;; 3414esac 3415# Now try BSD make style include. 3416if test "$am__include" = "#"; then 3417 echo '.include "confinc"' > confmf 3418 case `$am_make -s -f confmf 2> /dev/null` in #( 3419 *the\ am__doit\ target*) 3420 am__include=.include 3421 am__quote="\"" 3422 _am_result=BSD 3423 ;; 3424 esac 3425fi 3426 3427 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3429$as_echo "$_am_result" >&6; } 3430rm -f confinc confmf 3431 3432# Check whether --enable-dependency-tracking was given. 3433if test "${enable_dependency_tracking+set}" = set; then : 3434 enableval=$enable_dependency_tracking; 3435fi 3436 3437if test "x$enable_dependency_tracking" != xno; then 3438 am_depcomp="$ac_aux_dir/depcomp" 3439 AMDEPBACKSLASH='\' 3440 am__nodep='_no' 3441fi 3442 if test "x$enable_dependency_tracking" != xno; then 3443 AMDEP_TRUE= 3444 AMDEP_FALSE='#' 3445else 3446 AMDEP_TRUE='#' 3447 AMDEP_FALSE= 3448fi 3449 3450 3451ac_ext=c 3452ac_cpp='$CPP $CPPFLAGS' 3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3455ac_compiler_gnu=$ac_cv_c_compiler_gnu 3456if test -n "$ac_tool_prefix"; then 3457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3458set dummy ${ac_tool_prefix}gcc; ac_word=$2 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3460$as_echo_n "checking for $ac_word... " >&6; } 3461if ${ac_cv_prog_CC+:} false; then : 3462 $as_echo_n "(cached) " >&6 3463else 3464 if test -n "$CC"; then 3465 ac_cv_prog_CC="$CC" # Let the user override the test. 3466else 3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3468for as_dir in $PATH 3469do 3470 IFS=$as_save_IFS 3471 test -z "$as_dir" && as_dir=. 3472 for ac_exec_ext in '' $ac_executable_extensions; do 3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3474 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3476 break 2 3477 fi 3478done 3479 done 3480IFS=$as_save_IFS 3481 3482fi 3483fi 3484CC=$ac_cv_prog_CC 3485if test -n "$CC"; then 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3487$as_echo "$CC" >&6; } 3488else 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3490$as_echo "no" >&6; } 3491fi 3492 3493 3494fi 3495if test -z "$ac_cv_prog_CC"; then 3496 ac_ct_CC=$CC 3497 # Extract the first word of "gcc", so it can be a program name with args. 3498set dummy gcc; ac_word=$2 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3500$as_echo_n "checking for $ac_word... " >&6; } 3501if ${ac_cv_prog_ac_ct_CC+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 if test -n "$ac_ct_CC"; then 3505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3506else 3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3508for as_dir in $PATH 3509do 3510 IFS=$as_save_IFS 3511 test -z "$as_dir" && as_dir=. 3512 for ac_exec_ext in '' $ac_executable_extensions; do 3513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3514 ac_cv_prog_ac_ct_CC="gcc" 3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3516 break 2 3517 fi 3518done 3519 done 3520IFS=$as_save_IFS 3521 3522fi 3523fi 3524ac_ct_CC=$ac_cv_prog_ac_ct_CC 3525if test -n "$ac_ct_CC"; then 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3527$as_echo "$ac_ct_CC" >&6; } 3528else 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3530$as_echo "no" >&6; } 3531fi 3532 3533 if test "x$ac_ct_CC" = x; then 3534 CC="" 3535 else 3536 case $cross_compiling:$ac_tool_warned in 3537yes:) 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3540ac_tool_warned=yes ;; 3541esac 3542 CC=$ac_ct_CC 3543 fi 3544else 3545 CC="$ac_cv_prog_CC" 3546fi 3547 3548if test -z "$CC"; then 3549 if test -n "$ac_tool_prefix"; then 3550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3551set dummy ${ac_tool_prefix}cc; ac_word=$2 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3553$as_echo_n "checking for $ac_word... " >&6; } 3554if ${ac_cv_prog_CC+:} false; then : 3555 $as_echo_n "(cached) " >&6 3556else 3557 if test -n "$CC"; then 3558 ac_cv_prog_CC="$CC" # Let the user override the test. 3559else 3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3561for as_dir in $PATH 3562do 3563 IFS=$as_save_IFS 3564 test -z "$as_dir" && as_dir=. 3565 for ac_exec_ext in '' $ac_executable_extensions; do 3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3567 ac_cv_prog_CC="${ac_tool_prefix}cc" 3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3569 break 2 3570 fi 3571done 3572 done 3573IFS=$as_save_IFS 3574 3575fi 3576fi 3577CC=$ac_cv_prog_CC 3578if test -n "$CC"; then 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3580$as_echo "$CC" >&6; } 3581else 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3583$as_echo "no" >&6; } 3584fi 3585 3586 3587 fi 3588fi 3589if test -z "$CC"; then 3590 # Extract the first word of "cc", so it can be a program name with args. 3591set dummy cc; ac_word=$2 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593$as_echo_n "checking for $ac_word... " >&6; } 3594if ${ac_cv_prog_CC+:} false; then : 3595 $as_echo_n "(cached) " >&6 3596else 3597 if test -n "$CC"; then 3598 ac_cv_prog_CC="$CC" # Let the user override the test. 3599else 3600 ac_prog_rejected=no 3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH 3603do 3604 IFS=$as_save_IFS 3605 test -z "$as_dir" && as_dir=. 3606 for ac_exec_ext in '' $ac_executable_extensions; do 3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3609 ac_prog_rejected=yes 3610 continue 3611 fi 3612 ac_cv_prog_CC="cc" 3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620if test $ac_prog_rejected = yes; then 3621 # We found a bogon in the path, so make sure we never use it. 3622 set dummy $ac_cv_prog_CC 3623 shift 3624 if test $# != 0; then 3625 # We chose a different compiler from the bogus one. 3626 # However, it has the same basename, so the bogon will be chosen 3627 # first if we set CC to just the basename; use the full file name. 3628 shift 3629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3630 fi 3631fi 3632fi 3633fi 3634CC=$ac_cv_prog_CC 3635if test -n "$CC"; then 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3637$as_echo "$CC" >&6; } 3638else 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3640$as_echo "no" >&6; } 3641fi 3642 3643 3644fi 3645if test -z "$CC"; then 3646 if test -n "$ac_tool_prefix"; then 3647 for ac_prog in cl.exe 3648 do 3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3650set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3652$as_echo_n "checking for $ac_word... " >&6; } 3653if ${ac_cv_prog_CC+:} false; then : 3654 $as_echo_n "(cached) " >&6 3655else 3656 if test -n "$CC"; then 3657 ac_cv_prog_CC="$CC" # Let the user override the test. 3658else 3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH 3661do 3662 IFS=$as_save_IFS 3663 test -z "$as_dir" && as_dir=. 3664 for ac_exec_ext in '' $ac_executable_extensions; do 3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3668 break 2 3669 fi 3670done 3671 done 3672IFS=$as_save_IFS 3673 3674fi 3675fi 3676CC=$ac_cv_prog_CC 3677if test -n "$CC"; then 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3679$as_echo "$CC" >&6; } 3680else 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682$as_echo "no" >&6; } 3683fi 3684 3685 3686 test -n "$CC" && break 3687 done 3688fi 3689if test -z "$CC"; then 3690 ac_ct_CC=$CC 3691 for ac_prog in cl.exe 3692do 3693 # Extract the first word of "$ac_prog", so it can be a program name with args. 3694set dummy $ac_prog; ac_word=$2 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3696$as_echo_n "checking for $ac_word... " >&6; } 3697if ${ac_cv_prog_ac_ct_CC+:} false; then : 3698 $as_echo_n "(cached) " >&6 3699else 3700 if test -n "$ac_ct_CC"; then 3701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3702else 3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3704for as_dir in $PATH 3705do 3706 IFS=$as_save_IFS 3707 test -z "$as_dir" && as_dir=. 3708 for ac_exec_ext in '' $ac_executable_extensions; do 3709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3710 ac_cv_prog_ac_ct_CC="$ac_prog" 3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3712 break 2 3713 fi 3714done 3715 done 3716IFS=$as_save_IFS 3717 3718fi 3719fi 3720ac_ct_CC=$ac_cv_prog_ac_ct_CC 3721if test -n "$ac_ct_CC"; then 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3723$as_echo "$ac_ct_CC" >&6; } 3724else 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3726$as_echo "no" >&6; } 3727fi 3728 3729 3730 test -n "$ac_ct_CC" && break 3731done 3732 3733 if test "x$ac_ct_CC" = x; then 3734 CC="" 3735 else 3736 case $cross_compiling:$ac_tool_warned in 3737yes:) 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3740ac_tool_warned=yes ;; 3741esac 3742 CC=$ac_ct_CC 3743 fi 3744fi 3745 3746fi 3747 3748 3749test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3751as_fn_error $? "no acceptable C compiler found in \$PATH 3752See \`config.log' for more details" "$LINENO" 5; } 3753 3754# Provide some information about the compiler. 3755$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3756set X $ac_compile 3757ac_compiler=$2 3758for ac_option in --version -v -V -qversion; do 3759 { { ac_try="$ac_compiler $ac_option >&5" 3760case "(($ac_try" in 3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3762 *) ac_try_echo=$ac_try;; 3763esac 3764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3765$as_echo "$ac_try_echo"; } >&5 3766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3767 ac_status=$? 3768 if test -s conftest.err; then 3769 sed '10a\ 3770... rest of stderr output deleted ... 3771 10q' conftest.err >conftest.er1 3772 cat conftest.er1 >&5 3773 fi 3774 rm -f conftest.er1 conftest.err 3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3776 test $ac_status = 0; } 3777done 3778 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790ac_clean_files_save=$ac_clean_files 3791ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3792# Try to create an executable without -o first, disregard a.out. 3793# It will help us diagnose broken compilers, and finding out an intuition 3794# of exeext. 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3796$as_echo_n "checking whether the C compiler works... " >&6; } 3797ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3798 3799# The possible output files: 3800ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3801 3802ac_rmfiles= 3803for ac_file in $ac_files 3804do 3805 case $ac_file in 3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3807 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3808 esac 3809done 3810rm -f $ac_rmfiles 3811 3812if { { ac_try="$ac_link_default" 3813case "(($ac_try" in 3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3815 *) ac_try_echo=$ac_try;; 3816esac 3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3818$as_echo "$ac_try_echo"; } >&5 3819 (eval "$ac_link_default") 2>&5 3820 ac_status=$? 3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3822 test $ac_status = 0; }; then : 3823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3824# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3825# in a Makefile. We should not override ac_cv_exeext if it was cached, 3826# so that the user can short-circuit this test for compilers unknown to 3827# Autoconf. 3828for ac_file in $ac_files '' 3829do 3830 test -f "$ac_file" || continue 3831 case $ac_file in 3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3833 ;; 3834 [ab].out ) 3835 # We found the default executable, but exeext='' is most 3836 # certainly right. 3837 break;; 3838 *.* ) 3839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3840 then :; else 3841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3842 fi 3843 # We set ac_cv_exeext here because the later test for it is not 3844 # safe: cross compilers may not add the suffix if given an `-o' 3845 # argument, so we may need to know it at that point already. 3846 # Even if this section looks crufty: it has the advantage of 3847 # actually working. 3848 break;; 3849 * ) 3850 break;; 3851 esac 3852done 3853test "$ac_cv_exeext" = no && ac_cv_exeext= 3854 3855else 3856 ac_file='' 3857fi 3858if test -z "$ac_file"; then : 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3860$as_echo "no" >&6; } 3861$as_echo "$as_me: failed program was:" >&5 3862sed 's/^/| /' conftest.$ac_ext >&5 3863 3864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3866as_fn_error 77 "C compiler cannot create executables 3867See \`config.log' for more details" "$LINENO" 5; } 3868else 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3870$as_echo "yes" >&6; } 3871fi 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3873$as_echo_n "checking for C compiler default output file name... " >&6; } 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3875$as_echo "$ac_file" >&6; } 3876ac_exeext=$ac_cv_exeext 3877 3878rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3879ac_clean_files=$ac_clean_files_save 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3881$as_echo_n "checking for suffix of executables... " >&6; } 3882if { { ac_try="$ac_link" 3883case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3888$as_echo "$ac_try_echo"; } >&5 3889 (eval "$ac_link") 2>&5 3890 ac_status=$? 3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3892 test $ac_status = 0; }; then : 3893 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3895# work properly (i.e., refer to `conftest.exe'), while it won't with 3896# `rm'. 3897for ac_file in conftest.exe conftest conftest.*; do 3898 test -f "$ac_file" || continue 3899 case $ac_file in 3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3902 break;; 3903 * ) break;; 3904 esac 3905done 3906else 3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3909as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3910See \`config.log' for more details" "$LINENO" 5; } 3911fi 3912rm -f conftest conftest$ac_cv_exeext 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3914$as_echo "$ac_cv_exeext" >&6; } 3915 3916rm -f conftest.$ac_ext 3917EXEEXT=$ac_cv_exeext 3918ac_exeext=$EXEEXT 3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921#include <stdio.h> 3922int 3923main () 3924{ 3925FILE *f = fopen ("conftest.out", "w"); 3926 return ferror (f) || fclose (f) != 0; 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932ac_clean_files="$ac_clean_files conftest.out" 3933# Check that the compiler produces executables we can run. If not, either 3934# the compiler is broken, or we cross compile. 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3936$as_echo_n "checking whether we are cross compiling... " >&6; } 3937if test "$cross_compiling" != yes; then 3938 { { ac_try="$ac_link" 3939case "(($ac_try" in 3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3941 *) ac_try_echo=$ac_try;; 3942esac 3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3944$as_echo "$ac_try_echo"; } >&5 3945 (eval "$ac_link") 2>&5 3946 ac_status=$? 3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3948 test $ac_status = 0; } 3949 if { ac_try='./conftest$ac_cv_exeext' 3950 { { case "(($ac_try" in 3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3952 *) ac_try_echo=$ac_try;; 3953esac 3954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3955$as_echo "$ac_try_echo"; } >&5 3956 (eval "$ac_try") 2>&5 3957 ac_status=$? 3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3959 test $ac_status = 0; }; }; then 3960 cross_compiling=no 3961 else 3962 if test "$cross_compiling" = maybe; then 3963 cross_compiling=yes 3964 else 3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3967as_fn_error $? "cannot run C compiled programs. 3968If you meant to cross compile, use \`--host'. 3969See \`config.log' for more details" "$LINENO" 5; } 3970 fi 3971 fi 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3974$as_echo "$cross_compiling" >&6; } 3975 3976rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3977ac_clean_files=$ac_clean_files_save 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3979$as_echo_n "checking for suffix of object files... " >&6; } 3980if ${ac_cv_objext+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985 3986int 3987main () 3988{ 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994rm -f conftest.o conftest.obj 3995if { { ac_try="$ac_compile" 3996case "(($ac_try" in 3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3998 *) ac_try_echo=$ac_try;; 3999esac 4000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4001$as_echo "$ac_try_echo"; } >&5 4002 (eval "$ac_compile") 2>&5 4003 ac_status=$? 4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4005 test $ac_status = 0; }; then : 4006 for ac_file in conftest.o conftest.obj conftest.*; do 4007 test -f "$ac_file" || continue; 4008 case $ac_file in 4009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4010 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4011 break;; 4012 esac 4013done 4014else 4015 $as_echo "$as_me: failed program was:" >&5 4016sed 's/^/| /' conftest.$ac_ext >&5 4017 4018{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4020as_fn_error $? "cannot compute suffix of object files: cannot compile 4021See \`config.log' for more details" "$LINENO" 5; } 4022fi 4023rm -f conftest.$ac_cv_objext conftest.$ac_ext 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4026$as_echo "$ac_cv_objext" >&6; } 4027OBJEXT=$ac_cv_objext 4028ac_objext=$OBJEXT 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4030$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4031if ${ac_cv_c_compiler_gnu+:} false; then : 4032 $as_echo_n "(cached) " >&6 4033else 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036 4037int 4038main () 4039{ 4040#ifndef __GNUC__ 4041 choke me 4042#endif 4043 4044 ; 4045 return 0; 4046} 4047_ACEOF 4048if ac_fn_c_try_compile "$LINENO"; then : 4049 ac_compiler_gnu=yes 4050else 4051 ac_compiler_gnu=no 4052fi 4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4054ac_cv_c_compiler_gnu=$ac_compiler_gnu 4055 4056fi 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4058$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4059if test $ac_compiler_gnu = yes; then 4060 GCC=yes 4061else 4062 GCC= 4063fi 4064ac_test_CFLAGS=${CFLAGS+set} 4065ac_save_CFLAGS=$CFLAGS 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4067$as_echo_n "checking whether $CC accepts -g... " >&6; } 4068if ${ac_cv_prog_cc_g+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 ac_save_c_werror_flag=$ac_c_werror_flag 4072 ac_c_werror_flag=yes 4073 ac_cv_prog_cc_g=no 4074 CFLAGS="-g" 4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4076/* end confdefs.h. */ 4077 4078int 4079main () 4080{ 4081 4082 ; 4083 return 0; 4084} 4085_ACEOF 4086if ac_fn_c_try_compile "$LINENO"; then : 4087 ac_cv_prog_cc_g=yes 4088else 4089 CFLAGS="" 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092 4093int 4094main () 4095{ 4096 4097 ; 4098 return 0; 4099} 4100_ACEOF 4101if ac_fn_c_try_compile "$LINENO"; then : 4102 4103else 4104 ac_c_werror_flag=$ac_save_c_werror_flag 4105 CFLAGS="-g" 4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4107/* end confdefs.h. */ 4108 4109int 4110main () 4111{ 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117if ac_fn_c_try_compile "$LINENO"; then : 4118 ac_cv_prog_cc_g=yes 4119fi 4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4123fi 4124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4125 ac_c_werror_flag=$ac_save_c_werror_flag 4126fi 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4128$as_echo "$ac_cv_prog_cc_g" >&6; } 4129if test "$ac_test_CFLAGS" = set; then 4130 CFLAGS=$ac_save_CFLAGS 4131elif test $ac_cv_prog_cc_g = yes; then 4132 if test "$GCC" = yes; then 4133 CFLAGS="-g -O2" 4134 else 4135 CFLAGS="-g" 4136 fi 4137else 4138 if test "$GCC" = yes; then 4139 CFLAGS="-O2" 4140 else 4141 CFLAGS= 4142 fi 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4145$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4146if ${ac_cv_prog_cc_c89+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 ac_cv_prog_cc_c89=no 4150ac_save_CC=$CC 4151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153#include <stdarg.h> 4154#include <stdio.h> 4155struct stat; 4156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4157struct buf { int x; }; 4158FILE * (*rcsopen) (struct buf *, struct stat *, int); 4159static char *e (p, i) 4160 char **p; 4161 int i; 4162{ 4163 return p[i]; 4164} 4165static char *f (char * (*g) (char **, int), char **p, ...) 4166{ 4167 char *s; 4168 va_list v; 4169 va_start (v,p); 4170 s = g (p, va_arg (v,int)); 4171 va_end (v); 4172 return s; 4173} 4174 4175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4176 function prototypes and stuff, but not '\xHH' hex character constants. 4177 These don't provoke an error unfortunately, instead are silently treated 4178 as 'x'. The following induces an error, until -std is added to get 4179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4180 array size at least. It's necessary to write '\x00'==0 to get something 4181 that's true only with -std. */ 4182int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4183 4184/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4185 inside strings and character constants. */ 4186#define FOO(x) 'x' 4187int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4188 4189int test (int i, double x); 4190struct s1 {int (*f) (int a);}; 4191struct s2 {int (*f) (double a);}; 4192int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4193int argc; 4194char **argv; 4195int 4196main () 4197{ 4198return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4205do 4206 CC="$ac_save_CC $ac_arg" 4207 if ac_fn_c_try_compile "$LINENO"; then : 4208 ac_cv_prog_cc_c89=$ac_arg 4209fi 4210rm -f core conftest.err conftest.$ac_objext 4211 test "x$ac_cv_prog_cc_c89" != "xno" && break 4212done 4213rm -f conftest.$ac_ext 4214CC=$ac_save_CC 4215 4216fi 4217# AC_CACHE_VAL 4218case "x$ac_cv_prog_cc_c89" in 4219 x) 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4221$as_echo "none needed" >&6; } ;; 4222 xno) 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4224$as_echo "unsupported" >&6; } ;; 4225 *) 4226 CC="$CC $ac_cv_prog_cc_c89" 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4229esac 4230if test "x$ac_cv_prog_cc_c89" != xno; then : 4231 4232fi 4233 4234ac_ext=c 4235ac_cpp='$CPP $CPPFLAGS' 4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4238ac_compiler_gnu=$ac_cv_c_compiler_gnu 4239 4240ac_ext=c 4241ac_cpp='$CPP $CPPFLAGS' 4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4244ac_compiler_gnu=$ac_cv_c_compiler_gnu 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4246$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4247if ${am_cv_prog_cc_c_o+:} false; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252 4253int 4254main () 4255{ 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261 # Make sure it works both with $CC and with simple cc. 4262 # Following AC_PROG_CC_C_O, we do the test twice because some 4263 # compilers refuse to overwrite an existing .o file with -o, 4264 # though they will create one. 4265 am_cv_prog_cc_c_o=yes 4266 for am_i in 1 2; do 4267 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4268 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4269 ac_status=$? 4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4271 (exit $ac_status); } \ 4272 && test -f conftest2.$ac_objext; then 4273 : OK 4274 else 4275 am_cv_prog_cc_c_o=no 4276 break 4277 fi 4278 done 4279 rm -f core conftest* 4280 unset am_i 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4283$as_echo "$am_cv_prog_cc_c_o" >&6; } 4284if test "$am_cv_prog_cc_c_o" != yes; then 4285 # Losing compiler, so override with the script. 4286 # FIXME: It is wrong to rewrite CC. 4287 # But if we don't then we get into trouble of one sort or another. 4288 # A longer-term fix would be to have automake use am__CC in this case, 4289 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4290 CC="$am_aux_dir/compile $CC" 4291fi 4292ac_ext=c 4293ac_cpp='$CPP $CPPFLAGS' 4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4296ac_compiler_gnu=$ac_cv_c_compiler_gnu 4297 4298 4299depcc="$CC" am_compiler_list= 4300 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4302$as_echo_n "checking dependency style of $depcc... " >&6; } 4303if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4307 # We make a subdir and do the tests there. Otherwise we can end up 4308 # making bogus files that we don't know about and never remove. For 4309 # instance it was reported that on HP-UX the gcc test will end up 4310 # making a dummy file named 'D' -- because '-MD' means "put the output 4311 # in D". 4312 rm -rf conftest.dir 4313 mkdir conftest.dir 4314 # Copy depcomp to subdir because otherwise we won't find it if we're 4315 # using a relative directory. 4316 cp "$am_depcomp" conftest.dir 4317 cd conftest.dir 4318 # We will build objects and dependencies in a subdirectory because 4319 # it helps to detect inapplicable dependency modes. For instance 4320 # both Tru64's cc and ICC support -MD to output dependencies as a 4321 # side effect of compilation, but ICC will put the dependencies in 4322 # the current directory while Tru64 will put them in the object 4323 # directory. 4324 mkdir sub 4325 4326 am_cv_CC_dependencies_compiler_type=none 4327 if test "$am_compiler_list" = ""; then 4328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4329 fi 4330 am__universal=false 4331 case " $depcc " in #( 4332 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4333 esac 4334 4335 for depmode in $am_compiler_list; do 4336 # Setup a source with many dependencies, because some compilers 4337 # like to wrap large dependency lists on column 80 (with \), and 4338 # we should not choose a depcomp mode which is confused by this. 4339 # 4340 # We need to recreate these files for each test, as the compiler may 4341 # overwrite some of them when testing with obscure command lines. 4342 # This happens at least with the AIX C compiler. 4343 : > sub/conftest.c 4344 for i in 1 2 3 4 5 6; do 4345 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4346 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4347 # Solaris 10 /bin/sh. 4348 echo '/* dummy */' > sub/conftst$i.h 4349 done 4350 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4351 4352 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4353 # mode. It turns out that the SunPro C++ compiler does not properly 4354 # handle '-M -o', and we need to detect this. Also, some Intel 4355 # versions had trouble with output in subdirs. 4356 am__obj=sub/conftest.${OBJEXT-o} 4357 am__minus_obj="-o $am__obj" 4358 case $depmode in 4359 gcc) 4360 # This depmode causes a compiler race in universal mode. 4361 test "$am__universal" = false || continue 4362 ;; 4363 nosideeffect) 4364 # After this tag, mechanisms are not by side-effect, so they'll 4365 # only be used when explicitly requested. 4366 if test "x$enable_dependency_tracking" = xyes; then 4367 continue 4368 else 4369 break 4370 fi 4371 ;; 4372 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4373 # This compiler won't grok '-c -o', but also, the minuso test has 4374 # not run yet. These depmodes are late enough in the game, and 4375 # so weak that their functioning should not be impacted. 4376 am__obj=conftest.${OBJEXT-o} 4377 am__minus_obj= 4378 ;; 4379 none) break ;; 4380 esac 4381 if depmode=$depmode \ 4382 source=sub/conftest.c object=$am__obj \ 4383 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4384 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4385 >/dev/null 2>conftest.err && 4386 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4387 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4388 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4389 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4390 # icc doesn't choke on unknown options, it will just issue warnings 4391 # or remarks (even with -Werror). So we grep stderr for any message 4392 # that says an option was ignored or not supported. 4393 # When given -MP, icc 7.0 and 7.1 complain thusly: 4394 # icc: Command line warning: ignoring option '-M'; no argument required 4395 # The diagnosis changed in icc 8.0: 4396 # icc: Command line remark: option '-MP' not supported 4397 if (grep 'ignoring option' conftest.err || 4398 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4399 am_cv_CC_dependencies_compiler_type=$depmode 4400 break 4401 fi 4402 fi 4403 done 4404 4405 cd .. 4406 rm -rf conftest.dir 4407else 4408 am_cv_CC_dependencies_compiler_type=none 4409fi 4410 4411fi 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4413$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4414CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4415 4416 if 4417 test "x$enable_dependency_tracking" != xno \ 4418 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4419 am__fastdepCC_TRUE= 4420 am__fastdepCC_FALSE='#' 4421else 4422 am__fastdepCC_TRUE='#' 4423 am__fastdepCC_FALSE= 4424fi 4425 4426 4427 case $ac_cv_prog_cc_stdc in #( 4428 no) : 4429 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4430 *) : 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4432$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4433if ${ac_cv_prog_cc_c99+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 ac_cv_prog_cc_c99=no 4437ac_save_CC=$CC 4438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440#include <stdarg.h> 4441#include <stdbool.h> 4442#include <stdlib.h> 4443#include <wchar.h> 4444#include <stdio.h> 4445 4446// Check varargs macros. These examples are taken from C99 6.10.3.5. 4447#define debug(...) fprintf (stderr, __VA_ARGS__) 4448#define showlist(...) puts (#__VA_ARGS__) 4449#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4450static void 4451test_varargs_macros (void) 4452{ 4453 int x = 1234; 4454 int y = 5678; 4455 debug ("Flag"); 4456 debug ("X = %d\n", x); 4457 showlist (The first, second, and third items.); 4458 report (x>y, "x is %d but y is %d", x, y); 4459} 4460 4461// Check long long types. 4462#define BIG64 18446744073709551615ull 4463#define BIG32 4294967295ul 4464#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4465#if !BIG_OK 4466 your preprocessor is broken; 4467#endif 4468#if BIG_OK 4469#else 4470 your preprocessor is broken; 4471#endif 4472static long long int bignum = -9223372036854775807LL; 4473static unsigned long long int ubignum = BIG64; 4474 4475struct incomplete_array 4476{ 4477 int datasize; 4478 double data[]; 4479}; 4480 4481struct named_init { 4482 int number; 4483 const wchar_t *name; 4484 double average; 4485}; 4486 4487typedef const char *ccp; 4488 4489static inline int 4490test_restrict (ccp restrict text) 4491{ 4492 // See if C++-style comments work. 4493 // Iterate through items via the restricted pointer. 4494 // Also check for declarations in for loops. 4495 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4496 continue; 4497 return 0; 4498} 4499 4500// Check varargs and va_copy. 4501static void 4502test_varargs (const char *format, ...) 4503{ 4504 va_list args; 4505 va_start (args, format); 4506 va_list args_copy; 4507 va_copy (args_copy, args); 4508 4509 const char *str; 4510 int number; 4511 float fnumber; 4512 4513 while (*format) 4514 { 4515 switch (*format++) 4516 { 4517 case 's': // string 4518 str = va_arg (args_copy, const char *); 4519 break; 4520 case 'd': // int 4521 number = va_arg (args_copy, int); 4522 break; 4523 case 'f': // float 4524 fnumber = va_arg (args_copy, double); 4525 break; 4526 default: 4527 break; 4528 } 4529 } 4530 va_end (args_copy); 4531 va_end (args); 4532} 4533 4534int 4535main () 4536{ 4537 4538 // Check bool. 4539 _Bool success = false; 4540 4541 // Check restrict. 4542 if (test_restrict ("String literal") == 0) 4543 success = true; 4544 char *restrict newvar = "Another string"; 4545 4546 // Check varargs. 4547 test_varargs ("s, d' f .", "string", 65, 34.234); 4548 test_varargs_macros (); 4549 4550 // Check flexible array members. 4551 struct incomplete_array *ia = 4552 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4553 ia->datasize = 10; 4554 for (int i = 0; i < ia->datasize; ++i) 4555 ia->data[i] = i * 1.234; 4556 4557 // Check named initializers. 4558 struct named_init ni = { 4559 .number = 34, 4560 .name = L"Test wide string", 4561 .average = 543.34343, 4562 }; 4563 4564 ni.number = 58; 4565 4566 int dynamic_array[ni.number]; 4567 dynamic_array[ni.number - 1] = 543; 4568 4569 // work around unused variable warnings 4570 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4571 || dynamic_array[ni.number - 1] != 543); 4572 4573 ; 4574 return 0; 4575} 4576_ACEOF 4577for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4578do 4579 CC="$ac_save_CC $ac_arg" 4580 if ac_fn_c_try_compile "$LINENO"; then : 4581 ac_cv_prog_cc_c99=$ac_arg 4582fi 4583rm -f core conftest.err conftest.$ac_objext 4584 test "x$ac_cv_prog_cc_c99" != "xno" && break 4585done 4586rm -f conftest.$ac_ext 4587CC=$ac_save_CC 4588 4589fi 4590# AC_CACHE_VAL 4591case "x$ac_cv_prog_cc_c99" in 4592 x) 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4594$as_echo "none needed" >&6; } ;; 4595 xno) 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4597$as_echo "unsupported" >&6; } ;; 4598 *) 4599 CC="$CC $ac_cv_prog_cc_c99" 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4601$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4602esac 4603if test "x$ac_cv_prog_cc_c99" != xno; then : 4604 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4605else 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4608if ${ac_cv_prog_cc_c89+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 ac_cv_prog_cc_c89=no 4612ac_save_CC=$CC 4613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4614/* end confdefs.h. */ 4615#include <stdarg.h> 4616#include <stdio.h> 4617struct stat; 4618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4619struct buf { int x; }; 4620FILE * (*rcsopen) (struct buf *, struct stat *, int); 4621static char *e (p, i) 4622 char **p; 4623 int i; 4624{ 4625 return p[i]; 4626} 4627static char *f (char * (*g) (char **, int), char **p, ...) 4628{ 4629 char *s; 4630 va_list v; 4631 va_start (v,p); 4632 s = g (p, va_arg (v,int)); 4633 va_end (v); 4634 return s; 4635} 4636 4637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4638 function prototypes and stuff, but not '\xHH' hex character constants. 4639 These don't provoke an error unfortunately, instead are silently treated 4640 as 'x'. The following induces an error, until -std is added to get 4641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4642 array size at least. It's necessary to write '\x00'==0 to get something 4643 that's true only with -std. */ 4644int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4645 4646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4647 inside strings and character constants. */ 4648#define FOO(x) 'x' 4649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4650 4651int test (int i, double x); 4652struct s1 {int (*f) (int a);}; 4653struct s2 {int (*f) (double a);}; 4654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4655int argc; 4656char **argv; 4657int 4658main () 4659{ 4660return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4661 ; 4662 return 0; 4663} 4664_ACEOF 4665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4667do 4668 CC="$ac_save_CC $ac_arg" 4669 if ac_fn_c_try_compile "$LINENO"; then : 4670 ac_cv_prog_cc_c89=$ac_arg 4671fi 4672rm -f core conftest.err conftest.$ac_objext 4673 test "x$ac_cv_prog_cc_c89" != "xno" && break 4674done 4675rm -f conftest.$ac_ext 4676CC=$ac_save_CC 4677 4678fi 4679# AC_CACHE_VAL 4680case "x$ac_cv_prog_cc_c89" in 4681 x) 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4683$as_echo "none needed" >&6; } ;; 4684 xno) 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4686$as_echo "unsupported" >&6; } ;; 4687 *) 4688 CC="$CC $ac_cv_prog_cc_c89" 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4691esac 4692if test "x$ac_cv_prog_cc_c89" != xno; then : 4693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4694else 4695 ac_cv_prog_cc_stdc=no 4696fi 4697 4698fi 4699 ;; 4700esac 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4702$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4703 if ${ac_cv_prog_cc_stdc+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705fi 4706 4707 case $ac_cv_prog_cc_stdc in #( 4708 no) : 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4710$as_echo "unsupported" >&6; } ;; #( 4711 '') : 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4713$as_echo "none needed" >&6; } ;; #( 4714 *) : 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4716$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4717esac 4718 4719 4720ac_ext=c 4721ac_cpp='$CPP $CPPFLAGS' 4722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4724ac_compiler_gnu=$ac_cv_c_compiler_gnu 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4726$as_echo_n "checking how to run the C preprocessor... " >&6; } 4727# On Suns, sometimes $CPP names a directory. 4728if test -n "$CPP" && test -d "$CPP"; then 4729 CPP= 4730fi 4731if test -z "$CPP"; then 4732 if ${ac_cv_prog_CPP+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 # Double quotes because CPP needs to be expanded 4736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4737 do 4738 ac_preproc_ok=false 4739for ac_c_preproc_warn_flag in '' yes 4740do 4741 # Use a header file that comes with gcc, so configuring glibc 4742 # with a fresh cross-compiler works. 4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4744 # <limits.h> exists even on freestanding compilers. 4745 # On the NeXT, cc -E runs the code through the compiler's parser, 4746 # not just through cpp. "Syntax error" is here to catch this case. 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749#ifdef __STDC__ 4750# include <limits.h> 4751#else 4752# include <assert.h> 4753#endif 4754 Syntax error 4755_ACEOF 4756if ac_fn_c_try_cpp "$LINENO"; then : 4757 4758else 4759 # Broken: fails on valid input. 4760continue 4761fi 4762rm -f conftest.err conftest.i conftest.$ac_ext 4763 4764 # OK, works on sane cases. Now check whether nonexistent headers 4765 # can be detected and how. 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4767/* end confdefs.h. */ 4768#include <ac_nonexistent.h> 4769_ACEOF 4770if ac_fn_c_try_cpp "$LINENO"; then : 4771 # Broken: success on invalid input. 4772continue 4773else 4774 # Passes both tests. 4775ac_preproc_ok=: 4776break 4777fi 4778rm -f conftest.err conftest.i conftest.$ac_ext 4779 4780done 4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4782rm -f conftest.i conftest.err conftest.$ac_ext 4783if $ac_preproc_ok; then : 4784 break 4785fi 4786 4787 done 4788 ac_cv_prog_CPP=$CPP 4789 4790fi 4791 CPP=$ac_cv_prog_CPP 4792else 4793 ac_cv_prog_CPP=$CPP 4794fi 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4796$as_echo "$CPP" >&6; } 4797ac_preproc_ok=false 4798for ac_c_preproc_warn_flag in '' yes 4799do 4800 # Use a header file that comes with gcc, so configuring glibc 4801 # with a fresh cross-compiler works. 4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4803 # <limits.h> exists even on freestanding compilers. 4804 # On the NeXT, cc -E runs the code through the compiler's parser, 4805 # not just through cpp. "Syntax error" is here to catch this case. 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808#ifdef __STDC__ 4809# include <limits.h> 4810#else 4811# include <assert.h> 4812#endif 4813 Syntax error 4814_ACEOF 4815if ac_fn_c_try_cpp "$LINENO"; then : 4816 4817else 4818 # Broken: fails on valid input. 4819continue 4820fi 4821rm -f conftest.err conftest.i conftest.$ac_ext 4822 4823 # OK, works on sane cases. Now check whether nonexistent headers 4824 # can be detected and how. 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827#include <ac_nonexistent.h> 4828_ACEOF 4829if ac_fn_c_try_cpp "$LINENO"; then : 4830 # Broken: success on invalid input. 4831continue 4832else 4833 # Passes both tests. 4834ac_preproc_ok=: 4835break 4836fi 4837rm -f conftest.err conftest.i conftest.$ac_ext 4838 4839done 4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4841rm -f conftest.i conftest.err conftest.$ac_ext 4842if $ac_preproc_ok; then : 4843 4844else 4845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4847as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4848See \`config.log' for more details" "$LINENO" 5; } 4849fi 4850 4851ac_ext=c 4852ac_cpp='$CPP $CPPFLAGS' 4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4855ac_compiler_gnu=$ac_cv_c_compiler_gnu 4856 4857 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4859$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4860if ${ac_cv_path_GREP+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 if test -z "$GREP"; then 4864 ac_path_GREP_found=false 4865 # Loop through the user's path and test for each of PROGNAME-LIST 4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4868do 4869 IFS=$as_save_IFS 4870 test -z "$as_dir" && as_dir=. 4871 for ac_prog in grep ggrep; do 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4874 as_fn_executable_p "$ac_path_GREP" || continue 4875# Check for GNU ac_path_GREP and select it if it is found. 4876 # Check for GNU $ac_path_GREP 4877case `"$ac_path_GREP" --version 2>&1` in 4878*GNU*) 4879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4880*) 4881 ac_count=0 4882 $as_echo_n 0123456789 >"conftest.in" 4883 while : 4884 do 4885 cat "conftest.in" "conftest.in" >"conftest.tmp" 4886 mv "conftest.tmp" "conftest.in" 4887 cp "conftest.in" "conftest.nl" 4888 $as_echo 'GREP' >> "conftest.nl" 4889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4891 as_fn_arith $ac_count + 1 && ac_count=$as_val 4892 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4893 # Best one so far, save it but keep looking for a better one 4894 ac_cv_path_GREP="$ac_path_GREP" 4895 ac_path_GREP_max=$ac_count 4896 fi 4897 # 10*(2^10) chars as input seems more than enough 4898 test $ac_count -gt 10 && break 4899 done 4900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4901esac 4902 4903 $ac_path_GREP_found && break 3 4904 done 4905 done 4906 done 4907IFS=$as_save_IFS 4908 if test -z "$ac_cv_path_GREP"; then 4909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4910 fi 4911else 4912 ac_cv_path_GREP=$GREP 4913fi 4914 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4917$as_echo "$ac_cv_path_GREP" >&6; } 4918 GREP="$ac_cv_path_GREP" 4919 4920 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4922$as_echo_n "checking for egrep... " >&6; } 4923if ${ac_cv_path_EGREP+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4927 then ac_cv_path_EGREP="$GREP -E" 4928 else 4929 if test -z "$EGREP"; then 4930 ac_path_EGREP_found=false 4931 # Loop through the user's path and test for each of PROGNAME-LIST 4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4933for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4934do 4935 IFS=$as_save_IFS 4936 test -z "$as_dir" && as_dir=. 4937 for ac_prog in egrep; do 4938 for ac_exec_ext in '' $ac_executable_extensions; do 4939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4940 as_fn_executable_p "$ac_path_EGREP" || continue 4941# Check for GNU ac_path_EGREP and select it if it is found. 4942 # Check for GNU $ac_path_EGREP 4943case `"$ac_path_EGREP" --version 2>&1` in 4944*GNU*) 4945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4946*) 4947 ac_count=0 4948 $as_echo_n 0123456789 >"conftest.in" 4949 while : 4950 do 4951 cat "conftest.in" "conftest.in" >"conftest.tmp" 4952 mv "conftest.tmp" "conftest.in" 4953 cp "conftest.in" "conftest.nl" 4954 $as_echo 'EGREP' >> "conftest.nl" 4955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4957 as_fn_arith $ac_count + 1 && ac_count=$as_val 4958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4959 # Best one so far, save it but keep looking for a better one 4960 ac_cv_path_EGREP="$ac_path_EGREP" 4961 ac_path_EGREP_max=$ac_count 4962 fi 4963 # 10*(2^10) chars as input seems more than enough 4964 test $ac_count -gt 10 && break 4965 done 4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4967esac 4968 4969 $ac_path_EGREP_found && break 3 4970 done 4971 done 4972 done 4973IFS=$as_save_IFS 4974 if test -z "$ac_cv_path_EGREP"; then 4975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4976 fi 4977else 4978 ac_cv_path_EGREP=$EGREP 4979fi 4980 4981 fi 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4984$as_echo "$ac_cv_path_EGREP" >&6; } 4985 EGREP="$ac_cv_path_EGREP" 4986 4987 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4989$as_echo_n "checking for ANSI C header files... " >&6; } 4990if ${ac_cv_header_stdc+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995#include <stdlib.h> 4996#include <stdarg.h> 4997#include <string.h> 4998#include <float.h> 4999 5000int 5001main () 5002{ 5003 5004 ; 5005 return 0; 5006} 5007_ACEOF 5008if ac_fn_c_try_compile "$LINENO"; then : 5009 ac_cv_header_stdc=yes 5010else 5011 ac_cv_header_stdc=no 5012fi 5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5014 5015if test $ac_cv_header_stdc = yes; then 5016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018/* end confdefs.h. */ 5019#include <string.h> 5020 5021_ACEOF 5022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5023 $EGREP "memchr" >/dev/null 2>&1; then : 5024 5025else 5026 ac_cv_header_stdc=no 5027fi 5028rm -f conftest* 5029 5030fi 5031 5032if test $ac_cv_header_stdc = yes; then 5033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036#include <stdlib.h> 5037 5038_ACEOF 5039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5040 $EGREP "free" >/dev/null 2>&1; then : 5041 5042else 5043 ac_cv_header_stdc=no 5044fi 5045rm -f conftest* 5046 5047fi 5048 5049if test $ac_cv_header_stdc = yes; then 5050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5051 if test "$cross_compiling" = yes; then : 5052 : 5053else 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055/* end confdefs.h. */ 5056#include <ctype.h> 5057#include <stdlib.h> 5058#if ((' ' & 0x0FF) == 0x020) 5059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5061#else 5062# define ISLOWER(c) \ 5063 (('a' <= (c) && (c) <= 'i') \ 5064 || ('j' <= (c) && (c) <= 'r') \ 5065 || ('s' <= (c) && (c) <= 'z')) 5066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5067#endif 5068 5069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5070int 5071main () 5072{ 5073 int i; 5074 for (i = 0; i < 256; i++) 5075 if (XOR (islower (i), ISLOWER (i)) 5076 || toupper (i) != TOUPPER (i)) 5077 return 2; 5078 return 0; 5079} 5080_ACEOF 5081if ac_fn_c_try_run "$LINENO"; then : 5082 5083else 5084 ac_cv_header_stdc=no 5085fi 5086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5087 conftest.$ac_objext conftest.beam conftest.$ac_ext 5088fi 5089 5090fi 5091fi 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5093$as_echo "$ac_cv_header_stdc" >&6; } 5094if test $ac_cv_header_stdc = yes; then 5095 5096$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5097 5098fi 5099 5100# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5101for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5102 inttypes.h stdint.h unistd.h 5103do : 5104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5105ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5106" 5107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5108 cat >>confdefs.h <<_ACEOF 5109#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5110_ACEOF 5111 5112fi 5113 5114done 5115 5116 5117 5118 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5119if test "x$ac_cv_header_minix_config_h" = xyes; then : 5120 MINIX=yes 5121else 5122 MINIX= 5123fi 5124 5125 5126 if test "$MINIX" = yes; then 5127 5128$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5129 5130 5131$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5132 5133 5134$as_echo "#define _MINIX 1" >>confdefs.h 5135 5136 fi 5137 5138 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5140$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5141if ${ac_cv_safe_to_define___extensions__+:} false; then : 5142 $as_echo_n "(cached) " >&6 5143else 5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146 5147# define __EXTENSIONS__ 1 5148 $ac_includes_default 5149int 5150main () 5151{ 5152 5153 ; 5154 return 0; 5155} 5156_ACEOF 5157if ac_fn_c_try_compile "$LINENO"; then : 5158 ac_cv_safe_to_define___extensions__=yes 5159else 5160 ac_cv_safe_to_define___extensions__=no 5161fi 5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5163fi 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5165$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5166 test $ac_cv_safe_to_define___extensions__ = yes && 5167 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5168 5169 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5170 5171 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5172 5173 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5174 5175 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5176 5177 5178 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5180$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5181if ${ac_cv_c_bigendian+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 ac_cv_c_bigendian=unknown 5185 # See if we're dealing with a universal compiler. 5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5187/* end confdefs.h. */ 5188#ifndef __APPLE_CC__ 5189 not a universal capable compiler 5190 #endif 5191 typedef int dummy; 5192 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO"; then : 5195 5196 # Check for potential -arch flags. It is not universal unless 5197 # there are at least two -arch flags with different values. 5198 ac_arch= 5199 ac_prev= 5200 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5201 if test -n "$ac_prev"; then 5202 case $ac_word in 5203 i?86 | x86_64 | ppc | ppc64) 5204 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5205 ac_arch=$ac_word 5206 else 5207 ac_cv_c_bigendian=universal 5208 break 5209 fi 5210 ;; 5211 esac 5212 ac_prev= 5213 elif test "x$ac_word" = "x-arch"; then 5214 ac_prev=arch 5215 fi 5216 done 5217fi 5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5219 if test $ac_cv_c_bigendian = unknown; then 5220 # See if sys/param.h defines the BYTE_ORDER macro. 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223#include <sys/types.h> 5224 #include <sys/param.h> 5225 5226int 5227main () 5228{ 5229#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5230 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5231 && LITTLE_ENDIAN) 5232 bogus endian macros 5233 #endif 5234 5235 ; 5236 return 0; 5237} 5238_ACEOF 5239if ac_fn_c_try_compile "$LINENO"; then : 5240 # It does; now see whether it defined to BIG_ENDIAN or not. 5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242/* end confdefs.h. */ 5243#include <sys/types.h> 5244 #include <sys/param.h> 5245 5246int 5247main () 5248{ 5249#if BYTE_ORDER != BIG_ENDIAN 5250 not big endian 5251 #endif 5252 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257if ac_fn_c_try_compile "$LINENO"; then : 5258 ac_cv_c_bigendian=yes 5259else 5260 ac_cv_c_bigendian=no 5261fi 5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5263fi 5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5265 fi 5266 if test $ac_cv_c_bigendian = unknown; then 5267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269/* end confdefs.h. */ 5270#include <limits.h> 5271 5272int 5273main () 5274{ 5275#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5276 bogus endian macros 5277 #endif 5278 5279 ; 5280 return 0; 5281} 5282_ACEOF 5283if ac_fn_c_try_compile "$LINENO"; then : 5284 # It does; now see whether it defined to _BIG_ENDIAN or not. 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287#include <limits.h> 5288 5289int 5290main () 5291{ 5292#ifndef _BIG_ENDIAN 5293 not big endian 5294 #endif 5295 5296 ; 5297 return 0; 5298} 5299_ACEOF 5300if ac_fn_c_try_compile "$LINENO"; then : 5301 ac_cv_c_bigendian=yes 5302else 5303 ac_cv_c_bigendian=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5306fi 5307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5308 fi 5309 if test $ac_cv_c_bigendian = unknown; then 5310 # Compile a test program. 5311 if test "$cross_compiling" = yes; then : 5312 # Try to guess by grepping values from an object file. 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315short int ascii_mm[] = 5316 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5317 short int ascii_ii[] = 5318 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5319 int use_ascii (int i) { 5320 return ascii_mm[i] + ascii_ii[i]; 5321 } 5322 short int ebcdic_ii[] = 5323 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5324 short int ebcdic_mm[] = 5325 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5326 int use_ebcdic (int i) { 5327 return ebcdic_mm[i] + ebcdic_ii[i]; 5328 } 5329 extern int foo; 5330 5331int 5332main () 5333{ 5334return use_ascii (foo) == use_ebcdic (foo); 5335 ; 5336 return 0; 5337} 5338_ACEOF 5339if ac_fn_c_try_compile "$LINENO"; then : 5340 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5341 ac_cv_c_bigendian=yes 5342 fi 5343 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5344 if test "$ac_cv_c_bigendian" = unknown; then 5345 ac_cv_c_bigendian=no 5346 else 5347 # finding both strings is unlikely to happen, but who knows? 5348 ac_cv_c_bigendian=unknown 5349 fi 5350 fi 5351fi 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5353else 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356$ac_includes_default 5357int 5358main () 5359{ 5360 5361 /* Are we little or big endian? From Harbison&Steele. */ 5362 union 5363 { 5364 long int l; 5365 char c[sizeof (long int)]; 5366 } u; 5367 u.l = 1; 5368 return u.c[sizeof (long int) - 1] == 1; 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374if ac_fn_c_try_run "$LINENO"; then : 5375 ac_cv_c_bigendian=no 5376else 5377 ac_cv_c_bigendian=yes 5378fi 5379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5380 conftest.$ac_objext conftest.beam conftest.$ac_ext 5381fi 5382 5383 fi 5384fi 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5386$as_echo "$ac_cv_c_bigendian" >&6; } 5387 case $ac_cv_c_bigendian in #( 5388 yes) 5389 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5390;; #( 5391 no) 5392 ;; #( 5393 universal) 5394 5395$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5396 5397 ;; #( 5398 *) 5399 as_fn_error $? "unknown endianness 5400 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5401 esac 5402 5403 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5405$as_echo_n "checking whether ln -s works... " >&6; } 5406LN_S=$as_ln_s 5407if test "$LN_S" = "ln -s"; then 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5409$as_echo "yes" >&6; } 5410else 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5412$as_echo "no, using $LN_S" >&6; } 5413fi 5414 5415case `pwd` in 5416 *\ * | *\ *) 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5418$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5419esac 5420 5421 5422 5423macro_version='2.4.2' 5424macro_revision='1.3337' 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438ltmain="$ac_aux_dir/ltmain.sh" 5439 5440# Backslashify metacharacters that are still active within 5441# double-quoted strings. 5442sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5443 5444# Same as above, but do not quote variable references. 5445double_quote_subst='s/\(["`\\]\)/\\\1/g' 5446 5447# Sed substitution to delay expansion of an escaped shell variable in a 5448# double_quote_subst'ed string. 5449delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5450 5451# Sed substitution to delay expansion of an escaped single quote. 5452delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5453 5454# Sed substitution to avoid accidental globbing in evaled expressions 5455no_glob_subst='s/\*/\\\*/g' 5456 5457ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5459ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5460 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5462$as_echo_n "checking how to print strings... " >&6; } 5463# Test print first, because it will be a builtin if present. 5464if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5465 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5466 ECHO='print -r --' 5467elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5468 ECHO='printf %s\n' 5469else 5470 # Use this function as a fallback that always works. 5471 func_fallback_echo () 5472 { 5473 eval 'cat <<_LTECHO_EOF 5474$1 5475_LTECHO_EOF' 5476 } 5477 ECHO='func_fallback_echo' 5478fi 5479 5480# func_echo_all arg... 5481# Invoke $ECHO with all args, space-separated. 5482func_echo_all () 5483{ 5484 $ECHO "" 5485} 5486 5487case "$ECHO" in 5488 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5489$as_echo "printf" >&6; } ;; 5490 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5491$as_echo "print -r" >&6; } ;; 5492 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5493$as_echo "cat" >&6; } ;; 5494esac 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5510$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5511if ${ac_cv_path_SED+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513else 5514 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5515 for ac_i in 1 2 3 4 5 6 7; do 5516 ac_script="$ac_script$as_nl$ac_script" 5517 done 5518 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5519 { ac_script=; unset ac_script;} 5520 if test -z "$SED"; then 5521 ac_path_SED_found=false 5522 # Loop through the user's path and test for each of PROGNAME-LIST 5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_prog in sed gsed; do 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5531 as_fn_executable_p "$ac_path_SED" || continue 5532# Check for GNU ac_path_SED and select it if it is found. 5533 # Check for GNU $ac_path_SED 5534case `"$ac_path_SED" --version 2>&1` in 5535*GNU*) 5536 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5537*) 5538 ac_count=0 5539 $as_echo_n 0123456789 >"conftest.in" 5540 while : 5541 do 5542 cat "conftest.in" "conftest.in" >"conftest.tmp" 5543 mv "conftest.tmp" "conftest.in" 5544 cp "conftest.in" "conftest.nl" 5545 $as_echo '' >> "conftest.nl" 5546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5548 as_fn_arith $ac_count + 1 && ac_count=$as_val 5549 if test $ac_count -gt ${ac_path_SED_max-0}; then 5550 # Best one so far, save it but keep looking for a better one 5551 ac_cv_path_SED="$ac_path_SED" 5552 ac_path_SED_max=$ac_count 5553 fi 5554 # 10*(2^10) chars as input seems more than enough 5555 test $ac_count -gt 10 && break 5556 done 5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5558esac 5559 5560 $ac_path_SED_found && break 3 5561 done 5562 done 5563 done 5564IFS=$as_save_IFS 5565 if test -z "$ac_cv_path_SED"; then 5566 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5567 fi 5568else 5569 ac_cv_path_SED=$SED 5570fi 5571 5572fi 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5574$as_echo "$ac_cv_path_SED" >&6; } 5575 SED="$ac_cv_path_SED" 5576 rm -f conftest.sed 5577 5578test -z "$SED" && SED=sed 5579Xsed="$SED -e 1s/^X//" 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5592$as_echo_n "checking for fgrep... " >&6; } 5593if ${ac_cv_path_FGREP+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5597 then ac_cv_path_FGREP="$GREP -F" 5598 else 5599 if test -z "$FGREP"; then 5600 ac_path_FGREP_found=false 5601 # Loop through the user's path and test for each of PROGNAME-LIST 5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5603for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5604do 5605 IFS=$as_save_IFS 5606 test -z "$as_dir" && as_dir=. 5607 for ac_prog in fgrep; do 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5610 as_fn_executable_p "$ac_path_FGREP" || continue 5611# Check for GNU ac_path_FGREP and select it if it is found. 5612 # Check for GNU $ac_path_FGREP 5613case `"$ac_path_FGREP" --version 2>&1` in 5614*GNU*) 5615 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5616*) 5617 ac_count=0 5618 $as_echo_n 0123456789 >"conftest.in" 5619 while : 5620 do 5621 cat "conftest.in" "conftest.in" >"conftest.tmp" 5622 mv "conftest.tmp" "conftest.in" 5623 cp "conftest.in" "conftest.nl" 5624 $as_echo 'FGREP' >> "conftest.nl" 5625 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5627 as_fn_arith $ac_count + 1 && ac_count=$as_val 5628 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5629 # Best one so far, save it but keep looking for a better one 5630 ac_cv_path_FGREP="$ac_path_FGREP" 5631 ac_path_FGREP_max=$ac_count 5632 fi 5633 # 10*(2^10) chars as input seems more than enough 5634 test $ac_count -gt 10 && break 5635 done 5636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5637esac 5638 5639 $ac_path_FGREP_found && break 3 5640 done 5641 done 5642 done 5643IFS=$as_save_IFS 5644 if test -z "$ac_cv_path_FGREP"; then 5645 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5646 fi 5647else 5648 ac_cv_path_FGREP=$FGREP 5649fi 5650 5651 fi 5652fi 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5654$as_echo "$ac_cv_path_FGREP" >&6; } 5655 FGREP="$ac_cv_path_FGREP" 5656 5657 5658test -z "$GREP" && GREP=grep 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678# Check whether --with-gnu-ld was given. 5679if test "${with_gnu_ld+set}" = set; then : 5680 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5681else 5682 with_gnu_ld=no 5683fi 5684 5685ac_prog=ld 5686if test "$GCC" = yes; then 5687 # Check if gcc -print-prog-name=ld gives a path. 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5689$as_echo_n "checking for ld used by $CC... " >&6; } 5690 case $host in 5691 *-*-mingw*) 5692 # gcc leaves a trailing carriage return which upsets mingw 5693 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5694 *) 5695 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5696 esac 5697 case $ac_prog in 5698 # Accept absolute paths. 5699 [\\/]* | ?:[\\/]*) 5700 re_direlt='/[^/][^/]*/\.\./' 5701 # Canonicalize the pathname of ld 5702 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5703 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5704 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5705 done 5706 test -z "$LD" && LD="$ac_prog" 5707 ;; 5708 "") 5709 # If it fails, then pretend we aren't using GCC. 5710 ac_prog=ld 5711 ;; 5712 *) 5713 # If it is relative, then search for the first ld in PATH. 5714 with_gnu_ld=unknown 5715 ;; 5716 esac 5717elif test "$with_gnu_ld" = yes; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5719$as_echo_n "checking for GNU ld... " >&6; } 5720else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5722$as_echo_n "checking for non-GNU ld... " >&6; } 5723fi 5724if ${lt_cv_path_LD+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -z "$LD"; then 5728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5729 for ac_dir in $PATH; do 5730 IFS="$lt_save_ifs" 5731 test -z "$ac_dir" && ac_dir=. 5732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5733 lt_cv_path_LD="$ac_dir/$ac_prog" 5734 # Check to see if the program is GNU ld. I'd rather use --version, 5735 # but apparently some variants of GNU ld only accept -v. 5736 # Break only if it was the GNU/non-GNU ld that we prefer. 5737 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5738 *GNU* | *'with BFD'*) 5739 test "$with_gnu_ld" != no && break 5740 ;; 5741 *) 5742 test "$with_gnu_ld" != yes && break 5743 ;; 5744 esac 5745 fi 5746 done 5747 IFS="$lt_save_ifs" 5748else 5749 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5750fi 5751fi 5752 5753LD="$lt_cv_path_LD" 5754if test -n "$LD"; then 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5756$as_echo "$LD" >&6; } 5757else 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5759$as_echo "no" >&6; } 5760fi 5761test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5763$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5764if ${lt_cv_prog_gnu_ld+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5768case `$LD -v 2>&1 </dev/null` in 5769*GNU* | *'with BFD'*) 5770 lt_cv_prog_gnu_ld=yes 5771 ;; 5772*) 5773 lt_cv_prog_gnu_ld=no 5774 ;; 5775esac 5776fi 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5778$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5779with_gnu_ld=$lt_cv_prog_gnu_ld 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5790$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5791if ${lt_cv_path_NM+:} false; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 if test -n "$NM"; then 5795 # Let the user override the test. 5796 lt_cv_path_NM="$NM" 5797else 5798 lt_nm_to_check="${ac_tool_prefix}nm" 5799 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5800 lt_nm_to_check="$lt_nm_to_check nm" 5801 fi 5802 for lt_tmp_nm in $lt_nm_to_check; do 5803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5804 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5805 IFS="$lt_save_ifs" 5806 test -z "$ac_dir" && ac_dir=. 5807 tmp_nm="$ac_dir/$lt_tmp_nm" 5808 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5809 # Check to see if the nm accepts a BSD-compat flag. 5810 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5811 # nm: unknown option "B" ignored 5812 # Tru64's nm complains that /dev/null is an invalid object file 5813 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5814 */dev/null* | *'Invalid file or object type'*) 5815 lt_cv_path_NM="$tmp_nm -B" 5816 break 5817 ;; 5818 *) 5819 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5820 */dev/null*) 5821 lt_cv_path_NM="$tmp_nm -p" 5822 break 5823 ;; 5824 *) 5825 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5826 continue # so that we can try to find one that supports BSD flags 5827 ;; 5828 esac 5829 ;; 5830 esac 5831 fi 5832 done 5833 IFS="$lt_save_ifs" 5834 done 5835 : ${lt_cv_path_NM=no} 5836fi 5837fi 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5839$as_echo "$lt_cv_path_NM" >&6; } 5840if test "$lt_cv_path_NM" != "no"; then 5841 NM="$lt_cv_path_NM" 5842else 5843 # Didn't find any BSD compatible name lister, look for dumpbin. 5844 if test -n "$DUMPBIN"; then : 5845 # Let the user override the test. 5846 else 5847 if test -n "$ac_tool_prefix"; then 5848 for ac_prog in dumpbin "link -dump" 5849 do 5850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5851set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853$as_echo_n "checking for $ac_word... " >&6; } 5854if ${ac_cv_prog_DUMPBIN+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if test -n "$DUMPBIN"; then 5858 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5859else 5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871done 5872 done 5873IFS=$as_save_IFS 5874 5875fi 5876fi 5877DUMPBIN=$ac_cv_prog_DUMPBIN 5878if test -n "$DUMPBIN"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5880$as_echo "$DUMPBIN" >&6; } 5881else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884fi 5885 5886 5887 test -n "$DUMPBIN" && break 5888 done 5889fi 5890if test -z "$DUMPBIN"; then 5891 ac_ct_DUMPBIN=$DUMPBIN 5892 for ac_prog in dumpbin "link -dump" 5893do 5894 # Extract the first word of "$ac_prog", so it can be a program name with args. 5895set dummy $ac_prog; ac_word=$2 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5897$as_echo_n "checking for $ac_word... " >&6; } 5898if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 if test -n "$ac_ct_DUMPBIN"; then 5902 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5903else 5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5905for as_dir in $PATH 5906do 5907 IFS=$as_save_IFS 5908 test -z "$as_dir" && as_dir=. 5909 for ac_exec_ext in '' $ac_executable_extensions; do 5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5911 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5913 break 2 5914 fi 5915done 5916 done 5917IFS=$as_save_IFS 5918 5919fi 5920fi 5921ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5922if test -n "$ac_ct_DUMPBIN"; then 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5924$as_echo "$ac_ct_DUMPBIN" >&6; } 5925else 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5927$as_echo "no" >&6; } 5928fi 5929 5930 5931 test -n "$ac_ct_DUMPBIN" && break 5932done 5933 5934 if test "x$ac_ct_DUMPBIN" = x; then 5935 DUMPBIN=":" 5936 else 5937 case $cross_compiling:$ac_tool_warned in 5938yes:) 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5941ac_tool_warned=yes ;; 5942esac 5943 DUMPBIN=$ac_ct_DUMPBIN 5944 fi 5945fi 5946 5947 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5948 *COFF*) 5949 DUMPBIN="$DUMPBIN -symbols" 5950 ;; 5951 *) 5952 DUMPBIN=: 5953 ;; 5954 esac 5955 fi 5956 5957 if test "$DUMPBIN" != ":"; then 5958 NM="$DUMPBIN" 5959 fi 5960fi 5961test -z "$NM" && NM=nm 5962 5963 5964 5965 5966 5967 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5969$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5970if ${lt_cv_nm_interface+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 lt_cv_nm_interface="BSD nm" 5974 echo "int some_variable = 0;" > conftest.$ac_ext 5975 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5976 (eval "$ac_compile" 2>conftest.err) 5977 cat conftest.err >&5 5978 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5979 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5980 cat conftest.err >&5 5981 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5982 cat conftest.out >&5 5983 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5984 lt_cv_nm_interface="MS dumpbin" 5985 fi 5986 rm -f conftest* 5987fi 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5989$as_echo "$lt_cv_nm_interface" >&6; } 5990 5991# find the maximum length of command line arguments 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5993$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5994if ${lt_cv_sys_max_cmd_len+:} false; then : 5995 $as_echo_n "(cached) " >&6 5996else 5997 i=0 5998 teststring="ABCD" 5999 6000 case $build_os in 6001 msdosdjgpp*) 6002 # On DJGPP, this test can blow up pretty badly due to problems in libc 6003 # (any single argument exceeding 2000 bytes causes a buffer overrun 6004 # during glob expansion). Even if it were fixed, the result of this 6005 # check would be larger than it should be. 6006 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6007 ;; 6008 6009 gnu*) 6010 # Under GNU Hurd, this test is not required because there is 6011 # no limit to the length of command line arguments. 6012 # Libtool will interpret -1 as no limit whatsoever 6013 lt_cv_sys_max_cmd_len=-1; 6014 ;; 6015 6016 cygwin* | mingw* | cegcc*) 6017 # On Win9x/ME, this test blows up -- it succeeds, but takes 6018 # about 5 minutes as the teststring grows exponentially. 6019 # Worse, since 9x/ME are not pre-emptively multitasking, 6020 # you end up with a "frozen" computer, even though with patience 6021 # the test eventually succeeds (with a max line length of 256k). 6022 # Instead, let's just punt: use the minimum linelength reported by 6023 # all of the supported platforms: 8192 (on NT/2K/XP). 6024 lt_cv_sys_max_cmd_len=8192; 6025 ;; 6026 6027 mint*) 6028 # On MiNT this can take a long time and run out of memory. 6029 lt_cv_sys_max_cmd_len=8192; 6030 ;; 6031 6032 amigaos*) 6033 # On AmigaOS with pdksh, this test takes hours, literally. 6034 # So we just punt and use a minimum line length of 8192. 6035 lt_cv_sys_max_cmd_len=8192; 6036 ;; 6037 6038 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6039 # This has been around since 386BSD, at least. Likely further. 6040 if test -x /sbin/sysctl; then 6041 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6042 elif test -x /usr/sbin/sysctl; then 6043 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6044 else 6045 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6046 fi 6047 # And add a safety zone 6048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6050 ;; 6051 6052 interix*) 6053 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6054 lt_cv_sys_max_cmd_len=196608 6055 ;; 6056 6057 os2*) 6058 # The test takes a long time on OS/2. 6059 lt_cv_sys_max_cmd_len=8192 6060 ;; 6061 6062 osf*) 6063 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6064 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6065 # nice to cause kernel panics so lets avoid the loop below. 6066 # First set a reasonable default. 6067 lt_cv_sys_max_cmd_len=16384 6068 # 6069 if test -x /sbin/sysconfig; then 6070 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6071 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6072 esac 6073 fi 6074 ;; 6075 sco3.2v5*) 6076 lt_cv_sys_max_cmd_len=102400 6077 ;; 6078 sysv5* | sco5v6* | sysv4.2uw2*) 6079 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6080 if test -n "$kargmax"; then 6081 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6082 else 6083 lt_cv_sys_max_cmd_len=32768 6084 fi 6085 ;; 6086 *) 6087 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6088 if test -n "$lt_cv_sys_max_cmd_len"; then 6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6091 else 6092 # Make teststring a little bigger before we do anything with it. 6093 # a 1K string should be a reasonable start. 6094 for i in 1 2 3 4 5 6 7 8 ; do 6095 teststring=$teststring$teststring 6096 done 6097 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6098 # If test is not a shell built-in, we'll probably end up computing a 6099 # maximum length that is only half of the actual maximum length, but 6100 # we can't tell. 6101 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6102 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6103 test $i != 17 # 1/2 MB should be enough 6104 do 6105 i=`expr $i + 1` 6106 teststring=$teststring$teststring 6107 done 6108 # Only check the string length outside the loop. 6109 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6110 teststring= 6111 # Add a significant safety factor because C++ compilers can tack on 6112 # massive amounts of additional arguments before passing them to the 6113 # linker. It appears as though 1/2 is a usable value. 6114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6115 fi 6116 ;; 6117 esac 6118 6119fi 6120 6121if test -n $lt_cv_sys_max_cmd_len ; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6123$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6126$as_echo "none" >&6; } 6127fi 6128max_cmd_len=$lt_cv_sys_max_cmd_len 6129 6130 6131 6132 6133 6134 6135: ${CP="cp -f"} 6136: ${MV="mv -f"} 6137: ${RM="rm -f"} 6138 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6140$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6141# Try some XSI features 6142xsi_shell=no 6143( _lt_dummy="a/b/c" 6144 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6145 = c,a/b,b/c, \ 6146 && eval 'test $(( 1 + 1 )) -eq 2 \ 6147 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6148 && xsi_shell=yes 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6150$as_echo "$xsi_shell" >&6; } 6151 6152 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6154$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6155lt_shell_append=no 6156( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6157 >/dev/null 2>&1 \ 6158 && lt_shell_append=yes 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6160$as_echo "$lt_shell_append" >&6; } 6161 6162 6163if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6164 lt_unset=unset 6165else 6166 lt_unset=false 6167fi 6168 6169 6170 6171 6172 6173# test EBCDIC or ASCII 6174case `echo X|tr X '\101'` in 6175 A) # ASCII based system 6176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6177 lt_SP2NL='tr \040 \012' 6178 lt_NL2SP='tr \015\012 \040\040' 6179 ;; 6180 *) # EBCDIC based system 6181 lt_SP2NL='tr \100 \n' 6182 lt_NL2SP='tr \r\n \100\100' 6183 ;; 6184esac 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6195$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6196if ${lt_cv_to_host_file_cmd+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 case $host in 6200 *-*-mingw* ) 6201 case $build in 6202 *-*-mingw* ) # actually msys 6203 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6204 ;; 6205 *-*-cygwin* ) 6206 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6207 ;; 6208 * ) # otherwise, assume *nix 6209 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6210 ;; 6211 esac 6212 ;; 6213 *-*-cygwin* ) 6214 case $build in 6215 *-*-mingw* ) # actually msys 6216 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6217 ;; 6218 *-*-cygwin* ) 6219 lt_cv_to_host_file_cmd=func_convert_file_noop 6220 ;; 6221 * ) # otherwise, assume *nix 6222 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6223 ;; 6224 esac 6225 ;; 6226 * ) # unhandled hosts (and "normal" native builds) 6227 lt_cv_to_host_file_cmd=func_convert_file_noop 6228 ;; 6229esac 6230 6231fi 6232 6233to_host_file_cmd=$lt_cv_to_host_file_cmd 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6235$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6236 6237 6238 6239 6240 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6242$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6243if ${lt_cv_to_tool_file_cmd+:} false; then : 6244 $as_echo_n "(cached) " >&6 6245else 6246 #assume ordinary cross tools, or native build. 6247lt_cv_to_tool_file_cmd=func_convert_file_noop 6248case $host in 6249 *-*-mingw* ) 6250 case $build in 6251 *-*-mingw* ) # actually msys 6252 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6253 ;; 6254 esac 6255 ;; 6256esac 6257 6258fi 6259 6260to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6262$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6263 6264 6265 6266 6267 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6269$as_echo_n "checking for $LD option to reload object files... " >&6; } 6270if ${lt_cv_ld_reload_flag+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272else 6273 lt_cv_ld_reload_flag='-r' 6274fi 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6276$as_echo "$lt_cv_ld_reload_flag" >&6; } 6277reload_flag=$lt_cv_ld_reload_flag 6278case $reload_flag in 6279"" | " "*) ;; 6280*) reload_flag=" $reload_flag" ;; 6281esac 6282reload_cmds='$LD$reload_flag -o $output$reload_objs' 6283case $host_os in 6284 cygwin* | mingw* | pw32* | cegcc*) 6285 if test "$GCC" != yes; then 6286 reload_cmds=false 6287 fi 6288 ;; 6289 darwin*) 6290 if test "$GCC" = yes; then 6291 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6292 else 6293 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6294 fi 6295 ;; 6296esac 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306if test -n "$ac_tool_prefix"; then 6307 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6308set dummy ${ac_tool_prefix}objdump; ac_word=$2 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6310$as_echo_n "checking for $ac_word... " >&6; } 6311if ${ac_cv_prog_OBJDUMP+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 if test -n "$OBJDUMP"; then 6315 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6316else 6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6318for as_dir in $PATH 6319do 6320 IFS=$as_save_IFS 6321 test -z "$as_dir" && as_dir=. 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6324 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6326 break 2 6327 fi 6328done 6329 done 6330IFS=$as_save_IFS 6331 6332fi 6333fi 6334OBJDUMP=$ac_cv_prog_OBJDUMP 6335if test -n "$OBJDUMP"; then 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6337$as_echo "$OBJDUMP" >&6; } 6338else 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6340$as_echo "no" >&6; } 6341fi 6342 6343 6344fi 6345if test -z "$ac_cv_prog_OBJDUMP"; then 6346 ac_ct_OBJDUMP=$OBJDUMP 6347 # Extract the first word of "objdump", so it can be a program name with args. 6348set dummy objdump; ac_word=$2 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6350$as_echo_n "checking for $ac_word... " >&6; } 6351if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 if test -n "$ac_ct_OBJDUMP"; then 6355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6356else 6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6358for as_dir in $PATH 6359do 6360 IFS=$as_save_IFS 6361 test -z "$as_dir" && as_dir=. 6362 for ac_exec_ext in '' $ac_executable_extensions; do 6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6364 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6366 break 2 6367 fi 6368done 6369 done 6370IFS=$as_save_IFS 6371 6372fi 6373fi 6374ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6375if test -n "$ac_ct_OBJDUMP"; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6377$as_echo "$ac_ct_OBJDUMP" >&6; } 6378else 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6380$as_echo "no" >&6; } 6381fi 6382 6383 if test "x$ac_ct_OBJDUMP" = x; then 6384 OBJDUMP="false" 6385 else 6386 case $cross_compiling:$ac_tool_warned in 6387yes:) 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6390ac_tool_warned=yes ;; 6391esac 6392 OBJDUMP=$ac_ct_OBJDUMP 6393 fi 6394else 6395 OBJDUMP="$ac_cv_prog_OBJDUMP" 6396fi 6397 6398test -z "$OBJDUMP" && OBJDUMP=objdump 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6409$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6410if ${lt_cv_deplibs_check_method+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 lt_cv_file_magic_cmd='$MAGIC_CMD' 6414lt_cv_file_magic_test_file= 6415lt_cv_deplibs_check_method='unknown' 6416# Need to set the preceding variable on all platforms that support 6417# interlibrary dependencies. 6418# 'none' -- dependencies not supported. 6419# `unknown' -- same as none, but documents that we really don't know. 6420# 'pass_all' -- all dependencies passed with no checks. 6421# 'test_compile' -- check by making test program. 6422# 'file_magic [[regex]]' -- check by looking for files in library path 6423# which responds to the $file_magic_cmd with a given extended regex. 6424# If you have `file' or equivalent on your system and you're not sure 6425# whether `pass_all' will *always* work, you probably want this one. 6426 6427case $host_os in 6428aix[4-9]*) 6429 lt_cv_deplibs_check_method=pass_all 6430 ;; 6431 6432beos*) 6433 lt_cv_deplibs_check_method=pass_all 6434 ;; 6435 6436bsdi[45]*) 6437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6438 lt_cv_file_magic_cmd='/usr/bin/file -L' 6439 lt_cv_file_magic_test_file=/shlib/libc.so 6440 ;; 6441 6442cygwin*) 6443 # func_win32_libid is a shell function defined in ltmain.sh 6444 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6445 lt_cv_file_magic_cmd='func_win32_libid' 6446 ;; 6447 6448mingw* | pw32*) 6449 # Base MSYS/MinGW do not provide the 'file' command needed by 6450 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6451 # unless we find 'file', for example because we are cross-compiling. 6452 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6453 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6455 lt_cv_file_magic_cmd='func_win32_libid' 6456 else 6457 # Keep this pattern in sync with the one in func_win32_libid. 6458 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6459 lt_cv_file_magic_cmd='$OBJDUMP -f' 6460 fi 6461 ;; 6462 6463cegcc*) 6464 # use the weaker test based on 'objdump'. See mingw*. 6465 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6466 lt_cv_file_magic_cmd='$OBJDUMP -f' 6467 ;; 6468 6469darwin* | rhapsody*) 6470 lt_cv_deplibs_check_method=pass_all 6471 ;; 6472 6473freebsd* | dragonfly*) 6474 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6475 case $host_cpu in 6476 i*86 ) 6477 # Not sure whether the presence of OpenBSD here was a mistake. 6478 # Let's accept both of them until this is cleared up. 6479 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6480 lt_cv_file_magic_cmd=/usr/bin/file 6481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6482 ;; 6483 esac 6484 else 6485 lt_cv_deplibs_check_method=pass_all 6486 fi 6487 ;; 6488 6489gnu*) 6490 lt_cv_deplibs_check_method=pass_all 6491 ;; 6492 6493haiku*) 6494 lt_cv_deplibs_check_method=pass_all 6495 ;; 6496 6497hpux10.20* | hpux11*) 6498 lt_cv_file_magic_cmd=/usr/bin/file 6499 case $host_cpu in 6500 ia64*) 6501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6502 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6503 ;; 6504 hppa*64*) 6505 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]' 6506 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6507 ;; 6508 *) 6509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6510 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6511 ;; 6512 esac 6513 ;; 6514 6515interix[3-9]*) 6516 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6518 ;; 6519 6520irix5* | irix6* | nonstopux*) 6521 case $LD in 6522 *-32|*"-32 ") libmagic=32-bit;; 6523 *-n32|*"-n32 ") libmagic=N32;; 6524 *-64|*"-64 ") libmagic=64-bit;; 6525 *) libmagic=never-match;; 6526 esac 6527 lt_cv_deplibs_check_method=pass_all 6528 ;; 6529 6530# This must be glibc/ELF. 6531linux* | k*bsd*-gnu | kopensolaris*-gnu) 6532 lt_cv_deplibs_check_method=pass_all 6533 ;; 6534 6535netbsd*) 6536 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6538 else 6539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6540 fi 6541 ;; 6542 6543newos6*) 6544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6545 lt_cv_file_magic_cmd=/usr/bin/file 6546 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6547 ;; 6548 6549*nto* | *qnx*) 6550 lt_cv_deplibs_check_method=pass_all 6551 ;; 6552 6553openbsd*) 6554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6556 else 6557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6558 fi 6559 ;; 6560 6561osf3* | osf4* | osf5*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564 6565rdos*) 6566 lt_cv_deplibs_check_method=pass_all 6567 ;; 6568 6569solaris*) 6570 lt_cv_deplibs_check_method=pass_all 6571 ;; 6572 6573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6574 lt_cv_deplibs_check_method=pass_all 6575 ;; 6576 6577sysv4 | sysv4.3*) 6578 case $host_vendor in 6579 motorola) 6580 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]' 6581 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6582 ;; 6583 ncr) 6584 lt_cv_deplibs_check_method=pass_all 6585 ;; 6586 sequent) 6587 lt_cv_file_magic_cmd='/bin/file' 6588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6589 ;; 6590 sni) 6591 lt_cv_file_magic_cmd='/bin/file' 6592 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6593 lt_cv_file_magic_test_file=/lib/libc.so 6594 ;; 6595 siemens) 6596 lt_cv_deplibs_check_method=pass_all 6597 ;; 6598 pc) 6599 lt_cv_deplibs_check_method=pass_all 6600 ;; 6601 esac 6602 ;; 6603 6604tpf*) 6605 lt_cv_deplibs_check_method=pass_all 6606 ;; 6607esac 6608 6609fi 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6611$as_echo "$lt_cv_deplibs_check_method" >&6; } 6612 6613file_magic_glob= 6614want_nocaseglob=no 6615if test "$build" = "$host"; then 6616 case $host_os in 6617 mingw* | pw32*) 6618 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6619 want_nocaseglob=yes 6620 else 6621 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6622 fi 6623 ;; 6624 esac 6625fi 6626 6627file_magic_cmd=$lt_cv_file_magic_cmd 6628deplibs_check_method=$lt_cv_deplibs_check_method 6629test -z "$deplibs_check_method" && deplibs_check_method=unknown 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_DLLTOOL+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$DLLTOOL"; then 6661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680DLLTOOL=$ac_cv_prog_DLLTOOL 6681if test -n "$DLLTOOL"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6683$as_echo "$DLLTOOL" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_DLLTOOL"; then 6692 ac_ct_DLLTOOL=$DLLTOOL 6693 # Extract the first word of "dlltool", so it can be a program name with args. 6694set dummy dlltool; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_DLLTOOL"; then 6701 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6710 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6721if test -n "$ac_ct_DLLTOOL"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6723$as_echo "$ac_ct_DLLTOOL" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_DLLTOOL" = x; then 6730 DLLTOOL="false" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 DLLTOOL=$ac_ct_DLLTOOL 6739 fi 6740else 6741 DLLTOOL="$ac_cv_prog_DLLTOOL" 6742fi 6743 6744test -z "$DLLTOOL" && DLLTOOL=dlltool 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6756$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6757if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 lt_cv_sharedlib_from_linklib_cmd='unknown' 6761 6762case $host_os in 6763cygwin* | mingw* | pw32* | cegcc*) 6764 # two different shell functions defined in ltmain.sh 6765 # decide which to use based on capabilities of $DLLTOOL 6766 case `$DLLTOOL --help 2>&1` in 6767 *--identify-strict*) 6768 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6769 ;; 6770 *) 6771 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6772 ;; 6773 esac 6774 ;; 6775*) 6776 # fallback: assume linklib IS sharedlib 6777 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6778 ;; 6779esac 6780 6781fi 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6783$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6784sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6785test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6786 6787 6788 6789 6790 6791 6792 6793if test -n "$ac_tool_prefix"; then 6794 for ac_prog in ar 6795 do 6796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6797set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6799$as_echo_n "checking for $ac_word... " >&6; } 6800if ${ac_cv_prog_AR+:} false; then : 6801 $as_echo_n "(cached) " >&6 6802else 6803 if test -n "$AR"; then 6804 ac_cv_prog_AR="$AR" # Let the user override the test. 6805else 6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6807for as_dir in $PATH 6808do 6809 IFS=$as_save_IFS 6810 test -z "$as_dir" && as_dir=. 6811 for ac_exec_ext in '' $ac_executable_extensions; do 6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6813 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6815 break 2 6816 fi 6817done 6818 done 6819IFS=$as_save_IFS 6820 6821fi 6822fi 6823AR=$ac_cv_prog_AR 6824if test -n "$AR"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6826$as_echo "$AR" >&6; } 6827else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829$as_echo "no" >&6; } 6830fi 6831 6832 6833 test -n "$AR" && break 6834 done 6835fi 6836if test -z "$AR"; then 6837 ac_ct_AR=$AR 6838 for ac_prog in ar 6839do 6840 # Extract the first word of "$ac_prog", so it can be a program name with args. 6841set dummy $ac_prog; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if ${ac_cv_prog_ac_ct_AR+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$ac_ct_AR"; then 6848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_prog_ac_ct_AR="$ac_prog" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867ac_ct_AR=$ac_cv_prog_ac_ct_AR 6868if test -n "$ac_ct_AR"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6870$as_echo "$ac_ct_AR" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 6877 test -n "$ac_ct_AR" && break 6878done 6879 6880 if test "x$ac_ct_AR" = x; then 6881 AR="false" 6882 else 6883 case $cross_compiling:$ac_tool_warned in 6884yes:) 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6887ac_tool_warned=yes ;; 6888esac 6889 AR=$ac_ct_AR 6890 fi 6891fi 6892 6893: ${AR=ar} 6894: ${AR_FLAGS=cru} 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6907$as_echo_n "checking for archiver @FILE support... " >&6; } 6908if ${lt_cv_ar_at_file+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 lt_cv_ar_at_file=no 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914 6915int 6916main () 6917{ 6918 6919 ; 6920 return 0; 6921} 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO"; then : 6924 echo conftest.$ac_objext > conftest.lst 6925 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6927 (eval $lt_ar_try) 2>&5 6928 ac_status=$? 6929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6930 test $ac_status = 0; } 6931 if test "$ac_status" -eq 0; then 6932 # Ensure the archiver fails upon bogus file names. 6933 rm -f conftest.$ac_objext libconftest.a 6934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6935 (eval $lt_ar_try) 2>&5 6936 ac_status=$? 6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6938 test $ac_status = 0; } 6939 if test "$ac_status" -ne 0; then 6940 lt_cv_ar_at_file=@ 6941 fi 6942 fi 6943 rm -f conftest.* libconftest.a 6944 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6950$as_echo "$lt_cv_ar_at_file" >&6; } 6951 6952if test "x$lt_cv_ar_at_file" = xno; then 6953 archiver_list_spec= 6954else 6955 archiver_list_spec=$lt_cv_ar_at_file 6956fi 6957 6958 6959 6960 6961 6962 6963 6964if test -n "$ac_tool_prefix"; then 6965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6966set dummy ${ac_tool_prefix}strip; ac_word=$2 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968$as_echo_n "checking for $ac_word... " >&6; } 6969if ${ac_cv_prog_STRIP+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 if test -n "$STRIP"; then 6973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6974else 6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976for as_dir in $PATH 6977do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6982 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986done 6987 done 6988IFS=$as_save_IFS 6989 6990fi 6991fi 6992STRIP=$ac_cv_prog_STRIP 6993if test -n "$STRIP"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6995$as_echo "$STRIP" >&6; } 6996else 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6998$as_echo "no" >&6; } 6999fi 7000 7001 7002fi 7003if test -z "$ac_cv_prog_STRIP"; then 7004 ac_ct_STRIP=$STRIP 7005 # Extract the first word of "strip", so it can be a program name with args. 7006set dummy strip; ac_word=$2 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7008$as_echo_n "checking for $ac_word... " >&6; } 7009if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 if test -n "$ac_ct_STRIP"; then 7013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7014else 7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016for as_dir in $PATH 7017do 7018 IFS=$as_save_IFS 7019 test -z "$as_dir" && as_dir=. 7020 for ac_exec_ext in '' $ac_executable_extensions; do 7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7022 ac_cv_prog_ac_ct_STRIP="strip" 7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7024 break 2 7025 fi 7026done 7027 done 7028IFS=$as_save_IFS 7029 7030fi 7031fi 7032ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7033if test -n "$ac_ct_STRIP"; then 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7035$as_echo "$ac_ct_STRIP" >&6; } 7036else 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038$as_echo "no" >&6; } 7039fi 7040 7041 if test "x$ac_ct_STRIP" = x; then 7042 STRIP=":" 7043 else 7044 case $cross_compiling:$ac_tool_warned in 7045yes:) 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7048ac_tool_warned=yes ;; 7049esac 7050 STRIP=$ac_ct_STRIP 7051 fi 7052else 7053 STRIP="$ac_cv_prog_STRIP" 7054fi 7055 7056test -z "$STRIP" && STRIP=: 7057 7058 7059 7060 7061 7062 7063if test -n "$ac_tool_prefix"; then 7064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7065set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067$as_echo_n "checking for $ac_word... " >&6; } 7068if ${ac_cv_prog_RANLIB+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 if test -n "$RANLIB"; then 7072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7073else 7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7075for as_dir in $PATH 7076do 7077 IFS=$as_save_IFS 7078 test -z "$as_dir" && as_dir=. 7079 for ac_exec_ext in '' $ac_executable_extensions; do 7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7083 break 2 7084 fi 7085done 7086 done 7087IFS=$as_save_IFS 7088 7089fi 7090fi 7091RANLIB=$ac_cv_prog_RANLIB 7092if test -n "$RANLIB"; then 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7094$as_echo "$RANLIB" >&6; } 7095else 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7097$as_echo "no" >&6; } 7098fi 7099 7100 7101fi 7102if test -z "$ac_cv_prog_RANLIB"; then 7103 ac_ct_RANLIB=$RANLIB 7104 # Extract the first word of "ranlib", so it can be a program name with args. 7105set dummy ranlib; ac_word=$2 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7107$as_echo_n "checking for $ac_word... " >&6; } 7108if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 if test -n "$ac_ct_RANLIB"; then 7112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7113else 7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7115for as_dir in $PATH 7116do 7117 IFS=$as_save_IFS 7118 test -z "$as_dir" && as_dir=. 7119 for ac_exec_ext in '' $ac_executable_extensions; do 7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7121 ac_cv_prog_ac_ct_RANLIB="ranlib" 7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7123 break 2 7124 fi 7125done 7126 done 7127IFS=$as_save_IFS 7128 7129fi 7130fi 7131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7132if test -n "$ac_ct_RANLIB"; then 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7134$as_echo "$ac_ct_RANLIB" >&6; } 7135else 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7137$as_echo "no" >&6; } 7138fi 7139 7140 if test "x$ac_ct_RANLIB" = x; then 7141 RANLIB=":" 7142 else 7143 case $cross_compiling:$ac_tool_warned in 7144yes:) 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7147ac_tool_warned=yes ;; 7148esac 7149 RANLIB=$ac_ct_RANLIB 7150 fi 7151else 7152 RANLIB="$ac_cv_prog_RANLIB" 7153fi 7154 7155test -z "$RANLIB" && RANLIB=: 7156 7157 7158 7159 7160 7161 7162# Determine commands to create old-style static archives. 7163old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7164old_postinstall_cmds='chmod 644 $oldlib' 7165old_postuninstall_cmds= 7166 7167if test -n "$RANLIB"; then 7168 case $host_os in 7169 openbsd*) 7170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7171 ;; 7172 *) 7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7174 ;; 7175 esac 7176 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7177fi 7178 7179case $host_os in 7180 darwin*) 7181 lock_old_archive_extraction=yes ;; 7182 *) 7183 lock_old_archive_extraction=no ;; 7184esac 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224# If no C compiler was specified, use CC. 7225LTCC=${LTCC-"$CC"} 7226 7227# If no C compiler flags were specified, use CFLAGS. 7228LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7229 7230# Allow CC to be a program name with arguments. 7231compiler=$CC 7232 7233 7234# Check for command to grab the raw symbol name followed by C symbol from nm. 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7236$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7237if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 7241# These are sane defaults that work on at least a few old systems. 7242# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7243 7244# Character class describing NM global symbol codes. 7245symcode='[BCDEGRST]' 7246 7247# Regexp to match symbols that can be accessed directly from C. 7248sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7249 7250# Define system-specific variables. 7251case $host_os in 7252aix*) 7253 symcode='[BCDT]' 7254 ;; 7255cygwin* | mingw* | pw32* | cegcc*) 7256 symcode='[ABCDGISTW]' 7257 ;; 7258hpux*) 7259 if test "$host_cpu" = ia64; then 7260 symcode='[ABCDEGRST]' 7261 fi 7262 ;; 7263irix* | nonstopux*) 7264 symcode='[BCDEGRST]' 7265 ;; 7266osf*) 7267 symcode='[BCDEGQRST]' 7268 ;; 7269solaris*) 7270 symcode='[BDRT]' 7271 ;; 7272sco3.2v5*) 7273 symcode='[DT]' 7274 ;; 7275sysv4.2uw2*) 7276 symcode='[DT]' 7277 ;; 7278sysv5* | sco5v6* | unixware* | OpenUNIX*) 7279 symcode='[ABDT]' 7280 ;; 7281sysv4) 7282 symcode='[DFNSTU]' 7283 ;; 7284esac 7285 7286# If we're using GNU nm, then use its standard symbol codes. 7287case `$NM -V 2>&1` in 7288*GNU* | *'with BFD'*) 7289 symcode='[ABCDGIRSTW]' ;; 7290esac 7291 7292# Transform an extracted symbol line into a proper C declaration. 7293# Some systems (esp. on ia64) link data and code symbols differently, 7294# so use this general approach. 7295lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7296 7297# Transform an extracted symbol line into symbol name and symbol address 7298lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7299lt_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'" 7300 7301# Handle CRLF in mingw tool chain 7302opt_cr= 7303case $build_os in 7304mingw*) 7305 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7306 ;; 7307esac 7308 7309# Try without a prefix underscore, then with it. 7310for ac_symprfx in "" "_"; do 7311 7312 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7313 symxfrm="\\1 $ac_symprfx\\2 \\2" 7314 7315 # Write the raw and C identifiers. 7316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7317 # Fake it for dumpbin and say T for any non-static function 7318 # and D for any global variable. 7319 # Also find C++ and __fastcall symbols from MSVC++, 7320 # which start with @ or ?. 7321 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7322" {last_section=section; section=\$ 3};"\ 7323" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7324" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7325" \$ 0!~/External *\|/{next};"\ 7326" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7327" {if(hide[section]) next};"\ 7328" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7329" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7330" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7331" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7332" ' prfx=^$ac_symprfx" 7333 else 7334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7335 fi 7336 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7337 7338 # Check to see that the pipe works correctly. 7339 pipe_works=no 7340 7341 rm -f conftest* 7342 cat > conftest.$ac_ext <<_LT_EOF 7343#ifdef __cplusplus 7344extern "C" { 7345#endif 7346char nm_test_var; 7347void nm_test_func(void); 7348void nm_test_func(void){} 7349#ifdef __cplusplus 7350} 7351#endif 7352int main(){nm_test_var='a';nm_test_func();return(0);} 7353_LT_EOF 7354 7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7356 (eval $ac_compile) 2>&5 7357 ac_status=$? 7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7359 test $ac_status = 0; }; then 7360 # Now try to grab the symbols. 7361 nlist=conftest.nm 7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7363 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7364 ac_status=$? 7365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7366 test $ac_status = 0; } && test -s "$nlist"; then 7367 # Try sorting and uniquifying the output. 7368 if sort "$nlist" | uniq > "$nlist"T; then 7369 mv -f "$nlist"T "$nlist" 7370 else 7371 rm -f "$nlist"T 7372 fi 7373 7374 # Make sure that we snagged all the symbols we need. 7375 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7376 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7377 cat <<_LT_EOF > conftest.$ac_ext 7378/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7379#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7380/* DATA imports from DLLs on WIN32 con't be const, because runtime 7381 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7382# define LT_DLSYM_CONST 7383#elif defined(__osf__) 7384/* This system does not cope well with relocations in const data. */ 7385# define LT_DLSYM_CONST 7386#else 7387# define LT_DLSYM_CONST const 7388#endif 7389 7390#ifdef __cplusplus 7391extern "C" { 7392#endif 7393 7394_LT_EOF 7395 # Now generate the symbol file. 7396 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7397 7398 cat <<_LT_EOF >> conftest.$ac_ext 7399 7400/* The mapping between symbol names and symbols. */ 7401LT_DLSYM_CONST struct { 7402 const char *name; 7403 void *address; 7404} 7405lt__PROGRAM__LTX_preloaded_symbols[] = 7406{ 7407 { "@PROGRAM@", (void *) 0 }, 7408_LT_EOF 7409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7410 cat <<\_LT_EOF >> conftest.$ac_ext 7411 {0, (void *) 0} 7412}; 7413 7414/* This works around a problem in FreeBSD linker */ 7415#ifdef FREEBSD_WORKAROUND 7416static const void *lt_preloaded_setup() { 7417 return lt__PROGRAM__LTX_preloaded_symbols; 7418} 7419#endif 7420 7421#ifdef __cplusplus 7422} 7423#endif 7424_LT_EOF 7425 # Now try linking the two files. 7426 mv conftest.$ac_objext conftstm.$ac_objext 7427 lt_globsym_save_LIBS=$LIBS 7428 lt_globsym_save_CFLAGS=$CFLAGS 7429 LIBS="conftstm.$ac_objext" 7430 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7432 (eval $ac_link) 2>&5 7433 ac_status=$? 7434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7435 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7436 pipe_works=yes 7437 fi 7438 LIBS=$lt_globsym_save_LIBS 7439 CFLAGS=$lt_globsym_save_CFLAGS 7440 else 7441 echo "cannot find nm_test_func in $nlist" >&5 7442 fi 7443 else 7444 echo "cannot find nm_test_var in $nlist" >&5 7445 fi 7446 else 7447 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7448 fi 7449 else 7450 echo "$progname: failed program was:" >&5 7451 cat conftest.$ac_ext >&5 7452 fi 7453 rm -rf conftest* conftst* 7454 7455 # Do not use the global_symbol_pipe unless it works. 7456 if test "$pipe_works" = yes; then 7457 break 7458 else 7459 lt_cv_sys_global_symbol_pipe= 7460 fi 7461done 7462 7463fi 7464 7465if test -z "$lt_cv_sys_global_symbol_pipe"; then 7466 lt_cv_sys_global_symbol_to_cdecl= 7467fi 7468if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7470$as_echo "failed" >&6; } 7471else 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7473$as_echo "ok" >&6; } 7474fi 7475 7476# Response file support. 7477if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7478 nm_file_list_spec='@' 7479elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7480 nm_file_list_spec='@' 7481fi 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7510$as_echo_n "checking for sysroot... " >&6; } 7511 7512# Check whether --with-sysroot was given. 7513if test "${with_sysroot+set}" = set; then : 7514 withval=$with_sysroot; 7515else 7516 with_sysroot=no 7517fi 7518 7519 7520lt_sysroot= 7521case ${with_sysroot} in #( 7522 yes) 7523 if test "$GCC" = yes; then 7524 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7525 fi 7526 ;; #( 7527 /*) 7528 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7529 ;; #( 7530 no|'') 7531 ;; #( 7532 *) 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7534$as_echo "${with_sysroot}" >&6; } 7535 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7536 ;; 7537esac 7538 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7540$as_echo "${lt_sysroot:-no}" >&6; } 7541 7542 7543 7544 7545 7546# Check whether --enable-libtool-lock was given. 7547if test "${enable_libtool_lock+set}" = set; then : 7548 enableval=$enable_libtool_lock; 7549fi 7550 7551test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7552 7553# Some flags need to be propagated to the compiler or linker for good 7554# libtool support. 7555case $host in 7556ia64-*-hpux*) 7557 # Find out which ABI we are using. 7558 echo 'int i;' > conftest.$ac_ext 7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7560 (eval $ac_compile) 2>&5 7561 ac_status=$? 7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7563 test $ac_status = 0; }; then 7564 case `/usr/bin/file conftest.$ac_objext` in 7565 *ELF-32*) 7566 HPUX_IA64_MODE="32" 7567 ;; 7568 *ELF-64*) 7569 HPUX_IA64_MODE="64" 7570 ;; 7571 esac 7572 fi 7573 rm -rf conftest* 7574 ;; 7575*-*-irix6*) 7576 # Find out which ABI we are using. 7577 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7579 (eval $ac_compile) 2>&5 7580 ac_status=$? 7581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7582 test $ac_status = 0; }; then 7583 if test "$lt_cv_prog_gnu_ld" = yes; then 7584 case `/usr/bin/file conftest.$ac_objext` in 7585 *32-bit*) 7586 LD="${LD-ld} -melf32bsmip" 7587 ;; 7588 *N32*) 7589 LD="${LD-ld} -melf32bmipn32" 7590 ;; 7591 *64-bit*) 7592 LD="${LD-ld} -melf64bmip" 7593 ;; 7594 esac 7595 else 7596 case `/usr/bin/file conftest.$ac_objext` in 7597 *32-bit*) 7598 LD="${LD-ld} -32" 7599 ;; 7600 *N32*) 7601 LD="${LD-ld} -n32" 7602 ;; 7603 *64-bit*) 7604 LD="${LD-ld} -64" 7605 ;; 7606 esac 7607 fi 7608 fi 7609 rm -rf conftest* 7610 ;; 7611 7612x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7613s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7614 # Find out which ABI we are using. 7615 echo 'int i;' > conftest.$ac_ext 7616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7617 (eval $ac_compile) 2>&5 7618 ac_status=$? 7619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7620 test $ac_status = 0; }; then 7621 case `/usr/bin/file conftest.o` in 7622 *32-bit*) 7623 case $host in 7624 x86_64-*kfreebsd*-gnu) 7625 LD="${LD-ld} -m elf_i386_fbsd" 7626 ;; 7627 x86_64-*linux*) 7628 LD="${LD-ld} -m elf_i386" 7629 ;; 7630 ppc64-*linux*|powerpc64-*linux*) 7631 LD="${LD-ld} -m elf32ppclinux" 7632 ;; 7633 s390x-*linux*) 7634 LD="${LD-ld} -m elf_s390" 7635 ;; 7636 sparc64-*linux*) 7637 LD="${LD-ld} -m elf32_sparc" 7638 ;; 7639 esac 7640 ;; 7641 *64-bit*) 7642 case $host in 7643 x86_64-*kfreebsd*-gnu) 7644 LD="${LD-ld} -m elf_x86_64_fbsd" 7645 ;; 7646 x86_64-*linux*) 7647 LD="${LD-ld} -m elf_x86_64" 7648 ;; 7649 ppc*-*linux*|powerpc*-*linux*) 7650 LD="${LD-ld} -m elf64ppc" 7651 ;; 7652 s390*-*linux*|s390*-*tpf*) 7653 LD="${LD-ld} -m elf64_s390" 7654 ;; 7655 sparc*-*linux*) 7656 LD="${LD-ld} -m elf64_sparc" 7657 ;; 7658 esac 7659 ;; 7660 esac 7661 fi 7662 rm -rf conftest* 7663 ;; 7664 7665*-*-sco3.2v5*) 7666 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7667 SAVE_CFLAGS="$CFLAGS" 7668 CFLAGS="$CFLAGS -belf" 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7670$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7671if ${lt_cv_cc_needs_belf+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 ac_ext=c 7675ac_cpp='$CPP $CPPFLAGS' 7676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7678ac_compiler_gnu=$ac_cv_c_compiler_gnu 7679 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682 7683int 7684main () 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_link "$LINENO"; then : 7692 lt_cv_cc_needs_belf=yes 7693else 7694 lt_cv_cc_needs_belf=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext \ 7697 conftest$ac_exeext conftest.$ac_ext 7698 ac_ext=c 7699ac_cpp='$CPP $CPPFLAGS' 7700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7702ac_compiler_gnu=$ac_cv_c_compiler_gnu 7703 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7706$as_echo "$lt_cv_cc_needs_belf" >&6; } 7707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7709 CFLAGS="$SAVE_CFLAGS" 7710 fi 7711 ;; 7712*-*solaris*) 7713 # Find out which ABI we are using. 7714 echo 'int i;' > conftest.$ac_ext 7715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7716 (eval $ac_compile) 2>&5 7717 ac_status=$? 7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7719 test $ac_status = 0; }; then 7720 case `/usr/bin/file conftest.o` in 7721 *64-bit*) 7722 case $lt_cv_prog_gnu_ld in 7723 yes*) 7724 case $host in 7725 i?86-*-solaris*) 7726 LD="${LD-ld} -m elf_x86_64" 7727 ;; 7728 sparc*-*-solaris*) 7729 LD="${LD-ld} -m elf64_sparc" 7730 ;; 7731 esac 7732 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7733 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7734 LD="${LD-ld}_sol2" 7735 fi 7736 ;; 7737 *) 7738 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7739 LD="${LD-ld} -64" 7740 fi 7741 ;; 7742 esac 7743 ;; 7744 esac 7745 fi 7746 rm -rf conftest* 7747 ;; 7748esac 7749 7750need_locks="$enable_libtool_lock" 7751 7752if test -n "$ac_tool_prefix"; then 7753 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7754set dummy ${ac_tool_prefix}mt; ac_word=$2 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7756$as_echo_n "checking for $ac_word... " >&6; } 7757if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 if test -n "$MANIFEST_TOOL"; then 7761 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7762else 7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764for as_dir in $PATH 7765do 7766 IFS=$as_save_IFS 7767 test -z "$as_dir" && as_dir=. 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7770 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774done 7775 done 7776IFS=$as_save_IFS 7777 7778fi 7779fi 7780MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7781if test -n "$MANIFEST_TOOL"; then 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7783$as_echo "$MANIFEST_TOOL" >&6; } 7784else 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7786$as_echo "no" >&6; } 7787fi 7788 7789 7790fi 7791if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7792 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7793 # Extract the first word of "mt", so it can be a program name with args. 7794set dummy mt; ac_word=$2 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7796$as_echo_n "checking for $ac_word... " >&6; } 7797if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 if test -n "$ac_ct_MANIFEST_TOOL"; then 7801 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7802else 7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7804for as_dir in $PATH 7805do 7806 IFS=$as_save_IFS 7807 test -z "$as_dir" && as_dir=. 7808 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7810 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7812 break 2 7813 fi 7814done 7815 done 7816IFS=$as_save_IFS 7817 7818fi 7819fi 7820ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7821if test -n "$ac_ct_MANIFEST_TOOL"; then 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7823$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7824else 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7826$as_echo "no" >&6; } 7827fi 7828 7829 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7830 MANIFEST_TOOL=":" 7831 else 7832 case $cross_compiling:$ac_tool_warned in 7833yes:) 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7836ac_tool_warned=yes ;; 7837esac 7838 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7839 fi 7840else 7841 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7842fi 7843 7844test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7846$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7847if ${lt_cv_path_mainfest_tool+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849else 7850 lt_cv_path_mainfest_tool=no 7851 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7852 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7853 cat conftest.err >&5 7854 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7855 lt_cv_path_mainfest_tool=yes 7856 fi 7857 rm -f conftest* 7858fi 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7860$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7861if test "x$lt_cv_path_mainfest_tool" != xyes; then 7862 MANIFEST_TOOL=: 7863fi 7864 7865 7866 7867 7868 7869 7870 case $host_os in 7871 rhapsody* | darwin*) 7872 if test -n "$ac_tool_prefix"; then 7873 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7874set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7876$as_echo_n "checking for $ac_word... " >&6; } 7877if ${ac_cv_prog_DSYMUTIL+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 if test -n "$DSYMUTIL"; then 7881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 test -z "$as_dir" && as_dir=. 7888 for ac_exec_ext in '' $ac_executable_extensions; do 7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7890 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7892 break 2 7893 fi 7894done 7895 done 7896IFS=$as_save_IFS 7897 7898fi 7899fi 7900DSYMUTIL=$ac_cv_prog_DSYMUTIL 7901if test -n "$DSYMUTIL"; then 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7903$as_echo "$DSYMUTIL" >&6; } 7904else 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7906$as_echo "no" >&6; } 7907fi 7908 7909 7910fi 7911if test -z "$ac_cv_prog_DSYMUTIL"; then 7912 ac_ct_DSYMUTIL=$DSYMUTIL 7913 # Extract the first word of "dsymutil", so it can be a program name with args. 7914set dummy dsymutil; ac_word=$2 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7916$as_echo_n "checking for $ac_word... " >&6; } 7917if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7918 $as_echo_n "(cached) " >&6 7919else 7920 if test -n "$ac_ct_DSYMUTIL"; then 7921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7922else 7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7924for as_dir in $PATH 7925do 7926 IFS=$as_save_IFS 7927 test -z "$as_dir" && as_dir=. 7928 for ac_exec_ext in '' $ac_executable_extensions; do 7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7930 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7932 break 2 7933 fi 7934done 7935 done 7936IFS=$as_save_IFS 7937 7938fi 7939fi 7940ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7941if test -n "$ac_ct_DSYMUTIL"; then 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7943$as_echo "$ac_ct_DSYMUTIL" >&6; } 7944else 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7946$as_echo "no" >&6; } 7947fi 7948 7949 if test "x$ac_ct_DSYMUTIL" = x; then 7950 DSYMUTIL=":" 7951 else 7952 case $cross_compiling:$ac_tool_warned in 7953yes:) 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7956ac_tool_warned=yes ;; 7957esac 7958 DSYMUTIL=$ac_ct_DSYMUTIL 7959 fi 7960else 7961 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7962fi 7963 7964 if test -n "$ac_tool_prefix"; then 7965 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7966set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968$as_echo_n "checking for $ac_word... " >&6; } 7969if ${ac_cv_prog_NMEDIT+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 if test -n "$NMEDIT"; then 7973 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7974else 7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7976for as_dir in $PATH 7977do 7978 IFS=$as_save_IFS 7979 test -z "$as_dir" && as_dir=. 7980 for ac_exec_ext in '' $ac_executable_extensions; do 7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7984 break 2 7985 fi 7986done 7987 done 7988IFS=$as_save_IFS 7989 7990fi 7991fi 7992NMEDIT=$ac_cv_prog_NMEDIT 7993if test -n "$NMEDIT"; then 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7995$as_echo "$NMEDIT" >&6; } 7996else 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7998$as_echo "no" >&6; } 7999fi 8000 8001 8002fi 8003if test -z "$ac_cv_prog_NMEDIT"; then 8004 ac_ct_NMEDIT=$NMEDIT 8005 # Extract the first word of "nmedit", so it can be a program name with args. 8006set dummy nmedit; ac_word=$2 8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8008$as_echo_n "checking for $ac_word... " >&6; } 8009if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011else 8012 if test -n "$ac_ct_NMEDIT"; then 8013 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8014else 8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8016for as_dir in $PATH 8017do 8018 IFS=$as_save_IFS 8019 test -z "$as_dir" && as_dir=. 8020 for ac_exec_ext in '' $ac_executable_extensions; do 8021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8022 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8024 break 2 8025 fi 8026done 8027 done 8028IFS=$as_save_IFS 8029 8030fi 8031fi 8032ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8033if test -n "$ac_ct_NMEDIT"; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8035$as_echo "$ac_ct_NMEDIT" >&6; } 8036else 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8038$as_echo "no" >&6; } 8039fi 8040 8041 if test "x$ac_ct_NMEDIT" = x; then 8042 NMEDIT=":" 8043 else 8044 case $cross_compiling:$ac_tool_warned in 8045yes:) 8046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8048ac_tool_warned=yes ;; 8049esac 8050 NMEDIT=$ac_ct_NMEDIT 8051 fi 8052else 8053 NMEDIT="$ac_cv_prog_NMEDIT" 8054fi 8055 8056 if test -n "$ac_tool_prefix"; then 8057 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8058set dummy ${ac_tool_prefix}lipo; ac_word=$2 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8060$as_echo_n "checking for $ac_word... " >&6; } 8061if ${ac_cv_prog_LIPO+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 if test -n "$LIPO"; then 8065 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8066else 8067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8068for as_dir in $PATH 8069do 8070 IFS=$as_save_IFS 8071 test -z "$as_dir" && as_dir=. 8072 for ac_exec_ext in '' $ac_executable_extensions; do 8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8074 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8076 break 2 8077 fi 8078done 8079 done 8080IFS=$as_save_IFS 8081 8082fi 8083fi 8084LIPO=$ac_cv_prog_LIPO 8085if test -n "$LIPO"; then 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8087$as_echo "$LIPO" >&6; } 8088else 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8090$as_echo "no" >&6; } 8091fi 8092 8093 8094fi 8095if test -z "$ac_cv_prog_LIPO"; then 8096 ac_ct_LIPO=$LIPO 8097 # Extract the first word of "lipo", so it can be a program name with args. 8098set dummy lipo; ac_word=$2 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8100$as_echo_n "checking for $ac_word... " >&6; } 8101if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 if test -n "$ac_ct_LIPO"; then 8105 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8106else 8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8108for as_dir in $PATH 8109do 8110 IFS=$as_save_IFS 8111 test -z "$as_dir" && as_dir=. 8112 for ac_exec_ext in '' $ac_executable_extensions; do 8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8114 ac_cv_prog_ac_ct_LIPO="lipo" 8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8116 break 2 8117 fi 8118done 8119 done 8120IFS=$as_save_IFS 8121 8122fi 8123fi 8124ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8125if test -n "$ac_ct_LIPO"; then 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8127$as_echo "$ac_ct_LIPO" >&6; } 8128else 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8130$as_echo "no" >&6; } 8131fi 8132 8133 if test "x$ac_ct_LIPO" = x; then 8134 LIPO=":" 8135 else 8136 case $cross_compiling:$ac_tool_warned in 8137yes:) 8138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8140ac_tool_warned=yes ;; 8141esac 8142 LIPO=$ac_ct_LIPO 8143 fi 8144else 8145 LIPO="$ac_cv_prog_LIPO" 8146fi 8147 8148 if test -n "$ac_tool_prefix"; then 8149 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8150set dummy ${ac_tool_prefix}otool; ac_word=$2 8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8152$as_echo_n "checking for $ac_word... " >&6; } 8153if ${ac_cv_prog_OTOOL+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 if test -n "$OTOOL"; then 8157 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8158else 8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8160for as_dir in $PATH 8161do 8162 IFS=$as_save_IFS 8163 test -z "$as_dir" && as_dir=. 8164 for ac_exec_ext in '' $ac_executable_extensions; do 8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8166 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8168 break 2 8169 fi 8170done 8171 done 8172IFS=$as_save_IFS 8173 8174fi 8175fi 8176OTOOL=$ac_cv_prog_OTOOL 8177if test -n "$OTOOL"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8179$as_echo "$OTOOL" >&6; } 8180else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182$as_echo "no" >&6; } 8183fi 8184 8185 8186fi 8187if test -z "$ac_cv_prog_OTOOL"; then 8188 ac_ct_OTOOL=$OTOOL 8189 # Extract the first word of "otool", so it can be a program name with args. 8190set dummy otool; ac_word=$2 8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8192$as_echo_n "checking for $ac_word... " >&6; } 8193if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195else 8196 if test -n "$ac_ct_OTOOL"; then 8197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8198else 8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8200for as_dir in $PATH 8201do 8202 IFS=$as_save_IFS 8203 test -z "$as_dir" && as_dir=. 8204 for ac_exec_ext in '' $ac_executable_extensions; do 8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8206 ac_cv_prog_ac_ct_OTOOL="otool" 8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8208 break 2 8209 fi 8210done 8211 done 8212IFS=$as_save_IFS 8213 8214fi 8215fi 8216ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8217if test -n "$ac_ct_OTOOL"; then 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8219$as_echo "$ac_ct_OTOOL" >&6; } 8220else 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222$as_echo "no" >&6; } 8223fi 8224 8225 if test "x$ac_ct_OTOOL" = x; then 8226 OTOOL=":" 8227 else 8228 case $cross_compiling:$ac_tool_warned in 8229yes:) 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8232ac_tool_warned=yes ;; 8233esac 8234 OTOOL=$ac_ct_OTOOL 8235 fi 8236else 8237 OTOOL="$ac_cv_prog_OTOOL" 8238fi 8239 8240 if test -n "$ac_tool_prefix"; then 8241 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8242set dummy ${ac_tool_prefix}otool64; ac_word=$2 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8244$as_echo_n "checking for $ac_word... " >&6; } 8245if ${ac_cv_prog_OTOOL64+:} false; then : 8246 $as_echo_n "(cached) " >&6 8247else 8248 if test -n "$OTOOL64"; then 8249 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8250else 8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8252for as_dir in $PATH 8253do 8254 IFS=$as_save_IFS 8255 test -z "$as_dir" && as_dir=. 8256 for ac_exec_ext in '' $ac_executable_extensions; do 8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8258 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8260 break 2 8261 fi 8262done 8263 done 8264IFS=$as_save_IFS 8265 8266fi 8267fi 8268OTOOL64=$ac_cv_prog_OTOOL64 8269if test -n "$OTOOL64"; then 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8271$as_echo "$OTOOL64" >&6; } 8272else 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8274$as_echo "no" >&6; } 8275fi 8276 8277 8278fi 8279if test -z "$ac_cv_prog_OTOOL64"; then 8280 ac_ct_OTOOL64=$OTOOL64 8281 # Extract the first word of "otool64", so it can be a program name with args. 8282set dummy otool64; ac_word=$2 8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8284$as_echo_n "checking for $ac_word... " >&6; } 8285if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 if test -n "$ac_ct_OTOOL64"; then 8289 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8290else 8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8292for as_dir in $PATH 8293do 8294 IFS=$as_save_IFS 8295 test -z "$as_dir" && as_dir=. 8296 for ac_exec_ext in '' $ac_executable_extensions; do 8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8298 ac_cv_prog_ac_ct_OTOOL64="otool64" 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8300 break 2 8301 fi 8302done 8303 done 8304IFS=$as_save_IFS 8305 8306fi 8307fi 8308ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8309if test -n "$ac_ct_OTOOL64"; then 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8311$as_echo "$ac_ct_OTOOL64" >&6; } 8312else 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8314$as_echo "no" >&6; } 8315fi 8316 8317 if test "x$ac_ct_OTOOL64" = x; then 8318 OTOOL64=":" 8319 else 8320 case $cross_compiling:$ac_tool_warned in 8321yes:) 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8324ac_tool_warned=yes ;; 8325esac 8326 OTOOL64=$ac_ct_OTOOL64 8327 fi 8328else 8329 OTOOL64="$ac_cv_prog_OTOOL64" 8330fi 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8359$as_echo_n "checking for -single_module linker flag... " >&6; } 8360if ${lt_cv_apple_cc_single_mod+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 lt_cv_apple_cc_single_mod=no 8364 if test -z "${LT_MULTI_MODULE}"; then 8365 # By default we will add the -single_module flag. You can override 8366 # by either setting the environment variable LT_MULTI_MODULE 8367 # non-empty at configure time, or by adding -multi_module to the 8368 # link flags. 8369 rm -rf libconftest.dylib* 8370 echo "int foo(void){return 1;}" > conftest.c 8371 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8372-dynamiclib -Wl,-single_module conftest.c" >&5 8373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8374 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8375 _lt_result=$? 8376 # If there is a non-empty error log, and "single_module" 8377 # appears in it, assume the flag caused a linker warning 8378 if test -s conftest.err && $GREP single_module conftest.err; then 8379 cat conftest.err >&5 8380 # Otherwise, if the output was created with a 0 exit code from 8381 # the compiler, it worked. 8382 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8383 lt_cv_apple_cc_single_mod=yes 8384 else 8385 cat conftest.err >&5 8386 fi 8387 rm -rf libconftest.dylib* 8388 rm -f conftest.* 8389 fi 8390fi 8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8392$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8395$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8396if ${lt_cv_ld_exported_symbols_list+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 lt_cv_ld_exported_symbols_list=no 8400 save_LDFLAGS=$LDFLAGS 8401 echo "_main" > conftest.sym 8402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405 8406int 8407main () 8408{ 8409 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_link "$LINENO"; then : 8415 lt_cv_ld_exported_symbols_list=yes 8416else 8417 lt_cv_ld_exported_symbols_list=no 8418fi 8419rm -f core conftest.err conftest.$ac_objext \ 8420 conftest$ac_exeext conftest.$ac_ext 8421 LDFLAGS="$save_LDFLAGS" 8422 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8425$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8426 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8428$as_echo_n "checking for -force_load linker flag... " >&6; } 8429if ${lt_cv_ld_force_load+:} false; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 lt_cv_ld_force_load=no 8433 cat > conftest.c << _LT_EOF 8434int forced_loaded() { return 2;} 8435_LT_EOF 8436 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8437 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8438 echo "$AR cru libconftest.a conftest.o" >&5 8439 $AR cru libconftest.a conftest.o 2>&5 8440 echo "$RANLIB libconftest.a" >&5 8441 $RANLIB libconftest.a 2>&5 8442 cat > conftest.c << _LT_EOF 8443int main() { return 0;} 8444_LT_EOF 8445 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8446 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8447 _lt_result=$? 8448 if test -s conftest.err && $GREP force_load conftest.err; then 8449 cat conftest.err >&5 8450 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8451 lt_cv_ld_force_load=yes 8452 else 8453 cat conftest.err >&5 8454 fi 8455 rm -f conftest.err libconftest.a conftest conftest.c 8456 rm -rf conftest.dSYM 8457 8458fi 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8460$as_echo "$lt_cv_ld_force_load" >&6; } 8461 case $host_os in 8462 rhapsody* | darwin1.[012]) 8463 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8464 darwin1.*) 8465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8466 darwin*) # darwin 5.x on 8467 # if running on 10.5 or later, the deployment target defaults 8468 # to the OS version, if on x86, and 10.4, the deployment 8469 # target defaults to 10.4. Don't you love it? 8470 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8471 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8472 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8473 10.[012]*) 8474 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8475 10.*) 8476 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8477 esac 8478 ;; 8479 esac 8480 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8481 _lt_dar_single_mod='$single_module' 8482 fi 8483 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8484 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8485 else 8486 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8487 fi 8488 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8489 _lt_dsymutil='~$DSYMUTIL $lib || :' 8490 else 8491 _lt_dsymutil= 8492 fi 8493 ;; 8494 esac 8495 8496for ac_header in dlfcn.h 8497do : 8498 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8499" 8500if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8501 cat >>confdefs.h <<_ACEOF 8502#define HAVE_DLFCN_H 1 8503_ACEOF 8504 8505fi 8506 8507done 8508 8509 8510 8511 8512 8513# Set options 8514# Check whether --enable-static was given. 8515if test "${enable_static+set}" = set; then : 8516 enableval=$enable_static; p=${PACKAGE-default} 8517 case $enableval in 8518 yes) enable_static=yes ;; 8519 no) enable_static=no ;; 8520 *) 8521 enable_static=no 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 pkg in $enableval; do 8525 IFS="$lt_save_ifs" 8526 if test "X$pkg" = "X$p"; then 8527 enable_static=yes 8528 fi 8529 done 8530 IFS="$lt_save_ifs" 8531 ;; 8532 esac 8533else 8534 enable_static=no 8535fi 8536 8537 8538 8539 8540 8541 8542 8543 8544# Check whether --with-pic was given. 8545if test "${with_pic+set}" = set; then : 8546 withval=$with_pic; lt_p=${PACKAGE-default} 8547 case $withval in 8548 yes|no) pic_mode=$withval ;; 8549 *) 8550 pic_mode=default 8551 # Look at the argument we got. We use all the common list separators. 8552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8553 for lt_pkg in $withval; do 8554 IFS="$lt_save_ifs" 8555 if test "X$lt_pkg" = "X$lt_p"; then 8556 pic_mode=yes 8557 fi 8558 done 8559 IFS="$lt_save_ifs" 8560 ;; 8561 esac 8562else 8563 pic_mode=default 8564fi 8565 8566 8567test -z "$pic_mode" && pic_mode=yes 8568 8569 8570 8571 8572 8573 8574 8575 8576 enable_dlopen=no 8577 8578 8579 enable_win32_dll=no 8580 8581 8582 # Check whether --enable-shared was given. 8583if test "${enable_shared+set}" = set; then : 8584 enableval=$enable_shared; p=${PACKAGE-default} 8585 case $enableval in 8586 yes) enable_shared=yes ;; 8587 no) enable_shared=no ;; 8588 *) 8589 enable_shared=no 8590 # Look at the argument we got. We use all the common list separators. 8591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8592 for pkg in $enableval; do 8593 IFS="$lt_save_ifs" 8594 if test "X$pkg" = "X$p"; then 8595 enable_shared=yes 8596 fi 8597 done 8598 IFS="$lt_save_ifs" 8599 ;; 8600 esac 8601else 8602 enable_shared=yes 8603fi 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 # Check whether --enable-fast-install was given. 8616if test "${enable_fast_install+set}" = set; then : 8617 enableval=$enable_fast_install; p=${PACKAGE-default} 8618 case $enableval in 8619 yes) enable_fast_install=yes ;; 8620 no) enable_fast_install=no ;; 8621 *) 8622 enable_fast_install=no 8623 # Look at the argument we got. We use all the common list separators. 8624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8625 for pkg in $enableval; do 8626 IFS="$lt_save_ifs" 8627 if test "X$pkg" = "X$p"; then 8628 enable_fast_install=yes 8629 fi 8630 done 8631 IFS="$lt_save_ifs" 8632 ;; 8633 esac 8634else 8635 enable_fast_install=yes 8636fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648# This can be used to rebuild libtool when needed 8649LIBTOOL_DEPS="$ltmain" 8650 8651# Always use our own libtool. 8652LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683test -z "$LN_S" && LN_S="ln -s" 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698if test -n "${ZSH_VERSION+set}" ; then 8699 setopt NO_GLOB_SUBST 8700fi 8701 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8703$as_echo_n "checking for objdir... " >&6; } 8704if ${lt_cv_objdir+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 rm -f .libs 2>/dev/null 8708mkdir .libs 2>/dev/null 8709if test -d .libs; then 8710 lt_cv_objdir=.libs 8711else 8712 # MS-DOS does not allow filenames that begin with a dot. 8713 lt_cv_objdir=_libs 8714fi 8715rmdir .libs 2>/dev/null 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8718$as_echo "$lt_cv_objdir" >&6; } 8719objdir=$lt_cv_objdir 8720 8721 8722 8723 8724 8725cat >>confdefs.h <<_ACEOF 8726#define LT_OBJDIR "$lt_cv_objdir/" 8727_ACEOF 8728 8729 8730 8731 8732case $host_os in 8733aix3*) 8734 # AIX sometimes has problems with the GCC collect2 program. For some 8735 # reason, if we set the COLLECT_NAMES environment variable, the problems 8736 # vanish in a puff of smoke. 8737 if test "X${COLLECT_NAMES+set}" != Xset; then 8738 COLLECT_NAMES= 8739 export COLLECT_NAMES 8740 fi 8741 ;; 8742esac 8743 8744# Global variables: 8745ofile=libtool 8746can_build_shared=yes 8747 8748# All known linkers require a `.a' archive for static linking (except MSVC, 8749# which needs '.lib'). 8750libext=a 8751 8752with_gnu_ld="$lt_cv_prog_gnu_ld" 8753 8754old_CC="$CC" 8755old_CFLAGS="$CFLAGS" 8756 8757# Set sane defaults for various variables 8758test -z "$CC" && CC=cc 8759test -z "$LTCC" && LTCC=$CC 8760test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8761test -z "$LD" && LD=ld 8762test -z "$ac_objext" && ac_objext=o 8763 8764for cc_temp in $compiler""; do 8765 case $cc_temp in 8766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8768 \-*) ;; 8769 *) break;; 8770 esac 8771done 8772cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8773 8774 8775# Only perform the check for file, if the check method requires it 8776test -z "$MAGIC_CMD" && MAGIC_CMD=file 8777case $deplibs_check_method in 8778file_magic*) 8779 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8781$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8782if ${lt_cv_path_MAGIC_CMD+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 case $MAGIC_CMD in 8786[\\/*] | ?:[\\/]*) 8787 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8788 ;; 8789*) 8790 lt_save_MAGIC_CMD="$MAGIC_CMD" 8791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8792 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8793 for ac_dir in $ac_dummy; do 8794 IFS="$lt_save_ifs" 8795 test -z "$ac_dir" && ac_dir=. 8796 if test -f $ac_dir/${ac_tool_prefix}file; then 8797 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8798 if test -n "$file_magic_test_file"; then 8799 case $deplibs_check_method in 8800 "file_magic "*) 8801 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8803 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8804 $EGREP "$file_magic_regex" > /dev/null; then 8805 : 8806 else 8807 cat <<_LT_EOF 1>&2 8808 8809*** Warning: the command libtool uses to detect shared libraries, 8810*** $file_magic_cmd, produces output that libtool cannot recognize. 8811*** The result is that libtool may fail to recognize shared libraries 8812*** as such. This will affect the creation of libtool libraries that 8813*** depend on shared libraries, but programs linked with such libtool 8814*** libraries will work regardless of this problem. Nevertheless, you 8815*** may want to report the problem to your system manager and/or to 8816*** bug-libtool@gnu.org 8817 8818_LT_EOF 8819 fi ;; 8820 esac 8821 fi 8822 break 8823 fi 8824 done 8825 IFS="$lt_save_ifs" 8826 MAGIC_CMD="$lt_save_MAGIC_CMD" 8827 ;; 8828esac 8829fi 8830 8831MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8832if test -n "$MAGIC_CMD"; then 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8834$as_echo "$MAGIC_CMD" >&6; } 8835else 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8837$as_echo "no" >&6; } 8838fi 8839 8840 8841 8842 8843 8844if test -z "$lt_cv_path_MAGIC_CMD"; then 8845 if test -n "$ac_tool_prefix"; then 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8847$as_echo_n "checking for file... " >&6; } 8848if ${lt_cv_path_MAGIC_CMD+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 case $MAGIC_CMD in 8852[\\/*] | ?:[\\/]*) 8853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8854 ;; 8855*) 8856 lt_save_MAGIC_CMD="$MAGIC_CMD" 8857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8859 for ac_dir in $ac_dummy; do 8860 IFS="$lt_save_ifs" 8861 test -z "$ac_dir" && ac_dir=. 8862 if test -f $ac_dir/file; then 8863 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8864 if test -n "$file_magic_test_file"; then 8865 case $deplibs_check_method in 8866 "file_magic "*) 8867 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8870 $EGREP "$file_magic_regex" > /dev/null; then 8871 : 8872 else 8873 cat <<_LT_EOF 1>&2 8874 8875*** Warning: the command libtool uses to detect shared libraries, 8876*** $file_magic_cmd, produces output that libtool cannot recognize. 8877*** The result is that libtool may fail to recognize shared libraries 8878*** as such. This will affect the creation of libtool libraries that 8879*** depend on shared libraries, but programs linked with such libtool 8880*** libraries will work regardless of this problem. Nevertheless, you 8881*** may want to report the problem to your system manager and/or to 8882*** bug-libtool@gnu.org 8883 8884_LT_EOF 8885 fi ;; 8886 esac 8887 fi 8888 break 8889 fi 8890 done 8891 IFS="$lt_save_ifs" 8892 MAGIC_CMD="$lt_save_MAGIC_CMD" 8893 ;; 8894esac 8895fi 8896 8897MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8898if test -n "$MAGIC_CMD"; then 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8900$as_echo "$MAGIC_CMD" >&6; } 8901else 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8903$as_echo "no" >&6; } 8904fi 8905 8906 8907 else 8908 MAGIC_CMD=: 8909 fi 8910fi 8911 8912 fi 8913 ;; 8914esac 8915 8916# Use C for the default configuration in the libtool script 8917 8918lt_save_CC="$CC" 8919ac_ext=c 8920ac_cpp='$CPP $CPPFLAGS' 8921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8923ac_compiler_gnu=$ac_cv_c_compiler_gnu 8924 8925 8926# Source file extension for C test sources. 8927ac_ext=c 8928 8929# Object file extension for compiled C test sources. 8930objext=o 8931objext=$objext 8932 8933# Code to be used in simple compile tests 8934lt_simple_compile_test_code="int some_variable = 0;" 8935 8936# Code to be used in simple link tests 8937lt_simple_link_test_code='int main(){return(0);}' 8938 8939 8940 8941 8942 8943 8944 8945# If no C compiler was specified, use CC. 8946LTCC=${LTCC-"$CC"} 8947 8948# If no C compiler flags were specified, use CFLAGS. 8949LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8950 8951# Allow CC to be a program name with arguments. 8952compiler=$CC 8953 8954# Save the default compiler, since it gets overwritten when the other 8955# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8956compiler_DEFAULT=$CC 8957 8958# save warnings/boilerplate of simple test code 8959ac_outfile=conftest.$ac_objext 8960echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8961eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8962_lt_compiler_boilerplate=`cat conftest.err` 8963$RM conftest* 8964 8965ac_outfile=conftest.$ac_objext 8966echo "$lt_simple_link_test_code" >conftest.$ac_ext 8967eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8968_lt_linker_boilerplate=`cat conftest.err` 8969$RM -r conftest* 8970 8971 8972## CAVEAT EMPTOR: 8973## There is no encapsulation within the following macros, do not change 8974## the running order or otherwise move them around unless you know exactly 8975## what you are doing... 8976if test -n "$compiler"; then 8977 8978lt_prog_compiler_no_builtin_flag= 8979 8980if test "$GCC" = yes; then 8981 case $cc_basename in 8982 nvcc*) 8983 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8984 *) 8985 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8986 esac 8987 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8989$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8990if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 lt_cv_prog_compiler_rtti_exceptions=no 8994 ac_outfile=conftest.$ac_objext 8995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8996 lt_compiler_flag="-fno-rtti -fno-exceptions" 8997 # Insert the option either (1) after the last *FLAGS variable, or 8998 # (2) before a word containing "conftest.", or (3) at the end. 8999 # Note that $ac_compile itself does not contain backslashes and begins 9000 # with a dollar sign (not a hyphen), so the echo should work correctly. 9001 # The option is referenced via a variable to avoid confusing sed. 9002 lt_compile=`echo "$ac_compile" | $SED \ 9003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9005 -e 's:$: $lt_compiler_flag:'` 9006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9007 (eval "$lt_compile" 2>conftest.err) 9008 ac_status=$? 9009 cat conftest.err >&5 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 if (exit $ac_status) && test -s "$ac_outfile"; then 9012 # The compiler can only warn and ignore the option if not recognized 9013 # So say no if there are warnings other than the usual output. 9014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9017 lt_cv_prog_compiler_rtti_exceptions=yes 9018 fi 9019 fi 9020 $RM conftest* 9021 9022fi 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9024$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9025 9026if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9027 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9028else 9029 : 9030fi 9031 9032fi 9033 9034 9035 9036 9037 9038 9039 lt_prog_compiler_wl= 9040lt_prog_compiler_pic= 9041lt_prog_compiler_static= 9042 9043 9044 if test "$GCC" = yes; then 9045 lt_prog_compiler_wl='-Wl,' 9046 lt_prog_compiler_static='-static' 9047 9048 case $host_os in 9049 aix*) 9050 # All AIX code is PIC. 9051 if test "$host_cpu" = ia64; then 9052 # AIX 5 now supports IA64 processor 9053 lt_prog_compiler_static='-Bstatic' 9054 fi 9055 ;; 9056 9057 amigaos*) 9058 case $host_cpu in 9059 powerpc) 9060 # see comment about AmigaOS4 .so support 9061 lt_prog_compiler_pic='-fPIC' 9062 ;; 9063 m68k) 9064 # FIXME: we need at least 68020 code to build shared libraries, but 9065 # adding the `-m68020' flag to GCC prevents building anything better, 9066 # like `-m68040'. 9067 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9068 ;; 9069 esac 9070 ;; 9071 9072 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9073 # PIC is the default for these OSes. 9074 ;; 9075 9076 mingw* | cygwin* | pw32* | os2* | cegcc*) 9077 # This hack is so that the source file can tell whether it is being 9078 # built for inclusion in a dll (and should export symbols for example). 9079 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9080 # (--disable-auto-import) libraries 9081 lt_prog_compiler_pic='-DDLL_EXPORT' 9082 ;; 9083 9084 darwin* | rhapsody*) 9085 # PIC is the default on this platform 9086 # Common symbols not allowed in MH_DYLIB files 9087 lt_prog_compiler_pic='-fno-common' 9088 ;; 9089 9090 haiku*) 9091 # PIC is the default for Haiku. 9092 # The "-static" flag exists, but is broken. 9093 lt_prog_compiler_static= 9094 ;; 9095 9096 hpux*) 9097 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9098 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9099 # sets the default TLS model and affects inlining. 9100 case $host_cpu in 9101 hppa*64*) 9102 # +Z the default 9103 ;; 9104 *) 9105 lt_prog_compiler_pic='-fPIC' 9106 ;; 9107 esac 9108 ;; 9109 9110 interix[3-9]*) 9111 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9112 # Instead, we relocate shared libraries at runtime. 9113 ;; 9114 9115 msdosdjgpp*) 9116 # Just because we use GCC doesn't mean we suddenly get shared libraries 9117 # on systems that don't support them. 9118 lt_prog_compiler_can_build_shared=no 9119 enable_shared=no 9120 ;; 9121 9122 *nto* | *qnx*) 9123 # QNX uses GNU C++, but need to define -shared option too, otherwise 9124 # it will coredump. 9125 lt_prog_compiler_pic='-fPIC -shared' 9126 ;; 9127 9128 sysv4*MP*) 9129 if test -d /usr/nec; then 9130 lt_prog_compiler_pic=-Kconform_pic 9131 fi 9132 ;; 9133 9134 *) 9135 lt_prog_compiler_pic='-fPIC' 9136 ;; 9137 esac 9138 9139 case $cc_basename in 9140 nvcc*) # Cuda Compiler Driver 2.2 9141 lt_prog_compiler_wl='-Xlinker ' 9142 if test -n "$lt_prog_compiler_pic"; then 9143 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9144 fi 9145 ;; 9146 esac 9147 else 9148 # PORTME Check for flag to pass linker flags through the system compiler. 9149 case $host_os in 9150 aix*) 9151 lt_prog_compiler_wl='-Wl,' 9152 if test "$host_cpu" = ia64; then 9153 # AIX 5 now supports IA64 processor 9154 lt_prog_compiler_static='-Bstatic' 9155 else 9156 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9157 fi 9158 ;; 9159 9160 mingw* | cygwin* | pw32* | os2* | cegcc*) 9161 # This hack is so that the source file can tell whether it is being 9162 # built for inclusion in a dll (and should export symbols for example). 9163 lt_prog_compiler_pic='-DDLL_EXPORT' 9164 ;; 9165 9166 hpux9* | hpux10* | hpux11*) 9167 lt_prog_compiler_wl='-Wl,' 9168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9169 # not for PA HP-UX. 9170 case $host_cpu in 9171 hppa*64*|ia64*) 9172 # +Z the default 9173 ;; 9174 *) 9175 lt_prog_compiler_pic='+Z' 9176 ;; 9177 esac 9178 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9179 lt_prog_compiler_static='${wl}-a ${wl}archive' 9180 ;; 9181 9182 irix5* | irix6* | nonstopux*) 9183 lt_prog_compiler_wl='-Wl,' 9184 # PIC (with -KPIC) is the default. 9185 lt_prog_compiler_static='-non_shared' 9186 ;; 9187 9188 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9189 case $cc_basename in 9190 # old Intel for x86_64 which still supported -KPIC. 9191 ecc*) 9192 lt_prog_compiler_wl='-Wl,' 9193 lt_prog_compiler_pic='-KPIC' 9194 lt_prog_compiler_static='-static' 9195 ;; 9196 # icc used to be incompatible with GCC. 9197 # ICC 10 doesn't accept -KPIC any more. 9198 icc* | ifort*) 9199 lt_prog_compiler_wl='-Wl,' 9200 lt_prog_compiler_pic='-fPIC' 9201 lt_prog_compiler_static='-static' 9202 ;; 9203 # Lahey Fortran 8.1. 9204 lf95*) 9205 lt_prog_compiler_wl='-Wl,' 9206 lt_prog_compiler_pic='--shared' 9207 lt_prog_compiler_static='--static' 9208 ;; 9209 nagfor*) 9210 # NAG Fortran compiler 9211 lt_prog_compiler_wl='-Wl,-Wl,,' 9212 lt_prog_compiler_pic='-PIC' 9213 lt_prog_compiler_static='-Bstatic' 9214 ;; 9215 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9216 # Portland Group compilers (*not* the Pentium gcc compiler, 9217 # which looks to be a dead project) 9218 lt_prog_compiler_wl='-Wl,' 9219 lt_prog_compiler_pic='-fpic' 9220 lt_prog_compiler_static='-Bstatic' 9221 ;; 9222 ccc*) 9223 lt_prog_compiler_wl='-Wl,' 9224 # All Alpha code is PIC. 9225 lt_prog_compiler_static='-non_shared' 9226 ;; 9227 xl* | bgxl* | bgf* | mpixl*) 9228 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9229 lt_prog_compiler_wl='-Wl,' 9230 lt_prog_compiler_pic='-qpic' 9231 lt_prog_compiler_static='-qstaticlink' 9232 ;; 9233 *) 9234 case `$CC -V 2>&1 | sed 5q` in 9235 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9236 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9237 lt_prog_compiler_pic='-KPIC' 9238 lt_prog_compiler_static='-Bstatic' 9239 lt_prog_compiler_wl='' 9240 ;; 9241 *Sun\ F* | *Sun*Fortran*) 9242 lt_prog_compiler_pic='-KPIC' 9243 lt_prog_compiler_static='-Bstatic' 9244 lt_prog_compiler_wl='-Qoption ld ' 9245 ;; 9246 *Sun\ C*) 9247 # Sun C 5.9 9248 lt_prog_compiler_pic='-KPIC' 9249 lt_prog_compiler_static='-Bstatic' 9250 lt_prog_compiler_wl='-Wl,' 9251 ;; 9252 *Intel*\ [CF]*Compiler*) 9253 lt_prog_compiler_wl='-Wl,' 9254 lt_prog_compiler_pic='-fPIC' 9255 lt_prog_compiler_static='-static' 9256 ;; 9257 *Portland\ Group*) 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_pic='-fpic' 9260 lt_prog_compiler_static='-Bstatic' 9261 ;; 9262 esac 9263 ;; 9264 esac 9265 ;; 9266 9267 newsos6) 9268 lt_prog_compiler_pic='-KPIC' 9269 lt_prog_compiler_static='-Bstatic' 9270 ;; 9271 9272 *nto* | *qnx*) 9273 # QNX uses GNU C++, but need to define -shared option too, otherwise 9274 # it will coredump. 9275 lt_prog_compiler_pic='-fPIC -shared' 9276 ;; 9277 9278 osf3* | osf4* | osf5*) 9279 lt_prog_compiler_wl='-Wl,' 9280 # All OSF/1 code is PIC. 9281 lt_prog_compiler_static='-non_shared' 9282 ;; 9283 9284 rdos*) 9285 lt_prog_compiler_static='-non_shared' 9286 ;; 9287 9288 solaris*) 9289 lt_prog_compiler_pic='-KPIC' 9290 lt_prog_compiler_static='-Bstatic' 9291 case $cc_basename in 9292 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9293 lt_prog_compiler_wl='-Qoption ld ';; 9294 *) 9295 lt_prog_compiler_wl='-Wl,';; 9296 esac 9297 ;; 9298 9299 sunos4*) 9300 lt_prog_compiler_wl='-Qoption ld ' 9301 lt_prog_compiler_pic='-PIC' 9302 lt_prog_compiler_static='-Bstatic' 9303 ;; 9304 9305 sysv4 | sysv4.2uw2* | sysv4.3*) 9306 lt_prog_compiler_wl='-Wl,' 9307 lt_prog_compiler_pic='-KPIC' 9308 lt_prog_compiler_static='-Bstatic' 9309 ;; 9310 9311 sysv4*MP*) 9312 if test -d /usr/nec ;then 9313 lt_prog_compiler_pic='-Kconform_pic' 9314 lt_prog_compiler_static='-Bstatic' 9315 fi 9316 ;; 9317 9318 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9319 lt_prog_compiler_wl='-Wl,' 9320 lt_prog_compiler_pic='-KPIC' 9321 lt_prog_compiler_static='-Bstatic' 9322 ;; 9323 9324 unicos*) 9325 lt_prog_compiler_wl='-Wl,' 9326 lt_prog_compiler_can_build_shared=no 9327 ;; 9328 9329 uts4*) 9330 lt_prog_compiler_pic='-pic' 9331 lt_prog_compiler_static='-Bstatic' 9332 ;; 9333 9334 *) 9335 lt_prog_compiler_can_build_shared=no 9336 ;; 9337 esac 9338 fi 9339 9340case $host_os in 9341 # For platforms which do not support PIC, -DPIC is meaningless: 9342 *djgpp*) 9343 lt_prog_compiler_pic= 9344 ;; 9345 *) 9346 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9347 ;; 9348esac 9349 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9351$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9352if ${lt_cv_prog_compiler_pic+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9356fi 9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9358$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9359lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9360 9361# 9362# Check to make sure the PIC flag actually works. 9363# 9364if test -n "$lt_prog_compiler_pic"; then 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9366$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9367if ${lt_cv_prog_compiler_pic_works+:} false; then : 9368 $as_echo_n "(cached) " >&6 9369else 9370 lt_cv_prog_compiler_pic_works=no 9371 ac_outfile=conftest.$ac_objext 9372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9374 # Insert the option either (1) after the last *FLAGS variable, or 9375 # (2) before a word containing "conftest.", or (3) at the end. 9376 # Note that $ac_compile itself does not contain backslashes and begins 9377 # with a dollar sign (not a hyphen), so the echo should work correctly. 9378 # The option is referenced via a variable to avoid confusing sed. 9379 lt_compile=`echo "$ac_compile" | $SED \ 9380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9382 -e 's:$: $lt_compiler_flag:'` 9383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9384 (eval "$lt_compile" 2>conftest.err) 9385 ac_status=$? 9386 cat conftest.err >&5 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 if (exit $ac_status) && test -s "$ac_outfile"; then 9389 # The compiler can only warn and ignore the option if not recognized 9390 # So say no if there are warnings other than the usual output. 9391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9394 lt_cv_prog_compiler_pic_works=yes 9395 fi 9396 fi 9397 $RM conftest* 9398 9399fi 9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9401$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9402 9403if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9404 case $lt_prog_compiler_pic in 9405 "" | " "*) ;; 9406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9407 esac 9408else 9409 lt_prog_compiler_pic= 9410 lt_prog_compiler_can_build_shared=no 9411fi 9412 9413fi 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425# 9426# Check to make sure the static flag actually works. 9427# 9428wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9430$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9431if ${lt_cv_prog_compiler_static_works+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 lt_cv_prog_compiler_static_works=no 9435 save_LDFLAGS="$LDFLAGS" 9436 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9437 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9438 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9439 # The linker can only warn and ignore the option if not recognized 9440 # So say no if there are warnings 9441 if test -s conftest.err; then 9442 # Append any errors to the config.log. 9443 cat conftest.err 1>&5 9444 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9446 if diff conftest.exp conftest.er2 >/dev/null; then 9447 lt_cv_prog_compiler_static_works=yes 9448 fi 9449 else 9450 lt_cv_prog_compiler_static_works=yes 9451 fi 9452 fi 9453 $RM -r conftest* 9454 LDFLAGS="$save_LDFLAGS" 9455 9456fi 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9458$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9459 9460if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9461 : 9462else 9463 lt_prog_compiler_static= 9464fi 9465 9466 9467 9468 9469 9470 9471 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9473$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9474if ${lt_cv_prog_compiler_c_o+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476else 9477 lt_cv_prog_compiler_c_o=no 9478 $RM -r conftest 2>/dev/null 9479 mkdir conftest 9480 cd conftest 9481 mkdir out 9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9483 9484 lt_compiler_flag="-o out/conftest2.$ac_objext" 9485 # Insert the option either (1) after the last *FLAGS variable, or 9486 # (2) before a word containing "conftest.", or (3) at the end. 9487 # Note that $ac_compile itself does not contain backslashes and begins 9488 # with a dollar sign (not a hyphen), so the echo should work correctly. 9489 lt_compile=`echo "$ac_compile" | $SED \ 9490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9492 -e 's:$: $lt_compiler_flag:'` 9493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9494 (eval "$lt_compile" 2>out/conftest.err) 9495 ac_status=$? 9496 cat out/conftest.err >&5 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9499 then 9500 # The compiler can only warn and ignore the option if not recognized 9501 # So say no if there are warnings 9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9505 lt_cv_prog_compiler_c_o=yes 9506 fi 9507 fi 9508 chmod u+w . 2>&5 9509 $RM conftest* 9510 # SGI C++ compiler will create directory out/ii_files/ for 9511 # template instantiation 9512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9513 $RM out/* && rmdir out 9514 cd .. 9515 $RM -r conftest 9516 $RM conftest* 9517 9518fi 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9520$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9521 9522 9523 9524 9525 9526 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9529if ${lt_cv_prog_compiler_c_o+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 lt_cv_prog_compiler_c_o=no 9533 $RM -r conftest 2>/dev/null 9534 mkdir conftest 9535 cd conftest 9536 mkdir out 9537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9538 9539 lt_compiler_flag="-o out/conftest2.$ac_objext" 9540 # Insert the option either (1) after the last *FLAGS variable, or 9541 # (2) before a word containing "conftest.", or (3) at the end. 9542 # Note that $ac_compile itself does not contain backslashes and begins 9543 # with a dollar sign (not a hyphen), so the echo should work correctly. 9544 lt_compile=`echo "$ac_compile" | $SED \ 9545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9547 -e 's:$: $lt_compiler_flag:'` 9548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9549 (eval "$lt_compile" 2>out/conftest.err) 9550 ac_status=$? 9551 cat out/conftest.err >&5 9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9553 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9554 then 9555 # The compiler can only warn and ignore the option if not recognized 9556 # So say no if there are warnings 9557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9560 lt_cv_prog_compiler_c_o=yes 9561 fi 9562 fi 9563 chmod u+w . 2>&5 9564 $RM conftest* 9565 # SGI C++ compiler will create directory out/ii_files/ for 9566 # template instantiation 9567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9568 $RM out/* && rmdir out 9569 cd .. 9570 $RM -r conftest 9571 $RM conftest* 9572 9573fi 9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9575$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9576 9577 9578 9579 9580hard_links="nottested" 9581if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9582 # do not overwrite the value of need_locks provided by the user 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9584$as_echo_n "checking if we can lock with hard links... " >&6; } 9585 hard_links=yes 9586 $RM conftest* 9587 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9588 touch conftest.a 9589 ln conftest.a conftest.b 2>&5 || hard_links=no 9590 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9592$as_echo "$hard_links" >&6; } 9593 if test "$hard_links" = no; then 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9595$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9596 need_locks=warn 9597 fi 9598else 9599 need_locks=no 9600fi 9601 9602 9603 9604 9605 9606 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9608$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9609 9610 runpath_var= 9611 allow_undefined_flag= 9612 always_export_symbols=no 9613 archive_cmds= 9614 archive_expsym_cmds= 9615 compiler_needs_object=no 9616 enable_shared_with_static_runtimes=no 9617 export_dynamic_flag_spec= 9618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9619 hardcode_automatic=no 9620 hardcode_direct=no 9621 hardcode_direct_absolute=no 9622 hardcode_libdir_flag_spec= 9623 hardcode_libdir_separator= 9624 hardcode_minus_L=no 9625 hardcode_shlibpath_var=unsupported 9626 inherit_rpath=no 9627 link_all_deplibs=unknown 9628 module_cmds= 9629 module_expsym_cmds= 9630 old_archive_from_new_cmds= 9631 old_archive_from_expsyms_cmds= 9632 thread_safe_flag_spec= 9633 whole_archive_flag_spec= 9634 # include_expsyms should be a list of space-separated symbols to be *always* 9635 # included in the symbol list 9636 include_expsyms= 9637 # exclude_expsyms can be an extended regexp of symbols to exclude 9638 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9640 # as well as any symbol that contains `d'. 9641 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9643 # platforms (ab)use it in PIC code, but their linkers get confused if 9644 # the symbol is explicitly referenced. Since portable code cannot 9645 # rely on this symbol name, it's probably fine to never include it in 9646 # preloaded symbol tables. 9647 # Exclude shared library initialization/finalization symbols. 9648 extract_expsyms_cmds= 9649 9650 case $host_os in 9651 cygwin* | mingw* | pw32* | cegcc*) 9652 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9653 # When not using gcc, we currently assume that we are using 9654 # Microsoft Visual C++. 9655 if test "$GCC" != yes; then 9656 with_gnu_ld=no 9657 fi 9658 ;; 9659 interix*) 9660 # we just hope/assume this is gcc and not c89 (= MSVC++) 9661 with_gnu_ld=yes 9662 ;; 9663 openbsd*) 9664 with_gnu_ld=no 9665 ;; 9666 esac 9667 9668 ld_shlibs=yes 9669 9670 # On some targets, GNU ld is compatible enough with the native linker 9671 # that we're better off using the native interface for both. 9672 lt_use_gnu_ld_interface=no 9673 if test "$with_gnu_ld" = yes; then 9674 case $host_os in 9675 aix*) 9676 # The AIX port of GNU ld has always aspired to compatibility 9677 # with the native linker. However, as the warning in the GNU ld 9678 # block says, versions before 2.19.5* couldn't really create working 9679 # shared libraries, regardless of the interface used. 9680 case `$LD -v 2>&1` in 9681 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9682 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9683 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9684 *) 9685 lt_use_gnu_ld_interface=yes 9686 ;; 9687 esac 9688 ;; 9689 *) 9690 lt_use_gnu_ld_interface=yes 9691 ;; 9692 esac 9693 fi 9694 9695 if test "$lt_use_gnu_ld_interface" = yes; then 9696 # If archive_cmds runs LD, not CC, wlarc should be empty 9697 wlarc='${wl}' 9698 9699 # Set some defaults for GNU ld with shared library support. These 9700 # are reset later if shared libraries are not supported. Putting them 9701 # here allows them to be overridden if necessary. 9702 runpath_var=LD_RUN_PATH 9703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9704 export_dynamic_flag_spec='${wl}--export-dynamic' 9705 # ancient GNU ld didn't support --whole-archive et. al. 9706 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9707 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9708 else 9709 whole_archive_flag_spec= 9710 fi 9711 supports_anon_versioning=no 9712 case `$LD -v 2>&1` in 9713 *GNU\ gold*) supports_anon_versioning=yes ;; 9714 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9715 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9716 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9717 *\ 2.11.*) ;; # other 2.11 versions 9718 *) supports_anon_versioning=yes ;; 9719 esac 9720 9721 # See if GNU ld supports shared libraries. 9722 case $host_os in 9723 aix[3-9]*) 9724 # On AIX/PPC, the GNU linker is very broken 9725 if test "$host_cpu" != ia64; then 9726 ld_shlibs=no 9727 cat <<_LT_EOF 1>&2 9728 9729*** Warning: the GNU linker, at least up to release 2.19, is reported 9730*** to be unable to reliably create shared libraries on AIX. 9731*** Therefore, libtool is disabling shared libraries support. If you 9732*** really care for shared libraries, you may want to install binutils 9733*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9734*** You will then need to restart the configuration process. 9735 9736_LT_EOF 9737 fi 9738 ;; 9739 9740 amigaos*) 9741 case $host_cpu in 9742 powerpc) 9743 # see comment about AmigaOS4 .so support 9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9745 archive_expsym_cmds='' 9746 ;; 9747 m68k) 9748 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)' 9749 hardcode_libdir_flag_spec='-L$libdir' 9750 hardcode_minus_L=yes 9751 ;; 9752 esac 9753 ;; 9754 9755 beos*) 9756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9757 allow_undefined_flag=unsupported 9758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9759 # support --undefined. This deserves some investigation. FIXME 9760 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9761 else 9762 ld_shlibs=no 9763 fi 9764 ;; 9765 9766 cygwin* | mingw* | pw32* | cegcc*) 9767 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9768 # as there is no search path for DLLs. 9769 hardcode_libdir_flag_spec='-L$libdir' 9770 export_dynamic_flag_spec='${wl}--export-all-symbols' 9771 allow_undefined_flag=unsupported 9772 always_export_symbols=no 9773 enable_shared_with_static_runtimes=yes 9774 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' 9775 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9776 9777 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9779 # If the export-symbols file already is a .def file (1st line 9780 # is EXPORTS), use it as is; otherwise, prepend... 9781 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9782 cp $export_symbols $output_objdir/$soname.def; 9783 else 9784 echo EXPORTS > $output_objdir/$soname.def; 9785 cat $export_symbols >> $output_objdir/$soname.def; 9786 fi~ 9787 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9788 else 9789 ld_shlibs=no 9790 fi 9791 ;; 9792 9793 haiku*) 9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9795 link_all_deplibs=yes 9796 ;; 9797 9798 interix[3-9]*) 9799 hardcode_direct=no 9800 hardcode_shlibpath_var=no 9801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9802 export_dynamic_flag_spec='${wl}-E' 9803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9804 # Instead, shared libraries are loaded at an image base (0x10000000 by 9805 # default) and relocated if they conflict, which is a slow very memory 9806 # consuming and fragmenting process. To avoid this, we pick a random, 9807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9808 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9810 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' 9811 ;; 9812 9813 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9814 tmp_diet=no 9815 if test "$host_os" = linux-dietlibc; then 9816 case $cc_basename in 9817 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9818 esac 9819 fi 9820 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9821 && test "$tmp_diet" = no 9822 then 9823 tmp_addflag=' $pic_flag' 9824 tmp_sharedflag='-shared' 9825 case $cc_basename,$host_cpu in 9826 pgcc*) # Portland Group C compiler 9827 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' 9828 tmp_addflag=' $pic_flag' 9829 ;; 9830 pgf77* | pgf90* | pgf95* | pgfortran*) 9831 # Portland Group f77 and f90 compilers 9832 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' 9833 tmp_addflag=' $pic_flag -Mnomain' ;; 9834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9835 tmp_addflag=' -i_dynamic' ;; 9836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9837 tmp_addflag=' -i_dynamic -nofor_main' ;; 9838 ifc* | ifort*) # Intel Fortran compiler 9839 tmp_addflag=' -nofor_main' ;; 9840 lf95*) # Lahey Fortran 8.1 9841 whole_archive_flag_spec= 9842 tmp_sharedflag='--shared' ;; 9843 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9844 tmp_sharedflag='-qmkshrobj' 9845 tmp_addflag= ;; 9846 nvcc*) # Cuda Compiler Driver 2.2 9847 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' 9848 compiler_needs_object=yes 9849 ;; 9850 esac 9851 case `$CC -V 2>&1 | sed 5q` in 9852 *Sun\ C*) # Sun C 5.9 9853 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' 9854 compiler_needs_object=yes 9855 tmp_sharedflag='-G' ;; 9856 *Sun\ F*) # Sun Fortran 8.3 9857 tmp_sharedflag='-G' ;; 9858 esac 9859 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9860 9861 if test "x$supports_anon_versioning" = xyes; then 9862 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9864 echo "local: *; };" >> $output_objdir/$libname.ver~ 9865 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9866 fi 9867 9868 case $cc_basename in 9869 xlf* | bgf* | bgxlf* | mpixlf*) 9870 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9871 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9873 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9874 if test "x$supports_anon_versioning" = xyes; then 9875 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9877 echo "local: *; };" >> $output_objdir/$libname.ver~ 9878 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9879 fi 9880 ;; 9881 esac 9882 else 9883 ld_shlibs=no 9884 fi 9885 ;; 9886 9887 netbsd*) 9888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9889 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9890 wlarc= 9891 else 9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9894 fi 9895 ;; 9896 9897 solaris*) 9898 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9899 ld_shlibs=no 9900 cat <<_LT_EOF 1>&2 9901 9902*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9903*** create shared libraries on Solaris systems. Therefore, libtool 9904*** is disabling shared libraries support. We urge you to upgrade GNU 9905*** binutils to release 2.9.1 or newer. Another option is to modify 9906*** your PATH or compiler configuration so that the native linker is 9907*** used, and then restart. 9908 9909_LT_EOF 9910 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9912 archive_expsym_cmds='$CC -shared $pic_flag $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 9918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9919 case `$LD -v 2>&1` in 9920 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9921 ld_shlibs=no 9922 cat <<_LT_EOF 1>&2 9923 9924*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9925*** reliably create shared libraries on SCO systems. Therefore, libtool 9926*** is disabling shared libraries support. We urge you to upgrade GNU 9927*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9928*** your PATH or compiler configuration so that the native linker is 9929*** used, and then restart. 9930 9931_LT_EOF 9932 ;; 9933 *) 9934 # For security reasons, it is highly recommended that you always 9935 # use absolute paths for naming shared libraries, and exclude the 9936 # DT_RUNPATH tag from executables and libraries. But doing so 9937 # requires that you compile everything twice, which is a pain. 9938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9941 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9942 else 9943 ld_shlibs=no 9944 fi 9945 ;; 9946 esac 9947 ;; 9948 9949 sunos4*) 9950 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9951 wlarc= 9952 hardcode_direct=yes 9953 hardcode_shlibpath_var=no 9954 ;; 9955 9956 *) 9957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9959 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9960 else 9961 ld_shlibs=no 9962 fi 9963 ;; 9964 esac 9965 9966 if test "$ld_shlibs" = no; then 9967 runpath_var= 9968 hardcode_libdir_flag_spec= 9969 export_dynamic_flag_spec= 9970 whole_archive_flag_spec= 9971 fi 9972 else 9973 # PORTME fill in a description of your system's linker (not GNU ld) 9974 case $host_os in 9975 aix3*) 9976 allow_undefined_flag=unsupported 9977 always_export_symbols=yes 9978 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' 9979 # Note: this linker hardcodes the directories in LIBPATH if there 9980 # are no directories specified by -L. 9981 hardcode_minus_L=yes 9982 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9983 # Neither direct hardcoding nor static linking is supported with a 9984 # broken collect2. 9985 hardcode_direct=unsupported 9986 fi 9987 ;; 9988 9989 aix[4-9]*) 9990 if test "$host_cpu" = ia64; then 9991 # On IA64, the linker does run time linking by default, so we don't 9992 # have to do anything special. 9993 aix_use_runtimelinking=no 9994 exp_sym_flag='-Bexport' 9995 no_entry_flag="" 9996 else 9997 # If we're using GNU nm, then we don't want the "-C" option. 9998 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9999 # Also, AIX nm treats weak defined symbols like other global 10000 # defined symbols, whereas GNU nm marks them as "W". 10001 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10002 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' 10003 else 10004 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' 10005 fi 10006 aix_use_runtimelinking=no 10007 10008 # Test if we are trying to use run time linking or normal 10009 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10010 # need to do runtime linking. 10011 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10012 for ld_flag in $LDFLAGS; do 10013 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10014 aix_use_runtimelinking=yes 10015 break 10016 fi 10017 done 10018 ;; 10019 esac 10020 10021 exp_sym_flag='-bexport' 10022 no_entry_flag='-bnoentry' 10023 fi 10024 10025 # When large executables or shared objects are built, AIX ld can 10026 # have problems creating the table of contents. If linking a library 10027 # or program results in "error TOC overflow" add -mminimal-toc to 10028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10030 10031 archive_cmds='' 10032 hardcode_direct=yes 10033 hardcode_direct_absolute=yes 10034 hardcode_libdir_separator=':' 10035 link_all_deplibs=yes 10036 file_list_spec='${wl}-f,' 10037 10038 if test "$GCC" = yes; then 10039 case $host_os in aix4.[012]|aix4.[012].*) 10040 # We only want to do this on AIX 4.2 and lower, the check 10041 # below for broken collect2 doesn't work under 4.3+ 10042 collect2name=`${CC} -print-prog-name=collect2` 10043 if test -f "$collect2name" && 10044 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10045 then 10046 # We have reworked collect2 10047 : 10048 else 10049 # We have old collect2 10050 hardcode_direct=unsupported 10051 # It fails to find uninstalled libraries when the uninstalled 10052 # path is not listed in the libpath. Setting hardcode_minus_L 10053 # to unsupported forces relinking 10054 hardcode_minus_L=yes 10055 hardcode_libdir_flag_spec='-L$libdir' 10056 hardcode_libdir_separator= 10057 fi 10058 ;; 10059 esac 10060 shared_flag='-shared' 10061 if test "$aix_use_runtimelinking" = yes; then 10062 shared_flag="$shared_flag "'${wl}-G' 10063 fi 10064 else 10065 # not using gcc 10066 if test "$host_cpu" = ia64; then 10067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10068 # chokes on -Wl,-G. The following line is correct: 10069 shared_flag='-G' 10070 else 10071 if test "$aix_use_runtimelinking" = yes; then 10072 shared_flag='${wl}-G' 10073 else 10074 shared_flag='${wl}-bM:SRE' 10075 fi 10076 fi 10077 fi 10078 10079 export_dynamic_flag_spec='${wl}-bexpall' 10080 # It seems that -bexpall does not export symbols beginning with 10081 # underscore (_), so it is better to generate a list of symbols to export. 10082 always_export_symbols=yes 10083 if test "$aix_use_runtimelinking" = yes; then 10084 # Warning - without using the other runtime loading flags (-brtl), 10085 # -berok will link without error, but may produce a broken library. 10086 allow_undefined_flag='-berok' 10087 # Determine the default libpath from the value encoded in an 10088 # empty executable. 10089 if test "${lt_cv_aix_libpath+set}" = set; then 10090 aix_libpath=$lt_cv_aix_libpath 10091else 10092 if ${lt_cv_aix_libpath_+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094else 10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096/* end confdefs.h. */ 10097 10098int 10099main () 10100{ 10101 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106if ac_fn_c_try_link "$LINENO"; then : 10107 10108 lt_aix_libpath_sed=' 10109 /Import File Strings/,/^$/ { 10110 /^0/ { 10111 s/^0 *\([^ ]*\) *$/\1/ 10112 p 10113 } 10114 }' 10115 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10116 # Check for a 64-bit object if we didn't find anything. 10117 if test -z "$lt_cv_aix_libpath_"; then 10118 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10119 fi 10120fi 10121rm -f core conftest.err conftest.$ac_objext \ 10122 conftest$ac_exeext conftest.$ac_ext 10123 if test -z "$lt_cv_aix_libpath_"; then 10124 lt_cv_aix_libpath_="/usr/lib:/lib" 10125 fi 10126 10127fi 10128 10129 aix_libpath=$lt_cv_aix_libpath_ 10130fi 10131 10132 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10133 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" 10134 else 10135 if test "$host_cpu" = ia64; then 10136 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10137 allow_undefined_flag="-z nodefs" 10138 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" 10139 else 10140 # Determine the default libpath from the value encoded in an 10141 # empty executable. 10142 if test "${lt_cv_aix_libpath+set}" = set; then 10143 aix_libpath=$lt_cv_aix_libpath 10144else 10145 if ${lt_cv_aix_libpath_+:} false; then : 10146 $as_echo_n "(cached) " >&6 10147else 10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10149/* end confdefs.h. */ 10150 10151int 10152main () 10153{ 10154 10155 ; 10156 return 0; 10157} 10158_ACEOF 10159if ac_fn_c_try_link "$LINENO"; then : 10160 10161 lt_aix_libpath_sed=' 10162 /Import File Strings/,/^$/ { 10163 /^0/ { 10164 s/^0 *\([^ ]*\) *$/\1/ 10165 p 10166 } 10167 }' 10168 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10169 # Check for a 64-bit object if we didn't find anything. 10170 if test -z "$lt_cv_aix_libpath_"; then 10171 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10172 fi 10173fi 10174rm -f core conftest.err conftest.$ac_objext \ 10175 conftest$ac_exeext conftest.$ac_ext 10176 if test -z "$lt_cv_aix_libpath_"; then 10177 lt_cv_aix_libpath_="/usr/lib:/lib" 10178 fi 10179 10180fi 10181 10182 aix_libpath=$lt_cv_aix_libpath_ 10183fi 10184 10185 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10186 # Warning - without using the other run time loading flags, 10187 # -berok will link without error, but may produce a broken library. 10188 no_undefined_flag=' ${wl}-bernotok' 10189 allow_undefined_flag=' ${wl}-berok' 10190 if test "$with_gnu_ld" = yes; then 10191 # We only use this code for GNU lds that support --whole-archive. 10192 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10193 else 10194 # Exported symbols can be pulled into shared objects from archives 10195 whole_archive_flag_spec='$convenience' 10196 fi 10197 archive_cmds_need_lc=yes 10198 # This is similar to how AIX traditionally builds its shared libraries. 10199 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' 10200 fi 10201 fi 10202 ;; 10203 10204 amigaos*) 10205 case $host_cpu in 10206 powerpc) 10207 # see comment about AmigaOS4 .so support 10208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10209 archive_expsym_cmds='' 10210 ;; 10211 m68k) 10212 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)' 10213 hardcode_libdir_flag_spec='-L$libdir' 10214 hardcode_minus_L=yes 10215 ;; 10216 esac 10217 ;; 10218 10219 bsdi[45]*) 10220 export_dynamic_flag_spec=-rdynamic 10221 ;; 10222 10223 cygwin* | mingw* | pw32* | cegcc*) 10224 # When not using gcc, we currently assume that we are using 10225 # Microsoft Visual C++. 10226 # hardcode_libdir_flag_spec is actually meaningless, as there is 10227 # no search path for DLLs. 10228 case $cc_basename in 10229 cl*) 10230 # Native MSVC 10231 hardcode_libdir_flag_spec=' ' 10232 allow_undefined_flag=unsupported 10233 always_export_symbols=yes 10234 file_list_spec='@' 10235 # Tell ltmain to make .lib files, not .a files. 10236 libext=lib 10237 # Tell ltmain to make .dll files, not .so files. 10238 shrext_cmds=".dll" 10239 # FIXME: Setting linknames here is a bad hack. 10240 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10242 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10243 else 10244 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10245 fi~ 10246 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10247 linknames=' 10248 # The linker will not automatically build a static lib if we build a DLL. 10249 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10250 enable_shared_with_static_runtimes=yes 10251 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10252 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10253 # Don't use ranlib 10254 old_postinstall_cmds='chmod 644 $oldlib' 10255 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10256 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10257 case $lt_outputfile in 10258 *.exe|*.EXE) ;; 10259 *) 10260 lt_outputfile="$lt_outputfile.exe" 10261 lt_tool_outputfile="$lt_tool_outputfile.exe" 10262 ;; 10263 esac~ 10264 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10265 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10266 $RM "$lt_outputfile.manifest"; 10267 fi' 10268 ;; 10269 *) 10270 # Assume MSVC wrapper 10271 hardcode_libdir_flag_spec=' ' 10272 allow_undefined_flag=unsupported 10273 # Tell ltmain to make .lib files, not .a files. 10274 libext=lib 10275 # Tell ltmain to make .dll files, not .so files. 10276 shrext_cmds=".dll" 10277 # FIXME: Setting linknames here is a bad hack. 10278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10279 # The linker will automatically build a .lib file if we build a DLL. 10280 old_archive_from_new_cmds='true' 10281 # FIXME: Should let the user specify the lib program. 10282 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10283 enable_shared_with_static_runtimes=yes 10284 ;; 10285 esac 10286 ;; 10287 10288 darwin* | rhapsody*) 10289 10290 10291 archive_cmds_need_lc=no 10292 hardcode_direct=no 10293 hardcode_automatic=yes 10294 hardcode_shlibpath_var=unsupported 10295 if test "$lt_cv_ld_force_load" = "yes"; then 10296 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\"`' 10297 10298 else 10299 whole_archive_flag_spec='' 10300 fi 10301 link_all_deplibs=yes 10302 allow_undefined_flag="$_lt_dar_allow_undefined" 10303 case $cc_basename in 10304 ifort*) _lt_dar_can_shared=yes ;; 10305 *) _lt_dar_can_shared=$GCC ;; 10306 esac 10307 if test "$_lt_dar_can_shared" = "yes"; then 10308 output_verbose_link_cmd=func_echo_all 10309 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10310 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10311 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}" 10312 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}" 10313 10314 else 10315 ld_shlibs=no 10316 fi 10317 10318 ;; 10319 10320 dgux*) 10321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10322 hardcode_libdir_flag_spec='-L$libdir' 10323 hardcode_shlibpath_var=no 10324 ;; 10325 10326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10327 # support. Future versions do this automatically, but an explicit c++rt0.o 10328 # does not break anything, and helps significantly (at the cost of a little 10329 # extra space). 10330 freebsd2.2*) 10331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10332 hardcode_libdir_flag_spec='-R$libdir' 10333 hardcode_direct=yes 10334 hardcode_shlibpath_var=no 10335 ;; 10336 10337 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10338 freebsd2.*) 10339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10340 hardcode_direct=yes 10341 hardcode_minus_L=yes 10342 hardcode_shlibpath_var=no 10343 ;; 10344 10345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10346 freebsd* | dragonfly*) 10347 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10348 hardcode_libdir_flag_spec='-R$libdir' 10349 hardcode_direct=yes 10350 hardcode_shlibpath_var=no 10351 ;; 10352 10353 hpux9*) 10354 if test "$GCC" = yes; then 10355 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' 10356 else 10357 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' 10358 fi 10359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10360 hardcode_libdir_separator=: 10361 hardcode_direct=yes 10362 10363 # hardcode_minus_L: Not really in the search PATH, 10364 # but as the default location of the library. 10365 hardcode_minus_L=yes 10366 export_dynamic_flag_spec='${wl}-E' 10367 ;; 10368 10369 hpux10*) 10370 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10371 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10372 else 10373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10374 fi 10375 if test "$with_gnu_ld" = no; then 10376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10377 hardcode_libdir_separator=: 10378 hardcode_direct=yes 10379 hardcode_direct_absolute=yes 10380 export_dynamic_flag_spec='${wl}-E' 10381 # hardcode_minus_L: Not really in the search PATH, 10382 # but as the default location of the library. 10383 hardcode_minus_L=yes 10384 fi 10385 ;; 10386 10387 hpux11*) 10388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10389 case $host_cpu in 10390 hppa*64*) 10391 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10392 ;; 10393 ia64*) 10394 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10395 ;; 10396 *) 10397 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10398 ;; 10399 esac 10400 else 10401 case $host_cpu in 10402 hppa*64*) 10403 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10404 ;; 10405 ia64*) 10406 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10407 ;; 10408 *) 10409 10410 # Older versions of the 11.00 compiler do not understand -b yet 10411 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10413$as_echo_n "checking if $CC understands -b... " >&6; } 10414if ${lt_cv_prog_compiler__b+:} false; then : 10415 $as_echo_n "(cached) " >&6 10416else 10417 lt_cv_prog_compiler__b=no 10418 save_LDFLAGS="$LDFLAGS" 10419 LDFLAGS="$LDFLAGS -b" 10420 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10422 # The linker can only warn and ignore the option if not recognized 10423 # So say no if there are warnings 10424 if test -s conftest.err; then 10425 # Append any errors to the config.log. 10426 cat conftest.err 1>&5 10427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10429 if diff conftest.exp conftest.er2 >/dev/null; then 10430 lt_cv_prog_compiler__b=yes 10431 fi 10432 else 10433 lt_cv_prog_compiler__b=yes 10434 fi 10435 fi 10436 $RM -r conftest* 10437 LDFLAGS="$save_LDFLAGS" 10438 10439fi 10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10441$as_echo "$lt_cv_prog_compiler__b" >&6; } 10442 10443if test x"$lt_cv_prog_compiler__b" = xyes; then 10444 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10445else 10446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10447fi 10448 10449 ;; 10450 esac 10451 fi 10452 if test "$with_gnu_ld" = no; then 10453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10454 hardcode_libdir_separator=: 10455 10456 case $host_cpu in 10457 hppa*64*|ia64*) 10458 hardcode_direct=no 10459 hardcode_shlibpath_var=no 10460 ;; 10461 *) 10462 hardcode_direct=yes 10463 hardcode_direct_absolute=yes 10464 export_dynamic_flag_spec='${wl}-E' 10465 10466 # hardcode_minus_L: Not really in the search PATH, 10467 # but as the default location of the library. 10468 hardcode_minus_L=yes 10469 ;; 10470 esac 10471 fi 10472 ;; 10473 10474 irix5* | irix6* | nonstopux*) 10475 if test "$GCC" = yes; then 10476 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' 10477 # Try to use the -exported_symbol ld option, if it does not 10478 # work, assume that -exports_file does not work either and 10479 # implicitly export all symbols. 10480 # This should be the same for all languages, so no per-tag cache variable. 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10482$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10483if ${lt_cv_irix_exported_symbol+:} false; then : 10484 $as_echo_n "(cached) " >&6 10485else 10486 save_LDFLAGS="$LDFLAGS" 10487 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10489/* end confdefs.h. */ 10490int foo (void) { return 0; } 10491_ACEOF 10492if ac_fn_c_try_link "$LINENO"; then : 10493 lt_cv_irix_exported_symbol=yes 10494else 10495 lt_cv_irix_exported_symbol=no 10496fi 10497rm -f core conftest.err conftest.$ac_objext \ 10498 conftest$ac_exeext conftest.$ac_ext 10499 LDFLAGS="$save_LDFLAGS" 10500fi 10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10502$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10503 if test "$lt_cv_irix_exported_symbol" = yes; then 10504 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' 10505 fi 10506 else 10507 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' 10508 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' 10509 fi 10510 archive_cmds_need_lc='no' 10511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10512 hardcode_libdir_separator=: 10513 inherit_rpath=yes 10514 link_all_deplibs=yes 10515 ;; 10516 10517 netbsd*) 10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10520 else 10521 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10522 fi 10523 hardcode_libdir_flag_spec='-R$libdir' 10524 hardcode_direct=yes 10525 hardcode_shlibpath_var=no 10526 ;; 10527 10528 newsos6) 10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10530 hardcode_direct=yes 10531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10532 hardcode_libdir_separator=: 10533 hardcode_shlibpath_var=no 10534 ;; 10535 10536 *nto* | *qnx*) 10537 ;; 10538 10539 openbsd*) 10540 if test -f /usr/libexec/ld.so; then 10541 hardcode_direct=yes 10542 hardcode_shlibpath_var=no 10543 hardcode_direct_absolute=yes 10544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10546 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10548 export_dynamic_flag_spec='${wl}-E' 10549 else 10550 case $host_os in 10551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10553 hardcode_libdir_flag_spec='-R$libdir' 10554 ;; 10555 *) 10556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10558 ;; 10559 esac 10560 fi 10561 else 10562 ld_shlibs=no 10563 fi 10564 ;; 10565 10566 os2*) 10567 hardcode_libdir_flag_spec='-L$libdir' 10568 hardcode_minus_L=yes 10569 allow_undefined_flag=unsupported 10570 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' 10571 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10572 ;; 10573 10574 osf3*) 10575 if test "$GCC" = yes; then 10576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10577 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' 10578 else 10579 allow_undefined_flag=' -expect_unresolved \*' 10580 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' 10581 fi 10582 archive_cmds_need_lc='no' 10583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10584 hardcode_libdir_separator=: 10585 ;; 10586 10587 osf4* | osf5*) # as osf3* with the addition of -msym flag 10588 if test "$GCC" = yes; then 10589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10590 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' 10591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10592 else 10593 allow_undefined_flag=' -expect_unresolved \*' 10594 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' 10595 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~ 10596 $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' 10597 10598 # Both c and cxx compiler support -rpath directly 10599 hardcode_libdir_flag_spec='-rpath $libdir' 10600 fi 10601 archive_cmds_need_lc='no' 10602 hardcode_libdir_separator=: 10603 ;; 10604 10605 solaris*) 10606 no_undefined_flag=' -z defs' 10607 if test "$GCC" = yes; then 10608 wlarc='${wl}' 10609 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10611 $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' 10612 else 10613 case `$CC -V 2>&1` in 10614 *"Compilers 5.0"*) 10615 wlarc='' 10616 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10618 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10619 ;; 10620 *) 10621 wlarc='${wl}' 10622 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10624 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10625 ;; 10626 esac 10627 fi 10628 hardcode_libdir_flag_spec='-R$libdir' 10629 hardcode_shlibpath_var=no 10630 case $host_os in 10631 solaris2.[0-5] | solaris2.[0-5].*) ;; 10632 *) 10633 # The compiler driver will combine and reorder linker options, 10634 # but understands `-z linker_flag'. GCC discards it without `$wl', 10635 # but is careful enough not to reorder. 10636 # Supported since Solaris 2.6 (maybe 2.5.1?) 10637 if test "$GCC" = yes; then 10638 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10639 else 10640 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10641 fi 10642 ;; 10643 esac 10644 link_all_deplibs=yes 10645 ;; 10646 10647 sunos4*) 10648 if test "x$host_vendor" = xsequent; then 10649 # Use $CC to link under sequent, because it throws in some extra .o 10650 # files that make .init and .fini sections work. 10651 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10652 else 10653 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10654 fi 10655 hardcode_libdir_flag_spec='-L$libdir' 10656 hardcode_direct=yes 10657 hardcode_minus_L=yes 10658 hardcode_shlibpath_var=no 10659 ;; 10660 10661 sysv4) 10662 case $host_vendor in 10663 sni) 10664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10665 hardcode_direct=yes # is this really true??? 10666 ;; 10667 siemens) 10668 ## LD is ld it makes a PLAMLIB 10669 ## CC just makes a GrossModule. 10670 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10671 reload_cmds='$CC -r -o $output$reload_objs' 10672 hardcode_direct=no 10673 ;; 10674 motorola) 10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10676 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10677 ;; 10678 esac 10679 runpath_var='LD_RUN_PATH' 10680 hardcode_shlibpath_var=no 10681 ;; 10682 10683 sysv4.3*) 10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10685 hardcode_shlibpath_var=no 10686 export_dynamic_flag_spec='-Bexport' 10687 ;; 10688 10689 sysv4*MP*) 10690 if test -d /usr/nec; then 10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10692 hardcode_shlibpath_var=no 10693 runpath_var=LD_RUN_PATH 10694 hardcode_runpath_var=yes 10695 ld_shlibs=yes 10696 fi 10697 ;; 10698 10699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10700 no_undefined_flag='${wl}-z,text' 10701 archive_cmds_need_lc=no 10702 hardcode_shlibpath_var=no 10703 runpath_var='LD_RUN_PATH' 10704 10705 if test "$GCC" = yes; then 10706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10708 else 10709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10711 fi 10712 ;; 10713 10714 sysv5* | sco3.2v5* | sco5v6*) 10715 # Note: We can NOT use -z defs as we might desire, because we do not 10716 # link with -lc, and that would cause any symbols used from libc to 10717 # always be unresolved, which means just about no library would 10718 # ever link correctly. If we're not using GNU ld we use -z text 10719 # though, which does catch some bad symbols but isn't as heavy-handed 10720 # as -z defs. 10721 no_undefined_flag='${wl}-z,text' 10722 allow_undefined_flag='${wl}-z,nodefs' 10723 archive_cmds_need_lc=no 10724 hardcode_shlibpath_var=no 10725 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10726 hardcode_libdir_separator=':' 10727 link_all_deplibs=yes 10728 export_dynamic_flag_spec='${wl}-Bexport' 10729 runpath_var='LD_RUN_PATH' 10730 10731 if test "$GCC" = yes; then 10732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 else 10735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10737 fi 10738 ;; 10739 10740 uts4*) 10741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10742 hardcode_libdir_flag_spec='-L$libdir' 10743 hardcode_shlibpath_var=no 10744 ;; 10745 10746 *) 10747 ld_shlibs=no 10748 ;; 10749 esac 10750 10751 if test x$host_vendor = xsni; then 10752 case $host in 10753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10754 export_dynamic_flag_spec='${wl}-Blargedynsym' 10755 ;; 10756 esac 10757 fi 10758 fi 10759 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10761$as_echo "$ld_shlibs" >&6; } 10762test "$ld_shlibs" = no && can_build_shared=no 10763 10764with_gnu_ld=$with_gnu_ld 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780# 10781# Do we need to explicitly link libc? 10782# 10783case "x$archive_cmds_need_lc" in 10784x|xyes) 10785 # Assume -lc should be added 10786 archive_cmds_need_lc=yes 10787 10788 if test "$enable_shared" = yes && test "$GCC" = yes; then 10789 case $archive_cmds in 10790 *'~'*) 10791 # FIXME: we may have to deal with multi-command sequences. 10792 ;; 10793 '$CC '*) 10794 # Test whether the compiler implicitly links with -lc since on some 10795 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10796 # to ld, don't add -lc before -lgcc. 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10798$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10799if ${lt_cv_archive_cmds_need_lc+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 $RM conftest* 10803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10804 10805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10806 (eval $ac_compile) 2>&5 10807 ac_status=$? 10808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10809 test $ac_status = 0; } 2>conftest.err; then 10810 soname=conftest 10811 lib=conftest 10812 libobjs=conftest.$ac_objext 10813 deplibs= 10814 wl=$lt_prog_compiler_wl 10815 pic_flag=$lt_prog_compiler_pic 10816 compiler_flags=-v 10817 linker_flags=-v 10818 verstring= 10819 output_objdir=. 10820 libname=conftest 10821 lt_save_allow_undefined_flag=$allow_undefined_flag 10822 allow_undefined_flag= 10823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10824 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10825 ac_status=$? 10826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10827 test $ac_status = 0; } 10828 then 10829 lt_cv_archive_cmds_need_lc=no 10830 else 10831 lt_cv_archive_cmds_need_lc=yes 10832 fi 10833 allow_undefined_flag=$lt_save_allow_undefined_flag 10834 else 10835 cat conftest.err 1>&5 10836 fi 10837 $RM conftest* 10838 10839fi 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10841$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10842 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10843 ;; 10844 esac 10845 fi 10846 ;; 10847esac 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 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11001$as_echo_n "checking dynamic linker characteristics... " >&6; } 11002 11003if test "$GCC" = yes; then 11004 case $host_os in 11005 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11006 *) lt_awk_arg="/^libraries:/" ;; 11007 esac 11008 case $host_os in 11009 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11010 *) lt_sed_strip_eq="s,=/,/,g" ;; 11011 esac 11012 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11013 case $lt_search_path_spec in 11014 *\;*) 11015 # if the path contains ";" then we assume it to be the separator 11016 # otherwise default to the standard path separator (i.e. ":") - it is 11017 # assumed that no part of a normal pathname contains ";" but that should 11018 # okay in the real world where ";" in dirpaths is itself problematic. 11019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11020 ;; 11021 *) 11022 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11023 ;; 11024 esac 11025 # Ok, now we have the path, separated by spaces, we can step through it 11026 # and add multilib dir if necessary. 11027 lt_tmp_lt_search_path_spec= 11028 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11029 for lt_sys_path in $lt_search_path_spec; do 11030 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11032 else 11033 test -d "$lt_sys_path" && \ 11034 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11035 fi 11036 done 11037 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11038BEGIN {RS=" "; FS="/|\n";} { 11039 lt_foo=""; 11040 lt_count=0; 11041 for (lt_i = NF; lt_i > 0; lt_i--) { 11042 if ($lt_i != "" && $lt_i != ".") { 11043 if ($lt_i == "..") { 11044 lt_count++; 11045 } else { 11046 if (lt_count == 0) { 11047 lt_foo="/" $lt_i lt_foo; 11048 } else { 11049 lt_count--; 11050 } 11051 } 11052 } 11053 } 11054 if (lt_foo != "") { lt_freq[lt_foo]++; } 11055 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11056}'` 11057 # AWK program above erroneously prepends '/' to C:/dos/paths 11058 # for these hosts. 11059 case $host_os in 11060 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11061 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11062 esac 11063 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11064else 11065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11066fi 11067library_names_spec= 11068libname_spec='lib$name' 11069soname_spec= 11070shrext_cmds=".so" 11071postinstall_cmds= 11072postuninstall_cmds= 11073finish_cmds= 11074finish_eval= 11075shlibpath_var= 11076shlibpath_overrides_runpath=unknown 11077version_type=none 11078dynamic_linker="$host_os ld.so" 11079sys_lib_dlsearch_path_spec="/lib /usr/lib" 11080need_lib_prefix=unknown 11081hardcode_into_libs=no 11082 11083# when you set need_version to no, make sure it does not cause -set_version 11084# flags to be left without arguments 11085need_version=unknown 11086 11087case $host_os in 11088aix3*) 11089 version_type=linux # correct to gnu/linux during the next big refactor 11090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11091 shlibpath_var=LIBPATH 11092 11093 # AIX 3 has no versioning support, so we append a major version to the name. 11094 soname_spec='${libname}${release}${shared_ext}$major' 11095 ;; 11096 11097aix[4-9]*) 11098 version_type=linux # correct to gnu/linux during the next big refactor 11099 need_lib_prefix=no 11100 need_version=no 11101 hardcode_into_libs=yes 11102 if test "$host_cpu" = ia64; then 11103 # AIX 5 supports IA64 11104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11105 shlibpath_var=LD_LIBRARY_PATH 11106 else 11107 # With GCC up to 2.95.x, collect2 would create an import file 11108 # for dependence libraries. The import file would start with 11109 # the line `#! .'. This would cause the generated library to 11110 # depend on `.', always an invalid library. This was fixed in 11111 # development snapshots of GCC prior to 3.0. 11112 case $host_os in 11113 aix4 | aix4.[01] | aix4.[01].*) 11114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11115 echo ' yes ' 11116 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11117 : 11118 else 11119 can_build_shared=no 11120 fi 11121 ;; 11122 esac 11123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11124 # soname into executable. Probably we can add versioning support to 11125 # collect2, so additional links can be useful in future. 11126 if test "$aix_use_runtimelinking" = yes; then 11127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11128 # instead of lib<name>.a to let people know that these are not 11129 # typical AIX shared libraries. 11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11131 else 11132 # We preserve .a as extension for shared libraries through AIX4.2 11133 # and later when we are not doing run time linking. 11134 library_names_spec='${libname}${release}.a $libname.a' 11135 soname_spec='${libname}${release}${shared_ext}$major' 11136 fi 11137 shlibpath_var=LIBPATH 11138 fi 11139 ;; 11140 11141amigaos*) 11142 case $host_cpu in 11143 powerpc) 11144 # Since July 2007 AmigaOS4 officially supports .so libraries. 11145 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11147 ;; 11148 m68k) 11149 library_names_spec='$libname.ixlibrary $libname.a' 11150 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11151 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' 11152 ;; 11153 esac 11154 ;; 11155 11156beos*) 11157 library_names_spec='${libname}${shared_ext}' 11158 dynamic_linker="$host_os ld.so" 11159 shlibpath_var=LIBRARY_PATH 11160 ;; 11161 11162bsdi[45]*) 11163 version_type=linux # correct to gnu/linux during the next big refactor 11164 need_version=no 11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11166 soname_spec='${libname}${release}${shared_ext}$major' 11167 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11168 shlibpath_var=LD_LIBRARY_PATH 11169 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11170 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11171 # the default ld.so.conf also contains /usr/contrib/lib and 11172 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11173 # libtool to hard-code these into programs 11174 ;; 11175 11176cygwin* | mingw* | pw32* | cegcc*) 11177 version_type=windows 11178 shrext_cmds=".dll" 11179 need_version=no 11180 need_lib_prefix=no 11181 11182 case $GCC,$cc_basename in 11183 yes,*) 11184 # gcc 11185 library_names_spec='$libname.dll.a' 11186 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11187 postinstall_cmds='base_file=`basename \${file}`~ 11188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11189 dldir=$destdir/`dirname \$dlpath`~ 11190 test -d \$dldir || mkdir -p \$dldir~ 11191 $install_prog $dir/$dlname \$dldir/$dlname~ 11192 chmod a+x \$dldir/$dlname~ 11193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11195 fi' 11196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11197 dlpath=$dir/\$dldll~ 11198 $RM \$dlpath' 11199 shlibpath_overrides_runpath=yes 11200 11201 case $host_os in 11202 cygwin*) 11203 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11205 11206 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11207 ;; 11208 mingw* | cegcc*) 11209 # MinGW DLLs use traditional 'lib' prefix 11210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11211 ;; 11212 pw32*) 11213 # pw32 DLLs use 'pw' prefix rather than 'lib' 11214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11215 ;; 11216 esac 11217 dynamic_linker='Win32 ld.exe' 11218 ;; 11219 11220 *,cl*) 11221 # Native MSVC 11222 libname_spec='$name' 11223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11224 library_names_spec='${libname}.dll.lib' 11225 11226 case $build_os in 11227 mingw*) 11228 sys_lib_search_path_spec= 11229 lt_save_ifs=$IFS 11230 IFS=';' 11231 for lt_path in $LIB 11232 do 11233 IFS=$lt_save_ifs 11234 # Let DOS variable expansion print the short 8.3 style file name. 11235 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11236 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11237 done 11238 IFS=$lt_save_ifs 11239 # Convert to MSYS style. 11240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11241 ;; 11242 cygwin*) 11243 # Convert to unix form, then to dos form, then back to unix form 11244 # but this time dos style (no spaces!) so that the unix form looks 11245 # like /cygdrive/c/PROGRA~1:/cygdr... 11246 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11247 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11248 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11249 ;; 11250 *) 11251 sys_lib_search_path_spec="$LIB" 11252 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11253 # It is most probably a Windows format PATH. 11254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11255 else 11256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11257 fi 11258 # FIXME: find the short name or the path components, as spaces are 11259 # common. (e.g. "Program Files" -> "PROGRA~1") 11260 ;; 11261 esac 11262 11263 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11264 postinstall_cmds='base_file=`basename \${file}`~ 11265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11266 dldir=$destdir/`dirname \$dlpath`~ 11267 test -d \$dldir || mkdir -p \$dldir~ 11268 $install_prog $dir/$dlname \$dldir/$dlname' 11269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11270 dlpath=$dir/\$dldll~ 11271 $RM \$dlpath' 11272 shlibpath_overrides_runpath=yes 11273 dynamic_linker='Win32 link.exe' 11274 ;; 11275 11276 *) 11277 # Assume MSVC wrapper 11278 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11279 dynamic_linker='Win32 ld.exe' 11280 ;; 11281 esac 11282 # FIXME: first we should search . and the directory the executable is in 11283 shlibpath_var=PATH 11284 ;; 11285 11286darwin* | rhapsody*) 11287 dynamic_linker="$host_os dyld" 11288 version_type=darwin 11289 need_lib_prefix=no 11290 need_version=no 11291 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11292 soname_spec='${libname}${release}${major}$shared_ext' 11293 shlibpath_overrides_runpath=yes 11294 shlibpath_var=DYLD_LIBRARY_PATH 11295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11296 11297 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11299 ;; 11300 11301dgux*) 11302 version_type=linux # correct to gnu/linux during the next big refactor 11303 need_lib_prefix=no 11304 need_version=no 11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11306 soname_spec='${libname}${release}${shared_ext}$major' 11307 shlibpath_var=LD_LIBRARY_PATH 11308 ;; 11309 11310freebsd* | dragonfly*) 11311 # DragonFly does not have aout. When/if they implement a new 11312 # versioning mechanism, adjust this. 11313 if test -x /usr/bin/objformat; then 11314 objformat=`/usr/bin/objformat` 11315 else 11316 case $host_os in 11317 freebsd[23].*) objformat=aout ;; 11318 *) objformat=elf ;; 11319 esac 11320 fi 11321 version_type=freebsd-$objformat 11322 case $version_type in 11323 freebsd-elf*) 11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11325 need_version=no 11326 need_lib_prefix=no 11327 ;; 11328 freebsd-*) 11329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11330 need_version=yes 11331 ;; 11332 esac 11333 shlibpath_var=LD_LIBRARY_PATH 11334 case $host_os in 11335 freebsd2.*) 11336 shlibpath_overrides_runpath=yes 11337 ;; 11338 freebsd3.[01]* | freebsdelf3.[01]*) 11339 shlibpath_overrides_runpath=yes 11340 hardcode_into_libs=yes 11341 ;; 11342 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11343 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11344 shlibpath_overrides_runpath=no 11345 hardcode_into_libs=yes 11346 ;; 11347 *) # from 4.6 on, and DragonFly 11348 shlibpath_overrides_runpath=yes 11349 hardcode_into_libs=yes 11350 ;; 11351 esac 11352 ;; 11353 11354gnu*) 11355 version_type=linux # correct to gnu/linux during the next big refactor 11356 need_lib_prefix=no 11357 need_version=no 11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11359 soname_spec='${libname}${release}${shared_ext}$major' 11360 shlibpath_var=LD_LIBRARY_PATH 11361 shlibpath_overrides_runpath=no 11362 hardcode_into_libs=yes 11363 ;; 11364 11365haiku*) 11366 version_type=linux # correct to gnu/linux during the next big refactor 11367 need_lib_prefix=no 11368 need_version=no 11369 dynamic_linker="$host_os runtime_loader" 11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11371 soname_spec='${libname}${release}${shared_ext}$major' 11372 shlibpath_var=LIBRARY_PATH 11373 shlibpath_overrides_runpath=yes 11374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11375 hardcode_into_libs=yes 11376 ;; 11377 11378hpux9* | hpux10* | hpux11*) 11379 # Give a soname corresponding to the major version so that dld.sl refuses to 11380 # link against other versions. 11381 version_type=sunos 11382 need_lib_prefix=no 11383 need_version=no 11384 case $host_cpu in 11385 ia64*) 11386 shrext_cmds='.so' 11387 hardcode_into_libs=yes 11388 dynamic_linker="$host_os dld.so" 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11392 soname_spec='${libname}${release}${shared_ext}$major' 11393 if test "X$HPUX_IA64_MODE" = X32; then 11394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11395 else 11396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11397 fi 11398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11399 ;; 11400 hppa*64*) 11401 shrext_cmds='.sl' 11402 hardcode_into_libs=yes 11403 dynamic_linker="$host_os dld.sl" 11404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11407 soname_spec='${libname}${release}${shared_ext}$major' 11408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11410 ;; 11411 *) 11412 shrext_cmds='.sl' 11413 dynamic_linker="$host_os dld.sl" 11414 shlibpath_var=SHLIB_PATH 11415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11417 soname_spec='${libname}${release}${shared_ext}$major' 11418 ;; 11419 esac 11420 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11421 postinstall_cmds='chmod 555 $lib' 11422 # or fails outright, so override atomically: 11423 install_override_mode=555 11424 ;; 11425 11426interix[3-9]*) 11427 version_type=linux # correct to gnu/linux during the next big refactor 11428 need_lib_prefix=no 11429 need_version=no 11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11431 soname_spec='${libname}${release}${shared_ext}$major' 11432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11433 shlibpath_var=LD_LIBRARY_PATH 11434 shlibpath_overrides_runpath=no 11435 hardcode_into_libs=yes 11436 ;; 11437 11438irix5* | irix6* | nonstopux*) 11439 case $host_os in 11440 nonstopux*) version_type=nonstopux ;; 11441 *) 11442 if test "$lt_cv_prog_gnu_ld" = yes; then 11443 version_type=linux # correct to gnu/linux during the next big refactor 11444 else 11445 version_type=irix 11446 fi ;; 11447 esac 11448 need_lib_prefix=no 11449 need_version=no 11450 soname_spec='${libname}${release}${shared_ext}$major' 11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11452 case $host_os in 11453 irix5* | nonstopux*) 11454 libsuff= shlibsuff= 11455 ;; 11456 *) 11457 case $LD in # libtool.m4 will add one of these switches to LD 11458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11459 libsuff= shlibsuff= libmagic=32-bit;; 11460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11461 libsuff=32 shlibsuff=N32 libmagic=N32;; 11462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11463 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11464 *) libsuff= shlibsuff= libmagic=never-match;; 11465 esac 11466 ;; 11467 esac 11468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11469 shlibpath_overrides_runpath=no 11470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11472 hardcode_into_libs=yes 11473 ;; 11474 11475# No shared lib support for Linux oldld, aout, or coff. 11476linux*oldld* | linux*aout* | linux*coff*) 11477 dynamic_linker=no 11478 ;; 11479 11480# This must be glibc/ELF. 11481linux* | k*bsd*-gnu | kopensolaris*-gnu) 11482 version_type=linux # correct to gnu/linux during the next big refactor 11483 need_lib_prefix=no 11484 need_version=no 11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11486 soname_spec='${libname}${release}${shared_ext}$major' 11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11488 shlibpath_var=LD_LIBRARY_PATH 11489 shlibpath_overrides_runpath=no 11490 11491 # Some binutils ld are patched to set DT_RUNPATH 11492 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 lt_cv_shlibpath_overrides_runpath=no 11496 save_LDFLAGS=$LDFLAGS 11497 save_libdir=$libdir 11498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11501/* end confdefs.h. */ 11502 11503int 11504main () 11505{ 11506 11507 ; 11508 return 0; 11509} 11510_ACEOF 11511if ac_fn_c_try_link "$LINENO"; then : 11512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11513 lt_cv_shlibpath_overrides_runpath=yes 11514fi 11515fi 11516rm -f core conftest.err conftest.$ac_objext \ 11517 conftest$ac_exeext conftest.$ac_ext 11518 LDFLAGS=$save_LDFLAGS 11519 libdir=$save_libdir 11520 11521fi 11522 11523 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11524 11525 # This implies no fast_install, which is unacceptable. 11526 # Some rework will be needed to allow for fast_install 11527 # before this can be enabled. 11528 hardcode_into_libs=yes 11529 11530 # Append ld.so.conf contents to the search path 11531 if test -f /etc/ld.so.conf; then 11532 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' ' '` 11533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11534 fi 11535 11536 # We used to test for /lib/ld.so.1 and disable shared libraries on 11537 # powerpc, because MkLinux only supported shared libraries with the 11538 # GNU dynamic linker. Since this was broken with cross compilers, 11539 # most powerpc-linux boxes support dynamic linking these days and 11540 # people can always --disable-shared, the test was removed, and we 11541 # assume the GNU/Linux dynamic linker is in use. 11542 dynamic_linker='GNU/Linux ld.so' 11543 ;; 11544 11545netbsd*) 11546 version_type=sunos 11547 need_lib_prefix=no 11548 need_version=no 11549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11552 dynamic_linker='NetBSD (a.out) ld.so' 11553 else 11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11555 soname_spec='${libname}${release}${shared_ext}$major' 11556 dynamic_linker='NetBSD ld.elf_so' 11557 fi 11558 shlibpath_var=LD_LIBRARY_PATH 11559 shlibpath_overrides_runpath=yes 11560 hardcode_into_libs=yes 11561 ;; 11562 11563newsos6) 11564 version_type=linux # correct to gnu/linux during the next big refactor 11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11566 shlibpath_var=LD_LIBRARY_PATH 11567 shlibpath_overrides_runpath=yes 11568 ;; 11569 11570*nto* | *qnx*) 11571 version_type=qnx 11572 need_lib_prefix=no 11573 need_version=no 11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11575 soname_spec='${libname}${release}${shared_ext}$major' 11576 shlibpath_var=LD_LIBRARY_PATH 11577 shlibpath_overrides_runpath=no 11578 hardcode_into_libs=yes 11579 dynamic_linker='ldqnx.so' 11580 ;; 11581 11582openbsd*) 11583 version_type=sunos 11584 sys_lib_dlsearch_path_spec="/usr/lib" 11585 need_lib_prefix=no 11586 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11587 case $host_os in 11588 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11589 *) need_version=no ;; 11590 esac 11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11593 shlibpath_var=LD_LIBRARY_PATH 11594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11595 case $host_os in 11596 openbsd2.[89] | openbsd2.[89].*) 11597 shlibpath_overrides_runpath=no 11598 ;; 11599 *) 11600 shlibpath_overrides_runpath=yes 11601 ;; 11602 esac 11603 else 11604 shlibpath_overrides_runpath=yes 11605 fi 11606 ;; 11607 11608os2*) 11609 libname_spec='$name' 11610 shrext_cmds=".dll" 11611 need_lib_prefix=no 11612 library_names_spec='$libname${shared_ext} $libname.a' 11613 dynamic_linker='OS/2 ld.exe' 11614 shlibpath_var=LIBPATH 11615 ;; 11616 11617osf3* | osf4* | osf5*) 11618 version_type=osf 11619 need_lib_prefix=no 11620 need_version=no 11621 soname_spec='${libname}${release}${shared_ext}$major' 11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11623 shlibpath_var=LD_LIBRARY_PATH 11624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11625 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11626 ;; 11627 11628rdos*) 11629 dynamic_linker=no 11630 ;; 11631 11632solaris*) 11633 version_type=linux # correct to gnu/linux during the next big refactor 11634 need_lib_prefix=no 11635 need_version=no 11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11637 soname_spec='${libname}${release}${shared_ext}$major' 11638 shlibpath_var=LD_LIBRARY_PATH 11639 shlibpath_overrides_runpath=yes 11640 hardcode_into_libs=yes 11641 # ldd complains unless libraries are executable 11642 postinstall_cmds='chmod +x $lib' 11643 ;; 11644 11645sunos4*) 11646 version_type=sunos 11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11648 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11649 shlibpath_var=LD_LIBRARY_PATH 11650 shlibpath_overrides_runpath=yes 11651 if test "$with_gnu_ld" = yes; then 11652 need_lib_prefix=no 11653 fi 11654 need_version=yes 11655 ;; 11656 11657sysv4 | sysv4.3*) 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11660 soname_spec='${libname}${release}${shared_ext}$major' 11661 shlibpath_var=LD_LIBRARY_PATH 11662 case $host_vendor in 11663 sni) 11664 shlibpath_overrides_runpath=no 11665 need_lib_prefix=no 11666 runpath_var=LD_RUN_PATH 11667 ;; 11668 siemens) 11669 need_lib_prefix=no 11670 ;; 11671 motorola) 11672 need_lib_prefix=no 11673 need_version=no 11674 shlibpath_overrides_runpath=no 11675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11676 ;; 11677 esac 11678 ;; 11679 11680sysv4*MP*) 11681 if test -d /usr/nec ;then 11682 version_type=linux # correct to gnu/linux during the next big refactor 11683 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11684 soname_spec='$libname${shared_ext}.$major' 11685 shlibpath_var=LD_LIBRARY_PATH 11686 fi 11687 ;; 11688 11689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11690 version_type=freebsd-elf 11691 need_lib_prefix=no 11692 need_version=no 11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11694 soname_spec='${libname}${release}${shared_ext}$major' 11695 shlibpath_var=LD_LIBRARY_PATH 11696 shlibpath_overrides_runpath=yes 11697 hardcode_into_libs=yes 11698 if test "$with_gnu_ld" = yes; then 11699 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11700 else 11701 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11702 case $host_os in 11703 sco3.2v5*) 11704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11705 ;; 11706 esac 11707 fi 11708 sys_lib_dlsearch_path_spec='/usr/lib' 11709 ;; 11710 11711tpf*) 11712 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11713 version_type=linux # correct to gnu/linux during the next big refactor 11714 need_lib_prefix=no 11715 need_version=no 11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11717 shlibpath_var=LD_LIBRARY_PATH 11718 shlibpath_overrides_runpath=no 11719 hardcode_into_libs=yes 11720 ;; 11721 11722uts4*) 11723 version_type=linux # correct to gnu/linux during the next big refactor 11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11725 soname_spec='${libname}${release}${shared_ext}$major' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 ;; 11728 11729*) 11730 dynamic_linker=no 11731 ;; 11732esac 11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11734$as_echo "$dynamic_linker" >&6; } 11735test "$dynamic_linker" = no && can_build_shared=no 11736 11737variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11738if test "$GCC" = yes; then 11739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11740fi 11741 11742if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11743 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11744fi 11745if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11746 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11747fi 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 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11841$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11842hardcode_action= 11843if test -n "$hardcode_libdir_flag_spec" || 11844 test -n "$runpath_var" || 11845 test "X$hardcode_automatic" = "Xyes" ; then 11846 11847 # We can hardcode non-existent directories. 11848 if test "$hardcode_direct" != no && 11849 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11850 # have to relink, otherwise we might link with an installed library 11851 # when we should be linking with a yet-to-be-installed one 11852 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11853 test "$hardcode_minus_L" != no; then 11854 # Linking always hardcodes the temporary library directory. 11855 hardcode_action=relink 11856 else 11857 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11858 hardcode_action=immediate 11859 fi 11860else 11861 # We cannot hardcode anything, or else we can only hardcode existing 11862 # directories. 11863 hardcode_action=unsupported 11864fi 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11866$as_echo "$hardcode_action" >&6; } 11867 11868if test "$hardcode_action" = relink || 11869 test "$inherit_rpath" = yes; then 11870 # Fast installation is not supported 11871 enable_fast_install=no 11872elif test "$shlibpath_overrides_runpath" = yes || 11873 test "$enable_shared" = no; then 11874 # Fast installation is not necessary 11875 enable_fast_install=needless 11876fi 11877 11878 11879 11880 11881 11882 11883 if test "x$enable_dlopen" != xyes; then 11884 enable_dlopen=unknown 11885 enable_dlopen_self=unknown 11886 enable_dlopen_self_static=unknown 11887else 11888 lt_cv_dlopen=no 11889 lt_cv_dlopen_libs= 11890 11891 case $host_os in 11892 beos*) 11893 lt_cv_dlopen="load_add_on" 11894 lt_cv_dlopen_libs= 11895 lt_cv_dlopen_self=yes 11896 ;; 11897 11898 mingw* | pw32* | cegcc*) 11899 lt_cv_dlopen="LoadLibrary" 11900 lt_cv_dlopen_libs= 11901 ;; 11902 11903 cygwin*) 11904 lt_cv_dlopen="dlopen" 11905 lt_cv_dlopen_libs= 11906 ;; 11907 11908 darwin*) 11909 # if libdl is installed we need to link against it 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11911$as_echo_n "checking for dlopen in -ldl... " >&6; } 11912if ${ac_cv_lib_dl_dlopen+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914else 11915 ac_check_lib_save_LIBS=$LIBS 11916LIBS="-ldl $LIBS" 11917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11918/* end confdefs.h. */ 11919 11920/* Override any GCC internal prototype to avoid an error. 11921 Use char because int might match the return type of a GCC 11922 builtin and then its argument prototype would still apply. */ 11923#ifdef __cplusplus 11924extern "C" 11925#endif 11926char dlopen (); 11927int 11928main () 11929{ 11930return dlopen (); 11931 ; 11932 return 0; 11933} 11934_ACEOF 11935if ac_fn_c_try_link "$LINENO"; then : 11936 ac_cv_lib_dl_dlopen=yes 11937else 11938 ac_cv_lib_dl_dlopen=no 11939fi 11940rm -f core conftest.err conftest.$ac_objext \ 11941 conftest$ac_exeext conftest.$ac_ext 11942LIBS=$ac_check_lib_save_LIBS 11943fi 11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11945$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11946if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11948else 11949 11950 lt_cv_dlopen="dyld" 11951 lt_cv_dlopen_libs= 11952 lt_cv_dlopen_self=yes 11953 11954fi 11955 11956 ;; 11957 11958 *) 11959 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11960if test "x$ac_cv_func_shl_load" = xyes; then : 11961 lt_cv_dlopen="shl_load" 11962else 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11964$as_echo_n "checking for shl_load in -ldld... " >&6; } 11965if ${ac_cv_lib_dld_shl_load+:} false; then : 11966 $as_echo_n "(cached) " >&6 11967else 11968 ac_check_lib_save_LIBS=$LIBS 11969LIBS="-ldld $LIBS" 11970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11971/* end confdefs.h. */ 11972 11973/* Override any GCC internal prototype to avoid an error. 11974 Use char because int might match the return type of a GCC 11975 builtin and then its argument prototype would still apply. */ 11976#ifdef __cplusplus 11977extern "C" 11978#endif 11979char shl_load (); 11980int 11981main () 11982{ 11983return shl_load (); 11984 ; 11985 return 0; 11986} 11987_ACEOF 11988if ac_fn_c_try_link "$LINENO"; then : 11989 ac_cv_lib_dld_shl_load=yes 11990else 11991 ac_cv_lib_dld_shl_load=no 11992fi 11993rm -f core conftest.err conftest.$ac_objext \ 11994 conftest$ac_exeext conftest.$ac_ext 11995LIBS=$ac_check_lib_save_LIBS 11996fi 11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11998$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11999if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12000 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12001else 12002 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12003if test "x$ac_cv_func_dlopen" = xyes; then : 12004 lt_cv_dlopen="dlopen" 12005else 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12007$as_echo_n "checking for dlopen in -ldl... " >&6; } 12008if ${ac_cv_lib_dl_dlopen+:} false; then : 12009 $as_echo_n "(cached) " >&6 12010else 12011 ac_check_lib_save_LIBS=$LIBS 12012LIBS="-ldl $LIBS" 12013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12014/* end confdefs.h. */ 12015 12016/* Override any GCC internal prototype to avoid an error. 12017 Use char because int might match the return type of a GCC 12018 builtin and then its argument prototype would still apply. */ 12019#ifdef __cplusplus 12020extern "C" 12021#endif 12022char dlopen (); 12023int 12024main () 12025{ 12026return dlopen (); 12027 ; 12028 return 0; 12029} 12030_ACEOF 12031if ac_fn_c_try_link "$LINENO"; then : 12032 ac_cv_lib_dl_dlopen=yes 12033else 12034 ac_cv_lib_dl_dlopen=no 12035fi 12036rm -f core conftest.err conftest.$ac_objext \ 12037 conftest$ac_exeext conftest.$ac_ext 12038LIBS=$ac_check_lib_save_LIBS 12039fi 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12041$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12042if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12044else 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12046$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12047if ${ac_cv_lib_svld_dlopen+:} false; then : 12048 $as_echo_n "(cached) " >&6 12049else 12050 ac_check_lib_save_LIBS=$LIBS 12051LIBS="-lsvld $LIBS" 12052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12053/* end confdefs.h. */ 12054 12055/* Override any GCC internal prototype to avoid an error. 12056 Use char because int might match the return type of a GCC 12057 builtin and then its argument prototype would still apply. */ 12058#ifdef __cplusplus 12059extern "C" 12060#endif 12061char dlopen (); 12062int 12063main () 12064{ 12065return dlopen (); 12066 ; 12067 return 0; 12068} 12069_ACEOF 12070if ac_fn_c_try_link "$LINENO"; then : 12071 ac_cv_lib_svld_dlopen=yes 12072else 12073 ac_cv_lib_svld_dlopen=no 12074fi 12075rm -f core conftest.err conftest.$ac_objext \ 12076 conftest$ac_exeext conftest.$ac_ext 12077LIBS=$ac_check_lib_save_LIBS 12078fi 12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12080$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12081if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12083else 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12085$as_echo_n "checking for dld_link in -ldld... " >&6; } 12086if ${ac_cv_lib_dld_dld_link+:} false; then : 12087 $as_echo_n "(cached) " >&6 12088else 12089 ac_check_lib_save_LIBS=$LIBS 12090LIBS="-ldld $LIBS" 12091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12092/* end confdefs.h. */ 12093 12094/* Override any GCC internal prototype to avoid an error. 12095 Use char because int might match the return type of a GCC 12096 builtin and then its argument prototype would still apply. */ 12097#ifdef __cplusplus 12098extern "C" 12099#endif 12100char dld_link (); 12101int 12102main () 12103{ 12104return dld_link (); 12105 ; 12106 return 0; 12107} 12108_ACEOF 12109if ac_fn_c_try_link "$LINENO"; then : 12110 ac_cv_lib_dld_dld_link=yes 12111else 12112 ac_cv_lib_dld_dld_link=no 12113fi 12114rm -f core conftest.err conftest.$ac_objext \ 12115 conftest$ac_exeext conftest.$ac_ext 12116LIBS=$ac_check_lib_save_LIBS 12117fi 12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12119$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12120if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12121 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12122fi 12123 12124 12125fi 12126 12127 12128fi 12129 12130 12131fi 12132 12133 12134fi 12135 12136 12137fi 12138 12139 ;; 12140 esac 12141 12142 if test "x$lt_cv_dlopen" != xno; then 12143 enable_dlopen=yes 12144 else 12145 enable_dlopen=no 12146 fi 12147 12148 case $lt_cv_dlopen in 12149 dlopen) 12150 save_CPPFLAGS="$CPPFLAGS" 12151 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12152 12153 save_LDFLAGS="$LDFLAGS" 12154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12155 12156 save_LIBS="$LIBS" 12157 LIBS="$lt_cv_dlopen_libs $LIBS" 12158 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12160$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12161if ${lt_cv_dlopen_self+:} false; then : 12162 $as_echo_n "(cached) " >&6 12163else 12164 if test "$cross_compiling" = yes; then : 12165 lt_cv_dlopen_self=cross 12166else 12167 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12168 lt_status=$lt_dlunknown 12169 cat > conftest.$ac_ext <<_LT_EOF 12170#line $LINENO "configure" 12171#include "confdefs.h" 12172 12173#if HAVE_DLFCN_H 12174#include <dlfcn.h> 12175#endif 12176 12177#include <stdio.h> 12178 12179#ifdef RTLD_GLOBAL 12180# define LT_DLGLOBAL RTLD_GLOBAL 12181#else 12182# ifdef DL_GLOBAL 12183# define LT_DLGLOBAL DL_GLOBAL 12184# else 12185# define LT_DLGLOBAL 0 12186# endif 12187#endif 12188 12189/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12190 find out it does not work in some platform. */ 12191#ifndef LT_DLLAZY_OR_NOW 12192# ifdef RTLD_LAZY 12193# define LT_DLLAZY_OR_NOW RTLD_LAZY 12194# else 12195# ifdef DL_LAZY 12196# define LT_DLLAZY_OR_NOW DL_LAZY 12197# else 12198# ifdef RTLD_NOW 12199# define LT_DLLAZY_OR_NOW RTLD_NOW 12200# else 12201# ifdef DL_NOW 12202# define LT_DLLAZY_OR_NOW DL_NOW 12203# else 12204# define LT_DLLAZY_OR_NOW 0 12205# endif 12206# endif 12207# endif 12208# endif 12209#endif 12210 12211/* When -fvisbility=hidden is used, assume the code has been annotated 12212 correspondingly for the symbols needed. */ 12213#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12214int fnord () __attribute__((visibility("default"))); 12215#endif 12216 12217int fnord () { return 42; } 12218int main () 12219{ 12220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12221 int status = $lt_dlunknown; 12222 12223 if (self) 12224 { 12225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12226 else 12227 { 12228 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12229 else puts (dlerror ()); 12230 } 12231 /* dlclose (self); */ 12232 } 12233 else 12234 puts (dlerror ()); 12235 12236 return status; 12237} 12238_LT_EOF 12239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12240 (eval $ac_link) 2>&5 12241 ac_status=$? 12242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12243 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12244 (./conftest; exit; ) >&5 2>/dev/null 12245 lt_status=$? 12246 case x$lt_status in 12247 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12248 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12249 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12250 esac 12251 else : 12252 # compilation failed 12253 lt_cv_dlopen_self=no 12254 fi 12255fi 12256rm -fr conftest* 12257 12258 12259fi 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12261$as_echo "$lt_cv_dlopen_self" >&6; } 12262 12263 if test "x$lt_cv_dlopen_self" = xyes; then 12264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12266$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12267if ${lt_cv_dlopen_self_static+:} false; then : 12268 $as_echo_n "(cached) " >&6 12269else 12270 if test "$cross_compiling" = yes; then : 12271 lt_cv_dlopen_self_static=cross 12272else 12273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12274 lt_status=$lt_dlunknown 12275 cat > conftest.$ac_ext <<_LT_EOF 12276#line $LINENO "configure" 12277#include "confdefs.h" 12278 12279#if HAVE_DLFCN_H 12280#include <dlfcn.h> 12281#endif 12282 12283#include <stdio.h> 12284 12285#ifdef RTLD_GLOBAL 12286# define LT_DLGLOBAL RTLD_GLOBAL 12287#else 12288# ifdef DL_GLOBAL 12289# define LT_DLGLOBAL DL_GLOBAL 12290# else 12291# define LT_DLGLOBAL 0 12292# endif 12293#endif 12294 12295/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12296 find out it does not work in some platform. */ 12297#ifndef LT_DLLAZY_OR_NOW 12298# ifdef RTLD_LAZY 12299# define LT_DLLAZY_OR_NOW RTLD_LAZY 12300# else 12301# ifdef DL_LAZY 12302# define LT_DLLAZY_OR_NOW DL_LAZY 12303# else 12304# ifdef RTLD_NOW 12305# define LT_DLLAZY_OR_NOW RTLD_NOW 12306# else 12307# ifdef DL_NOW 12308# define LT_DLLAZY_OR_NOW DL_NOW 12309# else 12310# define LT_DLLAZY_OR_NOW 0 12311# endif 12312# endif 12313# endif 12314# endif 12315#endif 12316 12317/* When -fvisbility=hidden is used, assume the code has been annotated 12318 correspondingly for the symbols needed. */ 12319#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12320int fnord () __attribute__((visibility("default"))); 12321#endif 12322 12323int fnord () { return 42; } 12324int main () 12325{ 12326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12327 int status = $lt_dlunknown; 12328 12329 if (self) 12330 { 12331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12332 else 12333 { 12334 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12335 else puts (dlerror ()); 12336 } 12337 /* dlclose (self); */ 12338 } 12339 else 12340 puts (dlerror ()); 12341 12342 return status; 12343} 12344_LT_EOF 12345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12346 (eval $ac_link) 2>&5 12347 ac_status=$? 12348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12349 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12350 (./conftest; exit; ) >&5 2>/dev/null 12351 lt_status=$? 12352 case x$lt_status in 12353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12356 esac 12357 else : 12358 # compilation failed 12359 lt_cv_dlopen_self_static=no 12360 fi 12361fi 12362rm -fr conftest* 12363 12364 12365fi 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12367$as_echo "$lt_cv_dlopen_self_static" >&6; } 12368 fi 12369 12370 CPPFLAGS="$save_CPPFLAGS" 12371 LDFLAGS="$save_LDFLAGS" 12372 LIBS="$save_LIBS" 12373 ;; 12374 esac 12375 12376 case $lt_cv_dlopen_self in 12377 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12378 *) enable_dlopen_self=unknown ;; 12379 esac 12380 12381 case $lt_cv_dlopen_self_static in 12382 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12383 *) enable_dlopen_self_static=unknown ;; 12384 esac 12385fi 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403striplib= 12404old_striplib= 12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12406$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12407if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12409 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12411$as_echo "yes" >&6; } 12412else 12413# FIXME - insert some real tests, host_os isn't really good enough 12414 case $host_os in 12415 darwin*) 12416 if test -n "$STRIP" ; then 12417 striplib="$STRIP -x" 12418 old_striplib="$STRIP -S" 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12420$as_echo "yes" >&6; } 12421 else 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12423$as_echo "no" >&6; } 12424 fi 12425 ;; 12426 *) 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12428$as_echo "no" >&6; } 12429 ;; 12430 esac 12431fi 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 # Report which library types will actually be built 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12446$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12448$as_echo "$can_build_shared" >&6; } 12449 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12451$as_echo_n "checking whether to build shared libraries... " >&6; } 12452 test "$can_build_shared" = "no" && enable_shared=no 12453 12454 # On AIX, shared libraries and static libraries use the same namespace, and 12455 # are all built from PIC. 12456 case $host_os in 12457 aix3*) 12458 test "$enable_shared" = yes && enable_static=no 12459 if test -n "$RANLIB"; then 12460 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12461 postinstall_cmds='$RANLIB $lib' 12462 fi 12463 ;; 12464 12465 aix[4-9]*) 12466 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12467 test "$enable_shared" = yes && enable_static=no 12468 fi 12469 ;; 12470 esac 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12472$as_echo "$enable_shared" >&6; } 12473 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12475$as_echo_n "checking whether to build static libraries... " >&6; } 12476 # Make sure either enable_shared or enable_static is yes. 12477 test "$enable_shared" = yes || enable_static=yes 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12479$as_echo "$enable_static" >&6; } 12480 12481 12482 12483 12484fi 12485ac_ext=c 12486ac_cpp='$CPP $CPPFLAGS' 12487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12489ac_compiler_gnu=$ac_cv_c_compiler_gnu 12490 12491CC="$lt_save_CC" 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 ac_config_commands="$ac_config_commands libtool" 12508 12509 12510 12511 12512# Only expand once: 12513 12514 12515 12516 12517 CFLAG_VISIBILITY= 12518 HAVE_VISIBILITY=0 12519 if test -n "$GCC"; then 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 12521$as_echo_n "checking whether the -Werror option is usable... " >&6; } 12522 if ${gl_cv_cc_vis_werror+:} false; then : 12523 $as_echo_n "(cached) " >&6 12524else 12525 12526 gl_save_CFLAGS="$CFLAGS" 12527 CFLAGS="$CFLAGS -Werror" 12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529/* end confdefs.h. */ 12530 12531int 12532main () 12533{ 12534 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539if ac_fn_c_try_compile "$LINENO"; then : 12540 gl_cv_cc_vis_werror=yes 12541else 12542 gl_cv_cc_vis_werror=no 12543fi 12544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12545 CFLAGS="$gl_save_CFLAGS" 12546fi 12547 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 12549$as_echo "$gl_cv_cc_vis_werror" >&6; } 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 12551$as_echo_n "checking for simple visibility declarations... " >&6; } 12552 if ${gl_cv_cc_visibility+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554else 12555 12556 gl_save_CFLAGS="$CFLAGS" 12557 CFLAGS="$CFLAGS -fvisibility=hidden" 12558 if test $gl_cv_cc_vis_werror = yes; then 12559 CFLAGS="$CFLAGS -Werror" 12560 fi 12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12562/* end confdefs.h. */ 12563extern __attribute__((__visibility__("hidden"))) int hiddenvar; 12564 extern __attribute__((__visibility__("default"))) int exportedvar; 12565 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 12566 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 12567 void dummyfunc (void) {} 12568 12569int 12570main () 12571{ 12572 12573 ; 12574 return 0; 12575} 12576_ACEOF 12577if ac_fn_c_try_compile "$LINENO"; then : 12578 gl_cv_cc_visibility=yes 12579else 12580 gl_cv_cc_visibility=no 12581fi 12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12583 CFLAGS="$gl_save_CFLAGS" 12584fi 12585 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 12587$as_echo "$gl_cv_cc_visibility" >&6; } 12588 if test $gl_cv_cc_visibility = yes; then 12589 CFLAG_VISIBILITY="-fvisibility=hidden" 12590 HAVE_VISIBILITY=1 12591 fi 12592 fi 12593 12594 12595 12596cat >>confdefs.h <<_ACEOF 12597#define HAVE_VISIBILITY $HAVE_VISIBILITY 12598_ACEOF 12599 12600 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12602$as_echo_n "checking for ANSI C header files... " >&6; } 12603if ${ac_cv_header_stdc+:} false; then : 12604 $as_echo_n "(cached) " >&6 12605else 12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12607/* end confdefs.h. */ 12608#include <stdlib.h> 12609#include <stdarg.h> 12610#include <string.h> 12611#include <float.h> 12612 12613int 12614main () 12615{ 12616 12617 ; 12618 return 0; 12619} 12620_ACEOF 12621if ac_fn_c_try_compile "$LINENO"; then : 12622 ac_cv_header_stdc=yes 12623else 12624 ac_cv_header_stdc=no 12625fi 12626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12627 12628if test $ac_cv_header_stdc = yes; then 12629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632#include <string.h> 12633 12634_ACEOF 12635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12636 $EGREP "memchr" >/dev/null 2>&1; then : 12637 12638else 12639 ac_cv_header_stdc=no 12640fi 12641rm -f conftest* 12642 12643fi 12644 12645if test $ac_cv_header_stdc = yes; then 12646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649#include <stdlib.h> 12650 12651_ACEOF 12652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12653 $EGREP "free" >/dev/null 2>&1; then : 12654 12655else 12656 ac_cv_header_stdc=no 12657fi 12658rm -f conftest* 12659 12660fi 12661 12662if test $ac_cv_header_stdc = yes; then 12663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12664 if test "$cross_compiling" = yes; then : 12665 : 12666else 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669#include <ctype.h> 12670#include <stdlib.h> 12671#if ((' ' & 0x0FF) == 0x020) 12672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12674#else 12675# define ISLOWER(c) \ 12676 (('a' <= (c) && (c) <= 'i') \ 12677 || ('j' <= (c) && (c) <= 'r') \ 12678 || ('s' <= (c) && (c) <= 'z')) 12679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12680#endif 12681 12682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12683int 12684main () 12685{ 12686 int i; 12687 for (i = 0; i < 256; i++) 12688 if (XOR (islower (i), ISLOWER (i)) 12689 || toupper (i) != TOUPPER (i)) 12690 return 2; 12691 return 0; 12692} 12693_ACEOF 12694if ac_fn_c_try_run "$LINENO"; then : 12695 12696else 12697 ac_cv_header_stdc=no 12698fi 12699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12700 conftest.$ac_objext conftest.beam conftest.$ac_ext 12701fi 12702 12703fi 12704fi 12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12706$as_echo "$ac_cv_header_stdc" >&6; } 12707if test $ac_cv_header_stdc = yes; then 12708 12709$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12710 12711fi 12712 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 12714$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 12715if ${ac_cv_header_sys_types_h_makedev+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717else 12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12719/* end confdefs.h. */ 12720#include <sys/types.h> 12721int 12722main () 12723{ 12724return makedev(0, 0); 12725 ; 12726 return 0; 12727} 12728_ACEOF 12729if ac_fn_c_try_link "$LINENO"; then : 12730 ac_cv_header_sys_types_h_makedev=yes 12731else 12732 ac_cv_header_sys_types_h_makedev=no 12733fi 12734rm -f core conftest.err conftest.$ac_objext \ 12735 conftest$ac_exeext conftest.$ac_ext 12736 12737fi 12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 12739$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 12740 12741if test $ac_cv_header_sys_types_h_makedev = no; then 12742ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 12743if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 12744 12745$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 12746 12747fi 12748 12749 12750 12751 if test $ac_cv_header_sys_mkdev_h = no; then 12752 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 12753if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 12754 12755$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 12756 12757fi 12758 12759 12760 fi 12761fi 12762 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12764$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12765if ${ac_cv_header_sys_wait_h+:} false; then : 12766 $as_echo_n "(cached) " >&6 12767else 12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770#include <sys/types.h> 12771#include <sys/wait.h> 12772#ifndef WEXITSTATUS 12773# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12774#endif 12775#ifndef WIFEXITED 12776# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12777#endif 12778 12779int 12780main () 12781{ 12782 int s; 12783 wait (&s); 12784 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12785 ; 12786 return 0; 12787} 12788_ACEOF 12789if ac_fn_c_try_compile "$LINENO"; then : 12790 ac_cv_header_sys_wait_h=yes 12791else 12792 ac_cv_header_sys_wait_h=no 12793fi 12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12795fi 12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12797$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12798if test $ac_cv_header_sys_wait_h = yes; then 12799 12800$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12801 12802fi 12803 12804for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h 12805do : 12806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12809 cat >>confdefs.h <<_ACEOF 12810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12811_ACEOF 12812 12813fi 12814 12815done 12816 12817for ac_header in stddef.h utime.h wchar.h wctype.h limits.h 12818do : 12819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12820ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12821if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12822 cat >>confdefs.h <<_ACEOF 12823#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12824_ACEOF 12825 12826fi 12827 12828done 12829 12830for ac_header in getopt.h err.h xlocale.h signal.h 12831do : 12832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12833ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12835 cat >>confdefs.h <<_ACEOF 12836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12837_ACEOF 12838 12839fi 12840 12841done 12842 12843for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h 12844do : 12845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12846ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12848 cat >>confdefs.h <<_ACEOF 12849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12850_ACEOF 12851 12852fi 12853 12854done 12855 12856if test "$enable_zlib" != "no"; then 12857 for ac_header in zlib.h 12858do : 12859 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12860if test "x$ac_cv_header_zlib_h" = xyes; then : 12861 cat >>confdefs.h <<_ACEOF 12862#define HAVE_ZLIB_H 1 12863_ACEOF 12864 12865fi 12866 12867done 12868 12869fi 12870ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" " 12871#ifdef HAVE_SIGNAL_H 12872#include <signal.h> 12873#endif 12874" 12875if test "x$ac_cv_type_sig_t" = xyes; then : 12876 12877$as_echo "#define HAVE_SIG_T 1" >>confdefs.h 12878 12879fi 12880 12881 12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12883$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12884if ${ac_cv_c_const+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889 12890int 12891main () 12892{ 12893 12894#ifndef __cplusplus 12895 /* Ultrix mips cc rejects this sort of thing. */ 12896 typedef int charset[2]; 12897 const charset cs = { 0, 0 }; 12898 /* SunOS 4.1.1 cc rejects this. */ 12899 char const *const *pcpcc; 12900 char **ppc; 12901 /* NEC SVR4.0.2 mips cc rejects this. */ 12902 struct point {int x, y;}; 12903 static struct point const zero = {0,0}; 12904 /* AIX XL C 1.02.0.0 rejects this. 12905 It does not let you subtract one const X* pointer from another in 12906 an arm of an if-expression whose if-part is not a constant 12907 expression */ 12908 const char *g = "string"; 12909 pcpcc = &g + (g ? g-g : 0); 12910 /* HPUX 7.0 cc rejects these. */ 12911 ++pcpcc; 12912 ppc = (char**) pcpcc; 12913 pcpcc = (char const *const *) ppc; 12914 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12915 char tx; 12916 char *t = &tx; 12917 char const *s = 0 ? (char *) 0 : (char const *) 0; 12918 12919 *t++ = 0; 12920 if (s) return 0; 12921 } 12922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12923 int x[] = {25, 17}; 12924 const int *foo = &x[0]; 12925 ++foo; 12926 } 12927 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12928 typedef const int *iptr; 12929 iptr p = 0; 12930 ++p; 12931 } 12932 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12933 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12934 struct s { int j; const int *ap[3]; } bx; 12935 struct s *b = &bx; b->j = 5; 12936 } 12937 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12938 const int foo = 10; 12939 if (!foo) return 0; 12940 } 12941 return !cs[0] && !zero.x; 12942#endif 12943 12944 ; 12945 return 0; 12946} 12947_ACEOF 12948if ac_fn_c_try_compile "$LINENO"; then : 12949 ac_cv_c_const=yes 12950else 12951 ac_cv_c_const=no 12952fi 12953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12954fi 12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12956$as_echo "$ac_cv_c_const" >&6; } 12957if test $ac_cv_c_const = no; then 12958 12959$as_echo "#define const /**/" >>confdefs.h 12960 12961fi 12962 12963ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12964if test "x$ac_cv_type_off_t" = xyes; then : 12965 12966else 12967 12968cat >>confdefs.h <<_ACEOF 12969#define off_t long int 12970_ACEOF 12971 12972fi 12973 12974ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12975if test "x$ac_cv_type_size_t" = xyes; then : 12976 12977else 12978 12979cat >>confdefs.h <<_ACEOF 12980#define size_t unsigned int 12981_ACEOF 12982 12983fi 12984 12985ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12986if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12987 12988cat >>confdefs.h <<_ACEOF 12989#define HAVE_STRUCT_STAT_ST_RDEV 1 12990_ACEOF 12991 12992 12993fi 12994 12995 12996ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default" 12997if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 12998 12999cat >>confdefs.h <<_ACEOF 13000#define HAVE_STRUCT_TM_TM_GMTOFF 1 13001_ACEOF 13002 13003 13004fi 13005 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13007$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13008if ${ac_cv_struct_tm+:} false; then : 13009 $as_echo_n "(cached) " >&6 13010else 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013#include <sys/types.h> 13014#include <time.h> 13015 13016int 13017main () 13018{ 13019struct tm tm; 13020 int *p = &tm.tm_sec; 13021 return !p; 13022 ; 13023 return 0; 13024} 13025_ACEOF 13026if ac_fn_c_try_compile "$LINENO"; then : 13027 ac_cv_struct_tm=time.h 13028else 13029 ac_cv_struct_tm=sys/time.h 13030fi 13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13032fi 13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13034$as_echo "$ac_cv_struct_tm" >&6; } 13035if test $ac_cv_struct_tm = sys/time.h; then 13036 13037$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13038 13039fi 13040 13041ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13042#include <$ac_cv_struct_tm> 13043 13044" 13045if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13046 13047cat >>confdefs.h <<_ACEOF 13048#define HAVE_STRUCT_TM_TM_ZONE 1 13049_ACEOF 13050 13051 13052fi 13053 13054if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13055 13056$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13057 13058else 13059 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13060" 13061if test "x$ac_cv_have_decl_tzname" = xyes; then : 13062 ac_have_decl=1 13063else 13064 ac_have_decl=0 13065fi 13066 13067cat >>confdefs.h <<_ACEOF 13068#define HAVE_DECL_TZNAME $ac_have_decl 13069_ACEOF 13070 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13072$as_echo_n "checking for tzname... " >&6; } 13073if ${ac_cv_var_tzname+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075else 13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13077/* end confdefs.h. */ 13078#include <time.h> 13079#if !HAVE_DECL_TZNAME 13080extern char *tzname[]; 13081#endif 13082 13083int 13084main () 13085{ 13086return tzname[0][0]; 13087 ; 13088 return 0; 13089} 13090_ACEOF 13091if ac_fn_c_try_link "$LINENO"; then : 13092 ac_cv_var_tzname=yes 13093else 13094 ac_cv_var_tzname=no 13095fi 13096rm -f core conftest.err conftest.$ac_objext \ 13097 conftest$ac_exeext conftest.$ac_ext 13098fi 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13100$as_echo "$ac_cv_var_tzname" >&6; } 13101 if test $ac_cv_var_tzname = yes; then 13102 13103$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13104 13105 fi 13106fi 13107 13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 13109$as_echo_n "checking for tm_zone in struct tm... " >&6; } 13110if ${ac_cv_struct_tm_zone+:} false; then : 13111 $as_echo_n "(cached) " >&6 13112else 13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13114/* end confdefs.h. */ 13115#include <sys/types.h> 13116#include <$ac_cv_struct_tm> 13117int 13118main () 13119{ 13120struct tm tm; tm.tm_zone; 13121 ; 13122 return 0; 13123} 13124_ACEOF 13125if ac_fn_c_try_compile "$LINENO"; then : 13126 ac_cv_struct_tm_zone=yes 13127else 13128 ac_cv_struct_tm_zone=no 13129fi 13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13131fi 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 13133$as_echo "$ac_cv_struct_tm_zone" >&6; } 13134if test "$ac_cv_struct_tm_zone" = yes; then 13135 13136$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13137 13138fi 13139 13140# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 13141# consider it declared and we won't give our own extern. 13142ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13143" 13144if test "x$ac_cv_have_decl_tzname" = xyes; then : 13145 ac_have_decl=1 13146else 13147 ac_have_decl=0 13148fi 13149 13150cat >>confdefs.h <<_ACEOF 13151#define HAVE_DECL_TZNAME $ac_have_decl 13152_ACEOF 13153 13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13155$as_echo_n "checking for tzname... " >&6; } 13156if ${ac_cv_var_tzname+:} false; then : 13157 $as_echo_n "(cached) " >&6 13158else 13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161#include <time.h> 13162#if !HAVE_DECL_TZNAME 13163extern char *tzname[]; 13164#endif 13165int 13166main () 13167{ 13168return tzname[0][0]; 13169 ; 13170 return 0; 13171} 13172_ACEOF 13173if ac_fn_c_try_link "$LINENO"; then : 13174 ac_cv_var_tzname=yes 13175else 13176 ac_cv_var_tzname=no 13177fi 13178rm -f core conftest.err conftest.$ac_objext \ 13179 conftest$ac_exeext conftest.$ac_ext 13180fi 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13182$as_echo "$ac_cv_var_tzname" >&6; } 13183 if test $ac_cv_var_tzname = yes; then 13184 13185$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13186 13187 fi 13188 13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 13190$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 13191if ${ac_cv_struct_tm_isdst+:} false; then : 13192 $as_echo_n "(cached) " >&6 13193else 13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13195/* end confdefs.h. */ 13196#include <sys/types.h> 13197#include <$ac_cv_struct_tm> 13198int 13199main () 13200{ 13201struct tm tm; tm.tm_isdst; 13202 ; 13203 return 0; 13204} 13205_ACEOF 13206if ac_fn_c_try_compile "$LINENO"; then : 13207 ac_cv_struct_tm_isdst=yes 13208else 13209 ac_cv_struct_tm_isdst=no 13210fi 13211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13212fi 13213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 13214$as_echo "$ac_cv_struct_tm_isdst" >&6; } 13215if test "$ac_cv_struct_tm_isdst" = yes; then 13216 13217$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 13218 13219fi 13220 13221 13222ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 13223" 13224if test "x$ac_cv_have_decl_daylight" = xyes; then : 13225 ac_have_decl=1 13226else 13227 ac_have_decl=0 13228fi 13229 13230cat >>confdefs.h <<_ACEOF 13231#define HAVE_DECL_DAYLIGHT $ac_have_decl 13232_ACEOF 13233 13234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 13235$as_echo_n "checking for daylight... " >&6; } 13236if ${ac_cv_var_daylight+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238else 13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13240/* end confdefs.h. */ 13241#include <time.h> 13242#if !HAVE_DECL_DAYLIGHT 13243extern int daylight; 13244#endif 13245int 13246main () 13247{ 13248atoi(daylight); 13249 ; 13250 return 0; 13251} 13252_ACEOF 13253if ac_fn_c_try_link "$LINENO"; then : 13254 ac_cv_var_daylight=yes 13255else 13256 ac_cv_var_daylight=no 13257fi 13258rm -f core conftest.err conftest.$ac_objext \ 13259 conftest$ac_exeext conftest.$ac_ext 13260fi 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 13262$as_echo "$ac_cv_var_daylight" >&6; } 13263 if test $ac_cv_var_daylight = yes; then 13264 13265$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 13266 13267 fi 13268 13269# Check whether --enable-largefile was given. 13270if test "${enable_largefile+set}" = set; then : 13271 enableval=$enable_largefile; 13272fi 13273 13274if test "$enable_largefile" != no; then 13275 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13277$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13278if ${ac_cv_sys_largefile_CC+:} false; then : 13279 $as_echo_n "(cached) " >&6 13280else 13281 ac_cv_sys_largefile_CC=no 13282 if test "$GCC" != yes; then 13283 ac_save_CC=$CC 13284 while :; do 13285 # IRIX 6.2 and later do not support large files by default, 13286 # so use the C compiler's -n32 option if that helps. 13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13288/* end confdefs.h. */ 13289#include <sys/types.h> 13290 /* Check that off_t can represent 2**63 - 1 correctly. 13291 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13292 since some C++ compilers masquerading as C compilers 13293 incorrectly reject 9223372036854775807. */ 13294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13296 && LARGE_OFF_T % 2147483647 == 1) 13297 ? 1 : -1]; 13298int 13299main () 13300{ 13301 13302 ; 13303 return 0; 13304} 13305_ACEOF 13306 if ac_fn_c_try_compile "$LINENO"; then : 13307 break 13308fi 13309rm -f core conftest.err conftest.$ac_objext 13310 CC="$CC -n32" 13311 if ac_fn_c_try_compile "$LINENO"; then : 13312 ac_cv_sys_largefile_CC=' -n32'; break 13313fi 13314rm -f core conftest.err conftest.$ac_objext 13315 break 13316 done 13317 CC=$ac_save_CC 13318 rm -f conftest.$ac_ext 13319 fi 13320fi 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13322$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13323 if test "$ac_cv_sys_largefile_CC" != no; then 13324 CC=$CC$ac_cv_sys_largefile_CC 13325 fi 13326 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13328$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13329if ${ac_cv_sys_file_offset_bits+:} false; then : 13330 $as_echo_n "(cached) " >&6 13331else 13332 while :; do 13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335#include <sys/types.h> 13336 /* Check that off_t can represent 2**63 - 1 correctly. 13337 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13338 since some C++ compilers masquerading as C compilers 13339 incorrectly reject 9223372036854775807. */ 13340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13342 && LARGE_OFF_T % 2147483647 == 1) 13343 ? 1 : -1]; 13344int 13345main () 13346{ 13347 13348 ; 13349 return 0; 13350} 13351_ACEOF 13352if ac_fn_c_try_compile "$LINENO"; then : 13353 ac_cv_sys_file_offset_bits=no; break 13354fi 13355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13357/* end confdefs.h. */ 13358#define _FILE_OFFSET_BITS 64 13359#include <sys/types.h> 13360 /* Check that off_t can represent 2**63 - 1 correctly. 13361 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13362 since some C++ compilers masquerading as C compilers 13363 incorrectly reject 9223372036854775807. */ 13364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13366 && LARGE_OFF_T % 2147483647 == 1) 13367 ? 1 : -1]; 13368int 13369main () 13370{ 13371 13372 ; 13373 return 0; 13374} 13375_ACEOF 13376if ac_fn_c_try_compile "$LINENO"; then : 13377 ac_cv_sys_file_offset_bits=64; break 13378fi 13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13380 ac_cv_sys_file_offset_bits=unknown 13381 break 13382done 13383fi 13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13385$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13386case $ac_cv_sys_file_offset_bits in #( 13387 no | unknown) ;; 13388 *) 13389cat >>confdefs.h <<_ACEOF 13390#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13391_ACEOF 13392;; 13393esac 13394rm -rf conftest* 13395 if test $ac_cv_sys_file_offset_bits = unknown; then 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13397$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13398if ${ac_cv_sys_large_files+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400else 13401 while :; do 13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13403/* end confdefs.h. */ 13404#include <sys/types.h> 13405 /* Check that off_t can represent 2**63 - 1 correctly. 13406 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13407 since some C++ compilers masquerading as C compilers 13408 incorrectly reject 9223372036854775807. */ 13409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13411 && LARGE_OFF_T % 2147483647 == 1) 13412 ? 1 : -1]; 13413int 13414main () 13415{ 13416 13417 ; 13418 return 0; 13419} 13420_ACEOF 13421if ac_fn_c_try_compile "$LINENO"; then : 13422 ac_cv_sys_large_files=no; break 13423fi 13424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427#define _LARGE_FILES 1 13428#include <sys/types.h> 13429 /* Check that off_t can represent 2**63 - 1 correctly. 13430 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13431 since some C++ compilers masquerading as C compilers 13432 incorrectly reject 9223372036854775807. */ 13433#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13435 && LARGE_OFF_T % 2147483647 == 1) 13436 ? 1 : -1]; 13437int 13438main () 13439{ 13440 13441 ; 13442 return 0; 13443} 13444_ACEOF 13445if ac_fn_c_try_compile "$LINENO"; then : 13446 ac_cv_sys_large_files=1; break 13447fi 13448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13449 ac_cv_sys_large_files=unknown 13450 break 13451done 13452fi 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13454$as_echo "$ac_cv_sys_large_files" >&6; } 13455case $ac_cv_sys_large_files in #( 13456 no | unknown) ;; 13457 *) 13458cat >>confdefs.h <<_ACEOF 13459#define _LARGE_FILES $ac_cv_sys_large_files 13460_ACEOF 13461;; 13462esac 13463rm -rf conftest* 13464 fi 13465 13466 13467fi 13468 13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13470$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 13471if ${ac_cv_sys_largefile_source+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 while :; do 13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13476/* end confdefs.h. */ 13477#include <sys/types.h> /* for off_t */ 13478 #include <stdio.h> 13479int 13480main () 13481{ 13482int (*fp) (FILE *, off_t, int) = fseeko; 13483 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13484 ; 13485 return 0; 13486} 13487_ACEOF 13488if ac_fn_c_try_link "$LINENO"; then : 13489 ac_cv_sys_largefile_source=no; break 13490fi 13491rm -f core conftest.err conftest.$ac_objext \ 13492 conftest$ac_exeext conftest.$ac_ext 13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13494/* end confdefs.h. */ 13495#define _LARGEFILE_SOURCE 1 13496#include <sys/types.h> /* for off_t */ 13497 #include <stdio.h> 13498int 13499main () 13500{ 13501int (*fp) (FILE *, off_t, int) = fseeko; 13502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13503 ; 13504 return 0; 13505} 13506_ACEOF 13507if ac_fn_c_try_link "$LINENO"; then : 13508 ac_cv_sys_largefile_source=1; break 13509fi 13510rm -f core conftest.err conftest.$ac_objext \ 13511 conftest$ac_exeext conftest.$ac_ext 13512 ac_cv_sys_largefile_source=unknown 13513 break 13514done 13515fi 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13517$as_echo "$ac_cv_sys_largefile_source" >&6; } 13518case $ac_cv_sys_largefile_source in #( 13519 no | unknown) ;; 13520 *) 13521cat >>confdefs.h <<_ACEOF 13522#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13523_ACEOF 13524;; 13525esac 13526rm -rf conftest* 13527 13528# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13529# in glibc 2.1.3, but that breaks too many other things. 13530# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13531if test $ac_cv_sys_largefile_source != unknown; then 13532 13533$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 13534 13535fi 13536 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 13538$as_echo_n "checking for mbstate_t... " >&6; } 13539if ${ac_cv_type_mbstate_t+:} false; then : 13540 $as_echo_n "(cached) " >&6 13541else 13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13543/* end confdefs.h. */ 13544$ac_includes_default 13545# include <wchar.h> 13546int 13547main () 13548{ 13549mbstate_t x; return sizeof x; 13550 ; 13551 return 0; 13552} 13553_ACEOF 13554if ac_fn_c_try_compile "$LINENO"; then : 13555 ac_cv_type_mbstate_t=yes 13556else 13557 ac_cv_type_mbstate_t=no 13558fi 13559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13560fi 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 13562$as_echo "$ac_cv_type_mbstate_t" >&6; } 13563 if test $ac_cv_type_mbstate_t = yes; then 13564 13565$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 13566 13567 else 13568 13569$as_echo "#define mbstate_t int" >>confdefs.h 13570 13571 fi 13572 13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 13574$as_echo_n "checking for struct option in getopt... " >&6; } 13575if ${ac_cv_struct_option_getopt_h+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13579/* end confdefs.h. */ 13580#include <getopt.h> 13581int 13582main () 13583{ 13584struct option op; op.name; 13585 ; 13586 return 0; 13587} 13588_ACEOF 13589if ac_fn_c_try_compile "$LINENO"; then : 13590 ac_cv_struct_option_getopt_h=yes 13591else 13592 ac_cv_struct_option_getopt_h=no 13593fi 13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 13597$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 13598if test "$ac_cv_struct_option_getopt_h" = yes; then 13599 13600$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 13601 13602fi 13603 13604ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13605if test "x$ac_cv_type_pid_t" = xyes; then : 13606 13607else 13608 13609cat >>confdefs.h <<_ACEOF 13610#define pid_t int 13611_ACEOF 13612 13613fi 13614 13615ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 13616case $ac_cv_c_uint8_t in #( 13617 no|yes) ;; #( 13618 *) 13619 13620$as_echo "#define _UINT8_T 1" >>confdefs.h 13621 13622 13623cat >>confdefs.h <<_ACEOF 13624#define uint8_t $ac_cv_c_uint8_t 13625_ACEOF 13626;; 13627 esac 13628 13629ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 13630case $ac_cv_c_uint16_t in #( 13631 no|yes) ;; #( 13632 *) 13633 13634 13635cat >>confdefs.h <<_ACEOF 13636#define uint16_t $ac_cv_c_uint16_t 13637_ACEOF 13638;; 13639 esac 13640 13641ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 13642case $ac_cv_c_uint32_t in #( 13643 no|yes) ;; #( 13644 *) 13645 13646$as_echo "#define _UINT32_T 1" >>confdefs.h 13647 13648 13649cat >>confdefs.h <<_ACEOF 13650#define uint32_t $ac_cv_c_uint32_t 13651_ACEOF 13652;; 13653 esac 13654 13655ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 13656case $ac_cv_c_int32_t in #( 13657 no|yes) ;; #( 13658 *) 13659 13660cat >>confdefs.h <<_ACEOF 13661#define int32_t $ac_cv_c_int32_t 13662_ACEOF 13663;; 13664esac 13665 13666ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 13667case $ac_cv_c_uint64_t in #( 13668 no|yes) ;; #( 13669 *) 13670 13671$as_echo "#define _UINT64_T 1" >>confdefs.h 13672 13673 13674cat >>confdefs.h <<_ACEOF 13675#define uint64_t $ac_cv_c_uint64_t 13676_ACEOF 13677;; 13678 esac 13679 13680ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 13681case $ac_cv_c_int64_t in #( 13682 no|yes) ;; #( 13683 *) 13684 13685cat >>confdefs.h <<_ACEOF 13686#define int64_t $ac_cv_c_int64_t 13687_ACEOF 13688;; 13689esac 13690 13691 13692 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 13693if test "x$ac_cv_type_intptr_t" = xyes; then : 13694 13695$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 13696 13697else 13698 for ac_type in 'int' 'long int' 'long long int'; do 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701$ac_includes_default 13702int 13703main () 13704{ 13705static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13706test_array [0] = 0; 13707return test_array [0]; 13708 13709 ; 13710 return 0; 13711} 13712_ACEOF 13713if ac_fn_c_try_compile "$LINENO"; then : 13714 13715cat >>confdefs.h <<_ACEOF 13716#define intptr_t $ac_type 13717_ACEOF 13718 13719 ac_type= 13720fi 13721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13722 test -z "$ac_type" && break 13723 done 13724fi 13725 13726 13727 13728 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 13729if test "x$ac_cv_type_uintptr_t" = xyes; then : 13730 13731$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 13732 13733else 13734 for ac_type in 'unsigned int' 'unsigned long int' \ 13735 'unsigned long long int'; do 13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737/* end confdefs.h. */ 13738$ac_includes_default 13739int 13740main () 13741{ 13742static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13743test_array [0] = 0; 13744return test_array [0]; 13745 13746 ; 13747 return 0; 13748} 13749_ACEOF 13750if ac_fn_c_try_compile "$LINENO"; then : 13751 13752cat >>confdefs.h <<_ACEOF 13753#define uintptr_t $ac_type 13754_ACEOF 13755 13756 ac_type= 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759 test -z "$ac_type" && break 13760 done 13761fi 13762 13763 13764 13765 13766 13767 for ac_header in $ac_header_list 13768do : 13769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13770ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13771" 13772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13773 cat >>confdefs.h <<_ACEOF 13774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13775_ACEOF 13776 13777fi 13778 13779done 13780 13781 13782 13783 13784 13785 13786 13787 13788for ac_func in getpagesize 13789do : 13790 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13791if test "x$ac_cv_func_getpagesize" = xyes; then : 13792 cat >>confdefs.h <<_ACEOF 13793#define HAVE_GETPAGESIZE 1 13794_ACEOF 13795 13796fi 13797done 13798 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13800$as_echo_n "checking for working mmap... " >&6; } 13801if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13802 $as_echo_n "(cached) " >&6 13803else 13804 if test "$cross_compiling" = yes; then : 13805 ac_cv_func_mmap_fixed_mapped=no 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809$ac_includes_default 13810/* malloc might have been renamed as rpl_malloc. */ 13811#undef malloc 13812 13813/* Thanks to Mike Haertel and Jim Avera for this test. 13814 Here is a matrix of mmap possibilities: 13815 mmap private not fixed 13816 mmap private fixed at somewhere currently unmapped 13817 mmap private fixed at somewhere already mapped 13818 mmap shared not fixed 13819 mmap shared fixed at somewhere currently unmapped 13820 mmap shared fixed at somewhere already mapped 13821 For private mappings, we should verify that changes cannot be read() 13822 back from the file, nor mmap's back from the file at a different 13823 address. (There have been systems where private was not correctly 13824 implemented like the infamous i386 svr4.0, and systems where the 13825 VM page cache was not coherent with the file system buffer cache 13826 like early versions of FreeBSD and possibly contemporary NetBSD.) 13827 For shared mappings, we should conversely verify that changes get 13828 propagated back to all the places they're supposed to be. 13829 13830 Grep wants private fixed already mapped. 13831 The main things grep needs to know about mmap are: 13832 * does it exist and is it safe to write into the mmap'd area 13833 * how to use it (BSD variants) */ 13834 13835#include <fcntl.h> 13836#include <sys/mman.h> 13837 13838#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13839char *malloc (); 13840#endif 13841 13842/* This mess was copied from the GNU getpagesize.h. */ 13843#ifndef HAVE_GETPAGESIZE 13844# ifdef _SC_PAGESIZE 13845# define getpagesize() sysconf(_SC_PAGESIZE) 13846# else /* no _SC_PAGESIZE */ 13847# ifdef HAVE_SYS_PARAM_H 13848# include <sys/param.h> 13849# ifdef EXEC_PAGESIZE 13850# define getpagesize() EXEC_PAGESIZE 13851# else /* no EXEC_PAGESIZE */ 13852# ifdef NBPG 13853# define getpagesize() NBPG * CLSIZE 13854# ifndef CLSIZE 13855# define CLSIZE 1 13856# endif /* no CLSIZE */ 13857# else /* no NBPG */ 13858# ifdef NBPC 13859# define getpagesize() NBPC 13860# else /* no NBPC */ 13861# ifdef PAGESIZE 13862# define getpagesize() PAGESIZE 13863# endif /* PAGESIZE */ 13864# endif /* no NBPC */ 13865# endif /* no NBPG */ 13866# endif /* no EXEC_PAGESIZE */ 13867# else /* no HAVE_SYS_PARAM_H */ 13868# define getpagesize() 8192 /* punt totally */ 13869# endif /* no HAVE_SYS_PARAM_H */ 13870# endif /* no _SC_PAGESIZE */ 13871 13872#endif /* no HAVE_GETPAGESIZE */ 13873 13874int 13875main () 13876{ 13877 char *data, *data2, *data3; 13878 const char *cdata2; 13879 int i, pagesize; 13880 int fd, fd2; 13881 13882 pagesize = getpagesize (); 13883 13884 /* First, make a file with some known garbage in it. */ 13885 data = (char *) malloc (pagesize); 13886 if (!data) 13887 return 1; 13888 for (i = 0; i < pagesize; ++i) 13889 *(data + i) = rand (); 13890 umask (0); 13891 fd = creat ("conftest.mmap", 0600); 13892 if (fd < 0) 13893 return 2; 13894 if (write (fd, data, pagesize) != pagesize) 13895 return 3; 13896 close (fd); 13897 13898 /* Next, check that the tail of a page is zero-filled. File must have 13899 non-zero length, otherwise we risk SIGBUS for entire page. */ 13900 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13901 if (fd2 < 0) 13902 return 4; 13903 cdata2 = ""; 13904 if (write (fd2, cdata2, 1) != 1) 13905 return 5; 13906 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13907 if (data2 == MAP_FAILED) 13908 return 6; 13909 for (i = 0; i < pagesize; ++i) 13910 if (*(data2 + i)) 13911 return 7; 13912 close (fd2); 13913 if (munmap (data2, pagesize)) 13914 return 8; 13915 13916 /* Next, try to mmap the file at a fixed address which already has 13917 something else allocated at it. If we can, also make sure that 13918 we see the same garbage. */ 13919 fd = open ("conftest.mmap", O_RDWR); 13920 if (fd < 0) 13921 return 9; 13922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13923 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13924 return 10; 13925 for (i = 0; i < pagesize; ++i) 13926 if (*(data + i) != *(data2 + i)) 13927 return 11; 13928 13929 /* Finally, make sure that changes to the mapped area do not 13930 percolate back to the file as seen by read(). (This is a bug on 13931 some variants of i386 svr4.0.) */ 13932 for (i = 0; i < pagesize; ++i) 13933 *(data2 + i) = *(data2 + i) + 1; 13934 data3 = (char *) malloc (pagesize); 13935 if (!data3) 13936 return 12; 13937 if (read (fd, data3, pagesize) != pagesize) 13938 return 13; 13939 for (i = 0; i < pagesize; ++i) 13940 if (*(data + i) != *(data3 + i)) 13941 return 14; 13942 close (fd); 13943 return 0; 13944} 13945_ACEOF 13946if ac_fn_c_try_run "$LINENO"; then : 13947 ac_cv_func_mmap_fixed_mapped=yes 13948else 13949 ac_cv_func_mmap_fixed_mapped=no 13950fi 13951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13952 conftest.$ac_objext conftest.beam conftest.$ac_ext 13953fi 13954 13955fi 13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13957$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13958if test $ac_cv_func_mmap_fixed_mapped = yes; then 13959 13960$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13961 13962fi 13963rm -f conftest.mmap conftest.txt 13964 13965for ac_header in vfork.h 13966do : 13967 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13968if test "x$ac_cv_header_vfork_h" = xyes; then : 13969 cat >>confdefs.h <<_ACEOF 13970#define HAVE_VFORK_H 1 13971_ACEOF 13972 13973fi 13974 13975done 13976 13977for ac_func in fork vfork 13978do : 13979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13981if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13982 cat >>confdefs.h <<_ACEOF 13983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13984_ACEOF 13985 13986fi 13987done 13988 13989if test "x$ac_cv_func_fork" = xyes; then 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13991$as_echo_n "checking for working fork... " >&6; } 13992if ${ac_cv_func_fork_works+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994else 13995 if test "$cross_compiling" = yes; then : 13996 ac_cv_func_fork_works=cross 13997else 13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13999/* end confdefs.h. */ 14000$ac_includes_default 14001int 14002main () 14003{ 14004 14005 /* By Ruediger Kuhlmann. */ 14006 return fork () < 0; 14007 14008 ; 14009 return 0; 14010} 14011_ACEOF 14012if ac_fn_c_try_run "$LINENO"; then : 14013 ac_cv_func_fork_works=yes 14014else 14015 ac_cv_func_fork_works=no 14016fi 14017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14018 conftest.$ac_objext conftest.beam conftest.$ac_ext 14019fi 14020 14021fi 14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14023$as_echo "$ac_cv_func_fork_works" >&6; } 14024 14025else 14026 ac_cv_func_fork_works=$ac_cv_func_fork 14027fi 14028if test "x$ac_cv_func_fork_works" = xcross; then 14029 case $host in 14030 *-*-amigaos* | *-*-msdosdjgpp*) 14031 # Override, as these systems have only a dummy fork() stub 14032 ac_cv_func_fork_works=no 14033 ;; 14034 *) 14035 ac_cv_func_fork_works=yes 14036 ;; 14037 esac 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14039$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14040fi 14041ac_cv_func_vfork_works=$ac_cv_func_vfork 14042if test "x$ac_cv_func_vfork" = xyes; then 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14044$as_echo_n "checking for working vfork... " >&6; } 14045if ${ac_cv_func_vfork_works+:} false; then : 14046 $as_echo_n "(cached) " >&6 14047else 14048 if test "$cross_compiling" = yes; then : 14049 ac_cv_func_vfork_works=cross 14050else 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053/* Thanks to Paul Eggert for this test. */ 14054$ac_includes_default 14055#include <sys/wait.h> 14056#ifdef HAVE_VFORK_H 14057# include <vfork.h> 14058#endif 14059/* On some sparc systems, changes by the child to local and incoming 14060 argument registers are propagated back to the parent. The compiler 14061 is told about this with #include <vfork.h>, but some compilers 14062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14063 static variable whose address is put into a register that is 14064 clobbered by the vfork. */ 14065static void 14066#ifdef __cplusplus 14067sparc_address_test (int arg) 14068# else 14069sparc_address_test (arg) int arg; 14070#endif 14071{ 14072 static pid_t child; 14073 if (!child) { 14074 child = vfork (); 14075 if (child < 0) { 14076 perror ("vfork"); 14077 _exit(2); 14078 } 14079 if (!child) { 14080 arg = getpid(); 14081 write(-1, "", 0); 14082 _exit (arg); 14083 } 14084 } 14085} 14086 14087int 14088main () 14089{ 14090 pid_t parent = getpid (); 14091 pid_t child; 14092 14093 sparc_address_test (0); 14094 14095 child = vfork (); 14096 14097 if (child == 0) { 14098 /* Here is another test for sparc vfork register problems. This 14099 test uses lots of local variables, at least as many local 14100 variables as main has allocated so far including compiler 14101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14103 reuse the register of parent for one of the local variables, 14104 since it will think that parent can't possibly be used any more 14105 in this routine. Assigning to the local variable will thus 14106 munge parent in the parent process. */ 14107 pid_t 14108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14110 /* Convince the compiler that p..p7 are live; otherwise, it might 14111 use the same hardware register for all 8 local variables. */ 14112 if (p != p1 || p != p2 || p != p3 || p != p4 14113 || p != p5 || p != p6 || p != p7) 14114 _exit(1); 14115 14116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14117 from child file descriptors. If the child closes a descriptor 14118 before it execs or exits, this munges the parent's descriptor 14119 as well. Test for this by closing stdout in the child. */ 14120 _exit(close(fileno(stdout)) != 0); 14121 } else { 14122 int status; 14123 struct stat st; 14124 14125 while (wait(&status) != child) 14126 ; 14127 return ( 14128 /* Was there some problem with vforking? */ 14129 child < 0 14130 14131 /* Did the child fail? (This shouldn't happen.) */ 14132 || status 14133 14134 /* Did the vfork/compiler bug occur? */ 14135 || parent != getpid() 14136 14137 /* Did the file descriptor bug occur? */ 14138 || fstat(fileno(stdout), &st) != 0 14139 ); 14140 } 14141} 14142_ACEOF 14143if ac_fn_c_try_run "$LINENO"; then : 14144 ac_cv_func_vfork_works=yes 14145else 14146 ac_cv_func_vfork_works=no 14147fi 14148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14149 conftest.$ac_objext conftest.beam conftest.$ac_ext 14150fi 14151 14152fi 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14154$as_echo "$ac_cv_func_vfork_works" >&6; } 14155 14156fi; 14157if test "x$ac_cv_func_fork_works" = xcross; then 14158 ac_cv_func_vfork_works=$ac_cv_func_vfork 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14160$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14161fi 14162 14163if test "x$ac_cv_func_vfork_works" = xyes; then 14164 14165$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14166 14167else 14168 14169$as_echo "#define vfork fork" >>confdefs.h 14170 14171fi 14172if test "x$ac_cv_func_fork_works" = xyes; then 14173 14174$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14175 14176fi 14177 14178 14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 14180$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 14181if ${ac_cv_func_mbrtowc+:} false; then : 14182 $as_echo_n "(cached) " >&6 14183else 14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14185/* end confdefs.h. */ 14186#include <wchar.h> 14187int 14188main () 14189{ 14190wchar_t wc; 14191 char const s[] = ""; 14192 size_t n = 1; 14193 mbstate_t state; 14194 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 14195 ; 14196 return 0; 14197} 14198_ACEOF 14199if ac_fn_c_try_link "$LINENO"; then : 14200 ac_cv_func_mbrtowc=yes 14201else 14202 ac_cv_func_mbrtowc=no 14203fi 14204rm -f core conftest.err conftest.$ac_objext \ 14205 conftest$ac_exeext conftest.$ac_ext 14206fi 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 14208$as_echo "$ac_cv_func_mbrtowc" >&6; } 14209 if test $ac_cv_func_mbrtowc = yes; then 14210 14211$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 14212 14213 fi 14214 14215 14216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 14217$as_echo_n "checking for gcc compiler warnings... " >&6; } 14218# Check whether --enable-warnings was given. 14219if test "${enable_warnings+set}" = set; then : 14220 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14222$as_echo "no" >&6; } 14223 WARNINGS= 14224else 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14226$as_echo "yes" >&6; } 14227 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14228 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14229 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14230 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14231fi 14232else 14233 14234if test "$GCC" = yes; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14236$as_echo "yes" >&6; } 14237 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14238 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14239 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14240 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14241else 14242 WARNINGS= 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14244$as_echo "no" >&6; } 14245fi 14246fi 14247 14248 14249for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale 14250do : 14251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14252ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14253if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14254 cat >>confdefs.h <<_ACEOF 14255#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14256_ACEOF 14257 14258fi 14259done 14260 14261 14262ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 14263if test "x$ac_cv_func_getopt_long" = xyes; then : 14264 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 14265 14266else 14267 case " $LIBOBJS " in 14268 *" getopt_long.$ac_objext "* ) ;; 14269 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 14270 ;; 14271esac 14272 14273fi 14274 14275ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 14276if test "x$ac_cv_func_asprintf" = xyes; then : 14277 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 14278 14279else 14280 case " $LIBOBJS " in 14281 *" asprintf.$ac_objext "* ) ;; 14282 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 14283 ;; 14284esac 14285 14286fi 14287 14288ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14289if test "x$ac_cv_func_vasprintf" = xyes; then : 14290 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 14291 14292else 14293 case " $LIBOBJS " in 14294 *" vasprintf.$ac_objext "* ) ;; 14295 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 14296 ;; 14297esac 14298 14299fi 14300 14301ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 14302if test "x$ac_cv_func_strlcpy" = xyes; then : 14303 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 14304 14305else 14306 case " $LIBOBJS " in 14307 *" strlcpy.$ac_objext "* ) ;; 14308 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 14309 ;; 14310esac 14311 14312fi 14313 14314ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 14315if test "x$ac_cv_func_strlcat" = xyes; then : 14316 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 14317 14318else 14319 case " $LIBOBJS " in 14320 *" strlcat.$ac_objext "* ) ;; 14321 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 14322 ;; 14323esac 14324 14325fi 14326 14327ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14328if test "x$ac_cv_func_getline" = xyes; then : 14329 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 14330 14331else 14332 case " $LIBOBJS " in 14333 *" getline.$ac_objext "* ) ;; 14334 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 14335 ;; 14336esac 14337 14338fi 14339 14340ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 14341if test "x$ac_cv_func_ctime_r" = xyes; then : 14342 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 14343 14344else 14345 case " $LIBOBJS " in 14346 *" ctime_r.$ac_objext "* ) ;; 14347 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 14348 ;; 14349esac 14350 14351fi 14352 14353ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 14354if test "x$ac_cv_func_asctime_r" = xyes; then : 14355 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h 14356 14357else 14358 case " $LIBOBJS " in 14359 *" asctime_r.$ac_objext "* ) ;; 14360 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 14361 ;; 14362esac 14363 14364fi 14365 14366ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 14367if test "x$ac_cv_func_localtime_r" = xyes; then : 14368 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 14369 14370else 14371 case " $LIBOBJS " in 14372 *" localtime_r.$ac_objext "* ) ;; 14373 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 14374 ;; 14375esac 14376 14377fi 14378 14379ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 14380if test "x$ac_cv_func_gmtime_r" = xyes; then : 14381 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 14382 14383else 14384 case " $LIBOBJS " in 14385 *" gmtime_r.$ac_objext "* ) ;; 14386 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 14387 ;; 14388esac 14389 14390fi 14391 14392ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 14393if test "x$ac_cv_func_pread" = xyes; then : 14394 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 14395 14396else 14397 case " $LIBOBJS " in 14398 *" pread.$ac_objext "* ) ;; 14399 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 14400 ;; 14401esac 14402 14403fi 14404 14405ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14406if test "x$ac_cv_func_strcasestr" = xyes; then : 14407 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 14408 14409else 14410 case " $LIBOBJS " in 14411 *" strcasestr.$ac_objext "* ) ;; 14412 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 14413 ;; 14414esac 14415 14416fi 14417 14418ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 14419if test "x$ac_cv_func_fmtcheck" = xyes; then : 14420 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h 14421 14422else 14423 case " $LIBOBJS " in 14424 *" fmtcheck.$ac_objext "* ) ;; 14425 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 14426 ;; 14427esac 14428 14429fi 14430 14431ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 14432if test "x$ac_cv_func_dprintf" = xyes; then : 14433 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h 14434 14435else 14436 case " $LIBOBJS " in 14437 *" dprintf.$ac_objext "* ) ;; 14438 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 14439 ;; 14440esac 14441 14442fi 14443 14444 14445 14446if test "$enable_zlib" != "no"; then 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 14448$as_echo_n "checking for gzopen in -lz... " >&6; } 14449if ${ac_cv_lib_z_gzopen+:} false; then : 14450 $as_echo_n "(cached) " >&6 14451else 14452 ac_check_lib_save_LIBS=$LIBS 14453LIBS="-lz $LIBS" 14454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455/* end confdefs.h. */ 14456 14457/* Override any GCC internal prototype to avoid an error. 14458 Use char because int might match the return type of a GCC 14459 builtin and then its argument prototype would still apply. */ 14460#ifdef __cplusplus 14461extern "C" 14462#endif 14463char gzopen (); 14464int 14465main () 14466{ 14467return gzopen (); 14468 ; 14469 return 0; 14470} 14471_ACEOF 14472if ac_fn_c_try_link "$LINENO"; then : 14473 ac_cv_lib_z_gzopen=yes 14474else 14475 ac_cv_lib_z_gzopen=no 14476fi 14477rm -f core conftest.err conftest.$ac_objext \ 14478 conftest$ac_exeext conftest.$ac_ext 14479LIBS=$ac_check_lib_save_LIBS 14480fi 14481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 14482$as_echo "$ac_cv_lib_z_gzopen" >&6; } 14483if test "x$ac_cv_lib_z_gzopen" = xyes; then : 14484 cat >>confdefs.h <<_ACEOF 14485#define HAVE_LIBZ 1 14486_ACEOF 14487 14488 LIBS="-lz $LIBS" 14489 14490fi 14491 14492fi 14493if test "$MINGW" = 1; then 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 14495$as_echo_n "checking for regexec in -lgnurx... " >&6; } 14496if ${ac_cv_lib_gnurx_regexec+:} false; then : 14497 $as_echo_n "(cached) " >&6 14498else 14499 ac_check_lib_save_LIBS=$LIBS 14500LIBS="-lgnurx $LIBS" 14501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14502/* end confdefs.h. */ 14503 14504/* Override any GCC internal prototype to avoid an error. 14505 Use char because int might match the return type of a GCC 14506 builtin and then its argument prototype would still apply. */ 14507#ifdef __cplusplus 14508extern "C" 14509#endif 14510char regexec (); 14511int 14512main () 14513{ 14514return regexec (); 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_c_try_link "$LINENO"; then : 14520 ac_cv_lib_gnurx_regexec=yes 14521else 14522 ac_cv_lib_gnurx_regexec=no 14523fi 14524rm -f core conftest.err conftest.$ac_objext \ 14525 conftest$ac_exeext conftest.$ac_ext 14526LIBS=$ac_check_lib_save_LIBS 14527fi 14528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 14529$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 14530if test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 14531 cat >>confdefs.h <<_ACEOF 14532#define HAVE_LIBGNURX 1 14533_ACEOF 14534 14535 LIBS="-lgnurx $LIBS" 14536 14537else 14538 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 14539fi 14540 14541fi 14542 14543 if test "$cross_compiling" = yes; then 14544 IS_CROSS_COMPILE_TRUE= 14545 IS_CROSS_COMPILE_FALSE='#' 14546else 14547 IS_CROSS_COMPILE_TRUE='#' 14548 IS_CROSS_COMPILE_FALSE= 14549fi 14550 14551 14552if test "$enable_zlib" = "yes"; then 14553 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 14554 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 14555 fi 14556elif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 14557 14558$as_echo "#define ZLIBSUPPORT 1" >>confdefs.h 14559 14560fi 14561 14562ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 14563 14564cat >confcache <<\_ACEOF 14565# This file is a shell script that caches the results of configure 14566# tests run on this system so they can be shared between configure 14567# scripts and configure runs, see configure's option --config-cache. 14568# It is not useful on other systems. If it contains results you don't 14569# want to keep, you may remove or edit it. 14570# 14571# config.status only pays attention to the cache file if you give it 14572# the --recheck option to rerun configure. 14573# 14574# `ac_cv_env_foo' variables (set or unset) will be overridden when 14575# loading this file, other *unset* `ac_cv_foo' will be assigned the 14576# following values. 14577 14578_ACEOF 14579 14580# The following way of writing the cache mishandles newlines in values, 14581# but we know of no workaround that is simple, portable, and efficient. 14582# So, we kill variables containing newlines. 14583# Ultrix sh set writes to stderr and can't be redirected directly, 14584# and sets the high bit in the cache file unless we assign to the vars. 14585( 14586 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14587 eval ac_val=\$$ac_var 14588 case $ac_val in #( 14589 *${as_nl}*) 14590 case $ac_var in #( 14591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14592$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14593 esac 14594 case $ac_var in #( 14595 _ | IFS | as_nl) ;; #( 14596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14597 *) { eval $ac_var=; unset $ac_var;} ;; 14598 esac ;; 14599 esac 14600 done 14601 14602 (set) 2>&1 | 14603 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14604 *${as_nl}ac_space=\ *) 14605 # `set' does not quote correctly, so add quotes: double-quote 14606 # substitution turns \\\\ into \\, and sed turns \\ into \. 14607 sed -n \ 14608 "s/'/'\\\\''/g; 14609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14610 ;; #( 14611 *) 14612 # `set' quotes correctly as required by POSIX, so do not add quotes. 14613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14614 ;; 14615 esac | 14616 sort 14617) | 14618 sed ' 14619 /^ac_cv_env_/b end 14620 t clear 14621 :clear 14622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14623 t end 14624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14625 :end' >>confcache 14626if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14627 if test -w "$cache_file"; then 14628 if test "x$cache_file" != "x/dev/null"; then 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14630$as_echo "$as_me: updating cache $cache_file" >&6;} 14631 if test ! -f "$cache_file" || test -h "$cache_file"; then 14632 cat confcache >"$cache_file" 14633 else 14634 case $cache_file in #( 14635 */* | ?:*) 14636 mv -f confcache "$cache_file"$$ && 14637 mv -f "$cache_file"$$ "$cache_file" ;; #( 14638 *) 14639 mv -f confcache "$cache_file" ;; 14640 esac 14641 fi 14642 fi 14643 else 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14645$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14646 fi 14647fi 14648rm -f confcache 14649 14650test "x$prefix" = xNONE && prefix=$ac_default_prefix 14651# Let make expand exec_prefix. 14652test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14653 14654DEFS=-DHAVE_CONFIG_H 14655 14656ac_libobjs= 14657ac_ltlibobjs= 14658U= 14659for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14660 # 1. Remove the extension, and $U if already installed. 14661 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14662 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14663 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14664 # will be set to the directory where LIBOBJS objects are built. 14665 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14666 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14667done 14668LIBOBJS=$ac_libobjs 14669 14670LTLIBOBJS=$ac_ltlibobjs 14671 14672 14673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14674$as_echo_n "checking that generated files are newer than configure... " >&6; } 14675 if test -n "$am_sleep_pid"; then 14676 # Hide warnings about reused PIDs. 14677 wait $am_sleep_pid 2>/dev/null 14678 fi 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14680$as_echo "done" >&6; } 14681 if test -n "$EXEEXT"; then 14682 am__EXEEXT_TRUE= 14683 am__EXEEXT_FALSE='#' 14684else 14685 am__EXEEXT_TRUE='#' 14686 am__EXEEXT_FALSE= 14687fi 14688 14689if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14690 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14691Usually this means the macro was only invoked conditionally." "$LINENO" 5 14692fi 14693if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 14694 as_fn_error $? "conditional \"MINGW\" was never defined. 14695Usually this means the macro was only invoked conditionally." "$LINENO" 5 14696fi 14697if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 14698 as_fn_error $? "conditional \"FSECT5\" was never defined. 14699Usually this means the macro was only invoked conditionally." "$LINENO" 5 14700fi 14701if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14702 as_fn_error $? "conditional \"AMDEP\" was never defined. 14703Usually this means the macro was only invoked conditionally." "$LINENO" 5 14704fi 14705if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14706 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14707Usually this means the macro was only invoked conditionally." "$LINENO" 5 14708fi 14709 14710if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 14711 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 14712Usually this means the macro was only invoked conditionally." "$LINENO" 5 14713fi 14714 14715: "${CONFIG_STATUS=./config.status}" 14716ac_write_fail=0 14717ac_clean_files_save=$ac_clean_files 14718ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14720$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14721as_write_fail=0 14722cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14723#! $SHELL 14724# Generated by $as_me. 14725# Run this file to recreate the current configuration. 14726# Compiler output produced by configure, useful for debugging 14727# configure, is in config.log if it exists. 14728 14729debug=false 14730ac_cs_recheck=false 14731ac_cs_silent=false 14732 14733SHELL=\${CONFIG_SHELL-$SHELL} 14734export SHELL 14735_ASEOF 14736cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14737## -------------------- ## 14738## M4sh Initialization. ## 14739## -------------------- ## 14740 14741# Be more Bourne compatible 14742DUALCASE=1; export DUALCASE # for MKS sh 14743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14744 emulate sh 14745 NULLCMD=: 14746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14747 # is contrary to our usage. Disable this feature. 14748 alias -g '${1+"$@"}'='"$@"' 14749 setopt NO_GLOB_SUBST 14750else 14751 case `(set -o) 2>/dev/null` in #( 14752 *posix*) : 14753 set -o posix ;; #( 14754 *) : 14755 ;; 14756esac 14757fi 14758 14759 14760as_nl=' 14761' 14762export as_nl 14763# Printing a long string crashes Solaris 7 /usr/bin/printf. 14764as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14766as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14767# Prefer a ksh shell builtin over an external printf program on Solaris, 14768# but without wasting forks for bash or zsh. 14769if test -z "$BASH_VERSION$ZSH_VERSION" \ 14770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14771 as_echo='print -r --' 14772 as_echo_n='print -rn --' 14773elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14774 as_echo='printf %s\n' 14775 as_echo_n='printf %s' 14776else 14777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14779 as_echo_n='/usr/ucb/echo -n' 14780 else 14781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14782 as_echo_n_body='eval 14783 arg=$1; 14784 case $arg in #( 14785 *"$as_nl"*) 14786 expr "X$arg" : "X\\(.*\\)$as_nl"; 14787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14788 esac; 14789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14790 ' 14791 export as_echo_n_body 14792 as_echo_n='sh -c $as_echo_n_body as_echo' 14793 fi 14794 export as_echo_body 14795 as_echo='sh -c $as_echo_body as_echo' 14796fi 14797 14798# The user is always right. 14799if test "${PATH_SEPARATOR+set}" != set; then 14800 PATH_SEPARATOR=: 14801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14803 PATH_SEPARATOR=';' 14804 } 14805fi 14806 14807 14808# IFS 14809# We need space, tab and new line, in precisely that order. Quoting is 14810# there to prevent editors from complaining about space-tab. 14811# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14812# splitting by setting IFS to empty value.) 14813IFS=" "" $as_nl" 14814 14815# Find who we are. Look in the path if we contain no directory separator. 14816as_myself= 14817case $0 in #(( 14818 *[\\/]* ) as_myself=$0 ;; 14819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14820for as_dir in $PATH 14821do 14822 IFS=$as_save_IFS 14823 test -z "$as_dir" && as_dir=. 14824 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14825 done 14826IFS=$as_save_IFS 14827 14828 ;; 14829esac 14830# We did not find ourselves, most probably we were run as `sh COMMAND' 14831# in which case we are not to be found in the path. 14832if test "x$as_myself" = x; then 14833 as_myself=$0 14834fi 14835if test ! -f "$as_myself"; then 14836 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14837 exit 1 14838fi 14839 14840# Unset variables that we do not need and which cause bugs (e.g. in 14841# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14842# suppresses any "Segmentation fault" message there. '((' could 14843# trigger a bug in pdksh 5.2.14. 14844for as_var in BASH_ENV ENV MAIL MAILPATH 14845do eval test x\${$as_var+set} = xset \ 14846 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14847done 14848PS1='$ ' 14849PS2='> ' 14850PS4='+ ' 14851 14852# NLS nuisances. 14853LC_ALL=C 14854export LC_ALL 14855LANGUAGE=C 14856export LANGUAGE 14857 14858# CDPATH. 14859(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14860 14861 14862# as_fn_error STATUS ERROR [LINENO LOG_FD] 14863# ---------------------------------------- 14864# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14865# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14866# script with STATUS, using 1 if that was 0. 14867as_fn_error () 14868{ 14869 as_status=$1; test $as_status -eq 0 && as_status=1 14870 if test "$4"; then 14871 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14872 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14873 fi 14874 $as_echo "$as_me: error: $2" >&2 14875 as_fn_exit $as_status 14876} # as_fn_error 14877 14878 14879# as_fn_set_status STATUS 14880# ----------------------- 14881# Set $? to STATUS, without forking. 14882as_fn_set_status () 14883{ 14884 return $1 14885} # as_fn_set_status 14886 14887# as_fn_exit STATUS 14888# ----------------- 14889# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14890as_fn_exit () 14891{ 14892 set +e 14893 as_fn_set_status $1 14894 exit $1 14895} # as_fn_exit 14896 14897# as_fn_unset VAR 14898# --------------- 14899# Portably unset VAR. 14900as_fn_unset () 14901{ 14902 { eval $1=; unset $1;} 14903} 14904as_unset=as_fn_unset 14905# as_fn_append VAR VALUE 14906# ---------------------- 14907# Append the text in VALUE to the end of the definition contained in VAR. Take 14908# advantage of any shell optimizations that allow amortized linear growth over 14909# repeated appends, instead of the typical quadratic growth present in naive 14910# implementations. 14911if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14912 eval 'as_fn_append () 14913 { 14914 eval $1+=\$2 14915 }' 14916else 14917 as_fn_append () 14918 { 14919 eval $1=\$$1\$2 14920 } 14921fi # as_fn_append 14922 14923# as_fn_arith ARG... 14924# ------------------ 14925# Perform arithmetic evaluation on the ARGs, and store the result in the 14926# global $as_val. Take advantage of shells that can avoid forks. The arguments 14927# must be portable across $(()) and expr. 14928if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14929 eval 'as_fn_arith () 14930 { 14931 as_val=$(( $* )) 14932 }' 14933else 14934 as_fn_arith () 14935 { 14936 as_val=`expr "$@" || test $? -eq 1` 14937 } 14938fi # as_fn_arith 14939 14940 14941if expr a : '\(a\)' >/dev/null 2>&1 && 14942 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14943 as_expr=expr 14944else 14945 as_expr=false 14946fi 14947 14948if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14949 as_basename=basename 14950else 14951 as_basename=false 14952fi 14953 14954if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14955 as_dirname=dirname 14956else 14957 as_dirname=false 14958fi 14959 14960as_me=`$as_basename -- "$0" || 14961$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14962 X"$0" : 'X\(//\)$' \| \ 14963 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14964$as_echo X/"$0" | 14965 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14966 s//\1/ 14967 q 14968 } 14969 /^X\/\(\/\/\)$/{ 14970 s//\1/ 14971 q 14972 } 14973 /^X\/\(\/\).*/{ 14974 s//\1/ 14975 q 14976 } 14977 s/.*/./; q'` 14978 14979# Avoid depending upon Character Ranges. 14980as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14981as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14982as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14983as_cr_digits='0123456789' 14984as_cr_alnum=$as_cr_Letters$as_cr_digits 14985 14986ECHO_C= ECHO_N= ECHO_T= 14987case `echo -n x` in #((((( 14988-n*) 14989 case `echo 'xy\c'` in 14990 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14991 xy) ECHO_C='\c';; 14992 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14993 ECHO_T=' ';; 14994 esac;; 14995*) 14996 ECHO_N='-n';; 14997esac 14998 14999rm -f conf$$ conf$$.exe conf$$.file 15000if test -d conf$$.dir; then 15001 rm -f conf$$.dir/conf$$.file 15002else 15003 rm -f conf$$.dir 15004 mkdir conf$$.dir 2>/dev/null 15005fi 15006if (echo >conf$$.file) 2>/dev/null; then 15007 if ln -s conf$$.file conf$$ 2>/dev/null; then 15008 as_ln_s='ln -s' 15009 # ... but there are two gotchas: 15010 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15011 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15012 # In both cases, we have to default to `cp -pR'. 15013 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15014 as_ln_s='cp -pR' 15015 elif ln conf$$.file conf$$ 2>/dev/null; then 15016 as_ln_s=ln 15017 else 15018 as_ln_s='cp -pR' 15019 fi 15020else 15021 as_ln_s='cp -pR' 15022fi 15023rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15024rmdir conf$$.dir 2>/dev/null 15025 15026 15027# as_fn_mkdir_p 15028# ------------- 15029# Create "$as_dir" as a directory, including parents if necessary. 15030as_fn_mkdir_p () 15031{ 15032 15033 case $as_dir in #( 15034 -*) as_dir=./$as_dir;; 15035 esac 15036 test -d "$as_dir" || eval $as_mkdir_p || { 15037 as_dirs= 15038 while :; do 15039 case $as_dir in #( 15040 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15041 *) as_qdir=$as_dir;; 15042 esac 15043 as_dirs="'$as_qdir' $as_dirs" 15044 as_dir=`$as_dirname -- "$as_dir" || 15045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15046 X"$as_dir" : 'X\(//\)[^/]' \| \ 15047 X"$as_dir" : 'X\(//\)$' \| \ 15048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15049$as_echo X"$as_dir" | 15050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15051 s//\1/ 15052 q 15053 } 15054 /^X\(\/\/\)[^/].*/{ 15055 s//\1/ 15056 q 15057 } 15058 /^X\(\/\/\)$/{ 15059 s//\1/ 15060 q 15061 } 15062 /^X\(\/\).*/{ 15063 s//\1/ 15064 q 15065 } 15066 s/.*/./; q'` 15067 test -d "$as_dir" && break 15068 done 15069 test -z "$as_dirs" || eval "mkdir $as_dirs" 15070 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15071 15072 15073} # as_fn_mkdir_p 15074if mkdir -p . 2>/dev/null; then 15075 as_mkdir_p='mkdir -p "$as_dir"' 15076else 15077 test -d ./-p && rmdir ./-p 15078 as_mkdir_p=false 15079fi 15080 15081 15082# as_fn_executable_p FILE 15083# ----------------------- 15084# Test if FILE is an executable regular file. 15085as_fn_executable_p () 15086{ 15087 test -f "$1" && test -x "$1" 15088} # as_fn_executable_p 15089as_test_x='test -x' 15090as_executable_p=as_fn_executable_p 15091 15092# Sed expression to map a string onto a valid CPP name. 15093as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15094 15095# Sed expression to map a string onto a valid variable name. 15096as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15097 15098 15099exec 6>&1 15100## ----------------------------------- ## 15101## Main body of $CONFIG_STATUS script. ## 15102## ----------------------------------- ## 15103_ASEOF 15104test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15105 15106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15107# Save the log message, to keep $0 and so on meaningful, and to 15108# report actual input values of CONFIG_FILES etc. instead of their 15109# values after options handling. 15110ac_log=" 15111This file was extended by file $as_me 5.30, which was 15112generated by GNU Autoconf 2.69. Invocation command line was 15113 15114 CONFIG_FILES = $CONFIG_FILES 15115 CONFIG_HEADERS = $CONFIG_HEADERS 15116 CONFIG_LINKS = $CONFIG_LINKS 15117 CONFIG_COMMANDS = $CONFIG_COMMANDS 15118 $ $0 $@ 15119 15120on `(hostname || uname -n) 2>/dev/null | sed 1q` 15121" 15122 15123_ACEOF 15124 15125case $ac_config_files in *" 15126"*) set x $ac_config_files; shift; ac_config_files=$*;; 15127esac 15128 15129case $ac_config_headers in *" 15130"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15131esac 15132 15133 15134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15135# Files that config.status was made for. 15136config_files="$ac_config_files" 15137config_headers="$ac_config_headers" 15138config_commands="$ac_config_commands" 15139 15140_ACEOF 15141 15142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15143ac_cs_usage="\ 15144\`$as_me' instantiates files and other configuration actions 15145from templates according to the current configuration. Unless the files 15146and actions are specified as TAGs, all are instantiated by default. 15147 15148Usage: $0 [OPTION]... [TAG]... 15149 15150 -h, --help print this help, then exit 15151 -V, --version print version number and configuration settings, then exit 15152 --config print configuration, then exit 15153 -q, --quiet, --silent 15154 do not print progress messages 15155 -d, --debug don't remove temporary files 15156 --recheck update $as_me by reconfiguring in the same conditions 15157 --file=FILE[:TEMPLATE] 15158 instantiate the configuration file FILE 15159 --header=FILE[:TEMPLATE] 15160 instantiate the configuration header FILE 15161 15162Configuration files: 15163$config_files 15164 15165Configuration headers: 15166$config_headers 15167 15168Configuration commands: 15169$config_commands 15170 15171Report bugs to <christos@astron.com>." 15172 15173_ACEOF 15174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15175ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15176ac_cs_version="\\ 15177file config.status 5.30 15178configured by $0, generated by GNU Autoconf 2.69, 15179 with options \\"\$ac_cs_config\\" 15180 15181Copyright (C) 2012 Free Software Foundation, Inc. 15182This config.status script is free software; the Free Software Foundation 15183gives unlimited permission to copy, distribute and modify it." 15184 15185ac_pwd='$ac_pwd' 15186srcdir='$srcdir' 15187INSTALL='$INSTALL' 15188MKDIR_P='$MKDIR_P' 15189AWK='$AWK' 15190test -n "\$AWK" || AWK=awk 15191_ACEOF 15192 15193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15194# The default lists apply if the user does not specify any file. 15195ac_need_defaults=: 15196while test $# != 0 15197do 15198 case $1 in 15199 --*=?*) 15200 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15202 ac_shift=: 15203 ;; 15204 --*=) 15205 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15206 ac_optarg= 15207 ac_shift=: 15208 ;; 15209 *) 15210 ac_option=$1 15211 ac_optarg=$2 15212 ac_shift=shift 15213 ;; 15214 esac 15215 15216 case $ac_option in 15217 # Handling of the options. 15218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15219 ac_cs_recheck=: ;; 15220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15221 $as_echo "$ac_cs_version"; exit ;; 15222 --config | --confi | --conf | --con | --co | --c ) 15223 $as_echo "$ac_cs_config"; exit ;; 15224 --debug | --debu | --deb | --de | --d | -d ) 15225 debug=: ;; 15226 --file | --fil | --fi | --f ) 15227 $ac_shift 15228 case $ac_optarg in 15229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15230 '') as_fn_error $? "missing file argument" ;; 15231 esac 15232 as_fn_append CONFIG_FILES " '$ac_optarg'" 15233 ac_need_defaults=false;; 15234 --header | --heade | --head | --hea ) 15235 $ac_shift 15236 case $ac_optarg in 15237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15238 esac 15239 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15240 ac_need_defaults=false;; 15241 --he | --h) 15242 # Conflict between --help and --header 15243 as_fn_error $? "ambiguous option: \`$1' 15244Try \`$0 --help' for more information.";; 15245 --help | --hel | -h ) 15246 $as_echo "$ac_cs_usage"; exit ;; 15247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15248 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15249 ac_cs_silent=: ;; 15250 15251 # This is an error. 15252 -*) as_fn_error $? "unrecognized option: \`$1' 15253Try \`$0 --help' for more information." ;; 15254 15255 *) as_fn_append ac_config_targets " $1" 15256 ac_need_defaults=false ;; 15257 15258 esac 15259 shift 15260done 15261 15262ac_configure_extra_args= 15263 15264if $ac_cs_silent; then 15265 exec 6>/dev/null 15266 ac_configure_extra_args="$ac_configure_extra_args --silent" 15267fi 15268 15269_ACEOF 15270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15271if \$ac_cs_recheck; then 15272 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15273 shift 15274 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15275 CONFIG_SHELL='$SHELL' 15276 export CONFIG_SHELL 15277 exec "\$@" 15278fi 15279 15280_ACEOF 15281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15282exec 5>>config.log 15283{ 15284 echo 15285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15286## Running $as_me. ## 15287_ASBOX 15288 $as_echo "$ac_log" 15289} >&5 15290 15291_ACEOF 15292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15293# 15294# INIT-COMMANDS 15295# 15296AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15297 15298 15299# The HP-UX ksh and POSIX shell print the target directory to stdout 15300# if CDPATH is set. 15301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15302 15303sed_quote_subst='$sed_quote_subst' 15304double_quote_subst='$double_quote_subst' 15305delay_variable_subst='$delay_variable_subst' 15306macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15307macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15308enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15309pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15310enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15311enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15312SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15313ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15314PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15315host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15316host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15317host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15318build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15319build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15320build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15321SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15322Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15323GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15324EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15325FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15326LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15327NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15328LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15329max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15330ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15331exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15332lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15333lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15334lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15335lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15336lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15337reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15338reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15339OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15340deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15341file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15342file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15343want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15344DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15345sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15346AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15347AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15348archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15349STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15350RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15351old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15352old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15353old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15354lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15355CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15356CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15357compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15358GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15359lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15360lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15361lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15362lt_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"`' 15363nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15364lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15365objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15366MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15367lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15368lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15369lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15370lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15371lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15372need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15373MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15374DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15375NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15376LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15377OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15378OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15379libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15380shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15381extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15382archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15383enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15384export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15385whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15386compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15387old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15388old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15389archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15390archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15391module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15392module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15393with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15394allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15395no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15396hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15397hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15398hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15399hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15400hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15401hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15402hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15403inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15404link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15405always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15406export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15407exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15408include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15409prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15410postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15411file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15412variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15413need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15414need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15415version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15416runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15417shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15418shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15419libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15420library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15421soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15422install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15423postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15424postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15425finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15426finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15427hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15428sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15429sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15430hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15431enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15432enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15433enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15434old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15435striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15436 15437LTCC='$LTCC' 15438LTCFLAGS='$LTCFLAGS' 15439compiler='$compiler_DEFAULT' 15440 15441# A function that is used when there is no print builtin or printf. 15442func_fallback_echo () 15443{ 15444 eval 'cat <<_LTECHO_EOF 15445\$1 15446_LTECHO_EOF' 15447} 15448 15449# Quote evaled strings. 15450for var in SHELL \ 15451ECHO \ 15452PATH_SEPARATOR \ 15453SED \ 15454GREP \ 15455EGREP \ 15456FGREP \ 15457LD \ 15458NM \ 15459LN_S \ 15460lt_SP2NL \ 15461lt_NL2SP \ 15462reload_flag \ 15463OBJDUMP \ 15464deplibs_check_method \ 15465file_magic_cmd \ 15466file_magic_glob \ 15467want_nocaseglob \ 15468DLLTOOL \ 15469sharedlib_from_linklib_cmd \ 15470AR \ 15471AR_FLAGS \ 15472archiver_list_spec \ 15473STRIP \ 15474RANLIB \ 15475CC \ 15476CFLAGS \ 15477compiler \ 15478lt_cv_sys_global_symbol_pipe \ 15479lt_cv_sys_global_symbol_to_cdecl \ 15480lt_cv_sys_global_symbol_to_c_name_address \ 15481lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15482nm_file_list_spec \ 15483lt_prog_compiler_no_builtin_flag \ 15484lt_prog_compiler_pic \ 15485lt_prog_compiler_wl \ 15486lt_prog_compiler_static \ 15487lt_cv_prog_compiler_c_o \ 15488need_locks \ 15489MANIFEST_TOOL \ 15490DSYMUTIL \ 15491NMEDIT \ 15492LIPO \ 15493OTOOL \ 15494OTOOL64 \ 15495shrext_cmds \ 15496export_dynamic_flag_spec \ 15497whole_archive_flag_spec \ 15498compiler_needs_object \ 15499with_gnu_ld \ 15500allow_undefined_flag \ 15501no_undefined_flag \ 15502hardcode_libdir_flag_spec \ 15503hardcode_libdir_separator \ 15504exclude_expsyms \ 15505include_expsyms \ 15506file_list_spec \ 15507variables_saved_for_relink \ 15508libname_spec \ 15509library_names_spec \ 15510soname_spec \ 15511install_override_mode \ 15512finish_eval \ 15513old_striplib \ 15514striplib; do 15515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15516 *[\\\\\\\`\\"\\\$]*) 15517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15518 ;; 15519 *) 15520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15521 ;; 15522 esac 15523done 15524 15525# Double-quote double-evaled strings. 15526for var in reload_cmds \ 15527old_postinstall_cmds \ 15528old_postuninstall_cmds \ 15529old_archive_cmds \ 15530extract_expsyms_cmds \ 15531old_archive_from_new_cmds \ 15532old_archive_from_expsyms_cmds \ 15533archive_cmds \ 15534archive_expsym_cmds \ 15535module_cmds \ 15536module_expsym_cmds \ 15537export_symbols_cmds \ 15538prelink_cmds \ 15539postlink_cmds \ 15540postinstall_cmds \ 15541postuninstall_cmds \ 15542finish_cmds \ 15543sys_lib_search_path_spec \ 15544sys_lib_dlsearch_path_spec; do 15545 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15546 *[\\\\\\\`\\"\\\$]*) 15547 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15548 ;; 15549 *) 15550 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15551 ;; 15552 esac 15553done 15554 15555ac_aux_dir='$ac_aux_dir' 15556xsi_shell='$xsi_shell' 15557lt_shell_append='$lt_shell_append' 15558 15559# See if we are running on zsh, and set the options which allow our 15560# commands through without removal of \ escapes INIT. 15561if test -n "\${ZSH_VERSION+set}" ; then 15562 setopt NO_GLOB_SUBST 15563fi 15564 15565 15566 PACKAGE='$PACKAGE' 15567 VERSION='$VERSION' 15568 TIMESTAMP='$TIMESTAMP' 15569 RM='$RM' 15570 ofile='$ofile' 15571 15572 15573 15574 15575_ACEOF 15576 15577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15578 15579# Handling of arguments. 15580for ac_config_target in $ac_config_targets 15581do 15582 case $ac_config_target in 15583 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15584 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15585 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15587 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15588 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 15589 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15590 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15591 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 15592 15593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15594 esac 15595done 15596 15597 15598# If the user did not use the arguments to specify the items to instantiate, 15599# then the envvar interface is used. Set only those that are not. 15600# We use the long form for the default assignment because of an extremely 15601# bizarre bug on SunOS 4.1.3. 15602if $ac_need_defaults; then 15603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15606fi 15607 15608# Have a temporary directory for convenience. Make it in the build tree 15609# simply because there is no reason against having it here, and in addition, 15610# creating and moving files from /tmp can sometimes cause problems. 15611# Hook for its removal unless debugging. 15612# Note that there is a small window in which the directory will not be cleaned: 15613# after its creation but before its name has been assigned to `$tmp'. 15614$debug || 15615{ 15616 tmp= ac_tmp= 15617 trap 'exit_status=$? 15618 : "${ac_tmp:=$tmp}" 15619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15620' 0 15621 trap 'as_fn_exit 1' 1 2 13 15 15622} 15623# Create a (secure) tmp directory for tmp files. 15624 15625{ 15626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15627 test -d "$tmp" 15628} || 15629{ 15630 tmp=./conf$$-$RANDOM 15631 (umask 077 && mkdir "$tmp") 15632} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15633ac_tmp=$tmp 15634 15635# Set up the scripts for CONFIG_FILES section. 15636# No need to generate them if there are no CONFIG_FILES. 15637# This happens for instance with `./config.status config.h'. 15638if test -n "$CONFIG_FILES"; then 15639 15640 15641ac_cr=`echo X | tr X '\015'` 15642# On cygwin, bash can eat \r inside `` if the user requested igncr. 15643# But we know of no other shell where ac_cr would be empty at this 15644# point, so we can use a bashism as a fallback. 15645if test "x$ac_cr" = x; then 15646 eval ac_cr=\$\'\\r\' 15647fi 15648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15650 ac_cs_awk_cr='\\r' 15651else 15652 ac_cs_awk_cr=$ac_cr 15653fi 15654 15655echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15656_ACEOF 15657 15658 15659{ 15660 echo "cat >conf$$subs.awk <<_ACEOF" && 15661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15662 echo "_ACEOF" 15663} >conf$$subs.sh || 15664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15665ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15666ac_delim='%!_!# ' 15667for ac_last_try in false false false false false :; do 15668 . ./conf$$subs.sh || 15669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15670 15671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15672 if test $ac_delim_n = $ac_delim_num; then 15673 break 15674 elif $ac_last_try; then 15675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15676 else 15677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15678 fi 15679done 15680rm -f conf$$subs.sh 15681 15682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15683cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15684_ACEOF 15685sed -n ' 15686h 15687s/^/S["/; s/!.*/"]=/ 15688p 15689g 15690s/^[^!]*!// 15691:repl 15692t repl 15693s/'"$ac_delim"'$// 15694t delim 15695:nl 15696h 15697s/\(.\{148\}\)..*/\1/ 15698t more1 15699s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15700p 15701n 15702b repl 15703:more1 15704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15705p 15706g 15707s/.\{148\}// 15708t nl 15709:delim 15710h 15711s/\(.\{148\}\)..*/\1/ 15712t more2 15713s/["\\]/\\&/g; s/^/"/; s/$/"/ 15714p 15715b 15716:more2 15717s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15718p 15719g 15720s/.\{148\}// 15721t delim 15722' <conf$$subs.awk | sed ' 15723/^[^""]/{ 15724 N 15725 s/\n// 15726} 15727' >>$CONFIG_STATUS || ac_write_fail=1 15728rm -f conf$$subs.awk 15729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15730_ACAWK 15731cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15732 for (key in S) S_is_set[key] = 1 15733 FS = "" 15734 15735} 15736{ 15737 line = $ 0 15738 nfields = split(line, field, "@") 15739 substed = 0 15740 len = length(field[1]) 15741 for (i = 2; i < nfields; i++) { 15742 key = field[i] 15743 keylen = length(key) 15744 if (S_is_set[key]) { 15745 value = S[key] 15746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15747 len += length(value) + length(field[++i]) 15748 substed = 1 15749 } else 15750 len += 1 + keylen 15751 } 15752 15753 print line 15754} 15755 15756_ACAWK 15757_ACEOF 15758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15759if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15761else 15762 cat 15763fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15765_ACEOF 15766 15767# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15768# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15769# trailing colons and then remove the whole line if VPATH becomes empty 15770# (actually we leave an empty line to preserve line numbers). 15771if test "x$srcdir" = x.; then 15772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15773h 15774s/// 15775s/^/:/ 15776s/[ ]*$/:/ 15777s/:\$(srcdir):/:/g 15778s/:\${srcdir}:/:/g 15779s/:@srcdir@:/:/g 15780s/^:*// 15781s/:*$// 15782x 15783s/\(=[ ]*\).*/\1/ 15784G 15785s/\n// 15786s/^[^=]*=[ ]*$// 15787}' 15788fi 15789 15790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15791fi # test -n "$CONFIG_FILES" 15792 15793# Set up the scripts for CONFIG_HEADERS section. 15794# No need to generate them if there are no CONFIG_HEADERS. 15795# This happens for instance with `./config.status Makefile'. 15796if test -n "$CONFIG_HEADERS"; then 15797cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15798BEGIN { 15799_ACEOF 15800 15801# Transform confdefs.h into an awk script `defines.awk', embedded as 15802# here-document in config.status, that substitutes the proper values into 15803# config.h.in to produce config.h. 15804 15805# Create a delimiter string that does not exist in confdefs.h, to ease 15806# handling of long lines. 15807ac_delim='%!_!# ' 15808for ac_last_try in false false :; do 15809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15810 if test -z "$ac_tt"; then 15811 break 15812 elif $ac_last_try; then 15813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15814 else 15815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15816 fi 15817done 15818 15819# For the awk script, D is an array of macro values keyed by name, 15820# likewise P contains macro parameters if any. Preserve backslash 15821# newline sequences. 15822 15823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15824sed -n ' 15825s/.\{148\}/&'"$ac_delim"'/g 15826t rset 15827:rset 15828s/^[ ]*#[ ]*define[ ][ ]*/ / 15829t def 15830d 15831:def 15832s/\\$// 15833t bsnl 15834s/["\\]/\\&/g 15835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15836D["\1"]=" \3"/p 15837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15838d 15839:bsnl 15840s/["\\]/\\&/g 15841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15842D["\1"]=" \3\\\\\\n"\\/p 15843t cont 15844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15845t cont 15846d 15847:cont 15848n 15849s/.\{148\}/&'"$ac_delim"'/g 15850t clear 15851:clear 15852s/\\$// 15853t bsnlc 15854s/["\\]/\\&/g; s/^/"/; s/$/"/p 15855d 15856:bsnlc 15857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15858b cont 15859' <confdefs.h | sed ' 15860s/'"$ac_delim"'/"\\\ 15861"/g' >>$CONFIG_STATUS || ac_write_fail=1 15862 15863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15864 for (key in D) D_is_set[key] = 1 15865 FS = "" 15866} 15867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15868 line = \$ 0 15869 split(line, arg, " ") 15870 if (arg[1] == "#") { 15871 defundef = arg[2] 15872 mac1 = arg[3] 15873 } else { 15874 defundef = substr(arg[1], 2) 15875 mac1 = arg[2] 15876 } 15877 split(mac1, mac2, "(") #) 15878 macro = mac2[1] 15879 prefix = substr(line, 1, index(line, defundef) - 1) 15880 if (D_is_set[macro]) { 15881 # Preserve the white space surrounding the "#". 15882 print prefix "define", macro P[macro] D[macro] 15883 next 15884 } else { 15885 # Replace #undef with comments. This is necessary, for example, 15886 # in the case of _POSIX_SOURCE, which is predefined and required 15887 # on some systems where configure will not decide to define it. 15888 if (defundef == "undef") { 15889 print "/*", prefix defundef, macro, "*/" 15890 next 15891 } 15892 } 15893} 15894{ print } 15895_ACAWK 15896_ACEOF 15897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15899fi # test -n "$CONFIG_HEADERS" 15900 15901 15902eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15903shift 15904for ac_tag 15905do 15906 case $ac_tag in 15907 :[FHLC]) ac_mode=$ac_tag; continue;; 15908 esac 15909 case $ac_mode$ac_tag in 15910 :[FHL]*:*);; 15911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15912 :[FH]-) ac_tag=-:-;; 15913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15914 esac 15915 ac_save_IFS=$IFS 15916 IFS=: 15917 set x $ac_tag 15918 IFS=$ac_save_IFS 15919 shift 15920 ac_file=$1 15921 shift 15922 15923 case $ac_mode in 15924 :L) ac_source=$1;; 15925 :[FH]) 15926 ac_file_inputs= 15927 for ac_f 15928 do 15929 case $ac_f in 15930 -) ac_f="$ac_tmp/stdin";; 15931 *) # Look for the file first in the build tree, then in the source tree 15932 # (if the path is not absolute). The absolute path cannot be DOS-style, 15933 # because $ac_f cannot contain `:'. 15934 test -f "$ac_f" || 15935 case $ac_f in 15936 [\\/$]*) false;; 15937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15938 esac || 15939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15940 esac 15941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15942 as_fn_append ac_file_inputs " '$ac_f'" 15943 done 15944 15945 # Let's still pretend it is `configure' which instantiates (i.e., don't 15946 # use $as_me), people would be surprised to read: 15947 # /* config.h. Generated by config.status. */ 15948 configure_input='Generated from '` 15949 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15950 `' by configure.' 15951 if test x"$ac_file" != x-; then 15952 configure_input="$ac_file. $configure_input" 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15954$as_echo "$as_me: creating $ac_file" >&6;} 15955 fi 15956 # Neutralize special characters interpreted by sed in replacement strings. 15957 case $configure_input in #( 15958 *\&* | *\|* | *\\* ) 15959 ac_sed_conf_input=`$as_echo "$configure_input" | 15960 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15961 *) ac_sed_conf_input=$configure_input;; 15962 esac 15963 15964 case $ac_tag in 15965 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15967 esac 15968 ;; 15969 esac 15970 15971 ac_dir=`$as_dirname -- "$ac_file" || 15972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15973 X"$ac_file" : 'X\(//\)[^/]' \| \ 15974 X"$ac_file" : 'X\(//\)$' \| \ 15975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15976$as_echo X"$ac_file" | 15977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15978 s//\1/ 15979 q 15980 } 15981 /^X\(\/\/\)[^/].*/{ 15982 s//\1/ 15983 q 15984 } 15985 /^X\(\/\/\)$/{ 15986 s//\1/ 15987 q 15988 } 15989 /^X\(\/\).*/{ 15990 s//\1/ 15991 q 15992 } 15993 s/.*/./; q'` 15994 as_dir="$ac_dir"; as_fn_mkdir_p 15995 ac_builddir=. 15996 15997case "$ac_dir" in 15998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15999*) 16000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16001 # A ".." for each directory in $ac_dir_suffix. 16002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16003 case $ac_top_builddir_sub in 16004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16006 esac ;; 16007esac 16008ac_abs_top_builddir=$ac_pwd 16009ac_abs_builddir=$ac_pwd$ac_dir_suffix 16010# for backward compatibility: 16011ac_top_builddir=$ac_top_build_prefix 16012 16013case $srcdir in 16014 .) # We are building in place. 16015 ac_srcdir=. 16016 ac_top_srcdir=$ac_top_builddir_sub 16017 ac_abs_top_srcdir=$ac_pwd ;; 16018 [\\/]* | ?:[\\/]* ) # Absolute name. 16019 ac_srcdir=$srcdir$ac_dir_suffix; 16020 ac_top_srcdir=$srcdir 16021 ac_abs_top_srcdir=$srcdir ;; 16022 *) # Relative name. 16023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16024 ac_top_srcdir=$ac_top_build_prefix$srcdir 16025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16026esac 16027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16028 16029 16030 case $ac_mode in 16031 :F) 16032 # 16033 # CONFIG_FILE 16034 # 16035 16036 case $INSTALL in 16037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16039 esac 16040 ac_MKDIR_P=$MKDIR_P 16041 case $MKDIR_P in 16042 [\\/$]* | ?:[\\/]* ) ;; 16043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16044 esac 16045_ACEOF 16046 16047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16048# If the template does not know about datarootdir, expand it. 16049# FIXME: This hack should be removed a few years after 2.60. 16050ac_datarootdir_hack=; ac_datarootdir_seen= 16051ac_sed_dataroot=' 16052/datarootdir/ { 16053 p 16054 q 16055} 16056/@datadir@/p 16057/@docdir@/p 16058/@infodir@/p 16059/@localedir@/p 16060/@mandir@/p' 16061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16062*datarootdir*) ac_datarootdir_seen=yes;; 16063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16066_ACEOF 16067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16068 ac_datarootdir_hack=' 16069 s&@datadir@&$datadir&g 16070 s&@docdir@&$docdir&g 16071 s&@infodir@&$infodir&g 16072 s&@localedir@&$localedir&g 16073 s&@mandir@&$mandir&g 16074 s&\\\${datarootdir}&$datarootdir&g' ;; 16075esac 16076_ACEOF 16077 16078# Neutralize VPATH when `$srcdir' = `.'. 16079# Shell code in configure.ac might set extrasub. 16080# FIXME: do we really want to maintain this feature? 16081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16082ac_sed_extra="$ac_vpsub 16083$extrasub 16084_ACEOF 16085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16086:t 16087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16088s|@configure_input@|$ac_sed_conf_input|;t t 16089s&@top_builddir@&$ac_top_builddir_sub&;t t 16090s&@top_build_prefix@&$ac_top_build_prefix&;t t 16091s&@srcdir@&$ac_srcdir&;t t 16092s&@abs_srcdir@&$ac_abs_srcdir&;t t 16093s&@top_srcdir@&$ac_top_srcdir&;t t 16094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16095s&@builddir@&$ac_builddir&;t t 16096s&@abs_builddir@&$ac_abs_builddir&;t t 16097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16098s&@INSTALL@&$ac_INSTALL&;t t 16099s&@MKDIR_P@&$ac_MKDIR_P&;t t 16100$ac_datarootdir_hack 16101" 16102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16104 16105test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16108 "$ac_tmp/out"`; test -z "$ac_out"; } && 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16110which seems to be undefined. Please make sure it is defined" >&5 16111$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16112which seems to be undefined. Please make sure it is defined" >&2;} 16113 16114 rm -f "$ac_tmp/stdin" 16115 case $ac_file in 16116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16118 esac \ 16119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16120 ;; 16121 :H) 16122 # 16123 # CONFIG_HEADER 16124 # 16125 if test x"$ac_file" != x-; then 16126 { 16127 $as_echo "/* $configure_input */" \ 16128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16129 } >"$ac_tmp/config.h" \ 16130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16133$as_echo "$as_me: $ac_file is unchanged" >&6;} 16134 else 16135 rm -f "$ac_file" 16136 mv "$ac_tmp/config.h" "$ac_file" \ 16137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16138 fi 16139 else 16140 $as_echo "/* $configure_input */" \ 16141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16142 || as_fn_error $? "could not create -" "$LINENO" 5 16143 fi 16144# Compute "$ac_file"'s index in $config_headers. 16145_am_arg="$ac_file" 16146_am_stamp_count=1 16147for _am_header in $config_headers :; do 16148 case $_am_header in 16149 $_am_arg | $_am_arg:* ) 16150 break ;; 16151 * ) 16152 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16153 esac 16154done 16155echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16156$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16157 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16158 X"$_am_arg" : 'X\(//\)$' \| \ 16159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16160$as_echo X"$_am_arg" | 16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16162 s//\1/ 16163 q 16164 } 16165 /^X\(\/\/\)[^/].*/{ 16166 s//\1/ 16167 q 16168 } 16169 /^X\(\/\/\)$/{ 16170 s//\1/ 16171 q 16172 } 16173 /^X\(\/\).*/{ 16174 s//\1/ 16175 q 16176 } 16177 s/.*/./; q'`/stamp-h$_am_stamp_count 16178 ;; 16179 16180 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16181$as_echo "$as_me: executing $ac_file commands" >&6;} 16182 ;; 16183 esac 16184 16185 16186 case $ac_file$ac_mode in 16187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16188 # Older Autoconf quotes --file arguments for eval, but not when files 16189 # are listed without --file. Let's play safe and only enable the eval 16190 # if we detect the quoting. 16191 case $CONFIG_FILES in 16192 *\'*) eval set x "$CONFIG_FILES" ;; 16193 *) set x $CONFIG_FILES ;; 16194 esac 16195 shift 16196 for mf 16197 do 16198 # Strip MF so we end up with the name of the file. 16199 mf=`echo "$mf" | sed -e 's/:.*$//'` 16200 # Check whether this is an Automake generated Makefile or not. 16201 # We used to match only the files named 'Makefile.in', but 16202 # some people rename them; so instead we look at the file content. 16203 # Grep'ing the first line is not enough: some people post-process 16204 # each Makefile.in and add a new line on top of each file to say so. 16205 # Grep'ing the whole file is not good either: AIX grep has a line 16206 # limit of 2048, but all sed's we know have understand at least 4000. 16207 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16208 dirpart=`$as_dirname -- "$mf" || 16209$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16210 X"$mf" : 'X\(//\)[^/]' \| \ 16211 X"$mf" : 'X\(//\)$' \| \ 16212 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16213$as_echo X"$mf" | 16214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16215 s//\1/ 16216 q 16217 } 16218 /^X\(\/\/\)[^/].*/{ 16219 s//\1/ 16220 q 16221 } 16222 /^X\(\/\/\)$/{ 16223 s//\1/ 16224 q 16225 } 16226 /^X\(\/\).*/{ 16227 s//\1/ 16228 q 16229 } 16230 s/.*/./; q'` 16231 else 16232 continue 16233 fi 16234 # Extract the definition of DEPDIR, am__include, and am__quote 16235 # from the Makefile without running 'make'. 16236 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16237 test -z "$DEPDIR" && continue 16238 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16239 test -z "$am__include" && continue 16240 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16241 # Find all dependency output files, they are included files with 16242 # $(DEPDIR) in their names. We invoke sed twice because it is the 16243 # simplest approach to changing $(DEPDIR) to its actual value in the 16244 # expansion. 16245 for file in `sed -n " 16246 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16247 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16248 # Make sure the directory exists. 16249 test -f "$dirpart/$file" && continue 16250 fdir=`$as_dirname -- "$file" || 16251$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16252 X"$file" : 'X\(//\)[^/]' \| \ 16253 X"$file" : 'X\(//\)$' \| \ 16254 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16255$as_echo X"$file" | 16256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16257 s//\1/ 16258 q 16259 } 16260 /^X\(\/\/\)[^/].*/{ 16261 s//\1/ 16262 q 16263 } 16264 /^X\(\/\/\)$/{ 16265 s//\1/ 16266 q 16267 } 16268 /^X\(\/\).*/{ 16269 s//\1/ 16270 q 16271 } 16272 s/.*/./; q'` 16273 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16274 # echo "creating $dirpart/$file" 16275 echo '# dummy' > "$dirpart/$file" 16276 done 16277 done 16278} 16279 ;; 16280 "libtool":C) 16281 16282 # See if we are running on zsh, and set the options which allow our 16283 # commands through without removal of \ escapes. 16284 if test -n "${ZSH_VERSION+set}" ; then 16285 setopt NO_GLOB_SUBST 16286 fi 16287 16288 cfgfile="${ofile}T" 16289 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16290 $RM "$cfgfile" 16291 16292 cat <<_LT_EOF >> "$cfgfile" 16293#! $SHELL 16294 16295# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16296# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16298# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16299# 16300# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16301# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 16302# Foundation, Inc. 16303# Written by Gordon Matzigkeit, 1996 16304# 16305# This file is part of GNU Libtool. 16306# 16307# GNU Libtool is free software; you can redistribute it and/or 16308# modify it under the terms of the GNU General Public License as 16309# published by the Free Software Foundation; either version 2 of 16310# the License, or (at your option) any later version. 16311# 16312# As a special exception to the GNU General Public License, 16313# if you distribute this file as part of a program or library that 16314# is built using GNU Libtool, you may include this file under the 16315# same distribution terms that you use for the rest of that program. 16316# 16317# GNU Libtool is distributed in the hope that it will be useful, 16318# but WITHOUT ANY WARRANTY; without even the implied warranty of 16319# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16320# GNU General Public License for more details. 16321# 16322# You should have received a copy of the GNU General Public License 16323# along with GNU Libtool; see the file COPYING. If not, a copy 16324# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16325# obtained by writing to the Free Software Foundation, Inc., 16326# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16327 16328 16329# The names of the tagged configurations supported by this script. 16330available_tags="" 16331 16332# ### BEGIN LIBTOOL CONFIG 16333 16334# Which release of libtool.m4 was used? 16335macro_version=$macro_version 16336macro_revision=$macro_revision 16337 16338# Whether or not to build static libraries. 16339build_old_libs=$enable_static 16340 16341# What type of objects to build. 16342pic_mode=$pic_mode 16343 16344# Whether or not to build shared libraries. 16345build_libtool_libs=$enable_shared 16346 16347# Whether or not to optimize for fast installation. 16348fast_install=$enable_fast_install 16349 16350# Shell to use when invoking shell scripts. 16351SHELL=$lt_SHELL 16352 16353# An echo program that protects backslashes. 16354ECHO=$lt_ECHO 16355 16356# The PATH separator for the build system. 16357PATH_SEPARATOR=$lt_PATH_SEPARATOR 16358 16359# The host system. 16360host_alias=$host_alias 16361host=$host 16362host_os=$host_os 16363 16364# The build system. 16365build_alias=$build_alias 16366build=$build 16367build_os=$build_os 16368 16369# A sed program that does not truncate output. 16370SED=$lt_SED 16371 16372# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16373Xsed="\$SED -e 1s/^X//" 16374 16375# A grep program that handles long lines. 16376GREP=$lt_GREP 16377 16378# An ERE matcher. 16379EGREP=$lt_EGREP 16380 16381# A literal string matcher. 16382FGREP=$lt_FGREP 16383 16384# A BSD- or MS-compatible name lister. 16385NM=$lt_NM 16386 16387# Whether we need soft or hard links. 16388LN_S=$lt_LN_S 16389 16390# What is the maximum length of a command? 16391max_cmd_len=$max_cmd_len 16392 16393# Object file suffix (normally "o"). 16394objext=$ac_objext 16395 16396# Executable file suffix (normally ""). 16397exeext=$exeext 16398 16399# whether the shell understands "unset". 16400lt_unset=$lt_unset 16401 16402# turn spaces into newlines. 16403SP2NL=$lt_lt_SP2NL 16404 16405# turn newlines into spaces. 16406NL2SP=$lt_lt_NL2SP 16407 16408# convert \$build file names to \$host format. 16409to_host_file_cmd=$lt_cv_to_host_file_cmd 16410 16411# convert \$build files to toolchain format. 16412to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16413 16414# An object symbol dumper. 16415OBJDUMP=$lt_OBJDUMP 16416 16417# Method to check whether dependent libraries are shared objects. 16418deplibs_check_method=$lt_deplibs_check_method 16419 16420# Command to use when deplibs_check_method = "file_magic". 16421file_magic_cmd=$lt_file_magic_cmd 16422 16423# How to find potential files when deplibs_check_method = "file_magic". 16424file_magic_glob=$lt_file_magic_glob 16425 16426# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16427want_nocaseglob=$lt_want_nocaseglob 16428 16429# DLL creation program. 16430DLLTOOL=$lt_DLLTOOL 16431 16432# Command to associate shared and link libraries. 16433sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16434 16435# The archiver. 16436AR=$lt_AR 16437 16438# Flags to create an archive. 16439AR_FLAGS=$lt_AR_FLAGS 16440 16441# How to feed a file listing to the archiver. 16442archiver_list_spec=$lt_archiver_list_spec 16443 16444# A symbol stripping program. 16445STRIP=$lt_STRIP 16446 16447# Commands used to install an old-style archive. 16448RANLIB=$lt_RANLIB 16449old_postinstall_cmds=$lt_old_postinstall_cmds 16450old_postuninstall_cmds=$lt_old_postuninstall_cmds 16451 16452# Whether to use a lock for old archive extraction. 16453lock_old_archive_extraction=$lock_old_archive_extraction 16454 16455# A C compiler. 16456LTCC=$lt_CC 16457 16458# LTCC compiler flags. 16459LTCFLAGS=$lt_CFLAGS 16460 16461# Take the output of nm and produce a listing of raw symbols and C names. 16462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16463 16464# Transform the output of nm in a proper C declaration. 16465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16466 16467# Transform the output of nm in a C name address pair. 16468global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16469 16470# Transform the output of nm in a C name address pair when lib prefix is needed. 16471global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16472 16473# Specify filename containing input files for \$NM. 16474nm_file_list_spec=$lt_nm_file_list_spec 16475 16476# The root where to search for dependent libraries,and in which our libraries should be installed. 16477lt_sysroot=$lt_sysroot 16478 16479# The name of the directory that contains temporary libtool files. 16480objdir=$objdir 16481 16482# Used to examine libraries when file_magic_cmd begins with "file". 16483MAGIC_CMD=$MAGIC_CMD 16484 16485# Must we lock files when doing compilation? 16486need_locks=$lt_need_locks 16487 16488# Manifest tool. 16489MANIFEST_TOOL=$lt_MANIFEST_TOOL 16490 16491# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16492DSYMUTIL=$lt_DSYMUTIL 16493 16494# Tool to change global to local symbols on Mac OS X. 16495NMEDIT=$lt_NMEDIT 16496 16497# Tool to manipulate fat objects and archives on Mac OS X. 16498LIPO=$lt_LIPO 16499 16500# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16501OTOOL=$lt_OTOOL 16502 16503# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16504OTOOL64=$lt_OTOOL64 16505 16506# Old archive suffix (normally "a"). 16507libext=$libext 16508 16509# Shared library suffix (normally ".so"). 16510shrext_cmds=$lt_shrext_cmds 16511 16512# The commands to extract the exported symbol list from a shared archive. 16513extract_expsyms_cmds=$lt_extract_expsyms_cmds 16514 16515# Variables whose values should be saved in libtool wrapper scripts and 16516# restored at link time. 16517variables_saved_for_relink=$lt_variables_saved_for_relink 16518 16519# Do we need the "lib" prefix for modules? 16520need_lib_prefix=$need_lib_prefix 16521 16522# Do we need a version for libraries? 16523need_version=$need_version 16524 16525# Library versioning type. 16526version_type=$version_type 16527 16528# Shared library runtime path variable. 16529runpath_var=$runpath_var 16530 16531# Shared library path variable. 16532shlibpath_var=$shlibpath_var 16533 16534# Is shlibpath searched before the hard-coded library search path? 16535shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16536 16537# Format of library name prefix. 16538libname_spec=$lt_libname_spec 16539 16540# List of archive names. First name is the real one, the rest are links. 16541# The last name is the one that the linker finds with -lNAME 16542library_names_spec=$lt_library_names_spec 16543 16544# The coded name of the library, if different from the real name. 16545soname_spec=$lt_soname_spec 16546 16547# Permission mode override for installation of shared libraries. 16548install_override_mode=$lt_install_override_mode 16549 16550# Command to use after installation of a shared archive. 16551postinstall_cmds=$lt_postinstall_cmds 16552 16553# Command to use after uninstallation of a shared archive. 16554postuninstall_cmds=$lt_postuninstall_cmds 16555 16556# Commands used to finish a libtool library installation in a directory. 16557finish_cmds=$lt_finish_cmds 16558 16559# As "finish_cmds", except a single script fragment to be evaled but 16560# not shown. 16561finish_eval=$lt_finish_eval 16562 16563# Whether we should hardcode library paths into libraries. 16564hardcode_into_libs=$hardcode_into_libs 16565 16566# Compile-time system search path for libraries. 16567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16568 16569# Run-time system search path for libraries. 16570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16571 16572# Whether dlopen is supported. 16573dlopen_support=$enable_dlopen 16574 16575# Whether dlopen of programs is supported. 16576dlopen_self=$enable_dlopen_self 16577 16578# Whether dlopen of statically linked programs is supported. 16579dlopen_self_static=$enable_dlopen_self_static 16580 16581# Commands to strip libraries. 16582old_striplib=$lt_old_striplib 16583striplib=$lt_striplib 16584 16585 16586# The linker used to build libraries. 16587LD=$lt_LD 16588 16589# How to create reloadable object files. 16590reload_flag=$lt_reload_flag 16591reload_cmds=$lt_reload_cmds 16592 16593# Commands used to build an old-style archive. 16594old_archive_cmds=$lt_old_archive_cmds 16595 16596# A language specific compiler. 16597CC=$lt_compiler 16598 16599# Is the compiler the GNU compiler? 16600with_gcc=$GCC 16601 16602# Compiler flag to turn off builtin functions. 16603no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16604 16605# Additional compiler flags for building library objects. 16606pic_flag=$lt_lt_prog_compiler_pic 16607 16608# How to pass a linker flag through the compiler. 16609wl=$lt_lt_prog_compiler_wl 16610 16611# Compiler flag to prevent dynamic linking. 16612link_static_flag=$lt_lt_prog_compiler_static 16613 16614# Does compiler simultaneously support -c and -o options? 16615compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16616 16617# Whether or not to add -lc for building shared libraries. 16618build_libtool_need_lc=$archive_cmds_need_lc 16619 16620# Whether or not to disallow shared libs when runtime libs are static. 16621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16622 16623# Compiler flag to allow reflexive dlopens. 16624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16625 16626# Compiler flag to generate shared objects directly from archives. 16627whole_archive_flag_spec=$lt_whole_archive_flag_spec 16628 16629# Whether the compiler copes with passing no objects directly. 16630compiler_needs_object=$lt_compiler_needs_object 16631 16632# Create an old-style archive from a shared archive. 16633old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16634 16635# Create a temporary old-style archive to link instead of a shared archive. 16636old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16637 16638# Commands used to build a shared archive. 16639archive_cmds=$lt_archive_cmds 16640archive_expsym_cmds=$lt_archive_expsym_cmds 16641 16642# Commands used to build a loadable module if different from building 16643# a shared archive. 16644module_cmds=$lt_module_cmds 16645module_expsym_cmds=$lt_module_expsym_cmds 16646 16647# Whether we are building with GNU ld or not. 16648with_gnu_ld=$lt_with_gnu_ld 16649 16650# Flag that allows shared libraries with undefined symbols to be built. 16651allow_undefined_flag=$lt_allow_undefined_flag 16652 16653# Flag that enforces no undefined symbols. 16654no_undefined_flag=$lt_no_undefined_flag 16655 16656# Flag to hardcode \$libdir into a binary during linking. 16657# This must work even if \$libdir does not exist 16658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16659 16660# Whether we need a single "-rpath" flag with a separated argument. 16661hardcode_libdir_separator=$lt_hardcode_libdir_separator 16662 16663# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16664# DIR into the resulting binary. 16665hardcode_direct=$hardcode_direct 16666 16667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16668# DIR into the resulting binary and the resulting library dependency is 16669# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16670# library is relocated. 16671hardcode_direct_absolute=$hardcode_direct_absolute 16672 16673# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16674# into the resulting binary. 16675hardcode_minus_L=$hardcode_minus_L 16676 16677# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16678# into the resulting binary. 16679hardcode_shlibpath_var=$hardcode_shlibpath_var 16680 16681# Set to "yes" if building a shared library automatically hardcodes DIR 16682# into the library and all subsequent libraries and executables linked 16683# against it. 16684hardcode_automatic=$hardcode_automatic 16685 16686# Set to yes if linker adds runtime paths of dependent libraries 16687# to runtime path list. 16688inherit_rpath=$inherit_rpath 16689 16690# Whether libtool must link a program against all its dependency libraries. 16691link_all_deplibs=$link_all_deplibs 16692 16693# Set to "yes" if exported symbols are required. 16694always_export_symbols=$always_export_symbols 16695 16696# The commands to list exported symbols. 16697export_symbols_cmds=$lt_export_symbols_cmds 16698 16699# Symbols that should not be listed in the preloaded symbols. 16700exclude_expsyms=$lt_exclude_expsyms 16701 16702# Symbols that must always be exported. 16703include_expsyms=$lt_include_expsyms 16704 16705# Commands necessary for linking programs (against libraries) with templates. 16706prelink_cmds=$lt_prelink_cmds 16707 16708# Commands necessary for finishing linking programs. 16709postlink_cmds=$lt_postlink_cmds 16710 16711# Specify filename containing input files. 16712file_list_spec=$lt_file_list_spec 16713 16714# How to hardcode a shared library path into an executable. 16715hardcode_action=$hardcode_action 16716 16717# ### END LIBTOOL CONFIG 16718 16719_LT_EOF 16720 16721 case $host_os in 16722 aix3*) 16723 cat <<\_LT_EOF >> "$cfgfile" 16724# AIX sometimes has problems with the GCC collect2 program. For some 16725# reason, if we set the COLLECT_NAMES environment variable, the problems 16726# vanish in a puff of smoke. 16727if test "X${COLLECT_NAMES+set}" != Xset; then 16728 COLLECT_NAMES= 16729 export COLLECT_NAMES 16730fi 16731_LT_EOF 16732 ;; 16733 esac 16734 16735 16736ltmain="$ac_aux_dir/ltmain.sh" 16737 16738 16739 # We use sed instead of cat because bash on DJGPP gets confused if 16740 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16741 # text mode, it properly converts lines to CR/LF. This bash problem 16742 # is reportedly fixed, but why not run on old versions too? 16743 sed '$q' "$ltmain" >> "$cfgfile" \ 16744 || (rm -f "$cfgfile"; exit 1) 16745 16746 if test x"$xsi_shell" = xyes; then 16747 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 16748func_dirname ()\ 16749{\ 16750\ case ${1} in\ 16751\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16752\ * ) func_dirname_result="${3}" ;;\ 16753\ esac\ 16754} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 16755 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16757test 0 -eq $? || _lt_function_replace_fail=: 16758 16759 16760 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 16761func_basename ()\ 16762{\ 16763\ func_basename_result="${1##*/}"\ 16764} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16765 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16767test 0 -eq $? || _lt_function_replace_fail=: 16768 16769 16770 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 16771func_dirname_and_basename ()\ 16772{\ 16773\ case ${1} in\ 16774\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16775\ * ) func_dirname_result="${3}" ;;\ 16776\ esac\ 16777\ func_basename_result="${1##*/}"\ 16778} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16779 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16781test 0 -eq $? || _lt_function_replace_fail=: 16782 16783 16784 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 16785func_stripname ()\ 16786{\ 16787\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 16788\ # positional parameters, so assign one to ordinary parameter first.\ 16789\ func_stripname_result=${3}\ 16790\ func_stripname_result=${func_stripname_result#"${1}"}\ 16791\ func_stripname_result=${func_stripname_result%"${2}"}\ 16792} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 16793 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16795test 0 -eq $? || _lt_function_replace_fail=: 16796 16797 16798 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 16799func_split_long_opt ()\ 16800{\ 16801\ func_split_long_opt_name=${1%%=*}\ 16802\ func_split_long_opt_arg=${1#*=}\ 16803} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16804 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16806test 0 -eq $? || _lt_function_replace_fail=: 16807 16808 16809 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 16810func_split_short_opt ()\ 16811{\ 16812\ func_split_short_opt_arg=${1#??}\ 16813\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 16814} # Extended-shell func_split_short_opt 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_lo2o ()$/,/^} # func_lo2o /c\ 16821func_lo2o ()\ 16822{\ 16823\ case ${1} in\ 16824\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 16825\ *) func_lo2o_result=${1} ;;\ 16826\ esac\ 16827} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 16828 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16830test 0 -eq $? || _lt_function_replace_fail=: 16831 16832 16833 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 16834func_xform ()\ 16835{\ 16836 func_xform_result=${1%.*}.lo\ 16837} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 16838 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16840test 0 -eq $? || _lt_function_replace_fail=: 16841 16842 16843 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 16844func_arith ()\ 16845{\ 16846 func_arith_result=$(( $* ))\ 16847} # Extended-shell func_arith 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 sed -e '/^func_len ()$/,/^} # func_len /c\ 16854func_len ()\ 16855{\ 16856 func_len_result=${#1}\ 16857} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 16858 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16860test 0 -eq $? || _lt_function_replace_fail=: 16861 16862fi 16863 16864if test x"$lt_shell_append" = xyes; then 16865 sed -e '/^func_append ()$/,/^} # func_append /c\ 16866func_append ()\ 16867{\ 16868 eval "${1}+=\\${2}"\ 16869} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 16870 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16872test 0 -eq $? || _lt_function_replace_fail=: 16873 16874 16875 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 16876func_append_quoted ()\ 16877{\ 16878\ func_quote_for_eval "${2}"\ 16879\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 16880} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 16881 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16883test 0 -eq $? || _lt_function_replace_fail=: 16884 16885 16886 # Save a `func_append' function call where possible by direct use of '+=' 16887 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 16888 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16890 test 0 -eq $? || _lt_function_replace_fail=: 16891else 16892 # Save a `func_append' function call even when '+=' is not available 16893 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16894 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16896 test 0 -eq $? || _lt_function_replace_fail=: 16897fi 16898 16899if test x"$_lt_function_replace_fail" = x":"; then 16900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16901$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16902fi 16903 16904 16905 mv -f "$cfgfile" "$ofile" || 16906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16907 chmod +x "$ofile" 16908 16909 ;; 16910 16911 esac 16912done # for ac_tag 16913 16914 16915as_fn_exit 0 16916_ACEOF 16917ac_clean_files=$ac_clean_files_save 16918 16919test $ac_write_fail = 0 || 16920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16921 16922 16923# configure is writing to config.log, and then calls config.status. 16924# config.status does its own redirection, appending to config.log. 16925# Unfortunately, on DOS this fails, as config.log is still kept open 16926# by configure, so config.status won't be able to write to it; its 16927# output is simply discarded. So we exec the FD to /dev/null, 16928# effectively closing config.log, so it can be properly (re)opened and 16929# appended to by config.status. When coming back to configure, we 16930# need to make the FD available again. 16931if test "$no_create" != yes; then 16932 ac_cs_success=: 16933 ac_config_status_args= 16934 test "$silent" = yes && 16935 ac_config_status_args="$ac_config_status_args --quiet" 16936 exec 5>/dev/null 16937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16938 exec 5>>config.log 16939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16940 # would make configure fail if this is the last instruction. 16941 $ac_cs_success || as_fn_exit 1 16942fi 16943if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16945$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16946fi 16947 16948