1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for iperf 3.11. 4# 5# Report bugs to <https://github.com/esnet/iperf>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell [email protected] and 279$0: https://github.com/esnet/iperf about your system, 280$0: including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='iperf' 623PACKAGE_TARNAME='iperf' 624PACKAGE_VERSION='3.11' 625PACKAGE_STRING='iperf 3.11' 626PACKAGE_BUGREPORT='https://github.com/esnet/iperf' 627PACKAGE_URL='https://software.es.net/iperf/' 628 629# Factoring default headers for most tests. 630ac_includes_default="\ 631#include <stddef.h> 632#ifdef HAVE_STDIO_H 633# include <stdio.h> 634#endif 635#ifdef HAVE_STDLIB_H 636# include <stdlib.h> 637#endif 638#ifdef HAVE_STRING_H 639# include <string.h> 640#endif 641#ifdef HAVE_INTTYPES_H 642# include <inttypes.h> 643#endif 644#ifdef HAVE_STDINT_H 645# include <stdint.h> 646#endif 647#ifdef HAVE_STRINGS_H 648# include <strings.h> 649#endif 650#ifdef HAVE_SYS_TYPES_H 651# include <sys/types.h> 652#endif 653#ifdef HAVE_SYS_STAT_H 654# include <sys/stat.h> 655#endif 656#ifdef HAVE_UNISTD_H 657# include <unistd.h> 658#endif" 659 660ac_header_c_list= 661ac_subst_vars='am__EXEEXT_FALSE 662am__EXEEXT_TRUE 663LTLIBOBJS 664LIBOBJS 665OPENSSL_LDFLAGS 666OPENSSL_LIBS 667OPENSSL_INCLUDES 668PKG_CONFIG 669ENABLE_PROFILING_FALSE 670ENABLE_PROFILING_TRUE 671MAINT 672MAINTAINER_MODE_FALSE 673MAINTAINER_MODE_TRUE 674LT_SYS_LIBRARY_PATH 675OTOOL64 676OTOOL 677LIPO 678NMEDIT 679DSYMUTIL 680MANIFEST_TOOL 681RANLIB 682ac_ct_AR 683AR 684DLLTOOL 685OBJDUMP 686FILECMD 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693EGREP 694GREP 695SED 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712host_os 713host_vendor 714host_cpu 715host 716build_os 717build_vendor 718build_cpu 719build 720LIBTOOL 721AM_BACKSLASH 722AM_DEFAULT_VERBOSITY 723AM_DEFAULT_V 724AM_V 725CSCOPE 726ETAGS 727CTAGS 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751ENABLE_STATIC_BIN_FALSE 752ENABLE_STATIC_BIN_TRUE 753target_alias 754host_alias 755build_alias 756LIBS 757ECHO_T 758ECHO_N 759ECHO_C 760DEFS 761mandir 762localedir 763libdir 764psdir 765pdfdir 766dvidir 767htmldir 768infodir 769docdir 770oldincludedir 771includedir 772runstatedir 773localstatedir 774sharedstatedir 775sysconfdir 776datadir 777datarootdir 778libexecdir 779sbindir 780bindir 781program_transform_name 782prefix 783exec_prefix 784PACKAGE_URL 785PACKAGE_BUGREPORT 786PACKAGE_STRING 787PACKAGE_VERSION 788PACKAGE_TARNAME 789PACKAGE_NAME 790PATH_SEPARATOR 791SHELL 792am__quote' 793ac_subst_files='' 794ac_user_opts=' 795enable_option_checking 796enable_static_bin 797enable_silent_rules 798enable_shared 799enable_static 800with_pic 801enable_fast_install 802with_aix_soname 803enable_dependency_tracking 804with_gnu_ld 805with_sysroot 806enable_libtool_lock 807enable_maintainer_mode 808enable_profiling 809with_sctp 810with_openssl 811' 812 ac_precious_vars='build_alias 813host_alias 814target_alias 815CC 816CFLAGS 817LDFLAGS 818LIBS 819CPPFLAGS 820LT_SYS_LIBRARY_PATH' 821 822 823# Initialize some variables set by options. 824ac_init_help= 825ac_init_version=false 826ac_unrecognized_opts= 827ac_unrecognized_sep= 828# The variables have the same names as the options, with 829# dashes changed to underlines. 830cache_file=/dev/null 831exec_prefix=NONE 832no_create= 833no_recursion= 834prefix=NONE 835program_prefix=NONE 836program_suffix=NONE 837program_transform_name=s,x,x, 838silent= 839site= 840srcdir= 841verbose= 842x_includes=NONE 843x_libraries=NONE 844 845# Installation directory options. 846# These are left unexpanded so users can "make install exec_prefix=/foo" 847# and all the variables that are supposed to be based on exec_prefix 848# by default will actually change. 849# Use braces instead of parens because sh, perl, etc. also accept them. 850# (The list follows the same order as the GNU Coding Standards.) 851bindir='${exec_prefix}/bin' 852sbindir='${exec_prefix}/sbin' 853libexecdir='${exec_prefix}/libexec' 854datarootdir='${prefix}/share' 855datadir='${datarootdir}' 856sysconfdir='${prefix}/etc' 857sharedstatedir='${prefix}/com' 858localstatedir='${prefix}/var' 859runstatedir='${localstatedir}/run' 860includedir='${prefix}/include' 861oldincludedir='/usr/include' 862docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 863infodir='${datarootdir}/info' 864htmldir='${docdir}' 865dvidir='${docdir}' 866pdfdir='${docdir}' 867psdir='${docdir}' 868libdir='${exec_prefix}/lib' 869localedir='${datarootdir}/locale' 870mandir='${datarootdir}/man' 871 872ac_prev= 873ac_dashdash= 874for ac_option 875do 876 # If the previous option needs an argument, assign it. 877 if test -n "$ac_prev"; then 878 eval $ac_prev=\$ac_option 879 ac_prev= 880 continue 881 fi 882 883 case $ac_option in 884 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 885 *=) ac_optarg= ;; 886 *) ac_optarg=yes ;; 887 esac 888 889 case $ac_dashdash$ac_option in 890 --) 891 ac_dashdash=yes ;; 892 893 -bindir | --bindir | --bindi | --bind | --bin | --bi) 894 ac_prev=bindir ;; 895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 896 bindir=$ac_optarg ;; 897 898 -build | --build | --buil | --bui | --bu) 899 ac_prev=build_alias ;; 900 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 901 build_alias=$ac_optarg ;; 902 903 -cache-file | --cache-file | --cache-fil | --cache-fi \ 904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 905 ac_prev=cache_file ;; 906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 908 cache_file=$ac_optarg ;; 909 910 --config-cache | -C) 911 cache_file=config.cache ;; 912 913 -datadir | --datadir | --datadi | --datad) 914 ac_prev=datadir ;; 915 -datadir=* | --datadir=* | --datadi=* | --datad=*) 916 datadir=$ac_optarg ;; 917 918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 919 | --dataroo | --dataro | --datar) 920 ac_prev=datarootdir ;; 921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 923 datarootdir=$ac_optarg ;; 924 925 -disable-* | --disable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: \`$ac_useropt'" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: \`$ac_useropt'" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960"enable_$ac_useropt" 961"*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=\$ac_optarg ;; 966 967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 969 | --exec | --exe | --ex) 970 ac_prev=exec_prefix ;; 971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 973 | --exec=* | --exe=* | --ex=*) 974 exec_prefix=$ac_optarg ;; 975 976 -gas | --gas | --ga | --g) 977 # Obsolete; use --with-gas. 978 with_gas=yes ;; 979 980 -help | --help | --hel | --he | -h) 981 ac_init_help=long ;; 982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 983 ac_init_help=recursive ;; 984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 985 ac_init_help=short ;; 986 987 -host | --host | --hos | --ho) 988 ac_prev=host_alias ;; 989 -host=* | --host=* | --hos=* | --ho=*) 990 host_alias=$ac_optarg ;; 991 992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 993 ac_prev=htmldir ;; 994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 995 | --ht=*) 996 htmldir=$ac_optarg ;; 997 998 -includedir | --includedir | --includedi | --included | --include \ 999 | --includ | --inclu | --incl | --inc) 1000 ac_prev=includedir ;; 1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1002 | --includ=* | --inclu=* | --incl=* | --inc=*) 1003 includedir=$ac_optarg ;; 1004 1005 -infodir | --infodir | --infodi | --infod | --info | --inf) 1006 ac_prev=infodir ;; 1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1008 infodir=$ac_optarg ;; 1009 1010 -libdir | --libdir | --libdi | --libd) 1011 ac_prev=libdir ;; 1012 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1013 libdir=$ac_optarg ;; 1014 1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1016 | --libexe | --libex | --libe) 1017 ac_prev=libexecdir ;; 1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1019 | --libexe=* | --libex=* | --libe=*) 1020 libexecdir=$ac_optarg ;; 1021 1022 -localedir | --localedir | --localedi | --localed | --locale) 1023 ac_prev=localedir ;; 1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1025 localedir=$ac_optarg ;; 1026 1027 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1028 | --localstate | --localstat | --localsta | --localst | --locals) 1029 ac_prev=localstatedir ;; 1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1032 localstatedir=$ac_optarg ;; 1033 1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1035 ac_prev=mandir ;; 1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1037 mandir=$ac_optarg ;; 1038 1039 -nfp | --nfp | --nf) 1040 # Obsolete; use --without-fp. 1041 with_fp=no ;; 1042 1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1044 | --no-cr | --no-c | -n) 1045 no_create=yes ;; 1046 1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1049 no_recursion=yes ;; 1050 1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1053 | --oldin | --oldi | --old | --ol | --o) 1054 ac_prev=oldincludedir ;; 1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1058 oldincludedir=$ac_optarg ;; 1059 1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1061 ac_prev=prefix ;; 1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1063 prefix=$ac_optarg ;; 1064 1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1066 | --program-pre | --program-pr | --program-p) 1067 ac_prev=program_prefix ;; 1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1070 program_prefix=$ac_optarg ;; 1071 1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1073 | --program-suf | --program-su | --program-s) 1074 ac_prev=program_suffix ;; 1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1077 program_suffix=$ac_optarg ;; 1078 1079 -program-transform-name | --program-transform-name \ 1080 | --program-transform-nam | --program-transform-na \ 1081 | --program-transform-n | --program-transform- \ 1082 | --program-transform | --program-transfor \ 1083 | --program-transfo | --program-transf \ 1084 | --program-trans | --program-tran \ 1085 | --progr-tra | --program-tr | --program-t) 1086 ac_prev=program_transform_name ;; 1087 -program-transform-name=* | --program-transform-name=* \ 1088 | --program-transform-nam=* | --program-transform-na=* \ 1089 | --program-transform-n=* | --program-transform-=* \ 1090 | --program-transform=* | --program-transfor=* \ 1091 | --program-transfo=* | --program-transf=* \ 1092 | --program-trans=* | --program-tran=* \ 1093 | --progr-tra=* | --program-tr=* | --program-t=*) 1094 program_transform_name=$ac_optarg ;; 1095 1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1097 ac_prev=pdfdir ;; 1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1099 pdfdir=$ac_optarg ;; 1100 1101 -psdir | --psdir | --psdi | --psd | --ps) 1102 ac_prev=psdir ;; 1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1104 psdir=$ac_optarg ;; 1105 1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1107 | -silent | --silent | --silen | --sile | --sil) 1108 silent=yes ;; 1109 1110 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1111 | --runstate | --runstat | --runsta | --runst | --runs \ 1112 | --run | --ru | --r) 1113 ac_prev=runstatedir ;; 1114 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1115 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1116 | --run=* | --ru=* | --r=*) 1117 runstatedir=$ac_optarg ;; 1118 1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1120 ac_prev=sbindir ;; 1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1122 | --sbi=* | --sb=*) 1123 sbindir=$ac_optarg ;; 1124 1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1127 | --sharedst | --shareds | --shared | --share | --shar \ 1128 | --sha | --sh) 1129 ac_prev=sharedstatedir ;; 1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1133 | --sha=* | --sh=*) 1134 sharedstatedir=$ac_optarg ;; 1135 1136 -site | --site | --sit) 1137 ac_prev=site ;; 1138 -site=* | --site=* | --sit=*) 1139 site=$ac_optarg ;; 1140 1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1142 ac_prev=srcdir ;; 1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1144 srcdir=$ac_optarg ;; 1145 1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1147 | --syscon | --sysco | --sysc | --sys | --sy) 1148 ac_prev=sysconfdir ;; 1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1151 sysconfdir=$ac_optarg ;; 1152 1153 -target | --target | --targe | --targ | --tar | --ta | --t) 1154 ac_prev=target_alias ;; 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1156 target_alias=$ac_optarg ;; 1157 1158 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1159 verbose=yes ;; 1160 1161 -version | --version | --versio | --versi | --vers | -V) 1162 ac_init_version=: ;; 1163 1164 -with-* | --with-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: \`$ac_useropt'" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=\$ac_optarg ;; 1179 1180 -without-* | --without-*) 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1182 # Reject names that are not valid shell variable names. 1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1184 as_fn_error $? "invalid package name: \`$ac_useropt'" 1185 ac_useropt_orig=$ac_useropt 1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1187 case $ac_user_opts in 1188 *" 1189"with_$ac_useropt" 1190"*) ;; 1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1192 ac_unrecognized_sep=', ';; 1193 esac 1194 eval with_$ac_useropt=no ;; 1195 1196 --x) 1197 # Obsolete; use --with-x. 1198 with_x=yes ;; 1199 1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1201 | --x-incl | --x-inc | --x-in | --x-i) 1202 ac_prev=x_includes ;; 1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1205 x_includes=$ac_optarg ;; 1206 1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1209 ac_prev=x_libraries ;; 1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1212 x_libraries=$ac_optarg ;; 1213 1214 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1215Try \`$0 --help' for more information" 1216 ;; 1217 1218 *=*) 1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1220 # Reject names that are not valid shell variable names. 1221 case $ac_envvar in #( 1222 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1224 esac 1225 eval $ac_envvar=\$ac_optarg 1226 export $ac_envvar ;; 1227 1228 *) 1229 # FIXME: should be removed in autoconf 3.0. 1230 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1232 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1234 ;; 1235 1236 esac 1237done 1238 1239if test -n "$ac_prev"; then 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1241 as_fn_error $? "missing argument to $ac_option" 1242fi 1243 1244if test -n "$ac_unrecognized_opts"; then 1245 case $enable_option_checking in 1246 no) ;; 1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1248 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1249 esac 1250fi 1251 1252# Check all directory arguments for consistency. 1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1254 datadir sysconfdir sharedstatedir localstatedir includedir \ 1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1256 libdir localedir mandir runstatedir 1257do 1258 eval ac_val=\$$ac_var 1259 # Remove trailing slashes. 1260 case $ac_val in 1261 */ ) 1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1263 eval $ac_var=\$ac_val;; 1264 esac 1265 # Be sure to have absolute directory names. 1266 case $ac_val in 1267 [\\/$]* | ?:[\\/]* ) continue;; 1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1269 esac 1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1271done 1272 1273# There might be people who depend on the old broken behavior: `$host' 1274# used to hold the argument of --host etc. 1275# FIXME: To remove some day. 1276build=$build_alias 1277host=$host_alias 1278target=$target_alias 1279 1280# FIXME: To remove some day. 1281if test "x$host_alias" != x; then 1282 if test "x$build_alias" = x; then 1283 cross_compiling=maybe 1284 elif test "x$build_alias" != "x$host_alias"; then 1285 cross_compiling=yes 1286 fi 1287fi 1288 1289ac_tool_prefix= 1290test -n "$host_alias" && ac_tool_prefix=$host_alias- 1291 1292test "$silent" = yes && exec 6>/dev/null 1293 1294 1295ac_pwd=`pwd` && test -n "$ac_pwd" && 1296ac_ls_di=`ls -di .` && 1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1298 as_fn_error $? "working directory cannot be determined" 1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1300 as_fn_error $? "pwd does not report name of working directory" 1301 1302 1303# Find the source files, if location was not specified. 1304if test -z "$srcdir"; then 1305 ac_srcdir_defaulted=yes 1306 # Try the directory containing this script, then the parent directory. 1307 ac_confdir=`$as_dirname -- "$as_myself" || 1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1309 X"$as_myself" : 'X\(//\)[^/]' \| \ 1310 X"$as_myself" : 'X\(//\)$' \| \ 1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1312printf "%s\n" X"$as_myself" | 1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)[^/].*/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\).*/{ 1326 s//\1/ 1327 q 1328 } 1329 s/.*/./; q'` 1330 srcdir=$ac_confdir 1331 if test ! -r "$srcdir/$ac_unique_file"; then 1332 srcdir=.. 1333 fi 1334else 1335 ac_srcdir_defaulted=no 1336fi 1337if test ! -r "$srcdir/$ac_unique_file"; then 1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1340fi 1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1342ac_abs_confdir=`( 1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1344 pwd)` 1345# When building in place, set srcdir=. 1346if test "$ac_abs_confdir" = "$ac_pwd"; then 1347 srcdir=. 1348fi 1349# Remove unnecessary trailing slashes from srcdir. 1350# Double slashes in file names in object file debugging info 1351# mess up M-x gdb in Emacs. 1352case $srcdir in 1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1354esac 1355for ac_var in $ac_precious_vars; do 1356 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_env_${ac_var}_value=\$${ac_var} 1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1360done 1361 1362# 1363# Report the --help message. 1364# 1365if test "$ac_init_help" = "long"; then 1366 # Omit some internal or obsolete options to make the list less imposing. 1367 # This message is too long to be a string in the A/UX 3.1 sh. 1368 cat <<_ACEOF 1369\`configure' configures iperf 3.11 to adapt to many kinds of systems. 1370 1371Usage: $0 [OPTION]... [VAR=VALUE]... 1372 1373To assign environment variables (e.g., CC, CFLAGS...), specify them as 1374VAR=VALUE. See below for descriptions of some of the useful variables. 1375 1376Defaults for the options are specified in brackets. 1377 1378Configuration: 1379 -h, --help display this help and exit 1380 --help=short display options specific to this package 1381 --help=recursive display the short help of all the included packages 1382 -V, --version display version information and exit 1383 -q, --quiet, --silent do not print \`checking ...' messages 1384 --cache-file=FILE cache test results in FILE [disabled] 1385 -C, --config-cache alias for \`--cache-file=config.cache' 1386 -n, --no-create do not create output files 1387 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1388 1389Installation directories: 1390 --prefix=PREFIX install architecture-independent files in PREFIX 1391 [$ac_default_prefix] 1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1393 [PREFIX] 1394 1395By default, \`make install' will install all the files in 1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1397an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1398for instance \`--prefix=\$HOME'. 1399 1400For better control, use the options below. 1401 1402Fine tuning of the installation directories: 1403 --bindir=DIR user executables [EPREFIX/bin] 1404 --sbindir=DIR system admin executables [EPREFIX/sbin] 1405 --libexecdir=DIR program executables [EPREFIX/libexec] 1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1410 --libdir=DIR object code libraries [EPREFIX/lib] 1411 --includedir=DIR C header files [PREFIX/include] 1412 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1415 --infodir=DIR info documentation [DATAROOTDIR/info] 1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1417 --mandir=DIR man documentation [DATAROOTDIR/man] 1418 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1419 --htmldir=DIR html documentation [DOCDIR] 1420 --dvidir=DIR dvi documentation [DOCDIR] 1421 --pdfdir=DIR pdf documentation [DOCDIR] 1422 --psdir=DIR ps documentation [DOCDIR] 1423_ACEOF 1424 1425 cat <<\_ACEOF 1426 1427Program names: 1428 --program-prefix=PREFIX prepend PREFIX to installed program names 1429 --program-suffix=SUFFIX append SUFFIX to installed program names 1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1431 1432System types: 1433 --build=BUILD configure for building on BUILD [guessed] 1434 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1435_ACEOF 1436fi 1437 1438if test -n "$ac_init_help"; then 1439 case $ac_init_help in 1440 short | recursive ) echo "Configuration of iperf 3.11:";; 1441 esac 1442 cat <<\_ACEOF 1443 1444Optional Features: 1445 --disable-option-checking ignore unrecognized --enable/--with options 1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1448 --enable-static-bin link iperf3 binary statically 1449 --enable-silent-rules less verbose build output (undo: "make V=1") 1450 --disable-silent-rules verbose build output (undo: "make V=0") 1451 --enable-shared[=PKGS] build shared libraries [default=yes] 1452 --enable-static[=PKGS] build static libraries [default=yes] 1453 --enable-fast-install[=PKGS] 1454 optimize for fast installation [default=yes] 1455 --enable-dependency-tracking 1456 do not reject slow dependency extractors 1457 --disable-dependency-tracking 1458 speeds up one-time build 1459 --disable-libtool-lock avoid locking (might break parallel builds) 1460 --enable-maintainer-mode 1461 enable make rules and dependencies not useful (and 1462 sometimes confusing) to the casual installer 1463 --enable-profiling Enable iperf3 profiling binary 1464 1465Optional Packages: 1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1469 both] 1470 --with-aix-soname=aix|svr4|both 1471 shared library versioning (aka "SONAME") variant to 1472 provide on AIX, [default=aix]. 1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1474 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1475 compiler's sysroot if not specified). 1476 --without-sctp disable SCTP 1477 --with-openssl=DIR root of the OpenSSL directory 1478 1479Some influential environment variables: 1480 CC C compiler command 1481 CFLAGS C compiler flags 1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1483 nonstandard directory <lib dir> 1484 LIBS libraries to pass to the linker, e.g. -l<library> 1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1486 you have headers in a nonstandard directory <include dir> 1487 LT_SYS_LIBRARY_PATH 1488 User-defined run-time library search path. 1489 1490Use these variables to override the choices made by `configure' or to help 1491it to find libraries and programs with nonstandard names/locations. 1492 1493Report bugs to <https://github.com/esnet/iperf>. 1494iperf home page: <https://software.es.net/iperf/>. 1495_ACEOF 1496ac_status=$? 1497fi 1498 1499if test "$ac_init_help" = "recursive"; then 1500 # If there are subdirs, report their specific --help. 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1502 test -d "$ac_dir" || 1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1504 continue 1505 ac_builddir=. 1506 1507case "$ac_dir" in 1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509*) 1510 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1511 # A ".." for each directory in $ac_dir_suffix. 1512 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1513 case $ac_top_builddir_sub in 1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1516 esac ;; 1517esac 1518ac_abs_top_builddir=$ac_pwd 1519ac_abs_builddir=$ac_pwd$ac_dir_suffix 1520# for backward compatibility: 1521ac_top_builddir=$ac_top_build_prefix 1522 1523case $srcdir in 1524 .) # We are building in place. 1525 ac_srcdir=. 1526 ac_top_srcdir=$ac_top_builddir_sub 1527 ac_abs_top_srcdir=$ac_pwd ;; 1528 [\\/]* | ?:[\\/]* ) # Absolute name. 1529 ac_srcdir=$srcdir$ac_dir_suffix; 1530 ac_top_srcdir=$srcdir 1531 ac_abs_top_srcdir=$srcdir ;; 1532 *) # Relative name. 1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1534 ac_top_srcdir=$ac_top_build_prefix$srcdir 1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1536esac 1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1538 1539 cd "$ac_dir" || { ac_status=$?; continue; } 1540 # Check for configure.gnu first; this name is used for a wrapper for 1541 # Metaconfig's "Configure" on case-insensitive file systems. 1542 if test -f "$ac_srcdir/configure.gnu"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1545 elif test -f "$ac_srcdir/configure"; then 1546 echo && 1547 $SHELL "$ac_srcdir/configure" --help=recursive 1548 else 1549 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1550 fi || ac_status=$? 1551 cd "$ac_pwd" || { ac_status=$?; break; } 1552 done 1553fi 1554 1555test -n "$ac_init_help" && exit $ac_status 1556if $ac_init_version; then 1557 cat <<\_ACEOF 1558iperf configure 3.11 1559generated by GNU Autoconf 2.71 1560 1561Copyright (C) 2021 Free Software Foundation, Inc. 1562This configure script is free software; the Free Software Foundation 1563gives unlimited permission to copy, distribute and modify it. 1564_ACEOF 1565 exit 1566fi 1567 1568## ------------------------ ## 1569## Autoconf initialization. ## 1570## ------------------------ ## 1571 1572# ac_fn_c_try_compile LINENO 1573# -------------------------- 1574# Try to compile conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 rm -f conftest.$ac_objext conftest.beam 1579 if { { ac_try="$ac_compile" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585printf "%s\n" "$ac_try_echo"; } >&5 1586 (eval "$ac_compile") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } && { 1595 test -z "$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 } && test -s conftest.$ac_objext 1598then : 1599 ac_retval=0 1600else $as_nop 1601 printf "%s\n" "$as_me: failed program was:" >&5 1602sed 's/^/| /' conftest.$ac_ext >&5 1603 1604 ac_retval=1 1605fi 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1607 as_fn_set_status $ac_retval 1608 1609} # ac_fn_c_try_compile 1610 1611# ac_fn_c_try_link LINENO 1612# ----------------------- 1613# Try to link conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_link () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1618 if { { ac_try="$ac_link" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624printf "%s\n" "$ac_try_echo"; } >&5 1625 (eval "$ac_link") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest$ac_exeext && { 1637 test "$cross_compiling" = yes || 1638 test -x conftest$ac_exeext 1639 } 1640then : 1641 ac_retval=0 1642else $as_nop 1643 printf "%s\n" "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1650 # interfere with the next link command; also delete a directory that is 1651 # left behind by Apple's compiler. We do this before executing the actions. 1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_link 1657 1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1659# ------------------------------------------------------- 1660# Tests whether HEADER exists and can be compiled using the include files in 1661# INCLUDES, setting the cache variable VAR accordingly. 1662ac_fn_c_check_header_compile () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666printf %s "checking for $2... " >&6; } 1667if eval test \${$3+y} 1668then : 1669 printf %s "(cached) " >&6 1670else $as_nop 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672/* end confdefs.h. */ 1673$4 1674#include <$2> 1675_ACEOF 1676if ac_fn_c_try_compile "$LINENO" 1677then : 1678 eval "$3=yes" 1679else $as_nop 1680 eval "$3=no" 1681fi 1682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1683fi 1684eval ac_res=\$$3 1685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1686printf "%s\n" "$ac_res" >&6; } 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 1689} # ac_fn_c_check_header_compile 1690 1691# ac_fn_c_check_func LINENO FUNC VAR 1692# ---------------------------------- 1693# Tests whether FUNC exists, setting the cache variable VAR accordingly 1694ac_fn_c_check_func () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1698printf %s "checking for $2... " >&6; } 1699if eval test \${$3+y} 1700then : 1701 printf %s "(cached) " >&6 1702else $as_nop 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1706 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1707#define $2 innocuous_$2 1708 1709/* System header to define __stub macros and hopefully few prototypes, 1710 which can conflict with char $2 (); below. */ 1711 1712#include <limits.h> 1713#undef $2 1714 1715/* Override any GCC internal prototype to avoid an error. 1716 Use char because int might match the return type of a GCC 1717 builtin and then its argument prototype would still apply. */ 1718#ifdef __cplusplus 1719extern "C" 1720#endif 1721char $2 (); 1722/* The GNU C library defines this for functions which it implements 1723 to always fail with ENOSYS. Some functions are actually named 1724 something starting with __ and the normal name is an alias. */ 1725#if defined __stub_$2 || defined __stub___$2 1726choke me 1727#endif 1728 1729int 1730main (void) 1731{ 1732return $2 (); 1733 ; 1734 return 0; 1735} 1736_ACEOF 1737if ac_fn_c_try_link "$LINENO" 1738then : 1739 eval "$3=yes" 1740else $as_nop 1741 eval "$3=no" 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1744 conftest$ac_exeext conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748printf "%s\n" "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_func 1752 1753# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1754# ---------------------------------------------------- 1755# Tries to find if the field MEMBER exists in type AGGR, after including 1756# INCLUDES, setting cache variable VAR accordingly. 1757ac_fn_c_check_member () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1761printf %s "checking for $2.$3... " >&6; } 1762if eval test \${$4+y} 1763then : 1764 printf %s "(cached) " >&6 1765else $as_nop 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$5 1769int 1770main (void) 1771{ 1772static $2 ac_aggr; 1773if (ac_aggr.$3) 1774return 0; 1775 ; 1776 return 0; 1777} 1778_ACEOF 1779if ac_fn_c_try_compile "$LINENO" 1780then : 1781 eval "$4=yes" 1782else $as_nop 1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784/* end confdefs.h. */ 1785$5 1786int 1787main (void) 1788{ 1789static $2 ac_aggr; 1790if (sizeof ac_aggr.$3) 1791return 0; 1792 ; 1793 return 0; 1794} 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO" 1797then : 1798 eval "$4=yes" 1799else $as_nop 1800 eval "$4=no" 1801fi 1802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1803fi 1804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1805fi 1806eval ac_res=\$$4 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808printf "%s\n" "$ac_res" >&6; } 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 1811} # ac_fn_c_check_member 1812ac_configure_args_raw= 1813for ac_arg 1814do 1815 case $ac_arg in 1816 *\'*) 1817 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1818 esac 1819 as_fn_append ac_configure_args_raw " '$ac_arg'" 1820done 1821 1822case $ac_configure_args_raw in 1823 *$as_nl*) 1824 ac_safe_unquote= ;; 1825 *) 1826 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1827 ac_unsafe_a="$ac_unsafe_z#~" 1828 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1829 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1830esac 1831 1832cat >config.log <<_ACEOF 1833This file contains any messages produced by compilers while 1834running configure, to aid debugging if configure makes a mistake. 1835 1836It was created by iperf $as_me 3.11, which was 1837generated by GNU Autoconf 2.71. Invocation command line was 1838 1839 $ $0$ac_configure_args_raw 1840 1841_ACEOF 1842exec 5>>config.log 1843{ 1844cat <<_ASUNAME 1845## --------- ## 1846## Platform. ## 1847## --------- ## 1848 1849hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1850uname -m = `(uname -m) 2>/dev/null || echo unknown` 1851uname -r = `(uname -r) 2>/dev/null || echo unknown` 1852uname -s = `(uname -s) 2>/dev/null || echo unknown` 1853uname -v = `(uname -v) 2>/dev/null || echo unknown` 1854 1855/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1856/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1857 1858/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1859/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1860/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1861/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1862/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1863/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1864/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1865 1866_ASUNAME 1867 1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1869for as_dir in $PATH 1870do 1871 IFS=$as_save_IFS 1872 case $as_dir in #((( 1873 '') as_dir=./ ;; 1874 */) ;; 1875 *) as_dir=$as_dir/ ;; 1876 esac 1877 printf "%s\n" "PATH: $as_dir" 1878 done 1879IFS=$as_save_IFS 1880 1881} >&5 1882 1883cat >&5 <<_ACEOF 1884 1885 1886## ----------- ## 1887## Core tests. ## 1888## ----------- ## 1889 1890_ACEOF 1891 1892 1893# Keep a trace of the command line. 1894# Strip out --no-create and --no-recursion so they do not pile up. 1895# Strip out --silent because we don't want to record it for future runs. 1896# Also quote any args containing shell meta-characters. 1897# Make two passes to allow for proper duplicate-argument suppression. 1898ac_configure_args= 1899ac_configure_args0= 1900ac_configure_args1= 1901ac_must_keep_next=false 1902for ac_pass in 1 2 1903do 1904 for ac_arg 1905 do 1906 case $ac_arg in 1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1909 | -silent | --silent | --silen | --sile | --sil) 1910 continue ;; 1911 *\'*) 1912 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1913 esac 1914 case $ac_pass in 1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1916 2) 1917 as_fn_append ac_configure_args1 " '$ac_arg'" 1918 if test $ac_must_keep_next = true; then 1919 ac_must_keep_next=false # Got value, back to normal. 1920 else 1921 case $ac_arg in 1922 *=* | --config-cache | -C | -disable-* | --disable-* \ 1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1925 | -with-* | --with-* | -without-* | --without-* | --x) 1926 case "$ac_configure_args0 " in 1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1928 esac 1929 ;; 1930 -* ) ac_must_keep_next=true ;; 1931 esac 1932 fi 1933 as_fn_append ac_configure_args " '$ac_arg'" 1934 ;; 1935 esac 1936 done 1937done 1938{ ac_configure_args0=; unset ac_configure_args0;} 1939{ ac_configure_args1=; unset ac_configure_args1;} 1940 1941# When interrupted or exit'd, cleanup temporary files, and complete 1942# config.log. We remove comments because anyway the quotes in there 1943# would cause problems or look ugly. 1944# WARNING: Use '\'' to represent an apostrophe within the trap. 1945# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1946trap 'exit_status=$? 1947 # Sanitize IFS. 1948 IFS=" "" $as_nl" 1949 # Save into config.log some information that might help in debugging. 1950 { 1951 echo 1952 1953 printf "%s\n" "## ---------------- ## 1954## Cache variables. ## 1955## ---------------- ##" 1956 echo 1957 # The following way of writing the cache mishandles newlines in values, 1958( 1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1960 eval ac_val=\$$ac_var 1961 case $ac_val in #( 1962 *${as_nl}*) 1963 case $ac_var in #( 1964 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1965printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1966 esac 1967 case $ac_var in #( 1968 _ | IFS | as_nl) ;; #( 1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1970 *) { eval $ac_var=; unset $ac_var;} ;; 1971 esac ;; 1972 esac 1973 done 1974 (set) 2>&1 | 1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1976 *${as_nl}ac_space=\ *) 1977 sed -n \ 1978 "s/'\''/'\''\\\\'\'''\''/g; 1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1980 ;; #( 1981 *) 1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1983 ;; 1984 esac | 1985 sort 1986) 1987 echo 1988 1989 printf "%s\n" "## ----------------- ## 1990## Output variables. ## 1991## ----------------- ##" 1992 echo 1993 for ac_var in $ac_subst_vars 1994 do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in 1997 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1998 esac 1999 printf "%s\n" "$ac_var='\''$ac_val'\''" 2000 done | sort 2001 echo 2002 2003 if test -n "$ac_subst_files"; then 2004 printf "%s\n" "## ------------------- ## 2005## File substitutions. ## 2006## ------------------- ##" 2007 echo 2008 for ac_var in $ac_subst_files 2009 do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in 2012 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2013 esac 2014 printf "%s\n" "$ac_var='\''$ac_val'\''" 2015 done | sort 2016 echo 2017 fi 2018 2019 if test -s confdefs.h; then 2020 printf "%s\n" "## ----------- ## 2021## confdefs.h. ## 2022## ----------- ##" 2023 echo 2024 cat confdefs.h 2025 echo 2026 fi 2027 test "$ac_signal" != 0 && 2028 printf "%s\n" "$as_me: caught signal $ac_signal" 2029 printf "%s\n" "$as_me: exit $exit_status" 2030 } >&5 2031 rm -f core *.core core.conftest.* && 2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2033 exit $exit_status 2034' 0 2035for ac_signal in 1 2 13 15; do 2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2037done 2038ac_signal=0 2039 2040# confdefs.h avoids OS command line length limits that DEFS can exceed. 2041rm -f -r conftest* confdefs.h 2042 2043printf "%s\n" "/* confdefs.h */" > confdefs.h 2044 2045# Predefined preprocessor variables. 2046 2047printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2048 2049printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2050 2051printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2052 2053printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2054 2055printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2056 2057printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2058 2059 2060# Let the site file select an alternate cache file if it wants to. 2061# Prefer an explicitly selected file to automatically selected ones. 2062if test -n "$CONFIG_SITE"; then 2063 ac_site_files="$CONFIG_SITE" 2064elif test "x$prefix" != xNONE; then 2065 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2066else 2067 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2068fi 2069 2070for ac_site_file in $ac_site_files 2071do 2072 case $ac_site_file in #( 2073 */*) : 2074 ;; #( 2075 *) : 2076 ac_site_file=./$ac_site_file ;; 2077esac 2078 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2080printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2081 sed 's/^/| /' "$ac_site_file" >&5 2082 . "$ac_site_file" \ 2083 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2085as_fn_error $? "failed to load site script $ac_site_file 2086See \`config.log' for more details" "$LINENO" 5; } 2087 fi 2088done 2089 2090if test -r "$cache_file"; then 2091 # Some versions of bash will fail to source /dev/null (special files 2092 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2093 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2095printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2096 case $cache_file in 2097 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2098 *) . "./$cache_file";; 2099 esac 2100 fi 2101else 2102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2103printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2104 >$cache_file 2105fi 2106 2107# Test code for whether the C compiler supports C89 (global declarations) 2108ac_c_conftest_c89_globals=' 2109/* Does the compiler advertise C89 conformance? 2110 Do not test the value of __STDC__, because some compilers set it to 0 2111 while being otherwise adequately conformant. */ 2112#if !defined __STDC__ 2113# error "Compiler does not advertise C89 conformance" 2114#endif 2115 2116#include <stddef.h> 2117#include <stdarg.h> 2118struct stat; 2119/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2120struct buf { int x; }; 2121struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2122static char *e (p, i) 2123 char **p; 2124 int i; 2125{ 2126 return p[i]; 2127} 2128static char *f (char * (*g) (char **, int), char **p, ...) 2129{ 2130 char *s; 2131 va_list v; 2132 va_start (v,p); 2133 s = g (p, va_arg (v,int)); 2134 va_end (v); 2135 return s; 2136} 2137 2138/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2139 function prototypes and stuff, but not \xHH hex character constants. 2140 These do not provoke an error unfortunately, instead are silently treated 2141 as an "x". The following induces an error, until -std is added to get 2142 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2143 array size at least. It is necessary to write \x00 == 0 to get something 2144 that is true only with -std. */ 2145int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2146 2147/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2148 inside strings and character constants. */ 2149#define FOO(x) '\''x'\'' 2150int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2151 2152int test (int i, double x); 2153struct s1 {int (*f) (int a);}; 2154struct s2 {int (*f) (double a);}; 2155int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2156 int, int);' 2157 2158# Test code for whether the C compiler supports C89 (body of main). 2159ac_c_conftest_c89_main=' 2160ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2161' 2162 2163# Test code for whether the C compiler supports C99 (global declarations) 2164ac_c_conftest_c99_globals=' 2165// Does the compiler advertise C99 conformance? 2166#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2167# error "Compiler does not advertise C99 conformance" 2168#endif 2169 2170#include <stdbool.h> 2171extern int puts (const char *); 2172extern int printf (const char *, ...); 2173extern int dprintf (int, const char *, ...); 2174extern void *malloc (size_t); 2175 2176// Check varargs macros. These examples are taken from C99 6.10.3.5. 2177// dprintf is used instead of fprintf to avoid needing to declare 2178// FILE and stderr. 2179#define debug(...) dprintf (2, __VA_ARGS__) 2180#define showlist(...) puts (#__VA_ARGS__) 2181#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2182static void 2183test_varargs_macros (void) 2184{ 2185 int x = 1234; 2186 int y = 5678; 2187 debug ("Flag"); 2188 debug ("X = %d\n", x); 2189 showlist (The first, second, and third items.); 2190 report (x>y, "x is %d but y is %d", x, y); 2191} 2192 2193// Check long long types. 2194#define BIG64 18446744073709551615ull 2195#define BIG32 4294967295ul 2196#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2197#if !BIG_OK 2198 #error "your preprocessor is broken" 2199#endif 2200#if BIG_OK 2201#else 2202 #error "your preprocessor is broken" 2203#endif 2204static long long int bignum = -9223372036854775807LL; 2205static unsigned long long int ubignum = BIG64; 2206 2207struct incomplete_array 2208{ 2209 int datasize; 2210 double data[]; 2211}; 2212 2213struct named_init { 2214 int number; 2215 const wchar_t *name; 2216 double average; 2217}; 2218 2219typedef const char *ccp; 2220 2221static inline int 2222test_restrict (ccp restrict text) 2223{ 2224 // See if C++-style comments work. 2225 // Iterate through items via the restricted pointer. 2226 // Also check for declarations in for loops. 2227 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2228 continue; 2229 return 0; 2230} 2231 2232// Check varargs and va_copy. 2233static bool 2234test_varargs (const char *format, ...) 2235{ 2236 va_list args; 2237 va_start (args, format); 2238 va_list args_copy; 2239 va_copy (args_copy, args); 2240 2241 const char *str = ""; 2242 int number = 0; 2243 float fnumber = 0; 2244 2245 while (*format) 2246 { 2247 switch (*format++) 2248 { 2249 case '\''s'\'': // string 2250 str = va_arg (args_copy, const char *); 2251 break; 2252 case '\''d'\'': // int 2253 number = va_arg (args_copy, int); 2254 break; 2255 case '\''f'\'': // float 2256 fnumber = va_arg (args_copy, double); 2257 break; 2258 default: 2259 break; 2260 } 2261 } 2262 va_end (args_copy); 2263 va_end (args); 2264 2265 return *str && number && fnumber; 2266} 2267' 2268 2269# Test code for whether the C compiler supports C99 (body of main). 2270ac_c_conftest_c99_main=' 2271 // Check bool. 2272 _Bool success = false; 2273 success |= (argc != 0); 2274 2275 // Check restrict. 2276 if (test_restrict ("String literal") == 0) 2277 success = true; 2278 char *restrict newvar = "Another string"; 2279 2280 // Check varargs. 2281 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2282 test_varargs_macros (); 2283 2284 // Check flexible array members. 2285 struct incomplete_array *ia = 2286 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2287 ia->datasize = 10; 2288 for (int i = 0; i < ia->datasize; ++i) 2289 ia->data[i] = i * 1.234; 2290 2291 // Check named initializers. 2292 struct named_init ni = { 2293 .number = 34, 2294 .name = L"Test wide string", 2295 .average = 543.34343, 2296 }; 2297 2298 ni.number = 58; 2299 2300 int dynamic_array[ni.number]; 2301 dynamic_array[0] = argv[0][0]; 2302 dynamic_array[ni.number - 1] = 543; 2303 2304 // work around unused variable warnings 2305 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2306 || dynamic_array[ni.number - 1] != 543); 2307' 2308 2309# Test code for whether the C compiler supports C11 (global declarations) 2310ac_c_conftest_c11_globals=' 2311// Does the compiler advertise C11 conformance? 2312#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2313# error "Compiler does not advertise C11 conformance" 2314#endif 2315 2316// Check _Alignas. 2317char _Alignas (double) aligned_as_double; 2318char _Alignas (0) no_special_alignment; 2319extern char aligned_as_int; 2320char _Alignas (0) _Alignas (int) aligned_as_int; 2321 2322// Check _Alignof. 2323enum 2324{ 2325 int_alignment = _Alignof (int), 2326 int_array_alignment = _Alignof (int[100]), 2327 char_alignment = _Alignof (char) 2328}; 2329_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2330 2331// Check _Noreturn. 2332int _Noreturn does_not_return (void) { for (;;) continue; } 2333 2334// Check _Static_assert. 2335struct test_static_assert 2336{ 2337 int x; 2338 _Static_assert (sizeof (int) <= sizeof (long int), 2339 "_Static_assert does not work in struct"); 2340 long int y; 2341}; 2342 2343// Check UTF-8 literals. 2344#define u8 syntax error! 2345char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2346 2347// Check duplicate typedefs. 2348typedef long *long_ptr; 2349typedef long int *long_ptr; 2350typedef long_ptr long_ptr; 2351 2352// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2353struct anonymous 2354{ 2355 union { 2356 struct { int i; int j; }; 2357 struct { int k; long int l; } w; 2358 }; 2359 int m; 2360} v1; 2361' 2362 2363# Test code for whether the C compiler supports C11 (body of main). 2364ac_c_conftest_c11_main=' 2365 _Static_assert ((offsetof (struct anonymous, i) 2366 == offsetof (struct anonymous, w.k)), 2367 "Anonymous union alignment botch"); 2368 v1.i = 2; 2369 v1.w.k = 5; 2370 ok |= v1.i != 5; 2371' 2372 2373# Test code for whether the C compiler supports C11 (complete). 2374ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2375${ac_c_conftest_c99_globals} 2376${ac_c_conftest_c11_globals} 2377 2378int 2379main (int argc, char **argv) 2380{ 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 ${ac_c_conftest_c99_main} 2384 ${ac_c_conftest_c11_main} 2385 return ok; 2386} 2387" 2388 2389# Test code for whether the C compiler supports C99 (complete). 2390ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2391${ac_c_conftest_c99_globals} 2392 2393int 2394main (int argc, char **argv) 2395{ 2396 int ok = 0; 2397 ${ac_c_conftest_c89_main} 2398 ${ac_c_conftest_c99_main} 2399 return ok; 2400} 2401" 2402 2403# Test code for whether the C compiler supports C89 (complete). 2404ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2405 2406int 2407main (int argc, char **argv) 2408{ 2409 int ok = 0; 2410 ${ac_c_conftest_c89_main} 2411 return ok; 2412} 2413" 2414 2415as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2416as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2417as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2418as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2419as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2420as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2421as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2422as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2423as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2424 2425# Auxiliary files required by this configure script. 2426ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2427 2428# Locations in which to look for auxiliary files. 2429ac_aux_dir_candidates="${srcdir}/config" 2430 2431# Search for a directory containing all of the required auxiliary files, 2432# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2433# If we don't find one directory that contains all the files we need, 2434# we report the set of missing files from the *first* directory in 2435# $ac_aux_dir_candidates and give up. 2436ac_missing_aux_files="" 2437ac_first_candidate=: 2438printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440as_found=false 2441for as_dir in $ac_aux_dir_candidates 2442do 2443 IFS=$as_save_IFS 2444 case $as_dir in #((( 2445 '') as_dir=./ ;; 2446 */) ;; 2447 *) as_dir=$as_dir/ ;; 2448 esac 2449 as_found=: 2450 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2452 ac_aux_dir_found=yes 2453 ac_install_sh= 2454 for ac_aux in $ac_aux_files 2455 do 2456 # As a special case, if "install-sh" is required, that requirement 2457 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2458 # and $ac_install_sh is set appropriately for whichever one is found. 2459 if test x"$ac_aux" = x"install-sh" 2460 then 2461 if test -f "${as_dir}install-sh"; then 2462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2463 ac_install_sh="${as_dir}install-sh -c" 2464 elif test -f "${as_dir}install.sh"; then 2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2466 ac_install_sh="${as_dir}install.sh -c" 2467 elif test -f "${as_dir}shtool"; then 2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2469 ac_install_sh="${as_dir}shtool install -c" 2470 else 2471 ac_aux_dir_found=no 2472 if $ac_first_candidate; then 2473 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2474 else 2475 break 2476 fi 2477 fi 2478 else 2479 if test -f "${as_dir}${ac_aux}"; then 2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2481 else 2482 ac_aux_dir_found=no 2483 if $ac_first_candidate; then 2484 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2485 else 2486 break 2487 fi 2488 fi 2489 fi 2490 done 2491 if test "$ac_aux_dir_found" = yes; then 2492 ac_aux_dir="$as_dir" 2493 break 2494 fi 2495 ac_first_candidate=false 2496 2497 as_found=false 2498done 2499IFS=$as_save_IFS 2500if $as_found 2501then : 2502 2503else $as_nop 2504 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2505fi 2506 2507 2508# These three variables are undocumented and unsupported, 2509# and are intended to be withdrawn in a future Autoconf release. 2510# They can cause serious problems if a builder's source tree is in a directory 2511# whose full name contains unusual characters. 2512if test -f "${ac_aux_dir}config.guess"; then 2513 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2514fi 2515if test -f "${ac_aux_dir}config.sub"; then 2516 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2517fi 2518if test -f "$ac_aux_dir/configure"; then 2519 ac_configure="$SHELL ${ac_aux_dir}configure" 2520fi 2521 2522# Check that the precious variables saved in the cache have kept the same 2523# value. 2524ac_cache_corrupted=false 2525for ac_var in $ac_precious_vars; do 2526 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2527 eval ac_new_set=\$ac_env_${ac_var}_set 2528 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2529 eval ac_new_val=\$ac_env_${ac_var}_value 2530 case $ac_old_set,$ac_new_set in 2531 set,) 2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2533printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2534 ac_cache_corrupted=: ;; 2535 ,set) 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2537printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2538 ac_cache_corrupted=: ;; 2539 ,);; 2540 *) 2541 if test "x$ac_old_val" != "x$ac_new_val"; then 2542 # differences in whitespace do not lead to failure. 2543 ac_old_val_w=`echo x $ac_old_val` 2544 ac_new_val_w=`echo x $ac_new_val` 2545 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2547printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2548 ac_cache_corrupted=: 2549 else 2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2551printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2552 eval $ac_var=\$ac_old_val 2553 fi 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2555printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2557printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2558 fi;; 2559 esac 2560 # Pass precious variables to config.status. 2561 if test "$ac_new_set" = set; then 2562 case $ac_new_val in 2563 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2564 *) ac_arg=$ac_var=$ac_new_val ;; 2565 esac 2566 case " $ac_configure_args " in 2567 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2568 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2569 esac 2570 fi 2571done 2572if $ac_cache_corrupted; then 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2574printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2576printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2577 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2578 and start over" "$LINENO" 5 2579fi 2580## -------------------- ## 2581## Main body of script. ## 2582## -------------------- ## 2583 2584ac_ext=c 2585ac_cpp='$CPP $CPPFLAGS' 2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2588ac_compiler_gnu=$ac_cv_c_compiler_gnu 2589 2590 2591# =========================================================================== 2592# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html 2593# =========================================================================== 2594# 2595# SYNOPSIS 2596# 2597# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) 2598# 2599# DESCRIPTION 2600# 2601# Look for OpenSSL in a number of default spots, or in a user-selected 2602# spot (via --with-openssl). Sets 2603# 2604# OPENSSL_INCLUDES to the include directives required 2605# OPENSSL_LIBS to the -l directives required 2606# OPENSSL_LDFLAGS to the -L or -R flags required 2607# 2608# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately 2609# 2610# This macro sets OPENSSL_INCLUDES such that source files should use the 2611# openssl/ directory in include directives: 2612# 2613# #include <openssl/hmac.h> 2614# 2615# LICENSE 2616# 2617# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/> 2618# Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]> 2619# 2620# Copying and distribution of this file, with or without modification, are 2621# permitted in any medium without royalty provided the copyright notice 2622# and this notice are preserved. This file is offered as-is, without any 2623# warranty. 2624 2625#serial 10 2626 2627# This is what autoupdate's m4 run will expand. It fires the warning 2628# (with _au_warn_XXX), outputs it into the updated configure.ac (with 2629# m4_warn), and then outputs the replacement expansion. We need extra 2630# quotation around the m4_warn and dnl so they will be written 2631# unexpanded into the updated configure.ac. 2632 2633 2634# This is an auxiliary macro that is also run when 2635# autoupdate runs m4. It simply calls m4_warning, but 2636# we need a wrapper so that each warning is emitted only 2637# once. We break the quoting in m4_warning's argument in 2638# order to expand this macro's arguments, not AU_DEFUN's. 2639 2640 2641# Finally, this is the expansion that is picked up by 2642# autoconf, causing NAME to expand to NEW-CODE, plus 2643# (if SILENT is not "silent") a m4_warning telling the 2644# maintainer to run autoupdate. We don't issue MESSAGE 2645# from autoconf, because that's instructions for what 2646# to do *after* running autoupdate. 2647 2648 2649 2650# Also link binaries as static 2651# Check whether --enable-static-bin was given. 2652if test ${enable_static_bin+y} 2653then : 2654 enableval=$enable_static_bin; enable_static=yes 2655 enable_shared=no 2656 enable_static_bin=yes 2657else $as_nop 2658 : 2659fi 2660 2661 if test x$enable_static_bin = xno; then 2662 ENABLE_STATIC_BIN_TRUE= 2663 ENABLE_STATIC_BIN_FALSE='#' 2664else 2665 ENABLE_STATIC_BIN_TRUE='#' 2666 ENABLE_STATIC_BIN_FALSE= 2667fi 2668 2669 2670if test "x$enable_static_bin" == xyes 2671then : 2672 LDFLAGS="$LDFLAGS --static" 2673 2674fi 2675 2676ac_ext=c 2677ac_cpp='$CPP $CPPFLAGS' 2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2680ac_compiler_gnu=$ac_cv_c_compiler_gnu 2681 2682 2683# Specify where the auxiliary files created by configure should go. The config 2684# directory is picked so that they don't clutter up more useful directories. 2685 2686 2687 2688# Initialize the automake system 2689am__api_version='1.16' 2690 2691 2692 2693 # Find a good install program. We prefer a C program (faster), 2694# so one script is as good as another. But avoid the broken or 2695# incompatible versions: 2696# SysV /etc/install, /usr/sbin/install 2697# SunOS /usr/etc/install 2698# IRIX /sbin/install 2699# AIX /bin/install 2700# AmigaOS /C/install, which installs bootblocks on floppy discs 2701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2702# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2704# OS/2's system install, which has a completely different semantic 2705# ./install, which can be erroneously created by make from ./install.sh. 2706# Reject install programs that cannot install multiple files. 2707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2708printf %s "checking for a BSD-compatible install... " >&6; } 2709if test -z "$INSTALL"; then 2710if test ${ac_cv_path_install+y} 2711then : 2712 printf %s "(cached) " >&6 2713else $as_nop 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 case $as_dir in #((( 2719 '') as_dir=./ ;; 2720 */) ;; 2721 *) as_dir=$as_dir/ ;; 2722 esac 2723 # Account for fact that we put trailing slashes in our PATH walk. 2724case $as_dir in #(( 2725 ./ | /[cC]/* | \ 2726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2727 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2728 /usr/ucb/* ) ;; 2729 *) 2730 # OSF1 and SCO ODT 3.0 have their own names for install. 2731 # Don't use installbsd from OSF since it installs stuff as root 2732 # by default. 2733 for ac_prog in ginstall scoinst install; do 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2736 if test $ac_prog = install && 2737 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2738 # AIX install. It has an incompatible calling convention. 2739 : 2740 elif test $ac_prog = install && 2741 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2742 # program-specific install script used by HP pwplus--don't use. 2743 : 2744 else 2745 rm -rf conftest.one conftest.two conftest.dir 2746 echo one > conftest.one 2747 echo two > conftest.two 2748 mkdir conftest.dir 2749 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2750 test -s conftest.one && test -s conftest.two && 2751 test -s conftest.dir/conftest.one && 2752 test -s conftest.dir/conftest.two 2753 then 2754 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2755 break 3 2756 fi 2757 fi 2758 fi 2759 done 2760 done 2761 ;; 2762esac 2763 2764 done 2765IFS=$as_save_IFS 2766 2767rm -rf conftest.one conftest.two conftest.dir 2768 2769fi 2770 if test ${ac_cv_path_install+y}; then 2771 INSTALL=$ac_cv_path_install 2772 else 2773 # As a last resort, use the slow shell script. Don't cache a 2774 # value for INSTALL within a source directory, because that will 2775 # break other packages using the cache if that directory is 2776 # removed, or if the value is a relative name. 2777 INSTALL=$ac_install_sh 2778 fi 2779fi 2780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2781printf "%s\n" "$INSTALL" >&6; } 2782 2783# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2784# It thinks the first close brace ends the variable substitution. 2785test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2786 2787test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2788 2789test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2790 2791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2792printf %s "checking whether build environment is sane... " >&6; } 2793# Reject unsafe characters in $srcdir or the absolute working directory 2794# name. Accept space and tab only in the latter. 2795am_lf=' 2796' 2797case `pwd` in 2798 *[\\\"\#\$\&\'\`$am_lf]*) 2799 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2800esac 2801case $srcdir in 2802 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2803 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2804esac 2805 2806# Do 'set' in a subshell so we don't clobber the current shell's 2807# arguments. Must try -L first in case configure is actually a 2808# symlink; some systems play weird games with the mod time of symlinks 2809# (eg FreeBSD returns the mod time of the symlink's containing 2810# directory). 2811if ( 2812 am_has_slept=no 2813 for am_try in 1 2; do 2814 echo "timestamp, slept: $am_has_slept" > conftest.file 2815 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2816 if test "$*" = "X"; then 2817 # -L didn't work. 2818 set X `ls -t "$srcdir/configure" conftest.file` 2819 fi 2820 if test "$*" != "X $srcdir/configure conftest.file" \ 2821 && test "$*" != "X conftest.file $srcdir/configure"; then 2822 2823 # If neither matched, then we have a broken ls. This can happen 2824 # if, for instance, CONFIG_SHELL is bash and it inherits a 2825 # broken ls alias from the environment. This has actually 2826 # happened. Such a system could not be considered "sane". 2827 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2828 alias in your environment" "$LINENO" 5 2829 fi 2830 if test "$2" = conftest.file || test $am_try -eq 2; then 2831 break 2832 fi 2833 # Just in case. 2834 sleep 1 2835 am_has_slept=yes 2836 done 2837 test "$2" = conftest.file 2838 ) 2839then 2840 # Ok. 2841 : 2842else 2843 as_fn_error $? "newly created file is older than distributed files! 2844Check your system clock" "$LINENO" 5 2845fi 2846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2847printf "%s\n" "yes" >&6; } 2848# If we didn't sleep, we still need to ensure time stamps of config.status and 2849# generated files are strictly newer. 2850am_sleep_pid= 2851if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2852 ( sleep 1 ) & 2853 am_sleep_pid=$! 2854fi 2855 2856rm -f conftest.file 2857 2858test "$program_prefix" != NONE && 2859 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2860# Use a double $ so make ignores it. 2861test "$program_suffix" != NONE && 2862 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2863# Double any \ or $. 2864# By default was `s,x,x', remove it if useless. 2865ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2866program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2867 2868 2869# Expand $ac_aux_dir to an absolute path. 2870am_aux_dir=`cd "$ac_aux_dir" && pwd` 2871 2872 2873 if test x"${MISSING+set}" != xset; then 2874 MISSING="\${SHELL} '$am_aux_dir/missing'" 2875fi 2876# Use eval to expand $SHELL 2877if eval "$MISSING --is-lightweight"; then 2878 am_missing_run="$MISSING " 2879else 2880 am_missing_run= 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2882printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2883fi 2884 2885if test x"${install_sh+set}" != xset; then 2886 case $am_aux_dir in 2887 *\ * | *\ *) 2888 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2889 *) 2890 install_sh="\${SHELL} $am_aux_dir/install-sh" 2891 esac 2892fi 2893 2894# Installed binaries are usually stripped using 'strip' when the user 2895# run "make install-strip". However 'strip' might not be the right 2896# tool to use in cross-compilation environments, therefore Automake 2897# will honor the 'STRIP' environment variable to overrule this program. 2898if test "$cross_compiling" != no; then 2899 if test -n "$ac_tool_prefix"; then 2900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2901set dummy ${ac_tool_prefix}strip; ac_word=$2 2902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903printf %s "checking for $ac_word... " >&6; } 2904if test ${ac_cv_prog_STRIP+y} 2905then : 2906 printf %s "(cached) " >&6 2907else $as_nop 2908 if test -n "$STRIP"; then 2909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2910else 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 case $as_dir in #((( 2916 '') as_dir=./ ;; 2917 */) ;; 2918 *) as_dir=$as_dir/ ;; 2919 esac 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932STRIP=$ac_cv_prog_STRIP 2933if test -n "$STRIP"; then 2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2935printf "%s\n" "$STRIP" >&6; } 2936else 2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938printf "%s\n" "no" >&6; } 2939fi 2940 2941 2942fi 2943if test -z "$ac_cv_prog_STRIP"; then 2944 ac_ct_STRIP=$STRIP 2945 # Extract the first word of "strip", so it can be a program name with args. 2946set dummy strip; ac_word=$2 2947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948printf %s "checking for $ac_word... " >&6; } 2949if test ${ac_cv_prog_ac_ct_STRIP+y} 2950then : 2951 printf %s "(cached) " >&6 2952else $as_nop 2953 if test -n "$ac_ct_STRIP"; then 2954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 case $as_dir in #((( 2961 '') as_dir=./ ;; 2962 */) ;; 2963 *) as_dir=$as_dir/ ;; 2964 esac 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_ac_ct_STRIP="strip" 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2978if test -n "$ac_ct_STRIP"; then 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2980printf "%s\n" "$ac_ct_STRIP" >&6; } 2981else 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983printf "%s\n" "no" >&6; } 2984fi 2985 2986 if test "x$ac_ct_STRIP" = x; then 2987 STRIP=":" 2988 else 2989 case $cross_compiling:$ac_tool_warned in 2990yes:) 2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2992printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2993ac_tool_warned=yes ;; 2994esac 2995 STRIP=$ac_ct_STRIP 2996 fi 2997else 2998 STRIP="$ac_cv_prog_STRIP" 2999fi 3000 3001fi 3002INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3003 3004 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3006printf %s "checking for a race-free mkdir -p... " >&6; } 3007if test -z "$MKDIR_P"; then 3008 if test ${ac_cv_path_mkdir+y} 3009then : 3010 printf %s "(cached) " >&6 3011else $as_nop 3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3014do 3015 IFS=$as_save_IFS 3016 case $as_dir in #((( 3017 '') as_dir=./ ;; 3018 */) ;; 3019 *) as_dir=$as_dir/ ;; 3020 esac 3021 for ac_prog in mkdir gmkdir; do 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3024 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3025 'mkdir ('*'coreutils) '* | \ 3026 'BusyBox '* | \ 3027 'mkdir (fileutils) '4.1*) 3028 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3029 break 3;; 3030 esac 3031 done 3032 done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037 3038 test -d ./--version && rmdir ./--version 3039 if test ${ac_cv_path_mkdir+y}; then 3040 MKDIR_P="$ac_cv_path_mkdir -p" 3041 else 3042 # As a last resort, use the slow shell script. Don't cache a 3043 # value for MKDIR_P within a source directory, because that will 3044 # break other packages using the cache if that directory is 3045 # removed, or if the value is a relative name. 3046 MKDIR_P="$ac_install_sh -d" 3047 fi 3048fi 3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3050printf "%s\n" "$MKDIR_P" >&6; } 3051 3052for ac_prog in gawk mawk nawk awk 3053do 3054 # Extract the first word of "$ac_prog", so it can be a program name with args. 3055set dummy $ac_prog; ac_word=$2 3056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057printf %s "checking for $ac_word... " >&6; } 3058if test ${ac_cv_prog_AWK+y} 3059then : 3060 printf %s "(cached) " >&6 3061else $as_nop 3062 if test -n "$AWK"; then 3063 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3064else 3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3066for as_dir in $PATH 3067do 3068 IFS=$as_save_IFS 3069 case $as_dir in #((( 3070 '') as_dir=./ ;; 3071 */) ;; 3072 *) as_dir=$as_dir/ ;; 3073 esac 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3076 ac_cv_prog_AWK="$ac_prog" 3077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086AWK=$ac_cv_prog_AWK 3087if test -n "$AWK"; then 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3089printf "%s\n" "$AWK" >&6; } 3090else 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092printf "%s\n" "no" >&6; } 3093fi 3094 3095 3096 test -n "$AWK" && break 3097done 3098 3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3100printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3101set x ${MAKE-make} 3102ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3103if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3104then : 3105 printf %s "(cached) " >&6 3106else $as_nop 3107 cat >conftest.make <<\_ACEOF 3108SHELL = /bin/sh 3109all: 3110 @echo '@@@%%%=$(MAKE)=@@@%%%' 3111_ACEOF 3112# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3113case `${MAKE-make} -f conftest.make 2>/dev/null` in 3114 *@@@%%%=?*=@@@%%%*) 3115 eval ac_cv_prog_make_${ac_make}_set=yes;; 3116 *) 3117 eval ac_cv_prog_make_${ac_make}_set=no;; 3118esac 3119rm -f conftest.make 3120fi 3121if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3123printf "%s\n" "yes" >&6; } 3124 SET_MAKE= 3125else 3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127printf "%s\n" "no" >&6; } 3128 SET_MAKE="MAKE=${MAKE-make}" 3129fi 3130 3131rm -rf .tst 2>/dev/null 3132mkdir .tst 2>/dev/null 3133if test -d .tst; then 3134 am__leading_dot=. 3135else 3136 am__leading_dot=_ 3137fi 3138rmdir .tst 2>/dev/null 3139 3140# Check whether --enable-silent-rules was given. 3141if test ${enable_silent_rules+y} 3142then : 3143 enableval=$enable_silent_rules; 3144fi 3145 3146case $enable_silent_rules in # ((( 3147 yes) AM_DEFAULT_VERBOSITY=0;; 3148 no) AM_DEFAULT_VERBOSITY=1;; 3149 *) AM_DEFAULT_VERBOSITY=1;; 3150esac 3151am_make=${MAKE-make} 3152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3153printf %s "checking whether $am_make supports nested variables... " >&6; } 3154if test ${am_cv_make_support_nested_variables+y} 3155then : 3156 printf %s "(cached) " >&6 3157else $as_nop 3158 if printf "%s\n" 'TRUE=$(BAR$(V)) 3159BAR0=false 3160BAR1=true 3161V=1 3162am__doit: 3163 @$(TRUE) 3164.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3165 am_cv_make_support_nested_variables=yes 3166else 3167 am_cv_make_support_nested_variables=no 3168fi 3169fi 3170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3171printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3172if test $am_cv_make_support_nested_variables = yes; then 3173 AM_V='$(V)' 3174 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3175else 3176 AM_V=$AM_DEFAULT_VERBOSITY 3177 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3178fi 3179AM_BACKSLASH='\' 3180 3181if test "`cd $srcdir && pwd`" != "`pwd`"; then 3182 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3183 # is not polluted with repeated "-I." 3184 am__isrc=' -I$(srcdir)' 3185 # test to see if srcdir already configured 3186 if test -f $srcdir/config.status; then 3187 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3188 fi 3189fi 3190 3191# test whether we have cygpath 3192if test -z "$CYGPATH_W"; then 3193 if (cygpath --version) >/dev/null 2>/dev/null; then 3194 CYGPATH_W='cygpath -w' 3195 else 3196 CYGPATH_W=echo 3197 fi 3198fi 3199 3200 3201# Define the identity of the package. 3202 PACKAGE='iperf' 3203 VERSION='3.11' 3204 3205 3206printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3207 3208 3209printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3210 3211# Some tools Automake needs. 3212 3213ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3214 3215 3216AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3217 3218 3219AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3220 3221 3222AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3223 3224 3225MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3226 3227# For better backward compatibility. To be removed once Automake 1.9.x 3228# dies out for good. For more background, see: 3229# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3230# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3231mkdir_p='$(MKDIR_P)' 3232 3233# We need awk for the "check" target (and possibly the TAP driver). The 3234# system "awk" is bad on some platforms. 3235# Always define AMTAR for backward compatibility. Yes, it's still used 3236# in the wild :-( We should find a proper way to deprecate it ... 3237AMTAR='$${TAR-tar}' 3238 3239 3240# We'll loop over all known methods to create a tar archive until one works. 3241_am_tools='gnutar pax cpio none' 3242 3243am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3244 3245 3246 3247 3248 3249# Variables for tags utilities; see am/tags.am 3250if test -z "$CTAGS"; then 3251 CTAGS=ctags 3252fi 3253 3254if test -z "$ETAGS"; then 3255 ETAGS=etags 3256fi 3257 3258if test -z "$CSCOPE"; then 3259 CSCOPE=cscope 3260fi 3261 3262 3263 3264# POSIX will say in a future version that running "rm -f" with no argument 3265# is OK; and we want to be able to make that assumption in our Makefile 3266# recipes. So use an aggressive probe to check that the usage we want is 3267# actually supported "in the wild" to an acceptable degree. 3268# See automake bug#10828. 3269# To make any issue more visible, cause the running configure to be aborted 3270# by default if the 'rm' program in use doesn't match our expectations; the 3271# user can still override this though. 3272if rm -f && rm -fr && rm -rf; then : OK; else 3273 cat >&2 <<'END' 3274Oops! 3275 3276Your 'rm' program seems unable to run without file operands specified 3277on the command line, even when the '-f' option is present. This is contrary 3278to the behaviour of most rm programs out there, and not conforming with 3279the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3280 3281Please tell bug-automake@gnu.org about your system, including the value 3282of your $PATH and any error possibly output before this message. This 3283can help us improve future automake versions. 3284 3285END 3286 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3287 echo 'Configuration will proceed anyway, since you have set the' >&2 3288 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3289 echo >&2 3290 else 3291 cat >&2 <<'END' 3292Aborting the configuration process, to ensure you take notice of the issue. 3293 3294You can download and install GNU coreutils to get an 'rm' implementation 3295that behaves properly: <https://www.gnu.org/software/coreutils/>. 3296 3297If you want to complete the configuration process using your problematic 3298'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3299to "yes", and re-run configure. 3300 3301END 3302 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3303 fi 3304fi 3305 3306# Check whether --enable-silent-rules was given. 3307if test ${enable_silent_rules+y} 3308then : 3309 enableval=$enable_silent_rules; 3310fi 3311 3312case $enable_silent_rules in # ((( 3313 yes) AM_DEFAULT_VERBOSITY=0;; 3314 no) AM_DEFAULT_VERBOSITY=1;; 3315 *) AM_DEFAULT_VERBOSITY=0;; 3316esac 3317am_make=${MAKE-make} 3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3319printf %s "checking whether $am_make supports nested variables... " >&6; } 3320if test ${am_cv_make_support_nested_variables+y} 3321then : 3322 printf %s "(cached) " >&6 3323else $as_nop 3324 if printf "%s\n" 'TRUE=$(BAR$(V)) 3325BAR0=false 3326BAR1=true 3327V=1 3328am__doit: 3329 @$(TRUE) 3330.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3331 am_cv_make_support_nested_variables=yes 3332else 3333 am_cv_make_support_nested_variables=no 3334fi 3335fi 3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3337printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3338if test $am_cv_make_support_nested_variables = yes; then 3339 AM_V='$(V)' 3340 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3341else 3342 AM_V=$AM_DEFAULT_VERBOSITY 3343 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3344fi 3345AM_BACKSLASH='\' 3346 3347case `pwd` in 3348 *\ * | *\ *) 3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3350printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3351esac 3352 3353 3354 3355macro_version='2.4.7' 3356macro_revision='2.4.7' 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371ltmain=$ac_aux_dir/ltmain.sh 3372 3373 3374 3375 # Make sure we can run config.sub. 3376$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3377 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3378 3379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3380printf %s "checking build system type... " >&6; } 3381if test ${ac_cv_build+y} 3382then : 3383 printf %s "(cached) " >&6 3384else $as_nop 3385 ac_build_alias=$build_alias 3386test "x$ac_build_alias" = x && 3387 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3388test "x$ac_build_alias" = x && 3389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3390ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3391 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3392 3393fi 3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3395printf "%s\n" "$ac_cv_build" >&6; } 3396case $ac_cv_build in 3397*-*-*) ;; 3398*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3399esac 3400build=$ac_cv_build 3401ac_save_IFS=$IFS; IFS='-' 3402set x $ac_cv_build 3403shift 3404build_cpu=$1 3405build_vendor=$2 3406shift; shift 3407# Remember, the first character of IFS is used to create $*, 3408# except with old shells: 3409build_os=$* 3410IFS=$ac_save_IFS 3411case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3412 3413 3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3415printf %s "checking host system type... " >&6; } 3416if test ${ac_cv_host+y} 3417then : 3418 printf %s "(cached) " >&6 3419else $as_nop 3420 if test "x$host_alias" = x; then 3421 ac_cv_host=$ac_cv_build 3422else 3423 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3424 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3425fi 3426 3427fi 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3429printf "%s\n" "$ac_cv_host" >&6; } 3430case $ac_cv_host in 3431*-*-*) ;; 3432*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3433esac 3434host=$ac_cv_host 3435ac_save_IFS=$IFS; IFS='-' 3436set x $ac_cv_host 3437shift 3438host_cpu=$1 3439host_vendor=$2 3440shift; shift 3441# Remember, the first character of IFS is used to create $*, 3442# except with old shells: 3443host_os=$* 3444IFS=$ac_save_IFS 3445case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3446 3447 3448# Backslashify metacharacters that are still active within 3449# double-quoted strings. 3450sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3451 3452# Same as above, but do not quote variable references. 3453double_quote_subst='s/\(["`\\]\)/\\\1/g' 3454 3455# Sed substitution to delay expansion of an escaped shell variable in a 3456# double_quote_subst'ed string. 3457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3458 3459# Sed substitution to delay expansion of an escaped single quote. 3460delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3461 3462# Sed substitution to avoid accidental globbing in evaled expressions 3463no_glob_subst='s/\*/\\\*/g' 3464 3465ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3466ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3467ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3468 3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3470printf %s "checking how to print strings... " >&6; } 3471# Test print first, because it will be a builtin if present. 3472if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3473 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3474 ECHO='print -r --' 3475elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3476 ECHO='printf %s\n' 3477else 3478 # Use this function as a fallback that always works. 3479 func_fallback_echo () 3480 { 3481 eval 'cat <<_LTECHO_EOF 3482$1 3483_LTECHO_EOF' 3484 } 3485 ECHO='func_fallback_echo' 3486fi 3487 3488# func_echo_all arg... 3489# Invoke $ECHO with all args, space-separated. 3490func_echo_all () 3491{ 3492 $ECHO "" 3493} 3494 3495case $ECHO in 3496 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3497printf "%s\n" "printf" >&6; } ;; 3498 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3499printf "%s\n" "print -r" >&6; } ;; 3500 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3501printf "%s\n" "cat" >&6; } ;; 3502esac 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526DEPDIR="${am__leading_dot}deps" 3527 3528ac_config_commands="$ac_config_commands depfiles" 3529 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3531printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3532cat > confinc.mk << 'END' 3533am__doit: 3534 @echo this is the am__doit target >confinc.out 3535.PHONY: am__doit 3536END 3537am__include="#" 3538am__quote= 3539# BSD make does it like this. 3540echo '.include "confinc.mk" # ignored' > confmf.BSD 3541# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3542echo 'include confinc.mk # ignored' > confmf.GNU 3543_am_result=no 3544for s in GNU BSD; do 3545 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3546 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3547 ac_status=$? 3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3549 (exit $ac_status); } 3550 case $?:`cat confinc.out 2>/dev/null` in #( 3551 '0:this is the am__doit target') : 3552 case $s in #( 3553 BSD) : 3554 am__include='.include' am__quote='"' ;; #( 3555 *) : 3556 am__include='include' am__quote='' ;; 3557esac ;; #( 3558 *) : 3559 ;; 3560esac 3561 if test "$am__include" != "#"; then 3562 _am_result="yes ($s style)" 3563 break 3564 fi 3565done 3566rm -f confinc.* confmf.* 3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3568printf "%s\n" "${_am_result}" >&6; } 3569 3570# Check whether --enable-dependency-tracking was given. 3571if test ${enable_dependency_tracking+y} 3572then : 3573 enableval=$enable_dependency_tracking; 3574fi 3575 3576if test "x$enable_dependency_tracking" != xno; then 3577 am_depcomp="$ac_aux_dir/depcomp" 3578 AMDEPBACKSLASH='\' 3579 am__nodep='_no' 3580fi 3581 if test "x$enable_dependency_tracking" != xno; then 3582 AMDEP_TRUE= 3583 AMDEP_FALSE='#' 3584else 3585 AMDEP_TRUE='#' 3586 AMDEP_FALSE= 3587fi 3588 3589 3590ac_ext=c 3591ac_cpp='$CPP $CPPFLAGS' 3592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3594ac_compiler_gnu=$ac_cv_c_compiler_gnu 3595if test -n "$ac_tool_prefix"; then 3596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3597set dummy ${ac_tool_prefix}gcc; ac_word=$2 3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599printf %s "checking for $ac_word... " >&6; } 3600if test ${ac_cv_prog_CC+y} 3601then : 3602 printf %s "(cached) " >&6 3603else $as_nop 3604 if test -n "$CC"; then 3605 ac_cv_prog_CC="$CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 case $as_dir in #((( 3612 '') as_dir=./ ;; 3613 */) ;; 3614 *) as_dir=$as_dir/ ;; 3615 esac 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623 done 3624IFS=$as_save_IFS 3625 3626fi 3627fi 3628CC=$ac_cv_prog_CC 3629if test -n "$CC"; then 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3631printf "%s\n" "$CC" >&6; } 3632else 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3634printf "%s\n" "no" >&6; } 3635fi 3636 3637 3638fi 3639if test -z "$ac_cv_prog_CC"; then 3640 ac_ct_CC=$CC 3641 # Extract the first word of "gcc", so it can be a program name with args. 3642set dummy gcc; ac_word=$2 3643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644printf %s "checking for $ac_word... " >&6; } 3645if test ${ac_cv_prog_ac_ct_CC+y} 3646then : 3647 printf %s "(cached) " >&6 3648else $as_nop 3649 if test -n "$ac_ct_CC"; then 3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 case $as_dir in #((( 3657 '') as_dir=./ ;; 3658 */) ;; 3659 *) as_dir=$as_dir/ ;; 3660 esac 3661 for ac_exec_ext in '' $ac_executable_extensions; do 3662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3663 ac_cv_prog_ac_ct_CC="gcc" 3664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3665 break 2 3666 fi 3667done 3668 done 3669IFS=$as_save_IFS 3670 3671fi 3672fi 3673ac_ct_CC=$ac_cv_prog_ac_ct_CC 3674if test -n "$ac_ct_CC"; then 3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3676printf "%s\n" "$ac_ct_CC" >&6; } 3677else 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3679printf "%s\n" "no" >&6; } 3680fi 3681 3682 if test "x$ac_ct_CC" = x; then 3683 CC="" 3684 else 3685 case $cross_compiling:$ac_tool_warned in 3686yes:) 3687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3688printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3689ac_tool_warned=yes ;; 3690esac 3691 CC=$ac_ct_CC 3692 fi 3693else 3694 CC="$ac_cv_prog_CC" 3695fi 3696 3697if test -z "$CC"; then 3698 if test -n "$ac_tool_prefix"; then 3699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3700set dummy ${ac_tool_prefix}cc; ac_word=$2 3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3702printf %s "checking for $ac_word... " >&6; } 3703if test ${ac_cv_prog_CC+y} 3704then : 3705 printf %s "(cached) " >&6 3706else $as_nop 3707 if test -n "$CC"; then 3708 ac_cv_prog_CC="$CC" # Let the user override the test. 3709else 3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3711for as_dir in $PATH 3712do 3713 IFS=$as_save_IFS 3714 case $as_dir in #((( 3715 '') as_dir=./ ;; 3716 */) ;; 3717 *) as_dir=$as_dir/ ;; 3718 esac 3719 for ac_exec_ext in '' $ac_executable_extensions; do 3720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3721 ac_cv_prog_CC="${ac_tool_prefix}cc" 3722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3723 break 2 3724 fi 3725done 3726 done 3727IFS=$as_save_IFS 3728 3729fi 3730fi 3731CC=$ac_cv_prog_CC 3732if test -n "$CC"; then 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3734printf "%s\n" "$CC" >&6; } 3735else 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3737printf "%s\n" "no" >&6; } 3738fi 3739 3740 3741 fi 3742fi 3743if test -z "$CC"; then 3744 # Extract the first word of "cc", so it can be a program name with args. 3745set dummy cc; ac_word=$2 3746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3747printf %s "checking for $ac_word... " >&6; } 3748if test ${ac_cv_prog_CC+y} 3749then : 3750 printf %s "(cached) " >&6 3751else $as_nop 3752 if test -n "$CC"; then 3753 ac_cv_prog_CC="$CC" # Let the user override the test. 3754else 3755 ac_prog_rejected=no 3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3757for as_dir in $PATH 3758do 3759 IFS=$as_save_IFS 3760 case $as_dir in #((( 3761 '') as_dir=./ ;; 3762 */) ;; 3763 *) as_dir=$as_dir/ ;; 3764 esac 3765 for ac_exec_ext in '' $ac_executable_extensions; do 3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3767 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3768 ac_prog_rejected=yes 3769 continue 3770 fi 3771 ac_cv_prog_CC="cc" 3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3773 break 2 3774 fi 3775done 3776 done 3777IFS=$as_save_IFS 3778 3779if test $ac_prog_rejected = yes; then 3780 # We found a bogon in the path, so make sure we never use it. 3781 set dummy $ac_cv_prog_CC 3782 shift 3783 if test $# != 0; then 3784 # We chose a different compiler from the bogus one. 3785 # However, it has the same basename, so the bogon will be chosen 3786 # first if we set CC to just the basename; use the full file name. 3787 shift 3788 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3789 fi 3790fi 3791fi 3792fi 3793CC=$ac_cv_prog_CC 3794if test -n "$CC"; then 3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3796printf "%s\n" "$CC" >&6; } 3797else 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799printf "%s\n" "no" >&6; } 3800fi 3801 3802 3803fi 3804if test -z "$CC"; then 3805 if test -n "$ac_tool_prefix"; then 3806 for ac_prog in cl.exe 3807 do 3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3809set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3811printf %s "checking for $ac_word... " >&6; } 3812if test ${ac_cv_prog_CC+y} 3813then : 3814 printf %s "(cached) " >&6 3815else $as_nop 3816 if test -n "$CC"; then 3817 ac_cv_prog_CC="$CC" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 case $as_dir in #((( 3824 '') as_dir=./ ;; 3825 */) ;; 3826 *) as_dir=$as_dir/ ;; 3827 esac 3828 for ac_exec_ext in '' $ac_executable_extensions; do 3829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3832 break 2 3833 fi 3834done 3835 done 3836IFS=$as_save_IFS 3837 3838fi 3839fi 3840CC=$ac_cv_prog_CC 3841if test -n "$CC"; then 3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3843printf "%s\n" "$CC" >&6; } 3844else 3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3846printf "%s\n" "no" >&6; } 3847fi 3848 3849 3850 test -n "$CC" && break 3851 done 3852fi 3853if test -z "$CC"; then 3854 ac_ct_CC=$CC 3855 for ac_prog in cl.exe 3856do 3857 # Extract the first word of "$ac_prog", so it can be a program name with args. 3858set dummy $ac_prog; ac_word=$2 3859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3860printf %s "checking for $ac_word... " >&6; } 3861if test ${ac_cv_prog_ac_ct_CC+y} 3862then : 3863 printf %s "(cached) " >&6 3864else $as_nop 3865 if test -n "$ac_ct_CC"; then 3866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 case $as_dir in #((( 3873 '') as_dir=./ ;; 3874 */) ;; 3875 *) as_dir=$as_dir/ ;; 3876 esac 3877 for ac_exec_ext in '' $ac_executable_extensions; do 3878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3879 ac_cv_prog_ac_ct_CC="$ac_prog" 3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3881 break 2 3882 fi 3883done 3884 done 3885IFS=$as_save_IFS 3886 3887fi 3888fi 3889ac_ct_CC=$ac_cv_prog_ac_ct_CC 3890if test -n "$ac_ct_CC"; then 3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3892printf "%s\n" "$ac_ct_CC" >&6; } 3893else 3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3895printf "%s\n" "no" >&6; } 3896fi 3897 3898 3899 test -n "$ac_ct_CC" && break 3900done 3901 3902 if test "x$ac_ct_CC" = x; then 3903 CC="" 3904 else 3905 case $cross_compiling:$ac_tool_warned in 3906yes:) 3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3908printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3909ac_tool_warned=yes ;; 3910esac 3911 CC=$ac_ct_CC 3912 fi 3913fi 3914 3915fi 3916if test -z "$CC"; then 3917 if test -n "$ac_tool_prefix"; then 3918 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3919set dummy ${ac_tool_prefix}clang; ac_word=$2 3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3921printf %s "checking for $ac_word... " >&6; } 3922if test ${ac_cv_prog_CC+y} 3923then : 3924 printf %s "(cached) " >&6 3925else $as_nop 3926 if test -n "$CC"; then 3927 ac_cv_prog_CC="$CC" # Let the user override the test. 3928else 3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH 3931do 3932 IFS=$as_save_IFS 3933 case $as_dir in #((( 3934 '') as_dir=./ ;; 3935 */) ;; 3936 *) as_dir=$as_dir/ ;; 3937 esac 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3940 ac_cv_prog_CC="${ac_tool_prefix}clang" 3941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3942 break 2 3943 fi 3944done 3945 done 3946IFS=$as_save_IFS 3947 3948fi 3949fi 3950CC=$ac_cv_prog_CC 3951if test -n "$CC"; then 3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3953printf "%s\n" "$CC" >&6; } 3954else 3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3956printf "%s\n" "no" >&6; } 3957fi 3958 3959 3960fi 3961if test -z "$ac_cv_prog_CC"; then 3962 ac_ct_CC=$CC 3963 # Extract the first word of "clang", so it can be a program name with args. 3964set dummy clang; ac_word=$2 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3966printf %s "checking for $ac_word... " >&6; } 3967if test ${ac_cv_prog_ac_ct_CC+y} 3968then : 3969 printf %s "(cached) " >&6 3970else $as_nop 3971 if test -n "$ac_ct_CC"; then 3972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3973else 3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3975for as_dir in $PATH 3976do 3977 IFS=$as_save_IFS 3978 case $as_dir in #((( 3979 '') as_dir=./ ;; 3980 */) ;; 3981 *) as_dir=$as_dir/ ;; 3982 esac 3983 for ac_exec_ext in '' $ac_executable_extensions; do 3984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3985 ac_cv_prog_ac_ct_CC="clang" 3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3987 break 2 3988 fi 3989done 3990 done 3991IFS=$as_save_IFS 3992 3993fi 3994fi 3995ac_ct_CC=$ac_cv_prog_ac_ct_CC 3996if test -n "$ac_ct_CC"; then 3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3998printf "%s\n" "$ac_ct_CC" >&6; } 3999else 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4001printf "%s\n" "no" >&6; } 4002fi 4003 4004 if test "x$ac_ct_CC" = x; then 4005 CC="" 4006 else 4007 case $cross_compiling:$ac_tool_warned in 4008yes:) 4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4010printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4011ac_tool_warned=yes ;; 4012esac 4013 CC=$ac_ct_CC 4014 fi 4015else 4016 CC="$ac_cv_prog_CC" 4017fi 4018 4019fi 4020 4021 4022test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4023printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4024as_fn_error $? "no acceptable C compiler found in \$PATH 4025See \`config.log' for more details" "$LINENO" 5; } 4026 4027# Provide some information about the compiler. 4028printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4029set X $ac_compile 4030ac_compiler=$2 4031for ac_option in --version -v -V -qversion -version; do 4032 { { ac_try="$ac_compiler $ac_option >&5" 4033case "(($ac_try" in 4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4035 *) ac_try_echo=$ac_try;; 4036esac 4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4038printf "%s\n" "$ac_try_echo"; } >&5 4039 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4040 ac_status=$? 4041 if test -s conftest.err; then 4042 sed '10a\ 4043... rest of stderr output deleted ... 4044 10q' conftest.err >conftest.er1 4045 cat conftest.er1 >&5 4046 fi 4047 rm -f conftest.er1 conftest.err 4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4049 test $ac_status = 0; } 4050done 4051 4052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054 4055int 4056main (void) 4057{ 4058 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063ac_clean_files_save=$ac_clean_files 4064ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4065# Try to create an executable without -o first, disregard a.out. 4066# It will help us diagnose broken compilers, and finding out an intuition 4067# of exeext. 4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4069printf %s "checking whether the C compiler works... " >&6; } 4070ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4071 4072# The possible output files: 4073ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4074 4075ac_rmfiles= 4076for ac_file in $ac_files 4077do 4078 case $ac_file in 4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4080 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4081 esac 4082done 4083rm -f $ac_rmfiles 4084 4085if { { ac_try="$ac_link_default" 4086case "(($ac_try" in 4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4088 *) ac_try_echo=$ac_try;; 4089esac 4090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4091printf "%s\n" "$ac_try_echo"; } >&5 4092 (eval "$ac_link_default") 2>&5 4093 ac_status=$? 4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4095 test $ac_status = 0; } 4096then : 4097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4099# in a Makefile. We should not override ac_cv_exeext if it was cached, 4100# so that the user can short-circuit this test for compilers unknown to 4101# Autoconf. 4102for ac_file in $ac_files '' 4103do 4104 test -f "$ac_file" || continue 4105 case $ac_file in 4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4107 ;; 4108 [ab].out ) 4109 # We found the default executable, but exeext='' is most 4110 # certainly right. 4111 break;; 4112 *.* ) 4113 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4114 then :; else 4115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4116 fi 4117 # We set ac_cv_exeext here because the later test for it is not 4118 # safe: cross compilers may not add the suffix if given an `-o' 4119 # argument, so we may need to know it at that point already. 4120 # Even if this section looks crufty: it has the advantage of 4121 # actually working. 4122 break;; 4123 * ) 4124 break;; 4125 esac 4126done 4127test "$ac_cv_exeext" = no && ac_cv_exeext= 4128 4129else $as_nop 4130 ac_file='' 4131fi 4132if test -z "$ac_file" 4133then : 4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4135printf "%s\n" "no" >&6; } 4136printf "%s\n" "$as_me: failed program was:" >&5 4137sed 's/^/| /' conftest.$ac_ext >&5 4138 4139{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4141as_fn_error 77 "C compiler cannot create executables 4142See \`config.log' for more details" "$LINENO" 5; } 4143else $as_nop 4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4145printf "%s\n" "yes" >&6; } 4146fi 4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4148printf %s "checking for C compiler default output file name... " >&6; } 4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4150printf "%s\n" "$ac_file" >&6; } 4151ac_exeext=$ac_cv_exeext 4152 4153rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4154ac_clean_files=$ac_clean_files_save 4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4156printf %s "checking for suffix of executables... " >&6; } 4157if { { ac_try="$ac_link" 4158case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4163printf "%s\n" "$ac_try_echo"; } >&5 4164 (eval "$ac_link") 2>&5 4165 ac_status=$? 4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4167 test $ac_status = 0; } 4168then : 4169 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4170# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4171# work properly (i.e., refer to `conftest.exe'), while it won't with 4172# `rm'. 4173for ac_file in conftest.exe conftest conftest.*; do 4174 test -f "$ac_file" || continue 4175 case $ac_file in 4176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4178 break;; 4179 * ) break;; 4180 esac 4181done 4182else $as_nop 4183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4184printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4185as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4186See \`config.log' for more details" "$LINENO" 5; } 4187fi 4188rm -f conftest conftest$ac_cv_exeext 4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4190printf "%s\n" "$ac_cv_exeext" >&6; } 4191 4192rm -f conftest.$ac_ext 4193EXEEXT=$ac_cv_exeext 4194ac_exeext=$EXEEXT 4195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197#include <stdio.h> 4198int 4199main (void) 4200{ 4201FILE *f = fopen ("conftest.out", "w"); 4202 return ferror (f) || fclose (f) != 0; 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208ac_clean_files="$ac_clean_files conftest.out" 4209# Check that the compiler produces executables we can run. If not, either 4210# the compiler is broken, or we cross compile. 4211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4212printf %s "checking whether we are cross compiling... " >&6; } 4213if test "$cross_compiling" != yes; then 4214 { { ac_try="$ac_link" 4215case "(($ac_try" in 4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4217 *) ac_try_echo=$ac_try;; 4218esac 4219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4220printf "%s\n" "$ac_try_echo"; } >&5 4221 (eval "$ac_link") 2>&5 4222 ac_status=$? 4223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4224 test $ac_status = 0; } 4225 if { ac_try='./conftest$ac_cv_exeext' 4226 { { case "(($ac_try" in 4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4228 *) ac_try_echo=$ac_try;; 4229esac 4230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4231printf "%s\n" "$ac_try_echo"; } >&5 4232 (eval "$ac_try") 2>&5 4233 ac_status=$? 4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4235 test $ac_status = 0; }; }; then 4236 cross_compiling=no 4237 else 4238 if test "$cross_compiling" = maybe; then 4239 cross_compiling=yes 4240 else 4241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4242printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4243as_fn_error 77 "cannot run C compiled programs. 4244If you meant to cross compile, use \`--host'. 4245See \`config.log' for more details" "$LINENO" 5; } 4246 fi 4247 fi 4248fi 4249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4250printf "%s\n" "$cross_compiling" >&6; } 4251 4252rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4253ac_clean_files=$ac_clean_files_save 4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4255printf %s "checking for suffix of object files... " >&6; } 4256if test ${ac_cv_objext+y} 4257then : 4258 printf %s "(cached) " >&6 4259else $as_nop 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262 4263int 4264main (void) 4265{ 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271rm -f conftest.o conftest.obj 4272if { { ac_try="$ac_compile" 4273case "(($ac_try" in 4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4275 *) ac_try_echo=$ac_try;; 4276esac 4277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4278printf "%s\n" "$ac_try_echo"; } >&5 4279 (eval "$ac_compile") 2>&5 4280 ac_status=$? 4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4282 test $ac_status = 0; } 4283then : 4284 for ac_file in conftest.o conftest.obj conftest.*; do 4285 test -f "$ac_file" || continue; 4286 case $ac_file in 4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4288 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4289 break;; 4290 esac 4291done 4292else $as_nop 4293 printf "%s\n" "$as_me: failed program was:" >&5 4294sed 's/^/| /' conftest.$ac_ext >&5 4295 4296{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4297printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4298as_fn_error $? "cannot compute suffix of object files: cannot compile 4299See \`config.log' for more details" "$LINENO" 5; } 4300fi 4301rm -f conftest.$ac_cv_objext conftest.$ac_ext 4302fi 4303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4304printf "%s\n" "$ac_cv_objext" >&6; } 4305OBJEXT=$ac_cv_objext 4306ac_objext=$OBJEXT 4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4308printf %s "checking whether the compiler supports GNU C... " >&6; } 4309if test ${ac_cv_c_compiler_gnu+y} 4310then : 4311 printf %s "(cached) " >&6 4312else $as_nop 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314/* end confdefs.h. */ 4315 4316int 4317main (void) 4318{ 4319#ifndef __GNUC__ 4320 choke me 4321#endif 4322 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327if ac_fn_c_try_compile "$LINENO" 4328then : 4329 ac_compiler_gnu=yes 4330else $as_nop 4331 ac_compiler_gnu=no 4332fi 4333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4334ac_cv_c_compiler_gnu=$ac_compiler_gnu 4335 4336fi 4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4338printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4339ac_compiler_gnu=$ac_cv_c_compiler_gnu 4340 4341if test $ac_compiler_gnu = yes; then 4342 GCC=yes 4343else 4344 GCC= 4345fi 4346ac_test_CFLAGS=${CFLAGS+y} 4347ac_save_CFLAGS=$CFLAGS 4348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4349printf %s "checking whether $CC accepts -g... " >&6; } 4350if test ${ac_cv_prog_cc_g+y} 4351then : 4352 printf %s "(cached) " >&6 4353else $as_nop 4354 ac_save_c_werror_flag=$ac_c_werror_flag 4355 ac_c_werror_flag=yes 4356 ac_cv_prog_cc_g=no 4357 CFLAGS="-g" 4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4359/* end confdefs.h. */ 4360 4361int 4362main (void) 4363{ 4364 4365 ; 4366 return 0; 4367} 4368_ACEOF 4369if ac_fn_c_try_compile "$LINENO" 4370then : 4371 ac_cv_prog_cc_g=yes 4372else $as_nop 4373 CFLAGS="" 4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4375/* end confdefs.h. */ 4376 4377int 4378main (void) 4379{ 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385if ac_fn_c_try_compile "$LINENO" 4386then : 4387 4388else $as_nop 4389 ac_c_werror_flag=$ac_save_c_werror_flag 4390 CFLAGS="-g" 4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4392/* end confdefs.h. */ 4393 4394int 4395main (void) 4396{ 4397 4398 ; 4399 return 0; 4400} 4401_ACEOF 4402if ac_fn_c_try_compile "$LINENO" 4403then : 4404 ac_cv_prog_cc_g=yes 4405fi 4406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4407fi 4408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4409fi 4410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4411 ac_c_werror_flag=$ac_save_c_werror_flag 4412fi 4413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4414printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4415if test $ac_test_CFLAGS; then 4416 CFLAGS=$ac_save_CFLAGS 4417elif test $ac_cv_prog_cc_g = yes; then 4418 if test "$GCC" = yes; then 4419 CFLAGS="-g -O2" 4420 else 4421 CFLAGS="-g" 4422 fi 4423else 4424 if test "$GCC" = yes; then 4425 CFLAGS="-O2" 4426 else 4427 CFLAGS= 4428 fi 4429fi 4430ac_prog_cc_stdc=no 4431if test x$ac_prog_cc_stdc = xno 4432then : 4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4434printf %s "checking for $CC option to enable C11 features... " >&6; } 4435if test ${ac_cv_prog_cc_c11+y} 4436then : 4437 printf %s "(cached) " >&6 4438else $as_nop 4439 ac_cv_prog_cc_c11=no 4440ac_save_CC=$CC 4441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442/* end confdefs.h. */ 4443$ac_c_conftest_c11_program 4444_ACEOF 4445for ac_arg in '' -std=gnu11 4446do 4447 CC="$ac_save_CC $ac_arg" 4448 if ac_fn_c_try_compile "$LINENO" 4449then : 4450 ac_cv_prog_cc_c11=$ac_arg 4451fi 4452rm -f core conftest.err conftest.$ac_objext conftest.beam 4453 test "x$ac_cv_prog_cc_c11" != "xno" && break 4454done 4455rm -f conftest.$ac_ext 4456CC=$ac_save_CC 4457fi 4458 4459if test "x$ac_cv_prog_cc_c11" = xno 4460then : 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4462printf "%s\n" "unsupported" >&6; } 4463else $as_nop 4464 if test "x$ac_cv_prog_cc_c11" = x 4465then : 4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4467printf "%s\n" "none needed" >&6; } 4468else $as_nop 4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4470printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4471 CC="$CC $ac_cv_prog_cc_c11" 4472fi 4473 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4474 ac_prog_cc_stdc=c11 4475fi 4476fi 4477if test x$ac_prog_cc_stdc = xno 4478then : 4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4480printf %s "checking for $CC option to enable C99 features... " >&6; } 4481if test ${ac_cv_prog_cc_c99+y} 4482then : 4483 printf %s "(cached) " >&6 4484else $as_nop 4485 ac_cv_prog_cc_c99=no 4486ac_save_CC=$CC 4487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489$ac_c_conftest_c99_program 4490_ACEOF 4491for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4492do 4493 CC="$ac_save_CC $ac_arg" 4494 if ac_fn_c_try_compile "$LINENO" 4495then : 4496 ac_cv_prog_cc_c99=$ac_arg 4497fi 4498rm -f core conftest.err conftest.$ac_objext conftest.beam 4499 test "x$ac_cv_prog_cc_c99" != "xno" && break 4500done 4501rm -f conftest.$ac_ext 4502CC=$ac_save_CC 4503fi 4504 4505if test "x$ac_cv_prog_cc_c99" = xno 4506then : 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4508printf "%s\n" "unsupported" >&6; } 4509else $as_nop 4510 if test "x$ac_cv_prog_cc_c99" = x 4511then : 4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4513printf "%s\n" "none needed" >&6; } 4514else $as_nop 4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4516printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4517 CC="$CC $ac_cv_prog_cc_c99" 4518fi 4519 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4520 ac_prog_cc_stdc=c99 4521fi 4522fi 4523if test x$ac_prog_cc_stdc = xno 4524then : 4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4526printf %s "checking for $CC option to enable C89 features... " >&6; } 4527if test ${ac_cv_prog_cc_c89+y} 4528then : 4529 printf %s "(cached) " >&6 4530else $as_nop 4531 ac_cv_prog_cc_c89=no 4532ac_save_CC=$CC 4533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535$ac_c_conftest_c89_program 4536_ACEOF 4537for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4538do 4539 CC="$ac_save_CC $ac_arg" 4540 if ac_fn_c_try_compile "$LINENO" 4541then : 4542 ac_cv_prog_cc_c89=$ac_arg 4543fi 4544rm -f core conftest.err conftest.$ac_objext conftest.beam 4545 test "x$ac_cv_prog_cc_c89" != "xno" && break 4546done 4547rm -f conftest.$ac_ext 4548CC=$ac_save_CC 4549fi 4550 4551if test "x$ac_cv_prog_cc_c89" = xno 4552then : 4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4554printf "%s\n" "unsupported" >&6; } 4555else $as_nop 4556 if test "x$ac_cv_prog_cc_c89" = x 4557then : 4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4559printf "%s\n" "none needed" >&6; } 4560else $as_nop 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4562printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4563 CC="$CC $ac_cv_prog_cc_c89" 4564fi 4565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4566 ac_prog_cc_stdc=c89 4567fi 4568fi 4569 4570ac_ext=c 4571ac_cpp='$CPP $CPPFLAGS' 4572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4574ac_compiler_gnu=$ac_cv_c_compiler_gnu 4575 4576 4577 ac_ext=c 4578ac_cpp='$CPP $CPPFLAGS' 4579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4581ac_compiler_gnu=$ac_cv_c_compiler_gnu 4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4583printf %s "checking whether $CC understands -c and -o together... " >&6; } 4584if test ${am_cv_prog_cc_c_o+y} 4585then : 4586 printf %s "(cached) " >&6 4587else $as_nop 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590 4591int 4592main (void) 4593{ 4594 4595 ; 4596 return 0; 4597} 4598_ACEOF 4599 # Make sure it works both with $CC and with simple cc. 4600 # Following AC_PROG_CC_C_O, we do the test twice because some 4601 # compilers refuse to overwrite an existing .o file with -o, 4602 # though they will create one. 4603 am_cv_prog_cc_c_o=yes 4604 for am_i in 1 2; do 4605 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4606 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4607 ac_status=$? 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); } \ 4610 && test -f conftest2.$ac_objext; then 4611 : OK 4612 else 4613 am_cv_prog_cc_c_o=no 4614 break 4615 fi 4616 done 4617 rm -f core conftest* 4618 unset am_i 4619fi 4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4621printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4622if test "$am_cv_prog_cc_c_o" != yes; then 4623 # Losing compiler, so override with the script. 4624 # FIXME: It is wrong to rewrite CC. 4625 # But if we don't then we get into trouble of one sort or another. 4626 # A longer-term fix would be to have automake use am__CC in this case, 4627 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4628 CC="$am_aux_dir/compile $CC" 4629fi 4630ac_ext=c 4631ac_cpp='$CPP $CPPFLAGS' 4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4634ac_compiler_gnu=$ac_cv_c_compiler_gnu 4635 4636 4637depcc="$CC" am_compiler_list= 4638 4639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4640printf %s "checking dependency style of $depcc... " >&6; } 4641if test ${am_cv_CC_dependencies_compiler_type+y} 4642then : 4643 printf %s "(cached) " >&6 4644else $as_nop 4645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4646 # We make a subdir and do the tests there. Otherwise we can end up 4647 # making bogus files that we don't know about and never remove. For 4648 # instance it was reported that on HP-UX the gcc test will end up 4649 # making a dummy file named 'D' -- because '-MD' means "put the output 4650 # in D". 4651 rm -rf conftest.dir 4652 mkdir conftest.dir 4653 # Copy depcomp to subdir because otherwise we won't find it if we're 4654 # using a relative directory. 4655 cp "$am_depcomp" conftest.dir 4656 cd conftest.dir 4657 # We will build objects and dependencies in a subdirectory because 4658 # it helps to detect inapplicable dependency modes. For instance 4659 # both Tru64's cc and ICC support -MD to output dependencies as a 4660 # side effect of compilation, but ICC will put the dependencies in 4661 # the current directory while Tru64 will put them in the object 4662 # directory. 4663 mkdir sub 4664 4665 am_cv_CC_dependencies_compiler_type=none 4666 if test "$am_compiler_list" = ""; then 4667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4668 fi 4669 am__universal=false 4670 case " $depcc " in #( 4671 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4672 esac 4673 4674 for depmode in $am_compiler_list; do 4675 # Setup a source with many dependencies, because some compilers 4676 # like to wrap large dependency lists on column 80 (with \), and 4677 # we should not choose a depcomp mode which is confused by this. 4678 # 4679 # We need to recreate these files for each test, as the compiler may 4680 # overwrite some of them when testing with obscure command lines. 4681 # This happens at least with the AIX C compiler. 4682 : > sub/conftest.c 4683 for i in 1 2 3 4 5 6; do 4684 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4685 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4686 # Solaris 10 /bin/sh. 4687 echo '/* dummy */' > sub/conftst$i.h 4688 done 4689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4690 4691 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4692 # mode. It turns out that the SunPro C++ compiler does not properly 4693 # handle '-M -o', and we need to detect this. Also, some Intel 4694 # versions had trouble with output in subdirs. 4695 am__obj=sub/conftest.${OBJEXT-o} 4696 am__minus_obj="-o $am__obj" 4697 case $depmode in 4698 gcc) 4699 # This depmode causes a compiler race in universal mode. 4700 test "$am__universal" = false || continue 4701 ;; 4702 nosideeffect) 4703 # After this tag, mechanisms are not by side-effect, so they'll 4704 # only be used when explicitly requested. 4705 if test "x$enable_dependency_tracking" = xyes; then 4706 continue 4707 else 4708 break 4709 fi 4710 ;; 4711 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4712 # This compiler won't grok '-c -o', but also, the minuso test has 4713 # not run yet. These depmodes are late enough in the game, and 4714 # so weak that their functioning should not be impacted. 4715 am__obj=conftest.${OBJEXT-o} 4716 am__minus_obj= 4717 ;; 4718 none) break ;; 4719 esac 4720 if depmode=$depmode \ 4721 source=sub/conftest.c object=$am__obj \ 4722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4723 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4724 >/dev/null 2>conftest.err && 4725 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4726 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4727 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4728 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4729 # icc doesn't choke on unknown options, it will just issue warnings 4730 # or remarks (even with -Werror). So we grep stderr for any message 4731 # that says an option was ignored or not supported. 4732 # When given -MP, icc 7.0 and 7.1 complain thusly: 4733 # icc: Command line warning: ignoring option '-M'; no argument required 4734 # The diagnosis changed in icc 8.0: 4735 # icc: Command line remark: option '-MP' not supported 4736 if (grep 'ignoring option' conftest.err || 4737 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4738 am_cv_CC_dependencies_compiler_type=$depmode 4739 break 4740 fi 4741 fi 4742 done 4743 4744 cd .. 4745 rm -rf conftest.dir 4746else 4747 am_cv_CC_dependencies_compiler_type=none 4748fi 4749 4750fi 4751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4752printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4753CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4754 4755 if 4756 test "x$enable_dependency_tracking" != xno \ 4757 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4758 am__fastdepCC_TRUE= 4759 am__fastdepCC_FALSE='#' 4760else 4761 am__fastdepCC_TRUE='#' 4762 am__fastdepCC_FALSE= 4763fi 4764 4765 4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4767printf %s "checking for a sed that does not truncate output... " >&6; } 4768if test ${ac_cv_path_SED+y} 4769then : 4770 printf %s "(cached) " >&6 4771else $as_nop 4772 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4773 for ac_i in 1 2 3 4 5 6 7; do 4774 ac_script="$ac_script$as_nl$ac_script" 4775 done 4776 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4777 { ac_script=; unset ac_script;} 4778 if test -z "$SED"; then 4779 ac_path_SED_found=false 4780 # Loop through the user's path and test for each of PROGNAME-LIST 4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782for as_dir in $PATH 4783do 4784 IFS=$as_save_IFS 4785 case $as_dir in #((( 4786 '') as_dir=./ ;; 4787 */) ;; 4788 *) as_dir=$as_dir/ ;; 4789 esac 4790 for ac_prog in sed gsed 4791 do 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4794 as_fn_executable_p "$ac_path_SED" || continue 4795# Check for GNU ac_path_SED and select it if it is found. 4796 # Check for GNU $ac_path_SED 4797case `"$ac_path_SED" --version 2>&1` in 4798*GNU*) 4799 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4800*) 4801 ac_count=0 4802 printf %s 0123456789 >"conftest.in" 4803 while : 4804 do 4805 cat "conftest.in" "conftest.in" >"conftest.tmp" 4806 mv "conftest.tmp" "conftest.in" 4807 cp "conftest.in" "conftest.nl" 4808 printf "%s\n" '' >> "conftest.nl" 4809 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4811 as_fn_arith $ac_count + 1 && ac_count=$as_val 4812 if test $ac_count -gt ${ac_path_SED_max-0}; then 4813 # Best one so far, save it but keep looking for a better one 4814 ac_cv_path_SED="$ac_path_SED" 4815 ac_path_SED_max=$ac_count 4816 fi 4817 # 10*(2^10) chars as input seems more than enough 4818 test $ac_count -gt 10 && break 4819 done 4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4821esac 4822 4823 $ac_path_SED_found && break 3 4824 done 4825 done 4826 done 4827IFS=$as_save_IFS 4828 if test -z "$ac_cv_path_SED"; then 4829 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4830 fi 4831else 4832 ac_cv_path_SED=$SED 4833fi 4834 4835fi 4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4837printf "%s\n" "$ac_cv_path_SED" >&6; } 4838 SED="$ac_cv_path_SED" 4839 rm -f conftest.sed 4840 4841test -z "$SED" && SED=sed 4842Xsed="$SED -e 1s/^X//" 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4855printf %s "checking for grep that handles long lines and -e... " >&6; } 4856if test ${ac_cv_path_GREP+y} 4857then : 4858 printf %s "(cached) " >&6 4859else $as_nop 4860 if test -z "$GREP"; then 4861 ac_path_GREP_found=false 4862 # Loop through the user's path and test for each of PROGNAME-LIST 4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4865do 4866 IFS=$as_save_IFS 4867 case $as_dir in #((( 4868 '') as_dir=./ ;; 4869 */) ;; 4870 *) as_dir=$as_dir/ ;; 4871 esac 4872 for ac_prog in grep ggrep 4873 do 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4876 as_fn_executable_p "$ac_path_GREP" || continue 4877# Check for GNU ac_path_GREP and select it if it is found. 4878 # Check for GNU $ac_path_GREP 4879case `"$ac_path_GREP" --version 2>&1` in 4880*GNU*) 4881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4882*) 4883 ac_count=0 4884 printf %s 0123456789 >"conftest.in" 4885 while : 4886 do 4887 cat "conftest.in" "conftest.in" >"conftest.tmp" 4888 mv "conftest.tmp" "conftest.in" 4889 cp "conftest.in" "conftest.nl" 4890 printf "%s\n" 'GREP' >> "conftest.nl" 4891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4893 as_fn_arith $ac_count + 1 && ac_count=$as_val 4894 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4895 # Best one so far, save it but keep looking for a better one 4896 ac_cv_path_GREP="$ac_path_GREP" 4897 ac_path_GREP_max=$ac_count 4898 fi 4899 # 10*(2^10) chars as input seems more than enough 4900 test $ac_count -gt 10 && break 4901 done 4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4903esac 4904 4905 $ac_path_GREP_found && break 3 4906 done 4907 done 4908 done 4909IFS=$as_save_IFS 4910 if test -z "$ac_cv_path_GREP"; then 4911 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4912 fi 4913else 4914 ac_cv_path_GREP=$GREP 4915fi 4916 4917fi 4918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4919printf "%s\n" "$ac_cv_path_GREP" >&6; } 4920 GREP="$ac_cv_path_GREP" 4921 4922 4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4924printf %s "checking for egrep... " >&6; } 4925if test ${ac_cv_path_EGREP+y} 4926then : 4927 printf %s "(cached) " >&6 4928else $as_nop 4929 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4930 then ac_cv_path_EGREP="$GREP -E" 4931 else 4932 if test -z "$EGREP"; then 4933 ac_path_EGREP_found=false 4934 # Loop through the user's path and test for each of PROGNAME-LIST 4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4936for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4937do 4938 IFS=$as_save_IFS 4939 case $as_dir in #((( 4940 '') as_dir=./ ;; 4941 */) ;; 4942 *) as_dir=$as_dir/ ;; 4943 esac 4944 for ac_prog in egrep 4945 do 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4948 as_fn_executable_p "$ac_path_EGREP" || continue 4949# Check for GNU ac_path_EGREP and select it if it is found. 4950 # Check for GNU $ac_path_EGREP 4951case `"$ac_path_EGREP" --version 2>&1` in 4952*GNU*) 4953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4954*) 4955 ac_count=0 4956 printf %s 0123456789 >"conftest.in" 4957 while : 4958 do 4959 cat "conftest.in" "conftest.in" >"conftest.tmp" 4960 mv "conftest.tmp" "conftest.in" 4961 cp "conftest.in" "conftest.nl" 4962 printf "%s\n" 'EGREP' >> "conftest.nl" 4963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4965 as_fn_arith $ac_count + 1 && ac_count=$as_val 4966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4967 # Best one so far, save it but keep looking for a better one 4968 ac_cv_path_EGREP="$ac_path_EGREP" 4969 ac_path_EGREP_max=$ac_count 4970 fi 4971 # 10*(2^10) chars as input seems more than enough 4972 test $ac_count -gt 10 && break 4973 done 4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4975esac 4976 4977 $ac_path_EGREP_found && break 3 4978 done 4979 done 4980 done 4981IFS=$as_save_IFS 4982 if test -z "$ac_cv_path_EGREP"; then 4983 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4984 fi 4985else 4986 ac_cv_path_EGREP=$EGREP 4987fi 4988 4989 fi 4990fi 4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4992printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4993 EGREP="$ac_cv_path_EGREP" 4994 4995 4996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4997printf %s "checking for fgrep... " >&6; } 4998if test ${ac_cv_path_FGREP+y} 4999then : 5000 printf %s "(cached) " >&6 5001else $as_nop 5002 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5003 then ac_cv_path_FGREP="$GREP -F" 5004 else 5005 if test -z "$FGREP"; then 5006 ac_path_FGREP_found=false 5007 # Loop through the user's path and test for each of PROGNAME-LIST 5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5010do 5011 IFS=$as_save_IFS 5012 case $as_dir in #((( 5013 '') as_dir=./ ;; 5014 */) ;; 5015 *) as_dir=$as_dir/ ;; 5016 esac 5017 for ac_prog in fgrep 5018 do 5019 for ac_exec_ext in '' $ac_executable_extensions; do 5020 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5021 as_fn_executable_p "$ac_path_FGREP" || continue 5022# Check for GNU ac_path_FGREP and select it if it is found. 5023 # Check for GNU $ac_path_FGREP 5024case `"$ac_path_FGREP" --version 2>&1` in 5025*GNU*) 5026 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5027*) 5028 ac_count=0 5029 printf %s 0123456789 >"conftest.in" 5030 while : 5031 do 5032 cat "conftest.in" "conftest.in" >"conftest.tmp" 5033 mv "conftest.tmp" "conftest.in" 5034 cp "conftest.in" "conftest.nl" 5035 printf "%s\n" 'FGREP' >> "conftest.nl" 5036 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5038 as_fn_arith $ac_count + 1 && ac_count=$as_val 5039 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5040 # Best one so far, save it but keep looking for a better one 5041 ac_cv_path_FGREP="$ac_path_FGREP" 5042 ac_path_FGREP_max=$ac_count 5043 fi 5044 # 10*(2^10) chars as input seems more than enough 5045 test $ac_count -gt 10 && break 5046 done 5047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5048esac 5049 5050 $ac_path_FGREP_found && break 3 5051 done 5052 done 5053 done 5054IFS=$as_save_IFS 5055 if test -z "$ac_cv_path_FGREP"; then 5056 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5057 fi 5058else 5059 ac_cv_path_FGREP=$FGREP 5060fi 5061 5062 fi 5063fi 5064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5065printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5066 FGREP="$ac_cv_path_FGREP" 5067 5068 5069test -z "$GREP" && GREP=grep 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089# Check whether --with-gnu-ld was given. 5090if test ${with_gnu_ld+y} 5091then : 5092 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5093else $as_nop 5094 with_gnu_ld=no 5095fi 5096 5097ac_prog=ld 5098if test yes = "$GCC"; then 5099 # Check if gcc -print-prog-name=ld gives a path. 5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5101printf %s "checking for ld used by $CC... " >&6; } 5102 case $host in 5103 *-*-mingw*) 5104 # gcc leaves a trailing carriage return, which upsets mingw 5105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5106 *) 5107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5108 esac 5109 case $ac_prog in 5110 # Accept absolute paths. 5111 [\\/]* | ?:[\\/]*) 5112 re_direlt='/[^/][^/]*/\.\./' 5113 # Canonicalize the pathname of ld 5114 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5115 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5116 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5117 done 5118 test -z "$LD" && LD=$ac_prog 5119 ;; 5120 "") 5121 # If it fails, then pretend we aren't using GCC. 5122 ac_prog=ld 5123 ;; 5124 *) 5125 # If it is relative, then search for the first ld in PATH. 5126 with_gnu_ld=unknown 5127 ;; 5128 esac 5129elif test yes = "$with_gnu_ld"; then 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5131printf %s "checking for GNU ld... " >&6; } 5132else 5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5134printf %s "checking for non-GNU ld... " >&6; } 5135fi 5136if test ${lt_cv_path_LD+y} 5137then : 5138 printf %s "(cached) " >&6 5139else $as_nop 5140 if test -z "$LD"; then 5141 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5142 for ac_dir in $PATH; do 5143 IFS=$lt_save_ifs 5144 test -z "$ac_dir" && ac_dir=. 5145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5146 lt_cv_path_LD=$ac_dir/$ac_prog 5147 # Check to see if the program is GNU ld. I'd rather use --version, 5148 # but apparently some variants of GNU ld only accept -v. 5149 # Break only if it was the GNU/non-GNU ld that we prefer. 5150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5151 *GNU* | *'with BFD'*) 5152 test no != "$with_gnu_ld" && break 5153 ;; 5154 *) 5155 test yes != "$with_gnu_ld" && break 5156 ;; 5157 esac 5158 fi 5159 done 5160 IFS=$lt_save_ifs 5161else 5162 lt_cv_path_LD=$LD # Let the user override the test with a path. 5163fi 5164fi 5165 5166LD=$lt_cv_path_LD 5167if test -n "$LD"; then 5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5169printf "%s\n" "$LD" >&6; } 5170else 5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5172printf "%s\n" "no" >&6; } 5173fi 5174test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5176printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5177if test ${lt_cv_prog_gnu_ld+y} 5178then : 5179 printf %s "(cached) " >&6 5180else $as_nop 5181 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5182case `$LD -v 2>&1 </dev/null` in 5183*GNU* | *'with BFD'*) 5184 lt_cv_prog_gnu_ld=yes 5185 ;; 5186*) 5187 lt_cv_prog_gnu_ld=no 5188 ;; 5189esac 5190fi 5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5192printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5193with_gnu_ld=$lt_cv_prog_gnu_ld 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5204printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5205if test ${lt_cv_path_NM+y} 5206then : 5207 printf %s "(cached) " >&6 5208else $as_nop 5209 if test -n "$NM"; then 5210 # Let the user override the test. 5211 lt_cv_path_NM=$NM 5212else 5213 lt_nm_to_check=${ac_tool_prefix}nm 5214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5215 lt_nm_to_check="$lt_nm_to_check nm" 5216 fi 5217 for lt_tmp_nm in $lt_nm_to_check; do 5218 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5220 IFS=$lt_save_ifs 5221 test -z "$ac_dir" && ac_dir=. 5222 tmp_nm=$ac_dir/$lt_tmp_nm 5223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5224 # Check to see if the nm accepts a BSD-compat flag. 5225 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5226 # nm: unknown option "B" ignored 5227 # Tru64's nm complains that /dev/null is an invalid object file 5228 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5229 case $build_os in 5230 mingw*) lt_bad_file=conftest.nm/nofile ;; 5231 *) lt_bad_file=/dev/null ;; 5232 esac 5233 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5234 *$lt_bad_file* | *'Invalid file or object type'*) 5235 lt_cv_path_NM="$tmp_nm -B" 5236 break 2 5237 ;; 5238 *) 5239 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5240 */dev/null*) 5241 lt_cv_path_NM="$tmp_nm -p" 5242 break 2 5243 ;; 5244 *) 5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5246 continue # so that we can try to find one that supports BSD flags 5247 ;; 5248 esac 5249 ;; 5250 esac 5251 fi 5252 done 5253 IFS=$lt_save_ifs 5254 done 5255 : ${lt_cv_path_NM=no} 5256fi 5257fi 5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5259printf "%s\n" "$lt_cv_path_NM" >&6; } 5260if test no != "$lt_cv_path_NM"; then 5261 NM=$lt_cv_path_NM 5262else 5263 # Didn't find any BSD compatible name lister, look for dumpbin. 5264 if test -n "$DUMPBIN"; then : 5265 # Let the user override the test. 5266 else 5267 if test -n "$ac_tool_prefix"; then 5268 for ac_prog in dumpbin "link -dump" 5269 do 5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5273printf %s "checking for $ac_word... " >&6; } 5274if test ${ac_cv_prog_DUMPBIN+y} 5275then : 5276 printf %s "(cached) " >&6 5277else $as_nop 5278 if test -n "$DUMPBIN"; then 5279 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5280else 5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282for as_dir in $PATH 5283do 5284 IFS=$as_save_IFS 5285 case $as_dir in #((( 5286 '') as_dir=./ ;; 5287 */) ;; 5288 *) as_dir=$as_dir/ ;; 5289 esac 5290 for ac_exec_ext in '' $ac_executable_extensions; do 5291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5292 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5294 break 2 5295 fi 5296done 5297 done 5298IFS=$as_save_IFS 5299 5300fi 5301fi 5302DUMPBIN=$ac_cv_prog_DUMPBIN 5303if test -n "$DUMPBIN"; then 5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5305printf "%s\n" "$DUMPBIN" >&6; } 5306else 5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5308printf "%s\n" "no" >&6; } 5309fi 5310 5311 5312 test -n "$DUMPBIN" && break 5313 done 5314fi 5315if test -z "$DUMPBIN"; then 5316 ac_ct_DUMPBIN=$DUMPBIN 5317 for ac_prog in dumpbin "link -dump" 5318do 5319 # Extract the first word of "$ac_prog", so it can be a program name with args. 5320set dummy $ac_prog; ac_word=$2 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5322printf %s "checking for $ac_word... " >&6; } 5323if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5324then : 5325 printf %s "(cached) " >&6 5326else $as_nop 5327 if test -n "$ac_ct_DUMPBIN"; then 5328 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5329else 5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 case $as_dir in #((( 5335 '') as_dir=./ ;; 5336 */) ;; 5337 *) as_dir=$as_dir/ ;; 5338 esac 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5341 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346 done 5347IFS=$as_save_IFS 5348 5349fi 5350fi 5351ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5352if test -n "$ac_ct_DUMPBIN"; then 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5354printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5355else 5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357printf "%s\n" "no" >&6; } 5358fi 5359 5360 5361 test -n "$ac_ct_DUMPBIN" && break 5362done 5363 5364 if test "x$ac_ct_DUMPBIN" = x; then 5365 DUMPBIN=":" 5366 else 5367 case $cross_compiling:$ac_tool_warned in 5368yes:) 5369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5371ac_tool_warned=yes ;; 5372esac 5373 DUMPBIN=$ac_ct_DUMPBIN 5374 fi 5375fi 5376 5377 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5378 *COFF*) 5379 DUMPBIN="$DUMPBIN -symbols -headers" 5380 ;; 5381 *) 5382 DUMPBIN=: 5383 ;; 5384 esac 5385 fi 5386 5387 if test : != "$DUMPBIN"; then 5388 NM=$DUMPBIN 5389 fi 5390fi 5391test -z "$NM" && NM=nm 5392 5393 5394 5395 5396 5397 5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5399printf %s "checking the name lister ($NM) interface... " >&6; } 5400if test ${lt_cv_nm_interface+y} 5401then : 5402 printf %s "(cached) " >&6 5403else $as_nop 5404 lt_cv_nm_interface="BSD nm" 5405 echo "int some_variable = 0;" > conftest.$ac_ext 5406 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5407 (eval "$ac_compile" 2>conftest.err) 5408 cat conftest.err >&5 5409 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5410 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5411 cat conftest.err >&5 5412 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5413 cat conftest.out >&5 5414 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5415 lt_cv_nm_interface="MS dumpbin" 5416 fi 5417 rm -f conftest* 5418fi 5419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5420printf "%s\n" "$lt_cv_nm_interface" >&6; } 5421 5422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5423printf %s "checking whether ln -s works... " >&6; } 5424LN_S=$as_ln_s 5425if test "$LN_S" = "ln -s"; then 5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5427printf "%s\n" "yes" >&6; } 5428else 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5430printf "%s\n" "no, using $LN_S" >&6; } 5431fi 5432 5433# find the maximum length of command line arguments 5434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5435printf %s "checking the maximum length of command line arguments... " >&6; } 5436if test ${lt_cv_sys_max_cmd_len+y} 5437then : 5438 printf %s "(cached) " >&6 5439else $as_nop 5440 i=0 5441 teststring=ABCD 5442 5443 case $build_os in 5444 msdosdjgpp*) 5445 # On DJGPP, this test can blow up pretty badly due to problems in libc 5446 # (any single argument exceeding 2000 bytes causes a buffer overrun 5447 # during glob expansion). Even if it were fixed, the result of this 5448 # check would be larger than it should be. 5449 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5450 ;; 5451 5452 gnu*) 5453 # Under GNU Hurd, this test is not required because there is 5454 # no limit to the length of command line arguments. 5455 # Libtool will interpret -1 as no limit whatsoever 5456 lt_cv_sys_max_cmd_len=-1; 5457 ;; 5458 5459 cygwin* | mingw* | cegcc*) 5460 # On Win9x/ME, this test blows up -- it succeeds, but takes 5461 # about 5 minutes as the teststring grows exponentially. 5462 # Worse, since 9x/ME are not pre-emptively multitasking, 5463 # you end up with a "frozen" computer, even though with patience 5464 # the test eventually succeeds (with a max line length of 256k). 5465 # Instead, let's just punt: use the minimum linelength reported by 5466 # all of the supported platforms: 8192 (on NT/2K/XP). 5467 lt_cv_sys_max_cmd_len=8192; 5468 ;; 5469 5470 mint*) 5471 # On MiNT this can take a long time and run out of memory. 5472 lt_cv_sys_max_cmd_len=8192; 5473 ;; 5474 5475 amigaos*) 5476 # On AmigaOS with pdksh, this test takes hours, literally. 5477 # So we just punt and use a minimum line length of 8192. 5478 lt_cv_sys_max_cmd_len=8192; 5479 ;; 5480 5481 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5482 # This has been around since 386BSD, at least. Likely further. 5483 if test -x /sbin/sysctl; then 5484 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5485 elif test -x /usr/sbin/sysctl; then 5486 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5487 else 5488 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5489 fi 5490 # And add a safety zone 5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5493 ;; 5494 5495 interix*) 5496 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5497 lt_cv_sys_max_cmd_len=196608 5498 ;; 5499 5500 os2*) 5501 # The test takes a long time on OS/2. 5502 lt_cv_sys_max_cmd_len=8192 5503 ;; 5504 5505 osf*) 5506 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5507 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5508 # nice to cause kernel panics so lets avoid the loop below. 5509 # First set a reasonable default. 5510 lt_cv_sys_max_cmd_len=16384 5511 # 5512 if test -x /sbin/sysconfig; then 5513 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5514 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5515 esac 5516 fi 5517 ;; 5518 sco3.2v5*) 5519 lt_cv_sys_max_cmd_len=102400 5520 ;; 5521 sysv5* | sco5v6* | sysv4.2uw2*) 5522 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5523 if test -n "$kargmax"; then 5524 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5525 else 5526 lt_cv_sys_max_cmd_len=32768 5527 fi 5528 ;; 5529 *) 5530 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5531 if test -n "$lt_cv_sys_max_cmd_len" && \ 5532 test undefined != "$lt_cv_sys_max_cmd_len"; then 5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5535 else 5536 # Make teststring a little bigger before we do anything with it. 5537 # a 1K string should be a reasonable start. 5538 for i in 1 2 3 4 5 6 7 8; do 5539 teststring=$teststring$teststring 5540 done 5541 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5542 # If test is not a shell built-in, we'll probably end up computing a 5543 # maximum length that is only half of the actual maximum length, but 5544 # we can't tell. 5545 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5546 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5547 test 17 != "$i" # 1/2 MB should be enough 5548 do 5549 i=`expr $i + 1` 5550 teststring=$teststring$teststring 5551 done 5552 # Only check the string length outside the loop. 5553 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5554 teststring= 5555 # Add a significant safety factor because C++ compilers can tack on 5556 # massive amounts of additional arguments before passing them to the 5557 # linker. It appears as though 1/2 is a usable value. 5558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5559 fi 5560 ;; 5561 esac 5562 5563fi 5564 5565if test -n "$lt_cv_sys_max_cmd_len"; then 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5567printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5568else 5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5570printf "%s\n" "none" >&6; } 5571fi 5572max_cmd_len=$lt_cv_sys_max_cmd_len 5573 5574 5575 5576 5577 5578 5579: ${CP="cp -f"} 5580: ${MV="mv -f"} 5581: ${RM="rm -f"} 5582 5583if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5584 lt_unset=unset 5585else 5586 lt_unset=false 5587fi 5588 5589 5590 5591 5592 5593# test EBCDIC or ASCII 5594case `echo X|tr X '\101'` in 5595 A) # ASCII based system 5596 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5597 lt_SP2NL='tr \040 \012' 5598 lt_NL2SP='tr \015\012 \040\040' 5599 ;; 5600 *) # EBCDIC based system 5601 lt_SP2NL='tr \100 \n' 5602 lt_NL2SP='tr \r\n \100\100' 5603 ;; 5604esac 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5615printf %s "checking how to convert $build file names to $host format... " >&6; } 5616if test ${lt_cv_to_host_file_cmd+y} 5617then : 5618 printf %s "(cached) " >&6 5619else $as_nop 5620 case $host in 5621 *-*-mingw* ) 5622 case $build in 5623 *-*-mingw* ) # actually msys 5624 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5625 ;; 5626 *-*-cygwin* ) 5627 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5628 ;; 5629 * ) # otherwise, assume *nix 5630 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5631 ;; 5632 esac 5633 ;; 5634 *-*-cygwin* ) 5635 case $build in 5636 *-*-mingw* ) # actually msys 5637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5638 ;; 5639 *-*-cygwin* ) 5640 lt_cv_to_host_file_cmd=func_convert_file_noop 5641 ;; 5642 * ) # otherwise, assume *nix 5643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5644 ;; 5645 esac 5646 ;; 5647 * ) # unhandled hosts (and "normal" native builds) 5648 lt_cv_to_host_file_cmd=func_convert_file_noop 5649 ;; 5650esac 5651 5652fi 5653 5654to_host_file_cmd=$lt_cv_to_host_file_cmd 5655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5656printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5657 5658 5659 5660 5661 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5663printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5664if test ${lt_cv_to_tool_file_cmd+y} 5665then : 5666 printf %s "(cached) " >&6 5667else $as_nop 5668 #assume ordinary cross tools, or native build. 5669lt_cv_to_tool_file_cmd=func_convert_file_noop 5670case $host in 5671 *-*-mingw* ) 5672 case $build in 5673 *-*-mingw* ) # actually msys 5674 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5675 ;; 5676 esac 5677 ;; 5678esac 5679 5680fi 5681 5682to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5684printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5685 5686 5687 5688 5689 5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5691printf %s "checking for $LD option to reload object files... " >&6; } 5692if test ${lt_cv_ld_reload_flag+y} 5693then : 5694 printf %s "(cached) " >&6 5695else $as_nop 5696 lt_cv_ld_reload_flag='-r' 5697fi 5698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5699printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5700reload_flag=$lt_cv_ld_reload_flag 5701case $reload_flag in 5702"" | " "*) ;; 5703*) reload_flag=" $reload_flag" ;; 5704esac 5705reload_cmds='$LD$reload_flag -o $output$reload_objs' 5706case $host_os in 5707 cygwin* | mingw* | pw32* | cegcc*) 5708 if test yes != "$GCC"; then 5709 reload_cmds=false 5710 fi 5711 ;; 5712 darwin*) 5713 if test yes = "$GCC"; then 5714 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5715 else 5716 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5717 fi 5718 ;; 5719esac 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729if test -n "$ac_tool_prefix"; then 5730 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5731set dummy ${ac_tool_prefix}file; ac_word=$2 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5733printf %s "checking for $ac_word... " >&6; } 5734if test ${ac_cv_prog_FILECMD+y} 5735then : 5736 printf %s "(cached) " >&6 5737else $as_nop 5738 if test -n "$FILECMD"; then 5739 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5740else 5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5742for as_dir in $PATH 5743do 5744 IFS=$as_save_IFS 5745 case $as_dir in #((( 5746 '') as_dir=./ ;; 5747 */) ;; 5748 *) as_dir=$as_dir/ ;; 5749 esac 5750 for ac_exec_ext in '' $ac_executable_extensions; do 5751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5752 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5754 break 2 5755 fi 5756done 5757 done 5758IFS=$as_save_IFS 5759 5760fi 5761fi 5762FILECMD=$ac_cv_prog_FILECMD 5763if test -n "$FILECMD"; then 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5765printf "%s\n" "$FILECMD" >&6; } 5766else 5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5768printf "%s\n" "no" >&6; } 5769fi 5770 5771 5772fi 5773if test -z "$ac_cv_prog_FILECMD"; then 5774 ac_ct_FILECMD=$FILECMD 5775 # Extract the first word of "file", so it can be a program name with args. 5776set dummy file; ac_word=$2 5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5778printf %s "checking for $ac_word... " >&6; } 5779if test ${ac_cv_prog_ac_ct_FILECMD+y} 5780then : 5781 printf %s "(cached) " >&6 5782else $as_nop 5783 if test -n "$ac_ct_FILECMD"; then 5784 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5785else 5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5787for as_dir in $PATH 5788do 5789 IFS=$as_save_IFS 5790 case $as_dir in #((( 5791 '') as_dir=./ ;; 5792 */) ;; 5793 *) as_dir=$as_dir/ ;; 5794 esac 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5797 ac_cv_prog_ac_ct_FILECMD="file" 5798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801done 5802 done 5803IFS=$as_save_IFS 5804 5805fi 5806fi 5807ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5808if test -n "$ac_ct_FILECMD"; then 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5810printf "%s\n" "$ac_ct_FILECMD" >&6; } 5811else 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5813printf "%s\n" "no" >&6; } 5814fi 5815 5816 if test "x$ac_ct_FILECMD" = x; then 5817 FILECMD=":" 5818 else 5819 case $cross_compiling:$ac_tool_warned in 5820yes:) 5821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5822printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5823ac_tool_warned=yes ;; 5824esac 5825 FILECMD=$ac_ct_FILECMD 5826 fi 5827else 5828 FILECMD="$ac_cv_prog_FILECMD" 5829fi 5830 5831 5832 5833 5834 5835 5836 5837if test -n "$ac_tool_prefix"; then 5838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5839set dummy ${ac_tool_prefix}objdump; ac_word=$2 5840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5841printf %s "checking for $ac_word... " >&6; } 5842if test ${ac_cv_prog_OBJDUMP+y} 5843then : 5844 printf %s "(cached) " >&6 5845else $as_nop 5846 if test -n "$OBJDUMP"; then 5847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5848else 5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 case $as_dir in #((( 5854 '') as_dir=./ ;; 5855 */) ;; 5856 *) as_dir=$as_dir/ ;; 5857 esac 5858 for ac_exec_ext in '' $ac_executable_extensions; do 5859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5860 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5862 break 2 5863 fi 5864done 5865 done 5866IFS=$as_save_IFS 5867 5868fi 5869fi 5870OBJDUMP=$ac_cv_prog_OBJDUMP 5871if test -n "$OBJDUMP"; then 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5873printf "%s\n" "$OBJDUMP" >&6; } 5874else 5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876printf "%s\n" "no" >&6; } 5877fi 5878 5879 5880fi 5881if test -z "$ac_cv_prog_OBJDUMP"; then 5882 ac_ct_OBJDUMP=$OBJDUMP 5883 # Extract the first word of "objdump", so it can be a program name with args. 5884set dummy objdump; ac_word=$2 5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5886printf %s "checking for $ac_word... " >&6; } 5887if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5888then : 5889 printf %s "(cached) " >&6 5890else $as_nop 5891 if test -n "$ac_ct_OBJDUMP"; then 5892 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5893else 5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895for as_dir in $PATH 5896do 5897 IFS=$as_save_IFS 5898 case $as_dir in #((( 5899 '') as_dir=./ ;; 5900 */) ;; 5901 *) as_dir=$as_dir/ ;; 5902 esac 5903 for ac_exec_ext in '' $ac_executable_extensions; do 5904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5905 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5907 break 2 5908 fi 5909done 5910 done 5911IFS=$as_save_IFS 5912 5913fi 5914fi 5915ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5916if test -n "$ac_ct_OBJDUMP"; then 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5918printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5919else 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5921printf "%s\n" "no" >&6; } 5922fi 5923 5924 if test "x$ac_ct_OBJDUMP" = x; then 5925 OBJDUMP="false" 5926 else 5927 case $cross_compiling:$ac_tool_warned in 5928yes:) 5929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5931ac_tool_warned=yes ;; 5932esac 5933 OBJDUMP=$ac_ct_OBJDUMP 5934 fi 5935else 5936 OBJDUMP="$ac_cv_prog_OBJDUMP" 5937fi 5938 5939test -z "$OBJDUMP" && OBJDUMP=objdump 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5950printf %s "checking how to recognize dependent libraries... " >&6; } 5951if test ${lt_cv_deplibs_check_method+y} 5952then : 5953 printf %s "(cached) " >&6 5954else $as_nop 5955 lt_cv_file_magic_cmd='$MAGIC_CMD' 5956lt_cv_file_magic_test_file= 5957lt_cv_deplibs_check_method='unknown' 5958# Need to set the preceding variable on all platforms that support 5959# interlibrary dependencies. 5960# 'none' -- dependencies not supported. 5961# 'unknown' -- same as none, but documents that we really don't know. 5962# 'pass_all' -- all dependencies passed with no checks. 5963# 'test_compile' -- check by making test program. 5964# 'file_magic [[regex]]' -- check by looking for files in library path 5965# that responds to the $file_magic_cmd with a given extended regex. 5966# If you have 'file' or equivalent on your system and you're not sure 5967# whether 'pass_all' will *always* work, you probably want this one. 5968 5969case $host_os in 5970aix[4-9]*) 5971 lt_cv_deplibs_check_method=pass_all 5972 ;; 5973 5974beos*) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 5978bsdi[45]*) 5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5980 lt_cv_file_magic_cmd='$FILECMD -L' 5981 lt_cv_file_magic_test_file=/shlib/libc.so 5982 ;; 5983 5984cygwin*) 5985 # func_win32_libid is a shell function defined in ltmain.sh 5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5987 lt_cv_file_magic_cmd='func_win32_libid' 5988 ;; 5989 5990mingw* | pw32*) 5991 # Base MSYS/MinGW do not provide the 'file' command needed by 5992 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5993 # unless we find 'file', for example because we are cross-compiling. 5994 if ( file / ) >/dev/null 2>&1; then 5995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5996 lt_cv_file_magic_cmd='func_win32_libid' 5997 else 5998 # Keep this pattern in sync with the one in func_win32_libid. 5999 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6000 lt_cv_file_magic_cmd='$OBJDUMP -f' 6001 fi 6002 ;; 6003 6004cegcc*) 6005 # use the weaker test based on 'objdump'. See mingw*. 6006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6007 lt_cv_file_magic_cmd='$OBJDUMP -f' 6008 ;; 6009 6010darwin* | rhapsody*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014freebsd* | dragonfly* | midnightbsd*) 6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6016 case $host_cpu in 6017 i*86 ) 6018 # Not sure whether the presence of OpenBSD here was a mistake. 6019 # Let's accept both of them until this is cleared up. 6020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6021 lt_cv_file_magic_cmd=$FILECMD 6022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6023 ;; 6024 esac 6025 else 6026 lt_cv_deplibs_check_method=pass_all 6027 fi 6028 ;; 6029 6030haiku*) 6031 lt_cv_deplibs_check_method=pass_all 6032 ;; 6033 6034hpux10.20* | hpux11*) 6035 lt_cv_file_magic_cmd=$FILECMD 6036 case $host_cpu in 6037 ia64*) 6038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6040 ;; 6041 hppa*64*) 6042 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]' 6043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6044 ;; 6045 *) 6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6047 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6048 ;; 6049 esac 6050 ;; 6051 6052interix[3-9]*) 6053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6055 ;; 6056 6057irix5* | irix6* | nonstopux*) 6058 case $LD in 6059 *-32|*"-32 ") libmagic=32-bit;; 6060 *-n32|*"-n32 ") libmagic=N32;; 6061 *-64|*"-64 ") libmagic=64-bit;; 6062 *) libmagic=never-match;; 6063 esac 6064 lt_cv_deplibs_check_method=pass_all 6065 ;; 6066 6067# This must be glibc/ELF. 6068linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6069 lt_cv_deplibs_check_method=pass_all 6070 ;; 6071 6072netbsd*) 6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6075 else 6076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6077 fi 6078 ;; 6079 6080newos6*) 6081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6082 lt_cv_file_magic_cmd=$FILECMD 6083 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6084 ;; 6085 6086*nto* | *qnx*) 6087 lt_cv_deplibs_check_method=pass_all 6088 ;; 6089 6090openbsd* | bitrig*) 6091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6093 else 6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6095 fi 6096 ;; 6097 6098osf3* | osf4* | osf5*) 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102rdos*) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 6106solaris*) 6107 lt_cv_deplibs_check_method=pass_all 6108 ;; 6109 6110sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6111 lt_cv_deplibs_check_method=pass_all 6112 ;; 6113 6114sysv4 | sysv4.3*) 6115 case $host_vendor in 6116 motorola) 6117 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]' 6118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6119 ;; 6120 ncr) 6121 lt_cv_deplibs_check_method=pass_all 6122 ;; 6123 sequent) 6124 lt_cv_file_magic_cmd='/bin/file' 6125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6126 ;; 6127 sni) 6128 lt_cv_file_magic_cmd='/bin/file' 6129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6130 lt_cv_file_magic_test_file=/lib/libc.so 6131 ;; 6132 siemens) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 pc) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 esac 6139 ;; 6140 6141tpf*) 6142 lt_cv_deplibs_check_method=pass_all 6143 ;; 6144os2*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147esac 6148 6149fi 6150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6151printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6152 6153file_magic_glob= 6154want_nocaseglob=no 6155if test "$build" = "$host"; then 6156 case $host_os in 6157 mingw* | pw32*) 6158 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6159 want_nocaseglob=yes 6160 else 6161 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6162 fi 6163 ;; 6164 esac 6165fi 6166 6167file_magic_cmd=$lt_cv_file_magic_cmd 6168deplibs_check_method=$lt_cv_deplibs_check_method 6169test -z "$deplibs_check_method" && deplibs_check_method=unknown 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196printf %s "checking for $ac_word... " >&6; } 6197if test ${ac_cv_prog_DLLTOOL+y} 6198then : 6199 printf %s "(cached) " >&6 6200else $as_nop 6201 if test -n "$DLLTOOL"; then 6202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6203else 6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6205for as_dir in $PATH 6206do 6207 IFS=$as_save_IFS 6208 case $as_dir in #((( 6209 '') as_dir=./ ;; 6210 */) ;; 6211 *) as_dir=$as_dir/ ;; 6212 esac 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6215 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219done 6220 done 6221IFS=$as_save_IFS 6222 6223fi 6224fi 6225DLLTOOL=$ac_cv_prog_DLLTOOL 6226if test -n "$DLLTOOL"; then 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6228printf "%s\n" "$DLLTOOL" >&6; } 6229else 6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231printf "%s\n" "no" >&6; } 6232fi 6233 6234 6235fi 6236if test -z "$ac_cv_prog_DLLTOOL"; then 6237 ac_ct_DLLTOOL=$DLLTOOL 6238 # Extract the first word of "dlltool", so it can be a program name with args. 6239set dummy dlltool; ac_word=$2 6240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241printf %s "checking for $ac_word... " >&6; } 6242if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6243then : 6244 printf %s "(cached) " >&6 6245else $as_nop 6246 if test -n "$ac_ct_DLLTOOL"; then 6247 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6248else 6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250for as_dir in $PATH 6251do 6252 IFS=$as_save_IFS 6253 case $as_dir in #((( 6254 '') as_dir=./ ;; 6255 */) ;; 6256 *) as_dir=$as_dir/ ;; 6257 esac 6258 for ac_exec_ext in '' $ac_executable_extensions; do 6259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6260 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6262 break 2 6263 fi 6264done 6265 done 6266IFS=$as_save_IFS 6267 6268fi 6269fi 6270ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6271if test -n "$ac_ct_DLLTOOL"; then 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6273printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6274else 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6276printf "%s\n" "no" >&6; } 6277fi 6278 6279 if test "x$ac_ct_DLLTOOL" = x; then 6280 DLLTOOL="false" 6281 else 6282 case $cross_compiling:$ac_tool_warned in 6283yes:) 6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6285printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6286ac_tool_warned=yes ;; 6287esac 6288 DLLTOOL=$ac_ct_DLLTOOL 6289 fi 6290else 6291 DLLTOOL="$ac_cv_prog_DLLTOOL" 6292fi 6293 6294test -z "$DLLTOOL" && DLLTOOL=dlltool 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6306printf %s "checking how to associate runtime and link libraries... " >&6; } 6307if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6308then : 6309 printf %s "(cached) " >&6 6310else $as_nop 6311 lt_cv_sharedlib_from_linklib_cmd='unknown' 6312 6313case $host_os in 6314cygwin* | mingw* | pw32* | cegcc*) 6315 # two different shell functions defined in ltmain.sh; 6316 # decide which one to use based on capabilities of $DLLTOOL 6317 case `$DLLTOOL --help 2>&1` in 6318 *--identify-strict*) 6319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6320 ;; 6321 *) 6322 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6323 ;; 6324 esac 6325 ;; 6326*) 6327 # fallback: assume linklib IS sharedlib 6328 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6329 ;; 6330esac 6331 6332fi 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6334printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6335sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6336test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6337 6338 6339 6340 6341 6342 6343 6344 6345if test -n "$ac_tool_prefix"; then 6346 for ac_prog in ar 6347 do 6348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6349set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6351printf %s "checking for $ac_word... " >&6; } 6352if test ${ac_cv_prog_AR+y} 6353then : 6354 printf %s "(cached) " >&6 6355else $as_nop 6356 if test -n "$AR"; then 6357 ac_cv_prog_AR="$AR" # Let the user override the test. 6358else 6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 case $as_dir in #((( 6364 '') as_dir=./ ;; 6365 */) ;; 6366 *) as_dir=$as_dir/ ;; 6367 esac 6368 for ac_exec_ext in '' $ac_executable_extensions; do 6369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6370 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6372 break 2 6373 fi 6374done 6375 done 6376IFS=$as_save_IFS 6377 6378fi 6379fi 6380AR=$ac_cv_prog_AR 6381if test -n "$AR"; then 6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6383printf "%s\n" "$AR" >&6; } 6384else 6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6386printf "%s\n" "no" >&6; } 6387fi 6388 6389 6390 test -n "$AR" && break 6391 done 6392fi 6393if test -z "$AR"; then 6394 ac_ct_AR=$AR 6395 for ac_prog in ar 6396do 6397 # Extract the first word of "$ac_prog", so it can be a program name with args. 6398set dummy $ac_prog; ac_word=$2 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6400printf %s "checking for $ac_word... " >&6; } 6401if test ${ac_cv_prog_ac_ct_AR+y} 6402then : 6403 printf %s "(cached) " >&6 6404else $as_nop 6405 if test -n "$ac_ct_AR"; then 6406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6407else 6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6409for as_dir in $PATH 6410do 6411 IFS=$as_save_IFS 6412 case $as_dir in #((( 6413 '') as_dir=./ ;; 6414 */) ;; 6415 *) as_dir=$as_dir/ ;; 6416 esac 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6419 ac_cv_prog_ac_ct_AR="$ac_prog" 6420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423done 6424 done 6425IFS=$as_save_IFS 6426 6427fi 6428fi 6429ac_ct_AR=$ac_cv_prog_ac_ct_AR 6430if test -n "$ac_ct_AR"; then 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6432printf "%s\n" "$ac_ct_AR" >&6; } 6433else 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435printf "%s\n" "no" >&6; } 6436fi 6437 6438 6439 test -n "$ac_ct_AR" && break 6440done 6441 6442 if test "x$ac_ct_AR" = x; then 6443 AR="false" 6444 else 6445 case $cross_compiling:$ac_tool_warned in 6446yes:) 6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6448printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6449ac_tool_warned=yes ;; 6450esac 6451 AR=$ac_ct_AR 6452 fi 6453fi 6454 6455: ${AR=ar} 6456 6457 6458 6459 6460 6461 6462# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6463# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6464# higher priority because thats what people were doing historically (setting 6465# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6466# variable obsoleted/removed. 6467 6468test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6469lt_ar_flags=$AR_FLAGS 6470 6471 6472 6473 6474 6475 6476# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6477# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6478 6479 6480 6481 6482 6483 6484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6485printf %s "checking for archiver @FILE support... " >&6; } 6486if test ${lt_cv_ar_at_file+y} 6487then : 6488 printf %s "(cached) " >&6 6489else $as_nop 6490 lt_cv_ar_at_file=no 6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492/* end confdefs.h. */ 6493 6494int 6495main (void) 6496{ 6497 6498 ; 6499 return 0; 6500} 6501_ACEOF 6502if ac_fn_c_try_compile "$LINENO" 6503then : 6504 echo conftest.$ac_objext > conftest.lst 6505 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6507 (eval $lt_ar_try) 2>&5 6508 ac_status=$? 6509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6510 test $ac_status = 0; } 6511 if test 0 -eq "$ac_status"; then 6512 # Ensure the archiver fails upon bogus file names. 6513 rm -f conftest.$ac_objext libconftest.a 6514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6515 (eval $lt_ar_try) 2>&5 6516 ac_status=$? 6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6518 test $ac_status = 0; } 6519 if test 0 -ne "$ac_status"; then 6520 lt_cv_ar_at_file=@ 6521 fi 6522 fi 6523 rm -f conftest.* libconftest.a 6524 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6527 6528fi 6529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6530printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6531 6532if test no = "$lt_cv_ar_at_file"; then 6533 archiver_list_spec= 6534else 6535 archiver_list_spec=$lt_cv_ar_at_file 6536fi 6537 6538 6539 6540 6541 6542 6543 6544if test -n "$ac_tool_prefix"; then 6545 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6546set dummy ${ac_tool_prefix}strip; ac_word=$2 6547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6548printf %s "checking for $ac_word... " >&6; } 6549if test ${ac_cv_prog_STRIP+y} 6550then : 6551 printf %s "(cached) " >&6 6552else $as_nop 6553 if test -n "$STRIP"; then 6554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6555else 6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 case $as_dir in #((( 6561 '') as_dir=./ ;; 6562 */) ;; 6563 *) as_dir=$as_dir/ ;; 6564 esac 6565 for ac_exec_ext in '' $ac_executable_extensions; do 6566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6567 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6569 break 2 6570 fi 6571done 6572 done 6573IFS=$as_save_IFS 6574 6575fi 6576fi 6577STRIP=$ac_cv_prog_STRIP 6578if test -n "$STRIP"; then 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6580printf "%s\n" "$STRIP" >&6; } 6581else 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6583printf "%s\n" "no" >&6; } 6584fi 6585 6586 6587fi 6588if test -z "$ac_cv_prog_STRIP"; then 6589 ac_ct_STRIP=$STRIP 6590 # Extract the first word of "strip", so it can be a program name with args. 6591set dummy strip; ac_word=$2 6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6593printf %s "checking for $ac_word... " >&6; } 6594if test ${ac_cv_prog_ac_ct_STRIP+y} 6595then : 6596 printf %s "(cached) " >&6 6597else $as_nop 6598 if test -n "$ac_ct_STRIP"; then 6599 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6600else 6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 case $as_dir in #((( 6606 '') as_dir=./ ;; 6607 */) ;; 6608 *) as_dir=$as_dir/ ;; 6609 esac 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_ac_ct_STRIP="strip" 6613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6623if test -n "$ac_ct_STRIP"; then 6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6625printf "%s\n" "$ac_ct_STRIP" >&6; } 6626else 6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628printf "%s\n" "no" >&6; } 6629fi 6630 6631 if test "x$ac_ct_STRIP" = x; then 6632 STRIP=":" 6633 else 6634 case $cross_compiling:$ac_tool_warned in 6635yes:) 6636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6638ac_tool_warned=yes ;; 6639esac 6640 STRIP=$ac_ct_STRIP 6641 fi 6642else 6643 STRIP="$ac_cv_prog_STRIP" 6644fi 6645 6646test -z "$STRIP" && STRIP=: 6647 6648 6649 6650 6651 6652 6653if test -n "$ac_tool_prefix"; then 6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6655set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657printf %s "checking for $ac_word... " >&6; } 6658if test ${ac_cv_prog_RANLIB+y} 6659then : 6660 printf %s "(cached) " >&6 6661else $as_nop 6662 if test -n "$RANLIB"; then 6663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6664else 6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6666for as_dir in $PATH 6667do 6668 IFS=$as_save_IFS 6669 case $as_dir in #((( 6670 '') as_dir=./ ;; 6671 */) ;; 6672 *) as_dir=$as_dir/ ;; 6673 esac 6674 for ac_exec_ext in '' $ac_executable_extensions; do 6675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6678 break 2 6679 fi 6680done 6681 done 6682IFS=$as_save_IFS 6683 6684fi 6685fi 6686RANLIB=$ac_cv_prog_RANLIB 6687if test -n "$RANLIB"; then 6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6689printf "%s\n" "$RANLIB" >&6; } 6690else 6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6692printf "%s\n" "no" >&6; } 6693fi 6694 6695 6696fi 6697if test -z "$ac_cv_prog_RANLIB"; then 6698 ac_ct_RANLIB=$RANLIB 6699 # Extract the first word of "ranlib", so it can be a program name with args. 6700set dummy ranlib; ac_word=$2 6701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702printf %s "checking for $ac_word... " >&6; } 6703if test ${ac_cv_prog_ac_ct_RANLIB+y} 6704then : 6705 printf %s "(cached) " >&6 6706else $as_nop 6707 if test -n "$ac_ct_RANLIB"; then 6708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 case $as_dir in #((( 6715 '') as_dir=./ ;; 6716 */) ;; 6717 *) as_dir=$as_dir/ ;; 6718 esac 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6721 ac_cv_prog_ac_ct_RANLIB="ranlib" 6722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726 done 6727IFS=$as_save_IFS 6728 6729fi 6730fi 6731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6732if test -n "$ac_ct_RANLIB"; then 6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6734printf "%s\n" "$ac_ct_RANLIB" >&6; } 6735else 6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6737printf "%s\n" "no" >&6; } 6738fi 6739 6740 if test "x$ac_ct_RANLIB" = x; then 6741 RANLIB=":" 6742 else 6743 case $cross_compiling:$ac_tool_warned in 6744yes:) 6745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6747ac_tool_warned=yes ;; 6748esac 6749 RANLIB=$ac_ct_RANLIB 6750 fi 6751else 6752 RANLIB="$ac_cv_prog_RANLIB" 6753fi 6754 6755test -z "$RANLIB" && RANLIB=: 6756 6757 6758 6759 6760 6761 6762# Determine commands to create old-style static archives. 6763old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6764old_postinstall_cmds='chmod 644 $oldlib' 6765old_postuninstall_cmds= 6766 6767if test -n "$RANLIB"; then 6768 case $host_os in 6769 bitrig* | openbsd*) 6770 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6771 ;; 6772 *) 6773 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6774 ;; 6775 esac 6776 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6777fi 6778 6779case $host_os in 6780 darwin*) 6781 lock_old_archive_extraction=yes ;; 6782 *) 6783 lock_old_archive_extraction=no ;; 6784esac 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824# If no C compiler was specified, use CC. 6825LTCC=${LTCC-"$CC"} 6826 6827# If no C compiler flags were specified, use CFLAGS. 6828LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6829 6830# Allow CC to be a program name with arguments. 6831compiler=$CC 6832 6833 6834# Check for command to grab the raw symbol name followed by C symbol from nm. 6835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6836printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6837if test ${lt_cv_sys_global_symbol_pipe+y} 6838then : 6839 printf %s "(cached) " >&6 6840else $as_nop 6841 6842# These are sane defaults that work on at least a few old systems. 6843# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6844 6845# Character class describing NM global symbol codes. 6846symcode='[BCDEGRST]' 6847 6848# Regexp to match symbols that can be accessed directly from C. 6849sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6850 6851# Define system-specific variables. 6852case $host_os in 6853aix*) 6854 symcode='[BCDT]' 6855 ;; 6856cygwin* | mingw* | pw32* | cegcc*) 6857 symcode='[ABCDGISTW]' 6858 ;; 6859hpux*) 6860 if test ia64 = "$host_cpu"; then 6861 symcode='[ABCDEGRST]' 6862 fi 6863 ;; 6864irix* | nonstopux*) 6865 symcode='[BCDEGRST]' 6866 ;; 6867osf*) 6868 symcode='[BCDEGQRST]' 6869 ;; 6870solaris*) 6871 symcode='[BDRT]' 6872 ;; 6873sco3.2v5*) 6874 symcode='[DT]' 6875 ;; 6876sysv4.2uw2*) 6877 symcode='[DT]' 6878 ;; 6879sysv5* | sco5v6* | unixware* | OpenUNIX*) 6880 symcode='[ABDT]' 6881 ;; 6882sysv4) 6883 symcode='[DFNSTU]' 6884 ;; 6885esac 6886 6887# If we're using GNU nm, then use its standard symbol codes. 6888case `$NM -V 2>&1` in 6889*GNU* | *'with BFD'*) 6890 symcode='[ABCDGIRSTW]' ;; 6891esac 6892 6893if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6894 # Gets list of data symbols to import. 6895 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6896 # Adjust the below global symbol transforms to fixup imported variables. 6897 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6898 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6899 lt_c_name_lib_hook="\ 6900 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6901 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6902else 6903 # Disable hooks by default. 6904 lt_cv_sys_global_symbol_to_import= 6905 lt_cdecl_hook= 6906 lt_c_name_hook= 6907 lt_c_name_lib_hook= 6908fi 6909 6910# Transform an extracted symbol line into a proper C declaration. 6911# Some systems (esp. on ia64) link data and code symbols differently, 6912# so use this general approach. 6913lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6914$lt_cdecl_hook\ 6915" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6916" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6917 6918# Transform an extracted symbol line into symbol name and symbol address 6919lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6920$lt_c_name_hook\ 6921" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6922" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6923 6924# Transform an extracted symbol line into symbol name with lib prefix and 6925# symbol address. 6926lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6927$lt_c_name_lib_hook\ 6928" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6929" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6930" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6931 6932# Handle CRLF in mingw tool chain 6933opt_cr= 6934case $build_os in 6935mingw*) 6936 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6937 ;; 6938esac 6939 6940# Try without a prefix underscore, then with it. 6941for ac_symprfx in "" "_"; do 6942 6943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6944 symxfrm="\\1 $ac_symprfx\\2 \\2" 6945 6946 # Write the raw and C identifiers. 6947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6948 # Fake it for dumpbin and say T for any non-static function, 6949 # D for any global variable and I for any imported variable. 6950 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6951 # which start with @ or ?. 6952 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6953" {last_section=section; section=\$ 3};"\ 6954" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6955" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6956" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6957" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6958" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6959" \$ 0!~/External *\|/{next};"\ 6960" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6961" {if(hide[section]) next};"\ 6962" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6963" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6964" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6965" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6966" ' prfx=^$ac_symprfx" 6967 else 6968 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6969 fi 6970 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6971 6972 # Check to see that the pipe works correctly. 6973 pipe_works=no 6974 6975 rm -f conftest* 6976 cat > conftest.$ac_ext <<_LT_EOF 6977#ifdef __cplusplus 6978extern "C" { 6979#endif 6980char nm_test_var; 6981void nm_test_func(void); 6982void nm_test_func(void){} 6983#ifdef __cplusplus 6984} 6985#endif 6986int main(){nm_test_var='a';nm_test_func();return(0);} 6987_LT_EOF 6988 6989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6990 (eval $ac_compile) 2>&5 6991 ac_status=$? 6992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6993 test $ac_status = 0; }; then 6994 # Now try to grab the symbols. 6995 nlist=conftest.nm 6996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6997 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6998 ac_status=$? 6999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7000 test $ac_status = 0; } && test -s "$nlist"; then 7001 # Try sorting and uniquifying the output. 7002 if sort "$nlist" | uniq > "$nlist"T; then 7003 mv -f "$nlist"T "$nlist" 7004 else 7005 rm -f "$nlist"T 7006 fi 7007 7008 # Make sure that we snagged all the symbols we need. 7009 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7010 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7011 cat <<_LT_EOF > conftest.$ac_ext 7012/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7013#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7014/* DATA imports from DLLs on WIN32 can't be const, because runtime 7015 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7016# define LT_DLSYM_CONST 7017#elif defined __osf__ 7018/* This system does not cope well with relocations in const data. */ 7019# define LT_DLSYM_CONST 7020#else 7021# define LT_DLSYM_CONST const 7022#endif 7023 7024#ifdef __cplusplus 7025extern "C" { 7026#endif 7027 7028_LT_EOF 7029 # Now generate the symbol file. 7030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7031 7032 cat <<_LT_EOF >> conftest.$ac_ext 7033 7034/* The mapping between symbol names and symbols. */ 7035LT_DLSYM_CONST struct { 7036 const char *name; 7037 void *address; 7038} 7039lt__PROGRAM__LTX_preloaded_symbols[] = 7040{ 7041 { "@PROGRAM@", (void *) 0 }, 7042_LT_EOF 7043 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7044 cat <<\_LT_EOF >> conftest.$ac_ext 7045 {0, (void *) 0} 7046}; 7047 7048/* This works around a problem in FreeBSD linker */ 7049#ifdef FREEBSD_WORKAROUND 7050static const void *lt_preloaded_setup() { 7051 return lt__PROGRAM__LTX_preloaded_symbols; 7052} 7053#endif 7054 7055#ifdef __cplusplus 7056} 7057#endif 7058_LT_EOF 7059 # Now try linking the two files. 7060 mv conftest.$ac_objext conftstm.$ac_objext 7061 lt_globsym_save_LIBS=$LIBS 7062 lt_globsym_save_CFLAGS=$CFLAGS 7063 LIBS=conftstm.$ac_objext 7064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7066 (eval $ac_link) 2>&5 7067 ac_status=$? 7068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7069 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7070 pipe_works=yes 7071 fi 7072 LIBS=$lt_globsym_save_LIBS 7073 CFLAGS=$lt_globsym_save_CFLAGS 7074 else 7075 echo "cannot find nm_test_func in $nlist" >&5 7076 fi 7077 else 7078 echo "cannot find nm_test_var in $nlist" >&5 7079 fi 7080 else 7081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7082 fi 7083 else 7084 echo "$progname: failed program was:" >&5 7085 cat conftest.$ac_ext >&5 7086 fi 7087 rm -rf conftest* conftst* 7088 7089 # Do not use the global_symbol_pipe unless it works. 7090 if test yes = "$pipe_works"; then 7091 break 7092 else 7093 lt_cv_sys_global_symbol_pipe= 7094 fi 7095done 7096 7097fi 7098 7099if test -z "$lt_cv_sys_global_symbol_pipe"; then 7100 lt_cv_sys_global_symbol_to_cdecl= 7101fi 7102if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7104printf "%s\n" "failed" >&6; } 7105else 7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7107printf "%s\n" "ok" >&6; } 7108fi 7109 7110# Response file support. 7111if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7112 nm_file_list_spec='@' 7113elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7114 nm_file_list_spec='@' 7115fi 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7154printf %s "checking for sysroot... " >&6; } 7155 7156# Check whether --with-sysroot was given. 7157if test ${with_sysroot+y} 7158then : 7159 withval=$with_sysroot; 7160else $as_nop 7161 with_sysroot=no 7162fi 7163 7164 7165lt_sysroot= 7166case $with_sysroot in #( 7167 yes) 7168 if test yes = "$GCC"; then 7169 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7170 fi 7171 ;; #( 7172 /*) 7173 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7174 ;; #( 7175 no|'') 7176 ;; #( 7177 *) 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7179printf "%s\n" "$with_sysroot" >&6; } 7180 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7181 ;; 7182esac 7183 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7185printf "%s\n" "${lt_sysroot:-no}" >&6; } 7186 7187 7188 7189 7190 7191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7192printf %s "checking for a working dd... " >&6; } 7193if test ${ac_cv_path_lt_DD+y} 7194then : 7195 printf %s "(cached) " >&6 7196else $as_nop 7197 printf 0123456789abcdef0123456789abcdef >conftest.i 7198cat conftest.i conftest.i >conftest2.i 7199: ${lt_DD:=$DD} 7200if test -z "$lt_DD"; then 7201 ac_path_lt_DD_found=false 7202 # Loop through the user's path and test for each of PROGNAME-LIST 7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 case $as_dir in #((( 7208 '') as_dir=./ ;; 7209 */) ;; 7210 *) as_dir=$as_dir/ ;; 7211 esac 7212 for ac_prog in dd 7213 do 7214 for ac_exec_ext in '' $ac_executable_extensions; do 7215 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7216 as_fn_executable_p "$ac_path_lt_DD" || continue 7217if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7218 cmp -s conftest.i conftest.out \ 7219 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7220fi 7221 $ac_path_lt_DD_found && break 3 7222 done 7223 done 7224 done 7225IFS=$as_save_IFS 7226 if test -z "$ac_cv_path_lt_DD"; then 7227 : 7228 fi 7229else 7230 ac_cv_path_lt_DD=$lt_DD 7231fi 7232 7233rm -f conftest.i conftest2.i conftest.out 7234fi 7235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7236printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7237 7238 7239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7240printf %s "checking how to truncate binary pipes... " >&6; } 7241if test ${lt_cv_truncate_bin+y} 7242then : 7243 printf %s "(cached) " >&6 7244else $as_nop 7245 printf 0123456789abcdef0123456789abcdef >conftest.i 7246cat conftest.i conftest.i >conftest2.i 7247lt_cv_truncate_bin= 7248if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7249 cmp -s conftest.i conftest.out \ 7250 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7251fi 7252rm -f conftest.i conftest2.i conftest.out 7253test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7254fi 7255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7256printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7257 7258 7259 7260 7261 7262 7263 7264# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7265func_cc_basename () 7266{ 7267 for cc_temp in $*""; do 7268 case $cc_temp in 7269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7271 \-*) ;; 7272 *) break;; 7273 esac 7274 done 7275 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7276} 7277 7278# Check whether --enable-libtool-lock was given. 7279if test ${enable_libtool_lock+y} 7280then : 7281 enableval=$enable_libtool_lock; 7282fi 7283 7284test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7285 7286# Some flags need to be propagated to the compiler or linker for good 7287# libtool support. 7288case $host in 7289ia64-*-hpux*) 7290 # Find out what ABI is being produced by ac_compile, and set mode 7291 # options accordingly. 7292 echo 'int i;' > conftest.$ac_ext 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7294 (eval $ac_compile) 2>&5 7295 ac_status=$? 7296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; }; then 7298 case `$FILECMD conftest.$ac_objext` in 7299 *ELF-32*) 7300 HPUX_IA64_MODE=32 7301 ;; 7302 *ELF-64*) 7303 HPUX_IA64_MODE=64 7304 ;; 7305 esac 7306 fi 7307 rm -rf conftest* 7308 ;; 7309*-*-irix6*) 7310 # Find out what ABI is being produced by ac_compile, and set linker 7311 # options accordingly. 7312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7314 (eval $ac_compile) 2>&5 7315 ac_status=$? 7316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7317 test $ac_status = 0; }; then 7318 if test yes = "$lt_cv_prog_gnu_ld"; then 7319 case `$FILECMD conftest.$ac_objext` in 7320 *32-bit*) 7321 LD="${LD-ld} -melf32bsmip" 7322 ;; 7323 *N32*) 7324 LD="${LD-ld} -melf32bmipn32" 7325 ;; 7326 *64-bit*) 7327 LD="${LD-ld} -melf64bmip" 7328 ;; 7329 esac 7330 else 7331 case `$FILECMD conftest.$ac_objext` in 7332 *32-bit*) 7333 LD="${LD-ld} -32" 7334 ;; 7335 *N32*) 7336 LD="${LD-ld} -n32" 7337 ;; 7338 *64-bit*) 7339 LD="${LD-ld} -64" 7340 ;; 7341 esac 7342 fi 7343 fi 7344 rm -rf conftest* 7345 ;; 7346 7347mips64*-*linux*) 7348 # Find out what ABI is being produced by ac_compile, and set linker 7349 # options accordingly. 7350 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7352 (eval $ac_compile) 2>&5 7353 ac_status=$? 7354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7355 test $ac_status = 0; }; then 7356 emul=elf 7357 case `$FILECMD conftest.$ac_objext` in 7358 *32-bit*) 7359 emul="${emul}32" 7360 ;; 7361 *64-bit*) 7362 emul="${emul}64" 7363 ;; 7364 esac 7365 case `$FILECMD conftest.$ac_objext` in 7366 *MSB*) 7367 emul="${emul}btsmip" 7368 ;; 7369 *LSB*) 7370 emul="${emul}ltsmip" 7371 ;; 7372 esac 7373 case `$FILECMD conftest.$ac_objext` in 7374 *N32*) 7375 emul="${emul}n32" 7376 ;; 7377 esac 7378 LD="${LD-ld} -m $emul" 7379 fi 7380 rm -rf conftest* 7381 ;; 7382 7383x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7384s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7385 # Find out what ABI is being produced by ac_compile, and set linker 7386 # options accordingly. Note that the listed cases only cover the 7387 # situations where additional linker options are needed (such as when 7388 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7389 # vice versa); the common cases where no linker options are needed do 7390 # not appear in the list. 7391 echo 'int i;' > conftest.$ac_ext 7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7393 (eval $ac_compile) 2>&5 7394 ac_status=$? 7395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7396 test $ac_status = 0; }; then 7397 case `$FILECMD conftest.o` in 7398 *32-bit*) 7399 case $host in 7400 x86_64-*kfreebsd*-gnu) 7401 LD="${LD-ld} -m elf_i386_fbsd" 7402 ;; 7403 x86_64-*linux*) 7404 case `$FILECMD conftest.o` in 7405 *x86-64*) 7406 LD="${LD-ld} -m elf32_x86_64" 7407 ;; 7408 *) 7409 LD="${LD-ld} -m elf_i386" 7410 ;; 7411 esac 7412 ;; 7413 powerpc64le-*linux*) 7414 LD="${LD-ld} -m elf32lppclinux" 7415 ;; 7416 powerpc64-*linux*) 7417 LD="${LD-ld} -m elf32ppclinux" 7418 ;; 7419 s390x-*linux*) 7420 LD="${LD-ld} -m elf_s390" 7421 ;; 7422 sparc64-*linux*) 7423 LD="${LD-ld} -m elf32_sparc" 7424 ;; 7425 esac 7426 ;; 7427 *64-bit*) 7428 case $host in 7429 x86_64-*kfreebsd*-gnu) 7430 LD="${LD-ld} -m elf_x86_64_fbsd" 7431 ;; 7432 x86_64-*linux*) 7433 LD="${LD-ld} -m elf_x86_64" 7434 ;; 7435 powerpcle-*linux*) 7436 LD="${LD-ld} -m elf64lppc" 7437 ;; 7438 powerpc-*linux*) 7439 LD="${LD-ld} -m elf64ppc" 7440 ;; 7441 s390*-*linux*|s390*-*tpf*) 7442 LD="${LD-ld} -m elf64_s390" 7443 ;; 7444 sparc*-*linux*) 7445 LD="${LD-ld} -m elf64_sparc" 7446 ;; 7447 esac 7448 ;; 7449 esac 7450 fi 7451 rm -rf conftest* 7452 ;; 7453 7454*-*-sco3.2v5*) 7455 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7456 SAVE_CFLAGS=$CFLAGS 7457 CFLAGS="$CFLAGS -belf" 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7459printf %s "checking whether the C compiler needs -belf... " >&6; } 7460if test ${lt_cv_cc_needs_belf+y} 7461then : 7462 printf %s "(cached) " >&6 7463else $as_nop 7464 ac_ext=c 7465ac_cpp='$CPP $CPPFLAGS' 7466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7468ac_compiler_gnu=$ac_cv_c_compiler_gnu 7469 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472 7473int 7474main (void) 7475{ 7476 7477 ; 7478 return 0; 7479} 7480_ACEOF 7481if ac_fn_c_try_link "$LINENO" 7482then : 7483 lt_cv_cc_needs_belf=yes 7484else $as_nop 7485 lt_cv_cc_needs_belf=no 7486fi 7487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7488 conftest$ac_exeext conftest.$ac_ext 7489 ac_ext=c 7490ac_cpp='$CPP $CPPFLAGS' 7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7493ac_compiler_gnu=$ac_cv_c_compiler_gnu 7494 7495fi 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7497printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7498 if test yes != "$lt_cv_cc_needs_belf"; then 7499 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7500 CFLAGS=$SAVE_CFLAGS 7501 fi 7502 ;; 7503*-*solaris*) 7504 # Find out what ABI is being produced by ac_compile, and set linker 7505 # options accordingly. 7506 echo 'int i;' > conftest.$ac_ext 7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7508 (eval $ac_compile) 2>&5 7509 ac_status=$? 7510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7511 test $ac_status = 0; }; then 7512 case `$FILECMD conftest.o` in 7513 *64-bit*) 7514 case $lt_cv_prog_gnu_ld in 7515 yes*) 7516 case $host in 7517 i?86-*-solaris*|x86_64-*-solaris*) 7518 LD="${LD-ld} -m elf_x86_64" 7519 ;; 7520 sparc*-*-solaris*) 7521 LD="${LD-ld} -m elf64_sparc" 7522 ;; 7523 esac 7524 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7525 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7526 LD=${LD-ld}_sol2 7527 fi 7528 ;; 7529 *) 7530 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7531 LD="${LD-ld} -64" 7532 fi 7533 ;; 7534 esac 7535 ;; 7536 esac 7537 fi 7538 rm -rf conftest* 7539 ;; 7540esac 7541 7542need_locks=$enable_libtool_lock 7543 7544if test -n "$ac_tool_prefix"; then 7545 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7546set dummy ${ac_tool_prefix}mt; ac_word=$2 7547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548printf %s "checking for $ac_word... " >&6; } 7549if test ${ac_cv_prog_MANIFEST_TOOL+y} 7550then : 7551 printf %s "(cached) " >&6 7552else $as_nop 7553 if test -n "$MANIFEST_TOOL"; then 7554 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7555else 7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7557for as_dir in $PATH 7558do 7559 IFS=$as_save_IFS 7560 case $as_dir in #((( 7561 '') as_dir=./ ;; 7562 */) ;; 7563 *) as_dir=$as_dir/ ;; 7564 esac 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7567 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571done 7572 done 7573IFS=$as_save_IFS 7574 7575fi 7576fi 7577MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7578if test -n "$MANIFEST_TOOL"; then 7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7580printf "%s\n" "$MANIFEST_TOOL" >&6; } 7581else 7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7583printf "%s\n" "no" >&6; } 7584fi 7585 7586 7587fi 7588if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7589 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7590 # Extract the first word of "mt", so it can be a program name with args. 7591set dummy mt; ac_word=$2 7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7593printf %s "checking for $ac_word... " >&6; } 7594if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7595then : 7596 printf %s "(cached) " >&6 7597else $as_nop 7598 if test -n "$ac_ct_MANIFEST_TOOL"; then 7599 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7600else 7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602for as_dir in $PATH 7603do 7604 IFS=$as_save_IFS 7605 case $as_dir in #((( 7606 '') as_dir=./ ;; 7607 */) ;; 7608 *) as_dir=$as_dir/ ;; 7609 esac 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7612 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7614 break 2 7615 fi 7616done 7617 done 7618IFS=$as_save_IFS 7619 7620fi 7621fi 7622ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7623if test -n "$ac_ct_MANIFEST_TOOL"; then 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7625printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7626else 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7628printf "%s\n" "no" >&6; } 7629fi 7630 7631 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7632 MANIFEST_TOOL=":" 7633 else 7634 case $cross_compiling:$ac_tool_warned in 7635yes:) 7636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7638ac_tool_warned=yes ;; 7639esac 7640 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7641 fi 7642else 7643 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7644fi 7645 7646test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7648printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7649if test ${lt_cv_path_mainfest_tool+y} 7650then : 7651 printf %s "(cached) " >&6 7652else $as_nop 7653 lt_cv_path_mainfest_tool=no 7654 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7655 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7656 cat conftest.err >&5 7657 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7658 lt_cv_path_mainfest_tool=yes 7659 fi 7660 rm -f conftest* 7661fi 7662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7663printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7664if test yes != "$lt_cv_path_mainfest_tool"; then 7665 MANIFEST_TOOL=: 7666fi 7667 7668 7669 7670 7671 7672 7673 case $host_os in 7674 rhapsody* | darwin*) 7675 if test -n "$ac_tool_prefix"; then 7676 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7677set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7679printf %s "checking for $ac_word... " >&6; } 7680if test ${ac_cv_prog_DSYMUTIL+y} 7681then : 7682 printf %s "(cached) " >&6 7683else $as_nop 7684 if test -n "$DSYMUTIL"; then 7685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7686else 7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7688for as_dir in $PATH 7689do 7690 IFS=$as_save_IFS 7691 case $as_dir in #((( 7692 '') as_dir=./ ;; 7693 */) ;; 7694 *) as_dir=$as_dir/ ;; 7695 esac 7696 for ac_exec_ext in '' $ac_executable_extensions; do 7697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7698 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7700 break 2 7701 fi 7702done 7703 done 7704IFS=$as_save_IFS 7705 7706fi 7707fi 7708DSYMUTIL=$ac_cv_prog_DSYMUTIL 7709if test -n "$DSYMUTIL"; then 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7711printf "%s\n" "$DSYMUTIL" >&6; } 7712else 7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7714printf "%s\n" "no" >&6; } 7715fi 7716 7717 7718fi 7719if test -z "$ac_cv_prog_DSYMUTIL"; then 7720 ac_ct_DSYMUTIL=$DSYMUTIL 7721 # Extract the first word of "dsymutil", so it can be a program name with args. 7722set dummy dsymutil; ac_word=$2 7723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7724printf %s "checking for $ac_word... " >&6; } 7725if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7726then : 7727 printf %s "(cached) " >&6 7728else $as_nop 7729 if test -n "$ac_ct_DSYMUTIL"; then 7730 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7731else 7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7733for as_dir in $PATH 7734do 7735 IFS=$as_save_IFS 7736 case $as_dir in #((( 7737 '') as_dir=./ ;; 7738 */) ;; 7739 *) as_dir=$as_dir/ ;; 7740 esac 7741 for ac_exec_ext in '' $ac_executable_extensions; do 7742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7743 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7745 break 2 7746 fi 7747done 7748 done 7749IFS=$as_save_IFS 7750 7751fi 7752fi 7753ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7754if test -n "$ac_ct_DSYMUTIL"; then 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7756printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7757else 7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7759printf "%s\n" "no" >&6; } 7760fi 7761 7762 if test "x$ac_ct_DSYMUTIL" = x; then 7763 DSYMUTIL=":" 7764 else 7765 case $cross_compiling:$ac_tool_warned in 7766yes:) 7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7768printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7769ac_tool_warned=yes ;; 7770esac 7771 DSYMUTIL=$ac_ct_DSYMUTIL 7772 fi 7773else 7774 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7775fi 7776 7777 if test -n "$ac_tool_prefix"; then 7778 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7779set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7781printf %s "checking for $ac_word... " >&6; } 7782if test ${ac_cv_prog_NMEDIT+y} 7783then : 7784 printf %s "(cached) " >&6 7785else $as_nop 7786 if test -n "$NMEDIT"; then 7787 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7788else 7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790for as_dir in $PATH 7791do 7792 IFS=$as_save_IFS 7793 case $as_dir in #((( 7794 '') as_dir=./ ;; 7795 */) ;; 7796 *) as_dir=$as_dir/ ;; 7797 esac 7798 for ac_exec_ext in '' $ac_executable_extensions; do 7799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7800 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7802 break 2 7803 fi 7804done 7805 done 7806IFS=$as_save_IFS 7807 7808fi 7809fi 7810NMEDIT=$ac_cv_prog_NMEDIT 7811if test -n "$NMEDIT"; then 7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7813printf "%s\n" "$NMEDIT" >&6; } 7814else 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7816printf "%s\n" "no" >&6; } 7817fi 7818 7819 7820fi 7821if test -z "$ac_cv_prog_NMEDIT"; then 7822 ac_ct_NMEDIT=$NMEDIT 7823 # Extract the first word of "nmedit", so it can be a program name with args. 7824set dummy nmedit; ac_word=$2 7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7826printf %s "checking for $ac_word... " >&6; } 7827if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7828then : 7829 printf %s "(cached) " >&6 7830else $as_nop 7831 if test -n "$ac_ct_NMEDIT"; then 7832 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7833else 7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7835for as_dir in $PATH 7836do 7837 IFS=$as_save_IFS 7838 case $as_dir in #((( 7839 '') as_dir=./ ;; 7840 */) ;; 7841 *) as_dir=$as_dir/ ;; 7842 esac 7843 for ac_exec_ext in '' $ac_executable_extensions; do 7844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7845 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7847 break 2 7848 fi 7849done 7850 done 7851IFS=$as_save_IFS 7852 7853fi 7854fi 7855ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7856if test -n "$ac_ct_NMEDIT"; then 7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7858printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7859else 7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7861printf "%s\n" "no" >&6; } 7862fi 7863 7864 if test "x$ac_ct_NMEDIT" = x; then 7865 NMEDIT=":" 7866 else 7867 case $cross_compiling:$ac_tool_warned in 7868yes:) 7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7870printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7871ac_tool_warned=yes ;; 7872esac 7873 NMEDIT=$ac_ct_NMEDIT 7874 fi 7875else 7876 NMEDIT="$ac_cv_prog_NMEDIT" 7877fi 7878 7879 if test -n "$ac_tool_prefix"; then 7880 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7881set dummy ${ac_tool_prefix}lipo; ac_word=$2 7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7883printf %s "checking for $ac_word... " >&6; } 7884if test ${ac_cv_prog_LIPO+y} 7885then : 7886 printf %s "(cached) " >&6 7887else $as_nop 7888 if test -n "$LIPO"; then 7889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7890else 7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7892for as_dir in $PATH 7893do 7894 IFS=$as_save_IFS 7895 case $as_dir in #((( 7896 '') as_dir=./ ;; 7897 */) ;; 7898 *) as_dir=$as_dir/ ;; 7899 esac 7900 for ac_exec_ext in '' $ac_executable_extensions; do 7901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7904 break 2 7905 fi 7906done 7907 done 7908IFS=$as_save_IFS 7909 7910fi 7911fi 7912LIPO=$ac_cv_prog_LIPO 7913if test -n "$LIPO"; then 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7915printf "%s\n" "$LIPO" >&6; } 7916else 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7918printf "%s\n" "no" >&6; } 7919fi 7920 7921 7922fi 7923if test -z "$ac_cv_prog_LIPO"; then 7924 ac_ct_LIPO=$LIPO 7925 # Extract the first word of "lipo", so it can be a program name with args. 7926set dummy lipo; ac_word=$2 7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7928printf %s "checking for $ac_word... " >&6; } 7929if test ${ac_cv_prog_ac_ct_LIPO+y} 7930then : 7931 printf %s "(cached) " >&6 7932else $as_nop 7933 if test -n "$ac_ct_LIPO"; then 7934 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7935else 7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7937for as_dir in $PATH 7938do 7939 IFS=$as_save_IFS 7940 case $as_dir in #((( 7941 '') as_dir=./ ;; 7942 */) ;; 7943 *) as_dir=$as_dir/ ;; 7944 esac 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_ac_ct_LIPO="lipo" 7948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7958if test -n "$ac_ct_LIPO"; then 7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7960printf "%s\n" "$ac_ct_LIPO" >&6; } 7961else 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963printf "%s\n" "no" >&6; } 7964fi 7965 7966 if test "x$ac_ct_LIPO" = x; then 7967 LIPO=":" 7968 else 7969 case $cross_compiling:$ac_tool_warned in 7970yes:) 7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7972printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7973ac_tool_warned=yes ;; 7974esac 7975 LIPO=$ac_ct_LIPO 7976 fi 7977else 7978 LIPO="$ac_cv_prog_LIPO" 7979fi 7980 7981 if test -n "$ac_tool_prefix"; then 7982 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7983set dummy ${ac_tool_prefix}otool; ac_word=$2 7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985printf %s "checking for $ac_word... " >&6; } 7986if test ${ac_cv_prog_OTOOL+y} 7987then : 7988 printf %s "(cached) " >&6 7989else $as_nop 7990 if test -n "$OTOOL"; then 7991 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7992else 7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7994for as_dir in $PATH 7995do 7996 IFS=$as_save_IFS 7997 case $as_dir in #((( 7998 '') as_dir=./ ;; 7999 */) ;; 8000 *) as_dir=$as_dir/ ;; 8001 esac 8002 for ac_exec_ext in '' $ac_executable_extensions; do 8003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8004 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8006 break 2 8007 fi 8008done 8009 done 8010IFS=$as_save_IFS 8011 8012fi 8013fi 8014OTOOL=$ac_cv_prog_OTOOL 8015if test -n "$OTOOL"; then 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8017printf "%s\n" "$OTOOL" >&6; } 8018else 8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8020printf "%s\n" "no" >&6; } 8021fi 8022 8023 8024fi 8025if test -z "$ac_cv_prog_OTOOL"; then 8026 ac_ct_OTOOL=$OTOOL 8027 # Extract the first word of "otool", so it can be a program name with args. 8028set dummy otool; ac_word=$2 8029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8030printf %s "checking for $ac_word... " >&6; } 8031if test ${ac_cv_prog_ac_ct_OTOOL+y} 8032then : 8033 printf %s "(cached) " >&6 8034else $as_nop 8035 if test -n "$ac_ct_OTOOL"; then 8036 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8037else 8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8039for as_dir in $PATH 8040do 8041 IFS=$as_save_IFS 8042 case $as_dir in #((( 8043 '') as_dir=./ ;; 8044 */) ;; 8045 *) as_dir=$as_dir/ ;; 8046 esac 8047 for ac_exec_ext in '' $ac_executable_extensions; do 8048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8049 ac_cv_prog_ac_ct_OTOOL="otool" 8050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8051 break 2 8052 fi 8053done 8054 done 8055IFS=$as_save_IFS 8056 8057fi 8058fi 8059ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8060if test -n "$ac_ct_OTOOL"; then 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8062printf "%s\n" "$ac_ct_OTOOL" >&6; } 8063else 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8065printf "%s\n" "no" >&6; } 8066fi 8067 8068 if test "x$ac_ct_OTOOL" = x; then 8069 OTOOL=":" 8070 else 8071 case $cross_compiling:$ac_tool_warned in 8072yes:) 8073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8074printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8075ac_tool_warned=yes ;; 8076esac 8077 OTOOL=$ac_ct_OTOOL 8078 fi 8079else 8080 OTOOL="$ac_cv_prog_OTOOL" 8081fi 8082 8083 if test -n "$ac_tool_prefix"; then 8084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8085set dummy ${ac_tool_prefix}otool64; ac_word=$2 8086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8087printf %s "checking for $ac_word... " >&6; } 8088if test ${ac_cv_prog_OTOOL64+y} 8089then : 8090 printf %s "(cached) " >&6 8091else $as_nop 8092 if test -n "$OTOOL64"; then 8093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8094else 8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8096for as_dir in $PATH 8097do 8098 IFS=$as_save_IFS 8099 case $as_dir in #((( 8100 '') as_dir=./ ;; 8101 */) ;; 8102 *) as_dir=$as_dir/ ;; 8103 esac 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8106 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111 done 8112IFS=$as_save_IFS 8113 8114fi 8115fi 8116OTOOL64=$ac_cv_prog_OTOOL64 8117if test -n "$OTOOL64"; then 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8119printf "%s\n" "$OTOOL64" >&6; } 8120else 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122printf "%s\n" "no" >&6; } 8123fi 8124 8125 8126fi 8127if test -z "$ac_cv_prog_OTOOL64"; then 8128 ac_ct_OTOOL64=$OTOOL64 8129 # Extract the first word of "otool64", so it can be a program name with args. 8130set dummy otool64; ac_word=$2 8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8132printf %s "checking for $ac_word... " >&6; } 8133if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8134then : 8135 printf %s "(cached) " >&6 8136else $as_nop 8137 if test -n "$ac_ct_OTOOL64"; then 8138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8139else 8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141for as_dir in $PATH 8142do 8143 IFS=$as_save_IFS 8144 case $as_dir in #((( 8145 '') as_dir=./ ;; 8146 */) ;; 8147 *) as_dir=$as_dir/ ;; 8148 esac 8149 for ac_exec_ext in '' $ac_executable_extensions; do 8150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8151 ac_cv_prog_ac_ct_OTOOL64="otool64" 8152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8153 break 2 8154 fi 8155done 8156 done 8157IFS=$as_save_IFS 8158 8159fi 8160fi 8161ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8162if test -n "$ac_ct_OTOOL64"; then 8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8164printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8165else 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8167printf "%s\n" "no" >&6; } 8168fi 8169 8170 if test "x$ac_ct_OTOOL64" = x; then 8171 OTOOL64=":" 8172 else 8173 case $cross_compiling:$ac_tool_warned in 8174yes:) 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8177ac_tool_warned=yes ;; 8178esac 8179 OTOOL64=$ac_ct_OTOOL64 8180 fi 8181else 8182 OTOOL64="$ac_cv_prog_OTOOL64" 8183fi 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8212printf %s "checking for -single_module linker flag... " >&6; } 8213if test ${lt_cv_apple_cc_single_mod+y} 8214then : 8215 printf %s "(cached) " >&6 8216else $as_nop 8217 lt_cv_apple_cc_single_mod=no 8218 if test -z "$LT_MULTI_MODULE"; then 8219 # By default we will add the -single_module flag. You can override 8220 # by either setting the environment variable LT_MULTI_MODULE 8221 # non-empty at configure time, or by adding -multi_module to the 8222 # link flags. 8223 rm -rf libconftest.dylib* 8224 echo "int foo(void){return 1;}" > conftest.c 8225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8226-dynamiclib -Wl,-single_module conftest.c" >&5 8227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8229 _lt_result=$? 8230 # If there is a non-empty error log, and "single_module" 8231 # appears in it, assume the flag caused a linker warning 8232 if test -s conftest.err && $GREP single_module conftest.err; then 8233 cat conftest.err >&5 8234 # Otherwise, if the output was created with a 0 exit code from 8235 # the compiler, it worked. 8236 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8237 lt_cv_apple_cc_single_mod=yes 8238 else 8239 cat conftest.err >&5 8240 fi 8241 rm -rf libconftest.dylib* 8242 rm -f conftest.* 8243 fi 8244fi 8245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8246printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8247 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8249printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8250if test ${lt_cv_ld_exported_symbols_list+y} 8251then : 8252 printf %s "(cached) " >&6 8253else $as_nop 8254 lt_cv_ld_exported_symbols_list=no 8255 save_LDFLAGS=$LDFLAGS 8256 echo "_main" > conftest.sym 8257 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260 8261int 8262main (void) 8263{ 8264 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269if ac_fn_c_try_link "$LINENO" 8270then : 8271 lt_cv_ld_exported_symbols_list=yes 8272else $as_nop 8273 lt_cv_ld_exported_symbols_list=no 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8276 conftest$ac_exeext conftest.$ac_ext 8277 LDFLAGS=$save_LDFLAGS 8278 8279fi 8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8281printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8282 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8284printf %s "checking for -force_load linker flag... " >&6; } 8285if test ${lt_cv_ld_force_load+y} 8286then : 8287 printf %s "(cached) " >&6 8288else $as_nop 8289 lt_cv_ld_force_load=no 8290 cat > conftest.c << _LT_EOF 8291int forced_loaded() { return 2;} 8292_LT_EOF 8293 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8294 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8295 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8296 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8297 echo "$RANLIB libconftest.a" >&5 8298 $RANLIB libconftest.a 2>&5 8299 cat > conftest.c << _LT_EOF 8300int main() { return 0;} 8301_LT_EOF 8302 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8303 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8304 _lt_result=$? 8305 if test -s conftest.err && $GREP force_load conftest.err; then 8306 cat conftest.err >&5 8307 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8308 lt_cv_ld_force_load=yes 8309 else 8310 cat conftest.err >&5 8311 fi 8312 rm -f conftest.err libconftest.a conftest conftest.c 8313 rm -rf conftest.dSYM 8314 8315fi 8316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8317printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8318 case $host_os in 8319 rhapsody* | darwin1.[012]) 8320 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8321 darwin1.*) 8322 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8323 darwin*) 8324 case $MACOSX_DEPLOYMENT_TARGET,$host in 8325 10.[012],*|,*powerpc*-darwin[5-8]*) 8326 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8327 *) 8328 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8329 esac 8330 ;; 8331 esac 8332 if test yes = "$lt_cv_apple_cc_single_mod"; then 8333 _lt_dar_single_mod='$single_module' 8334 fi 8335 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8336 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8337 else 8338 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8339 fi 8340 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8341 _lt_dsymutil='~$DSYMUTIL $lib || :' 8342 else 8343 _lt_dsymutil= 8344 fi 8345 ;; 8346 esac 8347 8348# func_munge_path_list VARIABLE PATH 8349# ----------------------------------- 8350# VARIABLE is name of variable containing _space_ separated list of 8351# directories to be munged by the contents of PATH, which is string 8352# having a format: 8353# "DIR[:DIR]:" 8354# string "DIR[ DIR]" will be prepended to VARIABLE 8355# ":DIR[:DIR]" 8356# string "DIR[ DIR]" will be appended to VARIABLE 8357# "DIRP[:DIRP]::[DIRA:]DIRA" 8358# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8359# "DIRA[ DIRA]" will be appended to VARIABLE 8360# "DIR[:DIR]" 8361# VARIABLE will be replaced by "DIR[ DIR]" 8362func_munge_path_list () 8363{ 8364 case x$2 in 8365 x) 8366 ;; 8367 *:) 8368 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8369 ;; 8370 x:*) 8371 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8372 ;; 8373 *::*) 8374 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8375 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8376 ;; 8377 *) 8378 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8379 ;; 8380 esac 8381} 8382 8383ac_header= ac_cache= 8384for ac_item in $ac_header_c_list 8385do 8386 if test $ac_cache; then 8387 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8388 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8389 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8390 fi 8391 ac_header= ac_cache= 8392 elif test $ac_header; then 8393 ac_cache=$ac_item 8394 else 8395 ac_header=$ac_item 8396 fi 8397done 8398 8399 8400 8401 8402 8403 8404 8405 8406if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8407then : 8408 8409printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8410 8411fi 8412ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8413" 8414if test "x$ac_cv_header_dlfcn_h" = xyes 8415then : 8416 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8417 8418fi 8419 8420 8421 8422 8423 8424# Set options 8425 8426 8427 8428 enable_dlopen=no 8429 8430 8431 enable_win32_dll=no 8432 8433 8434 # Check whether --enable-shared was given. 8435if test ${enable_shared+y} 8436then : 8437 enableval=$enable_shared; p=${PACKAGE-default} 8438 case $enableval in 8439 yes) enable_shared=yes ;; 8440 no) enable_shared=no ;; 8441 *) 8442 enable_shared=no 8443 # Look at the argument we got. We use all the common list separators. 8444 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8445 for pkg in $enableval; do 8446 IFS=$lt_save_ifs 8447 if test "X$pkg" = "X$p"; then 8448 enable_shared=yes 8449 fi 8450 done 8451 IFS=$lt_save_ifs 8452 ;; 8453 esac 8454else $as_nop 8455 enable_shared=yes 8456fi 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 # Check whether --enable-static was given. 8467if test ${enable_static+y} 8468then : 8469 enableval=$enable_static; p=${PACKAGE-default} 8470 case $enableval in 8471 yes) enable_static=yes ;; 8472 no) enable_static=no ;; 8473 *) 8474 enable_static=no 8475 # Look at the argument we got. We use all the common list separators. 8476 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8477 for pkg in $enableval; do 8478 IFS=$lt_save_ifs 8479 if test "X$pkg" = "X$p"; then 8480 enable_static=yes 8481 fi 8482 done 8483 IFS=$lt_save_ifs 8484 ;; 8485 esac 8486else $as_nop 8487 enable_static=yes 8488fi 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499# Check whether --with-pic was given. 8500if test ${with_pic+y} 8501then : 8502 withval=$with_pic; lt_p=${PACKAGE-default} 8503 case $withval in 8504 yes|no) pic_mode=$withval ;; 8505 *) 8506 pic_mode=default 8507 # Look at the argument we got. We use all the common list separators. 8508 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8509 for lt_pkg in $withval; do 8510 IFS=$lt_save_ifs 8511 if test "X$lt_pkg" = "X$lt_p"; then 8512 pic_mode=yes 8513 fi 8514 done 8515 IFS=$lt_save_ifs 8516 ;; 8517 esac 8518else $as_nop 8519 pic_mode=default 8520fi 8521 8522 8523 8524 8525 8526 8527 8528 8529 # Check whether --enable-fast-install was given. 8530if test ${enable_fast_install+y} 8531then : 8532 enableval=$enable_fast_install; p=${PACKAGE-default} 8533 case $enableval in 8534 yes) enable_fast_install=yes ;; 8535 no) enable_fast_install=no ;; 8536 *) 8537 enable_fast_install=no 8538 # Look at the argument we got. We use all the common list separators. 8539 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8540 for pkg in $enableval; do 8541 IFS=$lt_save_ifs 8542 if test "X$pkg" = "X$p"; then 8543 enable_fast_install=yes 8544 fi 8545 done 8546 IFS=$lt_save_ifs 8547 ;; 8548 esac 8549else $as_nop 8550 enable_fast_install=yes 8551fi 8552 8553 8554 8555 8556 8557 8558 8559 8560 shared_archive_member_spec= 8561case $host,$enable_shared in 8562power*-*-aix[5-9]*,yes) 8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8564printf %s "checking which variant of shared library versioning to provide... " >&6; } 8565 8566# Check whether --with-aix-soname was given. 8567if test ${with_aix_soname+y} 8568then : 8569 withval=$with_aix_soname; case $withval in 8570 aix|svr4|both) 8571 ;; 8572 *) 8573 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8574 ;; 8575 esac 8576 lt_cv_with_aix_soname=$with_aix_soname 8577else $as_nop 8578 if test ${lt_cv_with_aix_soname+y} 8579then : 8580 printf %s "(cached) " >&6 8581else $as_nop 8582 lt_cv_with_aix_soname=aix 8583fi 8584 8585 with_aix_soname=$lt_cv_with_aix_soname 8586fi 8587 8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8589printf "%s\n" "$with_aix_soname" >&6; } 8590 if test aix != "$with_aix_soname"; then 8591 # For the AIX way of multilib, we name the shared archive member 8592 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8593 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8594 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8595 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8596 if test 64 = "${OBJECT_MODE-32}"; then 8597 shared_archive_member_spec=shr_64 8598 else 8599 shared_archive_member_spec=shr 8600 fi 8601 fi 8602 ;; 8603*) 8604 with_aix_soname=aix 8605 ;; 8606esac 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617# This can be used to rebuild libtool when needed 8618LIBTOOL_DEPS=$ltmain 8619 8620# Always use our own libtool. 8621LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652test -z "$LN_S" && LN_S="ln -s" 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667if test -n "${ZSH_VERSION+set}"; then 8668 setopt NO_GLOB_SUBST 8669fi 8670 8671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8672printf %s "checking for objdir... " >&6; } 8673if test ${lt_cv_objdir+y} 8674then : 8675 printf %s "(cached) " >&6 8676else $as_nop 8677 rm -f .libs 2>/dev/null 8678mkdir .libs 2>/dev/null 8679if test -d .libs; then 8680 lt_cv_objdir=.libs 8681else 8682 # MS-DOS does not allow filenames that begin with a dot. 8683 lt_cv_objdir=_libs 8684fi 8685rmdir .libs 2>/dev/null 8686fi 8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8688printf "%s\n" "$lt_cv_objdir" >&6; } 8689objdir=$lt_cv_objdir 8690 8691 8692 8693 8694 8695printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8696 8697 8698 8699 8700case $host_os in 8701aix3*) 8702 # AIX sometimes has problems with the GCC collect2 program. For some 8703 # reason, if we set the COLLECT_NAMES environment variable, the problems 8704 # vanish in a puff of smoke. 8705 if test set != "${COLLECT_NAMES+set}"; then 8706 COLLECT_NAMES= 8707 export COLLECT_NAMES 8708 fi 8709 ;; 8710esac 8711 8712# Global variables: 8713ofile=libtool 8714can_build_shared=yes 8715 8716# All known linkers require a '.a' archive for static linking (except MSVC and 8717# ICC, which need '.lib'). 8718libext=a 8719 8720with_gnu_ld=$lt_cv_prog_gnu_ld 8721 8722old_CC=$CC 8723old_CFLAGS=$CFLAGS 8724 8725# Set sane defaults for various variables 8726test -z "$CC" && CC=cc 8727test -z "$LTCC" && LTCC=$CC 8728test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8729test -z "$LD" && LD=ld 8730test -z "$ac_objext" && ac_objext=o 8731 8732func_cc_basename $compiler 8733cc_basename=$func_cc_basename_result 8734 8735 8736# Only perform the check for file, if the check method requires it 8737test -z "$MAGIC_CMD" && MAGIC_CMD=file 8738case $deplibs_check_method in 8739file_magic*) 8740 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8742printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8743if test ${lt_cv_path_MAGIC_CMD+y} 8744then : 8745 printf %s "(cached) " >&6 8746else $as_nop 8747 case $MAGIC_CMD in 8748[\\/*] | ?:[\\/]*) 8749 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8750 ;; 8751*) 8752 lt_save_MAGIC_CMD=$MAGIC_CMD 8753 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8755 for ac_dir in $ac_dummy; do 8756 IFS=$lt_save_ifs 8757 test -z "$ac_dir" && ac_dir=. 8758 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8759 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8760 if test -n "$file_magic_test_file"; then 8761 case $deplibs_check_method in 8762 "file_magic "*) 8763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8764 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8766 $EGREP "$file_magic_regex" > /dev/null; then 8767 : 8768 else 8769 cat <<_LT_EOF 1>&2 8770 8771*** Warning: the command libtool uses to detect shared libraries, 8772*** $file_magic_cmd, produces output that libtool cannot recognize. 8773*** The result is that libtool may fail to recognize shared libraries 8774*** as such. This will affect the creation of libtool libraries that 8775*** depend on shared libraries, but programs linked with such libtool 8776*** libraries will work regardless of this problem. Nevertheless, you 8777*** may want to report the problem to your system manager and/or to 8778*** [email protected] 8779 8780_LT_EOF 8781 fi ;; 8782 esac 8783 fi 8784 break 8785 fi 8786 done 8787 IFS=$lt_save_ifs 8788 MAGIC_CMD=$lt_save_MAGIC_CMD 8789 ;; 8790esac 8791fi 8792 8793MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8794if test -n "$MAGIC_CMD"; then 8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8796printf "%s\n" "$MAGIC_CMD" >&6; } 8797else 8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8799printf "%s\n" "no" >&6; } 8800fi 8801 8802 8803 8804 8805 8806if test -z "$lt_cv_path_MAGIC_CMD"; then 8807 if test -n "$ac_tool_prefix"; then 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8809printf %s "checking for file... " >&6; } 8810if test ${lt_cv_path_MAGIC_CMD+y} 8811then : 8812 printf %s "(cached) " >&6 8813else $as_nop 8814 case $MAGIC_CMD in 8815[\\/*] | ?:[\\/]*) 8816 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8817 ;; 8818*) 8819 lt_save_MAGIC_CMD=$MAGIC_CMD 8820 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8822 for ac_dir in $ac_dummy; do 8823 IFS=$lt_save_ifs 8824 test -z "$ac_dir" && ac_dir=. 8825 if test -f "$ac_dir/file"; then 8826 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8827 if test -n "$file_magic_test_file"; then 8828 case $deplibs_check_method in 8829 "file_magic "*) 8830 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8831 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8833 $EGREP "$file_magic_regex" > /dev/null; then 8834 : 8835 else 8836 cat <<_LT_EOF 1>&2 8837 8838*** Warning: the command libtool uses to detect shared libraries, 8839*** $file_magic_cmd, produces output that libtool cannot recognize. 8840*** The result is that libtool may fail to recognize shared libraries 8841*** as such. This will affect the creation of libtool libraries that 8842*** depend on shared libraries, but programs linked with such libtool 8843*** libraries will work regardless of this problem. Nevertheless, you 8844*** may want to report the problem to your system manager and/or to 8845*** [email protected] 8846 8847_LT_EOF 8848 fi ;; 8849 esac 8850 fi 8851 break 8852 fi 8853 done 8854 IFS=$lt_save_ifs 8855 MAGIC_CMD=$lt_save_MAGIC_CMD 8856 ;; 8857esac 8858fi 8859 8860MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8861if test -n "$MAGIC_CMD"; then 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8863printf "%s\n" "$MAGIC_CMD" >&6; } 8864else 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8866printf "%s\n" "no" >&6; } 8867fi 8868 8869 8870 else 8871 MAGIC_CMD=: 8872 fi 8873fi 8874 8875 fi 8876 ;; 8877esac 8878 8879# Use C for the default configuration in the libtool script 8880 8881lt_save_CC=$CC 8882ac_ext=c 8883ac_cpp='$CPP $CPPFLAGS' 8884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8886ac_compiler_gnu=$ac_cv_c_compiler_gnu 8887 8888 8889# Source file extension for C test sources. 8890ac_ext=c 8891 8892# Object file extension for compiled C test sources. 8893objext=o 8894objext=$objext 8895 8896# Code to be used in simple compile tests 8897lt_simple_compile_test_code="int some_variable = 0;" 8898 8899# Code to be used in simple link tests 8900lt_simple_link_test_code='int main(){return(0);}' 8901 8902 8903 8904 8905 8906 8907 8908# If no C compiler was specified, use CC. 8909LTCC=${LTCC-"$CC"} 8910 8911# If no C compiler flags were specified, use CFLAGS. 8912LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8913 8914# Allow CC to be a program name with arguments. 8915compiler=$CC 8916 8917# Save the default compiler, since it gets overwritten when the other 8918# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8919compiler_DEFAULT=$CC 8920 8921# save warnings/boilerplate of simple test code 8922ac_outfile=conftest.$ac_objext 8923echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8924eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8925_lt_compiler_boilerplate=`cat conftest.err` 8926$RM conftest* 8927 8928ac_outfile=conftest.$ac_objext 8929echo "$lt_simple_link_test_code" >conftest.$ac_ext 8930eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8931_lt_linker_boilerplate=`cat conftest.err` 8932$RM -r conftest* 8933 8934 8935if test -n "$compiler"; then 8936 8937lt_prog_compiler_no_builtin_flag= 8938 8939if test yes = "$GCC"; then 8940 case $cc_basename in 8941 nvcc*) 8942 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8943 *) 8944 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8945 esac 8946 8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8948printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8949if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8950then : 8951 printf %s "(cached) " >&6 8952else $as_nop 8953 lt_cv_prog_compiler_rtti_exceptions=no 8954 ac_outfile=conftest.$ac_objext 8955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8956 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8957 # Insert the option either (1) after the last *FLAGS variable, or 8958 # (2) before a word containing "conftest.", or (3) at the end. 8959 # Note that $ac_compile itself does not contain backslashes and begins 8960 # with a dollar sign (not a hyphen), so the echo should work correctly. 8961 # The option is referenced via a variable to avoid confusing sed. 8962 lt_compile=`echo "$ac_compile" | $SED \ 8963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8965 -e 's:$: $lt_compiler_flag:'` 8966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8967 (eval "$lt_compile" 2>conftest.err) 8968 ac_status=$? 8969 cat conftest.err >&5 8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8971 if (exit $ac_status) && test -s "$ac_outfile"; then 8972 # The compiler can only warn and ignore the option if not recognized 8973 # So say no if there are warnings other than the usual output. 8974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8977 lt_cv_prog_compiler_rtti_exceptions=yes 8978 fi 8979 fi 8980 $RM conftest* 8981 8982fi 8983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8984printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8985 8986if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8987 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8988else 8989 : 8990fi 8991 8992fi 8993 8994 8995 8996 8997 8998 8999 lt_prog_compiler_wl= 9000lt_prog_compiler_pic= 9001lt_prog_compiler_static= 9002 9003 9004 if test yes = "$GCC"; then 9005 lt_prog_compiler_wl='-Wl,' 9006 lt_prog_compiler_static='-static' 9007 9008 case $host_os in 9009 aix*) 9010 # All AIX code is PIC. 9011 if test ia64 = "$host_cpu"; then 9012 # AIX 5 now supports IA64 processor 9013 lt_prog_compiler_static='-Bstatic' 9014 fi 9015 lt_prog_compiler_pic='-fPIC' 9016 ;; 9017 9018 amigaos*) 9019 case $host_cpu in 9020 powerpc) 9021 # see comment about AmigaOS4 .so support 9022 lt_prog_compiler_pic='-fPIC' 9023 ;; 9024 m68k) 9025 # FIXME: we need at least 68020 code to build shared libraries, but 9026 # adding the '-m68020' flag to GCC prevents building anything better, 9027 # like '-m68040'. 9028 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9029 ;; 9030 esac 9031 ;; 9032 9033 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9034 # PIC is the default for these OSes. 9035 ;; 9036 9037 mingw* | cygwin* | pw32* | os2* | cegcc*) 9038 # This hack is so that the source file can tell whether it is being 9039 # built for inclusion in a dll (and should export symbols for example). 9040 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9041 # (--disable-auto-import) libraries 9042 lt_prog_compiler_pic='-DDLL_EXPORT' 9043 case $host_os in 9044 os2*) 9045 lt_prog_compiler_static='$wl-static' 9046 ;; 9047 esac 9048 ;; 9049 9050 darwin* | rhapsody*) 9051 # PIC is the default on this platform 9052 # Common symbols not allowed in MH_DYLIB files 9053 lt_prog_compiler_pic='-fno-common' 9054 ;; 9055 9056 haiku*) 9057 # PIC is the default for Haiku. 9058 # The "-static" flag exists, but is broken. 9059 lt_prog_compiler_static= 9060 ;; 9061 9062 hpux*) 9063 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9064 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9065 # sets the default TLS model and affects inlining. 9066 case $host_cpu in 9067 hppa*64*) 9068 # +Z the default 9069 ;; 9070 *) 9071 lt_prog_compiler_pic='-fPIC' 9072 ;; 9073 esac 9074 ;; 9075 9076 interix[3-9]*) 9077 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9078 # Instead, we relocate shared libraries at runtime. 9079 ;; 9080 9081 msdosdjgpp*) 9082 # Just because we use GCC doesn't mean we suddenly get shared libraries 9083 # on systems that don't support them. 9084 lt_prog_compiler_can_build_shared=no 9085 enable_shared=no 9086 ;; 9087 9088 *nto* | *qnx*) 9089 # QNX uses GNU C++, but need to define -shared option too, otherwise 9090 # it will coredump. 9091 lt_prog_compiler_pic='-fPIC -shared' 9092 ;; 9093 9094 sysv4*MP*) 9095 if test -d /usr/nec; then 9096 lt_prog_compiler_pic=-Kconform_pic 9097 fi 9098 ;; 9099 9100 *) 9101 lt_prog_compiler_pic='-fPIC' 9102 ;; 9103 esac 9104 9105 case $cc_basename in 9106 nvcc*) # Cuda Compiler Driver 2.2 9107 lt_prog_compiler_wl='-Xlinker ' 9108 if test -n "$lt_prog_compiler_pic"; then 9109 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9110 fi 9111 ;; 9112 esac 9113 else 9114 # PORTME Check for flag to pass linker flags through the system compiler. 9115 case $host_os in 9116 aix*) 9117 lt_prog_compiler_wl='-Wl,' 9118 if test ia64 = "$host_cpu"; then 9119 # AIX 5 now supports IA64 processor 9120 lt_prog_compiler_static='-Bstatic' 9121 else 9122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9123 fi 9124 ;; 9125 9126 darwin* | rhapsody*) 9127 # PIC is the default on this platform 9128 # Common symbols not allowed in MH_DYLIB files 9129 lt_prog_compiler_pic='-fno-common' 9130 case $cc_basename in 9131 nagfor*) 9132 # NAG Fortran compiler 9133 lt_prog_compiler_wl='-Wl,-Wl,,' 9134 lt_prog_compiler_pic='-PIC' 9135 lt_prog_compiler_static='-Bstatic' 9136 ;; 9137 esac 9138 ;; 9139 9140 mingw* | cygwin* | pw32* | os2* | cegcc*) 9141 # This hack is so that the source file can tell whether it is being 9142 # built for inclusion in a dll (and should export symbols for example). 9143 lt_prog_compiler_pic='-DDLL_EXPORT' 9144 case $host_os in 9145 os2*) 9146 lt_prog_compiler_static='$wl-static' 9147 ;; 9148 esac 9149 ;; 9150 9151 hpux9* | hpux10* | hpux11*) 9152 lt_prog_compiler_wl='-Wl,' 9153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9154 # not for PA HP-UX. 9155 case $host_cpu in 9156 hppa*64*|ia64*) 9157 # +Z the default 9158 ;; 9159 *) 9160 lt_prog_compiler_pic='+Z' 9161 ;; 9162 esac 9163 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9164 lt_prog_compiler_static='$wl-a ${wl}archive' 9165 ;; 9166 9167 irix5* | irix6* | nonstopux*) 9168 lt_prog_compiler_wl='-Wl,' 9169 # PIC (with -KPIC) is the default. 9170 lt_prog_compiler_static='-non_shared' 9171 ;; 9172 9173 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9174 case $cc_basename in 9175 # old Intel for x86_64, which still supported -KPIC. 9176 ecc*) 9177 lt_prog_compiler_wl='-Wl,' 9178 lt_prog_compiler_pic='-KPIC' 9179 lt_prog_compiler_static='-static' 9180 ;; 9181 # icc used to be incompatible with GCC. 9182 # ICC 10 doesn't accept -KPIC any more. 9183 icc* | ifort*) 9184 lt_prog_compiler_wl='-Wl,' 9185 lt_prog_compiler_pic='-fPIC' 9186 lt_prog_compiler_static='-static' 9187 ;; 9188 # Lahey Fortran 8.1. 9189 lf95*) 9190 lt_prog_compiler_wl='-Wl,' 9191 lt_prog_compiler_pic='--shared' 9192 lt_prog_compiler_static='--static' 9193 ;; 9194 nagfor*) 9195 # NAG Fortran compiler 9196 lt_prog_compiler_wl='-Wl,-Wl,,' 9197 lt_prog_compiler_pic='-PIC' 9198 lt_prog_compiler_static='-Bstatic' 9199 ;; 9200 tcc*) 9201 # Fabrice Bellard et al's Tiny C Compiler 9202 lt_prog_compiler_wl='-Wl,' 9203 lt_prog_compiler_pic='-fPIC' 9204 lt_prog_compiler_static='-static' 9205 ;; 9206 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9207 # Portland Group compilers (*not* the Pentium gcc compiler, 9208 # which looks to be a dead project) 9209 lt_prog_compiler_wl='-Wl,' 9210 lt_prog_compiler_pic='-fpic' 9211 lt_prog_compiler_static='-Bstatic' 9212 ;; 9213 ccc*) 9214 lt_prog_compiler_wl='-Wl,' 9215 # All Alpha code is PIC. 9216 lt_prog_compiler_static='-non_shared' 9217 ;; 9218 xl* | bgxl* | bgf* | mpixl*) 9219 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9220 lt_prog_compiler_wl='-Wl,' 9221 lt_prog_compiler_pic='-qpic' 9222 lt_prog_compiler_static='-qstaticlink' 9223 ;; 9224 *) 9225 case `$CC -V 2>&1 | $SED 5q` in 9226 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9227 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9228 lt_prog_compiler_pic='-KPIC' 9229 lt_prog_compiler_static='-Bstatic' 9230 lt_prog_compiler_wl='' 9231 ;; 9232 *Sun\ F* | *Sun*Fortran*) 9233 lt_prog_compiler_pic='-KPIC' 9234 lt_prog_compiler_static='-Bstatic' 9235 lt_prog_compiler_wl='-Qoption ld ' 9236 ;; 9237 *Sun\ C*) 9238 # Sun C 5.9 9239 lt_prog_compiler_pic='-KPIC' 9240 lt_prog_compiler_static='-Bstatic' 9241 lt_prog_compiler_wl='-Wl,' 9242 ;; 9243 *Intel*\ [CF]*Compiler*) 9244 lt_prog_compiler_wl='-Wl,' 9245 lt_prog_compiler_pic='-fPIC' 9246 lt_prog_compiler_static='-static' 9247 ;; 9248 *Portland\ Group*) 9249 lt_prog_compiler_wl='-Wl,' 9250 lt_prog_compiler_pic='-fpic' 9251 lt_prog_compiler_static='-Bstatic' 9252 ;; 9253 esac 9254 ;; 9255 esac 9256 ;; 9257 9258 newsos6) 9259 lt_prog_compiler_pic='-KPIC' 9260 lt_prog_compiler_static='-Bstatic' 9261 ;; 9262 9263 *nto* | *qnx*) 9264 # QNX uses GNU C++, but need to define -shared option too, otherwise 9265 # it will coredump. 9266 lt_prog_compiler_pic='-fPIC -shared' 9267 ;; 9268 9269 osf3* | osf4* | osf5*) 9270 lt_prog_compiler_wl='-Wl,' 9271 # All OSF/1 code is PIC. 9272 lt_prog_compiler_static='-non_shared' 9273 ;; 9274 9275 rdos*) 9276 lt_prog_compiler_static='-non_shared' 9277 ;; 9278 9279 solaris*) 9280 lt_prog_compiler_pic='-KPIC' 9281 lt_prog_compiler_static='-Bstatic' 9282 case $cc_basename in 9283 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9284 lt_prog_compiler_wl='-Qoption ld ';; 9285 *) 9286 lt_prog_compiler_wl='-Wl,';; 9287 esac 9288 ;; 9289 9290 sunos4*) 9291 lt_prog_compiler_wl='-Qoption ld ' 9292 lt_prog_compiler_pic='-PIC' 9293 lt_prog_compiler_static='-Bstatic' 9294 ;; 9295 9296 sysv4 | sysv4.2uw2* | sysv4.3*) 9297 lt_prog_compiler_wl='-Wl,' 9298 lt_prog_compiler_pic='-KPIC' 9299 lt_prog_compiler_static='-Bstatic' 9300 ;; 9301 9302 sysv4*MP*) 9303 if test -d /usr/nec; then 9304 lt_prog_compiler_pic='-Kconform_pic' 9305 lt_prog_compiler_static='-Bstatic' 9306 fi 9307 ;; 9308 9309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9310 lt_prog_compiler_wl='-Wl,' 9311 lt_prog_compiler_pic='-KPIC' 9312 lt_prog_compiler_static='-Bstatic' 9313 ;; 9314 9315 unicos*) 9316 lt_prog_compiler_wl='-Wl,' 9317 lt_prog_compiler_can_build_shared=no 9318 ;; 9319 9320 uts4*) 9321 lt_prog_compiler_pic='-pic' 9322 lt_prog_compiler_static='-Bstatic' 9323 ;; 9324 9325 *) 9326 lt_prog_compiler_can_build_shared=no 9327 ;; 9328 esac 9329 fi 9330 9331case $host_os in 9332 # For platforms that do not support PIC, -DPIC is meaningless: 9333 *djgpp*) 9334 lt_prog_compiler_pic= 9335 ;; 9336 *) 9337 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9338 ;; 9339esac 9340 9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9342printf %s "checking for $compiler option to produce PIC... " >&6; } 9343if test ${lt_cv_prog_compiler_pic+y} 9344then : 9345 printf %s "(cached) " >&6 9346else $as_nop 9347 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9348fi 9349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9350printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9351lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9352 9353# 9354# Check to make sure the PIC flag actually works. 9355# 9356if test -n "$lt_prog_compiler_pic"; then 9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9358printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9359if test ${lt_cv_prog_compiler_pic_works+y} 9360then : 9361 printf %s "(cached) " >&6 9362else $as_nop 9363 lt_cv_prog_compiler_pic_works=no 9364 ac_outfile=conftest.$ac_objext 9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9366 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9367 # Insert the option either (1) after the last *FLAGS variable, or 9368 # (2) before a word containing "conftest.", or (3) at the end. 9369 # Note that $ac_compile itself does not contain backslashes and begins 9370 # with a dollar sign (not a hyphen), so the echo should work correctly. 9371 # The option is referenced via a variable to avoid confusing sed. 9372 lt_compile=`echo "$ac_compile" | $SED \ 9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9375 -e 's:$: $lt_compiler_flag:'` 9376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9377 (eval "$lt_compile" 2>conftest.err) 9378 ac_status=$? 9379 cat conftest.err >&5 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 if (exit $ac_status) && test -s "$ac_outfile"; then 9382 # The compiler can only warn and ignore the option if not recognized 9383 # So say no if there are warnings other than the usual output. 9384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9387 lt_cv_prog_compiler_pic_works=yes 9388 fi 9389 fi 9390 $RM conftest* 9391 9392fi 9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9394printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9395 9396if test yes = "$lt_cv_prog_compiler_pic_works"; then 9397 case $lt_prog_compiler_pic in 9398 "" | " "*) ;; 9399 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9400 esac 9401else 9402 lt_prog_compiler_pic= 9403 lt_prog_compiler_can_build_shared=no 9404fi 9405 9406fi 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418# 9419# Check to make sure the static flag actually works. 9420# 9421wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9423printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9424if test ${lt_cv_prog_compiler_static_works+y} 9425then : 9426 printf %s "(cached) " >&6 9427else $as_nop 9428 lt_cv_prog_compiler_static_works=no 9429 save_LDFLAGS=$LDFLAGS 9430 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9431 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9433 # The linker can only warn and ignore the option if not recognized 9434 # So say no if there are warnings 9435 if test -s conftest.err; then 9436 # Append any errors to the config.log. 9437 cat conftest.err 1>&5 9438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9440 if diff conftest.exp conftest.er2 >/dev/null; then 9441 lt_cv_prog_compiler_static_works=yes 9442 fi 9443 else 9444 lt_cv_prog_compiler_static_works=yes 9445 fi 9446 fi 9447 $RM -r conftest* 9448 LDFLAGS=$save_LDFLAGS 9449 9450fi 9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9452printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9453 9454if test yes = "$lt_cv_prog_compiler_static_works"; then 9455 : 9456else 9457 lt_prog_compiler_static= 9458fi 9459 9460 9461 9462 9463 9464 9465 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9467printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9468if test ${lt_cv_prog_compiler_c_o+y} 9469then : 9470 printf %s "(cached) " >&6 9471else $as_nop 9472 lt_cv_prog_compiler_c_o=no 9473 $RM -r conftest 2>/dev/null 9474 mkdir conftest 9475 cd conftest 9476 mkdir out 9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9478 9479 lt_compiler_flag="-o out/conftest2.$ac_objext" 9480 # Insert the option either (1) after the last *FLAGS variable, or 9481 # (2) before a word containing "conftest.", or (3) at the end. 9482 # Note that $ac_compile itself does not contain backslashes and begins 9483 # with a dollar sign (not a hyphen), so the echo should work correctly. 9484 lt_compile=`echo "$ac_compile" | $SED \ 9485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9487 -e 's:$: $lt_compiler_flag:'` 9488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9489 (eval "$lt_compile" 2>out/conftest.err) 9490 ac_status=$? 9491 cat out/conftest.err >&5 9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9493 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9494 then 9495 # The compiler can only warn and ignore the option if not recognized 9496 # So say no if there are warnings 9497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9500 lt_cv_prog_compiler_c_o=yes 9501 fi 9502 fi 9503 chmod u+w . 2>&5 9504 $RM conftest* 9505 # SGI C++ compiler will create directory out/ii_files/ for 9506 # template instantiation 9507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9508 $RM out/* && rmdir out 9509 cd .. 9510 $RM -r conftest 9511 $RM conftest* 9512 9513fi 9514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9515printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9516 9517 9518 9519 9520 9521 9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9523printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9524if test ${lt_cv_prog_compiler_c_o+y} 9525then : 9526 printf %s "(cached) " >&6 9527else $as_nop 9528 lt_cv_prog_compiler_c_o=no 9529 $RM -r conftest 2>/dev/null 9530 mkdir conftest 9531 cd conftest 9532 mkdir out 9533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9534 9535 lt_compiler_flag="-o out/conftest2.$ac_objext" 9536 # Insert the option either (1) after the last *FLAGS variable, or 9537 # (2) before a word containing "conftest.", or (3) at the end. 9538 # Note that $ac_compile itself does not contain backslashes and begins 9539 # with a dollar sign (not a hyphen), so the echo should work correctly. 9540 lt_compile=`echo "$ac_compile" | $SED \ 9541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9543 -e 's:$: $lt_compiler_flag:'` 9544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9545 (eval "$lt_compile" 2>out/conftest.err) 9546 ac_status=$? 9547 cat out/conftest.err >&5 9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9549 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9550 then 9551 # The compiler can only warn and ignore the option if not recognized 9552 # So say no if there are warnings 9553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9556 lt_cv_prog_compiler_c_o=yes 9557 fi 9558 fi 9559 chmod u+w . 2>&5 9560 $RM conftest* 9561 # SGI C++ compiler will create directory out/ii_files/ for 9562 # template instantiation 9563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9564 $RM out/* && rmdir out 9565 cd .. 9566 $RM -r conftest 9567 $RM conftest* 9568 9569fi 9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9571printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9572 9573 9574 9575 9576hard_links=nottested 9577if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9578 # do not overwrite the value of need_locks provided by the user 9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9580printf %s "checking if we can lock with hard links... " >&6; } 9581 hard_links=yes 9582 $RM conftest* 9583 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9584 touch conftest.a 9585 ln conftest.a conftest.b 2>&5 || hard_links=no 9586 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9588printf "%s\n" "$hard_links" >&6; } 9589 if test no = "$hard_links"; then 9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9591printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9592 need_locks=warn 9593 fi 9594else 9595 need_locks=no 9596fi 9597 9598 9599 9600 9601 9602 9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9604printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9605 9606 runpath_var= 9607 allow_undefined_flag= 9608 always_export_symbols=no 9609 archive_cmds= 9610 archive_expsym_cmds= 9611 compiler_needs_object=no 9612 enable_shared_with_static_runtimes=no 9613 export_dynamic_flag_spec= 9614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9615 hardcode_automatic=no 9616 hardcode_direct=no 9617 hardcode_direct_absolute=no 9618 hardcode_libdir_flag_spec= 9619 hardcode_libdir_separator= 9620 hardcode_minus_L=no 9621 hardcode_shlibpath_var=unsupported 9622 inherit_rpath=no 9623 link_all_deplibs=unknown 9624 module_cmds= 9625 module_expsym_cmds= 9626 old_archive_from_new_cmds= 9627 old_archive_from_expsyms_cmds= 9628 thread_safe_flag_spec= 9629 whole_archive_flag_spec= 9630 # include_expsyms should be a list of space-separated symbols to be *always* 9631 # included in the symbol list 9632 include_expsyms= 9633 # exclude_expsyms can be an extended regexp of symbols to exclude 9634 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9635 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9636 # as well as any symbol that contains 'd'. 9637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9639 # platforms (ab)use it in PIC code, but their linkers get confused if 9640 # the symbol is explicitly referenced. Since portable code cannot 9641 # rely on this symbol name, it's probably fine to never include it in 9642 # preloaded symbol tables. 9643 # Exclude shared library initialization/finalization symbols. 9644 extract_expsyms_cmds= 9645 9646 case $host_os in 9647 cygwin* | mingw* | pw32* | cegcc*) 9648 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9649 # When not using gcc, we currently assume that we are using 9650 # Microsoft Visual C++ or Intel C++ Compiler. 9651 if test yes != "$GCC"; then 9652 with_gnu_ld=no 9653 fi 9654 ;; 9655 interix*) 9656 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9657 with_gnu_ld=yes 9658 ;; 9659 openbsd* | bitrig*) 9660 with_gnu_ld=no 9661 ;; 9662 esac 9663 9664 ld_shlibs=yes 9665 9666 # On some targets, GNU ld is compatible enough with the native linker 9667 # that we're better off using the native interface for both. 9668 lt_use_gnu_ld_interface=no 9669 if test yes = "$with_gnu_ld"; then 9670 case $host_os in 9671 aix*) 9672 # The AIX port of GNU ld has always aspired to compatibility 9673 # with the native linker. However, as the warning in the GNU ld 9674 # block says, versions before 2.19.5* couldn't really create working 9675 # shared libraries, regardless of the interface used. 9676 case `$LD -v 2>&1` in 9677 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9678 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9679 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9680 *) 9681 lt_use_gnu_ld_interface=yes 9682 ;; 9683 esac 9684 ;; 9685 *) 9686 lt_use_gnu_ld_interface=yes 9687 ;; 9688 esac 9689 fi 9690 9691 if test yes = "$lt_use_gnu_ld_interface"; then 9692 # If archive_cmds runs LD, not CC, wlarc should be empty 9693 wlarc='$wl' 9694 9695 # Set some defaults for GNU ld with shared library support. These 9696 # are reset later if shared libraries are not supported. Putting them 9697 # here allows them to be overridden if necessary. 9698 runpath_var=LD_RUN_PATH 9699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9700 export_dynamic_flag_spec='$wl--export-dynamic' 9701 # ancient GNU ld didn't support --whole-archive et. al. 9702 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9703 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9704 else 9705 whole_archive_flag_spec= 9706 fi 9707 supports_anon_versioning=no 9708 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9709 *GNU\ gold*) supports_anon_versioning=yes ;; 9710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9713 *\ 2.11.*) ;; # other 2.11 versions 9714 *) supports_anon_versioning=yes ;; 9715 esac 9716 9717 # See if GNU ld supports shared libraries. 9718 case $host_os in 9719 aix[3-9]*) 9720 # On AIX/PPC, the GNU linker is very broken 9721 if test ia64 != "$host_cpu"; then 9722 ld_shlibs=no 9723 cat <<_LT_EOF 1>&2 9724 9725*** Warning: the GNU linker, at least up to release 2.19, is reported 9726*** to be unable to reliably create shared libraries on AIX. 9727*** Therefore, libtool is disabling shared libraries support. If you 9728*** really care for shared libraries, you may want to install binutils 9729*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9730*** You will then need to restart the configuration process. 9731 9732_LT_EOF 9733 fi 9734 ;; 9735 9736 amigaos*) 9737 case $host_cpu in 9738 powerpc) 9739 # see comment about AmigaOS4 .so support 9740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9741 archive_expsym_cmds='' 9742 ;; 9743 m68k) 9744 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)' 9745 hardcode_libdir_flag_spec='-L$libdir' 9746 hardcode_minus_L=yes 9747 ;; 9748 esac 9749 ;; 9750 9751 beos*) 9752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9753 allow_undefined_flag=unsupported 9754 # Joseph Beckenbach <[email protected]> says some releases of gcc 9755 # support --undefined. This deserves some investigation. FIXME 9756 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9757 else 9758 ld_shlibs=no 9759 fi 9760 ;; 9761 9762 cygwin* | mingw* | pw32* | cegcc*) 9763 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9764 # as there is no search path for DLLs. 9765 hardcode_libdir_flag_spec='-L$libdir' 9766 export_dynamic_flag_spec='$wl--export-all-symbols' 9767 allow_undefined_flag=unsupported 9768 always_export_symbols=no 9769 enable_shared_with_static_runtimes=yes 9770 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' 9771 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9772 9773 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9775 # If the export-symbols file already is a .def file, use it as 9776 # is; otherwise, prepend EXPORTS... 9777 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9778 cp $export_symbols $output_objdir/$soname.def; 9779 else 9780 echo EXPORTS > $output_objdir/$soname.def; 9781 cat $export_symbols >> $output_objdir/$soname.def; 9782 fi~ 9783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9784 else 9785 ld_shlibs=no 9786 fi 9787 ;; 9788 9789 haiku*) 9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9791 link_all_deplibs=yes 9792 ;; 9793 9794 os2*) 9795 hardcode_libdir_flag_spec='-L$libdir' 9796 hardcode_minus_L=yes 9797 allow_undefined_flag=unsupported 9798 shrext_cmds=.dll 9799 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9802 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9803 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9805 emximp -o $lib $output_objdir/$libname.def' 9806 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9809 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9810 prefix_cmds="$SED"~ 9811 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9812 prefix_cmds="$prefix_cmds -e 1d"; 9813 fi~ 9814 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9815 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9817 emximp -o $lib $output_objdir/$libname.def' 9818 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9819 enable_shared_with_static_runtimes=yes 9820 file_list_spec='@' 9821 ;; 9822 9823 interix[3-9]*) 9824 hardcode_direct=no 9825 hardcode_shlibpath_var=no 9826 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9827 export_dynamic_flag_spec='$wl-E' 9828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9829 # Instead, shared libraries are loaded at an image base (0x10000000 by 9830 # default) and relocated if they conflict, which is a slow very memory 9831 # consuming and fragmenting process. To avoid this, we pick a random, 9832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9833 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9835 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' 9836 ;; 9837 9838 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9839 tmp_diet=no 9840 if test linux-dietlibc = "$host_os"; then 9841 case $cc_basename in 9842 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9843 esac 9844 fi 9845 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9846 && test no = "$tmp_diet" 9847 then 9848 tmp_addflag=' $pic_flag' 9849 tmp_sharedflag='-shared' 9850 case $cc_basename,$host_cpu in 9851 pgcc*) # Portland Group C compiler 9852 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' 9853 tmp_addflag=' $pic_flag' 9854 ;; 9855 pgf77* | pgf90* | pgf95* | pgfortran*) 9856 # Portland Group f77 and f90 compilers 9857 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' 9858 tmp_addflag=' $pic_flag -Mnomain' ;; 9859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9860 tmp_addflag=' -i_dynamic' ;; 9861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9862 tmp_addflag=' -i_dynamic -nofor_main' ;; 9863 ifc* | ifort*) # Intel Fortran compiler 9864 tmp_addflag=' -nofor_main' ;; 9865 lf95*) # Lahey Fortran 8.1 9866 whole_archive_flag_spec= 9867 tmp_sharedflag='--shared' ;; 9868 nagfor*) # NAGFOR 5.3 9869 tmp_sharedflag='-Wl,-shared' ;; 9870 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9871 tmp_sharedflag='-qmkshrobj' 9872 tmp_addflag= ;; 9873 nvcc*) # Cuda Compiler Driver 2.2 9874 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' 9875 compiler_needs_object=yes 9876 ;; 9877 esac 9878 case `$CC -V 2>&1 | $SED 5q` in 9879 *Sun\ C*) # Sun C 5.9 9880 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' 9881 compiler_needs_object=yes 9882 tmp_sharedflag='-G' ;; 9883 *Sun\ F*) # Sun Fortran 8.3 9884 tmp_sharedflag='-G' ;; 9885 esac 9886 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9887 9888 if test yes = "$supports_anon_versioning"; then 9889 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9890 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9891 echo "local: *; };" >> $output_objdir/$libname.ver~ 9892 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9893 fi 9894 9895 case $cc_basename in 9896 tcc*) 9897 export_dynamic_flag_spec='-rdynamic' 9898 ;; 9899 xlf* | bgf* | bgxlf* | mpixlf*) 9900 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9901 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9902 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9903 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9904 if test yes = "$supports_anon_versioning"; then 9905 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9906 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9907 echo "local: *; };" >> $output_objdir/$libname.ver~ 9908 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9909 fi 9910 ;; 9911 esac 9912 else 9913 ld_shlibs=no 9914 fi 9915 ;; 9916 9917 netbsd*) 9918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9920 wlarc= 9921 else 9922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9923 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9924 fi 9925 ;; 9926 9927 solaris*) 9928 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9929 ld_shlibs=no 9930 cat <<_LT_EOF 1>&2 9931 9932*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9933*** create shared libraries on Solaris systems. Therefore, libtool 9934*** is disabling shared libraries support. We urge you to upgrade GNU 9935*** binutils to release 2.9.1 or newer. Another option is to modify 9936*** your PATH or compiler configuration so that the native linker is 9937*** used, and then restart. 9938 9939_LT_EOF 9940 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9942 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9943 else 9944 ld_shlibs=no 9945 fi 9946 ;; 9947 9948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9949 case `$LD -v 2>&1` in 9950 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9951 ld_shlibs=no 9952 cat <<_LT_EOF 1>&2 9953 9954*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9955*** reliably create shared libraries on SCO systems. Therefore, libtool 9956*** is disabling shared libraries support. We urge you to upgrade GNU 9957*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9958*** your PATH or compiler configuration so that the native linker is 9959*** used, and then restart. 9960 9961_LT_EOF 9962 ;; 9963 *) 9964 # For security reasons, it is highly recommended that you always 9965 # use absolute paths for naming shared libraries, and exclude the 9966 # DT_RUNPATH tag from executables and libraries. But doing so 9967 # requires that you compile everything twice, which is a pain. 9968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9972 else 9973 ld_shlibs=no 9974 fi 9975 ;; 9976 esac 9977 ;; 9978 9979 sunos4*) 9980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9981 wlarc= 9982 hardcode_direct=yes 9983 hardcode_shlibpath_var=no 9984 ;; 9985 9986 *) 9987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9989 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9990 else 9991 ld_shlibs=no 9992 fi 9993 ;; 9994 esac 9995 9996 if test no = "$ld_shlibs"; then 9997 runpath_var= 9998 hardcode_libdir_flag_spec= 9999 export_dynamic_flag_spec= 10000 whole_archive_flag_spec= 10001 fi 10002 else 10003 # PORTME fill in a description of your system's linker (not GNU ld) 10004 case $host_os in 10005 aix3*) 10006 allow_undefined_flag=unsupported 10007 always_export_symbols=yes 10008 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' 10009 # Note: this linker hardcodes the directories in LIBPATH if there 10010 # are no directories specified by -L. 10011 hardcode_minus_L=yes 10012 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10013 # Neither direct hardcoding nor static linking is supported with a 10014 # broken collect2. 10015 hardcode_direct=unsupported 10016 fi 10017 ;; 10018 10019 aix[4-9]*) 10020 if test ia64 = "$host_cpu"; then 10021 # On IA64, the linker does run time linking by default, so we don't 10022 # have to do anything special. 10023 aix_use_runtimelinking=no 10024 exp_sym_flag='-Bexport' 10025 no_entry_flag= 10026 else 10027 # If we're using GNU nm, then we don't want the "-C" option. 10028 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10029 # Without the "-l" option, or with the "-B" option, AIX nm treats 10030 # weak defined symbols like other global defined symbols, whereas 10031 # GNU nm marks them as "W". 10032 # While the 'weak' keyword is ignored in the Export File, we need 10033 # it in the Import File for the 'aix-soname' feature, so we have 10034 # to replace the "-B" option with "-P" for AIX nm. 10035 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10036 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' 10037 else 10038 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 == "L") || (\$ 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' 10039 fi 10040 aix_use_runtimelinking=no 10041 10042 # Test if we are trying to use run time linking or normal 10043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10044 # have runtime linking enabled, and use it for executables. 10045 # For shared libraries, we enable/disable runtime linking 10046 # depending on the kind of the shared library created - 10047 # when "with_aix_soname,aix_use_runtimelinking" is: 10048 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10049 # "aix,yes" lib.so shared, rtl:yes, for executables 10050 # lib.a static archive 10051 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10052 # lib.a(lib.so.V) shared, rtl:no, for executables 10053 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10054 # lib.a(lib.so.V) shared, rtl:no 10055 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10056 # lib.a static archive 10057 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10058 for ld_flag in $LDFLAGS; do 10059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10060 aix_use_runtimelinking=yes 10061 break 10062 fi 10063 done 10064 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10065 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10066 # so we don't have lib.a shared libs to link our executables. 10067 # We have to force runtime linking in this case. 10068 aix_use_runtimelinking=yes 10069 LDFLAGS="$LDFLAGS -Wl,-brtl" 10070 fi 10071 ;; 10072 esac 10073 10074 exp_sym_flag='-bexport' 10075 no_entry_flag='-bnoentry' 10076 fi 10077 10078 # When large executables or shared objects are built, AIX ld can 10079 # have problems creating the table of contents. If linking a library 10080 # or program results in "error TOC overflow" add -mminimal-toc to 10081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10083 10084 archive_cmds='' 10085 hardcode_direct=yes 10086 hardcode_direct_absolute=yes 10087 hardcode_libdir_separator=':' 10088 link_all_deplibs=yes 10089 file_list_spec='$wl-f,' 10090 case $with_aix_soname,$aix_use_runtimelinking in 10091 aix,*) ;; # traditional, no import file 10092 svr4,* | *,yes) # use import file 10093 # The Import File defines what to hardcode. 10094 hardcode_direct=no 10095 hardcode_direct_absolute=no 10096 ;; 10097 esac 10098 10099 if test yes = "$GCC"; then 10100 case $host_os in aix4.[012]|aix4.[012].*) 10101 # We only want to do this on AIX 4.2 and lower, the check 10102 # below for broken collect2 doesn't work under 4.3+ 10103 collect2name=`$CC -print-prog-name=collect2` 10104 if test -f "$collect2name" && 10105 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10106 then 10107 # We have reworked collect2 10108 : 10109 else 10110 # We have old collect2 10111 hardcode_direct=unsupported 10112 # It fails to find uninstalled libraries when the uninstalled 10113 # path is not listed in the libpath. Setting hardcode_minus_L 10114 # to unsupported forces relinking 10115 hardcode_minus_L=yes 10116 hardcode_libdir_flag_spec='-L$libdir' 10117 hardcode_libdir_separator= 10118 fi 10119 ;; 10120 esac 10121 shared_flag='-shared' 10122 if test yes = "$aix_use_runtimelinking"; then 10123 shared_flag="$shared_flag "'$wl-G' 10124 fi 10125 # Need to ensure runtime linking is disabled for the traditional 10126 # shared library, or the linker may eventually find shared libraries 10127 # /with/ Import File - we do not want to mix them. 10128 shared_flag_aix='-shared' 10129 shared_flag_svr4='-shared $wl-G' 10130 else 10131 # not using gcc 10132 if test ia64 = "$host_cpu"; then 10133 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10134 # chokes on -Wl,-G. The following line is correct: 10135 shared_flag='-G' 10136 else 10137 if test yes = "$aix_use_runtimelinking"; then 10138 shared_flag='$wl-G' 10139 else 10140 shared_flag='$wl-bM:SRE' 10141 fi 10142 shared_flag_aix='$wl-bM:SRE' 10143 shared_flag_svr4='$wl-G' 10144 fi 10145 fi 10146 10147 export_dynamic_flag_spec='$wl-bexpall' 10148 # It seems that -bexpall does not export symbols beginning with 10149 # underscore (_), so it is better to generate a list of symbols to export. 10150 always_export_symbols=yes 10151 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10152 # Warning - without using the other runtime loading flags (-brtl), 10153 # -berok will link without error, but may produce a broken library. 10154 allow_undefined_flag='-berok' 10155 # Determine the default libpath from the value encoded in an 10156 # empty executable. 10157 if test set = "${lt_cv_aix_libpath+set}"; then 10158 aix_libpath=$lt_cv_aix_libpath 10159else 10160 if test ${lt_cv_aix_libpath_+y} 10161then : 10162 printf %s "(cached) " >&6 10163else $as_nop 10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10165/* end confdefs.h. */ 10166 10167int 10168main (void) 10169{ 10170 10171 ; 10172 return 0; 10173} 10174_ACEOF 10175if ac_fn_c_try_link "$LINENO" 10176then : 10177 10178 lt_aix_libpath_sed=' 10179 /Import File Strings/,/^$/ { 10180 /^0/ { 10181 s/^0 *\([^ ]*\) *$/\1/ 10182 p 10183 } 10184 }' 10185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10186 # Check for a 64-bit object if we didn't find anything. 10187 if test -z "$lt_cv_aix_libpath_"; then 10188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10189 fi 10190fi 10191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10192 conftest$ac_exeext conftest.$ac_ext 10193 if test -z "$lt_cv_aix_libpath_"; then 10194 lt_cv_aix_libpath_=/usr/lib:/lib 10195 fi 10196 10197fi 10198 10199 aix_libpath=$lt_cv_aix_libpath_ 10200fi 10201 10202 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10203 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 10204 else 10205 if test ia64 = "$host_cpu"; then 10206 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10207 allow_undefined_flag="-z nodefs" 10208 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" 10209 else 10210 # Determine the default libpath from the value encoded in an 10211 # empty executable. 10212 if test set = "${lt_cv_aix_libpath+set}"; then 10213 aix_libpath=$lt_cv_aix_libpath 10214else 10215 if test ${lt_cv_aix_libpath_+y} 10216then : 10217 printf %s "(cached) " >&6 10218else $as_nop 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221 10222int 10223main (void) 10224{ 10225 10226 ; 10227 return 0; 10228} 10229_ACEOF 10230if ac_fn_c_try_link "$LINENO" 10231then : 10232 10233 lt_aix_libpath_sed=' 10234 /Import File Strings/,/^$/ { 10235 /^0/ { 10236 s/^0 *\([^ ]*\) *$/\1/ 10237 p 10238 } 10239 }' 10240 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10241 # Check for a 64-bit object if we didn't find anything. 10242 if test -z "$lt_cv_aix_libpath_"; then 10243 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10244 fi 10245fi 10246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10247 conftest$ac_exeext conftest.$ac_ext 10248 if test -z "$lt_cv_aix_libpath_"; then 10249 lt_cv_aix_libpath_=/usr/lib:/lib 10250 fi 10251 10252fi 10253 10254 aix_libpath=$lt_cv_aix_libpath_ 10255fi 10256 10257 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10258 # Warning - without using the other run time loading flags, 10259 # -berok will link without error, but may produce a broken library. 10260 no_undefined_flag=' $wl-bernotok' 10261 allow_undefined_flag=' $wl-berok' 10262 if test yes = "$with_gnu_ld"; then 10263 # We only use this code for GNU lds that support --whole-archive. 10264 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10265 else 10266 # Exported symbols can be pulled into shared objects from archives 10267 whole_archive_flag_spec='$convenience' 10268 fi 10269 archive_cmds_need_lc=yes 10270 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10271 # -brtl affects multiple linker settings, -berok does not and is overridden later 10272 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10273 if test svr4 != "$with_aix_soname"; then 10274 # This is similar to how AIX traditionally builds its shared libraries. 10275 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' 10276 fi 10277 if test aix != "$with_aix_soname"; then 10278 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' 10279 else 10280 # used by -dlpreopen to get the symbols 10281 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10282 fi 10283 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10284 fi 10285 fi 10286 ;; 10287 10288 amigaos*) 10289 case $host_cpu in 10290 powerpc) 10291 # see comment about AmigaOS4 .so support 10292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10293 archive_expsym_cmds='' 10294 ;; 10295 m68k) 10296 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)' 10297 hardcode_libdir_flag_spec='-L$libdir' 10298 hardcode_minus_L=yes 10299 ;; 10300 esac 10301 ;; 10302 10303 bsdi[45]*) 10304 export_dynamic_flag_spec=-rdynamic 10305 ;; 10306 10307 cygwin* | mingw* | pw32* | cegcc*) 10308 # When not using gcc, we currently assume that we are using 10309 # Microsoft Visual C++ or Intel C++ Compiler. 10310 # hardcode_libdir_flag_spec is actually meaningless, as there is 10311 # no search path for DLLs. 10312 case $cc_basename in 10313 cl* | icl*) 10314 # Native MSVC or ICC 10315 hardcode_libdir_flag_spec=' ' 10316 allow_undefined_flag=unsupported 10317 always_export_symbols=yes 10318 file_list_spec='@' 10319 # Tell ltmain to make .lib files, not .a files. 10320 libext=lib 10321 # Tell ltmain to make .dll files, not .so files. 10322 shrext_cmds=.dll 10323 # FIXME: Setting linknames here is a bad hack. 10324 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10325 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10326 cp "$export_symbols" "$output_objdir/$soname.def"; 10327 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10328 else 10329 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10330 fi~ 10331 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10332 linknames=' 10333 # The linker will not automatically build a static lib if we build a DLL. 10334 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10335 enable_shared_with_static_runtimes=yes 10336 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10338 # Don't use ranlib 10339 old_postinstall_cmds='chmod 644 $oldlib' 10340 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10341 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10342 case $lt_outputfile in 10343 *.exe|*.EXE) ;; 10344 *) 10345 lt_outputfile=$lt_outputfile.exe 10346 lt_tool_outputfile=$lt_tool_outputfile.exe 10347 ;; 10348 esac~ 10349 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10350 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10351 $RM "$lt_outputfile.manifest"; 10352 fi' 10353 ;; 10354 *) 10355 # Assume MSVC and ICC wrapper 10356 hardcode_libdir_flag_spec=' ' 10357 allow_undefined_flag=unsupported 10358 # Tell ltmain to make .lib files, not .a files. 10359 libext=lib 10360 # Tell ltmain to make .dll files, not .so files. 10361 shrext_cmds=.dll 10362 # FIXME: Setting linknames here is a bad hack. 10363 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10364 # The linker will automatically build a .lib file if we build a DLL. 10365 old_archive_from_new_cmds='true' 10366 # FIXME: Should let the user specify the lib program. 10367 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10368 enable_shared_with_static_runtimes=yes 10369 ;; 10370 esac 10371 ;; 10372 10373 darwin* | rhapsody*) 10374 10375 10376 archive_cmds_need_lc=no 10377 hardcode_direct=no 10378 hardcode_automatic=yes 10379 hardcode_shlibpath_var=unsupported 10380 if test yes = "$lt_cv_ld_force_load"; then 10381 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\"`' 10382 10383 else 10384 whole_archive_flag_spec='' 10385 fi 10386 link_all_deplibs=yes 10387 allow_undefined_flag=$_lt_dar_allow_undefined 10388 case $cc_basename in 10389 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10390 *) _lt_dar_can_shared=$GCC ;; 10391 esac 10392 if test yes = "$_lt_dar_can_shared"; then 10393 output_verbose_link_cmd=func_echo_all 10394 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10395 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10396 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" 10397 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" 10398 10399 else 10400 ld_shlibs=no 10401 fi 10402 10403 ;; 10404 10405 dgux*) 10406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10407 hardcode_libdir_flag_spec='-L$libdir' 10408 hardcode_shlibpath_var=no 10409 ;; 10410 10411 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10412 # support. Future versions do this automatically, but an explicit c++rt0.o 10413 # does not break anything, and helps significantly (at the cost of a little 10414 # extra space). 10415 freebsd2.2*) 10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10417 hardcode_libdir_flag_spec='-R$libdir' 10418 hardcode_direct=yes 10419 hardcode_shlibpath_var=no 10420 ;; 10421 10422 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10423 freebsd2.*) 10424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10425 hardcode_direct=yes 10426 hardcode_minus_L=yes 10427 hardcode_shlibpath_var=no 10428 ;; 10429 10430 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10431 freebsd* | dragonfly* | midnightbsd*) 10432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10433 hardcode_libdir_flag_spec='-R$libdir' 10434 hardcode_direct=yes 10435 hardcode_shlibpath_var=no 10436 ;; 10437 10438 hpux9*) 10439 if test yes = "$GCC"; then 10440 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' 10441 else 10442 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' 10443 fi 10444 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10445 hardcode_libdir_separator=: 10446 hardcode_direct=yes 10447 10448 # hardcode_minus_L: Not really in the search PATH, 10449 # but as the default location of the library. 10450 hardcode_minus_L=yes 10451 export_dynamic_flag_spec='$wl-E' 10452 ;; 10453 10454 hpux10*) 10455 if test yes,no = "$GCC,$with_gnu_ld"; then 10456 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10457 else 10458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10459 fi 10460 if test no = "$with_gnu_ld"; then 10461 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10462 hardcode_libdir_separator=: 10463 hardcode_direct=yes 10464 hardcode_direct_absolute=yes 10465 export_dynamic_flag_spec='$wl-E' 10466 # hardcode_minus_L: Not really in the search PATH, 10467 # but as the default location of the library. 10468 hardcode_minus_L=yes 10469 fi 10470 ;; 10471 10472 hpux11*) 10473 if test yes,no = "$GCC,$with_gnu_ld"; then 10474 case $host_cpu in 10475 hppa*64*) 10476 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10477 ;; 10478 ia64*) 10479 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10480 ;; 10481 *) 10482 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10483 ;; 10484 esac 10485 else 10486 case $host_cpu in 10487 hppa*64*) 10488 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10489 ;; 10490 ia64*) 10491 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10492 ;; 10493 *) 10494 10495 # Older versions of the 11.00 compiler do not understand -b yet 10496 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10498printf %s "checking if $CC understands -b... " >&6; } 10499if test ${lt_cv_prog_compiler__b+y} 10500then : 10501 printf %s "(cached) " >&6 10502else $as_nop 10503 lt_cv_prog_compiler__b=no 10504 save_LDFLAGS=$LDFLAGS 10505 LDFLAGS="$LDFLAGS -b" 10506 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10508 # The linker can only warn and ignore the option if not recognized 10509 # So say no if there are warnings 10510 if test -s conftest.err; then 10511 # Append any errors to the config.log. 10512 cat conftest.err 1>&5 10513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10515 if diff conftest.exp conftest.er2 >/dev/null; then 10516 lt_cv_prog_compiler__b=yes 10517 fi 10518 else 10519 lt_cv_prog_compiler__b=yes 10520 fi 10521 fi 10522 $RM -r conftest* 10523 LDFLAGS=$save_LDFLAGS 10524 10525fi 10526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10527printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10528 10529if test yes = "$lt_cv_prog_compiler__b"; then 10530 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10531else 10532 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10533fi 10534 10535 ;; 10536 esac 10537 fi 10538 if test no = "$with_gnu_ld"; then 10539 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10540 hardcode_libdir_separator=: 10541 10542 case $host_cpu in 10543 hppa*64*|ia64*) 10544 hardcode_direct=no 10545 hardcode_shlibpath_var=no 10546 ;; 10547 *) 10548 hardcode_direct=yes 10549 hardcode_direct_absolute=yes 10550 export_dynamic_flag_spec='$wl-E' 10551 10552 # hardcode_minus_L: Not really in the search PATH, 10553 # but as the default location of the library. 10554 hardcode_minus_L=yes 10555 ;; 10556 esac 10557 fi 10558 ;; 10559 10560 irix5* | irix6* | nonstopux*) 10561 if test yes = "$GCC"; then 10562 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' 10563 # Try to use the -exported_symbol ld option, if it does not 10564 # work, assume that -exports_file does not work either and 10565 # implicitly export all symbols. 10566 # This should be the same for all languages, so no per-tag cache variable. 10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10568printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10569if test ${lt_cv_irix_exported_symbol+y} 10570then : 10571 printf %s "(cached) " >&6 10572else $as_nop 10573 save_LDFLAGS=$LDFLAGS 10574 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10576/* end confdefs.h. */ 10577int foo (void) { return 0; } 10578_ACEOF 10579if ac_fn_c_try_link "$LINENO" 10580then : 10581 lt_cv_irix_exported_symbol=yes 10582else $as_nop 10583 lt_cv_irix_exported_symbol=no 10584fi 10585rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10586 conftest$ac_exeext conftest.$ac_ext 10587 LDFLAGS=$save_LDFLAGS 10588fi 10589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10590printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10591 if test yes = "$lt_cv_irix_exported_symbol"; then 10592 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' 10593 fi 10594 else 10595 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' 10596 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' 10597 fi 10598 archive_cmds_need_lc='no' 10599 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10600 hardcode_libdir_separator=: 10601 inherit_rpath=yes 10602 link_all_deplibs=yes 10603 ;; 10604 10605 linux*) 10606 case $cc_basename in 10607 tcc*) 10608 # Fabrice Bellard et al's Tiny C Compiler 10609 ld_shlibs=yes 10610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10611 ;; 10612 esac 10613 ;; 10614 10615 netbsd*) 10616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10618 else 10619 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10620 fi 10621 hardcode_libdir_flag_spec='-R$libdir' 10622 hardcode_direct=yes 10623 hardcode_shlibpath_var=no 10624 ;; 10625 10626 newsos6) 10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10628 hardcode_direct=yes 10629 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10630 hardcode_libdir_separator=: 10631 hardcode_shlibpath_var=no 10632 ;; 10633 10634 *nto* | *qnx*) 10635 ;; 10636 10637 openbsd* | bitrig*) 10638 if test -f /usr/libexec/ld.so; then 10639 hardcode_direct=yes 10640 hardcode_shlibpath_var=no 10641 hardcode_direct_absolute=yes 10642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10643 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10644 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10645 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10646 export_dynamic_flag_spec='$wl-E' 10647 else 10648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10649 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10650 fi 10651 else 10652 ld_shlibs=no 10653 fi 10654 ;; 10655 10656 os2*) 10657 hardcode_libdir_flag_spec='-L$libdir' 10658 hardcode_minus_L=yes 10659 allow_undefined_flag=unsupported 10660 shrext_cmds=.dll 10661 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10662 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10663 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10664 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10665 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10666 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10667 emximp -o $lib $output_objdir/$libname.def' 10668 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10669 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10670 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10671 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10672 prefix_cmds="$SED"~ 10673 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10674 prefix_cmds="$prefix_cmds -e 1d"; 10675 fi~ 10676 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10677 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10678 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10679 emximp -o $lib $output_objdir/$libname.def' 10680 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10681 enable_shared_with_static_runtimes=yes 10682 file_list_spec='@' 10683 ;; 10684 10685 osf3*) 10686 if test yes = "$GCC"; then 10687 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10688 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' 10689 else 10690 allow_undefined_flag=' -expect_unresolved \*' 10691 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' 10692 fi 10693 archive_cmds_need_lc='no' 10694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10695 hardcode_libdir_separator=: 10696 ;; 10697 10698 osf4* | osf5*) # as osf3* with the addition of -msym flag 10699 if test yes = "$GCC"; then 10700 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10701 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' 10702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10703 else 10704 allow_undefined_flag=' -expect_unresolved \*' 10705 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' 10706 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~ 10707 $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' 10708 10709 # Both c and cxx compiler support -rpath directly 10710 hardcode_libdir_flag_spec='-rpath $libdir' 10711 fi 10712 archive_cmds_need_lc='no' 10713 hardcode_libdir_separator=: 10714 ;; 10715 10716 solaris*) 10717 no_undefined_flag=' -z defs' 10718 if test yes = "$GCC"; then 10719 wlarc='$wl' 10720 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10722 $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' 10723 else 10724 case `$CC -V 2>&1` in 10725 *"Compilers 5.0"*) 10726 wlarc='' 10727 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10729 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10730 ;; 10731 *) 10732 wlarc='$wl' 10733 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10735 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10736 ;; 10737 esac 10738 fi 10739 hardcode_libdir_flag_spec='-R$libdir' 10740 hardcode_shlibpath_var=no 10741 case $host_os in 10742 solaris2.[0-5] | solaris2.[0-5].*) ;; 10743 *) 10744 # The compiler driver will combine and reorder linker options, 10745 # but understands '-z linker_flag'. GCC discards it without '$wl', 10746 # but is careful enough not to reorder. 10747 # Supported since Solaris 2.6 (maybe 2.5.1?) 10748 if test yes = "$GCC"; then 10749 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10750 else 10751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10752 fi 10753 ;; 10754 esac 10755 link_all_deplibs=yes 10756 ;; 10757 10758 sunos4*) 10759 if test sequent = "$host_vendor"; then 10760 # Use $CC to link under sequent, because it throws in some extra .o 10761 # files that make .init and .fini sections work. 10762 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10763 else 10764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10765 fi 10766 hardcode_libdir_flag_spec='-L$libdir' 10767 hardcode_direct=yes 10768 hardcode_minus_L=yes 10769 hardcode_shlibpath_var=no 10770 ;; 10771 10772 sysv4) 10773 case $host_vendor in 10774 sni) 10775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10776 hardcode_direct=yes # is this really true??? 10777 ;; 10778 siemens) 10779 ## LD is ld it makes a PLAMLIB 10780 ## CC just makes a GrossModule. 10781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10782 reload_cmds='$CC -r -o $output$reload_objs' 10783 hardcode_direct=no 10784 ;; 10785 motorola) 10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10788 ;; 10789 esac 10790 runpath_var='LD_RUN_PATH' 10791 hardcode_shlibpath_var=no 10792 ;; 10793 10794 sysv4.3*) 10795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10796 hardcode_shlibpath_var=no 10797 export_dynamic_flag_spec='-Bexport' 10798 ;; 10799 10800 sysv4*MP*) 10801 if test -d /usr/nec; then 10802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10803 hardcode_shlibpath_var=no 10804 runpath_var=LD_RUN_PATH 10805 hardcode_runpath_var=yes 10806 ld_shlibs=yes 10807 fi 10808 ;; 10809 10810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10811 no_undefined_flag='$wl-z,text' 10812 archive_cmds_need_lc=no 10813 hardcode_shlibpath_var=no 10814 runpath_var='LD_RUN_PATH' 10815 10816 if test yes = "$GCC"; then 10817 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10818 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10819 else 10820 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10821 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10822 fi 10823 ;; 10824 10825 sysv5* | sco3.2v5* | sco5v6*) 10826 # Note: We CANNOT use -z defs as we might desire, because we do not 10827 # link with -lc, and that would cause any symbols used from libc to 10828 # always be unresolved, which means just about no library would 10829 # ever link correctly. If we're not using GNU ld we use -z text 10830 # though, which does catch some bad symbols but isn't as heavy-handed 10831 # as -z defs. 10832 no_undefined_flag='$wl-z,text' 10833 allow_undefined_flag='$wl-z,nodefs' 10834 archive_cmds_need_lc=no 10835 hardcode_shlibpath_var=no 10836 hardcode_libdir_flag_spec='$wl-R,$libdir' 10837 hardcode_libdir_separator=':' 10838 link_all_deplibs=yes 10839 export_dynamic_flag_spec='$wl-Bexport' 10840 runpath_var='LD_RUN_PATH' 10841 10842 if test yes = "$GCC"; then 10843 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10844 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10845 else 10846 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10847 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10848 fi 10849 ;; 10850 10851 uts4*) 10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10853 hardcode_libdir_flag_spec='-L$libdir' 10854 hardcode_shlibpath_var=no 10855 ;; 10856 10857 *) 10858 ld_shlibs=no 10859 ;; 10860 esac 10861 10862 if test sni = "$host_vendor"; then 10863 case $host in 10864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10865 export_dynamic_flag_spec='$wl-Blargedynsym' 10866 ;; 10867 esac 10868 fi 10869 fi 10870 10871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10872printf "%s\n" "$ld_shlibs" >&6; } 10873test no = "$ld_shlibs" && can_build_shared=no 10874 10875with_gnu_ld=$with_gnu_ld 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891# 10892# Do we need to explicitly link libc? 10893# 10894case "x$archive_cmds_need_lc" in 10895x|xyes) 10896 # Assume -lc should be added 10897 archive_cmds_need_lc=yes 10898 10899 if test yes,yes = "$GCC,$enable_shared"; then 10900 case $archive_cmds in 10901 *'~'*) 10902 # FIXME: we may have to deal with multi-command sequences. 10903 ;; 10904 '$CC '*) 10905 # Test whether the compiler implicitly links with -lc since on some 10906 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10907 # to ld, don't add -lc before -lgcc. 10908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10909printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10910if test ${lt_cv_archive_cmds_need_lc+y} 10911then : 10912 printf %s "(cached) " >&6 10913else $as_nop 10914 $RM conftest* 10915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10916 10917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10918 (eval $ac_compile) 2>&5 10919 ac_status=$? 10920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10921 test $ac_status = 0; } 2>conftest.err; then 10922 soname=conftest 10923 lib=conftest 10924 libobjs=conftest.$ac_objext 10925 deplibs= 10926 wl=$lt_prog_compiler_wl 10927 pic_flag=$lt_prog_compiler_pic 10928 compiler_flags=-v 10929 linker_flags=-v 10930 verstring= 10931 output_objdir=. 10932 libname=conftest 10933 lt_save_allow_undefined_flag=$allow_undefined_flag 10934 allow_undefined_flag= 10935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10936 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10937 ac_status=$? 10938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10939 test $ac_status = 0; } 10940 then 10941 lt_cv_archive_cmds_need_lc=no 10942 else 10943 lt_cv_archive_cmds_need_lc=yes 10944 fi 10945 allow_undefined_flag=$lt_save_allow_undefined_flag 10946 else 10947 cat conftest.err 1>&5 10948 fi 10949 $RM conftest* 10950 10951fi 10952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10953printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10954 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10955 ;; 10956 esac 10957 fi 10958 ;; 10959esac 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11113printf %s "checking dynamic linker characteristics... " >&6; } 11114 11115if test yes = "$GCC"; then 11116 case $host_os in 11117 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11118 *) lt_awk_arg='/^libraries:/' ;; 11119 esac 11120 case $host_os in 11121 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11122 *) lt_sed_strip_eq='s|=/|/|g' ;; 11123 esac 11124 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11125 case $lt_search_path_spec in 11126 *\;*) 11127 # if the path contains ";" then we assume it to be the separator 11128 # otherwise default to the standard path separator (i.e. ":") - it is 11129 # assumed that no part of a normal pathname contains ";" but that should 11130 # okay in the real world where ";" in dirpaths is itself problematic. 11131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11132 ;; 11133 *) 11134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11135 ;; 11136 esac 11137 # Ok, now we have the path, separated by spaces, we can step through it 11138 # and add multilib dir if necessary... 11139 lt_tmp_lt_search_path_spec= 11140 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11141 # ...but if some path component already ends with the multilib dir we assume 11142 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11143 case "$lt_multi_os_dir; $lt_search_path_spec " in 11144 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11145 lt_multi_os_dir= 11146 ;; 11147 esac 11148 for lt_sys_path in $lt_search_path_spec; do 11149 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11151 elif test -n "$lt_multi_os_dir"; then 11152 test -d "$lt_sys_path" && \ 11153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11154 fi 11155 done 11156 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11157BEGIN {RS = " "; FS = "/|\n";} { 11158 lt_foo = ""; 11159 lt_count = 0; 11160 for (lt_i = NF; lt_i > 0; lt_i--) { 11161 if ($lt_i != "" && $lt_i != ".") { 11162 if ($lt_i == "..") { 11163 lt_count++; 11164 } else { 11165 if (lt_count == 0) { 11166 lt_foo = "/" $lt_i lt_foo; 11167 } else { 11168 lt_count--; 11169 } 11170 } 11171 } 11172 } 11173 if (lt_foo != "") { lt_freq[lt_foo]++; } 11174 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11175}'` 11176 # AWK program above erroneously prepends '/' to C:/dos/paths 11177 # for these hosts. 11178 case $host_os in 11179 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11180 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11181 esac 11182 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11183else 11184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11185fi 11186library_names_spec= 11187libname_spec='lib$name' 11188soname_spec= 11189shrext_cmds=.so 11190postinstall_cmds= 11191postuninstall_cmds= 11192finish_cmds= 11193finish_eval= 11194shlibpath_var= 11195shlibpath_overrides_runpath=unknown 11196version_type=none 11197dynamic_linker="$host_os ld.so" 11198sys_lib_dlsearch_path_spec="/lib /usr/lib" 11199need_lib_prefix=unknown 11200hardcode_into_libs=no 11201 11202# when you set need_version to no, make sure it does not cause -set_version 11203# flags to be left without arguments 11204need_version=unknown 11205 11206 11207 11208case $host_os in 11209aix3*) 11210 version_type=linux # correct to gnu/linux during the next big refactor 11211 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11212 shlibpath_var=LIBPATH 11213 11214 # AIX 3 has no versioning support, so we append a major version to the name. 11215 soname_spec='$libname$release$shared_ext$major' 11216 ;; 11217 11218aix[4-9]*) 11219 version_type=linux # correct to gnu/linux during the next big refactor 11220 need_lib_prefix=no 11221 need_version=no 11222 hardcode_into_libs=yes 11223 if test ia64 = "$host_cpu"; then 11224 # AIX 5 supports IA64 11225 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11226 shlibpath_var=LD_LIBRARY_PATH 11227 else 11228 # With GCC up to 2.95.x, collect2 would create an import file 11229 # for dependence libraries. The import file would start with 11230 # the line '#! .'. This would cause the generated library to 11231 # depend on '.', always an invalid library. This was fixed in 11232 # development snapshots of GCC prior to 3.0. 11233 case $host_os in 11234 aix4 | aix4.[01] | aix4.[01].*) 11235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11236 echo ' yes ' 11237 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11238 : 11239 else 11240 can_build_shared=no 11241 fi 11242 ;; 11243 esac 11244 # Using Import Files as archive members, it is possible to support 11245 # filename-based versioning of shared library archives on AIX. While 11246 # this would work for both with and without runtime linking, it will 11247 # prevent static linking of such archives. So we do filename-based 11248 # shared library versioning with .so extension only, which is used 11249 # when both runtime linking and shared linking is enabled. 11250 # Unfortunately, runtime linking may impact performance, so we do 11251 # not want this to be the default eventually. Also, we use the 11252 # versioned .so libs for executables only if there is the -brtl 11253 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11254 # To allow for filename-based versioning support, we need to create 11255 # libNAME.so.V as an archive file, containing: 11256 # *) an Import File, referring to the versioned filename of the 11257 # archive as well as the shared archive member, telling the 11258 # bitwidth (32 or 64) of that shared object, and providing the 11259 # list of exported symbols of that shared object, eventually 11260 # decorated with the 'weak' keyword 11261 # *) the shared object with the F_LOADONLY flag set, to really avoid 11262 # it being seen by the linker. 11263 # At run time we better use the real file rather than another symlink, 11264 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11265 11266 case $with_aix_soname,$aix_use_runtimelinking in 11267 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11268 # soname into executable. Probably we can add versioning support to 11269 # collect2, so additional links can be useful in future. 11270 aix,yes) # traditional libtool 11271 dynamic_linker='AIX unversionable lib.so' 11272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11273 # instead of lib<name>.a to let people know that these are not 11274 # typical AIX shared libraries. 11275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11276 ;; 11277 aix,no) # traditional AIX only 11278 dynamic_linker='AIX lib.a(lib.so.V)' 11279 # We preserve .a as extension for shared libraries through AIX4.2 11280 # and later when we are not doing run time linking. 11281 library_names_spec='$libname$release.a $libname.a' 11282 soname_spec='$libname$release$shared_ext$major' 11283 ;; 11284 svr4,*) # full svr4 only 11285 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11286 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11287 # We do not specify a path in Import Files, so LIBPATH fires. 11288 shlibpath_overrides_runpath=yes 11289 ;; 11290 *,yes) # both, prefer svr4 11291 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11292 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11293 # unpreferred sharedlib libNAME.a needs extra handling 11294 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"' 11295 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"' 11296 # We do not specify a path in Import Files, so LIBPATH fires. 11297 shlibpath_overrides_runpath=yes 11298 ;; 11299 *,no) # both, prefer aix 11300 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11301 library_names_spec='$libname$release.a $libname.a' 11302 soname_spec='$libname$release$shared_ext$major' 11303 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11304 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)' 11305 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"' 11306 ;; 11307 esac 11308 shlibpath_var=LIBPATH 11309 fi 11310 ;; 11311 11312amigaos*) 11313 case $host_cpu in 11314 powerpc) 11315 # Since July 2007 AmigaOS4 officially supports .so libraries. 11316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11318 ;; 11319 m68k) 11320 library_names_spec='$libname.ixlibrary $libname.a' 11321 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11322 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' 11323 ;; 11324 esac 11325 ;; 11326 11327beos*) 11328 library_names_spec='$libname$shared_ext' 11329 dynamic_linker="$host_os ld.so" 11330 shlibpath_var=LIBRARY_PATH 11331 ;; 11332 11333bsdi[45]*) 11334 version_type=linux # correct to gnu/linux during the next big refactor 11335 need_version=no 11336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11337 soname_spec='$libname$release$shared_ext$major' 11338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11342 # the default ld.so.conf also contains /usr/contrib/lib and 11343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11344 # libtool to hard-code these into programs 11345 ;; 11346 11347cygwin* | mingw* | pw32* | cegcc*) 11348 version_type=windows 11349 shrext_cmds=.dll 11350 need_version=no 11351 need_lib_prefix=no 11352 11353 case $GCC,$cc_basename in 11354 yes,*) 11355 # gcc 11356 library_names_spec='$libname.dll.a' 11357 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11358 postinstall_cmds='base_file=`basename \$file`~ 11359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11360 dldir=$destdir/`dirname \$dlpath`~ 11361 test -d \$dldir || mkdir -p \$dldir~ 11362 $install_prog $dir/$dlname \$dldir/$dlname~ 11363 chmod a+x \$dldir/$dlname~ 11364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11366 fi' 11367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11368 dlpath=$dir/\$dldll~ 11369 $RM \$dlpath' 11370 shlibpath_overrides_runpath=yes 11371 11372 case $host_os in 11373 cygwin*) 11374 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11375 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11376 11377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11378 ;; 11379 mingw* | cegcc*) 11380 # MinGW DLLs use traditional 'lib' prefix 11381 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11382 ;; 11383 pw32*) 11384 # pw32 DLLs use 'pw' prefix rather than 'lib' 11385 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11386 ;; 11387 esac 11388 dynamic_linker='Win32 ld.exe' 11389 ;; 11390 11391 *,cl* | *,icl*) 11392 # Native MSVC or ICC 11393 libname_spec='$name' 11394 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11395 library_names_spec='$libname.dll.lib' 11396 11397 case $build_os in 11398 mingw*) 11399 sys_lib_search_path_spec= 11400 lt_save_ifs=$IFS 11401 IFS=';' 11402 for lt_path in $LIB 11403 do 11404 IFS=$lt_save_ifs 11405 # Let DOS variable expansion print the short 8.3 style file name. 11406 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11407 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11408 done 11409 IFS=$lt_save_ifs 11410 # Convert to MSYS style. 11411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11412 ;; 11413 cygwin*) 11414 # Convert to unix form, then to dos form, then back to unix form 11415 # but this time dos style (no spaces!) so that the unix form looks 11416 # like /cygdrive/c/PROGRA~1:/cygdr... 11417 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11418 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11419 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11420 ;; 11421 *) 11422 sys_lib_search_path_spec=$LIB 11423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11424 # It is most probably a Windows format PATH. 11425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11426 else 11427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11428 fi 11429 # FIXME: find the short name or the path components, as spaces are 11430 # common. (e.g. "Program Files" -> "PROGRA~1") 11431 ;; 11432 esac 11433 11434 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11435 postinstall_cmds='base_file=`basename \$file`~ 11436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11437 dldir=$destdir/`dirname \$dlpath`~ 11438 test -d \$dldir || mkdir -p \$dldir~ 11439 $install_prog $dir/$dlname \$dldir/$dlname' 11440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11441 dlpath=$dir/\$dldll~ 11442 $RM \$dlpath' 11443 shlibpath_overrides_runpath=yes 11444 dynamic_linker='Win32 link.exe' 11445 ;; 11446 11447 *) 11448 # Assume MSVC and ICC wrapper 11449 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11450 dynamic_linker='Win32 ld.exe' 11451 ;; 11452 esac 11453 # FIXME: first we should search . and the directory the executable is in 11454 shlibpath_var=PATH 11455 ;; 11456 11457darwin* | rhapsody*) 11458 dynamic_linker="$host_os dyld" 11459 version_type=darwin 11460 need_lib_prefix=no 11461 need_version=no 11462 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11463 soname_spec='$libname$release$major$shared_ext' 11464 shlibpath_overrides_runpath=yes 11465 shlibpath_var=DYLD_LIBRARY_PATH 11466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11467 11468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11470 ;; 11471 11472dgux*) 11473 version_type=linux # correct to gnu/linux during the next big refactor 11474 need_lib_prefix=no 11475 need_version=no 11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11477 soname_spec='$libname$release$shared_ext$major' 11478 shlibpath_var=LD_LIBRARY_PATH 11479 ;; 11480 11481freebsd* | dragonfly* | midnightbsd*) 11482 # DragonFly does not have aout. When/if they implement a new 11483 # versioning mechanism, adjust this. 11484 if test -x /usr/bin/objformat; then 11485 objformat=`/usr/bin/objformat` 11486 else 11487 case $host_os in 11488 freebsd[23].*) objformat=aout ;; 11489 *) objformat=elf ;; 11490 esac 11491 fi 11492 version_type=freebsd-$objformat 11493 case $version_type in 11494 freebsd-elf*) 11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11496 soname_spec='$libname$release$shared_ext$major' 11497 need_version=no 11498 need_lib_prefix=no 11499 ;; 11500 freebsd-*) 11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11502 need_version=yes 11503 ;; 11504 esac 11505 shlibpath_var=LD_LIBRARY_PATH 11506 case $host_os in 11507 freebsd2.*) 11508 shlibpath_overrides_runpath=yes 11509 ;; 11510 freebsd3.[01]* | freebsdelf3.[01]*) 11511 shlibpath_overrides_runpath=yes 11512 hardcode_into_libs=yes 11513 ;; 11514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11516 shlibpath_overrides_runpath=no 11517 hardcode_into_libs=yes 11518 ;; 11519 *) # from 4.6 on, and DragonFly 11520 shlibpath_overrides_runpath=yes 11521 hardcode_into_libs=yes 11522 ;; 11523 esac 11524 ;; 11525 11526haiku*) 11527 version_type=linux # correct to gnu/linux during the next big refactor 11528 need_lib_prefix=no 11529 need_version=no 11530 dynamic_linker="$host_os runtime_loader" 11531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11532 soname_spec='$libname$release$shared_ext$major' 11533 shlibpath_var=LIBRARY_PATH 11534 shlibpath_overrides_runpath=no 11535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11536 hardcode_into_libs=yes 11537 ;; 11538 11539hpux9* | hpux10* | hpux11*) 11540 # Give a soname corresponding to the major version so that dld.sl refuses to 11541 # link against other versions. 11542 version_type=sunos 11543 need_lib_prefix=no 11544 need_version=no 11545 case $host_cpu in 11546 ia64*) 11547 shrext_cmds='.so' 11548 hardcode_into_libs=yes 11549 dynamic_linker="$host_os dld.so" 11550 shlibpath_var=LD_LIBRARY_PATH 11551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11553 soname_spec='$libname$release$shared_ext$major' 11554 if test 32 = "$HPUX_IA64_MODE"; then 11555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11556 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11557 else 11558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11559 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11560 fi 11561 ;; 11562 hppa*64*) 11563 shrext_cmds='.sl' 11564 hardcode_into_libs=yes 11565 dynamic_linker="$host_os dld.sl" 11566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11569 soname_spec='$libname$release$shared_ext$major' 11570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11572 ;; 11573 *) 11574 shrext_cmds='.sl' 11575 dynamic_linker="$host_os dld.sl" 11576 shlibpath_var=SHLIB_PATH 11577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11579 soname_spec='$libname$release$shared_ext$major' 11580 ;; 11581 esac 11582 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11583 postinstall_cmds='chmod 555 $lib' 11584 # or fails outright, so override atomically: 11585 install_override_mode=555 11586 ;; 11587 11588interix[3-9]*) 11589 version_type=linux # correct to gnu/linux during the next big refactor 11590 need_lib_prefix=no 11591 need_version=no 11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11593 soname_spec='$libname$release$shared_ext$major' 11594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11595 shlibpath_var=LD_LIBRARY_PATH 11596 shlibpath_overrides_runpath=no 11597 hardcode_into_libs=yes 11598 ;; 11599 11600irix5* | irix6* | nonstopux*) 11601 case $host_os in 11602 nonstopux*) version_type=nonstopux ;; 11603 *) 11604 if test yes = "$lt_cv_prog_gnu_ld"; then 11605 version_type=linux # correct to gnu/linux during the next big refactor 11606 else 11607 version_type=irix 11608 fi ;; 11609 esac 11610 need_lib_prefix=no 11611 need_version=no 11612 soname_spec='$libname$release$shared_ext$major' 11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11614 case $host_os in 11615 irix5* | nonstopux*) 11616 libsuff= shlibsuff= 11617 ;; 11618 *) 11619 case $LD in # libtool.m4 will add one of these switches to LD 11620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11621 libsuff= shlibsuff= libmagic=32-bit;; 11622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11623 libsuff=32 shlibsuff=N32 libmagic=N32;; 11624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11625 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11626 *) libsuff= shlibsuff= libmagic=never-match;; 11627 esac 11628 ;; 11629 esac 11630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11631 shlibpath_overrides_runpath=no 11632 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11633 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11634 hardcode_into_libs=yes 11635 ;; 11636 11637# No shared lib support for Linux oldld, aout, or coff. 11638linux*oldld* | linux*aout* | linux*coff*) 11639 dynamic_linker=no 11640 ;; 11641 11642linux*android*) 11643 version_type=none # Android doesn't support versioned libraries. 11644 need_lib_prefix=no 11645 need_version=no 11646 library_names_spec='$libname$release$shared_ext' 11647 soname_spec='$libname$release$shared_ext' 11648 finish_cmds= 11649 shlibpath_var=LD_LIBRARY_PATH 11650 shlibpath_overrides_runpath=yes 11651 11652 # This implies no fast_install, which is unacceptable. 11653 # Some rework will be needed to allow for fast_install 11654 # before this can be enabled. 11655 hardcode_into_libs=yes 11656 11657 dynamic_linker='Android linker' 11658 # Don't embed -rpath directories since the linker doesn't support them. 11659 hardcode_libdir_flag_spec='-L$libdir' 11660 ;; 11661 11662# This must be glibc/ELF. 11663linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11664 version_type=linux # correct to gnu/linux during the next big refactor 11665 need_lib_prefix=no 11666 need_version=no 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11668 soname_spec='$libname$release$shared_ext$major' 11669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11670 shlibpath_var=LD_LIBRARY_PATH 11671 shlibpath_overrides_runpath=no 11672 11673 # Some binutils ld are patched to set DT_RUNPATH 11674 if test ${lt_cv_shlibpath_overrides_runpath+y} 11675then : 11676 printf %s "(cached) " >&6 11677else $as_nop 11678 lt_cv_shlibpath_overrides_runpath=no 11679 save_LDFLAGS=$LDFLAGS 11680 save_libdir=$libdir 11681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11684/* end confdefs.h. */ 11685 11686int 11687main (void) 11688{ 11689 11690 ; 11691 return 0; 11692} 11693_ACEOF 11694if ac_fn_c_try_link "$LINENO" 11695then : 11696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11697then : 11698 lt_cv_shlibpath_overrides_runpath=yes 11699fi 11700fi 11701rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11702 conftest$ac_exeext conftest.$ac_ext 11703 LDFLAGS=$save_LDFLAGS 11704 libdir=$save_libdir 11705 11706fi 11707 11708 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11709 11710 # This implies no fast_install, which is unacceptable. 11711 # Some rework will be needed to allow for fast_install 11712 # before this can be enabled. 11713 hardcode_into_libs=yes 11714 11715 # Ideally, we could use ldconfig to report *all* directores which are 11716 # searched for libraries, however this is still not possible. Aside from not 11717 # being certain /sbin/ldconfig is available, command 11718 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11719 # even though it is searched at run-time. Try to do the best guess by 11720 # appending ld.so.conf contents (and includes) to the search path. 11721 if test -f /etc/ld.so.conf; then 11722 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' ' '` 11723 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11724 fi 11725 11726 # We used to test for /lib/ld.so.1 and disable shared libraries on 11727 # powerpc, because MkLinux only supported shared libraries with the 11728 # GNU dynamic linker. Since this was broken with cross compilers, 11729 # most powerpc-linux boxes support dynamic linking these days and 11730 # people can always --disable-shared, the test was removed, and we 11731 # assume the GNU/Linux dynamic linker is in use. 11732 dynamic_linker='GNU/Linux ld.so' 11733 ;; 11734 11735netbsd*) 11736 version_type=sunos 11737 need_lib_prefix=no 11738 need_version=no 11739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11742 dynamic_linker='NetBSD (a.out) ld.so' 11743 else 11744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11745 soname_spec='$libname$release$shared_ext$major' 11746 dynamic_linker='NetBSD ld.elf_so' 11747 fi 11748 shlibpath_var=LD_LIBRARY_PATH 11749 shlibpath_overrides_runpath=yes 11750 hardcode_into_libs=yes 11751 ;; 11752 11753newsos6) 11754 version_type=linux # correct to gnu/linux during the next big refactor 11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11756 shlibpath_var=LD_LIBRARY_PATH 11757 shlibpath_overrides_runpath=yes 11758 ;; 11759 11760*nto* | *qnx*) 11761 version_type=qnx 11762 need_lib_prefix=no 11763 need_version=no 11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11765 soname_spec='$libname$release$shared_ext$major' 11766 shlibpath_var=LD_LIBRARY_PATH 11767 shlibpath_overrides_runpath=no 11768 hardcode_into_libs=yes 11769 dynamic_linker='ldqnx.so' 11770 ;; 11771 11772openbsd* | bitrig*) 11773 version_type=sunos 11774 sys_lib_dlsearch_path_spec=/usr/lib 11775 need_lib_prefix=no 11776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11777 need_version=no 11778 else 11779 need_version=yes 11780 fi 11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11783 shlibpath_var=LD_LIBRARY_PATH 11784 shlibpath_overrides_runpath=yes 11785 ;; 11786 11787os2*) 11788 libname_spec='$name' 11789 version_type=windows 11790 shrext_cmds=.dll 11791 need_version=no 11792 need_lib_prefix=no 11793 # OS/2 can only load a DLL with a base name of 8 characters or less. 11794 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11795 v=$($ECHO $release$versuffix | tr -d .-); 11796 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11797 $ECHO $n$v`$shared_ext' 11798 library_names_spec='${libname}_dll.$libext' 11799 dynamic_linker='OS/2 ld.exe' 11800 shlibpath_var=BEGINLIBPATH 11801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11803 postinstall_cmds='base_file=`basename \$file`~ 11804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11805 dldir=$destdir/`dirname \$dlpath`~ 11806 test -d \$dldir || mkdir -p \$dldir~ 11807 $install_prog $dir/$dlname \$dldir/$dlname~ 11808 chmod a+x \$dldir/$dlname~ 11809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11811 fi' 11812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11813 dlpath=$dir/\$dldll~ 11814 $RM \$dlpath' 11815 ;; 11816 11817osf3* | osf4* | osf5*) 11818 version_type=osf 11819 need_lib_prefix=no 11820 need_version=no 11821 soname_spec='$libname$release$shared_ext$major' 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11823 shlibpath_var=LD_LIBRARY_PATH 11824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11826 ;; 11827 11828rdos*) 11829 dynamic_linker=no 11830 ;; 11831 11832solaris*) 11833 version_type=linux # correct to gnu/linux during the next big refactor 11834 need_lib_prefix=no 11835 need_version=no 11836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11837 soname_spec='$libname$release$shared_ext$major' 11838 shlibpath_var=LD_LIBRARY_PATH 11839 shlibpath_overrides_runpath=yes 11840 hardcode_into_libs=yes 11841 # ldd complains unless libraries are executable 11842 postinstall_cmds='chmod +x $lib' 11843 ;; 11844 11845sunos4*) 11846 version_type=sunos 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11849 shlibpath_var=LD_LIBRARY_PATH 11850 shlibpath_overrides_runpath=yes 11851 if test yes = "$with_gnu_ld"; then 11852 need_lib_prefix=no 11853 fi 11854 need_version=yes 11855 ;; 11856 11857sysv4 | sysv4.3*) 11858 version_type=linux # correct to gnu/linux during the next big refactor 11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11860 soname_spec='$libname$release$shared_ext$major' 11861 shlibpath_var=LD_LIBRARY_PATH 11862 case $host_vendor in 11863 sni) 11864 shlibpath_overrides_runpath=no 11865 need_lib_prefix=no 11866 runpath_var=LD_RUN_PATH 11867 ;; 11868 siemens) 11869 need_lib_prefix=no 11870 ;; 11871 motorola) 11872 need_lib_prefix=no 11873 need_version=no 11874 shlibpath_overrides_runpath=no 11875 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11876 ;; 11877 esac 11878 ;; 11879 11880sysv4*MP*) 11881 if test -d /usr/nec; then 11882 version_type=linux # correct to gnu/linux during the next big refactor 11883 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11884 soname_spec='$libname$shared_ext.$major' 11885 shlibpath_var=LD_LIBRARY_PATH 11886 fi 11887 ;; 11888 11889sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11890 version_type=sco 11891 need_lib_prefix=no 11892 need_version=no 11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11894 soname_spec='$libname$release$shared_ext$major' 11895 shlibpath_var=LD_LIBRARY_PATH 11896 shlibpath_overrides_runpath=yes 11897 hardcode_into_libs=yes 11898 if test yes = "$with_gnu_ld"; then 11899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11900 else 11901 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11902 case $host_os in 11903 sco3.2v5*) 11904 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11905 ;; 11906 esac 11907 fi 11908 sys_lib_dlsearch_path_spec='/usr/lib' 11909 ;; 11910 11911tpf*) 11912 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11913 version_type=linux # correct to gnu/linux during the next big refactor 11914 need_lib_prefix=no 11915 need_version=no 11916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 shlibpath_overrides_runpath=no 11919 hardcode_into_libs=yes 11920 ;; 11921 11922uts4*) 11923 version_type=linux # correct to gnu/linux during the next big refactor 11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11925 soname_spec='$libname$release$shared_ext$major' 11926 shlibpath_var=LD_LIBRARY_PATH 11927 ;; 11928 11929*) 11930 dynamic_linker=no 11931 ;; 11932esac 11933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11934printf "%s\n" "$dynamic_linker" >&6; } 11935test no = "$dynamic_linker" && can_build_shared=no 11936 11937variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11938if test yes = "$GCC"; then 11939 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11940fi 11941 11942if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11943 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11944fi 11945 11946if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11947 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11948fi 11949 11950# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11951configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11952 11953# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11954func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11955 11956# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11957configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12056printf %s "checking how to hardcode library paths into programs... " >&6; } 12057hardcode_action= 12058if test -n "$hardcode_libdir_flag_spec" || 12059 test -n "$runpath_var" || 12060 test yes = "$hardcode_automatic"; then 12061 12062 # We can hardcode non-existent directories. 12063 if test no != "$hardcode_direct" && 12064 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12065 # have to relink, otherwise we might link with an installed library 12066 # when we should be linking with a yet-to-be-installed one 12067 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12068 test no != "$hardcode_minus_L"; then 12069 # Linking always hardcodes the temporary library directory. 12070 hardcode_action=relink 12071 else 12072 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12073 hardcode_action=immediate 12074 fi 12075else 12076 # We cannot hardcode anything, or else we can only hardcode existing 12077 # directories. 12078 hardcode_action=unsupported 12079fi 12080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12081printf "%s\n" "$hardcode_action" >&6; } 12082 12083if test relink = "$hardcode_action" || 12084 test yes = "$inherit_rpath"; then 12085 # Fast installation is not supported 12086 enable_fast_install=no 12087elif test yes = "$shlibpath_overrides_runpath" || 12088 test no = "$enable_shared"; then 12089 # Fast installation is not necessary 12090 enable_fast_install=needless 12091fi 12092 12093 12094 12095 12096 12097 12098 if test yes != "$enable_dlopen"; then 12099 enable_dlopen=unknown 12100 enable_dlopen_self=unknown 12101 enable_dlopen_self_static=unknown 12102else 12103 lt_cv_dlopen=no 12104 lt_cv_dlopen_libs= 12105 12106 case $host_os in 12107 beos*) 12108 lt_cv_dlopen=load_add_on 12109 lt_cv_dlopen_libs= 12110 lt_cv_dlopen_self=yes 12111 ;; 12112 12113 mingw* | pw32* | cegcc*) 12114 lt_cv_dlopen=LoadLibrary 12115 lt_cv_dlopen_libs= 12116 ;; 12117 12118 cygwin*) 12119 lt_cv_dlopen=dlopen 12120 lt_cv_dlopen_libs= 12121 ;; 12122 12123 darwin*) 12124 # if libdl is installed we need to link against it 12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12126printf %s "checking for dlopen in -ldl... " >&6; } 12127if test ${ac_cv_lib_dl_dlopen+y} 12128then : 12129 printf %s "(cached) " >&6 12130else $as_nop 12131 ac_check_lib_save_LIBS=$LIBS 12132LIBS="-ldl $LIBS" 12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135 12136/* Override any GCC internal prototype to avoid an error. 12137 Use char because int might match the return type of a GCC 12138 builtin and then its argument prototype would still apply. */ 12139char dlopen (); 12140int 12141main (void) 12142{ 12143return dlopen (); 12144 ; 12145 return 0; 12146} 12147_ACEOF 12148if ac_fn_c_try_link "$LINENO" 12149then : 12150 ac_cv_lib_dl_dlopen=yes 12151else $as_nop 12152 ac_cv_lib_dl_dlopen=no 12153fi 12154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12155 conftest$ac_exeext conftest.$ac_ext 12156LIBS=$ac_check_lib_save_LIBS 12157fi 12158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12159printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12160if test "x$ac_cv_lib_dl_dlopen" = xyes 12161then : 12162 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12163else $as_nop 12164 12165 lt_cv_dlopen=dyld 12166 lt_cv_dlopen_libs= 12167 lt_cv_dlopen_self=yes 12168 12169fi 12170 12171 ;; 12172 12173 tpf*) 12174 # Don't try to run any link tests for TPF. We know it's impossible 12175 # because TPF is a cross-compiler, and we know how we open DSOs. 12176 lt_cv_dlopen=dlopen 12177 lt_cv_dlopen_libs= 12178 lt_cv_dlopen_self=no 12179 ;; 12180 12181 *) 12182 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12183if test "x$ac_cv_func_shl_load" = xyes 12184then : 12185 lt_cv_dlopen=shl_load 12186else $as_nop 12187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12188printf %s "checking for shl_load in -ldld... " >&6; } 12189if test ${ac_cv_lib_dld_shl_load+y} 12190then : 12191 printf %s "(cached) " >&6 12192else $as_nop 12193 ac_check_lib_save_LIBS=$LIBS 12194LIBS="-ldld $LIBS" 12195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12196/* end confdefs.h. */ 12197 12198/* Override any GCC internal prototype to avoid an error. 12199 Use char because int might match the return type of a GCC 12200 builtin and then its argument prototype would still apply. */ 12201char shl_load (); 12202int 12203main (void) 12204{ 12205return shl_load (); 12206 ; 12207 return 0; 12208} 12209_ACEOF 12210if ac_fn_c_try_link "$LINENO" 12211then : 12212 ac_cv_lib_dld_shl_load=yes 12213else $as_nop 12214 ac_cv_lib_dld_shl_load=no 12215fi 12216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12217 conftest$ac_exeext conftest.$ac_ext 12218LIBS=$ac_check_lib_save_LIBS 12219fi 12220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12221printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12222if test "x$ac_cv_lib_dld_shl_load" = xyes 12223then : 12224 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12225else $as_nop 12226 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12227if test "x$ac_cv_func_dlopen" = xyes 12228then : 12229 lt_cv_dlopen=dlopen 12230else $as_nop 12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12232printf %s "checking for dlopen in -ldl... " >&6; } 12233if test ${ac_cv_lib_dl_dlopen+y} 12234then : 12235 printf %s "(cached) " >&6 12236else $as_nop 12237 ac_check_lib_save_LIBS=$LIBS 12238LIBS="-ldl $LIBS" 12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12240/* end confdefs.h. */ 12241 12242/* Override any GCC internal prototype to avoid an error. 12243 Use char because int might match the return type of a GCC 12244 builtin and then its argument prototype would still apply. */ 12245char dlopen (); 12246int 12247main (void) 12248{ 12249return dlopen (); 12250 ; 12251 return 0; 12252} 12253_ACEOF 12254if ac_fn_c_try_link "$LINENO" 12255then : 12256 ac_cv_lib_dl_dlopen=yes 12257else $as_nop 12258 ac_cv_lib_dl_dlopen=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12261 conftest$ac_exeext conftest.$ac_ext 12262LIBS=$ac_check_lib_save_LIBS 12263fi 12264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12265printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12266if test "x$ac_cv_lib_dl_dlopen" = xyes 12267then : 12268 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12269else $as_nop 12270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12271printf %s "checking for dlopen in -lsvld... " >&6; } 12272if test ${ac_cv_lib_svld_dlopen+y} 12273then : 12274 printf %s "(cached) " >&6 12275else $as_nop 12276 ac_check_lib_save_LIBS=$LIBS 12277LIBS="-lsvld $LIBS" 12278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12279/* end confdefs.h. */ 12280 12281/* Override any GCC internal prototype to avoid an error. 12282 Use char because int might match the return type of a GCC 12283 builtin and then its argument prototype would still apply. */ 12284char dlopen (); 12285int 12286main (void) 12287{ 12288return dlopen (); 12289 ; 12290 return 0; 12291} 12292_ACEOF 12293if ac_fn_c_try_link "$LINENO" 12294then : 12295 ac_cv_lib_svld_dlopen=yes 12296else $as_nop 12297 ac_cv_lib_svld_dlopen=no 12298fi 12299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12300 conftest$ac_exeext conftest.$ac_ext 12301LIBS=$ac_check_lib_save_LIBS 12302fi 12303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12304printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12305if test "x$ac_cv_lib_svld_dlopen" = xyes 12306then : 12307 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12308else $as_nop 12309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12310printf %s "checking for dld_link in -ldld... " >&6; } 12311if test ${ac_cv_lib_dld_dld_link+y} 12312then : 12313 printf %s "(cached) " >&6 12314else $as_nop 12315 ac_check_lib_save_LIBS=$LIBS 12316LIBS="-ldld $LIBS" 12317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12318/* end confdefs.h. */ 12319 12320/* Override any GCC internal prototype to avoid an error. 12321 Use char because int might match the return type of a GCC 12322 builtin and then its argument prototype would still apply. */ 12323char dld_link (); 12324int 12325main (void) 12326{ 12327return dld_link (); 12328 ; 12329 return 0; 12330} 12331_ACEOF 12332if ac_fn_c_try_link "$LINENO" 12333then : 12334 ac_cv_lib_dld_dld_link=yes 12335else $as_nop 12336 ac_cv_lib_dld_dld_link=no 12337fi 12338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12339 conftest$ac_exeext conftest.$ac_ext 12340LIBS=$ac_check_lib_save_LIBS 12341fi 12342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12343printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12344if test "x$ac_cv_lib_dld_dld_link" = xyes 12345then : 12346 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12347fi 12348 12349 12350fi 12351 12352 12353fi 12354 12355 12356fi 12357 12358 12359fi 12360 12361 12362fi 12363 12364 ;; 12365 esac 12366 12367 if test no = "$lt_cv_dlopen"; then 12368 enable_dlopen=no 12369 else 12370 enable_dlopen=yes 12371 fi 12372 12373 case $lt_cv_dlopen in 12374 dlopen) 12375 save_CPPFLAGS=$CPPFLAGS 12376 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12377 12378 save_LDFLAGS=$LDFLAGS 12379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12380 12381 save_LIBS=$LIBS 12382 LIBS="$lt_cv_dlopen_libs $LIBS" 12383 12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12385printf %s "checking whether a program can dlopen itself... " >&6; } 12386if test ${lt_cv_dlopen_self+y} 12387then : 12388 printf %s "(cached) " >&6 12389else $as_nop 12390 if test yes = "$cross_compiling"; then : 12391 lt_cv_dlopen_self=cross 12392else 12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12394 lt_status=$lt_dlunknown 12395 cat > conftest.$ac_ext <<_LT_EOF 12396#line $LINENO "configure" 12397#include "confdefs.h" 12398 12399#if HAVE_DLFCN_H 12400#include <dlfcn.h> 12401#endif 12402 12403#include <stdio.h> 12404 12405#ifdef RTLD_GLOBAL 12406# define LT_DLGLOBAL RTLD_GLOBAL 12407#else 12408# ifdef DL_GLOBAL 12409# define LT_DLGLOBAL DL_GLOBAL 12410# else 12411# define LT_DLGLOBAL 0 12412# endif 12413#endif 12414 12415/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12416 find out it does not work in some platform. */ 12417#ifndef LT_DLLAZY_OR_NOW 12418# ifdef RTLD_LAZY 12419# define LT_DLLAZY_OR_NOW RTLD_LAZY 12420# else 12421# ifdef DL_LAZY 12422# define LT_DLLAZY_OR_NOW DL_LAZY 12423# else 12424# ifdef RTLD_NOW 12425# define LT_DLLAZY_OR_NOW RTLD_NOW 12426# else 12427# ifdef DL_NOW 12428# define LT_DLLAZY_OR_NOW DL_NOW 12429# else 12430# define LT_DLLAZY_OR_NOW 0 12431# endif 12432# endif 12433# endif 12434# endif 12435#endif 12436 12437/* When -fvisibility=hidden is used, assume the code has been annotated 12438 correspondingly for the symbols needed. */ 12439#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12440int fnord () __attribute__((visibility("default"))); 12441#endif 12442 12443int fnord () { return 42; } 12444int main () 12445{ 12446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12447 int status = $lt_dlunknown; 12448 12449 if (self) 12450 { 12451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12452 else 12453 { 12454 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12455 else puts (dlerror ()); 12456 } 12457 /* dlclose (self); */ 12458 } 12459 else 12460 puts (dlerror ()); 12461 12462 return status; 12463} 12464_LT_EOF 12465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12466 (eval $ac_link) 2>&5 12467 ac_status=$? 12468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12469 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12470 (./conftest; exit; ) >&5 2>/dev/null 12471 lt_status=$? 12472 case x$lt_status in 12473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12475 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12476 esac 12477 else : 12478 # compilation failed 12479 lt_cv_dlopen_self=no 12480 fi 12481fi 12482rm -fr conftest* 12483 12484 12485fi 12486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12487printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12488 12489 if test yes = "$lt_cv_dlopen_self"; then 12490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12492printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12493if test ${lt_cv_dlopen_self_static+y} 12494then : 12495 printf %s "(cached) " >&6 12496else $as_nop 12497 if test yes = "$cross_compiling"; then : 12498 lt_cv_dlopen_self_static=cross 12499else 12500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12501 lt_status=$lt_dlunknown 12502 cat > conftest.$ac_ext <<_LT_EOF 12503#line $LINENO "configure" 12504#include "confdefs.h" 12505 12506#if HAVE_DLFCN_H 12507#include <dlfcn.h> 12508#endif 12509 12510#include <stdio.h> 12511 12512#ifdef RTLD_GLOBAL 12513# define LT_DLGLOBAL RTLD_GLOBAL 12514#else 12515# ifdef DL_GLOBAL 12516# define LT_DLGLOBAL DL_GLOBAL 12517# else 12518# define LT_DLGLOBAL 0 12519# endif 12520#endif 12521 12522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12523 find out it does not work in some platform. */ 12524#ifndef LT_DLLAZY_OR_NOW 12525# ifdef RTLD_LAZY 12526# define LT_DLLAZY_OR_NOW RTLD_LAZY 12527# else 12528# ifdef DL_LAZY 12529# define LT_DLLAZY_OR_NOW DL_LAZY 12530# else 12531# ifdef RTLD_NOW 12532# define LT_DLLAZY_OR_NOW RTLD_NOW 12533# else 12534# ifdef DL_NOW 12535# define LT_DLLAZY_OR_NOW DL_NOW 12536# else 12537# define LT_DLLAZY_OR_NOW 0 12538# endif 12539# endif 12540# endif 12541# endif 12542#endif 12543 12544/* When -fvisibility=hidden is used, assume the code has been annotated 12545 correspondingly for the symbols needed. */ 12546#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12547int fnord () __attribute__((visibility("default"))); 12548#endif 12549 12550int fnord () { return 42; } 12551int main () 12552{ 12553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12554 int status = $lt_dlunknown; 12555 12556 if (self) 12557 { 12558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12559 else 12560 { 12561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12562 else puts (dlerror ()); 12563 } 12564 /* dlclose (self); */ 12565 } 12566 else 12567 puts (dlerror ()); 12568 12569 return status; 12570} 12571_LT_EOF 12572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12573 (eval $ac_link) 2>&5 12574 ac_status=$? 12575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12576 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12577 (./conftest; exit; ) >&5 2>/dev/null 12578 lt_status=$? 12579 case x$lt_status in 12580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12582 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12583 esac 12584 else : 12585 # compilation failed 12586 lt_cv_dlopen_self_static=no 12587 fi 12588fi 12589rm -fr conftest* 12590 12591 12592fi 12593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12594printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12595 fi 12596 12597 CPPFLAGS=$save_CPPFLAGS 12598 LDFLAGS=$save_LDFLAGS 12599 LIBS=$save_LIBS 12600 ;; 12601 esac 12602 12603 case $lt_cv_dlopen_self in 12604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12605 *) enable_dlopen_self=unknown ;; 12606 esac 12607 12608 case $lt_cv_dlopen_self_static in 12609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12610 *) enable_dlopen_self_static=unknown ;; 12611 esac 12612fi 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630striplib= 12631old_striplib= 12632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12633printf %s "checking whether stripping libraries is possible... " >&6; } 12634if test -z "$STRIP"; then 12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12636printf "%s\n" "no" >&6; } 12637else 12638 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12639 old_striplib="$STRIP --strip-debug" 12640 striplib="$STRIP --strip-unneeded" 12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12642printf "%s\n" "yes" >&6; } 12643 else 12644 case $host_os in 12645 darwin*) 12646 # FIXME - insert some real tests, host_os isn't really good enough 12647 striplib="$STRIP -x" 12648 old_striplib="$STRIP -S" 12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12650printf "%s\n" "yes" >&6; } 12651 ;; 12652 freebsd*) 12653 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12654 old_striplib="$STRIP --strip-debug" 12655 striplib="$STRIP --strip-unneeded" 12656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12657printf "%s\n" "yes" >&6; } 12658 else 12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660printf "%s\n" "no" >&6; } 12661 fi 12662 ;; 12663 *) 12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12665printf "%s\n" "no" >&6; } 12666 ;; 12667 esac 12668 fi 12669fi 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 # Report what library types will actually be built 12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12684printf %s "checking if libtool supports shared libraries... " >&6; } 12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12686printf "%s\n" "$can_build_shared" >&6; } 12687 12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12689printf %s "checking whether to build shared libraries... " >&6; } 12690 test no = "$can_build_shared" && enable_shared=no 12691 12692 # On AIX, shared libraries and static libraries use the same namespace, and 12693 # are all built from PIC. 12694 case $host_os in 12695 aix3*) 12696 test yes = "$enable_shared" && enable_static=no 12697 if test -n "$RANLIB"; then 12698 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12699 postinstall_cmds='$RANLIB $lib' 12700 fi 12701 ;; 12702 12703 aix[4-9]*) 12704 if test ia64 != "$host_cpu"; then 12705 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12706 yes,aix,yes) ;; # shared object as lib.so file only 12707 yes,svr4,*) ;; # shared object as lib.so archive member only 12708 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12709 esac 12710 fi 12711 ;; 12712 esac 12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12714printf "%s\n" "$enable_shared" >&6; } 12715 12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12717printf %s "checking whether to build static libraries... " >&6; } 12718 # Make sure either enable_shared or enable_static is yes. 12719 test yes = "$enable_shared" || enable_static=yes 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12721printf "%s\n" "$enable_static" >&6; } 12722 12723 12724 12725 12726fi 12727ac_ext=c 12728ac_cpp='$CPP $CPPFLAGS' 12729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12731ac_compiler_gnu=$ac_cv_c_compiler_gnu 12732 12733CC=$lt_save_CC 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 ac_config_commands="$ac_config_commands libtool" 12750 12751 12752 12753 12754# Only expand once: 12755 12756 12757 12758 12759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12760printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12761 # Check whether --enable-maintainer-mode was given. 12762if test ${enable_maintainer_mode+y} 12763then : 12764 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12765else $as_nop 12766 USE_MAINTAINER_MODE=no 12767fi 12768 12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12770printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 12771 if test $USE_MAINTAINER_MODE = yes; then 12772 MAINTAINER_MODE_TRUE= 12773 MAINTAINER_MODE_FALSE='#' 12774else 12775 MAINTAINER_MODE_TRUE='#' 12776 MAINTAINER_MODE_FALSE= 12777fi 12778 12779 MAINT=$MAINTAINER_MODE_TRUE 12780 12781 12782ac_config_headers="$ac_config_headers src/iperf_config.h" 12783 12784 12785 12786 12787# Checks for tools: c compiler, ranlib (used for creating static libraries), 12788# symlinks and libtool 12789ac_ext=c 12790ac_cpp='$CPP $CPPFLAGS' 12791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12793ac_compiler_gnu=$ac_cv_c_compiler_gnu 12794if test -n "$ac_tool_prefix"; then 12795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12796set dummy ${ac_tool_prefix}gcc; ac_word=$2 12797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12798printf %s "checking for $ac_word... " >&6; } 12799if test ${ac_cv_prog_CC+y} 12800then : 12801 printf %s "(cached) " >&6 12802else $as_nop 12803 if test -n "$CC"; then 12804 ac_cv_prog_CC="$CC" # Let the user override the test. 12805else 12806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12807for as_dir in $PATH 12808do 12809 IFS=$as_save_IFS 12810 case $as_dir in #((( 12811 '') as_dir=./ ;; 12812 */) ;; 12813 *) as_dir=$as_dir/ ;; 12814 esac 12815 for ac_exec_ext in '' $ac_executable_extensions; do 12816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12817 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12819 break 2 12820 fi 12821done 12822 done 12823IFS=$as_save_IFS 12824 12825fi 12826fi 12827CC=$ac_cv_prog_CC 12828if test -n "$CC"; then 12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12830printf "%s\n" "$CC" >&6; } 12831else 12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12833printf "%s\n" "no" >&6; } 12834fi 12835 12836 12837fi 12838if test -z "$ac_cv_prog_CC"; then 12839 ac_ct_CC=$CC 12840 # Extract the first word of "gcc", so it can be a program name with args. 12841set dummy gcc; ac_word=$2 12842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12843printf %s "checking for $ac_word... " >&6; } 12844if test ${ac_cv_prog_ac_ct_CC+y} 12845then : 12846 printf %s "(cached) " >&6 12847else $as_nop 12848 if test -n "$ac_ct_CC"; then 12849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12850else 12851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12852for as_dir in $PATH 12853do 12854 IFS=$as_save_IFS 12855 case $as_dir in #((( 12856 '') as_dir=./ ;; 12857 */) ;; 12858 *) as_dir=$as_dir/ ;; 12859 esac 12860 for ac_exec_ext in '' $ac_executable_extensions; do 12861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12862 ac_cv_prog_ac_ct_CC="gcc" 12863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12864 break 2 12865 fi 12866done 12867 done 12868IFS=$as_save_IFS 12869 12870fi 12871fi 12872ac_ct_CC=$ac_cv_prog_ac_ct_CC 12873if test -n "$ac_ct_CC"; then 12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12875printf "%s\n" "$ac_ct_CC" >&6; } 12876else 12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12878printf "%s\n" "no" >&6; } 12879fi 12880 12881 if test "x$ac_ct_CC" = x; then 12882 CC="" 12883 else 12884 case $cross_compiling:$ac_tool_warned in 12885yes:) 12886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12887printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12888ac_tool_warned=yes ;; 12889esac 12890 CC=$ac_ct_CC 12891 fi 12892else 12893 CC="$ac_cv_prog_CC" 12894fi 12895 12896if test -z "$CC"; then 12897 if test -n "$ac_tool_prefix"; then 12898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12899set dummy ${ac_tool_prefix}cc; ac_word=$2 12900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12901printf %s "checking for $ac_word... " >&6; } 12902if test ${ac_cv_prog_CC+y} 12903then : 12904 printf %s "(cached) " >&6 12905else $as_nop 12906 if test -n "$CC"; then 12907 ac_cv_prog_CC="$CC" # Let the user override the test. 12908else 12909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12910for as_dir in $PATH 12911do 12912 IFS=$as_save_IFS 12913 case $as_dir in #((( 12914 '') as_dir=./ ;; 12915 */) ;; 12916 *) as_dir=$as_dir/ ;; 12917 esac 12918 for ac_exec_ext in '' $ac_executable_extensions; do 12919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12920 ac_cv_prog_CC="${ac_tool_prefix}cc" 12921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12922 break 2 12923 fi 12924done 12925 done 12926IFS=$as_save_IFS 12927 12928fi 12929fi 12930CC=$ac_cv_prog_CC 12931if test -n "$CC"; then 12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12933printf "%s\n" "$CC" >&6; } 12934else 12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12936printf "%s\n" "no" >&6; } 12937fi 12938 12939 12940 fi 12941fi 12942if test -z "$CC"; then 12943 # Extract the first word of "cc", so it can be a program name with args. 12944set dummy cc; ac_word=$2 12945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12946printf %s "checking for $ac_word... " >&6; } 12947if test ${ac_cv_prog_CC+y} 12948then : 12949 printf %s "(cached) " >&6 12950else $as_nop 12951 if test -n "$CC"; then 12952 ac_cv_prog_CC="$CC" # Let the user override the test. 12953else 12954 ac_prog_rejected=no 12955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12956for as_dir in $PATH 12957do 12958 IFS=$as_save_IFS 12959 case $as_dir in #((( 12960 '') as_dir=./ ;; 12961 */) ;; 12962 *) as_dir=$as_dir/ ;; 12963 esac 12964 for ac_exec_ext in '' $ac_executable_extensions; do 12965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12966 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12967 ac_prog_rejected=yes 12968 continue 12969 fi 12970 ac_cv_prog_CC="cc" 12971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12972 break 2 12973 fi 12974done 12975 done 12976IFS=$as_save_IFS 12977 12978if test $ac_prog_rejected = yes; then 12979 # We found a bogon in the path, so make sure we never use it. 12980 set dummy $ac_cv_prog_CC 12981 shift 12982 if test $# != 0; then 12983 # We chose a different compiler from the bogus one. 12984 # However, it has the same basename, so the bogon will be chosen 12985 # first if we set CC to just the basename; use the full file name. 12986 shift 12987 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 12988 fi 12989fi 12990fi 12991fi 12992CC=$ac_cv_prog_CC 12993if test -n "$CC"; then 12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12995printf "%s\n" "$CC" >&6; } 12996else 12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12998printf "%s\n" "no" >&6; } 12999fi 13000 13001 13002fi 13003if test -z "$CC"; then 13004 if test -n "$ac_tool_prefix"; then 13005 for ac_prog in cl.exe 13006 do 13007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13008set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13010printf %s "checking for $ac_word... " >&6; } 13011if test ${ac_cv_prog_CC+y} 13012then : 13013 printf %s "(cached) " >&6 13014else $as_nop 13015 if test -n "$CC"; then 13016 ac_cv_prog_CC="$CC" # Let the user override the test. 13017else 13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13019for as_dir in $PATH 13020do 13021 IFS=$as_save_IFS 13022 case $as_dir in #((( 13023 '') as_dir=./ ;; 13024 */) ;; 13025 *) as_dir=$as_dir/ ;; 13026 esac 13027 for ac_exec_ext in '' $ac_executable_extensions; do 13028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13031 break 2 13032 fi 13033done 13034 done 13035IFS=$as_save_IFS 13036 13037fi 13038fi 13039CC=$ac_cv_prog_CC 13040if test -n "$CC"; then 13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13042printf "%s\n" "$CC" >&6; } 13043else 13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13045printf "%s\n" "no" >&6; } 13046fi 13047 13048 13049 test -n "$CC" && break 13050 done 13051fi 13052if test -z "$CC"; then 13053 ac_ct_CC=$CC 13054 for ac_prog in cl.exe 13055do 13056 # Extract the first word of "$ac_prog", so it can be a program name with args. 13057set dummy $ac_prog; ac_word=$2 13058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13059printf %s "checking for $ac_word... " >&6; } 13060if test ${ac_cv_prog_ac_ct_CC+y} 13061then : 13062 printf %s "(cached) " >&6 13063else $as_nop 13064 if test -n "$ac_ct_CC"; then 13065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13066else 13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13068for as_dir in $PATH 13069do 13070 IFS=$as_save_IFS 13071 case $as_dir in #((( 13072 '') as_dir=./ ;; 13073 */) ;; 13074 *) as_dir=$as_dir/ ;; 13075 esac 13076 for ac_exec_ext in '' $ac_executable_extensions; do 13077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13078 ac_cv_prog_ac_ct_CC="$ac_prog" 13079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13080 break 2 13081 fi 13082done 13083 done 13084IFS=$as_save_IFS 13085 13086fi 13087fi 13088ac_ct_CC=$ac_cv_prog_ac_ct_CC 13089if test -n "$ac_ct_CC"; then 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13091printf "%s\n" "$ac_ct_CC" >&6; } 13092else 13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13094printf "%s\n" "no" >&6; } 13095fi 13096 13097 13098 test -n "$ac_ct_CC" && break 13099done 13100 13101 if test "x$ac_ct_CC" = x; then 13102 CC="" 13103 else 13104 case $cross_compiling:$ac_tool_warned in 13105yes:) 13106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13107printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13108ac_tool_warned=yes ;; 13109esac 13110 CC=$ac_ct_CC 13111 fi 13112fi 13113 13114fi 13115if test -z "$CC"; then 13116 if test -n "$ac_tool_prefix"; then 13117 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 13118set dummy ${ac_tool_prefix}clang; ac_word=$2 13119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13120printf %s "checking for $ac_word... " >&6; } 13121if test ${ac_cv_prog_CC+y} 13122then : 13123 printf %s "(cached) " >&6 13124else $as_nop 13125 if test -n "$CC"; then 13126 ac_cv_prog_CC="$CC" # Let the user override the test. 13127else 13128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13129for as_dir in $PATH 13130do 13131 IFS=$as_save_IFS 13132 case $as_dir in #((( 13133 '') as_dir=./ ;; 13134 */) ;; 13135 *) as_dir=$as_dir/ ;; 13136 esac 13137 for ac_exec_ext in '' $ac_executable_extensions; do 13138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13139 ac_cv_prog_CC="${ac_tool_prefix}clang" 13140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13141 break 2 13142 fi 13143done 13144 done 13145IFS=$as_save_IFS 13146 13147fi 13148fi 13149CC=$ac_cv_prog_CC 13150if test -n "$CC"; then 13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13152printf "%s\n" "$CC" >&6; } 13153else 13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13155printf "%s\n" "no" >&6; } 13156fi 13157 13158 13159fi 13160if test -z "$ac_cv_prog_CC"; then 13161 ac_ct_CC=$CC 13162 # Extract the first word of "clang", so it can be a program name with args. 13163set dummy clang; ac_word=$2 13164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13165printf %s "checking for $ac_word... " >&6; } 13166if test ${ac_cv_prog_ac_ct_CC+y} 13167then : 13168 printf %s "(cached) " >&6 13169else $as_nop 13170 if test -n "$ac_ct_CC"; then 13171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13172else 13173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13174for as_dir in $PATH 13175do 13176 IFS=$as_save_IFS 13177 case $as_dir in #((( 13178 '') as_dir=./ ;; 13179 */) ;; 13180 *) as_dir=$as_dir/ ;; 13181 esac 13182 for ac_exec_ext in '' $ac_executable_extensions; do 13183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13184 ac_cv_prog_ac_ct_CC="clang" 13185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13186 break 2 13187 fi 13188done 13189 done 13190IFS=$as_save_IFS 13191 13192fi 13193fi 13194ac_ct_CC=$ac_cv_prog_ac_ct_CC 13195if test -n "$ac_ct_CC"; then 13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13197printf "%s\n" "$ac_ct_CC" >&6; } 13198else 13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13200printf "%s\n" "no" >&6; } 13201fi 13202 13203 if test "x$ac_ct_CC" = x; then 13204 CC="" 13205 else 13206 case $cross_compiling:$ac_tool_warned in 13207yes:) 13208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13210ac_tool_warned=yes ;; 13211esac 13212 CC=$ac_ct_CC 13213 fi 13214else 13215 CC="$ac_cv_prog_CC" 13216fi 13217 13218fi 13219 13220 13221test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13222printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13223as_fn_error $? "no acceptable C compiler found in \$PATH 13224See \`config.log' for more details" "$LINENO" 5; } 13225 13226# Provide some information about the compiler. 13227printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13228set X $ac_compile 13229ac_compiler=$2 13230for ac_option in --version -v -V -qversion -version; do 13231 { { ac_try="$ac_compiler $ac_option >&5" 13232case "(($ac_try" in 13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13234 *) ac_try_echo=$ac_try;; 13235esac 13236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13237printf "%s\n" "$ac_try_echo"; } >&5 13238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13239 ac_status=$? 13240 if test -s conftest.err; then 13241 sed '10a\ 13242... rest of stderr output deleted ... 13243 10q' conftest.err >conftest.er1 13244 cat conftest.er1 >&5 13245 fi 13246 rm -f conftest.er1 conftest.err 13247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13248 test $ac_status = 0; } 13249done 13250 13251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 13252printf %s "checking whether the compiler supports GNU C... " >&6; } 13253if test ${ac_cv_c_compiler_gnu+y} 13254then : 13255 printf %s "(cached) " >&6 13256else $as_nop 13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13258/* end confdefs.h. */ 13259 13260int 13261main (void) 13262{ 13263#ifndef __GNUC__ 13264 choke me 13265#endif 13266 13267 ; 13268 return 0; 13269} 13270_ACEOF 13271if ac_fn_c_try_compile "$LINENO" 13272then : 13273 ac_compiler_gnu=yes 13274else $as_nop 13275 ac_compiler_gnu=no 13276fi 13277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13278ac_cv_c_compiler_gnu=$ac_compiler_gnu 13279 13280fi 13281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13282printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 13283ac_compiler_gnu=$ac_cv_c_compiler_gnu 13284 13285if test $ac_compiler_gnu = yes; then 13286 GCC=yes 13287else 13288 GCC= 13289fi 13290ac_test_CFLAGS=${CFLAGS+y} 13291ac_save_CFLAGS=$CFLAGS 13292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13293printf %s "checking whether $CC accepts -g... " >&6; } 13294if test ${ac_cv_prog_cc_g+y} 13295then : 13296 printf %s "(cached) " >&6 13297else $as_nop 13298 ac_save_c_werror_flag=$ac_c_werror_flag 13299 ac_c_werror_flag=yes 13300 ac_cv_prog_cc_g=no 13301 CFLAGS="-g" 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304 13305int 13306main (void) 13307{ 13308 13309 ; 13310 return 0; 13311} 13312_ACEOF 13313if ac_fn_c_try_compile "$LINENO" 13314then : 13315 ac_cv_prog_cc_g=yes 13316else $as_nop 13317 CFLAGS="" 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319/* end confdefs.h. */ 13320 13321int 13322main (void) 13323{ 13324 13325 ; 13326 return 0; 13327} 13328_ACEOF 13329if ac_fn_c_try_compile "$LINENO" 13330then : 13331 13332else $as_nop 13333 ac_c_werror_flag=$ac_save_c_werror_flag 13334 CFLAGS="-g" 13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13336/* end confdefs.h. */ 13337 13338int 13339main (void) 13340{ 13341 13342 ; 13343 return 0; 13344} 13345_ACEOF 13346if ac_fn_c_try_compile "$LINENO" 13347then : 13348 ac_cv_prog_cc_g=yes 13349fi 13350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13351fi 13352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13353fi 13354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13355 ac_c_werror_flag=$ac_save_c_werror_flag 13356fi 13357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13358printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 13359if test $ac_test_CFLAGS; then 13360 CFLAGS=$ac_save_CFLAGS 13361elif test $ac_cv_prog_cc_g = yes; then 13362 if test "$GCC" = yes; then 13363 CFLAGS="-g -O2" 13364 else 13365 CFLAGS="-g" 13366 fi 13367else 13368 if test "$GCC" = yes; then 13369 CFLAGS="-O2" 13370 else 13371 CFLAGS= 13372 fi 13373fi 13374ac_prog_cc_stdc=no 13375if test x$ac_prog_cc_stdc = xno 13376then : 13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 13378printf %s "checking for $CC option to enable C11 features... " >&6; } 13379if test ${ac_cv_prog_cc_c11+y} 13380then : 13381 printf %s "(cached) " >&6 13382else $as_nop 13383 ac_cv_prog_cc_c11=no 13384ac_save_CC=$CC 13385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386/* end confdefs.h. */ 13387$ac_c_conftest_c11_program 13388_ACEOF 13389for ac_arg in '' -std=gnu11 13390do 13391 CC="$ac_save_CC $ac_arg" 13392 if ac_fn_c_try_compile "$LINENO" 13393then : 13394 ac_cv_prog_cc_c11=$ac_arg 13395fi 13396rm -f core conftest.err conftest.$ac_objext conftest.beam 13397 test "x$ac_cv_prog_cc_c11" != "xno" && break 13398done 13399rm -f conftest.$ac_ext 13400CC=$ac_save_CC 13401fi 13402 13403if test "x$ac_cv_prog_cc_c11" = xno 13404then : 13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13406printf "%s\n" "unsupported" >&6; } 13407else $as_nop 13408 if test "x$ac_cv_prog_cc_c11" = x 13409then : 13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13411printf "%s\n" "none needed" >&6; } 13412else $as_nop 13413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 13414printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 13415 CC="$CC $ac_cv_prog_cc_c11" 13416fi 13417 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 13418 ac_prog_cc_stdc=c11 13419fi 13420fi 13421if test x$ac_prog_cc_stdc = xno 13422then : 13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 13424printf %s "checking for $CC option to enable C99 features... " >&6; } 13425if test ${ac_cv_prog_cc_c99+y} 13426then : 13427 printf %s "(cached) " >&6 13428else $as_nop 13429 ac_cv_prog_cc_c99=no 13430ac_save_CC=$CC 13431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432/* end confdefs.h. */ 13433$ac_c_conftest_c99_program 13434_ACEOF 13435for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 13436do 13437 CC="$ac_save_CC $ac_arg" 13438 if ac_fn_c_try_compile "$LINENO" 13439then : 13440 ac_cv_prog_cc_c99=$ac_arg 13441fi 13442rm -f core conftest.err conftest.$ac_objext conftest.beam 13443 test "x$ac_cv_prog_cc_c99" != "xno" && break 13444done 13445rm -f conftest.$ac_ext 13446CC=$ac_save_CC 13447fi 13448 13449if test "x$ac_cv_prog_cc_c99" = xno 13450then : 13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13452printf "%s\n" "unsupported" >&6; } 13453else $as_nop 13454 if test "x$ac_cv_prog_cc_c99" = x 13455then : 13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13457printf "%s\n" "none needed" >&6; } 13458else $as_nop 13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13460printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 13461 CC="$CC $ac_cv_prog_cc_c99" 13462fi 13463 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 13464 ac_prog_cc_stdc=c99 13465fi 13466fi 13467if test x$ac_prog_cc_stdc = xno 13468then : 13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 13470printf %s "checking for $CC option to enable C89 features... " >&6; } 13471if test ${ac_cv_prog_cc_c89+y} 13472then : 13473 printf %s "(cached) " >&6 13474else $as_nop 13475 ac_cv_prog_cc_c89=no 13476ac_save_CC=$CC 13477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13478/* end confdefs.h. */ 13479$ac_c_conftest_c89_program 13480_ACEOF 13481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13482do 13483 CC="$ac_save_CC $ac_arg" 13484 if ac_fn_c_try_compile "$LINENO" 13485then : 13486 ac_cv_prog_cc_c89=$ac_arg 13487fi 13488rm -f core conftest.err conftest.$ac_objext conftest.beam 13489 test "x$ac_cv_prog_cc_c89" != "xno" && break 13490done 13491rm -f conftest.$ac_ext 13492CC=$ac_save_CC 13493fi 13494 13495if test "x$ac_cv_prog_cc_c89" = xno 13496then : 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13498printf "%s\n" "unsupported" >&6; } 13499else $as_nop 13500 if test "x$ac_cv_prog_cc_c89" = x 13501then : 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13503printf "%s\n" "none needed" >&6; } 13504else $as_nop 13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13506printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 13507 CC="$CC $ac_cv_prog_cc_c89" 13508fi 13509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 13510 ac_prog_cc_stdc=c89 13511fi 13512fi 13513 13514ac_ext=c 13515ac_cpp='$CPP $CPPFLAGS' 13516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13518ac_compiler_gnu=$ac_cv_c_compiler_gnu 13519 13520 13521 ac_ext=c 13522ac_cpp='$CPP $CPPFLAGS' 13523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13525ac_compiler_gnu=$ac_cv_c_compiler_gnu 13526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13527printf %s "checking whether $CC understands -c and -o together... " >&6; } 13528if test ${am_cv_prog_cc_c_o+y} 13529then : 13530 printf %s "(cached) " >&6 13531else $as_nop 13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13533/* end confdefs.h. */ 13534 13535int 13536main (void) 13537{ 13538 13539 ; 13540 return 0; 13541} 13542_ACEOF 13543 # Make sure it works both with $CC and with simple cc. 13544 # Following AC_PROG_CC_C_O, we do the test twice because some 13545 # compilers refuse to overwrite an existing .o file with -o, 13546 # though they will create one. 13547 am_cv_prog_cc_c_o=yes 13548 for am_i in 1 2; do 13549 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13550 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13551 ac_status=$? 13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13553 (exit $ac_status); } \ 13554 && test -f conftest2.$ac_objext; then 13555 : OK 13556 else 13557 am_cv_prog_cc_c_o=no 13558 break 13559 fi 13560 done 13561 rm -f core conftest* 13562 unset am_i 13563fi 13564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13565printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 13566if test "$am_cv_prog_cc_c_o" != yes; then 13567 # Losing compiler, so override with the script. 13568 # FIXME: It is wrong to rewrite CC. 13569 # But if we don't then we get into trouble of one sort or another. 13570 # A longer-term fix would be to have automake use am__CC in this case, 13571 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13572 CC="$am_aux_dir/compile $CC" 13573fi 13574ac_ext=c 13575ac_cpp='$CPP $CPPFLAGS' 13576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13578ac_compiler_gnu=$ac_cv_c_compiler_gnu 13579 13580 13581depcc="$CC" am_compiler_list= 13582 13583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13584printf %s "checking dependency style of $depcc... " >&6; } 13585if test ${am_cv_CC_dependencies_compiler_type+y} 13586then : 13587 printf %s "(cached) " >&6 13588else $as_nop 13589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13590 # We make a subdir and do the tests there. Otherwise we can end up 13591 # making bogus files that we don't know about and never remove. For 13592 # instance it was reported that on HP-UX the gcc test will end up 13593 # making a dummy file named 'D' -- because '-MD' means "put the output 13594 # in D". 13595 rm -rf conftest.dir 13596 mkdir conftest.dir 13597 # Copy depcomp to subdir because otherwise we won't find it if we're 13598 # using a relative directory. 13599 cp "$am_depcomp" conftest.dir 13600 cd conftest.dir 13601 # We will build objects and dependencies in a subdirectory because 13602 # it helps to detect inapplicable dependency modes. For instance 13603 # both Tru64's cc and ICC support -MD to output dependencies as a 13604 # side effect of compilation, but ICC will put the dependencies in 13605 # the current directory while Tru64 will put them in the object 13606 # directory. 13607 mkdir sub 13608 13609 am_cv_CC_dependencies_compiler_type=none 13610 if test "$am_compiler_list" = ""; then 13611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13612 fi 13613 am__universal=false 13614 case " $depcc " in #( 13615 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13616 esac 13617 13618 for depmode in $am_compiler_list; do 13619 # Setup a source with many dependencies, because some compilers 13620 # like to wrap large dependency lists on column 80 (with \), and 13621 # we should not choose a depcomp mode which is confused by this. 13622 # 13623 # We need to recreate these files for each test, as the compiler may 13624 # overwrite some of them when testing with obscure command lines. 13625 # This happens at least with the AIX C compiler. 13626 : > sub/conftest.c 13627 for i in 1 2 3 4 5 6; do 13628 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13630 # Solaris 10 /bin/sh. 13631 echo '/* dummy */' > sub/conftst$i.h 13632 done 13633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13634 13635 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13636 # mode. It turns out that the SunPro C++ compiler does not properly 13637 # handle '-M -o', and we need to detect this. Also, some Intel 13638 # versions had trouble with output in subdirs. 13639 am__obj=sub/conftest.${OBJEXT-o} 13640 am__minus_obj="-o $am__obj" 13641 case $depmode in 13642 gcc) 13643 # This depmode causes a compiler race in universal mode. 13644 test "$am__universal" = false || continue 13645 ;; 13646 nosideeffect) 13647 # After this tag, mechanisms are not by side-effect, so they'll 13648 # only be used when explicitly requested. 13649 if test "x$enable_dependency_tracking" = xyes; then 13650 continue 13651 else 13652 break 13653 fi 13654 ;; 13655 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13656 # This compiler won't grok '-c -o', but also, the minuso test has 13657 # not run yet. These depmodes are late enough in the game, and 13658 # so weak that their functioning should not be impacted. 13659 am__obj=conftest.${OBJEXT-o} 13660 am__minus_obj= 13661 ;; 13662 none) break ;; 13663 esac 13664 if depmode=$depmode \ 13665 source=sub/conftest.c object=$am__obj \ 13666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13668 >/dev/null 2>conftest.err && 13669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13673 # icc doesn't choke on unknown options, it will just issue warnings 13674 # or remarks (even with -Werror). So we grep stderr for any message 13675 # that says an option was ignored or not supported. 13676 # When given -MP, icc 7.0 and 7.1 complain thusly: 13677 # icc: Command line warning: ignoring option '-M'; no argument required 13678 # The diagnosis changed in icc 8.0: 13679 # icc: Command line remark: option '-MP' not supported 13680 if (grep 'ignoring option' conftest.err || 13681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13682 am_cv_CC_dependencies_compiler_type=$depmode 13683 break 13684 fi 13685 fi 13686 done 13687 13688 cd .. 13689 rm -rf conftest.dir 13690else 13691 am_cv_CC_dependencies_compiler_type=none 13692fi 13693 13694fi 13695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13696printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 13697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13698 13699 if 13700 test "x$enable_dependency_tracking" != xno \ 13701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13702 am__fastdepCC_TRUE= 13703 am__fastdepCC_FALSE='#' 13704else 13705 am__fastdepCC_TRUE='#' 13706 am__fastdepCC_FALSE= 13707fi 13708 13709 13710if test -n "$ac_tool_prefix"; then 13711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13712set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13714printf %s "checking for $ac_word... " >&6; } 13715if test ${ac_cv_prog_RANLIB+y} 13716then : 13717 printf %s "(cached) " >&6 13718else $as_nop 13719 if test -n "$RANLIB"; then 13720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13721else 13722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13723for as_dir in $PATH 13724do 13725 IFS=$as_save_IFS 13726 case $as_dir in #((( 13727 '') as_dir=./ ;; 13728 */) ;; 13729 *) as_dir=$as_dir/ ;; 13730 esac 13731 for ac_exec_ext in '' $ac_executable_extensions; do 13732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13735 break 2 13736 fi 13737done 13738 done 13739IFS=$as_save_IFS 13740 13741fi 13742fi 13743RANLIB=$ac_cv_prog_RANLIB 13744if test -n "$RANLIB"; then 13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13746printf "%s\n" "$RANLIB" >&6; } 13747else 13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13749printf "%s\n" "no" >&6; } 13750fi 13751 13752 13753fi 13754if test -z "$ac_cv_prog_RANLIB"; then 13755 ac_ct_RANLIB=$RANLIB 13756 # Extract the first word of "ranlib", so it can be a program name with args. 13757set dummy ranlib; ac_word=$2 13758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13759printf %s "checking for $ac_word... " >&6; } 13760if test ${ac_cv_prog_ac_ct_RANLIB+y} 13761then : 13762 printf %s "(cached) " >&6 13763else $as_nop 13764 if test -n "$ac_ct_RANLIB"; then 13765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13766else 13767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13768for as_dir in $PATH 13769do 13770 IFS=$as_save_IFS 13771 case $as_dir in #((( 13772 '') as_dir=./ ;; 13773 */) ;; 13774 *) as_dir=$as_dir/ ;; 13775 esac 13776 for ac_exec_ext in '' $ac_executable_extensions; do 13777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13778 ac_cv_prog_ac_ct_RANLIB="ranlib" 13779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13780 break 2 13781 fi 13782done 13783 done 13784IFS=$as_save_IFS 13785 13786fi 13787fi 13788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13789if test -n "$ac_ct_RANLIB"; then 13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13791printf "%s\n" "$ac_ct_RANLIB" >&6; } 13792else 13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13794printf "%s\n" "no" >&6; } 13795fi 13796 13797 if test "x$ac_ct_RANLIB" = x; then 13798 RANLIB=":" 13799 else 13800 case $cross_compiling:$ac_tool_warned in 13801yes:) 13802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13803printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13804ac_tool_warned=yes ;; 13805esac 13806 RANLIB=$ac_ct_RANLIB 13807 fi 13808else 13809 RANLIB="$ac_cv_prog_RANLIB" 13810fi 13811 13812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13813printf %s "checking whether ln -s works... " >&6; } 13814LN_S=$as_ln_s 13815if test "$LN_S" = "ln -s"; then 13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13817printf "%s\n" "yes" >&6; } 13818else 13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13820printf "%s\n" "no, using $LN_S" >&6; } 13821fi 13822 13823 13824 13825# Add -Wall if we are using GCC. 13826if test "x$GCC" = "xyes"; then 13827 CFLAGS="$CFLAGS -Wall" 13828fi 13829 13830# Check if enable profiling 13831# Check whether --enable-profiling was given. 13832if test ${enable_profiling+y} 13833then : 13834 enableval=$enable_profiling; 13835fi 13836 13837 if test x$enable_profiling = xyes; then 13838 ENABLE_PROFILING_TRUE= 13839 ENABLE_PROFILING_FALSE='#' 13840else 13841 ENABLE_PROFILING_TRUE='#' 13842 ENABLE_PROFILING_FALSE= 13843fi 13844 13845 13846# Check for the math library (needed by cjson on some platforms) 13847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 13848printf %s "checking for library containing floor... " >&6; } 13849if test ${ac_cv_search_floor+y} 13850then : 13851 printf %s "(cached) " >&6 13852else $as_nop 13853 ac_func_search_save_LIBS=$LIBS 13854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13855/* end confdefs.h. */ 13856 13857/* Override any GCC internal prototype to avoid an error. 13858 Use char because int might match the return type of a GCC 13859 builtin and then its argument prototype would still apply. */ 13860char floor (); 13861int 13862main (void) 13863{ 13864return floor (); 13865 ; 13866 return 0; 13867} 13868_ACEOF 13869for ac_lib in '' m 13870do 13871 if test -z "$ac_lib"; then 13872 ac_res="none required" 13873 else 13874 ac_res=-l$ac_lib 13875 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13876 fi 13877 if ac_fn_c_try_link "$LINENO" 13878then : 13879 ac_cv_search_floor=$ac_res 13880fi 13881rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13882 conftest$ac_exeext 13883 if test ${ac_cv_search_floor+y} 13884then : 13885 break 13886fi 13887done 13888if test ${ac_cv_search_floor+y} 13889then : 13890 13891else $as_nop 13892 ac_cv_search_floor=no 13893fi 13894rm conftest.$ac_ext 13895LIBS=$ac_func_search_save_LIBS 13896fi 13897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 13898printf "%s\n" "$ac_cv_search_floor" >&6; } 13899ac_res=$ac_cv_search_floor 13900if test "$ac_res" != no 13901then : 13902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13903 13904else $as_nop 13905 13906echo "floor()" 13907exit 1 13908 13909fi 13910 13911 13912# On illumos we need -lsocket 13913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13914printf %s "checking for library containing socket... " >&6; } 13915if test ${ac_cv_search_socket+y} 13916then : 13917 printf %s "(cached) " >&6 13918else $as_nop 13919 ac_func_search_save_LIBS=$LIBS 13920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13921/* end confdefs.h. */ 13922 13923/* Override any GCC internal prototype to avoid an error. 13924 Use char because int might match the return type of a GCC 13925 builtin and then its argument prototype would still apply. */ 13926char socket (); 13927int 13928main (void) 13929{ 13930return socket (); 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935for ac_lib in '' socket 13936do 13937 if test -z "$ac_lib"; then 13938 ac_res="none required" 13939 else 13940 ac_res=-l$ac_lib 13941 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13942 fi 13943 if ac_fn_c_try_link "$LINENO" 13944then : 13945 ac_cv_search_socket=$ac_res 13946fi 13947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13948 conftest$ac_exeext 13949 if test ${ac_cv_search_socket+y} 13950then : 13951 break 13952fi 13953done 13954if test ${ac_cv_search_socket+y} 13955then : 13956 13957else $as_nop 13958 ac_cv_search_socket=no 13959fi 13960rm conftest.$ac_ext 13961LIBS=$ac_func_search_save_LIBS 13962fi 13963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13964printf "%s\n" "$ac_cv_search_socket" >&6; } 13965ac_res=$ac_cv_search_socket 13966if test "$ac_res" != no 13967then : 13968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13969 13970else $as_nop 13971 13972echo "socket()" 13973exit 1 13974 13975fi 13976 13977 13978# On illumos inet_ntop in in -lnsl 13979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 13980printf %s "checking for library containing inet_ntop... " >&6; } 13981if test ${ac_cv_search_inet_ntop+y} 13982then : 13983 printf %s "(cached) " >&6 13984else $as_nop 13985 ac_func_search_save_LIBS=$LIBS 13986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13987/* end confdefs.h. */ 13988 13989/* Override any GCC internal prototype to avoid an error. 13990 Use char because int might match the return type of a GCC 13991 builtin and then its argument prototype would still apply. */ 13992char inet_ntop (); 13993int 13994main (void) 13995{ 13996return inet_ntop (); 13997 ; 13998 return 0; 13999} 14000_ACEOF 14001for ac_lib in '' nsl 14002do 14003 if test -z "$ac_lib"; then 14004 ac_res="none required" 14005 else 14006 ac_res=-l$ac_lib 14007 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14008 fi 14009 if ac_fn_c_try_link "$LINENO" 14010then : 14011 ac_cv_search_inet_ntop=$ac_res 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14014 conftest$ac_exeext 14015 if test ${ac_cv_search_inet_ntop+y} 14016then : 14017 break 14018fi 14019done 14020if test ${ac_cv_search_inet_ntop+y} 14021then : 14022 14023else $as_nop 14024 ac_cv_search_inet_ntop=no 14025fi 14026rm conftest.$ac_ext 14027LIBS=$ac_func_search_save_LIBS 14028fi 14029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 14030printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } 14031ac_res=$ac_cv_search_inet_ntop 14032if test "$ac_res" != no 14033then : 14034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14035 14036else $as_nop 14037 14038echo "inet_ntop()" 14039exit 1 14040 14041fi 14042 14043 14044# Checks for typedefs, structures, and compiler characteristics. 14045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14046printf %s "checking for an ANSI C-conforming const... " >&6; } 14047if test ${ac_cv_c_const+y} 14048then : 14049 printf %s "(cached) " >&6 14050else $as_nop 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053 14054int 14055main (void) 14056{ 14057 14058#ifndef __cplusplus 14059 /* Ultrix mips cc rejects this sort of thing. */ 14060 typedef int charset[2]; 14061 const charset cs = { 0, 0 }; 14062 /* SunOS 4.1.1 cc rejects this. */ 14063 char const *const *pcpcc; 14064 char **ppc; 14065 /* NEC SVR4.0.2 mips cc rejects this. */ 14066 struct point {int x, y;}; 14067 static struct point const zero = {0,0}; 14068 /* IBM XL C 1.02.0.0 rejects this. 14069 It does not let you subtract one const X* pointer from another in 14070 an arm of an if-expression whose if-part is not a constant 14071 expression */ 14072 const char *g = "string"; 14073 pcpcc = &g + (g ? g-g : 0); 14074 /* HPUX 7.0 cc rejects these. */ 14075 ++pcpcc; 14076 ppc = (char**) pcpcc; 14077 pcpcc = (char const *const *) ppc; 14078 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14079 char tx; 14080 char *t = &tx; 14081 char const *s = 0 ? (char *) 0 : (char const *) 0; 14082 14083 *t++ = 0; 14084 if (s) return 0; 14085 } 14086 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14087 int x[] = {25, 17}; 14088 const int *foo = &x[0]; 14089 ++foo; 14090 } 14091 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14092 typedef const int *iptr; 14093 iptr p = 0; 14094 ++p; 14095 } 14096 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 14097 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14098 struct s { int j; const int *ap[3]; } bx; 14099 struct s *b = &bx; b->j = 5; 14100 } 14101 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14102 const int foo = 10; 14103 if (!foo) return 0; 14104 } 14105 return !cs[0] && !zero.x; 14106#endif 14107 14108 ; 14109 return 0; 14110} 14111_ACEOF 14112if ac_fn_c_try_compile "$LINENO" 14113then : 14114 ac_cv_c_const=yes 14115else $as_nop 14116 ac_cv_c_const=no 14117fi 14118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14119fi 14120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14121printf "%s\n" "$ac_cv_c_const" >&6; } 14122if test $ac_cv_c_const = no; then 14123 14124printf "%s\n" "#define const /**/" >>confdefs.h 14125 14126fi 14127 14128 14129# Check for poll.h (it's in POSIX so everyone should have it?) 14130ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 14131if test "x$ac_cv_header_poll_h" = xyes 14132then : 14133 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 14134 14135fi 14136 14137 14138# SCTP. Allow user to disable SCTP support with --without-sctp. 14139# Otherwise we try to find whatever support is required. 14140try_sctp=true 14141 14142# Check whether --with-sctp was given. 14143if test ${with_sctp+y} 14144then : 14145 withval=$with_sctp; 14146 case "$withval" in 14147 y | ye | yes) 14148 ;; 14149 n | no) 14150 try_sctp=false 14151 ;; 14152 *) 14153 as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5 14154 ;; 14155 esac 14156 14157else $as_nop 14158 14159 try_sctp=true 14160 14161 14162fi 14163 14164 14165ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default" 14166if test "x$ac_cv_header_linux_tcp_h" = xyes 14167then : 14168 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h 14169 14170fi 14171 14172 14173# Check for SCTP support 14174if $try_sctp; then 14175ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 14176if test "x$ac_cv_header_sys_socket_h" = xyes 14177then : 14178 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 14179 14180fi 14181 14182 for ac_header in netinet/sctp.h 14183do : 14184 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H 14185#include <sys/socket.h> 14186#endif 14187 14188" 14189if test "x$ac_cv_header_netinet_sctp_h" = xyes 14190then : 14191 printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h 14192 14193printf "%s\n" "#define HAVE_SCTP_H 1" >>confdefs.h 14194 14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 14196printf %s "checking for library containing sctp_bindx... " >&6; } 14197if test ${ac_cv_search_sctp_bindx+y} 14198then : 14199 printf %s "(cached) " >&6 14200else $as_nop 14201 ac_func_search_save_LIBS=$LIBS 14202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204 14205/* Override any GCC internal prototype to avoid an error. 14206 Use char because int might match the return type of a GCC 14207 builtin and then its argument prototype would still apply. */ 14208char sctp_bindx (); 14209int 14210main (void) 14211{ 14212return sctp_bindx (); 14213 ; 14214 return 0; 14215} 14216_ACEOF 14217for ac_lib in '' sctp 14218do 14219 if test -z "$ac_lib"; then 14220 ac_res="none required" 14221 else 14222 ac_res=-l$ac_lib 14223 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14224 fi 14225 if ac_fn_c_try_link "$LINENO" 14226then : 14227 ac_cv_search_sctp_bindx=$ac_res 14228fi 14229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14230 conftest$ac_exeext 14231 if test ${ac_cv_search_sctp_bindx+y} 14232then : 14233 break 14234fi 14235done 14236if test ${ac_cv_search_sctp_bindx+y} 14237then : 14238 14239else $as_nop 14240 ac_cv_search_sctp_bindx=no 14241fi 14242rm conftest.$ac_ext 14243LIBS=$ac_func_search_save_LIBS 14244fi 14245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 14246printf "%s\n" "$ac_cv_search_sctp_bindx" >&6; } 14247ac_res=$ac_cv_search_sctp_bindx 14248if test "$ac_res" != no 14249then : 14250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14251 14252fi 14253 14254 14255# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 14256# ------------------------------------------- 14257# Tests whether TYPE exists after having included INCLUDES, setting cache 14258# variable VAR accordingly. 14259ac_fn_c_check_type () 14260{ 14261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 14263printf %s "checking for $2... " >&6; } 14264if eval test \${$3+y} 14265then : 14266 printf %s "(cached) " >&6 14267else $as_nop 14268 eval "$3=no" 14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14270/* end confdefs.h. */ 14271$4 14272int 14273main (void) 14274{ 14275if (sizeof ($2)) 14276 return 0; 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281if ac_fn_c_try_compile "$LINENO" 14282then : 14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14284/* end confdefs.h. */ 14285$4 14286int 14287main (void) 14288{ 14289if (sizeof (($2))) 14290 return 0; 14291 ; 14292 return 0; 14293} 14294_ACEOF 14295if ac_fn_c_try_compile "$LINENO" 14296then : 14297 14298else $as_nop 14299 eval "$3=yes" 14300fi 14301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14302fi 14303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14304fi 14305eval ac_res=\$$3 14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14307printf "%s\n" "$ac_res" >&6; } 14308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 14309 14310} # ac_fn_c_check_type 14311ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h> 14312" 14313if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes 14314then : 14315 14316printf "%s\n" "#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1" >>confdefs.h 14317 14318 14319fi 14320 14321fi 14322 14323done 14324fi 14325 14326ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 14327if test "x$ac_cv_header_endian_h" = xyes 14328then : 14329 14330printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 14331 14332else $as_nop 14333 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 14334if test "x$ac_cv_header_sys_endian_h" = xyes 14335then : 14336 14337printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 14338 14339else $as_nop 14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5 14341printf "%s\n" "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;} 14342 14343fi 14344 14345 14346fi 14347 14348 14349if test "x$with_openssl" = "xno"; then 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5 14351printf "%s\n" "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;} 14352else 14353 # Check for OPENSSL support 14354 havs_ssl=false 14355 14356 found=false 14357 14358# Check whether --with-openssl was given. 14359if test ${with_openssl+y} 14360then : 14361 withval=$with_openssl; 14362 case "$withval" in 14363 "" | y | ye | yes | n | no) 14364 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 14365 ;; 14366 *) ssldirs="$withval" 14367 ;; 14368 esac 14369 14370else $as_nop 14371 14372 # if pkg-config is installed and openssl has installed a .pc file, 14373 # then use that information and don't search ssldirs 14374 if test -n "$ac_tool_prefix"; then 14375 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14376set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14378printf %s "checking for $ac_word... " >&6; } 14379if test ${ac_cv_prog_PKG_CONFIG+y} 14380then : 14381 printf %s "(cached) " >&6 14382else $as_nop 14383 if test -n "$PKG_CONFIG"; then 14384 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 14385else 14386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14387for as_dir in $PATH 14388do 14389 IFS=$as_save_IFS 14390 case $as_dir in #((( 14391 '') as_dir=./ ;; 14392 */) ;; 14393 *) as_dir=$as_dir/ ;; 14394 esac 14395 for ac_exec_ext in '' $ac_executable_extensions; do 14396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14397 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 14398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14399 break 2 14400 fi 14401done 14402 done 14403IFS=$as_save_IFS 14404 14405fi 14406fi 14407PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 14408if test -n "$PKG_CONFIG"; then 14409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14410printf "%s\n" "$PKG_CONFIG" >&6; } 14411else 14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14413printf "%s\n" "no" >&6; } 14414fi 14415 14416 14417fi 14418if test -z "$ac_cv_prog_PKG_CONFIG"; then 14419 ac_ct_PKG_CONFIG=$PKG_CONFIG 14420 # Extract the first word of "pkg-config", so it can be a program name with args. 14421set dummy pkg-config; ac_word=$2 14422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14423printf %s "checking for $ac_word... " >&6; } 14424if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 14425then : 14426 printf %s "(cached) " >&6 14427else $as_nop 14428 if test -n "$ac_ct_PKG_CONFIG"; then 14429 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 14430else 14431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14432for as_dir in $PATH 14433do 14434 IFS=$as_save_IFS 14435 case $as_dir in #((( 14436 '') as_dir=./ ;; 14437 */) ;; 14438 *) as_dir=$as_dir/ ;; 14439 esac 14440 for ac_exec_ext in '' $ac_executable_extensions; do 14441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14442 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 14443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14444 break 2 14445 fi 14446done 14447 done 14448IFS=$as_save_IFS 14449 14450fi 14451fi 14452ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 14453if test -n "$ac_ct_PKG_CONFIG"; then 14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 14455printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 14456else 14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14458printf "%s\n" "no" >&6; } 14459fi 14460 14461 if test "x$ac_ct_PKG_CONFIG" = x; then 14462 PKG_CONFIG="" 14463 else 14464 case $cross_compiling:$ac_tool_warned in 14465yes:) 14466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14467printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14468ac_tool_warned=yes ;; 14469esac 14470 PKG_CONFIG=$ac_ct_PKG_CONFIG 14471 fi 14472else 14473 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 14474fi 14475 14476 if test x"$PKG_CONFIG" != x""; then 14477 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 14478 if test $? = 0; then 14479 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 14480 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 14481 found=true 14482 fi 14483 fi 14484 14485 # no such luck; use some default ssldirs 14486 if ! $found; then 14487 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 14488 fi 14489 14490 14491fi 14492 14493 14494 14495 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 14496 # an 'openssl' subdirectory 14497 14498 if ! $found; then 14499 OPENSSL_INCLUDES= 14500 for ssldir in $ssldirs; do 14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 14502printf %s "checking for openssl/ssl.h in $ssldir... " >&6; } 14503 if test -f "$ssldir/include/openssl/ssl.h"; then 14504 OPENSSL_INCLUDES="-I$ssldir/include" 14505 OPENSSL_LDFLAGS="-L$ssldir/lib" 14506 OPENSSL_LIBS="-lssl -lcrypto" 14507 found=true 14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14509printf "%s\n" "yes" >&6; } 14510 break 14511 else 14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14513printf "%s\n" "no" >&6; } 14514 fi 14515 done 14516 14517 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 14518 # it will just work! 14519 fi 14520 14521 # try the preprocessor and linker with our new flags, 14522 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 14523 14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 14525printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 14526 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 14527 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 14528 14529 save_LIBS="$LIBS" 14530 save_LDFLAGS="$LDFLAGS" 14531 save_CPPFLAGS="$CPPFLAGS" 14532 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 14533 LIBS="$OPENSSL_LIBS $LIBS" 14534 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14536/* end confdefs.h. */ 14537#include <openssl/ssl.h> 14538int 14539main (void) 14540{ 14541SSL_new(NULL) 14542 ; 14543 return 0; 14544} 14545_ACEOF 14546if ac_fn_c_try_link "$LINENO" 14547then : 14548 14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14550printf "%s\n" "yes" >&6; } 14551 14552printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h 14553 14554 have_ssl=true 14555 14556else $as_nop 14557 14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14559printf "%s\n" "no" >&6; } 14560 if test "x$with_openssl" != "x"; then 14561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14562printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14563as_fn_error $? "--with-openssl was given, but test for OpenSSL failed 14564See \`config.log' for more details" "$LINENO" 5; } 14565 fi 14566 14567 14568fi 14569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14570 conftest$ac_exeext conftest.$ac_ext 14571 CPPFLAGS="$save_CPPFLAGS" 14572 LDFLAGS="$save_LDFLAGS" 14573 LIBS="$save_LIBS" 14574 14575 14576 14577 14578 14579 if $have_ssl; then 14580 case $host in 14581 *-*-cygwin) 14582 CFLAGS="$CFLAGS -DNOCRYPT" 14583 ;; 14584 esac 14585 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 14586 LIBS="$OPENSSL_LIBS $LIBS" 14587 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 14588 fi 14589fi 14590 14591# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only) 14592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 14593printf %s "checking TCP_CONGESTION socket option... " >&6; } 14594if test ${iperf3_cv_header_tcp_congestion+y} 14595then : 14596 printf %s "(cached) " >&6 14597else $as_nop 14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600#include <netinet/tcp.h> 14601int 14602main (void) 14603{ 14604int foo = TCP_CONGESTION; 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609if ac_fn_c_try_compile "$LINENO" 14610then : 14611 iperf3_cv_header_tcp_congestion=yes 14612else $as_nop 14613 iperf3_cv_header_tcp_congestion=no 14614fi 14615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14616fi 14617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 14618printf "%s\n" "$iperf3_cv_header_tcp_congestion" >&6; } 14619if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 14620 14621printf "%s\n" "#define HAVE_TCP_CONGESTION 1" >>confdefs.h 14622 14623fi 14624 14625# Check for TCP_USER_TIMEOUT sockopt (believed to be Linux 2.6.37+ only) 14626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_USER_TIMEOUT socket option" >&5 14627printf %s "checking TCP_USER_TIMEOUT socket option... " >&6; } 14628if test ${iperf3_cv_header_tcp_user_timeout+y} 14629then : 14630 printf %s "(cached) " >&6 14631else $as_nop 14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14633/* end confdefs.h. */ 14634#include <netinet/tcp.h> 14635int 14636main (void) 14637{ 14638int foo = TCP_USER_TIMEOUT; 14639 ; 14640 return 0; 14641} 14642_ACEOF 14643if ac_fn_c_try_compile "$LINENO" 14644then : 14645 iperf3_cv_header_tcp_user_timeout=yes 14646else $as_nop 14647 iperf3_cv_header_tcp_user_timeout=no 14648fi 14649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14650fi 14651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_user_timeout" >&5 14652printf "%s\n" "$iperf3_cv_header_tcp_user_timeout" >&6; } 14653if test "x$iperf3_cv_header_tcp_user_timeout" = "xyes"; then 14654 14655printf "%s\n" "#define HAVE_TCP_USER_TIMEOUT 1" >>confdefs.h 14656 14657fi 14658 14659# Check for IPv6 flowlabel support (believed to be Linux only) 14660# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 14661# don't use that file directly (we have our own stripped-down 14662# copy, see src/flowlabel.h for more details). 14663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 14664printf %s "checking IPv6 flowlabel support... " >&6; } 14665if test ${iperf3_cv_header_flowlabel+y} 14666then : 14667 printf %s "(cached) " >&6 14668else $as_nop 14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14670/* end confdefs.h. */ 14671#include <sys/types.h> 14672 #include <linux/in6.h> 14673int 14674main (void) 14675{ 14676int foo = IPV6_FLOWLABEL_MGR; 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_c_try_compile "$LINENO" 14682then : 14683 iperf3_cv_header_flowlabel=yes 14684else $as_nop 14685 iperf3_cv_header_flowlabel=no 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14688fi 14689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 14690printf "%s\n" "$iperf3_cv_header_flowlabel" >&6; } 14691if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 14692 14693printf "%s\n" "#define HAVE_FLOWLABEL 1" >>confdefs.h 14694 14695fi 14696 14697# Check for CPU affinity support. FreeBSD and Linux do this differently 14698# unfortunately so we have to check separately for each of them. 14699# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 14700# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 14701# generic concept is available. 14702 14703 for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask 14704do : 14705 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 14706ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14707if eval test \"x\$"$as_ac_var"\" = x"yes" 14708then : 14709 cat >>confdefs.h <<_ACEOF 14710#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 14711_ACEOF 14712 14713printf "%s\n" "#define HAVE_CPU_AFFINITY 1" >>confdefs.h 14714 14715fi 14716 14717done 14718 14719# Check for daemon(). Most systems have this but a few (IRIX) don't. 14720ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 14721if test "x$ac_cv_func_daemon" = xyes 14722then : 14723 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 14724 14725fi 14726 14727 14728# Check for sendfile support. FreeBSD, Linux, and MacOS all support 14729# this system call, but they're all different in terms of what headers 14730# it needs and what arguments it expects. 14731ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 14732if test "x$ac_cv_func_sendfile" = xyes 14733then : 14734 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h 14735 14736fi 14737 14738 14739# Check for getline support, used as a part of authenticated 14740# connections. 14741ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14742if test "x$ac_cv_func_getline" = xyes 14743then : 14744 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 14745 14746fi 14747 14748 14749# Check for packet pacing socket option (Linux only for now). 14750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5 14751printf %s "checking SO_MAX_PACING_RATE socket option... " >&6; } 14752if test ${iperf3_cv_header_so_max_pacing_rate+y} 14753then : 14754 printf %s "(cached) " >&6 14755else $as_nop 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758#include <sys/socket.h> 14759int 14760main (void) 14761{ 14762int foo = SO_MAX_PACING_RATE; 14763 ; 14764 return 0; 14765} 14766_ACEOF 14767if ac_fn_c_try_compile "$LINENO" 14768then : 14769 iperf3_cv_header_so_max_pacing_rate=yes 14770else $as_nop 14771 iperf3_cv_header_so_max_pacing_rate=no 14772fi 14773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14774fi 14775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5 14776printf "%s\n" "$iperf3_cv_header_so_max_pacing_rate" >&6; } 14777if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then 14778 14779printf "%s\n" "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h 14780 14781fi 14782 14783# Check for SO_BINDTODEVICE sockopt (believed to be Linux only) 14784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5 14785printf %s "checking SO_BINDTODEVICE socket option... " >&6; } 14786if test ${iperf3_cv_header_so_bindtodevice+y} 14787then : 14788 printf %s "(cached) " >&6 14789else $as_nop 14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14791/* end confdefs.h. */ 14792#include <sys/socket.h> 14793int 14794main (void) 14795{ 14796int foo = SO_BINDTODEVICE; 14797 ; 14798 return 0; 14799} 14800_ACEOF 14801if ac_fn_c_try_compile "$LINENO" 14802then : 14803 iperf3_cv_header_so_bindtodevice=yes 14804else $as_nop 14805 iperf3_cv_header_so_bindtodevice=no 14806fi 14807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14808fi 14809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5 14810printf "%s\n" "$iperf3_cv_header_so_bindtodevice" >&6; } 14811if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then 14812 14813printf "%s\n" "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h 14814 14815fi 14816 14817# Check for IP_MTU_DISCOVER (mostly on Linux) 14818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER socket option" >&5 14819printf %s "checking IP_MTU_DISCOVER socket option... " >&6; } 14820if test ${iperf3_cv_header_ip_mtu_discover+y} 14821then : 14822 printf %s "(cached) " >&6 14823else $as_nop 14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14825/* end confdefs.h. */ 14826#include <sys/types.h> 14827 #include <sys/socket.h> 14828 #include <netinet/in.h> 14829int 14830main (void) 14831{ 14832int foo = IP_MTU_DISCOVER; 14833 ; 14834 return 0; 14835} 14836_ACEOF 14837if ac_fn_c_try_compile "$LINENO" 14838then : 14839 iperf3_cv_header_ip_mtu_discover=yes 14840else $as_nop 14841 iperf3_cv_header_ip_mtu_discover=no 14842fi 14843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14844fi 14845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_mtu_discover" >&5 14846printf "%s\n" "$iperf3_cv_header_ip_mtu_discover" >&6; } 14847if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes"; then 14848 14849printf "%s\n" "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h 14850 14851fi 14852 14853# Check for IP_DONTFRAG (BSD?) 14854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAG socket option" >&5 14855printf %s "checking IP_DONTFRAG socket option... " >&6; } 14856if test ${iperf3_cv_header_ip_dontfrag+y} 14857then : 14858 printf %s "(cached) " >&6 14859else $as_nop 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14861/* end confdefs.h. */ 14862#include <sys/types.h> 14863 #include <sys/socket.h> 14864 #include <netinet/in.h> 14865int 14866main (void) 14867{ 14868int foo = IP_DONTFRAG; 14869 ; 14870 return 0; 14871} 14872_ACEOF 14873if ac_fn_c_try_compile "$LINENO" 14874then : 14875 iperf3_cv_header_ip_dontfrag=yes 14876else $as_nop 14877 iperf3_cv_header_ip_dontfrag=no 14878fi 14879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14880fi 14881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfrag" >&5 14882printf "%s\n" "$iperf3_cv_header_ip_dontfrag" >&6; } 14883if test "x$iperf3_cv_header_ip_dontfrag" = "xyes"; then 14884 14885printf "%s\n" "#define HAVE_IP_DONTFRAG 1" >>confdefs.h 14886 14887fi 14888 14889# Check for IP_DONTFRAGMENT (Windows?) 14890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAGMENT socket option" >&5 14891printf %s "checking IP_DONTFRAGMENT socket option... " >&6; } 14892if test ${iperf3_cv_header_ip_dontfragment+y} 14893then : 14894 printf %s "(cached) " >&6 14895else $as_nop 14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14897/* end confdefs.h. */ 14898#include <sys/types.h> 14899 #include <sys/socket.h> 14900 #include <netinet/in.h> 14901int 14902main (void) 14903{ 14904int foo = IP_DONTFRAGMENT; 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909if ac_fn_c_try_compile "$LINENO" 14910then : 14911 iperf3_cv_header_ip_dontfragment=yes 14912else $as_nop 14913 iperf3_cv_header_ip_dontfragment=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14916fi 14917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfragment" >&5 14918printf "%s\n" "$iperf3_cv_header_ip_dontfragment" >&6; } 14919if test "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then 14920 14921printf "%s\n" "#define HAVE_IP_DONTFRAGMENT 1" >>confdefs.h 14922 14923fi 14924 14925# Check for IP DF support 14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking any kind of DF socket option" >&5 14927printf %s "checking any kind of DF socket option... " >&6; } 14928if test ${iperf3_cv_header_dontfragment+y} 14929then : 14930 printf %s "(cached) " >&6 14931else $as_nop 14932 if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes" -o "x$iperf3_cv_header_ip_dontfrag" = "xyes" -o "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then 14933 iperf3_cv_header_dontfragment=yes 14934else 14935 iperf3_cv_header_dontfragment=no 14936fi 14937fi 14938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5 14939printf "%s\n" "$iperf3_cv_header_dontfragment" >&6; } 14940 14941if test "x$iperf3_cv_header_dontfragment" = "xyes"; then 14942 14943printf "%s\n" "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h 14944 14945fi 14946 14947# 14948# Check for tcpi_snd_wnd in struct tcp_info 14949# 14950ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_snd_wnd" "ac_cv_member_struct_tcp_info_tcpi_snd_wnd" "#ifdef HAVE_LINUX_TCP_H 14951#include <linux/tcp.h> 14952#else 14953#include <netinet/tcp.h> 14954#endif 14955 14956" 14957if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes 14958then : 14959 iperf3_cv_header_tcp_info_snd_wnd=yes 14960else $as_nop 14961 iperf3_cv_header_tcp_info_snd_wnd=no 14962fi 14963 14964 14965if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then 14966 14967printf "%s\n" "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h 14968 14969fi 14970 14971# Check if we need -lrt for clock_gettime 14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14973printf %s "checking for library containing clock_gettime... " >&6; } 14974if test ${ac_cv_search_clock_gettime+y} 14975then : 14976 printf %s "(cached) " >&6 14977else $as_nop 14978 ac_func_search_save_LIBS=$LIBS 14979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980/* end confdefs.h. */ 14981 14982/* Override any GCC internal prototype to avoid an error. 14983 Use char because int might match the return type of a GCC 14984 builtin and then its argument prototype would still apply. */ 14985char clock_gettime (); 14986int 14987main (void) 14988{ 14989return clock_gettime (); 14990 ; 14991 return 0; 14992} 14993_ACEOF 14994for ac_lib in '' rt posix4 14995do 14996 if test -z "$ac_lib"; then 14997 ac_res="none required" 14998 else 14999 ac_res=-l$ac_lib 15000 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15001 fi 15002 if ac_fn_c_try_link "$LINENO" 15003then : 15004 ac_cv_search_clock_gettime=$ac_res 15005fi 15006rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15007 conftest$ac_exeext 15008 if test ${ac_cv_search_clock_gettime+y} 15009then : 15010 break 15011fi 15012done 15013if test ${ac_cv_search_clock_gettime+y} 15014then : 15015 15016else $as_nop 15017 ac_cv_search_clock_gettime=no 15018fi 15019rm conftest.$ac_ext 15020LIBS=$ac_func_search_save_LIBS 15021fi 15022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 15023printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 15024ac_res=$ac_cv_search_clock_gettime 15025if test "$ac_res" != no 15026then : 15027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15028 15029fi 15030 15031# Check for clock_gettime support 15032ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 15033if test "x$ac_cv_func_clock_gettime" = xyes 15034then : 15035 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 15036 15037fi 15038 15039 15040ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec" 15041 15042cat >confcache <<\_ACEOF 15043# This file is a shell script that caches the results of configure 15044# tests run on this system so they can be shared between configure 15045# scripts and configure runs, see configure's option --config-cache. 15046# It is not useful on other systems. If it contains results you don't 15047# want to keep, you may remove or edit it. 15048# 15049# config.status only pays attention to the cache file if you give it 15050# the --recheck option to rerun configure. 15051# 15052# `ac_cv_env_foo' variables (set or unset) will be overridden when 15053# loading this file, other *unset* `ac_cv_foo' will be assigned the 15054# following values. 15055 15056_ACEOF 15057 15058# The following way of writing the cache mishandles newlines in values, 15059# but we know of no workaround that is simple, portable, and efficient. 15060# So, we kill variables containing newlines. 15061# Ultrix sh set writes to stderr and can't be redirected directly, 15062# and sets the high bit in the cache file unless we assign to the vars. 15063( 15064 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15065 eval ac_val=\$$ac_var 15066 case $ac_val in #( 15067 *${as_nl}*) 15068 case $ac_var in #( 15069 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15070printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15071 esac 15072 case $ac_var in #( 15073 _ | IFS | as_nl) ;; #( 15074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15075 *) { eval $ac_var=; unset $ac_var;} ;; 15076 esac ;; 15077 esac 15078 done 15079 15080 (set) 2>&1 | 15081 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15082 *${as_nl}ac_space=\ *) 15083 # `set' does not quote correctly, so add quotes: double-quote 15084 # substitution turns \\\\ into \\, and sed turns \\ into \. 15085 sed -n \ 15086 "s/'/'\\\\''/g; 15087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15088 ;; #( 15089 *) 15090 # `set' quotes correctly as required by POSIX, so do not add quotes. 15091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15092 ;; 15093 esac | 15094 sort 15095) | 15096 sed ' 15097 /^ac_cv_env_/b end 15098 t clear 15099 :clear 15100 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 15101 t end 15102 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15103 :end' >>confcache 15104if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15105 if test -w "$cache_file"; then 15106 if test "x$cache_file" != "x/dev/null"; then 15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15108printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 15109 if test ! -f "$cache_file" || test -h "$cache_file"; then 15110 cat confcache >"$cache_file" 15111 else 15112 case $cache_file in #( 15113 */* | ?:*) 15114 mv -f confcache "$cache_file"$$ && 15115 mv -f "$cache_file"$$ "$cache_file" ;; #( 15116 *) 15117 mv -f confcache "$cache_file" ;; 15118 esac 15119 fi 15120 fi 15121 else 15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15123printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 15124 fi 15125fi 15126rm -f confcache 15127 15128test "x$prefix" = xNONE && prefix=$ac_default_prefix 15129# Let make expand exec_prefix. 15130test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15131 15132DEFS=-DHAVE_CONFIG_H 15133 15134ac_libobjs= 15135ac_ltlibobjs= 15136U= 15137for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15138 # 1. Remove the extension, and $U if already installed. 15139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15140 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 15141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15142 # will be set to the directory where LIBOBJS objects are built. 15143 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15144 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15145done 15146LIBOBJS=$ac_libobjs 15147 15148LTLIBOBJS=$ac_ltlibobjs 15149 15150 15151if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then 15152 as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined. 15153Usually this means the macro was only invoked conditionally." "$LINENO" 5 15154fi 15155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15156printf %s "checking that generated files are newer than configure... " >&6; } 15157 if test -n "$am_sleep_pid"; then 15158 # Hide warnings about reused PIDs. 15159 wait $am_sleep_pid 2>/dev/null 15160 fi 15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 15162printf "%s\n" "done" >&6; } 15163 if test -n "$EXEEXT"; then 15164 am__EXEEXT_TRUE= 15165 am__EXEEXT_FALSE='#' 15166else 15167 am__EXEEXT_TRUE='#' 15168 am__EXEEXT_FALSE= 15169fi 15170 15171if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15172 as_fn_error $? "conditional \"AMDEP\" was never defined. 15173Usually this means the macro was only invoked conditionally." "$LINENO" 5 15174fi 15175if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15176 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15177Usually this means the macro was only invoked conditionally." "$LINENO" 5 15178fi 15179if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15180 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15181Usually this means the macro was only invoked conditionally." "$LINENO" 5 15182fi 15183if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15184 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15185Usually this means the macro was only invoked conditionally." "$LINENO" 5 15186fi 15187if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then 15188 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined. 15189Usually this means the macro was only invoked conditionally." "$LINENO" 5 15190fi 15191 15192: "${CONFIG_STATUS=./config.status}" 15193ac_write_fail=0 15194ac_clean_files_save=$ac_clean_files 15195ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15197printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 15198as_write_fail=0 15199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15200#! $SHELL 15201# Generated by $as_me. 15202# Run this file to recreate the current configuration. 15203# Compiler output produced by configure, useful for debugging 15204# configure, is in config.log if it exists. 15205 15206debug=false 15207ac_cs_recheck=false 15208ac_cs_silent=false 15209 15210SHELL=\${CONFIG_SHELL-$SHELL} 15211export SHELL 15212_ASEOF 15213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15214## -------------------- ## 15215## M4sh Initialization. ## 15216## -------------------- ## 15217 15218# Be more Bourne compatible 15219DUALCASE=1; export DUALCASE # for MKS sh 15220as_nop=: 15221if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 15222then : 15223 emulate sh 15224 NULLCMD=: 15225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15226 # is contrary to our usage. Disable this feature. 15227 alias -g '${1+"$@"}'='"$@"' 15228 setopt NO_GLOB_SUBST 15229else $as_nop 15230 case `(set -o) 2>/dev/null` in #( 15231 *posix*) : 15232 set -o posix ;; #( 15233 *) : 15234 ;; 15235esac 15236fi 15237 15238 15239 15240# Reset variables that may have inherited troublesome values from 15241# the environment. 15242 15243# IFS needs to be set, to space, tab, and newline, in precisely that order. 15244# (If _AS_PATH_WALK were called with IFS unset, it would have the 15245# side effect of setting IFS to empty, thus disabling word splitting.) 15246# Quoting is to prevent editors from complaining about space-tab. 15247as_nl=' 15248' 15249export as_nl 15250IFS=" "" $as_nl" 15251 15252PS1='$ ' 15253PS2='> ' 15254PS4='+ ' 15255 15256# Ensure predictable behavior from utilities with locale-dependent output. 15257LC_ALL=C 15258export LC_ALL 15259LANGUAGE=C 15260export LANGUAGE 15261 15262# We cannot yet rely on "unset" to work, but we need these variables 15263# to be unset--not just set to an empty or harmless value--now, to 15264# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 15265# also avoids known problems related to "unset" and subshell syntax 15266# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 15267for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 15268do eval test \${$as_var+y} \ 15269 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15270done 15271 15272# Ensure that fds 0, 1, and 2 are open. 15273if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 15274if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 15275if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 15276 15277# The user is always right. 15278if ${PATH_SEPARATOR+false} :; then 15279 PATH_SEPARATOR=: 15280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15282 PATH_SEPARATOR=';' 15283 } 15284fi 15285 15286 15287# Find who we are. Look in the path if we contain no directory separator. 15288as_myself= 15289case $0 in #(( 15290 *[\\/]* ) as_myself=$0 ;; 15291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15292for as_dir in $PATH 15293do 15294 IFS=$as_save_IFS 15295 case $as_dir in #((( 15296 '') as_dir=./ ;; 15297 */) ;; 15298 *) as_dir=$as_dir/ ;; 15299 esac 15300 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 15301 done 15302IFS=$as_save_IFS 15303 15304 ;; 15305esac 15306# We did not find ourselves, most probably we were run as `sh COMMAND' 15307# in which case we are not to be found in the path. 15308if test "x$as_myself" = x; then 15309 as_myself=$0 15310fi 15311if test ! -f "$as_myself"; then 15312 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15313 exit 1 15314fi 15315 15316 15317 15318# as_fn_error STATUS ERROR [LINENO LOG_FD] 15319# ---------------------------------------- 15320# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15321# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15322# script with STATUS, using 1 if that was 0. 15323as_fn_error () 15324{ 15325 as_status=$1; test $as_status -eq 0 && as_status=1 15326 if test "$4"; then 15327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15329 fi 15330 printf "%s\n" "$as_me: error: $2" >&2 15331 as_fn_exit $as_status 15332} # as_fn_error 15333 15334 15335 15336# as_fn_set_status STATUS 15337# ----------------------- 15338# Set $? to STATUS, without forking. 15339as_fn_set_status () 15340{ 15341 return $1 15342} # as_fn_set_status 15343 15344# as_fn_exit STATUS 15345# ----------------- 15346# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15347as_fn_exit () 15348{ 15349 set +e 15350 as_fn_set_status $1 15351 exit $1 15352} # as_fn_exit 15353 15354# as_fn_unset VAR 15355# --------------- 15356# Portably unset VAR. 15357as_fn_unset () 15358{ 15359 { eval $1=; unset $1;} 15360} 15361as_unset=as_fn_unset 15362 15363# as_fn_append VAR VALUE 15364# ---------------------- 15365# Append the text in VALUE to the end of the definition contained in VAR. Take 15366# advantage of any shell optimizations that allow amortized linear growth over 15367# repeated appends, instead of the typical quadratic growth present in naive 15368# implementations. 15369if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 15370then : 15371 eval 'as_fn_append () 15372 { 15373 eval $1+=\$2 15374 }' 15375else $as_nop 15376 as_fn_append () 15377 { 15378 eval $1=\$$1\$2 15379 } 15380fi # as_fn_append 15381 15382# as_fn_arith ARG... 15383# ------------------ 15384# Perform arithmetic evaluation on the ARGs, and store the result in the 15385# global $as_val. Take advantage of shells that can avoid forks. The arguments 15386# must be portable across $(()) and expr. 15387if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 15388then : 15389 eval 'as_fn_arith () 15390 { 15391 as_val=$(( $* )) 15392 }' 15393else $as_nop 15394 as_fn_arith () 15395 { 15396 as_val=`expr "$@" || test $? -eq 1` 15397 } 15398fi # as_fn_arith 15399 15400 15401if expr a : '\(a\)' >/dev/null 2>&1 && 15402 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15403 as_expr=expr 15404else 15405 as_expr=false 15406fi 15407 15408if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15409 as_basename=basename 15410else 15411 as_basename=false 15412fi 15413 15414if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15415 as_dirname=dirname 15416else 15417 as_dirname=false 15418fi 15419 15420as_me=`$as_basename -- "$0" || 15421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15422 X"$0" : 'X\(//\)$' \| \ 15423 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15424printf "%s\n" X/"$0" | 15425 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15426 s//\1/ 15427 q 15428 } 15429 /^X\/\(\/\/\)$/{ 15430 s//\1/ 15431 q 15432 } 15433 /^X\/\(\/\).*/{ 15434 s//\1/ 15435 q 15436 } 15437 s/.*/./; q'` 15438 15439# Avoid depending upon Character Ranges. 15440as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15442as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15443as_cr_digits='0123456789' 15444as_cr_alnum=$as_cr_Letters$as_cr_digits 15445 15446 15447# Determine whether it's possible to make 'echo' print without a newline. 15448# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 15449# for compatibility with existing Makefiles. 15450ECHO_C= ECHO_N= ECHO_T= 15451case `echo -n x` in #((((( 15452-n*) 15453 case `echo 'xy\c'` in 15454 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15455 xy) ECHO_C='\c';; 15456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15457 ECHO_T=' ';; 15458 esac;; 15459*) 15460 ECHO_N='-n';; 15461esac 15462 15463# For backward compatibility with old third-party macros, we provide 15464# the shell variables $as_echo and $as_echo_n. New code should use 15465# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 15466as_echo='printf %s\n' 15467as_echo_n='printf %s' 15468 15469rm -f conf$$ conf$$.exe conf$$.file 15470if test -d conf$$.dir; then 15471 rm -f conf$$.dir/conf$$.file 15472else 15473 rm -f conf$$.dir 15474 mkdir conf$$.dir 2>/dev/null 15475fi 15476if (echo >conf$$.file) 2>/dev/null; then 15477 if ln -s conf$$.file conf$$ 2>/dev/null; then 15478 as_ln_s='ln -s' 15479 # ... but there are two gotchas: 15480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15482 # In both cases, we have to default to `cp -pR'. 15483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15484 as_ln_s='cp -pR' 15485 elif ln conf$$.file conf$$ 2>/dev/null; then 15486 as_ln_s=ln 15487 else 15488 as_ln_s='cp -pR' 15489 fi 15490else 15491 as_ln_s='cp -pR' 15492fi 15493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15494rmdir conf$$.dir 2>/dev/null 15495 15496 15497# as_fn_mkdir_p 15498# ------------- 15499# Create "$as_dir" as a directory, including parents if necessary. 15500as_fn_mkdir_p () 15501{ 15502 15503 case $as_dir in #( 15504 -*) as_dir=./$as_dir;; 15505 esac 15506 test -d "$as_dir" || eval $as_mkdir_p || { 15507 as_dirs= 15508 while :; do 15509 case $as_dir in #( 15510 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15511 *) as_qdir=$as_dir;; 15512 esac 15513 as_dirs="'$as_qdir' $as_dirs" 15514 as_dir=`$as_dirname -- "$as_dir" || 15515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15516 X"$as_dir" : 'X\(//\)[^/]' \| \ 15517 X"$as_dir" : 'X\(//\)$' \| \ 15518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15519printf "%s\n" X"$as_dir" | 15520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15521 s//\1/ 15522 q 15523 } 15524 /^X\(\/\/\)[^/].*/{ 15525 s//\1/ 15526 q 15527 } 15528 /^X\(\/\/\)$/{ 15529 s//\1/ 15530 q 15531 } 15532 /^X\(\/\).*/{ 15533 s//\1/ 15534 q 15535 } 15536 s/.*/./; q'` 15537 test -d "$as_dir" && break 15538 done 15539 test -z "$as_dirs" || eval "mkdir $as_dirs" 15540 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15541 15542 15543} # as_fn_mkdir_p 15544if mkdir -p . 2>/dev/null; then 15545 as_mkdir_p='mkdir -p "$as_dir"' 15546else 15547 test -d ./-p && rmdir ./-p 15548 as_mkdir_p=false 15549fi 15550 15551 15552# as_fn_executable_p FILE 15553# ----------------------- 15554# Test if FILE is an executable regular file. 15555as_fn_executable_p () 15556{ 15557 test -f "$1" && test -x "$1" 15558} # as_fn_executable_p 15559as_test_x='test -x' 15560as_executable_p=as_fn_executable_p 15561 15562# Sed expression to map a string onto a valid CPP name. 15563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15564 15565# Sed expression to map a string onto a valid variable name. 15566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15567 15568 15569exec 6>&1 15570## ----------------------------------- ## 15571## Main body of $CONFIG_STATUS script. ## 15572## ----------------------------------- ## 15573_ASEOF 15574test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15575 15576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15577# Save the log message, to keep $0 and so on meaningful, and to 15578# report actual input values of CONFIG_FILES etc. instead of their 15579# values after options handling. 15580ac_log=" 15581This file was extended by iperf $as_me 3.11, which was 15582generated by GNU Autoconf 2.71. Invocation command line was 15583 15584 CONFIG_FILES = $CONFIG_FILES 15585 CONFIG_HEADERS = $CONFIG_HEADERS 15586 CONFIG_LINKS = $CONFIG_LINKS 15587 CONFIG_COMMANDS = $CONFIG_COMMANDS 15588 $ $0 $@ 15589 15590on `(hostname || uname -n) 2>/dev/null | sed 1q` 15591" 15592 15593_ACEOF 15594 15595case $ac_config_files in *" 15596"*) set x $ac_config_files; shift; ac_config_files=$*;; 15597esac 15598 15599case $ac_config_headers in *" 15600"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15601esac 15602 15603 15604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15605# Files that config.status was made for. 15606config_files="$ac_config_files" 15607config_headers="$ac_config_headers" 15608config_commands="$ac_config_commands" 15609 15610_ACEOF 15611 15612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15613ac_cs_usage="\ 15614\`$as_me' instantiates files and other configuration actions 15615from templates according to the current configuration. Unless the files 15616and actions are specified as TAGs, all are instantiated by default. 15617 15618Usage: $0 [OPTION]... [TAG]... 15619 15620 -h, --help print this help, then exit 15621 -V, --version print version number and configuration settings, then exit 15622 --config print configuration, then exit 15623 -q, --quiet, --silent 15624 do not print progress messages 15625 -d, --debug don't remove temporary files 15626 --recheck update $as_me by reconfiguring in the same conditions 15627 --file=FILE[:TEMPLATE] 15628 instantiate the configuration file FILE 15629 --header=FILE[:TEMPLATE] 15630 instantiate the configuration header FILE 15631 15632Configuration files: 15633$config_files 15634 15635Configuration headers: 15636$config_headers 15637 15638Configuration commands: 15639$config_commands 15640 15641Report bugs to <https://github.com/esnet/iperf>. 15642iperf home page: <https://software.es.net/iperf/>." 15643 15644_ACEOF 15645ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 15646ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 15647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15648ac_cs_config='$ac_cs_config_escaped' 15649ac_cs_version="\\ 15650iperf config.status 3.11 15651configured by $0, generated by GNU Autoconf 2.71, 15652 with options \\"\$ac_cs_config\\" 15653 15654Copyright (C) 2021 Free Software Foundation, Inc. 15655This config.status script is free software; the Free Software Foundation 15656gives unlimited permission to copy, distribute and modify it." 15657 15658ac_pwd='$ac_pwd' 15659srcdir='$srcdir' 15660INSTALL='$INSTALL' 15661MKDIR_P='$MKDIR_P' 15662AWK='$AWK' 15663test -n "\$AWK" || AWK=awk 15664_ACEOF 15665 15666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15667# The default lists apply if the user does not specify any file. 15668ac_need_defaults=: 15669while test $# != 0 15670do 15671 case $1 in 15672 --*=?*) 15673 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15675 ac_shift=: 15676 ;; 15677 --*=) 15678 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15679 ac_optarg= 15680 ac_shift=: 15681 ;; 15682 *) 15683 ac_option=$1 15684 ac_optarg=$2 15685 ac_shift=shift 15686 ;; 15687 esac 15688 15689 case $ac_option in 15690 # Handling of the options. 15691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15692 ac_cs_recheck=: ;; 15693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15694 printf "%s\n" "$ac_cs_version"; exit ;; 15695 --config | --confi | --conf | --con | --co | --c ) 15696 printf "%s\n" "$ac_cs_config"; exit ;; 15697 --debug | --debu | --deb | --de | --d | -d ) 15698 debug=: ;; 15699 --file | --fil | --fi | --f ) 15700 $ac_shift 15701 case $ac_optarg in 15702 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15703 '') as_fn_error $? "missing file argument" ;; 15704 esac 15705 as_fn_append CONFIG_FILES " '$ac_optarg'" 15706 ac_need_defaults=false;; 15707 --header | --heade | --head | --hea ) 15708 $ac_shift 15709 case $ac_optarg in 15710 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15711 esac 15712 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15713 ac_need_defaults=false;; 15714 --he | --h) 15715 # Conflict between --help and --header 15716 as_fn_error $? "ambiguous option: \`$1' 15717Try \`$0 --help' for more information.";; 15718 --help | --hel | -h ) 15719 printf "%s\n" "$ac_cs_usage"; exit ;; 15720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15721 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15722 ac_cs_silent=: ;; 15723 15724 # This is an error. 15725 -*) as_fn_error $? "unrecognized option: \`$1' 15726Try \`$0 --help' for more information." ;; 15727 15728 *) as_fn_append ac_config_targets " $1" 15729 ac_need_defaults=false ;; 15730 15731 esac 15732 shift 15733done 15734 15735ac_configure_extra_args= 15736 15737if $ac_cs_silent; then 15738 exec 6>/dev/null 15739 ac_configure_extra_args="$ac_configure_extra_args --silent" 15740fi 15741 15742_ACEOF 15743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15744if \$ac_cs_recheck; then 15745 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15746 shift 15747 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 15748 CONFIG_SHELL='$SHELL' 15749 export CONFIG_SHELL 15750 exec "\$@" 15751fi 15752 15753_ACEOF 15754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15755exec 5>>config.log 15756{ 15757 echo 15758 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15759## Running $as_me. ## 15760_ASBOX 15761 printf "%s\n" "$ac_log" 15762} >&5 15763 15764_ACEOF 15765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15766# 15767# INIT-COMMANDS 15768# 15769AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 15770 15771 15772# The HP-UX ksh and POSIX shell print the target directory to stdout 15773# if CDPATH is set. 15774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15775 15776sed_quote_subst='$sed_quote_subst' 15777double_quote_subst='$double_quote_subst' 15778delay_variable_subst='$delay_variable_subst' 15779macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15780macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15781enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15782enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15783pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15784enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15785shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15786SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15787ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15788PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15789host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15790host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15791host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15792build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15793build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15794build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15795SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15796Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15797GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15798EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15799FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15800LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15801NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15802LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15803max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15804ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15805exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15806lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15807lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15808lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15809lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15810lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15811reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15812reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15813FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 15814OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15815deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15816file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15817file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15818want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15819DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15820sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15821AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15822lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 15823AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15824archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15825STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15826RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15827old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15828old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15829old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15830lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15831CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15832CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15833compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15834GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15835lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15836lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15837lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15838lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15839lt_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"`' 15840lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15841nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15842lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15843lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15844objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15845MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15846lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15847lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15848lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15849lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15850lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15851need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15852MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15853DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15854NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15855LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15856OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15857OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15858libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15859shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15860extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15861archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15862enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15863export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15864whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15865compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15866old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15867old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15868archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15869archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15870module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15871module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15872with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15873allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15874no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15875hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15876hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15877hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15878hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15879hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15880hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15881hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15882inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15883link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15884always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15885export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15886exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15887include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15888prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15889postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15890file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15891variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15892need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15893need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15894version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15895runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15896shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15897shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15898libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15899library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15900soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15901install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15902postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15903postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15904finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15905finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15906hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15907sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15908configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15909configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15910hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15911enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15912enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15913enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15914old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15915striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15916 15917LTCC='$LTCC' 15918LTCFLAGS='$LTCFLAGS' 15919compiler='$compiler_DEFAULT' 15920 15921# A function that is used when there is no print builtin or printf. 15922func_fallback_echo () 15923{ 15924 eval 'cat <<_LTECHO_EOF 15925\$1 15926_LTECHO_EOF' 15927} 15928 15929# Quote evaled strings. 15930for var in SHELL \ 15931ECHO \ 15932PATH_SEPARATOR \ 15933SED \ 15934GREP \ 15935EGREP \ 15936FGREP \ 15937LD \ 15938NM \ 15939LN_S \ 15940lt_SP2NL \ 15941lt_NL2SP \ 15942reload_flag \ 15943FILECMD \ 15944OBJDUMP \ 15945deplibs_check_method \ 15946file_magic_cmd \ 15947file_magic_glob \ 15948want_nocaseglob \ 15949DLLTOOL \ 15950sharedlib_from_linklib_cmd \ 15951AR \ 15952archiver_list_spec \ 15953STRIP \ 15954RANLIB \ 15955CC \ 15956CFLAGS \ 15957compiler \ 15958lt_cv_sys_global_symbol_pipe \ 15959lt_cv_sys_global_symbol_to_cdecl \ 15960lt_cv_sys_global_symbol_to_import \ 15961lt_cv_sys_global_symbol_to_c_name_address \ 15962lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15963lt_cv_nm_interface \ 15964nm_file_list_spec \ 15965lt_cv_truncate_bin \ 15966lt_prog_compiler_no_builtin_flag \ 15967lt_prog_compiler_pic \ 15968lt_prog_compiler_wl \ 15969lt_prog_compiler_static \ 15970lt_cv_prog_compiler_c_o \ 15971need_locks \ 15972MANIFEST_TOOL \ 15973DSYMUTIL \ 15974NMEDIT \ 15975LIPO \ 15976OTOOL \ 15977OTOOL64 \ 15978shrext_cmds \ 15979export_dynamic_flag_spec \ 15980whole_archive_flag_spec \ 15981compiler_needs_object \ 15982with_gnu_ld \ 15983allow_undefined_flag \ 15984no_undefined_flag \ 15985hardcode_libdir_flag_spec \ 15986hardcode_libdir_separator \ 15987exclude_expsyms \ 15988include_expsyms \ 15989file_list_spec \ 15990variables_saved_for_relink \ 15991libname_spec \ 15992library_names_spec \ 15993soname_spec \ 15994install_override_mode \ 15995finish_eval \ 15996old_striplib \ 15997striplib; do 15998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15999 *[\\\\\\\`\\"\\\$]*) 16000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16001 ;; 16002 *) 16003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16004 ;; 16005 esac 16006done 16007 16008# Double-quote double-evaled strings. 16009for var in reload_cmds \ 16010old_postinstall_cmds \ 16011old_postuninstall_cmds \ 16012old_archive_cmds \ 16013extract_expsyms_cmds \ 16014old_archive_from_new_cmds \ 16015old_archive_from_expsyms_cmds \ 16016archive_cmds \ 16017archive_expsym_cmds \ 16018module_cmds \ 16019module_expsym_cmds \ 16020export_symbols_cmds \ 16021prelink_cmds \ 16022postlink_cmds \ 16023postinstall_cmds \ 16024postuninstall_cmds \ 16025finish_cmds \ 16026sys_lib_search_path_spec \ 16027configure_time_dlsearch_path \ 16028configure_time_lt_sys_library_path; do 16029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16030 *[\\\\\\\`\\"\\\$]*) 16031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16032 ;; 16033 *) 16034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16035 ;; 16036 esac 16037done 16038 16039ac_aux_dir='$ac_aux_dir' 16040 16041# See if we are running on zsh, and set the options that allow our 16042# commands through without removal of \ escapes INIT. 16043if test -n "\${ZSH_VERSION+set}"; then 16044 setopt NO_GLOB_SUBST 16045fi 16046 16047 16048 PACKAGE='$PACKAGE' 16049 VERSION='$VERSION' 16050 RM='$RM' 16051 ofile='$ofile' 16052 16053 16054 16055 16056_ACEOF 16057 16058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16059 16060# Handling of arguments. 16061for ac_config_target in $ac_config_targets 16062do 16063 case $ac_config_target in 16064 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16065 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16066 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 16067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16068 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16069 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 16070 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 16071 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;; 16072 16073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16074 esac 16075done 16076 16077 16078# If the user did not use the arguments to specify the items to instantiate, 16079# then the envvar interface is used. Set only those that are not. 16080# We use the long form for the default assignment because of an extremely 16081# bizarre bug on SunOS 4.1.3. 16082if $ac_need_defaults; then 16083 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 16084 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 16085 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 16086fi 16087 16088# Have a temporary directory for convenience. Make it in the build tree 16089# simply because there is no reason against having it here, and in addition, 16090# creating and moving files from /tmp can sometimes cause problems. 16091# Hook for its removal unless debugging. 16092# Note that there is a small window in which the directory will not be cleaned: 16093# after its creation but before its name has been assigned to `$tmp'. 16094$debug || 16095{ 16096 tmp= ac_tmp= 16097 trap 'exit_status=$? 16098 : "${ac_tmp:=$tmp}" 16099 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16100' 0 16101 trap 'as_fn_exit 1' 1 2 13 15 16102} 16103# Create a (secure) tmp directory for tmp files. 16104 16105{ 16106 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16107 test -d "$tmp" 16108} || 16109{ 16110 tmp=./conf$$-$RANDOM 16111 (umask 077 && mkdir "$tmp") 16112} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16113ac_tmp=$tmp 16114 16115# Set up the scripts for CONFIG_FILES section. 16116# No need to generate them if there are no CONFIG_FILES. 16117# This happens for instance with `./config.status config.h'. 16118if test -n "$CONFIG_FILES"; then 16119 16120 16121ac_cr=`echo X | tr X '\015'` 16122# On cygwin, bash can eat \r inside `` if the user requested igncr. 16123# But we know of no other shell where ac_cr would be empty at this 16124# point, so we can use a bashism as a fallback. 16125if test "x$ac_cr" = x; then 16126 eval ac_cr=\$\'\\r\' 16127fi 16128ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16129if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16130 ac_cs_awk_cr='\\r' 16131else 16132 ac_cs_awk_cr=$ac_cr 16133fi 16134 16135echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16136_ACEOF 16137 16138 16139{ 16140 echo "cat >conf$$subs.awk <<_ACEOF" && 16141 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16142 echo "_ACEOF" 16143} >conf$$subs.sh || 16144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16145ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16146ac_delim='%!_!# ' 16147for ac_last_try in false false false false false :; do 16148 . ./conf$$subs.sh || 16149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16150 16151 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16152 if test $ac_delim_n = $ac_delim_num; then 16153 break 16154 elif $ac_last_try; then 16155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16156 else 16157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16158 fi 16159done 16160rm -f conf$$subs.sh 16161 16162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16163cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16164_ACEOF 16165sed -n ' 16166h 16167s/^/S["/; s/!.*/"]=/ 16168p 16169g 16170s/^[^!]*!// 16171:repl 16172t repl 16173s/'"$ac_delim"'$// 16174t delim 16175:nl 16176h 16177s/\(.\{148\}\)..*/\1/ 16178t more1 16179s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16180p 16181n 16182b repl 16183:more1 16184s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16185p 16186g 16187s/.\{148\}// 16188t nl 16189:delim 16190h 16191s/\(.\{148\}\)..*/\1/ 16192t more2 16193s/["\\]/\\&/g; s/^/"/; s/$/"/ 16194p 16195b 16196:more2 16197s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16198p 16199g 16200s/.\{148\}// 16201t delim 16202' <conf$$subs.awk | sed ' 16203/^[^""]/{ 16204 N 16205 s/\n// 16206} 16207' >>$CONFIG_STATUS || ac_write_fail=1 16208rm -f conf$$subs.awk 16209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16210_ACAWK 16211cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16212 for (key in S) S_is_set[key] = 1 16213 FS = "" 16214 16215} 16216{ 16217 line = $ 0 16218 nfields = split(line, field, "@") 16219 substed = 0 16220 len = length(field[1]) 16221 for (i = 2; i < nfields; i++) { 16222 key = field[i] 16223 keylen = length(key) 16224 if (S_is_set[key]) { 16225 value = S[key] 16226 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16227 len += length(value) + length(field[++i]) 16228 substed = 1 16229 } else 16230 len += 1 + keylen 16231 } 16232 16233 print line 16234} 16235 16236_ACAWK 16237_ACEOF 16238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16239if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16241else 16242 cat 16243fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16244 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16245_ACEOF 16246 16247# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16248# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16249# trailing colons and then remove the whole line if VPATH becomes empty 16250# (actually we leave an empty line to preserve line numbers). 16251if test "x$srcdir" = x.; then 16252 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16253h 16254s/// 16255s/^/:/ 16256s/[ ]*$/:/ 16257s/:\$(srcdir):/:/g 16258s/:\${srcdir}:/:/g 16259s/:@srcdir@:/:/g 16260s/^:*// 16261s/:*$// 16262x 16263s/\(=[ ]*\).*/\1/ 16264G 16265s/\n// 16266s/^[^=]*=[ ]*$// 16267}' 16268fi 16269 16270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16271fi # test -n "$CONFIG_FILES" 16272 16273# Set up the scripts for CONFIG_HEADERS section. 16274# No need to generate them if there are no CONFIG_HEADERS. 16275# This happens for instance with `./config.status Makefile'. 16276if test -n "$CONFIG_HEADERS"; then 16277cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16278BEGIN { 16279_ACEOF 16280 16281# Transform confdefs.h into an awk script `defines.awk', embedded as 16282# here-document in config.status, that substitutes the proper values into 16283# config.h.in to produce config.h. 16284 16285# Create a delimiter string that does not exist in confdefs.h, to ease 16286# handling of long lines. 16287ac_delim='%!_!# ' 16288for ac_last_try in false false :; do 16289 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16290 if test -z "$ac_tt"; then 16291 break 16292 elif $ac_last_try; then 16293 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16294 else 16295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16296 fi 16297done 16298 16299# For the awk script, D is an array of macro values keyed by name, 16300# likewise P contains macro parameters if any. Preserve backslash 16301# newline sequences. 16302 16303ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16304sed -n ' 16305s/.\{148\}/&'"$ac_delim"'/g 16306t rset 16307:rset 16308s/^[ ]*#[ ]*define[ ][ ]*/ / 16309t def 16310d 16311:def 16312s/\\$// 16313t bsnl 16314s/["\\]/\\&/g 16315s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16316D["\1"]=" \3"/p 16317s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16318d 16319:bsnl 16320s/["\\]/\\&/g 16321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16322D["\1"]=" \3\\\\\\n"\\/p 16323t cont 16324s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16325t cont 16326d 16327:cont 16328n 16329s/.\{148\}/&'"$ac_delim"'/g 16330t clear 16331:clear 16332s/\\$// 16333t bsnlc 16334s/["\\]/\\&/g; s/^/"/; s/$/"/p 16335d 16336:bsnlc 16337s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16338b cont 16339' <confdefs.h | sed ' 16340s/'"$ac_delim"'/"\\\ 16341"/g' >>$CONFIG_STATUS || ac_write_fail=1 16342 16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16344 for (key in D) D_is_set[key] = 1 16345 FS = "" 16346} 16347/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16348 line = \$ 0 16349 split(line, arg, " ") 16350 if (arg[1] == "#") { 16351 defundef = arg[2] 16352 mac1 = arg[3] 16353 } else { 16354 defundef = substr(arg[1], 2) 16355 mac1 = arg[2] 16356 } 16357 split(mac1, mac2, "(") #) 16358 macro = mac2[1] 16359 prefix = substr(line, 1, index(line, defundef) - 1) 16360 if (D_is_set[macro]) { 16361 # Preserve the white space surrounding the "#". 16362 print prefix "define", macro P[macro] D[macro] 16363 next 16364 } else { 16365 # Replace #undef with comments. This is necessary, for example, 16366 # in the case of _POSIX_SOURCE, which is predefined and required 16367 # on some systems where configure will not decide to define it. 16368 if (defundef == "undef") { 16369 print "/*", prefix defundef, macro, "*/" 16370 next 16371 } 16372 } 16373} 16374{ print } 16375_ACAWK 16376_ACEOF 16377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16378 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16379fi # test -n "$CONFIG_HEADERS" 16380 16381 16382eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16383shift 16384for ac_tag 16385do 16386 case $ac_tag in 16387 :[FHLC]) ac_mode=$ac_tag; continue;; 16388 esac 16389 case $ac_mode$ac_tag in 16390 :[FHL]*:*);; 16391 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16392 :[FH]-) ac_tag=-:-;; 16393 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16394 esac 16395 ac_save_IFS=$IFS 16396 IFS=: 16397 set x $ac_tag 16398 IFS=$ac_save_IFS 16399 shift 16400 ac_file=$1 16401 shift 16402 16403 case $ac_mode in 16404 :L) ac_source=$1;; 16405 :[FH]) 16406 ac_file_inputs= 16407 for ac_f 16408 do 16409 case $ac_f in 16410 -) ac_f="$ac_tmp/stdin";; 16411 *) # Look for the file first in the build tree, then in the source tree 16412 # (if the path is not absolute). The absolute path cannot be DOS-style, 16413 # because $ac_f cannot contain `:'. 16414 test -f "$ac_f" || 16415 case $ac_f in 16416 [\\/$]*) false;; 16417 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16418 esac || 16419 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16420 esac 16421 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16422 as_fn_append ac_file_inputs " '$ac_f'" 16423 done 16424 16425 # Let's still pretend it is `configure' which instantiates (i.e., don't 16426 # use $as_me), people would be surprised to read: 16427 # /* config.h. Generated by config.status. */ 16428 configure_input='Generated from '` 16429 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16430 `' by configure.' 16431 if test x"$ac_file" != x-; then 16432 configure_input="$ac_file. $configure_input" 16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16434printf "%s\n" "$as_me: creating $ac_file" >&6;} 16435 fi 16436 # Neutralize special characters interpreted by sed in replacement strings. 16437 case $configure_input in #( 16438 *\&* | *\|* | *\\* ) 16439 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 16440 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16441 *) ac_sed_conf_input=$configure_input;; 16442 esac 16443 16444 case $ac_tag in 16445 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16447 esac 16448 ;; 16449 esac 16450 16451 ac_dir=`$as_dirname -- "$ac_file" || 16452$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16453 X"$ac_file" : 'X\(//\)[^/]' \| \ 16454 X"$ac_file" : 'X\(//\)$' \| \ 16455 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16456printf "%s\n" X"$ac_file" | 16457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16458 s//\1/ 16459 q 16460 } 16461 /^X\(\/\/\)[^/].*/{ 16462 s//\1/ 16463 q 16464 } 16465 /^X\(\/\/\)$/{ 16466 s//\1/ 16467 q 16468 } 16469 /^X\(\/\).*/{ 16470 s//\1/ 16471 q 16472 } 16473 s/.*/./; q'` 16474 as_dir="$ac_dir"; as_fn_mkdir_p 16475 ac_builddir=. 16476 16477case "$ac_dir" in 16478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16479*) 16480 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 16481 # A ".." for each directory in $ac_dir_suffix. 16482 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16483 case $ac_top_builddir_sub in 16484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16486 esac ;; 16487esac 16488ac_abs_top_builddir=$ac_pwd 16489ac_abs_builddir=$ac_pwd$ac_dir_suffix 16490# for backward compatibility: 16491ac_top_builddir=$ac_top_build_prefix 16492 16493case $srcdir in 16494 .) # We are building in place. 16495 ac_srcdir=. 16496 ac_top_srcdir=$ac_top_builddir_sub 16497 ac_abs_top_srcdir=$ac_pwd ;; 16498 [\\/]* | ?:[\\/]* ) # Absolute name. 16499 ac_srcdir=$srcdir$ac_dir_suffix; 16500 ac_top_srcdir=$srcdir 16501 ac_abs_top_srcdir=$srcdir ;; 16502 *) # Relative name. 16503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16504 ac_top_srcdir=$ac_top_build_prefix$srcdir 16505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16506esac 16507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16508 16509 16510 case $ac_mode in 16511 :F) 16512 # 16513 # CONFIG_FILE 16514 # 16515 16516 case $INSTALL in 16517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16519 esac 16520 ac_MKDIR_P=$MKDIR_P 16521 case $MKDIR_P in 16522 [\\/$]* | ?:[\\/]* ) ;; 16523 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16524 esac 16525_ACEOF 16526 16527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16528# If the template does not know about datarootdir, expand it. 16529# FIXME: This hack should be removed a few years after 2.60. 16530ac_datarootdir_hack=; ac_datarootdir_seen= 16531ac_sed_dataroot=' 16532/datarootdir/ { 16533 p 16534 q 16535} 16536/@datadir@/p 16537/@docdir@/p 16538/@infodir@/p 16539/@localedir@/p 16540/@mandir@/p' 16541case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16542*datarootdir*) ac_datarootdir_seen=yes;; 16543*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16545printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16546_ACEOF 16547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16548 ac_datarootdir_hack=' 16549 s&@datadir@&$datadir&g 16550 s&@docdir@&$docdir&g 16551 s&@infodir@&$infodir&g 16552 s&@localedir@&$localedir&g 16553 s&@mandir@&$mandir&g 16554 s&\\\${datarootdir}&$datarootdir&g' ;; 16555esac 16556_ACEOF 16557 16558# Neutralize VPATH when `$srcdir' = `.'. 16559# Shell code in configure.ac might set extrasub. 16560# FIXME: do we really want to maintain this feature? 16561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16562ac_sed_extra="$ac_vpsub 16563$extrasub 16564_ACEOF 16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16566:t 16567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16568s|@configure_input@|$ac_sed_conf_input|;t t 16569s&@top_builddir@&$ac_top_builddir_sub&;t t 16570s&@top_build_prefix@&$ac_top_build_prefix&;t t 16571s&@srcdir@&$ac_srcdir&;t t 16572s&@abs_srcdir@&$ac_abs_srcdir&;t t 16573s&@top_srcdir@&$ac_top_srcdir&;t t 16574s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16575s&@builddir@&$ac_builddir&;t t 16576s&@abs_builddir@&$ac_abs_builddir&;t t 16577s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16578s&@INSTALL@&$ac_INSTALL&;t t 16579s&@MKDIR_P@&$ac_MKDIR_P&;t t 16580$ac_datarootdir_hack 16581" 16582eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16583 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16584 16585test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16586 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16588 "$ac_tmp/out"`; test -z "$ac_out"; } && 16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16590which seems to be undefined. Please make sure it is defined" >&5 16591printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16592which seems to be undefined. Please make sure it is defined" >&2;} 16593 16594 rm -f "$ac_tmp/stdin" 16595 case $ac_file in 16596 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16597 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16598 esac \ 16599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16600 ;; 16601 :H) 16602 # 16603 # CONFIG_HEADER 16604 # 16605 if test x"$ac_file" != x-; then 16606 { 16607 printf "%s\n" "/* $configure_input */" >&1 \ 16608 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16609 } >"$ac_tmp/config.h" \ 16610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16611 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16613printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 16614 else 16615 rm -f "$ac_file" 16616 mv "$ac_tmp/config.h" "$ac_file" \ 16617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16618 fi 16619 else 16620 printf "%s\n" "/* $configure_input */" >&1 \ 16621 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16622 || as_fn_error $? "could not create -" "$LINENO" 5 16623 fi 16624# Compute "$ac_file"'s index in $config_headers. 16625_am_arg="$ac_file" 16626_am_stamp_count=1 16627for _am_header in $config_headers :; do 16628 case $_am_header in 16629 $_am_arg | $_am_arg:* ) 16630 break ;; 16631 * ) 16632 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16633 esac 16634done 16635echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16636$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16637 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16638 X"$_am_arg" : 'X\(//\)$' \| \ 16639 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16640printf "%s\n" X"$_am_arg" | 16641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16642 s//\1/ 16643 q 16644 } 16645 /^X\(\/\/\)[^/].*/{ 16646 s//\1/ 16647 q 16648 } 16649 /^X\(\/\/\)$/{ 16650 s//\1/ 16651 q 16652 } 16653 /^X\(\/\).*/{ 16654 s//\1/ 16655 q 16656 } 16657 s/.*/./; q'`/stamp-h$_am_stamp_count 16658 ;; 16659 16660 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16661printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 16662 ;; 16663 esac 16664 16665 16666 case $ac_file$ac_mode in 16667 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16668 # Older Autoconf quotes --file arguments for eval, but not when files 16669 # are listed without --file. Let's play safe and only enable the eval 16670 # if we detect the quoting. 16671 # TODO: see whether this extra hack can be removed once we start 16672 # requiring Autoconf 2.70 or later. 16673 case $CONFIG_FILES in #( 16674 *\'*) : 16675 eval set x "$CONFIG_FILES" ;; #( 16676 *) : 16677 set x $CONFIG_FILES ;; #( 16678 *) : 16679 ;; 16680esac 16681 shift 16682 # Used to flag and report bootstrapping failures. 16683 am_rc=0 16684 for am_mf 16685 do 16686 # Strip MF so we end up with the name of the file. 16687 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 16688 # Check whether this is an Automake generated Makefile which includes 16689 # dependency-tracking related rules and includes. 16690 # Grep'ing the whole file directly is not great: AIX grep has a line 16691 # limit of 2048, but all sed's we know have understand at least 4000. 16692 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 16693 || continue 16694 am_dirpart=`$as_dirname -- "$am_mf" || 16695$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16696 X"$am_mf" : 'X\(//\)[^/]' \| \ 16697 X"$am_mf" : 'X\(//\)$' \| \ 16698 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16699printf "%s\n" X"$am_mf" | 16700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16701 s//\1/ 16702 q 16703 } 16704 /^X\(\/\/\)[^/].*/{ 16705 s//\1/ 16706 q 16707 } 16708 /^X\(\/\/\)$/{ 16709 s//\1/ 16710 q 16711 } 16712 /^X\(\/\).*/{ 16713 s//\1/ 16714 q 16715 } 16716 s/.*/./; q'` 16717 am_filepart=`$as_basename -- "$am_mf" || 16718$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 16719 X"$am_mf" : 'X\(//\)$' \| \ 16720 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16721printf "%s\n" X/"$am_mf" | 16722 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16723 s//\1/ 16724 q 16725 } 16726 /^X\/\(\/\/\)$/{ 16727 s//\1/ 16728 q 16729 } 16730 /^X\/\(\/\).*/{ 16731 s//\1/ 16732 q 16733 } 16734 s/.*/./; q'` 16735 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 16736 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16737 | $MAKE -f - am--depfiles" >&5 16738 (cd "$am_dirpart" \ 16739 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16740 | $MAKE -f - am--depfiles) >&5 2>&5 16741 ac_status=$? 16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16743 (exit $ac_status); } || am_rc=$? 16744 done 16745 if test $am_rc -ne 0; then 16746 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16747printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16748as_fn_error $? "Something went wrong bootstrapping makefile fragments 16749 for automatic dependency tracking. If GNU make was not used, consider 16750 re-running the configure script with MAKE=\"gmake\" (or whatever is 16751 necessary). You can also try re-running configure with the 16752 '--disable-dependency-tracking' option to at least be able to build 16753 the package (albeit without support for automatic dependency tracking). 16754See \`config.log' for more details" "$LINENO" 5; } 16755 fi 16756 { am_dirpart=; unset am_dirpart;} 16757 { am_filepart=; unset am_filepart;} 16758 { am_mf=; unset am_mf;} 16759 { am_rc=; unset am_rc;} 16760 rm -f conftest-deps.mk 16761} 16762 ;; 16763 "libtool":C) 16764 16765 # See if we are running on zsh, and set the options that allow our 16766 # commands through without removal of \ escapes. 16767 if test -n "${ZSH_VERSION+set}"; then 16768 setopt NO_GLOB_SUBST 16769 fi 16770 16771 cfgfile=${ofile}T 16772 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16773 $RM "$cfgfile" 16774 16775 cat <<_LT_EOF >> "$cfgfile" 16776#! $SHELL 16777# Generated automatically by $as_me ($PACKAGE) $VERSION 16778# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16779# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16780 16781# Provide generalized library-building support services. 16782# Written by Gordon Matzigkeit, 1996 16783 16784# Copyright (C) 2014 Free Software Foundation, Inc. 16785# This is free software; see the source for copying conditions. There is NO 16786# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16787 16788# GNU Libtool is free software; you can redistribute it and/or modify 16789# it under the terms of the GNU General Public License as published by 16790# the Free Software Foundation; either version 2 of of the License, or 16791# (at your option) any later version. 16792# 16793# As a special exception to the GNU General Public License, if you 16794# distribute this file as part of a program or library that is built 16795# using GNU Libtool, you may include this file under the same 16796# distribution terms that you use for the rest of that program. 16797# 16798# GNU Libtool is distributed in the hope that it will be useful, but 16799# WITHOUT ANY WARRANTY; without even the implied warranty of 16800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16801# GNU General Public License for more details. 16802# 16803# You should have received a copy of the GNU General Public License 16804# along with this program. If not, see <http://www.gnu.org/licenses/>. 16805 16806 16807# The names of the tagged configurations supported by this script. 16808available_tags='' 16809 16810# Configured defaults for sys_lib_dlsearch_path munging. 16811: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16812 16813# ### BEGIN LIBTOOL CONFIG 16814 16815# Which release of libtool.m4 was used? 16816macro_version=$macro_version 16817macro_revision=$macro_revision 16818 16819# Whether or not to build shared libraries. 16820build_libtool_libs=$enable_shared 16821 16822# Whether or not to build static libraries. 16823build_old_libs=$enable_static 16824 16825# What type of objects to build. 16826pic_mode=$pic_mode 16827 16828# Whether or not to optimize for fast installation. 16829fast_install=$enable_fast_install 16830 16831# Shared archive member basename,for filename based shared library versioning on AIX. 16832shared_archive_member_spec=$shared_archive_member_spec 16833 16834# Shell to use when invoking shell scripts. 16835SHELL=$lt_SHELL 16836 16837# An echo program that protects backslashes. 16838ECHO=$lt_ECHO 16839 16840# The PATH separator for the build system. 16841PATH_SEPARATOR=$lt_PATH_SEPARATOR 16842 16843# The host system. 16844host_alias=$host_alias 16845host=$host 16846host_os=$host_os 16847 16848# The build system. 16849build_alias=$build_alias 16850build=$build 16851build_os=$build_os 16852 16853# A sed program that does not truncate output. 16854SED=$lt_SED 16855 16856# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16857Xsed="\$SED -e 1s/^X//" 16858 16859# A grep program that handles long lines. 16860GREP=$lt_GREP 16861 16862# An ERE matcher. 16863EGREP=$lt_EGREP 16864 16865# A literal string matcher. 16866FGREP=$lt_FGREP 16867 16868# A BSD- or MS-compatible name lister. 16869NM=$lt_NM 16870 16871# Whether we need soft or hard links. 16872LN_S=$lt_LN_S 16873 16874# What is the maximum length of a command? 16875max_cmd_len=$max_cmd_len 16876 16877# Object file suffix (normally "o"). 16878objext=$ac_objext 16879 16880# Executable file suffix (normally ""). 16881exeext=$exeext 16882 16883# whether the shell understands "unset". 16884lt_unset=$lt_unset 16885 16886# turn spaces into newlines. 16887SP2NL=$lt_lt_SP2NL 16888 16889# turn newlines into spaces. 16890NL2SP=$lt_lt_NL2SP 16891 16892# convert \$build file names to \$host format. 16893to_host_file_cmd=$lt_cv_to_host_file_cmd 16894 16895# convert \$build files to toolchain format. 16896to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16897 16898# A file(cmd) program that detects file types. 16899FILECMD=$lt_FILECMD 16900 16901# An object symbol dumper. 16902OBJDUMP=$lt_OBJDUMP 16903 16904# Method to check whether dependent libraries are shared objects. 16905deplibs_check_method=$lt_deplibs_check_method 16906 16907# Command to use when deplibs_check_method = "file_magic". 16908file_magic_cmd=$lt_file_magic_cmd 16909 16910# How to find potential files when deplibs_check_method = "file_magic". 16911file_magic_glob=$lt_file_magic_glob 16912 16913# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16914want_nocaseglob=$lt_want_nocaseglob 16915 16916# DLL creation program. 16917DLLTOOL=$lt_DLLTOOL 16918 16919# Command to associate shared and link libraries. 16920sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16921 16922# The archiver. 16923AR=$lt_AR 16924 16925# Flags to create an archive (by configure). 16926lt_ar_flags=$lt_ar_flags 16927 16928# Flags to create an archive. 16929AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 16930 16931# How to feed a file listing to the archiver. 16932archiver_list_spec=$lt_archiver_list_spec 16933 16934# A symbol stripping program. 16935STRIP=$lt_STRIP 16936 16937# Commands used to install an old-style archive. 16938RANLIB=$lt_RANLIB 16939old_postinstall_cmds=$lt_old_postinstall_cmds 16940old_postuninstall_cmds=$lt_old_postuninstall_cmds 16941 16942# Whether to use a lock for old archive extraction. 16943lock_old_archive_extraction=$lock_old_archive_extraction 16944 16945# A C compiler. 16946LTCC=$lt_CC 16947 16948# LTCC compiler flags. 16949LTCFLAGS=$lt_CFLAGS 16950 16951# Take the output of nm and produce a listing of raw symbols and C names. 16952global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16953 16954# Transform the output of nm in a proper C declaration. 16955global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16956 16957# Transform the output of nm into a list of symbols to manually relocate. 16958global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16959 16960# Transform the output of nm in a C name address pair. 16961global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16962 16963# Transform the output of nm in a C name address pair when lib prefix is needed. 16964global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16965 16966# The name lister interface. 16967nm_interface=$lt_lt_cv_nm_interface 16968 16969# Specify filename containing input files for \$NM. 16970nm_file_list_spec=$lt_nm_file_list_spec 16971 16972# The root where to search for dependent libraries,and where our libraries should be installed. 16973lt_sysroot=$lt_sysroot 16974 16975# Command to truncate a binary pipe. 16976lt_truncate_bin=$lt_lt_cv_truncate_bin 16977 16978# The name of the directory that contains temporary libtool files. 16979objdir=$objdir 16980 16981# Used to examine libraries when file_magic_cmd begins with "file". 16982MAGIC_CMD=$MAGIC_CMD 16983 16984# Must we lock files when doing compilation? 16985need_locks=$lt_need_locks 16986 16987# Manifest tool. 16988MANIFEST_TOOL=$lt_MANIFEST_TOOL 16989 16990# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16991DSYMUTIL=$lt_DSYMUTIL 16992 16993# Tool to change global to local symbols on Mac OS X. 16994NMEDIT=$lt_NMEDIT 16995 16996# Tool to manipulate fat objects and archives on Mac OS X. 16997LIPO=$lt_LIPO 16998 16999# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17000OTOOL=$lt_OTOOL 17001 17002# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17003OTOOL64=$lt_OTOOL64 17004 17005# Old archive suffix (normally "a"). 17006libext=$libext 17007 17008# Shared library suffix (normally ".so"). 17009shrext_cmds=$lt_shrext_cmds 17010 17011# The commands to extract the exported symbol list from a shared archive. 17012extract_expsyms_cmds=$lt_extract_expsyms_cmds 17013 17014# Variables whose values should be saved in libtool wrapper scripts and 17015# restored at link time. 17016variables_saved_for_relink=$lt_variables_saved_for_relink 17017 17018# Do we need the "lib" prefix for modules? 17019need_lib_prefix=$need_lib_prefix 17020 17021# Do we need a version for libraries? 17022need_version=$need_version 17023 17024# Library versioning type. 17025version_type=$version_type 17026 17027# Shared library runtime path variable. 17028runpath_var=$runpath_var 17029 17030# Shared library path variable. 17031shlibpath_var=$shlibpath_var 17032 17033# Is shlibpath searched before the hard-coded library search path? 17034shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17035 17036# Format of library name prefix. 17037libname_spec=$lt_libname_spec 17038 17039# List of archive names. First name is the real one, the rest are links. 17040# The last name is the one that the linker finds with -lNAME 17041library_names_spec=$lt_library_names_spec 17042 17043# The coded name of the library, if different from the real name. 17044soname_spec=$lt_soname_spec 17045 17046# Permission mode override for installation of shared libraries. 17047install_override_mode=$lt_install_override_mode 17048 17049# Command to use after installation of a shared archive. 17050postinstall_cmds=$lt_postinstall_cmds 17051 17052# Command to use after uninstallation of a shared archive. 17053postuninstall_cmds=$lt_postuninstall_cmds 17054 17055# Commands used to finish a libtool library installation in a directory. 17056finish_cmds=$lt_finish_cmds 17057 17058# As "finish_cmds", except a single script fragment to be evaled but 17059# not shown. 17060finish_eval=$lt_finish_eval 17061 17062# Whether we should hardcode library paths into libraries. 17063hardcode_into_libs=$hardcode_into_libs 17064 17065# Compile-time system search path for libraries. 17066sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17067 17068# Detected run-time system search path for libraries. 17069sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17070 17071# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17072configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17073 17074# Whether dlopen is supported. 17075dlopen_support=$enable_dlopen 17076 17077# Whether dlopen of programs is supported. 17078dlopen_self=$enable_dlopen_self 17079 17080# Whether dlopen of statically linked programs is supported. 17081dlopen_self_static=$enable_dlopen_self_static 17082 17083# Commands to strip libraries. 17084old_striplib=$lt_old_striplib 17085striplib=$lt_striplib 17086 17087 17088# The linker used to build libraries. 17089LD=$lt_LD 17090 17091# How to create reloadable object files. 17092reload_flag=$lt_reload_flag 17093reload_cmds=$lt_reload_cmds 17094 17095# Commands used to build an old-style archive. 17096old_archive_cmds=$lt_old_archive_cmds 17097 17098# A language specific compiler. 17099CC=$lt_compiler 17100 17101# Is the compiler the GNU compiler? 17102with_gcc=$GCC 17103 17104# Compiler flag to turn off builtin functions. 17105no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17106 17107# Additional compiler flags for building library objects. 17108pic_flag=$lt_lt_prog_compiler_pic 17109 17110# How to pass a linker flag through the compiler. 17111wl=$lt_lt_prog_compiler_wl 17112 17113# Compiler flag to prevent dynamic linking. 17114link_static_flag=$lt_lt_prog_compiler_static 17115 17116# Does compiler simultaneously support -c and -o options? 17117compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17118 17119# Whether or not to add -lc for building shared libraries. 17120build_libtool_need_lc=$archive_cmds_need_lc 17121 17122# Whether or not to disallow shared libs when runtime libs are static. 17123allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17124 17125# Compiler flag to allow reflexive dlopens. 17126export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17127 17128# Compiler flag to generate shared objects directly from archives. 17129whole_archive_flag_spec=$lt_whole_archive_flag_spec 17130 17131# Whether the compiler copes with passing no objects directly. 17132compiler_needs_object=$lt_compiler_needs_object 17133 17134# Create an old-style archive from a shared archive. 17135old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17136 17137# Create a temporary old-style archive to link instead of a shared archive. 17138old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17139 17140# Commands used to build a shared archive. 17141archive_cmds=$lt_archive_cmds 17142archive_expsym_cmds=$lt_archive_expsym_cmds 17143 17144# Commands used to build a loadable module if different from building 17145# a shared archive. 17146module_cmds=$lt_module_cmds 17147module_expsym_cmds=$lt_module_expsym_cmds 17148 17149# Whether we are building with GNU ld or not. 17150with_gnu_ld=$lt_with_gnu_ld 17151 17152# Flag that allows shared libraries with undefined symbols to be built. 17153allow_undefined_flag=$lt_allow_undefined_flag 17154 17155# Flag that enforces no undefined symbols. 17156no_undefined_flag=$lt_no_undefined_flag 17157 17158# Flag to hardcode \$libdir into a binary during linking. 17159# This must work even if \$libdir does not exist 17160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17161 17162# Whether we need a single "-rpath" flag with a separated argument. 17163hardcode_libdir_separator=$lt_hardcode_libdir_separator 17164 17165# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17166# DIR into the resulting binary. 17167hardcode_direct=$hardcode_direct 17168 17169# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17170# DIR into the resulting binary and the resulting library dependency is 17171# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17172# library is relocated. 17173hardcode_direct_absolute=$hardcode_direct_absolute 17174 17175# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17176# into the resulting binary. 17177hardcode_minus_L=$hardcode_minus_L 17178 17179# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17180# into the resulting binary. 17181hardcode_shlibpath_var=$hardcode_shlibpath_var 17182 17183# Set to "yes" if building a shared library automatically hardcodes DIR 17184# into the library and all subsequent libraries and executables linked 17185# against it. 17186hardcode_automatic=$hardcode_automatic 17187 17188# Set to yes if linker adds runtime paths of dependent libraries 17189# to runtime path list. 17190inherit_rpath=$inherit_rpath 17191 17192# Whether libtool must link a program against all its dependency libraries. 17193link_all_deplibs=$link_all_deplibs 17194 17195# Set to "yes" if exported symbols are required. 17196always_export_symbols=$always_export_symbols 17197 17198# The commands to list exported symbols. 17199export_symbols_cmds=$lt_export_symbols_cmds 17200 17201# Symbols that should not be listed in the preloaded symbols. 17202exclude_expsyms=$lt_exclude_expsyms 17203 17204# Symbols that must always be exported. 17205include_expsyms=$lt_include_expsyms 17206 17207# Commands necessary for linking programs (against libraries) with templates. 17208prelink_cmds=$lt_prelink_cmds 17209 17210# Commands necessary for finishing linking programs. 17211postlink_cmds=$lt_postlink_cmds 17212 17213# Specify filename containing input files. 17214file_list_spec=$lt_file_list_spec 17215 17216# How to hardcode a shared library path into an executable. 17217hardcode_action=$hardcode_action 17218 17219# ### END LIBTOOL CONFIG 17220 17221_LT_EOF 17222 17223 cat <<'_LT_EOF' >> "$cfgfile" 17224 17225# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17226 17227# func_munge_path_list VARIABLE PATH 17228# ----------------------------------- 17229# VARIABLE is name of variable containing _space_ separated list of 17230# directories to be munged by the contents of PATH, which is string 17231# having a format: 17232# "DIR[:DIR]:" 17233# string "DIR[ DIR]" will be prepended to VARIABLE 17234# ":DIR[:DIR]" 17235# string "DIR[ DIR]" will be appended to VARIABLE 17236# "DIRP[:DIRP]::[DIRA:]DIRA" 17237# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17238# "DIRA[ DIRA]" will be appended to VARIABLE 17239# "DIR[:DIR]" 17240# VARIABLE will be replaced by "DIR[ DIR]" 17241func_munge_path_list () 17242{ 17243 case x$2 in 17244 x) 17245 ;; 17246 *:) 17247 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17248 ;; 17249 x:*) 17250 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17251 ;; 17252 *::*) 17253 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17254 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17255 ;; 17256 *) 17257 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17258 ;; 17259 esac 17260} 17261 17262 17263# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17264func_cc_basename () 17265{ 17266 for cc_temp in $*""; do 17267 case $cc_temp in 17268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17270 \-*) ;; 17271 *) break;; 17272 esac 17273 done 17274 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17275} 17276 17277 17278# ### END FUNCTIONS SHARED WITH CONFIGURE 17279 17280_LT_EOF 17281 17282 case $host_os in 17283 aix3*) 17284 cat <<\_LT_EOF >> "$cfgfile" 17285# AIX sometimes has problems with the GCC collect2 program. For some 17286# reason, if we set the COLLECT_NAMES environment variable, the problems 17287# vanish in a puff of smoke. 17288if test set != "${COLLECT_NAMES+set}"; then 17289 COLLECT_NAMES= 17290 export COLLECT_NAMES 17291fi 17292_LT_EOF 17293 ;; 17294 esac 17295 17296 17297 17298ltmain=$ac_aux_dir/ltmain.sh 17299 17300 17301 # We use sed instead of cat because bash on DJGPP gets confused if 17302 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17303 # text mode, it properly converts lines to CR/LF. This bash problem 17304 # is reportedly fixed, but why not run on old versions too? 17305 $SED '$q' "$ltmain" >> "$cfgfile" \ 17306 || (rm -f "$cfgfile"; exit 1) 17307 17308 mv -f "$cfgfile" "$ofile" || 17309 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17310 chmod +x "$ofile" 17311 17312 ;; 17313 17314 esac 17315done # for ac_tag 17316 17317 17318as_fn_exit 0 17319_ACEOF 17320ac_clean_files=$ac_clean_files_save 17321 17322test $ac_write_fail = 0 || 17323 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17324 17325 17326# configure is writing to config.log, and then calls config.status. 17327# config.status does its own redirection, appending to config.log. 17328# Unfortunately, on DOS this fails, as config.log is still kept open 17329# by configure, so config.status won't be able to write to it; its 17330# output is simply discarded. So we exec the FD to /dev/null, 17331# effectively closing config.log, so it can be properly (re)opened and 17332# appended to by config.status. When coming back to configure, we 17333# need to make the FD available again. 17334if test "$no_create" != yes; then 17335 ac_cs_success=: 17336 ac_config_status_args= 17337 test "$silent" = yes && 17338 ac_config_status_args="$ac_config_status_args --quiet" 17339 exec 5>/dev/null 17340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17341 exec 5>>config.log 17342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17343 # would make configure fail if this is the last instruction. 17344 $ac_cs_success || as_fn_exit 1 17345fi 17346if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17348printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17349fi 17350 17351 17352