1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for package-unused version-unused. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='package-unused' 589PACKAGE_TARNAME='libbacktrace' 590PACKAGE_VERSION='version-unused' 591PACKAGE_STRING='package-unused version-unused' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="backtrace.h" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636NATIVE_FALSE 637NATIVE_TRUE 638HAVE_DSYMUTIL_FALSE 639HAVE_DSYMUTIL_TRUE 640HAVE_OBJCOPY_DEBUGLINK_FALSE 641HAVE_OBJCOPY_DEBUGLINK_TRUE 642READELF 643OBJCOPY 644HAVE_COMPRESSED_DEBUG_FALSE 645HAVE_COMPRESSED_DEBUG_TRUE 646HAVE_ZLIB_FALSE 647HAVE_ZLIB_TRUE 648HAVE_DWARF5_FALSE 649HAVE_DWARF5_TRUE 650HAVE_PTHREAD_FALSE 651HAVE_PTHREAD_TRUE 652PTHREAD_CFLAGS 653CLOCK_GETTIME_LINK 654BACKTRACE_USES_MALLOC 655ALLOC_FILE 656VIEW_FILE 657BACKTRACE_SUPPORTS_DATA 658BACKTRACE_SUPPORTED 659HAVE_ELF_FALSE 660HAVE_ELF_TRUE 661FORMAT_FILE 662BACKTRACE_SUPPORTS_THREADS 663PIC_FLAG 664WARN_FLAGS 665EXTRA_FLAGS 666BACKTRACE_FILE 667OTOOL64 668OTOOL 669LIPO 670NMEDIT 671DSYMUTIL 672AR 673OBJDUMP 674LN_S 675NM 676ac_ct_DUMPBIN 677DUMPBIN 678LD 679FGREP 680SED 681LIBTOOL 682HAVE_DWZ_FALSE 683HAVE_DWZ_TRUE 684DWZ 685RANLIB 686MAINT 687MAINTAINER_MODE_FALSE 688MAINTAINER_MODE_TRUE 689AM_BACKSLASH 690AM_DEFAULT_VERBOSITY 691AM_DEFAULT_V 692AM_V 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716libtool_VERSION 717EGREP 718GREP 719CPP 720OBJEXT 721EXEEXT 722ac_ct_CC 723CPPFLAGS 724LDFLAGS 725CFLAGS 726CC 727target_os 728target_vendor 729target_cpu 730target 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739multi_basedir 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_multilib 782enable_shared 783enable_silent_rules 784enable_maintainer_mode 785with_target_subdir 786enable_static 787with_pic 788enable_fast_install 789with_gnu_ld 790enable_libtool_lock 791enable_largefile 792with_system_libunwind 793enable_host_shared 794' 795 ac_precious_vars='build_alias 796host_alias 797target_alias 798CC 799CFLAGS 800LDFLAGS 801LIBS 802CPPFLAGS 803CPP 804OBJCOPY 805DSYMUTIL' 806 807 808# Initialize some variables set by options. 809ac_init_help= 810ac_init_version=false 811ac_unrecognized_opts= 812ac_unrecognized_sep= 813# The variables have the same names as the options, with 814# dashes changed to underlines. 815cache_file=/dev/null 816exec_prefix=NONE 817no_create= 818no_recursion= 819prefix=NONE 820program_prefix=NONE 821program_suffix=NONE 822program_transform_name=s,x,x, 823silent= 824site= 825srcdir= 826verbose= 827x_includes=NONE 828x_libraries=NONE 829 830# Installation directory options. 831# These are left unexpanded so users can "make install exec_prefix=/foo" 832# and all the variables that are supposed to be based on exec_prefix 833# by default will actually change. 834# Use braces instead of parens because sh, perl, etc. also accept them. 835# (The list follows the same order as the GNU Coding Standards.) 836bindir='${exec_prefix}/bin' 837sbindir='${exec_prefix}/sbin' 838libexecdir='${exec_prefix}/libexec' 839datarootdir='${prefix}/share' 840datadir='${datarootdir}' 841sysconfdir='${prefix}/etc' 842sharedstatedir='${prefix}/com' 843localstatedir='${prefix}/var' 844includedir='${prefix}/include' 845oldincludedir='/usr/include' 846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 847infodir='${datarootdir}/info' 848htmldir='${docdir}' 849dvidir='${docdir}' 850pdfdir='${docdir}' 851psdir='${docdir}' 852libdir='${exec_prefix}/lib' 853localedir='${datarootdir}/locale' 854mandir='${datarootdir}/man' 855 856ac_prev= 857ac_dashdash= 858for ac_option 859do 860 # If the previous option needs an argument, assign it. 861 if test -n "$ac_prev"; then 862 eval $ac_prev=\$ac_option 863 ac_prev= 864 continue 865 fi 866 867 case $ac_option in 868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 869 *=) ac_optarg= ;; 870 *) ac_optarg=yes ;; 871 esac 872 873 # Accept the important Cygnus configure options, so we can diagnose typos. 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 1065 -program-transform-name | --program-transform-name \ 1066 | --program-transform-nam | --program-transform-na \ 1067 | --program-transform-n | --program-transform- \ 1068 | --program-transform | --program-transfor \ 1069 | --program-transfo | --program-transf \ 1070 | --program-trans | --program-tran \ 1071 | --progr-tra | --program-tr | --program-t) 1072 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: $ac_useropt" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289$as_echo X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411 --target=TARGET configure for building compilers for TARGET [HOST] 1412_ACEOF 1413fi 1414 1415if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of package-unused version-unused:";; 1418 esac 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-multilib build many library versions (default) 1426 --enable-shared[=PKGS] build shared libraries [default=no] 1427 --enable-silent-rules less verbose build output (undo: "make V=1") 1428 --disable-silent-rules verbose build output (undo: "make V=0") 1429 --enable-maintainer-mode 1430 enable make rules and dependencies not useful (and 1431 sometimes confusing) to the casual installer 1432 --enable-static[=PKGS] build static libraries [default=yes] 1433 --enable-fast-install[=PKGS] 1434 optimize for fast installation [default=yes] 1435 --disable-libtool-lock avoid locking (might break parallel builds) 1436 --disable-largefile omit support for large files 1437 --enable-host-shared build host code as shared libraries 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-target-subdir=SUBDIR Configuring in a subdirectory for target 1443 --with-pic try to use only PIC/non-PIC objects [default=use 1444 both] 1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1446 --with-system-libunwind use installed libunwind 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 CPP C preprocessor 1457 OBJCOPY location of objcopy 1458 DSYMUTIL location of dsymutil 1459 1460Use these variables to override the choices made by `configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to the package provider. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for guested configure. 1510 if test -f "$ac_srcdir/configure.gnu"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1513 elif test -f "$ac_srcdir/configure"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure" --help=recursive 1516 else 1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1518 fi || ac_status=$? 1519 cd "$ac_pwd" || { ac_status=$?; break; } 1520 done 1521fi 1522 1523test -n "$ac_init_help" && exit $ac_status 1524if $ac_init_version; then 1525 cat <<\_ACEOF 1526package-unused configure version-unused 1527generated by GNU Autoconf 2.69 1528 1529Copyright (C) 2012 Free Software Foundation, Inc. 1530This configure script is free software; the Free Software Foundation 1531gives unlimited permission to copy, distribute and modify it. 1532_ACEOF 1533 exit 1534fi 1535 1536## ------------------------ ## 1537## Autoconf initialization. ## 1538## ------------------------ ## 1539 1540# ac_fn_c_try_compile LINENO 1541# -------------------------- 1542# Try to compile conftest.$ac_ext, and return whether this succeeded. 1543ac_fn_c_try_compile () 1544{ 1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1546 rm -f conftest.$ac_objext 1547 if { { ac_try="$ac_compile" 1548case "(($ac_try" in 1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1550 *) ac_try_echo=$ac_try;; 1551esac 1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1553$as_echo "$ac_try_echo"; } >&5 1554 (eval "$ac_compile") 2>conftest.err 1555 ac_status=$? 1556 if test -s conftest.err; then 1557 grep -v '^ *+' conftest.err >conftest.er1 1558 cat conftest.er1 >&5 1559 mv -f conftest.er1 conftest.err 1560 fi 1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1562 test $ac_status = 0; } && { 1563 test -z "$ac_c_werror_flag" || 1564 test ! -s conftest.err 1565 } && test -s conftest.$ac_objext; then : 1566 ac_retval=0 1567else 1568 $as_echo "$as_me: failed program was:" >&5 1569sed 's/^/| /' conftest.$ac_ext >&5 1570 1571 ac_retval=1 1572fi 1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574 as_fn_set_status $ac_retval 1575 1576} # ac_fn_c_try_compile 1577 1578# ac_fn_c_try_cpp LINENO 1579# ---------------------- 1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_cpp () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 if { { ac_try="$ac_cpp conftest.$ac_ext" 1585case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } > conftest.i && { 1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 }; then : 1603 ac_retval=0 1604else 1605 $as_echo "$as_me: failed program was:" >&5 1606sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_cpp 1614 1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1616# ------------------------------------------------------- 1617# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1618# the include files in INCLUDES and setting the cache variable VAR 1619# accordingly. 1620ac_fn_c_check_header_mongrel () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 if eval \${$3+:} false; then : 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1625$as_echo_n "checking for $2... " >&6; } 1626if eval \${$3+:} false; then : 1627 $as_echo_n "(cached) " >&6 1628fi 1629eval ac_res=\$$3 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1631$as_echo "$ac_res" >&6; } 1632else 1633 # Is the header compilable? 1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1635$as_echo_n "checking $2 usability... " >&6; } 1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637/* end confdefs.h. */ 1638$4 1639#include <$2> 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO"; then : 1642 ac_header_compiler=yes 1643else 1644 ac_header_compiler=no 1645fi 1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1648$as_echo "$ac_header_compiler" >&6; } 1649 1650# Is the header present? 1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1652$as_echo_n "checking $2 presence... " >&6; } 1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655#include <$2> 1656_ACEOF 1657if ac_fn_c_try_cpp "$LINENO"; then : 1658 ac_header_preproc=yes 1659else 1660 ac_header_preproc=no 1661fi 1662rm -f conftest.err conftest.i conftest.$ac_ext 1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1664$as_echo "$ac_header_preproc" >&6; } 1665 1666# So? What about this header? 1667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1668 yes:no: ) 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1670$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1673 ;; 1674 no:yes:* ) 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1676$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1678$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1680$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1682$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1685 ;; 1686esac 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1688$as_echo_n "checking for $2... " >&6; } 1689if eval \${$3+:} false; then : 1690 $as_echo_n "(cached) " >&6 1691else 1692 eval "$3=\$ac_header_compiler" 1693fi 1694eval ac_res=\$$3 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1696$as_echo "$ac_res" >&6; } 1697fi 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 1700} # ac_fn_c_check_header_mongrel 1701 1702# ac_fn_c_try_run LINENO 1703# ---------------------- 1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1705# that executables *can* be run. 1706ac_fn_c_try_run () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 if { { ac_try="$ac_link" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_link") 2>&5 1717 ac_status=$? 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1720 { { case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_try") 2>&5 1727 ac_status=$? 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; }; }; then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: program exited with status $ac_status" >&5 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=$ac_status 1737fi 1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 as_fn_set_status $ac_retval 1741 1742} # ac_fn_c_try_run 1743 1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1745# ------------------------------------------------------- 1746# Tests whether HEADER exists and can be compiled using the include files in 1747# INCLUDES, setting the cache variable VAR accordingly. 1748ac_fn_c_check_header_compile () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1752$as_echo_n "checking for $2... " >&6; } 1753if eval \${$3+:} false; then : 1754 $as_echo_n "(cached) " >&6 1755else 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$4 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO"; then : 1762 eval "$3=yes" 1763else 1764 eval "$3=no" 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767fi 1768eval ac_res=\$$3 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770$as_echo "$ac_res" >&6; } 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 1773} # ac_fn_c_check_header_compile 1774 1775# ac_fn_c_try_link LINENO 1776# ----------------------- 1777# Try to link conftest.$ac_ext, and return whether this succeeded. 1778ac_fn_c_try_link () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 rm -f conftest.$ac_objext conftest$ac_exeext 1782 if { { ac_try="$ac_link" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788$as_echo "$ac_try_echo"; } >&5 1789 (eval "$ac_link") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { 1798 test -z "$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } && test -s conftest$ac_exeext && { 1801 test "$cross_compiling" = yes || 1802 test -x conftest$ac_exeext 1803 }; then : 1804 ac_retval=0 1805else 1806 $as_echo "$as_me: failed program was:" >&5 1807sed 's/^/| /' conftest.$ac_ext >&5 1808 1809 ac_retval=1 1810fi 1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1813 # interfere with the next link command; also delete a directory that is 1814 # left behind by Apple's compiler. We do this before executing the actions. 1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 as_fn_set_status $ac_retval 1818 1819} # ac_fn_c_try_link 1820 1821# ac_fn_c_check_func LINENO FUNC VAR 1822# ---------------------------------- 1823# Tests whether FUNC exists, setting the cache variable VAR accordingly 1824ac_fn_c_check_func () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1828$as_echo_n "checking for $2... " >&6; } 1829if eval \${$3+:} false; then : 1830 $as_echo_n "(cached) " >&6 1831else 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1836#define $2 innocuous_$2 1837 1838/* System header to define __stub macros and hopefully few prototypes, 1839 which can conflict with char $2 (); below. 1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1841 <limits.h> exists even on freestanding compilers. */ 1842 1843#ifdef __STDC__ 1844# include <limits.h> 1845#else 1846# include <assert.h> 1847#endif 1848 1849#undef $2 1850 1851/* Override any GCC internal prototype to avoid an error. 1852 Use char because int might match the return type of a GCC 1853 builtin and then its argument prototype would still apply. */ 1854#ifdef __cplusplus 1855extern "C" 1856#endif 1857char $2 (); 1858/* The GNU C library defines this for functions which it implements 1859 to always fail with ENOSYS. Some functions are actually named 1860 something starting with __ and the normal name is an alias. */ 1861#if defined __stub_$2 || defined __stub___$2 1862choke me 1863#endif 1864 1865int 1866main () 1867{ 1868return $2 (); 1869 ; 1870 return 0; 1871} 1872_ACEOF 1873if ac_fn_c_try_link "$LINENO"; then : 1874 eval "$3=yes" 1875else 1876 eval "$3=no" 1877fi 1878rm -f core conftest.err conftest.$ac_objext \ 1879 conftest$ac_exeext conftest.$ac_ext 1880fi 1881eval ac_res=\$$3 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883$as_echo "$ac_res" >&6; } 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_func 1887 1888# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1889# --------------------------------------------- 1890# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1891# accordingly. 1892ac_fn_c_check_decl () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 as_decl_name=`echo $2|sed 's/ *(.*//'` 1896 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1898$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1899if eval \${$3+:} false; then : 1900 $as_echo_n "(cached) " >&6 1901else 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905int 1906main () 1907{ 1908#ifndef $as_decl_name 1909#ifdef __cplusplus 1910 (void) $as_decl_use; 1911#else 1912 (void) $as_decl_name; 1913#endif 1914#endif 1915 1916 ; 1917 return 0; 1918} 1919_ACEOF 1920if ac_fn_c_try_compile "$LINENO"; then : 1921 eval "$3=yes" 1922else 1923 eval "$3=no" 1924fi 1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 1932} # ac_fn_c_check_decl 1933cat >config.log <<_ACEOF 1934This file contains any messages produced by compilers while 1935running configure, to aid debugging if configure makes a mistake. 1936 1937It was created by package-unused $as_me version-unused, which was 1938generated by GNU Autoconf 2.69. Invocation command line was 1939 1940 $ $0 $@ 1941 1942_ACEOF 1943exec 5>>config.log 1944{ 1945cat <<_ASUNAME 1946## --------- ## 1947## Platform. ## 1948## --------- ## 1949 1950hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1951uname -m = `(uname -m) 2>/dev/null || echo unknown` 1952uname -r = `(uname -r) 2>/dev/null || echo unknown` 1953uname -s = `(uname -s) 2>/dev/null || echo unknown` 1954uname -v = `(uname -v) 2>/dev/null || echo unknown` 1955 1956/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1957/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1958 1959/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1960/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1961/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1962/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1963/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1964/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1965/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1966 1967_ASUNAME 1968 1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1970for as_dir in $PATH 1971do 1972 IFS=$as_save_IFS 1973 test -z "$as_dir" && as_dir=. 1974 $as_echo "PATH: $as_dir" 1975 done 1976IFS=$as_save_IFS 1977 1978} >&5 1979 1980cat >&5 <<_ACEOF 1981 1982 1983## ----------- ## 1984## Core tests. ## 1985## ----------- ## 1986 1987_ACEOF 1988 1989 1990# Keep a trace of the command line. 1991# Strip out --no-create and --no-recursion so they do not pile up. 1992# Strip out --silent because we don't want to record it for future runs. 1993# Also quote any args containing shell meta-characters. 1994# Make two passes to allow for proper duplicate-argument suppression. 1995ac_configure_args= 1996ac_configure_args0= 1997ac_configure_args1= 1998ac_must_keep_next=false 1999for ac_pass in 1 2 2000do 2001 for ac_arg 2002 do 2003 case $ac_arg in 2004 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2006 | -silent | --silent | --silen | --sile | --sil) 2007 continue ;; 2008 *\'*) 2009 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2010 esac 2011 case $ac_pass in 2012 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2013 2) 2014 as_fn_append ac_configure_args1 " '$ac_arg'" 2015 if test $ac_must_keep_next = true; then 2016 ac_must_keep_next=false # Got value, back to normal. 2017 else 2018 case $ac_arg in 2019 *=* | --config-cache | -C | -disable-* | --disable-* \ 2020 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2021 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2022 | -with-* | --with-* | -without-* | --without-* | --x) 2023 case "$ac_configure_args0 " in 2024 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2025 esac 2026 ;; 2027 -* ) ac_must_keep_next=true ;; 2028 esac 2029 fi 2030 as_fn_append ac_configure_args " '$ac_arg'" 2031 ;; 2032 esac 2033 done 2034done 2035{ ac_configure_args0=; unset ac_configure_args0;} 2036{ ac_configure_args1=; unset ac_configure_args1;} 2037 2038# When interrupted or exit'd, cleanup temporary files, and complete 2039# config.log. We remove comments because anyway the quotes in there 2040# would cause problems or look ugly. 2041# WARNING: Use '\'' to represent an apostrophe within the trap. 2042# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2043trap 'exit_status=$? 2044 # Save into config.log some information that might help in debugging. 2045 { 2046 echo 2047 2048 $as_echo "## ---------------- ## 2049## Cache variables. ## 2050## ---------------- ##" 2051 echo 2052 # The following way of writing the cache mishandles newlines in values, 2053( 2054 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2055 eval ac_val=\$$ac_var 2056 case $ac_val in #( 2057 *${as_nl}*) 2058 case $ac_var in #( 2059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2061 esac 2062 case $ac_var in #( 2063 _ | IFS | as_nl) ;; #( 2064 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2065 *) { eval $ac_var=; unset $ac_var;} ;; 2066 esac ;; 2067 esac 2068 done 2069 (set) 2>&1 | 2070 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2071 *${as_nl}ac_space=\ *) 2072 sed -n \ 2073 "s/'\''/'\''\\\\'\'''\''/g; 2074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2075 ;; #( 2076 *) 2077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2078 ;; 2079 esac | 2080 sort 2081) 2082 echo 2083 2084 $as_echo "## ----------------- ## 2085## Output variables. ## 2086## ----------------- ##" 2087 echo 2088 for ac_var in $ac_subst_vars 2089 do 2090 eval ac_val=\$$ac_var 2091 case $ac_val in 2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2093 esac 2094 $as_echo "$ac_var='\''$ac_val'\''" 2095 done | sort 2096 echo 2097 2098 if test -n "$ac_subst_files"; then 2099 $as_echo "## ------------------- ## 2100## File substitutions. ## 2101## ------------------- ##" 2102 echo 2103 for ac_var in $ac_subst_files 2104 do 2105 eval ac_val=\$$ac_var 2106 case $ac_val in 2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2108 esac 2109 $as_echo "$ac_var='\''$ac_val'\''" 2110 done | sort 2111 echo 2112 fi 2113 2114 if test -s confdefs.h; then 2115 $as_echo "## ----------- ## 2116## confdefs.h. ## 2117## ----------- ##" 2118 echo 2119 cat confdefs.h 2120 echo 2121 fi 2122 test "$ac_signal" != 0 && 2123 $as_echo "$as_me: caught signal $ac_signal" 2124 $as_echo "$as_me: exit $exit_status" 2125 } >&5 2126 rm -f core *.core core.conftest.* && 2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2128 exit $exit_status 2129' 0 2130for ac_signal in 1 2 13 15; do 2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2132done 2133ac_signal=0 2134 2135# confdefs.h avoids OS command line length limits that DEFS can exceed. 2136rm -f -r conftest* confdefs.h 2137 2138$as_echo "/* confdefs.h */" > confdefs.h 2139 2140# Predefined preprocessor variables. 2141 2142cat >>confdefs.h <<_ACEOF 2143#define PACKAGE_NAME "$PACKAGE_NAME" 2144_ACEOF 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_VERSION "$PACKAGE_VERSION" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_STRING "$PACKAGE_STRING" 2156_ACEOF 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2160_ACEOF 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_URL "$PACKAGE_URL" 2164_ACEOF 2165 2166 2167# Let the site file select an alternate cache file if it wants to. 2168# Prefer an explicitly selected file to automatically selected ones. 2169ac_site_file1=NONE 2170ac_site_file2=NONE 2171if test -n "$CONFIG_SITE"; then 2172 # We do not want a PATH search for config.site. 2173 case $CONFIG_SITE in #(( 2174 -*) ac_site_file1=./$CONFIG_SITE;; 2175 */*) ac_site_file1=$CONFIG_SITE;; 2176 *) ac_site_file1=./$CONFIG_SITE;; 2177 esac 2178elif test "x$prefix" != xNONE; then 2179 ac_site_file1=$prefix/share/config.site 2180 ac_site_file2=$prefix/etc/config.site 2181else 2182 ac_site_file1=$ac_default_prefix/share/config.site 2183 ac_site_file2=$ac_default_prefix/etc/config.site 2184fi 2185for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2186do 2187 test "x$ac_site_file" = xNONE && continue 2188 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2190$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2191 sed 's/^/| /' "$ac_site_file" >&5 2192 . "$ac_site_file" \ 2193 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2195as_fn_error $? "failed to load site script $ac_site_file 2196See \`config.log' for more details" "$LINENO" 5; } 2197 fi 2198done 2199 2200if test -r "$cache_file"; then 2201 # Some versions of bash will fail to source /dev/null (special files 2202 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2203 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2205$as_echo "$as_me: loading cache $cache_file" >&6;} 2206 case $cache_file in 2207 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2208 *) . "./$cache_file";; 2209 esac 2210 fi 2211else 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2213$as_echo "$as_me: creating cache $cache_file" >&6;} 2214 >$cache_file 2215fi 2216 2217# Check that the precious variables saved in the cache have kept the same 2218# value. 2219ac_cache_corrupted=false 2220for ac_var in $ac_precious_vars; do 2221 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2222 eval ac_new_set=\$ac_env_${ac_var}_set 2223 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2224 eval ac_new_val=\$ac_env_${ac_var}_value 2225 case $ac_old_set,$ac_new_set in 2226 set,) 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2228$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2229 ac_cache_corrupted=: ;; 2230 ,set) 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2232$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2233 ac_cache_corrupted=: ;; 2234 ,);; 2235 *) 2236 if test "x$ac_old_val" != "x$ac_new_val"; then 2237 # differences in whitespace do not lead to failure. 2238 ac_old_val_w=`echo x $ac_old_val` 2239 ac_new_val_w=`echo x $ac_new_val` 2240 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2242$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2243 ac_cache_corrupted=: 2244 else 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2246$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2247 eval $ac_var=\$ac_old_val 2248 fi 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2250$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2252$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2253 fi;; 2254 esac 2255 # Pass precious variables to config.status. 2256 if test "$ac_new_set" = set; then 2257 case $ac_new_val in 2258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2259 *) ac_arg=$ac_var=$ac_new_val ;; 2260 esac 2261 case " $ac_configure_args " in 2262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2263 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2264 esac 2265 fi 2266done 2267if $ac_cache_corrupted; then 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2271$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2272 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2273fi 2274## -------------------- ## 2275## Main body of script. ## 2276## -------------------- ## 2277 2278ac_ext=c 2279ac_cpp='$CPP $CPPFLAGS' 2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2282ac_compiler_gnu=$ac_cv_c_compiler_gnu 2283 2284 2285 2286 2287 2288 2289ac_config_headers="$ac_config_headers config.h" 2290 2291 2292 2293# with_target_subdir is used when configured as part of a GCC tree. 2294if test -n "${with_target_subdir}"; then 2295 # Default to --enable-multilib 2296# Check whether --enable-multilib was given. 2297if test "${enable_multilib+set}" = set; then : 2298 enableval=$enable_multilib; case "$enableval" in 2299 yes) multilib=yes ;; 2300 no) multilib=no ;; 2301 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 2302 esac 2303else 2304 multilib=yes 2305fi 2306 2307 2308# We may get other options which we leave undocumented: 2309# --with-target-subdir, --with-multisrctop, --with-multisubdir 2310# See config-ml.in if you want the gory details. 2311 2312if test "$srcdir" = "."; then 2313 if test "$with_target_subdir" != "."; then 2314 multi_basedir="$srcdir/$with_multisrctop../.." 2315 else 2316 multi_basedir="$srcdir/$with_multisrctop.." 2317 fi 2318else 2319 multi_basedir="$srcdir/.." 2320fi 2321 2322 2323# Even if the default multilib is not a cross compilation, 2324# it may be that some of the other multilibs are. 2325if test $cross_compiling = no && test $multilib = yes \ 2326 && test "x${with_multisubdir}" != x ; then 2327 cross_compiling=maybe 2328fi 2329 2330ac_config_commands="$ac_config_commands default-1" 2331 2332fi 2333 2334ac_aux_dir= 2335for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2336 if test -f "$ac_dir/install-sh"; then 2337 ac_aux_dir=$ac_dir 2338 ac_install_sh="$ac_aux_dir/install-sh -c" 2339 break 2340 elif test -f "$ac_dir/install.sh"; then 2341 ac_aux_dir=$ac_dir 2342 ac_install_sh="$ac_aux_dir/install.sh -c" 2343 break 2344 elif test -f "$ac_dir/shtool"; then 2345 ac_aux_dir=$ac_dir 2346 ac_install_sh="$ac_aux_dir/shtool install -c" 2347 break 2348 fi 2349done 2350if test -z "$ac_aux_dir"; then 2351 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2352fi 2353 2354# These three variables are undocumented and unsupported, 2355# and are intended to be withdrawn in a future Autoconf release. 2356# They can cause serious problems if a builder's source tree is in a directory 2357# whose full name contains unusual characters. 2358ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2359ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2360ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2361 2362 2363# Make sure we can run config.sub. 2364$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2365 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2366 2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2368$as_echo_n "checking build system type... " >&6; } 2369if ${ac_cv_build+:} false; then : 2370 $as_echo_n "(cached) " >&6 2371else 2372 ac_build_alias=$build_alias 2373test "x$ac_build_alias" = x && 2374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2375test "x$ac_build_alias" = x && 2376 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2377ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2379 2380fi 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2382$as_echo "$ac_cv_build" >&6; } 2383case $ac_cv_build in 2384*-*-*) ;; 2385*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2386esac 2387build=$ac_cv_build 2388ac_save_IFS=$IFS; IFS='-' 2389set x $ac_cv_build 2390shift 2391build_cpu=$1 2392build_vendor=$2 2393shift; shift 2394# Remember, the first character of IFS is used to create $*, 2395# except with old shells: 2396build_os=$* 2397IFS=$ac_save_IFS 2398case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2399 2400 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2402$as_echo_n "checking host system type... " >&6; } 2403if ${ac_cv_host+:} false; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 if test "x$host_alias" = x; then 2407 ac_cv_host=$ac_cv_build 2408else 2409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2411fi 2412 2413fi 2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2415$as_echo "$ac_cv_host" >&6; } 2416case $ac_cv_host in 2417*-*-*) ;; 2418*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2419esac 2420host=$ac_cv_host 2421ac_save_IFS=$IFS; IFS='-' 2422set x $ac_cv_host 2423shift 2424host_cpu=$1 2425host_vendor=$2 2426shift; shift 2427# Remember, the first character of IFS is used to create $*, 2428# except with old shells: 2429host_os=$* 2430IFS=$ac_save_IFS 2431case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2432 2433 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2435$as_echo_n "checking target system type... " >&6; } 2436if ${ac_cv_target+:} false; then : 2437 $as_echo_n "(cached) " >&6 2438else 2439 if test "x$target_alias" = x; then 2440 ac_cv_target=$ac_cv_host 2441else 2442 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2444fi 2445 2446fi 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2448$as_echo "$ac_cv_target" >&6; } 2449case $ac_cv_target in 2450*-*-*) ;; 2451*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2452esac 2453target=$ac_cv_target 2454ac_save_IFS=$IFS; IFS='-' 2455set x $ac_cv_target 2456shift 2457target_cpu=$1 2458target_vendor=$2 2459shift; shift 2460# Remember, the first character of IFS is used to create $*, 2461# except with old shells: 2462target_os=$* 2463IFS=$ac_save_IFS 2464case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2465 2466 2467# The aliases save the names the user supplied, while $host etc. 2468# will get canonicalized. 2469test -n "$target_alias" && 2470 test "$program_prefix$program_suffix$program_transform_name" = \ 2471 NONENONEs,x,x, && 2472 program_prefix=${target_alias}- 2473 2474target_alias=${target_alias-$host_alias} 2475 2476# Expand $ac_aux_dir to an absolute path. 2477am_aux_dir=`cd "$ac_aux_dir" && pwd` 2478 2479ac_ext=c 2480ac_cpp='$CPP $CPPFLAGS' 2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2483ac_compiler_gnu=$ac_cv_c_compiler_gnu 2484if test -n "$ac_tool_prefix"; then 2485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2486set dummy ${ac_tool_prefix}gcc; ac_word=$2 2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2488$as_echo_n "checking for $ac_word... " >&6; } 2489if ${ac_cv_prog_CC+:} false; then : 2490 $as_echo_n "(cached) " >&6 2491else 2492 if test -n "$CC"; then 2493 ac_cv_prog_CC="$CC" # Let the user override the test. 2494else 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2502 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2504 break 2 2505 fi 2506done 2507 done 2508IFS=$as_save_IFS 2509 2510fi 2511fi 2512CC=$ac_cv_prog_CC 2513if test -n "$CC"; then 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2515$as_echo "$CC" >&6; } 2516else 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2518$as_echo "no" >&6; } 2519fi 2520 2521 2522fi 2523if test -z "$ac_cv_prog_CC"; then 2524 ac_ct_CC=$CC 2525 # Extract the first word of "gcc", so it can be a program name with args. 2526set dummy gcc; ac_word=$2 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2528$as_echo_n "checking for $ac_word... " >&6; } 2529if ${ac_cv_prog_ac_ct_CC+:} false; then : 2530 $as_echo_n "(cached) " >&6 2531else 2532 if test -n "$ac_ct_CC"; then 2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2534else 2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536for as_dir in $PATH 2537do 2538 IFS=$as_save_IFS 2539 test -z "$as_dir" && as_dir=. 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2542 ac_cv_prog_ac_ct_CC="gcc" 2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2544 break 2 2545 fi 2546done 2547 done 2548IFS=$as_save_IFS 2549 2550fi 2551fi 2552ac_ct_CC=$ac_cv_prog_ac_ct_CC 2553if test -n "$ac_ct_CC"; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2555$as_echo "$ac_ct_CC" >&6; } 2556else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2558$as_echo "no" >&6; } 2559fi 2560 2561 if test "x$ac_ct_CC" = x; then 2562 CC="" 2563 else 2564 case $cross_compiling:$ac_tool_warned in 2565yes:) 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2568ac_tool_warned=yes ;; 2569esac 2570 CC=$ac_ct_CC 2571 fi 2572else 2573 CC="$ac_cv_prog_CC" 2574fi 2575 2576if test -z "$CC"; then 2577 if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}cc; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if ${ac_cv_prog_CC+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$CC"; then 2586 ac_cv_prog_CC="$CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_CC="${ac_tool_prefix}cc" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2608$as_echo "$CC" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615 fi 2616fi 2617if test -z "$CC"; then 2618 # Extract the first word of "cc", so it can be a program name with args. 2619set dummy cc; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_CC+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$CC"; then 2626 ac_cv_prog_CC="$CC" # Let the user override the test. 2627else 2628 ac_prog_rejected=no 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH 2631do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2636 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2637 ac_prog_rejected=yes 2638 continue 2639 fi 2640 ac_cv_prog_CC="cc" 2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645 done 2646IFS=$as_save_IFS 2647 2648if test $ac_prog_rejected = yes; then 2649 # We found a bogon in the path, so make sure we never use it. 2650 set dummy $ac_cv_prog_CC 2651 shift 2652 if test $# != 0; then 2653 # We chose a different compiler from the bogus one. 2654 # However, it has the same basename, so the bogon will be chosen 2655 # first if we set CC to just the basename; use the full file name. 2656 shift 2657 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2658 fi 2659fi 2660fi 2661fi 2662CC=$ac_cv_prog_CC 2663if test -n "$CC"; then 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2665$as_echo "$CC" >&6; } 2666else 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2668$as_echo "no" >&6; } 2669fi 2670 2671 2672fi 2673if test -z "$CC"; then 2674 if test -n "$ac_tool_prefix"; then 2675 for ac_prog in cl.exe 2676 do 2677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2678set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if ${ac_cv_prog_CC+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$CC"; then 2685 ac_cv_prog_CC="$CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704CC=$ac_cv_prog_CC 2705if test -n "$CC"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2707$as_echo "$CC" >&6; } 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 2714 test -n "$CC" && break 2715 done 2716fi 2717if test -z "$CC"; then 2718 ac_ct_CC=$CC 2719 for ac_prog in cl.exe 2720do 2721 # Extract the first word of "$ac_prog", so it can be a program name with args. 2722set dummy $ac_prog; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_ac_ct_CC+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$ac_ct_CC"; then 2729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_ac_ct_CC="$ac_prog" 2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748ac_ct_CC=$ac_cv_prog_ac_ct_CC 2749if test -n "$ac_ct_CC"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2751$as_echo "$ac_ct_CC" >&6; } 2752else 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 2758 test -n "$ac_ct_CC" && break 2759done 2760 2761 if test "x$ac_ct_CC" = x; then 2762 CC="" 2763 else 2764 case $cross_compiling:$ac_tool_warned in 2765yes:) 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2768ac_tool_warned=yes ;; 2769esac 2770 CC=$ac_ct_CC 2771 fi 2772fi 2773 2774fi 2775 2776 2777test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2779as_fn_error $? "no acceptable C compiler found in \$PATH 2780See \`config.log' for more details" "$LINENO" 5; } 2781 2782# Provide some information about the compiler. 2783$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2784set X $ac_compile 2785ac_compiler=$2 2786for ac_option in --version -v -V -qversion; do 2787 { { ac_try="$ac_compiler $ac_option >&5" 2788case "(($ac_try" in 2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2790 *) ac_try_echo=$ac_try;; 2791esac 2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2793$as_echo "$ac_try_echo"; } >&5 2794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2795 ac_status=$? 2796 if test -s conftest.err; then 2797 sed '10a\ 2798... rest of stderr output deleted ... 2799 10q' conftest.err >conftest.er1 2800 cat conftest.er1 >&5 2801 fi 2802 rm -f conftest.er1 conftest.err 2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; } 2805done 2806 2807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2808/* end confdefs.h. */ 2809 2810int 2811main () 2812{ 2813 2814 ; 2815 return 0; 2816} 2817_ACEOF 2818ac_clean_files_save=$ac_clean_files 2819ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2820# Try to create an executable without -o first, disregard a.out. 2821# It will help us diagnose broken compilers, and finding out an intuition 2822# of exeext. 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2824$as_echo_n "checking whether the C compiler works... " >&6; } 2825ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2826 2827# The possible output files: 2828ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2829 2830ac_rmfiles= 2831for ac_file in $ac_files 2832do 2833 case $ac_file in 2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2836 esac 2837done 2838rm -f $ac_rmfiles 2839 2840if { { ac_try="$ac_link_default" 2841case "(($ac_try" in 2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 *) ac_try_echo=$ac_try;; 2844esac 2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2846$as_echo "$ac_try_echo"; } >&5 2847 (eval "$ac_link_default") 2>&5 2848 ac_status=$? 2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2850 test $ac_status = 0; }; then : 2851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2852# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2853# in a Makefile. We should not override ac_cv_exeext if it was cached, 2854# so that the user can short-circuit this test for compilers unknown to 2855# Autoconf. 2856for ac_file in $ac_files '' 2857do 2858 test -f "$ac_file" || continue 2859 case $ac_file in 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2861 ;; 2862 [ab].out ) 2863 # We found the default executable, but exeext='' is most 2864 # certainly right. 2865 break;; 2866 *.* ) 2867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2868 then :; else 2869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2870 fi 2871 # We set ac_cv_exeext here because the later test for it is not 2872 # safe: cross compilers may not add the suffix if given an `-o' 2873 # argument, so we may need to know it at that point already. 2874 # Even if this section looks crufty: it has the advantage of 2875 # actually working. 2876 break;; 2877 * ) 2878 break;; 2879 esac 2880done 2881test "$ac_cv_exeext" = no && ac_cv_exeext= 2882 2883else 2884 ac_file='' 2885fi 2886if test -z "$ac_file"; then : 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888$as_echo "no" >&6; } 2889$as_echo "$as_me: failed program was:" >&5 2890sed 's/^/| /' conftest.$ac_ext >&5 2891 2892{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2894as_fn_error 77 "C compiler cannot create executables 2895See \`config.log' for more details" "$LINENO" 5; } 2896else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2898$as_echo "yes" >&6; } 2899fi 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2901$as_echo_n "checking for C compiler default output file name... " >&6; } 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2903$as_echo "$ac_file" >&6; } 2904ac_exeext=$ac_cv_exeext 2905 2906rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2907ac_clean_files=$ac_clean_files_save 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2909$as_echo_n "checking for suffix of executables... " >&6; } 2910if { { ac_try="$ac_link" 2911case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914esac 2915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2916$as_echo "$ac_try_echo"; } >&5 2917 (eval "$ac_link") 2>&5 2918 ac_status=$? 2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2920 test $ac_status = 0; }; then : 2921 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2923# work properly (i.e., refer to `conftest.exe'), while it won't with 2924# `rm'. 2925for ac_file in conftest.exe conftest conftest.*; do 2926 test -f "$ac_file" || continue 2927 case $ac_file in 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2930 break;; 2931 * ) break;; 2932 esac 2933done 2934else 2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2937as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2938See \`config.log' for more details" "$LINENO" 5; } 2939fi 2940rm -f conftest conftest$ac_cv_exeext 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2942$as_echo "$ac_cv_exeext" >&6; } 2943 2944rm -f conftest.$ac_ext 2945EXEEXT=$ac_cv_exeext 2946ac_exeext=$EXEEXT 2947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2948/* end confdefs.h. */ 2949#include <stdio.h> 2950int 2951main () 2952{ 2953FILE *f = fopen ("conftest.out", "w"); 2954 return ferror (f) || fclose (f) != 0; 2955 2956 ; 2957 return 0; 2958} 2959_ACEOF 2960ac_clean_files="$ac_clean_files conftest.out" 2961# Check that the compiler produces executables we can run. If not, either 2962# the compiler is broken, or we cross compile. 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2964$as_echo_n "checking whether we are cross compiling... " >&6; } 2965if test "$cross_compiling" != yes; then 2966 { { ac_try="$ac_link" 2967case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970esac 2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2972$as_echo "$ac_try_echo"; } >&5 2973 (eval "$ac_link") 2>&5 2974 ac_status=$? 2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2976 test $ac_status = 0; } 2977 if { ac_try='./conftest$ac_cv_exeext' 2978 { { case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2983$as_echo "$ac_try_echo"; } >&5 2984 (eval "$ac_try") 2>&5 2985 ac_status=$? 2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2987 test $ac_status = 0; }; }; then 2988 cross_compiling=no 2989 else 2990 if test "$cross_compiling" = maybe; then 2991 cross_compiling=yes 2992 else 2993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2995as_fn_error $? "cannot run C compiled programs. 2996If you meant to cross compile, use \`--host'. 2997See \`config.log' for more details" "$LINENO" 5; } 2998 fi 2999 fi 3000fi 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3002$as_echo "$cross_compiling" >&6; } 3003 3004rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3005ac_clean_files=$ac_clean_files_save 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3007$as_echo_n "checking for suffix of object files... " >&6; } 3008if ${ac_cv_objext+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3012/* end confdefs.h. */ 3013 3014int 3015main () 3016{ 3017 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022rm -f conftest.o conftest.obj 3023if { { ac_try="$ac_compile" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3029$as_echo "$ac_try_echo"; } >&5 3030 (eval "$ac_compile") 2>&5 3031 ac_status=$? 3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; }; then : 3034 for ac_file in conftest.o conftest.obj conftest.*; do 3035 test -f "$ac_file" || continue; 3036 case $ac_file in 3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3039 break;; 3040 esac 3041done 3042else 3043 $as_echo "$as_me: failed program was:" >&5 3044sed 's/^/| /' conftest.$ac_ext >&5 3045 3046{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3048as_fn_error $? "cannot compute suffix of object files: cannot compile 3049See \`config.log' for more details" "$LINENO" 5; } 3050fi 3051rm -f conftest.$ac_cv_objext conftest.$ac_ext 3052fi 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3054$as_echo "$ac_cv_objext" >&6; } 3055OBJEXT=$ac_cv_objext 3056ac_objext=$OBJEXT 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3058$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3059if ${ac_cv_c_compiler_gnu+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3063/* end confdefs.h. */ 3064 3065int 3066main () 3067{ 3068#ifndef __GNUC__ 3069 choke me 3070#endif 3071 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076if ac_fn_c_try_compile "$LINENO"; then : 3077 ac_compiler_gnu=yes 3078else 3079 ac_compiler_gnu=no 3080fi 3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082ac_cv_c_compiler_gnu=$ac_compiler_gnu 3083 3084fi 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3086$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3087if test $ac_compiler_gnu = yes; then 3088 GCC=yes 3089else 3090 GCC= 3091fi 3092ac_test_CFLAGS=${CFLAGS+set} 3093ac_save_CFLAGS=$CFLAGS 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3095$as_echo_n "checking whether $CC accepts -g... " >&6; } 3096if ${ac_cv_prog_cc_g+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 ac_save_c_werror_flag=$ac_c_werror_flag 3100 ac_c_werror_flag=yes 3101 ac_cv_prog_cc_g=no 3102 CFLAGS="-g" 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114if ac_fn_c_try_compile "$LINENO"; then : 3115 ac_cv_prog_cc_g=yes 3116else 3117 CFLAGS="" 3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3119/* end confdefs.h. */ 3120 3121int 3122main () 3123{ 3124 3125 ; 3126 return 0; 3127} 3128_ACEOF 3129if ac_fn_c_try_compile "$LINENO"; then : 3130 3131else 3132 ac_c_werror_flag=$ac_save_c_werror_flag 3133 CFLAGS="-g" 3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3135/* end confdefs.h. */ 3136 3137int 3138main () 3139{ 3140 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145if ac_fn_c_try_compile "$LINENO"; then : 3146 ac_cv_prog_cc_g=yes 3147fi 3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3149fi 3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3151fi 3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3153 ac_c_werror_flag=$ac_save_c_werror_flag 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3156$as_echo "$ac_cv_prog_cc_g" >&6; } 3157if test "$ac_test_CFLAGS" = set; then 3158 CFLAGS=$ac_save_CFLAGS 3159elif test $ac_cv_prog_cc_g = yes; then 3160 if test "$GCC" = yes; then 3161 CFLAGS="-g -O2" 3162 else 3163 CFLAGS="-g" 3164 fi 3165else 3166 if test "$GCC" = yes; then 3167 CFLAGS="-O2" 3168 else 3169 CFLAGS= 3170 fi 3171fi 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3173$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3174if ${ac_cv_prog_cc_c89+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 ac_cv_prog_cc_c89=no 3178ac_save_CC=$CC 3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180/* end confdefs.h. */ 3181#include <stdarg.h> 3182#include <stdio.h> 3183struct stat; 3184/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3185struct buf { int x; }; 3186FILE * (*rcsopen) (struct buf *, struct stat *, int); 3187static char *e (p, i) 3188 char **p; 3189 int i; 3190{ 3191 return p[i]; 3192} 3193static char *f (char * (*g) (char **, int), char **p, ...) 3194{ 3195 char *s; 3196 va_list v; 3197 va_start (v,p); 3198 s = g (p, va_arg (v,int)); 3199 va_end (v); 3200 return s; 3201} 3202 3203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3204 function prototypes and stuff, but not '\xHH' hex character constants. 3205 These don't provoke an error unfortunately, instead are silently treated 3206 as 'x'. The following induces an error, until -std is added to get 3207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3208 array size at least. It's necessary to write '\x00'==0 to get something 3209 that's true only with -std. */ 3210int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3211 3212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3213 inside strings and character constants. */ 3214#define FOO(x) 'x' 3215int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3216 3217int test (int i, double x); 3218struct s1 {int (*f) (int a);}; 3219struct s2 {int (*f) (double a);}; 3220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3221int argc; 3222char **argv; 3223int 3224main () 3225{ 3226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3233do 3234 CC="$ac_save_CC $ac_arg" 3235 if ac_fn_c_try_compile "$LINENO"; then : 3236 ac_cv_prog_cc_c89=$ac_arg 3237fi 3238rm -f core conftest.err conftest.$ac_objext 3239 test "x$ac_cv_prog_cc_c89" != "xno" && break 3240done 3241rm -f conftest.$ac_ext 3242CC=$ac_save_CC 3243 3244fi 3245# AC_CACHE_VAL 3246case "x$ac_cv_prog_cc_c89" in 3247 x) 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3249$as_echo "none needed" >&6; } ;; 3250 xno) 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3252$as_echo "unsupported" >&6; } ;; 3253 *) 3254 CC="$CC $ac_cv_prog_cc_c89" 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3256$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3257esac 3258if test "x$ac_cv_prog_cc_c89" != xno; then : 3259 3260fi 3261 3262ac_ext=c 3263ac_cpp='$CPP $CPPFLAGS' 3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3266ac_compiler_gnu=$ac_cv_c_compiler_gnu 3267 3268ac_ext=c 3269ac_cpp='$CPP $CPPFLAGS' 3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3272ac_compiler_gnu=$ac_cv_c_compiler_gnu 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3274$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3275if ${am_cv_prog_cc_c_o+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3279/* end confdefs.h. */ 3280 3281int 3282main () 3283{ 3284 3285 ; 3286 return 0; 3287} 3288_ACEOF 3289 # Make sure it works both with $CC and with simple cc. 3290 # Following AC_PROG_CC_C_O, we do the test twice because some 3291 # compilers refuse to overwrite an existing .o file with -o, 3292 # though they will create one. 3293 am_cv_prog_cc_c_o=yes 3294 for am_i in 1 2; do 3295 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3296 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3297 ac_status=$? 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } \ 3300 && test -f conftest2.$ac_objext; then 3301 : OK 3302 else 3303 am_cv_prog_cc_c_o=no 3304 break 3305 fi 3306 done 3307 rm -f core conftest* 3308 unset am_i 3309fi 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3311$as_echo "$am_cv_prog_cc_c_o" >&6; } 3312if test "$am_cv_prog_cc_c_o" != yes; then 3313 # Losing compiler, so override with the script. 3314 # FIXME: It is wrong to rewrite CC. 3315 # But if we don't then we get into trouble of one sort or another. 3316 # A longer-term fix would be to have automake use am__CC in this case, 3317 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3318 CC="$am_aux_dir/compile $CC" 3319fi 3320ac_ext=c 3321ac_cpp='$CPP $CPPFLAGS' 3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3324ac_compiler_gnu=$ac_cv_c_compiler_gnu 3325 3326 3327 3328ac_ext=c 3329ac_cpp='$CPP $CPPFLAGS' 3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3332ac_compiler_gnu=$ac_cv_c_compiler_gnu 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3334$as_echo_n "checking how to run the C preprocessor... " >&6; } 3335# On Suns, sometimes $CPP names a directory. 3336if test -n "$CPP" && test -d "$CPP"; then 3337 CPP= 3338fi 3339if test -z "$CPP"; then 3340 if ${ac_cv_prog_CPP+:} false; then : 3341 $as_echo_n "(cached) " >&6 3342else 3343 # Double quotes because CPP needs to be expanded 3344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3345 do 3346 ac_preproc_ok=false 3347for ac_c_preproc_warn_flag in '' yes 3348do 3349 # Use a header file that comes with gcc, so configuring glibc 3350 # with a fresh cross-compiler works. 3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3352 # <limits.h> exists even on freestanding compilers. 3353 # On the NeXT, cc -E runs the code through the compiler's parser, 3354 # not just through cpp. "Syntax error" is here to catch this case. 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3356/* end confdefs.h. */ 3357#ifdef __STDC__ 3358# include <limits.h> 3359#else 3360# include <assert.h> 3361#endif 3362 Syntax error 3363_ACEOF 3364if ac_fn_c_try_cpp "$LINENO"; then : 3365 3366else 3367 # Broken: fails on valid input. 3368continue 3369fi 3370rm -f conftest.err conftest.i conftest.$ac_ext 3371 3372 # OK, works on sane cases. Now check whether nonexistent headers 3373 # can be detected and how. 3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376#include <ac_nonexistent.h> 3377_ACEOF 3378if ac_fn_c_try_cpp "$LINENO"; then : 3379 # Broken: success on invalid input. 3380continue 3381else 3382 # Passes both tests. 3383ac_preproc_ok=: 3384break 3385fi 3386rm -f conftest.err conftest.i conftest.$ac_ext 3387 3388done 3389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3390rm -f conftest.i conftest.err conftest.$ac_ext 3391if $ac_preproc_ok; then : 3392 break 3393fi 3394 3395 done 3396 ac_cv_prog_CPP=$CPP 3397 3398fi 3399 CPP=$ac_cv_prog_CPP 3400else 3401 ac_cv_prog_CPP=$CPP 3402fi 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3404$as_echo "$CPP" >&6; } 3405ac_preproc_ok=false 3406for ac_c_preproc_warn_flag in '' yes 3407do 3408 # Use a header file that comes with gcc, so configuring glibc 3409 # with a fresh cross-compiler works. 3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3411 # <limits.h> exists even on freestanding compilers. 3412 # On the NeXT, cc -E runs the code through the compiler's parser, 3413 # not just through cpp. "Syntax error" is here to catch this case. 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416#ifdef __STDC__ 3417# include <limits.h> 3418#else 3419# include <assert.h> 3420#endif 3421 Syntax error 3422_ACEOF 3423if ac_fn_c_try_cpp "$LINENO"; then : 3424 3425else 3426 # Broken: fails on valid input. 3427continue 3428fi 3429rm -f conftest.err conftest.i conftest.$ac_ext 3430 3431 # OK, works on sane cases. Now check whether nonexistent headers 3432 # can be detected and how. 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435#include <ac_nonexistent.h> 3436_ACEOF 3437if ac_fn_c_try_cpp "$LINENO"; then : 3438 # Broken: success on invalid input. 3439continue 3440else 3441 # Passes both tests. 3442ac_preproc_ok=: 3443break 3444fi 3445rm -f conftest.err conftest.i conftest.$ac_ext 3446 3447done 3448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3449rm -f conftest.i conftest.err conftest.$ac_ext 3450if $ac_preproc_ok; then : 3451 3452else 3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3456See \`config.log' for more details" "$LINENO" 5; } 3457fi 3458 3459ac_ext=c 3460ac_cpp='$CPP $CPPFLAGS' 3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3463ac_compiler_gnu=$ac_cv_c_compiler_gnu 3464 3465 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3467$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3468if ${ac_cv_path_GREP+:} false; then : 3469 $as_echo_n "(cached) " >&6 3470else 3471 if test -z "$GREP"; then 3472 ac_path_GREP_found=false 3473 # Loop through the user's path and test for each of PROGNAME-LIST 3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3476do 3477 IFS=$as_save_IFS 3478 test -z "$as_dir" && as_dir=. 3479 for ac_prog in grep ggrep; do 3480 for ac_exec_ext in '' $ac_executable_extensions; do 3481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3482 as_fn_executable_p "$ac_path_GREP" || continue 3483# Check for GNU ac_path_GREP and select it if it is found. 3484 # Check for GNU $ac_path_GREP 3485case `"$ac_path_GREP" --version 2>&1` in 3486*GNU*) 3487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3488*) 3489 ac_count=0 3490 $as_echo_n 0123456789 >"conftest.in" 3491 while : 3492 do 3493 cat "conftest.in" "conftest.in" >"conftest.tmp" 3494 mv "conftest.tmp" "conftest.in" 3495 cp "conftest.in" "conftest.nl" 3496 $as_echo 'GREP' >> "conftest.nl" 3497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3499 as_fn_arith $ac_count + 1 && ac_count=$as_val 3500 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3501 # Best one so far, save it but keep looking for a better one 3502 ac_cv_path_GREP="$ac_path_GREP" 3503 ac_path_GREP_max=$ac_count 3504 fi 3505 # 10*(2^10) chars as input seems more than enough 3506 test $ac_count -gt 10 && break 3507 done 3508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3509esac 3510 3511 $ac_path_GREP_found && break 3 3512 done 3513 done 3514 done 3515IFS=$as_save_IFS 3516 if test -z "$ac_cv_path_GREP"; then 3517 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3518 fi 3519else 3520 ac_cv_path_GREP=$GREP 3521fi 3522 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3525$as_echo "$ac_cv_path_GREP" >&6; } 3526 GREP="$ac_cv_path_GREP" 3527 3528 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3530$as_echo_n "checking for egrep... " >&6; } 3531if ${ac_cv_path_EGREP+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3535 then ac_cv_path_EGREP="$GREP -E" 3536 else 3537 if test -z "$EGREP"; then 3538 ac_path_EGREP_found=false 3539 # Loop through the user's path and test for each of PROGNAME-LIST 3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3542do 3543 IFS=$as_save_IFS 3544 test -z "$as_dir" && as_dir=. 3545 for ac_prog in egrep; do 3546 for ac_exec_ext in '' $ac_executable_extensions; do 3547 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3548 as_fn_executable_p "$ac_path_EGREP" || continue 3549# Check for GNU ac_path_EGREP and select it if it is found. 3550 # Check for GNU $ac_path_EGREP 3551case `"$ac_path_EGREP" --version 2>&1` in 3552*GNU*) 3553 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3554*) 3555 ac_count=0 3556 $as_echo_n 0123456789 >"conftest.in" 3557 while : 3558 do 3559 cat "conftest.in" "conftest.in" >"conftest.tmp" 3560 mv "conftest.tmp" "conftest.in" 3561 cp "conftest.in" "conftest.nl" 3562 $as_echo 'EGREP' >> "conftest.nl" 3563 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3565 as_fn_arith $ac_count + 1 && ac_count=$as_val 3566 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3567 # Best one so far, save it but keep looking for a better one 3568 ac_cv_path_EGREP="$ac_path_EGREP" 3569 ac_path_EGREP_max=$ac_count 3570 fi 3571 # 10*(2^10) chars as input seems more than enough 3572 test $ac_count -gt 10 && break 3573 done 3574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3575esac 3576 3577 $ac_path_EGREP_found && break 3 3578 done 3579 done 3580 done 3581IFS=$as_save_IFS 3582 if test -z "$ac_cv_path_EGREP"; then 3583 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3584 fi 3585else 3586 ac_cv_path_EGREP=$EGREP 3587fi 3588 3589 fi 3590fi 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3592$as_echo "$ac_cv_path_EGREP" >&6; } 3593 EGREP="$ac_cv_path_EGREP" 3594 3595 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3597$as_echo_n "checking for ANSI C header files... " >&6; } 3598if ${ac_cv_header_stdc+:} false; then : 3599 $as_echo_n "(cached) " >&6 3600else 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603#include <stdlib.h> 3604#include <stdarg.h> 3605#include <string.h> 3606#include <float.h> 3607 3608int 3609main () 3610{ 3611 3612 ; 3613 return 0; 3614} 3615_ACEOF 3616if ac_fn_c_try_compile "$LINENO"; then : 3617 ac_cv_header_stdc=yes 3618else 3619 ac_cv_header_stdc=no 3620fi 3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3622 3623if test $ac_cv_header_stdc = yes; then 3624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627#include <string.h> 3628 3629_ACEOF 3630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3631 $EGREP "memchr" >/dev/null 2>&1; then : 3632 3633else 3634 ac_cv_header_stdc=no 3635fi 3636rm -f conftest* 3637 3638fi 3639 3640if test $ac_cv_header_stdc = yes; then 3641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644#include <stdlib.h> 3645 3646_ACEOF 3647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3648 $EGREP "free" >/dev/null 2>&1; then : 3649 3650else 3651 ac_cv_header_stdc=no 3652fi 3653rm -f conftest* 3654 3655fi 3656 3657if test $ac_cv_header_stdc = yes; then 3658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3659 if test "$cross_compiling" = yes; then : 3660 : 3661else 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664#include <ctype.h> 3665#include <stdlib.h> 3666#if ((' ' & 0x0FF) == 0x020) 3667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3669#else 3670# define ISLOWER(c) \ 3671 (('a' <= (c) && (c) <= 'i') \ 3672 || ('j' <= (c) && (c) <= 'r') \ 3673 || ('s' <= (c) && (c) <= 'z')) 3674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3675#endif 3676 3677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3678int 3679main () 3680{ 3681 int i; 3682 for (i = 0; i < 256; i++) 3683 if (XOR (islower (i), ISLOWER (i)) 3684 || toupper (i) != TOUPPER (i)) 3685 return 2; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_run "$LINENO"; then : 3690 3691else 3692 ac_cv_header_stdc=no 3693fi 3694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3695 conftest.$ac_objext conftest.beam conftest.$ac_ext 3696fi 3697 3698fi 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3701$as_echo "$ac_cv_header_stdc" >&6; } 3702if test $ac_cv_header_stdc = yes; then 3703 3704$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3705 3706fi 3707 3708# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3710 inttypes.h stdint.h unistd.h 3711do : 3712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3713ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3714" 3715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3716 cat >>confdefs.h <<_ACEOF 3717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3718_ACEOF 3719 3720fi 3721 3722done 3723 3724 3725 3726 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3727if test "x$ac_cv_header_minix_config_h" = xyes; then : 3728 MINIX=yes 3729else 3730 MINIX= 3731fi 3732 3733 3734 if test "$MINIX" = yes; then 3735 3736$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3737 3738 3739$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3740 3741 3742$as_echo "#define _MINIX 1" >>confdefs.h 3743 3744 fi 3745 3746 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3748$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3749if ${ac_cv_safe_to_define___extensions__+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3753/* end confdefs.h. */ 3754 3755# define __EXTENSIONS__ 1 3756 $ac_includes_default 3757int 3758main () 3759{ 3760 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765if ac_fn_c_try_compile "$LINENO"; then : 3766 ac_cv_safe_to_define___extensions__=yes 3767else 3768 ac_cv_safe_to_define___extensions__=no 3769fi 3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3771fi 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3773$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3774 test $ac_cv_safe_to_define___extensions__ = yes && 3775 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3776 3777 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3778 3779 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3780 3781 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3782 3783 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3784 3785 3786 3787# Default to not building a shared library. 3788# Check whether --enable-shared was given. 3789if test "${enable_shared+set}" = set; then : 3790 enableval=$enable_shared; p=${PACKAGE-default} 3791 case $enableval in 3792 yes) enable_shared=yes ;; 3793 no) enable_shared=no ;; 3794 *) 3795 enable_shared=no 3796 # Look at the argument we got. We use all the common list separators. 3797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3798 for pkg in $enableval; do 3799 IFS="$lt_save_ifs" 3800 if test "X$pkg" = "X$p"; then 3801 enable_shared=yes 3802 fi 3803 done 3804 IFS="$lt_save_ifs" 3805 ;; 3806 esac 3807else 3808 enable_shared=no 3809fi 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820libtool_VERSION=1:0:0 3821 3822 3823# 1.11.1: Require that version of automake. 3824# foreign: Don't require README, INSTALL, NEWS, etc. 3825# no-define: Don't define PACKAGE and VERSION. 3826# no-dependencies: Don't generate automatic dependencies. 3827# (because it breaks when using bootstrap-lean, since some of the 3828# headers are gone at "make install" time). 3829# -Wall: Issue all automake warnings. 3830# -Wno-portability: Don't warn about constructs supported by GNU make. 3831# (because GCC requires GNU make anyhow). 3832am__api_version='1.15' 3833 3834# Find a good install program. We prefer a C program (faster), 3835# so one script is as good as another. But avoid the broken or 3836# incompatible versions: 3837# SysV /etc/install, /usr/sbin/install 3838# SunOS /usr/etc/install 3839# IRIX /sbin/install 3840# AIX /bin/install 3841# AmigaOS /C/install, which installs bootblocks on floppy discs 3842# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3843# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3844# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3845# OS/2's system install, which has a completely different semantic 3846# ./install, which can be erroneously created by make from ./install.sh. 3847# Reject install programs that cannot install multiple files. 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3849$as_echo_n "checking for a BSD-compatible install... " >&6; } 3850if test -z "$INSTALL"; then 3851if ${ac_cv_path_install+:} false; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3855for as_dir in $PATH 3856do 3857 IFS=$as_save_IFS 3858 test -z "$as_dir" && as_dir=. 3859 # Account for people who put trailing slashes in PATH elements. 3860case $as_dir/ in #(( 3861 ./ | .// | /[cC]/* | \ 3862 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3863 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3864 /usr/ucb/* ) ;; 3865 *) 3866 # OSF1 and SCO ODT 3.0 have their own names for install. 3867 # Don't use installbsd from OSF since it installs stuff as root 3868 # by default. 3869 for ac_prog in ginstall scoinst install; do 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3872 if test $ac_prog = install && 3873 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3874 # AIX install. It has an incompatible calling convention. 3875 : 3876 elif test $ac_prog = install && 3877 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3878 # program-specific install script used by HP pwplus--don't use. 3879 : 3880 else 3881 rm -rf conftest.one conftest.two conftest.dir 3882 echo one > conftest.one 3883 echo two > conftest.two 3884 mkdir conftest.dir 3885 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3886 test -s conftest.one && test -s conftest.two && 3887 test -s conftest.dir/conftest.one && 3888 test -s conftest.dir/conftest.two 3889 then 3890 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3891 break 3 3892 fi 3893 fi 3894 fi 3895 done 3896 done 3897 ;; 3898esac 3899 3900 done 3901IFS=$as_save_IFS 3902 3903rm -rf conftest.one conftest.two conftest.dir 3904 3905fi 3906 if test "${ac_cv_path_install+set}" = set; then 3907 INSTALL=$ac_cv_path_install 3908 else 3909 # As a last resort, use the slow shell script. Don't cache a 3910 # value for INSTALL within a source directory, because that will 3911 # break other packages using the cache if that directory is 3912 # removed, or if the value is a relative name. 3913 INSTALL=$ac_install_sh 3914 fi 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3917$as_echo "$INSTALL" >&6; } 3918 3919# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3920# It thinks the first close brace ends the variable substitution. 3921test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3922 3923test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3924 3925test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3926 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3928$as_echo_n "checking whether build environment is sane... " >&6; } 3929# Reject unsafe characters in $srcdir or the absolute working directory 3930# name. Accept space and tab only in the latter. 3931am_lf=' 3932' 3933case `pwd` in 3934 *[\\\"\#\$\&\'\`$am_lf]*) 3935 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3936esac 3937case $srcdir in 3938 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3939 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3940esac 3941 3942# Do 'set' in a subshell so we don't clobber the current shell's 3943# arguments. Must try -L first in case configure is actually a 3944# symlink; some systems play weird games with the mod time of symlinks 3945# (eg FreeBSD returns the mod time of the symlink's containing 3946# directory). 3947if ( 3948 am_has_slept=no 3949 for am_try in 1 2; do 3950 echo "timestamp, slept: $am_has_slept" > conftest.file 3951 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3952 if test "$*" = "X"; then 3953 # -L didn't work. 3954 set X `ls -t "$srcdir/configure" conftest.file` 3955 fi 3956 if test "$*" != "X $srcdir/configure conftest.file" \ 3957 && test "$*" != "X conftest.file $srcdir/configure"; then 3958 3959 # If neither matched, then we have a broken ls. This can happen 3960 # if, for instance, CONFIG_SHELL is bash and it inherits a 3961 # broken ls alias from the environment. This has actually 3962 # happened. Such a system could not be considered "sane". 3963 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3964 alias in your environment" "$LINENO" 5 3965 fi 3966 if test "$2" = conftest.file || test $am_try -eq 2; then 3967 break 3968 fi 3969 # Just in case. 3970 sleep 1 3971 am_has_slept=yes 3972 done 3973 test "$2" = conftest.file 3974 ) 3975then 3976 # Ok. 3977 : 3978else 3979 as_fn_error $? "newly created file is older than distributed files! 3980Check your system clock" "$LINENO" 5 3981fi 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3983$as_echo "yes" >&6; } 3984# If we didn't sleep, we still need to ensure time stamps of config.status and 3985# generated files are strictly newer. 3986am_sleep_pid= 3987if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3988 ( sleep 1 ) & 3989 am_sleep_pid=$! 3990fi 3991 3992rm -f conftest.file 3993 3994test "$program_prefix" != NONE && 3995 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3996# Use a double $ so make ignores it. 3997test "$program_suffix" != NONE && 3998 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3999# Double any \ or $. 4000# By default was `s,x,x', remove it if useless. 4001ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4002program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4003 4004if test x"${MISSING+set}" != xset; then 4005 case $am_aux_dir in 4006 *\ * | *\ *) 4007 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4008 *) 4009 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4010 esac 4011fi 4012# Use eval to expand $SHELL 4013if eval "$MISSING --is-lightweight"; then 4014 am_missing_run="$MISSING " 4015else 4016 am_missing_run= 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4018$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4019fi 4020 4021if test x"${install_sh+set}" != xset; then 4022 case $am_aux_dir in 4023 *\ * | *\ *) 4024 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4025 *) 4026 install_sh="\${SHELL} $am_aux_dir/install-sh" 4027 esac 4028fi 4029 4030# Installed binaries are usually stripped using 'strip' when the user 4031# run "make install-strip". However 'strip' might not be the right 4032# tool to use in cross-compilation environments, therefore Automake 4033# will honor the 'STRIP' environment variable to overrule this program. 4034if test "$cross_compiling" != no; then 4035 if test -n "$ac_tool_prefix"; then 4036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4037set dummy ${ac_tool_prefix}strip; ac_word=$2 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4039$as_echo_n "checking for $ac_word... " >&6; } 4040if ${ac_cv_prog_STRIP+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 if test -n "$STRIP"; then 4044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4045else 4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4047for as_dir in $PATH 4048do 4049 IFS=$as_save_IFS 4050 test -z "$as_dir" && as_dir=. 4051 for ac_exec_ext in '' $ac_executable_extensions; do 4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4053 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4055 break 2 4056 fi 4057done 4058 done 4059IFS=$as_save_IFS 4060 4061fi 4062fi 4063STRIP=$ac_cv_prog_STRIP 4064if test -n "$STRIP"; then 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4066$as_echo "$STRIP" >&6; } 4067else 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069$as_echo "no" >&6; } 4070fi 4071 4072 4073fi 4074if test -z "$ac_cv_prog_STRIP"; then 4075 ac_ct_STRIP=$STRIP 4076 # Extract the first word of "strip", so it can be a program name with args. 4077set dummy strip; ac_word=$2 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4079$as_echo_n "checking for $ac_word... " >&6; } 4080if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 if test -n "$ac_ct_STRIP"; then 4084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4085else 4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4087for as_dir in $PATH 4088do 4089 IFS=$as_save_IFS 4090 test -z "$as_dir" && as_dir=. 4091 for ac_exec_ext in '' $ac_executable_extensions; do 4092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4093 ac_cv_prog_ac_ct_STRIP="strip" 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4095 break 2 4096 fi 4097done 4098 done 4099IFS=$as_save_IFS 4100 4101fi 4102fi 4103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4104if test -n "$ac_ct_STRIP"; then 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4106$as_echo "$ac_ct_STRIP" >&6; } 4107else 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4109$as_echo "no" >&6; } 4110fi 4111 4112 if test "x$ac_ct_STRIP" = x; then 4113 STRIP=":" 4114 else 4115 case $cross_compiling:$ac_tool_warned in 4116yes:) 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4119ac_tool_warned=yes ;; 4120esac 4121 STRIP=$ac_ct_STRIP 4122 fi 4123else 4124 STRIP="$ac_cv_prog_STRIP" 4125fi 4126 4127fi 4128INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4129 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4131$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4132if test -z "$MKDIR_P"; then 4133 if ${ac_cv_path_mkdir+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_prog in mkdir gmkdir; do 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4145 'mkdir (GNU coreutils) '* | \ 4146 'mkdir (coreutils) '* | \ 4147 'mkdir (fileutils) '4.1*) 4148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4149 break 3;; 4150 esac 4151 done 4152 done 4153 done 4154IFS=$as_save_IFS 4155 4156fi 4157 4158 test -d ./--version && rmdir ./--version 4159 if test "${ac_cv_path_mkdir+set}" = set; then 4160 MKDIR_P="$ac_cv_path_mkdir -p" 4161 else 4162 # As a last resort, use the slow shell script. Don't cache a 4163 # value for MKDIR_P within a source directory, because that will 4164 # break other packages using the cache if that directory is 4165 # removed, or if the value is a relative name. 4166 MKDIR_P="$ac_install_sh -d" 4167 fi 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4170$as_echo "$MKDIR_P" >&6; } 4171 4172for ac_prog in gawk mawk nawk awk 4173do 4174 # Extract the first word of "$ac_prog", so it can be a program name with args. 4175set dummy $ac_prog; ac_word=$2 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4177$as_echo_n "checking for $ac_word... " >&6; } 4178if ${ac_cv_prog_AWK+:} false; then : 4179 $as_echo_n "(cached) " >&6 4180else 4181 if test -n "$AWK"; then 4182 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4183else 4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4185for as_dir in $PATH 4186do 4187 IFS=$as_save_IFS 4188 test -z "$as_dir" && as_dir=. 4189 for ac_exec_ext in '' $ac_executable_extensions; do 4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4191 ac_cv_prog_AWK="$ac_prog" 4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4193 break 2 4194 fi 4195done 4196 done 4197IFS=$as_save_IFS 4198 4199fi 4200fi 4201AWK=$ac_cv_prog_AWK 4202if test -n "$AWK"; then 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4204$as_echo "$AWK" >&6; } 4205else 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4207$as_echo "no" >&6; } 4208fi 4209 4210 4211 test -n "$AWK" && break 4212done 4213 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4215$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4216set x ${MAKE-make} 4217ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4218if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 cat >conftest.make <<\_ACEOF 4222SHELL = /bin/sh 4223all: 4224 @echo '@@@%%%=$(MAKE)=@@@%%%' 4225_ACEOF 4226# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4227case `${MAKE-make} -f conftest.make 2>/dev/null` in 4228 *@@@%%%=?*=@@@%%%*) 4229 eval ac_cv_prog_make_${ac_make}_set=yes;; 4230 *) 4231 eval ac_cv_prog_make_${ac_make}_set=no;; 4232esac 4233rm -f conftest.make 4234fi 4235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4237$as_echo "yes" >&6; } 4238 SET_MAKE= 4239else 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4241$as_echo "no" >&6; } 4242 SET_MAKE="MAKE=${MAKE-make}" 4243fi 4244 4245rm -rf .tst 2>/dev/null 4246mkdir .tst 2>/dev/null 4247if test -d .tst; then 4248 am__leading_dot=. 4249else 4250 am__leading_dot=_ 4251fi 4252rmdir .tst 2>/dev/null 4253 4254# Check whether --enable-silent-rules was given. 4255if test "${enable_silent_rules+set}" = set; then : 4256 enableval=$enable_silent_rules; 4257fi 4258 4259case $enable_silent_rules in # ((( 4260 yes) AM_DEFAULT_VERBOSITY=0;; 4261 no) AM_DEFAULT_VERBOSITY=1;; 4262 *) AM_DEFAULT_VERBOSITY=1;; 4263esac 4264am_make=${MAKE-make} 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4266$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4267if ${am_cv_make_support_nested_variables+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 if $as_echo 'TRUE=$(BAR$(V)) 4271BAR0=false 4272BAR1=true 4273V=1 4274am__doit: 4275 @$(TRUE) 4276.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4277 am_cv_make_support_nested_variables=yes 4278else 4279 am_cv_make_support_nested_variables=no 4280fi 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4283$as_echo "$am_cv_make_support_nested_variables" >&6; } 4284if test $am_cv_make_support_nested_variables = yes; then 4285 AM_V='$(V)' 4286 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4287else 4288 AM_V=$AM_DEFAULT_VERBOSITY 4289 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4290fi 4291AM_BACKSLASH='\' 4292 4293if test "`cd $srcdir && pwd`" != "`pwd`"; then 4294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4295 # is not polluted with repeated "-I." 4296 am__isrc=' -I$(srcdir)' 4297 # test to see if srcdir already configured 4298 if test -f $srcdir/config.status; then 4299 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4300 fi 4301fi 4302 4303# test whether we have cygpath 4304if test -z "$CYGPATH_W"; then 4305 if (cygpath --version) >/dev/null 2>/dev/null; then 4306 CYGPATH_W='cygpath -w' 4307 else 4308 CYGPATH_W=echo 4309 fi 4310fi 4311 4312 4313# Define the identity of the package. 4314 PACKAGE='libbacktrace' 4315 VERSION='version-unused' 4316 4317 4318# Some tools Automake needs. 4319 4320ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4321 4322 4323AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4324 4325 4326AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4327 4328 4329AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4330 4331 4332MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4333 4334# For better backward compatibility. To be removed once Automake 1.9.x 4335# dies out for good. For more background, see: 4336# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4337# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4338mkdir_p='$(MKDIR_P)' 4339 4340# We need awk for the "check" target (and possibly the TAP driver). The 4341# system "awk" is bad on some platforms. 4342# Always define AMTAR for backward compatibility. Yes, it's still used 4343# in the wild :-( We should find a proper way to deprecate it ... 4344AMTAR='$${TAR-tar}' 4345 4346 4347# We'll loop over all known methods to create a tar archive until one works. 4348_am_tools='gnutar pax cpio none' 4349 4350am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4351 4352 4353 4354 4355 4356 4357# POSIX will say in a future version that running "rm -f" with no argument 4358# is OK; and we want to be able to make that assumption in our Makefile 4359# recipes. So use an aggressive probe to check that the usage we want is 4360# actually supported "in the wild" to an acceptable degree. 4361# See automake bug#10828. 4362# To make any issue more visible, cause the running configure to be aborted 4363# by default if the 'rm' program in use doesn't match our expectations; the 4364# user can still override this though. 4365if rm -f && rm -fr && rm -rf; then : OK; else 4366 cat >&2 <<'END' 4367Oops! 4368 4369Your 'rm' program seems unable to run without file operands specified 4370on the command line, even when the '-f' option is present. This is contrary 4371to the behaviour of most rm programs out there, and not conforming with 4372the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4373 4374Please tell bug-automake@gnu.org about your system, including the value 4375of your $PATH and any error possibly output before this message. This 4376can help us improve future automake versions. 4377 4378END 4379 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4380 echo 'Configuration will proceed anyway, since you have set the' >&2 4381 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4382 echo >&2 4383 else 4384 cat >&2 <<'END' 4385Aborting the configuration process, to ensure you take notice of the issue. 4386 4387You can download and install GNU coreutils to get an 'rm' implementation 4388that behaves properly: <http://www.gnu.org/software/coreutils/>. 4389 4390If you want to complete the configuration process using your problematic 4391'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4392to "yes", and re-run configure. 4393 4394END 4395 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4396 fi 4397fi 4398 4399 4400 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4402$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4403 # Check whether --enable-maintainer-mode was given. 4404if test "${enable_maintainer_mode+set}" = set; then : 4405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4406else 4407 USE_MAINTAINER_MODE=no 4408fi 4409 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4411$as_echo "$USE_MAINTAINER_MODE" >&6; } 4412 if test $USE_MAINTAINER_MODE = yes; then 4413 MAINTAINER_MODE_TRUE= 4414 MAINTAINER_MODE_FALSE='#' 4415else 4416 MAINTAINER_MODE_TRUE='#' 4417 MAINTAINER_MODE_FALSE= 4418fi 4419 4420 MAINT=$MAINTAINER_MODE_TRUE 4421 4422 4423 4424 4425# Check whether --with-target-subdir was given. 4426if test "${with_target_subdir+set}" = set; then : 4427 withval=$with_target_subdir; 4428fi 4429 4430 4431# We must force CC to /not/ be precious variables; otherwise 4432# the wrong, non-multilib-adjusted value will be used in multilibs. 4433# As a side effect, we have to subst CFLAGS ourselves. 4434 4435 4436ac_ext=c 4437ac_cpp='$CPP $CPPFLAGS' 4438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4440ac_compiler_gnu=$ac_cv_c_compiler_gnu 4441if test -n "$ac_tool_prefix"; then 4442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4443set dummy ${ac_tool_prefix}gcc; ac_word=$2 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4445$as_echo_n "checking for $ac_word... " >&6; } 4446if ${ac_cv_prog_CC+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448else 4449 if test -n "$CC"; then 4450 ac_cv_prog_CC="$CC" # Let the user override the test. 4451else 4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453for as_dir in $PATH 4454do 4455 IFS=$as_save_IFS 4456 test -z "$as_dir" && as_dir=. 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4459 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4461 break 2 4462 fi 4463done 4464 done 4465IFS=$as_save_IFS 4466 4467fi 4468fi 4469CC=$ac_cv_prog_CC 4470if test -n "$CC"; then 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4472$as_echo "$CC" >&6; } 4473else 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4475$as_echo "no" >&6; } 4476fi 4477 4478 4479fi 4480if test -z "$ac_cv_prog_CC"; then 4481 ac_ct_CC=$CC 4482 # Extract the first word of "gcc", so it can be a program name with args. 4483set dummy gcc; ac_word=$2 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4485$as_echo_n "checking for $ac_word... " >&6; } 4486if ${ac_cv_prog_ac_ct_CC+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test -n "$ac_ct_CC"; then 4490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4491else 4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493for as_dir in $PATH 4494do 4495 IFS=$as_save_IFS 4496 test -z "$as_dir" && as_dir=. 4497 for ac_exec_ext in '' $ac_executable_extensions; do 4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4499 ac_cv_prog_ac_ct_CC="gcc" 4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4501 break 2 4502 fi 4503done 4504 done 4505IFS=$as_save_IFS 4506 4507fi 4508fi 4509ac_ct_CC=$ac_cv_prog_ac_ct_CC 4510if test -n "$ac_ct_CC"; then 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4512$as_echo "$ac_ct_CC" >&6; } 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515$as_echo "no" >&6; } 4516fi 4517 4518 if test "x$ac_ct_CC" = x; then 4519 CC="" 4520 else 4521 case $cross_compiling:$ac_tool_warned in 4522yes:) 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4525ac_tool_warned=yes ;; 4526esac 4527 CC=$ac_ct_CC 4528 fi 4529else 4530 CC="$ac_cv_prog_CC" 4531fi 4532 4533if test -z "$CC"; then 4534 if test -n "$ac_tool_prefix"; then 4535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4536set dummy ${ac_tool_prefix}cc; ac_word=$2 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4538$as_echo_n "checking for $ac_word... " >&6; } 4539if ${ac_cv_prog_CC+:} false; then : 4540 $as_echo_n "(cached) " >&6 4541else 4542 if test -n "$CC"; then 4543 ac_cv_prog_CC="$CC" # Let the user override the test. 4544else 4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4552 ac_cv_prog_CC="${ac_tool_prefix}cc" 4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557 done 4558IFS=$as_save_IFS 4559 4560fi 4561fi 4562CC=$ac_cv_prog_CC 4563if test -n "$CC"; then 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4565$as_echo "$CC" >&6; } 4566else 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4568$as_echo "no" >&6; } 4569fi 4570 4571 4572 fi 4573fi 4574if test -z "$CC"; then 4575 # Extract the first word of "cc", so it can be a program name with args. 4576set dummy cc; ac_word=$2 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4578$as_echo_n "checking for $ac_word... " >&6; } 4579if ${ac_cv_prog_CC+:} false; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 if test -n "$CC"; then 4583 ac_cv_prog_CC="$CC" # Let the user override the test. 4584else 4585 ac_prog_rejected=no 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4594 ac_prog_rejected=yes 4595 continue 4596 fi 4597 ac_cv_prog_CC="cc" 4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605if test $ac_prog_rejected = yes; then 4606 # We found a bogon in the path, so make sure we never use it. 4607 set dummy $ac_cv_prog_CC 4608 shift 4609 if test $# != 0; then 4610 # We chose a different compiler from the bogus one. 4611 # However, it has the same basename, so the bogon will be chosen 4612 # first if we set CC to just the basename; use the full file name. 4613 shift 4614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4615 fi 4616fi 4617fi 4618fi 4619CC=$ac_cv_prog_CC 4620if test -n "$CC"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4622$as_echo "$CC" >&6; } 4623else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625$as_echo "no" >&6; } 4626fi 4627 4628 4629fi 4630if test -z "$CC"; then 4631 if test -n "$ac_tool_prefix"; then 4632 for ac_prog in cl.exe 4633 do 4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4635set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4637$as_echo_n "checking for $ac_word... " >&6; } 4638if ${ac_cv_prog_CC+:} false; then : 4639 $as_echo_n "(cached) " >&6 4640else 4641 if test -n "$CC"; then 4642 ac_cv_prog_CC="$CC" # Let the user override the test. 4643else 4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4645for as_dir in $PATH 4646do 4647 IFS=$as_save_IFS 4648 test -z "$as_dir" && as_dir=. 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4653 break 2 4654 fi 4655done 4656 done 4657IFS=$as_save_IFS 4658 4659fi 4660fi 4661CC=$ac_cv_prog_CC 4662if test -n "$CC"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4664$as_echo "$CC" >&6; } 4665else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669 4670 4671 test -n "$CC" && break 4672 done 4673fi 4674if test -z "$CC"; then 4675 ac_ct_CC=$CC 4676 for ac_prog in cl.exe 4677do 4678 # Extract the first word of "$ac_prog", so it can be a program name with args. 4679set dummy $ac_prog; ac_word=$2 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4681$as_echo_n "checking for $ac_word... " >&6; } 4682if ${ac_cv_prog_ac_ct_CC+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 if test -n "$ac_ct_CC"; then 4686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4687else 4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4689for as_dir in $PATH 4690do 4691 IFS=$as_save_IFS 4692 test -z "$as_dir" && as_dir=. 4693 for ac_exec_ext in '' $ac_executable_extensions; do 4694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4695 ac_cv_prog_ac_ct_CC="$ac_prog" 4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4697 break 2 4698 fi 4699done 4700 done 4701IFS=$as_save_IFS 4702 4703fi 4704fi 4705ac_ct_CC=$ac_cv_prog_ac_ct_CC 4706if test -n "$ac_ct_CC"; then 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4708$as_echo "$ac_ct_CC" >&6; } 4709else 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4711$as_echo "no" >&6; } 4712fi 4713 4714 4715 test -n "$ac_ct_CC" && break 4716done 4717 4718 if test "x$ac_ct_CC" = x; then 4719 CC="" 4720 else 4721 case $cross_compiling:$ac_tool_warned in 4722yes:) 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4725ac_tool_warned=yes ;; 4726esac 4727 CC=$ac_ct_CC 4728 fi 4729fi 4730 4731fi 4732 4733 4734test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4736as_fn_error $? "no acceptable C compiler found in \$PATH 4737See \`config.log' for more details" "$LINENO" 5; } 4738 4739# Provide some information about the compiler. 4740$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4741set X $ac_compile 4742ac_compiler=$2 4743for ac_option in --version -v -V -qversion; do 4744 { { ac_try="$ac_compiler $ac_option >&5" 4745case "(($ac_try" in 4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4747 *) ac_try_echo=$ac_try;; 4748esac 4749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4750$as_echo "$ac_try_echo"; } >&5 4751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4752 ac_status=$? 4753 if test -s conftest.err; then 4754 sed '10a\ 4755... rest of stderr output deleted ... 4756 10q' conftest.err >conftest.er1 4757 cat conftest.er1 >&5 4758 fi 4759 rm -f conftest.er1 conftest.err 4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4761 test $ac_status = 0; } 4762done 4763 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4765$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4766if ${ac_cv_c_compiler_gnu+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768else 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770/* end confdefs.h. */ 4771 4772int 4773main () 4774{ 4775#ifndef __GNUC__ 4776 choke me 4777#endif 4778 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783if ac_fn_c_try_compile "$LINENO"; then : 4784 ac_compiler_gnu=yes 4785else 4786 ac_compiler_gnu=no 4787fi 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789ac_cv_c_compiler_gnu=$ac_compiler_gnu 4790 4791fi 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4793$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4794if test $ac_compiler_gnu = yes; then 4795 GCC=yes 4796else 4797 GCC= 4798fi 4799ac_test_CFLAGS=${CFLAGS+set} 4800ac_save_CFLAGS=$CFLAGS 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4802$as_echo_n "checking whether $CC accepts -g... " >&6; } 4803if ${ac_cv_prog_cc_g+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 ac_save_c_werror_flag=$ac_c_werror_flag 4807 ac_c_werror_flag=yes 4808 ac_cv_prog_cc_g=no 4809 CFLAGS="-g" 4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4811/* end confdefs.h. */ 4812 4813int 4814main () 4815{ 4816 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821if ac_fn_c_try_compile "$LINENO"; then : 4822 ac_cv_prog_cc_g=yes 4823else 4824 CFLAGS="" 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827 4828int 4829main () 4830{ 4831 4832 ; 4833 return 0; 4834} 4835_ACEOF 4836if ac_fn_c_try_compile "$LINENO"; then : 4837 4838else 4839 ac_c_werror_flag=$ac_save_c_werror_flag 4840 CFLAGS="-g" 4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4842/* end confdefs.h. */ 4843 4844int 4845main () 4846{ 4847 4848 ; 4849 return 0; 4850} 4851_ACEOF 4852if ac_fn_c_try_compile "$LINENO"; then : 4853 ac_cv_prog_cc_g=yes 4854fi 4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4856fi 4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4858fi 4859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4860 ac_c_werror_flag=$ac_save_c_werror_flag 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4863$as_echo "$ac_cv_prog_cc_g" >&6; } 4864if test "$ac_test_CFLAGS" = set; then 4865 CFLAGS=$ac_save_CFLAGS 4866elif test $ac_cv_prog_cc_g = yes; then 4867 if test "$GCC" = yes; then 4868 CFLAGS="-g -O2" 4869 else 4870 CFLAGS="-g" 4871 fi 4872else 4873 if test "$GCC" = yes; then 4874 CFLAGS="-O2" 4875 else 4876 CFLAGS= 4877 fi 4878fi 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4880$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4881if ${ac_cv_prog_cc_c89+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 ac_cv_prog_cc_c89=no 4885ac_save_CC=$CC 4886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888#include <stdarg.h> 4889#include <stdio.h> 4890struct stat; 4891/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4892struct buf { int x; }; 4893FILE * (*rcsopen) (struct buf *, struct stat *, int); 4894static char *e (p, i) 4895 char **p; 4896 int i; 4897{ 4898 return p[i]; 4899} 4900static char *f (char * (*g) (char **, int), char **p, ...) 4901{ 4902 char *s; 4903 va_list v; 4904 va_start (v,p); 4905 s = g (p, va_arg (v,int)); 4906 va_end (v); 4907 return s; 4908} 4909 4910/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4911 function prototypes and stuff, but not '\xHH' hex character constants. 4912 These don't provoke an error unfortunately, instead are silently treated 4913 as 'x'. The following induces an error, until -std is added to get 4914 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4915 array size at least. It's necessary to write '\x00'==0 to get something 4916 that's true only with -std. */ 4917int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4918 4919/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4920 inside strings and character constants. */ 4921#define FOO(x) 'x' 4922int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4923 4924int test (int i, double x); 4925struct s1 {int (*f) (int a);}; 4926struct s2 {int (*f) (double a);}; 4927int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4928int argc; 4929char **argv; 4930int 4931main () 4932{ 4933return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4934 ; 4935 return 0; 4936} 4937_ACEOF 4938for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4939 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4940do 4941 CC="$ac_save_CC $ac_arg" 4942 if ac_fn_c_try_compile "$LINENO"; then : 4943 ac_cv_prog_cc_c89=$ac_arg 4944fi 4945rm -f core conftest.err conftest.$ac_objext 4946 test "x$ac_cv_prog_cc_c89" != "xno" && break 4947done 4948rm -f conftest.$ac_ext 4949CC=$ac_save_CC 4950 4951fi 4952# AC_CACHE_VAL 4953case "x$ac_cv_prog_cc_c89" in 4954 x) 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4956$as_echo "none needed" >&6; } ;; 4957 xno) 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4959$as_echo "unsupported" >&6; } ;; 4960 *) 4961 CC="$CC $ac_cv_prog_cc_c89" 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4963$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4964esac 4965if test "x$ac_cv_prog_cc_c89" != xno; then : 4966 4967fi 4968 4969ac_ext=c 4970ac_cpp='$CPP $CPPFLAGS' 4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4973ac_compiler_gnu=$ac_cv_c_compiler_gnu 4974 4975ac_ext=c 4976ac_cpp='$CPP $CPPFLAGS' 4977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4979ac_compiler_gnu=$ac_cv_c_compiler_gnu 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4981$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4982if ${am_cv_prog_cc_c_o+:} false; then : 4983 $as_echo_n "(cached) " >&6 4984else 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987 4988int 4989main () 4990{ 4991 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996 # Make sure it works both with $CC and with simple cc. 4997 # Following AC_PROG_CC_C_O, we do the test twice because some 4998 # compilers refuse to overwrite an existing .o file with -o, 4999 # though they will create one. 5000 am_cv_prog_cc_c_o=yes 5001 for am_i in 1 2; do 5002 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5003 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5004 ac_status=$? 5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5006 (exit $ac_status); } \ 5007 && test -f conftest2.$ac_objext; then 5008 : OK 5009 else 5010 am_cv_prog_cc_c_o=no 5011 break 5012 fi 5013 done 5014 rm -f core conftest* 5015 unset am_i 5016fi 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5018$as_echo "$am_cv_prog_cc_c_o" >&6; } 5019if test "$am_cv_prog_cc_c_o" != yes; then 5020 # Losing compiler, so override with the script. 5021 # FIXME: It is wrong to rewrite CC. 5022 # But if we don't then we get into trouble of one sort or another. 5023 # A longer-term fix would be to have automake use am__CC in this case, 5024 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5025 CC="$am_aux_dir/compile $CC" 5026fi 5027ac_ext=c 5028ac_cpp='$CPP $CPPFLAGS' 5029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5031ac_compiler_gnu=$ac_cv_c_compiler_gnu 5032 5033 5034 5035 5036 5037 5038if test -n "$ac_tool_prefix"; then 5039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5040set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5042$as_echo_n "checking for $ac_word... " >&6; } 5043if ${ac_cv_prog_RANLIB+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 if test -n "$RANLIB"; then 5047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5048else 5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5050for as_dir in $PATH 5051do 5052 IFS=$as_save_IFS 5053 test -z "$as_dir" && as_dir=. 5054 for ac_exec_ext in '' $ac_executable_extensions; do 5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5058 break 2 5059 fi 5060done 5061 done 5062IFS=$as_save_IFS 5063 5064fi 5065fi 5066RANLIB=$ac_cv_prog_RANLIB 5067if test -n "$RANLIB"; then 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5069$as_echo "$RANLIB" >&6; } 5070else 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072$as_echo "no" >&6; } 5073fi 5074 5075 5076fi 5077if test -z "$ac_cv_prog_RANLIB"; then 5078 ac_ct_RANLIB=$RANLIB 5079 # Extract the first word of "ranlib", so it can be a program name with args. 5080set dummy ranlib; ac_word=$2 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5082$as_echo_n "checking for $ac_word... " >&6; } 5083if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 if test -n "$ac_ct_RANLIB"; then 5087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5088else 5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090for as_dir in $PATH 5091do 5092 IFS=$as_save_IFS 5093 test -z "$as_dir" && as_dir=. 5094 for ac_exec_ext in '' $ac_executable_extensions; do 5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5096 ac_cv_prog_ac_ct_RANLIB="ranlib" 5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5098 break 2 5099 fi 5100done 5101 done 5102IFS=$as_save_IFS 5103 5104fi 5105fi 5106ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5107if test -n "$ac_ct_RANLIB"; then 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5109$as_echo "$ac_ct_RANLIB" >&6; } 5110else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112$as_echo "no" >&6; } 5113fi 5114 5115 if test "x$ac_ct_RANLIB" = x; then 5116 RANLIB=":" 5117 else 5118 case $cross_compiling:$ac_tool_warned in 5119yes:) 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5122ac_tool_warned=yes ;; 5123esac 5124 RANLIB=$ac_ct_RANLIB 5125 fi 5126else 5127 RANLIB="$ac_cv_prog_RANLIB" 5128fi 5129 5130 5131for ac_prog in gawk mawk nawk awk 5132do 5133 # Extract the first word of "$ac_prog", so it can be a program name with args. 5134set dummy $ac_prog; ac_word=$2 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5136$as_echo_n "checking for $ac_word... " >&6; } 5137if ${ac_cv_prog_AWK+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 if test -n "$AWK"; then 5141 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5142else 5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5144for as_dir in $PATH 5145do 5146 IFS=$as_save_IFS 5147 test -z "$as_dir" && as_dir=. 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5150 ac_cv_prog_AWK="$ac_prog" 5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5152 break 2 5153 fi 5154done 5155 done 5156IFS=$as_save_IFS 5157 5158fi 5159fi 5160AWK=$ac_cv_prog_AWK 5161if test -n "$AWK"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5163$as_echo "$AWK" >&6; } 5164else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166$as_echo "no" >&6; } 5167fi 5168 5169 5170 test -n "$AWK" && break 5171done 5172 5173case "$AWK" in 5174"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;; 5175esac 5176 5177# Extract the first word of "dwz", so it can be a program name with args. 5178set dummy dwz; ac_word=$2 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5180$as_echo_n "checking for $ac_word... " >&6; } 5181if ${ac_cv_prog_DWZ+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 if test -n "$DWZ"; then 5185 ac_cv_prog_DWZ="$DWZ" # Let the user override the test. 5186else 5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5188for as_dir in $PATH 5189do 5190 IFS=$as_save_IFS 5191 test -z "$as_dir" && as_dir=. 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5194 ac_cv_prog_DWZ="dwz" 5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198done 5199 done 5200IFS=$as_save_IFS 5201 5202fi 5203fi 5204DWZ=$ac_cv_prog_DWZ 5205if test -n "$DWZ"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5 5207$as_echo "$DWZ" >&6; } 5208else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5210$as_echo "no" >&6; } 5211fi 5212 5213 5214 if test "$DWZ" != ""; then 5215 HAVE_DWZ_TRUE= 5216 HAVE_DWZ_FALSE='#' 5217else 5218 HAVE_DWZ_TRUE='#' 5219 HAVE_DWZ_FALSE= 5220fi 5221 5222 5223case `pwd` in 5224 *\ * | *\ *) 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5226$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5227esac 5228 5229 5230 5231macro_version='2.2.7a' 5232macro_revision='1.3134' 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246ltmain="$ac_aux_dir/ltmain.sh" 5247 5248# Backslashify metacharacters that are still active within 5249# double-quoted strings. 5250sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5251 5252# Same as above, but do not quote variable references. 5253double_quote_subst='s/\(["`\\]\)/\\\1/g' 5254 5255# Sed substitution to delay expansion of an escaped shell variable in a 5256# double_quote_subst'ed string. 5257delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5258 5259# Sed substitution to delay expansion of an escaped single quote. 5260delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5261 5262# Sed substitution to avoid accidental globbing in evaled expressions 5263no_glob_subst='s/\*/\\\*/g' 5264 5265ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5266ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5267ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5268 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5270$as_echo_n "checking how to print strings... " >&6; } 5271# Test print first, because it will be a builtin if present. 5272if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5273 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5274 ECHO='print -r --' 5275elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5276 ECHO='printf %s\n' 5277else 5278 # Use this function as a fallback that always works. 5279 func_fallback_echo () 5280 { 5281 eval 'cat <<_LTECHO_EOF 5282$1 5283_LTECHO_EOF' 5284 } 5285 ECHO='func_fallback_echo' 5286fi 5287 5288# func_echo_all arg... 5289# Invoke $ECHO with all args, space-separated. 5290func_echo_all () 5291{ 5292 $ECHO "" 5293} 5294 5295case "$ECHO" in 5296 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5297$as_echo "printf" >&6; } ;; 5298 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5299$as_echo "print -r" >&6; } ;; 5300 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5301$as_echo "cat" >&6; } ;; 5302esac 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5318$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5319if ${ac_cv_path_SED+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321else 5322 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5323 for ac_i in 1 2 3 4 5 6 7; do 5324 ac_script="$ac_script$as_nl$ac_script" 5325 done 5326 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5327 { ac_script=; unset ac_script;} 5328 if test -z "$SED"; then 5329 ac_path_SED_found=false 5330 # Loop through the user's path and test for each of PROGNAME-LIST 5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332for as_dir in $PATH 5333do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_prog in sed gsed; do 5337 for ac_exec_ext in '' $ac_executable_extensions; do 5338 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5339 as_fn_executable_p "$ac_path_SED" || continue 5340# Check for GNU ac_path_SED and select it if it is found. 5341 # Check for GNU $ac_path_SED 5342case `"$ac_path_SED" --version 2>&1` in 5343*GNU*) 5344 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5345*) 5346 ac_count=0 5347 $as_echo_n 0123456789 >"conftest.in" 5348 while : 5349 do 5350 cat "conftest.in" "conftest.in" >"conftest.tmp" 5351 mv "conftest.tmp" "conftest.in" 5352 cp "conftest.in" "conftest.nl" 5353 $as_echo '' >> "conftest.nl" 5354 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5356 as_fn_arith $ac_count + 1 && ac_count=$as_val 5357 if test $ac_count -gt ${ac_path_SED_max-0}; then 5358 # Best one so far, save it but keep looking for a better one 5359 ac_cv_path_SED="$ac_path_SED" 5360 ac_path_SED_max=$ac_count 5361 fi 5362 # 10*(2^10) chars as input seems more than enough 5363 test $ac_count -gt 10 && break 5364 done 5365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5366esac 5367 5368 $ac_path_SED_found && break 3 5369 done 5370 done 5371 done 5372IFS=$as_save_IFS 5373 if test -z "$ac_cv_path_SED"; then 5374 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5375 fi 5376else 5377 ac_cv_path_SED=$SED 5378fi 5379 5380fi 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5382$as_echo "$ac_cv_path_SED" >&6; } 5383 SED="$ac_cv_path_SED" 5384 rm -f conftest.sed 5385 5386test -z "$SED" && SED=sed 5387Xsed="$SED -e 1s/^X//" 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5400$as_echo_n "checking for fgrep... " >&6; } 5401if ${ac_cv_path_FGREP+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5405 then ac_cv_path_FGREP="$GREP -F" 5406 else 5407 if test -z "$FGREP"; then 5408 ac_path_FGREP_found=false 5409 # Loop through the user's path and test for each of PROGNAME-LIST 5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5412do 5413 IFS=$as_save_IFS 5414 test -z "$as_dir" && as_dir=. 5415 for ac_prog in fgrep; do 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5418 as_fn_executable_p "$ac_path_FGREP" || continue 5419# Check for GNU ac_path_FGREP and select it if it is found. 5420 # Check for GNU $ac_path_FGREP 5421case `"$ac_path_FGREP" --version 2>&1` in 5422*GNU*) 5423 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5424*) 5425 ac_count=0 5426 $as_echo_n 0123456789 >"conftest.in" 5427 while : 5428 do 5429 cat "conftest.in" "conftest.in" >"conftest.tmp" 5430 mv "conftest.tmp" "conftest.in" 5431 cp "conftest.in" "conftest.nl" 5432 $as_echo 'FGREP' >> "conftest.nl" 5433 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5435 as_fn_arith $ac_count + 1 && ac_count=$as_val 5436 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5437 # Best one so far, save it but keep looking for a better one 5438 ac_cv_path_FGREP="$ac_path_FGREP" 5439 ac_path_FGREP_max=$ac_count 5440 fi 5441 # 10*(2^10) chars as input seems more than enough 5442 test $ac_count -gt 10 && break 5443 done 5444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5445esac 5446 5447 $ac_path_FGREP_found && break 3 5448 done 5449 done 5450 done 5451IFS=$as_save_IFS 5452 if test -z "$ac_cv_path_FGREP"; then 5453 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5454 fi 5455else 5456 ac_cv_path_FGREP=$FGREP 5457fi 5458 5459 fi 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5462$as_echo "$ac_cv_path_FGREP" >&6; } 5463 FGREP="$ac_cv_path_FGREP" 5464 5465 5466test -z "$GREP" && GREP=grep 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486# Check whether --with-gnu-ld was given. 5487if test "${with_gnu_ld+set}" = set; then : 5488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5489else 5490 with_gnu_ld=no 5491fi 5492 5493ac_prog=ld 5494if test "$GCC" = yes; then 5495 # Check if gcc -print-prog-name=ld gives a path. 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5497$as_echo_n "checking for ld used by $CC... " >&6; } 5498 case $host in 5499 *-*-mingw*) 5500 # gcc leaves a trailing carriage return which upsets mingw 5501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5502 *) 5503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5504 esac 5505 case $ac_prog in 5506 # Accept absolute paths. 5507 [\\/]* | ?:[\\/]*) 5508 re_direlt='/[^/][^/]*/\.\./' 5509 # Canonicalize the pathname of ld 5510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5513 done 5514 test -z "$LD" && LD="$ac_prog" 5515 ;; 5516 "") 5517 # If it fails, then pretend we aren't using GCC. 5518 ac_prog=ld 5519 ;; 5520 *) 5521 # If it is relative, then search for the first ld in PATH. 5522 with_gnu_ld=unknown 5523 ;; 5524 esac 5525elif test "$with_gnu_ld" = yes; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5527$as_echo_n "checking for GNU ld... " >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5530$as_echo_n "checking for non-GNU ld... " >&6; } 5531fi 5532if ${lt_cv_path_LD+:} false; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 if test -z "$LD"; then 5536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5537 for ac_dir in $PATH; do 5538 IFS="$lt_save_ifs" 5539 test -z "$ac_dir" && ac_dir=. 5540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5541 lt_cv_path_LD="$ac_dir/$ac_prog" 5542 # Check to see if the program is GNU ld. I'd rather use --version, 5543 # but apparently some variants of GNU ld only accept -v. 5544 # Break only if it was the GNU/non-GNU ld that we prefer. 5545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5546 *GNU* | *'with BFD'*) 5547 test "$with_gnu_ld" != no && break 5548 ;; 5549 *) 5550 test "$with_gnu_ld" != yes && break 5551 ;; 5552 esac 5553 fi 5554 done 5555 IFS="$lt_save_ifs" 5556else 5557 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5558fi 5559fi 5560 5561LD="$lt_cv_path_LD" 5562if test -n "$LD"; then 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5564$as_echo "$LD" >&6; } 5565else 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5567$as_echo "no" >&6; } 5568fi 5569test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5571$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5572if ${lt_cv_prog_gnu_ld+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5576case `$LD -v 2>&1 </dev/null` in 5577*GNU* | *'with BFD'*) 5578 lt_cv_prog_gnu_ld=yes 5579 ;; 5580*) 5581 lt_cv_prog_gnu_ld=no 5582 ;; 5583esac 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5586$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5587with_gnu_ld=$lt_cv_prog_gnu_ld 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5598$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5599if ${lt_cv_path_NM+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 if test -n "$NM"; then 5603 # Let the user override the test. 5604 lt_cv_path_NM="$NM" 5605else 5606 lt_nm_to_check="${ac_tool_prefix}nm" 5607 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5608 lt_nm_to_check="$lt_nm_to_check nm" 5609 fi 5610 for lt_tmp_nm in $lt_nm_to_check; do 5611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5612 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5613 IFS="$lt_save_ifs" 5614 test -z "$ac_dir" && ac_dir=. 5615 tmp_nm="$ac_dir/$lt_tmp_nm" 5616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5617 # Check to see if the nm accepts a BSD-compat flag. 5618 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5619 # nm: unknown option "B" ignored 5620 # Tru64's nm complains that /dev/null is an invalid object file 5621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5622 */dev/null* | *'Invalid file or object type'*) 5623 lt_cv_path_NM="$tmp_nm -B" 5624 break 5625 ;; 5626 *) 5627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5628 */dev/null*) 5629 lt_cv_path_NM="$tmp_nm -p" 5630 break 5631 ;; 5632 *) 5633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5634 continue # so that we can try to find one that supports BSD flags 5635 ;; 5636 esac 5637 ;; 5638 esac 5639 fi 5640 done 5641 IFS="$lt_save_ifs" 5642 done 5643 : ${lt_cv_path_NM=no} 5644fi 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5647$as_echo "$lt_cv_path_NM" >&6; } 5648if test "$lt_cv_path_NM" != "no"; then 5649 NM="$lt_cv_path_NM" 5650else 5651 # Didn't find any BSD compatible name lister, look for dumpbin. 5652 if test -n "$DUMPBIN"; then : 5653 # Let the user override the test. 5654 else 5655 if test -n "$ac_tool_prefix"; then 5656 for ac_prog in dumpbin "link -dump" 5657 do 5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5659set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if ${ac_cv_prog_DUMPBIN+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$DUMPBIN"; then 5666 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5675 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685DUMPBIN=$ac_cv_prog_DUMPBIN 5686if test -n "$DUMPBIN"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5688$as_echo "$DUMPBIN" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 5695 test -n "$DUMPBIN" && break 5696 done 5697fi 5698if test -z "$DUMPBIN"; then 5699 ac_ct_DUMPBIN=$DUMPBIN 5700 for ac_prog in dumpbin "link -dump" 5701do 5702 # Extract the first word of "$ac_prog", so it can be a program name with args. 5703set dummy $ac_prog; ac_word=$2 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5705$as_echo_n "checking for $ac_word... " >&6; } 5706if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 if test -n "$ac_ct_DUMPBIN"; then 5710 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5711else 5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH 5714do 5715 IFS=$as_save_IFS 5716 test -z "$as_dir" && as_dir=. 5717 for ac_exec_ext in '' $ac_executable_extensions; do 5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5719 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721 break 2 5722 fi 5723done 5724 done 5725IFS=$as_save_IFS 5726 5727fi 5728fi 5729ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5730if test -n "$ac_ct_DUMPBIN"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5732$as_echo "$ac_ct_DUMPBIN" >&6; } 5733else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735$as_echo "no" >&6; } 5736fi 5737 5738 5739 test -n "$ac_ct_DUMPBIN" && break 5740done 5741 5742 if test "x$ac_ct_DUMPBIN" = x; then 5743 DUMPBIN=":" 5744 else 5745 case $cross_compiling:$ac_tool_warned in 5746yes:) 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5749ac_tool_warned=yes ;; 5750esac 5751 DUMPBIN=$ac_ct_DUMPBIN 5752 fi 5753fi 5754 5755 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5756 *COFF*) 5757 DUMPBIN="$DUMPBIN -symbols" 5758 ;; 5759 *) 5760 DUMPBIN=: 5761 ;; 5762 esac 5763 fi 5764 5765 if test "$DUMPBIN" != ":"; then 5766 NM="$DUMPBIN" 5767 fi 5768fi 5769test -z "$NM" && NM=nm 5770 5771 5772 5773 5774 5775 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5777$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5778if ${lt_cv_nm_interface+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 lt_cv_nm_interface="BSD nm" 5782 echo "int some_variable = 0;" > conftest.$ac_ext 5783 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5784 (eval "$ac_compile" 2>conftest.err) 5785 cat conftest.err >&5 5786 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5787 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5788 cat conftest.err >&5 5789 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5790 cat conftest.out >&5 5791 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5792 lt_cv_nm_interface="MS dumpbin" 5793 fi 5794 rm -f conftest* 5795fi 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5797$as_echo "$lt_cv_nm_interface" >&6; } 5798 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5800$as_echo_n "checking whether ln -s works... " >&6; } 5801LN_S=$as_ln_s 5802if test "$LN_S" = "ln -s"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5804$as_echo "yes" >&6; } 5805else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5807$as_echo "no, using $LN_S" >&6; } 5808fi 5809 5810# find the maximum length of command line arguments 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5812$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5813if ${lt_cv_sys_max_cmd_len+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 i=0 5817 teststring="ABCD" 5818 5819 case $build_os in 5820 msdosdjgpp*) 5821 # On DJGPP, this test can blow up pretty badly due to problems in libc 5822 # (any single argument exceeding 2000 bytes causes a buffer overrun 5823 # during glob expansion). Even if it were fixed, the result of this 5824 # check would be larger than it should be. 5825 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5826 ;; 5827 5828 gnu*) 5829 # Under GNU Hurd, this test is not required because there is 5830 # no limit to the length of command line arguments. 5831 # Libtool will interpret -1 as no limit whatsoever 5832 lt_cv_sys_max_cmd_len=-1; 5833 ;; 5834 5835 cygwin* | mingw* | cegcc*) 5836 # On Win9x/ME, this test blows up -- it succeeds, but takes 5837 # about 5 minutes as the teststring grows exponentially. 5838 # Worse, since 9x/ME are not pre-emptively multitasking, 5839 # you end up with a "frozen" computer, even though with patience 5840 # the test eventually succeeds (with a max line length of 256k). 5841 # Instead, let's just punt: use the minimum linelength reported by 5842 # all of the supported platforms: 8192 (on NT/2K/XP). 5843 lt_cv_sys_max_cmd_len=8192; 5844 ;; 5845 5846 mint*) 5847 # On MiNT this can take a long time and run out of memory. 5848 lt_cv_sys_max_cmd_len=8192; 5849 ;; 5850 5851 amigaos*) 5852 # On AmigaOS with pdksh, this test takes hours, literally. 5853 # So we just punt and use a minimum line length of 8192. 5854 lt_cv_sys_max_cmd_len=8192; 5855 ;; 5856 5857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*) 5858 # This has been around since 386BSD, at least. Likely further. 5859 if test -x /sbin/sysctl; then 5860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5861 elif test -x /usr/sbin/sysctl; then 5862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5863 else 5864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5865 fi 5866 # And add a safety zone 5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5869 ;; 5870 5871 interix*) 5872 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5873 lt_cv_sys_max_cmd_len=196608 5874 ;; 5875 5876 osf*) 5877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5879 # nice to cause kernel panics so lets avoid the loop below. 5880 # First set a reasonable default. 5881 lt_cv_sys_max_cmd_len=16384 5882 # 5883 if test -x /sbin/sysconfig; then 5884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5885 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5886 esac 5887 fi 5888 ;; 5889 sco3.2v5*) 5890 lt_cv_sys_max_cmd_len=102400 5891 ;; 5892 sysv5* | sco5v6* | sysv4.2uw2*) 5893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5894 if test -n "$kargmax"; then 5895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5896 else 5897 lt_cv_sys_max_cmd_len=32768 5898 fi 5899 ;; 5900 *) 5901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5902 if test -n "$lt_cv_sys_max_cmd_len"; then 5903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5905 else 5906 # Make teststring a little bigger before we do anything with it. 5907 # a 1K string should be a reasonable start. 5908 for i in 1 2 3 4 5 6 7 8 ; do 5909 teststring=$teststring$teststring 5910 done 5911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5912 # If test is not a shell built-in, we'll probably end up computing a 5913 # maximum length that is only half of the actual maximum length, but 5914 # we can't tell. 5915 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5916 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5917 test $i != 17 # 1/2 MB should be enough 5918 do 5919 i=`expr $i + 1` 5920 teststring=$teststring$teststring 5921 done 5922 # Only check the string length outside the loop. 5923 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5924 teststring= 5925 # Add a significant safety factor because C++ compilers can tack on 5926 # massive amounts of additional arguments before passing them to the 5927 # linker. It appears as though 1/2 is a usable value. 5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5929 fi 5930 ;; 5931 esac 5932 5933fi 5934 5935if test -n $lt_cv_sys_max_cmd_len ; then 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5937$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5938else 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5940$as_echo "none" >&6; } 5941fi 5942max_cmd_len=$lt_cv_sys_max_cmd_len 5943 5944 5945 5946 5947 5948 5949: ${CP="cp -f"} 5950: ${MV="mv -f"} 5951: ${RM="rm -f"} 5952 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5954$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5955# Try some XSI features 5956xsi_shell=no 5957( _lt_dummy="a/b/c" 5958 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5959 = c,a/b,, \ 5960 && eval 'test $(( 1 + 1 )) -eq 2 \ 5961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5962 && xsi_shell=yes 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5964$as_echo "$xsi_shell" >&6; } 5965 5966 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5968$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5969lt_shell_append=no 5970( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5971 >/dev/null 2>&1 \ 5972 && lt_shell_append=yes 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5974$as_echo "$lt_shell_append" >&6; } 5975 5976 5977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5978 lt_unset=unset 5979else 5980 lt_unset=false 5981fi 5982 5983 5984 5985 5986 5987# test EBCDIC or ASCII 5988case `echo X|tr X '\101'` in 5989 A) # ASCII based system 5990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5991 lt_SP2NL='tr \040 \012' 5992 lt_NL2SP='tr \015\012 \040\040' 5993 ;; 5994 *) # EBCDIC based system 5995 lt_SP2NL='tr \100 \n' 5996 lt_NL2SP='tr \r\n \100\100' 5997 ;; 5998esac 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6009$as_echo_n "checking for $LD option to reload object files... " >&6; } 6010if ${lt_cv_ld_reload_flag+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 lt_cv_ld_reload_flag='-r' 6014fi 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6016$as_echo "$lt_cv_ld_reload_flag" >&6; } 6017reload_flag=$lt_cv_ld_reload_flag 6018case $reload_flag in 6019"" | " "*) ;; 6020*) reload_flag=" $reload_flag" ;; 6021esac 6022reload_cmds='$LD$reload_flag -o $output$reload_objs' 6023case $host_os in 6024 darwin*) 6025 if test "$GCC" = yes; then 6026 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6027 else 6028 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6029 fi 6030 ;; 6031esac 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041if test -n "$ac_tool_prefix"; then 6042 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6043set dummy ${ac_tool_prefix}objdump; ac_word=$2 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6045$as_echo_n "checking for $ac_word... " >&6; } 6046if ${ac_cv_prog_OBJDUMP+:} false; then : 6047 $as_echo_n "(cached) " >&6 6048else 6049 if test -n "$OBJDUMP"; then 6050 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6051else 6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053for as_dir in $PATH 6054do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6059 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063done 6064 done 6065IFS=$as_save_IFS 6066 6067fi 6068fi 6069OBJDUMP=$ac_cv_prog_OBJDUMP 6070if test -n "$OBJDUMP"; then 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6072$as_echo "$OBJDUMP" >&6; } 6073else 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6075$as_echo "no" >&6; } 6076fi 6077 6078 6079fi 6080if test -z "$ac_cv_prog_OBJDUMP"; then 6081 ac_ct_OBJDUMP=$OBJDUMP 6082 # Extract the first word of "objdump", so it can be a program name with args. 6083set dummy objdump; ac_word=$2 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6085$as_echo_n "checking for $ac_word... " >&6; } 6086if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 if test -n "$ac_ct_OBJDUMP"; then 6090 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6091else 6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6093for as_dir in $PATH 6094do 6095 IFS=$as_save_IFS 6096 test -z "$as_dir" && as_dir=. 6097 for ac_exec_ext in '' $ac_executable_extensions; do 6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6099 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6101 break 2 6102 fi 6103done 6104 done 6105IFS=$as_save_IFS 6106 6107fi 6108fi 6109ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6110if test -n "$ac_ct_OBJDUMP"; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6112$as_echo "$ac_ct_OBJDUMP" >&6; } 6113else 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115$as_echo "no" >&6; } 6116fi 6117 6118 if test "x$ac_ct_OBJDUMP" = x; then 6119 OBJDUMP="false" 6120 else 6121 case $cross_compiling:$ac_tool_warned in 6122yes:) 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6125ac_tool_warned=yes ;; 6126esac 6127 OBJDUMP=$ac_ct_OBJDUMP 6128 fi 6129else 6130 OBJDUMP="$ac_cv_prog_OBJDUMP" 6131fi 6132 6133test -z "$OBJDUMP" && OBJDUMP=objdump 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6144$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6145if ${lt_cv_deplibs_check_method+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 lt_cv_file_magic_cmd='$MAGIC_CMD' 6149lt_cv_file_magic_test_file= 6150lt_cv_deplibs_check_method='unknown' 6151# Need to set the preceding variable on all platforms that support 6152# interlibrary dependencies. 6153# 'none' -- dependencies not supported. 6154# `unknown' -- same as none, but documents that we really don't know. 6155# 'pass_all' -- all dependencies passed with no checks. 6156# 'test_compile' -- check by making test program. 6157# 'file_magic [[regex]]' -- check by looking for files in library path 6158# which responds to the $file_magic_cmd with a given extended regex. 6159# If you have `file' or equivalent on your system and you're not sure 6160# whether `pass_all' will *always* work, you probably want this one. 6161 6162case $host_os in 6163aix[4-9]*) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 6167beos*) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 6171bsdi[45]*) 6172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6173 lt_cv_file_magic_cmd='/usr/bin/file -L' 6174 lt_cv_file_magic_test_file=/shlib/libc.so 6175 ;; 6176 6177cygwin*) 6178 # func_win32_libid is a shell function defined in ltmain.sh 6179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6180 lt_cv_file_magic_cmd='func_win32_libid' 6181 ;; 6182 6183mingw* | pw32*) 6184 # Base MSYS/MinGW do not provide the 'file' command needed by 6185 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6186 # unless we find 'file', for example because we are cross-compiling. 6187 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6188 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6190 lt_cv_file_magic_cmd='func_win32_libid' 6191 else 6192 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6193 lt_cv_file_magic_cmd='$OBJDUMP -f' 6194 fi 6195 ;; 6196 6197cegcc*) 6198 # use the weaker test based on 'objdump'. See mingw*. 6199 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6200 lt_cv_file_magic_cmd='$OBJDUMP -f' 6201 ;; 6202 6203darwin* | rhapsody*) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206 6207freebsd* | dragonfly*) 6208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6209 case $host_cpu in 6210 i*86 ) 6211 # Not sure whether the presence of OpenBSD here was a mistake. 6212 # Let's accept both of them until this is cleared up. 6213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6214 lt_cv_file_magic_cmd=/usr/bin/file 6215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6216 ;; 6217 esac 6218 else 6219 lt_cv_deplibs_check_method=pass_all 6220 fi 6221 ;; 6222 6223gnu*) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226 6227haiku*) 6228 lt_cv_deplibs_check_method=pass_all 6229 ;; 6230 6231hpux10.20* | hpux11*) 6232 lt_cv_file_magic_cmd=/usr/bin/file 6233 case $host_cpu in 6234 ia64*) 6235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6237 ;; 6238 hppa*64*) 6239 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]' 6240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6241 ;; 6242 *) 6243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6244 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6245 ;; 6246 esac 6247 ;; 6248 6249interix[3-9]*) 6250 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6252 ;; 6253 6254irix5* | irix6* | nonstopux*) 6255 case $LD in 6256 *-32|*"-32 ") libmagic=32-bit;; 6257 *-n32|*"-n32 ") libmagic=N32;; 6258 *-64|*"-64 ") libmagic=64-bit;; 6259 *) libmagic=never-match;; 6260 esac 6261 lt_cv_deplibs_check_method=pass_all 6262 ;; 6263 6264# This must be Linux ELF. 6265linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 6269netbsd*) 6270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6272 else 6273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6274 fi 6275 ;; 6276 6277newos6*) 6278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6279 lt_cv_file_magic_cmd=/usr/bin/file 6280 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6281 ;; 6282 6283*nto* | *qnx*) 6284 lt_cv_deplibs_check_method=pass_all 6285 ;; 6286 6287openbsd*) 6288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6290 else 6291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6292 fi 6293 ;; 6294 6295osf3* | osf4* | osf5*) 6296 lt_cv_deplibs_check_method=pass_all 6297 ;; 6298 6299rdos*) 6300 lt_cv_deplibs_check_method=pass_all 6301 ;; 6302 6303solaris*) 6304 lt_cv_deplibs_check_method=pass_all 6305 ;; 6306 6307sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 6311sysv4 | sysv4.3*) 6312 case $host_vendor in 6313 motorola) 6314 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]' 6315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6316 ;; 6317 ncr) 6318 lt_cv_deplibs_check_method=pass_all 6319 ;; 6320 sequent) 6321 lt_cv_file_magic_cmd='/bin/file' 6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6323 ;; 6324 sni) 6325 lt_cv_file_magic_cmd='/bin/file' 6326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6327 lt_cv_file_magic_test_file=/lib/libc.so 6328 ;; 6329 siemens) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 pc) 6333 lt_cv_deplibs_check_method=pass_all 6334 ;; 6335 esac 6336 ;; 6337 6338tpf*) 6339 lt_cv_deplibs_check_method=pass_all 6340 ;; 6341esac 6342 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6345$as_echo "$lt_cv_deplibs_check_method" >&6; } 6346file_magic_cmd=$lt_cv_file_magic_cmd 6347deplibs_check_method=$lt_cv_deplibs_check_method 6348test -z "$deplibs_check_method" && deplibs_check_method=unknown 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361if test -n "$ac_tool_prefix"; then 6362 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6363set dummy ${ac_tool_prefix}ar; ac_word=$2 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6365$as_echo_n "checking for $ac_word... " >&6; } 6366if ${ac_cv_prog_AR+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 if test -n "$AR"; then 6370 ac_cv_prog_AR="$AR" # Let the user override the test. 6371else 6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373for as_dir in $PATH 6374do 6375 IFS=$as_save_IFS 6376 test -z "$as_dir" && as_dir=. 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6379 ac_cv_prog_AR="${ac_tool_prefix}ar" 6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6381 break 2 6382 fi 6383done 6384 done 6385IFS=$as_save_IFS 6386 6387fi 6388fi 6389AR=$ac_cv_prog_AR 6390if test -n "$AR"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6392$as_echo "$AR" >&6; } 6393else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6395$as_echo "no" >&6; } 6396fi 6397 6398 6399fi 6400if test -z "$ac_cv_prog_AR"; then 6401 ac_ct_AR=$AR 6402 # Extract the first word of "ar", so it can be a program name with args. 6403set dummy ar; ac_word=$2 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6405$as_echo_n "checking for $ac_word... " >&6; } 6406if ${ac_cv_prog_ac_ct_AR+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 if test -n "$ac_ct_AR"; then 6410 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6411else 6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6413for as_dir in $PATH 6414do 6415 IFS=$as_save_IFS 6416 test -z "$as_dir" && as_dir=. 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6419 ac_cv_prog_ac_ct_AR="ar" 6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423done 6424 done 6425IFS=$as_save_IFS 6426 6427fi 6428fi 6429ac_ct_AR=$ac_cv_prog_ac_ct_AR 6430if test -n "$ac_ct_AR"; then 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6432$as_echo "$ac_ct_AR" >&6; } 6433else 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435$as_echo "no" >&6; } 6436fi 6437 6438 if test "x$ac_ct_AR" = x; then 6439 AR="false" 6440 else 6441 case $cross_compiling:$ac_tool_warned in 6442yes:) 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6445ac_tool_warned=yes ;; 6446esac 6447 AR=$ac_ct_AR 6448 fi 6449else 6450 AR="$ac_cv_prog_AR" 6451fi 6452 6453test -z "$AR" && AR=ar 6454test -z "$AR_FLAGS" && AR_FLAGS=cru 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466if test -n "$ac_tool_prefix"; then 6467 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6468set dummy ${ac_tool_prefix}strip; ac_word=$2 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6470$as_echo_n "checking for $ac_word... " >&6; } 6471if ${ac_cv_prog_STRIP+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473else 6474 if test -n "$STRIP"; then 6475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6476else 6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478for as_dir in $PATH 6479do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6484 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488done 6489 done 6490IFS=$as_save_IFS 6491 6492fi 6493fi 6494STRIP=$ac_cv_prog_STRIP 6495if test -n "$STRIP"; then 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6497$as_echo "$STRIP" >&6; } 6498else 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6500$as_echo "no" >&6; } 6501fi 6502 6503 6504fi 6505if test -z "$ac_cv_prog_STRIP"; then 6506 ac_ct_STRIP=$STRIP 6507 # Extract the first word of "strip", so it can be a program name with args. 6508set dummy strip; ac_word=$2 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6510$as_echo_n "checking for $ac_word... " >&6; } 6511if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 if test -n "$ac_ct_STRIP"; then 6515 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6516else 6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6518for as_dir in $PATH 6519do 6520 IFS=$as_save_IFS 6521 test -z "$as_dir" && as_dir=. 6522 for ac_exec_ext in '' $ac_executable_extensions; do 6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6524 ac_cv_prog_ac_ct_STRIP="strip" 6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6526 break 2 6527 fi 6528done 6529 done 6530IFS=$as_save_IFS 6531 6532fi 6533fi 6534ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6535if test -n "$ac_ct_STRIP"; then 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6537$as_echo "$ac_ct_STRIP" >&6; } 6538else 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6540$as_echo "no" >&6; } 6541fi 6542 6543 if test "x$ac_ct_STRIP" = x; then 6544 STRIP=":" 6545 else 6546 case $cross_compiling:$ac_tool_warned in 6547yes:) 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6550ac_tool_warned=yes ;; 6551esac 6552 STRIP=$ac_ct_STRIP 6553 fi 6554else 6555 STRIP="$ac_cv_prog_STRIP" 6556fi 6557 6558test -z "$STRIP" && STRIP=: 6559 6560 6561 6562 6563 6564 6565if test -n "$ac_tool_prefix"; then 6566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6567set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6569$as_echo_n "checking for $ac_word... " >&6; } 6570if ${ac_cv_prog_RANLIB+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 if test -n "$RANLIB"; then 6574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6575else 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_exec_ext in '' $ac_executable_extensions; do 6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6585 break 2 6586 fi 6587done 6588 done 6589IFS=$as_save_IFS 6590 6591fi 6592fi 6593RANLIB=$ac_cv_prog_RANLIB 6594if test -n "$RANLIB"; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6596$as_echo "$RANLIB" >&6; } 6597else 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599$as_echo "no" >&6; } 6600fi 6601 6602 6603fi 6604if test -z "$ac_cv_prog_RANLIB"; then 6605 ac_ct_RANLIB=$RANLIB 6606 # Extract the first word of "ranlib", so it can be a program name with args. 6607set dummy ranlib; ac_word=$2 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6609$as_echo_n "checking for $ac_word... " >&6; } 6610if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -n "$ac_ct_RANLIB"; then 6614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6615else 6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6623 ac_cv_prog_ac_ct_RANLIB="ranlib" 6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628 done 6629IFS=$as_save_IFS 6630 6631fi 6632fi 6633ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6634if test -n "$ac_ct_RANLIB"; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6636$as_echo "$ac_ct_RANLIB" >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639$as_echo "no" >&6; } 6640fi 6641 6642 if test "x$ac_ct_RANLIB" = x; then 6643 RANLIB=":" 6644 else 6645 case $cross_compiling:$ac_tool_warned in 6646yes:) 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6649ac_tool_warned=yes ;; 6650esac 6651 RANLIB=$ac_ct_RANLIB 6652 fi 6653else 6654 RANLIB="$ac_cv_prog_RANLIB" 6655fi 6656 6657test -z "$RANLIB" && RANLIB=: 6658 6659 6660 6661 6662 6663 6664# Determine commands to create old-style static archives. 6665old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6666old_postinstall_cmds='chmod 644 $oldlib' 6667old_postuninstall_cmds= 6668 6669if test -n "$RANLIB"; then 6670 case $host_os in 6671 openbsd*) 6672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6673 ;; 6674 *) 6675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6676 ;; 6677 esac 6678 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6679fi 6680 6681case $host_os in 6682 darwin*) 6683 lock_old_archive_extraction=yes ;; 6684 *) 6685 lock_old_archive_extraction=no ;; 6686esac 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726# If no C compiler was specified, use CC. 6727LTCC=${LTCC-"$CC"} 6728 6729# If no C compiler flags were specified, use CFLAGS. 6730LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6731 6732# Allow CC to be a program name with arguments. 6733compiler=$CC 6734 6735 6736# Check for command to grab the raw symbol name followed by C symbol from nm. 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6738$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6739if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 6743# These are sane defaults that work on at least a few old systems. 6744# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6745 6746# Character class describing NM global symbol codes. 6747symcode='[BCDEGRST]' 6748 6749# Regexp to match symbols that can be accessed directly from C. 6750sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6751 6752# Define system-specific variables. 6753case $host_os in 6754aix*) 6755 symcode='[BCDT]' 6756 ;; 6757cygwin* | mingw* | pw32* | cegcc*) 6758 symcode='[ABCDGISTW]' 6759 ;; 6760hpux*) 6761 if test "$host_cpu" = ia64; then 6762 symcode='[ABCDEGRST]' 6763 fi 6764 ;; 6765irix* | nonstopux*) 6766 symcode='[BCDEGRST]' 6767 ;; 6768osf*) 6769 symcode='[BCDEGQRST]' 6770 ;; 6771solaris*) 6772 symcode='[BDRT]' 6773 ;; 6774sco3.2v5*) 6775 symcode='[DT]' 6776 ;; 6777sysv4.2uw2*) 6778 symcode='[DT]' 6779 ;; 6780sysv5* | sco5v6* | unixware* | OpenUNIX*) 6781 symcode='[ABDT]' 6782 ;; 6783sysv4) 6784 symcode='[DFNSTU]' 6785 ;; 6786esac 6787 6788# If we're using GNU nm, then use its standard symbol codes. 6789case `$NM -V 2>&1` in 6790*GNU* | *'with BFD'*) 6791 symcode='[ABCDGIRSTW]' ;; 6792esac 6793 6794# Transform an extracted symbol line into a proper C declaration. 6795# Some systems (esp. on ia64) link data and code symbols differently, 6796# so use this general approach. 6797lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6798 6799# Transform an extracted symbol line into symbol name and symbol address 6800lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6801lt_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'" 6802 6803# Handle CRLF in mingw tool chain 6804opt_cr= 6805case $build_os in 6806mingw*) 6807 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6808 ;; 6809esac 6810 6811# Try without a prefix underscore, then with it. 6812for ac_symprfx in "" "_"; do 6813 6814 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6815 symxfrm="\\1 $ac_symprfx\\2 \\2" 6816 6817 # Write the raw and C identifiers. 6818 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6819 # Fake it for dumpbin and say T for any non-static function 6820 # and D for any global variable. 6821 # Also find C++ and __fastcall symbols from MSVC++, 6822 # which start with @ or ?. 6823 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6824" {last_section=section; section=\$ 3};"\ 6825" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6826" \$ 0!~/External *\|/{next};"\ 6827" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6828" {if(hide[section]) next};"\ 6829" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6830" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6831" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6832" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6833" ' prfx=^$ac_symprfx" 6834 else 6835 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6836 fi 6837 6838 # Check to see that the pipe works correctly. 6839 pipe_works=no 6840 6841 rm -f conftest* 6842 cat > conftest.$ac_ext <<_LT_EOF 6843#ifdef __cplusplus 6844extern "C" { 6845#endif 6846char nm_test_var; 6847void nm_test_func(void); 6848void nm_test_func(void){} 6849#ifdef __cplusplus 6850} 6851#endif 6852int main(){nm_test_var='a';nm_test_func();return(0);} 6853_LT_EOF 6854 6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6856 (eval $ac_compile) 2>&5 6857 ac_status=$? 6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6859 test $ac_status = 0; }; then 6860 # Now try to grab the symbols. 6861 nlist=conftest.nm 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6863 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; } && test -s "$nlist"; then 6867 # Try sorting and uniquifying the output. 6868 if sort "$nlist" | uniq > "$nlist"T; then 6869 mv -f "$nlist"T "$nlist" 6870 else 6871 rm -f "$nlist"T 6872 fi 6873 6874 # Make sure that we snagged all the symbols we need. 6875 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6876 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6877 cat <<_LT_EOF > conftest.$ac_ext 6878#ifdef __cplusplus 6879extern "C" { 6880#endif 6881 6882_LT_EOF 6883 # Now generate the symbol file. 6884 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6885 6886 cat <<_LT_EOF >> conftest.$ac_ext 6887 6888/* The mapping between symbol names and symbols. */ 6889const struct { 6890 const char *name; 6891 void *address; 6892} 6893lt__PROGRAM__LTX_preloaded_symbols[] = 6894{ 6895 { "@PROGRAM@", (void *) 0 }, 6896_LT_EOF 6897 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6898 cat <<\_LT_EOF >> conftest.$ac_ext 6899 {0, (void *) 0} 6900}; 6901 6902/* This works around a problem in FreeBSD linker */ 6903#ifdef FREEBSD_WORKAROUND 6904static const void *lt_preloaded_setup() { 6905 return lt__PROGRAM__LTX_preloaded_symbols; 6906} 6907#endif 6908 6909#ifdef __cplusplus 6910} 6911#endif 6912_LT_EOF 6913 # Now try linking the two files. 6914 mv conftest.$ac_objext conftstm.$ac_objext 6915 lt_save_LIBS="$LIBS" 6916 lt_save_CFLAGS="$CFLAGS" 6917 LIBS="conftstm.$ac_objext" 6918 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6920 (eval $ac_link) 2>&5 6921 ac_status=$? 6922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6923 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6924 pipe_works=yes 6925 fi 6926 LIBS="$lt_save_LIBS" 6927 CFLAGS="$lt_save_CFLAGS" 6928 else 6929 echo "cannot find nm_test_func in $nlist" >&5 6930 fi 6931 else 6932 echo "cannot find nm_test_var in $nlist" >&5 6933 fi 6934 else 6935 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6936 fi 6937 else 6938 echo "$progname: failed program was:" >&5 6939 cat conftest.$ac_ext >&5 6940 fi 6941 rm -rf conftest* conftst* 6942 6943 # Do not use the global_symbol_pipe unless it works. 6944 if test "$pipe_works" = yes; then 6945 break 6946 else 6947 lt_cv_sys_global_symbol_pipe= 6948 fi 6949done 6950 6951fi 6952 6953if test -z "$lt_cv_sys_global_symbol_pipe"; then 6954 lt_cv_sys_global_symbol_to_cdecl= 6955fi 6956if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6958$as_echo "failed" >&6; } 6959else 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6961$as_echo "ok" >&6; } 6962fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985# Check whether --enable-libtool-lock was given. 6986if test "${enable_libtool_lock+set}" = set; then : 6987 enableval=$enable_libtool_lock; 6988fi 6989 6990test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6991 6992# Some flags need to be propagated to the compiler or linker for good 6993# libtool support. 6994case $host in 6995ia64-*-hpux*) 6996 # Find out which ABI we are using. 6997 echo 'int i;' > conftest.$ac_ext 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6999 (eval $ac_compile) 2>&5 7000 ac_status=$? 7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7002 test $ac_status = 0; }; then 7003 case `/usr/bin/file conftest.$ac_objext` in 7004 *ELF-32*) 7005 HPUX_IA64_MODE="32" 7006 ;; 7007 *ELF-64*) 7008 HPUX_IA64_MODE="64" 7009 ;; 7010 esac 7011 fi 7012 rm -rf conftest* 7013 ;; 7014*-*-irix6*) 7015 # Find out which ABI we are using. 7016 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7018 (eval $ac_compile) 2>&5 7019 ac_status=$? 7020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7021 test $ac_status = 0; }; then 7022 if test "$lt_cv_prog_gnu_ld" = yes; then 7023 case `/usr/bin/file conftest.$ac_objext` in 7024 *32-bit*) 7025 LD="${LD-ld} -melf32bsmip" 7026 ;; 7027 *N32*) 7028 LD="${LD-ld} -melf32bmipn32" 7029 ;; 7030 *64-bit*) 7031 LD="${LD-ld} -melf64bmip" 7032 ;; 7033 esac 7034 else 7035 case `/usr/bin/file conftest.$ac_objext` in 7036 *32-bit*) 7037 LD="${LD-ld} -32" 7038 ;; 7039 *N32*) 7040 LD="${LD-ld} -n32" 7041 ;; 7042 *64-bit*) 7043 LD="${LD-ld} -64" 7044 ;; 7045 esac 7046 fi 7047 fi 7048 rm -rf conftest* 7049 ;; 7050 7051x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7052s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7053 # Find out which ABI we are using. 7054 echo 'int i;' > conftest.$ac_ext 7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7056 (eval $ac_compile) 2>&5 7057 ac_status=$? 7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7059 test $ac_status = 0; }; then 7060 case `/usr/bin/file conftest.o` in 7061 *32-bit*) 7062 case $host in 7063 x86_64-*kfreebsd*-gnu) 7064 LD="${LD-ld} -m elf_i386_fbsd" 7065 ;; 7066 x86_64-*linux*) 7067 case `/usr/bin/file conftest.o` in 7068 *x86-64*) 7069 LD="${LD-ld} -m elf32_x86_64" 7070 ;; 7071 *) 7072 LD="${LD-ld} -m elf_i386" 7073 ;; 7074 esac 7075 ;; 7076 powerpc64le-*linux*) 7077 LD="${LD-ld} -m elf32lppclinux" 7078 ;; 7079 powerpc64-*linux*) 7080 LD="${LD-ld} -m elf32ppclinux" 7081 ;; 7082 s390x-*linux*) 7083 LD="${LD-ld} -m elf_s390" 7084 ;; 7085 sparc64-*linux*) 7086 LD="${LD-ld} -m elf32_sparc" 7087 ;; 7088 esac 7089 ;; 7090 *64-bit*) 7091 case $host in 7092 x86_64-*kfreebsd*-gnu) 7093 LD="${LD-ld} -m elf_x86_64_fbsd" 7094 ;; 7095 x86_64-*linux*) 7096 LD="${LD-ld} -m elf_x86_64" 7097 ;; 7098 powerpcle-*linux*) 7099 LD="${LD-ld} -m elf64lppc" 7100 ;; 7101 powerpc-*linux*) 7102 LD="${LD-ld} -m elf64ppc" 7103 ;; 7104 s390*-*linux*|s390*-*tpf*) 7105 LD="${LD-ld} -m elf64_s390" 7106 ;; 7107 sparc*-*linux*) 7108 LD="${LD-ld} -m elf64_sparc" 7109 ;; 7110 esac 7111 ;; 7112 esac 7113 fi 7114 rm -rf conftest* 7115 ;; 7116 7117*-*-sco3.2v5*) 7118 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7119 SAVE_CFLAGS="$CFLAGS" 7120 CFLAGS="$CFLAGS -belf" 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7122$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7123if ${lt_cv_cc_needs_belf+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 ac_ext=c 7127ac_cpp='$CPP $CPPFLAGS' 7128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7130ac_compiler_gnu=$ac_cv_c_compiler_gnu 7131 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134 7135int 7136main () 7137{ 7138 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143if ac_fn_c_try_link "$LINENO"; then : 7144 lt_cv_cc_needs_belf=yes 7145else 7146 lt_cv_cc_needs_belf=no 7147fi 7148rm -f core conftest.err conftest.$ac_objext \ 7149 conftest$ac_exeext conftest.$ac_ext 7150 ac_ext=c 7151ac_cpp='$CPP $CPPFLAGS' 7152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7154ac_compiler_gnu=$ac_cv_c_compiler_gnu 7155 7156fi 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7158$as_echo "$lt_cv_cc_needs_belf" >&6; } 7159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7161 CFLAGS="$SAVE_CFLAGS" 7162 fi 7163 ;; 7164sparc*-*solaris*) 7165 # Find out which ABI we are using. 7166 echo 'int i;' > conftest.$ac_ext 7167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7168 (eval $ac_compile) 2>&5 7169 ac_status=$? 7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7171 test $ac_status = 0; }; then 7172 case `/usr/bin/file conftest.o` in 7173 *64-bit*) 7174 case $lt_cv_prog_gnu_ld in 7175 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7176 *) 7177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7178 LD="${LD-ld} -64" 7179 fi 7180 ;; 7181 esac 7182 ;; 7183 esac 7184 fi 7185 rm -rf conftest* 7186 ;; 7187esac 7188 7189need_locks="$enable_libtool_lock" 7190 7191 7192 case $host_os in 7193 rhapsody* | darwin*) 7194 if test -n "$ac_tool_prefix"; then 7195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7198$as_echo_n "checking for $ac_word... " >&6; } 7199if ${ac_cv_prog_DSYMUTIL+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 if test -n "$DSYMUTIL"; then 7203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7204else 7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216done 7217 done 7218IFS=$as_save_IFS 7219 7220fi 7221fi 7222DSYMUTIL=$ac_cv_prog_DSYMUTIL 7223if test -n "$DSYMUTIL"; then 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7225$as_echo "$DSYMUTIL" >&6; } 7226else 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7228$as_echo "no" >&6; } 7229fi 7230 7231 7232fi 7233if test -z "$ac_cv_prog_DSYMUTIL"; then 7234 ac_ct_DSYMUTIL=$DSYMUTIL 7235 # Extract the first word of "dsymutil", so it can be a program name with args. 7236set dummy dsymutil; ac_word=$2 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7238$as_echo_n "checking for $ac_word... " >&6; } 7239if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 if test -n "$ac_ct_DSYMUTIL"; then 7243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7244else 7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246for as_dir in $PATH 7247do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256done 7257 done 7258IFS=$as_save_IFS 7259 7260fi 7261fi 7262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7263if test -n "$ac_ct_DSYMUTIL"; then 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7265$as_echo "$ac_ct_DSYMUTIL" >&6; } 7266else 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7268$as_echo "no" >&6; } 7269fi 7270 7271 if test "x$ac_ct_DSYMUTIL" = x; then 7272 DSYMUTIL=":" 7273 else 7274 case $cross_compiling:$ac_tool_warned in 7275yes:) 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7278ac_tool_warned=yes ;; 7279esac 7280 DSYMUTIL=$ac_ct_DSYMUTIL 7281 fi 7282else 7283 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7284fi 7285 7286 if test -n "$ac_tool_prefix"; then 7287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7288set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7290$as_echo_n "checking for $ac_word... " >&6; } 7291if ${ac_cv_prog_NMEDIT+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 if test -n "$NMEDIT"; then 7295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7296else 7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7298for as_dir in $PATH 7299do 7300 IFS=$as_save_IFS 7301 test -z "$as_dir" && as_dir=. 7302 for ac_exec_ext in '' $ac_executable_extensions; do 7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7306 break 2 7307 fi 7308done 7309 done 7310IFS=$as_save_IFS 7311 7312fi 7313fi 7314NMEDIT=$ac_cv_prog_NMEDIT 7315if test -n "$NMEDIT"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7317$as_echo "$NMEDIT" >&6; } 7318else 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7320$as_echo "no" >&6; } 7321fi 7322 7323 7324fi 7325if test -z "$ac_cv_prog_NMEDIT"; then 7326 ac_ct_NMEDIT=$NMEDIT 7327 # Extract the first word of "nmedit", so it can be a program name with args. 7328set dummy nmedit; ac_word=$2 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7330$as_echo_n "checking for $ac_word... " >&6; } 7331if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 if test -n "$ac_ct_NMEDIT"; then 7335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7336else 7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7338for as_dir in $PATH 7339do 7340 IFS=$as_save_IFS 7341 test -z "$as_dir" && as_dir=. 7342 for ac_exec_ext in '' $ac_executable_extensions; do 7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7344 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7346 break 2 7347 fi 7348done 7349 done 7350IFS=$as_save_IFS 7351 7352fi 7353fi 7354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7355if test -n "$ac_ct_NMEDIT"; then 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7357$as_echo "$ac_ct_NMEDIT" >&6; } 7358else 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7360$as_echo "no" >&6; } 7361fi 7362 7363 if test "x$ac_ct_NMEDIT" = x; then 7364 NMEDIT=":" 7365 else 7366 case $cross_compiling:$ac_tool_warned in 7367yes:) 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7370ac_tool_warned=yes ;; 7371esac 7372 NMEDIT=$ac_ct_NMEDIT 7373 fi 7374else 7375 NMEDIT="$ac_cv_prog_NMEDIT" 7376fi 7377 7378 if test -n "$ac_tool_prefix"; then 7379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7380set dummy ${ac_tool_prefix}lipo; ac_word=$2 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7382$as_echo_n "checking for $ac_word... " >&6; } 7383if ${ac_cv_prog_LIPO+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 if test -n "$LIPO"; then 7387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7388else 7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390for as_dir in $PATH 7391do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400done 7401 done 7402IFS=$as_save_IFS 7403 7404fi 7405fi 7406LIPO=$ac_cv_prog_LIPO 7407if test -n "$LIPO"; then 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7409$as_echo "$LIPO" >&6; } 7410else 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7412$as_echo "no" >&6; } 7413fi 7414 7415 7416fi 7417if test -z "$ac_cv_prog_LIPO"; then 7418 ac_ct_LIPO=$LIPO 7419 # Extract the first word of "lipo", so it can be a program name with args. 7420set dummy lipo; ac_word=$2 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7422$as_echo_n "checking for $ac_word... " >&6; } 7423if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425else 7426 if test -n "$ac_ct_LIPO"; then 7427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7428else 7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7430for as_dir in $PATH 7431do 7432 IFS=$as_save_IFS 7433 test -z "$as_dir" && as_dir=. 7434 for ac_exec_ext in '' $ac_executable_extensions; do 7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7436 ac_cv_prog_ac_ct_LIPO="lipo" 7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7438 break 2 7439 fi 7440done 7441 done 7442IFS=$as_save_IFS 7443 7444fi 7445fi 7446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7447if test -n "$ac_ct_LIPO"; then 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7449$as_echo "$ac_ct_LIPO" >&6; } 7450else 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7452$as_echo "no" >&6; } 7453fi 7454 7455 if test "x$ac_ct_LIPO" = x; then 7456 LIPO=":" 7457 else 7458 case $cross_compiling:$ac_tool_warned in 7459yes:) 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7462ac_tool_warned=yes ;; 7463esac 7464 LIPO=$ac_ct_LIPO 7465 fi 7466else 7467 LIPO="$ac_cv_prog_LIPO" 7468fi 7469 7470 if test -n "$ac_tool_prefix"; then 7471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7472set dummy ${ac_tool_prefix}otool; ac_word=$2 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474$as_echo_n "checking for $ac_word... " >&6; } 7475if ${ac_cv_prog_OTOOL+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 if test -n "$OTOOL"; then 7479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7480else 7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493 done 7494IFS=$as_save_IFS 7495 7496fi 7497fi 7498OTOOL=$ac_cv_prog_OTOOL 7499if test -n "$OTOOL"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7501$as_echo "$OTOOL" >&6; } 7502else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504$as_echo "no" >&6; } 7505fi 7506 7507 7508fi 7509if test -z "$ac_cv_prog_OTOOL"; then 7510 ac_ct_OTOOL=$OTOOL 7511 # Extract the first word of "otool", so it can be a program name with args. 7512set dummy otool; ac_word=$2 7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7514$as_echo_n "checking for $ac_word... " >&6; } 7515if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 if test -n "$ac_ct_OTOOL"; then 7519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7520else 7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7522for as_dir in $PATH 7523do 7524 IFS=$as_save_IFS 7525 test -z "$as_dir" && as_dir=. 7526 for ac_exec_ext in '' $ac_executable_extensions; do 7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7528 ac_cv_prog_ac_ct_OTOOL="otool" 7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7530 break 2 7531 fi 7532done 7533 done 7534IFS=$as_save_IFS 7535 7536fi 7537fi 7538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7539if test -n "$ac_ct_OTOOL"; then 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7541$as_echo "$ac_ct_OTOOL" >&6; } 7542else 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7544$as_echo "no" >&6; } 7545fi 7546 7547 if test "x$ac_ct_OTOOL" = x; then 7548 OTOOL=":" 7549 else 7550 case $cross_compiling:$ac_tool_warned in 7551yes:) 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7554ac_tool_warned=yes ;; 7555esac 7556 OTOOL=$ac_ct_OTOOL 7557 fi 7558else 7559 OTOOL="$ac_cv_prog_OTOOL" 7560fi 7561 7562 if test -n "$ac_tool_prefix"; then 7563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7564set dummy ${ac_tool_prefix}otool64; ac_word=$2 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566$as_echo_n "checking for $ac_word... " >&6; } 7567if ${ac_cv_prog_OTOOL64+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 if test -n "$OTOOL64"; then 7571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584done 7585 done 7586IFS=$as_save_IFS 7587 7588fi 7589fi 7590OTOOL64=$ac_cv_prog_OTOOL64 7591if test -n "$OTOOL64"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7593$as_echo "$OTOOL64" >&6; } 7594else 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7596$as_echo "no" >&6; } 7597fi 7598 7599 7600fi 7601if test -z "$ac_cv_prog_OTOOL64"; then 7602 ac_ct_OTOOL64=$OTOOL64 7603 # Extract the first word of "otool64", so it can be a program name with args. 7604set dummy otool64; ac_word=$2 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7606$as_echo_n "checking for $ac_word... " >&6; } 7607if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 if test -n "$ac_ct_OTOOL64"; then 7611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7612else 7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7614for as_dir in $PATH 7615do 7616 IFS=$as_save_IFS 7617 test -z "$as_dir" && as_dir=. 7618 for ac_exec_ext in '' $ac_executable_extensions; do 7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7620 ac_cv_prog_ac_ct_OTOOL64="otool64" 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7622 break 2 7623 fi 7624done 7625 done 7626IFS=$as_save_IFS 7627 7628fi 7629fi 7630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7631if test -n "$ac_ct_OTOOL64"; then 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7633$as_echo "$ac_ct_OTOOL64" >&6; } 7634else 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7636$as_echo "no" >&6; } 7637fi 7638 7639 if test "x$ac_ct_OTOOL64" = x; then 7640 OTOOL64=":" 7641 else 7642 case $cross_compiling:$ac_tool_warned in 7643yes:) 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7646ac_tool_warned=yes ;; 7647esac 7648 OTOOL64=$ac_ct_OTOOL64 7649 fi 7650else 7651 OTOOL64="$ac_cv_prog_OTOOL64" 7652fi 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7681$as_echo_n "checking for -single_module linker flag... " >&6; } 7682if ${lt_cv_apple_cc_single_mod+:} false; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 lt_cv_apple_cc_single_mod=no 7686 if test -z "${LT_MULTI_MODULE}"; then 7687 # By default we will add the -single_module flag. You can override 7688 # by either setting the environment variable LT_MULTI_MODULE 7689 # non-empty at configure time, or by adding -multi_module to the 7690 # link flags. 7691 rm -rf libconftest.dylib* 7692 echo "int foo(void){return 1;}" > conftest.c 7693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7694-dynamiclib -Wl,-single_module conftest.c" >&5 7695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7697 _lt_result=$? 7698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7699 lt_cv_apple_cc_single_mod=yes 7700 else 7701 cat conftest.err >&5 7702 fi 7703 rm -rf libconftest.dylib* 7704 rm -f conftest.* 7705 fi 7706fi 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7708$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7710$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7711if ${lt_cv_ld_exported_symbols_list+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 lt_cv_ld_exported_symbols_list=no 7715 save_LDFLAGS=$LDFLAGS 7716 echo "_main" > conftest.sym 7717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720 7721int 7722main () 7723{ 7724 7725 ; 7726 return 0; 7727} 7728_ACEOF 7729if ac_fn_c_try_link "$LINENO"; then : 7730 lt_cv_ld_exported_symbols_list=yes 7731else 7732 lt_cv_ld_exported_symbols_list=no 7733fi 7734rm -f core conftest.err conftest.$ac_objext \ 7735 conftest$ac_exeext conftest.$ac_ext 7736 LDFLAGS="$save_LDFLAGS" 7737 7738fi 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7740$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7742$as_echo_n "checking for -force_load linker flag... " >&6; } 7743if ${lt_cv_ld_force_load+:} false; then : 7744 $as_echo_n "(cached) " >&6 7745else 7746 lt_cv_ld_force_load=no 7747 cat > conftest.c << _LT_EOF 7748int forced_loaded() { return 2;} 7749_LT_EOF 7750 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7751 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7752 echo "$AR cru libconftest.a conftest.o" >&5 7753 $AR cru libconftest.a conftest.o 2>&5 7754 cat > conftest.c << _LT_EOF 7755int main() { return 0;} 7756_LT_EOF 7757 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7758 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7759 _lt_result=$? 7760 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7761 lt_cv_ld_force_load=yes 7762 else 7763 cat conftest.err >&5 7764 fi 7765 rm -f conftest.err libconftest.a conftest conftest.c 7766 rm -rf conftest.dSYM 7767 7768fi 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7770$as_echo "$lt_cv_ld_force_load" >&6; } 7771 case $host_os in 7772 rhapsody* | darwin1.[012]) 7773 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7774 darwin1.*) 7775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7776 darwin*) # darwin 5.x on 7777 # if running on 10.5 or later, the deployment target defaults 7778 # to the OS version, if on x86, and 10.4, the deployment 7779 # target defaults to 10.4. Don't you love it? 7780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7781 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7783 10.[012][,.]*) 7784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7785 10.*) 7786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7787 esac 7788 ;; 7789 esac 7790 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7791 _lt_dar_single_mod='$single_module' 7792 fi 7793 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7794 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7795 else 7796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7797 fi 7798 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7799 _lt_dsymutil='~$DSYMUTIL $lib || :' 7800 else 7801 _lt_dsymutil= 7802 fi 7803 ;; 7804 esac 7805 7806for ac_header in dlfcn.h 7807do : 7808 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7809" 7810if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7811 cat >>confdefs.h <<_ACEOF 7812#define HAVE_DLFCN_H 1 7813_ACEOF 7814 7815fi 7816 7817done 7818 7819 7820 7821 7822 7823# Set options 7824 7825 7826 7827 enable_dlopen=no 7828 7829 7830 enable_win32_dll=no 7831 7832 7833 7834 # Check whether --enable-static was given. 7835if test "${enable_static+set}" = set; then : 7836 enableval=$enable_static; p=${PACKAGE-default} 7837 case $enableval in 7838 yes) enable_static=yes ;; 7839 no) enable_static=no ;; 7840 *) 7841 enable_static=no 7842 # Look at the argument we got. We use all the common list separators. 7843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7844 for pkg in $enableval; do 7845 IFS="$lt_save_ifs" 7846 if test "X$pkg" = "X$p"; then 7847 enable_static=yes 7848 fi 7849 done 7850 IFS="$lt_save_ifs" 7851 ;; 7852 esac 7853else 7854 enable_static=yes 7855fi 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866# Check whether --with-pic was given. 7867if test "${with_pic+set}" = set; then : 7868 withval=$with_pic; pic_mode="$withval" 7869else 7870 pic_mode=default 7871fi 7872 7873 7874test -z "$pic_mode" && pic_mode=default 7875 7876 7877 7878 7879 7880 7881 7882 # Check whether --enable-fast-install was given. 7883if test "${enable_fast_install+set}" = set; then : 7884 enableval=$enable_fast_install; p=${PACKAGE-default} 7885 case $enableval in 7886 yes) enable_fast_install=yes ;; 7887 no) enable_fast_install=no ;; 7888 *) 7889 enable_fast_install=no 7890 # Look at the argument we got. We use all the common list separators. 7891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7892 for pkg in $enableval; do 7893 IFS="$lt_save_ifs" 7894 if test "X$pkg" = "X$p"; then 7895 enable_fast_install=yes 7896 fi 7897 done 7898 IFS="$lt_save_ifs" 7899 ;; 7900 esac 7901else 7902 enable_fast_install=yes 7903fi 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915# This can be used to rebuild libtool when needed 7916LIBTOOL_DEPS="$ltmain" 7917 7918# Always use our own libtool. 7919LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946test -z "$LN_S" && LN_S="ln -s" 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961if test -n "${ZSH_VERSION+set}" ; then 7962 setopt NO_GLOB_SUBST 7963fi 7964 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7966$as_echo_n "checking for objdir... " >&6; } 7967if ${lt_cv_objdir+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 rm -f .libs 2>/dev/null 7971mkdir .libs 2>/dev/null 7972if test -d .libs; then 7973 lt_cv_objdir=.libs 7974else 7975 # MS-DOS does not allow filenames that begin with a dot. 7976 lt_cv_objdir=_libs 7977fi 7978rmdir .libs 2>/dev/null 7979fi 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7981$as_echo "$lt_cv_objdir" >&6; } 7982objdir=$lt_cv_objdir 7983 7984 7985 7986 7987 7988cat >>confdefs.h <<_ACEOF 7989#define LT_OBJDIR "$lt_cv_objdir/" 7990_ACEOF 7991 7992 7993 7994 7995case $host_os in 7996aix3*) 7997 # AIX sometimes has problems with the GCC collect2 program. For some 7998 # reason, if we set the COLLECT_NAMES environment variable, the problems 7999 # vanish in a puff of smoke. 8000 if test "X${COLLECT_NAMES+set}" != Xset; then 8001 COLLECT_NAMES= 8002 export COLLECT_NAMES 8003 fi 8004 ;; 8005esac 8006 8007# Global variables: 8008ofile=libtool 8009can_build_shared=yes 8010 8011# All known linkers require a `.a' archive for static linking (except MSVC, 8012# which needs '.lib'). 8013libext=a 8014 8015with_gnu_ld="$lt_cv_prog_gnu_ld" 8016 8017old_CC="$CC" 8018old_CFLAGS="$CFLAGS" 8019 8020# Set sane defaults for various variables 8021test -z "$CC" && CC=cc 8022test -z "$LTCC" && LTCC=$CC 8023test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8024test -z "$LD" && LD=ld 8025test -z "$ac_objext" && ac_objext=o 8026 8027for cc_temp in $compiler""; do 8028 case $cc_temp in 8029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8031 \-*) ;; 8032 *) break;; 8033 esac 8034done 8035cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8036 8037 8038# Only perform the check for file, if the check method requires it 8039test -z "$MAGIC_CMD" && MAGIC_CMD=file 8040case $deplibs_check_method in 8041file_magic*) 8042 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8044$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8045if ${lt_cv_path_MAGIC_CMD+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 case $MAGIC_CMD in 8049[\\/*] | ?:[\\/]*) 8050 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8051 ;; 8052*) 8053 lt_save_MAGIC_CMD="$MAGIC_CMD" 8054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8055 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8056 for ac_dir in $ac_dummy; do 8057 IFS="$lt_save_ifs" 8058 test -z "$ac_dir" && ac_dir=. 8059 if test -f $ac_dir/${ac_tool_prefix}file; then 8060 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8061 if test -n "$file_magic_test_file"; then 8062 case $deplibs_check_method in 8063 "file_magic "*) 8064 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8067 $EGREP "$file_magic_regex" > /dev/null; then 8068 : 8069 else 8070 cat <<_LT_EOF 1>&2 8071 8072*** Warning: the command libtool uses to detect shared libraries, 8073*** $file_magic_cmd, produces output that libtool cannot recognize. 8074*** The result is that libtool may fail to recognize shared libraries 8075*** as such. This will affect the creation of libtool libraries that 8076*** depend on shared libraries, but programs linked with such libtool 8077*** libraries will work regardless of this problem. Nevertheless, you 8078*** may want to report the problem to your system manager and/or to 8079*** bug-libtool@gnu.org 8080 8081_LT_EOF 8082 fi ;; 8083 esac 8084 fi 8085 break 8086 fi 8087 done 8088 IFS="$lt_save_ifs" 8089 MAGIC_CMD="$lt_save_MAGIC_CMD" 8090 ;; 8091esac 8092fi 8093 8094MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8095if test -n "$MAGIC_CMD"; then 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8097$as_echo "$MAGIC_CMD" >&6; } 8098else 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8100$as_echo "no" >&6; } 8101fi 8102 8103 8104 8105 8106 8107if test -z "$lt_cv_path_MAGIC_CMD"; then 8108 if test -n "$ac_tool_prefix"; then 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8110$as_echo_n "checking for file... " >&6; } 8111if ${lt_cv_path_MAGIC_CMD+:} false; then : 8112 $as_echo_n "(cached) " >&6 8113else 8114 case $MAGIC_CMD in 8115[\\/*] | ?:[\\/]*) 8116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8117 ;; 8118*) 8119 lt_save_MAGIC_CMD="$MAGIC_CMD" 8120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8122 for ac_dir in $ac_dummy; do 8123 IFS="$lt_save_ifs" 8124 test -z "$ac_dir" && ac_dir=. 8125 if test -f $ac_dir/file; then 8126 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8127 if test -n "$file_magic_test_file"; then 8128 case $deplibs_check_method in 8129 "file_magic "*) 8130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8133 $EGREP "$file_magic_regex" > /dev/null; then 8134 : 8135 else 8136 cat <<_LT_EOF 1>&2 8137 8138*** Warning: the command libtool uses to detect shared libraries, 8139*** $file_magic_cmd, produces output that libtool cannot recognize. 8140*** The result is that libtool may fail to recognize shared libraries 8141*** as such. This will affect the creation of libtool libraries that 8142*** depend on shared libraries, but programs linked with such libtool 8143*** libraries will work regardless of this problem. Nevertheless, you 8144*** may want to report the problem to your system manager and/or to 8145*** bug-libtool@gnu.org 8146 8147_LT_EOF 8148 fi ;; 8149 esac 8150 fi 8151 break 8152 fi 8153 done 8154 IFS="$lt_save_ifs" 8155 MAGIC_CMD="$lt_save_MAGIC_CMD" 8156 ;; 8157esac 8158fi 8159 8160MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8161if test -n "$MAGIC_CMD"; then 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8163$as_echo "$MAGIC_CMD" >&6; } 8164else 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8166$as_echo "no" >&6; } 8167fi 8168 8169 8170 else 8171 MAGIC_CMD=: 8172 fi 8173fi 8174 8175 fi 8176 ;; 8177esac 8178 8179# Use C for the default configuration in the libtool script 8180 8181lt_save_CC="$CC" 8182ac_ext=c 8183ac_cpp='$CPP $CPPFLAGS' 8184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8186ac_compiler_gnu=$ac_cv_c_compiler_gnu 8187 8188 8189# Source file extension for C test sources. 8190ac_ext=c 8191 8192# Object file extension for compiled C test sources. 8193objext=o 8194objext=$objext 8195 8196# Code to be used in simple compile tests 8197lt_simple_compile_test_code="int some_variable = 0;" 8198 8199# Code to be used in simple link tests 8200lt_simple_link_test_code='int main(){return(0);}' 8201 8202 8203 8204 8205 8206 8207 8208# If no C compiler was specified, use CC. 8209LTCC=${LTCC-"$CC"} 8210 8211# If no C compiler flags were specified, use CFLAGS. 8212LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8213 8214# Allow CC to be a program name with arguments. 8215compiler=$CC 8216 8217# Save the default compiler, since it gets overwritten when the other 8218# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8219compiler_DEFAULT=$CC 8220 8221# save warnings/boilerplate of simple test code 8222ac_outfile=conftest.$ac_objext 8223echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8224eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8225_lt_compiler_boilerplate=`cat conftest.err` 8226$RM conftest* 8227 8228ac_outfile=conftest.$ac_objext 8229echo "$lt_simple_link_test_code" >conftest.$ac_ext 8230eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8231_lt_linker_boilerplate=`cat conftest.err` 8232$RM -r conftest* 8233 8234 8235## CAVEAT EMPTOR: 8236## There is no encapsulation within the following macros, do not change 8237## the running order or otherwise move them around unless you know exactly 8238## what you are doing... 8239if test -n "$compiler"; then 8240 8241lt_prog_compiler_no_builtin_flag= 8242 8243if test "$GCC" = yes; then 8244 case $cc_basename in 8245 nvcc*) 8246 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8247 *) 8248 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8249 esac 8250 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8252$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8253if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255else 8256 lt_cv_prog_compiler_rtti_exceptions=no 8257 ac_outfile=conftest.$ac_objext 8258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8259 lt_compiler_flag="-fno-rtti -fno-exceptions" 8260 # Insert the option either (1) after the last *FLAGS variable, or 8261 # (2) before a word containing "conftest.", or (3) at the end. 8262 # Note that $ac_compile itself does not contain backslashes and begins 8263 # with a dollar sign (not a hyphen), so the echo should work correctly. 8264 # The option is referenced via a variable to avoid confusing sed. 8265 lt_compile=`echo "$ac_compile" | $SED \ 8266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8268 -e 's:$: $lt_compiler_flag:'` 8269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8270 (eval "$lt_compile" 2>conftest.err) 8271 ac_status=$? 8272 cat conftest.err >&5 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8274 if (exit $ac_status) && test -s "$ac_outfile"; then 8275 # The compiler can only warn and ignore the option if not recognized 8276 # So say no if there are warnings other than the usual output. 8277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8280 lt_cv_prog_compiler_rtti_exceptions=yes 8281 fi 8282 fi 8283 $RM conftest* 8284 8285fi 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8287$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8288 8289if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8290 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8291else 8292 : 8293fi 8294 8295fi 8296 8297 8298 8299 8300 8301 8302 lt_prog_compiler_wl= 8303lt_prog_compiler_pic= 8304lt_prog_compiler_static= 8305 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8307$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8308 8309 if test "$GCC" = yes; then 8310 lt_prog_compiler_wl='-Wl,' 8311 lt_prog_compiler_static='-static' 8312 8313 case $host_os in 8314 aix*) 8315 # All AIX code is PIC. 8316 if test "$host_cpu" = ia64; then 8317 # AIX 5 now supports IA64 processor 8318 lt_prog_compiler_static='-Bstatic' 8319 fi 8320 lt_prog_compiler_pic='-fPIC' 8321 ;; 8322 8323 amigaos*) 8324 case $host_cpu in 8325 powerpc) 8326 # see comment about AmigaOS4 .so support 8327 lt_prog_compiler_pic='-fPIC' 8328 ;; 8329 m68k) 8330 # FIXME: we need at least 68020 code to build shared libraries, but 8331 # adding the `-m68020' flag to GCC prevents building anything better, 8332 # like `-m68040'. 8333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8334 ;; 8335 esac 8336 ;; 8337 8338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8339 # PIC is the default for these OSes. 8340 ;; 8341 8342 mingw* | cygwin* | pw32* | os2* | cegcc*) 8343 # This hack is so that the source file can tell whether it is being 8344 # built for inclusion in a dll (and should export symbols for example). 8345 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8346 # (--disable-auto-import) libraries 8347 lt_prog_compiler_pic='-DDLL_EXPORT' 8348 ;; 8349 8350 darwin* | rhapsody*) 8351 # PIC is the default on this platform 8352 # Common symbols not allowed in MH_DYLIB files 8353 lt_prog_compiler_pic='-fno-common' 8354 ;; 8355 8356 haiku*) 8357 # PIC is the default for Haiku. 8358 # The "-static" flag exists, but is broken. 8359 lt_prog_compiler_static= 8360 ;; 8361 8362 hpux*) 8363 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8364 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8365 # sets the default TLS model and affects inlining. 8366 case $host_cpu in 8367 hppa*64*) 8368 # +Z the default 8369 ;; 8370 *) 8371 lt_prog_compiler_pic='-fPIC' 8372 ;; 8373 esac 8374 ;; 8375 8376 interix[3-9]*) 8377 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8378 # Instead, we relocate shared libraries at runtime. 8379 ;; 8380 8381 msdosdjgpp*) 8382 # Just because we use GCC doesn't mean we suddenly get shared libraries 8383 # on systems that don't support them. 8384 lt_prog_compiler_can_build_shared=no 8385 enable_shared=no 8386 ;; 8387 8388 *nto* | *qnx*) 8389 # QNX uses GNU C++, but need to define -shared option too, otherwise 8390 # it will coredump. 8391 lt_prog_compiler_pic='-fPIC -shared' 8392 ;; 8393 8394 sysv4*MP*) 8395 if test -d /usr/nec; then 8396 lt_prog_compiler_pic=-Kconform_pic 8397 fi 8398 ;; 8399 8400 *) 8401 lt_prog_compiler_pic='-fPIC' 8402 ;; 8403 esac 8404 8405 case $cc_basename in 8406 nvcc*) # Cuda Compiler Driver 2.2 8407 lt_prog_compiler_wl='-Xlinker ' 8408 lt_prog_compiler_pic='-Xcompiler -fPIC' 8409 ;; 8410 esac 8411 else 8412 # PORTME Check for flag to pass linker flags through the system compiler. 8413 case $host_os in 8414 aix*) 8415 lt_prog_compiler_wl='-Wl,' 8416 if test "$host_cpu" = ia64; then 8417 # AIX 5 now supports IA64 processor 8418 lt_prog_compiler_static='-Bstatic' 8419 else 8420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8421 fi 8422 ;; 8423 8424 mingw* | cygwin* | pw32* | os2* | cegcc*) 8425 # This hack is so that the source file can tell whether it is being 8426 # built for inclusion in a dll (and should export symbols for example). 8427 lt_prog_compiler_pic='-DDLL_EXPORT' 8428 ;; 8429 8430 hpux9* | hpux10* | hpux11*) 8431 lt_prog_compiler_wl='-Wl,' 8432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8433 # not for PA HP-UX. 8434 case $host_cpu in 8435 hppa*64*|ia64*) 8436 # +Z the default 8437 ;; 8438 *) 8439 lt_prog_compiler_pic='+Z' 8440 ;; 8441 esac 8442 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8443 lt_prog_compiler_static='${wl}-a ${wl}archive' 8444 ;; 8445 8446 irix5* | irix6* | nonstopux*) 8447 lt_prog_compiler_wl='-Wl,' 8448 # PIC (with -KPIC) is the default. 8449 lt_prog_compiler_static='-non_shared' 8450 ;; 8451 8452 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8453 case $cc_basename in 8454 # old Intel for x86_64 which still supported -KPIC. 8455 ecc*) 8456 lt_prog_compiler_wl='-Wl,' 8457 lt_prog_compiler_pic='-KPIC' 8458 lt_prog_compiler_static='-static' 8459 ;; 8460 # icc used to be incompatible with GCC. 8461 # ICC 10 doesn't accept -KPIC any more. 8462 icc* | ifort*) 8463 lt_prog_compiler_wl='-Wl,' 8464 lt_prog_compiler_pic='-fPIC' 8465 lt_prog_compiler_static='-static' 8466 ;; 8467 # Lahey Fortran 8.1. 8468 lf95*) 8469 lt_prog_compiler_wl='-Wl,' 8470 lt_prog_compiler_pic='--shared' 8471 lt_prog_compiler_static='--static' 8472 ;; 8473 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8474 # Portland Group compilers (*not* the Pentium gcc compiler, 8475 # which looks to be a dead project) 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_pic='-fpic' 8478 lt_prog_compiler_static='-Bstatic' 8479 ;; 8480 ccc*) 8481 lt_prog_compiler_wl='-Wl,' 8482 # All Alpha code is PIC. 8483 lt_prog_compiler_static='-non_shared' 8484 ;; 8485 xl* | bgxl* | bgf* | mpixl*) 8486 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8487 lt_prog_compiler_wl='-Wl,' 8488 lt_prog_compiler_pic='-qpic' 8489 lt_prog_compiler_static='-qstaticlink' 8490 ;; 8491 *) 8492 case `$CC -V 2>&1 | sed 5q` in 8493 *Sun\ F* | *Sun*Fortran*) 8494 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8495 lt_prog_compiler_pic='-KPIC' 8496 lt_prog_compiler_static='-Bstatic' 8497 lt_prog_compiler_wl='' 8498 ;; 8499 *Sun\ C*) 8500 # Sun C 5.9 8501 lt_prog_compiler_pic='-KPIC' 8502 lt_prog_compiler_static='-Bstatic' 8503 lt_prog_compiler_wl='-Wl,' 8504 ;; 8505 esac 8506 ;; 8507 esac 8508 ;; 8509 8510 newsos6) 8511 lt_prog_compiler_pic='-KPIC' 8512 lt_prog_compiler_static='-Bstatic' 8513 ;; 8514 8515 *nto* | *qnx*) 8516 # QNX uses GNU C++, but need to define -shared option too, otherwise 8517 # it will coredump. 8518 lt_prog_compiler_pic='-fPIC -shared' 8519 ;; 8520 8521 osf3* | osf4* | osf5*) 8522 lt_prog_compiler_wl='-Wl,' 8523 # All OSF/1 code is PIC. 8524 lt_prog_compiler_static='-non_shared' 8525 ;; 8526 8527 rdos*) 8528 lt_prog_compiler_static='-non_shared' 8529 ;; 8530 8531 solaris*) 8532 lt_prog_compiler_pic='-KPIC' 8533 lt_prog_compiler_static='-Bstatic' 8534 case $cc_basename in 8535 f77* | f90* | f95*) 8536 lt_prog_compiler_wl='-Qoption ld ';; 8537 *) 8538 lt_prog_compiler_wl='-Wl,';; 8539 esac 8540 ;; 8541 8542 sunos4*) 8543 lt_prog_compiler_wl='-Qoption ld ' 8544 lt_prog_compiler_pic='-PIC' 8545 lt_prog_compiler_static='-Bstatic' 8546 ;; 8547 8548 sysv4 | sysv4.2uw2* | sysv4.3*) 8549 lt_prog_compiler_wl='-Wl,' 8550 lt_prog_compiler_pic='-KPIC' 8551 lt_prog_compiler_static='-Bstatic' 8552 ;; 8553 8554 sysv4*MP*) 8555 if test -d /usr/nec ;then 8556 lt_prog_compiler_pic='-Kconform_pic' 8557 lt_prog_compiler_static='-Bstatic' 8558 fi 8559 ;; 8560 8561 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8562 lt_prog_compiler_wl='-Wl,' 8563 lt_prog_compiler_pic='-KPIC' 8564 lt_prog_compiler_static='-Bstatic' 8565 ;; 8566 8567 unicos*) 8568 lt_prog_compiler_wl='-Wl,' 8569 lt_prog_compiler_can_build_shared=no 8570 ;; 8571 8572 uts4*) 8573 lt_prog_compiler_pic='-pic' 8574 lt_prog_compiler_static='-Bstatic' 8575 ;; 8576 8577 *) 8578 lt_prog_compiler_can_build_shared=no 8579 ;; 8580 esac 8581 fi 8582 8583case $host_os in 8584 # For platforms which do not support PIC, -DPIC is meaningless: 8585 *djgpp*) 8586 lt_prog_compiler_pic= 8587 ;; 8588 *) 8589 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8590 ;; 8591esac 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8593$as_echo "$lt_prog_compiler_pic" >&6; } 8594 8595 8596 8597 8598 8599 8600# 8601# Check to make sure the PIC flag actually works. 8602# 8603if test -n "$lt_prog_compiler_pic"; then 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8605$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8606if ${lt_cv_prog_compiler_pic_works+:} false; then : 8607 $as_echo_n "(cached) " >&6 8608else 8609 lt_cv_prog_compiler_pic_works=no 8610 ac_outfile=conftest.$ac_objext 8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8612 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8613 # Insert the option either (1) after the last *FLAGS variable, or 8614 # (2) before a word containing "conftest.", or (3) at the end. 8615 # Note that $ac_compile itself does not contain backslashes and begins 8616 # with a dollar sign (not a hyphen), so the echo should work correctly. 8617 # The option is referenced via a variable to avoid confusing sed. 8618 lt_compile=`echo "$ac_compile" | $SED \ 8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8621 -e 's:$: $lt_compiler_flag:'` 8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8623 (eval "$lt_compile" 2>conftest.err) 8624 ac_status=$? 8625 cat conftest.err >&5 8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8627 if (exit $ac_status) && test -s "$ac_outfile"; then 8628 # The compiler can only warn and ignore the option if not recognized 8629 # So say no if there are warnings other than the usual output. 8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8633 lt_cv_prog_compiler_pic_works=yes 8634 fi 8635 fi 8636 $RM conftest* 8637 8638fi 8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8640$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8641 8642if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8643 case $lt_prog_compiler_pic in 8644 "" | " "*) ;; 8645 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8646 esac 8647else 8648 lt_prog_compiler_pic= 8649 lt_prog_compiler_can_build_shared=no 8650fi 8651 8652fi 8653 8654 8655 8656 8657 8658 8659# 8660# Check to make sure the static flag actually works. 8661# 8662wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8664$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8665if ${lt_cv_prog_compiler_static_works+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 lt_cv_prog_compiler_static_works=no 8669 save_LDFLAGS="$LDFLAGS" 8670 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8671 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8673 # The linker can only warn and ignore the option if not recognized 8674 # So say no if there are warnings 8675 if test -s conftest.err; then 8676 # Append any errors to the config.log. 8677 cat conftest.err 1>&5 8678 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8680 if diff conftest.exp conftest.er2 >/dev/null; then 8681 lt_cv_prog_compiler_static_works=yes 8682 fi 8683 else 8684 lt_cv_prog_compiler_static_works=yes 8685 fi 8686 fi 8687 $RM -r conftest* 8688 LDFLAGS="$save_LDFLAGS" 8689 8690fi 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8692$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8693 8694if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8695 : 8696else 8697 lt_prog_compiler_static= 8698fi 8699 8700 8701 8702 8703 8704 8705 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8707$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8708if ${lt_cv_prog_compiler_c_o+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 lt_cv_prog_compiler_c_o=no 8712 $RM -r conftest 2>/dev/null 8713 mkdir conftest 8714 cd conftest 8715 mkdir out 8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8717 8718 lt_compiler_flag="-o out/conftest2.$ac_objext" 8719 # Insert the option either (1) after the last *FLAGS variable, or 8720 # (2) before a word containing "conftest.", or (3) at the end. 8721 # Note that $ac_compile itself does not contain backslashes and begins 8722 # with a dollar sign (not a hyphen), so the echo should work correctly. 8723 lt_compile=`echo "$ac_compile" | $SED \ 8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8726 -e 's:$: $lt_compiler_flag:'` 8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8728 (eval "$lt_compile" 2>out/conftest.err) 8729 ac_status=$? 8730 cat out/conftest.err >&5 8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8732 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8733 then 8734 # The compiler can only warn and ignore the option if not recognized 8735 # So say no if there are warnings 8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8739 lt_cv_prog_compiler_c_o=yes 8740 fi 8741 fi 8742 chmod u+w . 2>&5 8743 $RM conftest* 8744 # SGI C++ compiler will create directory out/ii_files/ for 8745 # template instantiation 8746 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8747 $RM out/* && rmdir out 8748 cd .. 8749 $RM -r conftest 8750 $RM conftest* 8751 8752fi 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8754$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8755 8756 8757 8758 8759 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8762$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8763if ${lt_cv_prog_compiler_c_o+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 lt_cv_prog_compiler_c_o=no 8767 $RM -r conftest 2>/dev/null 8768 mkdir conftest 8769 cd conftest 8770 mkdir out 8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8772 8773 lt_compiler_flag="-o out/conftest2.$ac_objext" 8774 # Insert the option either (1) after the last *FLAGS variable, or 8775 # (2) before a word containing "conftest.", or (3) at the end. 8776 # Note that $ac_compile itself does not contain backslashes and begins 8777 # with a dollar sign (not a hyphen), so the echo should work correctly. 8778 lt_compile=`echo "$ac_compile" | $SED \ 8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8781 -e 's:$: $lt_compiler_flag:'` 8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8783 (eval "$lt_compile" 2>out/conftest.err) 8784 ac_status=$? 8785 cat out/conftest.err >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8788 then 8789 # The compiler can only warn and ignore the option if not recognized 8790 # So say no if there are warnings 8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8794 lt_cv_prog_compiler_c_o=yes 8795 fi 8796 fi 8797 chmod u+w . 2>&5 8798 $RM conftest* 8799 # SGI C++ compiler will create directory out/ii_files/ for 8800 # template instantiation 8801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8802 $RM out/* && rmdir out 8803 cd .. 8804 $RM -r conftest 8805 $RM conftest* 8806 8807fi 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8809$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8810 8811 8812 8813 8814hard_links="nottested" 8815if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8816 # do not overwrite the value of need_locks provided by the user 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8818$as_echo_n "checking if we can lock with hard links... " >&6; } 8819 hard_links=yes 8820 $RM conftest* 8821 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8822 touch conftest.a 8823 ln conftest.a conftest.b 2>&5 || hard_links=no 8824 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8826$as_echo "$hard_links" >&6; } 8827 if test "$hard_links" = no; then 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8829$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8830 need_locks=warn 8831 fi 8832else 8833 need_locks=no 8834fi 8835 8836 8837 8838 8839 8840 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8842$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8843 8844 runpath_var= 8845 allow_undefined_flag= 8846 always_export_symbols=no 8847 archive_cmds= 8848 archive_expsym_cmds= 8849 compiler_needs_object=no 8850 enable_shared_with_static_runtimes=no 8851 export_dynamic_flag_spec= 8852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8853 hardcode_automatic=no 8854 hardcode_direct=no 8855 hardcode_direct_absolute=no 8856 hardcode_libdir_flag_spec= 8857 hardcode_libdir_flag_spec_ld= 8858 hardcode_libdir_separator= 8859 hardcode_minus_L=no 8860 hardcode_shlibpath_var=unsupported 8861 inherit_rpath=no 8862 link_all_deplibs=unknown 8863 module_cmds= 8864 module_expsym_cmds= 8865 old_archive_from_new_cmds= 8866 old_archive_from_expsyms_cmds= 8867 thread_safe_flag_spec= 8868 whole_archive_flag_spec= 8869 # include_expsyms should be a list of space-separated symbols to be *always* 8870 # included in the symbol list 8871 include_expsyms= 8872 # exclude_expsyms can be an extended regexp of symbols to exclude 8873 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8875 # as well as any symbol that contains `d'. 8876 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8878 # platforms (ab)use it in PIC code, but their linkers get confused if 8879 # the symbol is explicitly referenced. Since portable code cannot 8880 # rely on this symbol name, it's probably fine to never include it in 8881 # preloaded symbol tables. 8882 # Exclude shared library initialization/finalization symbols. 8883 extract_expsyms_cmds= 8884 8885 case $host_os in 8886 cygwin* | mingw* | pw32* | cegcc*) 8887 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8888 # When not using gcc, we currently assume that we are using 8889 # Microsoft Visual C++. 8890 if test "$GCC" != yes; then 8891 with_gnu_ld=no 8892 fi 8893 ;; 8894 interix*) 8895 # we just hope/assume this is gcc and not c89 (= MSVC++) 8896 with_gnu_ld=yes 8897 ;; 8898 openbsd*) 8899 with_gnu_ld=no 8900 ;; 8901 esac 8902 8903 ld_shlibs=yes 8904 8905 # On some targets, GNU ld is compatible enough with the native linker 8906 # that we're better off using the native interface for both. 8907 lt_use_gnu_ld_interface=no 8908 if test "$with_gnu_ld" = yes; then 8909 case $host_os in 8910 aix*) 8911 # The AIX port of GNU ld has always aspired to compatibility 8912 # with the native linker. However, as the warning in the GNU ld 8913 # block says, versions before 2.19.5* couldn't really create working 8914 # shared libraries, regardless of the interface used. 8915 case `$LD -v 2>&1` in 8916 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8917 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8918 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8919 *) 8920 lt_use_gnu_ld_interface=yes 8921 ;; 8922 esac 8923 ;; 8924 *) 8925 lt_use_gnu_ld_interface=yes 8926 ;; 8927 esac 8928 fi 8929 8930 if test "$lt_use_gnu_ld_interface" = yes; then 8931 # If archive_cmds runs LD, not CC, wlarc should be empty 8932 wlarc='${wl}' 8933 8934 # Set some defaults for GNU ld with shared library support. These 8935 # are reset later if shared libraries are not supported. Putting them 8936 # here allows them to be overridden if necessary. 8937 runpath_var=LD_RUN_PATH 8938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8939 export_dynamic_flag_spec='${wl}--export-dynamic' 8940 # ancient GNU ld didn't support --whole-archive et. al. 8941 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8942 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8943 else 8944 whole_archive_flag_spec= 8945 fi 8946 supports_anon_versioning=no 8947 case `$LD -v 2>&1` in 8948 *GNU\ gold*) supports_anon_versioning=yes ;; 8949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8952 *\ 2.11.*) ;; # other 2.11 versions 8953 *) supports_anon_versioning=yes ;; 8954 esac 8955 8956 # See if GNU ld supports shared libraries. 8957 case $host_os in 8958 aix[3-9]*) 8959 # On AIX/PPC, the GNU linker is very broken 8960 if test "$host_cpu" != ia64; then 8961 ld_shlibs=no 8962 cat <<_LT_EOF 1>&2 8963 8964*** Warning: the GNU linker, at least up to release 2.19, is reported 8965*** to be unable to reliably create shared libraries on AIX. 8966*** Therefore, libtool is disabling shared libraries support. If you 8967*** really care for shared libraries, you may want to install binutils 8968*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8969*** You will then need to restart the configuration process. 8970 8971_LT_EOF 8972 fi 8973 ;; 8974 8975 amigaos*) 8976 case $host_cpu in 8977 powerpc) 8978 # see comment about AmigaOS4 .so support 8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8980 archive_expsym_cmds='' 8981 ;; 8982 m68k) 8983 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)' 8984 hardcode_libdir_flag_spec='-L$libdir' 8985 hardcode_minus_L=yes 8986 ;; 8987 esac 8988 ;; 8989 8990 beos*) 8991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8992 allow_undefined_flag=unsupported 8993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8994 # support --undefined. This deserves some investigation. FIXME 8995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8996 else 8997 ld_shlibs=no 8998 fi 8999 ;; 9000 9001 cygwin* | mingw* | pw32* | cegcc*) 9002 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9003 # as there is no search path for DLLs. 9004 hardcode_libdir_flag_spec='-L$libdir' 9005 export_dynamic_flag_spec='${wl}--export-all-symbols' 9006 allow_undefined_flag=unsupported 9007 always_export_symbols=no 9008 enable_shared_with_static_runtimes=yes 9009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9010 9011 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9013 # If the export-symbols file already is a .def file (1st line 9014 # is EXPORTS), use it as is; otherwise, prepend... 9015 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9016 cp $export_symbols $output_objdir/$soname.def; 9017 else 9018 echo EXPORTS > $output_objdir/$soname.def; 9019 cat $export_symbols >> $output_objdir/$soname.def; 9020 fi~ 9021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9022 else 9023 ld_shlibs=no 9024 fi 9025 ;; 9026 9027 haiku*) 9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9029 link_all_deplibs=yes 9030 ;; 9031 9032 interix[3-9]*) 9033 hardcode_direct=no 9034 hardcode_shlibpath_var=no 9035 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9036 export_dynamic_flag_spec='${wl}-E' 9037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9038 # Instead, shared libraries are loaded at an image base (0x10000000 by 9039 # default) and relocated if they conflict, which is a slow very memory 9040 # consuming and fragmenting process. To avoid this, we pick a random, 9041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9042 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9043 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9044 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' 9045 ;; 9046 9047 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 9048 tmp_diet=no 9049 if test "$host_os" = linux-dietlibc; then 9050 case $cc_basename in 9051 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9052 esac 9053 fi 9054 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9055 && test "$tmp_diet" = no 9056 then 9057 tmp_addflag=' $pic_flag' 9058 tmp_sharedflag='-shared' 9059 case $cc_basename,$host_cpu in 9060 pgcc*) # Portland Group C compiler 9061 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' 9062 tmp_addflag=' $pic_flag' 9063 ;; 9064 pgf77* | pgf90* | pgf95* | pgfortran*) 9065 # Portland Group f77 and f90 compilers 9066 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' 9067 tmp_addflag=' $pic_flag -Mnomain' ;; 9068 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9069 tmp_addflag=' -i_dynamic' ;; 9070 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9071 tmp_addflag=' -i_dynamic -nofor_main' ;; 9072 ifc* | ifort*) # Intel Fortran compiler 9073 tmp_addflag=' -nofor_main' ;; 9074 lf95*) # Lahey Fortran 8.1 9075 whole_archive_flag_spec= 9076 tmp_sharedflag='--shared' ;; 9077 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9078 tmp_sharedflag='-qmkshrobj' 9079 tmp_addflag= ;; 9080 nvcc*) # Cuda Compiler Driver 2.2 9081 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' 9082 compiler_needs_object=yes 9083 ;; 9084 esac 9085 case `$CC -V 2>&1 | sed 5q` in 9086 *Sun\ C*) # Sun C 5.9 9087 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' 9088 compiler_needs_object=yes 9089 tmp_sharedflag='-G' ;; 9090 *Sun\ F*) # Sun Fortran 8.3 9091 tmp_sharedflag='-G' ;; 9092 esac 9093 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9094 9095 if test "x$supports_anon_versioning" = xyes; then 9096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9098 echo "local: *; };" >> $output_objdir/$libname.ver~ 9099 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9100 fi 9101 9102 case $cc_basename in 9103 xlf* | bgf* | bgxlf* | mpixlf*) 9104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9105 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9106 hardcode_libdir_flag_spec= 9107 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9108 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9109 if test "x$supports_anon_versioning" = xyes; then 9110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9112 echo "local: *; };" >> $output_objdir/$libname.ver~ 9113 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9114 fi 9115 ;; 9116 esac 9117 else 9118 ld_shlibs=no 9119 fi 9120 ;; 9121 9122 netbsd*) 9123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9124 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9125 wlarc= 9126 else 9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9129 fi 9130 ;; 9131 9132 solaris*) 9133 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9134 ld_shlibs=no 9135 cat <<_LT_EOF 1>&2 9136 9137*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9138*** create shared libraries on Solaris systems. Therefore, libtool 9139*** is disabling shared libraries support. We urge you to upgrade GNU 9140*** binutils to release 2.9.1 or newer. Another option is to modify 9141*** your PATH or compiler configuration so that the native linker is 9142*** used, and then restart. 9143 9144_LT_EOF 9145 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9148 else 9149 ld_shlibs=no 9150 fi 9151 ;; 9152 9153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9154 case `$LD -v 2>&1` in 9155 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9156 ld_shlibs=no 9157 cat <<_LT_EOF 1>&2 9158 9159*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9160*** reliably create shared libraries on SCO systems. Therefore, libtool 9161*** is disabling shared libraries support. We urge you to upgrade GNU 9162*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9163*** your PATH or compiler configuration so that the native linker is 9164*** used, and then restart. 9165 9166_LT_EOF 9167 ;; 9168 *) 9169 # For security reasons, it is highly recommended that you always 9170 # use absolute paths for naming shared libraries, and exclude the 9171 # DT_RUNPATH tag from executables and libraries. But doing so 9172 # requires that you compile everything twice, which is a pain. 9173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9177 else 9178 ld_shlibs=no 9179 fi 9180 ;; 9181 esac 9182 ;; 9183 9184 sunos4*) 9185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9186 wlarc= 9187 hardcode_direct=yes 9188 hardcode_shlibpath_var=no 9189 ;; 9190 9191 *) 9192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9195 else 9196 ld_shlibs=no 9197 fi 9198 ;; 9199 esac 9200 9201 if test "$ld_shlibs" = no; then 9202 runpath_var= 9203 hardcode_libdir_flag_spec= 9204 export_dynamic_flag_spec= 9205 whole_archive_flag_spec= 9206 fi 9207 else 9208 # PORTME fill in a description of your system's linker (not GNU ld) 9209 case $host_os in 9210 aix3*) 9211 allow_undefined_flag=unsupported 9212 always_export_symbols=yes 9213 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' 9214 # Note: this linker hardcodes the directories in LIBPATH if there 9215 # are no directories specified by -L. 9216 hardcode_minus_L=yes 9217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9218 # Neither direct hardcoding nor static linking is supported with a 9219 # broken collect2. 9220 hardcode_direct=unsupported 9221 fi 9222 ;; 9223 9224 aix[4-9]*) 9225 if test "$host_cpu" = ia64; then 9226 # On IA64, the linker does run time linking by default, so we don't 9227 # have to do anything special. 9228 aix_use_runtimelinking=no 9229 exp_sym_flag='-Bexport' 9230 no_entry_flag="" 9231 else 9232 # If we're using GNU nm, then we don't want the "-C" option. 9233 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9234 # Also, AIX nm treats weak defined symbols like other global 9235 # defined symbols, whereas GNU nm marks them as "W". 9236 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9237 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' 9238 else 9239 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9240 fi 9241 aix_use_runtimelinking=no 9242 9243 # Test if we are trying to use run time linking or normal 9244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9245 # need to do runtime linking. 9246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9247 for ld_flag in $LDFLAGS; do 9248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9249 aix_use_runtimelinking=yes 9250 break 9251 fi 9252 done 9253 ;; 9254 esac 9255 9256 exp_sym_flag='-bexport' 9257 no_entry_flag='-bnoentry' 9258 fi 9259 9260 # When large executables or shared objects are built, AIX ld can 9261 # have problems creating the table of contents. If linking a library 9262 # or program results in "error TOC overflow" add -mminimal-toc to 9263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9265 9266 archive_cmds='' 9267 hardcode_direct=yes 9268 hardcode_direct_absolute=yes 9269 hardcode_libdir_separator=':' 9270 link_all_deplibs=yes 9271 file_list_spec='${wl}-f,' 9272 9273 if test "$GCC" = yes; then 9274 case $host_os in aix4.[012]|aix4.[012].*) 9275 # We only want to do this on AIX 4.2 and lower, the check 9276 # below for broken collect2 doesn't work under 4.3+ 9277 collect2name=`${CC} -print-prog-name=collect2` 9278 if test -f "$collect2name" && 9279 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9280 then 9281 # We have reworked collect2 9282 : 9283 else 9284 # We have old collect2 9285 hardcode_direct=unsupported 9286 # It fails to find uninstalled libraries when the uninstalled 9287 # path is not listed in the libpath. Setting hardcode_minus_L 9288 # to unsupported forces relinking 9289 hardcode_minus_L=yes 9290 hardcode_libdir_flag_spec='-L$libdir' 9291 hardcode_libdir_separator= 9292 fi 9293 ;; 9294 esac 9295 shared_flag='-shared' 9296 if test "$aix_use_runtimelinking" = yes; then 9297 shared_flag="$shared_flag "'${wl}-G' 9298 fi 9299 else 9300 # not using gcc 9301 if test "$host_cpu" = ia64; then 9302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9303 # chokes on -Wl,-G. The following line is correct: 9304 shared_flag='-G' 9305 else 9306 if test "$aix_use_runtimelinking" = yes; then 9307 shared_flag='${wl}-G' 9308 else 9309 shared_flag='${wl}-bM:SRE' 9310 fi 9311 fi 9312 fi 9313 9314 export_dynamic_flag_spec='${wl}-bexpall' 9315 # It seems that -bexpall does not export symbols beginning with 9316 # underscore (_), so it is better to generate a list of symbols to export. 9317 always_export_symbols=yes 9318 if test "$aix_use_runtimelinking" = yes; then 9319 # Warning - without using the other runtime loading flags (-brtl), 9320 # -berok will link without error, but may produce a broken library. 9321 allow_undefined_flag='-berok' 9322 # Determine the default libpath from the value encoded in an 9323 # empty executable. 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325/* end confdefs.h. */ 9326 9327int 9328main () 9329{ 9330 9331 ; 9332 return 0; 9333} 9334_ACEOF 9335if ac_fn_c_try_link "$LINENO"; then : 9336 9337lt_aix_libpath_sed=' 9338 /Import File Strings/,/^$/ { 9339 /^0/ { 9340 s/^0 *\(.*\)$/\1/ 9341 p 9342 } 9343 }' 9344aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9345# Check for a 64-bit object if we didn't find anything. 9346if test -z "$aix_libpath"; then 9347 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9348fi 9349fi 9350rm -f core conftest.err conftest.$ac_objext \ 9351 conftest$ac_exeext conftest.$ac_ext 9352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9353 9354 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9355 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" 9356 else 9357 if test "$host_cpu" = ia64; then 9358 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9359 allow_undefined_flag="-z nodefs" 9360 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" 9361 else 9362 # Determine the default libpath from the value encoded in an 9363 # empty executable. 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9365/* end confdefs.h. */ 9366 9367int 9368main () 9369{ 9370 9371 ; 9372 return 0; 9373} 9374_ACEOF 9375if ac_fn_c_try_link "$LINENO"; then : 9376 9377lt_aix_libpath_sed=' 9378 /Import File Strings/,/^$/ { 9379 /^0/ { 9380 s/^0 *\(.*\)$/\1/ 9381 p 9382 } 9383 }' 9384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9385# Check for a 64-bit object if we didn't find anything. 9386if test -z "$aix_libpath"; then 9387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9388fi 9389fi 9390rm -f core conftest.err conftest.$ac_objext \ 9391 conftest$ac_exeext conftest.$ac_ext 9392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9393 9394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9395 # Warning - without using the other run time loading flags, 9396 # -berok will link without error, but may produce a broken library. 9397 no_undefined_flag=' ${wl}-bernotok' 9398 allow_undefined_flag=' ${wl}-berok' 9399 if test "$with_gnu_ld" = yes; then 9400 # We only use this code for GNU lds that support --whole-archive. 9401 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9402 else 9403 # Exported symbols can be pulled into shared objects from archives 9404 whole_archive_flag_spec='$convenience' 9405 fi 9406 archive_cmds_need_lc=yes 9407 # This is similar to how AIX traditionally builds its shared libraries. 9408 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' 9409 fi 9410 fi 9411 ;; 9412 9413 amigaos*) 9414 case $host_cpu in 9415 powerpc) 9416 # see comment about AmigaOS4 .so support 9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9418 archive_expsym_cmds='' 9419 ;; 9420 m68k) 9421 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)' 9422 hardcode_libdir_flag_spec='-L$libdir' 9423 hardcode_minus_L=yes 9424 ;; 9425 esac 9426 ;; 9427 9428 bsdi[45]*) 9429 export_dynamic_flag_spec=-rdynamic 9430 ;; 9431 9432 cygwin* | mingw* | pw32* | cegcc*) 9433 # When not using gcc, we currently assume that we are using 9434 # Microsoft Visual C++. 9435 # hardcode_libdir_flag_spec is actually meaningless, as there is 9436 # no search path for DLLs. 9437 hardcode_libdir_flag_spec=' ' 9438 allow_undefined_flag=unsupported 9439 # Tell ltmain to make .lib files, not .a files. 9440 libext=lib 9441 # Tell ltmain to make .dll files, not .so files. 9442 shrext_cmds=".dll" 9443 # FIXME: Setting linknames here is a bad hack. 9444 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9445 # The linker will automatically build a .lib file if we build a DLL. 9446 old_archive_from_new_cmds='true' 9447 # FIXME: Should let the user specify the lib program. 9448 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9449 fix_srcfile_path='`cygpath -w "$srcfile"`' 9450 enable_shared_with_static_runtimes=yes 9451 ;; 9452 9453 darwin* | rhapsody*) 9454 9455 9456 archive_cmds_need_lc=no 9457 hardcode_direct=no 9458 hardcode_automatic=yes 9459 hardcode_shlibpath_var=unsupported 9460 if test "$lt_cv_ld_force_load" = "yes"; then 9461 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\"`' 9462 else 9463 whole_archive_flag_spec='' 9464 fi 9465 link_all_deplibs=yes 9466 allow_undefined_flag="$_lt_dar_allow_undefined" 9467 case $cc_basename in 9468 ifort*) _lt_dar_can_shared=yes ;; 9469 *) _lt_dar_can_shared=$GCC ;; 9470 esac 9471 if test "$_lt_dar_can_shared" = "yes"; then 9472 output_verbose_link_cmd=func_echo_all 9473 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9474 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9475 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}" 9476 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}" 9477 9478 else 9479 ld_shlibs=no 9480 fi 9481 9482 ;; 9483 9484 dgux*) 9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9486 hardcode_libdir_flag_spec='-L$libdir' 9487 hardcode_shlibpath_var=no 9488 ;; 9489 9490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9491 # support. Future versions do this automatically, but an explicit c++rt0.o 9492 # does not break anything, and helps significantly (at the cost of a little 9493 # extra space). 9494 freebsd2.2*) 9495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9496 hardcode_libdir_flag_spec='-R$libdir' 9497 hardcode_direct=yes 9498 hardcode_shlibpath_var=no 9499 ;; 9500 9501 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9502 freebsd2.*) 9503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9504 hardcode_direct=yes 9505 hardcode_minus_L=yes 9506 hardcode_shlibpath_var=no 9507 ;; 9508 9509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9510 freebsd* | dragonfly* | openbsd* | bitrig*) 9511 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9512 hardcode_libdir_flag_spec='-R$libdir' 9513 hardcode_direct=yes 9514 hardcode_shlibpath_var=no 9515 ;; 9516 9517 hpux9*) 9518 if test "$GCC" = yes; then 9519 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9520 else 9521 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' 9522 fi 9523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9524 hardcode_libdir_separator=: 9525 hardcode_direct=yes 9526 9527 # hardcode_minus_L: Not really in the search PATH, 9528 # but as the default location of the library. 9529 hardcode_minus_L=yes 9530 export_dynamic_flag_spec='${wl}-E' 9531 ;; 9532 9533 hpux10*) 9534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9536 else 9537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9538 fi 9539 if test "$with_gnu_ld" = no; then 9540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9541 hardcode_libdir_flag_spec_ld='+b $libdir' 9542 hardcode_libdir_separator=: 9543 hardcode_direct=yes 9544 hardcode_direct_absolute=yes 9545 export_dynamic_flag_spec='${wl}-E' 9546 # hardcode_minus_L: Not really in the search PATH, 9547 # but as the default location of the library. 9548 hardcode_minus_L=yes 9549 fi 9550 ;; 9551 9552 hpux11*) 9553 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9554 case $host_cpu in 9555 hppa*64*) 9556 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9557 ;; 9558 ia64*) 9559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9560 ;; 9561 *) 9562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9563 ;; 9564 esac 9565 else 9566 case $host_cpu in 9567 hppa*64*) 9568 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9569 ;; 9570 ia64*) 9571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9572 ;; 9573 *) 9574 9575 # Older versions of the 11.00 compiler do not understand -b yet 9576 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9578$as_echo_n "checking if $CC understands -b... " >&6; } 9579if ${lt_cv_prog_compiler__b+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581else 9582 lt_cv_prog_compiler__b=no 9583 save_LDFLAGS="$LDFLAGS" 9584 LDFLAGS="$LDFLAGS -b" 9585 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9587 # The linker can only warn and ignore the option if not recognized 9588 # So say no if there are warnings 9589 if test -s conftest.err; then 9590 # Append any errors to the config.log. 9591 cat conftest.err 1>&5 9592 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9594 if diff conftest.exp conftest.er2 >/dev/null; then 9595 lt_cv_prog_compiler__b=yes 9596 fi 9597 else 9598 lt_cv_prog_compiler__b=yes 9599 fi 9600 fi 9601 $RM -r conftest* 9602 LDFLAGS="$save_LDFLAGS" 9603 9604fi 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9606$as_echo "$lt_cv_prog_compiler__b" >&6; } 9607 9608if test x"$lt_cv_prog_compiler__b" = xyes; then 9609 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9610else 9611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9612fi 9613 9614 ;; 9615 esac 9616 fi 9617 if test "$with_gnu_ld" = no; then 9618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9619 hardcode_libdir_separator=: 9620 9621 case $host_cpu in 9622 hppa*64*|ia64*) 9623 hardcode_direct=no 9624 hardcode_shlibpath_var=no 9625 ;; 9626 *) 9627 hardcode_direct=yes 9628 hardcode_direct_absolute=yes 9629 export_dynamic_flag_spec='${wl}-E' 9630 9631 # hardcode_minus_L: Not really in the search PATH, 9632 # but as the default location of the library. 9633 hardcode_minus_L=yes 9634 ;; 9635 esac 9636 fi 9637 ;; 9638 9639 irix5* | irix6* | nonstopux*) 9640 if test "$GCC" = yes; then 9641 archive_cmds='$CC -shared $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' 9642 # Try to use the -exported_symbol ld option, if it does not 9643 # work, assume that -exports_file does not work either and 9644 # implicitly export all symbols. 9645 save_LDFLAGS="$LDFLAGS" 9646 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int foo(void) {} 9650_ACEOF 9651if ac_fn_c_try_link "$LINENO"; then : 9652 archive_expsym_cmds='$CC -shared $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' 9653 9654fi 9655rm -f core conftest.err conftest.$ac_objext \ 9656 conftest$ac_exeext conftest.$ac_ext 9657 LDFLAGS="$save_LDFLAGS" 9658 else 9659 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' 9660 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' 9661 fi 9662 archive_cmds_need_lc='no' 9663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9664 hardcode_libdir_separator=: 9665 inherit_rpath=yes 9666 link_all_deplibs=yes 9667 ;; 9668 9669 netbsd*) 9670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9672 else 9673 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9674 fi 9675 hardcode_libdir_flag_spec='-R$libdir' 9676 hardcode_direct=yes 9677 hardcode_shlibpath_var=no 9678 ;; 9679 9680 newsos6) 9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9682 hardcode_direct=yes 9683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9684 hardcode_libdir_separator=: 9685 hardcode_shlibpath_var=no 9686 ;; 9687 9688 *nto* | *qnx*) 9689 ;; 9690 9691 openbsd*) 9692 if test -f /usr/libexec/ld.so; then 9693 hardcode_direct=yes 9694 hardcode_shlibpath_var=no 9695 hardcode_direct_absolute=yes 9696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9698 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9700 export_dynamic_flag_spec='${wl}-E' 9701 else 9702 case $host_os in 9703 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9705 hardcode_libdir_flag_spec='-R$libdir' 9706 ;; 9707 *) 9708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9710 ;; 9711 esac 9712 fi 9713 else 9714 ld_shlibs=no 9715 fi 9716 ;; 9717 9718 os2*) 9719 hardcode_libdir_flag_spec='-L$libdir' 9720 hardcode_minus_L=yes 9721 allow_undefined_flag=unsupported 9722 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' 9723 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9724 ;; 9725 9726 osf3*) 9727 if test "$GCC" = yes; then 9728 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9729 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' 9730 else 9731 allow_undefined_flag=' -expect_unresolved \*' 9732 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' 9733 fi 9734 archive_cmds_need_lc='no' 9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9736 hardcode_libdir_separator=: 9737 ;; 9738 9739 osf4* | osf5*) # as osf3* with the addition of -msym flag 9740 if test "$GCC" = yes; then 9741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9742 archive_cmds='$CC -shared${allow_undefined_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' 9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9744 else 9745 allow_undefined_flag=' -expect_unresolved \*' 9746 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' 9747 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~ 9748 $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' 9749 9750 # Both c and cxx compiler support -rpath directly 9751 hardcode_libdir_flag_spec='-rpath $libdir' 9752 fi 9753 archive_cmds_need_lc='no' 9754 hardcode_libdir_separator=: 9755 ;; 9756 9757 solaris*) 9758 no_undefined_flag=' -z defs' 9759 if test "$GCC" = yes; then 9760 wlarc='${wl}' 9761 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9763 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9764 else 9765 case `$CC -V 2>&1` in 9766 *"Compilers 5.0"*) 9767 wlarc='' 9768 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9769 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9771 ;; 9772 *) 9773 wlarc='${wl}' 9774 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9775 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9776 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9777 ;; 9778 esac 9779 fi 9780 hardcode_libdir_flag_spec='-R$libdir' 9781 hardcode_shlibpath_var=no 9782 case $host_os in 9783 solaris2.[0-5] | solaris2.[0-5].*) ;; 9784 *) 9785 # The compiler driver will combine and reorder linker options, 9786 # but understands `-z linker_flag'. GCC discards it without `$wl', 9787 # but is careful enough not to reorder. 9788 # Supported since Solaris 2.6 (maybe 2.5.1?) 9789 if test "$GCC" = yes; then 9790 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9791 else 9792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9793 fi 9794 ;; 9795 esac 9796 link_all_deplibs=yes 9797 ;; 9798 9799 sunos4*) 9800 if test "x$host_vendor" = xsequent; then 9801 # Use $CC to link under sequent, because it throws in some extra .o 9802 # files that make .init and .fini sections work. 9803 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9804 else 9805 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9806 fi 9807 hardcode_libdir_flag_spec='-L$libdir' 9808 hardcode_direct=yes 9809 hardcode_minus_L=yes 9810 hardcode_shlibpath_var=no 9811 ;; 9812 9813 sysv4) 9814 case $host_vendor in 9815 sni) 9816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9817 hardcode_direct=yes # is this really true??? 9818 ;; 9819 siemens) 9820 ## LD is ld it makes a PLAMLIB 9821 ## CC just makes a GrossModule. 9822 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9823 reload_cmds='$CC -r -o $output$reload_objs' 9824 hardcode_direct=no 9825 ;; 9826 motorola) 9827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9828 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9829 ;; 9830 esac 9831 runpath_var='LD_RUN_PATH' 9832 hardcode_shlibpath_var=no 9833 ;; 9834 9835 sysv4.3*) 9836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9837 hardcode_shlibpath_var=no 9838 export_dynamic_flag_spec='-Bexport' 9839 ;; 9840 9841 sysv4*MP*) 9842 if test -d /usr/nec; then 9843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9844 hardcode_shlibpath_var=no 9845 runpath_var=LD_RUN_PATH 9846 hardcode_runpath_var=yes 9847 ld_shlibs=yes 9848 fi 9849 ;; 9850 9851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9852 no_undefined_flag='${wl}-z,text' 9853 archive_cmds_need_lc=no 9854 hardcode_shlibpath_var=no 9855 runpath_var='LD_RUN_PATH' 9856 9857 if test "$GCC" = yes; then 9858 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9859 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9860 else 9861 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9862 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9863 fi 9864 ;; 9865 9866 sysv5* | sco3.2v5* | sco5v6*) 9867 # Note: We can NOT use -z defs as we might desire, because we do not 9868 # link with -lc, and that would cause any symbols used from libc to 9869 # always be unresolved, which means just about no library would 9870 # ever link correctly. If we're not using GNU ld we use -z text 9871 # though, which does catch some bad symbols but isn't as heavy-handed 9872 # as -z defs. 9873 no_undefined_flag='${wl}-z,text' 9874 allow_undefined_flag='${wl}-z,nodefs' 9875 archive_cmds_need_lc=no 9876 hardcode_shlibpath_var=no 9877 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9878 hardcode_libdir_separator=':' 9879 link_all_deplibs=yes 9880 export_dynamic_flag_spec='${wl}-Bexport' 9881 runpath_var='LD_RUN_PATH' 9882 9883 if test "$GCC" = yes; then 9884 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9886 else 9887 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9889 fi 9890 ;; 9891 9892 uts4*) 9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9894 hardcode_libdir_flag_spec='-L$libdir' 9895 hardcode_shlibpath_var=no 9896 ;; 9897 9898 *) 9899 ld_shlibs=no 9900 ;; 9901 esac 9902 9903 if test x$host_vendor = xsni; then 9904 case $host in 9905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9906 export_dynamic_flag_spec='${wl}-Blargedynsym' 9907 ;; 9908 esac 9909 fi 9910 fi 9911 9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9913$as_echo "$ld_shlibs" >&6; } 9914test "$ld_shlibs" = no && can_build_shared=no 9915 9916with_gnu_ld=$with_gnu_ld 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932# 9933# Do we need to explicitly link libc? 9934# 9935case "x$archive_cmds_need_lc" in 9936x|xyes) 9937 # Assume -lc should be added 9938 archive_cmds_need_lc=yes 9939 9940 if test "$enable_shared" = yes && test "$GCC" = yes; then 9941 case $archive_cmds in 9942 *'~'*) 9943 # FIXME: we may have to deal with multi-command sequences. 9944 ;; 9945 '$CC '*) 9946 # Test whether the compiler implicitly links with -lc since on some 9947 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9948 # to ld, don't add -lc before -lgcc. 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9950$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9951if ${lt_cv_archive_cmds_need_lc+:} false; then : 9952 $as_echo_n "(cached) " >&6 9953else 9954 $RM conftest* 9955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9956 9957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9958 (eval $ac_compile) 2>&5 9959 ac_status=$? 9960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9961 test $ac_status = 0; } 2>conftest.err; then 9962 soname=conftest 9963 lib=conftest 9964 libobjs=conftest.$ac_objext 9965 deplibs= 9966 wl=$lt_prog_compiler_wl 9967 pic_flag=$lt_prog_compiler_pic 9968 compiler_flags=-v 9969 linker_flags=-v 9970 verstring= 9971 output_objdir=. 9972 libname=conftest 9973 lt_save_allow_undefined_flag=$allow_undefined_flag 9974 allow_undefined_flag= 9975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9976 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9977 ac_status=$? 9978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9979 test $ac_status = 0; } 9980 then 9981 lt_cv_archive_cmds_need_lc=no 9982 else 9983 lt_cv_archive_cmds_need_lc=yes 9984 fi 9985 allow_undefined_flag=$lt_save_allow_undefined_flag 9986 else 9987 cat conftest.err 1>&5 9988 fi 9989 $RM conftest* 9990 9991fi 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9993$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9994 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9995 ;; 9996 esac 9997 fi 9998 ;; 9999esac 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10158$as_echo_n "checking dynamic linker characteristics... " >&6; } 10159 10160if test "$GCC" = yes; then 10161 case $host_os in 10162 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10163 *) lt_awk_arg="/^libraries:/" ;; 10164 esac 10165 case $host_os in 10166 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10167 *) lt_sed_strip_eq="s,=/,/,g" ;; 10168 esac 10169 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10170 case $lt_search_path_spec in 10171 *\;*) 10172 # if the path contains ";" then we assume it to be the separator 10173 # otherwise default to the standard path separator (i.e. ":") - it is 10174 # assumed that no part of a normal pathname contains ";" but that should 10175 # okay in the real world where ";" in dirpaths is itself problematic. 10176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10177 ;; 10178 *) 10179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10180 ;; 10181 esac 10182 # Ok, now we have the path, separated by spaces, we can step through it 10183 # and add multilib dir if necessary. 10184 lt_tmp_lt_search_path_spec= 10185 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10186 for lt_sys_path in $lt_search_path_spec; do 10187 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10188 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10189 else 10190 test -d "$lt_sys_path" && \ 10191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10192 fi 10193 done 10194 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10195BEGIN {RS=" "; FS="/|\n";} { 10196 lt_foo=""; 10197 lt_count=0; 10198 for (lt_i = NF; lt_i > 0; lt_i--) { 10199 if ($lt_i != "" && $lt_i != ".") { 10200 if ($lt_i == "..") { 10201 lt_count++; 10202 } else { 10203 if (lt_count == 0) { 10204 lt_foo="/" $lt_i lt_foo; 10205 } else { 10206 lt_count--; 10207 } 10208 } 10209 } 10210 } 10211 if (lt_foo != "") { lt_freq[lt_foo]++; } 10212 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10213}'` 10214 # AWK program above erroneously prepends '/' to C:/dos/paths 10215 # for these hosts. 10216 case $host_os in 10217 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10218 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10219 esac 10220 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10221else 10222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10223fi 10224library_names_spec= 10225libname_spec='lib$name' 10226soname_spec= 10227shrext_cmds=".so" 10228postinstall_cmds= 10229postuninstall_cmds= 10230finish_cmds= 10231finish_eval= 10232shlibpath_var= 10233shlibpath_overrides_runpath=unknown 10234version_type=none 10235dynamic_linker="$host_os ld.so" 10236sys_lib_dlsearch_path_spec="/lib /usr/lib" 10237need_lib_prefix=unknown 10238hardcode_into_libs=no 10239 10240# when you set need_version to no, make sure it does not cause -set_version 10241# flags to be left without arguments 10242need_version=unknown 10243 10244case $host_os in 10245aix3*) 10246 version_type=linux 10247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10248 shlibpath_var=LIBPATH 10249 10250 # AIX 3 has no versioning support, so we append a major version to the name. 10251 soname_spec='${libname}${release}${shared_ext}$major' 10252 ;; 10253 10254aix[4-9]*) 10255 version_type=linux 10256 need_lib_prefix=no 10257 need_version=no 10258 hardcode_into_libs=yes 10259 if test "$host_cpu" = ia64; then 10260 # AIX 5 supports IA64 10261 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10262 shlibpath_var=LD_LIBRARY_PATH 10263 else 10264 # With GCC up to 2.95.x, collect2 would create an import file 10265 # for dependence libraries. The import file would start with 10266 # the line `#! .'. This would cause the generated library to 10267 # depend on `.', always an invalid library. This was fixed in 10268 # development snapshots of GCC prior to 3.0. 10269 case $host_os in 10270 aix4 | aix4.[01] | aix4.[01].*) 10271 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10272 echo ' yes ' 10273 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10274 : 10275 else 10276 can_build_shared=no 10277 fi 10278 ;; 10279 esac 10280 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10281 # soname into executable. Probably we can add versioning support to 10282 # collect2, so additional links can be useful in future. 10283 if test "$aix_use_runtimelinking" = yes; then 10284 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10285 # instead of lib<name>.a to let people know that these are not 10286 # typical AIX shared libraries. 10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10288 else 10289 # We preserve .a as extension for shared libraries through AIX4.2 10290 # and later when we are not doing run time linking. 10291 library_names_spec='${libname}${release}.a $libname.a' 10292 soname_spec='${libname}${release}${shared_ext}$major' 10293 fi 10294 shlibpath_var=LIBPATH 10295 fi 10296 ;; 10297 10298amigaos*) 10299 case $host_cpu in 10300 powerpc) 10301 # Since July 2007 AmigaOS4 officially supports .so libraries. 10302 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10304 ;; 10305 m68k) 10306 library_names_spec='$libname.ixlibrary $libname.a' 10307 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10308 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' 10309 ;; 10310 esac 10311 ;; 10312 10313beos*) 10314 library_names_spec='${libname}${shared_ext}' 10315 dynamic_linker="$host_os ld.so" 10316 shlibpath_var=LIBRARY_PATH 10317 ;; 10318 10319bsdi[45]*) 10320 version_type=linux 10321 need_version=no 10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10323 soname_spec='${libname}${release}${shared_ext}$major' 10324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10325 shlibpath_var=LD_LIBRARY_PATH 10326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10328 # the default ld.so.conf also contains /usr/contrib/lib and 10329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10330 # libtool to hard-code these into programs 10331 ;; 10332 10333cygwin* | mingw* | pw32* | cegcc*) 10334 version_type=windows 10335 shrext_cmds=".dll" 10336 need_version=no 10337 need_lib_prefix=no 10338 10339 case $GCC,$host_os in 10340 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10341 library_names_spec='$libname.dll.a' 10342 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10343 postinstall_cmds='base_file=`basename \${file}`~ 10344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10345 dldir=$destdir/`dirname \$dlpath`~ 10346 test -d \$dldir || mkdir -p \$dldir~ 10347 $install_prog $dir/$dlname \$dldir/$dlname~ 10348 chmod a+x \$dldir/$dlname~ 10349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10351 fi' 10352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10353 dlpath=$dir/\$dldll~ 10354 $RM \$dlpath' 10355 shlibpath_overrides_runpath=yes 10356 10357 case $host_os in 10358 cygwin*) 10359 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10361 10362 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10363 ;; 10364 mingw* | cegcc*) 10365 # MinGW DLLs use traditional 'lib' prefix 10366 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10367 ;; 10368 pw32*) 10369 # pw32 DLLs use 'pw' prefix rather than 'lib' 10370 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10371 ;; 10372 esac 10373 ;; 10374 10375 *) 10376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10377 ;; 10378 esac 10379 dynamic_linker='Win32 ld.exe' 10380 # FIXME: first we should search . and the directory the executable is in 10381 shlibpath_var=PATH 10382 ;; 10383 10384darwin* | rhapsody*) 10385 dynamic_linker="$host_os dyld" 10386 version_type=darwin 10387 need_lib_prefix=no 10388 need_version=no 10389 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10390 soname_spec='${libname}${release}${major}$shared_ext' 10391 shlibpath_overrides_runpath=yes 10392 shlibpath_var=DYLD_LIBRARY_PATH 10393 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10394 10395 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10397 ;; 10398 10399dgux*) 10400 version_type=linux 10401 need_lib_prefix=no 10402 need_version=no 10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10404 soname_spec='${libname}${release}${shared_ext}$major' 10405 shlibpath_var=LD_LIBRARY_PATH 10406 ;; 10407 10408freebsd* | dragonfly*) 10409 # DragonFly does not have aout. When/if they implement a new 10410 # versioning mechanism, adjust this. 10411 if test -x /usr/bin/objformat; then 10412 objformat=`/usr/bin/objformat` 10413 else 10414 case $host_os in 10415 freebsd[23].*) objformat=aout ;; 10416 *) objformat=elf ;; 10417 esac 10418 fi 10419 version_type=freebsd-$objformat 10420 case $version_type in 10421 freebsd-elf*) 10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10423 need_version=no 10424 need_lib_prefix=no 10425 ;; 10426 freebsd-*) 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10428 need_version=yes 10429 ;; 10430 esac 10431 shlibpath_var=LD_LIBRARY_PATH 10432 case $host_os in 10433 freebsd2.*) 10434 shlibpath_overrides_runpath=yes 10435 ;; 10436 freebsd3.[01]* | freebsdelf3.[01]*) 10437 shlibpath_overrides_runpath=yes 10438 hardcode_into_libs=yes 10439 ;; 10440 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10441 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10442 shlibpath_overrides_runpath=no 10443 hardcode_into_libs=yes 10444 ;; 10445 *) # from 4.6 on, and DragonFly 10446 shlibpath_overrides_runpath=yes 10447 hardcode_into_libs=yes 10448 ;; 10449 esac 10450 ;; 10451 10452gnu*) 10453 version_type=linux 10454 need_lib_prefix=no 10455 need_version=no 10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10457 soname_spec='${libname}${release}${shared_ext}$major' 10458 shlibpath_var=LD_LIBRARY_PATH 10459 hardcode_into_libs=yes 10460 ;; 10461 10462haiku*) 10463 version_type=linux 10464 need_lib_prefix=no 10465 need_version=no 10466 dynamic_linker="$host_os runtime_loader" 10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10468 soname_spec='${libname}${release}${shared_ext}$major' 10469 shlibpath_var=LIBRARY_PATH 10470 shlibpath_overrides_runpath=yes 10471 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10472 hardcode_into_libs=yes 10473 ;; 10474 10475hpux9* | hpux10* | hpux11*) 10476 # Give a soname corresponding to the major version so that dld.sl refuses to 10477 # link against other versions. 10478 version_type=sunos 10479 need_lib_prefix=no 10480 need_version=no 10481 case $host_cpu in 10482 ia64*) 10483 shrext_cmds='.so' 10484 hardcode_into_libs=yes 10485 dynamic_linker="$host_os dld.so" 10486 shlibpath_var=LD_LIBRARY_PATH 10487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10489 soname_spec='${libname}${release}${shared_ext}$major' 10490 if test "X$HPUX_IA64_MODE" = X32; then 10491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10492 else 10493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10494 fi 10495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10496 ;; 10497 hppa*64*) 10498 shrext_cmds='.sl' 10499 hardcode_into_libs=yes 10500 dynamic_linker="$host_os dld.sl" 10501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10504 soname_spec='${libname}${release}${shared_ext}$major' 10505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10507 ;; 10508 *) 10509 shrext_cmds='.sl' 10510 dynamic_linker="$host_os dld.sl" 10511 shlibpath_var=SHLIB_PATH 10512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 ;; 10516 esac 10517 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10518 postinstall_cmds='chmod 555 $lib' 10519 # or fails outright, so override atomically: 10520 install_override_mode=555 10521 ;; 10522 10523interix[3-9]*) 10524 version_type=linux 10525 need_lib_prefix=no 10526 need_version=no 10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10528 soname_spec='${libname}${release}${shared_ext}$major' 10529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10530 shlibpath_var=LD_LIBRARY_PATH 10531 shlibpath_overrides_runpath=no 10532 hardcode_into_libs=yes 10533 ;; 10534 10535irix5* | irix6* | nonstopux*) 10536 case $host_os in 10537 nonstopux*) version_type=nonstopux ;; 10538 *) 10539 if test "$lt_cv_prog_gnu_ld" = yes; then 10540 version_type=linux 10541 else 10542 version_type=irix 10543 fi ;; 10544 esac 10545 need_lib_prefix=no 10546 need_version=no 10547 soname_spec='${libname}${release}${shared_ext}$major' 10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10549 case $host_os in 10550 irix5* | nonstopux*) 10551 libsuff= shlibsuff= 10552 ;; 10553 *) 10554 case $LD in # libtool.m4 will add one of these switches to LD 10555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10556 libsuff= shlibsuff= libmagic=32-bit;; 10557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10558 libsuff=32 shlibsuff=N32 libmagic=N32;; 10559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10560 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10561 *) libsuff= shlibsuff= libmagic=never-match;; 10562 esac 10563 ;; 10564 esac 10565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10566 shlibpath_overrides_runpath=no 10567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10569 hardcode_into_libs=yes 10570 ;; 10571 10572# No shared lib support for Linux oldld, aout, or coff. 10573linux*oldld* | linux*aout* | linux*coff*) 10574 dynamic_linker=no 10575 ;; 10576 10577# This must be Linux ELF. 10578 10579# uclinux* changes (here and below) have been submitted to the libtool 10580# project, but have not yet been accepted: they are GCC-local changes 10581# for the time being. (See 10582# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10583linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 10584 version_type=linux 10585 need_lib_prefix=no 10586 need_version=no 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10590 shlibpath_var=LD_LIBRARY_PATH 10591 shlibpath_overrides_runpath=no 10592 10593 # Some binutils ld are patched to set DT_RUNPATH 10594 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10595 $as_echo_n "(cached) " >&6 10596else 10597 lt_cv_shlibpath_overrides_runpath=no 10598 save_LDFLAGS=$LDFLAGS 10599 save_libdir=$libdir 10600 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10601 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10603/* end confdefs.h. */ 10604 10605int 10606main () 10607{ 10608 10609 ; 10610 return 0; 10611} 10612_ACEOF 10613if ac_fn_c_try_link "$LINENO"; then : 10614 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10615 lt_cv_shlibpath_overrides_runpath=yes 10616fi 10617fi 10618rm -f core conftest.err conftest.$ac_objext \ 10619 conftest$ac_exeext conftest.$ac_ext 10620 LDFLAGS=$save_LDFLAGS 10621 libdir=$save_libdir 10622 10623fi 10624 10625 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10626 10627 # This implies no fast_install, which is unacceptable. 10628 # Some rework will be needed to allow for fast_install 10629 # before this can be enabled. 10630 hardcode_into_libs=yes 10631 10632 # Append ld.so.conf contents to the search path 10633 if test -f /etc/ld.so.conf; then 10634 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' ' '` 10635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10636 fi 10637 10638 # We used to test for /lib/ld.so.1 and disable shared libraries on 10639 # powerpc, because MkLinux only supported shared libraries with the 10640 # GNU dynamic linker. Since this was broken with cross compilers, 10641 # most powerpc-linux boxes support dynamic linking these days and 10642 # people can always --disable-shared, the test was removed, and we 10643 # assume the GNU/Linux dynamic linker is in use. 10644 dynamic_linker='GNU/Linux ld.so' 10645 ;; 10646 10647netbsd*) 10648 version_type=sunos 10649 need_lib_prefix=no 10650 need_version=no 10651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10654 dynamic_linker='NetBSD (a.out) ld.so' 10655 else 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10657 soname_spec='${libname}${release}${shared_ext}$major' 10658 dynamic_linker='NetBSD ld.elf_so' 10659 fi 10660 shlibpath_var=LD_LIBRARY_PATH 10661 shlibpath_overrides_runpath=yes 10662 hardcode_into_libs=yes 10663 ;; 10664 10665newsos6) 10666 version_type=linux 10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10668 shlibpath_var=LD_LIBRARY_PATH 10669 shlibpath_overrides_runpath=yes 10670 ;; 10671 10672*nto* | *qnx*) 10673 version_type=qnx 10674 need_lib_prefix=no 10675 need_version=no 10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10677 soname_spec='${libname}${release}${shared_ext}$major' 10678 shlibpath_var=LD_LIBRARY_PATH 10679 shlibpath_overrides_runpath=no 10680 hardcode_into_libs=yes 10681 dynamic_linker='ldqnx.so' 10682 ;; 10683 10684openbsd*) 10685 version_type=sunos 10686 sys_lib_dlsearch_path_spec="/usr/lib" 10687 need_lib_prefix=no 10688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10689 case $host_os in 10690 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10691 *) need_version=no ;; 10692 esac 10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10697 case $host_os in 10698 openbsd2.[89] | openbsd2.[89].*) 10699 shlibpath_overrides_runpath=no 10700 ;; 10701 *) 10702 shlibpath_overrides_runpath=yes 10703 ;; 10704 esac 10705 else 10706 shlibpath_overrides_runpath=yes 10707 fi 10708 ;; 10709 10710os2*) 10711 libname_spec='$name' 10712 shrext_cmds=".dll" 10713 need_lib_prefix=no 10714 library_names_spec='$libname${shared_ext} $libname.a' 10715 dynamic_linker='OS/2 ld.exe' 10716 shlibpath_var=LIBPATH 10717 ;; 10718 10719osf3* | osf4* | osf5*) 10720 version_type=osf 10721 need_lib_prefix=no 10722 need_version=no 10723 soname_spec='${libname}${release}${shared_ext}$major' 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10725 shlibpath_var=LD_LIBRARY_PATH 10726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10728 ;; 10729 10730rdos*) 10731 dynamic_linker=no 10732 ;; 10733 10734solaris*) 10735 version_type=linux 10736 need_lib_prefix=no 10737 need_version=no 10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10739 soname_spec='${libname}${release}${shared_ext}$major' 10740 shlibpath_var=LD_LIBRARY_PATH 10741 shlibpath_overrides_runpath=yes 10742 hardcode_into_libs=yes 10743 # ldd complains unless libraries are executable 10744 postinstall_cmds='chmod +x $lib' 10745 ;; 10746 10747sunos4*) 10748 version_type=sunos 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10751 shlibpath_var=LD_LIBRARY_PATH 10752 shlibpath_overrides_runpath=yes 10753 if test "$with_gnu_ld" = yes; then 10754 need_lib_prefix=no 10755 fi 10756 need_version=yes 10757 ;; 10758 10759sysv4 | sysv4.3*) 10760 version_type=linux 10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10762 soname_spec='${libname}${release}${shared_ext}$major' 10763 shlibpath_var=LD_LIBRARY_PATH 10764 case $host_vendor in 10765 sni) 10766 shlibpath_overrides_runpath=no 10767 need_lib_prefix=no 10768 runpath_var=LD_RUN_PATH 10769 ;; 10770 siemens) 10771 need_lib_prefix=no 10772 ;; 10773 motorola) 10774 need_lib_prefix=no 10775 need_version=no 10776 shlibpath_overrides_runpath=no 10777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10778 ;; 10779 esac 10780 ;; 10781 10782sysv4*MP*) 10783 if test -d /usr/nec ;then 10784 version_type=linux 10785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10786 soname_spec='$libname${shared_ext}.$major' 10787 shlibpath_var=LD_LIBRARY_PATH 10788 fi 10789 ;; 10790 10791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10792 version_type=freebsd-elf 10793 need_lib_prefix=no 10794 need_version=no 10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10796 soname_spec='${libname}${release}${shared_ext}$major' 10797 shlibpath_var=LD_LIBRARY_PATH 10798 shlibpath_overrides_runpath=yes 10799 hardcode_into_libs=yes 10800 if test "$with_gnu_ld" = yes; then 10801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10802 else 10803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10804 case $host_os in 10805 sco3.2v5*) 10806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10807 ;; 10808 esac 10809 fi 10810 sys_lib_dlsearch_path_spec='/usr/lib' 10811 ;; 10812 10813tpf*) 10814 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10815 version_type=linux 10816 need_lib_prefix=no 10817 need_version=no 10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10819 shlibpath_var=LD_LIBRARY_PATH 10820 shlibpath_overrides_runpath=no 10821 hardcode_into_libs=yes 10822 ;; 10823 10824uts4*) 10825 version_type=linux 10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10827 soname_spec='${libname}${release}${shared_ext}$major' 10828 shlibpath_var=LD_LIBRARY_PATH 10829 ;; 10830 10831*) 10832 dynamic_linker=no 10833 ;; 10834esac 10835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10836$as_echo "$dynamic_linker" >&6; } 10837test "$dynamic_linker" = no && can_build_shared=no 10838 10839variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10840if test "$GCC" = yes; then 10841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10842fi 10843 10844if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10845 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10846fi 10847if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10848 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10849fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10943$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10944hardcode_action= 10945if test -n "$hardcode_libdir_flag_spec" || 10946 test -n "$runpath_var" || 10947 test "X$hardcode_automatic" = "Xyes" ; then 10948 10949 # We can hardcode non-existent directories. 10950 if test "$hardcode_direct" != no && 10951 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10952 # have to relink, otherwise we might link with an installed library 10953 # when we should be linking with a yet-to-be-installed one 10954 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10955 test "$hardcode_minus_L" != no; then 10956 # Linking always hardcodes the temporary library directory. 10957 hardcode_action=relink 10958 else 10959 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10960 hardcode_action=immediate 10961 fi 10962else 10963 # We cannot hardcode anything, or else we can only hardcode existing 10964 # directories. 10965 hardcode_action=unsupported 10966fi 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10968$as_echo "$hardcode_action" >&6; } 10969 10970if test "$hardcode_action" = relink || 10971 test "$inherit_rpath" = yes; then 10972 # Fast installation is not supported 10973 enable_fast_install=no 10974elif test "$shlibpath_overrides_runpath" = yes || 10975 test "$enable_shared" = no; then 10976 # Fast installation is not necessary 10977 enable_fast_install=needless 10978fi 10979 10980 10981 10982 10983 10984 10985 if test "x$enable_dlopen" != xyes; then 10986 enable_dlopen=unknown 10987 enable_dlopen_self=unknown 10988 enable_dlopen_self_static=unknown 10989else 10990 lt_cv_dlopen=no 10991 lt_cv_dlopen_libs= 10992 10993 case $host_os in 10994 beos*) 10995 lt_cv_dlopen="load_add_on" 10996 lt_cv_dlopen_libs= 10997 lt_cv_dlopen_self=yes 10998 ;; 10999 11000 mingw* | pw32* | cegcc*) 11001 lt_cv_dlopen="LoadLibrary" 11002 lt_cv_dlopen_libs= 11003 ;; 11004 11005 cygwin*) 11006 lt_cv_dlopen="dlopen" 11007 lt_cv_dlopen_libs= 11008 ;; 11009 11010 darwin*) 11011 # if libdl is installed we need to link against it 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11013$as_echo_n "checking for dlopen in -ldl... " >&6; } 11014if ${ac_cv_lib_dl_dlopen+:} false; then : 11015 $as_echo_n "(cached) " >&6 11016else 11017 ac_check_lib_save_LIBS=$LIBS 11018LIBS="-ldl $LIBS" 11019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021 11022/* Override any GCC internal prototype to avoid an error. 11023 Use char because int might match the return type of a GCC 11024 builtin and then its argument prototype would still apply. */ 11025#ifdef __cplusplus 11026extern "C" 11027#endif 11028char dlopen (); 11029int 11030main () 11031{ 11032return dlopen (); 11033 ; 11034 return 0; 11035} 11036_ACEOF 11037if ac_fn_c_try_link "$LINENO"; then : 11038 ac_cv_lib_dl_dlopen=yes 11039else 11040 ac_cv_lib_dl_dlopen=no 11041fi 11042rm -f core conftest.err conftest.$ac_objext \ 11043 conftest$ac_exeext conftest.$ac_ext 11044LIBS=$ac_check_lib_save_LIBS 11045fi 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11047$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11048if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11050else 11051 11052 lt_cv_dlopen="dyld" 11053 lt_cv_dlopen_libs= 11054 lt_cv_dlopen_self=yes 11055 11056fi 11057 11058 ;; 11059 11060 *) 11061 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11062if test "x$ac_cv_func_shl_load" = xyes; then : 11063 lt_cv_dlopen="shl_load" 11064else 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11066$as_echo_n "checking for shl_load in -ldld... " >&6; } 11067if ${ac_cv_lib_dld_shl_load+:} false; then : 11068 $as_echo_n "(cached) " >&6 11069else 11070 ac_check_lib_save_LIBS=$LIBS 11071LIBS="-ldld $LIBS" 11072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11073/* end confdefs.h. */ 11074 11075/* Override any GCC internal prototype to avoid an error. 11076 Use char because int might match the return type of a GCC 11077 builtin and then its argument prototype would still apply. */ 11078#ifdef __cplusplus 11079extern "C" 11080#endif 11081char shl_load (); 11082int 11083main () 11084{ 11085return shl_load (); 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090if ac_fn_c_try_link "$LINENO"; then : 11091 ac_cv_lib_dld_shl_load=yes 11092else 11093 ac_cv_lib_dld_shl_load=no 11094fi 11095rm -f core conftest.err conftest.$ac_objext \ 11096 conftest$ac_exeext conftest.$ac_ext 11097LIBS=$ac_check_lib_save_LIBS 11098fi 11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11100$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11101if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11103else 11104 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11105if test "x$ac_cv_func_dlopen" = xyes; then : 11106 lt_cv_dlopen="dlopen" 11107else 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11109$as_echo_n "checking for dlopen in -ldl... " >&6; } 11110if ${ac_cv_lib_dl_dlopen+:} false; then : 11111 $as_echo_n "(cached) " >&6 11112else 11113 ac_check_lib_save_LIBS=$LIBS 11114LIBS="-ldl $LIBS" 11115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11116/* end confdefs.h. */ 11117 11118/* Override any GCC internal prototype to avoid an error. 11119 Use char because int might match the return type of a GCC 11120 builtin and then its argument prototype would still apply. */ 11121#ifdef __cplusplus 11122extern "C" 11123#endif 11124char dlopen (); 11125int 11126main () 11127{ 11128return dlopen (); 11129 ; 11130 return 0; 11131} 11132_ACEOF 11133if ac_fn_c_try_link "$LINENO"; then : 11134 ac_cv_lib_dl_dlopen=yes 11135else 11136 ac_cv_lib_dl_dlopen=no 11137fi 11138rm -f core conftest.err conftest.$ac_objext \ 11139 conftest$ac_exeext conftest.$ac_ext 11140LIBS=$ac_check_lib_save_LIBS 11141fi 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11143$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11144if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11146else 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11148$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11149if ${ac_cv_lib_svld_dlopen+:} false; then : 11150 $as_echo_n "(cached) " >&6 11151else 11152 ac_check_lib_save_LIBS=$LIBS 11153LIBS="-lsvld $LIBS" 11154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155/* end confdefs.h. */ 11156 11157/* Override any GCC internal prototype to avoid an error. 11158 Use char because int might match the return type of a GCC 11159 builtin and then its argument prototype would still apply. */ 11160#ifdef __cplusplus 11161extern "C" 11162#endif 11163char dlopen (); 11164int 11165main () 11166{ 11167return dlopen (); 11168 ; 11169 return 0; 11170} 11171_ACEOF 11172if ac_fn_c_try_link "$LINENO"; then : 11173 ac_cv_lib_svld_dlopen=yes 11174else 11175 ac_cv_lib_svld_dlopen=no 11176fi 11177rm -f core conftest.err conftest.$ac_objext \ 11178 conftest$ac_exeext conftest.$ac_ext 11179LIBS=$ac_check_lib_save_LIBS 11180fi 11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11182$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11183if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11185else 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11187$as_echo_n "checking for dld_link in -ldld... " >&6; } 11188if ${ac_cv_lib_dld_dld_link+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 ac_check_lib_save_LIBS=$LIBS 11192LIBS="-ldld $LIBS" 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196/* Override any GCC internal prototype to avoid an error. 11197 Use char because int might match the return type of a GCC 11198 builtin and then its argument prototype would still apply. */ 11199#ifdef __cplusplus 11200extern "C" 11201#endif 11202char dld_link (); 11203int 11204main () 11205{ 11206return dld_link (); 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_link "$LINENO"; then : 11212 ac_cv_lib_dld_dld_link=yes 11213else 11214 ac_cv_lib_dld_dld_link=no 11215fi 11216rm -f core conftest.err conftest.$ac_objext \ 11217 conftest$ac_exeext conftest.$ac_ext 11218LIBS=$ac_check_lib_save_LIBS 11219fi 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11221$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11222if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11223 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11224fi 11225 11226 11227fi 11228 11229 11230fi 11231 11232 11233fi 11234 11235 11236fi 11237 11238 11239fi 11240 11241 ;; 11242 esac 11243 11244 if test "x$lt_cv_dlopen" != xno; then 11245 enable_dlopen=yes 11246 else 11247 enable_dlopen=no 11248 fi 11249 11250 case $lt_cv_dlopen in 11251 dlopen) 11252 save_CPPFLAGS="$CPPFLAGS" 11253 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11254 11255 save_LDFLAGS="$LDFLAGS" 11256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11257 11258 save_LIBS="$LIBS" 11259 LIBS="$lt_cv_dlopen_libs $LIBS" 11260 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11262$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11263if ${lt_cv_dlopen_self+:} false; then : 11264 $as_echo_n "(cached) " >&6 11265else 11266 if test "$cross_compiling" = yes; then : 11267 lt_cv_dlopen_self=cross 11268else 11269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11270 lt_status=$lt_dlunknown 11271 cat > conftest.$ac_ext <<_LT_EOF 11272#line 11272 "configure" 11273#include "confdefs.h" 11274 11275#if HAVE_DLFCN_H 11276#include <dlfcn.h> 11277#endif 11278 11279#include <stdio.h> 11280 11281#ifdef RTLD_GLOBAL 11282# define LT_DLGLOBAL RTLD_GLOBAL 11283#else 11284# ifdef DL_GLOBAL 11285# define LT_DLGLOBAL DL_GLOBAL 11286# else 11287# define LT_DLGLOBAL 0 11288# endif 11289#endif 11290 11291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11292 find out it does not work in some platform. */ 11293#ifndef LT_DLLAZY_OR_NOW 11294# ifdef RTLD_LAZY 11295# define LT_DLLAZY_OR_NOW RTLD_LAZY 11296# else 11297# ifdef DL_LAZY 11298# define LT_DLLAZY_OR_NOW DL_LAZY 11299# else 11300# ifdef RTLD_NOW 11301# define LT_DLLAZY_OR_NOW RTLD_NOW 11302# else 11303# ifdef DL_NOW 11304# define LT_DLLAZY_OR_NOW DL_NOW 11305# else 11306# define LT_DLLAZY_OR_NOW 0 11307# endif 11308# endif 11309# endif 11310# endif 11311#endif 11312 11313/* When -fvisbility=hidden is used, assume the code has been annotated 11314 correspondingly for the symbols needed. */ 11315#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11316void fnord () __attribute__((visibility("default"))); 11317#endif 11318 11319void fnord () { int i=42; } 11320int main () 11321{ 11322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11323 int status = $lt_dlunknown; 11324 11325 if (self) 11326 { 11327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11328 else 11329 { 11330 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11331 else puts (dlerror ()); 11332 } 11333 /* dlclose (self); */ 11334 } 11335 else 11336 puts (dlerror ()); 11337 11338 return status; 11339} 11340_LT_EOF 11341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11342 (eval $ac_link) 2>&5 11343 ac_status=$? 11344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11345 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11346 (./conftest; exit; ) >&5 2>/dev/null 11347 lt_status=$? 11348 case x$lt_status in 11349 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11350 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11351 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11352 esac 11353 else : 11354 # compilation failed 11355 lt_cv_dlopen_self=no 11356 fi 11357fi 11358rm -fr conftest* 11359 11360 11361fi 11362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11363$as_echo "$lt_cv_dlopen_self" >&6; } 11364 11365 if test "x$lt_cv_dlopen_self" = xyes; then 11366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11368$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11369if ${lt_cv_dlopen_self_static+:} false; then : 11370 $as_echo_n "(cached) " >&6 11371else 11372 if test "$cross_compiling" = yes; then : 11373 lt_cv_dlopen_self_static=cross 11374else 11375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11376 lt_status=$lt_dlunknown 11377 cat > conftest.$ac_ext <<_LT_EOF 11378#line 11378 "configure" 11379#include "confdefs.h" 11380 11381#if HAVE_DLFCN_H 11382#include <dlfcn.h> 11383#endif 11384 11385#include <stdio.h> 11386 11387#ifdef RTLD_GLOBAL 11388# define LT_DLGLOBAL RTLD_GLOBAL 11389#else 11390# ifdef DL_GLOBAL 11391# define LT_DLGLOBAL DL_GLOBAL 11392# else 11393# define LT_DLGLOBAL 0 11394# endif 11395#endif 11396 11397/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11398 find out it does not work in some platform. */ 11399#ifndef LT_DLLAZY_OR_NOW 11400# ifdef RTLD_LAZY 11401# define LT_DLLAZY_OR_NOW RTLD_LAZY 11402# else 11403# ifdef DL_LAZY 11404# define LT_DLLAZY_OR_NOW DL_LAZY 11405# else 11406# ifdef RTLD_NOW 11407# define LT_DLLAZY_OR_NOW RTLD_NOW 11408# else 11409# ifdef DL_NOW 11410# define LT_DLLAZY_OR_NOW DL_NOW 11411# else 11412# define LT_DLLAZY_OR_NOW 0 11413# endif 11414# endif 11415# endif 11416# endif 11417#endif 11418 11419/* When -fvisbility=hidden is used, assume the code has been annotated 11420 correspondingly for the symbols needed. */ 11421#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11422void fnord () __attribute__((visibility("default"))); 11423#endif 11424 11425void fnord () { int i=42; } 11426int main () 11427{ 11428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11429 int status = $lt_dlunknown; 11430 11431 if (self) 11432 { 11433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11434 else 11435 { 11436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11437 else puts (dlerror ()); 11438 } 11439 /* dlclose (self); */ 11440 } 11441 else 11442 puts (dlerror ()); 11443 11444 return status; 11445} 11446_LT_EOF 11447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11448 (eval $ac_link) 2>&5 11449 ac_status=$? 11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11451 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11452 (./conftest; exit; ) >&5 2>/dev/null 11453 lt_status=$? 11454 case x$lt_status in 11455 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11456 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11457 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11458 esac 11459 else : 11460 # compilation failed 11461 lt_cv_dlopen_self_static=no 11462 fi 11463fi 11464rm -fr conftest* 11465 11466 11467fi 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11469$as_echo "$lt_cv_dlopen_self_static" >&6; } 11470 fi 11471 11472 CPPFLAGS="$save_CPPFLAGS" 11473 LDFLAGS="$save_LDFLAGS" 11474 LIBS="$save_LIBS" 11475 ;; 11476 esac 11477 11478 case $lt_cv_dlopen_self in 11479 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11480 *) enable_dlopen_self=unknown ;; 11481 esac 11482 11483 case $lt_cv_dlopen_self_static in 11484 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11485 *) enable_dlopen_self_static=unknown ;; 11486 esac 11487fi 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505striplib= 11506old_striplib= 11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11508$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11509if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11511 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11513$as_echo "yes" >&6; } 11514else 11515# FIXME - insert some real tests, host_os isn't really good enough 11516 case $host_os in 11517 darwin*) 11518 if test -n "$STRIP" ; then 11519 striplib="$STRIP -x" 11520 old_striplib="$STRIP -S" 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11522$as_echo "yes" >&6; } 11523 else 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11525$as_echo "no" >&6; } 11526 fi 11527 ;; 11528 *) 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11530$as_echo "no" >&6; } 11531 ;; 11532 esac 11533fi 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 # Report which library types will actually be built 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11548$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11550$as_echo "$can_build_shared" >&6; } 11551 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11553$as_echo_n "checking whether to build shared libraries... " >&6; } 11554 test "$can_build_shared" = "no" && enable_shared=no 11555 11556 # On AIX, shared libraries and static libraries use the same namespace, and 11557 # are all built from PIC. 11558 case $host_os in 11559 aix3*) 11560 test "$enable_shared" = yes && enable_static=no 11561 if test -n "$RANLIB"; then 11562 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11563 postinstall_cmds='$RANLIB $lib' 11564 fi 11565 ;; 11566 11567 aix[4-9]*) 11568 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11569 test "$enable_shared" = yes && enable_static=no 11570 fi 11571 ;; 11572 esac 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11574$as_echo "$enable_shared" >&6; } 11575 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11577$as_echo_n "checking whether to build static libraries... " >&6; } 11578 # Make sure either enable_shared or enable_static is yes. 11579 test "$enable_shared" = yes || enable_static=yes 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11581$as_echo "$enable_static" >&6; } 11582 11583 11584 11585 11586fi 11587ac_ext=c 11588ac_cpp='$CPP $CPPFLAGS' 11589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11591ac_compiler_gnu=$ac_cv_c_compiler_gnu 11592 11593CC="$lt_save_CC" 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 ac_config_commands="$ac_config_commands libtool" 11608 11609 11610 11611 11612# Only expand once: 11613 11614 11615 11616 11617# Check whether --enable-largefile was given. 11618if test "${enable_largefile+set}" = set; then : 11619 enableval=$enable_largefile; 11620fi 11621 11622if test "$enable_largefile" != no; then 11623 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11625$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11626if ${ac_cv_sys_largefile_CC+:} false; then : 11627 $as_echo_n "(cached) " >&6 11628else 11629 ac_cv_sys_largefile_CC=no 11630 if test "$GCC" != yes; then 11631 ac_save_CC=$CC 11632 while :; do 11633 # IRIX 6.2 and later do not support large files by default, 11634 # so use the C compiler's -n32 option if that helps. 11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11636/* end confdefs.h. */ 11637#include <sys/types.h> 11638 /* Check that off_t can represent 2**63 - 1 correctly. 11639 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11640 since some C++ compilers masquerading as C compilers 11641 incorrectly reject 9223372036854775807. */ 11642#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11644 && LARGE_OFF_T % 2147483647 == 1) 11645 ? 1 : -1]; 11646int 11647main () 11648{ 11649 11650 ; 11651 return 0; 11652} 11653_ACEOF 11654 if ac_fn_c_try_compile "$LINENO"; then : 11655 break 11656fi 11657rm -f core conftest.err conftest.$ac_objext 11658 CC="$CC -n32" 11659 if ac_fn_c_try_compile "$LINENO"; then : 11660 ac_cv_sys_largefile_CC=' -n32'; break 11661fi 11662rm -f core conftest.err conftest.$ac_objext 11663 break 11664 done 11665 CC=$ac_save_CC 11666 rm -f conftest.$ac_ext 11667 fi 11668fi 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11670$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11671 if test "$ac_cv_sys_largefile_CC" != no; then 11672 CC=$CC$ac_cv_sys_largefile_CC 11673 fi 11674 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11676$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11677if ${ac_cv_sys_file_offset_bits+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679else 11680 while :; do 11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11682/* end confdefs.h. */ 11683#include <sys/types.h> 11684 /* Check that off_t can represent 2**63 - 1 correctly. 11685 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11686 since some C++ compilers masquerading as C compilers 11687 incorrectly reject 9223372036854775807. */ 11688#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11690 && LARGE_OFF_T % 2147483647 == 1) 11691 ? 1 : -1]; 11692int 11693main () 11694{ 11695 11696 ; 11697 return 0; 11698} 11699_ACEOF 11700if ac_fn_c_try_compile "$LINENO"; then : 11701 ac_cv_sys_file_offset_bits=no; break 11702fi 11703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11705/* end confdefs.h. */ 11706#define _FILE_OFFSET_BITS 64 11707#include <sys/types.h> 11708 /* Check that off_t can represent 2**63 - 1 correctly. 11709 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11710 since some C++ compilers masquerading as C compilers 11711 incorrectly reject 9223372036854775807. */ 11712#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11714 && LARGE_OFF_T % 2147483647 == 1) 11715 ? 1 : -1]; 11716int 11717main () 11718{ 11719 11720 ; 11721 return 0; 11722} 11723_ACEOF 11724if ac_fn_c_try_compile "$LINENO"; then : 11725 ac_cv_sys_file_offset_bits=64; break 11726fi 11727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11728 ac_cv_sys_file_offset_bits=unknown 11729 break 11730done 11731fi 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11733$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11734case $ac_cv_sys_file_offset_bits in #( 11735 no | unknown) ;; 11736 *) 11737cat >>confdefs.h <<_ACEOF 11738#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11739_ACEOF 11740;; 11741esac 11742rm -rf conftest* 11743 if test $ac_cv_sys_file_offset_bits = unknown; then 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11745$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11746if ${ac_cv_sys_large_files+:} false; then : 11747 $as_echo_n "(cached) " >&6 11748else 11749 while :; do 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751/* end confdefs.h. */ 11752#include <sys/types.h> 11753 /* Check that off_t can represent 2**63 - 1 correctly. 11754 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11755 since some C++ compilers masquerading as C compilers 11756 incorrectly reject 9223372036854775807. */ 11757#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11759 && LARGE_OFF_T % 2147483647 == 1) 11760 ? 1 : -1]; 11761int 11762main () 11763{ 11764 11765 ; 11766 return 0; 11767} 11768_ACEOF 11769if ac_fn_c_try_compile "$LINENO"; then : 11770 ac_cv_sys_large_files=no; break 11771fi 11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11774/* end confdefs.h. */ 11775#define _LARGE_FILES 1 11776#include <sys/types.h> 11777 /* Check that off_t can represent 2**63 - 1 correctly. 11778 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11779 since some C++ compilers masquerading as C compilers 11780 incorrectly reject 9223372036854775807. */ 11781#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11783 && LARGE_OFF_T % 2147483647 == 1) 11784 ? 1 : -1]; 11785int 11786main () 11787{ 11788 11789 ; 11790 return 0; 11791} 11792_ACEOF 11793if ac_fn_c_try_compile "$LINENO"; then : 11794 ac_cv_sys_large_files=1; break 11795fi 11796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11797 ac_cv_sys_large_files=unknown 11798 break 11799done 11800fi 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11802$as_echo "$ac_cv_sys_large_files" >&6; } 11803case $ac_cv_sys_large_files in #( 11804 no | unknown) ;; 11805 *) 11806cat >>confdefs.h <<_ACEOF 11807#define _LARGE_FILES $ac_cv_sys_large_files 11808_ACEOF 11809;; 11810esac 11811rm -rf conftest* 11812 fi 11813 11814 11815fi 11816 11817 11818backtrace_supported=yes 11819 11820if test -n "${with_target_subdir}"; then 11821 # We are compiling a GCC library. We can assume that the unwind 11822 # library exists. 11823 BACKTRACE_FILE="backtrace.lo simple.lo" 11824else 11825 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 11826if test "x$ac_cv_header_unwind_h" = xyes; then : 11827 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace" 11828if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then : 11829 BACKTRACE_FILE="backtrace.lo simple.lo" 11830else 11831 BACKTRACE_FILE="nounwind.lo" 11832 backtrace_supported=no 11833fi 11834 11835else 11836 BACKTRACE_FILE="nounwind.lo" 11837 backtrace_supported=no 11838fi 11839 11840 11841fi 11842 11843 11844EXTRA_FLAGS= 11845if test -n "${with_target_subdir}"; then 11846 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@" 11847else 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5 11849$as_echo_n "checking for -funwind-tables option... " >&6; } 11850if ${libbacktrace_cv_c_unwind_tables+:} false; then : 11851 $as_echo_n "(cached) " >&6 11852else 11853 CFLAGS_hold="$CFLAGS" 11854 CFLAGS="$CFLAGS -funwind-tables" 11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11856/* end confdefs.h. */ 11857static int f() { return 0; } 11858int 11859main () 11860{ 11861return f(); 11862 ; 11863 return 0; 11864} 11865_ACEOF 11866if ac_fn_c_try_compile "$LINENO"; then : 11867 libbacktrace_cv_c_unwind_tables=yes 11868else 11869 libbacktrace_cv_c_unwind_tables=no 11870fi 11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11872 CFLAGS="$CFLAGS_hold" 11873fi 11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5 11875$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; } 11876 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then 11877 EXTRA_FLAGS=-funwind-tables 11878 fi 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5 11880$as_echo_n "checking for -frandom-seed=string option... " >&6; } 11881if ${libbacktrace_cv_c_random_seed_string+:} false; then : 11882 $as_echo_n "(cached) " >&6 11883else 11884 CFLAGS_hold="$CFLAGS" 11885 CFLAGS="$CFLAGS -frandom-seed=conftest.lo" 11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11887/* end confdefs.h. */ 11888 11889int 11890main () 11891{ 11892return 0; 11893 ; 11894 return 0; 11895} 11896_ACEOF 11897if ac_fn_c_try_compile "$LINENO"; then : 11898 libbacktrace_cv_c_random_seed_string=yes 11899else 11900 libbacktrace_cv_c_random_seed_string=no 11901fi 11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11903 CFLAGS="$CFLAGS_hold" 11904fi 11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 11906$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } 11907 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then 11908 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" 11909 fi 11910fi 11911 11912 11913ac_ext=c 11914ac_cpp='$CPP $CPPFLAGS' 11915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11917ac_compiler_gnu=$ac_cv_c_compiler_gnu 11918 11919WARN_FLAGS= 11920save_CFLAGS="$CFLAGS" 11921for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ 11922 -Wmissing-prototypes -Wold-style-definition \ 11923 -Wmissing-format-attribute -Wcast-qual; do 11924 # Do the check with the no- prefix removed since gcc silently 11925 # accepts any -Wno-* option on purpose 11926 case $real_option in 11927 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 11928 *) option=$real_option ;; 11929 esac 11930 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 11931 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 11933$as_echo_n "checking whether $CC supports $option... " >&6; } 11934if eval \${$as_acx_Woption+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936else 11937 CFLAGS="$option" 11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11939/* end confdefs.h. */ 11940 11941int 11942main () 11943{ 11944 11945 ; 11946 return 0; 11947} 11948_ACEOF 11949if ac_fn_c_try_compile "$LINENO"; then : 11950 eval "$as_acx_Woption=yes" 11951else 11952 eval "$as_acx_Woption=no" 11953fi 11954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11955 11956fi 11957eval ac_res=\$$as_acx_Woption 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11959$as_echo "$ac_res" >&6; } 11960 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 11961 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" 11962fi 11963 done 11964CFLAGS="$save_CFLAGS" 11965ac_ext=c 11966ac_cpp='$CPP $CPPFLAGS' 11967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11969ac_compiler_gnu=$ac_cv_c_compiler_gnu 11970 11971 11972 11973if test -n "${with_target_subdir}"; then 11974 WARN_FLAGS="$WARN_FLAGS -Werror" 11975fi 11976 11977 11978 11979if test -n "${with_target_subdir}"; then 11980 11981 11982# Check whether --with-system-libunwind was given. 11983if test "${with_system_libunwind+set}" = set; then : 11984 withval=$with_system_libunwind; 11985fi 11986 11987 # If system-libunwind was not specifically set, pick a default setting. 11988 if test x$with_system_libunwind = x; then 11989 case ${target} in 11990 ia64-*-hpux*) with_system_libunwind=yes ;; 11991 *) with_system_libunwind=no ;; 11992 esac 11993 fi 11994 # Based on system-libunwind and target, do we have ipinfo? 11995 if test x$with_system_libunwind = xyes; then 11996 case ${target} in 11997 ia64-*-*) have_unwind_getipinfo=no ;; 11998 *) have_unwind_getipinfo=yes ;; 11999 esac 12000 else 12001 # Darwin before version 9 does not have _Unwind_GetIPInfo. 12002 12003 case ${target} in 12004 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; 12005 *) have_unwind_getipinfo=yes ;; 12006 esac 12007 12008 fi 12009 12010 if test x$have_unwind_getipinfo = xyes; then 12011 12012$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 12013 12014 fi 12015 12016else 12017 ac_save_CFFLAGS="$CFLAGS" 12018 CFLAGS="$CFLAGS -Werror-implicit-function-declaration" 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5 12020$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; } 12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12022/* end confdefs.h. */ 12023#include "unwind.h" 12024 struct _Unwind_Context *context; 12025 int ip_before_insn = 0; 12026int 12027main () 12028{ 12029return _Unwind_GetIPInfo (context, &ip_before_insn); 12030 ; 12031 return 0; 12032} 12033_ACEOF 12034if ac_fn_c_try_link "$LINENO"; then : 12035 have_unwind_getipinfo=yes 12036else 12037 have_unwind_getipinfo=no 12038fi 12039rm -f core conftest.err conftest.$ac_objext \ 12040 conftest$ac_exeext conftest.$ac_ext 12041 CFLAGS="$ac_save_CFLAGS" 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5 12043$as_echo "$have_unwind_getipinfo" >&6; } 12044 if test "$have_unwind_getipinfo" = "yes"; then 12045 12046$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 12047 12048 fi 12049fi 12050 12051# Enable --enable-host-shared. 12052# Check whether --enable-host-shared was given. 12053if test "${enable_host_shared+set}" = set; then : 12054 enableval=$enable_host_shared; PIC_FLAG=-fPIC 12055else 12056 PIC_FLAG= 12057fi 12058 12059 12060 12061# Test for __sync support. 12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 12063$as_echo_n "checking __sync extensions... " >&6; } 12064if ${libbacktrace_cv_sys_sync+:} false; then : 12065 $as_echo_n "(cached) " >&6 12066else 12067 if test -n "${with_target_subdir}"; then 12068 case "${host}" in 12069 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;; 12070 *) libbacktrace_cv_sys_sync=yes ;; 12071 esac 12072 else 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12074/* end confdefs.h. */ 12075int i; 12076int 12077main () 12078{ 12079__sync_bool_compare_and_swap (&i, i, i); 12080 __sync_lock_test_and_set (&i, 1); 12081 __sync_lock_release (&i); 12082 ; 12083 return 0; 12084} 12085_ACEOF 12086if ac_fn_c_try_link "$LINENO"; then : 12087 libbacktrace_cv_sys_sync=yes 12088else 12089 libbacktrace_cv_sys_sync=no 12090fi 12091rm -f core conftest.err conftest.$ac_objext \ 12092 conftest$ac_exeext conftest.$ac_ext 12093 fi 12094fi 12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5 12096$as_echo "$libbacktrace_cv_sys_sync" >&6; } 12097BACKTRACE_SUPPORTS_THREADS=0 12098if test "$libbacktrace_cv_sys_sync" = "yes"; then 12099 BACKTRACE_SUPPORTS_THREADS=1 12100 12101$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h 12102 12103fi 12104 12105 12106# Test for __atomic support. 12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5 12108$as_echo_n "checking __atomic extensions... " >&6; } 12109if ${libbacktrace_cv_sys_atomic+:} false; then : 12110 $as_echo_n "(cached) " >&6 12111else 12112 if test -n "${with_target_subdir}"; then 12113 libbacktrace_cv_sys_atomic=yes 12114 else 12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12116/* end confdefs.h. */ 12117int i; 12118int 12119main () 12120{ 12121__atomic_load_n (&i, __ATOMIC_ACQUIRE); 12122 __atomic_store_n (&i, 1, __ATOMIC_RELEASE); 12123 ; 12124 return 0; 12125} 12126_ACEOF 12127if ac_fn_c_try_link "$LINENO"; then : 12128 libbacktrace_cv_sys_atomic=yes 12129else 12130 libbacktrace_cv_sys_atomic=no 12131fi 12132rm -f core conftest.err conftest.$ac_objext \ 12133 conftest$ac_exeext conftest.$ac_ext 12134 fi 12135fi 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5 12137$as_echo "$libbacktrace_cv_sys_atomic" >&6; } 12138if test "$libbacktrace_cv_sys_atomic" = "yes"; then 12139 12140$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h 12141 12142fi 12143 12144# The library needs to be able to read the executable itself. Compile 12145# a file to determine the executable format. The awk script 12146# filetype.awk prints out the file type. 12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 12148$as_echo_n "checking output filetype... " >&6; } 12149if ${libbacktrace_cv_sys_filetype+:} false; then : 12150 $as_echo_n "(cached) " >&6 12151else 12152 filetype= 12153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12154/* end confdefs.h. */ 12155int i; 12156int 12157main () 12158{ 12159int j; 12160 ; 12161 return 0; 12162} 12163_ACEOF 12164if ac_fn_c_try_compile "$LINENO"; then : 12165 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext` 12166else 12167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12169as_fn_error $? "compiler failed 12170See \`config.log' for more details" "$LINENO" 5; } 12171fi 12172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12173libbacktrace_cv_sys_filetype=$filetype 12174fi 12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5 12176$as_echo "$libbacktrace_cv_sys_filetype" >&6; } 12177 12178# Match the file type to decide what files to compile. 12179FORMAT_FILE= 12180backtrace_supports_data=yes 12181case "$libbacktrace_cv_sys_filetype" in 12182elf*) FORMAT_FILE="elf.lo" ;; 12183macho) FORMAT_FILE="macho.lo" ;; 12184pecoff) FORMAT_FILE="pecoff.lo" 12185 backtrace_supports_data=no 12186 ;; 12187xcoff*) FORMAT_FILE="xcoff.lo" 12188 backtrace_supports_data=no 12189 ;; 12190*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 12191$as_echo "$as_me: WARNING: could not determine output file type" >&2;} 12192 FORMAT_FILE="unknown.lo" 12193 backtrace_supported=no 12194 ;; 12195esac 12196 12197 12198# ELF defines. 12199elfsize= 12200case "$libbacktrace_cv_sys_filetype" in 12201elf32) elfsize=32 ;; 12202elf64) elfsize=64 ;; 12203*) elfsize=unused 12204esac 12205 12206cat >>confdefs.h <<_ACEOF 12207#define BACKTRACE_ELF_SIZE $elfsize 12208_ACEOF 12209 12210 if test "$FORMAT_FILE" = "elf.lo"; then 12211 HAVE_ELF_TRUE= 12212 HAVE_ELF_FALSE='#' 12213else 12214 HAVE_ELF_TRUE='#' 12215 HAVE_ELF_FALSE= 12216fi 12217 12218 12219# XCOFF defines. 12220xcoffsize= 12221case "$libbacktrace_cv_sys_filetype" in 12222xcoff32) xcoffsize=32 ;; 12223xcoff64) xcoffsize=64 ;; 12224*) xcoffsize=unused 12225esac 12226 12227cat >>confdefs.h <<_ACEOF 12228#define BACKTRACE_XCOFF_SIZE $xcoffsize 12229_ACEOF 12230 12231 12232BACKTRACE_SUPPORTED=0 12233if test "$backtrace_supported" = "yes"; then 12234 BACKTRACE_SUPPORTED=1 12235fi 12236 12237 12238BACKTRACE_SUPPORTS_DATA=0 12239if test "$backtrace_supports_data" = "yes"; then 12240 BACKTRACE_SUPPORTS_DATA=1 12241fi 12242 12243 12244for ac_header in sys/mman.h 12245do : 12246 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 12247if test "x$ac_cv_header_sys_mman_h" = xyes; then : 12248 cat >>confdefs.h <<_ACEOF 12249#define HAVE_SYS_MMAN_H 1 12250_ACEOF 12251 12252fi 12253 12254done 12255 12256if test "$ac_cv_header_sys_mman_h" = "no"; then 12257 have_mmap=no 12258else 12259 if test -n "${with_target_subdir}"; then 12260 # When built as a GCC target library, we can't do a link test. We 12261 # simply assume that if we have mman.h, we have mmap. 12262 have_mmap=yes 12263 case "${host}" in 12264 spu-*-*|*-*-msdosdjgpp) 12265 # The SPU does not have mmap, but it has a sys/mman.h header file 12266 # containing "mmap_eaddr" and the mmap flags, confusing the test. 12267 # DJGPP also has sys/man.h, but no mmap 12268 have_mmap=no ;; 12269 esac 12270 else 12271 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 12272if test "x$ac_cv_func_mmap" = xyes; then : 12273 have_mmap=yes 12274else 12275 have_mmap=no 12276fi 12277 12278 fi 12279fi 12280 12281case "${host_os}" in 12282darwin*) 12283 have_mmap=no ;; 12284esac 12285 12286if test "$have_mmap" = "no"; then 12287 VIEW_FILE=read.lo 12288 ALLOC_FILE=alloc.lo 12289else 12290 VIEW_FILE=mmapio.lo 12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12292/* end confdefs.h. */ 12293 12294#include <sys/mman.h> 12295#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) 12296 #error no MAP_ANONYMOUS 12297#endif 12298 12299_ACEOF 12300if ac_fn_c_try_cpp "$LINENO"; then : 12301 ALLOC_FILE=alloc.lo 12302else 12303 ALLOC_FILE=alloc.lo 12304fi 12305rm -f conftest.err conftest.i conftest.$ac_ext 12306fi 12307 12308 12309 12310BACKTRACE_USES_MALLOC=0 12311if test "$ALLOC_FILE" = "alloc.lo"; then 12312 BACKTRACE_USES_MALLOC=1 12313fi 12314 12315 12316# Check for dl_iterate_phdr. 12317for ac_header in link.h 12318do : 12319 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" 12320if test "x$ac_cv_header_link_h" = xyes; then : 12321 cat >>confdefs.h <<_ACEOF 12322#define HAVE_LINK_H 1 12323_ACEOF 12324 12325fi 12326 12327done 12328 12329if test "$ac_cv_header_link_h" = "no"; then 12330 have_dl_iterate_phdr=no 12331else 12332 if test -n "${with_target_subdir}"; then 12333 # When built as a GCC target library, we can't do a link test. 12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336#include <link.h> 12337 12338_ACEOF 12339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12340 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : 12341 have_dl_iterate_phdr=yes 12342else 12343 have_dl_iterate_phdr=no 12344fi 12345rm -f conftest* 12346 12347 case "${host}" in 12348 *-*-solaris2.10*) 12349 # Avoid dl_iterate_phdr on Solaris 10, where it is in the 12350 # header file but is only in -ldl. 12351 have_dl_iterate_phdr=no ;; 12352 esac 12353 else 12354 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" 12355if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then : 12356 have_dl_iterate_phdr=yes 12357else 12358 have_dl_iterate_phdr=no 12359fi 12360 12361 fi 12362fi 12363if test "$have_dl_iterate_phdr" = "yes"; then 12364 12365$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h 12366 12367fi 12368 12369# Check for header file for Mach-O image functions. 12370for ac_header in mach-o/dyld.h 12371do : 12372 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" 12373if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : 12374 cat >>confdefs.h <<_ACEOF 12375#define HAVE_MACH_O_DYLD_H 1 12376_ACEOF 12377 12378fi 12379 12380done 12381 12382 12383# Check for loadquery. 12384for ac_header in sys/ldr.h 12385do : 12386 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default" 12387if test "x$ac_cv_header_sys_ldr_h" = xyes; then : 12388 cat >>confdefs.h <<_ACEOF 12389#define HAVE_SYS_LDR_H 1 12390_ACEOF 12391 12392fi 12393 12394done 12395 12396if test "$ac_cv_header_sys_ldr_h" = "no"; then 12397 have_loadquery=no 12398else 12399 if test -n "${with_target_subdir}"; then 12400 # When built as a GCC target library, we can't do a link test. 12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12402/* end confdefs.h. */ 12403#include <sys/ldr.h> 12404 12405_ACEOF 12406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12407 $EGREP "loadquery" >/dev/null 2>&1; then : 12408 have_loadquery=yes 12409else 12410 have_loadquery=no 12411fi 12412rm -f conftest* 12413 12414 else 12415 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" 12416if test "x$ac_cv_func_loadquery" = xyes; then : 12417 have_loadquery=yes 12418else 12419 have_loadquery=no 12420fi 12421 12422 fi 12423fi 12424if test "$have_loadquery" = "yes"; then 12425 12426$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h 12427 12428fi 12429 12430# Check for the fcntl function. 12431if test -n "${with_target_subdir}"; then 12432 case "${host}" in 12433 *-*-mingw*) have_fcntl=no ;; 12434 spu-*-*) have_fcntl=no ;; 12435 *) have_fcntl=yes ;; 12436 esac 12437else 12438 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 12439if test "x$ac_cv_func_fcntl" = xyes; then : 12440 have_fcntl=yes 12441else 12442 have_fcntl=no 12443fi 12444 12445fi 12446if test "$have_fcntl" = "yes"; then 12447 12448$as_echo "#define HAVE_FCNTL 1" >>confdefs.h 12449 12450fi 12451 12452ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 12453if test "x$ac_cv_have_decl_strnlen" = xyes; then : 12454 ac_have_decl=1 12455else 12456 ac_have_decl=0 12457fi 12458 12459cat >>confdefs.h <<_ACEOF 12460#define HAVE_DECL_STRNLEN $ac_have_decl 12461_ACEOF 12462 12463for ac_func in lstat readlink 12464do : 12465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12466ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12467if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12468 cat >>confdefs.h <<_ACEOF 12469#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12470_ACEOF 12471 12472fi 12473done 12474 12475 12476# Check for getexecname function. 12477if test -n "${with_target_subdir}"; then 12478 case "${host}" in 12479 *-*-solaris2*) have_getexecname=yes ;; 12480 *) have_getexecname=no ;; 12481 esac 12482else 12483 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" 12484if test "x$ac_cv_func_getexecname" = xyes; then : 12485 have_getexecname=yes 12486else 12487 have_getexecname=no 12488fi 12489 12490fi 12491if test "$have_getexecname" = "yes"; then 12492 12493$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h 12494 12495fi 12496 12497# Check for sysctl definitions. 12498 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5 12500$as_echo_n "checking for KERN_PROC... " >&6; } 12501if ${libbacktrace_cv_proc+:} false; then : 12502 $as_echo_n "(cached) " >&6 12503else 12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12505/* end confdefs.h. */ 12506 12507#include <sys/types.h> 12508#include <sys/sysctl.h> 12509 12510int 12511main () 12512{ 12513int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME; 12514 ; 12515 return 0; 12516} 12517_ACEOF 12518if ac_fn_c_try_compile "$LINENO"; then : 12519 libbacktrace_cv_proc=yes 12520else 12521 libbacktrace_cv_proc=no 12522fi 12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12524fi 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5 12526$as_echo "$libbacktrace_cv_proc" >&6; } 12527if test "$libbacktrace_cv_proc" = "yes"; then 12528 12529$as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h 12530 12531fi 12532 12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5 12534$as_echo_n "checking for KERN_PROG_ARGS... " >&6; } 12535if ${libbacktrace_cv_procargs+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12539/* end confdefs.h. */ 12540 12541#include <sys/types.h> 12542#include <sys/sysctl.h> 12543 12544int 12545main () 12546{ 12547int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME; 12548 ; 12549 return 0; 12550} 12551_ACEOF 12552if ac_fn_c_try_compile "$LINENO"; then : 12553 libbacktrace_cv_procargs=yes 12554else 12555 libbacktrace_cv_procargs=no 12556fi 12557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12558fi 12559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5 12560$as_echo "$libbacktrace_cv_procargs" >&6; } 12561if test "$libbacktrace_cv_procargs" = "yes"; then 12562 12563$as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h 12564 12565fi 12566 12567# Check for the clock_gettime function. 12568for ac_func in clock_gettime 12569do : 12570 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12571if test "x$ac_cv_func_clock_gettime" = xyes; then : 12572 cat >>confdefs.h <<_ACEOF 12573#define HAVE_CLOCK_GETTIME 1 12574_ACEOF 12575 12576fi 12577done 12578 12579clock_gettime_link= 12580# At least for glibc, clock_gettime is in librt. But don't 12581# pull that in if it still doesn't give us the function we want. This 12582# test is copied from libgomp, and modified to not link in -lrt as 12583# we're using this for test timing only. 12584if test "$ac_cv_func_clock_gettime" = no; then 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 12586$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 12587if ${ac_cv_lib_rt_clock_gettime+:} false; then : 12588 $as_echo_n "(cached) " >&6 12589else 12590 ac_check_lib_save_LIBS=$LIBS 12591LIBS="-lrt $LIBS" 12592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12593/* end confdefs.h. */ 12594 12595/* Override any GCC internal prototype to avoid an error. 12596 Use char because int might match the return type of a GCC 12597 builtin and then its argument prototype would still apply. */ 12598#ifdef __cplusplus 12599extern "C" 12600#endif 12601char clock_gettime (); 12602int 12603main () 12604{ 12605return clock_gettime (); 12606 ; 12607 return 0; 12608} 12609_ACEOF 12610if ac_fn_c_try_link "$LINENO"; then : 12611 ac_cv_lib_rt_clock_gettime=yes 12612else 12613 ac_cv_lib_rt_clock_gettime=no 12614fi 12615rm -f core conftest.err conftest.$ac_objext \ 12616 conftest$ac_exeext conftest.$ac_ext 12617LIBS=$ac_check_lib_save_LIBS 12618fi 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 12620$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 12621if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 12622 CLOCK_GETTIME_LINK=-lrt 12623 12624$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 12625 12626fi 12627 12628fi 12629 12630 12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5 12632$as_echo_n "checking whether -pthread is supported... " >&6; } 12633if ${libgo_cv_lib_pthread+:} false; then : 12634 $as_echo_n "(cached) " >&6 12635else 12636 CFLAGS_hold=$CFLAGS 12637CFLAGS="$CFLAGS -pthread" 12638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12639/* end confdefs.h. */ 12640int i; 12641_ACEOF 12642if ac_fn_c_try_compile "$LINENO"; then : 12643 libgo_cv_lib_pthread=yes 12644else 12645 libgo_cv_lib_pthread=no 12646fi 12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12648CFLAGS=$CFLAGS_hold 12649fi 12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5 12651$as_echo "$libgo_cv_lib_pthread" >&6; } 12652PTHREAD_CFLAGS= 12653if test "$libgo_cv_lib_pthread" = yes; then 12654 PTHREAD_CFLAGS=-pthread 12655fi 12656 12657 12658 if test "$libgo_cv_lib_pthread" = yes; then 12659 HAVE_PTHREAD_TRUE= 12660 HAVE_PTHREAD_FALSE='#' 12661else 12662 HAVE_PTHREAD_TRUE='#' 12663 HAVE_PTHREAD_FALSE= 12664fi 12665 12666 12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5 12668$as_echo_n "checking whether -gdwarf-5 is supported... " >&6; } 12669if ${libbacktrace_cv_lib_dwarf5+:} false; then : 12670 $as_echo_n "(cached) " >&6 12671else 12672 CFLAGS_hold=$CFLAGS 12673CFLAGS="$CFLAGS -gdwarf-5" 12674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12675/* end confdefs.h. */ 12676int i; 12677_ACEOF 12678if ac_fn_c_try_compile "$LINENO"; then : 12679 libbacktrace_cv_lib_dwarf5=yes 12680else 12681 libbacktrace_cv_lib_dwarf5=no 12682fi 12683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12684CFLAGS=$CFLAGS_hold 12685fi 12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5 12687$as_echo "$libbacktrace_cv_lib_dwarf5" >&6; } 12688 if test "$libbacktrace_cv_lib_dwarf5" = yes; then 12689 HAVE_DWARF5_TRUE= 12690 HAVE_DWARF5_FALSE='#' 12691else 12692 HAVE_DWARF5_TRUE='#' 12693 HAVE_DWARF5_FALSE= 12694fi 12695 12696 12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 12698$as_echo_n "checking for compress in -lz... " >&6; } 12699if ${ac_cv_lib_z_compress+:} false; then : 12700 $as_echo_n "(cached) " >&6 12701else 12702 ac_check_lib_save_LIBS=$LIBS 12703LIBS="-lz $LIBS" 12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12705/* end confdefs.h. */ 12706 12707/* Override any GCC internal prototype to avoid an error. 12708 Use char because int might match the return type of a GCC 12709 builtin and then its argument prototype would still apply. */ 12710#ifdef __cplusplus 12711extern "C" 12712#endif 12713char compress (); 12714int 12715main () 12716{ 12717return compress (); 12718 ; 12719 return 0; 12720} 12721_ACEOF 12722if ac_fn_c_try_link "$LINENO"; then : 12723 ac_cv_lib_z_compress=yes 12724else 12725 ac_cv_lib_z_compress=no 12726fi 12727rm -f core conftest.err conftest.$ac_objext \ 12728 conftest$ac_exeext conftest.$ac_ext 12729LIBS=$ac_check_lib_save_LIBS 12730fi 12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 12732$as_echo "$ac_cv_lib_z_compress" >&6; } 12733if test "x$ac_cv_lib_z_compress" = xyes; then : 12734 12735$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 12736 12737fi 12738 12739 if test "$ac_cv_lib_z_compress" = yes; then 12740 HAVE_ZLIB_TRUE= 12741 HAVE_ZLIB_FALSE='#' 12742else 12743 HAVE_ZLIB_TRUE='#' 12744 HAVE_ZLIB_FALSE= 12745fi 12746 12747 12748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5 12749$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; } 12750if ${libgo_cv_ld_compress+:} false; then : 12751 $as_echo_n "(cached) " >&6 12752else 12753 LDFLAGS_hold=$LDFLAGS 12754LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu" 12755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12756/* end confdefs.h. */ 12757 12758int 12759main () 12760{ 12761 12762 ; 12763 return 0; 12764} 12765_ACEOF 12766if ac_fn_c_try_link "$LINENO"; then : 12767 libgo_cv_ld_compress=yes 12768else 12769 libgo_cv_ld_compress=no 12770fi 12771rm -f core conftest.err conftest.$ac_objext \ 12772 conftest$ac_exeext conftest.$ac_ext 12773LDFLAGS=$LDFLAGS_hold 12774fi 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5 12776$as_echo "$libgo_cv_ld_compress" >&6; } 12777 if test "$libgo_cv_ld_compress" = yes; then 12778 HAVE_COMPRESSED_DEBUG_TRUE= 12779 HAVE_COMPRESSED_DEBUG_FALSE='#' 12780else 12781 HAVE_COMPRESSED_DEBUG_TRUE='#' 12782 HAVE_COMPRESSED_DEBUG_FALSE= 12783fi 12784 12785 12786 12787# Extract the first word of "objcopy", so it can be a program name with args. 12788set dummy objcopy; ac_word=$2 12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12790$as_echo_n "checking for $ac_word... " >&6; } 12791if ${ac_cv_prog_OBJCOPY+:} false; then : 12792 $as_echo_n "(cached) " >&6 12793else 12794 if test -n "$OBJCOPY"; then 12795 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 12796else 12797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12798for as_dir in $PATH 12799do 12800 IFS=$as_save_IFS 12801 test -z "$as_dir" && as_dir=. 12802 for ac_exec_ext in '' $ac_executable_extensions; do 12803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12804 ac_cv_prog_OBJCOPY="objcopy" 12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12806 break 2 12807 fi 12808done 12809 done 12810IFS=$as_save_IFS 12811 12812fi 12813fi 12814OBJCOPY=$ac_cv_prog_OBJCOPY 12815if test -n "$OBJCOPY"; then 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 12817$as_echo "$OBJCOPY" >&6; } 12818else 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12820$as_echo "no" >&6; } 12821fi 12822 12823 12824# Extract the first word of "readelf", so it can be a program name with args. 12825set dummy readelf; ac_word=$2 12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12827$as_echo_n "checking for $ac_word... " >&6; } 12828if ${ac_cv_prog_READELF+:} false; then : 12829 $as_echo_n "(cached) " >&6 12830else 12831 if test -n "$READELF"; then 12832 ac_cv_prog_READELF="$READELF" # Let the user override the test. 12833else 12834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12835for as_dir in $PATH 12836do 12837 IFS=$as_save_IFS 12838 test -z "$as_dir" && as_dir=. 12839 for ac_exec_ext in '' $ac_executable_extensions; do 12840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12841 ac_cv_prog_READELF="readelf" 12842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12843 break 2 12844 fi 12845done 12846 done 12847IFS=$as_save_IFS 12848 12849fi 12850fi 12851READELF=$ac_cv_prog_READELF 12852if test -n "$READELF"; then 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 12854$as_echo "$READELF" >&6; } 12855else 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12857$as_echo "no" >&6; } 12858fi 12859 12860 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5 12862$as_echo_n "checking whether objcopy supports debuglink... " >&6; } 12863if ${libbacktrace_cv_objcopy_debuglink+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 if test -n "${with_target_subdir}"; then 12867 libbacktrace_cv_objcopy_debuglink=no 12868elif ! test -n "${OBJCOPY}"; then 12869 libbacktrace_cv_objcopy_debuglink=no 12870elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then 12871 rm -f /tmp/ls$$ 12872 libbacktrace_cv_objcopy_debuglink=yes 12873else 12874 libbacktrace_cv_objcopy_debuglink=no 12875fi 12876fi 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5 12878$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; } 12879 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then 12880 HAVE_OBJCOPY_DEBUGLINK_TRUE= 12881 HAVE_OBJCOPY_DEBUGLINK_FALSE='#' 12882else 12883 HAVE_OBJCOPY_DEBUGLINK_TRUE='#' 12884 HAVE_OBJCOPY_DEBUGLINK_FALSE= 12885fi 12886 12887 12888 12889# Extract the first word of "dsymutil", so it can be a program name with args. 12890set dummy dsymutil; ac_word=$2 12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12892$as_echo_n "checking for $ac_word... " >&6; } 12893if ${ac_cv_prog_DSYMUTIL+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895else 12896 if test -n "$DSYMUTIL"; then 12897 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 12898else 12899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12900for as_dir in $PATH 12901do 12902 IFS=$as_save_IFS 12903 test -z "$as_dir" && as_dir=. 12904 for ac_exec_ext in '' $ac_executable_extensions; do 12905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12906 ac_cv_prog_DSYMUTIL="dsymutil" 12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12908 break 2 12909 fi 12910done 12911 done 12912IFS=$as_save_IFS 12913 12914fi 12915fi 12916DSYMUTIL=$ac_cv_prog_DSYMUTIL 12917if test -n "$DSYMUTIL"; then 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 12919$as_echo "$DSYMUTIL" >&6; } 12920else 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12922$as_echo "no" >&6; } 12923fi 12924 12925 12926 if test -n "${DSYMUTIL}"; then 12927 HAVE_DSYMUTIL_TRUE= 12928 HAVE_DSYMUTIL_FALSE='#' 12929else 12930 HAVE_DSYMUTIL_TRUE='#' 12931 HAVE_DSYMUTIL_FALSE= 12932fi 12933 12934 12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5 12936$as_echo_n "checking whether tests can run... " >&6; } 12937if ${libbacktrace_cv_sys_native+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 if test "$cross_compiling" = yes; then : 12941 libbacktrace_cv_sys_native=no 12942else 12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12944/* end confdefs.h. */ 12945 12946int 12947main () 12948{ 12949return 0; 12950 ; 12951 return 0; 12952} 12953_ACEOF 12954if ac_fn_c_try_run "$LINENO"; then : 12955 libbacktrace_cv_sys_native=yes 12956else 12957 libbacktrace_cv_sys_native=no 12958fi 12959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12960 conftest.$ac_objext conftest.beam conftest.$ac_ext 12961fi 12962 12963fi 12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5 12965$as_echo "$libbacktrace_cv_sys_native" >&6; } 12966 if test "$libbacktrace_cv_sys_native" = "yes"; then 12967 NATIVE_TRUE= 12968 NATIVE_FALSE='#' 12969else 12970 NATIVE_TRUE='#' 12971 NATIVE_FALSE= 12972fi 12973 12974 12975if test "${multilib}" = "yes"; then 12976 multilib_arg="--enable-multilib" 12977else 12978 multilib_arg= 12979fi 12980 12981ac_config_files="$ac_config_files Makefile backtrace-supported.h" 12982 12983ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh" 12984 12985 12986# We need multilib support, but only if configuring for the target. 12987ac_config_commands="$ac_config_commands default" 12988 12989 12990cat >confcache <<\_ACEOF 12991# This file is a shell script that caches the results of configure 12992# tests run on this system so they can be shared between configure 12993# scripts and configure runs, see configure's option --config-cache. 12994# It is not useful on other systems. If it contains results you don't 12995# want to keep, you may remove or edit it. 12996# 12997# config.status only pays attention to the cache file if you give it 12998# the --recheck option to rerun configure. 12999# 13000# `ac_cv_env_foo' variables (set or unset) will be overridden when 13001# loading this file, other *unset* `ac_cv_foo' will be assigned the 13002# following values. 13003 13004_ACEOF 13005 13006# The following way of writing the cache mishandles newlines in values, 13007# but we know of no workaround that is simple, portable, and efficient. 13008# So, we kill variables containing newlines. 13009# Ultrix sh set writes to stderr and can't be redirected directly, 13010# and sets the high bit in the cache file unless we assign to the vars. 13011( 13012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13013 eval ac_val=\$$ac_var 13014 case $ac_val in #( 13015 *${as_nl}*) 13016 case $ac_var in #( 13017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13018$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13019 esac 13020 case $ac_var in #( 13021 _ | IFS | as_nl) ;; #( 13022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13023 *) { eval $ac_var=; unset $ac_var;} ;; 13024 esac ;; 13025 esac 13026 done 13027 13028 (set) 2>&1 | 13029 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13030 *${as_nl}ac_space=\ *) 13031 # `set' does not quote correctly, so add quotes: double-quote 13032 # substitution turns \\\\ into \\, and sed turns \\ into \. 13033 sed -n \ 13034 "s/'/'\\\\''/g; 13035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13036 ;; #( 13037 *) 13038 # `set' quotes correctly as required by POSIX, so do not add quotes. 13039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13040 ;; 13041 esac | 13042 sort 13043) | 13044 sed ' 13045 /^ac_cv_env_/b end 13046 t clear 13047 :clear 13048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13049 t end 13050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13051 :end' >>confcache 13052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13053 if test -w "$cache_file"; then 13054 if test "x$cache_file" != "x/dev/null"; then 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13056$as_echo "$as_me: updating cache $cache_file" >&6;} 13057 if test ! -f "$cache_file" || test -h "$cache_file"; then 13058 cat confcache >"$cache_file" 13059 else 13060 case $cache_file in #( 13061 */* | ?:*) 13062 mv -f confcache "$cache_file"$$ && 13063 mv -f "$cache_file"$$ "$cache_file" ;; #( 13064 *) 13065 mv -f confcache "$cache_file" ;; 13066 esac 13067 fi 13068 fi 13069 else 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13071$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13072 fi 13073fi 13074rm -f confcache 13075 13076test "x$prefix" = xNONE && prefix=$ac_default_prefix 13077# Let make expand exec_prefix. 13078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13079 13080DEFS=-DHAVE_CONFIG_H 13081 13082ac_libobjs= 13083ac_ltlibobjs= 13084U= 13085for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13086 # 1. Remove the extension, and $U if already installed. 13087 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13088 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13089 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13090 # will be set to the directory where LIBOBJS objects are built. 13091 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13092 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13093done 13094LIBOBJS=$ac_libobjs 13095 13096LTLIBOBJS=$ac_ltlibobjs 13097 13098 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13100$as_echo_n "checking that generated files are newer than configure... " >&6; } 13101 if test -n "$am_sleep_pid"; then 13102 # Hide warnings about reused PIDs. 13103 wait $am_sleep_pid 2>/dev/null 13104 fi 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13106$as_echo "done" >&6; } 13107 if test -n "$EXEEXT"; then 13108 am__EXEEXT_TRUE= 13109 am__EXEEXT_FALSE='#' 13110else 13111 am__EXEEXT_TRUE='#' 13112 am__EXEEXT_FALSE= 13113fi 13114 13115if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13116 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13117Usually this means the macro was only invoked conditionally." "$LINENO" 5 13118fi 13119if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then 13120 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined. 13121Usually this means the macro was only invoked conditionally." "$LINENO" 5 13122fi 13123if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then 13124 as_fn_error $? "conditional \"HAVE_ELF\" was never defined. 13125Usually this means the macro was only invoked conditionally." "$LINENO" 5 13126fi 13127if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then 13128 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined. 13129Usually this means the macro was only invoked conditionally." "$LINENO" 5 13130fi 13131if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then 13132 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined. 13133Usually this means the macro was only invoked conditionally." "$LINENO" 5 13134fi 13135if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then 13136 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. 13137Usually this means the macro was only invoked conditionally." "$LINENO" 5 13138fi 13139if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then 13140 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined. 13141Usually this means the macro was only invoked conditionally." "$LINENO" 5 13142fi 13143if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then 13144 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined. 13145Usually this means the macro was only invoked conditionally." "$LINENO" 5 13146fi 13147if test -z "${HAVE_DSYMUTIL_TRUE}" && test -z "${HAVE_DSYMUTIL_FALSE}"; then 13148 as_fn_error $? "conditional \"HAVE_DSYMUTIL\" was never defined. 13149Usually this means the macro was only invoked conditionally." "$LINENO" 5 13150fi 13151if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then 13152 as_fn_error $? "conditional \"NATIVE\" was never defined. 13153Usually this means the macro was only invoked conditionally." "$LINENO" 5 13154fi 13155 13156: "${CONFIG_STATUS=./config.status}" 13157ac_write_fail=0 13158ac_clean_files_save=$ac_clean_files 13159ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13160{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13161$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13162as_write_fail=0 13163cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13164#! $SHELL 13165# Generated by $as_me. 13166# Run this file to recreate the current configuration. 13167# Compiler output produced by configure, useful for debugging 13168# configure, is in config.log if it exists. 13169 13170debug=false 13171ac_cs_recheck=false 13172ac_cs_silent=false 13173 13174SHELL=\${CONFIG_SHELL-$SHELL} 13175export SHELL 13176_ASEOF 13177cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13178## -------------------- ## 13179## M4sh Initialization. ## 13180## -------------------- ## 13181 13182# Be more Bourne compatible 13183DUALCASE=1; export DUALCASE # for MKS sh 13184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13185 emulate sh 13186 NULLCMD=: 13187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13188 # is contrary to our usage. Disable this feature. 13189 alias -g '${1+"$@"}'='"$@"' 13190 setopt NO_GLOB_SUBST 13191else 13192 case `(set -o) 2>/dev/null` in #( 13193 *posix*) : 13194 set -o posix ;; #( 13195 *) : 13196 ;; 13197esac 13198fi 13199 13200 13201as_nl=' 13202' 13203export as_nl 13204# Printing a long string crashes Solaris 7 /usr/bin/printf. 13205as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13206as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13208# Prefer a ksh shell builtin over an external printf program on Solaris, 13209# but without wasting forks for bash or zsh. 13210if test -z "$BASH_VERSION$ZSH_VERSION" \ 13211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13212 as_echo='print -r --' 13213 as_echo_n='print -rn --' 13214elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13215 as_echo='printf %s\n' 13216 as_echo_n='printf %s' 13217else 13218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13220 as_echo_n='/usr/ucb/echo -n' 13221 else 13222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13223 as_echo_n_body='eval 13224 arg=$1; 13225 case $arg in #( 13226 *"$as_nl"*) 13227 expr "X$arg" : "X\\(.*\\)$as_nl"; 13228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13229 esac; 13230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13231 ' 13232 export as_echo_n_body 13233 as_echo_n='sh -c $as_echo_n_body as_echo' 13234 fi 13235 export as_echo_body 13236 as_echo='sh -c $as_echo_body as_echo' 13237fi 13238 13239# The user is always right. 13240if test "${PATH_SEPARATOR+set}" != set; then 13241 PATH_SEPARATOR=: 13242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13244 PATH_SEPARATOR=';' 13245 } 13246fi 13247 13248 13249# IFS 13250# We need space, tab and new line, in precisely that order. Quoting is 13251# there to prevent editors from complaining about space-tab. 13252# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13253# splitting by setting IFS to empty value.) 13254IFS=" "" $as_nl" 13255 13256# Find who we are. Look in the path if we contain no directory separator. 13257as_myself= 13258case $0 in #(( 13259 *[\\/]* ) as_myself=$0 ;; 13260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13261for as_dir in $PATH 13262do 13263 IFS=$as_save_IFS 13264 test -z "$as_dir" && as_dir=. 13265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13266 done 13267IFS=$as_save_IFS 13268 13269 ;; 13270esac 13271# We did not find ourselves, most probably we were run as `sh COMMAND' 13272# in which case we are not to be found in the path. 13273if test "x$as_myself" = x; then 13274 as_myself=$0 13275fi 13276if test ! -f "$as_myself"; then 13277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13278 exit 1 13279fi 13280 13281# Unset variables that we do not need and which cause bugs (e.g. in 13282# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13283# suppresses any "Segmentation fault" message there. '((' could 13284# trigger a bug in pdksh 5.2.14. 13285for as_var in BASH_ENV ENV MAIL MAILPATH 13286do eval test x\${$as_var+set} = xset \ 13287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13288done 13289PS1='$ ' 13290PS2='> ' 13291PS4='+ ' 13292 13293# NLS nuisances. 13294LC_ALL=C 13295export LC_ALL 13296LANGUAGE=C 13297export LANGUAGE 13298 13299# CDPATH. 13300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13301 13302 13303# as_fn_error STATUS ERROR [LINENO LOG_FD] 13304# ---------------------------------------- 13305# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13306# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13307# script with STATUS, using 1 if that was 0. 13308as_fn_error () 13309{ 13310 as_status=$1; test $as_status -eq 0 && as_status=1 13311 if test "$4"; then 13312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13314 fi 13315 $as_echo "$as_me: error: $2" >&2 13316 as_fn_exit $as_status 13317} # as_fn_error 13318 13319 13320# as_fn_set_status STATUS 13321# ----------------------- 13322# Set $? to STATUS, without forking. 13323as_fn_set_status () 13324{ 13325 return $1 13326} # as_fn_set_status 13327 13328# as_fn_exit STATUS 13329# ----------------- 13330# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13331as_fn_exit () 13332{ 13333 set +e 13334 as_fn_set_status $1 13335 exit $1 13336} # as_fn_exit 13337 13338# as_fn_unset VAR 13339# --------------- 13340# Portably unset VAR. 13341as_fn_unset () 13342{ 13343 { eval $1=; unset $1;} 13344} 13345as_unset=as_fn_unset 13346# as_fn_append VAR VALUE 13347# ---------------------- 13348# Append the text in VALUE to the end of the definition contained in VAR. Take 13349# advantage of any shell optimizations that allow amortized linear growth over 13350# repeated appends, instead of the typical quadratic growth present in naive 13351# implementations. 13352if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13353 eval 'as_fn_append () 13354 { 13355 eval $1+=\$2 13356 }' 13357else 13358 as_fn_append () 13359 { 13360 eval $1=\$$1\$2 13361 } 13362fi # as_fn_append 13363 13364# as_fn_arith ARG... 13365# ------------------ 13366# Perform arithmetic evaluation on the ARGs, and store the result in the 13367# global $as_val. Take advantage of shells that can avoid forks. The arguments 13368# must be portable across $(()) and expr. 13369if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13370 eval 'as_fn_arith () 13371 { 13372 as_val=$(( $* )) 13373 }' 13374else 13375 as_fn_arith () 13376 { 13377 as_val=`expr "$@" || test $? -eq 1` 13378 } 13379fi # as_fn_arith 13380 13381 13382if expr a : '\(a\)' >/dev/null 2>&1 && 13383 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13384 as_expr=expr 13385else 13386 as_expr=false 13387fi 13388 13389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13390 as_basename=basename 13391else 13392 as_basename=false 13393fi 13394 13395if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13396 as_dirname=dirname 13397else 13398 as_dirname=false 13399fi 13400 13401as_me=`$as_basename -- "$0" || 13402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13403 X"$0" : 'X\(//\)$' \| \ 13404 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13405$as_echo X/"$0" | 13406 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13407 s//\1/ 13408 q 13409 } 13410 /^X\/\(\/\/\)$/{ 13411 s//\1/ 13412 q 13413 } 13414 /^X\/\(\/\).*/{ 13415 s//\1/ 13416 q 13417 } 13418 s/.*/./; q'` 13419 13420# Avoid depending upon Character Ranges. 13421as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13422as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13423as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13424as_cr_digits='0123456789' 13425as_cr_alnum=$as_cr_Letters$as_cr_digits 13426 13427ECHO_C= ECHO_N= ECHO_T= 13428case `echo -n x` in #((((( 13429-n*) 13430 case `echo 'xy\c'` in 13431 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13432 xy) ECHO_C='\c';; 13433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13434 ECHO_T=' ';; 13435 esac;; 13436*) 13437 ECHO_N='-n';; 13438esac 13439 13440rm -f conf$$ conf$$.exe conf$$.file 13441if test -d conf$$.dir; then 13442 rm -f conf$$.dir/conf$$.file 13443else 13444 rm -f conf$$.dir 13445 mkdir conf$$.dir 2>/dev/null 13446fi 13447if (echo >conf$$.file) 2>/dev/null; then 13448 if ln -s conf$$.file conf$$ 2>/dev/null; then 13449 as_ln_s='ln -s' 13450 # ... but there are two gotchas: 13451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13453 # In both cases, we have to default to `cp -pR'. 13454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13455 as_ln_s='cp -pR' 13456 elif ln conf$$.file conf$$ 2>/dev/null; then 13457 as_ln_s=ln 13458 else 13459 as_ln_s='cp -pR' 13460 fi 13461else 13462 as_ln_s='cp -pR' 13463fi 13464rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13465rmdir conf$$.dir 2>/dev/null 13466 13467 13468# as_fn_mkdir_p 13469# ------------- 13470# Create "$as_dir" as a directory, including parents if necessary. 13471as_fn_mkdir_p () 13472{ 13473 13474 case $as_dir in #( 13475 -*) as_dir=./$as_dir;; 13476 esac 13477 test -d "$as_dir" || eval $as_mkdir_p || { 13478 as_dirs= 13479 while :; do 13480 case $as_dir in #( 13481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13482 *) as_qdir=$as_dir;; 13483 esac 13484 as_dirs="'$as_qdir' $as_dirs" 13485 as_dir=`$as_dirname -- "$as_dir" || 13486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13487 X"$as_dir" : 'X\(//\)[^/]' \| \ 13488 X"$as_dir" : 'X\(//\)$' \| \ 13489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13490$as_echo X"$as_dir" | 13491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13492 s//\1/ 13493 q 13494 } 13495 /^X\(\/\/\)[^/].*/{ 13496 s//\1/ 13497 q 13498 } 13499 /^X\(\/\/\)$/{ 13500 s//\1/ 13501 q 13502 } 13503 /^X\(\/\).*/{ 13504 s//\1/ 13505 q 13506 } 13507 s/.*/./; q'` 13508 test -d "$as_dir" && break 13509 done 13510 test -z "$as_dirs" || eval "mkdir $as_dirs" 13511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13512 13513 13514} # as_fn_mkdir_p 13515if mkdir -p . 2>/dev/null; then 13516 as_mkdir_p='mkdir -p "$as_dir"' 13517else 13518 test -d ./-p && rmdir ./-p 13519 as_mkdir_p=false 13520fi 13521 13522 13523# as_fn_executable_p FILE 13524# ----------------------- 13525# Test if FILE is an executable regular file. 13526as_fn_executable_p () 13527{ 13528 test -f "$1" && test -x "$1" 13529} # as_fn_executable_p 13530as_test_x='test -x' 13531as_executable_p=as_fn_executable_p 13532 13533# Sed expression to map a string onto a valid CPP name. 13534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13535 13536# Sed expression to map a string onto a valid variable name. 13537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13538 13539 13540exec 6>&1 13541## ----------------------------------- ## 13542## Main body of $CONFIG_STATUS script. ## 13543## ----------------------------------- ## 13544_ASEOF 13545test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13546 13547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13548# Save the log message, to keep $0 and so on meaningful, and to 13549# report actual input values of CONFIG_FILES etc. instead of their 13550# values after options handling. 13551ac_log=" 13552This file was extended by package-unused $as_me version-unused, which was 13553generated by GNU Autoconf 2.69. Invocation command line was 13554 13555 CONFIG_FILES = $CONFIG_FILES 13556 CONFIG_HEADERS = $CONFIG_HEADERS 13557 CONFIG_LINKS = $CONFIG_LINKS 13558 CONFIG_COMMANDS = $CONFIG_COMMANDS 13559 $ $0 $@ 13560 13561on `(hostname || uname -n) 2>/dev/null | sed 1q` 13562" 13563 13564_ACEOF 13565 13566case $ac_config_files in *" 13567"*) set x $ac_config_files; shift; ac_config_files=$*;; 13568esac 13569 13570case $ac_config_headers in *" 13571"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13572esac 13573 13574 13575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13576# Files that config.status was made for. 13577config_files="$ac_config_files" 13578config_headers="$ac_config_headers" 13579config_commands="$ac_config_commands" 13580 13581_ACEOF 13582 13583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13584ac_cs_usage="\ 13585\`$as_me' instantiates files and other configuration actions 13586from templates according to the current configuration. Unless the files 13587and actions are specified as TAGs, all are instantiated by default. 13588 13589Usage: $0 [OPTION]... [TAG]... 13590 13591 -h, --help print this help, then exit 13592 -V, --version print version number and configuration settings, then exit 13593 --config print configuration, then exit 13594 -q, --quiet, --silent 13595 do not print progress messages 13596 -d, --debug don't remove temporary files 13597 --recheck update $as_me by reconfiguring in the same conditions 13598 --file=FILE[:TEMPLATE] 13599 instantiate the configuration file FILE 13600 --header=FILE[:TEMPLATE] 13601 instantiate the configuration header FILE 13602 13603Configuration files: 13604$config_files 13605 13606Configuration headers: 13607$config_headers 13608 13609Configuration commands: 13610$config_commands 13611 13612Report bugs to the package provider." 13613 13614_ACEOF 13615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13616ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13617ac_cs_version="\\ 13618package-unused config.status version-unused 13619configured by $0, generated by GNU Autoconf 2.69, 13620 with options \\"\$ac_cs_config\\" 13621 13622Copyright (C) 2012 Free Software Foundation, Inc. 13623This config.status script is free software; the Free Software Foundation 13624gives unlimited permission to copy, distribute and modify it." 13625 13626ac_pwd='$ac_pwd' 13627srcdir='$srcdir' 13628INSTALL='$INSTALL' 13629MKDIR_P='$MKDIR_P' 13630AWK='$AWK' 13631test -n "\$AWK" || AWK=awk 13632_ACEOF 13633 13634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13635# The default lists apply if the user does not specify any file. 13636ac_need_defaults=: 13637while test $# != 0 13638do 13639 case $1 in 13640 --*=?*) 13641 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13643 ac_shift=: 13644 ;; 13645 --*=) 13646 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13647 ac_optarg= 13648 ac_shift=: 13649 ;; 13650 *) 13651 ac_option=$1 13652 ac_optarg=$2 13653 ac_shift=shift 13654 ;; 13655 esac 13656 13657 case $ac_option in 13658 # Handling of the options. 13659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13660 ac_cs_recheck=: ;; 13661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13662 $as_echo "$ac_cs_version"; exit ;; 13663 --config | --confi | --conf | --con | --co | --c ) 13664 $as_echo "$ac_cs_config"; exit ;; 13665 --debug | --debu | --deb | --de | --d | -d ) 13666 debug=: ;; 13667 --file | --fil | --fi | --f ) 13668 $ac_shift 13669 case $ac_optarg in 13670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13671 '') as_fn_error $? "missing file argument" ;; 13672 esac 13673 as_fn_append CONFIG_FILES " '$ac_optarg'" 13674 ac_need_defaults=false;; 13675 --header | --heade | --head | --hea ) 13676 $ac_shift 13677 case $ac_optarg in 13678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13679 esac 13680 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13681 ac_need_defaults=false;; 13682 --he | --h) 13683 # Conflict between --help and --header 13684 as_fn_error $? "ambiguous option: \`$1' 13685Try \`$0 --help' for more information.";; 13686 --help | --hel | -h ) 13687 $as_echo "$ac_cs_usage"; exit ;; 13688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13689 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13690 ac_cs_silent=: ;; 13691 13692 # This is an error. 13693 -*) as_fn_error $? "unrecognized option: \`$1' 13694Try \`$0 --help' for more information." ;; 13695 13696 *) as_fn_append ac_config_targets " $1" 13697 ac_need_defaults=false ;; 13698 13699 esac 13700 shift 13701done 13702 13703ac_configure_extra_args= 13704 13705if $ac_cs_silent; then 13706 exec 6>/dev/null 13707 ac_configure_extra_args="$ac_configure_extra_args --silent" 13708fi 13709 13710_ACEOF 13711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13712if \$ac_cs_recheck; then 13713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13714 shift 13715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13716 CONFIG_SHELL='$SHELL' 13717 export CONFIG_SHELL 13718 exec "\$@" 13719fi 13720 13721_ACEOF 13722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13723exec 5>>config.log 13724{ 13725 echo 13726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13727## Running $as_me. ## 13728_ASBOX 13729 $as_echo "$ac_log" 13730} >&5 13731 13732_ACEOF 13733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13734# 13735# INIT-COMMANDS 13736# 13737 13738srcdir="$srcdir" 13739host="$host" 13740target="$target" 13741with_multisubdir="$with_multisubdir" 13742with_multisrctop="$with_multisrctop" 13743with_target_subdir="$with_target_subdir" 13744ac_configure_args="${multilib_arg} ${ac_configure_args}" 13745multi_basedir="$multi_basedir" 13746CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 13747CC="$CC" 13748CXX="$CXX" 13749GFORTRAN="$GFORTRAN" 13750GDC="$GDC" 13751 13752 13753# The HP-UX ksh and POSIX shell print the target directory to stdout 13754# if CDPATH is set. 13755(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13756 13757sed_quote_subst='$sed_quote_subst' 13758double_quote_subst='$double_quote_subst' 13759delay_variable_subst='$delay_variable_subst' 13760enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13761macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13762macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13763enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13764pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13765enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13766SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13767ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13768host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13769host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13770host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13771build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13772build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13773build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13774SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13775Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13776GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13777EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13778FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13779LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13780NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13781LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13782max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13783ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13784exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13785lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13786lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13787lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13788reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13789reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13790OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13791deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13792file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13793AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13794AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13795STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13796RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13797old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13798old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13799old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13800lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13801CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13802CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13803compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13804GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13805lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13806lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13807lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13808lt_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"`' 13809objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13810MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13811lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13812lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13813lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13814lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13815lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13816need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13817DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13818NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13819LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13820OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13821OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13822libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13823shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13824extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13825archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13826enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13827export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13828whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13829compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13830old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13831old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13832archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13833archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13834module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13835module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13836with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13837allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13838no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13839hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13840hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13841hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13842hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13843hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13844hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13845hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13846hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13847inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13848link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13849fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13850always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13851export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13852exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13853include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13854prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13855file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13856variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13857need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13858need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13859version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13860runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13861shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13862shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13863libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13864library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13865soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13866install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13867postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13868postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13869finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13870finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13871hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13872sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13873sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13874hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13875enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13876enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13877enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13878old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13879striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13880 13881LTCC='$LTCC' 13882LTCFLAGS='$LTCFLAGS' 13883compiler='$compiler_DEFAULT' 13884 13885# A function that is used when there is no print builtin or printf. 13886func_fallback_echo () 13887{ 13888 eval 'cat <<_LTECHO_EOF 13889\$1 13890_LTECHO_EOF' 13891} 13892 13893# Quote evaled strings. 13894for var in SHELL \ 13895ECHO \ 13896SED \ 13897GREP \ 13898EGREP \ 13899FGREP \ 13900LD \ 13901NM \ 13902LN_S \ 13903lt_SP2NL \ 13904lt_NL2SP \ 13905reload_flag \ 13906OBJDUMP \ 13907deplibs_check_method \ 13908file_magic_cmd \ 13909AR \ 13910AR_FLAGS \ 13911STRIP \ 13912RANLIB \ 13913CC \ 13914CFLAGS \ 13915compiler \ 13916lt_cv_sys_global_symbol_pipe \ 13917lt_cv_sys_global_symbol_to_cdecl \ 13918lt_cv_sys_global_symbol_to_c_name_address \ 13919lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13920lt_prog_compiler_no_builtin_flag \ 13921lt_prog_compiler_wl \ 13922lt_prog_compiler_pic \ 13923lt_prog_compiler_static \ 13924lt_cv_prog_compiler_c_o \ 13925need_locks \ 13926DSYMUTIL \ 13927NMEDIT \ 13928LIPO \ 13929OTOOL \ 13930OTOOL64 \ 13931shrext_cmds \ 13932export_dynamic_flag_spec \ 13933whole_archive_flag_spec \ 13934compiler_needs_object \ 13935with_gnu_ld \ 13936allow_undefined_flag \ 13937no_undefined_flag \ 13938hardcode_libdir_flag_spec \ 13939hardcode_libdir_flag_spec_ld \ 13940hardcode_libdir_separator \ 13941fix_srcfile_path \ 13942exclude_expsyms \ 13943include_expsyms \ 13944file_list_spec \ 13945variables_saved_for_relink \ 13946libname_spec \ 13947library_names_spec \ 13948soname_spec \ 13949install_override_mode \ 13950finish_eval \ 13951old_striplib \ 13952striplib; do 13953 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13954 *[\\\\\\\`\\"\\\$]*) 13955 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13956 ;; 13957 *) 13958 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13959 ;; 13960 esac 13961done 13962 13963# Double-quote double-evaled strings. 13964for var in reload_cmds \ 13965old_postinstall_cmds \ 13966old_postuninstall_cmds \ 13967old_archive_cmds \ 13968extract_expsyms_cmds \ 13969old_archive_from_new_cmds \ 13970old_archive_from_expsyms_cmds \ 13971archive_cmds \ 13972archive_expsym_cmds \ 13973module_cmds \ 13974module_expsym_cmds \ 13975export_symbols_cmds \ 13976prelink_cmds \ 13977postinstall_cmds \ 13978postuninstall_cmds \ 13979finish_cmds \ 13980sys_lib_search_path_spec \ 13981sys_lib_dlsearch_path_spec; do 13982 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13983 *[\\\\\\\`\\"\\\$]*) 13984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13985 ;; 13986 *) 13987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13988 ;; 13989 esac 13990done 13991 13992ac_aux_dir='$ac_aux_dir' 13993xsi_shell='$xsi_shell' 13994lt_shell_append='$lt_shell_append' 13995 13996# See if we are running on zsh, and set the options which allow our 13997# commands through without removal of \ escapes INIT. 13998if test -n "\${ZSH_VERSION+set}" ; then 13999 setopt NO_GLOB_SUBST 14000fi 14001 14002 14003 PACKAGE='$PACKAGE' 14004 VERSION='$VERSION' 14005 TIMESTAMP='$TIMESTAMP' 14006 RM='$RM' 14007 ofile='$ofile' 14008 14009 14010 14011 14012# Variables needed in config.status (file generation) which aren't already 14013# passed by autoconf. 14014SUBDIRS="$SUBDIRS" 14015 14016 14017_ACEOF 14018 14019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14020 14021# Handling of arguments. 14022for ac_config_target in $ac_config_targets 14023do 14024 case $ac_config_target in 14025 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14026 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14027 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14028 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14029 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;; 14030 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;; 14031 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14032 14033 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14034 esac 14035done 14036 14037 14038# If the user did not use the arguments to specify the items to instantiate, 14039# then the envvar interface is used. Set only those that are not. 14040# We use the long form for the default assignment because of an extremely 14041# bizarre bug on SunOS 4.1.3. 14042if $ac_need_defaults; then 14043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14046fi 14047 14048# Have a temporary directory for convenience. Make it in the build tree 14049# simply because there is no reason against having it here, and in addition, 14050# creating and moving files from /tmp can sometimes cause problems. 14051# Hook for its removal unless debugging. 14052# Note that there is a small window in which the directory will not be cleaned: 14053# after its creation but before its name has been assigned to `$tmp'. 14054$debug || 14055{ 14056 tmp= ac_tmp= 14057 trap 'exit_status=$? 14058 : "${ac_tmp:=$tmp}" 14059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14060' 0 14061 trap 'as_fn_exit 1' 1 2 13 15 14062} 14063# Create a (secure) tmp directory for tmp files. 14064 14065{ 14066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14067 test -d "$tmp" 14068} || 14069{ 14070 tmp=./conf$$-$RANDOM 14071 (umask 077 && mkdir "$tmp") 14072} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14073ac_tmp=$tmp 14074 14075# Set up the scripts for CONFIG_FILES section. 14076# No need to generate them if there are no CONFIG_FILES. 14077# This happens for instance with `./config.status config.h'. 14078if test -n "$CONFIG_FILES"; then 14079 14080 14081ac_cr=`echo X | tr X '\015'` 14082# On cygwin, bash can eat \r inside `` if the user requested igncr. 14083# But we know of no other shell where ac_cr would be empty at this 14084# point, so we can use a bashism as a fallback. 14085if test "x$ac_cr" = x; then 14086 eval ac_cr=\$\'\\r\' 14087fi 14088ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14089if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14090 ac_cs_awk_cr='\\r' 14091else 14092 ac_cs_awk_cr=$ac_cr 14093fi 14094 14095echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14096_ACEOF 14097 14098 14099{ 14100 echo "cat >conf$$subs.awk <<_ACEOF" && 14101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14102 echo "_ACEOF" 14103} >conf$$subs.sh || 14104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14105ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14106ac_delim='%!_!# ' 14107for ac_last_try in false false false false false :; do 14108 . ./conf$$subs.sh || 14109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14110 14111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14112 if test $ac_delim_n = $ac_delim_num; then 14113 break 14114 elif $ac_last_try; then 14115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14116 else 14117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14118 fi 14119done 14120rm -f conf$$subs.sh 14121 14122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14123cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14124_ACEOF 14125sed -n ' 14126h 14127s/^/S["/; s/!.*/"]=/ 14128p 14129g 14130s/^[^!]*!// 14131:repl 14132t repl 14133s/'"$ac_delim"'$// 14134t delim 14135:nl 14136h 14137s/\(.\{148\}\)..*/\1/ 14138t more1 14139s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14140p 14141n 14142b repl 14143:more1 14144s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14145p 14146g 14147s/.\{148\}// 14148t nl 14149:delim 14150h 14151s/\(.\{148\}\)..*/\1/ 14152t more2 14153s/["\\]/\\&/g; s/^/"/; s/$/"/ 14154p 14155b 14156:more2 14157s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14158p 14159g 14160s/.\{148\}// 14161t delim 14162' <conf$$subs.awk | sed ' 14163/^[^""]/{ 14164 N 14165 s/\n// 14166} 14167' >>$CONFIG_STATUS || ac_write_fail=1 14168rm -f conf$$subs.awk 14169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14170_ACAWK 14171cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14172 for (key in S) S_is_set[key] = 1 14173 FS = "" 14174 14175} 14176{ 14177 line = $ 0 14178 nfields = split(line, field, "@") 14179 substed = 0 14180 len = length(field[1]) 14181 for (i = 2; i < nfields; i++) { 14182 key = field[i] 14183 keylen = length(key) 14184 if (S_is_set[key]) { 14185 value = S[key] 14186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14187 len += length(value) + length(field[++i]) 14188 substed = 1 14189 } else 14190 len += 1 + keylen 14191 } 14192 14193 print line 14194} 14195 14196_ACAWK 14197_ACEOF 14198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14199if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14201else 14202 cat 14203fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14205_ACEOF 14206 14207# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14208# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14209# trailing colons and then remove the whole line if VPATH becomes empty 14210# (actually we leave an empty line to preserve line numbers). 14211if test "x$srcdir" = x.; then 14212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14213h 14214s/// 14215s/^/:/ 14216s/[ ]*$/:/ 14217s/:\$(srcdir):/:/g 14218s/:\${srcdir}:/:/g 14219s/:@srcdir@:/:/g 14220s/^:*// 14221s/:*$// 14222x 14223s/\(=[ ]*\).*/\1/ 14224G 14225s/\n// 14226s/^[^=]*=[ ]*$// 14227}' 14228fi 14229 14230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14231fi # test -n "$CONFIG_FILES" 14232 14233# Set up the scripts for CONFIG_HEADERS section. 14234# No need to generate them if there are no CONFIG_HEADERS. 14235# This happens for instance with `./config.status Makefile'. 14236if test -n "$CONFIG_HEADERS"; then 14237cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14238BEGIN { 14239_ACEOF 14240 14241# Transform confdefs.h into an awk script `defines.awk', embedded as 14242# here-document in config.status, that substitutes the proper values into 14243# config.h.in to produce config.h. 14244 14245# Create a delimiter string that does not exist in confdefs.h, to ease 14246# handling of long lines. 14247ac_delim='%!_!# ' 14248for ac_last_try in false false :; do 14249 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14250 if test -z "$ac_tt"; then 14251 break 14252 elif $ac_last_try; then 14253 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14254 else 14255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14256 fi 14257done 14258 14259# For the awk script, D is an array of macro values keyed by name, 14260# likewise P contains macro parameters if any. Preserve backslash 14261# newline sequences. 14262 14263ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14264sed -n ' 14265s/.\{148\}/&'"$ac_delim"'/g 14266t rset 14267:rset 14268s/^[ ]*#[ ]*define[ ][ ]*/ / 14269t def 14270d 14271:def 14272s/\\$// 14273t bsnl 14274s/["\\]/\\&/g 14275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14276D["\1"]=" \3"/p 14277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14278d 14279:bsnl 14280s/["\\]/\\&/g 14281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14282D["\1"]=" \3\\\\\\n"\\/p 14283t cont 14284s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14285t cont 14286d 14287:cont 14288n 14289s/.\{148\}/&'"$ac_delim"'/g 14290t clear 14291:clear 14292s/\\$// 14293t bsnlc 14294s/["\\]/\\&/g; s/^/"/; s/$/"/p 14295d 14296:bsnlc 14297s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14298b cont 14299' <confdefs.h | sed ' 14300s/'"$ac_delim"'/"\\\ 14301"/g' >>$CONFIG_STATUS || ac_write_fail=1 14302 14303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14304 for (key in D) D_is_set[key] = 1 14305 FS = "" 14306} 14307/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14308 line = \$ 0 14309 split(line, arg, " ") 14310 if (arg[1] == "#") { 14311 defundef = arg[2] 14312 mac1 = arg[3] 14313 } else { 14314 defundef = substr(arg[1], 2) 14315 mac1 = arg[2] 14316 } 14317 split(mac1, mac2, "(") #) 14318 macro = mac2[1] 14319 prefix = substr(line, 1, index(line, defundef) - 1) 14320 if (D_is_set[macro]) { 14321 # Preserve the white space surrounding the "#". 14322 print prefix "define", macro P[macro] D[macro] 14323 next 14324 } else { 14325 # Replace #undef with comments. This is necessary, for example, 14326 # in the case of _POSIX_SOURCE, which is predefined and required 14327 # on some systems where configure will not decide to define it. 14328 if (defundef == "undef") { 14329 print "/*", prefix defundef, macro, "*/" 14330 next 14331 } 14332 } 14333} 14334{ print } 14335_ACAWK 14336_ACEOF 14337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14338 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14339fi # test -n "$CONFIG_HEADERS" 14340 14341 14342eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14343shift 14344for ac_tag 14345do 14346 case $ac_tag in 14347 :[FHLC]) ac_mode=$ac_tag; continue;; 14348 esac 14349 case $ac_mode$ac_tag in 14350 :[FHL]*:*);; 14351 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14352 :[FH]-) ac_tag=-:-;; 14353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14354 esac 14355 ac_save_IFS=$IFS 14356 IFS=: 14357 set x $ac_tag 14358 IFS=$ac_save_IFS 14359 shift 14360 ac_file=$1 14361 shift 14362 14363 case $ac_mode in 14364 :L) ac_source=$1;; 14365 :[FH]) 14366 ac_file_inputs= 14367 for ac_f 14368 do 14369 case $ac_f in 14370 -) ac_f="$ac_tmp/stdin";; 14371 *) # Look for the file first in the build tree, then in the source tree 14372 # (if the path is not absolute). The absolute path cannot be DOS-style, 14373 # because $ac_f cannot contain `:'. 14374 test -f "$ac_f" || 14375 case $ac_f in 14376 [\\/$]*) false;; 14377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14378 esac || 14379 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14380 esac 14381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14382 as_fn_append ac_file_inputs " '$ac_f'" 14383 done 14384 14385 # Let's still pretend it is `configure' which instantiates (i.e., don't 14386 # use $as_me), people would be surprised to read: 14387 # /* config.h. Generated by config.status. */ 14388 configure_input='Generated from '` 14389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14390 `' by configure.' 14391 if test x"$ac_file" != x-; then 14392 configure_input="$ac_file. $configure_input" 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14394$as_echo "$as_me: creating $ac_file" >&6;} 14395 fi 14396 # Neutralize special characters interpreted by sed in replacement strings. 14397 case $configure_input in #( 14398 *\&* | *\|* | *\\* ) 14399 ac_sed_conf_input=`$as_echo "$configure_input" | 14400 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14401 *) ac_sed_conf_input=$configure_input;; 14402 esac 14403 14404 case $ac_tag in 14405 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14407 esac 14408 ;; 14409 esac 14410 14411 ac_dir=`$as_dirname -- "$ac_file" || 14412$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14413 X"$ac_file" : 'X\(//\)[^/]' \| \ 14414 X"$ac_file" : 'X\(//\)$' \| \ 14415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14416$as_echo X"$ac_file" | 14417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14418 s//\1/ 14419 q 14420 } 14421 /^X\(\/\/\)[^/].*/{ 14422 s//\1/ 14423 q 14424 } 14425 /^X\(\/\/\)$/{ 14426 s//\1/ 14427 q 14428 } 14429 /^X\(\/\).*/{ 14430 s//\1/ 14431 q 14432 } 14433 s/.*/./; q'` 14434 as_dir="$ac_dir"; as_fn_mkdir_p 14435 ac_builddir=. 14436 14437case "$ac_dir" in 14438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14439*) 14440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14441 # A ".." for each directory in $ac_dir_suffix. 14442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14443 case $ac_top_builddir_sub in 14444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14446 esac ;; 14447esac 14448ac_abs_top_builddir=$ac_pwd 14449ac_abs_builddir=$ac_pwd$ac_dir_suffix 14450# for backward compatibility: 14451ac_top_builddir=$ac_top_build_prefix 14452 14453case $srcdir in 14454 .) # We are building in place. 14455 ac_srcdir=. 14456 ac_top_srcdir=$ac_top_builddir_sub 14457 ac_abs_top_srcdir=$ac_pwd ;; 14458 [\\/]* | ?:[\\/]* ) # Absolute name. 14459 ac_srcdir=$srcdir$ac_dir_suffix; 14460 ac_top_srcdir=$srcdir 14461 ac_abs_top_srcdir=$srcdir ;; 14462 *) # Relative name. 14463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14464 ac_top_srcdir=$ac_top_build_prefix$srcdir 14465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14466esac 14467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14468 14469 14470 case $ac_mode in 14471 :F) 14472 # 14473 # CONFIG_FILE 14474 # 14475 14476 case $INSTALL in 14477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14479 esac 14480 ac_MKDIR_P=$MKDIR_P 14481 case $MKDIR_P in 14482 [\\/$]* | ?:[\\/]* ) ;; 14483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14484 esac 14485_ACEOF 14486 14487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14488# If the template does not know about datarootdir, expand it. 14489# FIXME: This hack should be removed a few years after 2.60. 14490ac_datarootdir_hack=; ac_datarootdir_seen= 14491ac_sed_dataroot=' 14492/datarootdir/ { 14493 p 14494 q 14495} 14496/@datadir@/p 14497/@docdir@/p 14498/@infodir@/p 14499/@localedir@/p 14500/@mandir@/p' 14501case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14502*datarootdir*) ac_datarootdir_seen=yes;; 14503*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14505$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14506_ACEOF 14507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14508 ac_datarootdir_hack=' 14509 s&@datadir@&$datadir&g 14510 s&@docdir@&$docdir&g 14511 s&@infodir@&$infodir&g 14512 s&@localedir@&$localedir&g 14513 s&@mandir@&$mandir&g 14514 s&\\\${datarootdir}&$datarootdir&g' ;; 14515esac 14516_ACEOF 14517 14518# Neutralize VPATH when `$srcdir' = `.'. 14519# Shell code in configure.ac might set extrasub. 14520# FIXME: do we really want to maintain this feature? 14521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14522ac_sed_extra="$ac_vpsub 14523$extrasub 14524_ACEOF 14525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14526:t 14527/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14528s|@configure_input@|$ac_sed_conf_input|;t t 14529s&@top_builddir@&$ac_top_builddir_sub&;t t 14530s&@top_build_prefix@&$ac_top_build_prefix&;t t 14531s&@srcdir@&$ac_srcdir&;t t 14532s&@abs_srcdir@&$ac_abs_srcdir&;t t 14533s&@top_srcdir@&$ac_top_srcdir&;t t 14534s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14535s&@builddir@&$ac_builddir&;t t 14536s&@abs_builddir@&$ac_abs_builddir&;t t 14537s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14538s&@INSTALL@&$ac_INSTALL&;t t 14539s&@MKDIR_P@&$ac_MKDIR_P&;t t 14540$ac_datarootdir_hack 14541" 14542eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14544 14545test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14548 "$ac_tmp/out"`; test -z "$ac_out"; } && 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14550which seems to be undefined. Please make sure it is defined" >&5 14551$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14552which seems to be undefined. Please make sure it is defined" >&2;} 14553 14554 rm -f "$ac_tmp/stdin" 14555 case $ac_file in 14556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14558 esac \ 14559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14560 ;; 14561 :H) 14562 # 14563 # CONFIG_HEADER 14564 # 14565 if test x"$ac_file" != x-; then 14566 { 14567 $as_echo "/* $configure_input */" \ 14568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14569 } >"$ac_tmp/config.h" \ 14570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14571 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14573$as_echo "$as_me: $ac_file is unchanged" >&6;} 14574 else 14575 rm -f "$ac_file" 14576 mv "$ac_tmp/config.h" "$ac_file" \ 14577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14578 fi 14579 else 14580 $as_echo "/* $configure_input */" \ 14581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14582 || as_fn_error $? "could not create -" "$LINENO" 5 14583 fi 14584# Compute "$ac_file"'s index in $config_headers. 14585_am_arg="$ac_file" 14586_am_stamp_count=1 14587for _am_header in $config_headers :; do 14588 case $_am_header in 14589 $_am_arg | $_am_arg:* ) 14590 break ;; 14591 * ) 14592 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14593 esac 14594done 14595echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14596$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14597 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14598 X"$_am_arg" : 'X\(//\)$' \| \ 14599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14600$as_echo X"$_am_arg" | 14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14602 s//\1/ 14603 q 14604 } 14605 /^X\(\/\/\)[^/].*/{ 14606 s//\1/ 14607 q 14608 } 14609 /^X\(\/\/\)$/{ 14610 s//\1/ 14611 q 14612 } 14613 /^X\(\/\).*/{ 14614 s//\1/ 14615 q 14616 } 14617 s/.*/./; q'`/stamp-h$_am_stamp_count 14618 ;; 14619 14620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14621$as_echo "$as_me: executing $ac_file commands" >&6;} 14622 ;; 14623 esac 14624 14625 14626 case $ac_file$ac_mode in 14627 "default-1":C) 14628# Only add multilib support code if we just rebuilt the top-level 14629# Makefile. 14630case " $CONFIG_FILES " in 14631 *" Makefile "*) 14632 ac_file=Makefile . ${multi_basedir}/config-ml.in 14633 ;; 14634esac ;; 14635 "libtool":C) 14636 14637 # See if we are running on zsh, and set the options which allow our 14638 # commands through without removal of \ escapes. 14639 if test -n "${ZSH_VERSION+set}" ; then 14640 setopt NO_GLOB_SUBST 14641 fi 14642 14643 cfgfile="${ofile}T" 14644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14645 $RM "$cfgfile" 14646 14647 cat <<_LT_EOF >> "$cfgfile" 14648#! $SHELL 14649 14650# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14651# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14653# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14654# 14655# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14656# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 14657# Written by Gordon Matzigkeit, 1996 14658# 14659# This file is part of GNU Libtool. 14660# 14661# GNU Libtool is free software; you can redistribute it and/or 14662# modify it under the terms of the GNU General Public License as 14663# published by the Free Software Foundation; either version 2 of 14664# the License, or (at your option) any later version. 14665# 14666# As a special exception to the GNU General Public License, 14667# if you distribute this file as part of a program or library that 14668# is built using GNU Libtool, you may include this file under the 14669# same distribution terms that you use for the rest of that program. 14670# 14671# GNU Libtool is distributed in the hope that it will be useful, 14672# but WITHOUT ANY WARRANTY; without even the implied warranty of 14673# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14674# GNU General Public License for more details. 14675# 14676# You should have received a copy of the GNU General Public License 14677# along with GNU Libtool; see the file COPYING. If not, a copy 14678# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14679# obtained by writing to the Free Software Foundation, Inc., 14680# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14681 14682 14683# The names of the tagged configurations supported by this script. 14684available_tags="" 14685 14686# ### BEGIN LIBTOOL CONFIG 14687 14688# Whether or not to build shared libraries. 14689build_libtool_libs=$enable_shared 14690 14691# Which release of libtool.m4 was used? 14692macro_version=$macro_version 14693macro_revision=$macro_revision 14694 14695# Whether or not to build static libraries. 14696build_old_libs=$enable_static 14697 14698# What type of objects to build. 14699pic_mode=$pic_mode 14700 14701# Whether or not to optimize for fast installation. 14702fast_install=$enable_fast_install 14703 14704# Shell to use when invoking shell scripts. 14705SHELL=$lt_SHELL 14706 14707# An echo program that protects backslashes. 14708ECHO=$lt_ECHO 14709 14710# The host system. 14711host_alias=$host_alias 14712host=$host 14713host_os=$host_os 14714 14715# The build system. 14716build_alias=$build_alias 14717build=$build 14718build_os=$build_os 14719 14720# A sed program that does not truncate output. 14721SED=$lt_SED 14722 14723# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14724Xsed="\$SED -e 1s/^X//" 14725 14726# A grep program that handles long lines. 14727GREP=$lt_GREP 14728 14729# An ERE matcher. 14730EGREP=$lt_EGREP 14731 14732# A literal string matcher. 14733FGREP=$lt_FGREP 14734 14735# A BSD- or MS-compatible name lister. 14736NM=$lt_NM 14737 14738# Whether we need soft or hard links. 14739LN_S=$lt_LN_S 14740 14741# What is the maximum length of a command? 14742max_cmd_len=$max_cmd_len 14743 14744# Object file suffix (normally "o"). 14745objext=$ac_objext 14746 14747# Executable file suffix (normally ""). 14748exeext=$exeext 14749 14750# whether the shell understands "unset". 14751lt_unset=$lt_unset 14752 14753# turn spaces into newlines. 14754SP2NL=$lt_lt_SP2NL 14755 14756# turn newlines into spaces. 14757NL2SP=$lt_lt_NL2SP 14758 14759# An object symbol dumper. 14760OBJDUMP=$lt_OBJDUMP 14761 14762# Method to check whether dependent libraries are shared objects. 14763deplibs_check_method=$lt_deplibs_check_method 14764 14765# Command to use when deplibs_check_method == "file_magic". 14766file_magic_cmd=$lt_file_magic_cmd 14767 14768# The archiver. 14769AR=$lt_AR 14770AR_FLAGS=$lt_AR_FLAGS 14771 14772# A symbol stripping program. 14773STRIP=$lt_STRIP 14774 14775# Commands used to install an old-style archive. 14776RANLIB=$lt_RANLIB 14777old_postinstall_cmds=$lt_old_postinstall_cmds 14778old_postuninstall_cmds=$lt_old_postuninstall_cmds 14779 14780# Whether to use a lock for old archive extraction. 14781lock_old_archive_extraction=$lock_old_archive_extraction 14782 14783# A C compiler. 14784LTCC=$lt_CC 14785 14786# LTCC compiler flags. 14787LTCFLAGS=$lt_CFLAGS 14788 14789# Take the output of nm and produce a listing of raw symbols and C names. 14790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14791 14792# Transform the output of nm in a proper C declaration. 14793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14794 14795# Transform the output of nm in a C name address pair. 14796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14797 14798# Transform the output of nm in a C name address pair when lib prefix is needed. 14799global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14800 14801# The name of the directory that contains temporary libtool files. 14802objdir=$objdir 14803 14804# Used to examine libraries when file_magic_cmd begins with "file". 14805MAGIC_CMD=$MAGIC_CMD 14806 14807# Must we lock files when doing compilation? 14808need_locks=$lt_need_locks 14809 14810# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14811DSYMUTIL=$lt_DSYMUTIL 14812 14813# Tool to change global to local symbols on Mac OS X. 14814NMEDIT=$lt_NMEDIT 14815 14816# Tool to manipulate fat objects and archives on Mac OS X. 14817LIPO=$lt_LIPO 14818 14819# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14820OTOOL=$lt_OTOOL 14821 14822# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14823OTOOL64=$lt_OTOOL64 14824 14825# Old archive suffix (normally "a"). 14826libext=$libext 14827 14828# Shared library suffix (normally ".so"). 14829shrext_cmds=$lt_shrext_cmds 14830 14831# The commands to extract the exported symbol list from a shared archive. 14832extract_expsyms_cmds=$lt_extract_expsyms_cmds 14833 14834# Variables whose values should be saved in libtool wrapper scripts and 14835# restored at link time. 14836variables_saved_for_relink=$lt_variables_saved_for_relink 14837 14838# Do we need the "lib" prefix for modules? 14839need_lib_prefix=$need_lib_prefix 14840 14841# Do we need a version for libraries? 14842need_version=$need_version 14843 14844# Library versioning type. 14845version_type=$version_type 14846 14847# Shared library runtime path variable. 14848runpath_var=$runpath_var 14849 14850# Shared library path variable. 14851shlibpath_var=$shlibpath_var 14852 14853# Is shlibpath searched before the hard-coded library search path? 14854shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14855 14856# Format of library name prefix. 14857libname_spec=$lt_libname_spec 14858 14859# List of archive names. First name is the real one, the rest are links. 14860# The last name is the one that the linker finds with -lNAME 14861library_names_spec=$lt_library_names_spec 14862 14863# The coded name of the library, if different from the real name. 14864soname_spec=$lt_soname_spec 14865 14866# Permission mode override for installation of shared libraries. 14867install_override_mode=$lt_install_override_mode 14868 14869# Command to use after installation of a shared archive. 14870postinstall_cmds=$lt_postinstall_cmds 14871 14872# Command to use after uninstallation of a shared archive. 14873postuninstall_cmds=$lt_postuninstall_cmds 14874 14875# Commands used to finish a libtool library installation in a directory. 14876finish_cmds=$lt_finish_cmds 14877 14878# As "finish_cmds", except a single script fragment to be evaled but 14879# not shown. 14880finish_eval=$lt_finish_eval 14881 14882# Whether we should hardcode library paths into libraries. 14883hardcode_into_libs=$hardcode_into_libs 14884 14885# Compile-time system search path for libraries. 14886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14887 14888# Run-time system search path for libraries. 14889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14890 14891# Whether dlopen is supported. 14892dlopen_support=$enable_dlopen 14893 14894# Whether dlopen of programs is supported. 14895dlopen_self=$enable_dlopen_self 14896 14897# Whether dlopen of statically linked programs is supported. 14898dlopen_self_static=$enable_dlopen_self_static 14899 14900# Commands to strip libraries. 14901old_striplib=$lt_old_striplib 14902striplib=$lt_striplib 14903 14904 14905# The linker used to build libraries. 14906LD=$lt_LD 14907 14908# How to create reloadable object files. 14909reload_flag=$lt_reload_flag 14910reload_cmds=$lt_reload_cmds 14911 14912# Commands used to build an old-style archive. 14913old_archive_cmds=$lt_old_archive_cmds 14914 14915# A language specific compiler. 14916CC=$lt_compiler 14917 14918# Is the compiler the GNU compiler? 14919with_gcc=$GCC 14920 14921# Compiler flag to turn off builtin functions. 14922no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14923 14924# How to pass a linker flag through the compiler. 14925wl=$lt_lt_prog_compiler_wl 14926 14927# Additional compiler flags for building library objects. 14928pic_flag=$lt_lt_prog_compiler_pic 14929 14930# Compiler flag to prevent dynamic linking. 14931link_static_flag=$lt_lt_prog_compiler_static 14932 14933# Does compiler simultaneously support -c and -o options? 14934compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14935 14936# Whether or not to add -lc for building shared libraries. 14937build_libtool_need_lc=$archive_cmds_need_lc 14938 14939# Whether or not to disallow shared libs when runtime libs are static. 14940allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14941 14942# Compiler flag to allow reflexive dlopens. 14943export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14944 14945# Compiler flag to generate shared objects directly from archives. 14946whole_archive_flag_spec=$lt_whole_archive_flag_spec 14947 14948# Whether the compiler copes with passing no objects directly. 14949compiler_needs_object=$lt_compiler_needs_object 14950 14951# Create an old-style archive from a shared archive. 14952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14953 14954# Create a temporary old-style archive to link instead of a shared archive. 14955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14956 14957# Commands used to build a shared archive. 14958archive_cmds=$lt_archive_cmds 14959archive_expsym_cmds=$lt_archive_expsym_cmds 14960 14961# Commands used to build a loadable module if different from building 14962# a shared archive. 14963module_cmds=$lt_module_cmds 14964module_expsym_cmds=$lt_module_expsym_cmds 14965 14966# Whether we are building with GNU ld or not. 14967with_gnu_ld=$lt_with_gnu_ld 14968 14969# Flag that allows shared libraries with undefined symbols to be built. 14970allow_undefined_flag=$lt_allow_undefined_flag 14971 14972# Flag that enforces no undefined symbols. 14973no_undefined_flag=$lt_no_undefined_flag 14974 14975# Flag to hardcode \$libdir into a binary during linking. 14976# This must work even if \$libdir does not exist 14977hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14978 14979# If ld is used when linking, flag to hardcode \$libdir into a binary 14980# during linking. This must work even if \$libdir does not exist. 14981hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14982 14983# Whether we need a single "-rpath" flag with a separated argument. 14984hardcode_libdir_separator=$lt_hardcode_libdir_separator 14985 14986# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14987# DIR into the resulting binary. 14988hardcode_direct=$hardcode_direct 14989 14990# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14991# DIR into the resulting binary and the resulting library dependency is 14992# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14993# library is relocated. 14994hardcode_direct_absolute=$hardcode_direct_absolute 14995 14996# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14997# into the resulting binary. 14998hardcode_minus_L=$hardcode_minus_L 14999 15000# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15001# into the resulting binary. 15002hardcode_shlibpath_var=$hardcode_shlibpath_var 15003 15004# Set to "yes" if building a shared library automatically hardcodes DIR 15005# into the library and all subsequent libraries and executables linked 15006# against it. 15007hardcode_automatic=$hardcode_automatic 15008 15009# Set to yes if linker adds runtime paths of dependent libraries 15010# to runtime path list. 15011inherit_rpath=$inherit_rpath 15012 15013# Whether libtool must link a program against all its dependency libraries. 15014link_all_deplibs=$link_all_deplibs 15015 15016# Fix the shell variable \$srcfile for the compiler. 15017fix_srcfile_path=$lt_fix_srcfile_path 15018 15019# Set to "yes" if exported symbols are required. 15020always_export_symbols=$always_export_symbols 15021 15022# The commands to list exported symbols. 15023export_symbols_cmds=$lt_export_symbols_cmds 15024 15025# Symbols that should not be listed in the preloaded symbols. 15026exclude_expsyms=$lt_exclude_expsyms 15027 15028# Symbols that must always be exported. 15029include_expsyms=$lt_include_expsyms 15030 15031# Commands necessary for linking programs (against libraries) with templates. 15032prelink_cmds=$lt_prelink_cmds 15033 15034# Specify filename containing input files. 15035file_list_spec=$lt_file_list_spec 15036 15037# How to hardcode a shared library path into an executable. 15038hardcode_action=$hardcode_action 15039 15040# ### END LIBTOOL CONFIG 15041 15042_LT_EOF 15043 15044 case $host_os in 15045 aix3*) 15046 cat <<\_LT_EOF >> "$cfgfile" 15047# AIX sometimes has problems with the GCC collect2 program. For some 15048# reason, if we set the COLLECT_NAMES environment variable, the problems 15049# vanish in a puff of smoke. 15050if test "X${COLLECT_NAMES+set}" != Xset; then 15051 COLLECT_NAMES= 15052 export COLLECT_NAMES 15053fi 15054_LT_EOF 15055 ;; 15056 esac 15057 15058 15059ltmain="$ac_aux_dir/ltmain.sh" 15060 15061 15062 # We use sed instead of cat because bash on DJGPP gets confused if 15063 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15064 # text mode, it properly converts lines to CR/LF. This bash problem 15065 # is reportedly fixed, but why not run on old versions too? 15066 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15067 || (rm -f "$cfgfile"; exit 1) 15068 15069 case $xsi_shell in 15070 yes) 15071 cat << \_LT_EOF >> "$cfgfile" 15072 15073# func_dirname file append nondir_replacement 15074# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15075# otherwise set result to NONDIR_REPLACEMENT. 15076func_dirname () 15077{ 15078 case ${1} in 15079 */*) func_dirname_result="${1%/*}${2}" ;; 15080 * ) func_dirname_result="${3}" ;; 15081 esac 15082} 15083 15084# func_basename file 15085func_basename () 15086{ 15087 func_basename_result="${1##*/}" 15088} 15089 15090# func_dirname_and_basename file append nondir_replacement 15091# perform func_basename and func_dirname in a single function 15092# call: 15093# dirname: Compute the dirname of FILE. If nonempty, 15094# add APPEND to the result, otherwise set result 15095# to NONDIR_REPLACEMENT. 15096# value returned in "$func_dirname_result" 15097# basename: Compute filename of FILE. 15098# value retuned in "$func_basename_result" 15099# Implementation must be kept synchronized with func_dirname 15100# and func_basename. For efficiency, we do not delegate to 15101# those functions but instead duplicate the functionality here. 15102func_dirname_and_basename () 15103{ 15104 case ${1} in 15105 */*) func_dirname_result="${1%/*}${2}" ;; 15106 * ) func_dirname_result="${3}" ;; 15107 esac 15108 func_basename_result="${1##*/}" 15109} 15110 15111# func_stripname prefix suffix name 15112# strip PREFIX and SUFFIX off of NAME. 15113# PREFIX and SUFFIX must not contain globbing or regex special 15114# characters, hashes, percent signs, but SUFFIX may contain a leading 15115# dot (in which case that matches only a dot). 15116func_stripname () 15117{ 15118 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15119 # positional parameters, so assign one to ordinary parameter first. 15120 func_stripname_result=${3} 15121 func_stripname_result=${func_stripname_result#"${1}"} 15122 func_stripname_result=${func_stripname_result%"${2}"} 15123} 15124 15125# func_opt_split 15126func_opt_split () 15127{ 15128 func_opt_split_opt=${1%%=*} 15129 func_opt_split_arg=${1#*=} 15130} 15131 15132# func_lo2o object 15133func_lo2o () 15134{ 15135 case ${1} in 15136 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15137 *) func_lo2o_result=${1} ;; 15138 esac 15139} 15140 15141# func_xform libobj-or-source 15142func_xform () 15143{ 15144 func_xform_result=${1%.*}.lo 15145} 15146 15147# func_arith arithmetic-term... 15148func_arith () 15149{ 15150 func_arith_result=$(( $* )) 15151} 15152 15153# func_len string 15154# STRING may not start with a hyphen. 15155func_len () 15156{ 15157 func_len_result=${#1} 15158} 15159 15160_LT_EOF 15161 ;; 15162 *) # Bourne compatible functions. 15163 cat << \_LT_EOF >> "$cfgfile" 15164 15165# func_dirname file append nondir_replacement 15166# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15167# otherwise set result to NONDIR_REPLACEMENT. 15168func_dirname () 15169{ 15170 # Extract subdirectory from the argument. 15171 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15172 if test "X$func_dirname_result" = "X${1}"; then 15173 func_dirname_result="${3}" 15174 else 15175 func_dirname_result="$func_dirname_result${2}" 15176 fi 15177} 15178 15179# func_basename file 15180func_basename () 15181{ 15182 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15183} 15184 15185 15186# func_stripname prefix suffix name 15187# strip PREFIX and SUFFIX off of NAME. 15188# PREFIX and SUFFIX must not contain globbing or regex special 15189# characters, hashes, percent signs, but SUFFIX may contain a leading 15190# dot (in which case that matches only a dot). 15191# func_strip_suffix prefix name 15192func_stripname () 15193{ 15194 case ${2} in 15195 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15196 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15197 esac 15198} 15199 15200# sed scripts: 15201my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15202my_sed_long_arg='1s/^-[^=]*=//' 15203 15204# func_opt_split 15205func_opt_split () 15206{ 15207 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15208 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15209} 15210 15211# func_lo2o object 15212func_lo2o () 15213{ 15214 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15215} 15216 15217# func_xform libobj-or-source 15218func_xform () 15219{ 15220 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15221} 15222 15223# func_arith arithmetic-term... 15224func_arith () 15225{ 15226 func_arith_result=`expr "$@"` 15227} 15228 15229# func_len string 15230# STRING may not start with a hyphen. 15231func_len () 15232{ 15233 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15234} 15235 15236_LT_EOF 15237esac 15238 15239case $lt_shell_append in 15240 yes) 15241 cat << \_LT_EOF >> "$cfgfile" 15242 15243# func_append var value 15244# Append VALUE to the end of shell variable VAR. 15245func_append () 15246{ 15247 eval "$1+=\$2" 15248} 15249_LT_EOF 15250 ;; 15251 *) 15252 cat << \_LT_EOF >> "$cfgfile" 15253 15254# func_append var value 15255# Append VALUE to the end of shell variable VAR. 15256func_append () 15257{ 15258 eval "$1=\$$1\$2" 15259} 15260 15261_LT_EOF 15262 ;; 15263 esac 15264 15265 15266 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15267 || (rm -f "$cfgfile"; exit 1) 15268 15269 mv -f "$cfgfile" "$ofile" || 15270 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15271 chmod +x "$ofile" 15272 15273 ;; 15274 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;; 15275 "default":C) if test -n "$CONFIG_FILES"; then 15276 if test -n "${with_target_subdir}"; then 15277 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so 15278 # that multilib installs will end up installed in the correct place. 15279 # The testsuite needs it for multilib-aware ABI baseline files. 15280 # To work around this not being passed down from config-ml.in -> 15281 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually 15282 # append it here. Only modify Makefiles that have just been created. 15283 # 15284 # Also, get rid of this simulated-VPATH thing that automake does. 15285 cat > vpsed << \_EOF 15286 s!`test -f '$<' || echo '$(srcdir)/'`!! 15287_EOF 15288 for i in $SUBDIRS; do 15289 case $CONFIG_FILES in 15290 *${i}/Makefile*) 15291 #echo "Adding MULTISUBDIR to $i/Makefile" 15292 sed -f vpsed $i/Makefile > tmp 15293 grep '^MULTISUBDIR =' Makefile >> tmp 15294 mv tmp $i/Makefile 15295 ;; 15296 esac 15297 done 15298 rm vpsed 15299 fi 15300 fi 15301 ;; 15302 15303 esac 15304done # for ac_tag 15305 15306 15307as_fn_exit 0 15308_ACEOF 15309ac_clean_files=$ac_clean_files_save 15310 15311test $ac_write_fail = 0 || 15312 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15313 15314 15315# configure is writing to config.log, and then calls config.status. 15316# config.status does its own redirection, appending to config.log. 15317# Unfortunately, on DOS this fails, as config.log is still kept open 15318# by configure, so config.status won't be able to write to it; its 15319# output is simply discarded. So we exec the FD to /dev/null, 15320# effectively closing config.log, so it can be properly (re)opened and 15321# appended to by config.status. When coming back to configure, we 15322# need to make the FD available again. 15323if test "$no_create" != yes; then 15324 ac_cs_success=: 15325 ac_config_status_args= 15326 test "$silent" = yes && 15327 ac_config_status_args="$ac_config_status_args --quiet" 15328 exec 5>/dev/null 15329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15330 exec 5>>config.log 15331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15332 # would make configure fail if this is the last instruction. 15333 $ac_cs_success || as_fn_exit 1 15334fi 15335if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15337$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15338fi 15339 15340