1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for iperf 3.10.1+. 4# 5# Report bugs to <https://github.com/esnet/iperf>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell [email protected] and 278$0: https://github.com/esnet/iperf about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='iperf' 592PACKAGE_TARNAME='iperf' 593PACKAGE_VERSION='3.10.1+' 594PACKAGE_STRING='iperf 3.10.1+' 595PACKAGE_BUGREPORT='https://github.com/esnet/iperf' 596PACKAGE_URL='https://software.es.net/iperf/' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638OPENSSL_LDFLAGS 639OPENSSL_LIBS 640OPENSSL_INCLUDES 641PKG_CONFIG 642ENABLE_PROFILING_FALSE 643ENABLE_PROFILING_TRUE 644MAINT 645MAINTAINER_MODE_FALSE 646MAINTAINER_MODE_TRUE 647CPP 648LT_SYS_LIBRARY_PATH 649OTOOL64 650OTOOL 651LIPO 652NMEDIT 653DSYMUTIL 654MANIFEST_TOOL 655RANLIB 656ac_ct_AR 657AR 658DLLTOOL 659OBJDUMP 660LN_S 661NM 662ac_ct_DUMPBIN 663DUMPBIN 664LD 665FGREP 666EGREP 667GREP 668SED 669am__fastdepCC_FALSE 670am__fastdepCC_TRUE 671CCDEPMODE 672am__nodep 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__include 677DEPDIR 678OBJEXT 679EXEEXT 680ac_ct_CC 681CPPFLAGS 682LDFLAGS 683CFLAGS 684CC 685host_os 686host_vendor 687host_cpu 688host 689build_os 690build_vendor 691build_cpu 692build 693LIBTOOL 694AM_BACKSLASH 695AM_DEFAULT_VERBOSITY 696AM_DEFAULT_V 697AM_V 698am__untar 699am__tar 700AMTAR 701am__leading_dot 702SET_MAKE 703AWK 704mkdir_p 705MKDIR_P 706INSTALL_STRIP_PROGRAM 707STRIP 708install_sh 709MAKEINFO 710AUTOHEADER 711AUTOMAKE 712AUTOCONF 713ACLOCAL 714VERSION 715PACKAGE 716CYGPATH_W 717am__isrc 718INSTALL_DATA 719INSTALL_SCRIPT 720INSTALL_PROGRAM 721ENABLE_STATIC_BIN_FALSE 722ENABLE_STATIC_BIN_TRUE 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742runstatedir 743localstatedir 744sharedstatedir 745sysconfdir 746datadir 747datarootdir 748libexecdir 749sbindir 750bindir 751program_transform_name 752prefix 753exec_prefix 754PACKAGE_URL 755PACKAGE_BUGREPORT 756PACKAGE_STRING 757PACKAGE_VERSION 758PACKAGE_TARNAME 759PACKAGE_NAME 760PATH_SEPARATOR 761SHELL 762am__quote' 763ac_subst_files='' 764ac_user_opts=' 765enable_option_checking 766enable_static_bin 767enable_silent_rules 768enable_shared 769enable_static 770with_pic 771enable_fast_install 772with_aix_soname 773enable_dependency_tracking 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777enable_maintainer_mode 778enable_profiling 779with_sctp 780with_openssl 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790LT_SYS_LIBRARY_PATH 791CPP' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830runstatedir='${localstatedir}/run' 831includedir='${prefix}/include' 832oldincludedir='/usr/include' 833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834infodir='${datarootdir}/info' 835htmldir='${docdir}' 836dvidir='${docdir}' 837pdfdir='${docdir}' 838psdir='${docdir}' 839libdir='${exec_prefix}/lib' 840localedir='${datarootdir}/locale' 841mandir='${datarootdir}/man' 842 843ac_prev= 844ac_dashdash= 845for ac_option 846do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 # Accept the important Cygnus configure options, so we can diagnose typos. 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: $ac_useropt" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084 | --runstate | --runstat | --runsta | --runst | --runs \ 1085 | --run | --ru | --r) 1086 ac_prev=runstatedir ;; 1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089 | --run=* | --ru=* | --r=*) 1090 runstatedir=$ac_optarg ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: $ac_useropt" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=\$ac_optarg ;; 1152 1153 -without-* | --without-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=no ;; 1168 1169 --x) 1170 # Obsolete; use --with-x. 1171 with_x=yes ;; 1172 1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1174 | --x-incl | --x-inc | --x-in | --x-i) 1175 ac_prev=x_includes ;; 1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1178 x_includes=$ac_optarg ;; 1179 1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1182 ac_prev=x_libraries ;; 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1185 x_libraries=$ac_optarg ;; 1186 1187 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1188Try \`$0 --help' for more information" 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 case $ac_envvar in #( 1195 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1197 esac 1198 eval $ac_envvar=\$ac_optarg 1199 export $ac_envvar ;; 1200 1201 *) 1202 # FIXME: should be removed in autoconf 3.0. 1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 ;; 1208 1209 esac 1210done 1211 1212if test -n "$ac_prev"; then 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1214 as_fn_error $? "missing argument to $ac_option" 1215fi 1216 1217if test -n "$ac_unrecognized_opts"; then 1218 case $enable_option_checking in 1219 no) ;; 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 esac 1223fi 1224 1225# Check all directory arguments for consistency. 1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 libdir localedir mandir runstatedir 1230do 1231 eval ac_val=\$$ac_var 1232 # Remove trailing slashes. 1233 case $ac_val in 1234 */ ) 1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1236 eval $ac_var=\$ac_val;; 1237 esac 1238 # Be sure to have absolute directory names. 1239 case $ac_val in 1240 [\\/$]* | ?:[\\/]* ) continue;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1242 esac 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1244done 1245 1246# There might be people who depend on the old broken behavior: `$host' 1247# used to hold the argument of --host etc. 1248# FIXME: To remove some day. 1249build=$build_alias 1250host=$host_alias 1251target=$target_alias 1252 1253# FIXME: To remove some day. 1254if test "x$host_alias" != x; then 1255 if test "x$build_alias" = x; then 1256 cross_compiling=maybe 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285$as_echo X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342\`configure' configures iperf 3.10.1+ to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print \`checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for \`--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, \`make install' will install all the files in 1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1371for instance \`--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408_ACEOF 1409fi 1410 1411if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of iperf 3.10.1+:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-static-bin link iperf3 binary statically 1422 --enable-silent-rules less verbose build output (undo: "make V=1") 1423 --disable-silent-rules verbose build output (undo: "make V=0") 1424 --enable-shared[=PKGS] build shared libraries [default=yes] 1425 --enable-static[=PKGS] build static libraries [default=yes] 1426 --enable-fast-install[=PKGS] 1427 optimize for fast installation [default=yes] 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-libtool-lock avoid locking (might break parallel builds) 1433 --enable-maintainer-mode 1434 enable make rules and dependencies not useful (and 1435 sometimes confusing) to the casual installer 1436 --enable-profiling Enable iperf3 profiling binary 1437 1438Optional Packages: 1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1442 both] 1443 --with-aix-soname=aix|svr4|both 1444 shared library versioning (aka "SONAME") variant to 1445 provide on AIX, [default=aix]. 1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1447 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1448 compiler's sysroot if not specified). 1449 --without-sctp disable SCTP 1450 --with-openssl=DIR root of the OpenSSL directory 1451 1452Some influential environment variables: 1453 CC C compiler command 1454 CFLAGS C compiler flags 1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1456 nonstandard directory <lib dir> 1457 LIBS libraries to pass to the linker, e.g. -l<library> 1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1459 you have headers in a nonstandard directory <include dir> 1460 LT_SYS_LIBRARY_PATH 1461 User-defined run-time library search path. 1462 CPP C preprocessor 1463 1464Use these variables to override the choices made by `configure' or to help 1465it to find libraries and programs with nonstandard names/locations. 1466 1467Report bugs to <https://github.com/esnet/iperf>. 1468iperf home page: <https://software.es.net/iperf/>. 1469_ACEOF 1470ac_status=$? 1471fi 1472 1473if test "$ac_init_help" = "recursive"; then 1474 # If there are subdirs, report their specific --help. 1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1476 test -d "$ac_dir" || 1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1478 continue 1479 ac_builddir=. 1480 1481case "$ac_dir" in 1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483*) 1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491esac 1492ac_abs_top_builddir=$ac_pwd 1493ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494# for backward compatibility: 1495ac_top_builddir=$ac_top_build_prefix 1496 1497case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510esac 1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for guested configure. 1515 if test -f "$ac_srcdir/configure.gnu"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518 elif test -f "$ac_srcdir/configure"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure" --help=recursive 1521 else 1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523 fi || ac_status=$? 1524 cd "$ac_pwd" || { ac_status=$?; break; } 1525 done 1526fi 1527 1528test -n "$ac_init_help" && exit $ac_status 1529if $ac_init_version; then 1530 cat <<\_ACEOF 1531iperf configure 3.10.1+ 1532generated by GNU Autoconf 2.69 1533 1534Copyright (C) 2012 Free Software Foundation, Inc. 1535This configure script is free software; the Free Software Foundation 1536gives unlimited permission to copy, distribute and modify it. 1537_ACEOF 1538 exit 1539fi 1540 1541## ------------------------ ## 1542## Autoconf initialization. ## 1543## ------------------------ ## 1544 1545# ac_fn_c_try_compile LINENO 1546# -------------------------- 1547# Try to compile conftest.$ac_ext, and return whether this succeeded. 1548ac_fn_c_try_compile () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 rm -f conftest.$ac_objext 1552 if { { ac_try="$ac_compile" 1553case "(($ac_try" in 1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1555 *) ac_try_echo=$ac_try;; 1556esac 1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1558$as_echo "$ac_try_echo"; } >&5 1559 (eval "$ac_compile") 2>conftest.err 1560 ac_status=$? 1561 if test -s conftest.err; then 1562 grep -v '^ *+' conftest.err >conftest.er1 1563 cat conftest.er1 >&5 1564 mv -f conftest.er1 conftest.err 1565 fi 1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1567 test $ac_status = 0; } && { 1568 test -z "$ac_c_werror_flag" || 1569 test ! -s conftest.err 1570 } && test -s conftest.$ac_objext; then : 1571 ac_retval=0 1572else 1573 $as_echo "$as_me: failed program was:" >&5 1574sed 's/^/| /' conftest.$ac_ext >&5 1575 1576 ac_retval=1 1577fi 1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 as_fn_set_status $ac_retval 1580 1581} # ac_fn_c_try_compile 1582 1583# ac_fn_c_try_link LINENO 1584# ----------------------- 1585# Try to link conftest.$ac_ext, and return whether this succeeded. 1586ac_fn_c_try_link () 1587{ 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 rm -f conftest.$ac_objext conftest$ac_exeext 1590 if { { ac_try="$ac_link" 1591case "(($ac_try" in 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *) ac_try_echo=$ac_try;; 1594esac 1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596$as_echo "$ac_try_echo"; } >&5 1597 (eval "$ac_link") 2>conftest.err 1598 ac_status=$? 1599 if test -s conftest.err; then 1600 grep -v '^ *+' conftest.err >conftest.er1 1601 cat conftest.er1 >&5 1602 mv -f conftest.er1 conftest.err 1603 fi 1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; } && { 1606 test -z "$ac_c_werror_flag" || 1607 test ! -s conftest.err 1608 } && test -s conftest$ac_exeext && { 1609 test "$cross_compiling" = yes || 1610 test -x conftest$ac_exeext 1611 }; then : 1612 ac_retval=0 1613else 1614 $as_echo "$as_me: failed program was:" >&5 1615sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618fi 1619 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1620 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1621 # interfere with the next link command; also delete a directory that is 1622 # left behind by Apple's compiler. We do this before executing the actions. 1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_link 1628 1629# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1630# ------------------------------------------------------- 1631# Tests whether HEADER exists and can be compiled using the include files in 1632# INCLUDES, setting the cache variable VAR accordingly. 1633ac_fn_c_check_header_compile () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1637$as_echo_n "checking for $2... " >&6; } 1638if eval \${$3+:} false; then : 1639 $as_echo_n "(cached) " >&6 1640else 1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1642/* end confdefs.h. */ 1643$4 1644#include <$2> 1645_ACEOF 1646if ac_fn_c_try_compile "$LINENO"; then : 1647 eval "$3=yes" 1648else 1649 eval "$3=no" 1650fi 1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1652fi 1653eval ac_res=\$$3 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655$as_echo "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_c_check_header_compile 1659 1660# ac_fn_c_try_cpp LINENO 1661# ---------------------- 1662# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_cpp () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 if { { ac_try="$ac_cpp conftest.$ac_ext" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } > conftest.i && { 1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 }; then : 1685 ac_retval=0 1686else 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=1 1691fi 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_cpp 1696 1697# ac_fn_c_try_run LINENO 1698# ---------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1700# that executables *can* be run. 1701ac_fn_c_try_run () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>&5 1712 ac_status=$? 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1715 { { case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_try") 2>&5 1722 ac_status=$? 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; }; }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: program exited with status $ac_status" >&5 1728 $as_echo "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=$ac_status 1732fi 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_run 1738 1739# ac_fn_c_check_func LINENO FUNC VAR 1740# ---------------------------------- 1741# Tests whether FUNC exists, setting the cache variable VAR accordingly 1742ac_fn_c_check_func () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1746$as_echo_n "checking for $2... " >&6; } 1747if eval \${$3+:} false; then : 1748 $as_echo_n "(cached) " >&6 1749else 1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1754#define $2 innocuous_$2 1755 1756/* System header to define __stub macros and hopefully few prototypes, 1757 which can conflict with char $2 (); below. 1758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1759 <limits.h> exists even on freestanding compilers. */ 1760 1761#ifdef __STDC__ 1762# include <limits.h> 1763#else 1764# include <assert.h> 1765#endif 1766 1767#undef $2 1768 1769/* Override any GCC internal prototype to avoid an error. 1770 Use char because int might match the return type of a GCC 1771 builtin and then its argument prototype would still apply. */ 1772#ifdef __cplusplus 1773extern "C" 1774#endif 1775char $2 (); 1776/* The GNU C library defines this for functions which it implements 1777 to always fail with ENOSYS. Some functions are actually named 1778 something starting with __ and the normal name is an alias. */ 1779#if defined __stub_$2 || defined __stub___$2 1780choke me 1781#endif 1782 1783int 1784main () 1785{ 1786return $2 (); 1787 ; 1788 return 0; 1789} 1790_ACEOF 1791if ac_fn_c_try_link "$LINENO"; then : 1792 eval "$3=yes" 1793else 1794 eval "$3=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext \ 1797 conftest$ac_exeext conftest.$ac_ext 1798fi 1799eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801$as_echo "$ac_res" >&6; } 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804} # ac_fn_c_check_func 1805 1806# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1807# ------------------------------------------------------- 1808# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1809# the include files in INCLUDES and setting the cache variable VAR 1810# accordingly. 1811ac_fn_c_check_header_mongrel () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if eval \${$3+:} false; then : 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823else 1824 # Is the header compilable? 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1826$as_echo_n "checking $2 usability... " >&6; } 1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_c_try_compile "$LINENO"; then : 1833 ac_header_compiler=yes 1834else 1835 ac_header_compiler=no 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1839$as_echo "$ac_header_compiler" >&6; } 1840 1841# Is the header present? 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1843$as_echo_n "checking $2 presence... " >&6; } 1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_cpp "$LINENO"; then : 1849 ac_header_preproc=yes 1850else 1851 ac_header_preproc=no 1852fi 1853rm -f conftest.err conftest.i conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1855$as_echo "$ac_header_preproc" >&6; } 1856 1857# So? What about this header? 1858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1859 yes:no: ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1861$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864 ;; 1865 no:yes:* ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1867$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1869$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1871$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1873$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1876( $as_echo "## --------------------------------------------- ## 1877## Report this to https://github.com/esnet/iperf ## 1878## --------------------------------------------- ##" 1879 ) | sed "s/^/$as_me: WARNING: /" >&2 1880 ;; 1881esac 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883$as_echo_n "checking for $2... " >&6; } 1884if eval \${$3+:} false; then : 1885 $as_echo_n "(cached) " >&6 1886else 1887 eval "$3=\$ac_header_compiler" 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892fi 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_header_mongrel 1896 1897# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1898# ---------------------------------------------------- 1899# Tries to find if the field MEMBER exists in type AGGR, after including 1900# INCLUDES, setting cache variable VAR accordingly. 1901ac_fn_c_check_member () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1905$as_echo_n "checking for $2.$3... " >&6; } 1906if eval \${$4+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$5 1912int 1913main () 1914{ 1915static $2 ac_aggr; 1916if (ac_aggr.$3) 1917return 0; 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO"; then : 1923 eval "$4=yes" 1924else 1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1926/* end confdefs.h. */ 1927$5 1928int 1929main () 1930{ 1931static $2 ac_aggr; 1932if (sizeof ac_aggr.$3) 1933return 0; 1934 ; 1935 return 0; 1936} 1937_ACEOF 1938if ac_fn_c_try_compile "$LINENO"; then : 1939 eval "$4=yes" 1940else 1941 eval "$4=no" 1942fi 1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946fi 1947eval ac_res=\$$4 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1949$as_echo "$ac_res" >&6; } 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 1952} # ac_fn_c_check_member 1953cat >config.log <<_ACEOF 1954This file contains any messages produced by compilers while 1955running configure, to aid debugging if configure makes a mistake. 1956 1957It was created by iperf $as_me 3.10.1+, which was 1958generated by GNU Autoconf 2.69. Invocation command line was 1959 1960 $ $0 $@ 1961 1962_ACEOF 1963exec 5>>config.log 1964{ 1965cat <<_ASUNAME 1966## --------- ## 1967## Platform. ## 1968## --------- ## 1969 1970hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1971uname -m = `(uname -m) 2>/dev/null || echo unknown` 1972uname -r = `(uname -r) 2>/dev/null || echo unknown` 1973uname -s = `(uname -s) 2>/dev/null || echo unknown` 1974uname -v = `(uname -v) 2>/dev/null || echo unknown` 1975 1976/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1977/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1978 1979/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1980/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1981/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1982/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1983/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1984/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1985/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1986 1987_ASUNAME 1988 1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1990for as_dir in $PATH 1991do 1992 IFS=$as_save_IFS 1993 test -z "$as_dir" && as_dir=. 1994 $as_echo "PATH: $as_dir" 1995 done 1996IFS=$as_save_IFS 1997 1998} >&5 1999 2000cat >&5 <<_ACEOF 2001 2002 2003## ----------- ## 2004## Core tests. ## 2005## ----------- ## 2006 2007_ACEOF 2008 2009 2010# Keep a trace of the command line. 2011# Strip out --no-create and --no-recursion so they do not pile up. 2012# Strip out --silent because we don't want to record it for future runs. 2013# Also quote any args containing shell meta-characters. 2014# Make two passes to allow for proper duplicate-argument suppression. 2015ac_configure_args= 2016ac_configure_args0= 2017ac_configure_args1= 2018ac_must_keep_next=false 2019for ac_pass in 1 2 2020do 2021 for ac_arg 2022 do 2023 case $ac_arg in 2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2026 | -silent | --silent | --silen | --sile | --sil) 2027 continue ;; 2028 *\'*) 2029 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 esac 2031 case $ac_pass in 2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2033 2) 2034 as_fn_append ac_configure_args1 " '$ac_arg'" 2035 if test $ac_must_keep_next = true; then 2036 ac_must_keep_next=false # Got value, back to normal. 2037 else 2038 case $ac_arg in 2039 *=* | --config-cache | -C | -disable-* | --disable-* \ 2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2042 | -with-* | --with-* | -without-* | --without-* | --x) 2043 case "$ac_configure_args0 " in 2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2045 esac 2046 ;; 2047 -* ) ac_must_keep_next=true ;; 2048 esac 2049 fi 2050 as_fn_append ac_configure_args " '$ac_arg'" 2051 ;; 2052 esac 2053 done 2054done 2055{ ac_configure_args0=; unset ac_configure_args0;} 2056{ ac_configure_args1=; unset ac_configure_args1;} 2057 2058# When interrupted or exit'd, cleanup temporary files, and complete 2059# config.log. We remove comments because anyway the quotes in there 2060# would cause problems or look ugly. 2061# WARNING: Use '\'' to represent an apostrophe within the trap. 2062# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2063trap 'exit_status=$? 2064 # Save into config.log some information that might help in debugging. 2065 { 2066 echo 2067 2068 $as_echo "## ---------------- ## 2069## Cache variables. ## 2070## ---------------- ##" 2071 echo 2072 # The following way of writing the cache mishandles newlines in values, 2073( 2074 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2075 eval ac_val=\$$ac_var 2076 case $ac_val in #( 2077 *${as_nl}*) 2078 case $ac_var in #( 2079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2080$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2081 esac 2082 case $ac_var in #( 2083 _ | IFS | as_nl) ;; #( 2084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2085 *) { eval $ac_var=; unset $ac_var;} ;; 2086 esac ;; 2087 esac 2088 done 2089 (set) 2>&1 | 2090 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2091 *${as_nl}ac_space=\ *) 2092 sed -n \ 2093 "s/'\''/'\''\\\\'\'''\''/g; 2094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2095 ;; #( 2096 *) 2097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2098 ;; 2099 esac | 2100 sort 2101) 2102 echo 2103 2104 $as_echo "## ----------------- ## 2105## Output variables. ## 2106## ----------------- ##" 2107 echo 2108 for ac_var in $ac_subst_vars 2109 do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in 2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2113 esac 2114 $as_echo "$ac_var='\''$ac_val'\''" 2115 done | sort 2116 echo 2117 2118 if test -n "$ac_subst_files"; then 2119 $as_echo "## ------------------- ## 2120## File substitutions. ## 2121## ------------------- ##" 2122 echo 2123 for ac_var in $ac_subst_files 2124 do 2125 eval ac_val=\$$ac_var 2126 case $ac_val in 2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2128 esac 2129 $as_echo "$ac_var='\''$ac_val'\''" 2130 done | sort 2131 echo 2132 fi 2133 2134 if test -s confdefs.h; then 2135 $as_echo "## ----------- ## 2136## confdefs.h. ## 2137## ----------- ##" 2138 echo 2139 cat confdefs.h 2140 echo 2141 fi 2142 test "$ac_signal" != 0 && 2143 $as_echo "$as_me: caught signal $ac_signal" 2144 $as_echo "$as_me: exit $exit_status" 2145 } >&5 2146 rm -f core *.core core.conftest.* && 2147 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2148 exit $exit_status 2149' 0 2150for ac_signal in 1 2 13 15; do 2151 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2152done 2153ac_signal=0 2154 2155# confdefs.h avoids OS command line length limits that DEFS can exceed. 2156rm -f -r conftest* confdefs.h 2157 2158$as_echo "/* confdefs.h */" > confdefs.h 2159 2160# Predefined preprocessor variables. 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_NAME "$PACKAGE_NAME" 2164_ACEOF 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2168_ACEOF 2169 2170cat >>confdefs.h <<_ACEOF 2171#define PACKAGE_VERSION "$PACKAGE_VERSION" 2172_ACEOF 2173 2174cat >>confdefs.h <<_ACEOF 2175#define PACKAGE_STRING "$PACKAGE_STRING" 2176_ACEOF 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2180_ACEOF 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_URL "$PACKAGE_URL" 2184_ACEOF 2185 2186 2187# Let the site file select an alternate cache file if it wants to. 2188# Prefer an explicitly selected file to automatically selected ones. 2189ac_site_file1=NONE 2190ac_site_file2=NONE 2191if test -n "$CONFIG_SITE"; then 2192 # We do not want a PATH search for config.site. 2193 case $CONFIG_SITE in #(( 2194 -*) ac_site_file1=./$CONFIG_SITE;; 2195 */*) ac_site_file1=$CONFIG_SITE;; 2196 *) ac_site_file1=./$CONFIG_SITE;; 2197 esac 2198elif test "x$prefix" != xNONE; then 2199 ac_site_file1=$prefix/share/config.site 2200 ac_site_file2=$prefix/etc/config.site 2201else 2202 ac_site_file1=$ac_default_prefix/share/config.site 2203 ac_site_file2=$ac_default_prefix/etc/config.site 2204fi 2205for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2206do 2207 test "x$ac_site_file" = xNONE && continue 2208 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2210$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2211 sed 's/^/| /' "$ac_site_file" >&5 2212 . "$ac_site_file" \ 2213 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215as_fn_error $? "failed to load site script $ac_site_file 2216See \`config.log' for more details" "$LINENO" 5; } 2217 fi 2218done 2219 2220if test -r "$cache_file"; then 2221 # Some versions of bash will fail to source /dev/null (special files 2222 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2223 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2225$as_echo "$as_me: loading cache $cache_file" >&6;} 2226 case $cache_file in 2227 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2228 *) . "./$cache_file";; 2229 esac 2230 fi 2231else 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2233$as_echo "$as_me: creating cache $cache_file" >&6;} 2234 >$cache_file 2235fi 2236 2237# Check that the precious variables saved in the cache have kept the same 2238# value. 2239ac_cache_corrupted=false 2240for ac_var in $ac_precious_vars; do 2241 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2242 eval ac_new_set=\$ac_env_${ac_var}_set 2243 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2244 eval ac_new_val=\$ac_env_${ac_var}_value 2245 case $ac_old_set,$ac_new_set in 2246 set,) 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2248$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2249 ac_cache_corrupted=: ;; 2250 ,set) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2252$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2253 ac_cache_corrupted=: ;; 2254 ,);; 2255 *) 2256 if test "x$ac_old_val" != "x$ac_new_val"; then 2257 # differences in whitespace do not lead to failure. 2258 ac_old_val_w=`echo x $ac_old_val` 2259 ac_new_val_w=`echo x $ac_new_val` 2260 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2262$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2263 ac_cache_corrupted=: 2264 else 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2266$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2267 eval $ac_var=\$ac_old_val 2268 fi 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2270$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2272$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2273 fi;; 2274 esac 2275 # Pass precious variables to config.status. 2276 if test "$ac_new_set" = set; then 2277 case $ac_new_val in 2278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2279 *) ac_arg=$ac_var=$ac_new_val ;; 2280 esac 2281 case " $ac_configure_args " in 2282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2283 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2284 esac 2285 fi 2286done 2287if $ac_cache_corrupted; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2291$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2293fi 2294## -------------------- ## 2295## Main body of script. ## 2296## -------------------- ## 2297 2298ac_ext=c 2299ac_cpp='$CPP $CPPFLAGS' 2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2302ac_compiler_gnu=$ac_cv_c_compiler_gnu 2303 2304 2305# =========================================================================== 2306# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html 2307# =========================================================================== 2308# 2309# SYNOPSIS 2310# 2311# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) 2312# 2313# DESCRIPTION 2314# 2315# Look for OpenSSL in a number of default spots, or in a user-selected 2316# spot (via --with-openssl). Sets 2317# 2318# OPENSSL_INCLUDES to the include directives required 2319# OPENSSL_LIBS to the -l directives required 2320# OPENSSL_LDFLAGS to the -L or -R flags required 2321# 2322# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately 2323# 2324# This macro sets OPENSSL_INCLUDES such that source files should use the 2325# openssl/ directory in include directives: 2326# 2327# #include <openssl/hmac.h> 2328# 2329# LICENSE 2330# 2331# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/> 2332# Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]> 2333# 2334# Copying and distribution of this file, with or without modification, are 2335# permitted in any medium without royalty provided the copyright notice 2336# and this notice are preserved. This file is offered as-is, without any 2337# warranty. 2338 2339#serial 10 2340 2341# This is what autoupdate's m4 run will expand. It fires 2342# the warning (with _au_warn_XXX), outputs it into the 2343# updated configure.ac (with AC_DIAGNOSE), and then outputs 2344# the replacement expansion. 2345 2346 2347# This is an auxiliary macro that is also run when 2348# autoupdate runs m4. It simply calls m4_warning, but 2349# we need a wrapper so that each warning is emitted only 2350# once. We break the quoting in m4_warning's argument in 2351# order to expand this macro's arguments, not AU_DEFUN's. 2352 2353 2354# Finally, this is the expansion that is picked up by 2355# autoconf. It tells the user to run autoupdate, and 2356# then outputs the replacement expansion. We do not care 2357# about autoupdate's warning because that contains 2358# information on what to do *after* running autoupdate. 2359 2360 2361 2362# Also link binaries as static 2363# Check whether --enable-static-bin was given. 2364if test "${enable_static_bin+set}" = set; then : 2365 enableval=$enable_static_bin; enable_static=yes 2366 enable_shared=no 2367 enable_static_bin=yes 2368else 2369 : 2370fi 2371 2372 if test x$enable_static_bin = xno; then 2373 ENABLE_STATIC_BIN_TRUE= 2374 ENABLE_STATIC_BIN_FALSE='#' 2375else 2376 ENABLE_STATIC_BIN_TRUE='#' 2377 ENABLE_STATIC_BIN_FALSE= 2378fi 2379 2380 2381if test "x$enable_static_bin" == xyes; then : 2382 LDFLAGS="$LDFLAGS --static" 2383 2384fi 2385 2386ac_ext=c 2387ac_cpp='$CPP $CPPFLAGS' 2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2390ac_compiler_gnu=$ac_cv_c_compiler_gnu 2391 2392 2393# Specify where the auxiliary files created by configure should go. The config 2394# directory is picked so that they don't clutter up more useful directories. 2395ac_aux_dir= 2396for ac_dir in config "$srcdir"/config; do 2397 if test -f "$ac_dir/install-sh"; then 2398 ac_aux_dir=$ac_dir 2399 ac_install_sh="$ac_aux_dir/install-sh -c" 2400 break 2401 elif test -f "$ac_dir/install.sh"; then 2402 ac_aux_dir=$ac_dir 2403 ac_install_sh="$ac_aux_dir/install.sh -c" 2404 break 2405 elif test -f "$ac_dir/shtool"; then 2406 ac_aux_dir=$ac_dir 2407 ac_install_sh="$ac_aux_dir/shtool install -c" 2408 break 2409 fi 2410done 2411if test -z "$ac_aux_dir"; then 2412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2413fi 2414 2415# These three variables are undocumented and unsupported, 2416# and are intended to be withdrawn in a future Autoconf release. 2417# They can cause serious problems if a builder's source tree is in a directory 2418# whose full name contains unusual characters. 2419ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2420ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2421ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2422 2423 2424 2425 2426# Initialize the automake system 2427am__api_version='1.16' 2428 2429# Find a good install program. We prefer a C program (faster), 2430# so one script is as good as another. But avoid the broken or 2431# incompatible versions: 2432# SysV /etc/install, /usr/sbin/install 2433# SunOS /usr/etc/install 2434# IRIX /sbin/install 2435# AIX /bin/install 2436# AmigaOS /C/install, which installs bootblocks on floppy discs 2437# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2438# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2439# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2440# OS/2's system install, which has a completely different semantic 2441# ./install, which can be erroneously created by make from ./install.sh. 2442# Reject install programs that cannot install multiple files. 2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2444$as_echo_n "checking for a BSD-compatible install... " >&6; } 2445if test -z "$INSTALL"; then 2446if ${ac_cv_path_install+:} false; then : 2447 $as_echo_n "(cached) " >&6 2448else 2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450for as_dir in $PATH 2451do 2452 IFS=$as_save_IFS 2453 test -z "$as_dir" && as_dir=. 2454 # Account for people who put trailing slashes in PATH elements. 2455case $as_dir/ in #(( 2456 ./ | .// | /[cC]/* | \ 2457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2459 /usr/ucb/* ) ;; 2460 *) 2461 # OSF1 and SCO ODT 3.0 have their own names for install. 2462 # Don't use installbsd from OSF since it installs stuff as root 2463 # by default. 2464 for ac_prog in ginstall scoinst install; do 2465 for ac_exec_ext in '' $ac_executable_extensions; do 2466 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2467 if test $ac_prog = install && 2468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2469 # AIX install. It has an incompatible calling convention. 2470 : 2471 elif test $ac_prog = install && 2472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2473 # program-specific install script used by HP pwplus--don't use. 2474 : 2475 else 2476 rm -rf conftest.one conftest.two conftest.dir 2477 echo one > conftest.one 2478 echo two > conftest.two 2479 mkdir conftest.dir 2480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2481 test -s conftest.one && test -s conftest.two && 2482 test -s conftest.dir/conftest.one && 2483 test -s conftest.dir/conftest.two 2484 then 2485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2486 break 3 2487 fi 2488 fi 2489 fi 2490 done 2491 done 2492 ;; 2493esac 2494 2495 done 2496IFS=$as_save_IFS 2497 2498rm -rf conftest.one conftest.two conftest.dir 2499 2500fi 2501 if test "${ac_cv_path_install+set}" = set; then 2502 INSTALL=$ac_cv_path_install 2503 else 2504 # As a last resort, use the slow shell script. Don't cache a 2505 # value for INSTALL within a source directory, because that will 2506 # break other packages using the cache if that directory is 2507 # removed, or if the value is a relative name. 2508 INSTALL=$ac_install_sh 2509 fi 2510fi 2511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2512$as_echo "$INSTALL" >&6; } 2513 2514# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2515# It thinks the first close brace ends the variable substitution. 2516test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2517 2518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2519 2520test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2521 2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2523$as_echo_n "checking whether build environment is sane... " >&6; } 2524# Reject unsafe characters in $srcdir or the absolute working directory 2525# name. Accept space and tab only in the latter. 2526am_lf=' 2527' 2528case `pwd` in 2529 *[\\\"\#\$\&\'\`$am_lf]*) 2530 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2531esac 2532case $srcdir in 2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2534 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2535esac 2536 2537# Do 'set' in a subshell so we don't clobber the current shell's 2538# arguments. Must try -L first in case configure is actually a 2539# symlink; some systems play weird games with the mod time of symlinks 2540# (eg FreeBSD returns the mod time of the symlink's containing 2541# directory). 2542if ( 2543 am_has_slept=no 2544 for am_try in 1 2; do 2545 echo "timestamp, slept: $am_has_slept" > conftest.file 2546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2547 if test "$*" = "X"; then 2548 # -L didn't work. 2549 set X `ls -t "$srcdir/configure" conftest.file` 2550 fi 2551 if test "$*" != "X $srcdir/configure conftest.file" \ 2552 && test "$*" != "X conftest.file $srcdir/configure"; then 2553 2554 # If neither matched, then we have a broken ls. This can happen 2555 # if, for instance, CONFIG_SHELL is bash and it inherits a 2556 # broken ls alias from the environment. This has actually 2557 # happened. Such a system could not be considered "sane". 2558 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2559 alias in your environment" "$LINENO" 5 2560 fi 2561 if test "$2" = conftest.file || test $am_try -eq 2; then 2562 break 2563 fi 2564 # Just in case. 2565 sleep 1 2566 am_has_slept=yes 2567 done 2568 test "$2" = conftest.file 2569 ) 2570then 2571 # Ok. 2572 : 2573else 2574 as_fn_error $? "newly created file is older than distributed files! 2575Check your system clock" "$LINENO" 5 2576fi 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2578$as_echo "yes" >&6; } 2579# If we didn't sleep, we still need to ensure time stamps of config.status and 2580# generated files are strictly newer. 2581am_sleep_pid= 2582if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2583 ( sleep 1 ) & 2584 am_sleep_pid=$! 2585fi 2586 2587rm -f conftest.file 2588 2589test "$program_prefix" != NONE && 2590 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2591# Use a double $ so make ignores it. 2592test "$program_suffix" != NONE && 2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2594# Double any \ or $. 2595# By default was `s,x,x', remove it if useless. 2596ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2597program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2598 2599# Expand $ac_aux_dir to an absolute path. 2600am_aux_dir=`cd "$ac_aux_dir" && pwd` 2601 2602if test x"${MISSING+set}" != xset; then 2603 case $am_aux_dir in 2604 *\ * | *\ *) 2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2606 *) 2607 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2608 esac 2609fi 2610# Use eval to expand $SHELL 2611if eval "$MISSING --is-lightweight"; then 2612 am_missing_run="$MISSING " 2613else 2614 am_missing_run= 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2616$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2617fi 2618 2619if test x"${install_sh+set}" != xset; then 2620 case $am_aux_dir in 2621 *\ * | *\ *) 2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2623 *) 2624 install_sh="\${SHELL} $am_aux_dir/install-sh" 2625 esac 2626fi 2627 2628# Installed binaries are usually stripped using 'strip' when the user 2629# run "make install-strip". However 'strip' might not be the right 2630# tool to use in cross-compilation environments, therefore Automake 2631# will honor the 'STRIP' environment variable to overrule this program. 2632if test "$cross_compiling" != no; then 2633 if test -n "$ac_tool_prefix"; then 2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2635set dummy ${ac_tool_prefix}strip; ac_word=$2 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2637$as_echo_n "checking for $ac_word... " >&6; } 2638if ${ac_cv_prog_STRIP+:} false; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 if test -n "$STRIP"; then 2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656 done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661STRIP=$ac_cv_prog_STRIP 2662if test -n "$STRIP"; then 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2664$as_echo "$STRIP" >&6; } 2665else 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2667$as_echo "no" >&6; } 2668fi 2669 2670 2671fi 2672if test -z "$ac_cv_prog_STRIP"; then 2673 ac_ct_STRIP=$STRIP 2674 # Extract the first word of "strip", so it can be a program name with args. 2675set dummy strip; ac_word=$2 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$ac_ct_STRIP"; then 2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 ac_cv_prog_ac_ct_STRIP="strip" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700fi 2701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2702if test -n "$ac_ct_STRIP"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2704$as_echo "$ac_ct_STRIP" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 if test "x$ac_ct_STRIP" = x; then 2711 STRIP=":" 2712 else 2713 case $cross_compiling:$ac_tool_warned in 2714yes:) 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2717ac_tool_warned=yes ;; 2718esac 2719 STRIP=$ac_ct_STRIP 2720 fi 2721else 2722 STRIP="$ac_cv_prog_STRIP" 2723fi 2724 2725fi 2726INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2727 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2729$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2730if test -z "$MKDIR_P"; then 2731 if ${ac_cv_path_mkdir+:} false; then : 2732 $as_echo_n "(cached) " >&6 2733else 2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_prog in mkdir gmkdir; do 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2743 'mkdir (GNU coreutils) '* | \ 2744 'mkdir (coreutils) '* | \ 2745 'mkdir (fileutils) '4.1*) 2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2747 break 3;; 2748 esac 2749 done 2750 done 2751 done 2752IFS=$as_save_IFS 2753 2754fi 2755 2756 test -d ./--version && rmdir ./--version 2757 if test "${ac_cv_path_mkdir+set}" = set; then 2758 MKDIR_P="$ac_cv_path_mkdir -p" 2759 else 2760 # As a last resort, use the slow shell script. Don't cache a 2761 # value for MKDIR_P within a source directory, because that will 2762 # break other packages using the cache if that directory is 2763 # removed, or if the value is a relative name. 2764 MKDIR_P="$ac_install_sh -d" 2765 fi 2766fi 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2768$as_echo "$MKDIR_P" >&6; } 2769 2770for ac_prog in gawk mawk nawk awk 2771do 2772 # Extract the first word of "$ac_prog", so it can be a program name with args. 2773set dummy $ac_prog; ac_word=$2 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2775$as_echo_n "checking for $ac_word... " >&6; } 2776if ${ac_cv_prog_AWK+:} false; then : 2777 $as_echo_n "(cached) " >&6 2778else 2779 if test -n "$AWK"; then 2780 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2781else 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2789 ac_cv_prog_AWK="$ac_prog" 2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793done 2794 done 2795IFS=$as_save_IFS 2796 2797fi 2798fi 2799AWK=$ac_cv_prog_AWK 2800if test -n "$AWK"; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2802$as_echo "$AWK" >&6; } 2803else 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2805$as_echo "no" >&6; } 2806fi 2807 2808 2809 test -n "$AWK" && break 2810done 2811 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2813$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2814set x ${MAKE-make} 2815ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2816if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 cat >conftest.make <<\_ACEOF 2820SHELL = /bin/sh 2821all: 2822 @echo '@@@%%%=$(MAKE)=@@@%%%' 2823_ACEOF 2824# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2825case `${MAKE-make} -f conftest.make 2>/dev/null` in 2826 *@@@%%%=?*=@@@%%%*) 2827 eval ac_cv_prog_make_${ac_make}_set=yes;; 2828 *) 2829 eval ac_cv_prog_make_${ac_make}_set=no;; 2830esac 2831rm -f conftest.make 2832fi 2833if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2835$as_echo "yes" >&6; } 2836 SET_MAKE= 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840 SET_MAKE="MAKE=${MAKE-make}" 2841fi 2842 2843rm -rf .tst 2>/dev/null 2844mkdir .tst 2>/dev/null 2845if test -d .tst; then 2846 am__leading_dot=. 2847else 2848 am__leading_dot=_ 2849fi 2850rmdir .tst 2>/dev/null 2851 2852# Check whether --enable-silent-rules was given. 2853if test "${enable_silent_rules+set}" = set; then : 2854 enableval=$enable_silent_rules; 2855fi 2856 2857case $enable_silent_rules in # ((( 2858 yes) AM_DEFAULT_VERBOSITY=0;; 2859 no) AM_DEFAULT_VERBOSITY=1;; 2860 *) AM_DEFAULT_VERBOSITY=1;; 2861esac 2862am_make=${MAKE-make} 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2864$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2865if ${am_cv_make_support_nested_variables+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if $as_echo 'TRUE=$(BAR$(V)) 2869BAR0=false 2870BAR1=true 2871V=1 2872am__doit: 2873 @$(TRUE) 2874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2875 am_cv_make_support_nested_variables=yes 2876else 2877 am_cv_make_support_nested_variables=no 2878fi 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2881$as_echo "$am_cv_make_support_nested_variables" >&6; } 2882if test $am_cv_make_support_nested_variables = yes; then 2883 AM_V='$(V)' 2884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2885else 2886 AM_V=$AM_DEFAULT_VERBOSITY 2887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2888fi 2889AM_BACKSLASH='\' 2890 2891if test "`cd $srcdir && pwd`" != "`pwd`"; then 2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2893 # is not polluted with repeated "-I." 2894 am__isrc=' -I$(srcdir)' 2895 # test to see if srcdir already configured 2896 if test -f $srcdir/config.status; then 2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2898 fi 2899fi 2900 2901# test whether we have cygpath 2902if test -z "$CYGPATH_W"; then 2903 if (cygpath --version) >/dev/null 2>/dev/null; then 2904 CYGPATH_W='cygpath -w' 2905 else 2906 CYGPATH_W=echo 2907 fi 2908fi 2909 2910 2911# Define the identity of the package. 2912 PACKAGE='iperf' 2913 VERSION='3.10.1+' 2914 2915 2916cat >>confdefs.h <<_ACEOF 2917#define PACKAGE "$PACKAGE" 2918_ACEOF 2919 2920 2921cat >>confdefs.h <<_ACEOF 2922#define VERSION "$VERSION" 2923_ACEOF 2924 2925# Some tools Automake needs. 2926 2927ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2928 2929 2930AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2931 2932 2933AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2934 2935 2936AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2937 2938 2939MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2940 2941# For better backward compatibility. To be removed once Automake 1.9.x 2942# dies out for good. For more background, see: 2943# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2944# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2945mkdir_p='$(MKDIR_P)' 2946 2947# We need awk for the "check" target (and possibly the TAP driver). The 2948# system "awk" is bad on some platforms. 2949# Always define AMTAR for backward compatibility. Yes, it's still used 2950# in the wild :-( We should find a proper way to deprecate it ... 2951AMTAR='$${TAR-tar}' 2952 2953 2954# We'll loop over all known methods to create a tar archive until one works. 2955_am_tools='gnutar pax cpio none' 2956 2957am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2958 2959 2960 2961 2962 2963 2964# POSIX will say in a future version that running "rm -f" with no argument 2965# is OK; and we want to be able to make that assumption in our Makefile 2966# recipes. So use an aggressive probe to check that the usage we want is 2967# actually supported "in the wild" to an acceptable degree. 2968# See automake bug#10828. 2969# To make any issue more visible, cause the running configure to be aborted 2970# by default if the 'rm' program in use doesn't match our expectations; the 2971# user can still override this though. 2972if rm -f && rm -fr && rm -rf; then : OK; else 2973 cat >&2 <<'END' 2974Oops! 2975 2976Your 'rm' program seems unable to run without file operands specified 2977on the command line, even when the '-f' option is present. This is contrary 2978to the behaviour of most rm programs out there, and not conforming with 2979the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2980 2981Please tell bug-automake@gnu.org about your system, including the value 2982of your $PATH and any error possibly output before this message. This 2983can help us improve future automake versions. 2984 2985END 2986 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2987 echo 'Configuration will proceed anyway, since you have set the' >&2 2988 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2989 echo >&2 2990 else 2991 cat >&2 <<'END' 2992Aborting the configuration process, to ensure you take notice of the issue. 2993 2994You can download and install GNU coreutils to get an 'rm' implementation 2995that behaves properly: <https://www.gnu.org/software/coreutils/>. 2996 2997If you want to complete the configuration process using your problematic 2998'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2999to "yes", and re-run configure. 3000 3001END 3002 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3003 fi 3004fi 3005 3006# Check whether --enable-silent-rules was given. 3007if test "${enable_silent_rules+set}" = set; then : 3008 enableval=$enable_silent_rules; 3009fi 3010 3011case $enable_silent_rules in # ((( 3012 yes) AM_DEFAULT_VERBOSITY=0;; 3013 no) AM_DEFAULT_VERBOSITY=1;; 3014 *) AM_DEFAULT_VERBOSITY=0;; 3015esac 3016am_make=${MAKE-make} 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3018$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3019if ${am_cv_make_support_nested_variables+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if $as_echo 'TRUE=$(BAR$(V)) 3023BAR0=false 3024BAR1=true 3025V=1 3026am__doit: 3027 @$(TRUE) 3028.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3029 am_cv_make_support_nested_variables=yes 3030else 3031 am_cv_make_support_nested_variables=no 3032fi 3033fi 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3035$as_echo "$am_cv_make_support_nested_variables" >&6; } 3036if test $am_cv_make_support_nested_variables = yes; then 3037 AM_V='$(V)' 3038 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3039else 3040 AM_V=$AM_DEFAULT_VERBOSITY 3041 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3042fi 3043AM_BACKSLASH='\' 3044 3045case `pwd` in 3046 *\ * | *\ *) 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3048$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3049esac 3050 3051 3052 3053macro_version='2.4.6' 3054macro_revision='2.4.6' 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068ltmain=$ac_aux_dir/ltmain.sh 3069 3070# Make sure we can run config.sub. 3071$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3072 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3073 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3075$as_echo_n "checking build system type... " >&6; } 3076if ${ac_cv_build+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078else 3079 ac_build_alias=$build_alias 3080test "x$ac_build_alias" = x && 3081 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3082test "x$ac_build_alias" = x && 3083 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3084ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3085 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3086 3087fi 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3089$as_echo "$ac_cv_build" >&6; } 3090case $ac_cv_build in 3091*-*-*) ;; 3092*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3093esac 3094build=$ac_cv_build 3095ac_save_IFS=$IFS; IFS='-' 3096set x $ac_cv_build 3097shift 3098build_cpu=$1 3099build_vendor=$2 3100shift; shift 3101# Remember, the first character of IFS is used to create $*, 3102# except with old shells: 3103build_os=$* 3104IFS=$ac_save_IFS 3105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3106 3107 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3109$as_echo_n "checking host system type... " >&6; } 3110if ${ac_cv_host+:} false; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 if test "x$host_alias" = x; then 3114 ac_cv_host=$ac_cv_build 3115else 3116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3117 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3118fi 3119 3120fi 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3122$as_echo "$ac_cv_host" >&6; } 3123case $ac_cv_host in 3124*-*-*) ;; 3125*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3126esac 3127host=$ac_cv_host 3128ac_save_IFS=$IFS; IFS='-' 3129set x $ac_cv_host 3130shift 3131host_cpu=$1 3132host_vendor=$2 3133shift; shift 3134# Remember, the first character of IFS is used to create $*, 3135# except with old shells: 3136host_os=$* 3137IFS=$ac_save_IFS 3138case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3139 3140 3141# Backslashify metacharacters that are still active within 3142# double-quoted strings. 3143sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3144 3145# Same as above, but do not quote variable references. 3146double_quote_subst='s/\(["`\\]\)/\\\1/g' 3147 3148# Sed substitution to delay expansion of an escaped shell variable in a 3149# double_quote_subst'ed string. 3150delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3151 3152# Sed substitution to delay expansion of an escaped single quote. 3153delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3154 3155# Sed substitution to avoid accidental globbing in evaled expressions 3156no_glob_subst='s/\*/\\\*/g' 3157 3158ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3159ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3160ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3161 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3163$as_echo_n "checking how to print strings... " >&6; } 3164# Test print first, because it will be a builtin if present. 3165if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3166 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3167 ECHO='print -r --' 3168elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3169 ECHO='printf %s\n' 3170else 3171 # Use this function as a fallback that always works. 3172 func_fallback_echo () 3173 { 3174 eval 'cat <<_LTECHO_EOF 3175$1 3176_LTECHO_EOF' 3177 } 3178 ECHO='func_fallback_echo' 3179fi 3180 3181# func_echo_all arg... 3182# Invoke $ECHO with all args, space-separated. 3183func_echo_all () 3184{ 3185 $ECHO "" 3186} 3187 3188case $ECHO in 3189 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3190$as_echo "printf" >&6; } ;; 3191 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3192$as_echo "print -r" >&6; } ;; 3193 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3194$as_echo "cat" >&6; } ;; 3195esac 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210DEPDIR="${am__leading_dot}deps" 3211 3212ac_config_commands="$ac_config_commands depfiles" 3213 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3215$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3216cat > confinc.mk << 'END' 3217am__doit: 3218 @echo this is the am__doit target >confinc.out 3219.PHONY: am__doit 3220END 3221am__include="#" 3222am__quote= 3223# BSD make does it like this. 3224echo '.include "confinc.mk" # ignored' > confmf.BSD 3225# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3226echo 'include confinc.mk # ignored' > confmf.GNU 3227_am_result=no 3228for s in GNU BSD; do 3229 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3230 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3231 ac_status=$? 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); } 3234 case $?:`cat confinc.out 2>/dev/null` in #( 3235 '0:this is the am__doit target') : 3236 case $s in #( 3237 BSD) : 3238 am__include='.include' am__quote='"' ;; #( 3239 *) : 3240 am__include='include' am__quote='' ;; 3241esac ;; #( 3242 *) : 3243 ;; 3244esac 3245 if test "$am__include" != "#"; then 3246 _am_result="yes ($s style)" 3247 break 3248 fi 3249done 3250rm -f confinc.* confmf.* 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3252$as_echo "${_am_result}" >&6; } 3253 3254# Check whether --enable-dependency-tracking was given. 3255if test "${enable_dependency_tracking+set}" = set; then : 3256 enableval=$enable_dependency_tracking; 3257fi 3258 3259if test "x$enable_dependency_tracking" != xno; then 3260 am_depcomp="$ac_aux_dir/depcomp" 3261 AMDEPBACKSLASH='\' 3262 am__nodep='_no' 3263fi 3264 if test "x$enable_dependency_tracking" != xno; then 3265 AMDEP_TRUE= 3266 AMDEP_FALSE='#' 3267else 3268 AMDEP_TRUE='#' 3269 AMDEP_FALSE= 3270fi 3271 3272 3273ac_ext=c 3274ac_cpp='$CPP $CPPFLAGS' 3275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3277ac_compiler_gnu=$ac_cv_c_compiler_gnu 3278if test -n "$ac_tool_prefix"; then 3279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3280set dummy ${ac_tool_prefix}gcc; ac_word=$2 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3282$as_echo_n "checking for $ac_word... " >&6; } 3283if ${ac_cv_prog_CC+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if test -n "$CC"; then 3287 ac_cv_prog_CC="$CC" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3296 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300done 3301 done 3302IFS=$as_save_IFS 3303 3304fi 3305fi 3306CC=$ac_cv_prog_CC 3307if test -n "$CC"; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3309$as_echo "$CC" >&6; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312$as_echo "no" >&6; } 3313fi 3314 3315 3316fi 3317if test -z "$ac_cv_prog_CC"; then 3318 ac_ct_CC=$CC 3319 # Extract the first word of "gcc", so it can be a program name with args. 3320set dummy gcc; ac_word=$2 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3322$as_echo_n "checking for $ac_word... " >&6; } 3323if ${ac_cv_prog_ac_ct_CC+:} false; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 if test -n "$ac_ct_CC"; then 3327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3328else 3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3330for as_dir in $PATH 3331do 3332 IFS=$as_save_IFS 3333 test -z "$as_dir" && as_dir=. 3334 for ac_exec_ext in '' $ac_executable_extensions; do 3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3336 ac_cv_prog_ac_ct_CC="gcc" 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3338 break 2 3339 fi 3340done 3341 done 3342IFS=$as_save_IFS 3343 3344fi 3345fi 3346ac_ct_CC=$ac_cv_prog_ac_ct_CC 3347if test -n "$ac_ct_CC"; then 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3349$as_echo "$ac_ct_CC" >&6; } 3350else 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352$as_echo "no" >&6; } 3353fi 3354 3355 if test "x$ac_ct_CC" = x; then 3356 CC="" 3357 else 3358 case $cross_compiling:$ac_tool_warned in 3359yes:) 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3362ac_tool_warned=yes ;; 3363esac 3364 CC=$ac_ct_CC 3365 fi 3366else 3367 CC="$ac_cv_prog_CC" 3368fi 3369 3370if test -z "$CC"; then 3371 if test -n "$ac_tool_prefix"; then 3372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3373set dummy ${ac_tool_prefix}cc; ac_word=$2 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375$as_echo_n "checking for $ac_word... " >&6; } 3376if ${ac_cv_prog_CC+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381else 3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3383for as_dir in $PATH 3384do 3385 IFS=$as_save_IFS 3386 test -z "$as_dir" && as_dir=. 3387 for ac_exec_ext in '' $ac_executable_extensions; do 3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3389 ac_cv_prog_CC="${ac_tool_prefix}cc" 3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393done 3394 done 3395IFS=$as_save_IFS 3396 3397fi 3398fi 3399CC=$ac_cv_prog_CC 3400if test -n "$CC"; then 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3402$as_echo "$CC" >&6; } 3403else 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3405$as_echo "no" >&6; } 3406fi 3407 3408 3409 fi 3410fi 3411if test -z "$CC"; then 3412 # Extract the first word of "cc", so it can be a program name with args. 3413set dummy cc; ac_word=$2 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3415$as_echo_n "checking for $ac_word... " >&6; } 3416if ${ac_cv_prog_CC+:} false; then : 3417 $as_echo_n "(cached) " >&6 3418else 3419 if test -n "$CC"; then 3420 ac_cv_prog_CC="$CC" # Let the user override the test. 3421else 3422 ac_prog_rejected=no 3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424for as_dir in $PATH 3425do 3426 IFS=$as_save_IFS 3427 test -z "$as_dir" && as_dir=. 3428 for ac_exec_ext in '' $ac_executable_extensions; do 3429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3431 ac_prog_rejected=yes 3432 continue 3433 fi 3434 ac_cv_prog_CC="cc" 3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439 done 3440IFS=$as_save_IFS 3441 3442if test $ac_prog_rejected = yes; then 3443 # We found a bogon in the path, so make sure we never use it. 3444 set dummy $ac_cv_prog_CC 3445 shift 3446 if test $# != 0; then 3447 # We chose a different compiler from the bogus one. 3448 # However, it has the same basename, so the bogon will be chosen 3449 # first if we set CC to just the basename; use the full file name. 3450 shift 3451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3452 fi 3453fi 3454fi 3455fi 3456CC=$ac_cv_prog_CC 3457if test -n "$CC"; then 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3459$as_echo "$CC" >&6; } 3460else 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3462$as_echo "no" >&6; } 3463fi 3464 3465 3466fi 3467if test -z "$CC"; then 3468 if test -n "$ac_tool_prefix"; then 3469 for ac_prog in cl.exe 3470 do 3471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3472set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474$as_echo_n "checking for $ac_word... " >&6; } 3475if ${ac_cv_prog_CC+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 if test -n "$CC"; then 3479 ac_cv_prog_CC="$CC" # Let the user override the test. 3480else 3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492done 3493 done 3494IFS=$as_save_IFS 3495 3496fi 3497fi 3498CC=$ac_cv_prog_CC 3499if test -n "$CC"; then 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3501$as_echo "$CC" >&6; } 3502else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504$as_echo "no" >&6; } 3505fi 3506 3507 3508 test -n "$CC" && break 3509 done 3510fi 3511if test -z "$CC"; then 3512 ac_ct_CC=$CC 3513 for ac_prog in cl.exe 3514do 3515 # Extract the first word of "$ac_prog", so it can be a program name with args. 3516set dummy $ac_prog; ac_word=$2 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3518$as_echo_n "checking for $ac_word... " >&6; } 3519if ${ac_cv_prog_ac_ct_CC+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 if test -n "$ac_ct_CC"; then 3523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3524else 3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH 3527do 3528 IFS=$as_save_IFS 3529 test -z "$as_dir" && as_dir=. 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3532 ac_cv_prog_ac_ct_CC="$ac_prog" 3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3534 break 2 3535 fi 3536done 3537 done 3538IFS=$as_save_IFS 3539 3540fi 3541fi 3542ac_ct_CC=$ac_cv_prog_ac_ct_CC 3543if test -n "$ac_ct_CC"; then 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3545$as_echo "$ac_ct_CC" >&6; } 3546else 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548$as_echo "no" >&6; } 3549fi 3550 3551 3552 test -n "$ac_ct_CC" && break 3553done 3554 3555 if test "x$ac_ct_CC" = x; then 3556 CC="" 3557 else 3558 case $cross_compiling:$ac_tool_warned in 3559yes:) 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3562ac_tool_warned=yes ;; 3563esac 3564 CC=$ac_ct_CC 3565 fi 3566fi 3567 3568fi 3569 3570 3571test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3573as_fn_error $? "no acceptable C compiler found in \$PATH 3574See \`config.log' for more details" "$LINENO" 5; } 3575 3576# Provide some information about the compiler. 3577$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3578set X $ac_compile 3579ac_compiler=$2 3580for ac_option in --version -v -V -qversion; do 3581 { { ac_try="$ac_compiler $ac_option >&5" 3582case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585esac 3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3587$as_echo "$ac_try_echo"; } >&5 3588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3589 ac_status=$? 3590 if test -s conftest.err; then 3591 sed '10a\ 3592... rest of stderr output deleted ... 3593 10q' conftest.err >conftest.er1 3594 cat conftest.er1 >&5 3595 fi 3596 rm -f conftest.er1 conftest.err 3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3598 test $ac_status = 0; } 3599done 3600 3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603 3604int 3605main () 3606{ 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612ac_clean_files_save=$ac_clean_files 3613ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3614# Try to create an executable without -o first, disregard a.out. 3615# It will help us diagnose broken compilers, and finding out an intuition 3616# of exeext. 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3618$as_echo_n "checking whether the C compiler works... " >&6; } 3619ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3620 3621# The possible output files: 3622ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3623 3624ac_rmfiles= 3625for ac_file in $ac_files 3626do 3627 case $ac_file in 3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3629 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3630 esac 3631done 3632rm -f $ac_rmfiles 3633 3634if { { ac_try="$ac_link_default" 3635case "(($ac_try" in 3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3637 *) ac_try_echo=$ac_try;; 3638esac 3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3640$as_echo "$ac_try_echo"; } >&5 3641 (eval "$ac_link_default") 2>&5 3642 ac_status=$? 3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3644 test $ac_status = 0; }; then : 3645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3646# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3647# in a Makefile. We should not override ac_cv_exeext if it was cached, 3648# so that the user can short-circuit this test for compilers unknown to 3649# Autoconf. 3650for ac_file in $ac_files '' 3651do 3652 test -f "$ac_file" || continue 3653 case $ac_file in 3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3655 ;; 3656 [ab].out ) 3657 # We found the default executable, but exeext='' is most 3658 # certainly right. 3659 break;; 3660 *.* ) 3661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3662 then :; else 3663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3664 fi 3665 # We set ac_cv_exeext here because the later test for it is not 3666 # safe: cross compilers may not add the suffix if given an `-o' 3667 # argument, so we may need to know it at that point already. 3668 # Even if this section looks crufty: it has the advantage of 3669 # actually working. 3670 break;; 3671 * ) 3672 break;; 3673 esac 3674done 3675test "$ac_cv_exeext" = no && ac_cv_exeext= 3676 3677else 3678 ac_file='' 3679fi 3680if test -z "$ac_file"; then : 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682$as_echo "no" >&6; } 3683$as_echo "$as_me: failed program was:" >&5 3684sed 's/^/| /' conftest.$ac_ext >&5 3685 3686{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3688as_fn_error 77 "C compiler cannot create executables 3689See \`config.log' for more details" "$LINENO" 5; } 3690else 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3692$as_echo "yes" >&6; } 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3695$as_echo_n "checking for C compiler default output file name... " >&6; } 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3697$as_echo "$ac_file" >&6; } 3698ac_exeext=$ac_cv_exeext 3699 3700rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3701ac_clean_files=$ac_clean_files_save 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3703$as_echo_n "checking for suffix of executables... " >&6; } 3704if { { ac_try="$ac_link" 3705case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708esac 3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3710$as_echo "$ac_try_echo"; } >&5 3711 (eval "$ac_link") 2>&5 3712 ac_status=$? 3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3714 test $ac_status = 0; }; then : 3715 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3716# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3717# work properly (i.e., refer to `conftest.exe'), while it won't with 3718# `rm'. 3719for ac_file in conftest.exe conftest conftest.*; do 3720 test -f "$ac_file" || continue 3721 case $ac_file in 3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3723 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3724 break;; 3725 * ) break;; 3726 esac 3727done 3728else 3729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3731as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3732See \`config.log' for more details" "$LINENO" 5; } 3733fi 3734rm -f conftest conftest$ac_cv_exeext 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3736$as_echo "$ac_cv_exeext" >&6; } 3737 3738rm -f conftest.$ac_ext 3739EXEEXT=$ac_cv_exeext 3740ac_exeext=$EXEEXT 3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743#include <stdio.h> 3744int 3745main () 3746{ 3747FILE *f = fopen ("conftest.out", "w"); 3748 return ferror (f) || fclose (f) != 0; 3749 3750 ; 3751 return 0; 3752} 3753_ACEOF 3754ac_clean_files="$ac_clean_files conftest.out" 3755# Check that the compiler produces executables we can run. If not, either 3756# the compiler is broken, or we cross compile. 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3758$as_echo_n "checking whether we are cross compiling... " >&6; } 3759if test "$cross_compiling" != yes; then 3760 { { ac_try="$ac_link" 3761case "(($ac_try" in 3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3763 *) ac_try_echo=$ac_try;; 3764esac 3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3766$as_echo "$ac_try_echo"; } >&5 3767 (eval "$ac_link") 2>&5 3768 ac_status=$? 3769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3770 test $ac_status = 0; } 3771 if { ac_try='./conftest$ac_cv_exeext' 3772 { { case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775esac 3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3777$as_echo "$ac_try_echo"; } >&5 3778 (eval "$ac_try") 2>&5 3779 ac_status=$? 3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3781 test $ac_status = 0; }; }; then 3782 cross_compiling=no 3783 else 3784 if test "$cross_compiling" = maybe; then 3785 cross_compiling=yes 3786 else 3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3789as_fn_error $? "cannot run C compiled programs. 3790If you meant to cross compile, use \`--host'. 3791See \`config.log' for more details" "$LINENO" 5; } 3792 fi 3793 fi 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3796$as_echo "$cross_compiling" >&6; } 3797 3798rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3799ac_clean_files=$ac_clean_files_save 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3801$as_echo_n "checking for suffix of object files... " >&6; } 3802if ${ac_cv_objext+:} false; then : 3803 $as_echo_n "(cached) " >&6 3804else 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807 3808int 3809main () 3810{ 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816rm -f conftest.o conftest.obj 3817if { { ac_try="$ac_compile" 3818case "(($ac_try" in 3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3820 *) ac_try_echo=$ac_try;; 3821esac 3822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3823$as_echo "$ac_try_echo"; } >&5 3824 (eval "$ac_compile") 2>&5 3825 ac_status=$? 3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3827 test $ac_status = 0; }; then : 3828 for ac_file in conftest.o conftest.obj conftest.*; do 3829 test -f "$ac_file" || continue; 3830 case $ac_file in 3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3833 break;; 3834 esac 3835done 3836else 3837 $as_echo "$as_me: failed program was:" >&5 3838sed 's/^/| /' conftest.$ac_ext >&5 3839 3840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3842as_fn_error $? "cannot compute suffix of object files: cannot compile 3843See \`config.log' for more details" "$LINENO" 5; } 3844fi 3845rm -f conftest.$ac_cv_objext conftest.$ac_ext 3846fi 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3848$as_echo "$ac_cv_objext" >&6; } 3849OBJEXT=$ac_cv_objext 3850ac_objext=$OBJEXT 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3852$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3853if ${ac_cv_c_compiler_gnu+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3857/* end confdefs.h. */ 3858 3859int 3860main () 3861{ 3862#ifndef __GNUC__ 3863 choke me 3864#endif 3865 3866 ; 3867 return 0; 3868} 3869_ACEOF 3870if ac_fn_c_try_compile "$LINENO"; then : 3871 ac_compiler_gnu=yes 3872else 3873 ac_compiler_gnu=no 3874fi 3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3876ac_cv_c_compiler_gnu=$ac_compiler_gnu 3877 3878fi 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3880$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3881if test $ac_compiler_gnu = yes; then 3882 GCC=yes 3883else 3884 GCC= 3885fi 3886ac_test_CFLAGS=${CFLAGS+set} 3887ac_save_CFLAGS=$CFLAGS 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3889$as_echo_n "checking whether $CC accepts -g... " >&6; } 3890if ${ac_cv_prog_cc_g+:} false; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 ac_save_c_werror_flag=$ac_c_werror_flag 3894 ac_c_werror_flag=yes 3895 ac_cv_prog_cc_g=no 3896 CFLAGS="-g" 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO"; then : 3909 ac_cv_prog_cc_g=yes 3910else 3911 CFLAGS="" 3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3913/* end confdefs.h. */ 3914 3915int 3916main () 3917{ 3918 3919 ; 3920 return 0; 3921} 3922_ACEOF 3923if ac_fn_c_try_compile "$LINENO"; then : 3924 3925else 3926 ac_c_werror_flag=$ac_save_c_werror_flag 3927 CFLAGS="-g" 3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929/* end confdefs.h. */ 3930 3931int 3932main () 3933{ 3934 3935 ; 3936 return 0; 3937} 3938_ACEOF 3939if ac_fn_c_try_compile "$LINENO"; then : 3940 ac_cv_prog_cc_g=yes 3941fi 3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3943fi 3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3945fi 3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3947 ac_c_werror_flag=$ac_save_c_werror_flag 3948fi 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3950$as_echo "$ac_cv_prog_cc_g" >&6; } 3951if test "$ac_test_CFLAGS" = set; then 3952 CFLAGS=$ac_save_CFLAGS 3953elif test $ac_cv_prog_cc_g = yes; then 3954 if test "$GCC" = yes; then 3955 CFLAGS="-g -O2" 3956 else 3957 CFLAGS="-g" 3958 fi 3959else 3960 if test "$GCC" = yes; then 3961 CFLAGS="-O2" 3962 else 3963 CFLAGS= 3964 fi 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3967$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3968if ${ac_cv_prog_cc_c89+:} false; then : 3969 $as_echo_n "(cached) " >&6 3970else 3971 ac_cv_prog_cc_c89=no 3972ac_save_CC=$CC 3973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975#include <stdarg.h> 3976#include <stdio.h> 3977struct stat; 3978/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3979struct buf { int x; }; 3980FILE * (*rcsopen) (struct buf *, struct stat *, int); 3981static char *e (p, i) 3982 char **p; 3983 int i; 3984{ 3985 return p[i]; 3986} 3987static char *f (char * (*g) (char **, int), char **p, ...) 3988{ 3989 char *s; 3990 va_list v; 3991 va_start (v,p); 3992 s = g (p, va_arg (v,int)); 3993 va_end (v); 3994 return s; 3995} 3996 3997/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3998 function prototypes and stuff, but not '\xHH' hex character constants. 3999 These don't provoke an error unfortunately, instead are silently treated 4000 as 'x'. The following induces an error, until -std is added to get 4001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4002 array size at least. It's necessary to write '\x00'==0 to get something 4003 that's true only with -std. */ 4004int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4005 4006/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4007 inside strings and character constants. */ 4008#define FOO(x) 'x' 4009int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4010 4011int test (int i, double x); 4012struct s1 {int (*f) (int a);}; 4013struct s2 {int (*f) (double a);}; 4014int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4015int argc; 4016char **argv; 4017int 4018main () 4019{ 4020return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4021 ; 4022 return 0; 4023} 4024_ACEOF 4025for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4027do 4028 CC="$ac_save_CC $ac_arg" 4029 if ac_fn_c_try_compile "$LINENO"; then : 4030 ac_cv_prog_cc_c89=$ac_arg 4031fi 4032rm -f core conftest.err conftest.$ac_objext 4033 test "x$ac_cv_prog_cc_c89" != "xno" && break 4034done 4035rm -f conftest.$ac_ext 4036CC=$ac_save_CC 4037 4038fi 4039# AC_CACHE_VAL 4040case "x$ac_cv_prog_cc_c89" in 4041 x) 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4043$as_echo "none needed" >&6; } ;; 4044 xno) 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4046$as_echo "unsupported" >&6; } ;; 4047 *) 4048 CC="$CC $ac_cv_prog_cc_c89" 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4050$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4051esac 4052if test "x$ac_cv_prog_cc_c89" != xno; then : 4053 4054fi 4055 4056ac_ext=c 4057ac_cpp='$CPP $CPPFLAGS' 4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4060ac_compiler_gnu=$ac_cv_c_compiler_gnu 4061 4062ac_ext=c 4063ac_cpp='$CPP $CPPFLAGS' 4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4066ac_compiler_gnu=$ac_cv_c_compiler_gnu 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4068$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4069if ${am_cv_prog_cc_c_o+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074 4075int 4076main () 4077{ 4078 4079 ; 4080 return 0; 4081} 4082_ACEOF 4083 # Make sure it works both with $CC and with simple cc. 4084 # Following AC_PROG_CC_C_O, we do the test twice because some 4085 # compilers refuse to overwrite an existing .o file with -o, 4086 # though they will create one. 4087 am_cv_prog_cc_c_o=yes 4088 for am_i in 1 2; do 4089 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4090 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4091 ac_status=$? 4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4093 (exit $ac_status); } \ 4094 && test -f conftest2.$ac_objext; then 4095 : OK 4096 else 4097 am_cv_prog_cc_c_o=no 4098 break 4099 fi 4100 done 4101 rm -f core conftest* 4102 unset am_i 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4105$as_echo "$am_cv_prog_cc_c_o" >&6; } 4106if test "$am_cv_prog_cc_c_o" != yes; then 4107 # Losing compiler, so override with the script. 4108 # FIXME: It is wrong to rewrite CC. 4109 # But if we don't then we get into trouble of one sort or another. 4110 # A longer-term fix would be to have automake use am__CC in this case, 4111 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4112 CC="$am_aux_dir/compile $CC" 4113fi 4114ac_ext=c 4115ac_cpp='$CPP $CPPFLAGS' 4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4118ac_compiler_gnu=$ac_cv_c_compiler_gnu 4119 4120 4121depcc="$CC" am_compiler_list= 4122 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4124$as_echo_n "checking dependency style of $depcc... " >&6; } 4125if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4126 $as_echo_n "(cached) " >&6 4127else 4128 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4129 # We make a subdir and do the tests there. Otherwise we can end up 4130 # making bogus files that we don't know about and never remove. For 4131 # instance it was reported that on HP-UX the gcc test will end up 4132 # making a dummy file named 'D' -- because '-MD' means "put the output 4133 # in D". 4134 rm -rf conftest.dir 4135 mkdir conftest.dir 4136 # Copy depcomp to subdir because otherwise we won't find it if we're 4137 # using a relative directory. 4138 cp "$am_depcomp" conftest.dir 4139 cd conftest.dir 4140 # We will build objects and dependencies in a subdirectory because 4141 # it helps to detect inapplicable dependency modes. For instance 4142 # both Tru64's cc and ICC support -MD to output dependencies as a 4143 # side effect of compilation, but ICC will put the dependencies in 4144 # the current directory while Tru64 will put them in the object 4145 # directory. 4146 mkdir sub 4147 4148 am_cv_CC_dependencies_compiler_type=none 4149 if test "$am_compiler_list" = ""; then 4150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4151 fi 4152 am__universal=false 4153 case " $depcc " in #( 4154 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4155 esac 4156 4157 for depmode in $am_compiler_list; do 4158 # Setup a source with many dependencies, because some compilers 4159 # like to wrap large dependency lists on column 80 (with \), and 4160 # we should not choose a depcomp mode which is confused by this. 4161 # 4162 # We need to recreate these files for each test, as the compiler may 4163 # overwrite some of them when testing with obscure command lines. 4164 # This happens at least with the AIX C compiler. 4165 : > sub/conftest.c 4166 for i in 1 2 3 4 5 6; do 4167 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4168 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4169 # Solaris 10 /bin/sh. 4170 echo '/* dummy */' > sub/conftst$i.h 4171 done 4172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4173 4174 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4175 # mode. It turns out that the SunPro C++ compiler does not properly 4176 # handle '-M -o', and we need to detect this. Also, some Intel 4177 # versions had trouble with output in subdirs. 4178 am__obj=sub/conftest.${OBJEXT-o} 4179 am__minus_obj="-o $am__obj" 4180 case $depmode in 4181 gcc) 4182 # This depmode causes a compiler race in universal mode. 4183 test "$am__universal" = false || continue 4184 ;; 4185 nosideeffect) 4186 # After this tag, mechanisms are not by side-effect, so they'll 4187 # only be used when explicitly requested. 4188 if test "x$enable_dependency_tracking" = xyes; then 4189 continue 4190 else 4191 break 4192 fi 4193 ;; 4194 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4195 # This compiler won't grok '-c -o', but also, the minuso test has 4196 # not run yet. These depmodes are late enough in the game, and 4197 # so weak that their functioning should not be impacted. 4198 am__obj=conftest.${OBJEXT-o} 4199 am__minus_obj= 4200 ;; 4201 none) break ;; 4202 esac 4203 if depmode=$depmode \ 4204 source=sub/conftest.c object=$am__obj \ 4205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4206 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4207 >/dev/null 2>conftest.err && 4208 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4209 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4210 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4211 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4212 # icc doesn't choke on unknown options, it will just issue warnings 4213 # or remarks (even with -Werror). So we grep stderr for any message 4214 # that says an option was ignored or not supported. 4215 # When given -MP, icc 7.0 and 7.1 complain thusly: 4216 # icc: Command line warning: ignoring option '-M'; no argument required 4217 # The diagnosis changed in icc 8.0: 4218 # icc: Command line remark: option '-MP' not supported 4219 if (grep 'ignoring option' conftest.err || 4220 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4221 am_cv_CC_dependencies_compiler_type=$depmode 4222 break 4223 fi 4224 fi 4225 done 4226 4227 cd .. 4228 rm -rf conftest.dir 4229else 4230 am_cv_CC_dependencies_compiler_type=none 4231fi 4232 4233fi 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4235$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4236CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4237 4238 if 4239 test "x$enable_dependency_tracking" != xno \ 4240 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4241 am__fastdepCC_TRUE= 4242 am__fastdepCC_FALSE='#' 4243else 4244 am__fastdepCC_TRUE='#' 4245 am__fastdepCC_FALSE= 4246fi 4247 4248 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4250$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4251if ${ac_cv_path_SED+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4255 for ac_i in 1 2 3 4 5 6 7; do 4256 ac_script="$ac_script$as_nl$ac_script" 4257 done 4258 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4259 { ac_script=; unset ac_script;} 4260 if test -z "$SED"; then 4261 ac_path_SED_found=false 4262 # Loop through the user's path and test for each of PROGNAME-LIST 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_prog in sed gsed; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4271 as_fn_executable_p "$ac_path_SED" || continue 4272# Check for GNU ac_path_SED and select it if it is found. 4273 # Check for GNU $ac_path_SED 4274case `"$ac_path_SED" --version 2>&1` in 4275*GNU*) 4276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4277*) 4278 ac_count=0 4279 $as_echo_n 0123456789 >"conftest.in" 4280 while : 4281 do 4282 cat "conftest.in" "conftest.in" >"conftest.tmp" 4283 mv "conftest.tmp" "conftest.in" 4284 cp "conftest.in" "conftest.nl" 4285 $as_echo '' >> "conftest.nl" 4286 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4288 as_fn_arith $ac_count + 1 && ac_count=$as_val 4289 if test $ac_count -gt ${ac_path_SED_max-0}; then 4290 # Best one so far, save it but keep looking for a better one 4291 ac_cv_path_SED="$ac_path_SED" 4292 ac_path_SED_max=$ac_count 4293 fi 4294 # 10*(2^10) chars as input seems more than enough 4295 test $ac_count -gt 10 && break 4296 done 4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4298esac 4299 4300 $ac_path_SED_found && break 3 4301 done 4302 done 4303 done 4304IFS=$as_save_IFS 4305 if test -z "$ac_cv_path_SED"; then 4306 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4307 fi 4308else 4309 ac_cv_path_SED=$SED 4310fi 4311 4312fi 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4314$as_echo "$ac_cv_path_SED" >&6; } 4315 SED="$ac_cv_path_SED" 4316 rm -f conftest.sed 4317 4318test -z "$SED" && SED=sed 4319Xsed="$SED -e 1s/^X//" 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4332$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4333if ${ac_cv_path_GREP+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 if test -z "$GREP"; then 4337 ac_path_GREP_found=false 4338 # Loop through the user's path and test for each of PROGNAME-LIST 4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4341do 4342 IFS=$as_save_IFS 4343 test -z "$as_dir" && as_dir=. 4344 for ac_prog in grep ggrep; do 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4347 as_fn_executable_p "$ac_path_GREP" || continue 4348# Check for GNU ac_path_GREP and select it if it is found. 4349 # Check for GNU $ac_path_GREP 4350case `"$ac_path_GREP" --version 2>&1` in 4351*GNU*) 4352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4353*) 4354 ac_count=0 4355 $as_echo_n 0123456789 >"conftest.in" 4356 while : 4357 do 4358 cat "conftest.in" "conftest.in" >"conftest.tmp" 4359 mv "conftest.tmp" "conftest.in" 4360 cp "conftest.in" "conftest.nl" 4361 $as_echo 'GREP' >> "conftest.nl" 4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4364 as_fn_arith $ac_count + 1 && ac_count=$as_val 4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4366 # Best one so far, save it but keep looking for a better one 4367 ac_cv_path_GREP="$ac_path_GREP" 4368 ac_path_GREP_max=$ac_count 4369 fi 4370 # 10*(2^10) chars as input seems more than enough 4371 test $ac_count -gt 10 && break 4372 done 4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4374esac 4375 4376 $ac_path_GREP_found && break 3 4377 done 4378 done 4379 done 4380IFS=$as_save_IFS 4381 if test -z "$ac_cv_path_GREP"; then 4382 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4383 fi 4384else 4385 ac_cv_path_GREP=$GREP 4386fi 4387 4388fi 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4390$as_echo "$ac_cv_path_GREP" >&6; } 4391 GREP="$ac_cv_path_GREP" 4392 4393 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4395$as_echo_n "checking for egrep... " >&6; } 4396if ${ac_cv_path_EGREP+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4400 then ac_cv_path_EGREP="$GREP -E" 4401 else 4402 if test -z "$EGREP"; then 4403 ac_path_EGREP_found=false 4404 # Loop through the user's path and test for each of PROGNAME-LIST 4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4407do 4408 IFS=$as_save_IFS 4409 test -z "$as_dir" && as_dir=. 4410 for ac_prog in egrep; do 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4413 as_fn_executable_p "$ac_path_EGREP" || continue 4414# Check for GNU ac_path_EGREP and select it if it is found. 4415 # Check for GNU $ac_path_EGREP 4416case `"$ac_path_EGREP" --version 2>&1` in 4417*GNU*) 4418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4419*) 4420 ac_count=0 4421 $as_echo_n 0123456789 >"conftest.in" 4422 while : 4423 do 4424 cat "conftest.in" "conftest.in" >"conftest.tmp" 4425 mv "conftest.tmp" "conftest.in" 4426 cp "conftest.in" "conftest.nl" 4427 $as_echo 'EGREP' >> "conftest.nl" 4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4430 as_fn_arith $ac_count + 1 && ac_count=$as_val 4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4432 # Best one so far, save it but keep looking for a better one 4433 ac_cv_path_EGREP="$ac_path_EGREP" 4434 ac_path_EGREP_max=$ac_count 4435 fi 4436 # 10*(2^10) chars as input seems more than enough 4437 test $ac_count -gt 10 && break 4438 done 4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4440esac 4441 4442 $ac_path_EGREP_found && break 3 4443 done 4444 done 4445 done 4446IFS=$as_save_IFS 4447 if test -z "$ac_cv_path_EGREP"; then 4448 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4449 fi 4450else 4451 ac_cv_path_EGREP=$EGREP 4452fi 4453 4454 fi 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4457$as_echo "$ac_cv_path_EGREP" >&6; } 4458 EGREP="$ac_cv_path_EGREP" 4459 4460 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4462$as_echo_n "checking for fgrep... " >&6; } 4463if ${ac_cv_path_FGREP+:} false; then : 4464 $as_echo_n "(cached) " >&6 4465else 4466 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4467 then ac_cv_path_FGREP="$GREP -F" 4468 else 4469 if test -z "$FGREP"; then 4470 ac_path_FGREP_found=false 4471 # Loop through the user's path and test for each of PROGNAME-LIST 4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4474do 4475 IFS=$as_save_IFS 4476 test -z "$as_dir" && as_dir=. 4477 for ac_prog in fgrep; do 4478 for ac_exec_ext in '' $ac_executable_extensions; do 4479 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4480 as_fn_executable_p "$ac_path_FGREP" || continue 4481# Check for GNU ac_path_FGREP and select it if it is found. 4482 # Check for GNU $ac_path_FGREP 4483case `"$ac_path_FGREP" --version 2>&1` in 4484*GNU*) 4485 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4486*) 4487 ac_count=0 4488 $as_echo_n 0123456789 >"conftest.in" 4489 while : 4490 do 4491 cat "conftest.in" "conftest.in" >"conftest.tmp" 4492 mv "conftest.tmp" "conftest.in" 4493 cp "conftest.in" "conftest.nl" 4494 $as_echo 'FGREP' >> "conftest.nl" 4495 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4497 as_fn_arith $ac_count + 1 && ac_count=$as_val 4498 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4499 # Best one so far, save it but keep looking for a better one 4500 ac_cv_path_FGREP="$ac_path_FGREP" 4501 ac_path_FGREP_max=$ac_count 4502 fi 4503 # 10*(2^10) chars as input seems more than enough 4504 test $ac_count -gt 10 && break 4505 done 4506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4507esac 4508 4509 $ac_path_FGREP_found && break 3 4510 done 4511 done 4512 done 4513IFS=$as_save_IFS 4514 if test -z "$ac_cv_path_FGREP"; then 4515 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4516 fi 4517else 4518 ac_cv_path_FGREP=$FGREP 4519fi 4520 4521 fi 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4524$as_echo "$ac_cv_path_FGREP" >&6; } 4525 FGREP="$ac_cv_path_FGREP" 4526 4527 4528test -z "$GREP" && GREP=grep 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548# Check whether --with-gnu-ld was given. 4549if test "${with_gnu_ld+set}" = set; then : 4550 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4551else 4552 with_gnu_ld=no 4553fi 4554 4555ac_prog=ld 4556if test yes = "$GCC"; then 4557 # Check if gcc -print-prog-name=ld gives a path. 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4559$as_echo_n "checking for ld used by $CC... " >&6; } 4560 case $host in 4561 *-*-mingw*) 4562 # gcc leaves a trailing carriage return, which upsets mingw 4563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4564 *) 4565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4566 esac 4567 case $ac_prog in 4568 # Accept absolute paths. 4569 [\\/]* | ?:[\\/]*) 4570 re_direlt='/[^/][^/]*/\.\./' 4571 # Canonicalize the pathname of ld 4572 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4573 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4574 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4575 done 4576 test -z "$LD" && LD=$ac_prog 4577 ;; 4578 "") 4579 # If it fails, then pretend we aren't using GCC. 4580 ac_prog=ld 4581 ;; 4582 *) 4583 # If it is relative, then search for the first ld in PATH. 4584 with_gnu_ld=unknown 4585 ;; 4586 esac 4587elif test yes = "$with_gnu_ld"; then 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4589$as_echo_n "checking for GNU ld... " >&6; } 4590else 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4592$as_echo_n "checking for non-GNU ld... " >&6; } 4593fi 4594if ${lt_cv_path_LD+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test -z "$LD"; then 4598 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4599 for ac_dir in $PATH; do 4600 IFS=$lt_save_ifs 4601 test -z "$ac_dir" && ac_dir=. 4602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4603 lt_cv_path_LD=$ac_dir/$ac_prog 4604 # Check to see if the program is GNU ld. I'd rather use --version, 4605 # but apparently some variants of GNU ld only accept -v. 4606 # Break only if it was the GNU/non-GNU ld that we prefer. 4607 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4608 *GNU* | *'with BFD'*) 4609 test no != "$with_gnu_ld" && break 4610 ;; 4611 *) 4612 test yes != "$with_gnu_ld" && break 4613 ;; 4614 esac 4615 fi 4616 done 4617 IFS=$lt_save_ifs 4618else 4619 lt_cv_path_LD=$LD # Let the user override the test with a path. 4620fi 4621fi 4622 4623LD=$lt_cv_path_LD 4624if test -n "$LD"; then 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4626$as_echo "$LD" >&6; } 4627else 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629$as_echo "no" >&6; } 4630fi 4631test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4633$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4634if ${lt_cv_prog_gnu_ld+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4638case `$LD -v 2>&1 </dev/null` in 4639*GNU* | *'with BFD'*) 4640 lt_cv_prog_gnu_ld=yes 4641 ;; 4642*) 4643 lt_cv_prog_gnu_ld=no 4644 ;; 4645esac 4646fi 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4648$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4649with_gnu_ld=$lt_cv_prog_gnu_ld 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4660$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4661if ${lt_cv_path_NM+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 if test -n "$NM"; then 4665 # Let the user override the test. 4666 lt_cv_path_NM=$NM 4667else 4668 lt_nm_to_check=${ac_tool_prefix}nm 4669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4670 lt_nm_to_check="$lt_nm_to_check nm" 4671 fi 4672 for lt_tmp_nm in $lt_nm_to_check; do 4673 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4675 IFS=$lt_save_ifs 4676 test -z "$ac_dir" && ac_dir=. 4677 tmp_nm=$ac_dir/$lt_tmp_nm 4678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4679 # Check to see if the nm accepts a BSD-compat flag. 4680 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4681 # nm: unknown option "B" ignored 4682 # Tru64's nm complains that /dev/null is an invalid object file 4683 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4684 case $build_os in 4685 mingw*) lt_bad_file=conftest.nm/nofile ;; 4686 *) lt_bad_file=/dev/null ;; 4687 esac 4688 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4689 *$lt_bad_file* | *'Invalid file or object type'*) 4690 lt_cv_path_NM="$tmp_nm -B" 4691 break 2 4692 ;; 4693 *) 4694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4695 */dev/null*) 4696 lt_cv_path_NM="$tmp_nm -p" 4697 break 2 4698 ;; 4699 *) 4700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4701 continue # so that we can try to find one that supports BSD flags 4702 ;; 4703 esac 4704 ;; 4705 esac 4706 fi 4707 done 4708 IFS=$lt_save_ifs 4709 done 4710 : ${lt_cv_path_NM=no} 4711fi 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4714$as_echo "$lt_cv_path_NM" >&6; } 4715if test no != "$lt_cv_path_NM"; then 4716 NM=$lt_cv_path_NM 4717else 4718 # Didn't find any BSD compatible name lister, look for dumpbin. 4719 if test -n "$DUMPBIN"; then : 4720 # Let the user override the test. 4721 else 4722 if test -n "$ac_tool_prefix"; then 4723 for ac_prog in dumpbin "link -dump" 4724 do 4725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4726set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4728$as_echo_n "checking for $ac_word... " >&6; } 4729if ${ac_cv_prog_DUMPBIN+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731else 4732 if test -n "$DUMPBIN"; then 4733 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4742 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747 done 4748IFS=$as_save_IFS 4749 4750fi 4751fi 4752DUMPBIN=$ac_cv_prog_DUMPBIN 4753if test -n "$DUMPBIN"; then 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4755$as_echo "$DUMPBIN" >&6; } 4756else 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4758$as_echo "no" >&6; } 4759fi 4760 4761 4762 test -n "$DUMPBIN" && break 4763 done 4764fi 4765if test -z "$DUMPBIN"; then 4766 ac_ct_DUMPBIN=$DUMPBIN 4767 for ac_prog in dumpbin "link -dump" 4768do 4769 # Extract the first word of "$ac_prog", so it can be a program name with args. 4770set dummy $ac_prog; ac_word=$2 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4772$as_echo_n "checking for $ac_word... " >&6; } 4773if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 if test -n "$ac_ct_DUMPBIN"; then 4777 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4778else 4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4780for as_dir in $PATH 4781do 4782 IFS=$as_save_IFS 4783 test -z "$as_dir" && as_dir=. 4784 for ac_exec_ext in '' $ac_executable_extensions; do 4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4786 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4788 break 2 4789 fi 4790done 4791 done 4792IFS=$as_save_IFS 4793 4794fi 4795fi 4796ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4797if test -n "$ac_ct_DUMPBIN"; then 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4799$as_echo "$ac_ct_DUMPBIN" >&6; } 4800else 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4802$as_echo "no" >&6; } 4803fi 4804 4805 4806 test -n "$ac_ct_DUMPBIN" && break 4807done 4808 4809 if test "x$ac_ct_DUMPBIN" = x; then 4810 DUMPBIN=":" 4811 else 4812 case $cross_compiling:$ac_tool_warned in 4813yes:) 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4816ac_tool_warned=yes ;; 4817esac 4818 DUMPBIN=$ac_ct_DUMPBIN 4819 fi 4820fi 4821 4822 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4823 *COFF*) 4824 DUMPBIN="$DUMPBIN -symbols -headers" 4825 ;; 4826 *) 4827 DUMPBIN=: 4828 ;; 4829 esac 4830 fi 4831 4832 if test : != "$DUMPBIN"; then 4833 NM=$DUMPBIN 4834 fi 4835fi 4836test -z "$NM" && NM=nm 4837 4838 4839 4840 4841 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4844$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4845if ${lt_cv_nm_interface+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 lt_cv_nm_interface="BSD nm" 4849 echo "int some_variable = 0;" > conftest.$ac_ext 4850 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4851 (eval "$ac_compile" 2>conftest.err) 4852 cat conftest.err >&5 4853 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4854 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4855 cat conftest.err >&5 4856 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4857 cat conftest.out >&5 4858 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4859 lt_cv_nm_interface="MS dumpbin" 4860 fi 4861 rm -f conftest* 4862fi 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4864$as_echo "$lt_cv_nm_interface" >&6; } 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4867$as_echo_n "checking whether ln -s works... " >&6; } 4868LN_S=$as_ln_s 4869if test "$LN_S" = "ln -s"; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4871$as_echo "yes" >&6; } 4872else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4874$as_echo "no, using $LN_S" >&6; } 4875fi 4876 4877# find the maximum length of command line arguments 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4879$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4880if ${lt_cv_sys_max_cmd_len+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 i=0 4884 teststring=ABCD 4885 4886 case $build_os in 4887 msdosdjgpp*) 4888 # On DJGPP, this test can blow up pretty badly due to problems in libc 4889 # (any single argument exceeding 2000 bytes causes a buffer overrun 4890 # during glob expansion). Even if it were fixed, the result of this 4891 # check would be larger than it should be. 4892 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4893 ;; 4894 4895 gnu*) 4896 # Under GNU Hurd, this test is not required because there is 4897 # no limit to the length of command line arguments. 4898 # Libtool will interpret -1 as no limit whatsoever 4899 lt_cv_sys_max_cmd_len=-1; 4900 ;; 4901 4902 cygwin* | mingw* | cegcc*) 4903 # On Win9x/ME, this test blows up -- it succeeds, but takes 4904 # about 5 minutes as the teststring grows exponentially. 4905 # Worse, since 9x/ME are not pre-emptively multitasking, 4906 # you end up with a "frozen" computer, even though with patience 4907 # the test eventually succeeds (with a max line length of 256k). 4908 # Instead, let's just punt: use the minimum linelength reported by 4909 # all of the supported platforms: 8192 (on NT/2K/XP). 4910 lt_cv_sys_max_cmd_len=8192; 4911 ;; 4912 4913 mint*) 4914 # On MiNT this can take a long time and run out of memory. 4915 lt_cv_sys_max_cmd_len=8192; 4916 ;; 4917 4918 amigaos*) 4919 # On AmigaOS with pdksh, this test takes hours, literally. 4920 # So we just punt and use a minimum line length of 8192. 4921 lt_cv_sys_max_cmd_len=8192; 4922 ;; 4923 4924 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4925 # This has been around since 386BSD, at least. Likely further. 4926 if test -x /sbin/sysctl; then 4927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4928 elif test -x /usr/sbin/sysctl; then 4929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4930 else 4931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4932 fi 4933 # And add a safety zone 4934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4936 ;; 4937 4938 interix*) 4939 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4940 lt_cv_sys_max_cmd_len=196608 4941 ;; 4942 4943 os2*) 4944 # The test takes a long time on OS/2. 4945 lt_cv_sys_max_cmd_len=8192 4946 ;; 4947 4948 osf*) 4949 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4950 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4951 # nice to cause kernel panics so lets avoid the loop below. 4952 # First set a reasonable default. 4953 lt_cv_sys_max_cmd_len=16384 4954 # 4955 if test -x /sbin/sysconfig; then 4956 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4957 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4958 esac 4959 fi 4960 ;; 4961 sco3.2v5*) 4962 lt_cv_sys_max_cmd_len=102400 4963 ;; 4964 sysv5* | sco5v6* | sysv4.2uw2*) 4965 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4966 if test -n "$kargmax"; then 4967 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4968 else 4969 lt_cv_sys_max_cmd_len=32768 4970 fi 4971 ;; 4972 *) 4973 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4974 if test -n "$lt_cv_sys_max_cmd_len" && \ 4975 test undefined != "$lt_cv_sys_max_cmd_len"; then 4976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4978 else 4979 # Make teststring a little bigger before we do anything with it. 4980 # a 1K string should be a reasonable start. 4981 for i in 1 2 3 4 5 6 7 8; do 4982 teststring=$teststring$teststring 4983 done 4984 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4985 # If test is not a shell built-in, we'll probably end up computing a 4986 # maximum length that is only half of the actual maximum length, but 4987 # we can't tell. 4988 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4989 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4990 test 17 != "$i" # 1/2 MB should be enough 4991 do 4992 i=`expr $i + 1` 4993 teststring=$teststring$teststring 4994 done 4995 # Only check the string length outside the loop. 4996 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4997 teststring= 4998 # Add a significant safety factor because C++ compilers can tack on 4999 # massive amounts of additional arguments before passing them to the 5000 # linker. It appears as though 1/2 is a usable value. 5001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5002 fi 5003 ;; 5004 esac 5005 5006fi 5007 5008if test -n "$lt_cv_sys_max_cmd_len"; then 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5010$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5011else 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5013$as_echo "none" >&6; } 5014fi 5015max_cmd_len=$lt_cv_sys_max_cmd_len 5016 5017 5018 5019 5020 5021 5022: ${CP="cp -f"} 5023: ${MV="mv -f"} 5024: ${RM="rm -f"} 5025 5026if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5027 lt_unset=unset 5028else 5029 lt_unset=false 5030fi 5031 5032 5033 5034 5035 5036# test EBCDIC or ASCII 5037case `echo X|tr X '\101'` in 5038 A) # ASCII based system 5039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5040 lt_SP2NL='tr \040 \012' 5041 lt_NL2SP='tr \015\012 \040\040' 5042 ;; 5043 *) # EBCDIC based system 5044 lt_SP2NL='tr \100 \n' 5045 lt_NL2SP='tr \r\n \100\100' 5046 ;; 5047esac 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5058$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5059if ${lt_cv_to_host_file_cmd+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 case $host in 5063 *-*-mingw* ) 5064 case $build in 5065 *-*-mingw* ) # actually msys 5066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5067 ;; 5068 *-*-cygwin* ) 5069 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5070 ;; 5071 * ) # otherwise, assume *nix 5072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5073 ;; 5074 esac 5075 ;; 5076 *-*-cygwin* ) 5077 case $build in 5078 *-*-mingw* ) # actually msys 5079 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5080 ;; 5081 *-*-cygwin* ) 5082 lt_cv_to_host_file_cmd=func_convert_file_noop 5083 ;; 5084 * ) # otherwise, assume *nix 5085 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5086 ;; 5087 esac 5088 ;; 5089 * ) # unhandled hosts (and "normal" native builds) 5090 lt_cv_to_host_file_cmd=func_convert_file_noop 5091 ;; 5092esac 5093 5094fi 5095 5096to_host_file_cmd=$lt_cv_to_host_file_cmd 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5098$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5099 5100 5101 5102 5103 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5105$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5106if ${lt_cv_to_tool_file_cmd+:} false; then : 5107 $as_echo_n "(cached) " >&6 5108else 5109 #assume ordinary cross tools, or native build. 5110lt_cv_to_tool_file_cmd=func_convert_file_noop 5111case $host in 5112 *-*-mingw* ) 5113 case $build in 5114 *-*-mingw* ) # actually msys 5115 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5116 ;; 5117 esac 5118 ;; 5119esac 5120 5121fi 5122 5123to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5125$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5126 5127 5128 5129 5130 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5132$as_echo_n "checking for $LD option to reload object files... " >&6; } 5133if ${lt_cv_ld_reload_flag+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 lt_cv_ld_reload_flag='-r' 5137fi 5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5139$as_echo "$lt_cv_ld_reload_flag" >&6; } 5140reload_flag=$lt_cv_ld_reload_flag 5141case $reload_flag in 5142"" | " "*) ;; 5143*) reload_flag=" $reload_flag" ;; 5144esac 5145reload_cmds='$LD$reload_flag -o $output$reload_objs' 5146case $host_os in 5147 cygwin* | mingw* | pw32* | cegcc*) 5148 if test yes != "$GCC"; then 5149 reload_cmds=false 5150 fi 5151 ;; 5152 darwin*) 5153 if test yes = "$GCC"; then 5154 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5155 else 5156 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5157 fi 5158 ;; 5159esac 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169if test -n "$ac_tool_prefix"; then 5170 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5171set dummy ${ac_tool_prefix}objdump; ac_word=$2 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173$as_echo_n "checking for $ac_word... " >&6; } 5174if ${ac_cv_prog_OBJDUMP+:} false; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 if test -n "$OBJDUMP"; then 5178 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5179else 5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5189 break 2 5190 fi 5191done 5192 done 5193IFS=$as_save_IFS 5194 5195fi 5196fi 5197OBJDUMP=$ac_cv_prog_OBJDUMP 5198if test -n "$OBJDUMP"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5200$as_echo "$OBJDUMP" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 5207fi 5208if test -z "$ac_cv_prog_OBJDUMP"; then 5209 ac_ct_OBJDUMP=$OBJDUMP 5210 # Extract the first word of "objdump", so it can be a program name with args. 5211set dummy objdump; ac_word=$2 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5213$as_echo_n "checking for $ac_word... " >&6; } 5214if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 if test -n "$ac_ct_OBJDUMP"; then 5218 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5219else 5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5221for as_dir in $PATH 5222do 5223 IFS=$as_save_IFS 5224 test -z "$as_dir" && as_dir=. 5225 for ac_exec_ext in '' $ac_executable_extensions; do 5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5227 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5229 break 2 5230 fi 5231done 5232 done 5233IFS=$as_save_IFS 5234 5235fi 5236fi 5237ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5238if test -n "$ac_ct_OBJDUMP"; then 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5240$as_echo "$ac_ct_OBJDUMP" >&6; } 5241else 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5243$as_echo "no" >&6; } 5244fi 5245 5246 if test "x$ac_ct_OBJDUMP" = x; then 5247 OBJDUMP="false" 5248 else 5249 case $cross_compiling:$ac_tool_warned in 5250yes:) 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5253ac_tool_warned=yes ;; 5254esac 5255 OBJDUMP=$ac_ct_OBJDUMP 5256 fi 5257else 5258 OBJDUMP="$ac_cv_prog_OBJDUMP" 5259fi 5260 5261test -z "$OBJDUMP" && OBJDUMP=objdump 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5272$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5273if ${lt_cv_deplibs_check_method+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 lt_cv_file_magic_cmd='$MAGIC_CMD' 5277lt_cv_file_magic_test_file= 5278lt_cv_deplibs_check_method='unknown' 5279# Need to set the preceding variable on all platforms that support 5280# interlibrary dependencies. 5281# 'none' -- dependencies not supported. 5282# 'unknown' -- same as none, but documents that we really don't know. 5283# 'pass_all' -- all dependencies passed with no checks. 5284# 'test_compile' -- check by making test program. 5285# 'file_magic [[regex]]' -- check by looking for files in library path 5286# that responds to the $file_magic_cmd with a given extended regex. 5287# If you have 'file' or equivalent on your system and you're not sure 5288# whether 'pass_all' will *always* work, you probably want this one. 5289 5290case $host_os in 5291aix[4-9]*) 5292 lt_cv_deplibs_check_method=pass_all 5293 ;; 5294 5295beos*) 5296 lt_cv_deplibs_check_method=pass_all 5297 ;; 5298 5299bsdi[45]*) 5300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5301 lt_cv_file_magic_cmd='/usr/bin/file -L' 5302 lt_cv_file_magic_test_file=/shlib/libc.so 5303 ;; 5304 5305cygwin*) 5306 # func_win32_libid is a shell function defined in ltmain.sh 5307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5308 lt_cv_file_magic_cmd='func_win32_libid' 5309 ;; 5310 5311mingw* | pw32*) 5312 # Base MSYS/MinGW do not provide the 'file' command needed by 5313 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5314 # unless we find 'file', for example because we are cross-compiling. 5315 if ( file / ) >/dev/null 2>&1; then 5316 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5317 lt_cv_file_magic_cmd='func_win32_libid' 5318 else 5319 # Keep this pattern in sync with the one in func_win32_libid. 5320 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5321 lt_cv_file_magic_cmd='$OBJDUMP -f' 5322 fi 5323 ;; 5324 5325cegcc*) 5326 # use the weaker test based on 'objdump'. See mingw*. 5327 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5328 lt_cv_file_magic_cmd='$OBJDUMP -f' 5329 ;; 5330 5331darwin* | rhapsody*) 5332 lt_cv_deplibs_check_method=pass_all 5333 ;; 5334 5335freebsd* | dragonfly*) 5336 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5337 case $host_cpu in 5338 i*86 ) 5339 # Not sure whether the presence of OpenBSD here was a mistake. 5340 # Let's accept both of them until this is cleared up. 5341 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5342 lt_cv_file_magic_cmd=/usr/bin/file 5343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5344 ;; 5345 esac 5346 else 5347 lt_cv_deplibs_check_method=pass_all 5348 fi 5349 ;; 5350 5351haiku*) 5352 lt_cv_deplibs_check_method=pass_all 5353 ;; 5354 5355hpux10.20* | hpux11*) 5356 lt_cv_file_magic_cmd=/usr/bin/file 5357 case $host_cpu in 5358 ia64*) 5359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5360 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5361 ;; 5362 hppa*64*) 5363 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]' 5364 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5365 ;; 5366 *) 5367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5368 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5369 ;; 5370 esac 5371 ;; 5372 5373interix[3-9]*) 5374 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5376 ;; 5377 5378irix5* | irix6* | nonstopux*) 5379 case $LD in 5380 *-32|*"-32 ") libmagic=32-bit;; 5381 *-n32|*"-n32 ") libmagic=N32;; 5382 *-64|*"-64 ") libmagic=64-bit;; 5383 *) libmagic=never-match;; 5384 esac 5385 lt_cv_deplibs_check_method=pass_all 5386 ;; 5387 5388# This must be glibc/ELF. 5389linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5390 lt_cv_deplibs_check_method=pass_all 5391 ;; 5392 5393netbsd* | netbsdelf*-gnu) 5394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5396 else 5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5398 fi 5399 ;; 5400 5401newos6*) 5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5403 lt_cv_file_magic_cmd=/usr/bin/file 5404 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5405 ;; 5406 5407*nto* | *qnx*) 5408 lt_cv_deplibs_check_method=pass_all 5409 ;; 5410 5411openbsd* | bitrig*) 5412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5414 else 5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5416 fi 5417 ;; 5418 5419osf3* | osf4* | osf5*) 5420 lt_cv_deplibs_check_method=pass_all 5421 ;; 5422 5423rdos*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426 5427solaris*) 5428 lt_cv_deplibs_check_method=pass_all 5429 ;; 5430 5431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5432 lt_cv_deplibs_check_method=pass_all 5433 ;; 5434 5435sysv4 | sysv4.3*) 5436 case $host_vendor in 5437 motorola) 5438 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]' 5439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5440 ;; 5441 ncr) 5442 lt_cv_deplibs_check_method=pass_all 5443 ;; 5444 sequent) 5445 lt_cv_file_magic_cmd='/bin/file' 5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5447 ;; 5448 sni) 5449 lt_cv_file_magic_cmd='/bin/file' 5450 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5451 lt_cv_file_magic_test_file=/lib/libc.so 5452 ;; 5453 siemens) 5454 lt_cv_deplibs_check_method=pass_all 5455 ;; 5456 pc) 5457 lt_cv_deplibs_check_method=pass_all 5458 ;; 5459 esac 5460 ;; 5461 5462tpf*) 5463 lt_cv_deplibs_check_method=pass_all 5464 ;; 5465os2*) 5466 lt_cv_deplibs_check_method=pass_all 5467 ;; 5468esac 5469 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5472$as_echo "$lt_cv_deplibs_check_method" >&6; } 5473 5474file_magic_glob= 5475want_nocaseglob=no 5476if test "$build" = "$host"; then 5477 case $host_os in 5478 mingw* | pw32*) 5479 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5480 want_nocaseglob=yes 5481 else 5482 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5483 fi 5484 ;; 5485 esac 5486fi 5487 5488file_magic_cmd=$lt_cv_file_magic_cmd 5489deplibs_check_method=$lt_cv_deplibs_check_method 5490test -z "$deplibs_check_method" && deplibs_check_method=unknown 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513if test -n "$ac_tool_prefix"; then 5514 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5515set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517$as_echo_n "checking for $ac_word... " >&6; } 5518if ${ac_cv_prog_DLLTOOL+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if test -n "$DLLTOOL"; then 5522 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5523else 5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525for as_dir in $PATH 5526do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5531 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535done 5536 done 5537IFS=$as_save_IFS 5538 5539fi 5540fi 5541DLLTOOL=$ac_cv_prog_DLLTOOL 5542if test -n "$DLLTOOL"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5544$as_echo "$DLLTOOL" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549 5550 5551fi 5552if test -z "$ac_cv_prog_DLLTOOL"; then 5553 ac_ct_DLLTOOL=$DLLTOOL 5554 # Extract the first word of "dlltool", so it can be a program name with args. 5555set dummy dlltool; ac_word=$2 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5557$as_echo_n "checking for $ac_word... " >&6; } 5558if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 if test -n "$ac_ct_DLLTOOL"; then 5562 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5563else 5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5571 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575done 5576 done 5577IFS=$as_save_IFS 5578 5579fi 5580fi 5581ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5582if test -n "$ac_ct_DLLTOOL"; then 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5584$as_echo "$ac_ct_DLLTOOL" >&6; } 5585else 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5587$as_echo "no" >&6; } 5588fi 5589 5590 if test "x$ac_ct_DLLTOOL" = x; then 5591 DLLTOOL="false" 5592 else 5593 case $cross_compiling:$ac_tool_warned in 5594yes:) 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5597ac_tool_warned=yes ;; 5598esac 5599 DLLTOOL=$ac_ct_DLLTOOL 5600 fi 5601else 5602 DLLTOOL="$ac_cv_prog_DLLTOOL" 5603fi 5604 5605test -z "$DLLTOOL" && DLLTOOL=dlltool 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5617$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5618if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 lt_cv_sharedlib_from_linklib_cmd='unknown' 5622 5623case $host_os in 5624cygwin* | mingw* | pw32* | cegcc*) 5625 # two different shell functions defined in ltmain.sh; 5626 # decide which one to use based on capabilities of $DLLTOOL 5627 case `$DLLTOOL --help 2>&1` in 5628 *--identify-strict*) 5629 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5630 ;; 5631 *) 5632 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5633 ;; 5634 esac 5635 ;; 5636*) 5637 # fallback: assume linklib IS sharedlib 5638 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5639 ;; 5640esac 5641 5642fi 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5644$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5645sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5646test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5647 5648 5649 5650 5651 5652 5653 5654 5655if test -n "$ac_tool_prefix"; then 5656 for ac_prog in ar 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_AR+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$AR"; then 5666 ac_cv_prog_AR="$AR" # 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_AR="$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 5685AR=$ac_cv_prog_AR 5686if test -n "$AR"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5688$as_echo "$AR" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 5695 test -n "$AR" && break 5696 done 5697fi 5698if test -z "$AR"; then 5699 ac_ct_AR=$AR 5700 for ac_prog in ar 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_AR+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 if test -n "$ac_ct_AR"; then 5710 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$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_AR=$ac_cv_prog_ac_ct_AR 5730if test -n "$ac_ct_AR"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5732$as_echo "$ac_ct_AR" >&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_AR" && break 5740done 5741 5742 if test "x$ac_ct_AR" = x; then 5743 AR="false" 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 AR=$ac_ct_AR 5752 fi 5753fi 5754 5755: ${AR=ar} 5756: ${AR_FLAGS=cr} 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5769$as_echo_n "checking for archiver @FILE support... " >&6; } 5770if ${lt_cv_ar_at_file+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772else 5773 lt_cv_ar_at_file=no 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5775/* end confdefs.h. */ 5776 5777int 5778main () 5779{ 5780 5781 ; 5782 return 0; 5783} 5784_ACEOF 5785if ac_fn_c_try_compile "$LINENO"; then : 5786 echo conftest.$ac_objext > conftest.lst 5787 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5789 (eval $lt_ar_try) 2>&5 5790 ac_status=$? 5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5792 test $ac_status = 0; } 5793 if test 0 -eq "$ac_status"; then 5794 # Ensure the archiver fails upon bogus file names. 5795 rm -f conftest.$ac_objext libconftest.a 5796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5797 (eval $lt_ar_try) 2>&5 5798 ac_status=$? 5799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5800 test $ac_status = 0; } 5801 if test 0 -ne "$ac_status"; then 5802 lt_cv_ar_at_file=@ 5803 fi 5804 fi 5805 rm -f conftest.* libconftest.a 5806 5807fi 5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5809 5810fi 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5812$as_echo "$lt_cv_ar_at_file" >&6; } 5813 5814if test no = "$lt_cv_ar_at_file"; then 5815 archiver_list_spec= 5816else 5817 archiver_list_spec=$lt_cv_ar_at_file 5818fi 5819 5820 5821 5822 5823 5824 5825 5826if test -n "$ac_tool_prefix"; then 5827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5828set dummy ${ac_tool_prefix}strip; ac_word=$2 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5830$as_echo_n "checking for $ac_word... " >&6; } 5831if ${ac_cv_prog_STRIP+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 if test -n "$STRIP"; then 5835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5836else 5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838for as_dir in $PATH 5839do 5840 IFS=$as_save_IFS 5841 test -z "$as_dir" && as_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5844 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848done 5849 done 5850IFS=$as_save_IFS 5851 5852fi 5853fi 5854STRIP=$ac_cv_prog_STRIP 5855if test -n "$STRIP"; then 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5857$as_echo "$STRIP" >&6; } 5858else 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5860$as_echo "no" >&6; } 5861fi 5862 5863 5864fi 5865if test -z "$ac_cv_prog_STRIP"; then 5866 ac_ct_STRIP=$STRIP 5867 # Extract the first word of "strip", so it can be a program name with args. 5868set dummy strip; ac_word=$2 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5870$as_echo_n "checking for $ac_word... " >&6; } 5871if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 if test -n "$ac_ct_STRIP"; then 5875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5876else 5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5878for as_dir in $PATH 5879do 5880 IFS=$as_save_IFS 5881 test -z "$as_dir" && as_dir=. 5882 for ac_exec_ext in '' $ac_executable_extensions; do 5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5884 ac_cv_prog_ac_ct_STRIP="strip" 5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5886 break 2 5887 fi 5888done 5889 done 5890IFS=$as_save_IFS 5891 5892fi 5893fi 5894ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5895if test -n "$ac_ct_STRIP"; then 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5897$as_echo "$ac_ct_STRIP" >&6; } 5898else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5900$as_echo "no" >&6; } 5901fi 5902 5903 if test "x$ac_ct_STRIP" = x; then 5904 STRIP=":" 5905 else 5906 case $cross_compiling:$ac_tool_warned in 5907yes:) 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5910ac_tool_warned=yes ;; 5911esac 5912 STRIP=$ac_ct_STRIP 5913 fi 5914else 5915 STRIP="$ac_cv_prog_STRIP" 5916fi 5917 5918test -z "$STRIP" && STRIP=: 5919 5920 5921 5922 5923 5924 5925if test -n "$ac_tool_prefix"; then 5926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5927set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5929$as_echo_n "checking for $ac_word... " >&6; } 5930if ${ac_cv_prog_RANLIB+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 if test -n "$RANLIB"; then 5934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5935else 5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5937for as_dir in $PATH 5938do 5939 IFS=$as_save_IFS 5940 test -z "$as_dir" && as_dir=. 5941 for ac_exec_ext in '' $ac_executable_extensions; do 5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5945 break 2 5946 fi 5947done 5948 done 5949IFS=$as_save_IFS 5950 5951fi 5952fi 5953RANLIB=$ac_cv_prog_RANLIB 5954if test -n "$RANLIB"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5956$as_echo "$RANLIB" >&6; } 5957else 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5959$as_echo "no" >&6; } 5960fi 5961 5962 5963fi 5964if test -z "$ac_cv_prog_RANLIB"; then 5965 ac_ct_RANLIB=$RANLIB 5966 # Extract the first word of "ranlib", so it can be a program name with args. 5967set dummy ranlib; ac_word=$2 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5969$as_echo_n "checking for $ac_word... " >&6; } 5970if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 if test -n "$ac_ct_RANLIB"; then 5974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5975else 5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH 5978do 5979 IFS=$as_save_IFS 5980 test -z "$as_dir" && as_dir=. 5981 for ac_exec_ext in '' $ac_executable_extensions; do 5982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5983 ac_cv_prog_ac_ct_RANLIB="ranlib" 5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5985 break 2 5986 fi 5987done 5988 done 5989IFS=$as_save_IFS 5990 5991fi 5992fi 5993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5994if test -n "$ac_ct_RANLIB"; then 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5996$as_echo "$ac_ct_RANLIB" >&6; } 5997else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999$as_echo "no" >&6; } 6000fi 6001 6002 if test "x$ac_ct_RANLIB" = x; then 6003 RANLIB=":" 6004 else 6005 case $cross_compiling:$ac_tool_warned in 6006yes:) 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6009ac_tool_warned=yes ;; 6010esac 6011 RANLIB=$ac_ct_RANLIB 6012 fi 6013else 6014 RANLIB="$ac_cv_prog_RANLIB" 6015fi 6016 6017test -z "$RANLIB" && RANLIB=: 6018 6019 6020 6021 6022 6023 6024# Determine commands to create old-style static archives. 6025old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6026old_postinstall_cmds='chmod 644 $oldlib' 6027old_postuninstall_cmds= 6028 6029if test -n "$RANLIB"; then 6030 case $host_os in 6031 bitrig* | openbsd*) 6032 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6033 ;; 6034 *) 6035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6036 ;; 6037 esac 6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6039fi 6040 6041case $host_os in 6042 darwin*) 6043 lock_old_archive_extraction=yes ;; 6044 *) 6045 lock_old_archive_extraction=no ;; 6046esac 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086# If no C compiler was specified, use CC. 6087LTCC=${LTCC-"$CC"} 6088 6089# If no C compiler flags were specified, use CFLAGS. 6090LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6091 6092# Allow CC to be a program name with arguments. 6093compiler=$CC 6094 6095 6096# Check for command to grab the raw symbol name followed by C symbol from nm. 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6098$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6099if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 6103# These are sane defaults that work on at least a few old systems. 6104# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6105 6106# Character class describing NM global symbol codes. 6107symcode='[BCDEGRST]' 6108 6109# Regexp to match symbols that can be accessed directly from C. 6110sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6111 6112# Define system-specific variables. 6113case $host_os in 6114aix*) 6115 symcode='[BCDT]' 6116 ;; 6117cygwin* | mingw* | pw32* | cegcc*) 6118 symcode='[ABCDGISTW]' 6119 ;; 6120hpux*) 6121 if test ia64 = "$host_cpu"; then 6122 symcode='[ABCDEGRST]' 6123 fi 6124 ;; 6125irix* | nonstopux*) 6126 symcode='[BCDEGRST]' 6127 ;; 6128osf*) 6129 symcode='[BCDEGQRST]' 6130 ;; 6131solaris*) 6132 symcode='[BDRT]' 6133 ;; 6134sco3.2v5*) 6135 symcode='[DT]' 6136 ;; 6137sysv4.2uw2*) 6138 symcode='[DT]' 6139 ;; 6140sysv5* | sco5v6* | unixware* | OpenUNIX*) 6141 symcode='[ABDT]' 6142 ;; 6143sysv4) 6144 symcode='[DFNSTU]' 6145 ;; 6146esac 6147 6148# If we're using GNU nm, then use its standard symbol codes. 6149case `$NM -V 2>&1` in 6150*GNU* | *'with BFD'*) 6151 symcode='[ABCDGIRSTW]' ;; 6152esac 6153 6154if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6155 # Gets list of data symbols to import. 6156 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6157 # Adjust the below global symbol transforms to fixup imported variables. 6158 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6159 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6160 lt_c_name_lib_hook="\ 6161 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6162 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6163else 6164 # Disable hooks by default. 6165 lt_cv_sys_global_symbol_to_import= 6166 lt_cdecl_hook= 6167 lt_c_name_hook= 6168 lt_c_name_lib_hook= 6169fi 6170 6171# Transform an extracted symbol line into a proper C declaration. 6172# Some systems (esp. on ia64) link data and code symbols differently, 6173# so use this general approach. 6174lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6175$lt_cdecl_hook\ 6176" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6177" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6178 6179# Transform an extracted symbol line into symbol name and symbol address 6180lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6181$lt_c_name_hook\ 6182" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6183" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6184 6185# Transform an extracted symbol line into symbol name with lib prefix and 6186# symbol address. 6187lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6188$lt_c_name_lib_hook\ 6189" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6190" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6191" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6192 6193# Handle CRLF in mingw tool chain 6194opt_cr= 6195case $build_os in 6196mingw*) 6197 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6198 ;; 6199esac 6200 6201# Try without a prefix underscore, then with it. 6202for ac_symprfx in "" "_"; do 6203 6204 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6205 symxfrm="\\1 $ac_symprfx\\2 \\2" 6206 6207 # Write the raw and C identifiers. 6208 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6209 # Fake it for dumpbin and say T for any non-static function, 6210 # D for any global variable and I for any imported variable. 6211 # Also find C++ and __fastcall symbols from MSVC++, 6212 # which start with @ or ?. 6213 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6214" {last_section=section; section=\$ 3};"\ 6215" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6216" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6217" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6218" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6219" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6220" \$ 0!~/External *\|/{next};"\ 6221" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6222" {if(hide[section]) next};"\ 6223" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6224" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6225" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6226" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6227" ' prfx=^$ac_symprfx" 6228 else 6229 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6230 fi 6231 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6232 6233 # Check to see that the pipe works correctly. 6234 pipe_works=no 6235 6236 rm -f conftest* 6237 cat > conftest.$ac_ext <<_LT_EOF 6238#ifdef __cplusplus 6239extern "C" { 6240#endif 6241char nm_test_var; 6242void nm_test_func(void); 6243void nm_test_func(void){} 6244#ifdef __cplusplus 6245} 6246#endif 6247int main(){nm_test_var='a';nm_test_func();return(0);} 6248_LT_EOF 6249 6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6251 (eval $ac_compile) 2>&5 6252 ac_status=$? 6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6254 test $ac_status = 0; }; then 6255 # Now try to grab the symbols. 6256 nlist=conftest.nm 6257 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6258 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6259 # Try sorting and uniquifying the output. 6260 if sort "$nlist" | uniq > "$nlist"T; then 6261 mv -f "$nlist"T "$nlist" 6262 else 6263 rm -f "$nlist"T 6264 fi 6265 6266 # Make sure that we snagged all the symbols we need. 6267 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6268 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6269 cat <<_LT_EOF > conftest.$ac_ext 6270/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6271#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6272/* DATA imports from DLLs on WIN32 can't be const, because runtime 6273 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6274# define LT_DLSYM_CONST 6275#elif defined __osf__ 6276/* This system does not cope well with relocations in const data. */ 6277# define LT_DLSYM_CONST 6278#else 6279# define LT_DLSYM_CONST const 6280#endif 6281 6282#ifdef __cplusplus 6283extern "C" { 6284#endif 6285 6286_LT_EOF 6287 # Now generate the symbol file. 6288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6289 6290 cat <<_LT_EOF >> conftest.$ac_ext 6291 6292/* The mapping between symbol names and symbols. */ 6293LT_DLSYM_CONST struct { 6294 const char *name; 6295 void *address; 6296} 6297lt__PROGRAM__LTX_preloaded_symbols[] = 6298{ 6299 { "@PROGRAM@", (void *) 0 }, 6300_LT_EOF 6301 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6302 cat <<\_LT_EOF >> conftest.$ac_ext 6303 {0, (void *) 0} 6304}; 6305 6306/* This works around a problem in FreeBSD linker */ 6307#ifdef FREEBSD_WORKAROUND 6308static const void *lt_preloaded_setup() { 6309 return lt__PROGRAM__LTX_preloaded_symbols; 6310} 6311#endif 6312 6313#ifdef __cplusplus 6314} 6315#endif 6316_LT_EOF 6317 # Now try linking the two files. 6318 mv conftest.$ac_objext conftstm.$ac_objext 6319 lt_globsym_save_LIBS=$LIBS 6320 lt_globsym_save_CFLAGS=$CFLAGS 6321 LIBS=conftstm.$ac_objext 6322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6324 (eval $ac_link) 2>&5 6325 ac_status=$? 6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6327 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6328 pipe_works=yes 6329 fi 6330 LIBS=$lt_globsym_save_LIBS 6331 CFLAGS=$lt_globsym_save_CFLAGS 6332 else 6333 echo "cannot find nm_test_func in $nlist" >&5 6334 fi 6335 else 6336 echo "cannot find nm_test_var in $nlist" >&5 6337 fi 6338 else 6339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6340 fi 6341 else 6342 echo "$progname: failed program was:" >&5 6343 cat conftest.$ac_ext >&5 6344 fi 6345 rm -rf conftest* conftst* 6346 6347 # Do not use the global_symbol_pipe unless it works. 6348 if test yes = "$pipe_works"; then 6349 break 6350 else 6351 lt_cv_sys_global_symbol_pipe= 6352 fi 6353done 6354 6355fi 6356 6357if test -z "$lt_cv_sys_global_symbol_pipe"; then 6358 lt_cv_sys_global_symbol_to_cdecl= 6359fi 6360if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6362$as_echo "failed" >&6; } 6363else 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6365$as_echo "ok" >&6; } 6366fi 6367 6368# Response file support. 6369if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6370 nm_file_list_spec='@' 6371elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6372 nm_file_list_spec='@' 6373fi 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6412$as_echo_n "checking for sysroot... " >&6; } 6413 6414# Check whether --with-sysroot was given. 6415if test "${with_sysroot+set}" = set; then : 6416 withval=$with_sysroot; 6417else 6418 with_sysroot=no 6419fi 6420 6421 6422lt_sysroot= 6423case $with_sysroot in #( 6424 yes) 6425 if test yes = "$GCC"; then 6426 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6427 fi 6428 ;; #( 6429 /*) 6430 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6431 ;; #( 6432 no|'') 6433 ;; #( 6434 *) 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6436$as_echo "$with_sysroot" >&6; } 6437 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6438 ;; 6439esac 6440 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6442$as_echo "${lt_sysroot:-no}" >&6; } 6443 6444 6445 6446 6447 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6449$as_echo_n "checking for a working dd... " >&6; } 6450if ${ac_cv_path_lt_DD+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 printf 0123456789abcdef0123456789abcdef >conftest.i 6454cat conftest.i conftest.i >conftest2.i 6455: ${lt_DD:=$DD} 6456if test -z "$lt_DD"; then 6457 ac_path_lt_DD_found=false 6458 # Loop through the user's path and test for each of PROGNAME-LIST 6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460for as_dir in $PATH 6461do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 for ac_prog in dd; do 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6467 as_fn_executable_p "$ac_path_lt_DD" || continue 6468if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6469 cmp -s conftest.i conftest.out \ 6470 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6471fi 6472 $ac_path_lt_DD_found && break 3 6473 done 6474 done 6475 done 6476IFS=$as_save_IFS 6477 if test -z "$ac_cv_path_lt_DD"; then 6478 : 6479 fi 6480else 6481 ac_cv_path_lt_DD=$lt_DD 6482fi 6483 6484rm -f conftest.i conftest2.i conftest.out 6485fi 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6487$as_echo "$ac_cv_path_lt_DD" >&6; } 6488 6489 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6491$as_echo_n "checking how to truncate binary pipes... " >&6; } 6492if ${lt_cv_truncate_bin+:} false; then : 6493 $as_echo_n "(cached) " >&6 6494else 6495 printf 0123456789abcdef0123456789abcdef >conftest.i 6496cat conftest.i conftest.i >conftest2.i 6497lt_cv_truncate_bin= 6498if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6499 cmp -s conftest.i conftest.out \ 6500 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6501fi 6502rm -f conftest.i conftest2.i conftest.out 6503test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6504fi 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6506$as_echo "$lt_cv_truncate_bin" >&6; } 6507 6508 6509 6510 6511 6512 6513 6514# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6515func_cc_basename () 6516{ 6517 for cc_temp in $*""; do 6518 case $cc_temp in 6519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6521 \-*) ;; 6522 *) break;; 6523 esac 6524 done 6525 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6526} 6527 6528# Check whether --enable-libtool-lock was given. 6529if test "${enable_libtool_lock+set}" = set; then : 6530 enableval=$enable_libtool_lock; 6531fi 6532 6533test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6534 6535# Some flags need to be propagated to the compiler or linker for good 6536# libtool support. 6537case $host in 6538ia64-*-hpux*) 6539 # Find out what ABI is being produced by ac_compile, and set mode 6540 # options accordingly. 6541 echo 'int i;' > conftest.$ac_ext 6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6543 (eval $ac_compile) 2>&5 6544 ac_status=$? 6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6546 test $ac_status = 0; }; then 6547 case `/usr/bin/file conftest.$ac_objext` in 6548 *ELF-32*) 6549 HPUX_IA64_MODE=32 6550 ;; 6551 *ELF-64*) 6552 HPUX_IA64_MODE=64 6553 ;; 6554 esac 6555 fi 6556 rm -rf conftest* 6557 ;; 6558*-*-irix6*) 6559 # Find out what ABI is being produced by ac_compile, and set linker 6560 # options accordingly. 6561 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6563 (eval $ac_compile) 2>&5 6564 ac_status=$? 6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6566 test $ac_status = 0; }; then 6567 if test yes = "$lt_cv_prog_gnu_ld"; then 6568 case `/usr/bin/file conftest.$ac_objext` in 6569 *32-bit*) 6570 LD="${LD-ld} -melf32bsmip" 6571 ;; 6572 *N32*) 6573 LD="${LD-ld} -melf32bmipn32" 6574 ;; 6575 *64-bit*) 6576 LD="${LD-ld} -melf64bmip" 6577 ;; 6578 esac 6579 else 6580 case `/usr/bin/file conftest.$ac_objext` in 6581 *32-bit*) 6582 LD="${LD-ld} -32" 6583 ;; 6584 *N32*) 6585 LD="${LD-ld} -n32" 6586 ;; 6587 *64-bit*) 6588 LD="${LD-ld} -64" 6589 ;; 6590 esac 6591 fi 6592 fi 6593 rm -rf conftest* 6594 ;; 6595 6596mips64*-*linux*) 6597 # Find out what ABI is being produced by ac_compile, and set linker 6598 # options accordingly. 6599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6601 (eval $ac_compile) 2>&5 6602 ac_status=$? 6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6604 test $ac_status = 0; }; then 6605 emul=elf 6606 case `/usr/bin/file conftest.$ac_objext` in 6607 *32-bit*) 6608 emul="${emul}32" 6609 ;; 6610 *64-bit*) 6611 emul="${emul}64" 6612 ;; 6613 esac 6614 case `/usr/bin/file conftest.$ac_objext` in 6615 *MSB*) 6616 emul="${emul}btsmip" 6617 ;; 6618 *LSB*) 6619 emul="${emul}ltsmip" 6620 ;; 6621 esac 6622 case `/usr/bin/file conftest.$ac_objext` in 6623 *N32*) 6624 emul="${emul}n32" 6625 ;; 6626 esac 6627 LD="${LD-ld} -m $emul" 6628 fi 6629 rm -rf conftest* 6630 ;; 6631 6632x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6633s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6634 # Find out what ABI is being produced by ac_compile, and set linker 6635 # options accordingly. Note that the listed cases only cover the 6636 # situations where additional linker options are needed (such as when 6637 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6638 # vice versa); the common cases where no linker options are needed do 6639 # not appear in the list. 6640 echo 'int i;' > conftest.$ac_ext 6641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6642 (eval $ac_compile) 2>&5 6643 ac_status=$? 6644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6645 test $ac_status = 0; }; then 6646 case `/usr/bin/file conftest.o` in 6647 *32-bit*) 6648 case $host in 6649 x86_64-*kfreebsd*-gnu) 6650 LD="${LD-ld} -m elf_i386_fbsd" 6651 ;; 6652 x86_64-*linux*) 6653 case `/usr/bin/file conftest.o` in 6654 *x86-64*) 6655 LD="${LD-ld} -m elf32_x86_64" 6656 ;; 6657 *) 6658 LD="${LD-ld} -m elf_i386" 6659 ;; 6660 esac 6661 ;; 6662 powerpc64le-*linux*) 6663 LD="${LD-ld} -m elf32lppclinux" 6664 ;; 6665 powerpc64-*linux*) 6666 LD="${LD-ld} -m elf32ppclinux" 6667 ;; 6668 s390x-*linux*) 6669 LD="${LD-ld} -m elf_s390" 6670 ;; 6671 sparc64-*linux*) 6672 LD="${LD-ld} -m elf32_sparc" 6673 ;; 6674 esac 6675 ;; 6676 *64-bit*) 6677 case $host in 6678 x86_64-*kfreebsd*-gnu) 6679 LD="${LD-ld} -m elf_x86_64_fbsd" 6680 ;; 6681 x86_64-*linux*) 6682 LD="${LD-ld} -m elf_x86_64" 6683 ;; 6684 powerpcle-*linux*) 6685 LD="${LD-ld} -m elf64lppc" 6686 ;; 6687 powerpc-*linux*) 6688 LD="${LD-ld} -m elf64ppc" 6689 ;; 6690 s390*-*linux*|s390*-*tpf*) 6691 LD="${LD-ld} -m elf64_s390" 6692 ;; 6693 sparc*-*linux*) 6694 LD="${LD-ld} -m elf64_sparc" 6695 ;; 6696 esac 6697 ;; 6698 esac 6699 fi 6700 rm -rf conftest* 6701 ;; 6702 6703*-*-sco3.2v5*) 6704 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6705 SAVE_CFLAGS=$CFLAGS 6706 CFLAGS="$CFLAGS -belf" 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6708$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6709if ${lt_cv_cc_needs_belf+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 ac_ext=c 6713ac_cpp='$CPP $CPPFLAGS' 6714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6716ac_compiler_gnu=$ac_cv_c_compiler_gnu 6717 6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720 6721int 6722main () 6723{ 6724 6725 ; 6726 return 0; 6727} 6728_ACEOF 6729if ac_fn_c_try_link "$LINENO"; then : 6730 lt_cv_cc_needs_belf=yes 6731else 6732 lt_cv_cc_needs_belf=no 6733fi 6734rm -f core conftest.err conftest.$ac_objext \ 6735 conftest$ac_exeext conftest.$ac_ext 6736 ac_ext=c 6737ac_cpp='$CPP $CPPFLAGS' 6738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6740ac_compiler_gnu=$ac_cv_c_compiler_gnu 6741 6742fi 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6744$as_echo "$lt_cv_cc_needs_belf" >&6; } 6745 if test yes != "$lt_cv_cc_needs_belf"; then 6746 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6747 CFLAGS=$SAVE_CFLAGS 6748 fi 6749 ;; 6750*-*solaris*) 6751 # Find out what ABI is being produced by ac_compile, and set linker 6752 # options accordingly. 6753 echo 'int i;' > conftest.$ac_ext 6754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6755 (eval $ac_compile) 2>&5 6756 ac_status=$? 6757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6758 test $ac_status = 0; }; then 6759 case `/usr/bin/file conftest.o` in 6760 *64-bit*) 6761 case $lt_cv_prog_gnu_ld in 6762 yes*) 6763 case $host in 6764 i?86-*-solaris*|x86_64-*-solaris*) 6765 LD="${LD-ld} -m elf_x86_64" 6766 ;; 6767 sparc*-*-solaris*) 6768 LD="${LD-ld} -m elf64_sparc" 6769 ;; 6770 esac 6771 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6772 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6773 LD=${LD-ld}_sol2 6774 fi 6775 ;; 6776 *) 6777 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6778 LD="${LD-ld} -64" 6779 fi 6780 ;; 6781 esac 6782 ;; 6783 esac 6784 fi 6785 rm -rf conftest* 6786 ;; 6787esac 6788 6789need_locks=$enable_libtool_lock 6790 6791if test -n "$ac_tool_prefix"; then 6792 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6793set dummy ${ac_tool_prefix}mt; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$MANIFEST_TOOL"; then 6800 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6820if test -n "$MANIFEST_TOOL"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6822$as_echo "$MANIFEST_TOOL" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 6829fi 6830if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6831 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6832 # Extract the first word of "mt", so it can be a program name with args. 6833set dummy mt; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 if test -n "$ac_ct_MANIFEST_TOOL"; then 6840 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6841else 6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6843for as_dir in $PATH 6844do 6845 IFS=$as_save_IFS 6846 test -z "$as_dir" && as_dir=. 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi 6858fi 6859ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6860if test -n "$ac_ct_MANIFEST_TOOL"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6862$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6869 MANIFEST_TOOL=":" 6870 else 6871 case $cross_compiling:$ac_tool_warned in 6872yes:) 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6875ac_tool_warned=yes ;; 6876esac 6877 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6878 fi 6879else 6880 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6881fi 6882 6883test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6885$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6886if ${lt_cv_path_mainfest_tool+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 lt_cv_path_mainfest_tool=no 6890 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6891 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6892 cat conftest.err >&5 6893 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6894 lt_cv_path_mainfest_tool=yes 6895 fi 6896 rm -f conftest* 6897fi 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6899$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6900if test yes != "$lt_cv_path_mainfest_tool"; then 6901 MANIFEST_TOOL=: 6902fi 6903 6904 6905 6906 6907 6908 6909 case $host_os in 6910 rhapsody* | darwin*) 6911 if test -n "$ac_tool_prefix"; then 6912 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6913set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6915$as_echo_n "checking for $ac_word... " >&6; } 6916if ${ac_cv_prog_DSYMUTIL+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 if test -n "$DSYMUTIL"; then 6920 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6921else 6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6923for as_dir in $PATH 6924do 6925 IFS=$as_save_IFS 6926 test -z "$as_dir" && as_dir=. 6927 for ac_exec_ext in '' $ac_executable_extensions; do 6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6929 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6931 break 2 6932 fi 6933done 6934 done 6935IFS=$as_save_IFS 6936 6937fi 6938fi 6939DSYMUTIL=$ac_cv_prog_DSYMUTIL 6940if test -n "$DSYMUTIL"; then 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6942$as_echo "$DSYMUTIL" >&6; } 6943else 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6945$as_echo "no" >&6; } 6946fi 6947 6948 6949fi 6950if test -z "$ac_cv_prog_DSYMUTIL"; then 6951 ac_ct_DSYMUTIL=$DSYMUTIL 6952 # Extract the first word of "dsymutil", so it can be a program name with args. 6953set dummy dsymutil; ac_word=$2 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6955$as_echo_n "checking for $ac_word... " >&6; } 6956if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 if test -n "$ac_ct_DSYMUTIL"; then 6960 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6961else 6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6963for as_dir in $PATH 6964do 6965 IFS=$as_save_IFS 6966 test -z "$as_dir" && as_dir=. 6967 for ac_exec_ext in '' $ac_executable_extensions; do 6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6969 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6971 break 2 6972 fi 6973done 6974 done 6975IFS=$as_save_IFS 6976 6977fi 6978fi 6979ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6980if test -n "$ac_ct_DSYMUTIL"; then 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6982$as_echo "$ac_ct_DSYMUTIL" >&6; } 6983else 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6985$as_echo "no" >&6; } 6986fi 6987 6988 if test "x$ac_ct_DSYMUTIL" = x; then 6989 DSYMUTIL=":" 6990 else 6991 case $cross_compiling:$ac_tool_warned in 6992yes:) 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6995ac_tool_warned=yes ;; 6996esac 6997 DSYMUTIL=$ac_ct_DSYMUTIL 6998 fi 6999else 7000 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7001fi 7002 7003 if test -n "$ac_tool_prefix"; then 7004 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7005set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7007$as_echo_n "checking for $ac_word... " >&6; } 7008if ${ac_cv_prog_NMEDIT+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 if test -n "$NMEDIT"; then 7012 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7013else 7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015for as_dir in $PATH 7016do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7021 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026 done 7027IFS=$as_save_IFS 7028 7029fi 7030fi 7031NMEDIT=$ac_cv_prog_NMEDIT 7032if test -n "$NMEDIT"; then 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7034$as_echo "$NMEDIT" >&6; } 7035else 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7037$as_echo "no" >&6; } 7038fi 7039 7040 7041fi 7042if test -z "$ac_cv_prog_NMEDIT"; then 7043 ac_ct_NMEDIT=$NMEDIT 7044 # Extract the first word of "nmedit", so it can be a program name with args. 7045set dummy nmedit; ac_word=$2 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7047$as_echo_n "checking for $ac_word... " >&6; } 7048if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 if test -n "$ac_ct_NMEDIT"; then 7052 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7053else 7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7061 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066 done 7067IFS=$as_save_IFS 7068 7069fi 7070fi 7071ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7072if test -n "$ac_ct_NMEDIT"; then 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7074$as_echo "$ac_ct_NMEDIT" >&6; } 7075else 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7077$as_echo "no" >&6; } 7078fi 7079 7080 if test "x$ac_ct_NMEDIT" = x; then 7081 NMEDIT=":" 7082 else 7083 case $cross_compiling:$ac_tool_warned in 7084yes:) 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7087ac_tool_warned=yes ;; 7088esac 7089 NMEDIT=$ac_ct_NMEDIT 7090 fi 7091else 7092 NMEDIT="$ac_cv_prog_NMEDIT" 7093fi 7094 7095 if test -n "$ac_tool_prefix"; then 7096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7097set dummy ${ac_tool_prefix}lipo; ac_word=$2 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7099$as_echo_n "checking for $ac_word... " >&6; } 7100if ${ac_cv_prog_LIPO+:} false; then : 7101 $as_echo_n "(cached) " >&6 7102else 7103 if test -n "$LIPO"; then 7104 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7105else 7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7107for as_dir in $PATH 7108do 7109 IFS=$as_save_IFS 7110 test -z "$as_dir" && as_dir=. 7111 for ac_exec_ext in '' $ac_executable_extensions; do 7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7113 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7115 break 2 7116 fi 7117done 7118 done 7119IFS=$as_save_IFS 7120 7121fi 7122fi 7123LIPO=$ac_cv_prog_LIPO 7124if test -n "$LIPO"; then 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7126$as_echo "$LIPO" >&6; } 7127else 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7129$as_echo "no" >&6; } 7130fi 7131 7132 7133fi 7134if test -z "$ac_cv_prog_LIPO"; then 7135 ac_ct_LIPO=$LIPO 7136 # Extract the first word of "lipo", so it can be a program name with args. 7137set dummy lipo; ac_word=$2 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7139$as_echo_n "checking for $ac_word... " >&6; } 7140if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 if test -n "$ac_ct_LIPO"; then 7144 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7145else 7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7147for as_dir in $PATH 7148do 7149 IFS=$as_save_IFS 7150 test -z "$as_dir" && as_dir=. 7151 for ac_exec_ext in '' $ac_executable_extensions; do 7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7153 ac_cv_prog_ac_ct_LIPO="lipo" 7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7155 break 2 7156 fi 7157done 7158 done 7159IFS=$as_save_IFS 7160 7161fi 7162fi 7163ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7164if test -n "$ac_ct_LIPO"; then 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7166$as_echo "$ac_ct_LIPO" >&6; } 7167else 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7169$as_echo "no" >&6; } 7170fi 7171 7172 if test "x$ac_ct_LIPO" = x; then 7173 LIPO=":" 7174 else 7175 case $cross_compiling:$ac_tool_warned in 7176yes:) 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7179ac_tool_warned=yes ;; 7180esac 7181 LIPO=$ac_ct_LIPO 7182 fi 7183else 7184 LIPO="$ac_cv_prog_LIPO" 7185fi 7186 7187 if test -n "$ac_tool_prefix"; then 7188 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7189set dummy ${ac_tool_prefix}otool; ac_word=$2 7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7191$as_echo_n "checking for $ac_word... " >&6; } 7192if ${ac_cv_prog_OTOOL+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 if test -n "$OTOOL"; then 7196 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7197else 7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7199for as_dir in $PATH 7200do 7201 IFS=$as_save_IFS 7202 test -z "$as_dir" && as_dir=. 7203 for ac_exec_ext in '' $ac_executable_extensions; do 7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7205 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7207 break 2 7208 fi 7209done 7210 done 7211IFS=$as_save_IFS 7212 7213fi 7214fi 7215OTOOL=$ac_cv_prog_OTOOL 7216if test -n "$OTOOL"; then 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7218$as_echo "$OTOOL" >&6; } 7219else 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7221$as_echo "no" >&6; } 7222fi 7223 7224 7225fi 7226if test -z "$ac_cv_prog_OTOOL"; then 7227 ac_ct_OTOOL=$OTOOL 7228 # Extract the first word of "otool", so it can be a program name with args. 7229set dummy otool; ac_word=$2 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$ac_ct_OTOOL"; then 7236 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7245 ac_cv_prog_ac_ct_OTOOL="otool" 7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250 done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7256if test -n "$ac_ct_OTOOL"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7258$as_echo "$ac_ct_OTOOL" >&6; } 7259else 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 if test "x$ac_ct_OTOOL" = x; then 7265 OTOOL=":" 7266 else 7267 case $cross_compiling:$ac_tool_warned in 7268yes:) 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7271ac_tool_warned=yes ;; 7272esac 7273 OTOOL=$ac_ct_OTOOL 7274 fi 7275else 7276 OTOOL="$ac_cv_prog_OTOOL" 7277fi 7278 7279 if test -n "$ac_tool_prefix"; then 7280 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7281set dummy ${ac_tool_prefix}otool64; ac_word=$2 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7283$as_echo_n "checking for $ac_word... " >&6; } 7284if ${ac_cv_prog_OTOOL64+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 if test -n "$OTOOL64"; then 7288 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7289else 7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305fi 7306fi 7307OTOOL64=$ac_cv_prog_OTOOL64 7308if test -n "$OTOOL64"; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7310$as_echo "$OTOOL64" >&6; } 7311else 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313$as_echo "no" >&6; } 7314fi 7315 7316 7317fi 7318if test -z "$ac_cv_prog_OTOOL64"; then 7319 ac_ct_OTOOL64=$OTOOL64 7320 # Extract the first word of "otool64", so it can be a program name with args. 7321set dummy otool64; ac_word=$2 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 if test -n "$ac_ct_OTOOL64"; then 7328 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7329else 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7337 ac_cv_prog_ac_ct_OTOOL64="otool64" 7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342 done 7343IFS=$as_save_IFS 7344 7345fi 7346fi 7347ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7348if test -n "$ac_ct_OTOOL64"; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7350$as_echo "$ac_ct_OTOOL64" >&6; } 7351else 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 if test "x$ac_ct_OTOOL64" = x; then 7357 OTOOL64=":" 7358 else 7359 case $cross_compiling:$ac_tool_warned in 7360yes:) 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7363ac_tool_warned=yes ;; 7364esac 7365 OTOOL64=$ac_ct_OTOOL64 7366 fi 7367else 7368 OTOOL64="$ac_cv_prog_OTOOL64" 7369fi 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7398$as_echo_n "checking for -single_module linker flag... " >&6; } 7399if ${lt_cv_apple_cc_single_mod+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 lt_cv_apple_cc_single_mod=no 7403 if test -z "$LT_MULTI_MODULE"; then 7404 # By default we will add the -single_module flag. You can override 7405 # by either setting the environment variable LT_MULTI_MODULE 7406 # non-empty at configure time, or by adding -multi_module to the 7407 # link flags. 7408 rm -rf libconftest.dylib* 7409 echo "int foo(void){return 1;}" > conftest.c 7410 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7411-dynamiclib -Wl,-single_module conftest.c" >&5 7412 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7413 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7414 _lt_result=$? 7415 # If there is a non-empty error log, and "single_module" 7416 # appears in it, assume the flag caused a linker warning 7417 if test -s conftest.err && $GREP single_module conftest.err; then 7418 cat conftest.err >&5 7419 # Otherwise, if the output was created with a 0 exit code from 7420 # the compiler, it worked. 7421 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7422 lt_cv_apple_cc_single_mod=yes 7423 else 7424 cat conftest.err >&5 7425 fi 7426 rm -rf libconftest.dylib* 7427 rm -f conftest.* 7428 fi 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7431$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7432 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7434$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7435if ${lt_cv_ld_exported_symbols_list+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 lt_cv_ld_exported_symbols_list=no 7439 save_LDFLAGS=$LDFLAGS 7440 echo "_main" > conftest.sym 7441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7443/* end confdefs.h. */ 7444 7445int 7446main () 7447{ 7448 7449 ; 7450 return 0; 7451} 7452_ACEOF 7453if ac_fn_c_try_link "$LINENO"; then : 7454 lt_cv_ld_exported_symbols_list=yes 7455else 7456 lt_cv_ld_exported_symbols_list=no 7457fi 7458rm -f core conftest.err conftest.$ac_objext \ 7459 conftest$ac_exeext conftest.$ac_ext 7460 LDFLAGS=$save_LDFLAGS 7461 7462fi 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7464$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7465 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7467$as_echo_n "checking for -force_load linker flag... " >&6; } 7468if ${lt_cv_ld_force_load+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 lt_cv_ld_force_load=no 7472 cat > conftest.c << _LT_EOF 7473int forced_loaded() { return 2;} 7474_LT_EOF 7475 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7476 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7477 echo "$AR cr libconftest.a conftest.o" >&5 7478 $AR cr libconftest.a conftest.o 2>&5 7479 echo "$RANLIB libconftest.a" >&5 7480 $RANLIB libconftest.a 2>&5 7481 cat > conftest.c << _LT_EOF 7482int main() { return 0;} 7483_LT_EOF 7484 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7485 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7486 _lt_result=$? 7487 if test -s conftest.err && $GREP force_load conftest.err; then 7488 cat conftest.err >&5 7489 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7490 lt_cv_ld_force_load=yes 7491 else 7492 cat conftest.err >&5 7493 fi 7494 rm -f conftest.err libconftest.a conftest conftest.c 7495 rm -rf conftest.dSYM 7496 7497fi 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7499$as_echo "$lt_cv_ld_force_load" >&6; } 7500 case $host_os in 7501 rhapsody* | darwin1.[012]) 7502 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7503 darwin1.*) 7504 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7505 darwin*) # darwin 5.x on 7506 # if running on 10.5 or later, the deployment target defaults 7507 # to the OS version, if on x86, and 10.4, the deployment 7508 # target defaults to 10.4. Don't you love it? 7509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7510 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7511 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7512 10.[012][,.]*) 7513 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7514 10.*) 7515 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7516 esac 7517 ;; 7518 esac 7519 if test yes = "$lt_cv_apple_cc_single_mod"; then 7520 _lt_dar_single_mod='$single_module' 7521 fi 7522 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7523 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7524 else 7525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7526 fi 7527 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7528 _lt_dsymutil='~$DSYMUTIL $lib || :' 7529 else 7530 _lt_dsymutil= 7531 fi 7532 ;; 7533 esac 7534 7535# func_munge_path_list VARIABLE PATH 7536# ----------------------------------- 7537# VARIABLE is name of variable containing _space_ separated list of 7538# directories to be munged by the contents of PATH, which is string 7539# having a format: 7540# "DIR[:DIR]:" 7541# string "DIR[ DIR]" will be prepended to VARIABLE 7542# ":DIR[:DIR]" 7543# string "DIR[ DIR]" will be appended to VARIABLE 7544# "DIRP[:DIRP]::[DIRA:]DIRA" 7545# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7546# "DIRA[ DIRA]" will be appended to VARIABLE 7547# "DIR[:DIR]" 7548# VARIABLE will be replaced by "DIR[ DIR]" 7549func_munge_path_list () 7550{ 7551 case x$2 in 7552 x) 7553 ;; 7554 *:) 7555 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7556 ;; 7557 x:*) 7558 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7559 ;; 7560 *::*) 7561 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7562 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7563 ;; 7564 *) 7565 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7566 ;; 7567 esac 7568} 7569 7570ac_ext=c 7571ac_cpp='$CPP $CPPFLAGS' 7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7574ac_compiler_gnu=$ac_cv_c_compiler_gnu 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7576$as_echo_n "checking how to run the C preprocessor... " >&6; } 7577# On Suns, sometimes $CPP names a directory. 7578if test -n "$CPP" && test -d "$CPP"; then 7579 CPP= 7580fi 7581if test -z "$CPP"; then 7582 if ${ac_cv_prog_CPP+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 # Double quotes because CPP needs to be expanded 7586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7587 do 7588 ac_preproc_ok=false 7589for ac_c_preproc_warn_flag in '' yes 7590do 7591 # Use a header file that comes with gcc, so configuring glibc 7592 # with a fresh cross-compiler works. 7593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7594 # <limits.h> exists even on freestanding compilers. 7595 # On the NeXT, cc -E runs the code through the compiler's parser, 7596 # not just through cpp. "Syntax error" is here to catch this case. 7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598/* end confdefs.h. */ 7599#ifdef __STDC__ 7600# include <limits.h> 7601#else 7602# include <assert.h> 7603#endif 7604 Syntax error 7605_ACEOF 7606if ac_fn_c_try_cpp "$LINENO"; then : 7607 7608else 7609 # Broken: fails on valid input. 7610continue 7611fi 7612rm -f conftest.err conftest.i conftest.$ac_ext 7613 7614 # OK, works on sane cases. Now check whether nonexistent headers 7615 # can be detected and how. 7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7617/* end confdefs.h. */ 7618#include <ac_nonexistent.h> 7619_ACEOF 7620if ac_fn_c_try_cpp "$LINENO"; then : 7621 # Broken: success on invalid input. 7622continue 7623else 7624 # Passes both tests. 7625ac_preproc_ok=: 7626break 7627fi 7628rm -f conftest.err conftest.i conftest.$ac_ext 7629 7630done 7631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7632rm -f conftest.i conftest.err conftest.$ac_ext 7633if $ac_preproc_ok; then : 7634 break 7635fi 7636 7637 done 7638 ac_cv_prog_CPP=$CPP 7639 7640fi 7641 CPP=$ac_cv_prog_CPP 7642else 7643 ac_cv_prog_CPP=$CPP 7644fi 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7646$as_echo "$CPP" >&6; } 7647ac_preproc_ok=false 7648for ac_c_preproc_warn_flag in '' yes 7649do 7650 # Use a header file that comes with gcc, so configuring glibc 7651 # with a fresh cross-compiler works. 7652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7653 # <limits.h> exists even on freestanding compilers. 7654 # On the NeXT, cc -E runs the code through the compiler's parser, 7655 # not just through cpp. "Syntax error" is here to catch this case. 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658#ifdef __STDC__ 7659# include <limits.h> 7660#else 7661# include <assert.h> 7662#endif 7663 Syntax error 7664_ACEOF 7665if ac_fn_c_try_cpp "$LINENO"; then : 7666 7667else 7668 # Broken: fails on valid input. 7669continue 7670fi 7671rm -f conftest.err conftest.i conftest.$ac_ext 7672 7673 # OK, works on sane cases. Now check whether nonexistent headers 7674 # can be detected and how. 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676/* end confdefs.h. */ 7677#include <ac_nonexistent.h> 7678_ACEOF 7679if ac_fn_c_try_cpp "$LINENO"; then : 7680 # Broken: success on invalid input. 7681continue 7682else 7683 # Passes both tests. 7684ac_preproc_ok=: 7685break 7686fi 7687rm -f conftest.err conftest.i conftest.$ac_ext 7688 7689done 7690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7691rm -f conftest.i conftest.err conftest.$ac_ext 7692if $ac_preproc_ok; then : 7693 7694else 7695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7697as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7698See \`config.log' for more details" "$LINENO" 5; } 7699fi 7700 7701ac_ext=c 7702ac_cpp='$CPP $CPPFLAGS' 7703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7705ac_compiler_gnu=$ac_cv_c_compiler_gnu 7706 7707 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7709$as_echo_n "checking for ANSI C header files... " >&6; } 7710if ${ac_cv_header_stdc+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715#include <stdlib.h> 7716#include <stdarg.h> 7717#include <string.h> 7718#include <float.h> 7719 7720int 7721main () 7722{ 7723 7724 ; 7725 return 0; 7726} 7727_ACEOF 7728if ac_fn_c_try_compile "$LINENO"; then : 7729 ac_cv_header_stdc=yes 7730else 7731 ac_cv_header_stdc=no 7732fi 7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7734 7735if test $ac_cv_header_stdc = yes; then 7736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738/* end confdefs.h. */ 7739#include <string.h> 7740 7741_ACEOF 7742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7743 $EGREP "memchr" >/dev/null 2>&1; then : 7744 7745else 7746 ac_cv_header_stdc=no 7747fi 7748rm -f conftest* 7749 7750fi 7751 7752if test $ac_cv_header_stdc = yes; then 7753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7755/* end confdefs.h. */ 7756#include <stdlib.h> 7757 7758_ACEOF 7759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7760 $EGREP "free" >/dev/null 2>&1; then : 7761 7762else 7763 ac_cv_header_stdc=no 7764fi 7765rm -f conftest* 7766 7767fi 7768 7769if test $ac_cv_header_stdc = yes; then 7770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7771 if test "$cross_compiling" = yes; then : 7772 : 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776#include <ctype.h> 7777#include <stdlib.h> 7778#if ((' ' & 0x0FF) == 0x020) 7779# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7780# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7781#else 7782# define ISLOWER(c) \ 7783 (('a' <= (c) && (c) <= 'i') \ 7784 || ('j' <= (c) && (c) <= 'r') \ 7785 || ('s' <= (c) && (c) <= 'z')) 7786# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7787#endif 7788 7789#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7790int 7791main () 7792{ 7793 int i; 7794 for (i = 0; i < 256; i++) 7795 if (XOR (islower (i), ISLOWER (i)) 7796 || toupper (i) != TOUPPER (i)) 7797 return 2; 7798 return 0; 7799} 7800_ACEOF 7801if ac_fn_c_try_run "$LINENO"; then : 7802 7803else 7804 ac_cv_header_stdc=no 7805fi 7806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7807 conftest.$ac_objext conftest.beam conftest.$ac_ext 7808fi 7809 7810fi 7811fi 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7813$as_echo "$ac_cv_header_stdc" >&6; } 7814if test $ac_cv_header_stdc = yes; then 7815 7816$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7817 7818fi 7819 7820# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7821for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7822 inttypes.h stdint.h unistd.h 7823do : 7824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7825ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7826" 7827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7828 cat >>confdefs.h <<_ACEOF 7829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7830_ACEOF 7831 7832fi 7833 7834done 7835 7836 7837for ac_header in dlfcn.h 7838do : 7839 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7840" 7841if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7842 cat >>confdefs.h <<_ACEOF 7843#define HAVE_DLFCN_H 1 7844_ACEOF 7845 7846fi 7847 7848done 7849 7850 7851 7852 7853 7854# Set options 7855 7856 7857 7858 enable_dlopen=no 7859 7860 7861 enable_win32_dll=no 7862 7863 7864 # Check whether --enable-shared was given. 7865if test "${enable_shared+set}" = set; then : 7866 enableval=$enable_shared; p=${PACKAGE-default} 7867 case $enableval in 7868 yes) enable_shared=yes ;; 7869 no) enable_shared=no ;; 7870 *) 7871 enable_shared=no 7872 # Look at the argument we got. We use all the common list separators. 7873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7874 for pkg in $enableval; do 7875 IFS=$lt_save_ifs 7876 if test "X$pkg" = "X$p"; then 7877 enable_shared=yes 7878 fi 7879 done 7880 IFS=$lt_save_ifs 7881 ;; 7882 esac 7883else 7884 enable_shared=yes 7885fi 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 # Check whether --enable-static was given. 7896if test "${enable_static+set}" = set; then : 7897 enableval=$enable_static; p=${PACKAGE-default} 7898 case $enableval in 7899 yes) enable_static=yes ;; 7900 no) enable_static=no ;; 7901 *) 7902 enable_static=no 7903 # Look at the argument we got. We use all the common list separators. 7904 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7905 for pkg in $enableval; do 7906 IFS=$lt_save_ifs 7907 if test "X$pkg" = "X$p"; then 7908 enable_static=yes 7909 fi 7910 done 7911 IFS=$lt_save_ifs 7912 ;; 7913 esac 7914else 7915 enable_static=yes 7916fi 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927# Check whether --with-pic was given. 7928if test "${with_pic+set}" = set; then : 7929 withval=$with_pic; lt_p=${PACKAGE-default} 7930 case $withval in 7931 yes|no) pic_mode=$withval ;; 7932 *) 7933 pic_mode=default 7934 # Look at the argument we got. We use all the common list separators. 7935 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7936 for lt_pkg in $withval; do 7937 IFS=$lt_save_ifs 7938 if test "X$lt_pkg" = "X$lt_p"; then 7939 pic_mode=yes 7940 fi 7941 done 7942 IFS=$lt_save_ifs 7943 ;; 7944 esac 7945else 7946 pic_mode=default 7947fi 7948 7949 7950 7951 7952 7953 7954 7955 7956 # Check whether --enable-fast-install was given. 7957if test "${enable_fast_install+set}" = set; then : 7958 enableval=$enable_fast_install; p=${PACKAGE-default} 7959 case $enableval in 7960 yes) enable_fast_install=yes ;; 7961 no) enable_fast_install=no ;; 7962 *) 7963 enable_fast_install=no 7964 # Look at the argument we got. We use all the common list separators. 7965 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7966 for pkg in $enableval; do 7967 IFS=$lt_save_ifs 7968 if test "X$pkg" = "X$p"; then 7969 enable_fast_install=yes 7970 fi 7971 done 7972 IFS=$lt_save_ifs 7973 ;; 7974 esac 7975else 7976 enable_fast_install=yes 7977fi 7978 7979 7980 7981 7982 7983 7984 7985 7986 shared_archive_member_spec= 7987case $host,$enable_shared in 7988power*-*-aix[5-9]*,yes) 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7990$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7991 7992# Check whether --with-aix-soname was given. 7993if test "${with_aix_soname+set}" = set; then : 7994 withval=$with_aix_soname; case $withval in 7995 aix|svr4|both) 7996 ;; 7997 *) 7998 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7999 ;; 8000 esac 8001 lt_cv_with_aix_soname=$with_aix_soname 8002else 8003 if ${lt_cv_with_aix_soname+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 lt_cv_with_aix_soname=aix 8007fi 8008 8009 with_aix_soname=$lt_cv_with_aix_soname 8010fi 8011 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8013$as_echo "$with_aix_soname" >&6; } 8014 if test aix != "$with_aix_soname"; then 8015 # For the AIX way of multilib, we name the shared archive member 8016 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8017 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8018 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8019 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8020 if test 64 = "${OBJECT_MODE-32}"; then 8021 shared_archive_member_spec=shr_64 8022 else 8023 shared_archive_member_spec=shr 8024 fi 8025 fi 8026 ;; 8027*) 8028 with_aix_soname=aix 8029 ;; 8030esac 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041# This can be used to rebuild libtool when needed 8042LIBTOOL_DEPS=$ltmain 8043 8044# Always use our own libtool. 8045LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076test -z "$LN_S" && LN_S="ln -s" 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091if test -n "${ZSH_VERSION+set}"; then 8092 setopt NO_GLOB_SUBST 8093fi 8094 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8096$as_echo_n "checking for objdir... " >&6; } 8097if ${lt_cv_objdir+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 rm -f .libs 2>/dev/null 8101mkdir .libs 2>/dev/null 8102if test -d .libs; then 8103 lt_cv_objdir=.libs 8104else 8105 # MS-DOS does not allow filenames that begin with a dot. 8106 lt_cv_objdir=_libs 8107fi 8108rmdir .libs 2>/dev/null 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8111$as_echo "$lt_cv_objdir" >&6; } 8112objdir=$lt_cv_objdir 8113 8114 8115 8116 8117 8118cat >>confdefs.h <<_ACEOF 8119#define LT_OBJDIR "$lt_cv_objdir/" 8120_ACEOF 8121 8122 8123 8124 8125case $host_os in 8126aix3*) 8127 # AIX sometimes has problems with the GCC collect2 program. For some 8128 # reason, if we set the COLLECT_NAMES environment variable, the problems 8129 # vanish in a puff of smoke. 8130 if test set != "${COLLECT_NAMES+set}"; then 8131 COLLECT_NAMES= 8132 export COLLECT_NAMES 8133 fi 8134 ;; 8135esac 8136 8137# Global variables: 8138ofile=libtool 8139can_build_shared=yes 8140 8141# All known linkers require a '.a' archive for static linking (except MSVC, 8142# which needs '.lib'). 8143libext=a 8144 8145with_gnu_ld=$lt_cv_prog_gnu_ld 8146 8147old_CC=$CC 8148old_CFLAGS=$CFLAGS 8149 8150# Set sane defaults for various variables 8151test -z "$CC" && CC=cc 8152test -z "$LTCC" && LTCC=$CC 8153test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8154test -z "$LD" && LD=ld 8155test -z "$ac_objext" && ac_objext=o 8156 8157func_cc_basename $compiler 8158cc_basename=$func_cc_basename_result 8159 8160 8161# Only perform the check for file, if the check method requires it 8162test -z "$MAGIC_CMD" && MAGIC_CMD=file 8163case $deplibs_check_method in 8164file_magic*) 8165 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8167$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8168if ${lt_cv_path_MAGIC_CMD+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 case $MAGIC_CMD in 8172[\\/*] | ?:[\\/]*) 8173 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8174 ;; 8175*) 8176 lt_save_MAGIC_CMD=$MAGIC_CMD 8177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8179 for ac_dir in $ac_dummy; do 8180 IFS=$lt_save_ifs 8181 test -z "$ac_dir" && ac_dir=. 8182 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8183 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8184 if test -n "$file_magic_test_file"; then 8185 case $deplibs_check_method in 8186 "file_magic "*) 8187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8188 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8190 $EGREP "$file_magic_regex" > /dev/null; then 8191 : 8192 else 8193 cat <<_LT_EOF 1>&2 8194 8195*** Warning: the command libtool uses to detect shared libraries, 8196*** $file_magic_cmd, produces output that libtool cannot recognize. 8197*** The result is that libtool may fail to recognize shared libraries 8198*** as such. This will affect the creation of libtool libraries that 8199*** depend on shared libraries, but programs linked with such libtool 8200*** libraries will work regardless of this problem. Nevertheless, you 8201*** may want to report the problem to your system manager and/or to 8202*** [email protected] 8203 8204_LT_EOF 8205 fi ;; 8206 esac 8207 fi 8208 break 8209 fi 8210 done 8211 IFS=$lt_save_ifs 8212 MAGIC_CMD=$lt_save_MAGIC_CMD 8213 ;; 8214esac 8215fi 8216 8217MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8218if test -n "$MAGIC_CMD"; then 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8220$as_echo "$MAGIC_CMD" >&6; } 8221else 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8223$as_echo "no" >&6; } 8224fi 8225 8226 8227 8228 8229 8230if test -z "$lt_cv_path_MAGIC_CMD"; then 8231 if test -n "$ac_tool_prefix"; then 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8233$as_echo_n "checking for file... " >&6; } 8234if ${lt_cv_path_MAGIC_CMD+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 case $MAGIC_CMD in 8238[\\/*] | ?:[\\/]*) 8239 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8240 ;; 8241*) 8242 lt_save_MAGIC_CMD=$MAGIC_CMD 8243 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8245 for ac_dir in $ac_dummy; do 8246 IFS=$lt_save_ifs 8247 test -z "$ac_dir" && ac_dir=. 8248 if test -f "$ac_dir/file"; then 8249 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8250 if test -n "$file_magic_test_file"; then 8251 case $deplibs_check_method in 8252 "file_magic "*) 8253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8254 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8256 $EGREP "$file_magic_regex" > /dev/null; then 8257 : 8258 else 8259 cat <<_LT_EOF 1>&2 8260 8261*** Warning: the command libtool uses to detect shared libraries, 8262*** $file_magic_cmd, produces output that libtool cannot recognize. 8263*** The result is that libtool may fail to recognize shared libraries 8264*** as such. This will affect the creation of libtool libraries that 8265*** depend on shared libraries, but programs linked with such libtool 8266*** libraries will work regardless of this problem. Nevertheless, you 8267*** may want to report the problem to your system manager and/or to 8268*** [email protected] 8269 8270_LT_EOF 8271 fi ;; 8272 esac 8273 fi 8274 break 8275 fi 8276 done 8277 IFS=$lt_save_ifs 8278 MAGIC_CMD=$lt_save_MAGIC_CMD 8279 ;; 8280esac 8281fi 8282 8283MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8284if test -n "$MAGIC_CMD"; then 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8286$as_echo "$MAGIC_CMD" >&6; } 8287else 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8289$as_echo "no" >&6; } 8290fi 8291 8292 8293 else 8294 MAGIC_CMD=: 8295 fi 8296fi 8297 8298 fi 8299 ;; 8300esac 8301 8302# Use C for the default configuration in the libtool script 8303 8304lt_save_CC=$CC 8305ac_ext=c 8306ac_cpp='$CPP $CPPFLAGS' 8307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8309ac_compiler_gnu=$ac_cv_c_compiler_gnu 8310 8311 8312# Source file extension for C test sources. 8313ac_ext=c 8314 8315# Object file extension for compiled C test sources. 8316objext=o 8317objext=$objext 8318 8319# Code to be used in simple compile tests 8320lt_simple_compile_test_code="int some_variable = 0;" 8321 8322# Code to be used in simple link tests 8323lt_simple_link_test_code='int main(){return(0);}' 8324 8325 8326 8327 8328 8329 8330 8331# If no C compiler was specified, use CC. 8332LTCC=${LTCC-"$CC"} 8333 8334# If no C compiler flags were specified, use CFLAGS. 8335LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8336 8337# Allow CC to be a program name with arguments. 8338compiler=$CC 8339 8340# Save the default compiler, since it gets overwritten when the other 8341# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8342compiler_DEFAULT=$CC 8343 8344# save warnings/boilerplate of simple test code 8345ac_outfile=conftest.$ac_objext 8346echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8348_lt_compiler_boilerplate=`cat conftest.err` 8349$RM conftest* 8350 8351ac_outfile=conftest.$ac_objext 8352echo "$lt_simple_link_test_code" >conftest.$ac_ext 8353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8354_lt_linker_boilerplate=`cat conftest.err` 8355$RM -r conftest* 8356 8357 8358if test -n "$compiler"; then 8359 8360lt_prog_compiler_no_builtin_flag= 8361 8362if test yes = "$GCC"; then 8363 case $cc_basename in 8364 nvcc*) 8365 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8366 *) 8367 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8368 esac 8369 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8371$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8372if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374else 8375 lt_cv_prog_compiler_rtti_exceptions=no 8376 ac_outfile=conftest.$ac_objext 8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8378 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8379 # Insert the option either (1) after the last *FLAGS variable, or 8380 # (2) before a word containing "conftest.", or (3) at the end. 8381 # Note that $ac_compile itself does not contain backslashes and begins 8382 # with a dollar sign (not a hyphen), so the echo should work correctly. 8383 # The option is referenced via a variable to avoid confusing sed. 8384 lt_compile=`echo "$ac_compile" | $SED \ 8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8387 -e 's:$: $lt_compiler_flag:'` 8388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8389 (eval "$lt_compile" 2>conftest.err) 8390 ac_status=$? 8391 cat conftest.err >&5 8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8393 if (exit $ac_status) && test -s "$ac_outfile"; then 8394 # The compiler can only warn and ignore the option if not recognized 8395 # So say no if there are warnings other than the usual output. 8396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8399 lt_cv_prog_compiler_rtti_exceptions=yes 8400 fi 8401 fi 8402 $RM conftest* 8403 8404fi 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8406$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8407 8408if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8410else 8411 : 8412fi 8413 8414fi 8415 8416 8417 8418 8419 8420 8421 lt_prog_compiler_wl= 8422lt_prog_compiler_pic= 8423lt_prog_compiler_static= 8424 8425 8426 if test yes = "$GCC"; then 8427 lt_prog_compiler_wl='-Wl,' 8428 lt_prog_compiler_static='-static' 8429 8430 case $host_os in 8431 aix*) 8432 # All AIX code is PIC. 8433 if test ia64 = "$host_cpu"; then 8434 # AIX 5 now supports IA64 processor 8435 lt_prog_compiler_static='-Bstatic' 8436 fi 8437 lt_prog_compiler_pic='-fPIC' 8438 ;; 8439 8440 amigaos*) 8441 case $host_cpu in 8442 powerpc) 8443 # see comment about AmigaOS4 .so support 8444 lt_prog_compiler_pic='-fPIC' 8445 ;; 8446 m68k) 8447 # FIXME: we need at least 68020 code to build shared libraries, but 8448 # adding the '-m68020' flag to GCC prevents building anything better, 8449 # like '-m68040'. 8450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8451 ;; 8452 esac 8453 ;; 8454 8455 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8456 # PIC is the default for these OSes. 8457 ;; 8458 8459 mingw* | cygwin* | pw32* | os2* | cegcc*) 8460 # This hack is so that the source file can tell whether it is being 8461 # built for inclusion in a dll (and should export symbols for example). 8462 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8463 # (--disable-auto-import) libraries 8464 lt_prog_compiler_pic='-DDLL_EXPORT' 8465 case $host_os in 8466 os2*) 8467 lt_prog_compiler_static='$wl-static' 8468 ;; 8469 esac 8470 ;; 8471 8472 darwin* | rhapsody*) 8473 # PIC is the default on this platform 8474 # Common symbols not allowed in MH_DYLIB files 8475 lt_prog_compiler_pic='-fno-common' 8476 ;; 8477 8478 haiku*) 8479 # PIC is the default for Haiku. 8480 # The "-static" flag exists, but is broken. 8481 lt_prog_compiler_static= 8482 ;; 8483 8484 hpux*) 8485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8487 # sets the default TLS model and affects inlining. 8488 case $host_cpu in 8489 hppa*64*) 8490 # +Z the default 8491 ;; 8492 *) 8493 lt_prog_compiler_pic='-fPIC' 8494 ;; 8495 esac 8496 ;; 8497 8498 interix[3-9]*) 8499 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8500 # Instead, we relocate shared libraries at runtime. 8501 ;; 8502 8503 msdosdjgpp*) 8504 # Just because we use GCC doesn't mean we suddenly get shared libraries 8505 # on systems that don't support them. 8506 lt_prog_compiler_can_build_shared=no 8507 enable_shared=no 8508 ;; 8509 8510 *nto* | *qnx*) 8511 # QNX uses GNU C++, but need to define -shared option too, otherwise 8512 # it will coredump. 8513 lt_prog_compiler_pic='-fPIC -shared' 8514 ;; 8515 8516 sysv4*MP*) 8517 if test -d /usr/nec; then 8518 lt_prog_compiler_pic=-Kconform_pic 8519 fi 8520 ;; 8521 8522 *) 8523 lt_prog_compiler_pic='-fPIC' 8524 ;; 8525 esac 8526 8527 case $cc_basename in 8528 nvcc*) # Cuda Compiler Driver 2.2 8529 lt_prog_compiler_wl='-Xlinker ' 8530 if test -n "$lt_prog_compiler_pic"; then 8531 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8532 fi 8533 ;; 8534 esac 8535 else 8536 # PORTME Check for flag to pass linker flags through the system compiler. 8537 case $host_os in 8538 aix*) 8539 lt_prog_compiler_wl='-Wl,' 8540 if test ia64 = "$host_cpu"; then 8541 # AIX 5 now supports IA64 processor 8542 lt_prog_compiler_static='-Bstatic' 8543 else 8544 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8545 fi 8546 ;; 8547 8548 darwin* | rhapsody*) 8549 # PIC is the default on this platform 8550 # Common symbols not allowed in MH_DYLIB files 8551 lt_prog_compiler_pic='-fno-common' 8552 case $cc_basename in 8553 nagfor*) 8554 # NAG Fortran compiler 8555 lt_prog_compiler_wl='-Wl,-Wl,,' 8556 lt_prog_compiler_pic='-PIC' 8557 lt_prog_compiler_static='-Bstatic' 8558 ;; 8559 esac 8560 ;; 8561 8562 mingw* | cygwin* | pw32* | os2* | cegcc*) 8563 # This hack is so that the source file can tell whether it is being 8564 # built for inclusion in a dll (and should export symbols for example). 8565 lt_prog_compiler_pic='-DDLL_EXPORT' 8566 case $host_os in 8567 os2*) 8568 lt_prog_compiler_static='$wl-static' 8569 ;; 8570 esac 8571 ;; 8572 8573 hpux9* | hpux10* | hpux11*) 8574 lt_prog_compiler_wl='-Wl,' 8575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8576 # not for PA HP-UX. 8577 case $host_cpu in 8578 hppa*64*|ia64*) 8579 # +Z the default 8580 ;; 8581 *) 8582 lt_prog_compiler_pic='+Z' 8583 ;; 8584 esac 8585 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8586 lt_prog_compiler_static='$wl-a ${wl}archive' 8587 ;; 8588 8589 irix5* | irix6* | nonstopux*) 8590 lt_prog_compiler_wl='-Wl,' 8591 # PIC (with -KPIC) is the default. 8592 lt_prog_compiler_static='-non_shared' 8593 ;; 8594 8595 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8596 case $cc_basename in 8597 # old Intel for x86_64, which still supported -KPIC. 8598 ecc*) 8599 lt_prog_compiler_wl='-Wl,' 8600 lt_prog_compiler_pic='-KPIC' 8601 lt_prog_compiler_static='-static' 8602 ;; 8603 # flang / f18. f95 an alias for gfortran or flang on Debian 8604 flang* | f18* | f95*) 8605 lt_prog_compiler_wl='-Wl,' 8606 lt_prog_compiler_pic='-fPIC' 8607 lt_prog_compiler_static='-static' 8608 ;; 8609 # icc used to be incompatible with GCC. 8610 # ICC 10 doesn't accept -KPIC any more. 8611 icc* | ifort*) 8612 lt_prog_compiler_wl='-Wl,' 8613 lt_prog_compiler_pic='-fPIC' 8614 lt_prog_compiler_static='-static' 8615 ;; 8616 # Lahey Fortran 8.1. 8617 lf95*) 8618 lt_prog_compiler_wl='-Wl,' 8619 lt_prog_compiler_pic='--shared' 8620 lt_prog_compiler_static='--static' 8621 ;; 8622 nagfor*) 8623 # NAG Fortran compiler 8624 lt_prog_compiler_wl='-Wl,-Wl,,' 8625 lt_prog_compiler_pic='-PIC' 8626 lt_prog_compiler_static='-Bstatic' 8627 ;; 8628 tcc*) 8629 # Fabrice Bellard et al's Tiny C Compiler 8630 lt_prog_compiler_wl='-Wl,' 8631 lt_prog_compiler_pic='-fPIC' 8632 lt_prog_compiler_static='-static' 8633 ;; 8634 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8635 # Portland Group compilers (*not* the Pentium gcc compiler, 8636 # which looks to be a dead project) 8637 lt_prog_compiler_wl='-Wl,' 8638 lt_prog_compiler_pic='-fpic' 8639 lt_prog_compiler_static='-Bstatic' 8640 ;; 8641 ccc*) 8642 lt_prog_compiler_wl='-Wl,' 8643 # All Alpha code is PIC. 8644 lt_prog_compiler_static='-non_shared' 8645 ;; 8646 xl* | bgxl* | bgf* | mpixl*) 8647 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8648 lt_prog_compiler_wl='-Wl,' 8649 lt_prog_compiler_pic='-qpic' 8650 lt_prog_compiler_static='-qstaticlink' 8651 ;; 8652 *) 8653 case `$CC -V 2>&1 | sed 5q` in 8654 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8655 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8656 lt_prog_compiler_pic='-KPIC' 8657 lt_prog_compiler_static='-Bstatic' 8658 lt_prog_compiler_wl='' 8659 ;; 8660 *Sun\ F* | *Sun*Fortran*) 8661 lt_prog_compiler_pic='-KPIC' 8662 lt_prog_compiler_static='-Bstatic' 8663 lt_prog_compiler_wl='-Qoption ld ' 8664 ;; 8665 *Sun\ C*) 8666 # Sun C 5.9 8667 lt_prog_compiler_pic='-KPIC' 8668 lt_prog_compiler_static='-Bstatic' 8669 lt_prog_compiler_wl='-Wl,' 8670 ;; 8671 *Intel*\ [CF]*Compiler*) 8672 lt_prog_compiler_wl='-Wl,' 8673 lt_prog_compiler_pic='-fPIC' 8674 lt_prog_compiler_static='-static' 8675 ;; 8676 *Portland\ Group*) 8677 lt_prog_compiler_wl='-Wl,' 8678 lt_prog_compiler_pic='-fpic' 8679 lt_prog_compiler_static='-Bstatic' 8680 ;; 8681 esac 8682 ;; 8683 esac 8684 ;; 8685 8686 newsos6) 8687 lt_prog_compiler_pic='-KPIC' 8688 lt_prog_compiler_static='-Bstatic' 8689 ;; 8690 8691 *nto* | *qnx*) 8692 # QNX uses GNU C++, but need to define -shared option too, otherwise 8693 # it will coredump. 8694 lt_prog_compiler_pic='-fPIC -shared' 8695 ;; 8696 8697 osf3* | osf4* | osf5*) 8698 lt_prog_compiler_wl='-Wl,' 8699 # All OSF/1 code is PIC. 8700 lt_prog_compiler_static='-non_shared' 8701 ;; 8702 8703 rdos*) 8704 lt_prog_compiler_static='-non_shared' 8705 ;; 8706 8707 solaris*) 8708 lt_prog_compiler_pic='-KPIC' 8709 lt_prog_compiler_static='-Bstatic' 8710 case $cc_basename in 8711 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8712 lt_prog_compiler_wl='-Qoption ld ';; 8713 *) 8714 lt_prog_compiler_wl='-Wl,';; 8715 esac 8716 ;; 8717 8718 sunos4*) 8719 lt_prog_compiler_wl='-Qoption ld ' 8720 lt_prog_compiler_pic='-PIC' 8721 lt_prog_compiler_static='-Bstatic' 8722 ;; 8723 8724 sysv4 | sysv4.2uw2* | sysv4.3*) 8725 lt_prog_compiler_wl='-Wl,' 8726 lt_prog_compiler_pic='-KPIC' 8727 lt_prog_compiler_static='-Bstatic' 8728 ;; 8729 8730 sysv4*MP*) 8731 if test -d /usr/nec; then 8732 lt_prog_compiler_pic='-Kconform_pic' 8733 lt_prog_compiler_static='-Bstatic' 8734 fi 8735 ;; 8736 8737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8738 lt_prog_compiler_wl='-Wl,' 8739 lt_prog_compiler_pic='-KPIC' 8740 lt_prog_compiler_static='-Bstatic' 8741 ;; 8742 8743 unicos*) 8744 lt_prog_compiler_wl='-Wl,' 8745 lt_prog_compiler_can_build_shared=no 8746 ;; 8747 8748 uts4*) 8749 lt_prog_compiler_pic='-pic' 8750 lt_prog_compiler_static='-Bstatic' 8751 ;; 8752 8753 *) 8754 lt_prog_compiler_can_build_shared=no 8755 ;; 8756 esac 8757 fi 8758 8759case $host_os in 8760 # For platforms that do not support PIC, -DPIC is meaningless: 8761 *djgpp*) 8762 lt_prog_compiler_pic= 8763 ;; 8764 *) 8765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8766 ;; 8767esac 8768 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8770$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8771if ${lt_cv_prog_compiler_pic+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8775fi 8776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8777$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8778lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8779 8780# 8781# Check to make sure the PIC flag actually works. 8782# 8783if test -n "$lt_prog_compiler_pic"; then 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8785$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8786if ${lt_cv_prog_compiler_pic_works+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 lt_cv_prog_compiler_pic_works=no 8790 ac_outfile=conftest.$ac_objext 8791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8792 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8793 # Insert the option either (1) after the last *FLAGS variable, or 8794 # (2) before a word containing "conftest.", or (3) at the end. 8795 # Note that $ac_compile itself does not contain backslashes and begins 8796 # with a dollar sign (not a hyphen), so the echo should work correctly. 8797 # The option is referenced via a variable to avoid confusing sed. 8798 lt_compile=`echo "$ac_compile" | $SED \ 8799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8801 -e 's:$: $lt_compiler_flag:'` 8802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8803 (eval "$lt_compile" 2>conftest.err) 8804 ac_status=$? 8805 cat conftest.err >&5 8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8807 if (exit $ac_status) && test -s "$ac_outfile"; then 8808 # The compiler can only warn and ignore the option if not recognized 8809 # So say no if there are warnings other than the usual output. 8810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8813 lt_cv_prog_compiler_pic_works=yes 8814 fi 8815 fi 8816 $RM conftest* 8817 8818fi 8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8820$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8821 8822if test yes = "$lt_cv_prog_compiler_pic_works"; then 8823 case $lt_prog_compiler_pic in 8824 "" | " "*) ;; 8825 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8826 esac 8827else 8828 lt_prog_compiler_pic= 8829 lt_prog_compiler_can_build_shared=no 8830fi 8831 8832fi 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844# 8845# Check to make sure the static flag actually works. 8846# 8847wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8849$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8850if ${lt_cv_prog_compiler_static_works+:} false; then : 8851 $as_echo_n "(cached) " >&6 8852else 8853 lt_cv_prog_compiler_static_works=no 8854 save_LDFLAGS=$LDFLAGS 8855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8856 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8858 # The linker can only warn and ignore the option if not recognized 8859 # So say no if there are warnings 8860 if test -s conftest.err; then 8861 # Append any errors to the config.log. 8862 cat conftest.err 1>&5 8863 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8865 if diff conftest.exp conftest.er2 >/dev/null; then 8866 lt_cv_prog_compiler_static_works=yes 8867 fi 8868 else 8869 lt_cv_prog_compiler_static_works=yes 8870 fi 8871 fi 8872 $RM -r conftest* 8873 LDFLAGS=$save_LDFLAGS 8874 8875fi 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8877$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8878 8879if test yes = "$lt_cv_prog_compiler_static_works"; then 8880 : 8881else 8882 lt_prog_compiler_static= 8883fi 8884 8885 8886 8887 8888 8889 8890 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8893if ${lt_cv_prog_compiler_c_o+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895else 8896 lt_cv_prog_compiler_c_o=no 8897 $RM -r conftest 2>/dev/null 8898 mkdir conftest 8899 cd conftest 8900 mkdir out 8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8902 8903 lt_compiler_flag="-o out/conftest2.$ac_objext" 8904 # Insert the option either (1) after the last *FLAGS variable, or 8905 # (2) before a word containing "conftest.", or (3) at the end. 8906 # Note that $ac_compile itself does not contain backslashes and begins 8907 # with a dollar sign (not a hyphen), so the echo should work correctly. 8908 lt_compile=`echo "$ac_compile" | $SED \ 8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8911 -e 's:$: $lt_compiler_flag:'` 8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8913 (eval "$lt_compile" 2>out/conftest.err) 8914 ac_status=$? 8915 cat out/conftest.err >&5 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8918 then 8919 # The compiler can only warn and ignore the option if not recognized 8920 # So say no if there are warnings 8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8924 lt_cv_prog_compiler_c_o=yes 8925 fi 8926 fi 8927 chmod u+w . 2>&5 8928 $RM conftest* 8929 # SGI C++ compiler will create directory out/ii_files/ for 8930 # template instantiation 8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8932 $RM out/* && rmdir out 8933 cd .. 8934 $RM -r conftest 8935 $RM conftest* 8936 8937fi 8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8939$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8940 8941 8942 8943 8944 8945 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8948if ${lt_cv_prog_compiler_c_o+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950else 8951 lt_cv_prog_compiler_c_o=no 8952 $RM -r conftest 2>/dev/null 8953 mkdir conftest 8954 cd conftest 8955 mkdir out 8956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8957 8958 lt_compiler_flag="-o out/conftest2.$ac_objext" 8959 # Insert the option either (1) after the last *FLAGS variable, or 8960 # (2) before a word containing "conftest.", or (3) at the end. 8961 # Note that $ac_compile itself does not contain backslashes and begins 8962 # with a dollar sign (not a hyphen), so the echo should work correctly. 8963 lt_compile=`echo "$ac_compile" | $SED \ 8964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8966 -e 's:$: $lt_compiler_flag:'` 8967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8968 (eval "$lt_compile" 2>out/conftest.err) 8969 ac_status=$? 8970 cat out/conftest.err >&5 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8972 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8973 then 8974 # The compiler can only warn and ignore the option if not recognized 8975 # So say no if there are warnings 8976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8979 lt_cv_prog_compiler_c_o=yes 8980 fi 8981 fi 8982 chmod u+w . 2>&5 8983 $RM conftest* 8984 # SGI C++ compiler will create directory out/ii_files/ for 8985 # template instantiation 8986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8987 $RM out/* && rmdir out 8988 cd .. 8989 $RM -r conftest 8990 $RM conftest* 8991 8992fi 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8994$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8995 8996 8997 8998 8999hard_links=nottested 9000if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9001 # do not overwrite the value of need_locks provided by the user 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9003$as_echo_n "checking if we can lock with hard links... " >&6; } 9004 hard_links=yes 9005 $RM conftest* 9006 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9007 touch conftest.a 9008 ln conftest.a conftest.b 2>&5 || hard_links=no 9009 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9011$as_echo "$hard_links" >&6; } 9012 if test no = "$hard_links"; then 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9014$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9015 need_locks=warn 9016 fi 9017else 9018 need_locks=no 9019fi 9020 9021 9022 9023 9024 9025 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9028 9029 runpath_var= 9030 allow_undefined_flag= 9031 always_export_symbols=no 9032 archive_cmds= 9033 archive_expsym_cmds= 9034 compiler_needs_object=no 9035 enable_shared_with_static_runtimes=no 9036 export_dynamic_flag_spec= 9037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9038 hardcode_automatic=no 9039 hardcode_direct=no 9040 hardcode_direct_absolute=no 9041 hardcode_libdir_flag_spec= 9042 hardcode_libdir_separator= 9043 hardcode_minus_L=no 9044 hardcode_shlibpath_var=unsupported 9045 inherit_rpath=no 9046 link_all_deplibs=unknown 9047 module_cmds= 9048 module_expsym_cmds= 9049 old_archive_from_new_cmds= 9050 old_archive_from_expsyms_cmds= 9051 thread_safe_flag_spec= 9052 whole_archive_flag_spec= 9053 # include_expsyms should be a list of space-separated symbols to be *always* 9054 # included in the symbol list 9055 include_expsyms= 9056 # exclude_expsyms can be an extended regexp of symbols to exclude 9057 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9058 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9059 # as well as any symbol that contains 'd'. 9060 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9061 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9062 # platforms (ab)use it in PIC code, but their linkers get confused if 9063 # the symbol is explicitly referenced. Since portable code cannot 9064 # rely on this symbol name, it's probably fine to never include it in 9065 # preloaded symbol tables. 9066 # Exclude shared library initialization/finalization symbols. 9067 extract_expsyms_cmds= 9068 9069 case $host_os in 9070 cygwin* | mingw* | pw32* | cegcc*) 9071 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9072 # When not using gcc, we currently assume that we are using 9073 # Microsoft Visual C++. 9074 if test yes != "$GCC"; then 9075 with_gnu_ld=no 9076 fi 9077 ;; 9078 interix*) 9079 # we just hope/assume this is gcc and not c89 (= MSVC++) 9080 with_gnu_ld=yes 9081 ;; 9082 openbsd* | bitrig*) 9083 with_gnu_ld=no 9084 ;; 9085 linux* | k*bsd*-gnu | gnu*) 9086 link_all_deplibs=no 9087 ;; 9088 esac 9089 9090 ld_shlibs=yes 9091 9092 # On some targets, GNU ld is compatible enough with the native linker 9093 # that we're better off using the native interface for both. 9094 lt_use_gnu_ld_interface=no 9095 if test yes = "$with_gnu_ld"; then 9096 case $host_os in 9097 aix*) 9098 # The AIX port of GNU ld has always aspired to compatibility 9099 # with the native linker. However, as the warning in the GNU ld 9100 # block says, versions before 2.19.5* couldn't really create working 9101 # shared libraries, regardless of the interface used. 9102 case `$LD -v 2>&1` in 9103 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9104 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9105 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9106 *) 9107 lt_use_gnu_ld_interface=yes 9108 ;; 9109 esac 9110 ;; 9111 *) 9112 lt_use_gnu_ld_interface=yes 9113 ;; 9114 esac 9115 fi 9116 9117 if test yes = "$lt_use_gnu_ld_interface"; then 9118 # If archive_cmds runs LD, not CC, wlarc should be empty 9119 wlarc='$wl' 9120 9121 # Set some defaults for GNU ld with shared library support. These 9122 # are reset later if shared libraries are not supported. Putting them 9123 # here allows them to be overridden if necessary. 9124 runpath_var=LD_RUN_PATH 9125 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9126 export_dynamic_flag_spec='$wl--export-dynamic' 9127 # ancient GNU ld didn't support --whole-archive et. al. 9128 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9129 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9130 else 9131 whole_archive_flag_spec= 9132 fi 9133 supports_anon_versioning=no 9134 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9135 *GNU\ gold*) supports_anon_versioning=yes ;; 9136 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9137 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9138 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9139 *\ 2.11.*) ;; # other 2.11 versions 9140 *) supports_anon_versioning=yes ;; 9141 esac 9142 9143 # See if GNU ld supports shared libraries. 9144 case $host_os in 9145 aix[3-9]*) 9146 # On AIX/PPC, the GNU linker is very broken 9147 if test ia64 != "$host_cpu"; then 9148 ld_shlibs=no 9149 cat <<_LT_EOF 1>&2 9150 9151*** Warning: the GNU linker, at least up to release 2.19, is reported 9152*** to be unable to reliably create shared libraries on AIX. 9153*** Therefore, libtool is disabling shared libraries support. If you 9154*** really care for shared libraries, you may want to install binutils 9155*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9156*** You will then need to restart the configuration process. 9157 9158_LT_EOF 9159 fi 9160 ;; 9161 9162 amigaos*) 9163 case $host_cpu in 9164 powerpc) 9165 # see comment about AmigaOS4 .so support 9166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9167 archive_expsym_cmds='' 9168 ;; 9169 m68k) 9170 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)' 9171 hardcode_libdir_flag_spec='-L$libdir' 9172 hardcode_minus_L=yes 9173 ;; 9174 esac 9175 ;; 9176 9177 beos*) 9178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9179 allow_undefined_flag=unsupported 9180 # Joseph Beckenbach <[email protected]> says some releases of gcc 9181 # support --undefined. This deserves some investigation. FIXME 9182 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9183 else 9184 ld_shlibs=no 9185 fi 9186 ;; 9187 9188 cygwin* | mingw* | pw32* | cegcc*) 9189 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9190 # as there is no search path for DLLs. 9191 hardcode_libdir_flag_spec='-L$libdir' 9192 export_dynamic_flag_spec='$wl--export-all-symbols' 9193 allow_undefined_flag=unsupported 9194 always_export_symbols=no 9195 enable_shared_with_static_runtimes=yes 9196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9197 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9198 9199 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9201 # If the export-symbols file already is a .def file, use it as 9202 # is; otherwise, prepend EXPORTS... 9203 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9204 cp $export_symbols $output_objdir/$soname.def; 9205 else 9206 echo EXPORTS > $output_objdir/$soname.def; 9207 cat $export_symbols >> $output_objdir/$soname.def; 9208 fi~ 9209 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9210 else 9211 ld_shlibs=no 9212 fi 9213 ;; 9214 9215 haiku*) 9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9217 link_all_deplibs=yes 9218 ;; 9219 9220 os2*) 9221 hardcode_libdir_flag_spec='-L$libdir' 9222 hardcode_minus_L=yes 9223 allow_undefined_flag=unsupported 9224 shrext_cmds=.dll 9225 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9226 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9227 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9228 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9229 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9231 emximp -o $lib $output_objdir/$libname.def' 9232 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9233 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9234 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9235 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9236 prefix_cmds="$SED"~ 9237 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9238 prefix_cmds="$prefix_cmds -e 1d"; 9239 fi~ 9240 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9241 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9243 emximp -o $lib $output_objdir/$libname.def' 9244 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9245 enable_shared_with_static_runtimes=yes 9246 ;; 9247 9248 interix[3-9]*) 9249 hardcode_direct=no 9250 hardcode_shlibpath_var=no 9251 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9252 export_dynamic_flag_spec='$wl-E' 9253 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9254 # Instead, shared libraries are loaded at an image base (0x10000000 by 9255 # default) and relocated if they conflict, which is a slow very memory 9256 # consuming and fragmenting process. To avoid this, we pick a random, 9257 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9258 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9259 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9260 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' 9261 ;; 9262 9263 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9264 tmp_diet=no 9265 if test linux-dietlibc = "$host_os"; then 9266 case $cc_basename in 9267 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9268 esac 9269 fi 9270 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9271 && test no = "$tmp_diet" 9272 then 9273 tmp_addflag=' $pic_flag' 9274 tmp_sharedflag='-shared' 9275 case $cc_basename,$host_cpu in 9276 pgcc*) # Portland Group C compiler 9277 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' 9278 tmp_addflag=' $pic_flag' 9279 ;; 9280 pgf77* | pgf90* | pgf95* | pgfortran*) 9281 # Portland Group f77 and f90 compilers 9282 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' 9283 tmp_addflag=' $pic_flag -Mnomain' ;; 9284 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9285 tmp_addflag=' -i_dynamic' ;; 9286 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9287 tmp_addflag=' -i_dynamic -nofor_main' ;; 9288 ifc* | ifort*) # Intel Fortran compiler 9289 tmp_addflag=' -nofor_main' ;; 9290 lf95*) # Lahey Fortran 8.1 9291 whole_archive_flag_spec= 9292 tmp_sharedflag='--shared' ;; 9293 nagfor*) # NAGFOR 5.3 9294 tmp_sharedflag='-Wl,-shared' ;; 9295 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9296 tmp_sharedflag='-qmkshrobj' 9297 tmp_addflag= ;; 9298 nvcc*) # Cuda Compiler Driver 2.2 9299 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' 9300 compiler_needs_object=yes 9301 ;; 9302 esac 9303 case `$CC -V 2>&1 | sed 5q` in 9304 *Sun\ C*) # Sun C 5.9 9305 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9306 compiler_needs_object=yes 9307 tmp_sharedflag='-G' ;; 9308 *Sun\ F*) # Sun Fortran 8.3 9309 tmp_sharedflag='-G' ;; 9310 esac 9311 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9312 9313 if test yes = "$supports_anon_versioning"; then 9314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9316 echo "local: *; };" >> $output_objdir/$libname.ver~ 9317 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9318 fi 9319 9320 case $cc_basename in 9321 tcc*) 9322 export_dynamic_flag_spec='-rdynamic' 9323 ;; 9324 xlf* | bgf* | bgxlf* | mpixlf*) 9325 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9326 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9328 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9329 if test yes = "$supports_anon_versioning"; then 9330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9332 echo "local: *; };" >> $output_objdir/$libname.ver~ 9333 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9334 fi 9335 ;; 9336 esac 9337 else 9338 ld_shlibs=no 9339 fi 9340 ;; 9341 9342 netbsd* | netbsdelf*-gnu) 9343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9344 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9345 wlarc= 9346 else 9347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9348 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9349 fi 9350 ;; 9351 9352 solaris*) 9353 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9354 ld_shlibs=no 9355 cat <<_LT_EOF 1>&2 9356 9357*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9358*** create shared libraries on Solaris systems. Therefore, libtool 9359*** is disabling shared libraries support. We urge you to upgrade GNU 9360*** binutils to release 2.9.1 or newer. Another option is to modify 9361*** your PATH or compiler configuration so that the native linker is 9362*** used, and then restart. 9363 9364_LT_EOF 9365 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9366 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9367 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9368 else 9369 ld_shlibs=no 9370 fi 9371 ;; 9372 9373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9374 case `$LD -v 2>&1` in 9375 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9376 ld_shlibs=no 9377 cat <<_LT_EOF 1>&2 9378 9379*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9380*** reliably create shared libraries on SCO systems. Therefore, libtool 9381*** is disabling shared libraries support. We urge you to upgrade GNU 9382*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9383*** your PATH or compiler configuration so that the native linker is 9384*** used, and then restart. 9385 9386_LT_EOF 9387 ;; 9388 *) 9389 # For security reasons, it is highly recommended that you always 9390 # use absolute paths for naming shared libraries, and exclude the 9391 # DT_RUNPATH tag from executables and libraries. But doing so 9392 # requires that you compile everything twice, which is a pain. 9393 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9394 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9397 else 9398 ld_shlibs=no 9399 fi 9400 ;; 9401 esac 9402 ;; 9403 9404 sunos4*) 9405 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9406 wlarc= 9407 hardcode_direct=yes 9408 hardcode_shlibpath_var=no 9409 ;; 9410 9411 *) 9412 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9414 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9415 else 9416 ld_shlibs=no 9417 fi 9418 ;; 9419 esac 9420 9421 if test no = "$ld_shlibs"; then 9422 runpath_var= 9423 hardcode_libdir_flag_spec= 9424 export_dynamic_flag_spec= 9425 whole_archive_flag_spec= 9426 fi 9427 else 9428 # PORTME fill in a description of your system's linker (not GNU ld) 9429 case $host_os in 9430 aix3*) 9431 allow_undefined_flag=unsupported 9432 always_export_symbols=yes 9433 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' 9434 # Note: this linker hardcodes the directories in LIBPATH if there 9435 # are no directories specified by -L. 9436 hardcode_minus_L=yes 9437 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9438 # Neither direct hardcoding nor static linking is supported with a 9439 # broken collect2. 9440 hardcode_direct=unsupported 9441 fi 9442 ;; 9443 9444 aix[4-9]*) 9445 if test ia64 = "$host_cpu"; then 9446 # On IA64, the linker does run time linking by default, so we don't 9447 # have to do anything special. 9448 aix_use_runtimelinking=no 9449 exp_sym_flag='-Bexport' 9450 no_entry_flag= 9451 else 9452 # If we're using GNU nm, then we don't want the "-C" option. 9453 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9454 # Without the "-l" option, or with the "-B" option, AIX nm treats 9455 # weak defined symbols like other global defined symbols, whereas 9456 # GNU nm marks them as "W". 9457 # While the 'weak' keyword is ignored in the Export File, we need 9458 # it in the Import File for the 'aix-soname' feature, so we have 9459 # to replace the "-B" option with "-P" for AIX nm. 9460 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9461 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9462 else 9463 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9464 fi 9465 aix_use_runtimelinking=no 9466 9467 # Test if we are trying to use run time linking or normal 9468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9469 # have runtime linking enabled, and use it for executables. 9470 # For shared libraries, we enable/disable runtime linking 9471 # depending on the kind of the shared library created - 9472 # when "with_aix_soname,aix_use_runtimelinking" is: 9473 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9474 # "aix,yes" lib.so shared, rtl:yes, for executables 9475 # lib.a static archive 9476 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9477 # lib.a(lib.so.V) shared, rtl:no, for executables 9478 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9479 # lib.a(lib.so.V) shared, rtl:no 9480 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9481 # lib.a static archive 9482 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9483 for ld_flag in $LDFLAGS; do 9484 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9485 aix_use_runtimelinking=yes 9486 break 9487 fi 9488 done 9489 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9490 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9491 # so we don't have lib.a shared libs to link our executables. 9492 # We have to force runtime linking in this case. 9493 aix_use_runtimelinking=yes 9494 LDFLAGS="$LDFLAGS -Wl,-brtl" 9495 fi 9496 ;; 9497 esac 9498 9499 exp_sym_flag='-bexport' 9500 no_entry_flag='-bnoentry' 9501 fi 9502 9503 # When large executables or shared objects are built, AIX ld can 9504 # have problems creating the table of contents. If linking a library 9505 # or program results in "error TOC overflow" add -mminimal-toc to 9506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9508 9509 archive_cmds='' 9510 hardcode_direct=yes 9511 hardcode_direct_absolute=yes 9512 hardcode_libdir_separator=':' 9513 link_all_deplibs=yes 9514 file_list_spec='$wl-f,' 9515 case $with_aix_soname,$aix_use_runtimelinking in 9516 aix,*) ;; # traditional, no import file 9517 svr4,* | *,yes) # use import file 9518 # The Import File defines what to hardcode. 9519 hardcode_direct=no 9520 hardcode_direct_absolute=no 9521 ;; 9522 esac 9523 9524 if test yes = "$GCC"; then 9525 case $host_os in aix4.[012]|aix4.[012].*) 9526 # We only want to do this on AIX 4.2 and lower, the check 9527 # below for broken collect2 doesn't work under 4.3+ 9528 collect2name=`$CC -print-prog-name=collect2` 9529 if test -f "$collect2name" && 9530 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9531 then 9532 # We have reworked collect2 9533 : 9534 else 9535 # We have old collect2 9536 hardcode_direct=unsupported 9537 # It fails to find uninstalled libraries when the uninstalled 9538 # path is not listed in the libpath. Setting hardcode_minus_L 9539 # to unsupported forces relinking 9540 hardcode_minus_L=yes 9541 hardcode_libdir_flag_spec='-L$libdir' 9542 hardcode_libdir_separator= 9543 fi 9544 ;; 9545 esac 9546 shared_flag='-shared' 9547 if test yes = "$aix_use_runtimelinking"; then 9548 shared_flag="$shared_flag "'$wl-G' 9549 fi 9550 # Need to ensure runtime linking is disabled for the traditional 9551 # shared library, or the linker may eventually find shared libraries 9552 # /with/ Import File - we do not want to mix them. 9553 shared_flag_aix='-shared' 9554 shared_flag_svr4='-shared $wl-G' 9555 else 9556 # not using gcc 9557 if test ia64 = "$host_cpu"; then 9558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9559 # chokes on -Wl,-G. The following line is correct: 9560 shared_flag='-G' 9561 else 9562 if test yes = "$aix_use_runtimelinking"; then 9563 shared_flag='$wl-G' 9564 else 9565 shared_flag='$wl-bM:SRE' 9566 fi 9567 shared_flag_aix='$wl-bM:SRE' 9568 shared_flag_svr4='$wl-G' 9569 fi 9570 fi 9571 9572 export_dynamic_flag_spec='$wl-bexpall' 9573 # It seems that -bexpall does not export symbols beginning with 9574 # underscore (_), so it is better to generate a list of symbols to export. 9575 always_export_symbols=yes 9576 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9577 # Warning - without using the other runtime loading flags (-brtl), 9578 # -berok will link without error, but may produce a broken library. 9579 allow_undefined_flag='-berok' 9580 # Determine the default libpath from the value encoded in an 9581 # empty executable. 9582 if test set = "${lt_cv_aix_libpath+set}"; then 9583 aix_libpath=$lt_cv_aix_libpath 9584else 9585 if ${lt_cv_aix_libpath_+:} false; then : 9586 $as_echo_n "(cached) " >&6 9587else 9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589/* end confdefs.h. */ 9590 9591int 9592main () 9593{ 9594 9595 ; 9596 return 0; 9597} 9598_ACEOF 9599if ac_fn_c_try_link "$LINENO"; then : 9600 9601 lt_aix_libpath_sed=' 9602 /Import File Strings/,/^$/ { 9603 /^0/ { 9604 s/^0 *\([^ ]*\) *$/\1/ 9605 p 9606 } 9607 }' 9608 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9609 # Check for a 64-bit object if we didn't find anything. 9610 if test -z "$lt_cv_aix_libpath_"; then 9611 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9612 fi 9613fi 9614rm -f core conftest.err conftest.$ac_objext \ 9615 conftest$ac_exeext conftest.$ac_ext 9616 if test -z "$lt_cv_aix_libpath_"; then 9617 lt_cv_aix_libpath_=/usr/lib:/lib 9618 fi 9619 9620fi 9621 9622 aix_libpath=$lt_cv_aix_libpath_ 9623fi 9624 9625 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9626 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9627 else 9628 if test ia64 = "$host_cpu"; then 9629 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9630 allow_undefined_flag="-z nodefs" 9631 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" 9632 else 9633 # Determine the default libpath from the value encoded in an 9634 # empty executable. 9635 if test set = "${lt_cv_aix_libpath+set}"; then 9636 aix_libpath=$lt_cv_aix_libpath 9637else 9638 if ${lt_cv_aix_libpath_+:} false; then : 9639 $as_echo_n "(cached) " >&6 9640else 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643 9644int 9645main () 9646{ 9647 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO"; then : 9653 9654 lt_aix_libpath_sed=' 9655 /Import File Strings/,/^$/ { 9656 /^0/ { 9657 s/^0 *\([^ ]*\) *$/\1/ 9658 p 9659 } 9660 }' 9661 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9662 # Check for a 64-bit object if we didn't find anything. 9663 if test -z "$lt_cv_aix_libpath_"; then 9664 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9665 fi 9666fi 9667rm -f core conftest.err conftest.$ac_objext \ 9668 conftest$ac_exeext conftest.$ac_ext 9669 if test -z "$lt_cv_aix_libpath_"; then 9670 lt_cv_aix_libpath_=/usr/lib:/lib 9671 fi 9672 9673fi 9674 9675 aix_libpath=$lt_cv_aix_libpath_ 9676fi 9677 9678 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9679 # Warning - without using the other run time loading flags, 9680 # -berok will link without error, but may produce a broken library. 9681 no_undefined_flag=' $wl-bernotok' 9682 allow_undefined_flag=' $wl-berok' 9683 if test yes = "$with_gnu_ld"; then 9684 # We only use this code for GNU lds that support --whole-archive. 9685 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9686 else 9687 # Exported symbols can be pulled into shared objects from archives 9688 whole_archive_flag_spec='$convenience' 9689 fi 9690 archive_cmds_need_lc=yes 9691 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9692 # -brtl affects multiple linker settings, -berok does not and is overridden later 9693 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9694 if test svr4 != "$with_aix_soname"; then 9695 # This is similar to how AIX traditionally builds its shared libraries. 9696 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9697 fi 9698 if test aix != "$with_aix_soname"; then 9699 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9700 else 9701 # used by -dlpreopen to get the symbols 9702 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9703 fi 9704 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9705 fi 9706 fi 9707 ;; 9708 9709 amigaos*) 9710 case $host_cpu in 9711 powerpc) 9712 # see comment about AmigaOS4 .so support 9713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9714 archive_expsym_cmds='' 9715 ;; 9716 m68k) 9717 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)' 9718 hardcode_libdir_flag_spec='-L$libdir' 9719 hardcode_minus_L=yes 9720 ;; 9721 esac 9722 ;; 9723 9724 bsdi[45]*) 9725 export_dynamic_flag_spec=-rdynamic 9726 ;; 9727 9728 cygwin* | mingw* | pw32* | cegcc*) 9729 # When not using gcc, we currently assume that we are using 9730 # Microsoft Visual C++. 9731 # hardcode_libdir_flag_spec is actually meaningless, as there is 9732 # no search path for DLLs. 9733 case $cc_basename in 9734 cl*) 9735 # Native MSVC 9736 hardcode_libdir_flag_spec=' ' 9737 allow_undefined_flag=unsupported 9738 always_export_symbols=yes 9739 file_list_spec='@' 9740 # Tell ltmain to make .lib files, not .a files. 9741 libext=lib 9742 # Tell ltmain to make .dll files, not .so files. 9743 shrext_cmds=.dll 9744 # FIXME: Setting linknames here is a bad hack. 9745 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9746 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9747 cp "$export_symbols" "$output_objdir/$soname.def"; 9748 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9749 else 9750 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9751 fi~ 9752 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9753 linknames=' 9754 # The linker will not automatically build a static lib if we build a DLL. 9755 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9756 enable_shared_with_static_runtimes=yes 9757 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9759 # Don't use ranlib 9760 old_postinstall_cmds='chmod 644 $oldlib' 9761 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9762 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9763 case $lt_outputfile in 9764 *.exe|*.EXE) ;; 9765 *) 9766 lt_outputfile=$lt_outputfile.exe 9767 lt_tool_outputfile=$lt_tool_outputfile.exe 9768 ;; 9769 esac~ 9770 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9771 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9772 $RM "$lt_outputfile.manifest"; 9773 fi' 9774 ;; 9775 *) 9776 # Assume MSVC wrapper 9777 hardcode_libdir_flag_spec=' ' 9778 allow_undefined_flag=unsupported 9779 # Tell ltmain to make .lib files, not .a files. 9780 libext=lib 9781 # Tell ltmain to make .dll files, not .so files. 9782 shrext_cmds=.dll 9783 # FIXME: Setting linknames here is a bad hack. 9784 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9785 # The linker will automatically build a .lib file if we build a DLL. 9786 old_archive_from_new_cmds='true' 9787 # FIXME: Should let the user specify the lib program. 9788 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9789 enable_shared_with_static_runtimes=yes 9790 ;; 9791 esac 9792 ;; 9793 9794 darwin* | rhapsody*) 9795 9796 9797 archive_cmds_need_lc=no 9798 hardcode_direct=no 9799 hardcode_automatic=yes 9800 hardcode_shlibpath_var=unsupported 9801 if test yes = "$lt_cv_ld_force_load"; then 9802 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\"`' 9803 9804 else 9805 whole_archive_flag_spec='' 9806 fi 9807 link_all_deplibs=yes 9808 allow_undefined_flag=$_lt_dar_allow_undefined 9809 case $cc_basename in 9810 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9811 *) _lt_dar_can_shared=$GCC ;; 9812 esac 9813 if test yes = "$_lt_dar_can_shared"; then 9814 output_verbose_link_cmd=func_echo_all 9815 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9816 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9817 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" 9818 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" 9819 9820 else 9821 ld_shlibs=no 9822 fi 9823 9824 ;; 9825 9826 dgux*) 9827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9828 hardcode_libdir_flag_spec='-L$libdir' 9829 hardcode_shlibpath_var=no 9830 ;; 9831 9832 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9833 # support. Future versions do this automatically, but an explicit c++rt0.o 9834 # does not break anything, and helps significantly (at the cost of a little 9835 # extra space). 9836 freebsd2.2*) 9837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9838 hardcode_libdir_flag_spec='-R$libdir' 9839 hardcode_direct=yes 9840 hardcode_shlibpath_var=no 9841 ;; 9842 9843 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9844 freebsd2.*) 9845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9846 hardcode_direct=yes 9847 hardcode_minus_L=yes 9848 hardcode_shlibpath_var=no 9849 ;; 9850 9851 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9852 freebsd* | dragonfly*) 9853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9854 hardcode_libdir_flag_spec='-R$libdir' 9855 hardcode_direct=yes 9856 hardcode_shlibpath_var=no 9857 ;; 9858 9859 hpux9*) 9860 if test yes = "$GCC"; then 9861 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9862 else 9863 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9864 fi 9865 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9866 hardcode_libdir_separator=: 9867 hardcode_direct=yes 9868 9869 # hardcode_minus_L: Not really in the search PATH, 9870 # but as the default location of the library. 9871 hardcode_minus_L=yes 9872 export_dynamic_flag_spec='$wl-E' 9873 ;; 9874 9875 hpux10*) 9876 if test yes,no = "$GCC,$with_gnu_ld"; then 9877 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9878 else 9879 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9880 fi 9881 if test no = "$with_gnu_ld"; then 9882 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9883 hardcode_libdir_separator=: 9884 hardcode_direct=yes 9885 hardcode_direct_absolute=yes 9886 export_dynamic_flag_spec='$wl-E' 9887 # hardcode_minus_L: Not really in the search PATH, 9888 # but as the default location of the library. 9889 hardcode_minus_L=yes 9890 fi 9891 ;; 9892 9893 hpux11*) 9894 if test yes,no = "$GCC,$with_gnu_ld"; then 9895 case $host_cpu in 9896 hppa*64*) 9897 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9898 ;; 9899 ia64*) 9900 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9901 ;; 9902 *) 9903 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9904 ;; 9905 esac 9906 else 9907 case $host_cpu in 9908 hppa*64*) 9909 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9910 ;; 9911 ia64*) 9912 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9913 ;; 9914 *) 9915 9916 # Older versions of the 11.00 compiler do not understand -b yet 9917 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9919$as_echo_n "checking if $CC understands -b... " >&6; } 9920if ${lt_cv_prog_compiler__b+:} false; then : 9921 $as_echo_n "(cached) " >&6 9922else 9923 lt_cv_prog_compiler__b=no 9924 save_LDFLAGS=$LDFLAGS 9925 LDFLAGS="$LDFLAGS -b" 9926 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9928 # The linker can only warn and ignore the option if not recognized 9929 # So say no if there are warnings 9930 if test -s conftest.err; then 9931 # Append any errors to the config.log. 9932 cat conftest.err 1>&5 9933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9935 if diff conftest.exp conftest.er2 >/dev/null; then 9936 lt_cv_prog_compiler__b=yes 9937 fi 9938 else 9939 lt_cv_prog_compiler__b=yes 9940 fi 9941 fi 9942 $RM -r conftest* 9943 LDFLAGS=$save_LDFLAGS 9944 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9947$as_echo "$lt_cv_prog_compiler__b" >&6; } 9948 9949if test yes = "$lt_cv_prog_compiler__b"; then 9950 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9951else 9952 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9953fi 9954 9955 ;; 9956 esac 9957 fi 9958 if test no = "$with_gnu_ld"; then 9959 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9960 hardcode_libdir_separator=: 9961 9962 case $host_cpu in 9963 hppa*64*|ia64*) 9964 hardcode_direct=no 9965 hardcode_shlibpath_var=no 9966 ;; 9967 *) 9968 hardcode_direct=yes 9969 hardcode_direct_absolute=yes 9970 export_dynamic_flag_spec='$wl-E' 9971 9972 # hardcode_minus_L: Not really in the search PATH, 9973 # but as the default location of the library. 9974 hardcode_minus_L=yes 9975 ;; 9976 esac 9977 fi 9978 ;; 9979 9980 irix5* | irix6* | nonstopux*) 9981 if test yes = "$GCC"; then 9982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9983 # Try to use the -exported_symbol ld option, if it does not 9984 # work, assume that -exports_file does not work either and 9985 # implicitly export all symbols. 9986 # This should be the same for all languages, so no per-tag cache variable. 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9988$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9989if ${lt_cv_irix_exported_symbol+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 save_LDFLAGS=$LDFLAGS 9993 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996int foo (void) { return 0; } 9997_ACEOF 9998if ac_fn_c_try_link "$LINENO"; then : 9999 lt_cv_irix_exported_symbol=yes 10000else 10001 lt_cv_irix_exported_symbol=no 10002fi 10003rm -f core conftest.err conftest.$ac_objext \ 10004 conftest$ac_exeext conftest.$ac_ext 10005 LDFLAGS=$save_LDFLAGS 10006fi 10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10008$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10009 if test yes = "$lt_cv_irix_exported_symbol"; then 10010 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10011 fi 10012 link_all_deplibs=no 10013 else 10014 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' 10015 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' 10016 fi 10017 archive_cmds_need_lc='no' 10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10019 hardcode_libdir_separator=: 10020 inherit_rpath=yes 10021 link_all_deplibs=yes 10022 ;; 10023 10024 linux*) 10025 case $cc_basename in 10026 tcc*) 10027 # Fabrice Bellard et al's Tiny C Compiler 10028 ld_shlibs=yes 10029 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10030 ;; 10031 esac 10032 ;; 10033 10034 netbsd* | netbsdelf*-gnu) 10035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10037 else 10038 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10039 fi 10040 hardcode_libdir_flag_spec='-R$libdir' 10041 hardcode_direct=yes 10042 hardcode_shlibpath_var=no 10043 ;; 10044 10045 newsos6) 10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10047 hardcode_direct=yes 10048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10049 hardcode_libdir_separator=: 10050 hardcode_shlibpath_var=no 10051 ;; 10052 10053 *nto* | *qnx*) 10054 ;; 10055 10056 openbsd* | bitrig*) 10057 if test -f /usr/libexec/ld.so; then 10058 hardcode_direct=yes 10059 hardcode_shlibpath_var=no 10060 hardcode_direct_absolute=yes 10061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10063 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10064 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10065 export_dynamic_flag_spec='$wl-E' 10066 else 10067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10068 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10069 fi 10070 else 10071 ld_shlibs=no 10072 fi 10073 ;; 10074 10075 os2*) 10076 hardcode_libdir_flag_spec='-L$libdir' 10077 hardcode_minus_L=yes 10078 allow_undefined_flag=unsupported 10079 shrext_cmds=.dll 10080 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10081 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10082 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10083 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10084 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10085 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10086 emximp -o $lib $output_objdir/$libname.def' 10087 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10088 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10089 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10090 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10091 prefix_cmds="$SED"~ 10092 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10093 prefix_cmds="$prefix_cmds -e 1d"; 10094 fi~ 10095 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10096 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10097 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10098 emximp -o $lib $output_objdir/$libname.def' 10099 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10100 enable_shared_with_static_runtimes=yes 10101 ;; 10102 10103 osf3*) 10104 if test yes = "$GCC"; then 10105 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10106 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' 10107 else 10108 allow_undefined_flag=' -expect_unresolved \*' 10109 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' 10110 fi 10111 archive_cmds_need_lc='no' 10112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10113 hardcode_libdir_separator=: 10114 ;; 10115 10116 osf4* | osf5*) # as osf3* with the addition of -msym flag 10117 if test yes = "$GCC"; then 10118 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10119 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10120 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10121 else 10122 allow_undefined_flag=' -expect_unresolved \*' 10123 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' 10124 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~ 10125 $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' 10126 10127 # Both c and cxx compiler support -rpath directly 10128 hardcode_libdir_flag_spec='-rpath $libdir' 10129 fi 10130 archive_cmds_need_lc='no' 10131 hardcode_libdir_separator=: 10132 ;; 10133 10134 solaris*) 10135 no_undefined_flag=' -z defs' 10136 if test yes = "$GCC"; then 10137 wlarc='$wl' 10138 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10139 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10140 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10141 else 10142 case `$CC -V 2>&1` in 10143 *"Compilers 5.0"*) 10144 wlarc='' 10145 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10147 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10148 ;; 10149 *) 10150 wlarc='$wl' 10151 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10153 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10154 ;; 10155 esac 10156 fi 10157 hardcode_libdir_flag_spec='-R$libdir' 10158 hardcode_shlibpath_var=no 10159 case $host_os in 10160 solaris2.[0-5] | solaris2.[0-5].*) ;; 10161 *) 10162 # The compiler driver will combine and reorder linker options, 10163 # but understands '-z linker_flag'. GCC discards it without '$wl', 10164 # but is careful enough not to reorder. 10165 # Supported since Solaris 2.6 (maybe 2.5.1?) 10166 if test yes = "$GCC"; then 10167 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10168 else 10169 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10170 fi 10171 ;; 10172 esac 10173 link_all_deplibs=yes 10174 ;; 10175 10176 sunos4*) 10177 if test sequent = "$host_vendor"; then 10178 # Use $CC to link under sequent, because it throws in some extra .o 10179 # files that make .init and .fini sections work. 10180 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10181 else 10182 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10183 fi 10184 hardcode_libdir_flag_spec='-L$libdir' 10185 hardcode_direct=yes 10186 hardcode_minus_L=yes 10187 hardcode_shlibpath_var=no 10188 ;; 10189 10190 sysv4) 10191 case $host_vendor in 10192 sni) 10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10194 hardcode_direct=yes # is this really true??? 10195 ;; 10196 siemens) 10197 ## LD is ld it makes a PLAMLIB 10198 ## CC just makes a GrossModule. 10199 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10200 reload_cmds='$CC -r -o $output$reload_objs' 10201 hardcode_direct=no 10202 ;; 10203 motorola) 10204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10205 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10206 ;; 10207 esac 10208 runpath_var='LD_RUN_PATH' 10209 hardcode_shlibpath_var=no 10210 ;; 10211 10212 sysv4.3*) 10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10214 hardcode_shlibpath_var=no 10215 export_dynamic_flag_spec='-Bexport' 10216 ;; 10217 10218 sysv4*MP*) 10219 if test -d /usr/nec; then 10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10221 hardcode_shlibpath_var=no 10222 runpath_var=LD_RUN_PATH 10223 hardcode_runpath_var=yes 10224 ld_shlibs=yes 10225 fi 10226 ;; 10227 10228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10229 no_undefined_flag='$wl-z,text' 10230 archive_cmds_need_lc=no 10231 hardcode_shlibpath_var=no 10232 runpath_var='LD_RUN_PATH' 10233 10234 if test yes = "$GCC"; then 10235 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10236 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10237 else 10238 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10239 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10240 fi 10241 ;; 10242 10243 sysv5* | sco3.2v5* | sco5v6*) 10244 # Note: We CANNOT use -z defs as we might desire, because we do not 10245 # link with -lc, and that would cause any symbols used from libc to 10246 # always be unresolved, which means just about no library would 10247 # ever link correctly. If we're not using GNU ld we use -z text 10248 # though, which does catch some bad symbols but isn't as heavy-handed 10249 # as -z defs. 10250 no_undefined_flag='$wl-z,text' 10251 allow_undefined_flag='$wl-z,nodefs' 10252 archive_cmds_need_lc=no 10253 hardcode_shlibpath_var=no 10254 hardcode_libdir_flag_spec='$wl-R,$libdir' 10255 hardcode_libdir_separator=':' 10256 link_all_deplibs=yes 10257 export_dynamic_flag_spec='$wl-Bexport' 10258 runpath_var='LD_RUN_PATH' 10259 10260 if test yes = "$GCC"; then 10261 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10262 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10263 else 10264 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10265 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10266 fi 10267 ;; 10268 10269 uts4*) 10270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10271 hardcode_libdir_flag_spec='-L$libdir' 10272 hardcode_shlibpath_var=no 10273 ;; 10274 10275 *) 10276 ld_shlibs=no 10277 ;; 10278 esac 10279 10280 if test sni = "$host_vendor"; then 10281 case $host in 10282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10283 export_dynamic_flag_spec='$wl-Blargedynsym' 10284 ;; 10285 esac 10286 fi 10287 fi 10288 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10290$as_echo "$ld_shlibs" >&6; } 10291test no = "$ld_shlibs" && can_build_shared=no 10292 10293with_gnu_ld=$with_gnu_ld 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309# 10310# Do we need to explicitly link libc? 10311# 10312case "x$archive_cmds_need_lc" in 10313x|xyes) 10314 # Assume -lc should be added 10315 archive_cmds_need_lc=yes 10316 10317 if test yes,yes = "$GCC,$enable_shared"; then 10318 case $archive_cmds in 10319 *'~'*) 10320 # FIXME: we may have to deal with multi-command sequences. 10321 ;; 10322 '$CC '*) 10323 # Test whether the compiler implicitly links with -lc since on some 10324 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10325 # to ld, don't add -lc before -lgcc. 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10327$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10328if ${lt_cv_archive_cmds_need_lc+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 $RM conftest* 10332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10333 10334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10335 (eval $ac_compile) 2>&5 10336 ac_status=$? 10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10338 test $ac_status = 0; } 2>conftest.err; then 10339 soname=conftest 10340 lib=conftest 10341 libobjs=conftest.$ac_objext 10342 deplibs= 10343 wl=$lt_prog_compiler_wl 10344 pic_flag=$lt_prog_compiler_pic 10345 compiler_flags=-v 10346 linker_flags=-v 10347 verstring= 10348 output_objdir=. 10349 libname=conftest 10350 lt_save_allow_undefined_flag=$allow_undefined_flag 10351 allow_undefined_flag= 10352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10353 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10354 ac_status=$? 10355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10356 test $ac_status = 0; } 10357 then 10358 lt_cv_archive_cmds_need_lc=no 10359 else 10360 lt_cv_archive_cmds_need_lc=yes 10361 fi 10362 allow_undefined_flag=$lt_save_allow_undefined_flag 10363 else 10364 cat conftest.err 1>&5 10365 fi 10366 $RM conftest* 10367 10368fi 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10370$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10371 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10372 ;; 10373 esac 10374 fi 10375 ;; 10376esac 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10530$as_echo_n "checking dynamic linker characteristics... " >&6; } 10531 10532if test yes = "$GCC"; then 10533 case $host_os in 10534 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10535 *) lt_awk_arg='/^libraries:/' ;; 10536 esac 10537 case $host_os in 10538 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10539 *) lt_sed_strip_eq='s|=/|/|g' ;; 10540 esac 10541 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10542 case $lt_search_path_spec in 10543 *\;*) 10544 # if the path contains ";" then we assume it to be the separator 10545 # otherwise default to the standard path separator (i.e. ":") - it is 10546 # assumed that no part of a normal pathname contains ";" but that should 10547 # okay in the real world where ";" in dirpaths is itself problematic. 10548 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10549 ;; 10550 *) 10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10552 ;; 10553 esac 10554 # Ok, now we have the path, separated by spaces, we can step through it 10555 # and add multilib dir if necessary... 10556 lt_tmp_lt_search_path_spec= 10557 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10558 # ...but if some path component already ends with the multilib dir we assume 10559 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10560 case "$lt_multi_os_dir; $lt_search_path_spec " in 10561 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10562 lt_multi_os_dir= 10563 ;; 10564 esac 10565 for lt_sys_path in $lt_search_path_spec; do 10566 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10568 elif test -n "$lt_multi_os_dir"; then 10569 test -d "$lt_sys_path" && \ 10570 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10571 fi 10572 done 10573 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10574BEGIN {RS = " "; FS = "/|\n";} { 10575 lt_foo = ""; 10576 lt_count = 0; 10577 for (lt_i = NF; lt_i > 0; lt_i--) { 10578 if ($lt_i != "" && $lt_i != ".") { 10579 if ($lt_i == "..") { 10580 lt_count++; 10581 } else { 10582 if (lt_count == 0) { 10583 lt_foo = "/" $lt_i lt_foo; 10584 } else { 10585 lt_count--; 10586 } 10587 } 10588 } 10589 } 10590 if (lt_foo != "") { lt_freq[lt_foo]++; } 10591 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10592}'` 10593 # AWK program above erroneously prepends '/' to C:/dos/paths 10594 # for these hosts. 10595 case $host_os in 10596 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10597 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10598 esac 10599 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10600else 10601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10602fi 10603library_names_spec= 10604libname_spec='lib$name' 10605soname_spec= 10606shrext_cmds=.so 10607postinstall_cmds= 10608postuninstall_cmds= 10609finish_cmds= 10610finish_eval= 10611shlibpath_var= 10612shlibpath_overrides_runpath=unknown 10613version_type=none 10614dynamic_linker="$host_os ld.so" 10615sys_lib_dlsearch_path_spec="/lib /usr/lib" 10616need_lib_prefix=unknown 10617hardcode_into_libs=no 10618 10619# when you set need_version to no, make sure it does not cause -set_version 10620# flags to be left without arguments 10621need_version=unknown 10622 10623 10624 10625case $host_os in 10626aix3*) 10627 version_type=linux # correct to gnu/linux during the next big refactor 10628 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10629 shlibpath_var=LIBPATH 10630 10631 # AIX 3 has no versioning support, so we append a major version to the name. 10632 soname_spec='$libname$release$shared_ext$major' 10633 ;; 10634 10635aix[4-9]*) 10636 version_type=linux # correct to gnu/linux during the next big refactor 10637 need_lib_prefix=no 10638 need_version=no 10639 hardcode_into_libs=yes 10640 if test ia64 = "$host_cpu"; then 10641 # AIX 5 supports IA64 10642 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 else 10645 # With GCC up to 2.95.x, collect2 would create an import file 10646 # for dependence libraries. The import file would start with 10647 # the line '#! .'. This would cause the generated library to 10648 # depend on '.', always an invalid library. This was fixed in 10649 # development snapshots of GCC prior to 3.0. 10650 case $host_os in 10651 aix4 | aix4.[01] | aix4.[01].*) 10652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10653 echo ' yes ' 10654 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10655 : 10656 else 10657 can_build_shared=no 10658 fi 10659 ;; 10660 esac 10661 # Using Import Files as archive members, it is possible to support 10662 # filename-based versioning of shared library archives on AIX. While 10663 # this would work for both with and without runtime linking, it will 10664 # prevent static linking of such archives. So we do filename-based 10665 # shared library versioning with .so extension only, which is used 10666 # when both runtime linking and shared linking is enabled. 10667 # Unfortunately, runtime linking may impact performance, so we do 10668 # not want this to be the default eventually. Also, we use the 10669 # versioned .so libs for executables only if there is the -brtl 10670 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10671 # To allow for filename-based versioning support, we need to create 10672 # libNAME.so.V as an archive file, containing: 10673 # *) an Import File, referring to the versioned filename of the 10674 # archive as well as the shared archive member, telling the 10675 # bitwidth (32 or 64) of that shared object, and providing the 10676 # list of exported symbols of that shared object, eventually 10677 # decorated with the 'weak' keyword 10678 # *) the shared object with the F_LOADONLY flag set, to really avoid 10679 # it being seen by the linker. 10680 # At run time we better use the real file rather than another symlink, 10681 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10682 10683 case $with_aix_soname,$aix_use_runtimelinking in 10684 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10685 # soname into executable. Probably we can add versioning support to 10686 # collect2, so additional links can be useful in future. 10687 aix,yes) # traditional libtool 10688 dynamic_linker='AIX unversionable lib.so' 10689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10690 # instead of lib<name>.a to let people know that these are not 10691 # typical AIX shared libraries. 10692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10693 ;; 10694 aix,no) # traditional AIX only 10695 dynamic_linker='AIX lib.a(lib.so.V)' 10696 # We preserve .a as extension for shared libraries through AIX4.2 10697 # and later when we are not doing run time linking. 10698 library_names_spec='$libname$release.a $libname.a' 10699 soname_spec='$libname$release$shared_ext$major' 10700 ;; 10701 svr4,*) # full svr4 only 10702 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10703 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10704 # We do not specify a path in Import Files, so LIBPATH fires. 10705 shlibpath_overrides_runpath=yes 10706 ;; 10707 *,yes) # both, prefer svr4 10708 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10709 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10710 # unpreferred sharedlib libNAME.a needs extra handling 10711 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10712 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10713 # We do not specify a path in Import Files, so LIBPATH fires. 10714 shlibpath_overrides_runpath=yes 10715 ;; 10716 *,no) # both, prefer aix 10717 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10718 library_names_spec='$libname$release.a $libname.a' 10719 soname_spec='$libname$release$shared_ext$major' 10720 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10721 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10722 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10723 ;; 10724 esac 10725 shlibpath_var=LIBPATH 10726 fi 10727 ;; 10728 10729amigaos*) 10730 case $host_cpu in 10731 powerpc) 10732 # Since July 2007 AmigaOS4 officially supports .so libraries. 10733 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10735 ;; 10736 m68k) 10737 library_names_spec='$libname.ixlibrary $libname.a' 10738 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10739 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 10740 ;; 10741 esac 10742 ;; 10743 10744beos*) 10745 library_names_spec='$libname$shared_ext' 10746 dynamic_linker="$host_os ld.so" 10747 shlibpath_var=LIBRARY_PATH 10748 ;; 10749 10750bsdi[45]*) 10751 version_type=linux # correct to gnu/linux during the next big refactor 10752 need_version=no 10753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10754 soname_spec='$libname$release$shared_ext$major' 10755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10756 shlibpath_var=LD_LIBRARY_PATH 10757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10759 # the default ld.so.conf also contains /usr/contrib/lib and 10760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10761 # libtool to hard-code these into programs 10762 ;; 10763 10764cygwin* | mingw* | pw32* | cegcc*) 10765 version_type=windows 10766 shrext_cmds=.dll 10767 need_version=no 10768 need_lib_prefix=no 10769 10770 case $GCC,$cc_basename in 10771 yes,*) 10772 # gcc 10773 library_names_spec='$libname.dll.a' 10774 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10775 postinstall_cmds='base_file=`basename \$file`~ 10776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10777 dldir=$destdir/`dirname \$dlpath`~ 10778 test -d \$dldir || mkdir -p \$dldir~ 10779 $install_prog $dir/$dlname \$dldir/$dlname~ 10780 chmod a+x \$dldir/$dlname~ 10781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10783 fi' 10784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10785 dlpath=$dir/\$dldll~ 10786 $RM \$dlpath' 10787 shlibpath_overrides_runpath=yes 10788 10789 case $host_os in 10790 cygwin*) 10791 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10792 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10793 10794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10795 ;; 10796 mingw* | cegcc*) 10797 # MinGW DLLs use traditional 'lib' prefix 10798 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10799 ;; 10800 pw32*) 10801 # pw32 DLLs use 'pw' prefix rather than 'lib' 10802 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10803 ;; 10804 esac 10805 dynamic_linker='Win32 ld.exe' 10806 ;; 10807 10808 *,cl*) 10809 # Native MSVC 10810 libname_spec='$name' 10811 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10812 library_names_spec='$libname.dll.lib' 10813 10814 case $build_os in 10815 mingw*) 10816 sys_lib_search_path_spec= 10817 lt_save_ifs=$IFS 10818 IFS=';' 10819 for lt_path in $LIB 10820 do 10821 IFS=$lt_save_ifs 10822 # Let DOS variable expansion print the short 8.3 style file name. 10823 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10824 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10825 done 10826 IFS=$lt_save_ifs 10827 # Convert to MSYS style. 10828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10829 ;; 10830 cygwin*) 10831 # Convert to unix form, then to dos form, then back to unix form 10832 # but this time dos style (no spaces!) so that the unix form looks 10833 # like /cygdrive/c/PROGRA~1:/cygdr... 10834 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10835 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10836 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10837 ;; 10838 *) 10839 sys_lib_search_path_spec=$LIB 10840 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10841 # It is most probably a Windows format PATH. 10842 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10843 else 10844 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10845 fi 10846 # FIXME: find the short name or the path components, as spaces are 10847 # common. (e.g. "Program Files" -> "PROGRA~1") 10848 ;; 10849 esac 10850 10851 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10852 postinstall_cmds='base_file=`basename \$file`~ 10853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10854 dldir=$destdir/`dirname \$dlpath`~ 10855 test -d \$dldir || mkdir -p \$dldir~ 10856 $install_prog $dir/$dlname \$dldir/$dlname' 10857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10858 dlpath=$dir/\$dldll~ 10859 $RM \$dlpath' 10860 shlibpath_overrides_runpath=yes 10861 dynamic_linker='Win32 link.exe' 10862 ;; 10863 10864 *) 10865 # Assume MSVC wrapper 10866 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10867 dynamic_linker='Win32 ld.exe' 10868 ;; 10869 esac 10870 # FIXME: first we should search . and the directory the executable is in 10871 shlibpath_var=PATH 10872 ;; 10873 10874darwin* | rhapsody*) 10875 dynamic_linker="$host_os dyld" 10876 version_type=darwin 10877 need_lib_prefix=no 10878 need_version=no 10879 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10880 soname_spec='$libname$release$major$shared_ext' 10881 shlibpath_overrides_runpath=yes 10882 shlibpath_var=DYLD_LIBRARY_PATH 10883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10884 10885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10887 ;; 10888 10889dgux*) 10890 version_type=linux # correct to gnu/linux during the next big refactor 10891 need_lib_prefix=no 10892 need_version=no 10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10894 soname_spec='$libname$release$shared_ext$major' 10895 shlibpath_var=LD_LIBRARY_PATH 10896 ;; 10897 10898freebsd* | dragonfly*) 10899 # DragonFly does not have aout. When/if they implement a new 10900 # versioning mechanism, adjust this. 10901 if test -x /usr/bin/objformat; then 10902 objformat=`/usr/bin/objformat` 10903 else 10904 case $host_os in 10905 freebsd[23].*) objformat=aout ;; 10906 *) objformat=elf ;; 10907 esac 10908 fi 10909 version_type=freebsd-$objformat 10910 case $version_type in 10911 freebsd-elf*) 10912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10913 soname_spec='$libname$release$shared_ext$major' 10914 need_version=no 10915 need_lib_prefix=no 10916 ;; 10917 freebsd-*) 10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10919 need_version=yes 10920 ;; 10921 esac 10922 shlibpath_var=LD_LIBRARY_PATH 10923 case $host_os in 10924 freebsd2.*) 10925 shlibpath_overrides_runpath=yes 10926 ;; 10927 freebsd3.[01]* | freebsdelf3.[01]*) 10928 shlibpath_overrides_runpath=yes 10929 hardcode_into_libs=yes 10930 ;; 10931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10933 shlibpath_overrides_runpath=no 10934 hardcode_into_libs=yes 10935 ;; 10936 *) # from 4.6 on, and DragonFly 10937 shlibpath_overrides_runpath=yes 10938 hardcode_into_libs=yes 10939 ;; 10940 esac 10941 ;; 10942 10943haiku*) 10944 version_type=linux # correct to gnu/linux during the next big refactor 10945 need_lib_prefix=no 10946 need_version=no 10947 dynamic_linker="$host_os runtime_loader" 10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10949 soname_spec='$libname$release$shared_ext$major' 10950 shlibpath_var=LIBRARY_PATH 10951 shlibpath_overrides_runpath=no 10952 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10953 hardcode_into_libs=yes 10954 ;; 10955 10956hpux9* | hpux10* | hpux11*) 10957 # Give a soname corresponding to the major version so that dld.sl refuses to 10958 # link against other versions. 10959 version_type=sunos 10960 need_lib_prefix=no 10961 need_version=no 10962 case $host_cpu in 10963 ia64*) 10964 shrext_cmds='.so' 10965 hardcode_into_libs=yes 10966 dynamic_linker="$host_os dld.so" 10967 shlibpath_var=LD_LIBRARY_PATH 10968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10970 soname_spec='$libname$release$shared_ext$major' 10971 if test 32 = "$HPUX_IA64_MODE"; then 10972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10973 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10974 else 10975 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10976 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10977 fi 10978 ;; 10979 hppa*64*) 10980 shrext_cmds='.sl' 10981 hardcode_into_libs=yes 10982 dynamic_linker="$host_os dld.sl" 10983 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10986 soname_spec='$libname$release$shared_ext$major' 10987 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10989 ;; 10990 *) 10991 shrext_cmds='.sl' 10992 dynamic_linker="$host_os dld.sl" 10993 shlibpath_var=SHLIB_PATH 10994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10996 soname_spec='$libname$release$shared_ext$major' 10997 ;; 10998 esac 10999 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11000 postinstall_cmds='chmod 555 $lib' 11001 # or fails outright, so override atomically: 11002 install_override_mode=555 11003 ;; 11004 11005interix[3-9]*) 11006 version_type=linux # correct to gnu/linux during the next big refactor 11007 need_lib_prefix=no 11008 need_version=no 11009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11010 soname_spec='$libname$release$shared_ext$major' 11011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11012 shlibpath_var=LD_LIBRARY_PATH 11013 shlibpath_overrides_runpath=no 11014 hardcode_into_libs=yes 11015 ;; 11016 11017irix5* | irix6* | nonstopux*) 11018 case $host_os in 11019 nonstopux*) version_type=nonstopux ;; 11020 *) 11021 if test yes = "$lt_cv_prog_gnu_ld"; then 11022 version_type=linux # correct to gnu/linux during the next big refactor 11023 else 11024 version_type=irix 11025 fi ;; 11026 esac 11027 need_lib_prefix=no 11028 need_version=no 11029 soname_spec='$libname$release$shared_ext$major' 11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11031 case $host_os in 11032 irix5* | nonstopux*) 11033 libsuff= shlibsuff= 11034 ;; 11035 *) 11036 case $LD in # libtool.m4 will add one of these switches to LD 11037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11038 libsuff= shlibsuff= libmagic=32-bit;; 11039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11040 libsuff=32 shlibsuff=N32 libmagic=N32;; 11041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11042 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11043 *) libsuff= shlibsuff= libmagic=never-match;; 11044 esac 11045 ;; 11046 esac 11047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11048 shlibpath_overrides_runpath=no 11049 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11050 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11051 hardcode_into_libs=yes 11052 ;; 11053 11054# No shared lib support for Linux oldld, aout, or coff. 11055linux*oldld* | linux*aout* | linux*coff*) 11056 dynamic_linker=no 11057 ;; 11058 11059linux*android*) 11060 version_type=none # Android doesn't support versioned libraries. 11061 need_lib_prefix=no 11062 need_version=no 11063 library_names_spec='$libname$release$shared_ext' 11064 soname_spec='$libname$release$shared_ext' 11065 finish_cmds= 11066 shlibpath_var=LD_LIBRARY_PATH 11067 shlibpath_overrides_runpath=yes 11068 11069 # This implies no fast_install, which is unacceptable. 11070 # Some rework will be needed to allow for fast_install 11071 # before this can be enabled. 11072 hardcode_into_libs=yes 11073 11074 dynamic_linker='Android linker' 11075 # Don't embed -rpath directories since the linker doesn't support them. 11076 hardcode_libdir_flag_spec='-L$libdir' 11077 ;; 11078 11079# This must be glibc/ELF. 11080linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11081 version_type=linux # correct to gnu/linux during the next big refactor 11082 need_lib_prefix=no 11083 need_version=no 11084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11085 soname_spec='$libname$release$shared_ext$major' 11086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11087 shlibpath_var=LD_LIBRARY_PATH 11088 shlibpath_overrides_runpath=no 11089 11090 # Some binutils ld are patched to set DT_RUNPATH 11091 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11092 $as_echo_n "(cached) " >&6 11093else 11094 lt_cv_shlibpath_overrides_runpath=no 11095 save_LDFLAGS=$LDFLAGS 11096 save_libdir=$libdir 11097 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11098 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11100/* end confdefs.h. */ 11101 11102int 11103main () 11104{ 11105 11106 ; 11107 return 0; 11108} 11109_ACEOF 11110if ac_fn_c_try_link "$LINENO"; then : 11111 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11112 lt_cv_shlibpath_overrides_runpath=yes 11113fi 11114fi 11115rm -f core conftest.err conftest.$ac_objext \ 11116 conftest$ac_exeext conftest.$ac_ext 11117 LDFLAGS=$save_LDFLAGS 11118 libdir=$save_libdir 11119 11120fi 11121 11122 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11123 11124 # This implies no fast_install, which is unacceptable. 11125 # Some rework will be needed to allow for fast_install 11126 # before this can be enabled. 11127 hardcode_into_libs=yes 11128 11129 # Ideally, we could use ldconfig to report *all* directores which are 11130 # searched for libraries, however this is still not possible. Aside from not 11131 # being certain /sbin/ldconfig is available, command 11132 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11133 # even though it is searched at run-time. Try to do the best guess by 11134 # appending ld.so.conf contents (and includes) to the search path. 11135 if test -f /etc/ld.so.conf; then 11136 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' ' '` 11137 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11138 fi 11139 11140 # We used to test for /lib/ld.so.1 and disable shared libraries on 11141 # powerpc, because MkLinux only supported shared libraries with the 11142 # GNU dynamic linker. Since this was broken with cross compilers, 11143 # most powerpc-linux boxes support dynamic linking these days and 11144 # people can always --disable-shared, the test was removed, and we 11145 # assume the GNU/Linux dynamic linker is in use. 11146 dynamic_linker='GNU/Linux ld.so' 11147 ;; 11148 11149netbsdelf*-gnu) 11150 version_type=linux 11151 need_lib_prefix=no 11152 need_version=no 11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11154 soname_spec='${libname}${release}${shared_ext}$major' 11155 shlibpath_var=LD_LIBRARY_PATH 11156 shlibpath_overrides_runpath=no 11157 hardcode_into_libs=yes 11158 dynamic_linker='NetBSD ld.elf_so' 11159 ;; 11160 11161netbsd*) 11162 version_type=sunos 11163 need_lib_prefix=no 11164 need_version=no 11165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11168 dynamic_linker='NetBSD (a.out) ld.so' 11169 else 11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11171 soname_spec='$libname$release$shared_ext$major' 11172 dynamic_linker='NetBSD ld.elf_so' 11173 fi 11174 shlibpath_var=LD_LIBRARY_PATH 11175 shlibpath_overrides_runpath=yes 11176 hardcode_into_libs=yes 11177 ;; 11178 11179newsos6) 11180 version_type=linux # correct to gnu/linux during the next big refactor 11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11182 shlibpath_var=LD_LIBRARY_PATH 11183 shlibpath_overrides_runpath=yes 11184 ;; 11185 11186*nto* | *qnx*) 11187 version_type=qnx 11188 need_lib_prefix=no 11189 need_version=no 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 soname_spec='$libname$release$shared_ext$major' 11192 shlibpath_var=LD_LIBRARY_PATH 11193 shlibpath_overrides_runpath=no 11194 hardcode_into_libs=yes 11195 dynamic_linker='ldqnx.so' 11196 ;; 11197 11198openbsd* | bitrig*) 11199 version_type=sunos 11200 sys_lib_dlsearch_path_spec=/usr/lib 11201 need_lib_prefix=no 11202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11203 need_version=no 11204 else 11205 need_version=yes 11206 fi 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11209 shlibpath_var=LD_LIBRARY_PATH 11210 shlibpath_overrides_runpath=yes 11211 ;; 11212 11213os2*) 11214 libname_spec='$name' 11215 version_type=windows 11216 shrext_cmds=.dll 11217 need_version=no 11218 need_lib_prefix=no 11219 # OS/2 can only load a DLL with a base name of 8 characters or less. 11220 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11221 v=$($ECHO $release$versuffix | tr -d .-); 11222 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11223 $ECHO $n$v`$shared_ext' 11224 library_names_spec='${libname}_dll.$libext' 11225 dynamic_linker='OS/2 ld.exe' 11226 shlibpath_var=BEGINLIBPATH 11227 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11229 postinstall_cmds='base_file=`basename \$file`~ 11230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11231 dldir=$destdir/`dirname \$dlpath`~ 11232 test -d \$dldir || mkdir -p \$dldir~ 11233 $install_prog $dir/$dlname \$dldir/$dlname~ 11234 chmod a+x \$dldir/$dlname~ 11235 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11236 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11237 fi' 11238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11239 dlpath=$dir/\$dldll~ 11240 $RM \$dlpath' 11241 ;; 11242 11243osf3* | osf4* | osf5*) 11244 version_type=osf 11245 need_lib_prefix=no 11246 need_version=no 11247 soname_spec='$libname$release$shared_ext$major' 11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11249 shlibpath_var=LD_LIBRARY_PATH 11250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11252 ;; 11253 11254rdos*) 11255 dynamic_linker=no 11256 ;; 11257 11258solaris*) 11259 version_type=linux # correct to gnu/linux during the next big refactor 11260 need_lib_prefix=no 11261 need_version=no 11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11263 soname_spec='$libname$release$shared_ext$major' 11264 shlibpath_var=LD_LIBRARY_PATH 11265 shlibpath_overrides_runpath=yes 11266 hardcode_into_libs=yes 11267 # ldd complains unless libraries are executable 11268 postinstall_cmds='chmod +x $lib' 11269 ;; 11270 11271sunos4*) 11272 version_type=sunos 11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11275 shlibpath_var=LD_LIBRARY_PATH 11276 shlibpath_overrides_runpath=yes 11277 if test yes = "$with_gnu_ld"; then 11278 need_lib_prefix=no 11279 fi 11280 need_version=yes 11281 ;; 11282 11283sysv4 | sysv4.3*) 11284 version_type=linux # correct to gnu/linux during the next big refactor 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11286 soname_spec='$libname$release$shared_ext$major' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 case $host_vendor in 11289 sni) 11290 shlibpath_overrides_runpath=no 11291 need_lib_prefix=no 11292 runpath_var=LD_RUN_PATH 11293 ;; 11294 siemens) 11295 need_lib_prefix=no 11296 ;; 11297 motorola) 11298 need_lib_prefix=no 11299 need_version=no 11300 shlibpath_overrides_runpath=no 11301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11302 ;; 11303 esac 11304 ;; 11305 11306sysv4*MP*) 11307 if test -d /usr/nec; then 11308 version_type=linux # correct to gnu/linux during the next big refactor 11309 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11310 soname_spec='$libname$shared_ext.$major' 11311 shlibpath_var=LD_LIBRARY_PATH 11312 fi 11313 ;; 11314 11315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11316 version_type=sco 11317 need_lib_prefix=no 11318 need_version=no 11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11320 soname_spec='$libname$release$shared_ext$major' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=yes 11323 hardcode_into_libs=yes 11324 if test yes = "$with_gnu_ld"; then 11325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11326 else 11327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11328 case $host_os in 11329 sco3.2v5*) 11330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11331 ;; 11332 esac 11333 fi 11334 sys_lib_dlsearch_path_spec='/usr/lib' 11335 ;; 11336 11337tpf*) 11338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11339 version_type=linux # correct to gnu/linux during the next big refactor 11340 need_lib_prefix=no 11341 need_version=no 11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11343 shlibpath_var=LD_LIBRARY_PATH 11344 shlibpath_overrides_runpath=no 11345 hardcode_into_libs=yes 11346 ;; 11347 11348uts4*) 11349 version_type=linux # correct to gnu/linux during the next big refactor 11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11351 soname_spec='$libname$release$shared_ext$major' 11352 shlibpath_var=LD_LIBRARY_PATH 11353 ;; 11354 11355*) 11356 dynamic_linker=no 11357 ;; 11358esac 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11360$as_echo "$dynamic_linker" >&6; } 11361test no = "$dynamic_linker" && can_build_shared=no 11362 11363variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11364if test yes = "$GCC"; then 11365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11366fi 11367 11368if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11369 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11370fi 11371 11372if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11373 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11374fi 11375 11376# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11377configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11378 11379# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11380func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11381 11382# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11383configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11482$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11483hardcode_action= 11484if test -n "$hardcode_libdir_flag_spec" || 11485 test -n "$runpath_var" || 11486 test yes = "$hardcode_automatic"; then 11487 11488 # We can hardcode non-existent directories. 11489 if test no != "$hardcode_direct" && 11490 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11491 # have to relink, otherwise we might link with an installed library 11492 # when we should be linking with a yet-to-be-installed one 11493 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11494 test no != "$hardcode_minus_L"; then 11495 # Linking always hardcodes the temporary library directory. 11496 hardcode_action=relink 11497 else 11498 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11499 hardcode_action=immediate 11500 fi 11501else 11502 # We cannot hardcode anything, or else we can only hardcode existing 11503 # directories. 11504 hardcode_action=unsupported 11505fi 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11507$as_echo "$hardcode_action" >&6; } 11508 11509if test relink = "$hardcode_action" || 11510 test yes = "$inherit_rpath"; then 11511 # Fast installation is not supported 11512 enable_fast_install=no 11513elif test yes = "$shlibpath_overrides_runpath" || 11514 test no = "$enable_shared"; then 11515 # Fast installation is not necessary 11516 enable_fast_install=needless 11517fi 11518 11519 11520 11521 11522 11523 11524 if test yes != "$enable_dlopen"; then 11525 enable_dlopen=unknown 11526 enable_dlopen_self=unknown 11527 enable_dlopen_self_static=unknown 11528else 11529 lt_cv_dlopen=no 11530 lt_cv_dlopen_libs= 11531 11532 case $host_os in 11533 beos*) 11534 lt_cv_dlopen=load_add_on 11535 lt_cv_dlopen_libs= 11536 lt_cv_dlopen_self=yes 11537 ;; 11538 11539 mingw* | pw32* | cegcc*) 11540 lt_cv_dlopen=LoadLibrary 11541 lt_cv_dlopen_libs= 11542 ;; 11543 11544 cygwin*) 11545 lt_cv_dlopen=dlopen 11546 lt_cv_dlopen_libs= 11547 ;; 11548 11549 darwin*) 11550 # if libdl is installed we need to link against it 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11552$as_echo_n "checking for dlopen in -ldl... " >&6; } 11553if ${ac_cv_lib_dl_dlopen+:} false; then : 11554 $as_echo_n "(cached) " >&6 11555else 11556 ac_check_lib_save_LIBS=$LIBS 11557LIBS="-ldl $LIBS" 11558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560 11561/* Override any GCC internal prototype to avoid an error. 11562 Use char because int might match the return type of a GCC 11563 builtin and then its argument prototype would still apply. */ 11564#ifdef __cplusplus 11565extern "C" 11566#endif 11567char dlopen (); 11568int 11569main () 11570{ 11571return dlopen (); 11572 ; 11573 return 0; 11574} 11575_ACEOF 11576if ac_fn_c_try_link "$LINENO"; then : 11577 ac_cv_lib_dl_dlopen=yes 11578else 11579 ac_cv_lib_dl_dlopen=no 11580fi 11581rm -f core conftest.err conftest.$ac_objext \ 11582 conftest$ac_exeext conftest.$ac_ext 11583LIBS=$ac_check_lib_save_LIBS 11584fi 11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11586$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11587if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11588 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11589else 11590 11591 lt_cv_dlopen=dyld 11592 lt_cv_dlopen_libs= 11593 lt_cv_dlopen_self=yes 11594 11595fi 11596 11597 ;; 11598 11599 tpf*) 11600 # Don't try to run any link tests for TPF. We know it's impossible 11601 # because TPF is a cross-compiler, and we know how we open DSOs. 11602 lt_cv_dlopen=dlopen 11603 lt_cv_dlopen_libs= 11604 lt_cv_dlopen_self=no 11605 ;; 11606 11607 *) 11608 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11609if test "x$ac_cv_func_shl_load" = xyes; then : 11610 lt_cv_dlopen=shl_load 11611else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11613$as_echo_n "checking for shl_load in -ldld... " >&6; } 11614if ${ac_cv_lib_dld_shl_load+:} false; then : 11615 $as_echo_n "(cached) " >&6 11616else 11617 ac_check_lib_save_LIBS=$LIBS 11618LIBS="-ldld $LIBS" 11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622/* Override any GCC internal prototype to avoid an error. 11623 Use char because int might match the return type of a GCC 11624 builtin and then its argument prototype would still apply. */ 11625#ifdef __cplusplus 11626extern "C" 11627#endif 11628char shl_load (); 11629int 11630main () 11631{ 11632return shl_load (); 11633 ; 11634 return 0; 11635} 11636_ACEOF 11637if ac_fn_c_try_link "$LINENO"; then : 11638 ac_cv_lib_dld_shl_load=yes 11639else 11640 ac_cv_lib_dld_shl_load=no 11641fi 11642rm -f core conftest.err conftest.$ac_objext \ 11643 conftest$ac_exeext conftest.$ac_ext 11644LIBS=$ac_check_lib_save_LIBS 11645fi 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11647$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11648if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11649 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11650else 11651 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11652if test "x$ac_cv_func_dlopen" = xyes; then : 11653 lt_cv_dlopen=dlopen 11654else 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11656$as_echo_n "checking for dlopen in -ldl... " >&6; } 11657if ${ac_cv_lib_dl_dlopen+:} false; then : 11658 $as_echo_n "(cached) " >&6 11659else 11660 ac_check_lib_save_LIBS=$LIBS 11661LIBS="-ldl $LIBS" 11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11663/* end confdefs.h. */ 11664 11665/* Override any GCC internal prototype to avoid an error. 11666 Use char because int might match the return type of a GCC 11667 builtin and then its argument prototype would still apply. */ 11668#ifdef __cplusplus 11669extern "C" 11670#endif 11671char dlopen (); 11672int 11673main () 11674{ 11675return dlopen (); 11676 ; 11677 return 0; 11678} 11679_ACEOF 11680if ac_fn_c_try_link "$LINENO"; then : 11681 ac_cv_lib_dl_dlopen=yes 11682else 11683 ac_cv_lib_dl_dlopen=no 11684fi 11685rm -f core conftest.err conftest.$ac_objext \ 11686 conftest$ac_exeext conftest.$ac_ext 11687LIBS=$ac_check_lib_save_LIBS 11688fi 11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11690$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11691if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11693else 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11695$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11696if ${ac_cv_lib_svld_dlopen+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698else 11699 ac_check_lib_save_LIBS=$LIBS 11700LIBS="-lsvld $LIBS" 11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703 11704/* Override any GCC internal prototype to avoid an error. 11705 Use char because int might match the return type of a GCC 11706 builtin and then its argument prototype would still apply. */ 11707#ifdef __cplusplus 11708extern "C" 11709#endif 11710char dlopen (); 11711int 11712main () 11713{ 11714return dlopen (); 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719if ac_fn_c_try_link "$LINENO"; then : 11720 ac_cv_lib_svld_dlopen=yes 11721else 11722 ac_cv_lib_svld_dlopen=no 11723fi 11724rm -f core conftest.err conftest.$ac_objext \ 11725 conftest$ac_exeext conftest.$ac_ext 11726LIBS=$ac_check_lib_save_LIBS 11727fi 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11729$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11730if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11731 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11732else 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11734$as_echo_n "checking for dld_link in -ldld... " >&6; } 11735if ${ac_cv_lib_dld_dld_link+:} false; then : 11736 $as_echo_n "(cached) " >&6 11737else 11738 ac_check_lib_save_LIBS=$LIBS 11739LIBS="-ldld $LIBS" 11740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11741/* end confdefs.h. */ 11742 11743/* Override any GCC internal prototype to avoid an error. 11744 Use char because int might match the return type of a GCC 11745 builtin and then its argument prototype would still apply. */ 11746#ifdef __cplusplus 11747extern "C" 11748#endif 11749char dld_link (); 11750int 11751main () 11752{ 11753return dld_link (); 11754 ; 11755 return 0; 11756} 11757_ACEOF 11758if ac_fn_c_try_link "$LINENO"; then : 11759 ac_cv_lib_dld_dld_link=yes 11760else 11761 ac_cv_lib_dld_dld_link=no 11762fi 11763rm -f core conftest.err conftest.$ac_objext \ 11764 conftest$ac_exeext conftest.$ac_ext 11765LIBS=$ac_check_lib_save_LIBS 11766fi 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11768$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11769if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11770 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11771fi 11772 11773 11774fi 11775 11776 11777fi 11778 11779 11780fi 11781 11782 11783fi 11784 11785 11786fi 11787 11788 ;; 11789 esac 11790 11791 if test no = "$lt_cv_dlopen"; then 11792 enable_dlopen=no 11793 else 11794 enable_dlopen=yes 11795 fi 11796 11797 case $lt_cv_dlopen in 11798 dlopen) 11799 save_CPPFLAGS=$CPPFLAGS 11800 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11801 11802 save_LDFLAGS=$LDFLAGS 11803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11804 11805 save_LIBS=$LIBS 11806 LIBS="$lt_cv_dlopen_libs $LIBS" 11807 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11809$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11810if ${lt_cv_dlopen_self+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 if test yes = "$cross_compiling"; then : 11814 lt_cv_dlopen_self=cross 11815else 11816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11817 lt_status=$lt_dlunknown 11818 cat > conftest.$ac_ext <<_LT_EOF 11819#line $LINENO "configure" 11820#include "confdefs.h" 11821 11822#if HAVE_DLFCN_H 11823#include <dlfcn.h> 11824#endif 11825 11826#include <stdio.h> 11827 11828#ifdef RTLD_GLOBAL 11829# define LT_DLGLOBAL RTLD_GLOBAL 11830#else 11831# ifdef DL_GLOBAL 11832# define LT_DLGLOBAL DL_GLOBAL 11833# else 11834# define LT_DLGLOBAL 0 11835# endif 11836#endif 11837 11838/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11839 find out it does not work in some platform. */ 11840#ifndef LT_DLLAZY_OR_NOW 11841# ifdef RTLD_LAZY 11842# define LT_DLLAZY_OR_NOW RTLD_LAZY 11843# else 11844# ifdef DL_LAZY 11845# define LT_DLLAZY_OR_NOW DL_LAZY 11846# else 11847# ifdef RTLD_NOW 11848# define LT_DLLAZY_OR_NOW RTLD_NOW 11849# else 11850# ifdef DL_NOW 11851# define LT_DLLAZY_OR_NOW DL_NOW 11852# else 11853# define LT_DLLAZY_OR_NOW 0 11854# endif 11855# endif 11856# endif 11857# endif 11858#endif 11859 11860/* When -fvisibility=hidden is used, assume the code has been annotated 11861 correspondingly for the symbols needed. */ 11862#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11863int fnord () __attribute__((visibility("default"))); 11864#endif 11865 11866int fnord () { return 42; } 11867int main () 11868{ 11869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11870 int status = $lt_dlunknown; 11871 11872 if (self) 11873 { 11874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11875 else 11876 { 11877 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11878 else puts (dlerror ()); 11879 } 11880 /* dlclose (self); */ 11881 } 11882 else 11883 puts (dlerror ()); 11884 11885 return status; 11886} 11887_LT_EOF 11888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11889 (eval $ac_link) 2>&5 11890 ac_status=$? 11891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11892 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11893 (./conftest; exit; ) >&5 2>/dev/null 11894 lt_status=$? 11895 case x$lt_status in 11896 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11897 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11898 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11899 esac 11900 else : 11901 # compilation failed 11902 lt_cv_dlopen_self=no 11903 fi 11904fi 11905rm -fr conftest* 11906 11907 11908fi 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11910$as_echo "$lt_cv_dlopen_self" >&6; } 11911 11912 if test yes = "$lt_cv_dlopen_self"; then 11913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11915$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11916if ${lt_cv_dlopen_self_static+:} false; then : 11917 $as_echo_n "(cached) " >&6 11918else 11919 if test yes = "$cross_compiling"; then : 11920 lt_cv_dlopen_self_static=cross 11921else 11922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11923 lt_status=$lt_dlunknown 11924 cat > conftest.$ac_ext <<_LT_EOF 11925#line $LINENO "configure" 11926#include "confdefs.h" 11927 11928#if HAVE_DLFCN_H 11929#include <dlfcn.h> 11930#endif 11931 11932#include <stdio.h> 11933 11934#ifdef RTLD_GLOBAL 11935# define LT_DLGLOBAL RTLD_GLOBAL 11936#else 11937# ifdef DL_GLOBAL 11938# define LT_DLGLOBAL DL_GLOBAL 11939# else 11940# define LT_DLGLOBAL 0 11941# endif 11942#endif 11943 11944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11945 find out it does not work in some platform. */ 11946#ifndef LT_DLLAZY_OR_NOW 11947# ifdef RTLD_LAZY 11948# define LT_DLLAZY_OR_NOW RTLD_LAZY 11949# else 11950# ifdef DL_LAZY 11951# define LT_DLLAZY_OR_NOW DL_LAZY 11952# else 11953# ifdef RTLD_NOW 11954# define LT_DLLAZY_OR_NOW RTLD_NOW 11955# else 11956# ifdef DL_NOW 11957# define LT_DLLAZY_OR_NOW DL_NOW 11958# else 11959# define LT_DLLAZY_OR_NOW 0 11960# endif 11961# endif 11962# endif 11963# endif 11964#endif 11965 11966/* When -fvisibility=hidden is used, assume the code has been annotated 11967 correspondingly for the symbols needed. */ 11968#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11969int fnord () __attribute__((visibility("default"))); 11970#endif 11971 11972int fnord () { return 42; } 11973int main () 11974{ 11975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11976 int status = $lt_dlunknown; 11977 11978 if (self) 11979 { 11980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11981 else 11982 { 11983 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11984 else puts (dlerror ()); 11985 } 11986 /* dlclose (self); */ 11987 } 11988 else 11989 puts (dlerror ()); 11990 11991 return status; 11992} 11993_LT_EOF 11994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11995 (eval $ac_link) 2>&5 11996 ac_status=$? 11997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11998 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11999 (./conftest; exit; ) >&5 2>/dev/null 12000 lt_status=$? 12001 case x$lt_status in 12002 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12003 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12004 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12005 esac 12006 else : 12007 # compilation failed 12008 lt_cv_dlopen_self_static=no 12009 fi 12010fi 12011rm -fr conftest* 12012 12013 12014fi 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12016$as_echo "$lt_cv_dlopen_self_static" >&6; } 12017 fi 12018 12019 CPPFLAGS=$save_CPPFLAGS 12020 LDFLAGS=$save_LDFLAGS 12021 LIBS=$save_LIBS 12022 ;; 12023 esac 12024 12025 case $lt_cv_dlopen_self in 12026 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12027 *) enable_dlopen_self=unknown ;; 12028 esac 12029 12030 case $lt_cv_dlopen_self_static in 12031 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12032 *) enable_dlopen_self_static=unknown ;; 12033 esac 12034fi 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052striplib= 12053old_striplib= 12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12055$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12056if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12058 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12060$as_echo "yes" >&6; } 12061else 12062# FIXME - insert some real tests, host_os isn't really good enough 12063 case $host_os in 12064 darwin*) 12065 if test -n "$STRIP"; then 12066 striplib="$STRIP -x" 12067 old_striplib="$STRIP -S" 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12069$as_echo "yes" >&6; } 12070 else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072$as_echo "no" >&6; } 12073 fi 12074 ;; 12075 *) 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12077$as_echo "no" >&6; } 12078 ;; 12079 esac 12080fi 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 # Report what library types will actually be built 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12095$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12097$as_echo "$can_build_shared" >&6; } 12098 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12100$as_echo_n "checking whether to build shared libraries... " >&6; } 12101 test no = "$can_build_shared" && enable_shared=no 12102 12103 # On AIX, shared libraries and static libraries use the same namespace, and 12104 # are all built from PIC. 12105 case $host_os in 12106 aix3*) 12107 test yes = "$enable_shared" && enable_static=no 12108 if test -n "$RANLIB"; then 12109 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12110 postinstall_cmds='$RANLIB $lib' 12111 fi 12112 ;; 12113 12114 aix[4-9]*) 12115 if test ia64 != "$host_cpu"; then 12116 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12117 yes,aix,yes) ;; # shared object as lib.so file only 12118 yes,svr4,*) ;; # shared object as lib.so archive member only 12119 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12120 esac 12121 fi 12122 ;; 12123 esac 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12125$as_echo "$enable_shared" >&6; } 12126 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12128$as_echo_n "checking whether to build static libraries... " >&6; } 12129 # Make sure either enable_shared or enable_static is yes. 12130 test yes = "$enable_shared" || enable_static=yes 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12132$as_echo "$enable_static" >&6; } 12133 12134 12135 12136 12137fi 12138ac_ext=c 12139ac_cpp='$CPP $CPPFLAGS' 12140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12142ac_compiler_gnu=$ac_cv_c_compiler_gnu 12143 12144CC=$lt_save_CC 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 ac_config_commands="$ac_config_commands libtool" 12161 12162 12163 12164 12165# Only expand once: 12166 12167 12168 12169 12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12171$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12172 # Check whether --enable-maintainer-mode was given. 12173if test "${enable_maintainer_mode+set}" = set; then : 12174 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12175else 12176 USE_MAINTAINER_MODE=no 12177fi 12178 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12180$as_echo "$USE_MAINTAINER_MODE" >&6; } 12181 if test $USE_MAINTAINER_MODE = yes; then 12182 MAINTAINER_MODE_TRUE= 12183 MAINTAINER_MODE_FALSE='#' 12184else 12185 MAINTAINER_MODE_TRUE='#' 12186 MAINTAINER_MODE_FALSE= 12187fi 12188 12189 MAINT=$MAINTAINER_MODE_TRUE 12190 12191 12192ac_config_headers="$ac_config_headers src/iperf_config.h" 12193 12194 12195 12196 12197# Checks for tools: c compiler, ranlib (used for creating static libraries), 12198# symlinks and libtool 12199ac_ext=c 12200ac_cpp='$CPP $CPPFLAGS' 12201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12203ac_compiler_gnu=$ac_cv_c_compiler_gnu 12204if test -n "$ac_tool_prefix"; then 12205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12206set dummy ${ac_tool_prefix}gcc; ac_word=$2 12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12208$as_echo_n "checking for $ac_word... " >&6; } 12209if ${ac_cv_prog_CC+:} false; then : 12210 $as_echo_n "(cached) " >&6 12211else 12212 if test -n "$CC"; then 12213 ac_cv_prog_CC="$CC" # Let the user override the test. 12214else 12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12216for as_dir in $PATH 12217do 12218 IFS=$as_save_IFS 12219 test -z "$as_dir" && as_dir=. 12220 for ac_exec_ext in '' $ac_executable_extensions; do 12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12222 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12224 break 2 12225 fi 12226done 12227 done 12228IFS=$as_save_IFS 12229 12230fi 12231fi 12232CC=$ac_cv_prog_CC 12233if test -n "$CC"; then 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12235$as_echo "$CC" >&6; } 12236else 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12238$as_echo "no" >&6; } 12239fi 12240 12241 12242fi 12243if test -z "$ac_cv_prog_CC"; then 12244 ac_ct_CC=$CC 12245 # Extract the first word of "gcc", so it can be a program name with args. 12246set dummy gcc; ac_word=$2 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12248$as_echo_n "checking for $ac_word... " >&6; } 12249if ${ac_cv_prog_ac_ct_CC+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 if test -n "$ac_ct_CC"; then 12253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12254else 12255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12256for as_dir in $PATH 12257do 12258 IFS=$as_save_IFS 12259 test -z "$as_dir" && as_dir=. 12260 for ac_exec_ext in '' $ac_executable_extensions; do 12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12262 ac_cv_prog_ac_ct_CC="gcc" 12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12264 break 2 12265 fi 12266done 12267 done 12268IFS=$as_save_IFS 12269 12270fi 12271fi 12272ac_ct_CC=$ac_cv_prog_ac_ct_CC 12273if test -n "$ac_ct_CC"; then 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12275$as_echo "$ac_ct_CC" >&6; } 12276else 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12278$as_echo "no" >&6; } 12279fi 12280 12281 if test "x$ac_ct_CC" = x; then 12282 CC="" 12283 else 12284 case $cross_compiling:$ac_tool_warned in 12285yes:) 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12288ac_tool_warned=yes ;; 12289esac 12290 CC=$ac_ct_CC 12291 fi 12292else 12293 CC="$ac_cv_prog_CC" 12294fi 12295 12296if test -z "$CC"; then 12297 if test -n "$ac_tool_prefix"; then 12298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12299set dummy ${ac_tool_prefix}cc; ac_word=$2 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12301$as_echo_n "checking for $ac_word... " >&6; } 12302if ${ac_cv_prog_CC+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304else 12305 if test -n "$CC"; then 12306 ac_cv_prog_CC="$CC" # Let the user override the test. 12307else 12308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12309for as_dir in $PATH 12310do 12311 IFS=$as_save_IFS 12312 test -z "$as_dir" && as_dir=. 12313 for ac_exec_ext in '' $ac_executable_extensions; do 12314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12315 ac_cv_prog_CC="${ac_tool_prefix}cc" 12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12317 break 2 12318 fi 12319done 12320 done 12321IFS=$as_save_IFS 12322 12323fi 12324fi 12325CC=$ac_cv_prog_CC 12326if test -n "$CC"; then 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12328$as_echo "$CC" >&6; } 12329else 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12331$as_echo "no" >&6; } 12332fi 12333 12334 12335 fi 12336fi 12337if test -z "$CC"; then 12338 # Extract the first word of "cc", so it can be a program name with args. 12339set dummy cc; ac_word=$2 12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12341$as_echo_n "checking for $ac_word... " >&6; } 12342if ${ac_cv_prog_CC+:} false; then : 12343 $as_echo_n "(cached) " >&6 12344else 12345 if test -n "$CC"; then 12346 ac_cv_prog_CC="$CC" # Let the user override the test. 12347else 12348 ac_prog_rejected=no 12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12350for as_dir in $PATH 12351do 12352 IFS=$as_save_IFS 12353 test -z "$as_dir" && as_dir=. 12354 for ac_exec_ext in '' $ac_executable_extensions; do 12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12357 ac_prog_rejected=yes 12358 continue 12359 fi 12360 ac_cv_prog_CC="cc" 12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12362 break 2 12363 fi 12364done 12365 done 12366IFS=$as_save_IFS 12367 12368if test $ac_prog_rejected = yes; then 12369 # We found a bogon in the path, so make sure we never use it. 12370 set dummy $ac_cv_prog_CC 12371 shift 12372 if test $# != 0; then 12373 # We chose a different compiler from the bogus one. 12374 # However, it has the same basename, so the bogon will be chosen 12375 # first if we set CC to just the basename; use the full file name. 12376 shift 12377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12378 fi 12379fi 12380fi 12381fi 12382CC=$ac_cv_prog_CC 12383if test -n "$CC"; then 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12385$as_echo "$CC" >&6; } 12386else 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12388$as_echo "no" >&6; } 12389fi 12390 12391 12392fi 12393if test -z "$CC"; then 12394 if test -n "$ac_tool_prefix"; then 12395 for ac_prog in cl.exe 12396 do 12397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12398set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12400$as_echo_n "checking for $ac_word... " >&6; } 12401if ${ac_cv_prog_CC+:} false; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 if test -n "$CC"; then 12405 ac_cv_prog_CC="$CC" # Let the user override the test. 12406else 12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12408for as_dir in $PATH 12409do 12410 IFS=$as_save_IFS 12411 test -z "$as_dir" && as_dir=. 12412 for ac_exec_ext in '' $ac_executable_extensions; do 12413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12416 break 2 12417 fi 12418done 12419 done 12420IFS=$as_save_IFS 12421 12422fi 12423fi 12424CC=$ac_cv_prog_CC 12425if test -n "$CC"; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12427$as_echo "$CC" >&6; } 12428else 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12430$as_echo "no" >&6; } 12431fi 12432 12433 12434 test -n "$CC" && break 12435 done 12436fi 12437if test -z "$CC"; then 12438 ac_ct_CC=$CC 12439 for ac_prog in cl.exe 12440do 12441 # Extract the first word of "$ac_prog", so it can be a program name with args. 12442set dummy $ac_prog; ac_word=$2 12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12444$as_echo_n "checking for $ac_word... " >&6; } 12445if ${ac_cv_prog_ac_ct_CC+:} false; then : 12446 $as_echo_n "(cached) " >&6 12447else 12448 if test -n "$ac_ct_CC"; then 12449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12450else 12451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12452for as_dir in $PATH 12453do 12454 IFS=$as_save_IFS 12455 test -z "$as_dir" && as_dir=. 12456 for ac_exec_ext in '' $ac_executable_extensions; do 12457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12458 ac_cv_prog_ac_ct_CC="$ac_prog" 12459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12460 break 2 12461 fi 12462done 12463 done 12464IFS=$as_save_IFS 12465 12466fi 12467fi 12468ac_ct_CC=$ac_cv_prog_ac_ct_CC 12469if test -n "$ac_ct_CC"; then 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12471$as_echo "$ac_ct_CC" >&6; } 12472else 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12474$as_echo "no" >&6; } 12475fi 12476 12477 12478 test -n "$ac_ct_CC" && break 12479done 12480 12481 if test "x$ac_ct_CC" = x; then 12482 CC="" 12483 else 12484 case $cross_compiling:$ac_tool_warned in 12485yes:) 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12488ac_tool_warned=yes ;; 12489esac 12490 CC=$ac_ct_CC 12491 fi 12492fi 12493 12494fi 12495 12496 12497test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12499as_fn_error $? "no acceptable C compiler found in \$PATH 12500See \`config.log' for more details" "$LINENO" 5; } 12501 12502# Provide some information about the compiler. 12503$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12504set X $ac_compile 12505ac_compiler=$2 12506for ac_option in --version -v -V -qversion; do 12507 { { ac_try="$ac_compiler $ac_option >&5" 12508case "(($ac_try" in 12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12510 *) ac_try_echo=$ac_try;; 12511esac 12512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12513$as_echo "$ac_try_echo"; } >&5 12514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12515 ac_status=$? 12516 if test -s conftest.err; then 12517 sed '10a\ 12518... rest of stderr output deleted ... 12519 10q' conftest.err >conftest.er1 12520 cat conftest.er1 >&5 12521 fi 12522 rm -f conftest.er1 conftest.err 12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12524 test $ac_status = 0; } 12525done 12526 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12528$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12529if ${ac_cv_c_compiler_gnu+:} false; then : 12530 $as_echo_n "(cached) " >&6 12531else 12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12533/* end confdefs.h. */ 12534 12535int 12536main () 12537{ 12538#ifndef __GNUC__ 12539 choke me 12540#endif 12541 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546if ac_fn_c_try_compile "$LINENO"; then : 12547 ac_compiler_gnu=yes 12548else 12549 ac_compiler_gnu=no 12550fi 12551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12552ac_cv_c_compiler_gnu=$ac_compiler_gnu 12553 12554fi 12555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12556$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12557if test $ac_compiler_gnu = yes; then 12558 GCC=yes 12559else 12560 GCC= 12561fi 12562ac_test_CFLAGS=${CFLAGS+set} 12563ac_save_CFLAGS=$CFLAGS 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12565$as_echo_n "checking whether $CC accepts -g... " >&6; } 12566if ${ac_cv_prog_cc_g+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 ac_save_c_werror_flag=$ac_c_werror_flag 12570 ac_c_werror_flag=yes 12571 ac_cv_prog_cc_g=no 12572 CFLAGS="-g" 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574/* end confdefs.h. */ 12575 12576int 12577main () 12578{ 12579 12580 ; 12581 return 0; 12582} 12583_ACEOF 12584if ac_fn_c_try_compile "$LINENO"; then : 12585 ac_cv_prog_cc_g=yes 12586else 12587 CFLAGS="" 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589/* end confdefs.h. */ 12590 12591int 12592main () 12593{ 12594 12595 ; 12596 return 0; 12597} 12598_ACEOF 12599if ac_fn_c_try_compile "$LINENO"; then : 12600 12601else 12602 ac_c_werror_flag=$ac_save_c_werror_flag 12603 CFLAGS="-g" 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606 12607int 12608main () 12609{ 12610 12611 ; 12612 return 0; 12613} 12614_ACEOF 12615if ac_fn_c_try_compile "$LINENO"; then : 12616 ac_cv_prog_cc_g=yes 12617fi 12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12619fi 12620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12621fi 12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12623 ac_c_werror_flag=$ac_save_c_werror_flag 12624fi 12625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12626$as_echo "$ac_cv_prog_cc_g" >&6; } 12627if test "$ac_test_CFLAGS" = set; then 12628 CFLAGS=$ac_save_CFLAGS 12629elif test $ac_cv_prog_cc_g = yes; then 12630 if test "$GCC" = yes; then 12631 CFLAGS="-g -O2" 12632 else 12633 CFLAGS="-g" 12634 fi 12635else 12636 if test "$GCC" = yes; then 12637 CFLAGS="-O2" 12638 else 12639 CFLAGS= 12640 fi 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12644if ${ac_cv_prog_cc_c89+:} false; then : 12645 $as_echo_n "(cached) " >&6 12646else 12647 ac_cv_prog_cc_c89=no 12648ac_save_CC=$CC 12649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650/* end confdefs.h. */ 12651#include <stdarg.h> 12652#include <stdio.h> 12653struct stat; 12654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12655struct buf { int x; }; 12656FILE * (*rcsopen) (struct buf *, struct stat *, int); 12657static char *e (p, i) 12658 char **p; 12659 int i; 12660{ 12661 return p[i]; 12662} 12663static char *f (char * (*g) (char **, int), char **p, ...) 12664{ 12665 char *s; 12666 va_list v; 12667 va_start (v,p); 12668 s = g (p, va_arg (v,int)); 12669 va_end (v); 12670 return s; 12671} 12672 12673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12674 function prototypes and stuff, but not '\xHH' hex character constants. 12675 These don't provoke an error unfortunately, instead are silently treated 12676 as 'x'. The following induces an error, until -std is added to get 12677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12678 array size at least. It's necessary to write '\x00'==0 to get something 12679 that's true only with -std. */ 12680int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12681 12682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12683 inside strings and character constants. */ 12684#define FOO(x) 'x' 12685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12686 12687int test (int i, double x); 12688struct s1 {int (*f) (int a);}; 12689struct s2 {int (*f) (double a);}; 12690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12691int argc; 12692char **argv; 12693int 12694main () 12695{ 12696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12697 ; 12698 return 0; 12699} 12700_ACEOF 12701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12703do 12704 CC="$ac_save_CC $ac_arg" 12705 if ac_fn_c_try_compile "$LINENO"; then : 12706 ac_cv_prog_cc_c89=$ac_arg 12707fi 12708rm -f core conftest.err conftest.$ac_objext 12709 test "x$ac_cv_prog_cc_c89" != "xno" && break 12710done 12711rm -f conftest.$ac_ext 12712CC=$ac_save_CC 12713 12714fi 12715# AC_CACHE_VAL 12716case "x$ac_cv_prog_cc_c89" in 12717 x) 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12719$as_echo "none needed" >&6; } ;; 12720 xno) 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12722$as_echo "unsupported" >&6; } ;; 12723 *) 12724 CC="$CC $ac_cv_prog_cc_c89" 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12726$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12727esac 12728if test "x$ac_cv_prog_cc_c89" != xno; then : 12729 12730fi 12731 12732ac_ext=c 12733ac_cpp='$CPP $CPPFLAGS' 12734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12736ac_compiler_gnu=$ac_cv_c_compiler_gnu 12737 12738ac_ext=c 12739ac_cpp='$CPP $CPPFLAGS' 12740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12742ac_compiler_gnu=$ac_cv_c_compiler_gnu 12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12744$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12745if ${am_cv_prog_cc_c_o+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750 12751int 12752main () 12753{ 12754 12755 ; 12756 return 0; 12757} 12758_ACEOF 12759 # Make sure it works both with $CC and with simple cc. 12760 # Following AC_PROG_CC_C_O, we do the test twice because some 12761 # compilers refuse to overwrite an existing .o file with -o, 12762 # though they will create one. 12763 am_cv_prog_cc_c_o=yes 12764 for am_i in 1 2; do 12765 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12766 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12767 ac_status=$? 12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12769 (exit $ac_status); } \ 12770 && test -f conftest2.$ac_objext; then 12771 : OK 12772 else 12773 am_cv_prog_cc_c_o=no 12774 break 12775 fi 12776 done 12777 rm -f core conftest* 12778 unset am_i 12779fi 12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12781$as_echo "$am_cv_prog_cc_c_o" >&6; } 12782if test "$am_cv_prog_cc_c_o" != yes; then 12783 # Losing compiler, so override with the script. 12784 # FIXME: It is wrong to rewrite CC. 12785 # But if we don't then we get into trouble of one sort or another. 12786 # A longer-term fix would be to have automake use am__CC in this case, 12787 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12788 CC="$am_aux_dir/compile $CC" 12789fi 12790ac_ext=c 12791ac_cpp='$CPP $CPPFLAGS' 12792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12794ac_compiler_gnu=$ac_cv_c_compiler_gnu 12795 12796 12797depcc="$CC" am_compiler_list= 12798 12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12800$as_echo_n "checking dependency style of $depcc... " >&6; } 12801if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12805 # We make a subdir and do the tests there. Otherwise we can end up 12806 # making bogus files that we don't know about and never remove. For 12807 # instance it was reported that on HP-UX the gcc test will end up 12808 # making a dummy file named 'D' -- because '-MD' means "put the output 12809 # in D". 12810 rm -rf conftest.dir 12811 mkdir conftest.dir 12812 # Copy depcomp to subdir because otherwise we won't find it if we're 12813 # using a relative directory. 12814 cp "$am_depcomp" conftest.dir 12815 cd conftest.dir 12816 # We will build objects and dependencies in a subdirectory because 12817 # it helps to detect inapplicable dependency modes. For instance 12818 # both Tru64's cc and ICC support -MD to output dependencies as a 12819 # side effect of compilation, but ICC will put the dependencies in 12820 # the current directory while Tru64 will put them in the object 12821 # directory. 12822 mkdir sub 12823 12824 am_cv_CC_dependencies_compiler_type=none 12825 if test "$am_compiler_list" = ""; then 12826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12827 fi 12828 am__universal=false 12829 case " $depcc " in #( 12830 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12831 esac 12832 12833 for depmode in $am_compiler_list; do 12834 # Setup a source with many dependencies, because some compilers 12835 # like to wrap large dependency lists on column 80 (with \), and 12836 # we should not choose a depcomp mode which is confused by this. 12837 # 12838 # We need to recreate these files for each test, as the compiler may 12839 # overwrite some of them when testing with obscure command lines. 12840 # This happens at least with the AIX C compiler. 12841 : > sub/conftest.c 12842 for i in 1 2 3 4 5 6; do 12843 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12844 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12845 # Solaris 10 /bin/sh. 12846 echo '/* dummy */' > sub/conftst$i.h 12847 done 12848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12849 12850 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12851 # mode. It turns out that the SunPro C++ compiler does not properly 12852 # handle '-M -o', and we need to detect this. Also, some Intel 12853 # versions had trouble with output in subdirs. 12854 am__obj=sub/conftest.${OBJEXT-o} 12855 am__minus_obj="-o $am__obj" 12856 case $depmode in 12857 gcc) 12858 # This depmode causes a compiler race in universal mode. 12859 test "$am__universal" = false || continue 12860 ;; 12861 nosideeffect) 12862 # After this tag, mechanisms are not by side-effect, so they'll 12863 # only be used when explicitly requested. 12864 if test "x$enable_dependency_tracking" = xyes; then 12865 continue 12866 else 12867 break 12868 fi 12869 ;; 12870 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12871 # This compiler won't grok '-c -o', but also, the minuso test has 12872 # not run yet. These depmodes are late enough in the game, and 12873 # so weak that their functioning should not be impacted. 12874 am__obj=conftest.${OBJEXT-o} 12875 am__minus_obj= 12876 ;; 12877 none) break ;; 12878 esac 12879 if depmode=$depmode \ 12880 source=sub/conftest.c object=$am__obj \ 12881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12882 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12883 >/dev/null 2>conftest.err && 12884 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12886 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12888 # icc doesn't choke on unknown options, it will just issue warnings 12889 # or remarks (even with -Werror). So we grep stderr for any message 12890 # that says an option was ignored or not supported. 12891 # When given -MP, icc 7.0 and 7.1 complain thusly: 12892 # icc: Command line warning: ignoring option '-M'; no argument required 12893 # The diagnosis changed in icc 8.0: 12894 # icc: Command line remark: option '-MP' not supported 12895 if (grep 'ignoring option' conftest.err || 12896 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12897 am_cv_CC_dependencies_compiler_type=$depmode 12898 break 12899 fi 12900 fi 12901 done 12902 12903 cd .. 12904 rm -rf conftest.dir 12905else 12906 am_cv_CC_dependencies_compiler_type=none 12907fi 12908 12909fi 12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12911$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12913 12914 if 12915 test "x$enable_dependency_tracking" != xno \ 12916 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12917 am__fastdepCC_TRUE= 12918 am__fastdepCC_FALSE='#' 12919else 12920 am__fastdepCC_TRUE='#' 12921 am__fastdepCC_FALSE= 12922fi 12923 12924 12925if test -n "$ac_tool_prefix"; then 12926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12927set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12929$as_echo_n "checking for $ac_word... " >&6; } 12930if ${ac_cv_prog_RANLIB+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 if test -n "$RANLIB"; then 12934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12935else 12936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12937for as_dir in $PATH 12938do 12939 IFS=$as_save_IFS 12940 test -z "$as_dir" && as_dir=. 12941 for ac_exec_ext in '' $ac_executable_extensions; do 12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12945 break 2 12946 fi 12947done 12948 done 12949IFS=$as_save_IFS 12950 12951fi 12952fi 12953RANLIB=$ac_cv_prog_RANLIB 12954if test -n "$RANLIB"; then 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12956$as_echo "$RANLIB" >&6; } 12957else 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12959$as_echo "no" >&6; } 12960fi 12961 12962 12963fi 12964if test -z "$ac_cv_prog_RANLIB"; then 12965 ac_ct_RANLIB=$RANLIB 12966 # Extract the first word of "ranlib", so it can be a program name with args. 12967set dummy ranlib; ac_word=$2 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12969$as_echo_n "checking for $ac_word... " >&6; } 12970if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12971 $as_echo_n "(cached) " >&6 12972else 12973 if test -n "$ac_ct_RANLIB"; then 12974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12975else 12976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12977for as_dir in $PATH 12978do 12979 IFS=$as_save_IFS 12980 test -z "$as_dir" && as_dir=. 12981 for ac_exec_ext in '' $ac_executable_extensions; do 12982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12983 ac_cv_prog_ac_ct_RANLIB="ranlib" 12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12985 break 2 12986 fi 12987done 12988 done 12989IFS=$as_save_IFS 12990 12991fi 12992fi 12993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12994if test -n "$ac_ct_RANLIB"; then 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12996$as_echo "$ac_ct_RANLIB" >&6; } 12997else 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12999$as_echo "no" >&6; } 13000fi 13001 13002 if test "x$ac_ct_RANLIB" = x; then 13003 RANLIB=":" 13004 else 13005 case $cross_compiling:$ac_tool_warned in 13006yes:) 13007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13009ac_tool_warned=yes ;; 13010esac 13011 RANLIB=$ac_ct_RANLIB 13012 fi 13013else 13014 RANLIB="$ac_cv_prog_RANLIB" 13015fi 13016 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13018$as_echo_n "checking whether ln -s works... " >&6; } 13019LN_S=$as_ln_s 13020if test "$LN_S" = "ln -s"; then 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13022$as_echo "yes" >&6; } 13023else 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13025$as_echo "no, using $LN_S" >&6; } 13026fi 13027 13028 13029 13030# Add -Wall if we are using GCC. 13031if test "x$GCC" = "xyes"; then 13032 CFLAGS="$CFLAGS -Wall" 13033fi 13034 13035# Check if enable profiling 13036# Check whether --enable-profiling was given. 13037if test "${enable_profiling+set}" = set; then : 13038 enableval=$enable_profiling; 13039fi 13040 13041 if test x$enable_profiling = xyes; then 13042 ENABLE_PROFILING_TRUE= 13043 ENABLE_PROFILING_FALSE='#' 13044else 13045 ENABLE_PROFILING_TRUE='#' 13046 ENABLE_PROFILING_FALSE= 13047fi 13048 13049 13050# Check for the math library (needed by cjson on some platforms) 13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 13052$as_echo_n "checking for library containing floor... " >&6; } 13053if ${ac_cv_search_floor+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055else 13056 ac_func_search_save_LIBS=$LIBS 13057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13058/* end confdefs.h. */ 13059 13060/* Override any GCC internal prototype to avoid an error. 13061 Use char because int might match the return type of a GCC 13062 builtin and then its argument prototype would still apply. */ 13063#ifdef __cplusplus 13064extern "C" 13065#endif 13066char floor (); 13067int 13068main () 13069{ 13070return floor (); 13071 ; 13072 return 0; 13073} 13074_ACEOF 13075for ac_lib in '' m; do 13076 if test -z "$ac_lib"; then 13077 ac_res="none required" 13078 else 13079 ac_res=-l$ac_lib 13080 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13081 fi 13082 if ac_fn_c_try_link "$LINENO"; then : 13083 ac_cv_search_floor=$ac_res 13084fi 13085rm -f core conftest.err conftest.$ac_objext \ 13086 conftest$ac_exeext 13087 if ${ac_cv_search_floor+:} false; then : 13088 break 13089fi 13090done 13091if ${ac_cv_search_floor+:} false; then : 13092 13093else 13094 ac_cv_search_floor=no 13095fi 13096rm conftest.$ac_ext 13097LIBS=$ac_func_search_save_LIBS 13098fi 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 13100$as_echo "$ac_cv_search_floor" >&6; } 13101ac_res=$ac_cv_search_floor 13102if test "$ac_res" != no; then : 13103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13104 13105else 13106 13107echo "floor()" 13108exit 1 13109 13110fi 13111 13112 13113# On illumos we need -lsocket 13114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13115$as_echo_n "checking for library containing socket... " >&6; } 13116if ${ac_cv_search_socket+:} false; then : 13117 $as_echo_n "(cached) " >&6 13118else 13119 ac_func_search_save_LIBS=$LIBS 13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13121/* end confdefs.h. */ 13122 13123/* Override any GCC internal prototype to avoid an error. 13124 Use char because int might match the return type of a GCC 13125 builtin and then its argument prototype would still apply. */ 13126#ifdef __cplusplus 13127extern "C" 13128#endif 13129char socket (); 13130int 13131main () 13132{ 13133return socket (); 13134 ; 13135 return 0; 13136} 13137_ACEOF 13138for ac_lib in '' socket; do 13139 if test -z "$ac_lib"; then 13140 ac_res="none required" 13141 else 13142 ac_res=-l$ac_lib 13143 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13144 fi 13145 if ac_fn_c_try_link "$LINENO"; then : 13146 ac_cv_search_socket=$ac_res 13147fi 13148rm -f core conftest.err conftest.$ac_objext \ 13149 conftest$ac_exeext 13150 if ${ac_cv_search_socket+:} false; then : 13151 break 13152fi 13153done 13154if ${ac_cv_search_socket+:} false; then : 13155 13156else 13157 ac_cv_search_socket=no 13158fi 13159rm conftest.$ac_ext 13160LIBS=$ac_func_search_save_LIBS 13161fi 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13163$as_echo "$ac_cv_search_socket" >&6; } 13164ac_res=$ac_cv_search_socket 13165if test "$ac_res" != no; then : 13166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13167 13168else 13169 13170echo "socket()" 13171exit 1 13172 13173fi 13174 13175 13176# On illumos inet_ntop in in -lnsl 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 13178$as_echo_n "checking for library containing inet_ntop... " >&6; } 13179if ${ac_cv_search_inet_ntop+:} false; then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 ac_func_search_save_LIBS=$LIBS 13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185 13186/* Override any GCC internal prototype to avoid an error. 13187 Use char because int might match the return type of a GCC 13188 builtin and then its argument prototype would still apply. */ 13189#ifdef __cplusplus 13190extern "C" 13191#endif 13192char inet_ntop (); 13193int 13194main () 13195{ 13196return inet_ntop (); 13197 ; 13198 return 0; 13199} 13200_ACEOF 13201for ac_lib in '' nsl; do 13202 if test -z "$ac_lib"; then 13203 ac_res="none required" 13204 else 13205 ac_res=-l$ac_lib 13206 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13207 fi 13208 if ac_fn_c_try_link "$LINENO"; then : 13209 ac_cv_search_inet_ntop=$ac_res 13210fi 13211rm -f core conftest.err conftest.$ac_objext \ 13212 conftest$ac_exeext 13213 if ${ac_cv_search_inet_ntop+:} false; then : 13214 break 13215fi 13216done 13217if ${ac_cv_search_inet_ntop+:} false; then : 13218 13219else 13220 ac_cv_search_inet_ntop=no 13221fi 13222rm conftest.$ac_ext 13223LIBS=$ac_func_search_save_LIBS 13224fi 13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 13226$as_echo "$ac_cv_search_inet_ntop" >&6; } 13227ac_res=$ac_cv_search_inet_ntop 13228if test "$ac_res" != no; then : 13229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13230 13231else 13232 13233echo "inet_ntop()" 13234exit 1 13235 13236fi 13237 13238 13239# Checks for typedefs, structures, and compiler characteristics. 13240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13241$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13242if ${ac_cv_c_const+:} false; then : 13243 $as_echo_n "(cached) " >&6 13244else 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247 13248int 13249main () 13250{ 13251 13252#ifndef __cplusplus 13253 /* Ultrix mips cc rejects this sort of thing. */ 13254 typedef int charset[2]; 13255 const charset cs = { 0, 0 }; 13256 /* SunOS 4.1.1 cc rejects this. */ 13257 char const *const *pcpcc; 13258 char **ppc; 13259 /* NEC SVR4.0.2 mips cc rejects this. */ 13260 struct point {int x, y;}; 13261 static struct point const zero = {0,0}; 13262 /* AIX XL C 1.02.0.0 rejects this. 13263 It does not let you subtract one const X* pointer from another in 13264 an arm of an if-expression whose if-part is not a constant 13265 expression */ 13266 const char *g = "string"; 13267 pcpcc = &g + (g ? g-g : 0); 13268 /* HPUX 7.0 cc rejects these. */ 13269 ++pcpcc; 13270 ppc = (char**) pcpcc; 13271 pcpcc = (char const *const *) ppc; 13272 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13273 char tx; 13274 char *t = &tx; 13275 char const *s = 0 ? (char *) 0 : (char const *) 0; 13276 13277 *t++ = 0; 13278 if (s) return 0; 13279 } 13280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13281 int x[] = {25, 17}; 13282 const int *foo = &x[0]; 13283 ++foo; 13284 } 13285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13286 typedef const int *iptr; 13287 iptr p = 0; 13288 ++p; 13289 } 13290 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13292 struct s { int j; const int *ap[3]; } bx; 13293 struct s *b = &bx; b->j = 5; 13294 } 13295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13296 const int foo = 10; 13297 if (!foo) return 0; 13298 } 13299 return !cs[0] && !zero.x; 13300#endif 13301 13302 ; 13303 return 0; 13304} 13305_ACEOF 13306if ac_fn_c_try_compile "$LINENO"; then : 13307 ac_cv_c_const=yes 13308else 13309 ac_cv_c_const=no 13310fi 13311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13312fi 13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13314$as_echo "$ac_cv_c_const" >&6; } 13315if test $ac_cv_c_const = no; then 13316 13317$as_echo "#define const /**/" >>confdefs.h 13318 13319fi 13320 13321 13322# Check for poll.h (it's in POSIX so everyone should have it?) 13323for ac_header in poll.h 13324do : 13325 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13326if test "x$ac_cv_header_poll_h" = xyes; then : 13327 cat >>confdefs.h <<_ACEOF 13328#define HAVE_POLL_H 1 13329_ACEOF 13330 13331fi 13332 13333done 13334 13335 13336# SCTP. Allow user to disable SCTP support with --without-sctp. 13337# Otherwise we try to find whatever support is required. 13338try_sctp=true 13339 13340# Check whether --with-sctp was given. 13341if test "${with_sctp+set}" = set; then : 13342 withval=$with_sctp; 13343 case "$withval" in 13344 y | ye | yes) 13345 ;; 13346 n | no) 13347 try_sctp=false 13348 ;; 13349 *) 13350 as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5 13351 ;; 13352 esac 13353 13354else 13355 13356 try_sctp=true 13357 13358 13359fi 13360 13361 13362for ac_header in linux/tcp.h 13363do : 13364 ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default" 13365if test "x$ac_cv_header_linux_tcp_h" = xyes; then : 13366 cat >>confdefs.h <<_ACEOF 13367#define HAVE_LINUX_TCP_H 1 13368_ACEOF 13369 13370fi 13371 13372done 13373 13374 13375# Check for SCTP support 13376if $try_sctp; then 13377for ac_header in sys/socket.h 13378do : 13379 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 13380if test "x$ac_cv_header_sys_socket_h" = xyes; then : 13381 cat >>confdefs.h <<_ACEOF 13382#define HAVE_SYS_SOCKET_H 1 13383_ACEOF 13384 13385fi 13386 13387done 13388 13389for ac_header in netinet/sctp.h 13390do : 13391 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H 13392#include <sys/socket.h> 13393#endif 13394 13395" 13396if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 13397 cat >>confdefs.h <<_ACEOF 13398#define HAVE_NETINET_SCTP_H 1 13399_ACEOF 13400 13401$as_echo "#define HAVE_SCTP_H 1" >>confdefs.h 13402 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 13404$as_echo_n "checking for library containing sctp_bindx... " >&6; } 13405if ${ac_cv_search_sctp_bindx+:} false; then : 13406 $as_echo_n "(cached) " >&6 13407else 13408 ac_func_search_save_LIBS=$LIBS 13409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411 13412/* Override any GCC internal prototype to avoid an error. 13413 Use char because int might match the return type of a GCC 13414 builtin and then its argument prototype would still apply. */ 13415#ifdef __cplusplus 13416extern "C" 13417#endif 13418char sctp_bindx (); 13419int 13420main () 13421{ 13422return sctp_bindx (); 13423 ; 13424 return 0; 13425} 13426_ACEOF 13427for ac_lib in '' sctp; do 13428 if test -z "$ac_lib"; then 13429 ac_res="none required" 13430 else 13431 ac_res=-l$ac_lib 13432 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13433 fi 13434 if ac_fn_c_try_link "$LINENO"; then : 13435 ac_cv_search_sctp_bindx=$ac_res 13436fi 13437rm -f core conftest.err conftest.$ac_objext \ 13438 conftest$ac_exeext 13439 if ${ac_cv_search_sctp_bindx+:} false; then : 13440 break 13441fi 13442done 13443if ${ac_cv_search_sctp_bindx+:} false; then : 13444 13445else 13446 ac_cv_search_sctp_bindx=no 13447fi 13448rm conftest.$ac_ext 13449LIBS=$ac_func_search_save_LIBS 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 13452$as_echo "$ac_cv_search_sctp_bindx" >&6; } 13453ac_res=$ac_cv_search_sctp_bindx 13454if test "$ac_res" != no; then : 13455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13456 13457fi 13458 13459 13460# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 13461# ------------------------------------------- 13462# Tests whether TYPE exists after having included INCLUDES, setting cache 13463# variable VAR accordingly. 13464ac_fn_c_check_type () 13465{ 13466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 13468$as_echo_n "checking for $2... " >&6; } 13469if eval \${$3+:} false; then : 13470 $as_echo_n "(cached) " >&6 13471else 13472 eval "$3=no" 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475$4 13476int 13477main () 13478{ 13479if (sizeof ($2)) 13480 return 0; 13481 ; 13482 return 0; 13483} 13484_ACEOF 13485if ac_fn_c_try_compile "$LINENO"; then : 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487/* end confdefs.h. */ 13488$4 13489int 13490main () 13491{ 13492if (sizeof (($2))) 13493 return 0; 13494 ; 13495 return 0; 13496} 13497_ACEOF 13498if ac_fn_c_try_compile "$LINENO"; then : 13499 13500else 13501 eval "$3=yes" 13502fi 13503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13504fi 13505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13506fi 13507eval ac_res=\$$3 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13509$as_echo "$ac_res" >&6; } 13510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 13511 13512} # ac_fn_c_check_type 13513ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h> 13514" 13515if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then : 13516 13517cat >>confdefs.h <<_ACEOF 13518#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1 13519_ACEOF 13520 13521 13522fi 13523 13524fi 13525 13526done 13527 13528fi 13529 13530ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 13531if test "x$ac_cv_header_endian_h" = xyes; then : 13532 13533$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h 13534 13535else 13536 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 13537if test "x$ac_cv_header_sys_endian_h" = xyes; then : 13538 13539$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 13540 13541else 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5 13543$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;} 13544 13545fi 13546 13547 13548 13549fi 13550 13551 13552 13553if test "x$with_openssl" = "xno"; then 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5 13555$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;} 13556else 13557 # Check for OPENSSL support 13558 havs_ssl=false 13559 13560 found=false 13561 13562# Check whether --with-openssl was given. 13563if test "${with_openssl+set}" = set; then : 13564 withval=$with_openssl; 13565 case "$withval" in 13566 "" | y | ye | yes | n | no) 13567 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 13568 ;; 13569 *) ssldirs="$withval" 13570 ;; 13571 esac 13572 13573else 13574 13575 # if pkg-config is installed and openssl has installed a .pc file, 13576 # then use that information and don't search ssldirs 13577 if test -n "$ac_tool_prefix"; then 13578 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13579set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13581$as_echo_n "checking for $ac_word... " >&6; } 13582if ${ac_cv_prog_PKG_CONFIG+:} false; then : 13583 $as_echo_n "(cached) " >&6 13584else 13585 if test -n "$PKG_CONFIG"; then 13586 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 13587else 13588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13589for as_dir in $PATH 13590do 13591 IFS=$as_save_IFS 13592 test -z "$as_dir" && as_dir=. 13593 for ac_exec_ext in '' $ac_executable_extensions; do 13594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13595 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13597 break 2 13598 fi 13599done 13600 done 13601IFS=$as_save_IFS 13602 13603fi 13604fi 13605PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 13606if test -n "$PKG_CONFIG"; then 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13608$as_echo "$PKG_CONFIG" >&6; } 13609else 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13611$as_echo "no" >&6; } 13612fi 13613 13614 13615fi 13616if test -z "$ac_cv_prog_PKG_CONFIG"; then 13617 ac_ct_PKG_CONFIG=$PKG_CONFIG 13618 # Extract the first word of "pkg-config", so it can be a program name with args. 13619set dummy pkg-config; ac_word=$2 13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13621$as_echo_n "checking for $ac_word... " >&6; } 13622if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624else 13625 if test -n "$ac_ct_PKG_CONFIG"; then 13626 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 13627else 13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13629for as_dir in $PATH 13630do 13631 IFS=$as_save_IFS 13632 test -z "$as_dir" && as_dir=. 13633 for ac_exec_ext in '' $ac_executable_extensions; do 13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13635 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13637 break 2 13638 fi 13639done 13640 done 13641IFS=$as_save_IFS 13642 13643fi 13644fi 13645ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 13646if test -n "$ac_ct_PKG_CONFIG"; then 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 13648$as_echo "$ac_ct_PKG_CONFIG" >&6; } 13649else 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13651$as_echo "no" >&6; } 13652fi 13653 13654 if test "x$ac_ct_PKG_CONFIG" = x; then 13655 PKG_CONFIG="" 13656 else 13657 case $cross_compiling:$ac_tool_warned in 13658yes:) 13659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13661ac_tool_warned=yes ;; 13662esac 13663 PKG_CONFIG=$ac_ct_PKG_CONFIG 13664 fi 13665else 13666 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 13667fi 13668 13669 if test x"$PKG_CONFIG" != x""; then 13670 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 13671 if test $? = 0; then 13672 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 13673 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 13674 found=true 13675 fi 13676 fi 13677 13678 # no such luck; use some default ssldirs 13679 if ! $found; then 13680 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 13681 fi 13682 13683 13684fi 13685 13686 13687 13688 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 13689 # an 'openssl' subdirectory 13690 13691 if ! $found; then 13692 OPENSSL_INCLUDES= 13693 for ssldir in $ssldirs; do 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 13695$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 13696 if test -f "$ssldir/include/openssl/ssl.h"; then 13697 OPENSSL_INCLUDES="-I$ssldir/include" 13698 OPENSSL_LDFLAGS="-L$ssldir/lib" 13699 OPENSSL_LIBS="-lssl -lcrypto" 13700 found=true 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13702$as_echo "yes" >&6; } 13703 break 13704 else 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13706$as_echo "no" >&6; } 13707 fi 13708 done 13709 13710 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 13711 # it will just work! 13712 fi 13713 13714 # try the preprocessor and linker with our new flags, 13715 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 13716 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 13718$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 13719 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 13720 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 13721 13722 save_LIBS="$LIBS" 13723 save_LDFLAGS="$LDFLAGS" 13724 save_CPPFLAGS="$CPPFLAGS" 13725 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 13726 LIBS="$OPENSSL_LIBS $LIBS" 13727 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13729/* end confdefs.h. */ 13730#include <openssl/ssl.h> 13731int 13732main () 13733{ 13734SSL_new(NULL) 13735 ; 13736 return 0; 13737} 13738_ACEOF 13739if ac_fn_c_try_link "$LINENO"; then : 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13742$as_echo "yes" >&6; } 13743 13744$as_echo "#define HAVE_SSL 1" >>confdefs.h 13745 13746 have_ssl=true 13747 13748else 13749 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13751$as_echo "no" >&6; } 13752 if test "x$with_openssl" != "x"; then 13753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13755as_fn_error $? "--with-openssl was given, but test for OpenSSL failed 13756See \`config.log' for more details" "$LINENO" 5; } 13757 fi 13758 13759 13760fi 13761rm -f core conftest.err conftest.$ac_objext \ 13762 conftest$ac_exeext conftest.$ac_ext 13763 CPPFLAGS="$save_CPPFLAGS" 13764 LDFLAGS="$save_LDFLAGS" 13765 LIBS="$save_LIBS" 13766 13767 13768 13769 13770 13771 if $have_ssl; then 13772 case $host in 13773 *-*-cygwin) 13774 CFLAGS="$CFLAGS -DNOCRYPT" 13775 ;; 13776 esac 13777 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 13778 LIBS="$OPENSSL_LIBS $LIBS" 13779 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 13780 fi 13781fi 13782 13783# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only) 13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 13785$as_echo_n "checking TCP_CONGESTION socket option... " >&6; } 13786if ${iperf3_cv_header_tcp_congestion+:} false; then : 13787 $as_echo_n "(cached) " >&6 13788else 13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790/* end confdefs.h. */ 13791#include <netinet/tcp.h> 13792int 13793main () 13794{ 13795int foo = TCP_CONGESTION; 13796 ; 13797 return 0; 13798} 13799_ACEOF 13800if ac_fn_c_try_compile "$LINENO"; then : 13801 iperf3_cv_header_tcp_congestion=yes 13802else 13803 iperf3_cv_header_tcp_congestion=no 13804fi 13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13806fi 13807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 13808$as_echo "$iperf3_cv_header_tcp_congestion" >&6; } 13809if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 13810 13811$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h 13812 13813fi 13814 13815# Check for TCP_USER_TIMEOUT sockopt (believed to be Linux 2.6.37+ only) 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_USER_TIMEOUT socket option" >&5 13817$as_echo_n "checking TCP_USER_TIMEOUT socket option... " >&6; } 13818if ${iperf3_cv_header_tcp_user_timeout+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823#include <netinet/tcp.h> 13824int 13825main () 13826{ 13827int foo = TCP_USER_TIMEOUT; 13828 ; 13829 return 0; 13830} 13831_ACEOF 13832if ac_fn_c_try_compile "$LINENO"; then : 13833 iperf3_cv_header_tcp_user_timeout=yes 13834else 13835 iperf3_cv_header_tcp_user_timeout=no 13836fi 13837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13838fi 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_user_timeout" >&5 13840$as_echo "$iperf3_cv_header_tcp_user_timeout" >&6; } 13841if test "x$iperf3_cv_header_tcp_user_timeout" = "xyes"; then 13842 13843$as_echo "#define HAVE_TCP_USER_TIMEOUT 1" >>confdefs.h 13844 13845fi 13846 13847# Check for IPv6 flowlabel support (believed to be Linux only) 13848# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 13849# don't use that file directly (we have our own stripped-down 13850# copy, see src/flowlabel.h for more details). 13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 13852$as_echo_n "checking IPv6 flowlabel support... " >&6; } 13853if ${iperf3_cv_header_flowlabel+:} false; then : 13854 $as_echo_n "(cached) " >&6 13855else 13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858#include <sys/types.h> 13859 #include <linux/in6.h> 13860int 13861main () 13862{ 13863int foo = IPV6_FLOWLABEL_MGR; 13864 ; 13865 return 0; 13866} 13867_ACEOF 13868if ac_fn_c_try_compile "$LINENO"; then : 13869 iperf3_cv_header_flowlabel=yes 13870else 13871 iperf3_cv_header_flowlabel=no 13872fi 13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13874fi 13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 13876$as_echo "$iperf3_cv_header_flowlabel" >&6; } 13877if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 13878 13879$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h 13880 13881fi 13882 13883# Check for CPU affinity support. FreeBSD and Linux do this differently 13884# unfortunately so we have to check separately for each of them. 13885# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 13886# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 13887# generic concept is available. 13888for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask 13889do : 13890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13891ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13892if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13893 cat >>confdefs.h <<_ACEOF 13894#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13895_ACEOF 13896 13897$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h 13898 13899fi 13900done 13901 13902 13903# Check for daemon(). Most systems have this but a few (IRIX) don't. 13904for ac_func in daemon 13905do : 13906 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 13907if test "x$ac_cv_func_daemon" = xyes; then : 13908 cat >>confdefs.h <<_ACEOF 13909#define HAVE_DAEMON 1 13910_ACEOF 13911 13912fi 13913done 13914 13915 13916# Check for sendfile support. FreeBSD, Linux, and MacOS all support 13917# this system call, but they're all different in terms of what headers 13918# it needs and what arguments it expects. 13919for ac_func in sendfile 13920do : 13921 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 13922if test "x$ac_cv_func_sendfile" = xyes; then : 13923 cat >>confdefs.h <<_ACEOF 13924#define HAVE_SENDFILE 1 13925_ACEOF 13926 13927fi 13928done 13929 13930 13931# Check for getline support, used as a part of authenticated 13932# connections. 13933for ac_func in getline 13934do : 13935 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 13936if test "x$ac_cv_func_getline" = xyes; then : 13937 cat >>confdefs.h <<_ACEOF 13938#define HAVE_GETLINE 1 13939_ACEOF 13940 13941fi 13942done 13943 13944 13945# Check for packet pacing socket option (Linux only for now). 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5 13947$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; } 13948if ${iperf3_cv_header_so_max_pacing_rate+:} false; then : 13949 $as_echo_n "(cached) " >&6 13950else 13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952/* end confdefs.h. */ 13953#include <sys/socket.h> 13954int 13955main () 13956{ 13957int foo = SO_MAX_PACING_RATE; 13958 ; 13959 return 0; 13960} 13961_ACEOF 13962if ac_fn_c_try_compile "$LINENO"; then : 13963 iperf3_cv_header_so_max_pacing_rate=yes 13964else 13965 iperf3_cv_header_so_max_pacing_rate=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13968fi 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5 13970$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; } 13971if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then 13972 13973$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h 13974 13975fi 13976 13977# Check for SO_BINDTODEVICE sockopt (believed to be Linux only) 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5 13979$as_echo_n "checking SO_BINDTODEVICE socket option... " >&6; } 13980if ${iperf3_cv_header_so_bindtodevice+:} false; then : 13981 $as_echo_n "(cached) " >&6 13982else 13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13984/* end confdefs.h. */ 13985#include <sys/socket.h> 13986int 13987main () 13988{ 13989int foo = SO_BINDTODEVICE; 13990 ; 13991 return 0; 13992} 13993_ACEOF 13994if ac_fn_c_try_compile "$LINENO"; then : 13995 iperf3_cv_header_so_bindtodevice=yes 13996else 13997 iperf3_cv_header_so_bindtodevice=no 13998fi 13999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14000fi 14001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5 14002$as_echo "$iperf3_cv_header_so_bindtodevice" >&6; } 14003if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then 14004 14005$as_echo "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h 14006 14007fi 14008 14009# Check for IP_MTU_DISCOVER (mostly on Linux) 14010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER socket option" >&5 14011$as_echo_n "checking IP_MTU_DISCOVER socket option... " >&6; } 14012if ${iperf3_cv_header_ip_mtu_discover+:} false; then : 14013 $as_echo_n "(cached) " >&6 14014else 14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14016/* end confdefs.h. */ 14017#include <sys/types.h> 14018 #include <sys/socket.h> 14019 #include <netinet/in.h> 14020int 14021main () 14022{ 14023int foo = IP_MTU_DISCOVER; 14024 ; 14025 return 0; 14026} 14027_ACEOF 14028if ac_fn_c_try_compile "$LINENO"; then : 14029 iperf3_cv_header_ip_mtu_discover=yes 14030else 14031 iperf3_cv_header_ip_mtu_discover=no 14032fi 14033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14034fi 14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_mtu_discover" >&5 14036$as_echo "$iperf3_cv_header_ip_mtu_discover" >&6; } 14037if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes"; then 14038 14039$as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h 14040 14041fi 14042 14043# Check for IP_DONTFRAG (BSD?) 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAG socket option" >&5 14045$as_echo_n "checking IP_DONTFRAG socket option... " >&6; } 14046if ${iperf3_cv_header_ip_dontfrag+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051#include <sys/types.h> 14052 #include <sys/socket.h> 14053 #include <netinet/in.h> 14054int 14055main () 14056{ 14057int foo = IP_DONTFRAG; 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062if ac_fn_c_try_compile "$LINENO"; then : 14063 iperf3_cv_header_ip_dontfrag=yes 14064else 14065 iperf3_cv_header_ip_dontfrag=no 14066fi 14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14068fi 14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfrag" >&5 14070$as_echo "$iperf3_cv_header_ip_dontfrag" >&6; } 14071if test "x$iperf3_cv_header_ip_dontfrag" = "xyes"; then 14072 14073$as_echo "#define HAVE_IP_DONTFRAG 1" >>confdefs.h 14074 14075fi 14076 14077# Check for IP_DONTFRAGMENT (Windows?) 14078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAGMENT socket option" >&5 14079$as_echo_n "checking IP_DONTFRAGMENT socket option... " >&6; } 14080if ${iperf3_cv_header_ip_dontfragment+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085#include <sys/types.h> 14086 #include <sys/socket.h> 14087 #include <netinet/in.h> 14088int 14089main () 14090{ 14091int foo = IP_DONTFRAGMENT; 14092 ; 14093 return 0; 14094} 14095_ACEOF 14096if ac_fn_c_try_compile "$LINENO"; then : 14097 iperf3_cv_header_ip_dontfragment=yes 14098else 14099 iperf3_cv_header_ip_dontfragment=no 14100fi 14101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14102fi 14103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfragment" >&5 14104$as_echo "$iperf3_cv_header_ip_dontfragment" >&6; } 14105if test "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then 14106 14107$as_echo "#define HAVE_IP_DONTFRAGMENT 1" >>confdefs.h 14108 14109fi 14110 14111# Check for IP DF support 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking any kind of DF socket option" >&5 14113$as_echo_n "checking any kind of DF socket option... " >&6; } 14114if ${iperf3_cv_header_dontfragment+:} false; then : 14115 $as_echo_n "(cached) " >&6 14116else 14117 if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes" -o "x$iperf3_cv_header_ip_dontfrag" = "xyes" -o "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then 14118 iperf3_cv_header_dontfragment=yes 14119else 14120 iperf3_cv_header_dontfragment=no 14121fi 14122fi 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5 14124$as_echo "$iperf3_cv_header_dontfragment" >&6; } 14125 14126if test "x$iperf3_cv_header_dontfragment" = "xyes"; then 14127 14128$as_echo "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h 14129 14130fi 14131 14132# 14133# Check for tcpi_snd_wnd in struct tcp_info 14134# 14135ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_snd_wnd" "ac_cv_member_struct_tcp_info_tcpi_snd_wnd" "#ifdef HAVE_LINUX_TCP_H 14136#include <linux/tcp.h> 14137#else 14138#include <netinet/tcp.h> 14139#endif 14140 14141" 14142if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes; then : 14143 iperf3_cv_header_tcp_info_snd_wnd=yes 14144else 14145 iperf3_cv_header_tcp_info_snd_wnd=no 14146fi 14147 14148 14149if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then 14150 14151$as_echo "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h 14152 14153fi 14154 14155# Check if we need -lrt for clock_gettime 14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14157$as_echo_n "checking for library containing clock_gettime... " >&6; } 14158if ${ac_cv_search_clock_gettime+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 ac_func_search_save_LIBS=$LIBS 14162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14163/* end confdefs.h. */ 14164 14165/* Override any GCC internal prototype to avoid an error. 14166 Use char because int might match the return type of a GCC 14167 builtin and then its argument prototype would still apply. */ 14168#ifdef __cplusplus 14169extern "C" 14170#endif 14171char clock_gettime (); 14172int 14173main () 14174{ 14175return clock_gettime (); 14176 ; 14177 return 0; 14178} 14179_ACEOF 14180for ac_lib in '' rt posix4; do 14181 if test -z "$ac_lib"; then 14182 ac_res="none required" 14183 else 14184 ac_res=-l$ac_lib 14185 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14186 fi 14187 if ac_fn_c_try_link "$LINENO"; then : 14188 ac_cv_search_clock_gettime=$ac_res 14189fi 14190rm -f core conftest.err conftest.$ac_objext \ 14191 conftest$ac_exeext 14192 if ${ac_cv_search_clock_gettime+:} false; then : 14193 break 14194fi 14195done 14196if ${ac_cv_search_clock_gettime+:} false; then : 14197 14198else 14199 ac_cv_search_clock_gettime=no 14200fi 14201rm conftest.$ac_ext 14202LIBS=$ac_func_search_save_LIBS 14203fi 14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14205$as_echo "$ac_cv_search_clock_gettime" >&6; } 14206ac_res=$ac_cv_search_clock_gettime 14207if test "$ac_res" != no; then : 14208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14209 14210fi 14211 14212# Check for clock_gettime support 14213for ac_func in clock_gettime 14214do : 14215 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 14216if test "x$ac_cv_func_clock_gettime" = xyes; then : 14217 cat >>confdefs.h <<_ACEOF 14218#define HAVE_CLOCK_GETTIME 1 14219_ACEOF 14220 14221fi 14222done 14223 14224 14225ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec" 14226 14227cat >confcache <<\_ACEOF 14228# This file is a shell script that caches the results of configure 14229# tests run on this system so they can be shared between configure 14230# scripts and configure runs, see configure's option --config-cache. 14231# It is not useful on other systems. If it contains results you don't 14232# want to keep, you may remove or edit it. 14233# 14234# config.status only pays attention to the cache file if you give it 14235# the --recheck option to rerun configure. 14236# 14237# `ac_cv_env_foo' variables (set or unset) will be overridden when 14238# loading this file, other *unset* `ac_cv_foo' will be assigned the 14239# following values. 14240 14241_ACEOF 14242 14243# The following way of writing the cache mishandles newlines in values, 14244# but we know of no workaround that is simple, portable, and efficient. 14245# So, we kill variables containing newlines. 14246# Ultrix sh set writes to stderr and can't be redirected directly, 14247# and sets the high bit in the cache file unless we assign to the vars. 14248( 14249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14250 eval ac_val=\$$ac_var 14251 case $ac_val in #( 14252 *${as_nl}*) 14253 case $ac_var in #( 14254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14255$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14256 esac 14257 case $ac_var in #( 14258 _ | IFS | as_nl) ;; #( 14259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14260 *) { eval $ac_var=; unset $ac_var;} ;; 14261 esac ;; 14262 esac 14263 done 14264 14265 (set) 2>&1 | 14266 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14267 *${as_nl}ac_space=\ *) 14268 # `set' does not quote correctly, so add quotes: double-quote 14269 # substitution turns \\\\ into \\, and sed turns \\ into \. 14270 sed -n \ 14271 "s/'/'\\\\''/g; 14272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14273 ;; #( 14274 *) 14275 # `set' quotes correctly as required by POSIX, so do not add quotes. 14276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14277 ;; 14278 esac | 14279 sort 14280) | 14281 sed ' 14282 /^ac_cv_env_/b end 14283 t clear 14284 :clear 14285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14286 t end 14287 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14288 :end' >>confcache 14289if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14290 if test -w "$cache_file"; then 14291 if test "x$cache_file" != "x/dev/null"; then 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14293$as_echo "$as_me: updating cache $cache_file" >&6;} 14294 if test ! -f "$cache_file" || test -h "$cache_file"; then 14295 cat confcache >"$cache_file" 14296 else 14297 case $cache_file in #( 14298 */* | ?:*) 14299 mv -f confcache "$cache_file"$$ && 14300 mv -f "$cache_file"$$ "$cache_file" ;; #( 14301 *) 14302 mv -f confcache "$cache_file" ;; 14303 esac 14304 fi 14305 fi 14306 else 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14308$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14309 fi 14310fi 14311rm -f confcache 14312 14313test "x$prefix" = xNONE && prefix=$ac_default_prefix 14314# Let make expand exec_prefix. 14315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14316 14317DEFS=-DHAVE_CONFIG_H 14318 14319ac_libobjs= 14320ac_ltlibobjs= 14321U= 14322for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14323 # 1. Remove the extension, and $U if already installed. 14324 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14325 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14326 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14327 # will be set to the directory where LIBOBJS objects are built. 14328 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14329 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14330done 14331LIBOBJS=$ac_libobjs 14332 14333LTLIBOBJS=$ac_ltlibobjs 14334 14335 14336if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then 14337 as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined. 14338Usually this means the macro was only invoked conditionally." "$LINENO" 5 14339fi 14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14341$as_echo_n "checking that generated files are newer than configure... " >&6; } 14342 if test -n "$am_sleep_pid"; then 14343 # Hide warnings about reused PIDs. 14344 wait $am_sleep_pid 2>/dev/null 14345 fi 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14347$as_echo "done" >&6; } 14348 if test -n "$EXEEXT"; then 14349 am__EXEEXT_TRUE= 14350 am__EXEEXT_FALSE='#' 14351else 14352 am__EXEEXT_TRUE='#' 14353 am__EXEEXT_FALSE= 14354fi 14355 14356if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14357 as_fn_error $? "conditional \"AMDEP\" was never defined. 14358Usually this means the macro was only invoked conditionally." "$LINENO" 5 14359fi 14360if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14362Usually this means the macro was only invoked conditionally." "$LINENO" 5 14363fi 14364if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14365 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14366Usually this means the macro was only invoked conditionally." "$LINENO" 5 14367fi 14368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14369 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14370Usually this means the macro was only invoked conditionally." "$LINENO" 5 14371fi 14372if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then 14373 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined. 14374Usually this means the macro was only invoked conditionally." "$LINENO" 5 14375fi 14376 14377: "${CONFIG_STATUS=./config.status}" 14378ac_write_fail=0 14379ac_clean_files_save=$ac_clean_files 14380ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14383as_write_fail=0 14384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14385#! $SHELL 14386# Generated by $as_me. 14387# Run this file to recreate the current configuration. 14388# Compiler output produced by configure, useful for debugging 14389# configure, is in config.log if it exists. 14390 14391debug=false 14392ac_cs_recheck=false 14393ac_cs_silent=false 14394 14395SHELL=\${CONFIG_SHELL-$SHELL} 14396export SHELL 14397_ASEOF 14398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14399## -------------------- ## 14400## M4sh Initialization. ## 14401## -------------------- ## 14402 14403# Be more Bourne compatible 14404DUALCASE=1; export DUALCASE # for MKS sh 14405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14406 emulate sh 14407 NULLCMD=: 14408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14409 # is contrary to our usage. Disable this feature. 14410 alias -g '${1+"$@"}'='"$@"' 14411 setopt NO_GLOB_SUBST 14412else 14413 case `(set -o) 2>/dev/null` in #( 14414 *posix*) : 14415 set -o posix ;; #( 14416 *) : 14417 ;; 14418esac 14419fi 14420 14421 14422as_nl=' 14423' 14424export as_nl 14425# Printing a long string crashes Solaris 7 /usr/bin/printf. 14426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14429# Prefer a ksh shell builtin over an external printf program on Solaris, 14430# but without wasting forks for bash or zsh. 14431if test -z "$BASH_VERSION$ZSH_VERSION" \ 14432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14433 as_echo='print -r --' 14434 as_echo_n='print -rn --' 14435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14436 as_echo='printf %s\n' 14437 as_echo_n='printf %s' 14438else 14439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14441 as_echo_n='/usr/ucb/echo -n' 14442 else 14443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14444 as_echo_n_body='eval 14445 arg=$1; 14446 case $arg in #( 14447 *"$as_nl"*) 14448 expr "X$arg" : "X\\(.*\\)$as_nl"; 14449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14450 esac; 14451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14452 ' 14453 export as_echo_n_body 14454 as_echo_n='sh -c $as_echo_n_body as_echo' 14455 fi 14456 export as_echo_body 14457 as_echo='sh -c $as_echo_body as_echo' 14458fi 14459 14460# The user is always right. 14461if test "${PATH_SEPARATOR+set}" != set; then 14462 PATH_SEPARATOR=: 14463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14465 PATH_SEPARATOR=';' 14466 } 14467fi 14468 14469 14470# IFS 14471# We need space, tab and new line, in precisely that order. Quoting is 14472# there to prevent editors from complaining about space-tab. 14473# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14474# splitting by setting IFS to empty value.) 14475IFS=" "" $as_nl" 14476 14477# Find who we are. Look in the path if we contain no directory separator. 14478as_myself= 14479case $0 in #(( 14480 *[\\/]* ) as_myself=$0 ;; 14481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14482for as_dir in $PATH 14483do 14484 IFS=$as_save_IFS 14485 test -z "$as_dir" && as_dir=. 14486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14487 done 14488IFS=$as_save_IFS 14489 14490 ;; 14491esac 14492# We did not find ourselves, most probably we were run as `sh COMMAND' 14493# in which case we are not to be found in the path. 14494if test "x$as_myself" = x; then 14495 as_myself=$0 14496fi 14497if test ! -f "$as_myself"; then 14498 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14499 exit 1 14500fi 14501 14502# Unset variables that we do not need and which cause bugs (e.g. in 14503# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14504# suppresses any "Segmentation fault" message there. '((' could 14505# trigger a bug in pdksh 5.2.14. 14506for as_var in BASH_ENV ENV MAIL MAILPATH 14507do eval test x\${$as_var+set} = xset \ 14508 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14509done 14510PS1='$ ' 14511PS2='> ' 14512PS4='+ ' 14513 14514# NLS nuisances. 14515LC_ALL=C 14516export LC_ALL 14517LANGUAGE=C 14518export LANGUAGE 14519 14520# CDPATH. 14521(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14522 14523 14524# as_fn_error STATUS ERROR [LINENO LOG_FD] 14525# ---------------------------------------- 14526# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14527# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14528# script with STATUS, using 1 if that was 0. 14529as_fn_error () 14530{ 14531 as_status=$1; test $as_status -eq 0 && as_status=1 14532 if test "$4"; then 14533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14534 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14535 fi 14536 $as_echo "$as_me: error: $2" >&2 14537 as_fn_exit $as_status 14538} # as_fn_error 14539 14540 14541# as_fn_set_status STATUS 14542# ----------------------- 14543# Set $? to STATUS, without forking. 14544as_fn_set_status () 14545{ 14546 return $1 14547} # as_fn_set_status 14548 14549# as_fn_exit STATUS 14550# ----------------- 14551# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14552as_fn_exit () 14553{ 14554 set +e 14555 as_fn_set_status $1 14556 exit $1 14557} # as_fn_exit 14558 14559# as_fn_unset VAR 14560# --------------- 14561# Portably unset VAR. 14562as_fn_unset () 14563{ 14564 { eval $1=; unset $1;} 14565} 14566as_unset=as_fn_unset 14567# as_fn_append VAR VALUE 14568# ---------------------- 14569# Append the text in VALUE to the end of the definition contained in VAR. Take 14570# advantage of any shell optimizations that allow amortized linear growth over 14571# repeated appends, instead of the typical quadratic growth present in naive 14572# implementations. 14573if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14574 eval 'as_fn_append () 14575 { 14576 eval $1+=\$2 14577 }' 14578else 14579 as_fn_append () 14580 { 14581 eval $1=\$$1\$2 14582 } 14583fi # as_fn_append 14584 14585# as_fn_arith ARG... 14586# ------------------ 14587# Perform arithmetic evaluation on the ARGs, and store the result in the 14588# global $as_val. Take advantage of shells that can avoid forks. The arguments 14589# must be portable across $(()) and expr. 14590if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14591 eval 'as_fn_arith () 14592 { 14593 as_val=$(( $* )) 14594 }' 14595else 14596 as_fn_arith () 14597 { 14598 as_val=`expr "$@" || test $? -eq 1` 14599 } 14600fi # as_fn_arith 14601 14602 14603if expr a : '\(a\)' >/dev/null 2>&1 && 14604 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14605 as_expr=expr 14606else 14607 as_expr=false 14608fi 14609 14610if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14611 as_basename=basename 14612else 14613 as_basename=false 14614fi 14615 14616if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14617 as_dirname=dirname 14618else 14619 as_dirname=false 14620fi 14621 14622as_me=`$as_basename -- "$0" || 14623$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14624 X"$0" : 'X\(//\)$' \| \ 14625 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14626$as_echo X/"$0" | 14627 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14628 s//\1/ 14629 q 14630 } 14631 /^X\/\(\/\/\)$/{ 14632 s//\1/ 14633 q 14634 } 14635 /^X\/\(\/\).*/{ 14636 s//\1/ 14637 q 14638 } 14639 s/.*/./; q'` 14640 14641# Avoid depending upon Character Ranges. 14642as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14643as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14644as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14645as_cr_digits='0123456789' 14646as_cr_alnum=$as_cr_Letters$as_cr_digits 14647 14648ECHO_C= ECHO_N= ECHO_T= 14649case `echo -n x` in #((((( 14650-n*) 14651 case `echo 'xy\c'` in 14652 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14653 xy) ECHO_C='\c';; 14654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14655 ECHO_T=' ';; 14656 esac;; 14657*) 14658 ECHO_N='-n';; 14659esac 14660 14661rm -f conf$$ conf$$.exe conf$$.file 14662if test -d conf$$.dir; then 14663 rm -f conf$$.dir/conf$$.file 14664else 14665 rm -f conf$$.dir 14666 mkdir conf$$.dir 2>/dev/null 14667fi 14668if (echo >conf$$.file) 2>/dev/null; then 14669 if ln -s conf$$.file conf$$ 2>/dev/null; then 14670 as_ln_s='ln -s' 14671 # ... but there are two gotchas: 14672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14674 # In both cases, we have to default to `cp -pR'. 14675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14676 as_ln_s='cp -pR' 14677 elif ln conf$$.file conf$$ 2>/dev/null; then 14678 as_ln_s=ln 14679 else 14680 as_ln_s='cp -pR' 14681 fi 14682else 14683 as_ln_s='cp -pR' 14684fi 14685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14686rmdir conf$$.dir 2>/dev/null 14687 14688 14689# as_fn_mkdir_p 14690# ------------- 14691# Create "$as_dir" as a directory, including parents if necessary. 14692as_fn_mkdir_p () 14693{ 14694 14695 case $as_dir in #( 14696 -*) as_dir=./$as_dir;; 14697 esac 14698 test -d "$as_dir" || eval $as_mkdir_p || { 14699 as_dirs= 14700 while :; do 14701 case $as_dir in #( 14702 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14703 *) as_qdir=$as_dir;; 14704 esac 14705 as_dirs="'$as_qdir' $as_dirs" 14706 as_dir=`$as_dirname -- "$as_dir" || 14707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14708 X"$as_dir" : 'X\(//\)[^/]' \| \ 14709 X"$as_dir" : 'X\(//\)$' \| \ 14710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14711$as_echo X"$as_dir" | 14712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14713 s//\1/ 14714 q 14715 } 14716 /^X\(\/\/\)[^/].*/{ 14717 s//\1/ 14718 q 14719 } 14720 /^X\(\/\/\)$/{ 14721 s//\1/ 14722 q 14723 } 14724 /^X\(\/\).*/{ 14725 s//\1/ 14726 q 14727 } 14728 s/.*/./; q'` 14729 test -d "$as_dir" && break 14730 done 14731 test -z "$as_dirs" || eval "mkdir $as_dirs" 14732 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14733 14734 14735} # as_fn_mkdir_p 14736if mkdir -p . 2>/dev/null; then 14737 as_mkdir_p='mkdir -p "$as_dir"' 14738else 14739 test -d ./-p && rmdir ./-p 14740 as_mkdir_p=false 14741fi 14742 14743 14744# as_fn_executable_p FILE 14745# ----------------------- 14746# Test if FILE is an executable regular file. 14747as_fn_executable_p () 14748{ 14749 test -f "$1" && test -x "$1" 14750} # as_fn_executable_p 14751as_test_x='test -x' 14752as_executable_p=as_fn_executable_p 14753 14754# Sed expression to map a string onto a valid CPP name. 14755as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14756 14757# Sed expression to map a string onto a valid variable name. 14758as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14759 14760 14761exec 6>&1 14762## ----------------------------------- ## 14763## Main body of $CONFIG_STATUS script. ## 14764## ----------------------------------- ## 14765_ASEOF 14766test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14767 14768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14769# Save the log message, to keep $0 and so on meaningful, and to 14770# report actual input values of CONFIG_FILES etc. instead of their 14771# values after options handling. 14772ac_log=" 14773This file was extended by iperf $as_me 3.10.1+, which was 14774generated by GNU Autoconf 2.69. Invocation command line was 14775 14776 CONFIG_FILES = $CONFIG_FILES 14777 CONFIG_HEADERS = $CONFIG_HEADERS 14778 CONFIG_LINKS = $CONFIG_LINKS 14779 CONFIG_COMMANDS = $CONFIG_COMMANDS 14780 $ $0 $@ 14781 14782on `(hostname || uname -n) 2>/dev/null | sed 1q` 14783" 14784 14785_ACEOF 14786 14787case $ac_config_files in *" 14788"*) set x $ac_config_files; shift; ac_config_files=$*;; 14789esac 14790 14791case $ac_config_headers in *" 14792"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14793esac 14794 14795 14796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14797# Files that config.status was made for. 14798config_files="$ac_config_files" 14799config_headers="$ac_config_headers" 14800config_commands="$ac_config_commands" 14801 14802_ACEOF 14803 14804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14805ac_cs_usage="\ 14806\`$as_me' instantiates files and other configuration actions 14807from templates according to the current configuration. Unless the files 14808and actions are specified as TAGs, all are instantiated by default. 14809 14810Usage: $0 [OPTION]... [TAG]... 14811 14812 -h, --help print this help, then exit 14813 -V, --version print version number and configuration settings, then exit 14814 --config print configuration, then exit 14815 -q, --quiet, --silent 14816 do not print progress messages 14817 -d, --debug don't remove temporary files 14818 --recheck update $as_me by reconfiguring in the same conditions 14819 --file=FILE[:TEMPLATE] 14820 instantiate the configuration file FILE 14821 --header=FILE[:TEMPLATE] 14822 instantiate the configuration header FILE 14823 14824Configuration files: 14825$config_files 14826 14827Configuration headers: 14828$config_headers 14829 14830Configuration commands: 14831$config_commands 14832 14833Report bugs to <https://github.com/esnet/iperf>. 14834iperf home page: <https://software.es.net/iperf/>." 14835 14836_ACEOF 14837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14838ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14839ac_cs_version="\\ 14840iperf config.status 3.10.1+ 14841configured by $0, generated by GNU Autoconf 2.69, 14842 with options \\"\$ac_cs_config\\" 14843 14844Copyright (C) 2012 Free Software Foundation, Inc. 14845This config.status script is free software; the Free Software Foundation 14846gives unlimited permission to copy, distribute and modify it." 14847 14848ac_pwd='$ac_pwd' 14849srcdir='$srcdir' 14850INSTALL='$INSTALL' 14851MKDIR_P='$MKDIR_P' 14852AWK='$AWK' 14853test -n "\$AWK" || AWK=awk 14854_ACEOF 14855 14856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14857# The default lists apply if the user does not specify any file. 14858ac_need_defaults=: 14859while test $# != 0 14860do 14861 case $1 in 14862 --*=?*) 14863 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14865 ac_shift=: 14866 ;; 14867 --*=) 14868 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14869 ac_optarg= 14870 ac_shift=: 14871 ;; 14872 *) 14873 ac_option=$1 14874 ac_optarg=$2 14875 ac_shift=shift 14876 ;; 14877 esac 14878 14879 case $ac_option in 14880 # Handling of the options. 14881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14882 ac_cs_recheck=: ;; 14883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14884 $as_echo "$ac_cs_version"; exit ;; 14885 --config | --confi | --conf | --con | --co | --c ) 14886 $as_echo "$ac_cs_config"; exit ;; 14887 --debug | --debu | --deb | --de | --d | -d ) 14888 debug=: ;; 14889 --file | --fil | --fi | --f ) 14890 $ac_shift 14891 case $ac_optarg in 14892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14893 '') as_fn_error $? "missing file argument" ;; 14894 esac 14895 as_fn_append CONFIG_FILES " '$ac_optarg'" 14896 ac_need_defaults=false;; 14897 --header | --heade | --head | --hea ) 14898 $ac_shift 14899 case $ac_optarg in 14900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14901 esac 14902 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14903 ac_need_defaults=false;; 14904 --he | --h) 14905 # Conflict between --help and --header 14906 as_fn_error $? "ambiguous option: \`$1' 14907Try \`$0 --help' for more information.";; 14908 --help | --hel | -h ) 14909 $as_echo "$ac_cs_usage"; exit ;; 14910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14911 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14912 ac_cs_silent=: ;; 14913 14914 # This is an error. 14915 -*) as_fn_error $? "unrecognized option: \`$1' 14916Try \`$0 --help' for more information." ;; 14917 14918 *) as_fn_append ac_config_targets " $1" 14919 ac_need_defaults=false ;; 14920 14921 esac 14922 shift 14923done 14924 14925ac_configure_extra_args= 14926 14927if $ac_cs_silent; then 14928 exec 6>/dev/null 14929 ac_configure_extra_args="$ac_configure_extra_args --silent" 14930fi 14931 14932_ACEOF 14933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14934if \$ac_cs_recheck; then 14935 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14936 shift 14937 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14938 CONFIG_SHELL='$SHELL' 14939 export CONFIG_SHELL 14940 exec "\$@" 14941fi 14942 14943_ACEOF 14944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14945exec 5>>config.log 14946{ 14947 echo 14948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14949## Running $as_me. ## 14950_ASBOX 14951 $as_echo "$ac_log" 14952} >&5 14953 14954_ACEOF 14955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14956# 14957# INIT-COMMANDS 14958# 14959AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14960 14961 14962# The HP-UX ksh and POSIX shell print the target directory to stdout 14963# if CDPATH is set. 14964(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14965 14966sed_quote_subst='$sed_quote_subst' 14967double_quote_subst='$double_quote_subst' 14968delay_variable_subst='$delay_variable_subst' 14969macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14970macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14971enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14972enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14973pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14974enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14975shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14976SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14977ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14978PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14979host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14980host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14981host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14982build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14983build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14984build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14985SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14986Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14987GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14988EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14989FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14990LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14991NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14992LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14993max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14994ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14995exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14996lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14997lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14998lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14999lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15000lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15001reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15002reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15003OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15004deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15005file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15006file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15007want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15008DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15009sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15010AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15011AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15012archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15013STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15014RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15015old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15016old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15017old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15018lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15019CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15020CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15021compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15022GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15023lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15024lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15025lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15026lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15027lt_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"`' 15028lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15029nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15030lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15031lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15032objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15033MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15034lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15035lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15036lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15037lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15038lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15039need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15040MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15041DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15042NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15043LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15044OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15045OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15046libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15047shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15048extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15049archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15050enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15051export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15052whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15053compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15054old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15055old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15056archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15057archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15058module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15059module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15060with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15061allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15062no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15063hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15064hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15065hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15066hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15067hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15068hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15069hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15070inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15071link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15072always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15073export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15074exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15075include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15076prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15077postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15078file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15079variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15080need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15081need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15082version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15083runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15084shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15085shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15086libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15087library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15088soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15089install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15090postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15091postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15092finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15093finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15094hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15095sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15096configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15097configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15098hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15099enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15100enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15101enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15102old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15103striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15104 15105LTCC='$LTCC' 15106LTCFLAGS='$LTCFLAGS' 15107compiler='$compiler_DEFAULT' 15108 15109# A function that is used when there is no print builtin or printf. 15110func_fallback_echo () 15111{ 15112 eval 'cat <<_LTECHO_EOF 15113\$1 15114_LTECHO_EOF' 15115} 15116 15117# Quote evaled strings. 15118for var in SHELL \ 15119ECHO \ 15120PATH_SEPARATOR \ 15121SED \ 15122GREP \ 15123EGREP \ 15124FGREP \ 15125LD \ 15126NM \ 15127LN_S \ 15128lt_SP2NL \ 15129lt_NL2SP \ 15130reload_flag \ 15131OBJDUMP \ 15132deplibs_check_method \ 15133file_magic_cmd \ 15134file_magic_glob \ 15135want_nocaseglob \ 15136DLLTOOL \ 15137sharedlib_from_linklib_cmd \ 15138AR \ 15139AR_FLAGS \ 15140archiver_list_spec \ 15141STRIP \ 15142RANLIB \ 15143CC \ 15144CFLAGS \ 15145compiler \ 15146lt_cv_sys_global_symbol_pipe \ 15147lt_cv_sys_global_symbol_to_cdecl \ 15148lt_cv_sys_global_symbol_to_import \ 15149lt_cv_sys_global_symbol_to_c_name_address \ 15150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15151lt_cv_nm_interface \ 15152nm_file_list_spec \ 15153lt_cv_truncate_bin \ 15154lt_prog_compiler_no_builtin_flag \ 15155lt_prog_compiler_pic \ 15156lt_prog_compiler_wl \ 15157lt_prog_compiler_static \ 15158lt_cv_prog_compiler_c_o \ 15159need_locks \ 15160MANIFEST_TOOL \ 15161DSYMUTIL \ 15162NMEDIT \ 15163LIPO \ 15164OTOOL \ 15165OTOOL64 \ 15166shrext_cmds \ 15167export_dynamic_flag_spec \ 15168whole_archive_flag_spec \ 15169compiler_needs_object \ 15170with_gnu_ld \ 15171allow_undefined_flag \ 15172no_undefined_flag \ 15173hardcode_libdir_flag_spec \ 15174hardcode_libdir_separator \ 15175exclude_expsyms \ 15176include_expsyms \ 15177file_list_spec \ 15178variables_saved_for_relink \ 15179libname_spec \ 15180library_names_spec \ 15181soname_spec \ 15182install_override_mode \ 15183finish_eval \ 15184old_striplib \ 15185striplib; do 15186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15187 *[\\\\\\\`\\"\\\$]*) 15188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15189 ;; 15190 *) 15191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15192 ;; 15193 esac 15194done 15195 15196# Double-quote double-evaled strings. 15197for var in reload_cmds \ 15198old_postinstall_cmds \ 15199old_postuninstall_cmds \ 15200old_archive_cmds \ 15201extract_expsyms_cmds \ 15202old_archive_from_new_cmds \ 15203old_archive_from_expsyms_cmds \ 15204archive_cmds \ 15205archive_expsym_cmds \ 15206module_cmds \ 15207module_expsym_cmds \ 15208export_symbols_cmds \ 15209prelink_cmds \ 15210postlink_cmds \ 15211postinstall_cmds \ 15212postuninstall_cmds \ 15213finish_cmds \ 15214sys_lib_search_path_spec \ 15215configure_time_dlsearch_path \ 15216configure_time_lt_sys_library_path; do 15217 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15218 *[\\\\\\\`\\"\\\$]*) 15219 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15220 ;; 15221 *) 15222 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15223 ;; 15224 esac 15225done 15226 15227ac_aux_dir='$ac_aux_dir' 15228 15229# See if we are running on zsh, and set the options that allow our 15230# commands through without removal of \ escapes INIT. 15231if test -n "\${ZSH_VERSION+set}"; then 15232 setopt NO_GLOB_SUBST 15233fi 15234 15235 15236 PACKAGE='$PACKAGE' 15237 VERSION='$VERSION' 15238 RM='$RM' 15239 ofile='$ofile' 15240 15241 15242 15243 15244_ACEOF 15245 15246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15247 15248# Handling of arguments. 15249for ac_config_target in $ac_config_targets 15250do 15251 case $ac_config_target in 15252 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15253 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15254 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 15255 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15256 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15257 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 15258 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 15259 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;; 15260 15261 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15262 esac 15263done 15264 15265 15266# If the user did not use the arguments to specify the items to instantiate, 15267# then the envvar interface is used. Set only those that are not. 15268# We use the long form for the default assignment because of an extremely 15269# bizarre bug on SunOS 4.1.3. 15270if $ac_need_defaults; then 15271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15274fi 15275 15276# Have a temporary directory for convenience. Make it in the build tree 15277# simply because there is no reason against having it here, and in addition, 15278# creating and moving files from /tmp can sometimes cause problems. 15279# Hook for its removal unless debugging. 15280# Note that there is a small window in which the directory will not be cleaned: 15281# after its creation but before its name has been assigned to `$tmp'. 15282$debug || 15283{ 15284 tmp= ac_tmp= 15285 trap 'exit_status=$? 15286 : "${ac_tmp:=$tmp}" 15287 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15288' 0 15289 trap 'as_fn_exit 1' 1 2 13 15 15290} 15291# Create a (secure) tmp directory for tmp files. 15292 15293{ 15294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15295 test -d "$tmp" 15296} || 15297{ 15298 tmp=./conf$$-$RANDOM 15299 (umask 077 && mkdir "$tmp") 15300} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15301ac_tmp=$tmp 15302 15303# Set up the scripts for CONFIG_FILES section. 15304# No need to generate them if there are no CONFIG_FILES. 15305# This happens for instance with `./config.status config.h'. 15306if test -n "$CONFIG_FILES"; then 15307 15308 15309ac_cr=`echo X | tr X '\015'` 15310# On cygwin, bash can eat \r inside `` if the user requested igncr. 15311# But we know of no other shell where ac_cr would be empty at this 15312# point, so we can use a bashism as a fallback. 15313if test "x$ac_cr" = x; then 15314 eval ac_cr=\$\'\\r\' 15315fi 15316ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15317if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15318 ac_cs_awk_cr='\\r' 15319else 15320 ac_cs_awk_cr=$ac_cr 15321fi 15322 15323echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15324_ACEOF 15325 15326 15327{ 15328 echo "cat >conf$$subs.awk <<_ACEOF" && 15329 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15330 echo "_ACEOF" 15331} >conf$$subs.sh || 15332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15333ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15334ac_delim='%!_!# ' 15335for ac_last_try in false false false false false :; do 15336 . ./conf$$subs.sh || 15337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15338 15339 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15340 if test $ac_delim_n = $ac_delim_num; then 15341 break 15342 elif $ac_last_try; then 15343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15344 else 15345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15346 fi 15347done 15348rm -f conf$$subs.sh 15349 15350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15351cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15352_ACEOF 15353sed -n ' 15354h 15355s/^/S["/; s/!.*/"]=/ 15356p 15357g 15358s/^[^!]*!// 15359:repl 15360t repl 15361s/'"$ac_delim"'$// 15362t delim 15363:nl 15364h 15365s/\(.\{148\}\)..*/\1/ 15366t more1 15367s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15368p 15369n 15370b repl 15371:more1 15372s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15373p 15374g 15375s/.\{148\}// 15376t nl 15377:delim 15378h 15379s/\(.\{148\}\)..*/\1/ 15380t more2 15381s/["\\]/\\&/g; s/^/"/; s/$/"/ 15382p 15383b 15384:more2 15385s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15386p 15387g 15388s/.\{148\}// 15389t delim 15390' <conf$$subs.awk | sed ' 15391/^[^""]/{ 15392 N 15393 s/\n// 15394} 15395' >>$CONFIG_STATUS || ac_write_fail=1 15396rm -f conf$$subs.awk 15397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15398_ACAWK 15399cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15400 for (key in S) S_is_set[key] = 1 15401 FS = "" 15402 15403} 15404{ 15405 line = $ 0 15406 nfields = split(line, field, "@") 15407 substed = 0 15408 len = length(field[1]) 15409 for (i = 2; i < nfields; i++) { 15410 key = field[i] 15411 keylen = length(key) 15412 if (S_is_set[key]) { 15413 value = S[key] 15414 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15415 len += length(value) + length(field[++i]) 15416 substed = 1 15417 } else 15418 len += 1 + keylen 15419 } 15420 15421 print line 15422} 15423 15424_ACAWK 15425_ACEOF 15426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15427if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15428 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15429else 15430 cat 15431fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15432 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15433_ACEOF 15434 15435# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15436# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15437# trailing colons and then remove the whole line if VPATH becomes empty 15438# (actually we leave an empty line to preserve line numbers). 15439if test "x$srcdir" = x.; then 15440 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15441h 15442s/// 15443s/^/:/ 15444s/[ ]*$/:/ 15445s/:\$(srcdir):/:/g 15446s/:\${srcdir}:/:/g 15447s/:@srcdir@:/:/g 15448s/^:*// 15449s/:*$// 15450x 15451s/\(=[ ]*\).*/\1/ 15452G 15453s/\n// 15454s/^[^=]*=[ ]*$// 15455}' 15456fi 15457 15458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15459fi # test -n "$CONFIG_FILES" 15460 15461# Set up the scripts for CONFIG_HEADERS section. 15462# No need to generate them if there are no CONFIG_HEADERS. 15463# This happens for instance with `./config.status Makefile'. 15464if test -n "$CONFIG_HEADERS"; then 15465cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15466BEGIN { 15467_ACEOF 15468 15469# Transform confdefs.h into an awk script `defines.awk', embedded as 15470# here-document in config.status, that substitutes the proper values into 15471# config.h.in to produce config.h. 15472 15473# Create a delimiter string that does not exist in confdefs.h, to ease 15474# handling of long lines. 15475ac_delim='%!_!# ' 15476for ac_last_try in false false :; do 15477 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15478 if test -z "$ac_tt"; then 15479 break 15480 elif $ac_last_try; then 15481 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15482 else 15483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15484 fi 15485done 15486 15487# For the awk script, D is an array of macro values keyed by name, 15488# likewise P contains macro parameters if any. Preserve backslash 15489# newline sequences. 15490 15491ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15492sed -n ' 15493s/.\{148\}/&'"$ac_delim"'/g 15494t rset 15495:rset 15496s/^[ ]*#[ ]*define[ ][ ]*/ / 15497t def 15498d 15499:def 15500s/\\$// 15501t bsnl 15502s/["\\]/\\&/g 15503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15504D["\1"]=" \3"/p 15505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15506d 15507:bsnl 15508s/["\\]/\\&/g 15509s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15510D["\1"]=" \3\\\\\\n"\\/p 15511t cont 15512s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15513t cont 15514d 15515:cont 15516n 15517s/.\{148\}/&'"$ac_delim"'/g 15518t clear 15519:clear 15520s/\\$// 15521t bsnlc 15522s/["\\]/\\&/g; s/^/"/; s/$/"/p 15523d 15524:bsnlc 15525s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15526b cont 15527' <confdefs.h | sed ' 15528s/'"$ac_delim"'/"\\\ 15529"/g' >>$CONFIG_STATUS || ac_write_fail=1 15530 15531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15532 for (key in D) D_is_set[key] = 1 15533 FS = "" 15534} 15535/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15536 line = \$ 0 15537 split(line, arg, " ") 15538 if (arg[1] == "#") { 15539 defundef = arg[2] 15540 mac1 = arg[3] 15541 } else { 15542 defundef = substr(arg[1], 2) 15543 mac1 = arg[2] 15544 } 15545 split(mac1, mac2, "(") #) 15546 macro = mac2[1] 15547 prefix = substr(line, 1, index(line, defundef) - 1) 15548 if (D_is_set[macro]) { 15549 # Preserve the white space surrounding the "#". 15550 print prefix "define", macro P[macro] D[macro] 15551 next 15552 } else { 15553 # Replace #undef with comments. This is necessary, for example, 15554 # in the case of _POSIX_SOURCE, which is predefined and required 15555 # on some systems where configure will not decide to define it. 15556 if (defundef == "undef") { 15557 print "/*", prefix defundef, macro, "*/" 15558 next 15559 } 15560 } 15561} 15562{ print } 15563_ACAWK 15564_ACEOF 15565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15566 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15567fi # test -n "$CONFIG_HEADERS" 15568 15569 15570eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15571shift 15572for ac_tag 15573do 15574 case $ac_tag in 15575 :[FHLC]) ac_mode=$ac_tag; continue;; 15576 esac 15577 case $ac_mode$ac_tag in 15578 :[FHL]*:*);; 15579 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15580 :[FH]-) ac_tag=-:-;; 15581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15582 esac 15583 ac_save_IFS=$IFS 15584 IFS=: 15585 set x $ac_tag 15586 IFS=$ac_save_IFS 15587 shift 15588 ac_file=$1 15589 shift 15590 15591 case $ac_mode in 15592 :L) ac_source=$1;; 15593 :[FH]) 15594 ac_file_inputs= 15595 for ac_f 15596 do 15597 case $ac_f in 15598 -) ac_f="$ac_tmp/stdin";; 15599 *) # Look for the file first in the build tree, then in the source tree 15600 # (if the path is not absolute). The absolute path cannot be DOS-style, 15601 # because $ac_f cannot contain `:'. 15602 test -f "$ac_f" || 15603 case $ac_f in 15604 [\\/$]*) false;; 15605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15606 esac || 15607 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15608 esac 15609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15610 as_fn_append ac_file_inputs " '$ac_f'" 15611 done 15612 15613 # Let's still pretend it is `configure' which instantiates (i.e., don't 15614 # use $as_me), people would be surprised to read: 15615 # /* config.h. Generated by config.status. */ 15616 configure_input='Generated from '` 15617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15618 `' by configure.' 15619 if test x"$ac_file" != x-; then 15620 configure_input="$ac_file. $configure_input" 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15622$as_echo "$as_me: creating $ac_file" >&6;} 15623 fi 15624 # Neutralize special characters interpreted by sed in replacement strings. 15625 case $configure_input in #( 15626 *\&* | *\|* | *\\* ) 15627 ac_sed_conf_input=`$as_echo "$configure_input" | 15628 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15629 *) ac_sed_conf_input=$configure_input;; 15630 esac 15631 15632 case $ac_tag in 15633 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15635 esac 15636 ;; 15637 esac 15638 15639 ac_dir=`$as_dirname -- "$ac_file" || 15640$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15641 X"$ac_file" : 'X\(//\)[^/]' \| \ 15642 X"$ac_file" : 'X\(//\)$' \| \ 15643 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15644$as_echo X"$ac_file" | 15645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15646 s//\1/ 15647 q 15648 } 15649 /^X\(\/\/\)[^/].*/{ 15650 s//\1/ 15651 q 15652 } 15653 /^X\(\/\/\)$/{ 15654 s//\1/ 15655 q 15656 } 15657 /^X\(\/\).*/{ 15658 s//\1/ 15659 q 15660 } 15661 s/.*/./; q'` 15662 as_dir="$ac_dir"; as_fn_mkdir_p 15663 ac_builddir=. 15664 15665case "$ac_dir" in 15666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15667*) 15668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15669 # A ".." for each directory in $ac_dir_suffix. 15670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15671 case $ac_top_builddir_sub in 15672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15674 esac ;; 15675esac 15676ac_abs_top_builddir=$ac_pwd 15677ac_abs_builddir=$ac_pwd$ac_dir_suffix 15678# for backward compatibility: 15679ac_top_builddir=$ac_top_build_prefix 15680 15681case $srcdir in 15682 .) # We are building in place. 15683 ac_srcdir=. 15684 ac_top_srcdir=$ac_top_builddir_sub 15685 ac_abs_top_srcdir=$ac_pwd ;; 15686 [\\/]* | ?:[\\/]* ) # Absolute name. 15687 ac_srcdir=$srcdir$ac_dir_suffix; 15688 ac_top_srcdir=$srcdir 15689 ac_abs_top_srcdir=$srcdir ;; 15690 *) # Relative name. 15691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15692 ac_top_srcdir=$ac_top_build_prefix$srcdir 15693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15694esac 15695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15696 15697 15698 case $ac_mode in 15699 :F) 15700 # 15701 # CONFIG_FILE 15702 # 15703 15704 case $INSTALL in 15705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15707 esac 15708 ac_MKDIR_P=$MKDIR_P 15709 case $MKDIR_P in 15710 [\\/$]* | ?:[\\/]* ) ;; 15711 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15712 esac 15713_ACEOF 15714 15715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15716# If the template does not know about datarootdir, expand it. 15717# FIXME: This hack should be removed a few years after 2.60. 15718ac_datarootdir_hack=; ac_datarootdir_seen= 15719ac_sed_dataroot=' 15720/datarootdir/ { 15721 p 15722 q 15723} 15724/@datadir@/p 15725/@docdir@/p 15726/@infodir@/p 15727/@localedir@/p 15728/@mandir@/p' 15729case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15730*datarootdir*) ac_datarootdir_seen=yes;; 15731*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15733$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15734_ACEOF 15735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15736 ac_datarootdir_hack=' 15737 s&@datadir@&$datadir&g 15738 s&@docdir@&$docdir&g 15739 s&@infodir@&$infodir&g 15740 s&@localedir@&$localedir&g 15741 s&@mandir@&$mandir&g 15742 s&\\\${datarootdir}&$datarootdir&g' ;; 15743esac 15744_ACEOF 15745 15746# Neutralize VPATH when `$srcdir' = `.'. 15747# Shell code in configure.ac might set extrasub. 15748# FIXME: do we really want to maintain this feature? 15749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15750ac_sed_extra="$ac_vpsub 15751$extrasub 15752_ACEOF 15753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15754:t 15755/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15756s|@configure_input@|$ac_sed_conf_input|;t t 15757s&@top_builddir@&$ac_top_builddir_sub&;t t 15758s&@top_build_prefix@&$ac_top_build_prefix&;t t 15759s&@srcdir@&$ac_srcdir&;t t 15760s&@abs_srcdir@&$ac_abs_srcdir&;t t 15761s&@top_srcdir@&$ac_top_srcdir&;t t 15762s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15763s&@builddir@&$ac_builddir&;t t 15764s&@abs_builddir@&$ac_abs_builddir&;t t 15765s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15766s&@INSTALL@&$ac_INSTALL&;t t 15767s&@MKDIR_P@&$ac_MKDIR_P&;t t 15768$ac_datarootdir_hack 15769" 15770eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15771 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15772 15773test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15774 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15776 "$ac_tmp/out"`; test -z "$ac_out"; } && 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15778which seems to be undefined. Please make sure it is defined" >&5 15779$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15780which seems to be undefined. Please make sure it is defined" >&2;} 15781 15782 rm -f "$ac_tmp/stdin" 15783 case $ac_file in 15784 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15785 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15786 esac \ 15787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15788 ;; 15789 :H) 15790 # 15791 # CONFIG_HEADER 15792 # 15793 if test x"$ac_file" != x-; then 15794 { 15795 $as_echo "/* $configure_input */" \ 15796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15797 } >"$ac_tmp/config.h" \ 15798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15799 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15801$as_echo "$as_me: $ac_file is unchanged" >&6;} 15802 else 15803 rm -f "$ac_file" 15804 mv "$ac_tmp/config.h" "$ac_file" \ 15805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15806 fi 15807 else 15808 $as_echo "/* $configure_input */" \ 15809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15810 || as_fn_error $? "could not create -" "$LINENO" 5 15811 fi 15812# Compute "$ac_file"'s index in $config_headers. 15813_am_arg="$ac_file" 15814_am_stamp_count=1 15815for _am_header in $config_headers :; do 15816 case $_am_header in 15817 $_am_arg | $_am_arg:* ) 15818 break ;; 15819 * ) 15820 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15821 esac 15822done 15823echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15824$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15825 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15826 X"$_am_arg" : 'X\(//\)$' \| \ 15827 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15828$as_echo X"$_am_arg" | 15829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15830 s//\1/ 15831 q 15832 } 15833 /^X\(\/\/\)[^/].*/{ 15834 s//\1/ 15835 q 15836 } 15837 /^X\(\/\/\)$/{ 15838 s//\1/ 15839 q 15840 } 15841 /^X\(\/\).*/{ 15842 s//\1/ 15843 q 15844 } 15845 s/.*/./; q'`/stamp-h$_am_stamp_count 15846 ;; 15847 15848 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15849$as_echo "$as_me: executing $ac_file commands" >&6;} 15850 ;; 15851 esac 15852 15853 15854 case $ac_file$ac_mode in 15855 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15856 # Older Autoconf quotes --file arguments for eval, but not when files 15857 # are listed without --file. Let's play safe and only enable the eval 15858 # if we detect the quoting. 15859 # TODO: see whether this extra hack can be removed once we start 15860 # requiring Autoconf 2.70 or later. 15861 case $CONFIG_FILES in #( 15862 *\'*) : 15863 eval set x "$CONFIG_FILES" ;; #( 15864 *) : 15865 set x $CONFIG_FILES ;; #( 15866 *) : 15867 ;; 15868esac 15869 shift 15870 # Used to flag and report bootstrapping failures. 15871 am_rc=0 15872 for am_mf 15873 do 15874 # Strip MF so we end up with the name of the file. 15875 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15876 # Check whether this is an Automake generated Makefile which includes 15877 # dependency-tracking related rules and includes. 15878 # Grep'ing the whole file directly is not great: AIX grep has a line 15879 # limit of 2048, but all sed's we know have understand at least 4000. 15880 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15881 || continue 15882 am_dirpart=`$as_dirname -- "$am_mf" || 15883$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15884 X"$am_mf" : 'X\(//\)[^/]' \| \ 15885 X"$am_mf" : 'X\(//\)$' \| \ 15886 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15887$as_echo X"$am_mf" | 15888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15889 s//\1/ 15890 q 15891 } 15892 /^X\(\/\/\)[^/].*/{ 15893 s//\1/ 15894 q 15895 } 15896 /^X\(\/\/\)$/{ 15897 s//\1/ 15898 q 15899 } 15900 /^X\(\/\).*/{ 15901 s//\1/ 15902 q 15903 } 15904 s/.*/./; q'` 15905 am_filepart=`$as_basename -- "$am_mf" || 15906$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15907 X"$am_mf" : 'X\(//\)$' \| \ 15908 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15909$as_echo X/"$am_mf" | 15910 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15911 s//\1/ 15912 q 15913 } 15914 /^X\/\(\/\/\)$/{ 15915 s//\1/ 15916 q 15917 } 15918 /^X\/\(\/\).*/{ 15919 s//\1/ 15920 q 15921 } 15922 s/.*/./; q'` 15923 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15924 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15925 | $MAKE -f - am--depfiles" >&5 15926 (cd "$am_dirpart" \ 15927 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15928 | $MAKE -f - am--depfiles) >&5 2>&5 15929 ac_status=$? 15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15931 (exit $ac_status); } || am_rc=$? 15932 done 15933 if test $am_rc -ne 0; then 15934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15936as_fn_error $? "Something went wrong bootstrapping makefile fragments 15937 for automatic dependency tracking. Try re-running configure with the 15938 '--disable-dependency-tracking' option to at least be able to build 15939 the package (albeit without support for automatic dependency tracking). 15940See \`config.log' for more details" "$LINENO" 5; } 15941 fi 15942 { am_dirpart=; unset am_dirpart;} 15943 { am_filepart=; unset am_filepart;} 15944 { am_mf=; unset am_mf;} 15945 { am_rc=; unset am_rc;} 15946 rm -f conftest-deps.mk 15947} 15948 ;; 15949 "libtool":C) 15950 15951 # See if we are running on zsh, and set the options that allow our 15952 # commands through without removal of \ escapes. 15953 if test -n "${ZSH_VERSION+set}"; then 15954 setopt NO_GLOB_SUBST 15955 fi 15956 15957 cfgfile=${ofile}T 15958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15959 $RM "$cfgfile" 15960 15961 cat <<_LT_EOF >> "$cfgfile" 15962#! $SHELL 15963# Generated automatically by $as_me ($PACKAGE) $VERSION 15964# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15965 15966# Provide generalized library-building support services. 15967# Written by Gordon Matzigkeit, 1996 15968 15969# Copyright (C) 2014 Free Software Foundation, Inc. 15970# This is free software; see the source for copying conditions. There is NO 15971# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15972 15973# GNU Libtool is free software; you can redistribute it and/or modify 15974# it under the terms of the GNU General Public License as published by 15975# the Free Software Foundation; either version 2 of of the License, or 15976# (at your option) any later version. 15977# 15978# As a special exception to the GNU General Public License, if you 15979# distribute this file as part of a program or library that is built 15980# using GNU Libtool, you may include this file under the same 15981# distribution terms that you use for the rest of that program. 15982# 15983# GNU Libtool is distributed in the hope that it will be useful, but 15984# WITHOUT ANY WARRANTY; without even the implied warranty of 15985# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15986# GNU General Public License for more details. 15987# 15988# You should have received a copy of the GNU General Public License 15989# along with this program. If not, see <http://www.gnu.org/licenses/>. 15990 15991 15992# The names of the tagged configurations supported by this script. 15993available_tags='' 15994 15995# Configured defaults for sys_lib_dlsearch_path munging. 15996: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15997 15998# ### BEGIN LIBTOOL CONFIG 15999 16000# Which release of libtool.m4 was used? 16001macro_version=$macro_version 16002macro_revision=$macro_revision 16003 16004# Whether or not to build shared libraries. 16005build_libtool_libs=$enable_shared 16006 16007# Whether or not to build static libraries. 16008build_old_libs=$enable_static 16009 16010# What type of objects to build. 16011pic_mode=$pic_mode 16012 16013# Whether or not to optimize for fast installation. 16014fast_install=$enable_fast_install 16015 16016# Shared archive member basename,for filename based shared library versioning on AIX. 16017shared_archive_member_spec=$shared_archive_member_spec 16018 16019# Shell to use when invoking shell scripts. 16020SHELL=$lt_SHELL 16021 16022# An echo program that protects backslashes. 16023ECHO=$lt_ECHO 16024 16025# The PATH separator for the build system. 16026PATH_SEPARATOR=$lt_PATH_SEPARATOR 16027 16028# The host system. 16029host_alias=$host_alias 16030host=$host 16031host_os=$host_os 16032 16033# The build system. 16034build_alias=$build_alias 16035build=$build 16036build_os=$build_os 16037 16038# A sed program that does not truncate output. 16039SED=$lt_SED 16040 16041# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16042Xsed="\$SED -e 1s/^X//" 16043 16044# A grep program that handles long lines. 16045GREP=$lt_GREP 16046 16047# An ERE matcher. 16048EGREP=$lt_EGREP 16049 16050# A literal string matcher. 16051FGREP=$lt_FGREP 16052 16053# A BSD- or MS-compatible name lister. 16054NM=$lt_NM 16055 16056# Whether we need soft or hard links. 16057LN_S=$lt_LN_S 16058 16059# What is the maximum length of a command? 16060max_cmd_len=$max_cmd_len 16061 16062# Object file suffix (normally "o"). 16063objext=$ac_objext 16064 16065# Executable file suffix (normally ""). 16066exeext=$exeext 16067 16068# whether the shell understands "unset". 16069lt_unset=$lt_unset 16070 16071# turn spaces into newlines. 16072SP2NL=$lt_lt_SP2NL 16073 16074# turn newlines into spaces. 16075NL2SP=$lt_lt_NL2SP 16076 16077# convert \$build file names to \$host format. 16078to_host_file_cmd=$lt_cv_to_host_file_cmd 16079 16080# convert \$build files to toolchain format. 16081to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16082 16083# An object symbol dumper. 16084OBJDUMP=$lt_OBJDUMP 16085 16086# Method to check whether dependent libraries are shared objects. 16087deplibs_check_method=$lt_deplibs_check_method 16088 16089# Command to use when deplibs_check_method = "file_magic". 16090file_magic_cmd=$lt_file_magic_cmd 16091 16092# How to find potential files when deplibs_check_method = "file_magic". 16093file_magic_glob=$lt_file_magic_glob 16094 16095# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16096want_nocaseglob=$lt_want_nocaseglob 16097 16098# DLL creation program. 16099DLLTOOL=$lt_DLLTOOL 16100 16101# Command to associate shared and link libraries. 16102sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16103 16104# The archiver. 16105AR=$lt_AR 16106 16107# Flags to create an archive. 16108AR_FLAGS=$lt_AR_FLAGS 16109 16110# How to feed a file listing to the archiver. 16111archiver_list_spec=$lt_archiver_list_spec 16112 16113# A symbol stripping program. 16114STRIP=$lt_STRIP 16115 16116# Commands used to install an old-style archive. 16117RANLIB=$lt_RANLIB 16118old_postinstall_cmds=$lt_old_postinstall_cmds 16119old_postuninstall_cmds=$lt_old_postuninstall_cmds 16120 16121# Whether to use a lock for old archive extraction. 16122lock_old_archive_extraction=$lock_old_archive_extraction 16123 16124# A C compiler. 16125LTCC=$lt_CC 16126 16127# LTCC compiler flags. 16128LTCFLAGS=$lt_CFLAGS 16129 16130# Take the output of nm and produce a listing of raw symbols and C names. 16131global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16132 16133# Transform the output of nm in a proper C declaration. 16134global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16135 16136# Transform the output of nm into a list of symbols to manually relocate. 16137global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16138 16139# Transform the output of nm in a C name address pair. 16140global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16141 16142# Transform the output of nm in a C name address pair when lib prefix is needed. 16143global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16144 16145# The name lister interface. 16146nm_interface=$lt_lt_cv_nm_interface 16147 16148# Specify filename containing input files for \$NM. 16149nm_file_list_spec=$lt_nm_file_list_spec 16150 16151# The root where to search for dependent libraries,and where our libraries should be installed. 16152lt_sysroot=$lt_sysroot 16153 16154# Command to truncate a binary pipe. 16155lt_truncate_bin=$lt_lt_cv_truncate_bin 16156 16157# The name of the directory that contains temporary libtool files. 16158objdir=$objdir 16159 16160# Used to examine libraries when file_magic_cmd begins with "file". 16161MAGIC_CMD=$MAGIC_CMD 16162 16163# Must we lock files when doing compilation? 16164need_locks=$lt_need_locks 16165 16166# Manifest tool. 16167MANIFEST_TOOL=$lt_MANIFEST_TOOL 16168 16169# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16170DSYMUTIL=$lt_DSYMUTIL 16171 16172# Tool to change global to local symbols on Mac OS X. 16173NMEDIT=$lt_NMEDIT 16174 16175# Tool to manipulate fat objects and archives on Mac OS X. 16176LIPO=$lt_LIPO 16177 16178# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16179OTOOL=$lt_OTOOL 16180 16181# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16182OTOOL64=$lt_OTOOL64 16183 16184# Old archive suffix (normally "a"). 16185libext=$libext 16186 16187# Shared library suffix (normally ".so"). 16188shrext_cmds=$lt_shrext_cmds 16189 16190# The commands to extract the exported symbol list from a shared archive. 16191extract_expsyms_cmds=$lt_extract_expsyms_cmds 16192 16193# Variables whose values should be saved in libtool wrapper scripts and 16194# restored at link time. 16195variables_saved_for_relink=$lt_variables_saved_for_relink 16196 16197# Do we need the "lib" prefix for modules? 16198need_lib_prefix=$need_lib_prefix 16199 16200# Do we need a version for libraries? 16201need_version=$need_version 16202 16203# Library versioning type. 16204version_type=$version_type 16205 16206# Shared library runtime path variable. 16207runpath_var=$runpath_var 16208 16209# Shared library path variable. 16210shlibpath_var=$shlibpath_var 16211 16212# Is shlibpath searched before the hard-coded library search path? 16213shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16214 16215# Format of library name prefix. 16216libname_spec=$lt_libname_spec 16217 16218# List of archive names. First name is the real one, the rest are links. 16219# The last name is the one that the linker finds with -lNAME 16220library_names_spec=$lt_library_names_spec 16221 16222# The coded name of the library, if different from the real name. 16223soname_spec=$lt_soname_spec 16224 16225# Permission mode override for installation of shared libraries. 16226install_override_mode=$lt_install_override_mode 16227 16228# Command to use after installation of a shared archive. 16229postinstall_cmds=$lt_postinstall_cmds 16230 16231# Command to use after uninstallation of a shared archive. 16232postuninstall_cmds=$lt_postuninstall_cmds 16233 16234# Commands used to finish a libtool library installation in a directory. 16235finish_cmds=$lt_finish_cmds 16236 16237# As "finish_cmds", except a single script fragment to be evaled but 16238# not shown. 16239finish_eval=$lt_finish_eval 16240 16241# Whether we should hardcode library paths into libraries. 16242hardcode_into_libs=$hardcode_into_libs 16243 16244# Compile-time system search path for libraries. 16245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16246 16247# Detected run-time system search path for libraries. 16248sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16249 16250# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16251configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16252 16253# Whether dlopen is supported. 16254dlopen_support=$enable_dlopen 16255 16256# Whether dlopen of programs is supported. 16257dlopen_self=$enable_dlopen_self 16258 16259# Whether dlopen of statically linked programs is supported. 16260dlopen_self_static=$enable_dlopen_self_static 16261 16262# Commands to strip libraries. 16263old_striplib=$lt_old_striplib 16264striplib=$lt_striplib 16265 16266 16267# The linker used to build libraries. 16268LD=$lt_LD 16269 16270# How to create reloadable object files. 16271reload_flag=$lt_reload_flag 16272reload_cmds=$lt_reload_cmds 16273 16274# Commands used to build an old-style archive. 16275old_archive_cmds=$lt_old_archive_cmds 16276 16277# A language specific compiler. 16278CC=$lt_compiler 16279 16280# Is the compiler the GNU compiler? 16281with_gcc=$GCC 16282 16283# Compiler flag to turn off builtin functions. 16284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16285 16286# Additional compiler flags for building library objects. 16287pic_flag=$lt_lt_prog_compiler_pic 16288 16289# How to pass a linker flag through the compiler. 16290wl=$lt_lt_prog_compiler_wl 16291 16292# Compiler flag to prevent dynamic linking. 16293link_static_flag=$lt_lt_prog_compiler_static 16294 16295# Does compiler simultaneously support -c and -o options? 16296compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16297 16298# Whether or not to add -lc for building shared libraries. 16299build_libtool_need_lc=$archive_cmds_need_lc 16300 16301# Whether or not to disallow shared libs when runtime libs are static. 16302allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16303 16304# Compiler flag to allow reflexive dlopens. 16305export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16306 16307# Compiler flag to generate shared objects directly from archives. 16308whole_archive_flag_spec=$lt_whole_archive_flag_spec 16309 16310# Whether the compiler copes with passing no objects directly. 16311compiler_needs_object=$lt_compiler_needs_object 16312 16313# Create an old-style archive from a shared archive. 16314old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16315 16316# Create a temporary old-style archive to link instead of a shared archive. 16317old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16318 16319# Commands used to build a shared archive. 16320archive_cmds=$lt_archive_cmds 16321archive_expsym_cmds=$lt_archive_expsym_cmds 16322 16323# Commands used to build a loadable module if different from building 16324# a shared archive. 16325module_cmds=$lt_module_cmds 16326module_expsym_cmds=$lt_module_expsym_cmds 16327 16328# Whether we are building with GNU ld or not. 16329with_gnu_ld=$lt_with_gnu_ld 16330 16331# Flag that allows shared libraries with undefined symbols to be built. 16332allow_undefined_flag=$lt_allow_undefined_flag 16333 16334# Flag that enforces no undefined symbols. 16335no_undefined_flag=$lt_no_undefined_flag 16336 16337# Flag to hardcode \$libdir into a binary during linking. 16338# This must work even if \$libdir does not exist 16339hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16340 16341# Whether we need a single "-rpath" flag with a separated argument. 16342hardcode_libdir_separator=$lt_hardcode_libdir_separator 16343 16344# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16345# DIR into the resulting binary. 16346hardcode_direct=$hardcode_direct 16347 16348# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16349# DIR into the resulting binary and the resulting library dependency is 16350# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16351# library is relocated. 16352hardcode_direct_absolute=$hardcode_direct_absolute 16353 16354# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16355# into the resulting binary. 16356hardcode_minus_L=$hardcode_minus_L 16357 16358# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16359# into the resulting binary. 16360hardcode_shlibpath_var=$hardcode_shlibpath_var 16361 16362# Set to "yes" if building a shared library automatically hardcodes DIR 16363# into the library and all subsequent libraries and executables linked 16364# against it. 16365hardcode_automatic=$hardcode_automatic 16366 16367# Set to yes if linker adds runtime paths of dependent libraries 16368# to runtime path list. 16369inherit_rpath=$inherit_rpath 16370 16371# Whether libtool must link a program against all its dependency libraries. 16372link_all_deplibs=$link_all_deplibs 16373 16374# Set to "yes" if exported symbols are required. 16375always_export_symbols=$always_export_symbols 16376 16377# The commands to list exported symbols. 16378export_symbols_cmds=$lt_export_symbols_cmds 16379 16380# Symbols that should not be listed in the preloaded symbols. 16381exclude_expsyms=$lt_exclude_expsyms 16382 16383# Symbols that must always be exported. 16384include_expsyms=$lt_include_expsyms 16385 16386# Commands necessary for linking programs (against libraries) with templates. 16387prelink_cmds=$lt_prelink_cmds 16388 16389# Commands necessary for finishing linking programs. 16390postlink_cmds=$lt_postlink_cmds 16391 16392# Specify filename containing input files. 16393file_list_spec=$lt_file_list_spec 16394 16395# How to hardcode a shared library path into an executable. 16396hardcode_action=$hardcode_action 16397 16398# ### END LIBTOOL CONFIG 16399 16400_LT_EOF 16401 16402 cat <<'_LT_EOF' >> "$cfgfile" 16403 16404# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16405 16406# func_munge_path_list VARIABLE PATH 16407# ----------------------------------- 16408# VARIABLE is name of variable containing _space_ separated list of 16409# directories to be munged by the contents of PATH, which is string 16410# having a format: 16411# "DIR[:DIR]:" 16412# string "DIR[ DIR]" will be prepended to VARIABLE 16413# ":DIR[:DIR]" 16414# string "DIR[ DIR]" will be appended to VARIABLE 16415# "DIRP[:DIRP]::[DIRA:]DIRA" 16416# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16417# "DIRA[ DIRA]" will be appended to VARIABLE 16418# "DIR[:DIR]" 16419# VARIABLE will be replaced by "DIR[ DIR]" 16420func_munge_path_list () 16421{ 16422 case x$2 in 16423 x) 16424 ;; 16425 *:) 16426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16427 ;; 16428 x:*) 16429 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16430 ;; 16431 *::*) 16432 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16433 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16434 ;; 16435 *) 16436 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16437 ;; 16438 esac 16439} 16440 16441 16442# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16443func_cc_basename () 16444{ 16445 for cc_temp in $*""; do 16446 case $cc_temp in 16447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16449 \-*) ;; 16450 *) break;; 16451 esac 16452 done 16453 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16454} 16455 16456 16457# ### END FUNCTIONS SHARED WITH CONFIGURE 16458 16459_LT_EOF 16460 16461 case $host_os in 16462 aix3*) 16463 cat <<\_LT_EOF >> "$cfgfile" 16464# AIX sometimes has problems with the GCC collect2 program. For some 16465# reason, if we set the COLLECT_NAMES environment variable, the problems 16466# vanish in a puff of smoke. 16467if test set != "${COLLECT_NAMES+set}"; then 16468 COLLECT_NAMES= 16469 export COLLECT_NAMES 16470fi 16471_LT_EOF 16472 ;; 16473 esac 16474 16475 16476ltmain=$ac_aux_dir/ltmain.sh 16477 16478 16479 # We use sed instead of cat because bash on DJGPP gets confused if 16480 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16481 # text mode, it properly converts lines to CR/LF. This bash problem 16482 # is reportedly fixed, but why not run on old versions too? 16483 sed '$q' "$ltmain" >> "$cfgfile" \ 16484 || (rm -f "$cfgfile"; exit 1) 16485 16486 mv -f "$cfgfile" "$ofile" || 16487 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16488 chmod +x "$ofile" 16489 16490 ;; 16491 16492 esac 16493done # for ac_tag 16494 16495 16496as_fn_exit 0 16497_ACEOF 16498ac_clean_files=$ac_clean_files_save 16499 16500test $ac_write_fail = 0 || 16501 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16502 16503 16504# configure is writing to config.log, and then calls config.status. 16505# config.status does its own redirection, appending to config.log. 16506# Unfortunately, on DOS this fails, as config.log is still kept open 16507# by configure, so config.status won't be able to write to it; its 16508# output is simply discarded. So we exec the FD to /dev/null, 16509# effectively closing config.log, so it can be properly (re)opened and 16510# appended to by config.status. When coming back to configure, we 16511# need to make the FD available again. 16512if test "$no_create" != yes; then 16513 ac_cs_success=: 16514 ac_config_status_args= 16515 test "$silent" = yes && 16516 ac_config_status_args="$ac_config_status_args --quiet" 16517 exec 5>/dev/null 16518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16519 exec 5>>config.log 16520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16521 # would make configure fail if this is the last instruction. 16522 $ac_cs_success || as_fn_exit 1 16523fi 16524if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16526$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16527fi 16528 16529