1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for iperf 3.9. 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 bug-autoconf@gnu.org 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.9' 594PACKAGE_STRING='iperf 3.9' 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 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL 761am__quote' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_static_bin 766enable_silent_rules 767enable_shared 768enable_static 769with_pic 770enable_fast_install 771with_aix_soname 772enable_dependency_tracking 773with_gnu_ld 774with_sysroot 775enable_libtool_lock 776enable_maintainer_mode 777enable_profiling 778with_sctp 779with_openssl 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789LT_SYS_LIBRARY_PATH 790CPP' 791 792 793# Initialize some variables set by options. 794ac_init_help= 795ac_init_version=false 796ac_unrecognized_opts= 797ac_unrecognized_sep= 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid package name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"with_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1177Try \`$0 --help' for more information" 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 as_fn_error $? "missing argument to $ac_option" 1204fi 1205 1206if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 elif test "x$build_alias" != "x$host_alias"; then 1247 cross_compiling=yes 1248 fi 1249fi 1250 1251ac_tool_prefix= 1252test -n "$host_alias" && ac_tool_prefix=$host_alias- 1253 1254test "$silent" = yes && exec 6>/dev/null 1255 1256 1257ac_pwd=`pwd` && test -n "$ac_pwd" && 1258ac_ls_di=`ls -di .` && 1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1260 as_fn_error $? "working directory cannot be determined" 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262 as_fn_error $? "pwd does not report name of working directory" 1263 1264 1265# Find the source files, if location was not specified. 1266if test -z "$srcdir"; then 1267 ac_srcdir_defaulted=yes 1268 # Try the directory containing this script, then the parent directory. 1269 ac_confdir=`$as_dirname -- "$as_myself" || 1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271 X"$as_myself" : 'X\(//\)[^/]' \| \ 1272 X"$as_myself" : 'X\(//\)$' \| \ 1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274$as_echo X"$as_myself" | 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)[^/].*/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\).*/{ 1288 s//\1/ 1289 q 1290 } 1291 s/.*/./; q'` 1292 srcdir=$ac_confdir 1293 if test ! -r "$srcdir/$ac_unique_file"; then 1294 srcdir=.. 1295 fi 1296else 1297 ac_srcdir_defaulted=no 1298fi 1299if test ! -r "$srcdir/$ac_unique_file"; then 1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1302fi 1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304ac_abs_confdir=`( 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1306 pwd)` 1307# When building in place, set srcdir=. 1308if test "$ac_abs_confdir" = "$ac_pwd"; then 1309 srcdir=. 1310fi 1311# Remove unnecessary trailing slashes from srcdir. 1312# Double slashes in file names in object file debugging info 1313# mess up M-x gdb in Emacs. 1314case $srcdir in 1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316esac 1317for ac_var in $ac_precious_vars; do 1318 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_env_${ac_var}_value=\$${ac_var} 1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322done 1323 1324# 1325# Report the --help message. 1326# 1327if test "$ac_init_help" = "long"; then 1328 # Omit some internal or obsolete options to make the list less imposing. 1329 # This message is too long to be a string in the A/UX 3.1 sh. 1330 cat <<_ACEOF 1331\`configure' configures iperf 3.9 to adapt to many kinds of systems. 1332 1333Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1335To assign environment variables (e.g., CC, CFLAGS...), specify them as 1336VAR=VALUE. See below for descriptions of some of the useful variables. 1337 1338Defaults for the options are specified in brackets. 1339 1340Configuration: 1341 -h, --help display this help and exit 1342 --help=short display options specific to this package 1343 --help=recursive display the short help of all the included packages 1344 -V, --version display version information and exit 1345 -q, --quiet, --silent do not print \`checking ...' messages 1346 --cache-file=FILE cache test results in FILE [disabled] 1347 -C, --config-cache alias for \`--cache-file=config.cache' 1348 -n, --no-create do not create output files 1349 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350 1351Installation directories: 1352 --prefix=PREFIX install architecture-independent files in PREFIX 1353 [$ac_default_prefix] 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355 [PREFIX] 1356 1357By default, \`make install' will install all the files in 1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360for instance \`--prefix=\$HOME'. 1361 1362For better control, use the options below. 1363 1364Fine tuning of the installation directories: 1365 --bindir=DIR user executables [EPREFIX/bin] 1366 --sbindir=DIR system admin executables [EPREFIX/sbin] 1367 --libexecdir=DIR program executables [EPREFIX/libexec] 1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384_ACEOF 1385 1386 cat <<\_ACEOF 1387 1388Program names: 1389 --program-prefix=PREFIX prepend PREFIX to installed program names 1390 --program-suffix=SUFFIX append SUFFIX to installed program names 1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392 1393System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396_ACEOF 1397fi 1398 1399if test -n "$ac_init_help"; then 1400 case $ac_init_help in 1401 short | recursive ) echo "Configuration of iperf 3.9:";; 1402 esac 1403 cat <<\_ACEOF 1404 1405Optional Features: 1406 --disable-option-checking ignore unrecognized --enable/--with options 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --enable-static-bin link iperf3 binary statically 1410 --enable-silent-rules less verbose build output (undo: "make V=1") 1411 --disable-silent-rules verbose build output (undo: "make V=0") 1412 --enable-shared[=PKGS] build shared libraries [default=yes] 1413 --enable-static[=PKGS] build static libraries [default=yes] 1414 --enable-fast-install[=PKGS] 1415 optimize for fast installation [default=yes] 1416 --enable-dependency-tracking 1417 do not reject slow dependency extractors 1418 --disable-dependency-tracking 1419 speeds up one-time build 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 --enable-maintainer-mode 1422 enable make rules and dependencies not useful (and 1423 sometimes confusing) to the casual installer 1424 --enable-profiling Enable iperf3 profiling binary 1425 1426Optional Packages: 1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1429 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1430 both] 1431 --with-aix-soname=aix|svr4|both 1432 shared library versioning (aka "SONAME") variant to 1433 provide on AIX, [default=aix]. 1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1435 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1436 compiler's sysroot if not specified). 1437 --without-sctp disable SCTP 1438 --with-openssl=DIR root of the OpenSSL directory 1439 1440Some influential environment variables: 1441 CC C compiler command 1442 CFLAGS C compiler flags 1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1444 nonstandard directory <lib dir> 1445 LIBS libraries to pass to the linker, e.g. -l<library> 1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 LT_SYS_LIBRARY_PATH 1449 User-defined run-time library search path. 1450 CPP C preprocessor 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <https://github.com/esnet/iperf>. 1456iperf home page: <https://software.es.net/iperf/>. 1457_ACEOF 1458ac_status=$? 1459fi 1460 1461if test "$ac_init_help" = "recursive"; then 1462 # If there are subdirs, report their specific --help. 1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1464 test -d "$ac_dir" || 1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1466 continue 1467 ac_builddir=. 1468 1469case "$ac_dir" in 1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471*) 1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1473 # A ".." for each directory in $ac_dir_suffix. 1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1475 case $ac_top_builddir_sub in 1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1478 esac ;; 1479esac 1480ac_abs_top_builddir=$ac_pwd 1481ac_abs_builddir=$ac_pwd$ac_dir_suffix 1482# for backward compatibility: 1483ac_top_builddir=$ac_top_build_prefix 1484 1485case $srcdir in 1486 .) # We are building in place. 1487 ac_srcdir=. 1488 ac_top_srcdir=$ac_top_builddir_sub 1489 ac_abs_top_srcdir=$ac_pwd ;; 1490 [\\/]* | ?:[\\/]* ) # Absolute name. 1491 ac_srcdir=$srcdir$ac_dir_suffix; 1492 ac_top_srcdir=$srcdir 1493 ac_abs_top_srcdir=$srcdir ;; 1494 *) # Relative name. 1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1496 ac_top_srcdir=$ac_top_build_prefix$srcdir 1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1498esac 1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1500 1501 cd "$ac_dir" || { ac_status=$?; continue; } 1502 # Check for guested configure. 1503 if test -f "$ac_srcdir/configure.gnu"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1506 elif test -f "$ac_srcdir/configure"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure" --help=recursive 1509 else 1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1511 fi || ac_status=$? 1512 cd "$ac_pwd" || { ac_status=$?; break; } 1513 done 1514fi 1515 1516test -n "$ac_init_help" && exit $ac_status 1517if $ac_init_version; then 1518 cat <<\_ACEOF 1519iperf configure 3.9 1520generated by GNU Autoconf 2.69 1521 1522Copyright (C) 2012 Free Software Foundation, Inc. 1523This configure script is free software; the Free Software Foundation 1524gives unlimited permission to copy, distribute and modify it. 1525_ACEOF 1526 exit 1527fi 1528 1529## ------------------------ ## 1530## Autoconf initialization. ## 1531## ------------------------ ## 1532 1533# ac_fn_c_try_compile LINENO 1534# -------------------------- 1535# Try to compile conftest.$ac_ext, and return whether this succeeded. 1536ac_fn_c_try_compile () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext 1540 if { { ac_try="$ac_compile" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_compile") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest.$ac_objext; then : 1559 ac_retval=0 1560else 1561 $as_echo "$as_me: failed program was:" >&5 1562sed 's/^/| /' conftest.$ac_ext >&5 1563 1564 ac_retval=1 1565fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_compile 1570 1571# ac_fn_c_try_link LINENO 1572# ----------------------- 1573# Try to link conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_link () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 rm -f conftest.$ac_objext conftest$ac_exeext 1578 if { { ac_try="$ac_link" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_link") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } && { 1594 test -z "$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 } && test -s conftest$ac_exeext && { 1597 test "$cross_compiling" = yes || 1598 test -x conftest$ac_exeext 1599 }; then : 1600 ac_retval=0 1601else 1602 $as_echo "$as_me: failed program was:" >&5 1603sed 's/^/| /' conftest.$ac_ext >&5 1604 1605 ac_retval=1 1606fi 1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1609 # interfere with the next link command; also delete a directory that is 1610 # left behind by Apple's compiler. We do this before executing the actions. 1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615} # ac_fn_c_try_link 1616 1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1618# ------------------------------------------------------- 1619# Tests whether HEADER exists and can be compiled using the include files in 1620# INCLUDES, setting the cache variable VAR accordingly. 1621ac_fn_c_check_header_compile () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1625$as_echo_n "checking for $2... " >&6; } 1626if eval \${$3+:} false; then : 1627 $as_echo_n "(cached) " >&6 1628else 1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1630/* end confdefs.h. */ 1631$4 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_compile "$LINENO"; then : 1635 eval "$3=yes" 1636else 1637 eval "$3=no" 1638fi 1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1640fi 1641eval ac_res=\$$3 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1643$as_echo "$ac_res" >&6; } 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 1646} # ac_fn_c_check_header_compile 1647 1648# ac_fn_c_try_cpp LINENO 1649# ---------------------- 1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1651ac_fn_c_try_cpp () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 if { { ac_try="$ac_cpp conftest.$ac_ext" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } > conftest.i && { 1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 }; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_cpp 1684 1685# ac_fn_c_try_run LINENO 1686# ---------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1688# that executables *can* be run. 1689ac_fn_c_try_run () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>&5 1700 ac_status=$? 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1703 { { case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_try") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; }; }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: program exited with status $ac_status" >&5 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=$ac_status 1720fi 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_run 1726 1727# ac_fn_c_check_func LINENO FUNC VAR 1728# ---------------------------------- 1729# Tests whether FUNC exists, setting the cache variable VAR accordingly 1730ac_fn_c_check_func () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if eval \${$3+:} false; then : 1736 $as_echo_n "(cached) " >&6 1737else 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1742#define $2 innocuous_$2 1743 1744/* System header to define __stub macros and hopefully few prototypes, 1745 which can conflict with char $2 (); below. 1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1747 <limits.h> exists even on freestanding compilers. */ 1748 1749#ifdef __STDC__ 1750# include <limits.h> 1751#else 1752# include <assert.h> 1753#endif 1754 1755#undef $2 1756 1757/* Override any GCC internal prototype to avoid an error. 1758 Use char because int might match the return type of a GCC 1759 builtin and then its argument prototype would still apply. */ 1760#ifdef __cplusplus 1761extern "C" 1762#endif 1763char $2 (); 1764/* The GNU C library defines this for functions which it implements 1765 to always fail with ENOSYS. Some functions are actually named 1766 something starting with __ and the normal name is an alias. */ 1767#if defined __stub_$2 || defined __stub___$2 1768choke me 1769#endif 1770 1771int 1772main () 1773{ 1774return $2 (); 1775 ; 1776 return 0; 1777} 1778_ACEOF 1779if ac_fn_c_try_link "$LINENO"; then : 1780 eval "$3=yes" 1781else 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext \ 1785 conftest$ac_exeext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_func 1793 1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1795# ------------------------------------------------------- 1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1797# the include files in INCLUDES and setting the cache variable VAR 1798# accordingly. 1799ac_fn_c_check_header_mongrel () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if eval \${$3+:} false; then : 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807fi 1808eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810$as_echo "$ac_res" >&6; } 1811else 1812 # Is the header compilable? 1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1814$as_echo_n "checking $2 usability... " >&6; } 1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817$4 1818#include <$2> 1819_ACEOF 1820if ac_fn_c_try_compile "$LINENO"; then : 1821 ac_header_compiler=yes 1822else 1823 ac_header_compiler=no 1824fi 1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1827$as_echo "$ac_header_compiler" >&6; } 1828 1829# Is the header present? 1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1831$as_echo_n "checking $2 presence... " >&6; } 1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834#include <$2> 1835_ACEOF 1836if ac_fn_c_try_cpp "$LINENO"; then : 1837 ac_header_preproc=yes 1838else 1839 ac_header_preproc=no 1840fi 1841rm -f conftest.err conftest.i conftest.$ac_ext 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1843$as_echo "$ac_header_preproc" >&6; } 1844 1845# So? What about this header? 1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1847 yes:no: ) 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1852 ;; 1853 no:yes:* ) 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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( $as_echo "## --------------------------------------------- ## 1865## Report this to https://github.com/esnet/iperf ## 1866## --------------------------------------------- ##" 1867 ) | sed "s/^/$as_me: WARNING: /" >&2 1868 ;; 1869esac 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 eval "$3=\$ac_header_compiler" 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_header_mongrel 1884cat >config.log <<_ACEOF 1885This file contains any messages produced by compilers while 1886running configure, to aid debugging if configure makes a mistake. 1887 1888It was created by iperf $as_me 3.9, which was 1889generated by GNU Autoconf 2.69. Invocation command line was 1890 1891 $ $0 $@ 1892 1893_ACEOF 1894exec 5>>config.log 1895{ 1896cat <<_ASUNAME 1897## --------- ## 1898## Platform. ## 1899## --------- ## 1900 1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1902uname -m = `(uname -m) 2>/dev/null || echo unknown` 1903uname -r = `(uname -r) 2>/dev/null || echo unknown` 1904uname -s = `(uname -s) 2>/dev/null || echo unknown` 1905uname -v = `(uname -v) 2>/dev/null || echo unknown` 1906 1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1909 1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1917 1918_ASUNAME 1919 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 $as_echo "PATH: $as_dir" 1926 done 1927IFS=$as_save_IFS 1928 1929} >&5 1930 1931cat >&5 <<_ACEOF 1932 1933 1934## ----------- ## 1935## Core tests. ## 1936## ----------- ## 1937 1938_ACEOF 1939 1940 1941# Keep a trace of the command line. 1942# Strip out --no-create and --no-recursion so they do not pile up. 1943# Strip out --silent because we don't want to record it for future runs. 1944# Also quote any args containing shell meta-characters. 1945# Make two passes to allow for proper duplicate-argument suppression. 1946ac_configure_args= 1947ac_configure_args0= 1948ac_configure_args1= 1949ac_must_keep_next=false 1950for ac_pass in 1 2 1951do 1952 for ac_arg 1953 do 1954 case $ac_arg in 1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1957 | -silent | --silent | --silen | --sile | --sil) 1958 continue ;; 1959 *\'*) 1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 esac 1962 case $ac_pass in 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1964 2) 1965 as_fn_append ac_configure_args1 " '$ac_arg'" 1966 if test $ac_must_keep_next = true; then 1967 ac_must_keep_next=false # Got value, back to normal. 1968 else 1969 case $ac_arg in 1970 *=* | --config-cache | -C | -disable-* | --disable-* \ 1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1973 | -with-* | --with-* | -without-* | --without-* | --x) 1974 case "$ac_configure_args0 " in 1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1976 esac 1977 ;; 1978 -* ) ac_must_keep_next=true ;; 1979 esac 1980 fi 1981 as_fn_append ac_configure_args " '$ac_arg'" 1982 ;; 1983 esac 1984 done 1985done 1986{ ac_configure_args0=; unset ac_configure_args0;} 1987{ ac_configure_args1=; unset ac_configure_args1;} 1988 1989# When interrupted or exit'd, cleanup temporary files, and complete 1990# config.log. We remove comments because anyway the quotes in there 1991# would cause problems or look ugly. 1992# WARNING: Use '\'' to represent an apostrophe within the trap. 1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1994trap 'exit_status=$? 1995 # Save into config.log some information that might help in debugging. 1996 { 1997 echo 1998 1999 $as_echo "## ---------------- ## 2000## Cache variables. ## 2001## ---------------- ##" 2002 echo 2003 # The following way of writing the cache mishandles newlines in values, 2004( 2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in #( 2008 *${as_nl}*) 2009 case $ac_var in #( 2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2012 esac 2013 case $ac_var in #( 2014 _ | IFS | as_nl) ;; #( 2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2016 *) { eval $ac_var=; unset $ac_var;} ;; 2017 esac ;; 2018 esac 2019 done 2020 (set) 2>&1 | 2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2022 *${as_nl}ac_space=\ *) 2023 sed -n \ 2024 "s/'\''/'\''\\\\'\'''\''/g; 2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2026 ;; #( 2027 *) 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2029 ;; 2030 esac | 2031 sort 2032) 2033 echo 2034 2035 $as_echo "## ----------------- ## 2036## Output variables. ## 2037## ----------------- ##" 2038 echo 2039 for ac_var in $ac_subst_vars 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 2049 if test -n "$ac_subst_files"; then 2050 $as_echo "## ------------------- ## 2051## File substitutions. ## 2052## ------------------- ##" 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 $as_echo "## ----------- ## 2067## confdefs.h. ## 2068## ----------- ##" 2069 echo 2070 cat confdefs.h 2071 echo 2072 fi 2073 test "$ac_signal" != 0 && 2074 $as_echo "$as_me: caught signal $ac_signal" 2075 $as_echo "$as_me: exit $exit_status" 2076 } >&5 2077 rm -f core *.core core.conftest.* && 2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2079 exit $exit_status 2080' 0 2081for ac_signal in 1 2 13 15; do 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2083done 2084ac_signal=0 2085 2086# confdefs.h avoids OS command line length limits that DEFS can exceed. 2087rm -f -r conftest* confdefs.h 2088 2089$as_echo "/* confdefs.h */" > confdefs.h 2090 2091# Predefined preprocessor variables. 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_NAME "$PACKAGE_NAME" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_VERSION "$PACKAGE_VERSION" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_STRING "$PACKAGE_STRING" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2111_ACEOF 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_URL "$PACKAGE_URL" 2115_ACEOF 2116 2117 2118# Let the site file select an alternate cache file if it wants to. 2119# Prefer an explicitly selected file to automatically selected ones. 2120ac_site_file1=NONE 2121ac_site_file2=NONE 2122if test -n "$CONFIG_SITE"; then 2123 # We do not want a PATH search for config.site. 2124 case $CONFIG_SITE in #(( 2125 -*) ac_site_file1=./$CONFIG_SITE;; 2126 */*) ac_site_file1=$CONFIG_SITE;; 2127 *) ac_site_file1=./$CONFIG_SITE;; 2128 esac 2129elif test "x$prefix" != xNONE; then 2130 ac_site_file1=$prefix/share/config.site 2131 ac_site_file2=$prefix/etc/config.site 2132else 2133 ac_site_file1=$ac_default_prefix/share/config.site 2134 ac_site_file2=$ac_default_prefix/etc/config.site 2135fi 2136for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2137do 2138 test "x$ac_site_file" = xNONE && continue 2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2141$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2142 sed 's/^/| /' "$ac_site_file" >&5 2143 . "$ac_site_file" \ 2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2146as_fn_error $? "failed to load site script $ac_site_file 2147See \`config.log' for more details" "$LINENO" 5; } 2148 fi 2149done 2150 2151if test -r "$cache_file"; then 2152 # Some versions of bash will fail to source /dev/null (special files 2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2156$as_echo "$as_me: loading cache $cache_file" >&6;} 2157 case $cache_file in 2158 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2159 *) . "./$cache_file";; 2160 esac 2161 fi 2162else 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2164$as_echo "$as_me: creating cache $cache_file" >&6;} 2165 >$cache_file 2166fi 2167 2168# Check that the precious variables saved in the cache have kept the same 2169# value. 2170ac_cache_corrupted=false 2171for ac_var in $ac_precious_vars; do 2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2173 eval ac_new_set=\$ac_env_${ac_var}_set 2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2175 eval ac_new_val=\$ac_env_${ac_var}_value 2176 case $ac_old_set,$ac_new_set in 2177 set,) 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2180 ac_cache_corrupted=: ;; 2181 ,set) 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2184 ac_cache_corrupted=: ;; 2185 ,);; 2186 *) 2187 if test "x$ac_old_val" != "x$ac_new_val"; then 2188 # differences in whitespace do not lead to failure. 2189 ac_old_val_w=`echo x $ac_old_val` 2190 ac_new_val_w=`echo x $ac_new_val` 2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2194 ac_cache_corrupted=: 2195 else 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2198 eval $ac_var=\$ac_old_val 2199 fi 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2204 fi;; 2205 esac 2206 # Pass precious variables to config.status. 2207 if test "$ac_new_set" = set; then 2208 case $ac_new_val in 2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2210 *) ac_arg=$ac_var=$ac_new_val ;; 2211 esac 2212 case " $ac_configure_args " in 2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2215 esac 2216 fi 2217done 2218if $ac_cache_corrupted; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2224fi 2225## -------------------- ## 2226## Main body of script. ## 2227## -------------------- ## 2228 2229ac_ext=c 2230ac_cpp='$CPP $CPPFLAGS' 2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2233ac_compiler_gnu=$ac_cv_c_compiler_gnu 2234 2235 2236# =========================================================================== 2237# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html 2238# =========================================================================== 2239# 2240# SYNOPSIS 2241# 2242# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) 2243# 2244# DESCRIPTION 2245# 2246# Look for OpenSSL in a number of default spots, or in a user-selected 2247# spot (via --with-openssl). Sets 2248# 2249# OPENSSL_INCLUDES to the include directives required 2250# OPENSSL_LIBS to the -l directives required 2251# OPENSSL_LDFLAGS to the -L or -R flags required 2252# 2253# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately 2254# 2255# This macro sets OPENSSL_INCLUDES such that source files should use the 2256# openssl/ directory in include directives: 2257# 2258# #include <openssl/hmac.h> 2259# 2260# LICENSE 2261# 2262# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/> 2263# Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com> 2264# 2265# Copying and distribution of this file, with or without modification, are 2266# permitted in any medium without royalty provided the copyright notice 2267# and this notice are preserved. This file is offered as-is, without any 2268# warranty. 2269 2270#serial 10 2271 2272# This is what autoupdate's m4 run will expand. It fires 2273# the warning (with _au_warn_XXX), outputs it into the 2274# updated configure.ac (with AC_DIAGNOSE), and then outputs 2275# the replacement expansion. 2276 2277 2278# This is an auxiliary macro that is also run when 2279# autoupdate runs m4. It simply calls m4_warning, but 2280# we need a wrapper so that each warning is emitted only 2281# once. We break the quoting in m4_warning's argument in 2282# order to expand this macro's arguments, not AU_DEFUN's. 2283 2284 2285# Finally, this is the expansion that is picked up by 2286# autoconf. It tells the user to run autoupdate, and 2287# then outputs the replacement expansion. We do not care 2288# about autoupdate's warning because that contains 2289# information on what to do *after* running autoupdate. 2290 2291 2292 2293# Also link binaries as static 2294# Check whether --enable-static-bin was given. 2295if test "${enable_static_bin+set}" = set; then : 2296 enableval=$enable_static_bin; enable_static=yes 2297 enable_shared=no 2298 enable_static_bin=yes 2299else 2300 : 2301fi 2302 2303 if test x$enable_static_bin = xno; then 2304 ENABLE_STATIC_BIN_TRUE= 2305 ENABLE_STATIC_BIN_FALSE='#' 2306else 2307 ENABLE_STATIC_BIN_TRUE='#' 2308 ENABLE_STATIC_BIN_FALSE= 2309fi 2310 2311 2312if test "x$enable_static_bin" == xyes; then : 2313 LDFLAGS="$LDFLAGS --static" 2314 2315fi 2316 2317ac_ext=c 2318ac_cpp='$CPP $CPPFLAGS' 2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2321ac_compiler_gnu=$ac_cv_c_compiler_gnu 2322 2323 2324# Specify where the auxiliary files created by configure should go. The config 2325# directory is picked so that they don't clutter up more useful directories. 2326ac_aux_dir= 2327for ac_dir in config "$srcdir"/config; do 2328 if test -f "$ac_dir/install-sh"; then 2329 ac_aux_dir=$ac_dir 2330 ac_install_sh="$ac_aux_dir/install-sh -c" 2331 break 2332 elif test -f "$ac_dir/install.sh"; then 2333 ac_aux_dir=$ac_dir 2334 ac_install_sh="$ac_aux_dir/install.sh -c" 2335 break 2336 elif test -f "$ac_dir/shtool"; then 2337 ac_aux_dir=$ac_dir 2338 ac_install_sh="$ac_aux_dir/shtool install -c" 2339 break 2340 fi 2341done 2342if test -z "$ac_aux_dir"; then 2343 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2344fi 2345 2346# These three variables are undocumented and unsupported, 2347# and are intended to be withdrawn in a future Autoconf release. 2348# They can cause serious problems if a builder's source tree is in a directory 2349# whose full name contains unusual characters. 2350ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2351ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2352ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2353 2354 2355 2356 2357# Initialize the automake system 2358am__api_version='1.16' 2359 2360# Find a good install program. We prefer a C program (faster), 2361# so one script is as good as another. But avoid the broken or 2362# incompatible versions: 2363# SysV /etc/install, /usr/sbin/install 2364# SunOS /usr/etc/install 2365# IRIX /sbin/install 2366# AIX /bin/install 2367# AmigaOS /C/install, which installs bootblocks on floppy discs 2368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2369# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2371# OS/2's system install, which has a completely different semantic 2372# ./install, which can be erroneously created by make from ./install.sh. 2373# Reject install programs that cannot install multiple files. 2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2375$as_echo_n "checking for a BSD-compatible install... " >&6; } 2376if test -z "$INSTALL"; then 2377if ${ac_cv_path_install+:} false; then : 2378 $as_echo_n "(cached) " >&6 2379else 2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2381for as_dir in $PATH 2382do 2383 IFS=$as_save_IFS 2384 test -z "$as_dir" && as_dir=. 2385 # Account for people who put trailing slashes in PATH elements. 2386case $as_dir/ in #(( 2387 ./ | .// | /[cC]/* | \ 2388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2389 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2390 /usr/ucb/* ) ;; 2391 *) 2392 # OSF1 and SCO ODT 3.0 have their own names for install. 2393 # Don't use installbsd from OSF since it installs stuff as root 2394 # by default. 2395 for ac_prog in ginstall scoinst install; do 2396 for ac_exec_ext in '' $ac_executable_extensions; do 2397 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2398 if test $ac_prog = install && 2399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2400 # AIX install. It has an incompatible calling convention. 2401 : 2402 elif test $ac_prog = install && 2403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2404 # program-specific install script used by HP pwplus--don't use. 2405 : 2406 else 2407 rm -rf conftest.one conftest.two conftest.dir 2408 echo one > conftest.one 2409 echo two > conftest.two 2410 mkdir conftest.dir 2411 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2412 test -s conftest.one && test -s conftest.two && 2413 test -s conftest.dir/conftest.one && 2414 test -s conftest.dir/conftest.two 2415 then 2416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2417 break 3 2418 fi 2419 fi 2420 fi 2421 done 2422 done 2423 ;; 2424esac 2425 2426 done 2427IFS=$as_save_IFS 2428 2429rm -rf conftest.one conftest.two conftest.dir 2430 2431fi 2432 if test "${ac_cv_path_install+set}" = set; then 2433 INSTALL=$ac_cv_path_install 2434 else 2435 # As a last resort, use the slow shell script. Don't cache a 2436 # value for INSTALL within a source directory, because that will 2437 # break other packages using the cache if that directory is 2438 # removed, or if the value is a relative name. 2439 INSTALL=$ac_install_sh 2440 fi 2441fi 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2443$as_echo "$INSTALL" >&6; } 2444 2445# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2446# It thinks the first close brace ends the variable substitution. 2447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2448 2449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2450 2451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2452 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2454$as_echo_n "checking whether build environment is sane... " >&6; } 2455# Reject unsafe characters in $srcdir or the absolute working directory 2456# name. Accept space and tab only in the latter. 2457am_lf=' 2458' 2459case `pwd` in 2460 *[\\\"\#\$\&\'\`$am_lf]*) 2461 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2462esac 2463case $srcdir in 2464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2465 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2466esac 2467 2468# Do 'set' in a subshell so we don't clobber the current shell's 2469# arguments. Must try -L first in case configure is actually a 2470# symlink; some systems play weird games with the mod time of symlinks 2471# (eg FreeBSD returns the mod time of the symlink's containing 2472# directory). 2473if ( 2474 am_has_slept=no 2475 for am_try in 1 2; do 2476 echo "timestamp, slept: $am_has_slept" > conftest.file 2477 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2478 if test "$*" = "X"; then 2479 # -L didn't work. 2480 set X `ls -t "$srcdir/configure" conftest.file` 2481 fi 2482 if test "$*" != "X $srcdir/configure conftest.file" \ 2483 && test "$*" != "X conftest.file $srcdir/configure"; then 2484 2485 # If neither matched, then we have a broken ls. This can happen 2486 # if, for instance, CONFIG_SHELL is bash and it inherits a 2487 # broken ls alias from the environment. This has actually 2488 # happened. Such a system could not be considered "sane". 2489 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2490 alias in your environment" "$LINENO" 5 2491 fi 2492 if test "$2" = conftest.file || test $am_try -eq 2; then 2493 break 2494 fi 2495 # Just in case. 2496 sleep 1 2497 am_has_slept=yes 2498 done 2499 test "$2" = conftest.file 2500 ) 2501then 2502 # Ok. 2503 : 2504else 2505 as_fn_error $? "newly created file is older than distributed files! 2506Check your system clock" "$LINENO" 5 2507fi 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2509$as_echo "yes" >&6; } 2510# If we didn't sleep, we still need to ensure time stamps of config.status and 2511# generated files are strictly newer. 2512am_sleep_pid= 2513if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2514 ( sleep 1 ) & 2515 am_sleep_pid=$! 2516fi 2517 2518rm -f conftest.file 2519 2520test "$program_prefix" != NONE && 2521 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2522# Use a double $ so make ignores it. 2523test "$program_suffix" != NONE && 2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2525# Double any \ or $. 2526# By default was `s,x,x', remove it if useless. 2527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2529 2530# Expand $ac_aux_dir to an absolute path. 2531am_aux_dir=`cd "$ac_aux_dir" && pwd` 2532 2533if test x"${MISSING+set}" != xset; then 2534 case $am_aux_dir in 2535 *\ * | *\ *) 2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2537 *) 2538 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2539 esac 2540fi 2541# Use eval to expand $SHELL 2542if eval "$MISSING --is-lightweight"; then 2543 am_missing_run="$MISSING " 2544else 2545 am_missing_run= 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2547$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2548fi 2549 2550if test x"${install_sh+set}" != xset; then 2551 case $am_aux_dir in 2552 *\ * | *\ *) 2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2554 *) 2555 install_sh="\${SHELL} $am_aux_dir/install-sh" 2556 esac 2557fi 2558 2559# Installed binaries are usually stripped using 'strip' when the user 2560# run "make install-strip". However 'strip' might not be the right 2561# tool to use in cross-compilation environments, therefore Automake 2562# will honor the 'STRIP' environment variable to overrule this program. 2563if test "$cross_compiling" != no; then 2564 if test -n "$ac_tool_prefix"; then 2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2566set dummy ${ac_tool_prefix}strip; ac_word=$2 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2568$as_echo_n "checking for $ac_word... " >&6; } 2569if ${ac_cv_prog_STRIP+:} false; then : 2570 $as_echo_n "(cached) " >&6 2571else 2572 if test -n "$STRIP"; then 2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2574else 2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2576for as_dir in $PATH 2577do 2578 IFS=$as_save_IFS 2579 test -z "$as_dir" && as_dir=. 2580 for ac_exec_ext in '' $ac_executable_extensions; do 2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2584 break 2 2585 fi 2586done 2587 done 2588IFS=$as_save_IFS 2589 2590fi 2591fi 2592STRIP=$ac_cv_prog_STRIP 2593if test -n "$STRIP"; then 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2595$as_echo "$STRIP" >&6; } 2596else 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2598$as_echo "no" >&6; } 2599fi 2600 2601 2602fi 2603if test -z "$ac_cv_prog_STRIP"; then 2604 ac_ct_STRIP=$STRIP 2605 # Extract the first word of "strip", so it can be a program name with args. 2606set dummy strip; ac_word=$2 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2608$as_echo_n "checking for $ac_word... " >&6; } 2609if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2610 $as_echo_n "(cached) " >&6 2611else 2612 if test -n "$ac_ct_STRIP"; then 2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2614else 2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2616for as_dir in $PATH 2617do 2618 IFS=$as_save_IFS 2619 test -z "$as_dir" && as_dir=. 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2622 ac_cv_prog_ac_ct_STRIP="strip" 2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2624 break 2 2625 fi 2626done 2627 done 2628IFS=$as_save_IFS 2629 2630fi 2631fi 2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2633if test -n "$ac_ct_STRIP"; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2635$as_echo "$ac_ct_STRIP" >&6; } 2636else 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2638$as_echo "no" >&6; } 2639fi 2640 2641 if test "x$ac_ct_STRIP" = x; then 2642 STRIP=":" 2643 else 2644 case $cross_compiling:$ac_tool_warned in 2645yes:) 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2648ac_tool_warned=yes ;; 2649esac 2650 STRIP=$ac_ct_STRIP 2651 fi 2652else 2653 STRIP="$ac_cv_prog_STRIP" 2654fi 2655 2656fi 2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2658 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2660$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2661if test -z "$MKDIR_P"; then 2662 if ${ac_cv_path_mkdir+:} false; then : 2663 $as_echo_n "(cached) " >&6 2664else 2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_prog in mkdir gmkdir; do 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2674 'mkdir (GNU coreutils) '* | \ 2675 'mkdir (coreutils) '* | \ 2676 'mkdir (fileutils) '4.1*) 2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2678 break 3;; 2679 esac 2680 done 2681 done 2682 done 2683IFS=$as_save_IFS 2684 2685fi 2686 2687 test -d ./--version && rmdir ./--version 2688 if test "${ac_cv_path_mkdir+set}" = set; then 2689 MKDIR_P="$ac_cv_path_mkdir -p" 2690 else 2691 # As a last resort, use the slow shell script. Don't cache a 2692 # value for MKDIR_P within a source directory, because that will 2693 # break other packages using the cache if that directory is 2694 # removed, or if the value is a relative name. 2695 MKDIR_P="$ac_install_sh -d" 2696 fi 2697fi 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2699$as_echo "$MKDIR_P" >&6; } 2700 2701for ac_prog in gawk mawk nawk awk 2702do 2703 # Extract the first word of "$ac_prog", so it can be a program name with args. 2704set dummy $ac_prog; ac_word=$2 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2706$as_echo_n "checking for $ac_word... " >&6; } 2707if ${ac_cv_prog_AWK+:} false; then : 2708 $as_echo_n "(cached) " >&6 2709else 2710 if test -n "$AWK"; then 2711 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2712else 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 2717 test -z "$as_dir" && as_dir=. 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2720 ac_cv_prog_AWK="$ac_prog" 2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2722 break 2 2723 fi 2724done 2725 done 2726IFS=$as_save_IFS 2727 2728fi 2729fi 2730AWK=$ac_cv_prog_AWK 2731if test -n "$AWK"; then 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2733$as_echo "$AWK" >&6; } 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736$as_echo "no" >&6; } 2737fi 2738 2739 2740 test -n "$AWK" && break 2741done 2742 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2744$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2745set x ${MAKE-make} 2746ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2747if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 cat >conftest.make <<\_ACEOF 2751SHELL = /bin/sh 2752all: 2753 @echo '@@@%%%=$(MAKE)=@@@%%%' 2754_ACEOF 2755# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2756case `${MAKE-make} -f conftest.make 2>/dev/null` in 2757 *@@@%%%=?*=@@@%%%*) 2758 eval ac_cv_prog_make_${ac_make}_set=yes;; 2759 *) 2760 eval ac_cv_prog_make_${ac_make}_set=no;; 2761esac 2762rm -f conftest.make 2763fi 2764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2766$as_echo "yes" >&6; } 2767 SET_MAKE= 2768else 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2770$as_echo "no" >&6; } 2771 SET_MAKE="MAKE=${MAKE-make}" 2772fi 2773 2774rm -rf .tst 2>/dev/null 2775mkdir .tst 2>/dev/null 2776if test -d .tst; then 2777 am__leading_dot=. 2778else 2779 am__leading_dot=_ 2780fi 2781rmdir .tst 2>/dev/null 2782 2783# Check whether --enable-silent-rules was given. 2784if test "${enable_silent_rules+set}" = set; then : 2785 enableval=$enable_silent_rules; 2786fi 2787 2788case $enable_silent_rules in # ((( 2789 yes) AM_DEFAULT_VERBOSITY=0;; 2790 no) AM_DEFAULT_VERBOSITY=1;; 2791 *) AM_DEFAULT_VERBOSITY=1;; 2792esac 2793am_make=${MAKE-make} 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2795$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2796if ${am_cv_make_support_nested_variables+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 if $as_echo 'TRUE=$(BAR$(V)) 2800BAR0=false 2801BAR1=true 2802V=1 2803am__doit: 2804 @$(TRUE) 2805.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2806 am_cv_make_support_nested_variables=yes 2807else 2808 am_cv_make_support_nested_variables=no 2809fi 2810fi 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2812$as_echo "$am_cv_make_support_nested_variables" >&6; } 2813if test $am_cv_make_support_nested_variables = yes; then 2814 AM_V='$(V)' 2815 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2816else 2817 AM_V=$AM_DEFAULT_VERBOSITY 2818 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2819fi 2820AM_BACKSLASH='\' 2821 2822if test "`cd $srcdir && pwd`" != "`pwd`"; then 2823 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2824 # is not polluted with repeated "-I." 2825 am__isrc=' -I$(srcdir)' 2826 # test to see if srcdir already configured 2827 if test -f $srcdir/config.status; then 2828 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2829 fi 2830fi 2831 2832# test whether we have cygpath 2833if test -z "$CYGPATH_W"; then 2834 if (cygpath --version) >/dev/null 2>/dev/null; then 2835 CYGPATH_W='cygpath -w' 2836 else 2837 CYGPATH_W=echo 2838 fi 2839fi 2840 2841 2842# Define the identity of the package. 2843 PACKAGE='iperf' 2844 VERSION='3.9' 2845 2846 2847cat >>confdefs.h <<_ACEOF 2848#define PACKAGE "$PACKAGE" 2849_ACEOF 2850 2851 2852cat >>confdefs.h <<_ACEOF 2853#define VERSION "$VERSION" 2854_ACEOF 2855 2856# Some tools Automake needs. 2857 2858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2859 2860 2861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2862 2863 2864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2865 2866 2867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2868 2869 2870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2871 2872# For better backward compatibility. To be removed once Automake 1.9.x 2873# dies out for good. For more background, see: 2874# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2875# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2876mkdir_p='$(MKDIR_P)' 2877 2878# We need awk for the "check" target (and possibly the TAP driver). The 2879# system "awk" is bad on some platforms. 2880# Always define AMTAR for backward compatibility. Yes, it's still used 2881# in the wild :-( We should find a proper way to deprecate it ... 2882AMTAR='$${TAR-tar}' 2883 2884 2885# We'll loop over all known methods to create a tar archive until one works. 2886_am_tools='gnutar pax cpio none' 2887 2888am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2889 2890 2891 2892 2893 2894 2895# POSIX will say in a future version that running "rm -f" with no argument 2896# is OK; and we want to be able to make that assumption in our Makefile 2897# recipes. So use an aggressive probe to check that the usage we want is 2898# actually supported "in the wild" to an acceptable degree. 2899# See automake bug#10828. 2900# To make any issue more visible, cause the running configure to be aborted 2901# by default if the 'rm' program in use doesn't match our expectations; the 2902# user can still override this though. 2903if rm -f && rm -fr && rm -rf; then : OK; else 2904 cat >&2 <<'END' 2905Oops! 2906 2907Your 'rm' program seems unable to run without file operands specified 2908on the command line, even when the '-f' option is present. This is contrary 2909to the behaviour of most rm programs out there, and not conforming with 2910the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2911 2912Please tell bug-automake@gnu.org about your system, including the value 2913of your $PATH and any error possibly output before this message. This 2914can help us improve future automake versions. 2915 2916END 2917 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2918 echo 'Configuration will proceed anyway, since you have set the' >&2 2919 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2920 echo >&2 2921 else 2922 cat >&2 <<'END' 2923Aborting the configuration process, to ensure you take notice of the issue. 2924 2925You can download and install GNU coreutils to get an 'rm' implementation 2926that behaves properly: <https://www.gnu.org/software/coreutils/>. 2927 2928If you want to complete the configuration process using your problematic 2929'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2930to "yes", and re-run configure. 2931 2932END 2933 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2934 fi 2935fi 2936 2937# Check whether --enable-silent-rules was given. 2938if test "${enable_silent_rules+set}" = set; then : 2939 enableval=$enable_silent_rules; 2940fi 2941 2942case $enable_silent_rules in # ((( 2943 yes) AM_DEFAULT_VERBOSITY=0;; 2944 no) AM_DEFAULT_VERBOSITY=1;; 2945 *) AM_DEFAULT_VERBOSITY=0;; 2946esac 2947am_make=${MAKE-make} 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2949$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2950if ${am_cv_make_support_nested_variables+:} false; then : 2951 $as_echo_n "(cached) " >&6 2952else 2953 if $as_echo 'TRUE=$(BAR$(V)) 2954BAR0=false 2955BAR1=true 2956V=1 2957am__doit: 2958 @$(TRUE) 2959.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2960 am_cv_make_support_nested_variables=yes 2961else 2962 am_cv_make_support_nested_variables=no 2963fi 2964fi 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2966$as_echo "$am_cv_make_support_nested_variables" >&6; } 2967if test $am_cv_make_support_nested_variables = yes; then 2968 AM_V='$(V)' 2969 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2970else 2971 AM_V=$AM_DEFAULT_VERBOSITY 2972 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2973fi 2974AM_BACKSLASH='\' 2975 2976case `pwd` in 2977 *\ * | *\ *) 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2979$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2980esac 2981 2982 2983 2984macro_version='2.4.6' 2985macro_revision='2.4.6' 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999ltmain=$ac_aux_dir/ltmain.sh 3000 3001# Make sure we can run config.sub. 3002$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3003 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3004 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3006$as_echo_n "checking build system type... " >&6; } 3007if ${ac_cv_build+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 ac_build_alias=$build_alias 3011test "x$ac_build_alias" = x && 3012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3013test "x$ac_build_alias" = x && 3014 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3015ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3016 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3017 3018fi 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3020$as_echo "$ac_cv_build" >&6; } 3021case $ac_cv_build in 3022*-*-*) ;; 3023*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3024esac 3025build=$ac_cv_build 3026ac_save_IFS=$IFS; IFS='-' 3027set x $ac_cv_build 3028shift 3029build_cpu=$1 3030build_vendor=$2 3031shift; shift 3032# Remember, the first character of IFS is used to create $*, 3033# except with old shells: 3034build_os=$* 3035IFS=$ac_save_IFS 3036case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3037 3038 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3040$as_echo_n "checking host system type... " >&6; } 3041if ${ac_cv_host+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043else 3044 if test "x$host_alias" = x; then 3045 ac_cv_host=$ac_cv_build 3046else 3047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3048 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3049fi 3050 3051fi 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3053$as_echo "$ac_cv_host" >&6; } 3054case $ac_cv_host in 3055*-*-*) ;; 3056*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3057esac 3058host=$ac_cv_host 3059ac_save_IFS=$IFS; IFS='-' 3060set x $ac_cv_host 3061shift 3062host_cpu=$1 3063host_vendor=$2 3064shift; shift 3065# Remember, the first character of IFS is used to create $*, 3066# except with old shells: 3067host_os=$* 3068IFS=$ac_save_IFS 3069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3070 3071 3072# Backslashify metacharacters that are still active within 3073# double-quoted strings. 3074sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3075 3076# Same as above, but do not quote variable references. 3077double_quote_subst='s/\(["`\\]\)/\\\1/g' 3078 3079# Sed substitution to delay expansion of an escaped shell variable in a 3080# double_quote_subst'ed string. 3081delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3082 3083# Sed substitution to delay expansion of an escaped single quote. 3084delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3085 3086# Sed substitution to avoid accidental globbing in evaled expressions 3087no_glob_subst='s/\*/\\\*/g' 3088 3089ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3090ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3091ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3092 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3094$as_echo_n "checking how to print strings... " >&6; } 3095# Test print first, because it will be a builtin if present. 3096if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3097 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3098 ECHO='print -r --' 3099elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3100 ECHO='printf %s\n' 3101else 3102 # Use this function as a fallback that always works. 3103 func_fallback_echo () 3104 { 3105 eval 'cat <<_LTECHO_EOF 3106$1 3107_LTECHO_EOF' 3108 } 3109 ECHO='func_fallback_echo' 3110fi 3111 3112# func_echo_all arg... 3113# Invoke $ECHO with all args, space-separated. 3114func_echo_all () 3115{ 3116 $ECHO "" 3117} 3118 3119case $ECHO in 3120 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3121$as_echo "printf" >&6; } ;; 3122 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3123$as_echo "print -r" >&6; } ;; 3124 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3125$as_echo "cat" >&6; } ;; 3126esac 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141DEPDIR="${am__leading_dot}deps" 3142 3143ac_config_commands="$ac_config_commands depfiles" 3144 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3146$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3147cat > confinc.mk << 'END' 3148am__doit: 3149 @echo this is the am__doit target >confinc.out 3150.PHONY: am__doit 3151END 3152am__include="#" 3153am__quote= 3154# BSD make does it like this. 3155echo '.include "confinc.mk" # ignored' > confmf.BSD 3156# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3157echo 'include confinc.mk # ignored' > confmf.GNU 3158_am_result=no 3159for s in GNU BSD; do 3160 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3161 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3162 ac_status=$? 3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3164 (exit $ac_status); } 3165 case $?:`cat confinc.out 2>/dev/null` in #( 3166 '0:this is the am__doit target') : 3167 case $s in #( 3168 BSD) : 3169 am__include='.include' am__quote='"' ;; #( 3170 *) : 3171 am__include='include' am__quote='' ;; 3172esac ;; #( 3173 *) : 3174 ;; 3175esac 3176 if test "$am__include" != "#"; then 3177 _am_result="yes ($s style)" 3178 break 3179 fi 3180done 3181rm -f confinc.* confmf.* 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3183$as_echo "${_am_result}" >&6; } 3184 3185# Check whether --enable-dependency-tracking was given. 3186if test "${enable_dependency_tracking+set}" = set; then : 3187 enableval=$enable_dependency_tracking; 3188fi 3189 3190if test "x$enable_dependency_tracking" != xno; then 3191 am_depcomp="$ac_aux_dir/depcomp" 3192 AMDEPBACKSLASH='\' 3193 am__nodep='_no' 3194fi 3195 if test "x$enable_dependency_tracking" != xno; then 3196 AMDEP_TRUE= 3197 AMDEP_FALSE='#' 3198else 3199 AMDEP_TRUE='#' 3200 AMDEP_FALSE= 3201fi 3202 3203 3204ac_ext=c 3205ac_cpp='$CPP $CPPFLAGS' 3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3208ac_compiler_gnu=$ac_cv_c_compiler_gnu 3209if test -n "$ac_tool_prefix"; then 3210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3211set dummy ${ac_tool_prefix}gcc; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if ${ac_cv_prog_CC+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$CC"; then 3218 ac_cv_prog_CC="$CC" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3227 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237CC=$ac_cv_prog_CC 3238if test -n "$CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3240$as_echo "$CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 3247fi 3248if test -z "$ac_cv_prog_CC"; then 3249 ac_ct_CC=$CC 3250 # Extract the first word of "gcc", so it can be a program name with args. 3251set dummy gcc; ac_word=$2 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3253$as_echo_n "checking for $ac_word... " >&6; } 3254if ${ac_cv_prog_ac_ct_CC+:} false; then : 3255 $as_echo_n "(cached) " >&6 3256else 3257 if test -n "$ac_ct_CC"; then 3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3259else 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 test -z "$as_dir" && as_dir=. 3265 for ac_exec_ext in '' $ac_executable_extensions; do 3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3267 ac_cv_prog_ac_ct_CC="gcc" 3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3269 break 2 3270 fi 3271done 3272 done 3273IFS=$as_save_IFS 3274 3275fi 3276fi 3277ac_ct_CC=$ac_cv_prog_ac_ct_CC 3278if test -n "$ac_ct_CC"; then 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3280$as_echo "$ac_ct_CC" >&6; } 3281else 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3283$as_echo "no" >&6; } 3284fi 3285 3286 if test "x$ac_ct_CC" = x; then 3287 CC="" 3288 else 3289 case $cross_compiling:$ac_tool_warned in 3290yes:) 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3293ac_tool_warned=yes ;; 3294esac 3295 CC=$ac_ct_CC 3296 fi 3297else 3298 CC="$ac_cv_prog_CC" 3299fi 3300 3301if test -z "$CC"; then 3302 if test -n "$ac_tool_prefix"; then 3303 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3304set dummy ${ac_tool_prefix}cc; ac_word=$2 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3306$as_echo_n "checking for $ac_word... " >&6; } 3307if ${ac_cv_prog_CC+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 if test -n "$CC"; then 3311 ac_cv_prog_CC="$CC" # Let the user override the test. 3312else 3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3314for as_dir in $PATH 3315do 3316 IFS=$as_save_IFS 3317 test -z "$as_dir" && as_dir=. 3318 for ac_exec_ext in '' $ac_executable_extensions; do 3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3320 ac_cv_prog_CC="${ac_tool_prefix}cc" 3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3322 break 2 3323 fi 3324done 3325 done 3326IFS=$as_save_IFS 3327 3328fi 3329fi 3330CC=$ac_cv_prog_CC 3331if test -n "$CC"; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3333$as_echo "$CC" >&6; } 3334else 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3336$as_echo "no" >&6; } 3337fi 3338 3339 3340 fi 3341fi 3342if test -z "$CC"; then 3343 # Extract the first word of "cc", so it can be a program name with args. 3344set dummy cc; ac_word=$2 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3346$as_echo_n "checking for $ac_word... " >&6; } 3347if ${ac_cv_prog_CC+:} false; then : 3348 $as_echo_n "(cached) " >&6 3349else 3350 if test -n "$CC"; then 3351 ac_cv_prog_CC="$CC" # Let the user override the test. 3352else 3353 ac_prog_rejected=no 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH 3356do 3357 IFS=$as_save_IFS 3358 test -z "$as_dir" && as_dir=. 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3361 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3362 ac_prog_rejected=yes 3363 continue 3364 fi 3365 ac_cv_prog_CC="cc" 3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3367 break 2 3368 fi 3369done 3370 done 3371IFS=$as_save_IFS 3372 3373if test $ac_prog_rejected = yes; then 3374 # We found a bogon in the path, so make sure we never use it. 3375 set dummy $ac_cv_prog_CC 3376 shift 3377 if test $# != 0; then 3378 # We chose a different compiler from the bogus one. 3379 # However, it has the same basename, so the bogon will be chosen 3380 # first if we set CC to just the basename; use the full file name. 3381 shift 3382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3383 fi 3384fi 3385fi 3386fi 3387CC=$ac_cv_prog_CC 3388if test -n "$CC"; then 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3390$as_echo "$CC" >&6; } 3391else 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3393$as_echo "no" >&6; } 3394fi 3395 3396 3397fi 3398if test -z "$CC"; then 3399 if test -n "$ac_tool_prefix"; then 3400 for ac_prog in cl.exe 3401 do 3402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3403set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405$as_echo_n "checking for $ac_word... " >&6; } 3406if ${ac_cv_prog_CC+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408else 3409 if test -n "$CC"; then 3410 ac_cv_prog_CC="$CC" # Let the user override the test. 3411else 3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3413for as_dir in $PATH 3414do 3415 IFS=$as_save_IFS 3416 test -z "$as_dir" && as_dir=. 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423done 3424 done 3425IFS=$as_save_IFS 3426 3427fi 3428fi 3429CC=$ac_cv_prog_CC 3430if test -n "$CC"; then 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3432$as_echo "$CC" >&6; } 3433else 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3435$as_echo "no" >&6; } 3436fi 3437 3438 3439 test -n "$CC" && break 3440 done 3441fi 3442if test -z "$CC"; then 3443 ac_ct_CC=$CC 3444 for ac_prog in cl.exe 3445do 3446 # Extract the first word of "$ac_prog", so it can be a program name with args. 3447set dummy $ac_prog; ac_word=$2 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3449$as_echo_n "checking for $ac_word... " >&6; } 3450if ${ac_cv_prog_ac_ct_CC+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 if test -n "$ac_ct_CC"; then 3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3455else 3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3457for as_dir in $PATH 3458do 3459 IFS=$as_save_IFS 3460 test -z "$as_dir" && as_dir=. 3461 for ac_exec_ext in '' $ac_executable_extensions; do 3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3463 ac_cv_prog_ac_ct_CC="$ac_prog" 3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3465 break 2 3466 fi 3467done 3468 done 3469IFS=$as_save_IFS 3470 3471fi 3472fi 3473ac_ct_CC=$ac_cv_prog_ac_ct_CC 3474if test -n "$ac_ct_CC"; then 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3476$as_echo "$ac_ct_CC" >&6; } 3477else 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3479$as_echo "no" >&6; } 3480fi 3481 3482 3483 test -n "$ac_ct_CC" && break 3484done 3485 3486 if test "x$ac_ct_CC" = x; then 3487 CC="" 3488 else 3489 case $cross_compiling:$ac_tool_warned in 3490yes:) 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3493ac_tool_warned=yes ;; 3494esac 3495 CC=$ac_ct_CC 3496 fi 3497fi 3498 3499fi 3500 3501 3502test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3504as_fn_error $? "no acceptable C compiler found in \$PATH 3505See \`config.log' for more details" "$LINENO" 5; } 3506 3507# Provide some information about the compiler. 3508$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3509set X $ac_compile 3510ac_compiler=$2 3511for ac_option in --version -v -V -qversion; do 3512 { { ac_try="$ac_compiler $ac_option >&5" 3513case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3518$as_echo "$ac_try_echo"; } >&5 3519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3520 ac_status=$? 3521 if test -s conftest.err; then 3522 sed '10a\ 3523... rest of stderr output deleted ... 3524 10q' conftest.err >conftest.er1 3525 cat conftest.er1 >&5 3526 fi 3527 rm -f conftest.er1 conftest.err 3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529 test $ac_status = 0; } 3530done 3531 3532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534 3535int 3536main () 3537{ 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543ac_clean_files_save=$ac_clean_files 3544ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3545# Try to create an executable without -o first, disregard a.out. 3546# It will help us diagnose broken compilers, and finding out an intuition 3547# of exeext. 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3549$as_echo_n "checking whether the C compiler works... " >&6; } 3550ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3551 3552# The possible output files: 3553ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3554 3555ac_rmfiles= 3556for ac_file in $ac_files 3557do 3558 case $ac_file in 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3560 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3561 esac 3562done 3563rm -f $ac_rmfiles 3564 3565if { { ac_try="$ac_link_default" 3566case "(($ac_try" in 3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3568 *) ac_try_echo=$ac_try;; 3569esac 3570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3571$as_echo "$ac_try_echo"; } >&5 3572 (eval "$ac_link_default") 2>&5 3573 ac_status=$? 3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3575 test $ac_status = 0; }; then : 3576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3577# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3578# in a Makefile. We should not override ac_cv_exeext if it was cached, 3579# so that the user can short-circuit this test for compilers unknown to 3580# Autoconf. 3581for ac_file in $ac_files '' 3582do 3583 test -f "$ac_file" || continue 3584 case $ac_file in 3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3586 ;; 3587 [ab].out ) 3588 # We found the default executable, but exeext='' is most 3589 # certainly right. 3590 break;; 3591 *.* ) 3592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3593 then :; else 3594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3595 fi 3596 # We set ac_cv_exeext here because the later test for it is not 3597 # safe: cross compilers may not add the suffix if given an `-o' 3598 # argument, so we may need to know it at that point already. 3599 # Even if this section looks crufty: it has the advantage of 3600 # actually working. 3601 break;; 3602 * ) 3603 break;; 3604 esac 3605done 3606test "$ac_cv_exeext" = no && ac_cv_exeext= 3607 3608else 3609 ac_file='' 3610fi 3611if test -z "$ac_file"; then : 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613$as_echo "no" >&6; } 3614$as_echo "$as_me: failed program was:" >&5 3615sed 's/^/| /' conftest.$ac_ext >&5 3616 3617{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3619as_fn_error 77 "C compiler cannot create executables 3620See \`config.log' for more details" "$LINENO" 5; } 3621else 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3623$as_echo "yes" >&6; } 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3626$as_echo_n "checking for C compiler default output file name... " >&6; } 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3628$as_echo "$ac_file" >&6; } 3629ac_exeext=$ac_cv_exeext 3630 3631rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3632ac_clean_files=$ac_clean_files_save 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3634$as_echo_n "checking for suffix of executables... " >&6; } 3635if { { ac_try="$ac_link" 3636case "(($ac_try" in 3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3638 *) ac_try_echo=$ac_try;; 3639esac 3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3641$as_echo "$ac_try_echo"; } >&5 3642 (eval "$ac_link") 2>&5 3643 ac_status=$? 3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3645 test $ac_status = 0; }; then : 3646 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3647# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3648# work properly (i.e., refer to `conftest.exe'), while it won't with 3649# `rm'. 3650for ac_file in conftest.exe conftest conftest.*; do 3651 test -f "$ac_file" || continue 3652 case $ac_file in 3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3654 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3655 break;; 3656 * ) break;; 3657 esac 3658done 3659else 3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3662as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3663See \`config.log' for more details" "$LINENO" 5; } 3664fi 3665rm -f conftest conftest$ac_cv_exeext 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3667$as_echo "$ac_cv_exeext" >&6; } 3668 3669rm -f conftest.$ac_ext 3670EXEEXT=$ac_cv_exeext 3671ac_exeext=$EXEEXT 3672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674#include <stdio.h> 3675int 3676main () 3677{ 3678FILE *f = fopen ("conftest.out", "w"); 3679 return ferror (f) || fclose (f) != 0; 3680 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685ac_clean_files="$ac_clean_files conftest.out" 3686# Check that the compiler produces executables we can run. If not, either 3687# the compiler is broken, or we cross compile. 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3689$as_echo_n "checking whether we are cross compiling... " >&6; } 3690if test "$cross_compiling" != yes; then 3691 { { ac_try="$ac_link" 3692case "(($ac_try" in 3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3694 *) ac_try_echo=$ac_try;; 3695esac 3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3697$as_echo "$ac_try_echo"; } >&5 3698 (eval "$ac_link") 2>&5 3699 ac_status=$? 3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3701 test $ac_status = 0; } 3702 if { ac_try='./conftest$ac_cv_exeext' 3703 { { case "(($ac_try" in 3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3705 *) ac_try_echo=$ac_try;; 3706esac 3707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3708$as_echo "$ac_try_echo"; } >&5 3709 (eval "$ac_try") 2>&5 3710 ac_status=$? 3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3712 test $ac_status = 0; }; }; then 3713 cross_compiling=no 3714 else 3715 if test "$cross_compiling" = maybe; then 3716 cross_compiling=yes 3717 else 3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3720as_fn_error $? "cannot run C compiled programs. 3721If you meant to cross compile, use \`--host'. 3722See \`config.log' for more details" "$LINENO" 5; } 3723 fi 3724 fi 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3727$as_echo "$cross_compiling" >&6; } 3728 3729rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3730ac_clean_files=$ac_clean_files_save 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3732$as_echo_n "checking for suffix of object files... " >&6; } 3733if ${ac_cv_objext+:} false; then : 3734 $as_echo_n "(cached) " >&6 3735else 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738 3739int 3740main () 3741{ 3742 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747rm -f conftest.o conftest.obj 3748if { { ac_try="$ac_compile" 3749case "(($ac_try" in 3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3751 *) ac_try_echo=$ac_try;; 3752esac 3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3754$as_echo "$ac_try_echo"; } >&5 3755 (eval "$ac_compile") 2>&5 3756 ac_status=$? 3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3758 test $ac_status = 0; }; then : 3759 for ac_file in conftest.o conftest.obj conftest.*; do 3760 test -f "$ac_file" || continue; 3761 case $ac_file in 3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3763 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3764 break;; 3765 esac 3766done 3767else 3768 $as_echo "$as_me: failed program was:" >&5 3769sed 's/^/| /' conftest.$ac_ext >&5 3770 3771{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3773as_fn_error $? "cannot compute suffix of object files: cannot compile 3774See \`config.log' for more details" "$LINENO" 5; } 3775fi 3776rm -f conftest.$ac_cv_objext conftest.$ac_ext 3777fi 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3779$as_echo "$ac_cv_objext" >&6; } 3780OBJEXT=$ac_cv_objext 3781ac_objext=$OBJEXT 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3783$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3784if ${ac_cv_c_compiler_gnu+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786else 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788/* end confdefs.h. */ 3789 3790int 3791main () 3792{ 3793#ifndef __GNUC__ 3794 choke me 3795#endif 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801if ac_fn_c_try_compile "$LINENO"; then : 3802 ac_compiler_gnu=yes 3803else 3804 ac_compiler_gnu=no 3805fi 3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807ac_cv_c_compiler_gnu=$ac_compiler_gnu 3808 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3811$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3812if test $ac_compiler_gnu = yes; then 3813 GCC=yes 3814else 3815 GCC= 3816fi 3817ac_test_CFLAGS=${CFLAGS+set} 3818ac_save_CFLAGS=$CFLAGS 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3820$as_echo_n "checking whether $CC accepts -g... " >&6; } 3821if ${ac_cv_prog_cc_g+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 ac_save_c_werror_flag=$ac_c_werror_flag 3825 ac_c_werror_flag=yes 3826 ac_cv_prog_cc_g=no 3827 CFLAGS="-g" 3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830 3831int 3832main () 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839if ac_fn_c_try_compile "$LINENO"; then : 3840 ac_cv_prog_cc_g=yes 3841else 3842 CFLAGS="" 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854if ac_fn_c_try_compile "$LINENO"; then : 3855 3856else 3857 ac_c_werror_flag=$ac_save_c_werror_flag 3858 CFLAGS="-g" 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3860/* end confdefs.h. */ 3861 3862int 3863main () 3864{ 3865 3866 ; 3867 return 0; 3868} 3869_ACEOF 3870if ac_fn_c_try_compile "$LINENO"; then : 3871 ac_cv_prog_cc_g=yes 3872fi 3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3874fi 3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3876fi 3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3878 ac_c_werror_flag=$ac_save_c_werror_flag 3879fi 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3881$as_echo "$ac_cv_prog_cc_g" >&6; } 3882if test "$ac_test_CFLAGS" = set; then 3883 CFLAGS=$ac_save_CFLAGS 3884elif test $ac_cv_prog_cc_g = yes; then 3885 if test "$GCC" = yes; then 3886 CFLAGS="-g -O2" 3887 else 3888 CFLAGS="-g" 3889 fi 3890else 3891 if test "$GCC" = yes; then 3892 CFLAGS="-O2" 3893 else 3894 CFLAGS= 3895 fi 3896fi 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3898$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3899if ${ac_cv_prog_cc_c89+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 ac_cv_prog_cc_c89=no 3903ac_save_CC=$CC 3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905/* end confdefs.h. */ 3906#include <stdarg.h> 3907#include <stdio.h> 3908struct stat; 3909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3910struct buf { int x; }; 3911FILE * (*rcsopen) (struct buf *, struct stat *, int); 3912static char *e (p, i) 3913 char **p; 3914 int i; 3915{ 3916 return p[i]; 3917} 3918static char *f (char * (*g) (char **, int), char **p, ...) 3919{ 3920 char *s; 3921 va_list v; 3922 va_start (v,p); 3923 s = g (p, va_arg (v,int)); 3924 va_end (v); 3925 return s; 3926} 3927 3928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3929 function prototypes and stuff, but not '\xHH' hex character constants. 3930 These don't provoke an error unfortunately, instead are silently treated 3931 as 'x'. The following induces an error, until -std is added to get 3932 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3933 array size at least. It's necessary to write '\x00'==0 to get something 3934 that's true only with -std. */ 3935int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3936 3937/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3938 inside strings and character constants. */ 3939#define FOO(x) 'x' 3940int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3941 3942int test (int i, double x); 3943struct s1 {int (*f) (int a);}; 3944struct s2 {int (*f) (double a);}; 3945int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3946int argc; 3947char **argv; 3948int 3949main () 3950{ 3951return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3957 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3958do 3959 CC="$ac_save_CC $ac_arg" 3960 if ac_fn_c_try_compile "$LINENO"; then : 3961 ac_cv_prog_cc_c89=$ac_arg 3962fi 3963rm -f core conftest.err conftest.$ac_objext 3964 test "x$ac_cv_prog_cc_c89" != "xno" && break 3965done 3966rm -f conftest.$ac_ext 3967CC=$ac_save_CC 3968 3969fi 3970# AC_CACHE_VAL 3971case "x$ac_cv_prog_cc_c89" in 3972 x) 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3974$as_echo "none needed" >&6; } ;; 3975 xno) 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3977$as_echo "unsupported" >&6; } ;; 3978 *) 3979 CC="$CC $ac_cv_prog_cc_c89" 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3981$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3982esac 3983if test "x$ac_cv_prog_cc_c89" != xno; then : 3984 3985fi 3986 3987ac_ext=c 3988ac_cpp='$CPP $CPPFLAGS' 3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3991ac_compiler_gnu=$ac_cv_c_compiler_gnu 3992 3993ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3999$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4000if ${am_cv_prog_cc_c_o+:} false; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4004/* end confdefs.h. */ 4005 4006int 4007main () 4008{ 4009 4010 ; 4011 return 0; 4012} 4013_ACEOF 4014 # Make sure it works both with $CC and with simple cc. 4015 # Following AC_PROG_CC_C_O, we do the test twice because some 4016 # compilers refuse to overwrite an existing .o file with -o, 4017 # though they will create one. 4018 am_cv_prog_cc_c_o=yes 4019 for am_i in 1 2; do 4020 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4021 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4022 ac_status=$? 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); } \ 4025 && test -f conftest2.$ac_objext; then 4026 : OK 4027 else 4028 am_cv_prog_cc_c_o=no 4029 break 4030 fi 4031 done 4032 rm -f core conftest* 4033 unset am_i 4034fi 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4036$as_echo "$am_cv_prog_cc_c_o" >&6; } 4037if test "$am_cv_prog_cc_c_o" != yes; then 4038 # Losing compiler, so override with the script. 4039 # FIXME: It is wrong to rewrite CC. 4040 # But if we don't then we get into trouble of one sort or another. 4041 # A longer-term fix would be to have automake use am__CC in this case, 4042 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4043 CC="$am_aux_dir/compile $CC" 4044fi 4045ac_ext=c 4046ac_cpp='$CPP $CPPFLAGS' 4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4049ac_compiler_gnu=$ac_cv_c_compiler_gnu 4050 4051 4052depcc="$CC" am_compiler_list= 4053 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4055$as_echo_n "checking dependency style of $depcc... " >&6; } 4056if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4060 # We make a subdir and do the tests there. Otherwise we can end up 4061 # making bogus files that we don't know about and never remove. For 4062 # instance it was reported that on HP-UX the gcc test will end up 4063 # making a dummy file named 'D' -- because '-MD' means "put the output 4064 # in D". 4065 rm -rf conftest.dir 4066 mkdir conftest.dir 4067 # Copy depcomp to subdir because otherwise we won't find it if we're 4068 # using a relative directory. 4069 cp "$am_depcomp" conftest.dir 4070 cd conftest.dir 4071 # We will build objects and dependencies in a subdirectory because 4072 # it helps to detect inapplicable dependency modes. For instance 4073 # both Tru64's cc and ICC support -MD to output dependencies as a 4074 # side effect of compilation, but ICC will put the dependencies in 4075 # the current directory while Tru64 will put them in the object 4076 # directory. 4077 mkdir sub 4078 4079 am_cv_CC_dependencies_compiler_type=none 4080 if test "$am_compiler_list" = ""; then 4081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4082 fi 4083 am__universal=false 4084 case " $depcc " in #( 4085 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4086 esac 4087 4088 for depmode in $am_compiler_list; do 4089 # Setup a source with many dependencies, because some compilers 4090 # like to wrap large dependency lists on column 80 (with \), and 4091 # we should not choose a depcomp mode which is confused by this. 4092 # 4093 # We need to recreate these files for each test, as the compiler may 4094 # overwrite some of them when testing with obscure command lines. 4095 # This happens at least with the AIX C compiler. 4096 : > sub/conftest.c 4097 for i in 1 2 3 4 5 6; do 4098 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4100 # Solaris 10 /bin/sh. 4101 echo '/* dummy */' > sub/conftst$i.h 4102 done 4103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4104 4105 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4106 # mode. It turns out that the SunPro C++ compiler does not properly 4107 # handle '-M -o', and we need to detect this. Also, some Intel 4108 # versions had trouble with output in subdirs. 4109 am__obj=sub/conftest.${OBJEXT-o} 4110 am__minus_obj="-o $am__obj" 4111 case $depmode in 4112 gcc) 4113 # This depmode causes a compiler race in universal mode. 4114 test "$am__universal" = false || continue 4115 ;; 4116 nosideeffect) 4117 # After this tag, mechanisms are not by side-effect, so they'll 4118 # only be used when explicitly requested. 4119 if test "x$enable_dependency_tracking" = xyes; then 4120 continue 4121 else 4122 break 4123 fi 4124 ;; 4125 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4126 # This compiler won't grok '-c -o', but also, the minuso test has 4127 # not run yet. These depmodes are late enough in the game, and 4128 # so weak that their functioning should not be impacted. 4129 am__obj=conftest.${OBJEXT-o} 4130 am__minus_obj= 4131 ;; 4132 none) break ;; 4133 esac 4134 if depmode=$depmode \ 4135 source=sub/conftest.c object=$am__obj \ 4136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4138 >/dev/null 2>conftest.err && 4139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4143 # icc doesn't choke on unknown options, it will just issue warnings 4144 # or remarks (even with -Werror). So we grep stderr for any message 4145 # that says an option was ignored or not supported. 4146 # When given -MP, icc 7.0 and 7.1 complain thusly: 4147 # icc: Command line warning: ignoring option '-M'; no argument required 4148 # The diagnosis changed in icc 8.0: 4149 # icc: Command line remark: option '-MP' not supported 4150 if (grep 'ignoring option' conftest.err || 4151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4152 am_cv_CC_dependencies_compiler_type=$depmode 4153 break 4154 fi 4155 fi 4156 done 4157 4158 cd .. 4159 rm -rf conftest.dir 4160else 4161 am_cv_CC_dependencies_compiler_type=none 4162fi 4163 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4166$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4167CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4168 4169 if 4170 test "x$enable_dependency_tracking" != xno \ 4171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4172 am__fastdepCC_TRUE= 4173 am__fastdepCC_FALSE='#' 4174else 4175 am__fastdepCC_TRUE='#' 4176 am__fastdepCC_FALSE= 4177fi 4178 4179 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4181$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4182if ${ac_cv_path_SED+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4186 for ac_i in 1 2 3 4 5 6 7; do 4187 ac_script="$ac_script$as_nl$ac_script" 4188 done 4189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4190 { ac_script=; unset ac_script;} 4191 if test -z "$SED"; then 4192 ac_path_SED_found=false 4193 # Loop through the user's path and test for each of PROGNAME-LIST 4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195for as_dir in $PATH 4196do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 for ac_prog in sed gsed; do 4200 for ac_exec_ext in '' $ac_executable_extensions; do 4201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4202 as_fn_executable_p "$ac_path_SED" || continue 4203# Check for GNU ac_path_SED and select it if it is found. 4204 # Check for GNU $ac_path_SED 4205case `"$ac_path_SED" --version 2>&1` in 4206*GNU*) 4207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4208*) 4209 ac_count=0 4210 $as_echo_n 0123456789 >"conftest.in" 4211 while : 4212 do 4213 cat "conftest.in" "conftest.in" >"conftest.tmp" 4214 mv "conftest.tmp" "conftest.in" 4215 cp "conftest.in" "conftest.nl" 4216 $as_echo '' >> "conftest.nl" 4217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4219 as_fn_arith $ac_count + 1 && ac_count=$as_val 4220 if test $ac_count -gt ${ac_path_SED_max-0}; then 4221 # Best one so far, save it but keep looking for a better one 4222 ac_cv_path_SED="$ac_path_SED" 4223 ac_path_SED_max=$ac_count 4224 fi 4225 # 10*(2^10) chars as input seems more than enough 4226 test $ac_count -gt 10 && break 4227 done 4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4229esac 4230 4231 $ac_path_SED_found && break 3 4232 done 4233 done 4234 done 4235IFS=$as_save_IFS 4236 if test -z "$ac_cv_path_SED"; then 4237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4238 fi 4239else 4240 ac_cv_path_SED=$SED 4241fi 4242 4243fi 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4245$as_echo "$ac_cv_path_SED" >&6; } 4246 SED="$ac_cv_path_SED" 4247 rm -f conftest.sed 4248 4249test -z "$SED" && SED=sed 4250Xsed="$SED -e 1s/^X//" 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4263$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4264if ${ac_cv_path_GREP+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 if test -z "$GREP"; then 4268 ac_path_GREP_found=false 4269 # Loop through the user's path and test for each of PROGNAME-LIST 4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4272do 4273 IFS=$as_save_IFS 4274 test -z "$as_dir" && as_dir=. 4275 for ac_prog in grep ggrep; do 4276 for ac_exec_ext in '' $ac_executable_extensions; do 4277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4278 as_fn_executable_p "$ac_path_GREP" || continue 4279# Check for GNU ac_path_GREP and select it if it is found. 4280 # Check for GNU $ac_path_GREP 4281case `"$ac_path_GREP" --version 2>&1` in 4282*GNU*) 4283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4284*) 4285 ac_count=0 4286 $as_echo_n 0123456789 >"conftest.in" 4287 while : 4288 do 4289 cat "conftest.in" "conftest.in" >"conftest.tmp" 4290 mv "conftest.tmp" "conftest.in" 4291 cp "conftest.in" "conftest.nl" 4292 $as_echo 'GREP' >> "conftest.nl" 4293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4295 as_fn_arith $ac_count + 1 && ac_count=$as_val 4296 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4297 # Best one so far, save it but keep looking for a better one 4298 ac_cv_path_GREP="$ac_path_GREP" 4299 ac_path_GREP_max=$ac_count 4300 fi 4301 # 10*(2^10) chars as input seems more than enough 4302 test $ac_count -gt 10 && break 4303 done 4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4305esac 4306 4307 $ac_path_GREP_found && break 3 4308 done 4309 done 4310 done 4311IFS=$as_save_IFS 4312 if test -z "$ac_cv_path_GREP"; then 4313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4314 fi 4315else 4316 ac_cv_path_GREP=$GREP 4317fi 4318 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4321$as_echo "$ac_cv_path_GREP" >&6; } 4322 GREP="$ac_cv_path_GREP" 4323 4324 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4326$as_echo_n "checking for egrep... " >&6; } 4327if ${ac_cv_path_EGREP+:} false; then : 4328 $as_echo_n "(cached) " >&6 4329else 4330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4331 then ac_cv_path_EGREP="$GREP -E" 4332 else 4333 if test -z "$EGREP"; then 4334 ac_path_EGREP_found=false 4335 # Loop through the user's path and test for each of PROGNAME-LIST 4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4338do 4339 IFS=$as_save_IFS 4340 test -z "$as_dir" && as_dir=. 4341 for ac_prog in egrep; do 4342 for ac_exec_ext in '' $ac_executable_extensions; do 4343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4344 as_fn_executable_p "$ac_path_EGREP" || continue 4345# Check for GNU ac_path_EGREP and select it if it is found. 4346 # Check for GNU $ac_path_EGREP 4347case `"$ac_path_EGREP" --version 2>&1` in 4348*GNU*) 4349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4350*) 4351 ac_count=0 4352 $as_echo_n 0123456789 >"conftest.in" 4353 while : 4354 do 4355 cat "conftest.in" "conftest.in" >"conftest.tmp" 4356 mv "conftest.tmp" "conftest.in" 4357 cp "conftest.in" "conftest.nl" 4358 $as_echo 'EGREP' >> "conftest.nl" 4359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4361 as_fn_arith $ac_count + 1 && ac_count=$as_val 4362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4363 # Best one so far, save it but keep looking for a better one 4364 ac_cv_path_EGREP="$ac_path_EGREP" 4365 ac_path_EGREP_max=$ac_count 4366 fi 4367 # 10*(2^10) chars as input seems more than enough 4368 test $ac_count -gt 10 && break 4369 done 4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4371esac 4372 4373 $ac_path_EGREP_found && break 3 4374 done 4375 done 4376 done 4377IFS=$as_save_IFS 4378 if test -z "$ac_cv_path_EGREP"; then 4379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4380 fi 4381else 4382 ac_cv_path_EGREP=$EGREP 4383fi 4384 4385 fi 4386fi 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4388$as_echo "$ac_cv_path_EGREP" >&6; } 4389 EGREP="$ac_cv_path_EGREP" 4390 4391 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4393$as_echo_n "checking for fgrep... " >&6; } 4394if ${ac_cv_path_FGREP+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4398 then ac_cv_path_FGREP="$GREP -F" 4399 else 4400 if test -z "$FGREP"; then 4401 ac_path_FGREP_found=false 4402 # Loop through the user's path and test for each of PROGNAME-LIST 4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4405do 4406 IFS=$as_save_IFS 4407 test -z "$as_dir" && as_dir=. 4408 for ac_prog in fgrep; do 4409 for ac_exec_ext in '' $ac_executable_extensions; do 4410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4411 as_fn_executable_p "$ac_path_FGREP" || continue 4412# Check for GNU ac_path_FGREP and select it if it is found. 4413 # Check for GNU $ac_path_FGREP 4414case `"$ac_path_FGREP" --version 2>&1` in 4415*GNU*) 4416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4417*) 4418 ac_count=0 4419 $as_echo_n 0123456789 >"conftest.in" 4420 while : 4421 do 4422 cat "conftest.in" "conftest.in" >"conftest.tmp" 4423 mv "conftest.tmp" "conftest.in" 4424 cp "conftest.in" "conftest.nl" 4425 $as_echo 'FGREP' >> "conftest.nl" 4426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4428 as_fn_arith $ac_count + 1 && ac_count=$as_val 4429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4430 # Best one so far, save it but keep looking for a better one 4431 ac_cv_path_FGREP="$ac_path_FGREP" 4432 ac_path_FGREP_max=$ac_count 4433 fi 4434 # 10*(2^10) chars as input seems more than enough 4435 test $ac_count -gt 10 && break 4436 done 4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4438esac 4439 4440 $ac_path_FGREP_found && break 3 4441 done 4442 done 4443 done 4444IFS=$as_save_IFS 4445 if test -z "$ac_cv_path_FGREP"; then 4446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4447 fi 4448else 4449 ac_cv_path_FGREP=$FGREP 4450fi 4451 4452 fi 4453fi 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4455$as_echo "$ac_cv_path_FGREP" >&6; } 4456 FGREP="$ac_cv_path_FGREP" 4457 4458 4459test -z "$GREP" && GREP=grep 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479# Check whether --with-gnu-ld was given. 4480if test "${with_gnu_ld+set}" = set; then : 4481 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4482else 4483 with_gnu_ld=no 4484fi 4485 4486ac_prog=ld 4487if test yes = "$GCC"; then 4488 # Check if gcc -print-prog-name=ld gives a path. 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4490$as_echo_n "checking for ld used by $CC... " >&6; } 4491 case $host in 4492 *-*-mingw*) 4493 # gcc leaves a trailing carriage return, which upsets mingw 4494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4495 *) 4496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4497 esac 4498 case $ac_prog in 4499 # Accept absolute paths. 4500 [\\/]* | ?:[\\/]*) 4501 re_direlt='/[^/][^/]*/\.\./' 4502 # Canonicalize the pathname of ld 4503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4506 done 4507 test -z "$LD" && LD=$ac_prog 4508 ;; 4509 "") 4510 # If it fails, then pretend we aren't using GCC. 4511 ac_prog=ld 4512 ;; 4513 *) 4514 # If it is relative, then search for the first ld in PATH. 4515 with_gnu_ld=unknown 4516 ;; 4517 esac 4518elif test yes = "$with_gnu_ld"; then 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4520$as_echo_n "checking for GNU ld... " >&6; } 4521else 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4523$as_echo_n "checking for non-GNU ld... " >&6; } 4524fi 4525if ${lt_cv_path_LD+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 if test -z "$LD"; then 4529 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4530 for ac_dir in $PATH; do 4531 IFS=$lt_save_ifs 4532 test -z "$ac_dir" && ac_dir=. 4533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4534 lt_cv_path_LD=$ac_dir/$ac_prog 4535 # Check to see if the program is GNU ld. I'd rather use --version, 4536 # but apparently some variants of GNU ld only accept -v. 4537 # Break only if it was the GNU/non-GNU ld that we prefer. 4538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4539 *GNU* | *'with BFD'*) 4540 test no != "$with_gnu_ld" && break 4541 ;; 4542 *) 4543 test yes != "$with_gnu_ld" && break 4544 ;; 4545 esac 4546 fi 4547 done 4548 IFS=$lt_save_ifs 4549else 4550 lt_cv_path_LD=$LD # Let the user override the test with a path. 4551fi 4552fi 4553 4554LD=$lt_cv_path_LD 4555if test -n "$LD"; then 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4557$as_echo "$LD" >&6; } 4558else 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4560$as_echo "no" >&6; } 4561fi 4562test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4564$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4565if ${lt_cv_prog_gnu_ld+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4569case `$LD -v 2>&1 </dev/null` in 4570*GNU* | *'with BFD'*) 4571 lt_cv_prog_gnu_ld=yes 4572 ;; 4573*) 4574 lt_cv_prog_gnu_ld=no 4575 ;; 4576esac 4577fi 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4579$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4580with_gnu_ld=$lt_cv_prog_gnu_ld 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4591$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4592if ${lt_cv_path_NM+:} false; then : 4593 $as_echo_n "(cached) " >&6 4594else 4595 if test -n "$NM"; then 4596 # Let the user override the test. 4597 lt_cv_path_NM=$NM 4598else 4599 lt_nm_to_check=${ac_tool_prefix}nm 4600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4601 lt_nm_to_check="$lt_nm_to_check nm" 4602 fi 4603 for lt_tmp_nm in $lt_nm_to_check; do 4604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4606 IFS=$lt_save_ifs 4607 test -z "$ac_dir" && ac_dir=. 4608 tmp_nm=$ac_dir/$lt_tmp_nm 4609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4610 # Check to see if the nm accepts a BSD-compat flag. 4611 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4612 # nm: unknown option "B" ignored 4613 # Tru64's nm complains that /dev/null is an invalid object file 4614 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4615 case $build_os in 4616 mingw*) lt_bad_file=conftest.nm/nofile ;; 4617 *) lt_bad_file=/dev/null ;; 4618 esac 4619 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4620 *$lt_bad_file* | *'Invalid file or object type'*) 4621 lt_cv_path_NM="$tmp_nm -B" 4622 break 2 4623 ;; 4624 *) 4625 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4626 */dev/null*) 4627 lt_cv_path_NM="$tmp_nm -p" 4628 break 2 4629 ;; 4630 *) 4631 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4632 continue # so that we can try to find one that supports BSD flags 4633 ;; 4634 esac 4635 ;; 4636 esac 4637 fi 4638 done 4639 IFS=$lt_save_ifs 4640 done 4641 : ${lt_cv_path_NM=no} 4642fi 4643fi 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4645$as_echo "$lt_cv_path_NM" >&6; } 4646if test no != "$lt_cv_path_NM"; then 4647 NM=$lt_cv_path_NM 4648else 4649 # Didn't find any BSD compatible name lister, look for dumpbin. 4650 if test -n "$DUMPBIN"; then : 4651 # Let the user override the test. 4652 else 4653 if test -n "$ac_tool_prefix"; then 4654 for ac_prog in dumpbin "link -dump" 4655 do 4656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4657set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4659$as_echo_n "checking for $ac_word... " >&6; } 4660if ${ac_cv_prog_DUMPBIN+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 if test -n "$DUMPBIN"; then 4664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4665else 4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4673 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677done 4678 done 4679IFS=$as_save_IFS 4680 4681fi 4682fi 4683DUMPBIN=$ac_cv_prog_DUMPBIN 4684if test -n "$DUMPBIN"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4686$as_echo "$DUMPBIN" >&6; } 4687else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689$as_echo "no" >&6; } 4690fi 4691 4692 4693 test -n "$DUMPBIN" && break 4694 done 4695fi 4696if test -z "$DUMPBIN"; then 4697 ac_ct_DUMPBIN=$DUMPBIN 4698 for ac_prog in dumpbin "link -dump" 4699do 4700 # Extract the first word of "$ac_prog", so it can be a program name with args. 4701set dummy $ac_prog; ac_word=$2 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4703$as_echo_n "checking for $ac_word... " >&6; } 4704if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 if test -n "$ac_ct_DUMPBIN"; then 4708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4709else 4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711for as_dir in $PATH 4712do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721done 4722 done 4723IFS=$as_save_IFS 4724 4725fi 4726fi 4727ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4728if test -n "$ac_ct_DUMPBIN"; then 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4730$as_echo "$ac_ct_DUMPBIN" >&6; } 4731else 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4733$as_echo "no" >&6; } 4734fi 4735 4736 4737 test -n "$ac_ct_DUMPBIN" && break 4738done 4739 4740 if test "x$ac_ct_DUMPBIN" = x; then 4741 DUMPBIN=":" 4742 else 4743 case $cross_compiling:$ac_tool_warned in 4744yes:) 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4747ac_tool_warned=yes ;; 4748esac 4749 DUMPBIN=$ac_ct_DUMPBIN 4750 fi 4751fi 4752 4753 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4754 *COFF*) 4755 DUMPBIN="$DUMPBIN -symbols -headers" 4756 ;; 4757 *) 4758 DUMPBIN=: 4759 ;; 4760 esac 4761 fi 4762 4763 if test : != "$DUMPBIN"; then 4764 NM=$DUMPBIN 4765 fi 4766fi 4767test -z "$NM" && NM=nm 4768 4769 4770 4771 4772 4773 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4775$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4776if ${lt_cv_nm_interface+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 lt_cv_nm_interface="BSD nm" 4780 echo "int some_variable = 0;" > conftest.$ac_ext 4781 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4782 (eval "$ac_compile" 2>conftest.err) 4783 cat conftest.err >&5 4784 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4785 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4786 cat conftest.err >&5 4787 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4788 cat conftest.out >&5 4789 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4790 lt_cv_nm_interface="MS dumpbin" 4791 fi 4792 rm -f conftest* 4793fi 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4795$as_echo "$lt_cv_nm_interface" >&6; } 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4798$as_echo_n "checking whether ln -s works... " >&6; } 4799LN_S=$as_ln_s 4800if test "$LN_S" = "ln -s"; then 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4802$as_echo "yes" >&6; } 4803else 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4805$as_echo "no, using $LN_S" >&6; } 4806fi 4807 4808# find the maximum length of command line arguments 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4810$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4811if ${lt_cv_sys_max_cmd_len+:} false; then : 4812 $as_echo_n "(cached) " >&6 4813else 4814 i=0 4815 teststring=ABCD 4816 4817 case $build_os in 4818 msdosdjgpp*) 4819 # On DJGPP, this test can blow up pretty badly due to problems in libc 4820 # (any single argument exceeding 2000 bytes causes a buffer overrun 4821 # during glob expansion). Even if it were fixed, the result of this 4822 # check would be larger than it should be. 4823 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4824 ;; 4825 4826 gnu*) 4827 # Under GNU Hurd, this test is not required because there is 4828 # no limit to the length of command line arguments. 4829 # Libtool will interpret -1 as no limit whatsoever 4830 lt_cv_sys_max_cmd_len=-1; 4831 ;; 4832 4833 cygwin* | mingw* | cegcc*) 4834 # On Win9x/ME, this test blows up -- it succeeds, but takes 4835 # about 5 minutes as the teststring grows exponentially. 4836 # Worse, since 9x/ME are not pre-emptively multitasking, 4837 # you end up with a "frozen" computer, even though with patience 4838 # the test eventually succeeds (with a max line length of 256k). 4839 # Instead, let's just punt: use the minimum linelength reported by 4840 # all of the supported platforms: 8192 (on NT/2K/XP). 4841 lt_cv_sys_max_cmd_len=8192; 4842 ;; 4843 4844 mint*) 4845 # On MiNT this can take a long time and run out of memory. 4846 lt_cv_sys_max_cmd_len=8192; 4847 ;; 4848 4849 amigaos*) 4850 # On AmigaOS with pdksh, this test takes hours, literally. 4851 # So we just punt and use a minimum line length of 8192. 4852 lt_cv_sys_max_cmd_len=8192; 4853 ;; 4854 4855 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4856 # This has been around since 386BSD, at least. Likely further. 4857 if test -x /sbin/sysctl; then 4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4859 elif test -x /usr/sbin/sysctl; then 4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4861 else 4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4863 fi 4864 # And add a safety zone 4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4867 ;; 4868 4869 interix*) 4870 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4871 lt_cv_sys_max_cmd_len=196608 4872 ;; 4873 4874 os2*) 4875 # The test takes a long time on OS/2. 4876 lt_cv_sys_max_cmd_len=8192 4877 ;; 4878 4879 osf*) 4880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4882 # nice to cause kernel panics so lets avoid the loop below. 4883 # First set a reasonable default. 4884 lt_cv_sys_max_cmd_len=16384 4885 # 4886 if test -x /sbin/sysconfig; then 4887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4888 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4889 esac 4890 fi 4891 ;; 4892 sco3.2v5*) 4893 lt_cv_sys_max_cmd_len=102400 4894 ;; 4895 sysv5* | sco5v6* | sysv4.2uw2*) 4896 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4897 if test -n "$kargmax"; then 4898 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4899 else 4900 lt_cv_sys_max_cmd_len=32768 4901 fi 4902 ;; 4903 *) 4904 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4905 if test -n "$lt_cv_sys_max_cmd_len" && \ 4906 test undefined != "$lt_cv_sys_max_cmd_len"; then 4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4909 else 4910 # Make teststring a little bigger before we do anything with it. 4911 # a 1K string should be a reasonable start. 4912 for i in 1 2 3 4 5 6 7 8; do 4913 teststring=$teststring$teststring 4914 done 4915 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4916 # If test is not a shell built-in, we'll probably end up computing a 4917 # maximum length that is only half of the actual maximum length, but 4918 # we can't tell. 4919 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4920 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4921 test 17 != "$i" # 1/2 MB should be enough 4922 do 4923 i=`expr $i + 1` 4924 teststring=$teststring$teststring 4925 done 4926 # Only check the string length outside the loop. 4927 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4928 teststring= 4929 # Add a significant safety factor because C++ compilers can tack on 4930 # massive amounts of additional arguments before passing them to the 4931 # linker. It appears as though 1/2 is a usable value. 4932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4933 fi 4934 ;; 4935 esac 4936 4937fi 4938 4939if test -n "$lt_cv_sys_max_cmd_len"; then 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4941$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4942else 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4944$as_echo "none" >&6; } 4945fi 4946max_cmd_len=$lt_cv_sys_max_cmd_len 4947 4948 4949 4950 4951 4952 4953: ${CP="cp -f"} 4954: ${MV="mv -f"} 4955: ${RM="rm -f"} 4956 4957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4958 lt_unset=unset 4959else 4960 lt_unset=false 4961fi 4962 4963 4964 4965 4966 4967# test EBCDIC or ASCII 4968case `echo X|tr X '\101'` in 4969 A) # ASCII based system 4970 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4971 lt_SP2NL='tr \040 \012' 4972 lt_NL2SP='tr \015\012 \040\040' 4973 ;; 4974 *) # EBCDIC based system 4975 lt_SP2NL='tr \100 \n' 4976 lt_NL2SP='tr \r\n \100\100' 4977 ;; 4978esac 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4989$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4990if ${lt_cv_to_host_file_cmd+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 case $host in 4994 *-*-mingw* ) 4995 case $build in 4996 *-*-mingw* ) # actually msys 4997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4998 ;; 4999 *-*-cygwin* ) 5000 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5001 ;; 5002 * ) # otherwise, assume *nix 5003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5004 ;; 5005 esac 5006 ;; 5007 *-*-cygwin* ) 5008 case $build in 5009 *-*-mingw* ) # actually msys 5010 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5011 ;; 5012 *-*-cygwin* ) 5013 lt_cv_to_host_file_cmd=func_convert_file_noop 5014 ;; 5015 * ) # otherwise, assume *nix 5016 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5017 ;; 5018 esac 5019 ;; 5020 * ) # unhandled hosts (and "normal" native builds) 5021 lt_cv_to_host_file_cmd=func_convert_file_noop 5022 ;; 5023esac 5024 5025fi 5026 5027to_host_file_cmd=$lt_cv_to_host_file_cmd 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5029$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5030 5031 5032 5033 5034 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5036$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5037if ${lt_cv_to_tool_file_cmd+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 #assume ordinary cross tools, or native build. 5041lt_cv_to_tool_file_cmd=func_convert_file_noop 5042case $host in 5043 *-*-mingw* ) 5044 case $build in 5045 *-*-mingw* ) # actually msys 5046 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5047 ;; 5048 esac 5049 ;; 5050esac 5051 5052fi 5053 5054to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5056$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5057 5058 5059 5060 5061 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5063$as_echo_n "checking for $LD option to reload object files... " >&6; } 5064if ${lt_cv_ld_reload_flag+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 lt_cv_ld_reload_flag='-r' 5068fi 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5070$as_echo "$lt_cv_ld_reload_flag" >&6; } 5071reload_flag=$lt_cv_ld_reload_flag 5072case $reload_flag in 5073"" | " "*) ;; 5074*) reload_flag=" $reload_flag" ;; 5075esac 5076reload_cmds='$LD$reload_flag -o $output$reload_objs' 5077case $host_os in 5078 cygwin* | mingw* | pw32* | cegcc*) 5079 if test yes != "$GCC"; then 5080 reload_cmds=false 5081 fi 5082 ;; 5083 darwin*) 5084 if test yes = "$GCC"; then 5085 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5086 else 5087 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5088 fi 5089 ;; 5090esac 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100if test -n "$ac_tool_prefix"; then 5101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5102set dummy ${ac_tool_prefix}objdump; ac_word=$2 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5104$as_echo_n "checking for $ac_word... " >&6; } 5105if ${ac_cv_prog_OBJDUMP+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 if test -n "$OBJDUMP"; then 5109 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5110else 5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5112for as_dir in $PATH 5113do 5114 IFS=$as_save_IFS 5115 test -z "$as_dir" && as_dir=. 5116 for ac_exec_ext in '' $ac_executable_extensions; do 5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5118 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5120 break 2 5121 fi 5122done 5123 done 5124IFS=$as_save_IFS 5125 5126fi 5127fi 5128OBJDUMP=$ac_cv_prog_OBJDUMP 5129if test -n "$OBJDUMP"; then 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5131$as_echo "$OBJDUMP" >&6; } 5132else 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5134$as_echo "no" >&6; } 5135fi 5136 5137 5138fi 5139if test -z "$ac_cv_prog_OBJDUMP"; then 5140 ac_ct_OBJDUMP=$OBJDUMP 5141 # Extract the first word of "objdump", so it can be a program name with args. 5142set dummy objdump; ac_word=$2 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5144$as_echo_n "checking for $ac_word... " >&6; } 5145if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5146 $as_echo_n "(cached) " >&6 5147else 5148 if test -n "$ac_ct_OBJDUMP"; then 5149 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5150else 5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5152for as_dir in $PATH 5153do 5154 IFS=$as_save_IFS 5155 test -z "$as_dir" && as_dir=. 5156 for ac_exec_ext in '' $ac_executable_extensions; do 5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5158 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5160 break 2 5161 fi 5162done 5163 done 5164IFS=$as_save_IFS 5165 5166fi 5167fi 5168ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5169if test -n "$ac_ct_OBJDUMP"; then 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5171$as_echo "$ac_ct_OBJDUMP" >&6; } 5172else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5174$as_echo "no" >&6; } 5175fi 5176 5177 if test "x$ac_ct_OBJDUMP" = x; then 5178 OBJDUMP="false" 5179 else 5180 case $cross_compiling:$ac_tool_warned in 5181yes:) 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5184ac_tool_warned=yes ;; 5185esac 5186 OBJDUMP=$ac_ct_OBJDUMP 5187 fi 5188else 5189 OBJDUMP="$ac_cv_prog_OBJDUMP" 5190fi 5191 5192test -z "$OBJDUMP" && OBJDUMP=objdump 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5203$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5204if ${lt_cv_deplibs_check_method+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 lt_cv_file_magic_cmd='$MAGIC_CMD' 5208lt_cv_file_magic_test_file= 5209lt_cv_deplibs_check_method='unknown' 5210# Need to set the preceding variable on all platforms that support 5211# interlibrary dependencies. 5212# 'none' -- dependencies not supported. 5213# 'unknown' -- same as none, but documents that we really don't know. 5214# 'pass_all' -- all dependencies passed with no checks. 5215# 'test_compile' -- check by making test program. 5216# 'file_magic [[regex]]' -- check by looking for files in library path 5217# that responds to the $file_magic_cmd with a given extended regex. 5218# If you have 'file' or equivalent on your system and you're not sure 5219# whether 'pass_all' will *always* work, you probably want this one. 5220 5221case $host_os in 5222aix[4-9]*) 5223 lt_cv_deplibs_check_method=pass_all 5224 ;; 5225 5226beos*) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230bsdi[45]*) 5231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5232 lt_cv_file_magic_cmd='/usr/bin/file -L' 5233 lt_cv_file_magic_test_file=/shlib/libc.so 5234 ;; 5235 5236cygwin*) 5237 # func_win32_libid is a shell function defined in ltmain.sh 5238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5239 lt_cv_file_magic_cmd='func_win32_libid' 5240 ;; 5241 5242mingw* | pw32*) 5243 # Base MSYS/MinGW do not provide the 'file' command needed by 5244 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5245 # unless we find 'file', for example because we are cross-compiling. 5246 if ( file / ) >/dev/null 2>&1; then 5247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5248 lt_cv_file_magic_cmd='func_win32_libid' 5249 else 5250 # Keep this pattern in sync with the one in func_win32_libid. 5251 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5252 lt_cv_file_magic_cmd='$OBJDUMP -f' 5253 fi 5254 ;; 5255 5256cegcc*) 5257 # use the weaker test based on 'objdump'. See mingw*. 5258 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5259 lt_cv_file_magic_cmd='$OBJDUMP -f' 5260 ;; 5261 5262darwin* | rhapsody*) 5263 lt_cv_deplibs_check_method=pass_all 5264 ;; 5265 5266freebsd* | dragonfly*) 5267 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5268 case $host_cpu in 5269 i*86 ) 5270 # Not sure whether the presence of OpenBSD here was a mistake. 5271 # Let's accept both of them until this is cleared up. 5272 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5273 lt_cv_file_magic_cmd=/usr/bin/file 5274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5275 ;; 5276 esac 5277 else 5278 lt_cv_deplibs_check_method=pass_all 5279 fi 5280 ;; 5281 5282haiku*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285 5286hpux10.20* | hpux11*) 5287 lt_cv_file_magic_cmd=/usr/bin/file 5288 case $host_cpu in 5289 ia64*) 5290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5291 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5292 ;; 5293 hppa*64*) 5294 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]' 5295 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5296 ;; 5297 *) 5298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5299 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5300 ;; 5301 esac 5302 ;; 5303 5304interix[3-9]*) 5305 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5307 ;; 5308 5309irix5* | irix6* | nonstopux*) 5310 case $LD in 5311 *-32|*"-32 ") libmagic=32-bit;; 5312 *-n32|*"-n32 ") libmagic=N32;; 5313 *-64|*"-64 ") libmagic=64-bit;; 5314 *) libmagic=never-match;; 5315 esac 5316 lt_cv_deplibs_check_method=pass_all 5317 ;; 5318 5319# This must be glibc/ELF. 5320linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5321 lt_cv_deplibs_check_method=pass_all 5322 ;; 5323 5324netbsd*) 5325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5327 else 5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5329 fi 5330 ;; 5331 5332newos6*) 5333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5334 lt_cv_file_magic_cmd=/usr/bin/file 5335 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5336 ;; 5337 5338*nto* | *qnx*) 5339 lt_cv_deplibs_check_method=pass_all 5340 ;; 5341 5342openbsd* | bitrig*) 5343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5345 else 5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5347 fi 5348 ;; 5349 5350osf3* | osf4* | osf5*) 5351 lt_cv_deplibs_check_method=pass_all 5352 ;; 5353 5354rdos*) 5355 lt_cv_deplibs_check_method=pass_all 5356 ;; 5357 5358solaris*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 5362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365 5366sysv4 | sysv4.3*) 5367 case $host_vendor in 5368 motorola) 5369 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]' 5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5371 ;; 5372 ncr) 5373 lt_cv_deplibs_check_method=pass_all 5374 ;; 5375 sequent) 5376 lt_cv_file_magic_cmd='/bin/file' 5377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5378 ;; 5379 sni) 5380 lt_cv_file_magic_cmd='/bin/file' 5381 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5382 lt_cv_file_magic_test_file=/lib/libc.so 5383 ;; 5384 siemens) 5385 lt_cv_deplibs_check_method=pass_all 5386 ;; 5387 pc) 5388 lt_cv_deplibs_check_method=pass_all 5389 ;; 5390 esac 5391 ;; 5392 5393tpf*) 5394 lt_cv_deplibs_check_method=pass_all 5395 ;; 5396os2*) 5397 lt_cv_deplibs_check_method=pass_all 5398 ;; 5399esac 5400 5401fi 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5403$as_echo "$lt_cv_deplibs_check_method" >&6; } 5404 5405file_magic_glob= 5406want_nocaseglob=no 5407if test "$build" = "$host"; then 5408 case $host_os in 5409 mingw* | pw32*) 5410 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5411 want_nocaseglob=yes 5412 else 5413 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5414 fi 5415 ;; 5416 esac 5417fi 5418 5419file_magic_cmd=$lt_cv_file_magic_cmd 5420deplibs_check_method=$lt_cv_deplibs_check_method 5421test -z "$deplibs_check_method" && deplibs_check_method=unknown 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444if test -n "$ac_tool_prefix"; then 5445 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5446set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5448$as_echo_n "checking for $ac_word... " >&6; } 5449if ${ac_cv_prog_DLLTOOL+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 if test -n "$DLLTOOL"; then 5453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5454else 5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5456for as_dir in $PATH 5457do 5458 IFS=$as_save_IFS 5459 test -z "$as_dir" && as_dir=. 5460 for ac_exec_ext in '' $ac_executable_extensions; do 5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5462 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5464 break 2 5465 fi 5466done 5467 done 5468IFS=$as_save_IFS 5469 5470fi 5471fi 5472DLLTOOL=$ac_cv_prog_DLLTOOL 5473if test -n "$DLLTOOL"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5475$as_echo "$DLLTOOL" >&6; } 5476else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478$as_echo "no" >&6; } 5479fi 5480 5481 5482fi 5483if test -z "$ac_cv_prog_DLLTOOL"; then 5484 ac_ct_DLLTOOL=$DLLTOOL 5485 # Extract the first word of "dlltool", so it can be a program name with args. 5486set dummy dlltool; ac_word=$2 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5488$as_echo_n "checking for $ac_word... " >&6; } 5489if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 if test -n "$ac_ct_DLLTOOL"; then 5493 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5494else 5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496for as_dir in $PATH 5497do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5502 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506done 5507 done 5508IFS=$as_save_IFS 5509 5510fi 5511fi 5512ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5513if test -n "$ac_ct_DLLTOOL"; then 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5515$as_echo "$ac_ct_DLLTOOL" >&6; } 5516else 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5518$as_echo "no" >&6; } 5519fi 5520 5521 if test "x$ac_ct_DLLTOOL" = x; then 5522 DLLTOOL="false" 5523 else 5524 case $cross_compiling:$ac_tool_warned in 5525yes:) 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5528ac_tool_warned=yes ;; 5529esac 5530 DLLTOOL=$ac_ct_DLLTOOL 5531 fi 5532else 5533 DLLTOOL="$ac_cv_prog_DLLTOOL" 5534fi 5535 5536test -z "$DLLTOOL" && DLLTOOL=dlltool 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5548$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5549if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 lt_cv_sharedlib_from_linklib_cmd='unknown' 5553 5554case $host_os in 5555cygwin* | mingw* | pw32* | cegcc*) 5556 # two different shell functions defined in ltmain.sh; 5557 # decide which one to use based on capabilities of $DLLTOOL 5558 case `$DLLTOOL --help 2>&1` in 5559 *--identify-strict*) 5560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5561 ;; 5562 *) 5563 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5564 ;; 5565 esac 5566 ;; 5567*) 5568 # fallback: assume linklib IS sharedlib 5569 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5570 ;; 5571esac 5572 5573fi 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5575$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5576sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5577test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5578 5579 5580 5581 5582 5583 5584 5585 5586if test -n "$ac_tool_prefix"; then 5587 for ac_prog in ar 5588 do 5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5590set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5592$as_echo_n "checking for $ac_word... " >&6; } 5593if ${ac_cv_prog_AR+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 if test -n "$AR"; then 5597 ac_cv_prog_AR="$AR" # Let the user override the test. 5598else 5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5600for as_dir in $PATH 5601do 5602 IFS=$as_save_IFS 5603 test -z "$as_dir" && as_dir=. 5604 for ac_exec_ext in '' $ac_executable_extensions; do 5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5606 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5608 break 2 5609 fi 5610done 5611 done 5612IFS=$as_save_IFS 5613 5614fi 5615fi 5616AR=$ac_cv_prog_AR 5617if test -n "$AR"; then 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5619$as_echo "$AR" >&6; } 5620else 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5622$as_echo "no" >&6; } 5623fi 5624 5625 5626 test -n "$AR" && break 5627 done 5628fi 5629if test -z "$AR"; then 5630 ac_ct_AR=$AR 5631 for ac_prog in ar 5632do 5633 # Extract the first word of "$ac_prog", so it can be a program name with args. 5634set dummy $ac_prog; ac_word=$2 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5636$as_echo_n "checking for $ac_word... " >&6; } 5637if ${ac_cv_prog_ac_ct_AR+:} false; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 if test -n "$ac_ct_AR"; then 5641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5642else 5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5644for as_dir in $PATH 5645do 5646 IFS=$as_save_IFS 5647 test -z "$as_dir" && as_dir=. 5648 for ac_exec_ext in '' $ac_executable_extensions; do 5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5650 ac_cv_prog_ac_ct_AR="$ac_prog" 5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5652 break 2 5653 fi 5654done 5655 done 5656IFS=$as_save_IFS 5657 5658fi 5659fi 5660ac_ct_AR=$ac_cv_prog_ac_ct_AR 5661if test -n "$ac_ct_AR"; then 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5663$as_echo "$ac_ct_AR" >&6; } 5664else 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5666$as_echo "no" >&6; } 5667fi 5668 5669 5670 test -n "$ac_ct_AR" && break 5671done 5672 5673 if test "x$ac_ct_AR" = x; then 5674 AR="false" 5675 else 5676 case $cross_compiling:$ac_tool_warned in 5677yes:) 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5680ac_tool_warned=yes ;; 5681esac 5682 AR=$ac_ct_AR 5683 fi 5684fi 5685 5686: ${AR=ar} 5687: ${AR_FLAGS=cru} 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5700$as_echo_n "checking for archiver @FILE support... " >&6; } 5701if ${lt_cv_ar_at_file+:} false; then : 5702 $as_echo_n "(cached) " >&6 5703else 5704 lt_cv_ar_at_file=no 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707 5708int 5709main () 5710{ 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716if ac_fn_c_try_compile "$LINENO"; then : 5717 echo conftest.$ac_objext > conftest.lst 5718 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5720 (eval $lt_ar_try) 2>&5 5721 ac_status=$? 5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5723 test $ac_status = 0; } 5724 if test 0 -eq "$ac_status"; then 5725 # Ensure the archiver fails upon bogus file names. 5726 rm -f conftest.$ac_objext libconftest.a 5727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5728 (eval $lt_ar_try) 2>&5 5729 ac_status=$? 5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5731 test $ac_status = 0; } 5732 if test 0 -ne "$ac_status"; then 5733 lt_cv_ar_at_file=@ 5734 fi 5735 fi 5736 rm -f conftest.* libconftest.a 5737 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5740 5741fi 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5743$as_echo "$lt_cv_ar_at_file" >&6; } 5744 5745if test no = "$lt_cv_ar_at_file"; then 5746 archiver_list_spec= 5747else 5748 archiver_list_spec=$lt_cv_ar_at_file 5749fi 5750 5751 5752 5753 5754 5755 5756 5757if test -n "$ac_tool_prefix"; then 5758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5759set dummy ${ac_tool_prefix}strip; ac_word=$2 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5761$as_echo_n "checking for $ac_word... " >&6; } 5762if ${ac_cv_prog_STRIP+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 if test -n "$STRIP"; then 5766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5767else 5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769for as_dir in $PATH 5770do 5771 IFS=$as_save_IFS 5772 test -z "$as_dir" && as_dir=. 5773 for ac_exec_ext in '' $ac_executable_extensions; do 5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5775 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5777 break 2 5778 fi 5779done 5780 done 5781IFS=$as_save_IFS 5782 5783fi 5784fi 5785STRIP=$ac_cv_prog_STRIP 5786if test -n "$STRIP"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5788$as_echo "$STRIP" >&6; } 5789else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791$as_echo "no" >&6; } 5792fi 5793 5794 5795fi 5796if test -z "$ac_cv_prog_STRIP"; then 5797 ac_ct_STRIP=$STRIP 5798 # Extract the first word of "strip", so it can be a program name with args. 5799set dummy strip; ac_word=$2 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5801$as_echo_n "checking for $ac_word... " >&6; } 5802if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804else 5805 if test -n "$ac_ct_STRIP"; then 5806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5807else 5808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5809for as_dir in $PATH 5810do 5811 IFS=$as_save_IFS 5812 test -z "$as_dir" && as_dir=. 5813 for ac_exec_ext in '' $ac_executable_extensions; do 5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5815 ac_cv_prog_ac_ct_STRIP="strip" 5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5817 break 2 5818 fi 5819done 5820 done 5821IFS=$as_save_IFS 5822 5823fi 5824fi 5825ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5826if test -n "$ac_ct_STRIP"; then 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5828$as_echo "$ac_ct_STRIP" >&6; } 5829else 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5831$as_echo "no" >&6; } 5832fi 5833 5834 if test "x$ac_ct_STRIP" = x; then 5835 STRIP=":" 5836 else 5837 case $cross_compiling:$ac_tool_warned in 5838yes:) 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5841ac_tool_warned=yes ;; 5842esac 5843 STRIP=$ac_ct_STRIP 5844 fi 5845else 5846 STRIP="$ac_cv_prog_STRIP" 5847fi 5848 5849test -z "$STRIP" && STRIP=: 5850 5851 5852 5853 5854 5855 5856if test -n "$ac_tool_prefix"; then 5857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5858set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860$as_echo_n "checking for $ac_word... " >&6; } 5861if ${ac_cv_prog_RANLIB+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863else 5864 if test -n "$RANLIB"; then 5865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5866else 5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH 5869do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878done 5879 done 5880IFS=$as_save_IFS 5881 5882fi 5883fi 5884RANLIB=$ac_cv_prog_RANLIB 5885if test -n "$RANLIB"; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5887$as_echo "$RANLIB" >&6; } 5888else 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5890$as_echo "no" >&6; } 5891fi 5892 5893 5894fi 5895if test -z "$ac_cv_prog_RANLIB"; then 5896 ac_ct_RANLIB=$RANLIB 5897 # Extract the first word of "ranlib", so it can be a program name with args. 5898set dummy ranlib; ac_word=$2 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900$as_echo_n "checking for $ac_word... " >&6; } 5901if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 if test -n "$ac_ct_RANLIB"; then 5905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5906else 5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH 5909do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5914 ac_cv_prog_ac_ct_RANLIB="ranlib" 5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918done 5919 done 5920IFS=$as_save_IFS 5921 5922fi 5923fi 5924ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5925if test -n "$ac_ct_RANLIB"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5927$as_echo "$ac_ct_RANLIB" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932 5933 if test "x$ac_ct_RANLIB" = x; then 5934 RANLIB=":" 5935 else 5936 case $cross_compiling:$ac_tool_warned in 5937yes:) 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5940ac_tool_warned=yes ;; 5941esac 5942 RANLIB=$ac_ct_RANLIB 5943 fi 5944else 5945 RANLIB="$ac_cv_prog_RANLIB" 5946fi 5947 5948test -z "$RANLIB" && RANLIB=: 5949 5950 5951 5952 5953 5954 5955# Determine commands to create old-style static archives. 5956old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5957old_postinstall_cmds='chmod 644 $oldlib' 5958old_postuninstall_cmds= 5959 5960if test -n "$RANLIB"; then 5961 case $host_os in 5962 bitrig* | openbsd*) 5963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5964 ;; 5965 *) 5966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5967 ;; 5968 esac 5969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5970fi 5971 5972case $host_os in 5973 darwin*) 5974 lock_old_archive_extraction=yes ;; 5975 *) 5976 lock_old_archive_extraction=no ;; 5977esac 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017# If no C compiler was specified, use CC. 6018LTCC=${LTCC-"$CC"} 6019 6020# If no C compiler flags were specified, use CFLAGS. 6021LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6022 6023# Allow CC to be a program name with arguments. 6024compiler=$CC 6025 6026 6027# Check for command to grab the raw symbol name followed by C symbol from nm. 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6029$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6030if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 6034# These are sane defaults that work on at least a few old systems. 6035# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6036 6037# Character class describing NM global symbol codes. 6038symcode='[BCDEGRST]' 6039 6040# Regexp to match symbols that can be accessed directly from C. 6041sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6042 6043# Define system-specific variables. 6044case $host_os in 6045aix*) 6046 symcode='[BCDT]' 6047 ;; 6048cygwin* | mingw* | pw32* | cegcc*) 6049 symcode='[ABCDGISTW]' 6050 ;; 6051hpux*) 6052 if test ia64 = "$host_cpu"; then 6053 symcode='[ABCDEGRST]' 6054 fi 6055 ;; 6056irix* | nonstopux*) 6057 symcode='[BCDEGRST]' 6058 ;; 6059osf*) 6060 symcode='[BCDEGQRST]' 6061 ;; 6062solaris*) 6063 symcode='[BDRT]' 6064 ;; 6065sco3.2v5*) 6066 symcode='[DT]' 6067 ;; 6068sysv4.2uw2*) 6069 symcode='[DT]' 6070 ;; 6071sysv5* | sco5v6* | unixware* | OpenUNIX*) 6072 symcode='[ABDT]' 6073 ;; 6074sysv4) 6075 symcode='[DFNSTU]' 6076 ;; 6077esac 6078 6079# If we're using GNU nm, then use its standard symbol codes. 6080case `$NM -V 2>&1` in 6081*GNU* | *'with BFD'*) 6082 symcode='[ABCDGIRSTW]' ;; 6083esac 6084 6085if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6086 # Gets list of data symbols to import. 6087 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6088 # Adjust the below global symbol transforms to fixup imported variables. 6089 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6090 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6091 lt_c_name_lib_hook="\ 6092 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6093 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6094else 6095 # Disable hooks by default. 6096 lt_cv_sys_global_symbol_to_import= 6097 lt_cdecl_hook= 6098 lt_c_name_hook= 6099 lt_c_name_lib_hook= 6100fi 6101 6102# Transform an extracted symbol line into a proper C declaration. 6103# Some systems (esp. on ia64) link data and code symbols differently, 6104# so use this general approach. 6105lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6106$lt_cdecl_hook\ 6107" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6108" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6109 6110# Transform an extracted symbol line into symbol name and symbol address 6111lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6112$lt_c_name_hook\ 6113" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6114" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6115 6116# Transform an extracted symbol line into symbol name with lib prefix and 6117# symbol address. 6118lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6119$lt_c_name_lib_hook\ 6120" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6121" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6122" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6123 6124# Handle CRLF in mingw tool chain 6125opt_cr= 6126case $build_os in 6127mingw*) 6128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6129 ;; 6130esac 6131 6132# Try without a prefix underscore, then with it. 6133for ac_symprfx in "" "_"; do 6134 6135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6136 symxfrm="\\1 $ac_symprfx\\2 \\2" 6137 6138 # Write the raw and C identifiers. 6139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6140 # Fake it for dumpbin and say T for any non-static function, 6141 # D for any global variable and I for any imported variable. 6142 # Also find C++ and __fastcall symbols from MSVC++, 6143 # which start with @ or ?. 6144 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6145" {last_section=section; section=\$ 3};"\ 6146" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6147" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6148" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6149" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6150" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6151" \$ 0!~/External *\|/{next};"\ 6152" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6153" {if(hide[section]) next};"\ 6154" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6155" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6156" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6157" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6158" ' prfx=^$ac_symprfx" 6159 else 6160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6161 fi 6162 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6163 6164 # Check to see that the pipe works correctly. 6165 pipe_works=no 6166 6167 rm -f conftest* 6168 cat > conftest.$ac_ext <<_LT_EOF 6169#ifdef __cplusplus 6170extern "C" { 6171#endif 6172char nm_test_var; 6173void nm_test_func(void); 6174void nm_test_func(void){} 6175#ifdef __cplusplus 6176} 6177#endif 6178int main(){nm_test_var='a';nm_test_func();return(0);} 6179_LT_EOF 6180 6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6182 (eval $ac_compile) 2>&5 6183 ac_status=$? 6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6185 test $ac_status = 0; }; then 6186 # Now try to grab the symbols. 6187 nlist=conftest.nm 6188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6189 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6190 ac_status=$? 6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6192 test $ac_status = 0; } && test -s "$nlist"; then 6193 # Try sorting and uniquifying the output. 6194 if sort "$nlist" | uniq > "$nlist"T; then 6195 mv -f "$nlist"T "$nlist" 6196 else 6197 rm -f "$nlist"T 6198 fi 6199 6200 # Make sure that we snagged all the symbols we need. 6201 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6202 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6203 cat <<_LT_EOF > conftest.$ac_ext 6204/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6205#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6206/* DATA imports from DLLs on WIN32 can't be const, because runtime 6207 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6208# define LT_DLSYM_CONST 6209#elif defined __osf__ 6210/* This system does not cope well with relocations in const data. */ 6211# define LT_DLSYM_CONST 6212#else 6213# define LT_DLSYM_CONST const 6214#endif 6215 6216#ifdef __cplusplus 6217extern "C" { 6218#endif 6219 6220_LT_EOF 6221 # Now generate the symbol file. 6222 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6223 6224 cat <<_LT_EOF >> conftest.$ac_ext 6225 6226/* The mapping between symbol names and symbols. */ 6227LT_DLSYM_CONST struct { 6228 const char *name; 6229 void *address; 6230} 6231lt__PROGRAM__LTX_preloaded_symbols[] = 6232{ 6233 { "@PROGRAM@", (void *) 0 }, 6234_LT_EOF 6235 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6236 cat <<\_LT_EOF >> conftest.$ac_ext 6237 {0, (void *) 0} 6238}; 6239 6240/* This works around a problem in FreeBSD linker */ 6241#ifdef FREEBSD_WORKAROUND 6242static const void *lt_preloaded_setup() { 6243 return lt__PROGRAM__LTX_preloaded_symbols; 6244} 6245#endif 6246 6247#ifdef __cplusplus 6248} 6249#endif 6250_LT_EOF 6251 # Now try linking the two files. 6252 mv conftest.$ac_objext conftstm.$ac_objext 6253 lt_globsym_save_LIBS=$LIBS 6254 lt_globsym_save_CFLAGS=$CFLAGS 6255 LIBS=conftstm.$ac_objext 6256 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6258 (eval $ac_link) 2>&5 6259 ac_status=$? 6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6261 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6262 pipe_works=yes 6263 fi 6264 LIBS=$lt_globsym_save_LIBS 6265 CFLAGS=$lt_globsym_save_CFLAGS 6266 else 6267 echo "cannot find nm_test_func in $nlist" >&5 6268 fi 6269 else 6270 echo "cannot find nm_test_var in $nlist" >&5 6271 fi 6272 else 6273 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6274 fi 6275 else 6276 echo "$progname: failed program was:" >&5 6277 cat conftest.$ac_ext >&5 6278 fi 6279 rm -rf conftest* conftst* 6280 6281 # Do not use the global_symbol_pipe unless it works. 6282 if test yes = "$pipe_works"; then 6283 break 6284 else 6285 lt_cv_sys_global_symbol_pipe= 6286 fi 6287done 6288 6289fi 6290 6291if test -z "$lt_cv_sys_global_symbol_pipe"; then 6292 lt_cv_sys_global_symbol_to_cdecl= 6293fi 6294if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6296$as_echo "failed" >&6; } 6297else 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6299$as_echo "ok" >&6; } 6300fi 6301 6302# Response file support. 6303if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6304 nm_file_list_spec='@' 6305elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6306 nm_file_list_spec='@' 6307fi 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6346$as_echo_n "checking for sysroot... " >&6; } 6347 6348# Check whether --with-sysroot was given. 6349if test "${with_sysroot+set}" = set; then : 6350 withval=$with_sysroot; 6351else 6352 with_sysroot=no 6353fi 6354 6355 6356lt_sysroot= 6357case $with_sysroot in #( 6358 yes) 6359 if test yes = "$GCC"; then 6360 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6361 fi 6362 ;; #( 6363 /*) 6364 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6365 ;; #( 6366 no|'') 6367 ;; #( 6368 *) 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6370$as_echo "$with_sysroot" >&6; } 6371 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6372 ;; 6373esac 6374 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6376$as_echo "${lt_sysroot:-no}" >&6; } 6377 6378 6379 6380 6381 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6383$as_echo_n "checking for a working dd... " >&6; } 6384if ${ac_cv_path_lt_DD+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 printf 0123456789abcdef0123456789abcdef >conftest.i 6388cat conftest.i conftest.i >conftest2.i 6389: ${lt_DD:=$DD} 6390if test -z "$lt_DD"; then 6391 ac_path_lt_DD_found=false 6392 # Loop through the user's path and test for each of PROGNAME-LIST 6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6394for as_dir in $PATH 6395do 6396 IFS=$as_save_IFS 6397 test -z "$as_dir" && as_dir=. 6398 for ac_prog in dd; do 6399 for ac_exec_ext in '' $ac_executable_extensions; do 6400 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6401 as_fn_executable_p "$ac_path_lt_DD" || continue 6402if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6403 cmp -s conftest.i conftest.out \ 6404 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6405fi 6406 $ac_path_lt_DD_found && break 3 6407 done 6408 done 6409 done 6410IFS=$as_save_IFS 6411 if test -z "$ac_cv_path_lt_DD"; then 6412 : 6413 fi 6414else 6415 ac_cv_path_lt_DD=$lt_DD 6416fi 6417 6418rm -f conftest.i conftest2.i conftest.out 6419fi 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6421$as_echo "$ac_cv_path_lt_DD" >&6; } 6422 6423 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6425$as_echo_n "checking how to truncate binary pipes... " >&6; } 6426if ${lt_cv_truncate_bin+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 printf 0123456789abcdef0123456789abcdef >conftest.i 6430cat conftest.i conftest.i >conftest2.i 6431lt_cv_truncate_bin= 6432if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6433 cmp -s conftest.i conftest.out \ 6434 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6435fi 6436rm -f conftest.i conftest2.i conftest.out 6437test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6440$as_echo "$lt_cv_truncate_bin" >&6; } 6441 6442 6443 6444 6445 6446 6447 6448# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6449func_cc_basename () 6450{ 6451 for cc_temp in $*""; do 6452 case $cc_temp in 6453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6455 \-*) ;; 6456 *) break;; 6457 esac 6458 done 6459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6460} 6461 6462# Check whether --enable-libtool-lock was given. 6463if test "${enable_libtool_lock+set}" = set; then : 6464 enableval=$enable_libtool_lock; 6465fi 6466 6467test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6468 6469# Some flags need to be propagated to the compiler or linker for good 6470# libtool support. 6471case $host in 6472ia64-*-hpux*) 6473 # Find out what ABI is being produced by ac_compile, and set mode 6474 # options accordingly. 6475 echo 'int i;' > conftest.$ac_ext 6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6477 (eval $ac_compile) 2>&5 6478 ac_status=$? 6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6480 test $ac_status = 0; }; then 6481 case `/usr/bin/file conftest.$ac_objext` in 6482 *ELF-32*) 6483 HPUX_IA64_MODE=32 6484 ;; 6485 *ELF-64*) 6486 HPUX_IA64_MODE=64 6487 ;; 6488 esac 6489 fi 6490 rm -rf conftest* 6491 ;; 6492*-*-irix6*) 6493 # Find out what ABI is being produced by ac_compile, and set linker 6494 # options accordingly. 6495 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6497 (eval $ac_compile) 2>&5 6498 ac_status=$? 6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6500 test $ac_status = 0; }; then 6501 if test yes = "$lt_cv_prog_gnu_ld"; then 6502 case `/usr/bin/file conftest.$ac_objext` in 6503 *32-bit*) 6504 LD="${LD-ld} -melf32bsmip" 6505 ;; 6506 *N32*) 6507 LD="${LD-ld} -melf32bmipn32" 6508 ;; 6509 *64-bit*) 6510 LD="${LD-ld} -melf64bmip" 6511 ;; 6512 esac 6513 else 6514 case `/usr/bin/file conftest.$ac_objext` in 6515 *32-bit*) 6516 LD="${LD-ld} -32" 6517 ;; 6518 *N32*) 6519 LD="${LD-ld} -n32" 6520 ;; 6521 *64-bit*) 6522 LD="${LD-ld} -64" 6523 ;; 6524 esac 6525 fi 6526 fi 6527 rm -rf conftest* 6528 ;; 6529 6530mips64*-*linux*) 6531 # Find out what ABI is being produced by ac_compile, and set linker 6532 # options accordingly. 6533 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6535 (eval $ac_compile) 2>&5 6536 ac_status=$? 6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6538 test $ac_status = 0; }; then 6539 emul=elf 6540 case `/usr/bin/file conftest.$ac_objext` in 6541 *32-bit*) 6542 emul="${emul}32" 6543 ;; 6544 *64-bit*) 6545 emul="${emul}64" 6546 ;; 6547 esac 6548 case `/usr/bin/file conftest.$ac_objext` in 6549 *MSB*) 6550 emul="${emul}btsmip" 6551 ;; 6552 *LSB*) 6553 emul="${emul}ltsmip" 6554 ;; 6555 esac 6556 case `/usr/bin/file conftest.$ac_objext` in 6557 *N32*) 6558 emul="${emul}n32" 6559 ;; 6560 esac 6561 LD="${LD-ld} -m $emul" 6562 fi 6563 rm -rf conftest* 6564 ;; 6565 6566x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6567s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6568 # Find out what ABI is being produced by ac_compile, and set linker 6569 # options accordingly. Note that the listed cases only cover the 6570 # situations where additional linker options are needed (such as when 6571 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6572 # vice versa); the common cases where no linker options are needed do 6573 # not appear in the list. 6574 echo 'int i;' > conftest.$ac_ext 6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6576 (eval $ac_compile) 2>&5 6577 ac_status=$? 6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6579 test $ac_status = 0; }; then 6580 case `/usr/bin/file conftest.o` in 6581 *32-bit*) 6582 case $host in 6583 x86_64-*kfreebsd*-gnu) 6584 LD="${LD-ld} -m elf_i386_fbsd" 6585 ;; 6586 x86_64-*linux*) 6587 case `/usr/bin/file conftest.o` in 6588 *x86-64*) 6589 LD="${LD-ld} -m elf32_x86_64" 6590 ;; 6591 *) 6592 LD="${LD-ld} -m elf_i386" 6593 ;; 6594 esac 6595 ;; 6596 powerpc64le-*linux*) 6597 LD="${LD-ld} -m elf32lppclinux" 6598 ;; 6599 powerpc64-*linux*) 6600 LD="${LD-ld} -m elf32ppclinux" 6601 ;; 6602 s390x-*linux*) 6603 LD="${LD-ld} -m elf_s390" 6604 ;; 6605 sparc64-*linux*) 6606 LD="${LD-ld} -m elf32_sparc" 6607 ;; 6608 esac 6609 ;; 6610 *64-bit*) 6611 case $host in 6612 x86_64-*kfreebsd*-gnu) 6613 LD="${LD-ld} -m elf_x86_64_fbsd" 6614 ;; 6615 x86_64-*linux*) 6616 LD="${LD-ld} -m elf_x86_64" 6617 ;; 6618 powerpcle-*linux*) 6619 LD="${LD-ld} -m elf64lppc" 6620 ;; 6621 powerpc-*linux*) 6622 LD="${LD-ld} -m elf64ppc" 6623 ;; 6624 s390*-*linux*|s390*-*tpf*) 6625 LD="${LD-ld} -m elf64_s390" 6626 ;; 6627 sparc*-*linux*) 6628 LD="${LD-ld} -m elf64_sparc" 6629 ;; 6630 esac 6631 ;; 6632 esac 6633 fi 6634 rm -rf conftest* 6635 ;; 6636 6637*-*-sco3.2v5*) 6638 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6639 SAVE_CFLAGS=$CFLAGS 6640 CFLAGS="$CFLAGS -belf" 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6642$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6643if ${lt_cv_cc_needs_belf+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 ac_ext=c 6647ac_cpp='$CPP $CPPFLAGS' 6648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6650ac_compiler_gnu=$ac_cv_c_compiler_gnu 6651 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654 6655int 6656main () 6657{ 6658 6659 ; 6660 return 0; 6661} 6662_ACEOF 6663if ac_fn_c_try_link "$LINENO"; then : 6664 lt_cv_cc_needs_belf=yes 6665else 6666 lt_cv_cc_needs_belf=no 6667fi 6668rm -f core conftest.err conftest.$ac_objext \ 6669 conftest$ac_exeext conftest.$ac_ext 6670 ac_ext=c 6671ac_cpp='$CPP $CPPFLAGS' 6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6674ac_compiler_gnu=$ac_cv_c_compiler_gnu 6675 6676fi 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6678$as_echo "$lt_cv_cc_needs_belf" >&6; } 6679 if test yes != "$lt_cv_cc_needs_belf"; then 6680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6681 CFLAGS=$SAVE_CFLAGS 6682 fi 6683 ;; 6684*-*solaris*) 6685 # Find out what ABI is being produced by ac_compile, and set linker 6686 # options accordingly. 6687 echo 'int i;' > conftest.$ac_ext 6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6689 (eval $ac_compile) 2>&5 6690 ac_status=$? 6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6692 test $ac_status = 0; }; then 6693 case `/usr/bin/file conftest.o` in 6694 *64-bit*) 6695 case $lt_cv_prog_gnu_ld in 6696 yes*) 6697 case $host in 6698 i?86-*-solaris*|x86_64-*-solaris*) 6699 LD="${LD-ld} -m elf_x86_64" 6700 ;; 6701 sparc*-*-solaris*) 6702 LD="${LD-ld} -m elf64_sparc" 6703 ;; 6704 esac 6705 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6706 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6707 LD=${LD-ld}_sol2 6708 fi 6709 ;; 6710 *) 6711 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6712 LD="${LD-ld} -64" 6713 fi 6714 ;; 6715 esac 6716 ;; 6717 esac 6718 fi 6719 rm -rf conftest* 6720 ;; 6721esac 6722 6723need_locks=$enable_libtool_lock 6724 6725if test -n "$ac_tool_prefix"; then 6726 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6727set dummy ${ac_tool_prefix}mt; ac_word=$2 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6729$as_echo_n "checking for $ac_word... " >&6; } 6730if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6731 $as_echo_n "(cached) " >&6 6732else 6733 if test -n "$MANIFEST_TOOL"; then 6734 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6735else 6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6737for as_dir in $PATH 6738do 6739 IFS=$as_save_IFS 6740 test -z "$as_dir" && as_dir=. 6741 for ac_exec_ext in '' $ac_executable_extensions; do 6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6743 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6745 break 2 6746 fi 6747done 6748 done 6749IFS=$as_save_IFS 6750 6751fi 6752fi 6753MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6754if test -n "$MANIFEST_TOOL"; then 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6756$as_echo "$MANIFEST_TOOL" >&6; } 6757else 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6759$as_echo "no" >&6; } 6760fi 6761 6762 6763fi 6764if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6765 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6766 # Extract the first word of "mt", so it can be a program name with args. 6767set dummy mt; ac_word=$2 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6769$as_echo_n "checking for $ac_word... " >&6; } 6770if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 if test -n "$ac_ct_MANIFEST_TOOL"; then 6774 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6775else 6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6783 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787done 6788 done 6789IFS=$as_save_IFS 6790 6791fi 6792fi 6793ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6794if test -n "$ac_ct_MANIFEST_TOOL"; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6796$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6797else 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6799$as_echo "no" >&6; } 6800fi 6801 6802 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6803 MANIFEST_TOOL=":" 6804 else 6805 case $cross_compiling:$ac_tool_warned in 6806yes:) 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6809ac_tool_warned=yes ;; 6810esac 6811 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6812 fi 6813else 6814 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6815fi 6816 6817test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6819$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6820if ${lt_cv_path_mainfest_tool+:} false; then : 6821 $as_echo_n "(cached) " >&6 6822else 6823 lt_cv_path_mainfest_tool=no 6824 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6825 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6826 cat conftest.err >&5 6827 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6828 lt_cv_path_mainfest_tool=yes 6829 fi 6830 rm -f conftest* 6831fi 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6833$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6834if test yes != "$lt_cv_path_mainfest_tool"; then 6835 MANIFEST_TOOL=: 6836fi 6837 6838 6839 6840 6841 6842 6843 case $host_os in 6844 rhapsody* | darwin*) 6845 if test -n "$ac_tool_prefix"; then 6846 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6847set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6849$as_echo_n "checking for $ac_word... " >&6; } 6850if ${ac_cv_prog_DSYMUTIL+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 if test -n "$DSYMUTIL"; then 6854 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6855else 6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857for as_dir in $PATH 6858do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6863 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867done 6868 done 6869IFS=$as_save_IFS 6870 6871fi 6872fi 6873DSYMUTIL=$ac_cv_prog_DSYMUTIL 6874if test -n "$DSYMUTIL"; then 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6876$as_echo "$DSYMUTIL" >&6; } 6877else 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879$as_echo "no" >&6; } 6880fi 6881 6882 6883fi 6884if test -z "$ac_cv_prog_DSYMUTIL"; then 6885 ac_ct_DSYMUTIL=$DSYMUTIL 6886 # Extract the first word of "dsymutil", so it can be a program name with args. 6887set dummy dsymutil; ac_word=$2 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6889$as_echo_n "checking for $ac_word... " >&6; } 6890if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 if test -n "$ac_ct_DSYMUTIL"; then 6894 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6895else 6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897for as_dir in $PATH 6898do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6903 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907done 6908 done 6909IFS=$as_save_IFS 6910 6911fi 6912fi 6913ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6914if test -n "$ac_ct_DSYMUTIL"; then 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6916$as_echo "$ac_ct_DSYMUTIL" >&6; } 6917else 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6919$as_echo "no" >&6; } 6920fi 6921 6922 if test "x$ac_ct_DSYMUTIL" = x; then 6923 DSYMUTIL=":" 6924 else 6925 case $cross_compiling:$ac_tool_warned in 6926yes:) 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6929ac_tool_warned=yes ;; 6930esac 6931 DSYMUTIL=$ac_ct_DSYMUTIL 6932 fi 6933else 6934 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6935fi 6936 6937 if test -n "$ac_tool_prefix"; then 6938 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6939set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941$as_echo_n "checking for $ac_word... " >&6; } 6942if ${ac_cv_prog_NMEDIT+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 if test -n "$NMEDIT"; then 6946 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6947else 6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949for as_dir in $PATH 6950do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6955 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959done 6960 done 6961IFS=$as_save_IFS 6962 6963fi 6964fi 6965NMEDIT=$ac_cv_prog_NMEDIT 6966if test -n "$NMEDIT"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6968$as_echo "$NMEDIT" >&6; } 6969else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971$as_echo "no" >&6; } 6972fi 6973 6974 6975fi 6976if test -z "$ac_cv_prog_NMEDIT"; then 6977 ac_ct_NMEDIT=$NMEDIT 6978 # Extract the first word of "nmedit", so it can be a program name with args. 6979set dummy nmedit; ac_word=$2 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6981$as_echo_n "checking for $ac_word... " >&6; } 6982if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6983 $as_echo_n "(cached) " >&6 6984else 6985 if test -n "$ac_ct_NMEDIT"; then 6986 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6987else 6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6989for as_dir in $PATH 6990do 6991 IFS=$as_save_IFS 6992 test -z "$as_dir" && as_dir=. 6993 for ac_exec_ext in '' $ac_executable_extensions; do 6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6995 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6997 break 2 6998 fi 6999done 7000 done 7001IFS=$as_save_IFS 7002 7003fi 7004fi 7005ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7006if test -n "$ac_ct_NMEDIT"; then 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7008$as_echo "$ac_ct_NMEDIT" >&6; } 7009else 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7011$as_echo "no" >&6; } 7012fi 7013 7014 if test "x$ac_ct_NMEDIT" = x; then 7015 NMEDIT=":" 7016 else 7017 case $cross_compiling:$ac_tool_warned in 7018yes:) 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7021ac_tool_warned=yes ;; 7022esac 7023 NMEDIT=$ac_ct_NMEDIT 7024 fi 7025else 7026 NMEDIT="$ac_cv_prog_NMEDIT" 7027fi 7028 7029 if test -n "$ac_tool_prefix"; then 7030 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7031set dummy ${ac_tool_prefix}lipo; ac_word=$2 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7033$as_echo_n "checking for $ac_word... " >&6; } 7034if ${ac_cv_prog_LIPO+:} false; then : 7035 $as_echo_n "(cached) " >&6 7036else 7037 if test -n "$LIPO"; then 7038 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7039else 7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7041for as_dir in $PATH 7042do 7043 IFS=$as_save_IFS 7044 test -z "$as_dir" && as_dir=. 7045 for ac_exec_ext in '' $ac_executable_extensions; do 7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7047 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7049 break 2 7050 fi 7051done 7052 done 7053IFS=$as_save_IFS 7054 7055fi 7056fi 7057LIPO=$ac_cv_prog_LIPO 7058if test -n "$LIPO"; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7060$as_echo "$LIPO" >&6; } 7061else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063$as_echo "no" >&6; } 7064fi 7065 7066 7067fi 7068if test -z "$ac_cv_prog_LIPO"; then 7069 ac_ct_LIPO=$LIPO 7070 # Extract the first word of "lipo", so it can be a program name with args. 7071set dummy lipo; ac_word=$2 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7073$as_echo_n "checking for $ac_word... " >&6; } 7074if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076else 7077 if test -n "$ac_ct_LIPO"; then 7078 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7079else 7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7081for as_dir in $PATH 7082do 7083 IFS=$as_save_IFS 7084 test -z "$as_dir" && as_dir=. 7085 for ac_exec_ext in '' $ac_executable_extensions; do 7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7087 ac_cv_prog_ac_ct_LIPO="lipo" 7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7089 break 2 7090 fi 7091done 7092 done 7093IFS=$as_save_IFS 7094 7095fi 7096fi 7097ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7098if test -n "$ac_ct_LIPO"; then 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7100$as_echo "$ac_ct_LIPO" >&6; } 7101else 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7103$as_echo "no" >&6; } 7104fi 7105 7106 if test "x$ac_ct_LIPO" = x; then 7107 LIPO=":" 7108 else 7109 case $cross_compiling:$ac_tool_warned in 7110yes:) 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7113ac_tool_warned=yes ;; 7114esac 7115 LIPO=$ac_ct_LIPO 7116 fi 7117else 7118 LIPO="$ac_cv_prog_LIPO" 7119fi 7120 7121 if test -n "$ac_tool_prefix"; then 7122 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7123set dummy ${ac_tool_prefix}otool; ac_word=$2 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7125$as_echo_n "checking for $ac_word... " >&6; } 7126if ${ac_cv_prog_OTOOL+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 if test -n "$OTOOL"; then 7130 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7131else 7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133for as_dir in $PATH 7134do 7135 IFS=$as_save_IFS 7136 test -z "$as_dir" && as_dir=. 7137 for ac_exec_ext in '' $ac_executable_extensions; do 7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7139 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7141 break 2 7142 fi 7143done 7144 done 7145IFS=$as_save_IFS 7146 7147fi 7148fi 7149OTOOL=$ac_cv_prog_OTOOL 7150if test -n "$OTOOL"; then 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7152$as_echo "$OTOOL" >&6; } 7153else 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7155$as_echo "no" >&6; } 7156fi 7157 7158 7159fi 7160if test -z "$ac_cv_prog_OTOOL"; then 7161 ac_ct_OTOOL=$OTOOL 7162 # Extract the first word of "otool", so it can be a program name with args. 7163set dummy otool; ac_word=$2 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165$as_echo_n "checking for $ac_word... " >&6; } 7166if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 if test -n "$ac_ct_OTOOL"; then 7170 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7171else 7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173for as_dir in $PATH 7174do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7179 ac_cv_prog_ac_ct_OTOOL="otool" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183done 7184 done 7185IFS=$as_save_IFS 7186 7187fi 7188fi 7189ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7190if test -n "$ac_ct_OTOOL"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7192$as_echo "$ac_ct_OTOOL" >&6; } 7193else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195$as_echo "no" >&6; } 7196fi 7197 7198 if test "x$ac_ct_OTOOL" = x; then 7199 OTOOL=":" 7200 else 7201 case $cross_compiling:$ac_tool_warned in 7202yes:) 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7205ac_tool_warned=yes ;; 7206esac 7207 OTOOL=$ac_ct_OTOOL 7208 fi 7209else 7210 OTOOL="$ac_cv_prog_OTOOL" 7211fi 7212 7213 if test -n "$ac_tool_prefix"; then 7214 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7215set dummy ${ac_tool_prefix}otool64; ac_word=$2 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7217$as_echo_n "checking for $ac_word... " >&6; } 7218if ${ac_cv_prog_OTOOL64+:} false; then : 7219 $as_echo_n "(cached) " >&6 7220else 7221 if test -n "$OTOOL64"; then 7222 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7223else 7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7225for as_dir in $PATH 7226do 7227 IFS=$as_save_IFS 7228 test -z "$as_dir" && as_dir=. 7229 for ac_exec_ext in '' $ac_executable_extensions; do 7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7231 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7233 break 2 7234 fi 7235done 7236 done 7237IFS=$as_save_IFS 7238 7239fi 7240fi 7241OTOOL64=$ac_cv_prog_OTOOL64 7242if test -n "$OTOOL64"; then 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7244$as_echo "$OTOOL64" >&6; } 7245else 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7247$as_echo "no" >&6; } 7248fi 7249 7250 7251fi 7252if test -z "$ac_cv_prog_OTOOL64"; then 7253 ac_ct_OTOOL64=$OTOOL64 7254 # Extract the first word of "otool64", so it can be a program name with args. 7255set dummy otool64; ac_word=$2 7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7257$as_echo_n "checking for $ac_word... " >&6; } 7258if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260else 7261 if test -n "$ac_ct_OTOOL64"; then 7262 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7263else 7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7265for as_dir in $PATH 7266do 7267 IFS=$as_save_IFS 7268 test -z "$as_dir" && as_dir=. 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7271 ac_cv_prog_ac_ct_OTOOL64="otool64" 7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275done 7276 done 7277IFS=$as_save_IFS 7278 7279fi 7280fi 7281ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7282if test -n "$ac_ct_OTOOL64"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7284$as_echo "$ac_ct_OTOOL64" >&6; } 7285else 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7287$as_echo "no" >&6; } 7288fi 7289 7290 if test "x$ac_ct_OTOOL64" = x; then 7291 OTOOL64=":" 7292 else 7293 case $cross_compiling:$ac_tool_warned in 7294yes:) 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7297ac_tool_warned=yes ;; 7298esac 7299 OTOOL64=$ac_ct_OTOOL64 7300 fi 7301else 7302 OTOOL64="$ac_cv_prog_OTOOL64" 7303fi 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7332$as_echo_n "checking for -single_module linker flag... " >&6; } 7333if ${lt_cv_apple_cc_single_mod+:} false; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 lt_cv_apple_cc_single_mod=no 7337 if test -z "$LT_MULTI_MODULE"; then 7338 # By default we will add the -single_module flag. You can override 7339 # by either setting the environment variable LT_MULTI_MODULE 7340 # non-empty at configure time, or by adding -multi_module to the 7341 # link flags. 7342 rm -rf libconftest.dylib* 7343 echo "int foo(void){return 1;}" > conftest.c 7344 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7345-dynamiclib -Wl,-single_module conftest.c" >&5 7346 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7347 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7348 _lt_result=$? 7349 # If there is a non-empty error log, and "single_module" 7350 # appears in it, assume the flag caused a linker warning 7351 if test -s conftest.err && $GREP single_module conftest.err; then 7352 cat conftest.err >&5 7353 # Otherwise, if the output was created with a 0 exit code from 7354 # the compiler, it worked. 7355 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7356 lt_cv_apple_cc_single_mod=yes 7357 else 7358 cat conftest.err >&5 7359 fi 7360 rm -rf libconftest.dylib* 7361 rm -f conftest.* 7362 fi 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7365$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7366 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7368$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7369if ${lt_cv_ld_exported_symbols_list+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371else 7372 lt_cv_ld_exported_symbols_list=no 7373 save_LDFLAGS=$LDFLAGS 7374 echo "_main" > conftest.sym 7375 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378 7379int 7380main () 7381{ 7382 7383 ; 7384 return 0; 7385} 7386_ACEOF 7387if ac_fn_c_try_link "$LINENO"; then : 7388 lt_cv_ld_exported_symbols_list=yes 7389else 7390 lt_cv_ld_exported_symbols_list=no 7391fi 7392rm -f core conftest.err conftest.$ac_objext \ 7393 conftest$ac_exeext conftest.$ac_ext 7394 LDFLAGS=$save_LDFLAGS 7395 7396fi 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7398$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7399 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7401$as_echo_n "checking for -force_load linker flag... " >&6; } 7402if ${lt_cv_ld_force_load+:} false; then : 7403 $as_echo_n "(cached) " >&6 7404else 7405 lt_cv_ld_force_load=no 7406 cat > conftest.c << _LT_EOF 7407int forced_loaded() { return 2;} 7408_LT_EOF 7409 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7410 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7411 echo "$AR cru libconftest.a conftest.o" >&5 7412 $AR cru libconftest.a conftest.o 2>&5 7413 echo "$RANLIB libconftest.a" >&5 7414 $RANLIB libconftest.a 2>&5 7415 cat > conftest.c << _LT_EOF 7416int main() { return 0;} 7417_LT_EOF 7418 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7419 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7420 _lt_result=$? 7421 if test -s conftest.err && $GREP force_load conftest.err; then 7422 cat conftest.err >&5 7423 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7424 lt_cv_ld_force_load=yes 7425 else 7426 cat conftest.err >&5 7427 fi 7428 rm -f conftest.err libconftest.a conftest conftest.c 7429 rm -rf conftest.dSYM 7430 7431fi 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7433$as_echo "$lt_cv_ld_force_load" >&6; } 7434 case $host_os in 7435 rhapsody* | darwin1.[012]) 7436 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7437 darwin1.*) 7438 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7439 darwin*) 7440 case ${MACOSX_DEPLOYMENT_TARGET},$host in 7441 10.[012],*|,*powerpc*) 7442 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7443 *) 7444 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7445 esac 7446 ;; 7447 esac 7448 if test yes = "$lt_cv_apple_cc_single_mod"; then 7449 _lt_dar_single_mod='$single_module' 7450 fi 7451 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7452 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7453 else 7454 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7455 fi 7456 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7457 _lt_dsymutil='~$DSYMUTIL $lib || :' 7458 else 7459 _lt_dsymutil= 7460 fi 7461 ;; 7462 esac 7463 7464# func_munge_path_list VARIABLE PATH 7465# ----------------------------------- 7466# VARIABLE is name of variable containing _space_ separated list of 7467# directories to be munged by the contents of PATH, which is string 7468# having a format: 7469# "DIR[:DIR]:" 7470# string "DIR[ DIR]" will be prepended to VARIABLE 7471# ":DIR[:DIR]" 7472# string "DIR[ DIR]" will be appended to VARIABLE 7473# "DIRP[:DIRP]::[DIRA:]DIRA" 7474# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7475# "DIRA[ DIRA]" will be appended to VARIABLE 7476# "DIR[:DIR]" 7477# VARIABLE will be replaced by "DIR[ DIR]" 7478func_munge_path_list () 7479{ 7480 case x$2 in 7481 x) 7482 ;; 7483 *:) 7484 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7485 ;; 7486 x:*) 7487 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7488 ;; 7489 *::*) 7490 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7491 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7492 ;; 7493 *) 7494 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7495 ;; 7496 esac 7497} 7498 7499ac_ext=c 7500ac_cpp='$CPP $CPPFLAGS' 7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7503ac_compiler_gnu=$ac_cv_c_compiler_gnu 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7505$as_echo_n "checking how to run the C preprocessor... " >&6; } 7506# On Suns, sometimes $CPP names a directory. 7507if test -n "$CPP" && test -d "$CPP"; then 7508 CPP= 7509fi 7510if test -z "$CPP"; then 7511 if ${ac_cv_prog_CPP+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 # Double quotes because CPP needs to be expanded 7515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7516 do 7517 ac_preproc_ok=false 7518for ac_c_preproc_warn_flag in '' yes 7519do 7520 # Use a header file that comes with gcc, so configuring glibc 7521 # with a fresh cross-compiler works. 7522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7523 # <limits.h> exists even on freestanding compilers. 7524 # On the NeXT, cc -E runs the code through the compiler's parser, 7525 # not just through cpp. "Syntax error" is here to catch this case. 7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7527/* end confdefs.h. */ 7528#ifdef __STDC__ 7529# include <limits.h> 7530#else 7531# include <assert.h> 7532#endif 7533 Syntax error 7534_ACEOF 7535if ac_fn_c_try_cpp "$LINENO"; then : 7536 7537else 7538 # Broken: fails on valid input. 7539continue 7540fi 7541rm -f conftest.err conftest.i conftest.$ac_ext 7542 7543 # OK, works on sane cases. Now check whether nonexistent headers 7544 # can be detected and how. 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547#include <ac_nonexistent.h> 7548_ACEOF 7549if ac_fn_c_try_cpp "$LINENO"; then : 7550 # Broken: success on invalid input. 7551continue 7552else 7553 # Passes both tests. 7554ac_preproc_ok=: 7555break 7556fi 7557rm -f conftest.err conftest.i conftest.$ac_ext 7558 7559done 7560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7561rm -f conftest.i conftest.err conftest.$ac_ext 7562if $ac_preproc_ok; then : 7563 break 7564fi 7565 7566 done 7567 ac_cv_prog_CPP=$CPP 7568 7569fi 7570 CPP=$ac_cv_prog_CPP 7571else 7572 ac_cv_prog_CPP=$CPP 7573fi 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7575$as_echo "$CPP" >&6; } 7576ac_preproc_ok=false 7577for ac_c_preproc_warn_flag in '' yes 7578do 7579 # Use a header file that comes with gcc, so configuring glibc 7580 # with a fresh cross-compiler works. 7581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7582 # <limits.h> exists even on freestanding compilers. 7583 # On the NeXT, cc -E runs the code through the compiler's parser, 7584 # not just through cpp. "Syntax error" is here to catch this case. 7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586/* end confdefs.h. */ 7587#ifdef __STDC__ 7588# include <limits.h> 7589#else 7590# include <assert.h> 7591#endif 7592 Syntax error 7593_ACEOF 7594if ac_fn_c_try_cpp "$LINENO"; then : 7595 7596else 7597 # Broken: fails on valid input. 7598continue 7599fi 7600rm -f conftest.err conftest.i conftest.$ac_ext 7601 7602 # OK, works on sane cases. Now check whether nonexistent headers 7603 # can be detected and how. 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606#include <ac_nonexistent.h> 7607_ACEOF 7608if ac_fn_c_try_cpp "$LINENO"; then : 7609 # Broken: success on invalid input. 7610continue 7611else 7612 # Passes both tests. 7613ac_preproc_ok=: 7614break 7615fi 7616rm -f conftest.err conftest.i conftest.$ac_ext 7617 7618done 7619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7620rm -f conftest.i conftest.err conftest.$ac_ext 7621if $ac_preproc_ok; then : 7622 7623else 7624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7626as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7627See \`config.log' for more details" "$LINENO" 5; } 7628fi 7629 7630ac_ext=c 7631ac_cpp='$CPP $CPPFLAGS' 7632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7634ac_compiler_gnu=$ac_cv_c_compiler_gnu 7635 7636 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7638$as_echo_n "checking for ANSI C header files... " >&6; } 7639if ${ac_cv_header_stdc+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644#include <stdlib.h> 7645#include <stdarg.h> 7646#include <string.h> 7647#include <float.h> 7648 7649int 7650main () 7651{ 7652 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657if ac_fn_c_try_compile "$LINENO"; then : 7658 ac_cv_header_stdc=yes 7659else 7660 ac_cv_header_stdc=no 7661fi 7662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7663 7664if test $ac_cv_header_stdc = yes; then 7665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668#include <string.h> 7669 7670_ACEOF 7671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7672 $EGREP "memchr" >/dev/null 2>&1; then : 7673 7674else 7675 ac_cv_header_stdc=no 7676fi 7677rm -f conftest* 7678 7679fi 7680 7681if test $ac_cv_header_stdc = yes; then 7682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685#include <stdlib.h> 7686 7687_ACEOF 7688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7689 $EGREP "free" >/dev/null 2>&1; then : 7690 7691else 7692 ac_cv_header_stdc=no 7693fi 7694rm -f conftest* 7695 7696fi 7697 7698if test $ac_cv_header_stdc = yes; then 7699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7700 if test "$cross_compiling" = yes; then : 7701 : 7702else 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705#include <ctype.h> 7706#include <stdlib.h> 7707#if ((' ' & 0x0FF) == 0x020) 7708# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7709# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7710#else 7711# define ISLOWER(c) \ 7712 (('a' <= (c) && (c) <= 'i') \ 7713 || ('j' <= (c) && (c) <= 'r') \ 7714 || ('s' <= (c) && (c) <= 'z')) 7715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7716#endif 7717 7718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7719int 7720main () 7721{ 7722 int i; 7723 for (i = 0; i < 256; i++) 7724 if (XOR (islower (i), ISLOWER (i)) 7725 || toupper (i) != TOUPPER (i)) 7726 return 2; 7727 return 0; 7728} 7729_ACEOF 7730if ac_fn_c_try_run "$LINENO"; then : 7731 7732else 7733 ac_cv_header_stdc=no 7734fi 7735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7736 conftest.$ac_objext conftest.beam conftest.$ac_ext 7737fi 7738 7739fi 7740fi 7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7742$as_echo "$ac_cv_header_stdc" >&6; } 7743if test $ac_cv_header_stdc = yes; then 7744 7745$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7746 7747fi 7748 7749# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7750for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7751 inttypes.h stdint.h unistd.h 7752do : 7753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7754ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7755" 7756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7757 cat >>confdefs.h <<_ACEOF 7758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7759_ACEOF 7760 7761fi 7762 7763done 7764 7765 7766for ac_header in dlfcn.h 7767do : 7768 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7769" 7770if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7771 cat >>confdefs.h <<_ACEOF 7772#define HAVE_DLFCN_H 1 7773_ACEOF 7774 7775fi 7776 7777done 7778 7779 7780 7781 7782 7783# Set options 7784 7785 7786 7787 enable_dlopen=no 7788 7789 7790 enable_win32_dll=no 7791 7792 7793 # Check whether --enable-shared was given. 7794if test "${enable_shared+set}" = set; then : 7795 enableval=$enable_shared; p=${PACKAGE-default} 7796 case $enableval in 7797 yes) enable_shared=yes ;; 7798 no) enable_shared=no ;; 7799 *) 7800 enable_shared=no 7801 # Look at the argument we got. We use all the common list separators. 7802 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7803 for pkg in $enableval; do 7804 IFS=$lt_save_ifs 7805 if test "X$pkg" = "X$p"; then 7806 enable_shared=yes 7807 fi 7808 done 7809 IFS=$lt_save_ifs 7810 ;; 7811 esac 7812else 7813 enable_shared=yes 7814fi 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 # Check whether --enable-static was given. 7825if test "${enable_static+set}" = set; then : 7826 enableval=$enable_static; p=${PACKAGE-default} 7827 case $enableval in 7828 yes) enable_static=yes ;; 7829 no) enable_static=no ;; 7830 *) 7831 enable_static=no 7832 # Look at the argument we got. We use all the common list separators. 7833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7834 for pkg in $enableval; do 7835 IFS=$lt_save_ifs 7836 if test "X$pkg" = "X$p"; then 7837 enable_static=yes 7838 fi 7839 done 7840 IFS=$lt_save_ifs 7841 ;; 7842 esac 7843else 7844 enable_static=yes 7845fi 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856# Check whether --with-pic was given. 7857if test "${with_pic+set}" = set; then : 7858 withval=$with_pic; lt_p=${PACKAGE-default} 7859 case $withval in 7860 yes|no) pic_mode=$withval ;; 7861 *) 7862 pic_mode=default 7863 # Look at the argument we got. We use all the common list separators. 7864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7865 for lt_pkg in $withval; do 7866 IFS=$lt_save_ifs 7867 if test "X$lt_pkg" = "X$lt_p"; then 7868 pic_mode=yes 7869 fi 7870 done 7871 IFS=$lt_save_ifs 7872 ;; 7873 esac 7874else 7875 pic_mode=default 7876fi 7877 7878 7879 7880 7881 7882 7883 7884 7885 # Check whether --enable-fast-install was given. 7886if test "${enable_fast_install+set}" = set; then : 7887 enableval=$enable_fast_install; p=${PACKAGE-default} 7888 case $enableval in 7889 yes) enable_fast_install=yes ;; 7890 no) enable_fast_install=no ;; 7891 *) 7892 enable_fast_install=no 7893 # Look at the argument we got. We use all the common list separators. 7894 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7895 for pkg in $enableval; do 7896 IFS=$lt_save_ifs 7897 if test "X$pkg" = "X$p"; then 7898 enable_fast_install=yes 7899 fi 7900 done 7901 IFS=$lt_save_ifs 7902 ;; 7903 esac 7904else 7905 enable_fast_install=yes 7906fi 7907 7908 7909 7910 7911 7912 7913 7914 7915 shared_archive_member_spec= 7916case $host,$enable_shared in 7917power*-*-aix[5-9]*,yes) 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7919$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7920 7921# Check whether --with-aix-soname was given. 7922if test "${with_aix_soname+set}" = set; then : 7923 withval=$with_aix_soname; case $withval in 7924 aix|svr4|both) 7925 ;; 7926 *) 7927 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7928 ;; 7929 esac 7930 lt_cv_with_aix_soname=$with_aix_soname 7931else 7932 if ${lt_cv_with_aix_soname+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 lt_cv_with_aix_soname=aix 7936fi 7937 7938 with_aix_soname=$lt_cv_with_aix_soname 7939fi 7940 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7942$as_echo "$with_aix_soname" >&6; } 7943 if test aix != "$with_aix_soname"; then 7944 # For the AIX way of multilib, we name the shared archive member 7945 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7946 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7947 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7948 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7949 if test 64 = "${OBJECT_MODE-32}"; then 7950 shared_archive_member_spec=shr_64 7951 else 7952 shared_archive_member_spec=shr 7953 fi 7954 fi 7955 ;; 7956*) 7957 with_aix_soname=aix 7958 ;; 7959esac 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970# This can be used to rebuild libtool when needed 7971LIBTOOL_DEPS=$ltmain 7972 7973# Always use our own libtool. 7974LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005test -z "$LN_S" && LN_S="ln -s" 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020if test -n "${ZSH_VERSION+set}"; then 8021 setopt NO_GLOB_SUBST 8022fi 8023 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8025$as_echo_n "checking for objdir... " >&6; } 8026if ${lt_cv_objdir+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 rm -f .libs 2>/dev/null 8030mkdir .libs 2>/dev/null 8031if test -d .libs; then 8032 lt_cv_objdir=.libs 8033else 8034 # MS-DOS does not allow filenames that begin with a dot. 8035 lt_cv_objdir=_libs 8036fi 8037rmdir .libs 2>/dev/null 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8040$as_echo "$lt_cv_objdir" >&6; } 8041objdir=$lt_cv_objdir 8042 8043 8044 8045 8046 8047cat >>confdefs.h <<_ACEOF 8048#define LT_OBJDIR "$lt_cv_objdir/" 8049_ACEOF 8050 8051 8052 8053 8054case $host_os in 8055aix3*) 8056 # AIX sometimes has problems with the GCC collect2 program. For some 8057 # reason, if we set the COLLECT_NAMES environment variable, the problems 8058 # vanish in a puff of smoke. 8059 if test set != "${COLLECT_NAMES+set}"; then 8060 COLLECT_NAMES= 8061 export COLLECT_NAMES 8062 fi 8063 ;; 8064esac 8065 8066# Global variables: 8067ofile=libtool 8068can_build_shared=yes 8069 8070# All known linkers require a '.a' archive for static linking (except MSVC, 8071# which needs '.lib'). 8072libext=a 8073 8074with_gnu_ld=$lt_cv_prog_gnu_ld 8075 8076old_CC=$CC 8077old_CFLAGS=$CFLAGS 8078 8079# Set sane defaults for various variables 8080test -z "$CC" && CC=cc 8081test -z "$LTCC" && LTCC=$CC 8082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8083test -z "$LD" && LD=ld 8084test -z "$ac_objext" && ac_objext=o 8085 8086func_cc_basename $compiler 8087cc_basename=$func_cc_basename_result 8088 8089 8090# Only perform the check for file, if the check method requires it 8091test -z "$MAGIC_CMD" && MAGIC_CMD=file 8092case $deplibs_check_method in 8093file_magic*) 8094 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8096$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8097if ${lt_cv_path_MAGIC_CMD+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 case $MAGIC_CMD in 8101[\\/*] | ?:[\\/]*) 8102 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8103 ;; 8104*) 8105 lt_save_MAGIC_CMD=$MAGIC_CMD 8106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8108 for ac_dir in $ac_dummy; do 8109 IFS=$lt_save_ifs 8110 test -z "$ac_dir" && ac_dir=. 8111 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8112 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8113 if test -n "$file_magic_test_file"; then 8114 case $deplibs_check_method in 8115 "file_magic "*) 8116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8119 $EGREP "$file_magic_regex" > /dev/null; then 8120 : 8121 else 8122 cat <<_LT_EOF 1>&2 8123 8124*** Warning: the command libtool uses to detect shared libraries, 8125*** $file_magic_cmd, produces output that libtool cannot recognize. 8126*** The result is that libtool may fail to recognize shared libraries 8127*** as such. This will affect the creation of libtool libraries that 8128*** depend on shared libraries, but programs linked with such libtool 8129*** libraries will work regardless of this problem. Nevertheless, you 8130*** may want to report the problem to your system manager and/or to 8131*** bug-libtool@gnu.org 8132 8133_LT_EOF 8134 fi ;; 8135 esac 8136 fi 8137 break 8138 fi 8139 done 8140 IFS=$lt_save_ifs 8141 MAGIC_CMD=$lt_save_MAGIC_CMD 8142 ;; 8143esac 8144fi 8145 8146MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8147if test -n "$MAGIC_CMD"; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8149$as_echo "$MAGIC_CMD" >&6; } 8150else 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152$as_echo "no" >&6; } 8153fi 8154 8155 8156 8157 8158 8159if test -z "$lt_cv_path_MAGIC_CMD"; then 8160 if test -n "$ac_tool_prefix"; then 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8162$as_echo_n "checking for file... " >&6; } 8163if ${lt_cv_path_MAGIC_CMD+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 case $MAGIC_CMD in 8167[\\/*] | ?:[\\/]*) 8168 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8169 ;; 8170*) 8171 lt_save_MAGIC_CMD=$MAGIC_CMD 8172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8174 for ac_dir in $ac_dummy; do 8175 IFS=$lt_save_ifs 8176 test -z "$ac_dir" && ac_dir=. 8177 if test -f "$ac_dir/file"; then 8178 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8179 if test -n "$file_magic_test_file"; then 8180 case $deplibs_check_method in 8181 "file_magic "*) 8182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8183 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8185 $EGREP "$file_magic_regex" > /dev/null; then 8186 : 8187 else 8188 cat <<_LT_EOF 1>&2 8189 8190*** Warning: the command libtool uses to detect shared libraries, 8191*** $file_magic_cmd, produces output that libtool cannot recognize. 8192*** The result is that libtool may fail to recognize shared libraries 8193*** as such. This will affect the creation of libtool libraries that 8194*** depend on shared libraries, but programs linked with such libtool 8195*** libraries will work regardless of this problem. Nevertheless, you 8196*** may want to report the problem to your system manager and/or to 8197*** bug-libtool@gnu.org 8198 8199_LT_EOF 8200 fi ;; 8201 esac 8202 fi 8203 break 8204 fi 8205 done 8206 IFS=$lt_save_ifs 8207 MAGIC_CMD=$lt_save_MAGIC_CMD 8208 ;; 8209esac 8210fi 8211 8212MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8213if test -n "$MAGIC_CMD"; then 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8215$as_echo "$MAGIC_CMD" >&6; } 8216else 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8218$as_echo "no" >&6; } 8219fi 8220 8221 8222 else 8223 MAGIC_CMD=: 8224 fi 8225fi 8226 8227 fi 8228 ;; 8229esac 8230 8231# Use C for the default configuration in the libtool script 8232 8233lt_save_CC=$CC 8234ac_ext=c 8235ac_cpp='$CPP $CPPFLAGS' 8236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8238ac_compiler_gnu=$ac_cv_c_compiler_gnu 8239 8240 8241# Source file extension for C test sources. 8242ac_ext=c 8243 8244# Object file extension for compiled C test sources. 8245objext=o 8246objext=$objext 8247 8248# Code to be used in simple compile tests 8249lt_simple_compile_test_code="int some_variable = 0;" 8250 8251# Code to be used in simple link tests 8252lt_simple_link_test_code='int main(){return(0);}' 8253 8254 8255 8256 8257 8258 8259 8260# If no C compiler was specified, use CC. 8261LTCC=${LTCC-"$CC"} 8262 8263# If no C compiler flags were specified, use CFLAGS. 8264LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8265 8266# Allow CC to be a program name with arguments. 8267compiler=$CC 8268 8269# Save the default compiler, since it gets overwritten when the other 8270# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8271compiler_DEFAULT=$CC 8272 8273# save warnings/boilerplate of simple test code 8274ac_outfile=conftest.$ac_objext 8275echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8276eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8277_lt_compiler_boilerplate=`cat conftest.err` 8278$RM conftest* 8279 8280ac_outfile=conftest.$ac_objext 8281echo "$lt_simple_link_test_code" >conftest.$ac_ext 8282eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8283_lt_linker_boilerplate=`cat conftest.err` 8284$RM -r conftest* 8285 8286 8287if test -n "$compiler"; then 8288 8289lt_prog_compiler_no_builtin_flag= 8290 8291if test yes = "$GCC"; then 8292 case $cc_basename in 8293 nvcc*) 8294 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8295 *) 8296 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8297 esac 8298 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8300$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8301if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 lt_cv_prog_compiler_rtti_exceptions=no 8305 ac_outfile=conftest.$ac_objext 8306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8307 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8308 # Insert the option either (1) after the last *FLAGS variable, or 8309 # (2) before a word containing "conftest.", or (3) at the end. 8310 # Note that $ac_compile itself does not contain backslashes and begins 8311 # with a dollar sign (not a hyphen), so the echo should work correctly. 8312 # The option is referenced via a variable to avoid confusing sed. 8313 lt_compile=`echo "$ac_compile" | $SED \ 8314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8316 -e 's:$: $lt_compiler_flag:'` 8317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8318 (eval "$lt_compile" 2>conftest.err) 8319 ac_status=$? 8320 cat conftest.err >&5 8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8322 if (exit $ac_status) && test -s "$ac_outfile"; then 8323 # The compiler can only warn and ignore the option if not recognized 8324 # So say no if there are warnings other than the usual output. 8325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8328 lt_cv_prog_compiler_rtti_exceptions=yes 8329 fi 8330 fi 8331 $RM conftest* 8332 8333fi 8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8335$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8336 8337if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8338 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8339else 8340 : 8341fi 8342 8343fi 8344 8345 8346 8347 8348 8349 8350 lt_prog_compiler_wl= 8351lt_prog_compiler_pic= 8352lt_prog_compiler_static= 8353 8354 8355 if test yes = "$GCC"; then 8356 lt_prog_compiler_wl='-Wl,' 8357 lt_prog_compiler_static='-static' 8358 8359 case $host_os in 8360 aix*) 8361 # All AIX code is PIC. 8362 if test ia64 = "$host_cpu"; then 8363 # AIX 5 now supports IA64 processor 8364 lt_prog_compiler_static='-Bstatic' 8365 fi 8366 lt_prog_compiler_pic='-fPIC' 8367 ;; 8368 8369 amigaos*) 8370 case $host_cpu in 8371 powerpc) 8372 # see comment about AmigaOS4 .so support 8373 lt_prog_compiler_pic='-fPIC' 8374 ;; 8375 m68k) 8376 # FIXME: we need at least 68020 code to build shared libraries, but 8377 # adding the '-m68020' flag to GCC prevents building anything better, 8378 # like '-m68040'. 8379 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8380 ;; 8381 esac 8382 ;; 8383 8384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8385 # PIC is the default for these OSes. 8386 ;; 8387 8388 mingw* | cygwin* | pw32* | os2* | cegcc*) 8389 # This hack is so that the source file can tell whether it is being 8390 # built for inclusion in a dll (and should export symbols for example). 8391 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8392 # (--disable-auto-import) libraries 8393 lt_prog_compiler_pic='-DDLL_EXPORT' 8394 case $host_os in 8395 os2*) 8396 lt_prog_compiler_static='$wl-static' 8397 ;; 8398 esac 8399 ;; 8400 8401 darwin* | rhapsody*) 8402 # PIC is the default on this platform 8403 # Common symbols not allowed in MH_DYLIB files 8404 lt_prog_compiler_pic='-fno-common' 8405 ;; 8406 8407 haiku*) 8408 # PIC is the default for Haiku. 8409 # The "-static" flag exists, but is broken. 8410 lt_prog_compiler_static= 8411 ;; 8412 8413 hpux*) 8414 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8415 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8416 # sets the default TLS model and affects inlining. 8417 case $host_cpu in 8418 hppa*64*) 8419 # +Z the default 8420 ;; 8421 *) 8422 lt_prog_compiler_pic='-fPIC' 8423 ;; 8424 esac 8425 ;; 8426 8427 interix[3-9]*) 8428 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8429 # Instead, we relocate shared libraries at runtime. 8430 ;; 8431 8432 msdosdjgpp*) 8433 # Just because we use GCC doesn't mean we suddenly get shared libraries 8434 # on systems that don't support them. 8435 lt_prog_compiler_can_build_shared=no 8436 enable_shared=no 8437 ;; 8438 8439 *nto* | *qnx*) 8440 # QNX uses GNU C++, but need to define -shared option too, otherwise 8441 # it will coredump. 8442 lt_prog_compiler_pic='-fPIC -shared' 8443 ;; 8444 8445 sysv4*MP*) 8446 if test -d /usr/nec; then 8447 lt_prog_compiler_pic=-Kconform_pic 8448 fi 8449 ;; 8450 8451 *) 8452 lt_prog_compiler_pic='-fPIC' 8453 ;; 8454 esac 8455 8456 case $cc_basename in 8457 nvcc*) # Cuda Compiler Driver 2.2 8458 lt_prog_compiler_wl='-Xlinker ' 8459 if test -n "$lt_prog_compiler_pic"; then 8460 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8461 fi 8462 ;; 8463 esac 8464 else 8465 # PORTME Check for flag to pass linker flags through the system compiler. 8466 case $host_os in 8467 aix*) 8468 lt_prog_compiler_wl='-Wl,' 8469 if test ia64 = "$host_cpu"; then 8470 # AIX 5 now supports IA64 processor 8471 lt_prog_compiler_static='-Bstatic' 8472 else 8473 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8474 fi 8475 ;; 8476 8477 darwin* | rhapsody*) 8478 # PIC is the default on this platform 8479 # Common symbols not allowed in MH_DYLIB files 8480 lt_prog_compiler_pic='-fno-common' 8481 case $cc_basename in 8482 nagfor*) 8483 # NAG Fortran compiler 8484 lt_prog_compiler_wl='-Wl,-Wl,,' 8485 lt_prog_compiler_pic='-PIC' 8486 lt_prog_compiler_static='-Bstatic' 8487 ;; 8488 esac 8489 ;; 8490 8491 mingw* | cygwin* | pw32* | os2* | cegcc*) 8492 # This hack is so that the source file can tell whether it is being 8493 # built for inclusion in a dll (and should export symbols for example). 8494 lt_prog_compiler_pic='-DDLL_EXPORT' 8495 case $host_os in 8496 os2*) 8497 lt_prog_compiler_static='$wl-static' 8498 ;; 8499 esac 8500 ;; 8501 8502 hpux9* | hpux10* | hpux11*) 8503 lt_prog_compiler_wl='-Wl,' 8504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8505 # not for PA HP-UX. 8506 case $host_cpu in 8507 hppa*64*|ia64*) 8508 # +Z the default 8509 ;; 8510 *) 8511 lt_prog_compiler_pic='+Z' 8512 ;; 8513 esac 8514 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8515 lt_prog_compiler_static='$wl-a ${wl}archive' 8516 ;; 8517 8518 irix5* | irix6* | nonstopux*) 8519 lt_prog_compiler_wl='-Wl,' 8520 # PIC (with -KPIC) is the default. 8521 lt_prog_compiler_static='-non_shared' 8522 ;; 8523 8524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8525 case $cc_basename in 8526 # old Intel for x86_64, which still supported -KPIC. 8527 ecc*) 8528 lt_prog_compiler_wl='-Wl,' 8529 lt_prog_compiler_pic='-KPIC' 8530 lt_prog_compiler_static='-static' 8531 ;; 8532 # icc used to be incompatible with GCC. 8533 # ICC 10 doesn't accept -KPIC any more. 8534 icc* | ifort*) 8535 lt_prog_compiler_wl='-Wl,' 8536 lt_prog_compiler_pic='-fPIC' 8537 lt_prog_compiler_static='-static' 8538 ;; 8539 # Lahey Fortran 8.1. 8540 lf95*) 8541 lt_prog_compiler_wl='-Wl,' 8542 lt_prog_compiler_pic='--shared' 8543 lt_prog_compiler_static='--static' 8544 ;; 8545 nagfor*) 8546 # NAG Fortran compiler 8547 lt_prog_compiler_wl='-Wl,-Wl,,' 8548 lt_prog_compiler_pic='-PIC' 8549 lt_prog_compiler_static='-Bstatic' 8550 ;; 8551 tcc*) 8552 # Fabrice Bellard et al's Tiny C Compiler 8553 lt_prog_compiler_wl='-Wl,' 8554 lt_prog_compiler_pic='-fPIC' 8555 lt_prog_compiler_static='-static' 8556 ;; 8557 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8558 # Portland Group compilers (*not* the Pentium gcc compiler, 8559 # which looks to be a dead project) 8560 lt_prog_compiler_wl='-Wl,' 8561 lt_prog_compiler_pic='-fpic' 8562 lt_prog_compiler_static='-Bstatic' 8563 ;; 8564 ccc*) 8565 lt_prog_compiler_wl='-Wl,' 8566 # All Alpha code is PIC. 8567 lt_prog_compiler_static='-non_shared' 8568 ;; 8569 xl* | bgxl* | bgf* | mpixl*) 8570 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8571 lt_prog_compiler_wl='-Wl,' 8572 lt_prog_compiler_pic='-qpic' 8573 lt_prog_compiler_static='-qstaticlink' 8574 ;; 8575 *) 8576 case `$CC -V 2>&1 | sed 5q` in 8577 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8578 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8579 lt_prog_compiler_pic='-KPIC' 8580 lt_prog_compiler_static='-Bstatic' 8581 lt_prog_compiler_wl='' 8582 ;; 8583 *Sun\ F* | *Sun*Fortran*) 8584 lt_prog_compiler_pic='-KPIC' 8585 lt_prog_compiler_static='-Bstatic' 8586 lt_prog_compiler_wl='-Qoption ld ' 8587 ;; 8588 *Sun\ C*) 8589 # Sun C 5.9 8590 lt_prog_compiler_pic='-KPIC' 8591 lt_prog_compiler_static='-Bstatic' 8592 lt_prog_compiler_wl='-Wl,' 8593 ;; 8594 *Intel*\ [CF]*Compiler*) 8595 lt_prog_compiler_wl='-Wl,' 8596 lt_prog_compiler_pic='-fPIC' 8597 lt_prog_compiler_static='-static' 8598 ;; 8599 *Portland\ Group*) 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='-fpic' 8602 lt_prog_compiler_static='-Bstatic' 8603 ;; 8604 esac 8605 ;; 8606 esac 8607 ;; 8608 8609 newsos6) 8610 lt_prog_compiler_pic='-KPIC' 8611 lt_prog_compiler_static='-Bstatic' 8612 ;; 8613 8614 *nto* | *qnx*) 8615 # QNX uses GNU C++, but need to define -shared option too, otherwise 8616 # it will coredump. 8617 lt_prog_compiler_pic='-fPIC -shared' 8618 ;; 8619 8620 osf3* | osf4* | osf5*) 8621 lt_prog_compiler_wl='-Wl,' 8622 # All OSF/1 code is PIC. 8623 lt_prog_compiler_static='-non_shared' 8624 ;; 8625 8626 rdos*) 8627 lt_prog_compiler_static='-non_shared' 8628 ;; 8629 8630 solaris*) 8631 lt_prog_compiler_pic='-KPIC' 8632 lt_prog_compiler_static='-Bstatic' 8633 case $cc_basename in 8634 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8635 lt_prog_compiler_wl='-Qoption ld ';; 8636 *) 8637 lt_prog_compiler_wl='-Wl,';; 8638 esac 8639 ;; 8640 8641 sunos4*) 8642 lt_prog_compiler_wl='-Qoption ld ' 8643 lt_prog_compiler_pic='-PIC' 8644 lt_prog_compiler_static='-Bstatic' 8645 ;; 8646 8647 sysv4 | sysv4.2uw2* | sysv4.3*) 8648 lt_prog_compiler_wl='-Wl,' 8649 lt_prog_compiler_pic='-KPIC' 8650 lt_prog_compiler_static='-Bstatic' 8651 ;; 8652 8653 sysv4*MP*) 8654 if test -d /usr/nec; then 8655 lt_prog_compiler_pic='-Kconform_pic' 8656 lt_prog_compiler_static='-Bstatic' 8657 fi 8658 ;; 8659 8660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8661 lt_prog_compiler_wl='-Wl,' 8662 lt_prog_compiler_pic='-KPIC' 8663 lt_prog_compiler_static='-Bstatic' 8664 ;; 8665 8666 unicos*) 8667 lt_prog_compiler_wl='-Wl,' 8668 lt_prog_compiler_can_build_shared=no 8669 ;; 8670 8671 uts4*) 8672 lt_prog_compiler_pic='-pic' 8673 lt_prog_compiler_static='-Bstatic' 8674 ;; 8675 8676 *) 8677 lt_prog_compiler_can_build_shared=no 8678 ;; 8679 esac 8680 fi 8681 8682case $host_os in 8683 # For platforms that do not support PIC, -DPIC is meaningless: 8684 *djgpp*) 8685 lt_prog_compiler_pic= 8686 ;; 8687 *) 8688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8689 ;; 8690esac 8691 8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8693$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8694if ${lt_cv_prog_compiler_pic+:} false; then : 8695 $as_echo_n "(cached) " >&6 8696else 8697 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8698fi 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8700$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8701lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8702 8703# 8704# Check to make sure the PIC flag actually works. 8705# 8706if test -n "$lt_prog_compiler_pic"; then 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8708$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8709if ${lt_cv_prog_compiler_pic_works+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 lt_cv_prog_compiler_pic_works=no 8713 ac_outfile=conftest.$ac_objext 8714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8715 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8716 # Insert the option either (1) after the last *FLAGS variable, or 8717 # (2) before a word containing "conftest.", or (3) at the end. 8718 # Note that $ac_compile itself does not contain backslashes and begins 8719 # with a dollar sign (not a hyphen), so the echo should work correctly. 8720 # The option is referenced via a variable to avoid confusing sed. 8721 lt_compile=`echo "$ac_compile" | $SED \ 8722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8724 -e 's:$: $lt_compiler_flag:'` 8725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8726 (eval "$lt_compile" 2>conftest.err) 8727 ac_status=$? 8728 cat conftest.err >&5 8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8730 if (exit $ac_status) && test -s "$ac_outfile"; then 8731 # The compiler can only warn and ignore the option if not recognized 8732 # So say no if there are warnings other than the usual output. 8733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8736 lt_cv_prog_compiler_pic_works=yes 8737 fi 8738 fi 8739 $RM conftest* 8740 8741fi 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8743$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8744 8745if test yes = "$lt_cv_prog_compiler_pic_works"; then 8746 case $lt_prog_compiler_pic in 8747 "" | " "*) ;; 8748 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8749 esac 8750else 8751 lt_prog_compiler_pic= 8752 lt_prog_compiler_can_build_shared=no 8753fi 8754 8755fi 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767# 8768# Check to make sure the static flag actually works. 8769# 8770wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8772$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8773if ${lt_cv_prog_compiler_static_works+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 lt_cv_prog_compiler_static_works=no 8777 save_LDFLAGS=$LDFLAGS 8778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8779 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8781 # The linker can only warn and ignore the option if not recognized 8782 # So say no if there are warnings 8783 if test -s conftest.err; then 8784 # Append any errors to the config.log. 8785 cat conftest.err 1>&5 8786 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8788 if diff conftest.exp conftest.er2 >/dev/null; then 8789 lt_cv_prog_compiler_static_works=yes 8790 fi 8791 else 8792 lt_cv_prog_compiler_static_works=yes 8793 fi 8794 fi 8795 $RM -r conftest* 8796 LDFLAGS=$save_LDFLAGS 8797 8798fi 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8800$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8801 8802if test yes = "$lt_cv_prog_compiler_static_works"; then 8803 : 8804else 8805 lt_prog_compiler_static= 8806fi 8807 8808 8809 8810 8811 8812 8813 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8815$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8816if ${lt_cv_prog_compiler_c_o+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 lt_cv_prog_compiler_c_o=no 8820 $RM -r conftest 2>/dev/null 8821 mkdir conftest 8822 cd conftest 8823 mkdir out 8824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8825 8826 lt_compiler_flag="-o out/conftest2.$ac_objext" 8827 # Insert the option either (1) after the last *FLAGS variable, or 8828 # (2) before a word containing "conftest.", or (3) at the end. 8829 # Note that $ac_compile itself does not contain backslashes and begins 8830 # with a dollar sign (not a hyphen), so the echo should work correctly. 8831 lt_compile=`echo "$ac_compile" | $SED \ 8832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8834 -e 's:$: $lt_compiler_flag:'` 8835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8836 (eval "$lt_compile" 2>out/conftest.err) 8837 ac_status=$? 8838 cat out/conftest.err >&5 8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8840 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8841 then 8842 # The compiler can only warn and ignore the option if not recognized 8843 # So say no if there are warnings 8844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8847 lt_cv_prog_compiler_c_o=yes 8848 fi 8849 fi 8850 chmod u+w . 2>&5 8851 $RM conftest* 8852 # SGI C++ compiler will create directory out/ii_files/ for 8853 # template instantiation 8854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8855 $RM out/* && rmdir out 8856 cd .. 8857 $RM -r conftest 8858 $RM conftest* 8859 8860fi 8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8862$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8863 8864 8865 8866 8867 8868 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8870$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8871if ${lt_cv_prog_compiler_c_o+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873else 8874 lt_cv_prog_compiler_c_o=no 8875 $RM -r conftest 2>/dev/null 8876 mkdir conftest 8877 cd conftest 8878 mkdir out 8879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8880 8881 lt_compiler_flag="-o out/conftest2.$ac_objext" 8882 # Insert the option either (1) after the last *FLAGS variable, or 8883 # (2) before a word containing "conftest.", or (3) at the end. 8884 # Note that $ac_compile itself does not contain backslashes and begins 8885 # with a dollar sign (not a hyphen), so the echo should work correctly. 8886 lt_compile=`echo "$ac_compile" | $SED \ 8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8889 -e 's:$: $lt_compiler_flag:'` 8890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8891 (eval "$lt_compile" 2>out/conftest.err) 8892 ac_status=$? 8893 cat out/conftest.err >&5 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8896 then 8897 # The compiler can only warn and ignore the option if not recognized 8898 # So say no if there are warnings 8899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8902 lt_cv_prog_compiler_c_o=yes 8903 fi 8904 fi 8905 chmod u+w . 2>&5 8906 $RM conftest* 8907 # SGI C++ compiler will create directory out/ii_files/ for 8908 # template instantiation 8909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8910 $RM out/* && rmdir out 8911 cd .. 8912 $RM -r conftest 8913 $RM conftest* 8914 8915fi 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8917$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8918 8919 8920 8921 8922hard_links=nottested 8923if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8924 # do not overwrite the value of need_locks provided by the user 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8926$as_echo_n "checking if we can lock with hard links... " >&6; } 8927 hard_links=yes 8928 $RM conftest* 8929 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8930 touch conftest.a 8931 ln conftest.a conftest.b 2>&5 || hard_links=no 8932 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8934$as_echo "$hard_links" >&6; } 8935 if test no = "$hard_links"; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8937$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8938 need_locks=warn 8939 fi 8940else 8941 need_locks=no 8942fi 8943 8944 8945 8946 8947 8948 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8950$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8951 8952 runpath_var= 8953 allow_undefined_flag= 8954 always_export_symbols=no 8955 archive_cmds= 8956 archive_expsym_cmds= 8957 compiler_needs_object=no 8958 enable_shared_with_static_runtimes=no 8959 export_dynamic_flag_spec= 8960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8961 hardcode_automatic=no 8962 hardcode_direct=no 8963 hardcode_direct_absolute=no 8964 hardcode_libdir_flag_spec= 8965 hardcode_libdir_separator= 8966 hardcode_minus_L=no 8967 hardcode_shlibpath_var=unsupported 8968 inherit_rpath=no 8969 link_all_deplibs=unknown 8970 module_cmds= 8971 module_expsym_cmds= 8972 old_archive_from_new_cmds= 8973 old_archive_from_expsyms_cmds= 8974 thread_safe_flag_spec= 8975 whole_archive_flag_spec= 8976 # include_expsyms should be a list of space-separated symbols to be *always* 8977 # included in the symbol list 8978 include_expsyms= 8979 # exclude_expsyms can be an extended regexp of symbols to exclude 8980 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8981 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8982 # as well as any symbol that contains 'd'. 8983 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8984 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8985 # platforms (ab)use it in PIC code, but their linkers get confused if 8986 # the symbol is explicitly referenced. Since portable code cannot 8987 # rely on this symbol name, it's probably fine to never include it in 8988 # preloaded symbol tables. 8989 # Exclude shared library initialization/finalization symbols. 8990 extract_expsyms_cmds= 8991 8992 case $host_os in 8993 cygwin* | mingw* | pw32* | cegcc*) 8994 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8995 # When not using gcc, we currently assume that we are using 8996 # Microsoft Visual C++. 8997 if test yes != "$GCC"; then 8998 with_gnu_ld=no 8999 fi 9000 ;; 9001 interix*) 9002 # we just hope/assume this is gcc and not c89 (= MSVC++) 9003 with_gnu_ld=yes 9004 ;; 9005 openbsd* | bitrig*) 9006 with_gnu_ld=no 9007 ;; 9008 esac 9009 9010 ld_shlibs=yes 9011 9012 # On some targets, GNU ld is compatible enough with the native linker 9013 # that we're better off using the native interface for both. 9014 lt_use_gnu_ld_interface=no 9015 if test yes = "$with_gnu_ld"; then 9016 case $host_os in 9017 aix*) 9018 # The AIX port of GNU ld has always aspired to compatibility 9019 # with the native linker. However, as the warning in the GNU ld 9020 # block says, versions before 2.19.5* couldn't really create working 9021 # shared libraries, regardless of the interface used. 9022 case `$LD -v 2>&1` in 9023 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9024 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9025 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9026 *) 9027 lt_use_gnu_ld_interface=yes 9028 ;; 9029 esac 9030 ;; 9031 *) 9032 lt_use_gnu_ld_interface=yes 9033 ;; 9034 esac 9035 fi 9036 9037 if test yes = "$lt_use_gnu_ld_interface"; then 9038 # If archive_cmds runs LD, not CC, wlarc should be empty 9039 wlarc='$wl' 9040 9041 # Set some defaults for GNU ld with shared library support. These 9042 # are reset later if shared libraries are not supported. Putting them 9043 # here allows them to be overridden if necessary. 9044 runpath_var=LD_RUN_PATH 9045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9046 export_dynamic_flag_spec='$wl--export-dynamic' 9047 # ancient GNU ld didn't support --whole-archive et. al. 9048 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9049 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9050 else 9051 whole_archive_flag_spec= 9052 fi 9053 supports_anon_versioning=no 9054 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9055 *GNU\ gold*) supports_anon_versioning=yes ;; 9056 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9057 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9058 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9059 *\ 2.11.*) ;; # other 2.11 versions 9060 *) supports_anon_versioning=yes ;; 9061 esac 9062 9063 # See if GNU ld supports shared libraries. 9064 case $host_os in 9065 aix[3-9]*) 9066 # On AIX/PPC, the GNU linker is very broken 9067 if test ia64 != "$host_cpu"; then 9068 ld_shlibs=no 9069 cat <<_LT_EOF 1>&2 9070 9071*** Warning: the GNU linker, at least up to release 2.19, is reported 9072*** to be unable to reliably create shared libraries on AIX. 9073*** Therefore, libtool is disabling shared libraries support. If you 9074*** really care for shared libraries, you may want to install binutils 9075*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9076*** You will then need to restart the configuration process. 9077 9078_LT_EOF 9079 fi 9080 ;; 9081 9082 amigaos*) 9083 case $host_cpu in 9084 powerpc) 9085 # see comment about AmigaOS4 .so support 9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9087 archive_expsym_cmds='' 9088 ;; 9089 m68k) 9090 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)' 9091 hardcode_libdir_flag_spec='-L$libdir' 9092 hardcode_minus_L=yes 9093 ;; 9094 esac 9095 ;; 9096 9097 beos*) 9098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9099 allow_undefined_flag=unsupported 9100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9101 # support --undefined. This deserves some investigation. FIXME 9102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9103 else 9104 ld_shlibs=no 9105 fi 9106 ;; 9107 9108 cygwin* | mingw* | pw32* | cegcc*) 9109 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9110 # as there is no search path for DLLs. 9111 hardcode_libdir_flag_spec='-L$libdir' 9112 export_dynamic_flag_spec='$wl--export-all-symbols' 9113 allow_undefined_flag=unsupported 9114 always_export_symbols=no 9115 enable_shared_with_static_runtimes=yes 9116 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' 9117 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9118 9119 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9121 # If the export-symbols file already is a .def file, use it as 9122 # is; otherwise, prepend EXPORTS... 9123 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9124 cp $export_symbols $output_objdir/$soname.def; 9125 else 9126 echo EXPORTS > $output_objdir/$soname.def; 9127 cat $export_symbols >> $output_objdir/$soname.def; 9128 fi~ 9129 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9130 else 9131 ld_shlibs=no 9132 fi 9133 ;; 9134 9135 haiku*) 9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9137 link_all_deplibs=yes 9138 ;; 9139 9140 os2*) 9141 hardcode_libdir_flag_spec='-L$libdir' 9142 hardcode_minus_L=yes 9143 allow_undefined_flag=unsupported 9144 shrext_cmds=.dll 9145 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9146 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9147 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9148 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9149 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9151 emximp -o $lib $output_objdir/$libname.def' 9152 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9153 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9154 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9155 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9156 prefix_cmds="$SED"~ 9157 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9158 prefix_cmds="$prefix_cmds -e 1d"; 9159 fi~ 9160 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9161 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9163 emximp -o $lib $output_objdir/$libname.def' 9164 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9165 enable_shared_with_static_runtimes=yes 9166 ;; 9167 9168 interix[3-9]*) 9169 hardcode_direct=no 9170 hardcode_shlibpath_var=no 9171 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9172 export_dynamic_flag_spec='$wl-E' 9173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9174 # Instead, shared libraries are loaded at an image base (0x10000000 by 9175 # default) and relocated if they conflict, which is a slow very memory 9176 # consuming and fragmenting process. To avoid this, we pick a random, 9177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9178 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9180 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' 9181 ;; 9182 9183 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9184 tmp_diet=no 9185 if test linux-dietlibc = "$host_os"; then 9186 case $cc_basename in 9187 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9188 esac 9189 fi 9190 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9191 && test no = "$tmp_diet" 9192 then 9193 tmp_addflag=' $pic_flag' 9194 tmp_sharedflag='-shared' 9195 case $cc_basename,$host_cpu in 9196 pgcc*) # Portland Group C compiler 9197 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' 9198 tmp_addflag=' $pic_flag' 9199 ;; 9200 pgf77* | pgf90* | pgf95* | pgfortran*) 9201 # Portland Group f77 and f90 compilers 9202 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' 9203 tmp_addflag=' $pic_flag -Mnomain' ;; 9204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9205 tmp_addflag=' -i_dynamic' ;; 9206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9207 tmp_addflag=' -i_dynamic -nofor_main' ;; 9208 ifc* | ifort*) # Intel Fortran compiler 9209 tmp_addflag=' -nofor_main' ;; 9210 lf95*) # Lahey Fortran 8.1 9211 whole_archive_flag_spec= 9212 tmp_sharedflag='--shared' ;; 9213 nagfor*) # NAGFOR 5.3 9214 tmp_sharedflag='-Wl,-shared' ;; 9215 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9216 tmp_sharedflag='-qmkshrobj' 9217 tmp_addflag= ;; 9218 nvcc*) # Cuda Compiler Driver 2.2 9219 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' 9220 compiler_needs_object=yes 9221 ;; 9222 esac 9223 case `$CC -V 2>&1 | sed 5q` in 9224 *Sun\ C*) # Sun C 5.9 9225 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' 9226 compiler_needs_object=yes 9227 tmp_sharedflag='-G' ;; 9228 *Sun\ F*) # Sun Fortran 8.3 9229 tmp_sharedflag='-G' ;; 9230 esac 9231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9232 9233 if test yes = "$supports_anon_versioning"; then 9234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9236 echo "local: *; };" >> $output_objdir/$libname.ver~ 9237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9238 fi 9239 9240 case $cc_basename in 9241 tcc*) 9242 export_dynamic_flag_spec='-rdynamic' 9243 ;; 9244 xlf* | bgf* | bgxlf* | mpixlf*) 9245 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9246 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9248 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9249 if test yes = "$supports_anon_versioning"; then 9250 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9252 echo "local: *; };" >> $output_objdir/$libname.ver~ 9253 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9254 fi 9255 ;; 9256 esac 9257 else 9258 ld_shlibs=no 9259 fi 9260 ;; 9261 9262 netbsd*) 9263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9264 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9265 wlarc= 9266 else 9267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9268 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9269 fi 9270 ;; 9271 9272 solaris*) 9273 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9274 ld_shlibs=no 9275 cat <<_LT_EOF 1>&2 9276 9277*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9278*** create shared libraries on Solaris systems. Therefore, libtool 9279*** is disabling shared libraries support. We urge you to upgrade GNU 9280*** binutils to release 2.9.1 or newer. Another option is to modify 9281*** your PATH or compiler configuration so that the native linker is 9282*** used, and then restart. 9283 9284_LT_EOF 9285 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9286 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9287 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9288 else 9289 ld_shlibs=no 9290 fi 9291 ;; 9292 9293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9294 case `$LD -v 2>&1` in 9295 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9296 ld_shlibs=no 9297 cat <<_LT_EOF 1>&2 9298 9299*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9300*** reliably create shared libraries on SCO systems. Therefore, libtool 9301*** is disabling shared libraries support. We urge you to upgrade GNU 9302*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9303*** your PATH or compiler configuration so that the native linker is 9304*** used, and then restart. 9305 9306_LT_EOF 9307 ;; 9308 *) 9309 # For security reasons, it is highly recommended that you always 9310 # use absolute paths for naming shared libraries, and exclude the 9311 # DT_RUNPATH tag from executables and libraries. But doing so 9312 # requires that you compile everything twice, which is a pain. 9313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9317 else 9318 ld_shlibs=no 9319 fi 9320 ;; 9321 esac 9322 ;; 9323 9324 sunos4*) 9325 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9326 wlarc= 9327 hardcode_direct=yes 9328 hardcode_shlibpath_var=no 9329 ;; 9330 9331 *) 9332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9334 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9335 else 9336 ld_shlibs=no 9337 fi 9338 ;; 9339 esac 9340 9341 if test no = "$ld_shlibs"; then 9342 runpath_var= 9343 hardcode_libdir_flag_spec= 9344 export_dynamic_flag_spec= 9345 whole_archive_flag_spec= 9346 fi 9347 else 9348 # PORTME fill in a description of your system's linker (not GNU ld) 9349 case $host_os in 9350 aix3*) 9351 allow_undefined_flag=unsupported 9352 always_export_symbols=yes 9353 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' 9354 # Note: this linker hardcodes the directories in LIBPATH if there 9355 # are no directories specified by -L. 9356 hardcode_minus_L=yes 9357 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9358 # Neither direct hardcoding nor static linking is supported with a 9359 # broken collect2. 9360 hardcode_direct=unsupported 9361 fi 9362 ;; 9363 9364 aix[4-9]*) 9365 if test ia64 = "$host_cpu"; then 9366 # On IA64, the linker does run time linking by default, so we don't 9367 # have to do anything special. 9368 aix_use_runtimelinking=no 9369 exp_sym_flag='-Bexport' 9370 no_entry_flag= 9371 else 9372 # If we're using GNU nm, then we don't want the "-C" option. 9373 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9374 # Without the "-l" option, or with the "-B" option, AIX nm treats 9375 # weak defined symbols like other global defined symbols, whereas 9376 # GNU nm marks them as "W". 9377 # While the 'weak' keyword is ignored in the Export File, we need 9378 # it in the Import File for the 'aix-soname' feature, so we have 9379 # to replace the "-B" option with "-P" for AIX nm. 9380 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9381 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' 9382 else 9383 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' 9384 fi 9385 aix_use_runtimelinking=no 9386 9387 # Test if we are trying to use run time linking or normal 9388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9389 # have runtime linking enabled, and use it for executables. 9390 # For shared libraries, we enable/disable runtime linking 9391 # depending on the kind of the shared library created - 9392 # when "with_aix_soname,aix_use_runtimelinking" is: 9393 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9394 # "aix,yes" lib.so shared, rtl:yes, for executables 9395 # lib.a static archive 9396 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9397 # lib.a(lib.so.V) shared, rtl:no, for executables 9398 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9399 # lib.a(lib.so.V) shared, rtl:no 9400 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9401 # lib.a static archive 9402 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9403 for ld_flag in $LDFLAGS; do 9404 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9405 aix_use_runtimelinking=yes 9406 break 9407 fi 9408 done 9409 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9410 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9411 # so we don't have lib.a shared libs to link our executables. 9412 # We have to force runtime linking in this case. 9413 aix_use_runtimelinking=yes 9414 LDFLAGS="$LDFLAGS -Wl,-brtl" 9415 fi 9416 ;; 9417 esac 9418 9419 exp_sym_flag='-bexport' 9420 no_entry_flag='-bnoentry' 9421 fi 9422 9423 # When large executables or shared objects are built, AIX ld can 9424 # have problems creating the table of contents. If linking a library 9425 # or program results in "error TOC overflow" add -mminimal-toc to 9426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9428 9429 archive_cmds='' 9430 hardcode_direct=yes 9431 hardcode_direct_absolute=yes 9432 hardcode_libdir_separator=':' 9433 link_all_deplibs=yes 9434 file_list_spec='$wl-f,' 9435 case $with_aix_soname,$aix_use_runtimelinking in 9436 aix,*) ;; # traditional, no import file 9437 svr4,* | *,yes) # use import file 9438 # The Import File defines what to hardcode. 9439 hardcode_direct=no 9440 hardcode_direct_absolute=no 9441 ;; 9442 esac 9443 9444 if test yes = "$GCC"; then 9445 case $host_os in aix4.[012]|aix4.[012].*) 9446 # We only want to do this on AIX 4.2 and lower, the check 9447 # below for broken collect2 doesn't work under 4.3+ 9448 collect2name=`$CC -print-prog-name=collect2` 9449 if test -f "$collect2name" && 9450 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9451 then 9452 # We have reworked collect2 9453 : 9454 else 9455 # We have old collect2 9456 hardcode_direct=unsupported 9457 # It fails to find uninstalled libraries when the uninstalled 9458 # path is not listed in the libpath. Setting hardcode_minus_L 9459 # to unsupported forces relinking 9460 hardcode_minus_L=yes 9461 hardcode_libdir_flag_spec='-L$libdir' 9462 hardcode_libdir_separator= 9463 fi 9464 ;; 9465 esac 9466 shared_flag='-shared' 9467 if test yes = "$aix_use_runtimelinking"; then 9468 shared_flag="$shared_flag "'$wl-G' 9469 fi 9470 # Need to ensure runtime linking is disabled for the traditional 9471 # shared library, or the linker may eventually find shared libraries 9472 # /with/ Import File - we do not want to mix them. 9473 shared_flag_aix='-shared' 9474 shared_flag_svr4='-shared $wl-G' 9475 else 9476 # not using gcc 9477 if test ia64 = "$host_cpu"; then 9478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9479 # chokes on -Wl,-G. The following line is correct: 9480 shared_flag='-G' 9481 else 9482 if test yes = "$aix_use_runtimelinking"; then 9483 shared_flag='$wl-G' 9484 else 9485 shared_flag='$wl-bM:SRE' 9486 fi 9487 shared_flag_aix='$wl-bM:SRE' 9488 shared_flag_svr4='$wl-G' 9489 fi 9490 fi 9491 9492 export_dynamic_flag_spec='$wl-bexpall' 9493 # It seems that -bexpall does not export symbols beginning with 9494 # underscore (_), so it is better to generate a list of symbols to export. 9495 always_export_symbols=yes 9496 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9497 # Warning - without using the other runtime loading flags (-brtl), 9498 # -berok will link without error, but may produce a broken library. 9499 allow_undefined_flag='-berok' 9500 # Determine the default libpath from the value encoded in an 9501 # empty executable. 9502 if test set = "${lt_cv_aix_libpath+set}"; then 9503 aix_libpath=$lt_cv_aix_libpath 9504else 9505 if ${lt_cv_aix_libpath_+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507else 9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9509/* end confdefs.h. */ 9510 9511int 9512main () 9513{ 9514 9515 ; 9516 return 0; 9517} 9518_ACEOF 9519if ac_fn_c_try_link "$LINENO"; then : 9520 9521 lt_aix_libpath_sed=' 9522 /Import File Strings/,/^$/ { 9523 /^0/ { 9524 s/^0 *\([^ ]*\) *$/\1/ 9525 p 9526 } 9527 }' 9528 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9529 # Check for a 64-bit object if we didn't find anything. 9530 if test -z "$lt_cv_aix_libpath_"; then 9531 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9532 fi 9533fi 9534rm -f core conftest.err conftest.$ac_objext \ 9535 conftest$ac_exeext conftest.$ac_ext 9536 if test -z "$lt_cv_aix_libpath_"; then 9537 lt_cv_aix_libpath_=/usr/lib:/lib 9538 fi 9539 9540fi 9541 9542 aix_libpath=$lt_cv_aix_libpath_ 9543fi 9544 9545 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9546 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 9547 else 9548 if test ia64 = "$host_cpu"; then 9549 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9550 allow_undefined_flag="-z nodefs" 9551 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" 9552 else 9553 # Determine the default libpath from the value encoded in an 9554 # empty executable. 9555 if test set = "${lt_cv_aix_libpath+set}"; then 9556 aix_libpath=$lt_cv_aix_libpath 9557else 9558 if ${lt_cv_aix_libpath_+:} false; then : 9559 $as_echo_n "(cached) " >&6 9560else 9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9562/* end confdefs.h. */ 9563 9564int 9565main () 9566{ 9567 9568 ; 9569 return 0; 9570} 9571_ACEOF 9572if ac_fn_c_try_link "$LINENO"; then : 9573 9574 lt_aix_libpath_sed=' 9575 /Import File Strings/,/^$/ { 9576 /^0/ { 9577 s/^0 *\([^ ]*\) *$/\1/ 9578 p 9579 } 9580 }' 9581 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9582 # Check for a 64-bit object if we didn't find anything. 9583 if test -z "$lt_cv_aix_libpath_"; then 9584 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9585 fi 9586fi 9587rm -f core conftest.err conftest.$ac_objext \ 9588 conftest$ac_exeext conftest.$ac_ext 9589 if test -z "$lt_cv_aix_libpath_"; then 9590 lt_cv_aix_libpath_=/usr/lib:/lib 9591 fi 9592 9593fi 9594 9595 aix_libpath=$lt_cv_aix_libpath_ 9596fi 9597 9598 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9599 # Warning - without using the other run time loading flags, 9600 # -berok will link without error, but may produce a broken library. 9601 no_undefined_flag=' $wl-bernotok' 9602 allow_undefined_flag=' $wl-berok' 9603 if test yes = "$with_gnu_ld"; then 9604 # We only use this code for GNU lds that support --whole-archive. 9605 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9606 else 9607 # Exported symbols can be pulled into shared objects from archives 9608 whole_archive_flag_spec='$convenience' 9609 fi 9610 archive_cmds_need_lc=yes 9611 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9612 # -brtl affects multiple linker settings, -berok does not and is overridden later 9613 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9614 if test svr4 != "$with_aix_soname"; then 9615 # This is similar to how AIX traditionally builds its shared libraries. 9616 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' 9617 fi 9618 if test aix != "$with_aix_soname"; then 9619 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' 9620 else 9621 # used by -dlpreopen to get the symbols 9622 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9623 fi 9624 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9625 fi 9626 fi 9627 ;; 9628 9629 amigaos*) 9630 case $host_cpu in 9631 powerpc) 9632 # see comment about AmigaOS4 .so support 9633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9634 archive_expsym_cmds='' 9635 ;; 9636 m68k) 9637 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)' 9638 hardcode_libdir_flag_spec='-L$libdir' 9639 hardcode_minus_L=yes 9640 ;; 9641 esac 9642 ;; 9643 9644 bsdi[45]*) 9645 export_dynamic_flag_spec=-rdynamic 9646 ;; 9647 9648 cygwin* | mingw* | pw32* | cegcc*) 9649 # When not using gcc, we currently assume that we are using 9650 # Microsoft Visual C++. 9651 # hardcode_libdir_flag_spec is actually meaningless, as there is 9652 # no search path for DLLs. 9653 case $cc_basename in 9654 cl*) 9655 # Native MSVC 9656 hardcode_libdir_flag_spec=' ' 9657 allow_undefined_flag=unsupported 9658 always_export_symbols=yes 9659 file_list_spec='@' 9660 # Tell ltmain to make .lib files, not .a files. 9661 libext=lib 9662 # Tell ltmain to make .dll files, not .so files. 9663 shrext_cmds=.dll 9664 # FIXME: Setting linknames here is a bad hack. 9665 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9666 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9667 cp "$export_symbols" "$output_objdir/$soname.def"; 9668 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9669 else 9670 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9671 fi~ 9672 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9673 linknames=' 9674 # The linker will not automatically build a static lib if we build a DLL. 9675 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9676 enable_shared_with_static_runtimes=yes 9677 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9679 # Don't use ranlib 9680 old_postinstall_cmds='chmod 644 $oldlib' 9681 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9682 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9683 case $lt_outputfile in 9684 *.exe|*.EXE) ;; 9685 *) 9686 lt_outputfile=$lt_outputfile.exe 9687 lt_tool_outputfile=$lt_tool_outputfile.exe 9688 ;; 9689 esac~ 9690 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9691 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9692 $RM "$lt_outputfile.manifest"; 9693 fi' 9694 ;; 9695 *) 9696 # Assume MSVC wrapper 9697 hardcode_libdir_flag_spec=' ' 9698 allow_undefined_flag=unsupported 9699 # Tell ltmain to make .lib files, not .a files. 9700 libext=lib 9701 # Tell ltmain to make .dll files, not .so files. 9702 shrext_cmds=.dll 9703 # FIXME: Setting linknames here is a bad hack. 9704 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9705 # The linker will automatically build a .lib file if we build a DLL. 9706 old_archive_from_new_cmds='true' 9707 # FIXME: Should let the user specify the lib program. 9708 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9709 enable_shared_with_static_runtimes=yes 9710 ;; 9711 esac 9712 ;; 9713 9714 darwin* | rhapsody*) 9715 9716 9717 archive_cmds_need_lc=no 9718 hardcode_direct=no 9719 hardcode_automatic=yes 9720 hardcode_shlibpath_var=unsupported 9721 if test yes = "$lt_cv_ld_force_load"; then 9722 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\"`' 9723 9724 else 9725 whole_archive_flag_spec='' 9726 fi 9727 link_all_deplibs=yes 9728 allow_undefined_flag=$_lt_dar_allow_undefined 9729 case $cc_basename in 9730 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9731 *) _lt_dar_can_shared=$GCC ;; 9732 esac 9733 if test yes = "$_lt_dar_can_shared"; then 9734 output_verbose_link_cmd=func_echo_all 9735 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9736 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9737 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" 9738 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" 9739 9740 else 9741 ld_shlibs=no 9742 fi 9743 9744 ;; 9745 9746 dgux*) 9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9748 hardcode_libdir_flag_spec='-L$libdir' 9749 hardcode_shlibpath_var=no 9750 ;; 9751 9752 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9753 # support. Future versions do this automatically, but an explicit c++rt0.o 9754 # does not break anything, and helps significantly (at the cost of a little 9755 # extra space). 9756 freebsd2.2*) 9757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9758 hardcode_libdir_flag_spec='-R$libdir' 9759 hardcode_direct=yes 9760 hardcode_shlibpath_var=no 9761 ;; 9762 9763 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9764 freebsd2.*) 9765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9766 hardcode_direct=yes 9767 hardcode_minus_L=yes 9768 hardcode_shlibpath_var=no 9769 ;; 9770 9771 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9772 freebsd* | dragonfly*) 9773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9774 hardcode_libdir_flag_spec='-R$libdir' 9775 hardcode_direct=yes 9776 hardcode_shlibpath_var=no 9777 ;; 9778 9779 hpux9*) 9780 if test yes = "$GCC"; then 9781 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' 9782 else 9783 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' 9784 fi 9785 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9786 hardcode_libdir_separator=: 9787 hardcode_direct=yes 9788 9789 # hardcode_minus_L: Not really in the search PATH, 9790 # but as the default location of the library. 9791 hardcode_minus_L=yes 9792 export_dynamic_flag_spec='$wl-E' 9793 ;; 9794 9795 hpux10*) 9796 if test yes,no = "$GCC,$with_gnu_ld"; then 9797 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9798 else 9799 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9800 fi 9801 if test no = "$with_gnu_ld"; then 9802 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9803 hardcode_libdir_separator=: 9804 hardcode_direct=yes 9805 hardcode_direct_absolute=yes 9806 export_dynamic_flag_spec='$wl-E' 9807 # hardcode_minus_L: Not really in the search PATH, 9808 # but as the default location of the library. 9809 hardcode_minus_L=yes 9810 fi 9811 ;; 9812 9813 hpux11*) 9814 if test yes,no = "$GCC,$with_gnu_ld"; then 9815 case $host_cpu in 9816 hppa*64*) 9817 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9818 ;; 9819 ia64*) 9820 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9821 ;; 9822 *) 9823 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9824 ;; 9825 esac 9826 else 9827 case $host_cpu in 9828 hppa*64*) 9829 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9830 ;; 9831 ia64*) 9832 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9833 ;; 9834 *) 9835 9836 # Older versions of the 11.00 compiler do not understand -b yet 9837 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9839$as_echo_n "checking if $CC understands -b... " >&6; } 9840if ${lt_cv_prog_compiler__b+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842else 9843 lt_cv_prog_compiler__b=no 9844 save_LDFLAGS=$LDFLAGS 9845 LDFLAGS="$LDFLAGS -b" 9846 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9848 # The linker can only warn and ignore the option if not recognized 9849 # So say no if there are warnings 9850 if test -s conftest.err; then 9851 # Append any errors to the config.log. 9852 cat conftest.err 1>&5 9853 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9855 if diff conftest.exp conftest.er2 >/dev/null; then 9856 lt_cv_prog_compiler__b=yes 9857 fi 9858 else 9859 lt_cv_prog_compiler__b=yes 9860 fi 9861 fi 9862 $RM -r conftest* 9863 LDFLAGS=$save_LDFLAGS 9864 9865fi 9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9867$as_echo "$lt_cv_prog_compiler__b" >&6; } 9868 9869if test yes = "$lt_cv_prog_compiler__b"; then 9870 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9871else 9872 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9873fi 9874 9875 ;; 9876 esac 9877 fi 9878 if test no = "$with_gnu_ld"; then 9879 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9880 hardcode_libdir_separator=: 9881 9882 case $host_cpu in 9883 hppa*64*|ia64*) 9884 hardcode_direct=no 9885 hardcode_shlibpath_var=no 9886 ;; 9887 *) 9888 hardcode_direct=yes 9889 hardcode_direct_absolute=yes 9890 export_dynamic_flag_spec='$wl-E' 9891 9892 # hardcode_minus_L: Not really in the search PATH, 9893 # but as the default location of the library. 9894 hardcode_minus_L=yes 9895 ;; 9896 esac 9897 fi 9898 ;; 9899 9900 irix5* | irix6* | nonstopux*) 9901 if test yes = "$GCC"; then 9902 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' 9903 # Try to use the -exported_symbol ld option, if it does not 9904 # work, assume that -exports_file does not work either and 9905 # implicitly export all symbols. 9906 # This should be the same for all languages, so no per-tag cache variable. 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9908$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9909if ${lt_cv_irix_exported_symbol+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911else 9912 save_LDFLAGS=$LDFLAGS 9913 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915/* end confdefs.h. */ 9916int foo (void) { return 0; } 9917_ACEOF 9918if ac_fn_c_try_link "$LINENO"; then : 9919 lt_cv_irix_exported_symbol=yes 9920else 9921 lt_cv_irix_exported_symbol=no 9922fi 9923rm -f core conftest.err conftest.$ac_objext \ 9924 conftest$ac_exeext conftest.$ac_ext 9925 LDFLAGS=$save_LDFLAGS 9926fi 9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9928$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9929 if test yes = "$lt_cv_irix_exported_symbol"; then 9930 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' 9931 fi 9932 else 9933 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' 9934 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' 9935 fi 9936 archive_cmds_need_lc='no' 9937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9938 hardcode_libdir_separator=: 9939 inherit_rpath=yes 9940 link_all_deplibs=yes 9941 ;; 9942 9943 linux*) 9944 case $cc_basename in 9945 tcc*) 9946 # Fabrice Bellard et al's Tiny C Compiler 9947 ld_shlibs=yes 9948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9949 ;; 9950 esac 9951 ;; 9952 9953 netbsd*) 9954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9956 else 9957 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9958 fi 9959 hardcode_libdir_flag_spec='-R$libdir' 9960 hardcode_direct=yes 9961 hardcode_shlibpath_var=no 9962 ;; 9963 9964 newsos6) 9965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9966 hardcode_direct=yes 9967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9968 hardcode_libdir_separator=: 9969 hardcode_shlibpath_var=no 9970 ;; 9971 9972 *nto* | *qnx*) 9973 ;; 9974 9975 openbsd* | bitrig*) 9976 if test -f /usr/libexec/ld.so; then 9977 hardcode_direct=yes 9978 hardcode_shlibpath_var=no 9979 hardcode_direct_absolute=yes 9980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9982 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9983 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9984 export_dynamic_flag_spec='$wl-E' 9985 else 9986 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9987 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9988 fi 9989 else 9990 ld_shlibs=no 9991 fi 9992 ;; 9993 9994 os2*) 9995 hardcode_libdir_flag_spec='-L$libdir' 9996 hardcode_minus_L=yes 9997 allow_undefined_flag=unsupported 9998 shrext_cmds=.dll 9999 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10000 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10001 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10002 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10003 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10004 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10005 emximp -o $lib $output_objdir/$libname.def' 10006 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10007 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10008 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10009 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10010 prefix_cmds="$SED"~ 10011 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10012 prefix_cmds="$prefix_cmds -e 1d"; 10013 fi~ 10014 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10015 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10016 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10017 emximp -o $lib $output_objdir/$libname.def' 10018 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10019 enable_shared_with_static_runtimes=yes 10020 ;; 10021 10022 osf3*) 10023 if test yes = "$GCC"; then 10024 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10025 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' 10026 else 10027 allow_undefined_flag=' -expect_unresolved \*' 10028 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' 10029 fi 10030 archive_cmds_need_lc='no' 10031 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10032 hardcode_libdir_separator=: 10033 ;; 10034 10035 osf4* | osf5*) # as osf3* with the addition of -msym flag 10036 if test yes = "$GCC"; then 10037 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10038 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' 10039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10040 else 10041 allow_undefined_flag=' -expect_unresolved \*' 10042 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' 10043 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~ 10044 $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' 10045 10046 # Both c and cxx compiler support -rpath directly 10047 hardcode_libdir_flag_spec='-rpath $libdir' 10048 fi 10049 archive_cmds_need_lc='no' 10050 hardcode_libdir_separator=: 10051 ;; 10052 10053 solaris*) 10054 no_undefined_flag=' -z defs' 10055 if test yes = "$GCC"; then 10056 wlarc='$wl' 10057 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10059 $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' 10060 else 10061 case `$CC -V 2>&1` in 10062 *"Compilers 5.0"*) 10063 wlarc='' 10064 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10066 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10067 ;; 10068 *) 10069 wlarc='$wl' 10070 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10072 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10073 ;; 10074 esac 10075 fi 10076 hardcode_libdir_flag_spec='-R$libdir' 10077 hardcode_shlibpath_var=no 10078 case $host_os in 10079 solaris2.[0-5] | solaris2.[0-5].*) ;; 10080 *) 10081 # The compiler driver will combine and reorder linker options, 10082 # but understands '-z linker_flag'. GCC discards it without '$wl', 10083 # but is careful enough not to reorder. 10084 # Supported since Solaris 2.6 (maybe 2.5.1?) 10085 if test yes = "$GCC"; then 10086 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10087 else 10088 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10089 fi 10090 ;; 10091 esac 10092 link_all_deplibs=yes 10093 ;; 10094 10095 sunos4*) 10096 if test sequent = "$host_vendor"; then 10097 # Use $CC to link under sequent, because it throws in some extra .o 10098 # files that make .init and .fini sections work. 10099 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10100 else 10101 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10102 fi 10103 hardcode_libdir_flag_spec='-L$libdir' 10104 hardcode_direct=yes 10105 hardcode_minus_L=yes 10106 hardcode_shlibpath_var=no 10107 ;; 10108 10109 sysv4) 10110 case $host_vendor in 10111 sni) 10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10113 hardcode_direct=yes # is this really true??? 10114 ;; 10115 siemens) 10116 ## LD is ld it makes a PLAMLIB 10117 ## CC just makes a GrossModule. 10118 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10119 reload_cmds='$CC -r -o $output$reload_objs' 10120 hardcode_direct=no 10121 ;; 10122 motorola) 10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10124 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10125 ;; 10126 esac 10127 runpath_var='LD_RUN_PATH' 10128 hardcode_shlibpath_var=no 10129 ;; 10130 10131 sysv4.3*) 10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10133 hardcode_shlibpath_var=no 10134 export_dynamic_flag_spec='-Bexport' 10135 ;; 10136 10137 sysv4*MP*) 10138 if test -d /usr/nec; then 10139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10140 hardcode_shlibpath_var=no 10141 runpath_var=LD_RUN_PATH 10142 hardcode_runpath_var=yes 10143 ld_shlibs=yes 10144 fi 10145 ;; 10146 10147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10148 no_undefined_flag='$wl-z,text' 10149 archive_cmds_need_lc=no 10150 hardcode_shlibpath_var=no 10151 runpath_var='LD_RUN_PATH' 10152 10153 if test yes = "$GCC"; then 10154 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10155 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10156 else 10157 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10158 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10159 fi 10160 ;; 10161 10162 sysv5* | sco3.2v5* | sco5v6*) 10163 # Note: We CANNOT use -z defs as we might desire, because we do not 10164 # link with -lc, and that would cause any symbols used from libc to 10165 # always be unresolved, which means just about no library would 10166 # ever link correctly. If we're not using GNU ld we use -z text 10167 # though, which does catch some bad symbols but isn't as heavy-handed 10168 # as -z defs. 10169 no_undefined_flag='$wl-z,text' 10170 allow_undefined_flag='$wl-z,nodefs' 10171 archive_cmds_need_lc=no 10172 hardcode_shlibpath_var=no 10173 hardcode_libdir_flag_spec='$wl-R,$libdir' 10174 hardcode_libdir_separator=':' 10175 link_all_deplibs=yes 10176 export_dynamic_flag_spec='$wl-Bexport' 10177 runpath_var='LD_RUN_PATH' 10178 10179 if test yes = "$GCC"; then 10180 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10181 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10182 else 10183 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10185 fi 10186 ;; 10187 10188 uts4*) 10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10190 hardcode_libdir_flag_spec='-L$libdir' 10191 hardcode_shlibpath_var=no 10192 ;; 10193 10194 *) 10195 ld_shlibs=no 10196 ;; 10197 esac 10198 10199 if test sni = "$host_vendor"; then 10200 case $host in 10201 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10202 export_dynamic_flag_spec='$wl-Blargedynsym' 10203 ;; 10204 esac 10205 fi 10206 fi 10207 10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10209$as_echo "$ld_shlibs" >&6; } 10210test no = "$ld_shlibs" && can_build_shared=no 10211 10212with_gnu_ld=$with_gnu_ld 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228# 10229# Do we need to explicitly link libc? 10230# 10231case "x$archive_cmds_need_lc" in 10232x|xyes) 10233 # Assume -lc should be added 10234 archive_cmds_need_lc=yes 10235 10236 if test yes,yes = "$GCC,$enable_shared"; then 10237 case $archive_cmds in 10238 *'~'*) 10239 # FIXME: we may have to deal with multi-command sequences. 10240 ;; 10241 '$CC '*) 10242 # Test whether the compiler implicitly links with -lc since on some 10243 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10244 # to ld, don't add -lc before -lgcc. 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10246$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10247if ${lt_cv_archive_cmds_need_lc+:} false; then : 10248 $as_echo_n "(cached) " >&6 10249else 10250 $RM conftest* 10251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10252 10253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10254 (eval $ac_compile) 2>&5 10255 ac_status=$? 10256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10257 test $ac_status = 0; } 2>conftest.err; then 10258 soname=conftest 10259 lib=conftest 10260 libobjs=conftest.$ac_objext 10261 deplibs= 10262 wl=$lt_prog_compiler_wl 10263 pic_flag=$lt_prog_compiler_pic 10264 compiler_flags=-v 10265 linker_flags=-v 10266 verstring= 10267 output_objdir=. 10268 libname=conftest 10269 lt_save_allow_undefined_flag=$allow_undefined_flag 10270 allow_undefined_flag= 10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10272 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10273 ac_status=$? 10274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10275 test $ac_status = 0; } 10276 then 10277 lt_cv_archive_cmds_need_lc=no 10278 else 10279 lt_cv_archive_cmds_need_lc=yes 10280 fi 10281 allow_undefined_flag=$lt_save_allow_undefined_flag 10282 else 10283 cat conftest.err 1>&5 10284 fi 10285 $RM conftest* 10286 10287fi 10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10289$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10290 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10291 ;; 10292 esac 10293 fi 10294 ;; 10295esac 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10449$as_echo_n "checking dynamic linker characteristics... " >&6; } 10450 10451if test yes = "$GCC"; then 10452 case $host_os in 10453 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10454 *) lt_awk_arg='/^libraries:/' ;; 10455 esac 10456 case $host_os in 10457 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10458 *) lt_sed_strip_eq='s|=/|/|g' ;; 10459 esac 10460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10461 case $lt_search_path_spec in 10462 *\;*) 10463 # if the path contains ";" then we assume it to be the separator 10464 # otherwise default to the standard path separator (i.e. ":") - it is 10465 # assumed that no part of a normal pathname contains ";" but that should 10466 # okay in the real world where ";" in dirpaths is itself problematic. 10467 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10468 ;; 10469 *) 10470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10471 ;; 10472 esac 10473 # Ok, now we have the path, separated by spaces, we can step through it 10474 # and add multilib dir if necessary... 10475 lt_tmp_lt_search_path_spec= 10476 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10477 # ...but if some path component already ends with the multilib dir we assume 10478 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10479 case "$lt_multi_os_dir; $lt_search_path_spec " in 10480 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10481 lt_multi_os_dir= 10482 ;; 10483 esac 10484 for lt_sys_path in $lt_search_path_spec; do 10485 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10486 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10487 elif test -n "$lt_multi_os_dir"; then 10488 test -d "$lt_sys_path" && \ 10489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10490 fi 10491 done 10492 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10493BEGIN {RS = " "; FS = "/|\n";} { 10494 lt_foo = ""; 10495 lt_count = 0; 10496 for (lt_i = NF; lt_i > 0; lt_i--) { 10497 if ($lt_i != "" && $lt_i != ".") { 10498 if ($lt_i == "..") { 10499 lt_count++; 10500 } else { 10501 if (lt_count == 0) { 10502 lt_foo = "/" $lt_i lt_foo; 10503 } else { 10504 lt_count--; 10505 } 10506 } 10507 } 10508 } 10509 if (lt_foo != "") { lt_freq[lt_foo]++; } 10510 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10511}'` 10512 # AWK program above erroneously prepends '/' to C:/dos/paths 10513 # for these hosts. 10514 case $host_os in 10515 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10516 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10517 esac 10518 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10519else 10520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10521fi 10522library_names_spec= 10523libname_spec='lib$name' 10524soname_spec= 10525shrext_cmds=.so 10526postinstall_cmds= 10527postuninstall_cmds= 10528finish_cmds= 10529finish_eval= 10530shlibpath_var= 10531shlibpath_overrides_runpath=unknown 10532version_type=none 10533dynamic_linker="$host_os ld.so" 10534sys_lib_dlsearch_path_spec="/lib /usr/lib" 10535need_lib_prefix=unknown 10536hardcode_into_libs=no 10537 10538# when you set need_version to no, make sure it does not cause -set_version 10539# flags to be left without arguments 10540need_version=unknown 10541 10542 10543 10544case $host_os in 10545aix3*) 10546 version_type=linux # correct to gnu/linux during the next big refactor 10547 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10548 shlibpath_var=LIBPATH 10549 10550 # AIX 3 has no versioning support, so we append a major version to the name. 10551 soname_spec='$libname$release$shared_ext$major' 10552 ;; 10553 10554aix[4-9]*) 10555 version_type=linux # correct to gnu/linux during the next big refactor 10556 need_lib_prefix=no 10557 need_version=no 10558 hardcode_into_libs=yes 10559 if test ia64 = "$host_cpu"; then 10560 # AIX 5 supports IA64 10561 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10562 shlibpath_var=LD_LIBRARY_PATH 10563 else 10564 # With GCC up to 2.95.x, collect2 would create an import file 10565 # for dependence libraries. The import file would start with 10566 # the line '#! .'. This would cause the generated library to 10567 # depend on '.', always an invalid library. This was fixed in 10568 # development snapshots of GCC prior to 3.0. 10569 case $host_os in 10570 aix4 | aix4.[01] | aix4.[01].*) 10571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10572 echo ' yes ' 10573 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10574 : 10575 else 10576 can_build_shared=no 10577 fi 10578 ;; 10579 esac 10580 # Using Import Files as archive members, it is possible to support 10581 # filename-based versioning of shared library archives on AIX. While 10582 # this would work for both with and without runtime linking, it will 10583 # prevent static linking of such archives. So we do filename-based 10584 # shared library versioning with .so extension only, which is used 10585 # when both runtime linking and shared linking is enabled. 10586 # Unfortunately, runtime linking may impact performance, so we do 10587 # not want this to be the default eventually. Also, we use the 10588 # versioned .so libs for executables only if there is the -brtl 10589 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10590 # To allow for filename-based versioning support, we need to create 10591 # libNAME.so.V as an archive file, containing: 10592 # *) an Import File, referring to the versioned filename of the 10593 # archive as well as the shared archive member, telling the 10594 # bitwidth (32 or 64) of that shared object, and providing the 10595 # list of exported symbols of that shared object, eventually 10596 # decorated with the 'weak' keyword 10597 # *) the shared object with the F_LOADONLY flag set, to really avoid 10598 # it being seen by the linker. 10599 # At run time we better use the real file rather than another symlink, 10600 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10601 10602 case $with_aix_soname,$aix_use_runtimelinking in 10603 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10604 # soname into executable. Probably we can add versioning support to 10605 # collect2, so additional links can be useful in future. 10606 aix,yes) # traditional libtool 10607 dynamic_linker='AIX unversionable lib.so' 10608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10609 # instead of lib<name>.a to let people know that these are not 10610 # typical AIX shared libraries. 10611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10612 ;; 10613 aix,no) # traditional AIX only 10614 dynamic_linker='AIX lib.a(lib.so.V)' 10615 # We preserve .a as extension for shared libraries through AIX4.2 10616 # and later when we are not doing run time linking. 10617 library_names_spec='$libname$release.a $libname.a' 10618 soname_spec='$libname$release$shared_ext$major' 10619 ;; 10620 svr4,*) # full svr4 only 10621 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10622 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10623 # We do not specify a path in Import Files, so LIBPATH fires. 10624 shlibpath_overrides_runpath=yes 10625 ;; 10626 *,yes) # both, prefer svr4 10627 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10628 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10629 # unpreferred sharedlib libNAME.a needs extra handling 10630 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"' 10631 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"' 10632 # We do not specify a path in Import Files, so LIBPATH fires. 10633 shlibpath_overrides_runpath=yes 10634 ;; 10635 *,no) # both, prefer aix 10636 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10637 library_names_spec='$libname$release.a $libname.a' 10638 soname_spec='$libname$release$shared_ext$major' 10639 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10640 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)' 10641 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"' 10642 ;; 10643 esac 10644 shlibpath_var=LIBPATH 10645 fi 10646 ;; 10647 10648amigaos*) 10649 case $host_cpu in 10650 powerpc) 10651 # Since July 2007 AmigaOS4 officially supports .so libraries. 10652 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10654 ;; 10655 m68k) 10656 library_names_spec='$libname.ixlibrary $libname.a' 10657 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10658 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' 10659 ;; 10660 esac 10661 ;; 10662 10663beos*) 10664 library_names_spec='$libname$shared_ext' 10665 dynamic_linker="$host_os ld.so" 10666 shlibpath_var=LIBRARY_PATH 10667 ;; 10668 10669bsdi[45]*) 10670 version_type=linux # correct to gnu/linux during the next big refactor 10671 need_version=no 10672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10673 soname_spec='$libname$release$shared_ext$major' 10674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10675 shlibpath_var=LD_LIBRARY_PATH 10676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10678 # the default ld.so.conf also contains /usr/contrib/lib and 10679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10680 # libtool to hard-code these into programs 10681 ;; 10682 10683cygwin* | mingw* | pw32* | cegcc*) 10684 version_type=windows 10685 shrext_cmds=.dll 10686 need_version=no 10687 need_lib_prefix=no 10688 10689 case $GCC,$cc_basename in 10690 yes,*) 10691 # gcc 10692 library_names_spec='$libname.dll.a' 10693 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10694 postinstall_cmds='base_file=`basename \$file`~ 10695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10696 dldir=$destdir/`dirname \$dlpath`~ 10697 test -d \$dldir || mkdir -p \$dldir~ 10698 $install_prog $dir/$dlname \$dldir/$dlname~ 10699 chmod a+x \$dldir/$dlname~ 10700 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10701 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10702 fi' 10703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10704 dlpath=$dir/\$dldll~ 10705 $RM \$dlpath' 10706 shlibpath_overrides_runpath=yes 10707 10708 case $host_os in 10709 cygwin*) 10710 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10711 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10712 10713 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10714 ;; 10715 mingw* | cegcc*) 10716 # MinGW DLLs use traditional 'lib' prefix 10717 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10718 ;; 10719 pw32*) 10720 # pw32 DLLs use 'pw' prefix rather than 'lib' 10721 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10722 ;; 10723 esac 10724 dynamic_linker='Win32 ld.exe' 10725 ;; 10726 10727 *,cl*) 10728 # Native MSVC 10729 libname_spec='$name' 10730 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10731 library_names_spec='$libname.dll.lib' 10732 10733 case $build_os in 10734 mingw*) 10735 sys_lib_search_path_spec= 10736 lt_save_ifs=$IFS 10737 IFS=';' 10738 for lt_path in $LIB 10739 do 10740 IFS=$lt_save_ifs 10741 # Let DOS variable expansion print the short 8.3 style file name. 10742 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10743 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10744 done 10745 IFS=$lt_save_ifs 10746 # Convert to MSYS style. 10747 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10748 ;; 10749 cygwin*) 10750 # Convert to unix form, then to dos form, then back to unix form 10751 # but this time dos style (no spaces!) so that the unix form looks 10752 # like /cygdrive/c/PROGRA~1:/cygdr... 10753 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10754 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10755 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10756 ;; 10757 *) 10758 sys_lib_search_path_spec=$LIB 10759 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10760 # It is most probably a Windows format PATH. 10761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10762 else 10763 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10764 fi 10765 # FIXME: find the short name or the path components, as spaces are 10766 # common. (e.g. "Program Files" -> "PROGRA~1") 10767 ;; 10768 esac 10769 10770 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10771 postinstall_cmds='base_file=`basename \$file`~ 10772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10773 dldir=$destdir/`dirname \$dlpath`~ 10774 test -d \$dldir || mkdir -p \$dldir~ 10775 $install_prog $dir/$dlname \$dldir/$dlname' 10776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10777 dlpath=$dir/\$dldll~ 10778 $RM \$dlpath' 10779 shlibpath_overrides_runpath=yes 10780 dynamic_linker='Win32 link.exe' 10781 ;; 10782 10783 *) 10784 # Assume MSVC wrapper 10785 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10786 dynamic_linker='Win32 ld.exe' 10787 ;; 10788 esac 10789 # FIXME: first we should search . and the directory the executable is in 10790 shlibpath_var=PATH 10791 ;; 10792 10793darwin* | rhapsody*) 10794 dynamic_linker="$host_os dyld" 10795 version_type=darwin 10796 need_lib_prefix=no 10797 need_version=no 10798 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10799 soname_spec='$libname$release$major$shared_ext' 10800 shlibpath_overrides_runpath=yes 10801 shlibpath_var=DYLD_LIBRARY_PATH 10802 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10803 10804 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10806 ;; 10807 10808dgux*) 10809 version_type=linux # correct to gnu/linux during the next big refactor 10810 need_lib_prefix=no 10811 need_version=no 10812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10813 soname_spec='$libname$release$shared_ext$major' 10814 shlibpath_var=LD_LIBRARY_PATH 10815 ;; 10816 10817freebsd* | dragonfly*) 10818 # DragonFly does not have aout. When/if they implement a new 10819 # versioning mechanism, adjust this. 10820 if test -x /usr/bin/objformat; then 10821 objformat=`/usr/bin/objformat` 10822 else 10823 case $host_os in 10824 freebsd[23].*) objformat=aout ;; 10825 *) objformat=elf ;; 10826 esac 10827 fi 10828 version_type=freebsd-$objformat 10829 case $version_type in 10830 freebsd-elf*) 10831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10832 soname_spec='$libname$release$shared_ext$major' 10833 need_version=no 10834 need_lib_prefix=no 10835 ;; 10836 freebsd-*) 10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10838 need_version=yes 10839 ;; 10840 esac 10841 shlibpath_var=LD_LIBRARY_PATH 10842 case $host_os in 10843 freebsd2.*) 10844 shlibpath_overrides_runpath=yes 10845 ;; 10846 freebsd3.[01]* | freebsdelf3.[01]*) 10847 shlibpath_overrides_runpath=yes 10848 hardcode_into_libs=yes 10849 ;; 10850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10852 shlibpath_overrides_runpath=no 10853 hardcode_into_libs=yes 10854 ;; 10855 *) # from 4.6 on, and DragonFly 10856 shlibpath_overrides_runpath=yes 10857 hardcode_into_libs=yes 10858 ;; 10859 esac 10860 ;; 10861 10862haiku*) 10863 version_type=linux # correct to gnu/linux during the next big refactor 10864 need_lib_prefix=no 10865 need_version=no 10866 dynamic_linker="$host_os runtime_loader" 10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10868 soname_spec='$libname$release$shared_ext$major' 10869 shlibpath_var=LIBRARY_PATH 10870 shlibpath_overrides_runpath=no 10871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10872 hardcode_into_libs=yes 10873 ;; 10874 10875hpux9* | hpux10* | hpux11*) 10876 # Give a soname corresponding to the major version so that dld.sl refuses to 10877 # link against other versions. 10878 version_type=sunos 10879 need_lib_prefix=no 10880 need_version=no 10881 case $host_cpu in 10882 ia64*) 10883 shrext_cmds='.so' 10884 hardcode_into_libs=yes 10885 dynamic_linker="$host_os dld.so" 10886 shlibpath_var=LD_LIBRARY_PATH 10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10889 soname_spec='$libname$release$shared_ext$major' 10890 if test 32 = "$HPUX_IA64_MODE"; then 10891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10892 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10893 else 10894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10895 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10896 fi 10897 ;; 10898 hppa*64*) 10899 shrext_cmds='.sl' 10900 hardcode_into_libs=yes 10901 dynamic_linker="$host_os dld.sl" 10902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10905 soname_spec='$libname$release$shared_ext$major' 10906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10908 ;; 10909 *) 10910 shrext_cmds='.sl' 10911 dynamic_linker="$host_os dld.sl" 10912 shlibpath_var=SHLIB_PATH 10913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10915 soname_spec='$libname$release$shared_ext$major' 10916 ;; 10917 esac 10918 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10919 postinstall_cmds='chmod 555 $lib' 10920 # or fails outright, so override atomically: 10921 install_override_mode=555 10922 ;; 10923 10924interix[3-9]*) 10925 version_type=linux # correct to gnu/linux during the next big refactor 10926 need_lib_prefix=no 10927 need_version=no 10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10929 soname_spec='$libname$release$shared_ext$major' 10930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10931 shlibpath_var=LD_LIBRARY_PATH 10932 shlibpath_overrides_runpath=no 10933 hardcode_into_libs=yes 10934 ;; 10935 10936irix5* | irix6* | nonstopux*) 10937 case $host_os in 10938 nonstopux*) version_type=nonstopux ;; 10939 *) 10940 if test yes = "$lt_cv_prog_gnu_ld"; then 10941 version_type=linux # correct to gnu/linux during the next big refactor 10942 else 10943 version_type=irix 10944 fi ;; 10945 esac 10946 need_lib_prefix=no 10947 need_version=no 10948 soname_spec='$libname$release$shared_ext$major' 10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10950 case $host_os in 10951 irix5* | nonstopux*) 10952 libsuff= shlibsuff= 10953 ;; 10954 *) 10955 case $LD in # libtool.m4 will add one of these switches to LD 10956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10957 libsuff= shlibsuff= libmagic=32-bit;; 10958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10959 libsuff=32 shlibsuff=N32 libmagic=N32;; 10960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10961 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10962 *) libsuff= shlibsuff= libmagic=never-match;; 10963 esac 10964 ;; 10965 esac 10966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10967 shlibpath_overrides_runpath=no 10968 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10969 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10970 hardcode_into_libs=yes 10971 ;; 10972 10973# No shared lib support for Linux oldld, aout, or coff. 10974linux*oldld* | linux*aout* | linux*coff*) 10975 dynamic_linker=no 10976 ;; 10977 10978linux*android*) 10979 version_type=none # Android doesn't support versioned libraries. 10980 need_lib_prefix=no 10981 need_version=no 10982 library_names_spec='$libname$release$shared_ext' 10983 soname_spec='$libname$release$shared_ext' 10984 finish_cmds= 10985 shlibpath_var=LD_LIBRARY_PATH 10986 shlibpath_overrides_runpath=yes 10987 10988 # This implies no fast_install, which is unacceptable. 10989 # Some rework will be needed to allow for fast_install 10990 # before this can be enabled. 10991 hardcode_into_libs=yes 10992 10993 dynamic_linker='Android linker' 10994 # Don't embed -rpath directories since the linker doesn't support them. 10995 hardcode_libdir_flag_spec='-L$libdir' 10996 ;; 10997 10998# This must be glibc/ELF. 10999linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11000 version_type=linux # correct to gnu/linux during the next big refactor 11001 need_lib_prefix=no 11002 need_version=no 11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11004 soname_spec='$libname$release$shared_ext$major' 11005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11006 shlibpath_var=LD_LIBRARY_PATH 11007 shlibpath_overrides_runpath=no 11008 11009 # Some binutils ld are patched to set DT_RUNPATH 11010 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11011 $as_echo_n "(cached) " >&6 11012else 11013 lt_cv_shlibpath_overrides_runpath=no 11014 save_LDFLAGS=$LDFLAGS 11015 save_libdir=$libdir 11016 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11017 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021int 11022main () 11023{ 11024 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO"; then : 11030 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11031 lt_cv_shlibpath_overrides_runpath=yes 11032fi 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036 LDFLAGS=$save_LDFLAGS 11037 libdir=$save_libdir 11038 11039fi 11040 11041 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11042 11043 # This implies no fast_install, which is unacceptable. 11044 # Some rework will be needed to allow for fast_install 11045 # before this can be enabled. 11046 hardcode_into_libs=yes 11047 11048 # Ideally, we could use ldconfig to report *all* directores which are 11049 # searched for libraries, however this is still not possible. Aside from not 11050 # being certain /sbin/ldconfig is available, command 11051 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11052 # even though it is searched at run-time. Try to do the best guess by 11053 # appending ld.so.conf contents (and includes) to the search path. 11054 if test -f /etc/ld.so.conf; then 11055 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' ' '` 11056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11057 fi 11058 11059 # We used to test for /lib/ld.so.1 and disable shared libraries on 11060 # powerpc, because MkLinux only supported shared libraries with the 11061 # GNU dynamic linker. Since this was broken with cross compilers, 11062 # most powerpc-linux boxes support dynamic linking these days and 11063 # people can always --disable-shared, the test was removed, and we 11064 # assume the GNU/Linux dynamic linker is in use. 11065 dynamic_linker='GNU/Linux ld.so' 11066 ;; 11067 11068netbsd*) 11069 version_type=sunos 11070 need_lib_prefix=no 11071 need_version=no 11072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11075 dynamic_linker='NetBSD (a.out) ld.so' 11076 else 11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11078 soname_spec='$libname$release$shared_ext$major' 11079 dynamic_linker='NetBSD ld.elf_so' 11080 fi 11081 shlibpath_var=LD_LIBRARY_PATH 11082 shlibpath_overrides_runpath=yes 11083 hardcode_into_libs=yes 11084 ;; 11085 11086newsos6) 11087 version_type=linux # correct to gnu/linux during the next big refactor 11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11089 shlibpath_var=LD_LIBRARY_PATH 11090 shlibpath_overrides_runpath=yes 11091 ;; 11092 11093*nto* | *qnx*) 11094 version_type=qnx 11095 need_lib_prefix=no 11096 need_version=no 11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11098 soname_spec='$libname$release$shared_ext$major' 11099 shlibpath_var=LD_LIBRARY_PATH 11100 shlibpath_overrides_runpath=no 11101 hardcode_into_libs=yes 11102 dynamic_linker='ldqnx.so' 11103 ;; 11104 11105openbsd* | bitrig*) 11106 version_type=sunos 11107 sys_lib_dlsearch_path_spec=/usr/lib 11108 need_lib_prefix=no 11109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11110 need_version=no 11111 else 11112 need_version=yes 11113 fi 11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11116 shlibpath_var=LD_LIBRARY_PATH 11117 shlibpath_overrides_runpath=yes 11118 ;; 11119 11120os2*) 11121 libname_spec='$name' 11122 version_type=windows 11123 shrext_cmds=.dll 11124 need_version=no 11125 need_lib_prefix=no 11126 # OS/2 can only load a DLL with a base name of 8 characters or less. 11127 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11128 v=$($ECHO $release$versuffix | tr -d .-); 11129 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11130 $ECHO $n$v`$shared_ext' 11131 library_names_spec='${libname}_dll.$libext' 11132 dynamic_linker='OS/2 ld.exe' 11133 shlibpath_var=BEGINLIBPATH 11134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11136 postinstall_cmds='base_file=`basename \$file`~ 11137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11138 dldir=$destdir/`dirname \$dlpath`~ 11139 test -d \$dldir || mkdir -p \$dldir~ 11140 $install_prog $dir/$dlname \$dldir/$dlname~ 11141 chmod a+x \$dldir/$dlname~ 11142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11144 fi' 11145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11146 dlpath=$dir/\$dldll~ 11147 $RM \$dlpath' 11148 ;; 11149 11150osf3* | osf4* | osf5*) 11151 version_type=osf 11152 need_lib_prefix=no 11153 need_version=no 11154 soname_spec='$libname$release$shared_ext$major' 11155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11156 shlibpath_var=LD_LIBRARY_PATH 11157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11159 ;; 11160 11161rdos*) 11162 dynamic_linker=no 11163 ;; 11164 11165solaris*) 11166 version_type=linux # correct to gnu/linux during the next big refactor 11167 need_lib_prefix=no 11168 need_version=no 11169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11170 soname_spec='$libname$release$shared_ext$major' 11171 shlibpath_var=LD_LIBRARY_PATH 11172 shlibpath_overrides_runpath=yes 11173 hardcode_into_libs=yes 11174 # ldd complains unless libraries are executable 11175 postinstall_cmds='chmod +x $lib' 11176 ;; 11177 11178sunos4*) 11179 version_type=sunos 11180 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11182 shlibpath_var=LD_LIBRARY_PATH 11183 shlibpath_overrides_runpath=yes 11184 if test yes = "$with_gnu_ld"; then 11185 need_lib_prefix=no 11186 fi 11187 need_version=yes 11188 ;; 11189 11190sysv4 | sysv4.3*) 11191 version_type=linux # correct to gnu/linux during the next big refactor 11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11193 soname_spec='$libname$release$shared_ext$major' 11194 shlibpath_var=LD_LIBRARY_PATH 11195 case $host_vendor in 11196 sni) 11197 shlibpath_overrides_runpath=no 11198 need_lib_prefix=no 11199 runpath_var=LD_RUN_PATH 11200 ;; 11201 siemens) 11202 need_lib_prefix=no 11203 ;; 11204 motorola) 11205 need_lib_prefix=no 11206 need_version=no 11207 shlibpath_overrides_runpath=no 11208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11209 ;; 11210 esac 11211 ;; 11212 11213sysv4*MP*) 11214 if test -d /usr/nec; then 11215 version_type=linux # correct to gnu/linux during the next big refactor 11216 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11217 soname_spec='$libname$shared_ext.$major' 11218 shlibpath_var=LD_LIBRARY_PATH 11219 fi 11220 ;; 11221 11222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11223 version_type=sco 11224 need_lib_prefix=no 11225 need_version=no 11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11227 soname_spec='$libname$release$shared_ext$major' 11228 shlibpath_var=LD_LIBRARY_PATH 11229 shlibpath_overrides_runpath=yes 11230 hardcode_into_libs=yes 11231 if test yes = "$with_gnu_ld"; then 11232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11233 else 11234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11235 case $host_os in 11236 sco3.2v5*) 11237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11238 ;; 11239 esac 11240 fi 11241 sys_lib_dlsearch_path_spec='/usr/lib' 11242 ;; 11243 11244tpf*) 11245 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11246 version_type=linux # correct to gnu/linux during the next big refactor 11247 need_lib_prefix=no 11248 need_version=no 11249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11250 shlibpath_var=LD_LIBRARY_PATH 11251 shlibpath_overrides_runpath=no 11252 hardcode_into_libs=yes 11253 ;; 11254 11255uts4*) 11256 version_type=linux # correct to gnu/linux during the next big refactor 11257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11258 soname_spec='$libname$release$shared_ext$major' 11259 shlibpath_var=LD_LIBRARY_PATH 11260 ;; 11261 11262*) 11263 dynamic_linker=no 11264 ;; 11265esac 11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11267$as_echo "$dynamic_linker" >&6; } 11268test no = "$dynamic_linker" && can_build_shared=no 11269 11270variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11271if test yes = "$GCC"; then 11272 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11273fi 11274 11275if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11276 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11277fi 11278 11279if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11280 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11281fi 11282 11283# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11284configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11285 11286# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11287func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11288 11289# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11290configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11389$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11390hardcode_action= 11391if test -n "$hardcode_libdir_flag_spec" || 11392 test -n "$runpath_var" || 11393 test yes = "$hardcode_automatic"; then 11394 11395 # We can hardcode non-existent directories. 11396 if test no != "$hardcode_direct" && 11397 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11398 # have to relink, otherwise we might link with an installed library 11399 # when we should be linking with a yet-to-be-installed one 11400 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11401 test no != "$hardcode_minus_L"; then 11402 # Linking always hardcodes the temporary library directory. 11403 hardcode_action=relink 11404 else 11405 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11406 hardcode_action=immediate 11407 fi 11408else 11409 # We cannot hardcode anything, or else we can only hardcode existing 11410 # directories. 11411 hardcode_action=unsupported 11412fi 11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11414$as_echo "$hardcode_action" >&6; } 11415 11416if test relink = "$hardcode_action" || 11417 test yes = "$inherit_rpath"; then 11418 # Fast installation is not supported 11419 enable_fast_install=no 11420elif test yes = "$shlibpath_overrides_runpath" || 11421 test no = "$enable_shared"; then 11422 # Fast installation is not necessary 11423 enable_fast_install=needless 11424fi 11425 11426 11427 11428 11429 11430 11431 if test yes != "$enable_dlopen"; then 11432 enable_dlopen=unknown 11433 enable_dlopen_self=unknown 11434 enable_dlopen_self_static=unknown 11435else 11436 lt_cv_dlopen=no 11437 lt_cv_dlopen_libs= 11438 11439 case $host_os in 11440 beos*) 11441 lt_cv_dlopen=load_add_on 11442 lt_cv_dlopen_libs= 11443 lt_cv_dlopen_self=yes 11444 ;; 11445 11446 mingw* | pw32* | cegcc*) 11447 lt_cv_dlopen=LoadLibrary 11448 lt_cv_dlopen_libs= 11449 ;; 11450 11451 cygwin*) 11452 lt_cv_dlopen=dlopen 11453 lt_cv_dlopen_libs= 11454 ;; 11455 11456 darwin*) 11457 # if libdl is installed we need to link against it 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11459$as_echo_n "checking for dlopen in -ldl... " >&6; } 11460if ${ac_cv_lib_dl_dlopen+:} false; then : 11461 $as_echo_n "(cached) " >&6 11462else 11463 ac_check_lib_save_LIBS=$LIBS 11464LIBS="-ldl $LIBS" 11465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11466/* end confdefs.h. */ 11467 11468/* Override any GCC internal prototype to avoid an error. 11469 Use char because int might match the return type of a GCC 11470 builtin and then its argument prototype would still apply. */ 11471#ifdef __cplusplus 11472extern "C" 11473#endif 11474char dlopen (); 11475int 11476main () 11477{ 11478return dlopen (); 11479 ; 11480 return 0; 11481} 11482_ACEOF 11483if ac_fn_c_try_link "$LINENO"; then : 11484 ac_cv_lib_dl_dlopen=yes 11485else 11486 ac_cv_lib_dl_dlopen=no 11487fi 11488rm -f core conftest.err conftest.$ac_objext \ 11489 conftest$ac_exeext conftest.$ac_ext 11490LIBS=$ac_check_lib_save_LIBS 11491fi 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11493$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11494if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11495 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11496else 11497 11498 lt_cv_dlopen=dyld 11499 lt_cv_dlopen_libs= 11500 lt_cv_dlopen_self=yes 11501 11502fi 11503 11504 ;; 11505 11506 tpf*) 11507 # Don't try to run any link tests for TPF. We know it's impossible 11508 # because TPF is a cross-compiler, and we know how we open DSOs. 11509 lt_cv_dlopen=dlopen 11510 lt_cv_dlopen_libs= 11511 lt_cv_dlopen_self=no 11512 ;; 11513 11514 *) 11515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11516if test "x$ac_cv_func_shl_load" = xyes; then : 11517 lt_cv_dlopen=shl_load 11518else 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11520$as_echo_n "checking for shl_load in -ldld... " >&6; } 11521if ${ac_cv_lib_dld_shl_load+:} false; then : 11522 $as_echo_n "(cached) " >&6 11523else 11524 ac_check_lib_save_LIBS=$LIBS 11525LIBS="-ldld $LIBS" 11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11527/* end confdefs.h. */ 11528 11529/* Override any GCC internal prototype to avoid an error. 11530 Use char because int might match the return type of a GCC 11531 builtin and then its argument prototype would still apply. */ 11532#ifdef __cplusplus 11533extern "C" 11534#endif 11535char shl_load (); 11536int 11537main () 11538{ 11539return shl_load (); 11540 ; 11541 return 0; 11542} 11543_ACEOF 11544if ac_fn_c_try_link "$LINENO"; then : 11545 ac_cv_lib_dld_shl_load=yes 11546else 11547 ac_cv_lib_dld_shl_load=no 11548fi 11549rm -f core conftest.err conftest.$ac_objext \ 11550 conftest$ac_exeext conftest.$ac_ext 11551LIBS=$ac_check_lib_save_LIBS 11552fi 11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11554$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11555if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11556 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11557else 11558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11559if test "x$ac_cv_func_dlopen" = xyes; then : 11560 lt_cv_dlopen=dlopen 11561else 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11563$as_echo_n "checking for dlopen in -ldl... " >&6; } 11564if ${ac_cv_lib_dl_dlopen+:} false; then : 11565 $as_echo_n "(cached) " >&6 11566else 11567 ac_check_lib_save_LIBS=$LIBS 11568LIBS="-ldl $LIBS" 11569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11570/* end confdefs.h. */ 11571 11572/* Override any GCC internal prototype to avoid an error. 11573 Use char because int might match the return type of a GCC 11574 builtin and then its argument prototype would still apply. */ 11575#ifdef __cplusplus 11576extern "C" 11577#endif 11578char dlopen (); 11579int 11580main () 11581{ 11582return dlopen (); 11583 ; 11584 return 0; 11585} 11586_ACEOF 11587if ac_fn_c_try_link "$LINENO"; then : 11588 ac_cv_lib_dl_dlopen=yes 11589else 11590 ac_cv_lib_dl_dlopen=no 11591fi 11592rm -f core conftest.err conftest.$ac_objext \ 11593 conftest$ac_exeext conftest.$ac_ext 11594LIBS=$ac_check_lib_save_LIBS 11595fi 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11597$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11598if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11599 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11600else 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11602$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11603if ${ac_cv_lib_svld_dlopen+:} false; then : 11604 $as_echo_n "(cached) " >&6 11605else 11606 ac_check_lib_save_LIBS=$LIBS 11607LIBS="-lsvld $LIBS" 11608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11609/* end confdefs.h. */ 11610 11611/* Override any GCC internal prototype to avoid an error. 11612 Use char because int might match the return type of a GCC 11613 builtin and then its argument prototype would still apply. */ 11614#ifdef __cplusplus 11615extern "C" 11616#endif 11617char dlopen (); 11618int 11619main () 11620{ 11621return dlopen (); 11622 ; 11623 return 0; 11624} 11625_ACEOF 11626if ac_fn_c_try_link "$LINENO"; then : 11627 ac_cv_lib_svld_dlopen=yes 11628else 11629 ac_cv_lib_svld_dlopen=no 11630fi 11631rm -f core conftest.err conftest.$ac_objext \ 11632 conftest$ac_exeext conftest.$ac_ext 11633LIBS=$ac_check_lib_save_LIBS 11634fi 11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11636$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11637if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11638 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11639else 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11641$as_echo_n "checking for dld_link in -ldld... " >&6; } 11642if ${ac_cv_lib_dld_dld_link+:} false; then : 11643 $as_echo_n "(cached) " >&6 11644else 11645 ac_check_lib_save_LIBS=$LIBS 11646LIBS="-ldld $LIBS" 11647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650/* Override any GCC internal prototype to avoid an error. 11651 Use char because int might match the return type of a GCC 11652 builtin and then its argument prototype would still apply. */ 11653#ifdef __cplusplus 11654extern "C" 11655#endif 11656char dld_link (); 11657int 11658main () 11659{ 11660return dld_link (); 11661 ; 11662 return 0; 11663} 11664_ACEOF 11665if ac_fn_c_try_link "$LINENO"; then : 11666 ac_cv_lib_dld_dld_link=yes 11667else 11668 ac_cv_lib_dld_dld_link=no 11669fi 11670rm -f core conftest.err conftest.$ac_objext \ 11671 conftest$ac_exeext conftest.$ac_ext 11672LIBS=$ac_check_lib_save_LIBS 11673fi 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11675$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11676if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11677 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11678fi 11679 11680 11681fi 11682 11683 11684fi 11685 11686 11687fi 11688 11689 11690fi 11691 11692 11693fi 11694 11695 ;; 11696 esac 11697 11698 if test no = "$lt_cv_dlopen"; then 11699 enable_dlopen=no 11700 else 11701 enable_dlopen=yes 11702 fi 11703 11704 case $lt_cv_dlopen in 11705 dlopen) 11706 save_CPPFLAGS=$CPPFLAGS 11707 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11708 11709 save_LDFLAGS=$LDFLAGS 11710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11711 11712 save_LIBS=$LIBS 11713 LIBS="$lt_cv_dlopen_libs $LIBS" 11714 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11716$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11717if ${lt_cv_dlopen_self+:} false; then : 11718 $as_echo_n "(cached) " >&6 11719else 11720 if test yes = "$cross_compiling"; then : 11721 lt_cv_dlopen_self=cross 11722else 11723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11724 lt_status=$lt_dlunknown 11725 cat > conftest.$ac_ext <<_LT_EOF 11726#line $LINENO "configure" 11727#include "confdefs.h" 11728 11729#if HAVE_DLFCN_H 11730#include <dlfcn.h> 11731#endif 11732 11733#include <stdio.h> 11734 11735#ifdef RTLD_GLOBAL 11736# define LT_DLGLOBAL RTLD_GLOBAL 11737#else 11738# ifdef DL_GLOBAL 11739# define LT_DLGLOBAL DL_GLOBAL 11740# else 11741# define LT_DLGLOBAL 0 11742# endif 11743#endif 11744 11745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11746 find out it does not work in some platform. */ 11747#ifndef LT_DLLAZY_OR_NOW 11748# ifdef RTLD_LAZY 11749# define LT_DLLAZY_OR_NOW RTLD_LAZY 11750# else 11751# ifdef DL_LAZY 11752# define LT_DLLAZY_OR_NOW DL_LAZY 11753# else 11754# ifdef RTLD_NOW 11755# define LT_DLLAZY_OR_NOW RTLD_NOW 11756# else 11757# ifdef DL_NOW 11758# define LT_DLLAZY_OR_NOW DL_NOW 11759# else 11760# define LT_DLLAZY_OR_NOW 0 11761# endif 11762# endif 11763# endif 11764# endif 11765#endif 11766 11767/* When -fvisibility=hidden is used, assume the code has been annotated 11768 correspondingly for the symbols needed. */ 11769#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11770int fnord () __attribute__((visibility("default"))); 11771#endif 11772 11773int fnord () { return 42; } 11774int main () 11775{ 11776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11777 int status = $lt_dlunknown; 11778 11779 if (self) 11780 { 11781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11782 else 11783 { 11784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11785 else puts (dlerror ()); 11786 } 11787 /* dlclose (self); */ 11788 } 11789 else 11790 puts (dlerror ()); 11791 11792 return status; 11793} 11794_LT_EOF 11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11796 (eval $ac_link) 2>&5 11797 ac_status=$? 11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11799 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11800 (./conftest; exit; ) >&5 2>/dev/null 11801 lt_status=$? 11802 case x$lt_status in 11803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11806 esac 11807 else : 11808 # compilation failed 11809 lt_cv_dlopen_self=no 11810 fi 11811fi 11812rm -fr conftest* 11813 11814 11815fi 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11817$as_echo "$lt_cv_dlopen_self" >&6; } 11818 11819 if test yes = "$lt_cv_dlopen_self"; then 11820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11822$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11823if ${lt_cv_dlopen_self_static+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 if test yes = "$cross_compiling"; then : 11827 lt_cv_dlopen_self_static=cross 11828else 11829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11830 lt_status=$lt_dlunknown 11831 cat > conftest.$ac_ext <<_LT_EOF 11832#line $LINENO "configure" 11833#include "confdefs.h" 11834 11835#if HAVE_DLFCN_H 11836#include <dlfcn.h> 11837#endif 11838 11839#include <stdio.h> 11840 11841#ifdef RTLD_GLOBAL 11842# define LT_DLGLOBAL RTLD_GLOBAL 11843#else 11844# ifdef DL_GLOBAL 11845# define LT_DLGLOBAL DL_GLOBAL 11846# else 11847# define LT_DLGLOBAL 0 11848# endif 11849#endif 11850 11851/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11852 find out it does not work in some platform. */ 11853#ifndef LT_DLLAZY_OR_NOW 11854# ifdef RTLD_LAZY 11855# define LT_DLLAZY_OR_NOW RTLD_LAZY 11856# else 11857# ifdef DL_LAZY 11858# define LT_DLLAZY_OR_NOW DL_LAZY 11859# else 11860# ifdef RTLD_NOW 11861# define LT_DLLAZY_OR_NOW RTLD_NOW 11862# else 11863# ifdef DL_NOW 11864# define LT_DLLAZY_OR_NOW DL_NOW 11865# else 11866# define LT_DLLAZY_OR_NOW 0 11867# endif 11868# endif 11869# endif 11870# endif 11871#endif 11872 11873/* When -fvisibility=hidden is used, assume the code has been annotated 11874 correspondingly for the symbols needed. */ 11875#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11876int fnord () __attribute__((visibility("default"))); 11877#endif 11878 11879int fnord () { return 42; } 11880int main () 11881{ 11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11883 int status = $lt_dlunknown; 11884 11885 if (self) 11886 { 11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11888 else 11889 { 11890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11891 else puts (dlerror ()); 11892 } 11893 /* dlclose (self); */ 11894 } 11895 else 11896 puts (dlerror ()); 11897 11898 return status; 11899} 11900_LT_EOF 11901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11902 (eval $ac_link) 2>&5 11903 ac_status=$? 11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11905 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11906 (./conftest; exit; ) >&5 2>/dev/null 11907 lt_status=$? 11908 case x$lt_status in 11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11912 esac 11913 else : 11914 # compilation failed 11915 lt_cv_dlopen_self_static=no 11916 fi 11917fi 11918rm -fr conftest* 11919 11920 11921fi 11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11923$as_echo "$lt_cv_dlopen_self_static" >&6; } 11924 fi 11925 11926 CPPFLAGS=$save_CPPFLAGS 11927 LDFLAGS=$save_LDFLAGS 11928 LIBS=$save_LIBS 11929 ;; 11930 esac 11931 11932 case $lt_cv_dlopen_self in 11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11934 *) enable_dlopen_self=unknown ;; 11935 esac 11936 11937 case $lt_cv_dlopen_self_static in 11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11939 *) enable_dlopen_self_static=unknown ;; 11940 esac 11941fi 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959striplib= 11960old_striplib= 11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11962$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11963if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11965 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11967$as_echo "yes" >&6; } 11968else 11969# FIXME - insert some real tests, host_os isn't really good enough 11970 case $host_os in 11971 darwin*) 11972 if test -n "$STRIP"; then 11973 striplib="$STRIP -x" 11974 old_striplib="$STRIP -S" 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11976$as_echo "yes" >&6; } 11977 else 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11979$as_echo "no" >&6; } 11980 fi 11981 ;; 11982 *) 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11984$as_echo "no" >&6; } 11985 ;; 11986 esac 11987fi 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 # Report what library types will actually be built 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12002$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12004$as_echo "$can_build_shared" >&6; } 12005 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12007$as_echo_n "checking whether to build shared libraries... " >&6; } 12008 test no = "$can_build_shared" && enable_shared=no 12009 12010 # On AIX, shared libraries and static libraries use the same namespace, and 12011 # are all built from PIC. 12012 case $host_os in 12013 aix3*) 12014 test yes = "$enable_shared" && enable_static=no 12015 if test -n "$RANLIB"; then 12016 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12017 postinstall_cmds='$RANLIB $lib' 12018 fi 12019 ;; 12020 12021 aix[4-9]*) 12022 if test ia64 != "$host_cpu"; then 12023 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12024 yes,aix,yes) ;; # shared object as lib.so file only 12025 yes,svr4,*) ;; # shared object as lib.so archive member only 12026 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12027 esac 12028 fi 12029 ;; 12030 esac 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12032$as_echo "$enable_shared" >&6; } 12033 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12035$as_echo_n "checking whether to build static libraries... " >&6; } 12036 # Make sure either enable_shared or enable_static is yes. 12037 test yes = "$enable_shared" || enable_static=yes 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12039$as_echo "$enable_static" >&6; } 12040 12041 12042 12043 12044fi 12045ac_ext=c 12046ac_cpp='$CPP $CPPFLAGS' 12047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12049ac_compiler_gnu=$ac_cv_c_compiler_gnu 12050 12051CC=$lt_save_CC 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 ac_config_commands="$ac_config_commands libtool" 12068 12069 12070 12071 12072# Only expand once: 12073 12074 12075 12076 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12078$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12079 # Check whether --enable-maintainer-mode was given. 12080if test "${enable_maintainer_mode+set}" = set; then : 12081 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12082else 12083 USE_MAINTAINER_MODE=no 12084fi 12085 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12087$as_echo "$USE_MAINTAINER_MODE" >&6; } 12088 if test $USE_MAINTAINER_MODE = yes; then 12089 MAINTAINER_MODE_TRUE= 12090 MAINTAINER_MODE_FALSE='#' 12091else 12092 MAINTAINER_MODE_TRUE='#' 12093 MAINTAINER_MODE_FALSE= 12094fi 12095 12096 MAINT=$MAINTAINER_MODE_TRUE 12097 12098 12099ac_config_headers="$ac_config_headers src/iperf_config.h" 12100 12101 12102 12103 12104# Checks for tools: c compiler, ranlib (used for creating static libraries), 12105# symlinks and libtool 12106ac_ext=c 12107ac_cpp='$CPP $CPPFLAGS' 12108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12110ac_compiler_gnu=$ac_cv_c_compiler_gnu 12111if test -n "$ac_tool_prefix"; then 12112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12113set dummy ${ac_tool_prefix}gcc; ac_word=$2 12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12115$as_echo_n "checking for $ac_word... " >&6; } 12116if ${ac_cv_prog_CC+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118else 12119 if test -n "$CC"; then 12120 ac_cv_prog_CC="$CC" # Let the user override the test. 12121else 12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12123for as_dir in $PATH 12124do 12125 IFS=$as_save_IFS 12126 test -z "$as_dir" && as_dir=. 12127 for ac_exec_ext in '' $ac_executable_extensions; do 12128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12129 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12131 break 2 12132 fi 12133done 12134 done 12135IFS=$as_save_IFS 12136 12137fi 12138fi 12139CC=$ac_cv_prog_CC 12140if test -n "$CC"; then 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12142$as_echo "$CC" >&6; } 12143else 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12145$as_echo "no" >&6; } 12146fi 12147 12148 12149fi 12150if test -z "$ac_cv_prog_CC"; then 12151 ac_ct_CC=$CC 12152 # Extract the first word of "gcc", so it can be a program name with args. 12153set dummy gcc; ac_word=$2 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12155$as_echo_n "checking for $ac_word... " >&6; } 12156if ${ac_cv_prog_ac_ct_CC+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 if test -n "$ac_ct_CC"; then 12160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12161else 12162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12163for as_dir in $PATH 12164do 12165 IFS=$as_save_IFS 12166 test -z "$as_dir" && as_dir=. 12167 for ac_exec_ext in '' $ac_executable_extensions; do 12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12169 ac_cv_prog_ac_ct_CC="gcc" 12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12171 break 2 12172 fi 12173done 12174 done 12175IFS=$as_save_IFS 12176 12177fi 12178fi 12179ac_ct_CC=$ac_cv_prog_ac_ct_CC 12180if test -n "$ac_ct_CC"; then 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12182$as_echo "$ac_ct_CC" >&6; } 12183else 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12185$as_echo "no" >&6; } 12186fi 12187 12188 if test "x$ac_ct_CC" = x; then 12189 CC="" 12190 else 12191 case $cross_compiling:$ac_tool_warned in 12192yes:) 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12195ac_tool_warned=yes ;; 12196esac 12197 CC=$ac_ct_CC 12198 fi 12199else 12200 CC="$ac_cv_prog_CC" 12201fi 12202 12203if test -z "$CC"; then 12204 if test -n "$ac_tool_prefix"; then 12205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12206set dummy ${ac_tool_prefix}cc; 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}cc" 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 12242 fi 12243fi 12244if test -z "$CC"; then 12245 # Extract the first word of "cc", so it can be a program name with args. 12246set dummy cc; 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_CC+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 if test -n "$CC"; then 12253 ac_cv_prog_CC="$CC" # Let the user override the test. 12254else 12255 ac_prog_rejected=no 12256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12257for as_dir in $PATH 12258do 12259 IFS=$as_save_IFS 12260 test -z "$as_dir" && as_dir=. 12261 for ac_exec_ext in '' $ac_executable_extensions; do 12262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12264 ac_prog_rejected=yes 12265 continue 12266 fi 12267 ac_cv_prog_CC="cc" 12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12269 break 2 12270 fi 12271done 12272 done 12273IFS=$as_save_IFS 12274 12275if test $ac_prog_rejected = yes; then 12276 # We found a bogon in the path, so make sure we never use it. 12277 set dummy $ac_cv_prog_CC 12278 shift 12279 if test $# != 0; then 12280 # We chose a different compiler from the bogus one. 12281 # However, it has the same basename, so the bogon will be chosen 12282 # first if we set CC to just the basename; use the full file name. 12283 shift 12284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12285 fi 12286fi 12287fi 12288fi 12289CC=$ac_cv_prog_CC 12290if test -n "$CC"; then 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12292$as_echo "$CC" >&6; } 12293else 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12295$as_echo "no" >&6; } 12296fi 12297 12298 12299fi 12300if test -z "$CC"; then 12301 if test -n "$ac_tool_prefix"; then 12302 for ac_prog in cl.exe 12303 do 12304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12305set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12307$as_echo_n "checking for $ac_word... " >&6; } 12308if ${ac_cv_prog_CC+:} false; then : 12309 $as_echo_n "(cached) " >&6 12310else 12311 if test -n "$CC"; then 12312 ac_cv_prog_CC="$CC" # Let the user override the test. 12313else 12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12315for as_dir in $PATH 12316do 12317 IFS=$as_save_IFS 12318 test -z "$as_dir" && as_dir=. 12319 for ac_exec_ext in '' $ac_executable_extensions; do 12320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12321 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12323 break 2 12324 fi 12325done 12326 done 12327IFS=$as_save_IFS 12328 12329fi 12330fi 12331CC=$ac_cv_prog_CC 12332if test -n "$CC"; then 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12334$as_echo "$CC" >&6; } 12335else 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12337$as_echo "no" >&6; } 12338fi 12339 12340 12341 test -n "$CC" && break 12342 done 12343fi 12344if test -z "$CC"; then 12345 ac_ct_CC=$CC 12346 for ac_prog in cl.exe 12347do 12348 # Extract the first word of "$ac_prog", so it can be a program name with args. 12349set dummy $ac_prog; ac_word=$2 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12351$as_echo_n "checking for $ac_word... " >&6; } 12352if ${ac_cv_prog_ac_ct_CC+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 if test -n "$ac_ct_CC"; then 12356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12357else 12358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12359for as_dir in $PATH 12360do 12361 IFS=$as_save_IFS 12362 test -z "$as_dir" && as_dir=. 12363 for ac_exec_ext in '' $ac_executable_extensions; do 12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12365 ac_cv_prog_ac_ct_CC="$ac_prog" 12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12367 break 2 12368 fi 12369done 12370 done 12371IFS=$as_save_IFS 12372 12373fi 12374fi 12375ac_ct_CC=$ac_cv_prog_ac_ct_CC 12376if test -n "$ac_ct_CC"; then 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12378$as_echo "$ac_ct_CC" >&6; } 12379else 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12381$as_echo "no" >&6; } 12382fi 12383 12384 12385 test -n "$ac_ct_CC" && break 12386done 12387 12388 if test "x$ac_ct_CC" = x; then 12389 CC="" 12390 else 12391 case $cross_compiling:$ac_tool_warned in 12392yes:) 12393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12395ac_tool_warned=yes ;; 12396esac 12397 CC=$ac_ct_CC 12398 fi 12399fi 12400 12401fi 12402 12403 12404test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12406as_fn_error $? "no acceptable C compiler found in \$PATH 12407See \`config.log' for more details" "$LINENO" 5; } 12408 12409# Provide some information about the compiler. 12410$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12411set X $ac_compile 12412ac_compiler=$2 12413for ac_option in --version -v -V -qversion; do 12414 { { ac_try="$ac_compiler $ac_option >&5" 12415case "(($ac_try" in 12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12417 *) ac_try_echo=$ac_try;; 12418esac 12419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12420$as_echo "$ac_try_echo"; } >&5 12421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12422 ac_status=$? 12423 if test -s conftest.err; then 12424 sed '10a\ 12425... rest of stderr output deleted ... 12426 10q' conftest.err >conftest.er1 12427 cat conftest.er1 >&5 12428 fi 12429 rm -f conftest.er1 conftest.err 12430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12431 test $ac_status = 0; } 12432done 12433 12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12435$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12436if ${ac_cv_c_compiler_gnu+:} false; then : 12437 $as_echo_n "(cached) " >&6 12438else 12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12440/* end confdefs.h. */ 12441 12442int 12443main () 12444{ 12445#ifndef __GNUC__ 12446 choke me 12447#endif 12448 12449 ; 12450 return 0; 12451} 12452_ACEOF 12453if ac_fn_c_try_compile "$LINENO"; then : 12454 ac_compiler_gnu=yes 12455else 12456 ac_compiler_gnu=no 12457fi 12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12459ac_cv_c_compiler_gnu=$ac_compiler_gnu 12460 12461fi 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12463$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12464if test $ac_compiler_gnu = yes; then 12465 GCC=yes 12466else 12467 GCC= 12468fi 12469ac_test_CFLAGS=${CFLAGS+set} 12470ac_save_CFLAGS=$CFLAGS 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12472$as_echo_n "checking whether $CC accepts -g... " >&6; } 12473if ${ac_cv_prog_cc_g+:} false; then : 12474 $as_echo_n "(cached) " >&6 12475else 12476 ac_save_c_werror_flag=$ac_c_werror_flag 12477 ac_c_werror_flag=yes 12478 ac_cv_prog_cc_g=no 12479 CFLAGS="-g" 12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12481/* end confdefs.h. */ 12482 12483int 12484main () 12485{ 12486 12487 ; 12488 return 0; 12489} 12490_ACEOF 12491if ac_fn_c_try_compile "$LINENO"; then : 12492 ac_cv_prog_cc_g=yes 12493else 12494 CFLAGS="" 12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12496/* end confdefs.h. */ 12497 12498int 12499main () 12500{ 12501 12502 ; 12503 return 0; 12504} 12505_ACEOF 12506if ac_fn_c_try_compile "$LINENO"; then : 12507 12508else 12509 ac_c_werror_flag=$ac_save_c_werror_flag 12510 CFLAGS="-g" 12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513 12514int 12515main () 12516{ 12517 12518 ; 12519 return 0; 12520} 12521_ACEOF 12522if ac_fn_c_try_compile "$LINENO"; then : 12523 ac_cv_prog_cc_g=yes 12524fi 12525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12526fi 12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12528fi 12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12530 ac_c_werror_flag=$ac_save_c_werror_flag 12531fi 12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12533$as_echo "$ac_cv_prog_cc_g" >&6; } 12534if test "$ac_test_CFLAGS" = set; then 12535 CFLAGS=$ac_save_CFLAGS 12536elif test $ac_cv_prog_cc_g = yes; then 12537 if test "$GCC" = yes; then 12538 CFLAGS="-g -O2" 12539 else 12540 CFLAGS="-g" 12541 fi 12542else 12543 if test "$GCC" = yes; then 12544 CFLAGS="-O2" 12545 else 12546 CFLAGS= 12547 fi 12548fi 12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12550$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12551if ${ac_cv_prog_cc_c89+:} false; then : 12552 $as_echo_n "(cached) " >&6 12553else 12554 ac_cv_prog_cc_c89=no 12555ac_save_CC=$CC 12556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12557/* end confdefs.h. */ 12558#include <stdarg.h> 12559#include <stdio.h> 12560struct stat; 12561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12562struct buf { int x; }; 12563FILE * (*rcsopen) (struct buf *, struct stat *, int); 12564static char *e (p, i) 12565 char **p; 12566 int i; 12567{ 12568 return p[i]; 12569} 12570static char *f (char * (*g) (char **, int), char **p, ...) 12571{ 12572 char *s; 12573 va_list v; 12574 va_start (v,p); 12575 s = g (p, va_arg (v,int)); 12576 va_end (v); 12577 return s; 12578} 12579 12580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12581 function prototypes and stuff, but not '\xHH' hex character constants. 12582 These don't provoke an error unfortunately, instead are silently treated 12583 as 'x'. The following induces an error, until -std is added to get 12584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12585 array size at least. It's necessary to write '\x00'==0 to get something 12586 that's true only with -std. */ 12587int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12588 12589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12590 inside strings and character constants. */ 12591#define FOO(x) 'x' 12592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12593 12594int test (int i, double x); 12595struct s1 {int (*f) (int a);}; 12596struct s2 {int (*f) (double a);}; 12597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12598int argc; 12599char **argv; 12600int 12601main () 12602{ 12603return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12604 ; 12605 return 0; 12606} 12607_ACEOF 12608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12610do 12611 CC="$ac_save_CC $ac_arg" 12612 if ac_fn_c_try_compile "$LINENO"; then : 12613 ac_cv_prog_cc_c89=$ac_arg 12614fi 12615rm -f core conftest.err conftest.$ac_objext 12616 test "x$ac_cv_prog_cc_c89" != "xno" && break 12617done 12618rm -f conftest.$ac_ext 12619CC=$ac_save_CC 12620 12621fi 12622# AC_CACHE_VAL 12623case "x$ac_cv_prog_cc_c89" in 12624 x) 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12626$as_echo "none needed" >&6; } ;; 12627 xno) 12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12629$as_echo "unsupported" >&6; } ;; 12630 *) 12631 CC="$CC $ac_cv_prog_cc_c89" 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12634esac 12635if test "x$ac_cv_prog_cc_c89" != xno; then : 12636 12637fi 12638 12639ac_ext=c 12640ac_cpp='$CPP $CPPFLAGS' 12641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12643ac_compiler_gnu=$ac_cv_c_compiler_gnu 12644 12645ac_ext=c 12646ac_cpp='$CPP $CPPFLAGS' 12647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12649ac_compiler_gnu=$ac_cv_c_compiler_gnu 12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12651$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12652if ${am_cv_prog_cc_c_o+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12656/* end confdefs.h. */ 12657 12658int 12659main () 12660{ 12661 12662 ; 12663 return 0; 12664} 12665_ACEOF 12666 # Make sure it works both with $CC and with simple cc. 12667 # Following AC_PROG_CC_C_O, we do the test twice because some 12668 # compilers refuse to overwrite an existing .o file with -o, 12669 # though they will create one. 12670 am_cv_prog_cc_c_o=yes 12671 for am_i in 1 2; do 12672 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12673 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12674 ac_status=$? 12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12676 (exit $ac_status); } \ 12677 && test -f conftest2.$ac_objext; then 12678 : OK 12679 else 12680 am_cv_prog_cc_c_o=no 12681 break 12682 fi 12683 done 12684 rm -f core conftest* 12685 unset am_i 12686fi 12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12688$as_echo "$am_cv_prog_cc_c_o" >&6; } 12689if test "$am_cv_prog_cc_c_o" != yes; then 12690 # Losing compiler, so override with the script. 12691 # FIXME: It is wrong to rewrite CC. 12692 # But if we don't then we get into trouble of one sort or another. 12693 # A longer-term fix would be to have automake use am__CC in this case, 12694 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12695 CC="$am_aux_dir/compile $CC" 12696fi 12697ac_ext=c 12698ac_cpp='$CPP $CPPFLAGS' 12699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12701ac_compiler_gnu=$ac_cv_c_compiler_gnu 12702 12703 12704depcc="$CC" am_compiler_list= 12705 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12707$as_echo_n "checking dependency style of $depcc... " >&6; } 12708if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12709 $as_echo_n "(cached) " >&6 12710else 12711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12712 # We make a subdir and do the tests there. Otherwise we can end up 12713 # making bogus files that we don't know about and never remove. For 12714 # instance it was reported that on HP-UX the gcc test will end up 12715 # making a dummy file named 'D' -- because '-MD' means "put the output 12716 # in D". 12717 rm -rf conftest.dir 12718 mkdir conftest.dir 12719 # Copy depcomp to subdir because otherwise we won't find it if we're 12720 # using a relative directory. 12721 cp "$am_depcomp" conftest.dir 12722 cd conftest.dir 12723 # We will build objects and dependencies in a subdirectory because 12724 # it helps to detect inapplicable dependency modes. For instance 12725 # both Tru64's cc and ICC support -MD to output dependencies as a 12726 # side effect of compilation, but ICC will put the dependencies in 12727 # the current directory while Tru64 will put them in the object 12728 # directory. 12729 mkdir sub 12730 12731 am_cv_CC_dependencies_compiler_type=none 12732 if test "$am_compiler_list" = ""; then 12733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12734 fi 12735 am__universal=false 12736 case " $depcc " in #( 12737 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12738 esac 12739 12740 for depmode in $am_compiler_list; do 12741 # Setup a source with many dependencies, because some compilers 12742 # like to wrap large dependency lists on column 80 (with \), and 12743 # we should not choose a depcomp mode which is confused by this. 12744 # 12745 # We need to recreate these files for each test, as the compiler may 12746 # overwrite some of them when testing with obscure command lines. 12747 # This happens at least with the AIX C compiler. 12748 : > sub/conftest.c 12749 for i in 1 2 3 4 5 6; do 12750 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12751 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12752 # Solaris 10 /bin/sh. 12753 echo '/* dummy */' > sub/conftst$i.h 12754 done 12755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12756 12757 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12758 # mode. It turns out that the SunPro C++ compiler does not properly 12759 # handle '-M -o', and we need to detect this. Also, some Intel 12760 # versions had trouble with output in subdirs. 12761 am__obj=sub/conftest.${OBJEXT-o} 12762 am__minus_obj="-o $am__obj" 12763 case $depmode in 12764 gcc) 12765 # This depmode causes a compiler race in universal mode. 12766 test "$am__universal" = false || continue 12767 ;; 12768 nosideeffect) 12769 # After this tag, mechanisms are not by side-effect, so they'll 12770 # only be used when explicitly requested. 12771 if test "x$enable_dependency_tracking" = xyes; then 12772 continue 12773 else 12774 break 12775 fi 12776 ;; 12777 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12778 # This compiler won't grok '-c -o', but also, the minuso test has 12779 # not run yet. These depmodes are late enough in the game, and 12780 # so weak that their functioning should not be impacted. 12781 am__obj=conftest.${OBJEXT-o} 12782 am__minus_obj= 12783 ;; 12784 none) break ;; 12785 esac 12786 if depmode=$depmode \ 12787 source=sub/conftest.c object=$am__obj \ 12788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12789 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12790 >/dev/null 2>conftest.err && 12791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12793 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12795 # icc doesn't choke on unknown options, it will just issue warnings 12796 # or remarks (even with -Werror). So we grep stderr for any message 12797 # that says an option was ignored or not supported. 12798 # When given -MP, icc 7.0 and 7.1 complain thusly: 12799 # icc: Command line warning: ignoring option '-M'; no argument required 12800 # The diagnosis changed in icc 8.0: 12801 # icc: Command line remark: option '-MP' not supported 12802 if (grep 'ignoring option' conftest.err || 12803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12804 am_cv_CC_dependencies_compiler_type=$depmode 12805 break 12806 fi 12807 fi 12808 done 12809 12810 cd .. 12811 rm -rf conftest.dir 12812else 12813 am_cv_CC_dependencies_compiler_type=none 12814fi 12815 12816fi 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12818$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12819CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12820 12821 if 12822 test "x$enable_dependency_tracking" != xno \ 12823 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12824 am__fastdepCC_TRUE= 12825 am__fastdepCC_FALSE='#' 12826else 12827 am__fastdepCC_TRUE='#' 12828 am__fastdepCC_FALSE= 12829fi 12830 12831 12832if test -n "$ac_tool_prefix"; then 12833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12834set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12836$as_echo_n "checking for $ac_word... " >&6; } 12837if ${ac_cv_prog_RANLIB+:} false; then : 12838 $as_echo_n "(cached) " >&6 12839else 12840 if test -n "$RANLIB"; then 12841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12842else 12843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12844for as_dir in $PATH 12845do 12846 IFS=$as_save_IFS 12847 test -z "$as_dir" && as_dir=. 12848 for ac_exec_ext in '' $ac_executable_extensions; do 12849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12852 break 2 12853 fi 12854done 12855 done 12856IFS=$as_save_IFS 12857 12858fi 12859fi 12860RANLIB=$ac_cv_prog_RANLIB 12861if test -n "$RANLIB"; then 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12863$as_echo "$RANLIB" >&6; } 12864else 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12866$as_echo "no" >&6; } 12867fi 12868 12869 12870fi 12871if test -z "$ac_cv_prog_RANLIB"; then 12872 ac_ct_RANLIB=$RANLIB 12873 # Extract the first word of "ranlib", so it can be a program name with args. 12874set dummy ranlib; ac_word=$2 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12876$as_echo_n "checking for $ac_word... " >&6; } 12877if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12878 $as_echo_n "(cached) " >&6 12879else 12880 if test -n "$ac_ct_RANLIB"; then 12881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12882else 12883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12884for as_dir in $PATH 12885do 12886 IFS=$as_save_IFS 12887 test -z "$as_dir" && as_dir=. 12888 for ac_exec_ext in '' $ac_executable_extensions; do 12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12890 ac_cv_prog_ac_ct_RANLIB="ranlib" 12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12892 break 2 12893 fi 12894done 12895 done 12896IFS=$as_save_IFS 12897 12898fi 12899fi 12900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12901if test -n "$ac_ct_RANLIB"; then 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12903$as_echo "$ac_ct_RANLIB" >&6; } 12904else 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12906$as_echo "no" >&6; } 12907fi 12908 12909 if test "x$ac_ct_RANLIB" = x; then 12910 RANLIB=":" 12911 else 12912 case $cross_compiling:$ac_tool_warned in 12913yes:) 12914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12916ac_tool_warned=yes ;; 12917esac 12918 RANLIB=$ac_ct_RANLIB 12919 fi 12920else 12921 RANLIB="$ac_cv_prog_RANLIB" 12922fi 12923 12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12925$as_echo_n "checking whether ln -s works... " >&6; } 12926LN_S=$as_ln_s 12927if test "$LN_S" = "ln -s"; then 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12929$as_echo "yes" >&6; } 12930else 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12932$as_echo "no, using $LN_S" >&6; } 12933fi 12934 12935 12936 12937# Add -Wall if we are using GCC. 12938if test "x$GCC" = "xyes"; then 12939 CFLAGS="$CFLAGS -Wall" 12940fi 12941 12942# Check if enable profiling 12943# Check whether --enable-profiling was given. 12944if test "${enable_profiling+set}" = set; then : 12945 enableval=$enable_profiling; 12946fi 12947 12948 if test x$enable_profiling = xyes; then 12949 ENABLE_PROFILING_TRUE= 12950 ENABLE_PROFILING_FALSE='#' 12951else 12952 ENABLE_PROFILING_TRUE='#' 12953 ENABLE_PROFILING_FALSE= 12954fi 12955 12956 12957# Checks for header files. 12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12959$as_echo_n "checking for ANSI C header files... " >&6; } 12960if ${ac_cv_header_stdc+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965#include <stdlib.h> 12966#include <stdarg.h> 12967#include <string.h> 12968#include <float.h> 12969 12970int 12971main () 12972{ 12973 12974 ; 12975 return 0; 12976} 12977_ACEOF 12978if ac_fn_c_try_compile "$LINENO"; then : 12979 ac_cv_header_stdc=yes 12980else 12981 ac_cv_header_stdc=no 12982fi 12983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12984 12985if test $ac_cv_header_stdc = yes; then 12986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12988/* end confdefs.h. */ 12989#include <string.h> 12990 12991_ACEOF 12992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12993 $EGREP "memchr" >/dev/null 2>&1; then : 12994 12995else 12996 ac_cv_header_stdc=no 12997fi 12998rm -f conftest* 12999 13000fi 13001 13002if test $ac_cv_header_stdc = yes; then 13003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005/* end confdefs.h. */ 13006#include <stdlib.h> 13007 13008_ACEOF 13009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13010 $EGREP "free" >/dev/null 2>&1; then : 13011 13012else 13013 ac_cv_header_stdc=no 13014fi 13015rm -f conftest* 13016 13017fi 13018 13019if test $ac_cv_header_stdc = yes; then 13020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13021 if test "$cross_compiling" = yes; then : 13022 : 13023else 13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13025/* end confdefs.h. */ 13026#include <ctype.h> 13027#include <stdlib.h> 13028#if ((' ' & 0x0FF) == 0x020) 13029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13031#else 13032# define ISLOWER(c) \ 13033 (('a' <= (c) && (c) <= 'i') \ 13034 || ('j' <= (c) && (c) <= 'r') \ 13035 || ('s' <= (c) && (c) <= 'z')) 13036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13037#endif 13038 13039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13040int 13041main () 13042{ 13043 int i; 13044 for (i = 0; i < 256; i++) 13045 if (XOR (islower (i), ISLOWER (i)) 13046 || toupper (i) != TOUPPER (i)) 13047 return 2; 13048 return 0; 13049} 13050_ACEOF 13051if ac_fn_c_try_run "$LINENO"; then : 13052 13053else 13054 ac_cv_header_stdc=no 13055fi 13056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13057 conftest.$ac_objext conftest.beam conftest.$ac_ext 13058fi 13059 13060fi 13061fi 13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13063$as_echo "$ac_cv_header_stdc" >&6; } 13064if test $ac_cv_header_stdc = yes; then 13065 13066$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13067 13068fi 13069 13070 13071# Check for systems which need -lsocket and -lnsl 13072#AX_LIB_SOCKET_NSL 13073 13074# Check for the math library (needed by cjson on some platforms) 13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 13076$as_echo_n "checking for library containing floor... " >&6; } 13077if ${ac_cv_search_floor+:} false; then : 13078 $as_echo_n "(cached) " >&6 13079else 13080 ac_func_search_save_LIBS=$LIBS 13081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083 13084/* Override any GCC internal prototype to avoid an error. 13085 Use char because int might match the return type of a GCC 13086 builtin and then its argument prototype would still apply. */ 13087#ifdef __cplusplus 13088extern "C" 13089#endif 13090char floor (); 13091int 13092main () 13093{ 13094return floor (); 13095 ; 13096 return 0; 13097} 13098_ACEOF 13099for ac_lib in '' m; do 13100 if test -z "$ac_lib"; then 13101 ac_res="none required" 13102 else 13103 ac_res=-l$ac_lib 13104 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13105 fi 13106 if ac_fn_c_try_link "$LINENO"; then : 13107 ac_cv_search_floor=$ac_res 13108fi 13109rm -f core conftest.err conftest.$ac_objext \ 13110 conftest$ac_exeext 13111 if ${ac_cv_search_floor+:} false; then : 13112 break 13113fi 13114done 13115if ${ac_cv_search_floor+:} false; then : 13116 13117else 13118 ac_cv_search_floor=no 13119fi 13120rm conftest.$ac_ext 13121LIBS=$ac_func_search_save_LIBS 13122fi 13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 13124$as_echo "$ac_cv_search_floor" >&6; } 13125ac_res=$ac_cv_search_floor 13126if test "$ac_res" != no; then : 13127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13128 13129else 13130 13131echo "floor()" 13132exit 1 13133 13134fi 13135 13136 13137# On illumos we need -lsocket 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13139$as_echo_n "checking for library containing socket... " >&6; } 13140if ${ac_cv_search_socket+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 ac_func_search_save_LIBS=$LIBS 13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146 13147/* Override any GCC internal prototype to avoid an error. 13148 Use char because int might match the return type of a GCC 13149 builtin and then its argument prototype would still apply. */ 13150#ifdef __cplusplus 13151extern "C" 13152#endif 13153char socket (); 13154int 13155main () 13156{ 13157return socket (); 13158 ; 13159 return 0; 13160} 13161_ACEOF 13162for ac_lib in '' socket; do 13163 if test -z "$ac_lib"; then 13164 ac_res="none required" 13165 else 13166 ac_res=-l$ac_lib 13167 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13168 fi 13169 if ac_fn_c_try_link "$LINENO"; then : 13170 ac_cv_search_socket=$ac_res 13171fi 13172rm -f core conftest.err conftest.$ac_objext \ 13173 conftest$ac_exeext 13174 if ${ac_cv_search_socket+:} false; then : 13175 break 13176fi 13177done 13178if ${ac_cv_search_socket+:} false; then : 13179 13180else 13181 ac_cv_search_socket=no 13182fi 13183rm conftest.$ac_ext 13184LIBS=$ac_func_search_save_LIBS 13185fi 13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13187$as_echo "$ac_cv_search_socket" >&6; } 13188ac_res=$ac_cv_search_socket 13189if test "$ac_res" != no; then : 13190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13191 13192else 13193 13194echo "socket()" 13195exit 1 13196 13197fi 13198 13199 13200# On illumos inet_ntop in in -lnsl 13201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 13202$as_echo_n "checking for library containing inet_ntop... " >&6; } 13203if ${ac_cv_search_inet_ntop+:} false; then : 13204 $as_echo_n "(cached) " >&6 13205else 13206 ac_func_search_save_LIBS=$LIBS 13207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13208/* end confdefs.h. */ 13209 13210/* Override any GCC internal prototype to avoid an error. 13211 Use char because int might match the return type of a GCC 13212 builtin and then its argument prototype would still apply. */ 13213#ifdef __cplusplus 13214extern "C" 13215#endif 13216char inet_ntop (); 13217int 13218main () 13219{ 13220return inet_ntop (); 13221 ; 13222 return 0; 13223} 13224_ACEOF 13225for ac_lib in '' nsl; do 13226 if test -z "$ac_lib"; then 13227 ac_res="none required" 13228 else 13229 ac_res=-l$ac_lib 13230 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13231 fi 13232 if ac_fn_c_try_link "$LINENO"; then : 13233 ac_cv_search_inet_ntop=$ac_res 13234fi 13235rm -f core conftest.err conftest.$ac_objext \ 13236 conftest$ac_exeext 13237 if ${ac_cv_search_inet_ntop+:} false; then : 13238 break 13239fi 13240done 13241if ${ac_cv_search_inet_ntop+:} false; then : 13242 13243else 13244 ac_cv_search_inet_ntop=no 13245fi 13246rm conftest.$ac_ext 13247LIBS=$ac_func_search_save_LIBS 13248fi 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 13250$as_echo "$ac_cv_search_inet_ntop" >&6; } 13251ac_res=$ac_cv_search_inet_ntop 13252if test "$ac_res" != no; then : 13253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13254 13255else 13256 13257echo "inet_ntop()" 13258exit 1 13259 13260fi 13261 13262 13263# Checks for typedefs, structures, and compiler characteristics. 13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13265$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13266if ${ac_cv_c_const+:} false; then : 13267 $as_echo_n "(cached) " >&6 13268else 13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13270/* end confdefs.h. */ 13271 13272int 13273main () 13274{ 13275 13276#ifndef __cplusplus 13277 /* Ultrix mips cc rejects this sort of thing. */ 13278 typedef int charset[2]; 13279 const charset cs = { 0, 0 }; 13280 /* SunOS 4.1.1 cc rejects this. */ 13281 char const *const *pcpcc; 13282 char **ppc; 13283 /* NEC SVR4.0.2 mips cc rejects this. */ 13284 struct point {int x, y;}; 13285 static struct point const zero = {0,0}; 13286 /* AIX XL C 1.02.0.0 rejects this. 13287 It does not let you subtract one const X* pointer from another in 13288 an arm of an if-expression whose if-part is not a constant 13289 expression */ 13290 const char *g = "string"; 13291 pcpcc = &g + (g ? g-g : 0); 13292 /* HPUX 7.0 cc rejects these. */ 13293 ++pcpcc; 13294 ppc = (char**) pcpcc; 13295 pcpcc = (char const *const *) ppc; 13296 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13297 char tx; 13298 char *t = &tx; 13299 char const *s = 0 ? (char *) 0 : (char const *) 0; 13300 13301 *t++ = 0; 13302 if (s) return 0; 13303 } 13304 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13305 int x[] = {25, 17}; 13306 const int *foo = &x[0]; 13307 ++foo; 13308 } 13309 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13310 typedef const int *iptr; 13311 iptr p = 0; 13312 ++p; 13313 } 13314 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13315 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13316 struct s { int j; const int *ap[3]; } bx; 13317 struct s *b = &bx; b->j = 5; 13318 } 13319 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13320 const int foo = 10; 13321 if (!foo) return 0; 13322 } 13323 return !cs[0] && !zero.x; 13324#endif 13325 13326 ; 13327 return 0; 13328} 13329_ACEOF 13330if ac_fn_c_try_compile "$LINENO"; then : 13331 ac_cv_c_const=yes 13332else 13333 ac_cv_c_const=no 13334fi 13335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13336fi 13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13338$as_echo "$ac_cv_c_const" >&6; } 13339if test $ac_cv_c_const = no; then 13340 13341$as_echo "#define const /**/" >>confdefs.h 13342 13343fi 13344 13345 13346# Check for poll.h (it's in POSIX so everyone should have it?) 13347for ac_header in poll.h 13348do : 13349 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13350if test "x$ac_cv_header_poll_h" = xyes; then : 13351 cat >>confdefs.h <<_ACEOF 13352#define HAVE_POLL_H 1 13353_ACEOF 13354 13355fi 13356 13357done 13358 13359 13360# SCTP. Allow user to disable SCTP support with --without-sctp. 13361# Otherwise we try to find whatever support is required. 13362try_sctp=true 13363 13364# Check whether --with-sctp was given. 13365if test "${with_sctp+set}" = set; then : 13366 withval=$with_sctp; 13367 case "$withval" in 13368 y | ye | yes) 13369 ;; 13370 n | no) 13371 try_sctp=false 13372 ;; 13373 *) 13374 as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5 13375 ;; 13376 esac 13377 13378else 13379 13380 try_sctp=true 13381 13382 13383fi 13384 13385 13386# Check for SCTP support 13387if $try_sctp; then 13388for ac_header in sys/socket.h 13389do : 13390 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 13391if test "x$ac_cv_header_sys_socket_h" = xyes; then : 13392 cat >>confdefs.h <<_ACEOF 13393#define HAVE_SYS_SOCKET_H 1 13394_ACEOF 13395 13396fi 13397 13398done 13399 13400for ac_header in netinet/sctp.h 13401do : 13402 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H 13403#include <sys/socket.h> 13404#endif 13405 13406" 13407if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 13408 cat >>confdefs.h <<_ACEOF 13409#define HAVE_NETINET_SCTP_H 1 13410_ACEOF 13411 13412$as_echo "#define HAVE_SCTP_H 1" >>confdefs.h 13413 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 13415$as_echo_n "checking for library containing sctp_bindx... " >&6; } 13416if ${ac_cv_search_sctp_bindx+:} false; then : 13417 $as_echo_n "(cached) " >&6 13418else 13419 ac_func_search_save_LIBS=$LIBS 13420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422 13423/* Override any GCC internal prototype to avoid an error. 13424 Use char because int might match the return type of a GCC 13425 builtin and then its argument prototype would still apply. */ 13426#ifdef __cplusplus 13427extern "C" 13428#endif 13429char sctp_bindx (); 13430int 13431main () 13432{ 13433return sctp_bindx (); 13434 ; 13435 return 0; 13436} 13437_ACEOF 13438for ac_lib in '' sctp; do 13439 if test -z "$ac_lib"; then 13440 ac_res="none required" 13441 else 13442 ac_res=-l$ac_lib 13443 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13444 fi 13445 if ac_fn_c_try_link "$LINENO"; then : 13446 ac_cv_search_sctp_bindx=$ac_res 13447fi 13448rm -f core conftest.err conftest.$ac_objext \ 13449 conftest$ac_exeext 13450 if ${ac_cv_search_sctp_bindx+:} false; then : 13451 break 13452fi 13453done 13454if ${ac_cv_search_sctp_bindx+:} false; then : 13455 13456else 13457 ac_cv_search_sctp_bindx=no 13458fi 13459rm conftest.$ac_ext 13460LIBS=$ac_func_search_save_LIBS 13461fi 13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 13463$as_echo "$ac_cv_search_sctp_bindx" >&6; } 13464ac_res=$ac_cv_search_sctp_bindx 13465if test "$ac_res" != no; then : 13466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13467 13468fi 13469 13470 13471# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 13472# ------------------------------------------- 13473# Tests whether TYPE exists after having included INCLUDES, setting cache 13474# variable VAR accordingly. 13475ac_fn_c_check_type () 13476{ 13477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 13479$as_echo_n "checking for $2... " >&6; } 13480if eval \${$3+:} false; then : 13481 $as_echo_n "(cached) " >&6 13482else 13483 eval "$3=no" 13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13485/* end confdefs.h. */ 13486$4 13487int 13488main () 13489{ 13490if (sizeof ($2)) 13491 return 0; 13492 ; 13493 return 0; 13494} 13495_ACEOF 13496if ac_fn_c_try_compile "$LINENO"; then : 13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13498/* end confdefs.h. */ 13499$4 13500int 13501main () 13502{ 13503if (sizeof (($2))) 13504 return 0; 13505 ; 13506 return 0; 13507} 13508_ACEOF 13509if ac_fn_c_try_compile "$LINENO"; then : 13510 13511else 13512 eval "$3=yes" 13513fi 13514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13515fi 13516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13517fi 13518eval ac_res=\$$3 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13520$as_echo "$ac_res" >&6; } 13521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 13522 13523} # ac_fn_c_check_type 13524ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h> 13525" 13526if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then : 13527 13528cat >>confdefs.h <<_ACEOF 13529#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1 13530_ACEOF 13531 13532 13533fi 13534 13535fi 13536 13537done 13538 13539fi 13540 13541ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 13542if test "x$ac_cv_header_endian_h" = xyes; then : 13543 13544$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h 13545 13546else 13547 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 13548if test "x$ac_cv_header_sys_endian_h" = xyes; then : 13549 13550$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 13551 13552else 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5 13554$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;} 13555 13556fi 13557 13558 13559 13560fi 13561 13562 13563 13564if test "x$with_openssl" = "xno"; then 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5 13566$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;} 13567else 13568 # Check for OPENSSL support 13569 havs_ssl=false 13570 13571 found=false 13572 13573# Check whether --with-openssl was given. 13574if test "${with_openssl+set}" = set; then : 13575 withval=$with_openssl; 13576 case "$withval" in 13577 "" | y | ye | yes | n | no) 13578 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 13579 ;; 13580 *) ssldirs="$withval" 13581 ;; 13582 esac 13583 13584else 13585 13586 # if pkg-config is installed and openssl has installed a .pc file, 13587 # then use that information and don't search ssldirs 13588 if test -n "$ac_tool_prefix"; then 13589 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13590set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13592$as_echo_n "checking for $ac_word... " >&6; } 13593if ${ac_cv_prog_PKG_CONFIG+:} false; then : 13594 $as_echo_n "(cached) " >&6 13595else 13596 if test -n "$PKG_CONFIG"; then 13597 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 13598else 13599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13600for as_dir in $PATH 13601do 13602 IFS=$as_save_IFS 13603 test -z "$as_dir" && as_dir=. 13604 for ac_exec_ext in '' $ac_executable_extensions; do 13605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13606 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13608 break 2 13609 fi 13610done 13611 done 13612IFS=$as_save_IFS 13613 13614fi 13615fi 13616PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 13617if test -n "$PKG_CONFIG"; then 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13619$as_echo "$PKG_CONFIG" >&6; } 13620else 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13622$as_echo "no" >&6; } 13623fi 13624 13625 13626fi 13627if test -z "$ac_cv_prog_PKG_CONFIG"; then 13628 ac_ct_PKG_CONFIG=$PKG_CONFIG 13629 # Extract the first word of "pkg-config", so it can be a program name with args. 13630set dummy pkg-config; ac_word=$2 13631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13632$as_echo_n "checking for $ac_word... " >&6; } 13633if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 13634 $as_echo_n "(cached) " >&6 13635else 13636 if test -n "$ac_ct_PKG_CONFIG"; then 13637 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 13638else 13639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13640for as_dir in $PATH 13641do 13642 IFS=$as_save_IFS 13643 test -z "$as_dir" && as_dir=. 13644 for ac_exec_ext in '' $ac_executable_extensions; do 13645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13646 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 13647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13648 break 2 13649 fi 13650done 13651 done 13652IFS=$as_save_IFS 13653 13654fi 13655fi 13656ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 13657if test -n "$ac_ct_PKG_CONFIG"; then 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 13659$as_echo "$ac_ct_PKG_CONFIG" >&6; } 13660else 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13662$as_echo "no" >&6; } 13663fi 13664 13665 if test "x$ac_ct_PKG_CONFIG" = x; then 13666 PKG_CONFIG="" 13667 else 13668 case $cross_compiling:$ac_tool_warned in 13669yes:) 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13672ac_tool_warned=yes ;; 13673esac 13674 PKG_CONFIG=$ac_ct_PKG_CONFIG 13675 fi 13676else 13677 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 13678fi 13679 13680 if test x"$PKG_CONFIG" != x""; then 13681 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 13682 if test $? = 0; then 13683 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 13684 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 13685 found=true 13686 fi 13687 fi 13688 13689 # no such luck; use some default ssldirs 13690 if ! $found; then 13691 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 13692 fi 13693 13694 13695fi 13696 13697 13698 13699 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 13700 # an 'openssl' subdirectory 13701 13702 if ! $found; then 13703 OPENSSL_INCLUDES= 13704 for ssldir in $ssldirs; do 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 13706$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 13707 if test -f "$ssldir/include/openssl/ssl.h"; then 13708 OPENSSL_INCLUDES="-I$ssldir/include" 13709 OPENSSL_LDFLAGS="-L$ssldir/lib" 13710 OPENSSL_LIBS="-lssl -lcrypto" 13711 found=true 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13713$as_echo "yes" >&6; } 13714 break 13715 else 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13717$as_echo "no" >&6; } 13718 fi 13719 done 13720 13721 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 13722 # it will just work! 13723 fi 13724 13725 # try the preprocessor and linker with our new flags, 13726 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 13727 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 13729$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 13730 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 13731 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 13732 13733 save_LIBS="$LIBS" 13734 save_LDFLAGS="$LDFLAGS" 13735 save_CPPFLAGS="$CPPFLAGS" 13736 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 13737 LIBS="$OPENSSL_LIBS $LIBS" 13738 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740/* end confdefs.h. */ 13741#include <openssl/ssl.h> 13742int 13743main () 13744{ 13745SSL_new(NULL) 13746 ; 13747 return 0; 13748} 13749_ACEOF 13750if ac_fn_c_try_link "$LINENO"; then : 13751 13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13753$as_echo "yes" >&6; } 13754 13755$as_echo "#define HAVE_SSL 1" >>confdefs.h 13756 13757 have_ssl=true 13758 13759else 13760 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13762$as_echo "no" >&6; } 13763 if test "x$with_openssl" != "x"; then 13764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13766as_fn_error $? "--with-openssl was given, but test for OpenSSL failed 13767See \`config.log' for more details" "$LINENO" 5; } 13768 fi 13769 13770 13771fi 13772rm -f core conftest.err conftest.$ac_objext \ 13773 conftest$ac_exeext conftest.$ac_ext 13774 CPPFLAGS="$save_CPPFLAGS" 13775 LDFLAGS="$save_LDFLAGS" 13776 LIBS="$save_LIBS" 13777 13778 13779 13780 13781 13782 if $have_ssl; then 13783 case $host in 13784 *-*-cygwin) 13785 CFLAGS="$CFLAGS -DNOCRYPT" 13786 ;; 13787 esac 13788 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 13789 LIBS="$OPENSSL_LIBS $LIBS" 13790 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 13791 fi 13792fi 13793 13794# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only) 13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 13796$as_echo_n "checking TCP_CONGESTION socket option... " >&6; } 13797if ${iperf3_cv_header_tcp_congestion+:} false; then : 13798 $as_echo_n "(cached) " >&6 13799else 13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13801/* end confdefs.h. */ 13802#include <netinet/tcp.h> 13803#ifdef TCP_CONGESTION 13804 yes 13805#endif 13806 13807_ACEOF 13808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13809 $EGREP "yes" >/dev/null 2>&1; then : 13810 iperf3_cv_header_tcp_congestion=yes 13811else 13812 iperf3_cv_header_tcp_congestion=no 13813fi 13814rm -f conftest* 13815 13816fi 13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 13818$as_echo "$iperf3_cv_header_tcp_congestion" >&6; } 13819if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 13820 13821$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h 13822 13823fi 13824 13825# Check for IPv6 flowlabel support (believed to be Linux only) 13826# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 13827# don't use that file directly (we have our own stripped-down 13828# copy, see src/flowlabel.h for more details). 13829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 13830$as_echo_n "checking IPv6 flowlabel support... " >&6; } 13831if ${iperf3_cv_header_flowlabel+:} false; then : 13832 $as_echo_n "(cached) " >&6 13833else 13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13835/* end confdefs.h. */ 13836#include <sys/types.h> 13837#include <linux/in6.h> 13838#ifdef IPV6_FLOWLABEL_MGR 13839 yes 13840#endif 13841 13842_ACEOF 13843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13844 $EGREP "yes" >/dev/null 2>&1; then : 13845 iperf3_cv_header_flowlabel=yes 13846else 13847 iperf3_cv_header_flowlabel=no 13848fi 13849rm -f conftest* 13850 13851fi 13852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 13853$as_echo "$iperf3_cv_header_flowlabel" >&6; } 13854if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 13855 13856$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h 13857 13858fi 13859 13860# Check for CPU affinity support. FreeBSD and Linux do this differently 13861# unfortunately so we have to check separately for each of them. 13862# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 13863# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 13864# generic concept is available. 13865for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask 13866do : 13867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13869if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13870 cat >>confdefs.h <<_ACEOF 13871#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13872_ACEOF 13873 13874$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h 13875 13876fi 13877done 13878 13879 13880# Check for daemon(). Most systems have this but a few (IRIX) don't. 13881for ac_func in daemon 13882do : 13883 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 13884if test "x$ac_cv_func_daemon" = xyes; then : 13885 cat >>confdefs.h <<_ACEOF 13886#define HAVE_DAEMON 1 13887_ACEOF 13888 13889fi 13890done 13891 13892 13893# Check for sendfile support. FreeBSD, Linux, and MacOS all support 13894# this system call, but they're all different in terms of what headers 13895# it needs and what arguments it expects. 13896for ac_func in sendfile 13897do : 13898 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 13899if test "x$ac_cv_func_sendfile" = xyes; then : 13900 cat >>confdefs.h <<_ACEOF 13901#define HAVE_SENDFILE 1 13902_ACEOF 13903 13904fi 13905done 13906 13907 13908# Check for getline support, used as a part of authenticated 13909# connections. 13910for ac_func in getline 13911do : 13912 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 13913if test "x$ac_cv_func_getline" = xyes; then : 13914 cat >>confdefs.h <<_ACEOF 13915#define HAVE_GETLINE 1 13916_ACEOF 13917 13918fi 13919done 13920 13921 13922# Check for packet pacing socket option (Linux only for now). 13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5 13924$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; } 13925if ${iperf3_cv_header_so_max_pacing_rate+:} false; then : 13926 $as_echo_n "(cached) " >&6 13927else 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13929/* end confdefs.h. */ 13930#include <sys/socket.h> 13931#ifdef SO_MAX_PACING_RATE 13932 yes 13933#endif 13934 13935_ACEOF 13936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13937 $EGREP "yes" >/dev/null 2>&1; then : 13938 iperf3_cv_header_so_max_pacing_rate=yes 13939else 13940 iperf3_cv_header_so_max_pacing_rate=no 13941fi 13942rm -f conftest* 13943 13944fi 13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5 13946$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; } 13947if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then 13948 13949$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h 13950 13951fi 13952 13953# Check if we need -lrt for clock_gettime 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13955$as_echo_n "checking for library containing clock_gettime... " >&6; } 13956if ${ac_cv_search_clock_gettime+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 ac_func_search_save_LIBS=$LIBS 13960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13961/* end confdefs.h. */ 13962 13963/* Override any GCC internal prototype to avoid an error. 13964 Use char because int might match the return type of a GCC 13965 builtin and then its argument prototype would still apply. */ 13966#ifdef __cplusplus 13967extern "C" 13968#endif 13969char clock_gettime (); 13970int 13971main () 13972{ 13973return clock_gettime (); 13974 ; 13975 return 0; 13976} 13977_ACEOF 13978for ac_lib in '' rt posix4; do 13979 if test -z "$ac_lib"; then 13980 ac_res="none required" 13981 else 13982 ac_res=-l$ac_lib 13983 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13984 fi 13985 if ac_fn_c_try_link "$LINENO"; then : 13986 ac_cv_search_clock_gettime=$ac_res 13987fi 13988rm -f core conftest.err conftest.$ac_objext \ 13989 conftest$ac_exeext 13990 if ${ac_cv_search_clock_gettime+:} false; then : 13991 break 13992fi 13993done 13994if ${ac_cv_search_clock_gettime+:} false; then : 13995 13996else 13997 ac_cv_search_clock_gettime=no 13998fi 13999rm conftest.$ac_ext 14000LIBS=$ac_func_search_save_LIBS 14001fi 14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14003$as_echo "$ac_cv_search_clock_gettime" >&6; } 14004ac_res=$ac_cv_search_clock_gettime 14005if test "$ac_res" != no; then : 14006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14007 14008fi 14009 14010# Check for clock_gettime support 14011for ac_func in clock_gettime 14012do : 14013 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 14014if test "x$ac_cv_func_clock_gettime" = xyes; then : 14015 cat >>confdefs.h <<_ACEOF 14016#define HAVE_CLOCK_GETTIME 1 14017_ACEOF 14018 14019fi 14020done 14021 14022 14023ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec" 14024 14025cat >confcache <<\_ACEOF 14026# This file is a shell script that caches the results of configure 14027# tests run on this system so they can be shared between configure 14028# scripts and configure runs, see configure's option --config-cache. 14029# It is not useful on other systems. If it contains results you don't 14030# want to keep, you may remove or edit it. 14031# 14032# config.status only pays attention to the cache file if you give it 14033# the --recheck option to rerun configure. 14034# 14035# `ac_cv_env_foo' variables (set or unset) will be overridden when 14036# loading this file, other *unset* `ac_cv_foo' will be assigned the 14037# following values. 14038 14039_ACEOF 14040 14041# The following way of writing the cache mishandles newlines in values, 14042# but we know of no workaround that is simple, portable, and efficient. 14043# So, we kill variables containing newlines. 14044# Ultrix sh set writes to stderr and can't be redirected directly, 14045# and sets the high bit in the cache file unless we assign to the vars. 14046( 14047 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14048 eval ac_val=\$$ac_var 14049 case $ac_val in #( 14050 *${as_nl}*) 14051 case $ac_var in #( 14052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14053$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14054 esac 14055 case $ac_var in #( 14056 _ | IFS | as_nl) ;; #( 14057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14058 *) { eval $ac_var=; unset $ac_var;} ;; 14059 esac ;; 14060 esac 14061 done 14062 14063 (set) 2>&1 | 14064 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14065 *${as_nl}ac_space=\ *) 14066 # `set' does not quote correctly, so add quotes: double-quote 14067 # substitution turns \\\\ into \\, and sed turns \\ into \. 14068 sed -n \ 14069 "s/'/'\\\\''/g; 14070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14071 ;; #( 14072 *) 14073 # `set' quotes correctly as required by POSIX, so do not add quotes. 14074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14075 ;; 14076 esac | 14077 sort 14078) | 14079 sed ' 14080 /^ac_cv_env_/b end 14081 t clear 14082 :clear 14083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14084 t end 14085 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14086 :end' >>confcache 14087if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14088 if test -w "$cache_file"; then 14089 if test "x$cache_file" != "x/dev/null"; then 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14091$as_echo "$as_me: updating cache $cache_file" >&6;} 14092 if test ! -f "$cache_file" || test -h "$cache_file"; then 14093 cat confcache >"$cache_file" 14094 else 14095 case $cache_file in #( 14096 */* | ?:*) 14097 mv -f confcache "$cache_file"$$ && 14098 mv -f "$cache_file"$$ "$cache_file" ;; #( 14099 *) 14100 mv -f confcache "$cache_file" ;; 14101 esac 14102 fi 14103 fi 14104 else 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14106$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14107 fi 14108fi 14109rm -f confcache 14110 14111test "x$prefix" = xNONE && prefix=$ac_default_prefix 14112# Let make expand exec_prefix. 14113test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14114 14115DEFS=-DHAVE_CONFIG_H 14116 14117ac_libobjs= 14118ac_ltlibobjs= 14119for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14120 # 1. Remove the extension, and $U if already installed. 14121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14122 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14124 # will be set to the directory where LIBOBJS objects are built. 14125 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14126 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14127done 14128LIBOBJS=$ac_libobjs 14129 14130LTLIBOBJS=$ac_ltlibobjs 14131 14132 14133if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then 14134 as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined. 14135Usually this means the macro was only invoked conditionally." "$LINENO" 5 14136fi 14137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14138$as_echo_n "checking that generated files are newer than configure... " >&6; } 14139 if test -n "$am_sleep_pid"; then 14140 # Hide warnings about reused PIDs. 14141 wait $am_sleep_pid 2>/dev/null 14142 fi 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14144$as_echo "done" >&6; } 14145 if test -n "$EXEEXT"; then 14146 am__EXEEXT_TRUE= 14147 am__EXEEXT_FALSE='#' 14148else 14149 am__EXEEXT_TRUE='#' 14150 am__EXEEXT_FALSE= 14151fi 14152 14153if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14154 as_fn_error $? "conditional \"AMDEP\" was never defined. 14155Usually this means the macro was only invoked conditionally." "$LINENO" 5 14156fi 14157if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14158 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14159Usually this means the macro was only invoked conditionally." "$LINENO" 5 14160fi 14161if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14162 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14163Usually this means the macro was only invoked conditionally." "$LINENO" 5 14164fi 14165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14166 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14167Usually this means the macro was only invoked conditionally." "$LINENO" 5 14168fi 14169if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then 14170 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined. 14171Usually this means the macro was only invoked conditionally." "$LINENO" 5 14172fi 14173 14174: "${CONFIG_STATUS=./config.status}" 14175ac_write_fail=0 14176ac_clean_files_save=$ac_clean_files 14177ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14178{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14179$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14180as_write_fail=0 14181cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14182#! $SHELL 14183# Generated by $as_me. 14184# Run this file to recreate the current configuration. 14185# Compiler output produced by configure, useful for debugging 14186# configure, is in config.log if it exists. 14187 14188debug=false 14189ac_cs_recheck=false 14190ac_cs_silent=false 14191 14192SHELL=\${CONFIG_SHELL-$SHELL} 14193export SHELL 14194_ASEOF 14195cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14196## -------------------- ## 14197## M4sh Initialization. ## 14198## -------------------- ## 14199 14200# Be more Bourne compatible 14201DUALCASE=1; export DUALCASE # for MKS sh 14202if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14203 emulate sh 14204 NULLCMD=: 14205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14206 # is contrary to our usage. Disable this feature. 14207 alias -g '${1+"$@"}'='"$@"' 14208 setopt NO_GLOB_SUBST 14209else 14210 case `(set -o) 2>/dev/null` in #( 14211 *posix*) : 14212 set -o posix ;; #( 14213 *) : 14214 ;; 14215esac 14216fi 14217 14218 14219as_nl=' 14220' 14221export as_nl 14222# Printing a long string crashes Solaris 7 /usr/bin/printf. 14223as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14224as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14226# Prefer a ksh shell builtin over an external printf program on Solaris, 14227# but without wasting forks for bash or zsh. 14228if test -z "$BASH_VERSION$ZSH_VERSION" \ 14229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14230 as_echo='print -r --' 14231 as_echo_n='print -rn --' 14232elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14233 as_echo='printf %s\n' 14234 as_echo_n='printf %s' 14235else 14236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14238 as_echo_n='/usr/ucb/echo -n' 14239 else 14240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14241 as_echo_n_body='eval 14242 arg=$1; 14243 case $arg in #( 14244 *"$as_nl"*) 14245 expr "X$arg" : "X\\(.*\\)$as_nl"; 14246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14247 esac; 14248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14249 ' 14250 export as_echo_n_body 14251 as_echo_n='sh -c $as_echo_n_body as_echo' 14252 fi 14253 export as_echo_body 14254 as_echo='sh -c $as_echo_body as_echo' 14255fi 14256 14257# The user is always right. 14258if test "${PATH_SEPARATOR+set}" != set; then 14259 PATH_SEPARATOR=: 14260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14262 PATH_SEPARATOR=';' 14263 } 14264fi 14265 14266 14267# IFS 14268# We need space, tab and new line, in precisely that order. Quoting is 14269# there to prevent editors from complaining about space-tab. 14270# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14271# splitting by setting IFS to empty value.) 14272IFS=" "" $as_nl" 14273 14274# Find who we are. Look in the path if we contain no directory separator. 14275as_myself= 14276case $0 in #(( 14277 *[\\/]* ) as_myself=$0 ;; 14278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14279for as_dir in $PATH 14280do 14281 IFS=$as_save_IFS 14282 test -z "$as_dir" && as_dir=. 14283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14284 done 14285IFS=$as_save_IFS 14286 14287 ;; 14288esac 14289# We did not find ourselves, most probably we were run as `sh COMMAND' 14290# in which case we are not to be found in the path. 14291if test "x$as_myself" = x; then 14292 as_myself=$0 14293fi 14294if test ! -f "$as_myself"; then 14295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14296 exit 1 14297fi 14298 14299# Unset variables that we do not need and which cause bugs (e.g. in 14300# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14301# suppresses any "Segmentation fault" message there. '((' could 14302# trigger a bug in pdksh 5.2.14. 14303for as_var in BASH_ENV ENV MAIL MAILPATH 14304do eval test x\${$as_var+set} = xset \ 14305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14306done 14307PS1='$ ' 14308PS2='> ' 14309PS4='+ ' 14310 14311# NLS nuisances. 14312LC_ALL=C 14313export LC_ALL 14314LANGUAGE=C 14315export LANGUAGE 14316 14317# CDPATH. 14318(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14319 14320 14321# as_fn_error STATUS ERROR [LINENO LOG_FD] 14322# ---------------------------------------- 14323# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14324# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14325# script with STATUS, using 1 if that was 0. 14326as_fn_error () 14327{ 14328 as_status=$1; test $as_status -eq 0 && as_status=1 14329 if test "$4"; then 14330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14332 fi 14333 $as_echo "$as_me: error: $2" >&2 14334 as_fn_exit $as_status 14335} # as_fn_error 14336 14337 14338# as_fn_set_status STATUS 14339# ----------------------- 14340# Set $? to STATUS, without forking. 14341as_fn_set_status () 14342{ 14343 return $1 14344} # as_fn_set_status 14345 14346# as_fn_exit STATUS 14347# ----------------- 14348# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14349as_fn_exit () 14350{ 14351 set +e 14352 as_fn_set_status $1 14353 exit $1 14354} # as_fn_exit 14355 14356# as_fn_unset VAR 14357# --------------- 14358# Portably unset VAR. 14359as_fn_unset () 14360{ 14361 { eval $1=; unset $1;} 14362} 14363as_unset=as_fn_unset 14364# as_fn_append VAR VALUE 14365# ---------------------- 14366# Append the text in VALUE to the end of the definition contained in VAR. Take 14367# advantage of any shell optimizations that allow amortized linear growth over 14368# repeated appends, instead of the typical quadratic growth present in naive 14369# implementations. 14370if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14371 eval 'as_fn_append () 14372 { 14373 eval $1+=\$2 14374 }' 14375else 14376 as_fn_append () 14377 { 14378 eval $1=\$$1\$2 14379 } 14380fi # as_fn_append 14381 14382# as_fn_arith ARG... 14383# ------------------ 14384# Perform arithmetic evaluation on the ARGs, and store the result in the 14385# global $as_val. Take advantage of shells that can avoid forks. The arguments 14386# must be portable across $(()) and expr. 14387if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14388 eval 'as_fn_arith () 14389 { 14390 as_val=$(( $* )) 14391 }' 14392else 14393 as_fn_arith () 14394 { 14395 as_val=`expr "$@" || test $? -eq 1` 14396 } 14397fi # as_fn_arith 14398 14399 14400if expr a : '\(a\)' >/dev/null 2>&1 && 14401 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14402 as_expr=expr 14403else 14404 as_expr=false 14405fi 14406 14407if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14408 as_basename=basename 14409else 14410 as_basename=false 14411fi 14412 14413if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14414 as_dirname=dirname 14415else 14416 as_dirname=false 14417fi 14418 14419as_me=`$as_basename -- "$0" || 14420$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14421 X"$0" : 'X\(//\)$' \| \ 14422 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14423$as_echo X/"$0" | 14424 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14425 s//\1/ 14426 q 14427 } 14428 /^X\/\(\/\/\)$/{ 14429 s//\1/ 14430 q 14431 } 14432 /^X\/\(\/\).*/{ 14433 s//\1/ 14434 q 14435 } 14436 s/.*/./; q'` 14437 14438# Avoid depending upon Character Ranges. 14439as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14440as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14441as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14442as_cr_digits='0123456789' 14443as_cr_alnum=$as_cr_Letters$as_cr_digits 14444 14445ECHO_C= ECHO_N= ECHO_T= 14446case `echo -n x` in #((((( 14447-n*) 14448 case `echo 'xy\c'` in 14449 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14450 xy) ECHO_C='\c';; 14451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14452 ECHO_T=' ';; 14453 esac;; 14454*) 14455 ECHO_N='-n';; 14456esac 14457 14458rm -f conf$$ conf$$.exe conf$$.file 14459if test -d conf$$.dir; then 14460 rm -f conf$$.dir/conf$$.file 14461else 14462 rm -f conf$$.dir 14463 mkdir conf$$.dir 2>/dev/null 14464fi 14465if (echo >conf$$.file) 2>/dev/null; then 14466 if ln -s conf$$.file conf$$ 2>/dev/null; then 14467 as_ln_s='ln -s' 14468 # ... but there are two gotchas: 14469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14471 # In both cases, we have to default to `cp -pR'. 14472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14473 as_ln_s='cp -pR' 14474 elif ln conf$$.file conf$$ 2>/dev/null; then 14475 as_ln_s=ln 14476 else 14477 as_ln_s='cp -pR' 14478 fi 14479else 14480 as_ln_s='cp -pR' 14481fi 14482rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14483rmdir conf$$.dir 2>/dev/null 14484 14485 14486# as_fn_mkdir_p 14487# ------------- 14488# Create "$as_dir" as a directory, including parents if necessary. 14489as_fn_mkdir_p () 14490{ 14491 14492 case $as_dir in #( 14493 -*) as_dir=./$as_dir;; 14494 esac 14495 test -d "$as_dir" || eval $as_mkdir_p || { 14496 as_dirs= 14497 while :; do 14498 case $as_dir in #( 14499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14500 *) as_qdir=$as_dir;; 14501 esac 14502 as_dirs="'$as_qdir' $as_dirs" 14503 as_dir=`$as_dirname -- "$as_dir" || 14504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14505 X"$as_dir" : 'X\(//\)[^/]' \| \ 14506 X"$as_dir" : 'X\(//\)$' \| \ 14507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14508$as_echo X"$as_dir" | 14509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14510 s//\1/ 14511 q 14512 } 14513 /^X\(\/\/\)[^/].*/{ 14514 s//\1/ 14515 q 14516 } 14517 /^X\(\/\/\)$/{ 14518 s//\1/ 14519 q 14520 } 14521 /^X\(\/\).*/{ 14522 s//\1/ 14523 q 14524 } 14525 s/.*/./; q'` 14526 test -d "$as_dir" && break 14527 done 14528 test -z "$as_dirs" || eval "mkdir $as_dirs" 14529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14530 14531 14532} # as_fn_mkdir_p 14533if mkdir -p . 2>/dev/null; then 14534 as_mkdir_p='mkdir -p "$as_dir"' 14535else 14536 test -d ./-p && rmdir ./-p 14537 as_mkdir_p=false 14538fi 14539 14540 14541# as_fn_executable_p FILE 14542# ----------------------- 14543# Test if FILE is an executable regular file. 14544as_fn_executable_p () 14545{ 14546 test -f "$1" && test -x "$1" 14547} # as_fn_executable_p 14548as_test_x='test -x' 14549as_executable_p=as_fn_executable_p 14550 14551# Sed expression to map a string onto a valid CPP name. 14552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14553 14554# Sed expression to map a string onto a valid variable name. 14555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14556 14557 14558exec 6>&1 14559## ----------------------------------- ## 14560## Main body of $CONFIG_STATUS script. ## 14561## ----------------------------------- ## 14562_ASEOF 14563test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14564 14565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14566# Save the log message, to keep $0 and so on meaningful, and to 14567# report actual input values of CONFIG_FILES etc. instead of their 14568# values after options handling. 14569ac_log=" 14570This file was extended by iperf $as_me 3.9, which was 14571generated by GNU Autoconf 2.69. Invocation command line was 14572 14573 CONFIG_FILES = $CONFIG_FILES 14574 CONFIG_HEADERS = $CONFIG_HEADERS 14575 CONFIG_LINKS = $CONFIG_LINKS 14576 CONFIG_COMMANDS = $CONFIG_COMMANDS 14577 $ $0 $@ 14578 14579on `(hostname || uname -n) 2>/dev/null | sed 1q` 14580" 14581 14582_ACEOF 14583 14584case $ac_config_files in *" 14585"*) set x $ac_config_files; shift; ac_config_files=$*;; 14586esac 14587 14588case $ac_config_headers in *" 14589"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14590esac 14591 14592 14593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14594# Files that config.status was made for. 14595config_files="$ac_config_files" 14596config_headers="$ac_config_headers" 14597config_commands="$ac_config_commands" 14598 14599_ACEOF 14600 14601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14602ac_cs_usage="\ 14603\`$as_me' instantiates files and other configuration actions 14604from templates according to the current configuration. Unless the files 14605and actions are specified as TAGs, all are instantiated by default. 14606 14607Usage: $0 [OPTION]... [TAG]... 14608 14609 -h, --help print this help, then exit 14610 -V, --version print version number and configuration settings, then exit 14611 --config print configuration, then exit 14612 -q, --quiet, --silent 14613 do not print progress messages 14614 -d, --debug don't remove temporary files 14615 --recheck update $as_me by reconfiguring in the same conditions 14616 --file=FILE[:TEMPLATE] 14617 instantiate the configuration file FILE 14618 --header=FILE[:TEMPLATE] 14619 instantiate the configuration header FILE 14620 14621Configuration files: 14622$config_files 14623 14624Configuration headers: 14625$config_headers 14626 14627Configuration commands: 14628$config_commands 14629 14630Report bugs to <https://github.com/esnet/iperf>. 14631iperf home page: <https://software.es.net/iperf/>." 14632 14633_ACEOF 14634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14635ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14636ac_cs_version="\\ 14637iperf config.status 3.9 14638configured by $0, generated by GNU Autoconf 2.69, 14639 with options \\"\$ac_cs_config\\" 14640 14641Copyright (C) 2012 Free Software Foundation, Inc. 14642This config.status script is free software; the Free Software Foundation 14643gives unlimited permission to copy, distribute and modify it." 14644 14645ac_pwd='$ac_pwd' 14646srcdir='$srcdir' 14647INSTALL='$INSTALL' 14648MKDIR_P='$MKDIR_P' 14649AWK='$AWK' 14650test -n "\$AWK" || AWK=awk 14651_ACEOF 14652 14653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14654# The default lists apply if the user does not specify any file. 14655ac_need_defaults=: 14656while test $# != 0 14657do 14658 case $1 in 14659 --*=?*) 14660 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14661 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14662 ac_shift=: 14663 ;; 14664 --*=) 14665 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14666 ac_optarg= 14667 ac_shift=: 14668 ;; 14669 *) 14670 ac_option=$1 14671 ac_optarg=$2 14672 ac_shift=shift 14673 ;; 14674 esac 14675 14676 case $ac_option in 14677 # Handling of the options. 14678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14679 ac_cs_recheck=: ;; 14680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14681 $as_echo "$ac_cs_version"; exit ;; 14682 --config | --confi | --conf | --con | --co | --c ) 14683 $as_echo "$ac_cs_config"; exit ;; 14684 --debug | --debu | --deb | --de | --d | -d ) 14685 debug=: ;; 14686 --file | --fil | --fi | --f ) 14687 $ac_shift 14688 case $ac_optarg in 14689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14690 '') as_fn_error $? "missing file argument" ;; 14691 esac 14692 as_fn_append CONFIG_FILES " '$ac_optarg'" 14693 ac_need_defaults=false;; 14694 --header | --heade | --head | --hea ) 14695 $ac_shift 14696 case $ac_optarg in 14697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14698 esac 14699 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14700 ac_need_defaults=false;; 14701 --he | --h) 14702 # Conflict between --help and --header 14703 as_fn_error $? "ambiguous option: \`$1' 14704Try \`$0 --help' for more information.";; 14705 --help | --hel | -h ) 14706 $as_echo "$ac_cs_usage"; exit ;; 14707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14708 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14709 ac_cs_silent=: ;; 14710 14711 # This is an error. 14712 -*) as_fn_error $? "unrecognized option: \`$1' 14713Try \`$0 --help' for more information." ;; 14714 14715 *) as_fn_append ac_config_targets " $1" 14716 ac_need_defaults=false ;; 14717 14718 esac 14719 shift 14720done 14721 14722ac_configure_extra_args= 14723 14724if $ac_cs_silent; then 14725 exec 6>/dev/null 14726 ac_configure_extra_args="$ac_configure_extra_args --silent" 14727fi 14728 14729_ACEOF 14730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14731if \$ac_cs_recheck; then 14732 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14733 shift 14734 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14735 CONFIG_SHELL='$SHELL' 14736 export CONFIG_SHELL 14737 exec "\$@" 14738fi 14739 14740_ACEOF 14741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14742exec 5>>config.log 14743{ 14744 echo 14745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14746## Running $as_me. ## 14747_ASBOX 14748 $as_echo "$ac_log" 14749} >&5 14750 14751_ACEOF 14752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14753# 14754# INIT-COMMANDS 14755# 14756AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14757 14758 14759# The HP-UX ksh and POSIX shell print the target directory to stdout 14760# if CDPATH is set. 14761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14762 14763sed_quote_subst='$sed_quote_subst' 14764double_quote_subst='$double_quote_subst' 14765delay_variable_subst='$delay_variable_subst' 14766macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14767macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14768enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14769enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14770pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14771enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14772shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14773SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14774ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14775PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14776host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14777host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14778host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14779build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14780build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14781build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14782SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14783Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14784GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14785EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14786FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14787LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14788NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14789LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14790max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14791ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14792exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14793lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14794lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14795lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14796lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14797lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14798reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14799reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14800OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14801deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14802file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14803file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14804want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14805DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14806sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14807AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14808AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14809archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14810STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14811RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14812old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14813old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14814old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14815lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14816CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14817CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14818compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14819GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14820lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14821lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14822lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14823lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14824lt_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"`' 14825lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14826nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14827lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14828lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14829objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14830MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14831lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14832lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14833lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14834lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14835lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14836need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14837MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14838DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14839NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14840LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14841OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14842OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14843libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14844shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14845extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14846archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14847enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14848export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14849whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14850compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14851old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14852old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14853archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14854archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14855module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14856module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14857with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14858allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14859no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14860hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14861hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14862hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14863hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14864hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14865hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14866hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14867inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14868link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14869always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14870export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14871exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14872include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14873prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14874postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14875file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14876variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14877need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14878need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14879version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14880runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14881shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14882shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14883libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14884library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14885soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14886install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14887postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14888postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14889finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14890finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14891hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14892sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14893configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14894configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14895hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14896enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14897enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14898enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14899old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14900striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14901 14902LTCC='$LTCC' 14903LTCFLAGS='$LTCFLAGS' 14904compiler='$compiler_DEFAULT' 14905 14906# A function that is used when there is no print builtin or printf. 14907func_fallback_echo () 14908{ 14909 eval 'cat <<_LTECHO_EOF 14910\$1 14911_LTECHO_EOF' 14912} 14913 14914# Quote evaled strings. 14915for var in SHELL \ 14916ECHO \ 14917PATH_SEPARATOR \ 14918SED \ 14919GREP \ 14920EGREP \ 14921FGREP \ 14922LD \ 14923NM \ 14924LN_S \ 14925lt_SP2NL \ 14926lt_NL2SP \ 14927reload_flag \ 14928OBJDUMP \ 14929deplibs_check_method \ 14930file_magic_cmd \ 14931file_magic_glob \ 14932want_nocaseglob \ 14933DLLTOOL \ 14934sharedlib_from_linklib_cmd \ 14935AR \ 14936AR_FLAGS \ 14937archiver_list_spec \ 14938STRIP \ 14939RANLIB \ 14940CC \ 14941CFLAGS \ 14942compiler \ 14943lt_cv_sys_global_symbol_pipe \ 14944lt_cv_sys_global_symbol_to_cdecl \ 14945lt_cv_sys_global_symbol_to_import \ 14946lt_cv_sys_global_symbol_to_c_name_address \ 14947lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14948lt_cv_nm_interface \ 14949nm_file_list_spec \ 14950lt_cv_truncate_bin \ 14951lt_prog_compiler_no_builtin_flag \ 14952lt_prog_compiler_pic \ 14953lt_prog_compiler_wl \ 14954lt_prog_compiler_static \ 14955lt_cv_prog_compiler_c_o \ 14956need_locks \ 14957MANIFEST_TOOL \ 14958DSYMUTIL \ 14959NMEDIT \ 14960LIPO \ 14961OTOOL \ 14962OTOOL64 \ 14963shrext_cmds \ 14964export_dynamic_flag_spec \ 14965whole_archive_flag_spec \ 14966compiler_needs_object \ 14967with_gnu_ld \ 14968allow_undefined_flag \ 14969no_undefined_flag \ 14970hardcode_libdir_flag_spec \ 14971hardcode_libdir_separator \ 14972exclude_expsyms \ 14973include_expsyms \ 14974file_list_spec \ 14975variables_saved_for_relink \ 14976libname_spec \ 14977library_names_spec \ 14978soname_spec \ 14979install_override_mode \ 14980finish_eval \ 14981old_striplib \ 14982striplib; do 14983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14984 *[\\\\\\\`\\"\\\$]*) 14985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14986 ;; 14987 *) 14988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14989 ;; 14990 esac 14991done 14992 14993# Double-quote double-evaled strings. 14994for var in reload_cmds \ 14995old_postinstall_cmds \ 14996old_postuninstall_cmds \ 14997old_archive_cmds \ 14998extract_expsyms_cmds \ 14999old_archive_from_new_cmds \ 15000old_archive_from_expsyms_cmds \ 15001archive_cmds \ 15002archive_expsym_cmds \ 15003module_cmds \ 15004module_expsym_cmds \ 15005export_symbols_cmds \ 15006prelink_cmds \ 15007postlink_cmds \ 15008postinstall_cmds \ 15009postuninstall_cmds \ 15010finish_cmds \ 15011sys_lib_search_path_spec \ 15012configure_time_dlsearch_path \ 15013configure_time_lt_sys_library_path; do 15014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15015 *[\\\\\\\`\\"\\\$]*) 15016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15017 ;; 15018 *) 15019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15020 ;; 15021 esac 15022done 15023 15024ac_aux_dir='$ac_aux_dir' 15025 15026# See if we are running on zsh, and set the options that allow our 15027# commands through without removal of \ escapes INIT. 15028if test -n "\${ZSH_VERSION+set}"; then 15029 setopt NO_GLOB_SUBST 15030fi 15031 15032 15033 PACKAGE='$PACKAGE' 15034 VERSION='$VERSION' 15035 RM='$RM' 15036 ofile='$ofile' 15037 15038 15039 15040 15041_ACEOF 15042 15043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15044 15045# Handling of arguments. 15046for ac_config_target in $ac_config_targets 15047do 15048 case $ac_config_target in 15049 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15050 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15051 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 15052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15053 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15054 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 15055 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 15056 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;; 15057 15058 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15059 esac 15060done 15061 15062 15063# If the user did not use the arguments to specify the items to instantiate, 15064# then the envvar interface is used. Set only those that are not. 15065# We use the long form for the default assignment because of an extremely 15066# bizarre bug on SunOS 4.1.3. 15067if $ac_need_defaults; then 15068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15071fi 15072 15073# Have a temporary directory for convenience. Make it in the build tree 15074# simply because there is no reason against having it here, and in addition, 15075# creating and moving files from /tmp can sometimes cause problems. 15076# Hook for its removal unless debugging. 15077# Note that there is a small window in which the directory will not be cleaned: 15078# after its creation but before its name has been assigned to `$tmp'. 15079$debug || 15080{ 15081 tmp= ac_tmp= 15082 trap 'exit_status=$? 15083 : "${ac_tmp:=$tmp}" 15084 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15085' 0 15086 trap 'as_fn_exit 1' 1 2 13 15 15087} 15088# Create a (secure) tmp directory for tmp files. 15089 15090{ 15091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15092 test -d "$tmp" 15093} || 15094{ 15095 tmp=./conf$$-$RANDOM 15096 (umask 077 && mkdir "$tmp") 15097} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15098ac_tmp=$tmp 15099 15100# Set up the scripts for CONFIG_FILES section. 15101# No need to generate them if there are no CONFIG_FILES. 15102# This happens for instance with `./config.status config.h'. 15103if test -n "$CONFIG_FILES"; then 15104 15105 15106ac_cr=`echo X | tr X '\015'` 15107# On cygwin, bash can eat \r inside `` if the user requested igncr. 15108# But we know of no other shell where ac_cr would be empty at this 15109# point, so we can use a bashism as a fallback. 15110if test "x$ac_cr" = x; then 15111 eval ac_cr=\$\'\\r\' 15112fi 15113ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15114if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15115 ac_cs_awk_cr='\\r' 15116else 15117 ac_cs_awk_cr=$ac_cr 15118fi 15119 15120echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15121_ACEOF 15122 15123 15124{ 15125 echo "cat >conf$$subs.awk <<_ACEOF" && 15126 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15127 echo "_ACEOF" 15128} >conf$$subs.sh || 15129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15130ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15131ac_delim='%!_!# ' 15132for ac_last_try in false false false false false :; do 15133 . ./conf$$subs.sh || 15134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15135 15136 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15137 if test $ac_delim_n = $ac_delim_num; then 15138 break 15139 elif $ac_last_try; then 15140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15141 else 15142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15143 fi 15144done 15145rm -f conf$$subs.sh 15146 15147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15148cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15149_ACEOF 15150sed -n ' 15151h 15152s/^/S["/; s/!.*/"]=/ 15153p 15154g 15155s/^[^!]*!// 15156:repl 15157t repl 15158s/'"$ac_delim"'$// 15159t delim 15160:nl 15161h 15162s/\(.\{148\}\)..*/\1/ 15163t more1 15164s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15165p 15166n 15167b repl 15168:more1 15169s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15170p 15171g 15172s/.\{148\}// 15173t nl 15174:delim 15175h 15176s/\(.\{148\}\)..*/\1/ 15177t more2 15178s/["\\]/\\&/g; s/^/"/; s/$/"/ 15179p 15180b 15181:more2 15182s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15183p 15184g 15185s/.\{148\}// 15186t delim 15187' <conf$$subs.awk | sed ' 15188/^[^""]/{ 15189 N 15190 s/\n// 15191} 15192' >>$CONFIG_STATUS || ac_write_fail=1 15193rm -f conf$$subs.awk 15194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15195_ACAWK 15196cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15197 for (key in S) S_is_set[key] = 1 15198 FS = "" 15199 15200} 15201{ 15202 line = $ 0 15203 nfields = split(line, field, "@") 15204 substed = 0 15205 len = length(field[1]) 15206 for (i = 2; i < nfields; i++) { 15207 key = field[i] 15208 keylen = length(key) 15209 if (S_is_set[key]) { 15210 value = S[key] 15211 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15212 len += length(value) + length(field[++i]) 15213 substed = 1 15214 } else 15215 len += 1 + keylen 15216 } 15217 15218 print line 15219} 15220 15221_ACAWK 15222_ACEOF 15223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15224if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15225 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15226else 15227 cat 15228fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15229 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15230_ACEOF 15231 15232# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15233# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15234# trailing colons and then remove the whole line if VPATH becomes empty 15235# (actually we leave an empty line to preserve line numbers). 15236if test "x$srcdir" = x.; then 15237 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15238h 15239s/// 15240s/^/:/ 15241s/[ ]*$/:/ 15242s/:\$(srcdir):/:/g 15243s/:\${srcdir}:/:/g 15244s/:@srcdir@:/:/g 15245s/^:*// 15246s/:*$// 15247x 15248s/\(=[ ]*\).*/\1/ 15249G 15250s/\n// 15251s/^[^=]*=[ ]*$// 15252}' 15253fi 15254 15255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15256fi # test -n "$CONFIG_FILES" 15257 15258# Set up the scripts for CONFIG_HEADERS section. 15259# No need to generate them if there are no CONFIG_HEADERS. 15260# This happens for instance with `./config.status Makefile'. 15261if test -n "$CONFIG_HEADERS"; then 15262cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15263BEGIN { 15264_ACEOF 15265 15266# Transform confdefs.h into an awk script `defines.awk', embedded as 15267# here-document in config.status, that substitutes the proper values into 15268# config.h.in to produce config.h. 15269 15270# Create a delimiter string that does not exist in confdefs.h, to ease 15271# handling of long lines. 15272ac_delim='%!_!# ' 15273for ac_last_try in false false :; do 15274 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15275 if test -z "$ac_tt"; then 15276 break 15277 elif $ac_last_try; then 15278 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15279 else 15280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15281 fi 15282done 15283 15284# For the awk script, D is an array of macro values keyed by name, 15285# likewise P contains macro parameters if any. Preserve backslash 15286# newline sequences. 15287 15288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15289sed -n ' 15290s/.\{148\}/&'"$ac_delim"'/g 15291t rset 15292:rset 15293s/^[ ]*#[ ]*define[ ][ ]*/ / 15294t def 15295d 15296:def 15297s/\\$// 15298t bsnl 15299s/["\\]/\\&/g 15300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15301D["\1"]=" \3"/p 15302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15303d 15304:bsnl 15305s/["\\]/\\&/g 15306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15307D["\1"]=" \3\\\\\\n"\\/p 15308t cont 15309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15310t cont 15311d 15312:cont 15313n 15314s/.\{148\}/&'"$ac_delim"'/g 15315t clear 15316:clear 15317s/\\$// 15318t bsnlc 15319s/["\\]/\\&/g; s/^/"/; s/$/"/p 15320d 15321:bsnlc 15322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15323b cont 15324' <confdefs.h | sed ' 15325s/'"$ac_delim"'/"\\\ 15326"/g' >>$CONFIG_STATUS || ac_write_fail=1 15327 15328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15329 for (key in D) D_is_set[key] = 1 15330 FS = "" 15331} 15332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15333 line = \$ 0 15334 split(line, arg, " ") 15335 if (arg[1] == "#") { 15336 defundef = arg[2] 15337 mac1 = arg[3] 15338 } else { 15339 defundef = substr(arg[1], 2) 15340 mac1 = arg[2] 15341 } 15342 split(mac1, mac2, "(") #) 15343 macro = mac2[1] 15344 prefix = substr(line, 1, index(line, defundef) - 1) 15345 if (D_is_set[macro]) { 15346 # Preserve the white space surrounding the "#". 15347 print prefix "define", macro P[macro] D[macro] 15348 next 15349 } else { 15350 # Replace #undef with comments. This is necessary, for example, 15351 # in the case of _POSIX_SOURCE, which is predefined and required 15352 # on some systems where configure will not decide to define it. 15353 if (defundef == "undef") { 15354 print "/*", prefix defundef, macro, "*/" 15355 next 15356 } 15357 } 15358} 15359{ print } 15360_ACAWK 15361_ACEOF 15362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15363 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15364fi # test -n "$CONFIG_HEADERS" 15365 15366 15367eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15368shift 15369for ac_tag 15370do 15371 case $ac_tag in 15372 :[FHLC]) ac_mode=$ac_tag; continue;; 15373 esac 15374 case $ac_mode$ac_tag in 15375 :[FHL]*:*);; 15376 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15377 :[FH]-) ac_tag=-:-;; 15378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15379 esac 15380 ac_save_IFS=$IFS 15381 IFS=: 15382 set x $ac_tag 15383 IFS=$ac_save_IFS 15384 shift 15385 ac_file=$1 15386 shift 15387 15388 case $ac_mode in 15389 :L) ac_source=$1;; 15390 :[FH]) 15391 ac_file_inputs= 15392 for ac_f 15393 do 15394 case $ac_f in 15395 -) ac_f="$ac_tmp/stdin";; 15396 *) # Look for the file first in the build tree, then in the source tree 15397 # (if the path is not absolute). The absolute path cannot be DOS-style, 15398 # because $ac_f cannot contain `:'. 15399 test -f "$ac_f" || 15400 case $ac_f in 15401 [\\/$]*) false;; 15402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15403 esac || 15404 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15405 esac 15406 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15407 as_fn_append ac_file_inputs " '$ac_f'" 15408 done 15409 15410 # Let's still pretend it is `configure' which instantiates (i.e., don't 15411 # use $as_me), people would be surprised to read: 15412 # /* config.h. Generated by config.status. */ 15413 configure_input='Generated from '` 15414 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15415 `' by configure.' 15416 if test x"$ac_file" != x-; then 15417 configure_input="$ac_file. $configure_input" 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15419$as_echo "$as_me: creating $ac_file" >&6;} 15420 fi 15421 # Neutralize special characters interpreted by sed in replacement strings. 15422 case $configure_input in #( 15423 *\&* | *\|* | *\\* ) 15424 ac_sed_conf_input=`$as_echo "$configure_input" | 15425 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15426 *) ac_sed_conf_input=$configure_input;; 15427 esac 15428 15429 case $ac_tag in 15430 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15432 esac 15433 ;; 15434 esac 15435 15436 ac_dir=`$as_dirname -- "$ac_file" || 15437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15438 X"$ac_file" : 'X\(//\)[^/]' \| \ 15439 X"$ac_file" : 'X\(//\)$' \| \ 15440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15441$as_echo X"$ac_file" | 15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15443 s//\1/ 15444 q 15445 } 15446 /^X\(\/\/\)[^/].*/{ 15447 s//\1/ 15448 q 15449 } 15450 /^X\(\/\/\)$/{ 15451 s//\1/ 15452 q 15453 } 15454 /^X\(\/\).*/{ 15455 s//\1/ 15456 q 15457 } 15458 s/.*/./; q'` 15459 as_dir="$ac_dir"; as_fn_mkdir_p 15460 ac_builddir=. 15461 15462case "$ac_dir" in 15463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15464*) 15465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15466 # A ".." for each directory in $ac_dir_suffix. 15467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15468 case $ac_top_builddir_sub in 15469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15471 esac ;; 15472esac 15473ac_abs_top_builddir=$ac_pwd 15474ac_abs_builddir=$ac_pwd$ac_dir_suffix 15475# for backward compatibility: 15476ac_top_builddir=$ac_top_build_prefix 15477 15478case $srcdir in 15479 .) # We are building in place. 15480 ac_srcdir=. 15481 ac_top_srcdir=$ac_top_builddir_sub 15482 ac_abs_top_srcdir=$ac_pwd ;; 15483 [\\/]* | ?:[\\/]* ) # Absolute name. 15484 ac_srcdir=$srcdir$ac_dir_suffix; 15485 ac_top_srcdir=$srcdir 15486 ac_abs_top_srcdir=$srcdir ;; 15487 *) # Relative name. 15488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15489 ac_top_srcdir=$ac_top_build_prefix$srcdir 15490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15491esac 15492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15493 15494 15495 case $ac_mode in 15496 :F) 15497 # 15498 # CONFIG_FILE 15499 # 15500 15501 case $INSTALL in 15502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15504 esac 15505 ac_MKDIR_P=$MKDIR_P 15506 case $MKDIR_P in 15507 [\\/$]* | ?:[\\/]* ) ;; 15508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15509 esac 15510_ACEOF 15511 15512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15513# If the template does not know about datarootdir, expand it. 15514# FIXME: This hack should be removed a few years after 2.60. 15515ac_datarootdir_hack=; ac_datarootdir_seen= 15516ac_sed_dataroot=' 15517/datarootdir/ { 15518 p 15519 q 15520} 15521/@datadir@/p 15522/@docdir@/p 15523/@infodir@/p 15524/@localedir@/p 15525/@mandir@/p' 15526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15527*datarootdir*) ac_datarootdir_seen=yes;; 15528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15530$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15531_ACEOF 15532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15533 ac_datarootdir_hack=' 15534 s&@datadir@&$datadir&g 15535 s&@docdir@&$docdir&g 15536 s&@infodir@&$infodir&g 15537 s&@localedir@&$localedir&g 15538 s&@mandir@&$mandir&g 15539 s&\\\${datarootdir}&$datarootdir&g' ;; 15540esac 15541_ACEOF 15542 15543# Neutralize VPATH when `$srcdir' = `.'. 15544# Shell code in configure.ac might set extrasub. 15545# FIXME: do we really want to maintain this feature? 15546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15547ac_sed_extra="$ac_vpsub 15548$extrasub 15549_ACEOF 15550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15551:t 15552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15553s|@configure_input@|$ac_sed_conf_input|;t t 15554s&@top_builddir@&$ac_top_builddir_sub&;t t 15555s&@top_build_prefix@&$ac_top_build_prefix&;t t 15556s&@srcdir@&$ac_srcdir&;t t 15557s&@abs_srcdir@&$ac_abs_srcdir&;t t 15558s&@top_srcdir@&$ac_top_srcdir&;t t 15559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15560s&@builddir@&$ac_builddir&;t t 15561s&@abs_builddir@&$ac_abs_builddir&;t t 15562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15563s&@INSTALL@&$ac_INSTALL&;t t 15564s&@MKDIR_P@&$ac_MKDIR_P&;t t 15565$ac_datarootdir_hack 15566" 15567eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15569 15570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15573 "$ac_tmp/out"`; test -z "$ac_out"; } && 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15575which seems to be undefined. Please make sure it is defined" >&5 15576$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15577which seems to be undefined. Please make sure it is defined" >&2;} 15578 15579 rm -f "$ac_tmp/stdin" 15580 case $ac_file in 15581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15583 esac \ 15584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15585 ;; 15586 :H) 15587 # 15588 # CONFIG_HEADER 15589 # 15590 if test x"$ac_file" != x-; then 15591 { 15592 $as_echo "/* $configure_input */" \ 15593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15594 } >"$ac_tmp/config.h" \ 15595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15598$as_echo "$as_me: $ac_file is unchanged" >&6;} 15599 else 15600 rm -f "$ac_file" 15601 mv "$ac_tmp/config.h" "$ac_file" \ 15602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15603 fi 15604 else 15605 $as_echo "/* $configure_input */" \ 15606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15607 || as_fn_error $? "could not create -" "$LINENO" 5 15608 fi 15609# Compute "$ac_file"'s index in $config_headers. 15610_am_arg="$ac_file" 15611_am_stamp_count=1 15612for _am_header in $config_headers :; do 15613 case $_am_header in 15614 $_am_arg | $_am_arg:* ) 15615 break ;; 15616 * ) 15617 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15618 esac 15619done 15620echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15621$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15622 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15623 X"$_am_arg" : 'X\(//\)$' \| \ 15624 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15625$as_echo X"$_am_arg" | 15626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15627 s//\1/ 15628 q 15629 } 15630 /^X\(\/\/\)[^/].*/{ 15631 s//\1/ 15632 q 15633 } 15634 /^X\(\/\/\)$/{ 15635 s//\1/ 15636 q 15637 } 15638 /^X\(\/\).*/{ 15639 s//\1/ 15640 q 15641 } 15642 s/.*/./; q'`/stamp-h$_am_stamp_count 15643 ;; 15644 15645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15646$as_echo "$as_me: executing $ac_file commands" >&6;} 15647 ;; 15648 esac 15649 15650 15651 case $ac_file$ac_mode in 15652 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15653 # Older Autoconf quotes --file arguments for eval, but not when files 15654 # are listed without --file. Let's play safe and only enable the eval 15655 # if we detect the quoting. 15656 # TODO: see whether this extra hack can be removed once we start 15657 # requiring Autoconf 2.70 or later. 15658 case $CONFIG_FILES in #( 15659 *\'*) : 15660 eval set x "$CONFIG_FILES" ;; #( 15661 *) : 15662 set x $CONFIG_FILES ;; #( 15663 *) : 15664 ;; 15665esac 15666 shift 15667 # Used to flag and report bootstrapping failures. 15668 am_rc=0 15669 for am_mf 15670 do 15671 # Strip MF so we end up with the name of the file. 15672 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15673 # Check whether this is an Automake generated Makefile which includes 15674 # dependency-tracking related rules and includes. 15675 # Grep'ing the whole file directly is not great: AIX grep has a line 15676 # limit of 2048, but all sed's we know have understand at least 4000. 15677 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15678 || continue 15679 am_dirpart=`$as_dirname -- "$am_mf" || 15680$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15681 X"$am_mf" : 'X\(//\)[^/]' \| \ 15682 X"$am_mf" : 'X\(//\)$' \| \ 15683 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15684$as_echo X"$am_mf" | 15685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15686 s//\1/ 15687 q 15688 } 15689 /^X\(\/\/\)[^/].*/{ 15690 s//\1/ 15691 q 15692 } 15693 /^X\(\/\/\)$/{ 15694 s//\1/ 15695 q 15696 } 15697 /^X\(\/\).*/{ 15698 s//\1/ 15699 q 15700 } 15701 s/.*/./; q'` 15702 am_filepart=`$as_basename -- "$am_mf" || 15703$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15704 X"$am_mf" : 'X\(//\)$' \| \ 15705 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15706$as_echo X/"$am_mf" | 15707 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15708 s//\1/ 15709 q 15710 } 15711 /^X\/\(\/\/\)$/{ 15712 s//\1/ 15713 q 15714 } 15715 /^X\/\(\/\).*/{ 15716 s//\1/ 15717 q 15718 } 15719 s/.*/./; q'` 15720 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15721 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15722 | $MAKE -f - am--depfiles" >&5 15723 (cd "$am_dirpart" \ 15724 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15725 | $MAKE -f - am--depfiles) >&5 2>&5 15726 ac_status=$? 15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15728 (exit $ac_status); } || am_rc=$? 15729 done 15730 if test $am_rc -ne 0; then 15731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15733as_fn_error $? "Something went wrong bootstrapping makefile fragments 15734 for automatic dependency tracking. If GNU make was not used, consider 15735 re-running the configure script with MAKE=\"gmake\" (or whatever is 15736 necessary). You can also try re-running configure with the 15737 '--disable-dependency-tracking' option to at least be able to build 15738 the package (albeit without support for automatic dependency tracking). 15739See \`config.log' for more details" "$LINENO" 5; } 15740 fi 15741 { am_dirpart=; unset am_dirpart;} 15742 { am_filepart=; unset am_filepart;} 15743 { am_mf=; unset am_mf;} 15744 { am_rc=; unset am_rc;} 15745 rm -f conftest-deps.mk 15746} 15747 ;; 15748 "libtool":C) 15749 15750 # See if we are running on zsh, and set the options that allow our 15751 # commands through without removal of \ escapes. 15752 if test -n "${ZSH_VERSION+set}"; then 15753 setopt NO_GLOB_SUBST 15754 fi 15755 15756 cfgfile=${ofile}T 15757 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15758 $RM "$cfgfile" 15759 15760 cat <<_LT_EOF >> "$cfgfile" 15761#! $SHELL 15762# Generated automatically by $as_me ($PACKAGE) $VERSION 15763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15764# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15765 15766# Provide generalized library-building support services. 15767# Written by Gordon Matzigkeit, 1996 15768 15769# Copyright (C) 2014 Free Software Foundation, Inc. 15770# This is free software; see the source for copying conditions. There is NO 15771# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15772 15773# GNU Libtool is free software; you can redistribute it and/or modify 15774# it under the terms of the GNU General Public License as published by 15775# the Free Software Foundation; either version 2 of of the License, or 15776# (at your option) any later version. 15777# 15778# As a special exception to the GNU General Public License, if you 15779# distribute this file as part of a program or library that is built 15780# using GNU Libtool, you may include this file under the same 15781# distribution terms that you use for the rest of that program. 15782# 15783# GNU Libtool is distributed in the hope that it will be useful, but 15784# WITHOUT ANY WARRANTY; without even the implied warranty of 15785# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15786# GNU General Public License for more details. 15787# 15788# You should have received a copy of the GNU General Public License 15789# along with this program. If not, see <http://www.gnu.org/licenses/>. 15790 15791 15792# The names of the tagged configurations supported by this script. 15793available_tags='' 15794 15795# Configured defaults for sys_lib_dlsearch_path munging. 15796: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15797 15798# ### BEGIN LIBTOOL CONFIG 15799 15800# Which release of libtool.m4 was used? 15801macro_version=$macro_version 15802macro_revision=$macro_revision 15803 15804# Whether or not to build shared libraries. 15805build_libtool_libs=$enable_shared 15806 15807# Whether or not to build static libraries. 15808build_old_libs=$enable_static 15809 15810# What type of objects to build. 15811pic_mode=$pic_mode 15812 15813# Whether or not to optimize for fast installation. 15814fast_install=$enable_fast_install 15815 15816# Shared archive member basename,for filename based shared library versioning on AIX. 15817shared_archive_member_spec=$shared_archive_member_spec 15818 15819# Shell to use when invoking shell scripts. 15820SHELL=$lt_SHELL 15821 15822# An echo program that protects backslashes. 15823ECHO=$lt_ECHO 15824 15825# The PATH separator for the build system. 15826PATH_SEPARATOR=$lt_PATH_SEPARATOR 15827 15828# The host system. 15829host_alias=$host_alias 15830host=$host 15831host_os=$host_os 15832 15833# The build system. 15834build_alias=$build_alias 15835build=$build 15836build_os=$build_os 15837 15838# A sed program that does not truncate output. 15839SED=$lt_SED 15840 15841# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15842Xsed="\$SED -e 1s/^X//" 15843 15844# A grep program that handles long lines. 15845GREP=$lt_GREP 15846 15847# An ERE matcher. 15848EGREP=$lt_EGREP 15849 15850# A literal string matcher. 15851FGREP=$lt_FGREP 15852 15853# A BSD- or MS-compatible name lister. 15854NM=$lt_NM 15855 15856# Whether we need soft or hard links. 15857LN_S=$lt_LN_S 15858 15859# What is the maximum length of a command? 15860max_cmd_len=$max_cmd_len 15861 15862# Object file suffix (normally "o"). 15863objext=$ac_objext 15864 15865# Executable file suffix (normally ""). 15866exeext=$exeext 15867 15868# whether the shell understands "unset". 15869lt_unset=$lt_unset 15870 15871# turn spaces into newlines. 15872SP2NL=$lt_lt_SP2NL 15873 15874# turn newlines into spaces. 15875NL2SP=$lt_lt_NL2SP 15876 15877# convert \$build file names to \$host format. 15878to_host_file_cmd=$lt_cv_to_host_file_cmd 15879 15880# convert \$build files to toolchain format. 15881to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15882 15883# An object symbol dumper. 15884OBJDUMP=$lt_OBJDUMP 15885 15886# Method to check whether dependent libraries are shared objects. 15887deplibs_check_method=$lt_deplibs_check_method 15888 15889# Command to use when deplibs_check_method = "file_magic". 15890file_magic_cmd=$lt_file_magic_cmd 15891 15892# How to find potential files when deplibs_check_method = "file_magic". 15893file_magic_glob=$lt_file_magic_glob 15894 15895# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15896want_nocaseglob=$lt_want_nocaseglob 15897 15898# DLL creation program. 15899DLLTOOL=$lt_DLLTOOL 15900 15901# Command to associate shared and link libraries. 15902sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15903 15904# The archiver. 15905AR=$lt_AR 15906 15907# Flags to create an archive. 15908AR_FLAGS=$lt_AR_FLAGS 15909 15910# How to feed a file listing to the archiver. 15911archiver_list_spec=$lt_archiver_list_spec 15912 15913# A symbol stripping program. 15914STRIP=$lt_STRIP 15915 15916# Commands used to install an old-style archive. 15917RANLIB=$lt_RANLIB 15918old_postinstall_cmds=$lt_old_postinstall_cmds 15919old_postuninstall_cmds=$lt_old_postuninstall_cmds 15920 15921# Whether to use a lock for old archive extraction. 15922lock_old_archive_extraction=$lock_old_archive_extraction 15923 15924# A C compiler. 15925LTCC=$lt_CC 15926 15927# LTCC compiler flags. 15928LTCFLAGS=$lt_CFLAGS 15929 15930# Take the output of nm and produce a listing of raw symbols and C names. 15931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15932 15933# Transform the output of nm in a proper C declaration. 15934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15935 15936# Transform the output of nm into a list of symbols to manually relocate. 15937global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15938 15939# Transform the output of nm in a C name address pair. 15940global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15941 15942# Transform the output of nm in a C name address pair when lib prefix is needed. 15943global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15944 15945# The name lister interface. 15946nm_interface=$lt_lt_cv_nm_interface 15947 15948# Specify filename containing input files for \$NM. 15949nm_file_list_spec=$lt_nm_file_list_spec 15950 15951# The root where to search for dependent libraries,and where our libraries should be installed. 15952lt_sysroot=$lt_sysroot 15953 15954# Command to truncate a binary pipe. 15955lt_truncate_bin=$lt_lt_cv_truncate_bin 15956 15957# The name of the directory that contains temporary libtool files. 15958objdir=$objdir 15959 15960# Used to examine libraries when file_magic_cmd begins with "file". 15961MAGIC_CMD=$MAGIC_CMD 15962 15963# Must we lock files when doing compilation? 15964need_locks=$lt_need_locks 15965 15966# Manifest tool. 15967MANIFEST_TOOL=$lt_MANIFEST_TOOL 15968 15969# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15970DSYMUTIL=$lt_DSYMUTIL 15971 15972# Tool to change global to local symbols on Mac OS X. 15973NMEDIT=$lt_NMEDIT 15974 15975# Tool to manipulate fat objects and archives on Mac OS X. 15976LIPO=$lt_LIPO 15977 15978# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15979OTOOL=$lt_OTOOL 15980 15981# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15982OTOOL64=$lt_OTOOL64 15983 15984# Old archive suffix (normally "a"). 15985libext=$libext 15986 15987# Shared library suffix (normally ".so"). 15988shrext_cmds=$lt_shrext_cmds 15989 15990# The commands to extract the exported symbol list from a shared archive. 15991extract_expsyms_cmds=$lt_extract_expsyms_cmds 15992 15993# Variables whose values should be saved in libtool wrapper scripts and 15994# restored at link time. 15995variables_saved_for_relink=$lt_variables_saved_for_relink 15996 15997# Do we need the "lib" prefix for modules? 15998need_lib_prefix=$need_lib_prefix 15999 16000# Do we need a version for libraries? 16001need_version=$need_version 16002 16003# Library versioning type. 16004version_type=$version_type 16005 16006# Shared library runtime path variable. 16007runpath_var=$runpath_var 16008 16009# Shared library path variable. 16010shlibpath_var=$shlibpath_var 16011 16012# Is shlibpath searched before the hard-coded library search path? 16013shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16014 16015# Format of library name prefix. 16016libname_spec=$lt_libname_spec 16017 16018# List of archive names. First name is the real one, the rest are links. 16019# The last name is the one that the linker finds with -lNAME 16020library_names_spec=$lt_library_names_spec 16021 16022# The coded name of the library, if different from the real name. 16023soname_spec=$lt_soname_spec 16024 16025# Permission mode override for installation of shared libraries. 16026install_override_mode=$lt_install_override_mode 16027 16028# Command to use after installation of a shared archive. 16029postinstall_cmds=$lt_postinstall_cmds 16030 16031# Command to use after uninstallation of a shared archive. 16032postuninstall_cmds=$lt_postuninstall_cmds 16033 16034# Commands used to finish a libtool library installation in a directory. 16035finish_cmds=$lt_finish_cmds 16036 16037# As "finish_cmds", except a single script fragment to be evaled but 16038# not shown. 16039finish_eval=$lt_finish_eval 16040 16041# Whether we should hardcode library paths into libraries. 16042hardcode_into_libs=$hardcode_into_libs 16043 16044# Compile-time system search path for libraries. 16045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16046 16047# Detected run-time system search path for libraries. 16048sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16049 16050# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16051configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16052 16053# Whether dlopen is supported. 16054dlopen_support=$enable_dlopen 16055 16056# Whether dlopen of programs is supported. 16057dlopen_self=$enable_dlopen_self 16058 16059# Whether dlopen of statically linked programs is supported. 16060dlopen_self_static=$enable_dlopen_self_static 16061 16062# Commands to strip libraries. 16063old_striplib=$lt_old_striplib 16064striplib=$lt_striplib 16065 16066 16067# The linker used to build libraries. 16068LD=$lt_LD 16069 16070# How to create reloadable object files. 16071reload_flag=$lt_reload_flag 16072reload_cmds=$lt_reload_cmds 16073 16074# Commands used to build an old-style archive. 16075old_archive_cmds=$lt_old_archive_cmds 16076 16077# A language specific compiler. 16078CC=$lt_compiler 16079 16080# Is the compiler the GNU compiler? 16081with_gcc=$GCC 16082 16083# Compiler flag to turn off builtin functions. 16084no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16085 16086# Additional compiler flags for building library objects. 16087pic_flag=$lt_lt_prog_compiler_pic 16088 16089# How to pass a linker flag through the compiler. 16090wl=$lt_lt_prog_compiler_wl 16091 16092# Compiler flag to prevent dynamic linking. 16093link_static_flag=$lt_lt_prog_compiler_static 16094 16095# Does compiler simultaneously support -c and -o options? 16096compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16097 16098# Whether or not to add -lc for building shared libraries. 16099build_libtool_need_lc=$archive_cmds_need_lc 16100 16101# Whether or not to disallow shared libs when runtime libs are static. 16102allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16103 16104# Compiler flag to allow reflexive dlopens. 16105export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16106 16107# Compiler flag to generate shared objects directly from archives. 16108whole_archive_flag_spec=$lt_whole_archive_flag_spec 16109 16110# Whether the compiler copes with passing no objects directly. 16111compiler_needs_object=$lt_compiler_needs_object 16112 16113# Create an old-style archive from a shared archive. 16114old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16115 16116# Create a temporary old-style archive to link instead of a shared archive. 16117old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16118 16119# Commands used to build a shared archive. 16120archive_cmds=$lt_archive_cmds 16121archive_expsym_cmds=$lt_archive_expsym_cmds 16122 16123# Commands used to build a loadable module if different from building 16124# a shared archive. 16125module_cmds=$lt_module_cmds 16126module_expsym_cmds=$lt_module_expsym_cmds 16127 16128# Whether we are building with GNU ld or not. 16129with_gnu_ld=$lt_with_gnu_ld 16130 16131# Flag that allows shared libraries with undefined symbols to be built. 16132allow_undefined_flag=$lt_allow_undefined_flag 16133 16134# Flag that enforces no undefined symbols. 16135no_undefined_flag=$lt_no_undefined_flag 16136 16137# Flag to hardcode \$libdir into a binary during linking. 16138# This must work even if \$libdir does not exist 16139hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16140 16141# Whether we need a single "-rpath" flag with a separated argument. 16142hardcode_libdir_separator=$lt_hardcode_libdir_separator 16143 16144# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16145# DIR into the resulting binary. 16146hardcode_direct=$hardcode_direct 16147 16148# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16149# DIR into the resulting binary and the resulting library dependency is 16150# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16151# library is relocated. 16152hardcode_direct_absolute=$hardcode_direct_absolute 16153 16154# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16155# into the resulting binary. 16156hardcode_minus_L=$hardcode_minus_L 16157 16158# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16159# into the resulting binary. 16160hardcode_shlibpath_var=$hardcode_shlibpath_var 16161 16162# Set to "yes" if building a shared library automatically hardcodes DIR 16163# into the library and all subsequent libraries and executables linked 16164# against it. 16165hardcode_automatic=$hardcode_automatic 16166 16167# Set to yes if linker adds runtime paths of dependent libraries 16168# to runtime path list. 16169inherit_rpath=$inherit_rpath 16170 16171# Whether libtool must link a program against all its dependency libraries. 16172link_all_deplibs=$link_all_deplibs 16173 16174# Set to "yes" if exported symbols are required. 16175always_export_symbols=$always_export_symbols 16176 16177# The commands to list exported symbols. 16178export_symbols_cmds=$lt_export_symbols_cmds 16179 16180# Symbols that should not be listed in the preloaded symbols. 16181exclude_expsyms=$lt_exclude_expsyms 16182 16183# Symbols that must always be exported. 16184include_expsyms=$lt_include_expsyms 16185 16186# Commands necessary for linking programs (against libraries) with templates. 16187prelink_cmds=$lt_prelink_cmds 16188 16189# Commands necessary for finishing linking programs. 16190postlink_cmds=$lt_postlink_cmds 16191 16192# Specify filename containing input files. 16193file_list_spec=$lt_file_list_spec 16194 16195# How to hardcode a shared library path into an executable. 16196hardcode_action=$hardcode_action 16197 16198# ### END LIBTOOL CONFIG 16199 16200_LT_EOF 16201 16202 cat <<'_LT_EOF' >> "$cfgfile" 16203 16204# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16205 16206# func_munge_path_list VARIABLE PATH 16207# ----------------------------------- 16208# VARIABLE is name of variable containing _space_ separated list of 16209# directories to be munged by the contents of PATH, which is string 16210# having a format: 16211# "DIR[:DIR]:" 16212# string "DIR[ DIR]" will be prepended to VARIABLE 16213# ":DIR[:DIR]" 16214# string "DIR[ DIR]" will be appended to VARIABLE 16215# "DIRP[:DIRP]::[DIRA:]DIRA" 16216# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16217# "DIRA[ DIRA]" will be appended to VARIABLE 16218# "DIR[:DIR]" 16219# VARIABLE will be replaced by "DIR[ DIR]" 16220func_munge_path_list () 16221{ 16222 case x$2 in 16223 x) 16224 ;; 16225 *:) 16226 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16227 ;; 16228 x:*) 16229 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16230 ;; 16231 *::*) 16232 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16233 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16234 ;; 16235 *) 16236 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16237 ;; 16238 esac 16239} 16240 16241 16242# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16243func_cc_basename () 16244{ 16245 for cc_temp in $*""; do 16246 case $cc_temp in 16247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16249 \-*) ;; 16250 *) break;; 16251 esac 16252 done 16253 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16254} 16255 16256 16257# ### END FUNCTIONS SHARED WITH CONFIGURE 16258 16259_LT_EOF 16260 16261 case $host_os in 16262 aix3*) 16263 cat <<\_LT_EOF >> "$cfgfile" 16264# AIX sometimes has problems with the GCC collect2 program. For some 16265# reason, if we set the COLLECT_NAMES environment variable, the problems 16266# vanish in a puff of smoke. 16267if test set != "${COLLECT_NAMES+set}"; then 16268 COLLECT_NAMES= 16269 export COLLECT_NAMES 16270fi 16271_LT_EOF 16272 ;; 16273 esac 16274 16275 16276ltmain=$ac_aux_dir/ltmain.sh 16277 16278 16279 # We use sed instead of cat because bash on DJGPP gets confused if 16280 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16281 # text mode, it properly converts lines to CR/LF. This bash problem 16282 # is reportedly fixed, but why not run on old versions too? 16283 sed '$q' "$ltmain" >> "$cfgfile" \ 16284 || (rm -f "$cfgfile"; exit 1) 16285 16286 mv -f "$cfgfile" "$ofile" || 16287 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16288 chmod +x "$ofile" 16289 16290 ;; 16291 16292 esac 16293done # for ac_tag 16294 16295 16296as_fn_exit 0 16297_ACEOF 16298ac_clean_files=$ac_clean_files_save 16299 16300test $ac_write_fail = 0 || 16301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16302 16303 16304# configure is writing to config.log, and then calls config.status. 16305# config.status does its own redirection, appending to config.log. 16306# Unfortunately, on DOS this fails, as config.log is still kept open 16307# by configure, so config.status won't be able to write to it; its 16308# output is simply discarded. So we exec the FD to /dev/null, 16309# effectively closing config.log, so it can be properly (re)opened and 16310# appended to by config.status. When coming back to configure, we 16311# need to make the FD available again. 16312if test "$no_create" != yes; then 16313 ac_cs_success=: 16314 ac_config_status_args= 16315 test "$silent" = yes && 16316 ac_config_status_args="$ac_config_status_args --quiet" 16317 exec 5>/dev/null 16318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16319 exec 5>>config.log 16320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16321 # would make configure fail if this is the last instruction. 16322 $ac_cs_success || as_fn_exit 1 16323fi 16324if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16326$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16327fi 16328 16329