1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libressl 3.4.3. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libressl' 589PACKAGE_TARNAME='libressl' 590PACKAGE_VERSION='3.4.3' 591PACKAGE_STRING='libressl 3.4.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIBOBJS 635ENABLE_LIBTLS_ONLY_FALSE 636ENABLE_LIBTLS_ONLY_TRUE 637BUILD_NC_FALSE 638BUILD_NC_TRUE 639ENABLE_NC_FALSE 640ENABLE_NC_TRUE 641HOST_ASM_MINGW64_X86_64_FALSE 642HOST_ASM_MINGW64_X86_64_TRUE 643HOST_ASM_MASM_X86_64_FALSE 644HOST_ASM_MASM_X86_64_TRUE 645HOST_ASM_MACOSX_X86_64_FALSE 646HOST_ASM_MACOSX_X86_64_TRUE 647HOST_ASM_ELF_X86_64_FALSE 648HOST_ASM_ELF_X86_64_TRUE 649HOST_ASM_ELF_ARM_FALSE 650HOST_ASM_ELF_ARM_TRUE 651OPENSSL_NO_ASM_FALSE 652OPENSSL_NO_ASM_TRUE 653HOST_CPU_IS_INTEL_FALSE 654HOST_CPU_IS_INTEL_TRUE 655ENABLE_TESTS_FALSE 656ENABLE_TESTS_TRUE 657ENABLE_EXTRATESTS_FALSE 658ENABLE_EXTRATESTS_TRUE 659OPENSSLDIR_DEFINED_FALSE 660OPENSSLDIR_DEFINED_TRUE 661OPENSSLDIR 662HAVE_B64_NTOP_FALSE 663HAVE_B64_NTOP_TRUE 664HAVE_CLOCK_GETTIME_FALSE 665HAVE_CLOCK_GETTIME_TRUE 666HAVE_TIMINGSAFE_MEMCMP_FALSE 667HAVE_TIMINGSAFE_MEMCMP_TRUE 668HAVE_TIMINGSAFE_BCMP_FALSE 669HAVE_TIMINGSAFE_BCMP_TRUE 670HAVE_GETENTROPY_FALSE 671HAVE_GETENTROPY_TRUE 672HAVE_EXPLICIT_BZERO_FALSE 673HAVE_EXPLICIT_BZERO_TRUE 674HAVE_ARC4RANDOM_UNIFORM_FALSE 675HAVE_ARC4RANDOM_UNIFORM_TRUE 676HAVE_ARC4RANDOM_BUF_FALSE 677HAVE_ARC4RANDOM_BUF_TRUE 678HAVE_ARC4RANDOM_FALSE 679HAVE_ARC4RANDOM_TRUE 680HAVE_SOCKETPAIR_FALSE 681HAVE_SOCKETPAIR_TRUE 682HAVE_POLL_FALSE 683HAVE_POLL_TRUE 684HAVE_PLEDGE_FALSE 685HAVE_PLEDGE_TRUE 686HAVE_PIPE2_FALSE 687HAVE_PIPE2_TRUE 688HAVE_ACCEPT4_FALSE 689HAVE_ACCEPT4_TRUE 690HAVE_SYSLOG_R_FALSE 691HAVE_SYSLOG_R_TRUE 692HAVE_SYSLOG_FALSE 693HAVE_SYSLOG_TRUE 694HAVE_GETPROGNAME_FALSE 695HAVE_GETPROGNAME_TRUE 696HAVE_TIMEGM_FALSE 697HAVE_TIMEGM_TRUE 698HAVE_STRTONUM_FALSE 699HAVE_STRTONUM_TRUE 700HAVE_STRSEP_FALSE 701HAVE_STRSEP_TRUE 702HAVE_STRNLEN_FALSE 703HAVE_STRNLEN_TRUE 704HAVE_STRNDUP_FALSE 705HAVE_STRNDUP_TRUE 706HAVE_STRLCPY_FALSE 707HAVE_STRLCPY_TRUE 708HAVE_STRLCAT_FALSE 709HAVE_STRLCAT_TRUE 710HAVE_RECALLOCARRAY_FALSE 711HAVE_RECALLOCARRAY_TRUE 712HAVE_REALLOCARRAY_FALSE 713HAVE_REALLOCARRAY_TRUE 714HAVE_READPASSPHRASE_FALSE 715HAVE_READPASSPHRASE_TRUE 716HAVE_MEMMEM_FALSE 717HAVE_MEMMEM_TRUE 718HAVE_GETPAGESIZE_FALSE 719HAVE_GETPAGESIZE_TRUE 720HAVE_FREEZERO_FALSE 721HAVE_FREEZERO_TRUE 722HAVE_ASPRINTF_FALSE 723HAVE_ASPRINTF_TRUE 724BUILD_CERTHASH_FALSE 725BUILD_CERTHASH_TRUE 726am__fastdepCCAS_FALSE 727am__fastdepCCAS_TRUE 728CCASDEPMODE 729CCASFLAGS 730CCAS 731HOST_WIN_FALSE 732HOST_WIN_TRUE 733HOST_SOLARIS_FALSE 734HOST_SOLARIS_TRUE 735HOST_OPENBSD_FALSE 736HOST_OPENBSD_TRUE 737HOST_NETBSD_FALSE 738HOST_NETBSD_TRUE 739HOST_MIDIPIX_FALSE 740HOST_MIDIPIX_TRUE 741HOST_LINUX_FALSE 742HOST_LINUX_TRUE 743HOST_HPUX_FALSE 744HOST_HPUX_TRUE 745HOST_FREEBSD_FALSE 746HOST_FREEBSD_TRUE 747HOST_DARWIN_FALSE 748HOST_DARWIN_TRUE 749HOST_CYGWIN_FALSE 750HOST_CYGWIN_TRUE 751HOST_AIX_FALSE 752HOST_AIX_TRUE 753SMALL_TIME_T_FALSE 754SMALL_TIME_T_TRUE 755PROG_LDADD 756PLATFORM_LDADD 757CPP 758OTOOL64 759OTOOL 760LIPO 761NMEDIT 762DSYMUTIL 763MANIFEST_TOOL 764RANLIB 765ac_ct_AR 766AR 767DLLTOOL 768OBJDUMP 769LN_S 770NM 771ac_ct_DUMPBIN 772DUMPBIN 773LD 774FGREP 775EGREP 776GREP 777SED 778LIBTOOL 779am__fastdepCC_FALSE 780am__fastdepCC_TRUE 781CCDEPMODE 782am__nodep 783AMDEPBACKSLASH 784AMDEP_FALSE 785AMDEP_TRUE 786am__include 787DEPDIR 788OBJEXT 789EXEEXT 790ac_ct_CC 791CPPFLAGS 792LDFLAGS 793CFLAGS 794CC 795AM_BACKSLASH 796AM_DEFAULT_VERBOSITY 797AM_DEFAULT_V 798AM_V 799am__untar 800am__tar 801AMTAR 802am__leading_dot 803SET_MAKE 804AWK 805mkdir_p 806MKDIR_P 807INSTALL_STRIP_PROGRAM 808STRIP 809install_sh 810MAKEINFO 811AUTOHEADER 812AUTOMAKE 813AUTOCONF 814ACLOCAL 815VERSION 816PACKAGE 817CYGPATH_W 818am__isrc 819INSTALL_DATA 820INSTALL_SCRIPT 821INSTALL_PROGRAM 822host_os 823host_vendor 824host_cpu 825host 826build_os 827build_vendor 828build_cpu 829build 830LIBTLS_VERSION 831LIBSSL_VERSION 832LIBCRYPTO_VERSION 833target_alias 834host_alias 835build_alias 836LIBS 837ECHO_T 838ECHO_N 839ECHO_C 840DEFS 841mandir 842localedir 843libdir 844psdir 845pdfdir 846dvidir 847htmldir 848infodir 849docdir 850oldincludedir 851includedir 852runstatedir 853localstatedir 854sharedstatedir 855sysconfdir 856datadir 857datarootdir 858libexecdir 859sbindir 860bindir 861program_transform_name 862prefix 863exec_prefix 864PACKAGE_URL 865PACKAGE_BUGREPORT 866PACKAGE_STRING 867PACKAGE_VERSION 868PACKAGE_TARNAME 869PACKAGE_NAME 870PATH_SEPARATOR 871SHELL 872am__quote' 873ac_subst_files='' 874ac_user_opts=' 875enable_option_checking 876enable_silent_rules 877enable_dependency_tracking 878with_pic 879enable_shared 880enable_static 881enable_fast_install 882with_gnu_ld 883with_sysroot 884enable_libtool_lock 885enable_hardening 886enable_windows_ssp 887with_openssldir 888enable_extratests 889enable_tests 890enable_asm 891enable_nc 892enable_libtls_only 893' 894 ac_precious_vars='build_alias 895host_alias 896target_alias 897CC 898CFLAGS 899LDFLAGS 900LIBS 901CPPFLAGS 902CPP 903CCAS 904CCASFLAGS' 905 906 907# Initialize some variables set by options. 908ac_init_help= 909ac_init_version=false 910ac_unrecognized_opts= 911ac_unrecognized_sep= 912# The variables have the same names as the options, with 913# dashes changed to underlines. 914cache_file=/dev/null 915exec_prefix=NONE 916no_create= 917no_recursion= 918prefix=NONE 919program_prefix=NONE 920program_suffix=NONE 921program_transform_name=s,x,x, 922silent= 923site= 924srcdir= 925verbose= 926x_includes=NONE 927x_libraries=NONE 928 929# Installation directory options. 930# These are left unexpanded so users can "make install exec_prefix=/foo" 931# and all the variables that are supposed to be based on exec_prefix 932# by default will actually change. 933# Use braces instead of parens because sh, perl, etc. also accept them. 934# (The list follows the same order as the GNU Coding Standards.) 935bindir='${exec_prefix}/bin' 936sbindir='${exec_prefix}/sbin' 937libexecdir='${exec_prefix}/libexec' 938datarootdir='${prefix}/share' 939datadir='${datarootdir}' 940sysconfdir='${prefix}/etc' 941sharedstatedir='${prefix}/com' 942localstatedir='${prefix}/var' 943runstatedir='${localstatedir}/run' 944includedir='${prefix}/include' 945oldincludedir='/usr/include' 946docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 947infodir='${datarootdir}/info' 948htmldir='${docdir}' 949dvidir='${docdir}' 950pdfdir='${docdir}' 951psdir='${docdir}' 952libdir='${exec_prefix}/lib' 953localedir='${datarootdir}/locale' 954mandir='${datarootdir}/man' 955 956ac_prev= 957ac_dashdash= 958for ac_option 959do 960 # If the previous option needs an argument, assign it. 961 if test -n "$ac_prev"; then 962 eval $ac_prev=\$ac_option 963 ac_prev= 964 continue 965 fi 966 967 case $ac_option in 968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 969 *=) ac_optarg= ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=no ;; 1026 1027 -docdir | --docdir | --docdi | --doc | --do) 1028 ac_prev=docdir ;; 1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1030 docdir=$ac_optarg ;; 1031 1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1033 ac_prev=dvidir ;; 1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1035 dvidir=$ac_optarg ;; 1036 1037 -enable-* | --enable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error $? "invalid feature name: $ac_useropt" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=\$ac_optarg ;; 1052 1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1055 | --exec | --exe | --ex) 1056 ac_prev=exec_prefix ;; 1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1059 | --exec=* | --exe=* | --ex=*) 1060 exec_prefix=$ac_optarg ;; 1061 1062 -gas | --gas | --ga | --g) 1063 # Obsolete; use --with-gas. 1064 with_gas=yes ;; 1065 1066 -help | --help | --hel | --he | -h) 1067 ac_init_help=long ;; 1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1069 ac_init_help=recursive ;; 1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1071 ac_init_help=short ;; 1072 1073 -host | --host | --hos | --ho) 1074 ac_prev=host_alias ;; 1075 -host=* | --host=* | --hos=* | --ho=*) 1076 host_alias=$ac_optarg ;; 1077 1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1079 ac_prev=htmldir ;; 1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1081 | --ht=*) 1082 htmldir=$ac_optarg ;; 1083 1084 -includedir | --includedir | --includedi | --included | --include \ 1085 | --includ | --inclu | --incl | --inc) 1086 ac_prev=includedir ;; 1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1088 | --includ=* | --inclu=* | --incl=* | --inc=*) 1089 includedir=$ac_optarg ;; 1090 1091 -infodir | --infodir | --infodi | --infod | --info | --inf) 1092 ac_prev=infodir ;; 1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1094 infodir=$ac_optarg ;; 1095 1096 -libdir | --libdir | --libdi | --libd) 1097 ac_prev=libdir ;; 1098 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1099 libdir=$ac_optarg ;; 1100 1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1102 | --libexe | --libex | --libe) 1103 ac_prev=libexecdir ;; 1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1105 | --libexe=* | --libex=* | --libe=*) 1106 libexecdir=$ac_optarg ;; 1107 1108 -localedir | --localedir | --localedi | --localed | --locale) 1109 ac_prev=localedir ;; 1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1111 localedir=$ac_optarg ;; 1112 1113 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1114 | --localstate | --localstat | --localsta | --localst | --locals) 1115 ac_prev=localstatedir ;; 1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1118 localstatedir=$ac_optarg ;; 1119 1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1121 ac_prev=mandir ;; 1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1123 mandir=$ac_optarg ;; 1124 1125 -nfp | --nfp | --nf) 1126 # Obsolete; use --without-fp. 1127 with_fp=no ;; 1128 1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1130 | --no-cr | --no-c | -n) 1131 no_create=yes ;; 1132 1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1135 no_recursion=yes ;; 1136 1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1139 | --oldin | --oldi | --old | --ol | --o) 1140 ac_prev=oldincludedir ;; 1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1144 oldincludedir=$ac_optarg ;; 1145 1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1147 ac_prev=prefix ;; 1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1149 prefix=$ac_optarg ;; 1150 1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1152 | --program-pre | --program-pr | --program-p) 1153 ac_prev=program_prefix ;; 1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1156 program_prefix=$ac_optarg ;; 1157 1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1159 | --program-suf | --program-su | --program-s) 1160 ac_prev=program_suffix ;; 1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1163 program_suffix=$ac_optarg ;; 1164 1165 -program-transform-name | --program-transform-name \ 1166 | --program-transform-nam | --program-transform-na \ 1167 | --program-transform-n | --program-transform- \ 1168 | --program-transform | --program-transfor \ 1169 | --program-transfo | --program-transf \ 1170 | --program-trans | --program-tran \ 1171 | --progr-tra | --program-tr | --program-t) 1172 ac_prev=program_transform_name ;; 1173 -program-transform-name=* | --program-transform-name=* \ 1174 | --program-transform-nam=* | --program-transform-na=* \ 1175 | --program-transform-n=* | --program-transform-=* \ 1176 | --program-transform=* | --program-transfor=* \ 1177 | --program-transfo=* | --program-transf=* \ 1178 | --program-trans=* | --program-tran=* \ 1179 | --progr-tra=* | --program-tr=* | --program-t=*) 1180 program_transform_name=$ac_optarg ;; 1181 1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1183 ac_prev=pdfdir ;; 1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1185 pdfdir=$ac_optarg ;; 1186 1187 -psdir | --psdir | --psdi | --psd | --ps) 1188 ac_prev=psdir ;; 1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1190 psdir=$ac_optarg ;; 1191 1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1193 | -silent | --silent | --silen | --sile | --sil) 1194 silent=yes ;; 1195 1196 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1197 | --runstate | --runstat | --runsta | --runst | --runs \ 1198 | --run | --ru | --r) 1199 ac_prev=runstatedir ;; 1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1202 | --run=* | --ru=* | --r=*) 1203 runstatedir=$ac_optarg ;; 1204 1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1206 ac_prev=sbindir ;; 1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1208 | --sbi=* | --sb=*) 1209 sbindir=$ac_optarg ;; 1210 1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1213 | --sharedst | --shareds | --shared | --share | --shar \ 1214 | --sha | --sh) 1215 ac_prev=sharedstatedir ;; 1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1219 | --sha=* | --sh=*) 1220 sharedstatedir=$ac_optarg ;; 1221 1222 -site | --site | --sit) 1223 ac_prev=site ;; 1224 -site=* | --site=* | --sit=*) 1225 site=$ac_optarg ;; 1226 1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1228 ac_prev=srcdir ;; 1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1230 srcdir=$ac_optarg ;; 1231 1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1233 | --syscon | --sysco | --sysc | --sys | --sy) 1234 ac_prev=sysconfdir ;; 1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1237 sysconfdir=$ac_optarg ;; 1238 1239 -target | --target | --targe | --targ | --tar | --ta | --t) 1240 ac_prev=target_alias ;; 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1242 target_alias=$ac_optarg ;; 1243 1244 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1245 verbose=yes ;; 1246 1247 -version | --version | --versio | --versi | --vers | -V) 1248 ac_init_version=: ;; 1249 1250 -with-* | --with-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: $ac_useropt" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259"with_$ac_useropt" 1260"*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=\$ac_optarg ;; 1265 1266 -without-* | --without-*) 1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1270 as_fn_error $? "invalid package name: $ac_useropt" 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275"with_$ac_useropt" 1276"*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=no ;; 1281 1282 --x) 1283 # Obsolete; use --with-x. 1284 with_x=yes ;; 1285 1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1287 | --x-incl | --x-inc | --x-in | --x-i) 1288 ac_prev=x_includes ;; 1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1291 x_includes=$ac_optarg ;; 1292 1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1295 ac_prev=x_libraries ;; 1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1298 x_libraries=$ac_optarg ;; 1299 1300 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1301Try \`$0 --help' for more information" 1302 ;; 1303 1304 *=*) 1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1306 # Reject names that are not valid shell variable names. 1307 case $ac_envvar in #( 1308 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1310 esac 1311 eval $ac_envvar=\$ac_optarg 1312 export $ac_envvar ;; 1313 1314 *) 1315 # FIXME: should be removed in autoconf 3.0. 1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1320 ;; 1321 1322 esac 1323done 1324 1325if test -n "$ac_prev"; then 1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1327 as_fn_error $? "missing argument to $ac_option" 1328fi 1329 1330if test -n "$ac_unrecognized_opts"; then 1331 case $enable_option_checking in 1332 no) ;; 1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1335 esac 1336fi 1337 1338# Check all directory arguments for consistency. 1339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1340 datadir sysconfdir sharedstatedir localstatedir includedir \ 1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1342 libdir localedir mandir runstatedir 1343do 1344 eval ac_val=\$$ac_var 1345 # Remove trailing slashes. 1346 case $ac_val in 1347 */ ) 1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1349 eval $ac_var=\$ac_val;; 1350 esac 1351 # Be sure to have absolute directory names. 1352 case $ac_val in 1353 [\\/$]* | ?:[\\/]* ) continue;; 1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1355 esac 1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1357done 1358 1359# There might be people who depend on the old broken behavior: `$host' 1360# used to hold the argument of --host etc. 1361# FIXME: To remove some day. 1362build=$build_alias 1363host=$host_alias 1364target=$target_alias 1365 1366# FIXME: To remove some day. 1367if test "x$host_alias" != x; then 1368 if test "x$build_alias" = x; then 1369 cross_compiling=maybe 1370 elif test "x$build_alias" != "x$host_alias"; then 1371 cross_compiling=yes 1372 fi 1373fi 1374 1375ac_tool_prefix= 1376test -n "$host_alias" && ac_tool_prefix=$host_alias- 1377 1378test "$silent" = yes && exec 6>/dev/null 1379 1380 1381ac_pwd=`pwd` && test -n "$ac_pwd" && 1382ac_ls_di=`ls -di .` && 1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1384 as_fn_error $? "working directory cannot be determined" 1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1386 as_fn_error $? "pwd does not report name of working directory" 1387 1388 1389# Find the source files, if location was not specified. 1390if test -z "$srcdir"; then 1391 ac_srcdir_defaulted=yes 1392 # Try the directory containing this script, then the parent directory. 1393 ac_confdir=`$as_dirname -- "$as_myself" || 1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1395 X"$as_myself" : 'X\(//\)[^/]' \| \ 1396 X"$as_myself" : 'X\(//\)$' \| \ 1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1398$as_echo X"$as_myself" | 1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1400 s//\1/ 1401 q 1402 } 1403 /^X\(\/\/\)[^/].*/{ 1404 s//\1/ 1405 q 1406 } 1407 /^X\(\/\/\)$/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\).*/{ 1412 s//\1/ 1413 q 1414 } 1415 s/.*/./; q'` 1416 srcdir=$ac_confdir 1417 if test ! -r "$srcdir/$ac_unique_file"; then 1418 srcdir=.. 1419 fi 1420else 1421 ac_srcdir_defaulted=no 1422fi 1423if test ! -r "$srcdir/$ac_unique_file"; then 1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1426fi 1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1428ac_abs_confdir=`( 1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1430 pwd)` 1431# When building in place, set srcdir=. 1432if test "$ac_abs_confdir" = "$ac_pwd"; then 1433 srcdir=. 1434fi 1435# Remove unnecessary trailing slashes from srcdir. 1436# Double slashes in file names in object file debugging info 1437# mess up M-x gdb in Emacs. 1438case $srcdir in 1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1440esac 1441for ac_var in $ac_precious_vars; do 1442 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1443 eval ac_env_${ac_var}_value=\$${ac_var} 1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1445 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1446done 1447 1448# 1449# Report the --help message. 1450# 1451if test "$ac_init_help" = "long"; then 1452 # Omit some internal or obsolete options to make the list less imposing. 1453 # This message is too long to be a string in the A/UX 3.1 sh. 1454 cat <<_ACEOF 1455\`configure' configures libressl 3.4.3 to adapt to many kinds of systems. 1456 1457Usage: $0 [OPTION]... [VAR=VALUE]... 1458 1459To assign environment variables (e.g., CC, CFLAGS...), specify them as 1460VAR=VALUE. See below for descriptions of some of the useful variables. 1461 1462Defaults for the options are specified in brackets. 1463 1464Configuration: 1465 -h, --help display this help and exit 1466 --help=short display options specific to this package 1467 --help=recursive display the short help of all the included packages 1468 -V, --version display version information and exit 1469 -q, --quiet, --silent do not print \`checking ...' messages 1470 --cache-file=FILE cache test results in FILE [disabled] 1471 -C, --config-cache alias for \`--cache-file=config.cache' 1472 -n, --no-create do not create output files 1473 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1474 1475Installation directories: 1476 --prefix=PREFIX install architecture-independent files in PREFIX 1477 [$ac_default_prefix] 1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1479 [PREFIX] 1480 1481By default, \`make install' will install all the files in 1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1483an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1484for instance \`--prefix=\$HOME'. 1485 1486For better control, use the options below. 1487 1488Fine tuning of the installation directories: 1489 --bindir=DIR user executables [EPREFIX/bin] 1490 --sbindir=DIR system admin executables [EPREFIX/sbin] 1491 --libexecdir=DIR program executables [EPREFIX/libexec] 1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1496 --libdir=DIR object code libraries [EPREFIX/lib] 1497 --includedir=DIR C header files [PREFIX/include] 1498 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1501 --infodir=DIR info documentation [DATAROOTDIR/info] 1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1503 --mandir=DIR man documentation [DATAROOTDIR/man] 1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libressl] 1505 --htmldir=DIR html documentation [DOCDIR] 1506 --dvidir=DIR dvi documentation [DOCDIR] 1507 --pdfdir=DIR pdf documentation [DOCDIR] 1508 --psdir=DIR ps documentation [DOCDIR] 1509_ACEOF 1510 1511 cat <<\_ACEOF 1512 1513Program names: 1514 --program-prefix=PREFIX prepend PREFIX to installed program names 1515 --program-suffix=SUFFIX append SUFFIX to installed program names 1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1517 1518System types: 1519 --build=BUILD configure for building on BUILD [guessed] 1520 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1521_ACEOF 1522fi 1523 1524if test -n "$ac_init_help"; then 1525 case $ac_init_help in 1526 short | recursive ) echo "Configuration of libressl 3.4.3:";; 1527 esac 1528 cat <<\_ACEOF 1529 1530Optional Features: 1531 --disable-option-checking ignore unrecognized --enable/--with options 1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1534 --enable-silent-rules less verbose build output (undo: "make V=1") 1535 --disable-silent-rules verbose build output (undo: "make V=0") 1536 --enable-dependency-tracking 1537 do not reject slow dependency extractors 1538 --disable-dependency-tracking 1539 speeds up one-time build 1540 --enable-shared[=PKGS] build shared libraries [default=yes] 1541 --enable-static[=PKGS] build static libraries [default=yes] 1542 --enable-fast-install[=PKGS] 1543 optimize for fast installation [default=yes] 1544 --disable-libtool-lock avoid locking (might break parallel builds) 1545 --disable-hardening Disable options to frustrate memory corruption 1546 exploits 1547 --enable-windows-ssp Enable building the stack smashing protection on 1548 Windows. This currently distributing libssp-0.dll. 1549 --enable-extratests Enable extra tests that may be unreliable on some 1550 platforms 1551 --disable-tests Disable tests [default=enabled] 1552 --disable-asm Disable assembly 1553 --enable-nc Enable installing TLS-enabled nc(1) 1554 --enable-libtls-only Enable installing libtls only 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1560 both] 1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1562 --with-sysroot=DIR Search for dependent libraries within DIR 1563 (or the compiler's sysroot if not specified). 1564 --with-openssldir Set the default openssl directory 1565 1566Some influential environment variables: 1567 CC C compiler command 1568 CFLAGS C compiler flags 1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1570 nonstandard directory <lib dir> 1571 LIBS libraries to pass to the linker, e.g. -l<library> 1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1573 you have headers in a nonstandard directory <include dir> 1574 CPP C preprocessor 1575 CCAS assembler compiler command (defaults to CC) 1576 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1577 1578Use these variables to override the choices made by `configure' or to help 1579it to find libraries and programs with nonstandard names/locations. 1580 1581Report bugs to the package provider. 1582_ACEOF 1583ac_status=$? 1584fi 1585 1586if test "$ac_init_help" = "recursive"; then 1587 # If there are subdirs, report their specific --help. 1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1589 test -d "$ac_dir" || 1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1591 continue 1592 ac_builddir=. 1593 1594case "$ac_dir" in 1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1596*) 1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1598 # A ".." for each directory in $ac_dir_suffix. 1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1600 case $ac_top_builddir_sub in 1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1603 esac ;; 1604esac 1605ac_abs_top_builddir=$ac_pwd 1606ac_abs_builddir=$ac_pwd$ac_dir_suffix 1607# for backward compatibility: 1608ac_top_builddir=$ac_top_build_prefix 1609 1610case $srcdir in 1611 .) # We are building in place. 1612 ac_srcdir=. 1613 ac_top_srcdir=$ac_top_builddir_sub 1614 ac_abs_top_srcdir=$ac_pwd ;; 1615 [\\/]* | ?:[\\/]* ) # Absolute name. 1616 ac_srcdir=$srcdir$ac_dir_suffix; 1617 ac_top_srcdir=$srcdir 1618 ac_abs_top_srcdir=$srcdir ;; 1619 *) # Relative name. 1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1621 ac_top_srcdir=$ac_top_build_prefix$srcdir 1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1623esac 1624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1625 1626 cd "$ac_dir" || { ac_status=$?; continue; } 1627 # Check for guested configure. 1628 if test -f "$ac_srcdir/configure.gnu"; then 1629 echo && 1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1631 elif test -f "$ac_srcdir/configure"; then 1632 echo && 1633 $SHELL "$ac_srcdir/configure" --help=recursive 1634 else 1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1636 fi || ac_status=$? 1637 cd "$ac_pwd" || { ac_status=$?; break; } 1638 done 1639fi 1640 1641test -n "$ac_init_help" && exit $ac_status 1642if $ac_init_version; then 1643 cat <<\_ACEOF 1644libressl configure 3.4.3 1645generated by GNU Autoconf 2.69 1646 1647Copyright (C) 2012 Free Software Foundation, Inc. 1648This configure script is free software; the Free Software Foundation 1649gives unlimited permission to copy, distribute and modify it. 1650_ACEOF 1651 exit 1652fi 1653 1654## ------------------------ ## 1655## Autoconf initialization. ## 1656## ------------------------ ## 1657 1658# ac_fn_c_try_compile LINENO 1659# -------------------------- 1660# Try to compile conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_compile () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 rm -f conftest.$ac_objext 1665 if { { ac_try="$ac_compile" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_compile") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } && { 1681 test -z "$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 } && test -s conftest.$ac_objext; then : 1684 ac_retval=0 1685else 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=1 1690fi 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 as_fn_set_status $ac_retval 1693 1694} # ac_fn_c_try_compile 1695 1696# ac_fn_c_try_link LINENO 1697# ----------------------- 1698# Try to link conftest.$ac_ext, and return whether this succeeded. 1699ac_fn_c_try_link () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 rm -f conftest.$ac_objext conftest$ac_exeext 1703 if { { ac_try="$ac_link" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_link") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { 1719 test -z "$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 } && test -s conftest$ac_exeext && { 1722 test "$cross_compiling" = yes || 1723 test -x conftest$ac_exeext 1724 }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: failed program was:" >&5 1728sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=1 1731fi 1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1734 # interfere with the next link command; also delete a directory that is 1735 # left behind by Apple's compiler. We do this before executing the actions. 1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_link 1741 1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists and can be compiled using the include files in 1745# INCLUDES, setting the cache variable VAR accordingly. 1746ac_fn_c_check_header_compile () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750$as_echo_n "checking for $2... " >&6; } 1751if eval \${$3+:} false; then : 1752 $as_echo_n "(cached) " >&6 1753else 1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755/* end confdefs.h. */ 1756$4 1757#include <$2> 1758_ACEOF 1759if ac_fn_c_try_compile "$LINENO"; then : 1760 eval "$3=yes" 1761else 1762 eval "$3=no" 1763fi 1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1765fi 1766eval ac_res=\$$3 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1768$as_echo "$ac_res" >&6; } 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 1771} # ac_fn_c_check_header_compile 1772 1773# ac_fn_c_try_cpp LINENO 1774# ---------------------- 1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1776ac_fn_c_try_cpp () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 if { { ac_try="$ac_cpp conftest.$ac_ext" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } > conftest.i && { 1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 }; then : 1798 ac_retval=0 1799else 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=1 1804fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_try_cpp 1809 1810# ac_fn_c_try_run LINENO 1811# ---------------------- 1812# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1813# that executables *can* be run. 1814ac_fn_c_try_run () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 if { { ac_try="$ac_link" 1818case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_link") 2>&5 1825 ac_status=$? 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1828 { { case "(($ac_try" in 1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1830 *) ac_try_echo=$ac_try;; 1831esac 1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1833$as_echo "$ac_try_echo"; } >&5 1834 (eval "$ac_try") 2>&5 1835 ac_status=$? 1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; }; }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: program exited with status $ac_status" >&5 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=$ac_status 1845fi 1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_c_try_run 1851 1852# ac_fn_c_check_func LINENO FUNC VAR 1853# ---------------------------------- 1854# Tests whether FUNC exists, setting the cache variable VAR accordingly 1855ac_fn_c_check_func () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if eval \${$3+:} false; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1867#define $2 innocuous_$2 1868 1869/* System header to define __stub macros and hopefully few prototypes, 1870 which can conflict with char $2 (); below. 1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1872 <limits.h> exists even on freestanding compilers. */ 1873 1874#ifdef __STDC__ 1875# include <limits.h> 1876#else 1877# include <assert.h> 1878#endif 1879 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main () 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO"; then : 1905 eval "$3=yes" 1906else 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 1917} # ac_fn_c_check_func 1918 1919# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1920# ------------------------------------------------------- 1921# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1922# the include files in INCLUDES and setting the cache variable VAR 1923# accordingly. 1924ac_fn_c_check_header_mongrel () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 if eval \${$3+:} false; then : 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936else 1937 # Is the header compilable? 1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1939$as_echo_n "checking $2 usability... " >&6; } 1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943#include <$2> 1944_ACEOF 1945if ac_fn_c_try_compile "$LINENO"; then : 1946 ac_header_compiler=yes 1947else 1948 ac_header_compiler=no 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1952$as_echo "$ac_header_compiler" >&6; } 1953 1954# Is the header present? 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1956$as_echo_n "checking $2 presence... " >&6; } 1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959#include <$2> 1960_ACEOF 1961if ac_fn_c_try_cpp "$LINENO"; then : 1962 ac_header_preproc=yes 1963else 1964 ac_header_preproc=no 1965fi 1966rm -f conftest.err conftest.i conftest.$ac_ext 1967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1968$as_echo "$ac_header_preproc" >&6; } 1969 1970# So? What about this header? 1971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1972 yes:no: ) 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1974$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1976$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1977 ;; 1978 no:yes:* ) 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1980$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1982$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1984$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1986$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1989 ;; 1990esac 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992$as_echo_n "checking for $2... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995else 1996 eval "$3=\$ac_header_compiler" 1997fi 1998eval ac_res=\$$3 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2000$as_echo "$ac_res" >&6; } 2001fi 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 2004} # ac_fn_c_check_header_mongrel 2005 2006# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2007# -------------------------------------------- 2008# Tries to find the compile-time value of EXPR in a program that includes 2009# INCLUDES, setting VAR accordingly. Returns whether the value could be 2010# computed 2011ac_fn_c_compute_int () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 if test "$cross_compiling" = yes; then 2015 # Depending upon the size, compute the lo and hi bounds. 2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$4 2019int 2020main () 2021{ 2022static int test_array [1 - 2 * !(($2) >= 0)]; 2023test_array [0] = 0; 2024return test_array [0]; 2025 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 ac_lo=0 ac_mid=0 2032 while :; do 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main () 2038{ 2039static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2040test_array [0] = 0; 2041return test_array [0]; 2042 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 ac_hi=$ac_mid; break 2049else 2050 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2051 if test $ac_lo -le $ac_mid; then 2052 ac_lo= ac_hi= 2053 break 2054 fi 2055 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2058 done 2059else 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$4 2063int 2064main () 2065{ 2066static int test_array [1 - 2 * !(($2) < 0)]; 2067test_array [0] = 0; 2068return test_array [0]; 2069 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_hi=-1 ac_mid=-1 2076 while :; do 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080int 2081main () 2082{ 2083static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2084test_array [0] = 0; 2085return test_array [0]; 2086 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_compile "$LINENO"; then : 2092 ac_lo=$ac_mid; break 2093else 2094 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2095 if test $ac_mid -le $ac_hi; then 2096 ac_lo= ac_hi= 2097 break 2098 fi 2099 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2100fi 2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102 done 2103else 2104 ac_lo= ac_hi= 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109# Binary search between lo and hi bounds. 2110while test "x$ac_lo" != "x$ac_hi"; do 2111 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114$4 2115int 2116main () 2117{ 2118static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2119test_array [0] = 0; 2120return test_array [0]; 2121 2122 ; 2123 return 0; 2124} 2125_ACEOF 2126if ac_fn_c_try_compile "$LINENO"; then : 2127 ac_hi=$ac_mid 2128else 2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2132done 2133case $ac_lo in #(( 2134?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2135'') ac_retval=1 ;; 2136esac 2137 else 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141static long int longval () { return $2; } 2142static unsigned long int ulongval () { return $2; } 2143#include <stdio.h> 2144#include <stdlib.h> 2145int 2146main () 2147{ 2148 2149 FILE *f = fopen ("conftest.val", "w"); 2150 if (! f) 2151 return 1; 2152 if (($2) < 0) 2153 { 2154 long int i = longval (); 2155 if (i != ($2)) 2156 return 1; 2157 fprintf (f, "%ld", i); 2158 } 2159 else 2160 { 2161 unsigned long int i = ulongval (); 2162 if (i != ($2)) 2163 return 1; 2164 fprintf (f, "%lu", i); 2165 } 2166 /* Do not output a trailing newline, as this causes \r\n confusion 2167 on some platforms. */ 2168 return ferror (f) || fclose (f) != 0; 2169 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_run "$LINENO"; then : 2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2176else 2177 ac_retval=1 2178fi 2179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2180 conftest.$ac_objext conftest.beam conftest.$ac_ext 2181rm -f conftest.val 2182 2183 fi 2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2185 as_fn_set_status $ac_retval 2186 2187} # ac_fn_c_compute_int 2188cat >config.log <<_ACEOF 2189This file contains any messages produced by compilers while 2190running configure, to aid debugging if configure makes a mistake. 2191 2192It was created by libressl $as_me 3.4.3, which was 2193generated by GNU Autoconf 2.69. Invocation command line was 2194 2195 $ $0 $@ 2196 2197_ACEOF 2198exec 5>>config.log 2199{ 2200cat <<_ASUNAME 2201## --------- ## 2202## Platform. ## 2203## --------- ## 2204 2205hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2206uname -m = `(uname -m) 2>/dev/null || echo unknown` 2207uname -r = `(uname -r) 2>/dev/null || echo unknown` 2208uname -s = `(uname -s) 2>/dev/null || echo unknown` 2209uname -v = `(uname -v) 2>/dev/null || echo unknown` 2210 2211/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2212/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2213 2214/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2215/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2216/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2217/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2218/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2219/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2220/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2221 2222_ASUNAME 2223 2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2225for as_dir in $PATH 2226do 2227 IFS=$as_save_IFS 2228 test -z "$as_dir" && as_dir=. 2229 $as_echo "PATH: $as_dir" 2230 done 2231IFS=$as_save_IFS 2232 2233} >&5 2234 2235cat >&5 <<_ACEOF 2236 2237 2238## ----------- ## 2239## Core tests. ## 2240## ----------- ## 2241 2242_ACEOF 2243 2244 2245# Keep a trace of the command line. 2246# Strip out --no-create and --no-recursion so they do not pile up. 2247# Strip out --silent because we don't want to record it for future runs. 2248# Also quote any args containing shell meta-characters. 2249# Make two passes to allow for proper duplicate-argument suppression. 2250ac_configure_args= 2251ac_configure_args0= 2252ac_configure_args1= 2253ac_must_keep_next=false 2254for ac_pass in 1 2 2255do 2256 for ac_arg 2257 do 2258 case $ac_arg in 2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2261 | -silent | --silent | --silen | --sile | --sil) 2262 continue ;; 2263 *\'*) 2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2265 esac 2266 case $ac_pass in 2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2268 2) 2269 as_fn_append ac_configure_args1 " '$ac_arg'" 2270 if test $ac_must_keep_next = true; then 2271 ac_must_keep_next=false # Got value, back to normal. 2272 else 2273 case $ac_arg in 2274 *=* | --config-cache | -C | -disable-* | --disable-* \ 2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2277 | -with-* | --with-* | -without-* | --without-* | --x) 2278 case "$ac_configure_args0 " in 2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2280 esac 2281 ;; 2282 -* ) ac_must_keep_next=true ;; 2283 esac 2284 fi 2285 as_fn_append ac_configure_args " '$ac_arg'" 2286 ;; 2287 esac 2288 done 2289done 2290{ ac_configure_args0=; unset ac_configure_args0;} 2291{ ac_configure_args1=; unset ac_configure_args1;} 2292 2293# When interrupted or exit'd, cleanup temporary files, and complete 2294# config.log. We remove comments because anyway the quotes in there 2295# would cause problems or look ugly. 2296# WARNING: Use '\'' to represent an apostrophe within the trap. 2297# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2298trap 'exit_status=$? 2299 # Save into config.log some information that might help in debugging. 2300 { 2301 echo 2302 2303 $as_echo "## ---------------- ## 2304## Cache variables. ## 2305## ---------------- ##" 2306 echo 2307 # The following way of writing the cache mishandles newlines in values, 2308( 2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2310 eval ac_val=\$$ac_var 2311 case $ac_val in #( 2312 *${as_nl}*) 2313 case $ac_var in #( 2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2316 esac 2317 case $ac_var in #( 2318 _ | IFS | as_nl) ;; #( 2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2320 *) { eval $ac_var=; unset $ac_var;} ;; 2321 esac ;; 2322 esac 2323 done 2324 (set) 2>&1 | 2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2326 *${as_nl}ac_space=\ *) 2327 sed -n \ 2328 "s/'\''/'\''\\\\'\'''\''/g; 2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2330 ;; #( 2331 *) 2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2333 ;; 2334 esac | 2335 sort 2336) 2337 echo 2338 2339 $as_echo "## ----------------- ## 2340## Output variables. ## 2341## ----------------- ##" 2342 echo 2343 for ac_var in $ac_subst_vars 2344 do 2345 eval ac_val=\$$ac_var 2346 case $ac_val in 2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2348 esac 2349 $as_echo "$ac_var='\''$ac_val'\''" 2350 done | sort 2351 echo 2352 2353 if test -n "$ac_subst_files"; then 2354 $as_echo "## ------------------- ## 2355## File substitutions. ## 2356## ------------------- ##" 2357 echo 2358 for ac_var in $ac_subst_files 2359 do 2360 eval ac_val=\$$ac_var 2361 case $ac_val in 2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2363 esac 2364 $as_echo "$ac_var='\''$ac_val'\''" 2365 done | sort 2366 echo 2367 fi 2368 2369 if test -s confdefs.h; then 2370 $as_echo "## ----------- ## 2371## confdefs.h. ## 2372## ----------- ##" 2373 echo 2374 cat confdefs.h 2375 echo 2376 fi 2377 test "$ac_signal" != 0 && 2378 $as_echo "$as_me: caught signal $ac_signal" 2379 $as_echo "$as_me: exit $exit_status" 2380 } >&5 2381 rm -f core *.core core.conftest.* && 2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2383 exit $exit_status 2384' 0 2385for ac_signal in 1 2 13 15; do 2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2387done 2388ac_signal=0 2389 2390# confdefs.h avoids OS command line length limits that DEFS can exceed. 2391rm -f -r conftest* confdefs.h 2392 2393$as_echo "/* confdefs.h */" > confdefs.h 2394 2395# Predefined preprocessor variables. 2396 2397cat >>confdefs.h <<_ACEOF 2398#define PACKAGE_NAME "$PACKAGE_NAME" 2399_ACEOF 2400 2401cat >>confdefs.h <<_ACEOF 2402#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2403_ACEOF 2404 2405cat >>confdefs.h <<_ACEOF 2406#define PACKAGE_VERSION "$PACKAGE_VERSION" 2407_ACEOF 2408 2409cat >>confdefs.h <<_ACEOF 2410#define PACKAGE_STRING "$PACKAGE_STRING" 2411_ACEOF 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2415_ACEOF 2416 2417cat >>confdefs.h <<_ACEOF 2418#define PACKAGE_URL "$PACKAGE_URL" 2419_ACEOF 2420 2421 2422# Let the site file select an alternate cache file if it wants to. 2423# Prefer an explicitly selected file to automatically selected ones. 2424ac_site_file1=NONE 2425ac_site_file2=NONE 2426if test -n "$CONFIG_SITE"; then 2427 # We do not want a PATH search for config.site. 2428 case $CONFIG_SITE in #(( 2429 -*) ac_site_file1=./$CONFIG_SITE;; 2430 */*) ac_site_file1=$CONFIG_SITE;; 2431 *) ac_site_file1=./$CONFIG_SITE;; 2432 esac 2433elif test "x$prefix" != xNONE; then 2434 ac_site_file1=$prefix/share/config.site 2435 ac_site_file2=$prefix/etc/config.site 2436else 2437 ac_site_file1=$ac_default_prefix/share/config.site 2438 ac_site_file2=$ac_default_prefix/etc/config.site 2439fi 2440for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2441do 2442 test "x$ac_site_file" = xNONE && continue 2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2445$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2446 sed 's/^/| /' "$ac_site_file" >&5 2447 . "$ac_site_file" \ 2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2450as_fn_error $? "failed to load site script $ac_site_file 2451See \`config.log' for more details" "$LINENO" 5; } 2452 fi 2453done 2454 2455if test -r "$cache_file"; then 2456 # Some versions of bash will fail to source /dev/null (special files 2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2460$as_echo "$as_me: loading cache $cache_file" >&6;} 2461 case $cache_file in 2462 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2463 *) . "./$cache_file";; 2464 esac 2465 fi 2466else 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2468$as_echo "$as_me: creating cache $cache_file" >&6;} 2469 >$cache_file 2470fi 2471 2472# Check that the precious variables saved in the cache have kept the same 2473# value. 2474ac_cache_corrupted=false 2475for ac_var in $ac_precious_vars; do 2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2477 eval ac_new_set=\$ac_env_${ac_var}_set 2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2479 eval ac_new_val=\$ac_env_${ac_var}_value 2480 case $ac_old_set,$ac_new_set in 2481 set,) 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2483$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2484 ac_cache_corrupted=: ;; 2485 ,set) 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2487$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2488 ac_cache_corrupted=: ;; 2489 ,);; 2490 *) 2491 if test "x$ac_old_val" != "x$ac_new_val"; then 2492 # differences in whitespace do not lead to failure. 2493 ac_old_val_w=`echo x $ac_old_val` 2494 ac_new_val_w=`echo x $ac_new_val` 2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2497$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2498 ac_cache_corrupted=: 2499 else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2501$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2502 eval $ac_var=\$ac_old_val 2503 fi 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2505$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2507$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2508 fi;; 2509 esac 2510 # Pass precious variables to config.status. 2511 if test "$ac_new_set" = set; then 2512 case $ac_new_val in 2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2514 *) ac_arg=$ac_var=$ac_new_val ;; 2515 esac 2516 case " $ac_configure_args " in 2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2519 esac 2520 fi 2521done 2522if $ac_cache_corrupted; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2526$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2527 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2528fi 2529## -------------------- ## 2530## Main body of script. ## 2531## -------------------- ## 2532 2533ac_ext=c 2534ac_cpp='$CPP $CPPFLAGS' 2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2537ac_compiler_gnu=$ac_cv_c_compiler_gnu 2538 2539 2540LIBCRYPTO_VERSION=47:0:0 2541 2542LIBSSL_VERSION=50:0:0 2543 2544LIBTLS_VERSION=22:0:0 2545 2546 2547ac_aux_dir= 2548for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2549 if test -f "$ac_dir/install-sh"; then 2550 ac_aux_dir=$ac_dir 2551 ac_install_sh="$ac_aux_dir/install-sh -c" 2552 break 2553 elif test -f "$ac_dir/install.sh"; then 2554 ac_aux_dir=$ac_dir 2555 ac_install_sh="$ac_aux_dir/install.sh -c" 2556 break 2557 elif test -f "$ac_dir/shtool"; then 2558 ac_aux_dir=$ac_dir 2559 ac_install_sh="$ac_aux_dir/shtool install -c" 2560 break 2561 fi 2562done 2563if test -z "$ac_aux_dir"; then 2564 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2565fi 2566 2567# These three variables are undocumented and unsupported, 2568# and are intended to be withdrawn in a future Autoconf release. 2569# They can cause serious problems if a builder's source tree is in a directory 2570# whose full name contains unusual characters. 2571ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2572ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2573ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2574 2575 2576# Make sure we can run config.sub. 2577$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2578 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2579 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2581$as_echo_n "checking build system type... " >&6; } 2582if ${ac_cv_build+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 ac_build_alias=$build_alias 2586test "x$ac_build_alias" = x && 2587 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2588test "x$ac_build_alias" = x && 2589 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2590ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2592 2593fi 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2595$as_echo "$ac_cv_build" >&6; } 2596case $ac_cv_build in 2597*-*-*) ;; 2598*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2599esac 2600build=$ac_cv_build 2601ac_save_IFS=$IFS; IFS='-' 2602set x $ac_cv_build 2603shift 2604build_cpu=$1 2605build_vendor=$2 2606shift; shift 2607# Remember, the first character of IFS is used to create $*, 2608# except with old shells: 2609build_os=$* 2610IFS=$ac_save_IFS 2611case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2612 2613 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2615$as_echo_n "checking host system type... " >&6; } 2616if ${ac_cv_host+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 if test "x$host_alias" = x; then 2620 ac_cv_host=$ac_cv_build 2621else 2622 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2624fi 2625 2626fi 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2628$as_echo "$ac_cv_host" >&6; } 2629case $ac_cv_host in 2630*-*-*) ;; 2631*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2632esac 2633host=$ac_cv_host 2634ac_save_IFS=$IFS; IFS='-' 2635set x $ac_cv_host 2636shift 2637host_cpu=$1 2638host_vendor=$2 2639shift; shift 2640# Remember, the first character of IFS is used to create $*, 2641# except with old shells: 2642host_os=$* 2643IFS=$ac_save_IFS 2644case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2645 2646 2647am__api_version='1.16' 2648 2649# Find a good install program. We prefer a C program (faster), 2650# so one script is as good as another. But avoid the broken or 2651# incompatible versions: 2652# SysV /etc/install, /usr/sbin/install 2653# SunOS /usr/etc/install 2654# IRIX /sbin/install 2655# AIX /bin/install 2656# AmigaOS /C/install, which installs bootblocks on floppy discs 2657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2658# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2660# OS/2's system install, which has a completely different semantic 2661# ./install, which can be erroneously created by make from ./install.sh. 2662# Reject install programs that cannot install multiple files. 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2664$as_echo_n "checking for a BSD-compatible install... " >&6; } 2665if test -z "$INSTALL"; then 2666if ${ac_cv_path_install+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 # Account for people who put trailing slashes in PATH elements. 2675case $as_dir/ in #(( 2676 ./ | .// | /[cC]/* | \ 2677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2678 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2679 /usr/ucb/* ) ;; 2680 *) 2681 # OSF1 and SCO ODT 3.0 have their own names for install. 2682 # Don't use installbsd from OSF since it installs stuff as root 2683 # by default. 2684 for ac_prog in ginstall scoinst install; do 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2687 if test $ac_prog = install && 2688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2689 # AIX install. It has an incompatible calling convention. 2690 : 2691 elif test $ac_prog = install && 2692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2693 # program-specific install script used by HP pwplus--don't use. 2694 : 2695 else 2696 rm -rf conftest.one conftest.two conftest.dir 2697 echo one > conftest.one 2698 echo two > conftest.two 2699 mkdir conftest.dir 2700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2701 test -s conftest.one && test -s conftest.two && 2702 test -s conftest.dir/conftest.one && 2703 test -s conftest.dir/conftest.two 2704 then 2705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2706 break 3 2707 fi 2708 fi 2709 fi 2710 done 2711 done 2712 ;; 2713esac 2714 2715 done 2716IFS=$as_save_IFS 2717 2718rm -rf conftest.one conftest.two conftest.dir 2719 2720fi 2721 if test "${ac_cv_path_install+set}" = set; then 2722 INSTALL=$ac_cv_path_install 2723 else 2724 # As a last resort, use the slow shell script. Don't cache a 2725 # value for INSTALL within a source directory, because that will 2726 # break other packages using the cache if that directory is 2727 # removed, or if the value is a relative name. 2728 INSTALL=$ac_install_sh 2729 fi 2730fi 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2732$as_echo "$INSTALL" >&6; } 2733 2734# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2735# It thinks the first close brace ends the variable substitution. 2736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2737 2738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2739 2740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2741 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2743$as_echo_n "checking whether build environment is sane... " >&6; } 2744# Reject unsafe characters in $srcdir or the absolute working directory 2745# name. Accept space and tab only in the latter. 2746am_lf=' 2747' 2748case `pwd` in 2749 *[\\\"\#\$\&\'\`$am_lf]*) 2750 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2751esac 2752case $srcdir in 2753 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2754 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2755esac 2756 2757# Do 'set' in a subshell so we don't clobber the current shell's 2758# arguments. Must try -L first in case configure is actually a 2759# symlink; some systems play weird games with the mod time of symlinks 2760# (eg FreeBSD returns the mod time of the symlink's containing 2761# directory). 2762if ( 2763 am_has_slept=no 2764 for am_try in 1 2; do 2765 echo "timestamp, slept: $am_has_slept" > conftest.file 2766 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2767 if test "$*" = "X"; then 2768 # -L didn't work. 2769 set X `ls -t "$srcdir/configure" conftest.file` 2770 fi 2771 if test "$*" != "X $srcdir/configure conftest.file" \ 2772 && test "$*" != "X conftest.file $srcdir/configure"; then 2773 2774 # If neither matched, then we have a broken ls. This can happen 2775 # if, for instance, CONFIG_SHELL is bash and it inherits a 2776 # broken ls alias from the environment. This has actually 2777 # happened. Such a system could not be considered "sane". 2778 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2779 alias in your environment" "$LINENO" 5 2780 fi 2781 if test "$2" = conftest.file || test $am_try -eq 2; then 2782 break 2783 fi 2784 # Just in case. 2785 sleep 1 2786 am_has_slept=yes 2787 done 2788 test "$2" = conftest.file 2789 ) 2790then 2791 # Ok. 2792 : 2793else 2794 as_fn_error $? "newly created file is older than distributed files! 2795Check your system clock" "$LINENO" 5 2796fi 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2798$as_echo "yes" >&6; } 2799# If we didn't sleep, we still need to ensure time stamps of config.status and 2800# generated files are strictly newer. 2801am_sleep_pid= 2802if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2803 ( sleep 1 ) & 2804 am_sleep_pid=$! 2805fi 2806 2807rm -f conftest.file 2808 2809test "$program_prefix" != NONE && 2810 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2811# Use a double $ so make ignores it. 2812test "$program_suffix" != NONE && 2813 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2814# Double any \ or $. 2815# By default was `s,x,x', remove it if useless. 2816ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2817program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2818 2819# Expand $ac_aux_dir to an absolute path. 2820am_aux_dir=`cd "$ac_aux_dir" && pwd` 2821 2822if test x"${MISSING+set}" != xset; then 2823 MISSING="\${SHELL} '$am_aux_dir/missing'" 2824fi 2825# Use eval to expand $SHELL 2826if eval "$MISSING --is-lightweight"; then 2827 am_missing_run="$MISSING " 2828else 2829 am_missing_run= 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2831$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2832fi 2833 2834if test x"${install_sh+set}" != xset; then 2835 case $am_aux_dir in 2836 *\ * | *\ *) 2837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2838 *) 2839 install_sh="\${SHELL} $am_aux_dir/install-sh" 2840 esac 2841fi 2842 2843# Installed binaries are usually stripped using 'strip' when the user 2844# run "make install-strip". However 'strip' might not be the right 2845# tool to use in cross-compilation environments, therefore Automake 2846# will honor the 'STRIP' environment variable to overrule this program. 2847if test "$cross_compiling" != no; then 2848 if test -n "$ac_tool_prefix"; then 2849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2850set dummy ${ac_tool_prefix}strip; ac_word=$2 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2852$as_echo_n "checking for $ac_word... " >&6; } 2853if ${ac_cv_prog_STRIP+:} false; then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 if test -n "$STRIP"; then 2857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2858else 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860for as_dir in $PATH 2861do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870done 2871 done 2872IFS=$as_save_IFS 2873 2874fi 2875fi 2876STRIP=$ac_cv_prog_STRIP 2877if test -n "$STRIP"; then 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2879$as_echo "$STRIP" >&6; } 2880else 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2882$as_echo "no" >&6; } 2883fi 2884 2885 2886fi 2887if test -z "$ac_cv_prog_STRIP"; then 2888 ac_ct_STRIP=$STRIP 2889 # Extract the first word of "strip", so it can be a program name with args. 2890set dummy strip; ac_word=$2 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892$as_echo_n "checking for $ac_word... " >&6; } 2893if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 if test -n "$ac_ct_STRIP"; then 2897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2898else 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900for as_dir in $PATH 2901do 2902 IFS=$as_save_IFS 2903 test -z "$as_dir" && as_dir=. 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2906 ac_cv_prog_ac_ct_STRIP="strip" 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910done 2911 done 2912IFS=$as_save_IFS 2913 2914fi 2915fi 2916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2917if test -n "$ac_ct_STRIP"; then 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2919$as_echo "$ac_ct_STRIP" >&6; } 2920else 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922$as_echo "no" >&6; } 2923fi 2924 2925 if test "x$ac_ct_STRIP" = x; then 2926 STRIP=":" 2927 else 2928 case $cross_compiling:$ac_tool_warned in 2929yes:) 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2932ac_tool_warned=yes ;; 2933esac 2934 STRIP=$ac_ct_STRIP 2935 fi 2936else 2937 STRIP="$ac_cv_prog_STRIP" 2938fi 2939 2940fi 2941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2942 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2944$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2945if test -z "$MKDIR_P"; then 2946 if ${ac_cv_path_mkdir+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2950for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2951do 2952 IFS=$as_save_IFS 2953 test -z "$as_dir" && as_dir=. 2954 for ac_prog in mkdir gmkdir; do 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2958 'mkdir (GNU coreutils) '* | \ 2959 'mkdir (coreutils) '* | \ 2960 'mkdir (fileutils) '4.1*) 2961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2962 break 3;; 2963 esac 2964 done 2965 done 2966 done 2967IFS=$as_save_IFS 2968 2969fi 2970 2971 test -d ./--version && rmdir ./--version 2972 if test "${ac_cv_path_mkdir+set}" = set; then 2973 MKDIR_P="$ac_cv_path_mkdir -p" 2974 else 2975 # As a last resort, use the slow shell script. Don't cache a 2976 # value for MKDIR_P within a source directory, because that will 2977 # break other packages using the cache if that directory is 2978 # removed, or if the value is a relative name. 2979 MKDIR_P="$ac_install_sh -d" 2980 fi 2981fi 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2983$as_echo "$MKDIR_P" >&6; } 2984 2985for ac_prog in gawk mawk nawk awk 2986do 2987 # Extract the first word of "$ac_prog", so it can be a program name with args. 2988set dummy $ac_prog; ac_word=$2 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990$as_echo_n "checking for $ac_word... " >&6; } 2991if ${ac_cv_prog_AWK+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 if test -n "$AWK"; then 2995 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2996else 2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998for as_dir in $PATH 2999do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 ac_cv_prog_AWK="$ac_prog" 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008done 3009 done 3010IFS=$as_save_IFS 3011 3012fi 3013fi 3014AWK=$ac_cv_prog_AWK 3015if test -n "$AWK"; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3017$as_echo "$AWK" >&6; } 3018else 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020$as_echo "no" >&6; } 3021fi 3022 3023 3024 test -n "$AWK" && break 3025done 3026 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3028$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3029set x ${MAKE-make} 3030ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3031if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033else 3034 cat >conftest.make <<\_ACEOF 3035SHELL = /bin/sh 3036all: 3037 @echo '@@@%%%=$(MAKE)=@@@%%%' 3038_ACEOF 3039# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3040case `${MAKE-make} -f conftest.make 2>/dev/null` in 3041 *@@@%%%=?*=@@@%%%*) 3042 eval ac_cv_prog_make_${ac_make}_set=yes;; 3043 *) 3044 eval ac_cv_prog_make_${ac_make}_set=no;; 3045esac 3046rm -f conftest.make 3047fi 3048if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3050$as_echo "yes" >&6; } 3051 SET_MAKE= 3052else 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3054$as_echo "no" >&6; } 3055 SET_MAKE="MAKE=${MAKE-make}" 3056fi 3057 3058rm -rf .tst 2>/dev/null 3059mkdir .tst 2>/dev/null 3060if test -d .tst; then 3061 am__leading_dot=. 3062else 3063 am__leading_dot=_ 3064fi 3065rmdir .tst 2>/dev/null 3066 3067# Check whether --enable-silent-rules was given. 3068if test "${enable_silent_rules+set}" = set; then : 3069 enableval=$enable_silent_rules; 3070fi 3071 3072case $enable_silent_rules in # ((( 3073 yes) AM_DEFAULT_VERBOSITY=0;; 3074 no) AM_DEFAULT_VERBOSITY=1;; 3075 *) AM_DEFAULT_VERBOSITY=1;; 3076esac 3077am_make=${MAKE-make} 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3079$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3080if ${am_cv_make_support_nested_variables+:} false; then : 3081 $as_echo_n "(cached) " >&6 3082else 3083 if $as_echo 'TRUE=$(BAR$(V)) 3084BAR0=false 3085BAR1=true 3086V=1 3087am__doit: 3088 @$(TRUE) 3089.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3090 am_cv_make_support_nested_variables=yes 3091else 3092 am_cv_make_support_nested_variables=no 3093fi 3094fi 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3096$as_echo "$am_cv_make_support_nested_variables" >&6; } 3097if test $am_cv_make_support_nested_variables = yes; then 3098 AM_V='$(V)' 3099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3100else 3101 AM_V=$AM_DEFAULT_VERBOSITY 3102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3103fi 3104AM_BACKSLASH='\' 3105 3106if test "`cd $srcdir && pwd`" != "`pwd`"; then 3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3108 # is not polluted with repeated "-I." 3109 am__isrc=' -I$(srcdir)' 3110 # test to see if srcdir already configured 3111 if test -f $srcdir/config.status; then 3112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3113 fi 3114fi 3115 3116# test whether we have cygpath 3117if test -z "$CYGPATH_W"; then 3118 if (cygpath --version) >/dev/null 2>/dev/null; then 3119 CYGPATH_W='cygpath -w' 3120 else 3121 CYGPATH_W=echo 3122 fi 3123fi 3124 3125 3126# Define the identity of the package. 3127 PACKAGE='libressl' 3128 VERSION='3.4.3' 3129 3130 3131cat >>confdefs.h <<_ACEOF 3132#define PACKAGE "$PACKAGE" 3133_ACEOF 3134 3135 3136cat >>confdefs.h <<_ACEOF 3137#define VERSION "$VERSION" 3138_ACEOF 3139 3140# Some tools Automake needs. 3141 3142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3143 3144 3145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3146 3147 3148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3149 3150 3151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3152 3153 3154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3155 3156# For better backward compatibility. To be removed once Automake 1.9.x 3157# dies out for good. For more background, see: 3158# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3159# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3160mkdir_p='$(MKDIR_P)' 3161 3162# We need awk for the "check" target (and possibly the TAP driver). The 3163# system "awk" is bad on some platforms. 3164# Always define AMTAR for backward compatibility. Yes, it's still used 3165# in the wild :-( We should find a proper way to deprecate it ... 3166AMTAR='$${TAR-tar}' 3167 3168 3169# We'll loop over all known methods to create a tar archive until one works. 3170_am_tools='gnutar pax cpio none' 3171 3172am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3173 3174 3175 3176 3177 3178 3179# POSIX will say in a future version that running "rm -f" with no argument 3180# is OK; and we want to be able to make that assumption in our Makefile 3181# recipes. So use an aggressive probe to check that the usage we want is 3182# actually supported "in the wild" to an acceptable degree. 3183# See automake bug#10828. 3184# To make any issue more visible, cause the running configure to be aborted 3185# by default if the 'rm' program in use doesn't match our expectations; the 3186# user can still override this though. 3187if rm -f && rm -fr && rm -rf; then : OK; else 3188 cat >&2 <<'END' 3189Oops! 3190 3191Your 'rm' program seems unable to run without file operands specified 3192on the command line, even when the '-f' option is present. This is contrary 3193to the behaviour of most rm programs out there, and not conforming with 3194the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3195 3196Please tell bug-automake@gnu.org about your system, including the value 3197of your $PATH and any error possibly output before this message. This 3198can help us improve future automake versions. 3199 3200END 3201 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3202 echo 'Configuration will proceed anyway, since you have set the' >&2 3203 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3204 echo >&2 3205 else 3206 cat >&2 <<'END' 3207Aborting the configuration process, to ensure you take notice of the issue. 3208 3209You can download and install GNU coreutils to get an 'rm' implementation 3210that behaves properly: <https://www.gnu.org/software/coreutils/>. 3211 3212If you want to complete the configuration process using your problematic 3213'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3214to "yes", and re-run configure. 3215 3216END 3217 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3218 fi 3219fi 3220 3221 3222 3223# Check whether --enable-silent-rules was given. 3224if test "${enable_silent_rules+set}" = set; then : 3225 enableval=$enable_silent_rules; 3226fi 3227 3228case $enable_silent_rules in # ((( 3229 yes) AM_DEFAULT_VERBOSITY=0;; 3230 no) AM_DEFAULT_VERBOSITY=1;; 3231 *) AM_DEFAULT_VERBOSITY=0;; 3232esac 3233am_make=${MAKE-make} 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3235$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3236if ${am_cv_make_support_nested_variables+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 if $as_echo 'TRUE=$(BAR$(V)) 3240BAR0=false 3241BAR1=true 3242V=1 3243am__doit: 3244 @$(TRUE) 3245.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3246 am_cv_make_support_nested_variables=yes 3247else 3248 am_cv_make_support_nested_variables=no 3249fi 3250fi 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3252$as_echo "$am_cv_make_support_nested_variables" >&6; } 3253if test $am_cv_make_support_nested_variables = yes; then 3254 AM_V='$(V)' 3255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3256else 3257 AM_V=$AM_DEFAULT_VERBOSITY 3258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3259fi 3260AM_BACKSLASH='\' 3261 3262 3263# This must be saved before AC_PROG_CC 3264USER_CFLAGS="$CFLAGS" 3265 3266ac_ext=c 3267ac_cpp='$CPP $CPPFLAGS' 3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3270ac_compiler_gnu=$ac_cv_c_compiler_gnu 3271if test -n "$ac_tool_prefix"; then 3272 for ac_prog in cc gcc 3273 do 3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3277$as_echo_n "checking for $ac_word... " >&6; } 3278if ${ac_cv_prog_CC+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 if test -n "$CC"; then 3282 ac_cv_prog_CC="$CC" # Let the user override the test. 3283else 3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3285for as_dir in $PATH 3286do 3287 IFS=$as_save_IFS 3288 test -z "$as_dir" && as_dir=. 3289 for ac_exec_ext in '' $ac_executable_extensions; do 3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3293 break 2 3294 fi 3295done 3296 done 3297IFS=$as_save_IFS 3298 3299fi 3300fi 3301CC=$ac_cv_prog_CC 3302if test -n "$CC"; then 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3304$as_echo "$CC" >&6; } 3305else 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3307$as_echo "no" >&6; } 3308fi 3309 3310 3311 test -n "$CC" && break 3312 done 3313fi 3314if test -z "$CC"; then 3315 ac_ct_CC=$CC 3316 for ac_prog in cc gcc 3317do 3318 # Extract the first word of "$ac_prog", so it can be a program name with args. 3319set dummy $ac_prog; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if ${ac_cv_prog_ac_ct_CC+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$ac_ct_CC"; then 3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_ac_ct_CC="$ac_prog" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345ac_ct_CC=$ac_cv_prog_ac_ct_CC 3346if test -n "$ac_ct_CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3348$as_echo "$ac_ct_CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355 test -n "$ac_ct_CC" && break 3356done 3357 3358 if test "x$ac_ct_CC" = x; then 3359 CC="" 3360 else 3361 case $cross_compiling:$ac_tool_warned in 3362yes:) 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3365ac_tool_warned=yes ;; 3366esac 3367 CC=$ac_ct_CC 3368 fi 3369fi 3370 3371 3372test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3374as_fn_error $? "no acceptable C compiler found in \$PATH 3375See \`config.log' for more details" "$LINENO" 5; } 3376 3377# Provide some information about the compiler. 3378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3379set X $ac_compile 3380ac_compiler=$2 3381for ac_option in --version -v -V -qversion; do 3382 { { ac_try="$ac_compiler $ac_option >&5" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3388$as_echo "$ac_try_echo"; } >&5 3389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3390 ac_status=$? 3391 if test -s conftest.err; then 3392 sed '10a\ 3393... rest of stderr output deleted ... 3394 10q' conftest.err >conftest.er1 3395 cat conftest.er1 >&5 3396 fi 3397 rm -f conftest.er1 conftest.err 3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; } 3400done 3401 3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413ac_clean_files_save=$ac_clean_files 3414ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3415# Try to create an executable without -o first, disregard a.out. 3416# It will help us diagnose broken compilers, and finding out an intuition 3417# of exeext. 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3419$as_echo_n "checking whether the C compiler works... " >&6; } 3420ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3421 3422# The possible output files: 3423ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3424 3425ac_rmfiles= 3426for ac_file in $ac_files 3427do 3428 case $ac_file in 3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3430 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3431 esac 3432done 3433rm -f $ac_rmfiles 3434 3435if { { ac_try="$ac_link_default" 3436case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439esac 3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3441$as_echo "$ac_try_echo"; } >&5 3442 (eval "$ac_link_default") 2>&5 3443 ac_status=$? 3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3445 test $ac_status = 0; }; then : 3446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3447# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3448# in a Makefile. We should not override ac_cv_exeext if it was cached, 3449# so that the user can short-circuit this test for compilers unknown to 3450# Autoconf. 3451for ac_file in $ac_files '' 3452do 3453 test -f "$ac_file" || continue 3454 case $ac_file in 3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3456 ;; 3457 [ab].out ) 3458 # We found the default executable, but exeext='' is most 3459 # certainly right. 3460 break;; 3461 *.* ) 3462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3463 then :; else 3464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3465 fi 3466 # We set ac_cv_exeext here because the later test for it is not 3467 # safe: cross compilers may not add the suffix if given an `-o' 3468 # argument, so we may need to know it at that point already. 3469 # Even if this section looks crufty: it has the advantage of 3470 # actually working. 3471 break;; 3472 * ) 3473 break;; 3474 esac 3475done 3476test "$ac_cv_exeext" = no && ac_cv_exeext= 3477 3478else 3479 ac_file='' 3480fi 3481if test -z "$ac_file"; then : 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484$as_echo "$as_me: failed program was:" >&5 3485sed 's/^/| /' conftest.$ac_ext >&5 3486 3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489as_fn_error 77 "C compiler cannot create executables 3490See \`config.log' for more details" "$LINENO" 5; } 3491else 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3493$as_echo "yes" >&6; } 3494fi 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3496$as_echo_n "checking for C compiler default output file name... " >&6; } 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3498$as_echo "$ac_file" >&6; } 3499ac_exeext=$ac_cv_exeext 3500 3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3502ac_clean_files=$ac_clean_files_save 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3504$as_echo_n "checking for suffix of executables... " >&6; } 3505if { { ac_try="$ac_link" 3506case "(($ac_try" in 3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3508 *) ac_try_echo=$ac_try;; 3509esac 3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3511$as_echo "$ac_try_echo"; } >&5 3512 (eval "$ac_link") 2>&5 3513 ac_status=$? 3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3515 test $ac_status = 0; }; then : 3516 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3517# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3518# work properly (i.e., refer to `conftest.exe'), while it won't with 3519# `rm'. 3520for ac_file in conftest.exe conftest conftest.*; do 3521 test -f "$ac_file" || continue 3522 case $ac_file in 3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3525 break;; 3526 * ) break;; 3527 esac 3528done 3529else 3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3532as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3533See \`config.log' for more details" "$LINENO" 5; } 3534fi 3535rm -f conftest conftest$ac_cv_exeext 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3537$as_echo "$ac_cv_exeext" >&6; } 3538 3539rm -f conftest.$ac_ext 3540EXEEXT=$ac_cv_exeext 3541ac_exeext=$EXEEXT 3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544#include <stdio.h> 3545int 3546main () 3547{ 3548FILE *f = fopen ("conftest.out", "w"); 3549 return ferror (f) || fclose (f) != 0; 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555ac_clean_files="$ac_clean_files conftest.out" 3556# Check that the compiler produces executables we can run. If not, either 3557# the compiler is broken, or we cross compile. 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3559$as_echo_n "checking whether we are cross compiling... " >&6; } 3560if test "$cross_compiling" != yes; then 3561 { { ac_try="$ac_link" 3562case "(($ac_try" in 3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3564 *) ac_try_echo=$ac_try;; 3565esac 3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3567$as_echo "$ac_try_echo"; } >&5 3568 (eval "$ac_link") 2>&5 3569 ac_status=$? 3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3571 test $ac_status = 0; } 3572 if { ac_try='./conftest$ac_cv_exeext' 3573 { { case "(($ac_try" in 3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3575 *) ac_try_echo=$ac_try;; 3576esac 3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3578$as_echo "$ac_try_echo"; } >&5 3579 (eval "$ac_try") 2>&5 3580 ac_status=$? 3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3582 test $ac_status = 0; }; }; then 3583 cross_compiling=no 3584 else 3585 if test "$cross_compiling" = maybe; then 3586 cross_compiling=yes 3587 else 3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3590as_fn_error $? "cannot run C compiled programs. 3591If you meant to cross compile, use \`--host'. 3592See \`config.log' for more details" "$LINENO" 5; } 3593 fi 3594 fi 3595fi 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3597$as_echo "$cross_compiling" >&6; } 3598 3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3600ac_clean_files=$ac_clean_files_save 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3602$as_echo_n "checking for suffix of object files... " >&6; } 3603if ${ac_cv_objext+:} false; then : 3604 $as_echo_n "(cached) " >&6 3605else 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3607/* end confdefs.h. */ 3608 3609int 3610main () 3611{ 3612 3613 ; 3614 return 0; 3615} 3616_ACEOF 3617rm -f conftest.o conftest.obj 3618if { { ac_try="$ac_compile" 3619case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3624$as_echo "$ac_try_echo"; } >&5 3625 (eval "$ac_compile") 2>&5 3626 ac_status=$? 3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3628 test $ac_status = 0; }; then : 3629 for ac_file in conftest.o conftest.obj conftest.*; do 3630 test -f "$ac_file" || continue; 3631 case $ac_file in 3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3634 break;; 3635 esac 3636done 3637else 3638 $as_echo "$as_me: failed program was:" >&5 3639sed 's/^/| /' conftest.$ac_ext >&5 3640 3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3643as_fn_error $? "cannot compute suffix of object files: cannot compile 3644See \`config.log' for more details" "$LINENO" 5; } 3645fi 3646rm -f conftest.$ac_cv_objext conftest.$ac_ext 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3649$as_echo "$ac_cv_objext" >&6; } 3650OBJEXT=$ac_cv_objext 3651ac_objext=$OBJEXT 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3653$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3654if ${ac_cv_c_compiler_gnu+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659 3660int 3661main () 3662{ 3663#ifndef __GNUC__ 3664 choke me 3665#endif 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671if ac_fn_c_try_compile "$LINENO"; then : 3672 ac_compiler_gnu=yes 3673else 3674 ac_compiler_gnu=no 3675fi 3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3677ac_cv_c_compiler_gnu=$ac_compiler_gnu 3678 3679fi 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3681$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3682if test $ac_compiler_gnu = yes; then 3683 GCC=yes 3684else 3685 GCC= 3686fi 3687ac_test_CFLAGS=${CFLAGS+set} 3688ac_save_CFLAGS=$CFLAGS 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3690$as_echo_n "checking whether $CC accepts -g... " >&6; } 3691if ${ac_cv_prog_cc_g+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 ac_save_c_werror_flag=$ac_c_werror_flag 3695 ac_c_werror_flag=yes 3696 ac_cv_prog_cc_g=no 3697 CFLAGS="-g" 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO"; then : 3710 ac_cv_prog_cc_g=yes 3711else 3712 CFLAGS="" 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716int 3717main () 3718{ 3719 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724if ac_fn_c_try_compile "$LINENO"; then : 3725 3726else 3727 ac_c_werror_flag=$ac_save_c_werror_flag 3728 CFLAGS="-g" 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731 3732int 3733main () 3734{ 3735 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740if ac_fn_c_try_compile "$LINENO"; then : 3741 ac_cv_prog_cc_g=yes 3742fi 3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3744fi 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746fi 3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3748 ac_c_werror_flag=$ac_save_c_werror_flag 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3751$as_echo "$ac_cv_prog_cc_g" >&6; } 3752if test "$ac_test_CFLAGS" = set; then 3753 CFLAGS=$ac_save_CFLAGS 3754elif test $ac_cv_prog_cc_g = yes; then 3755 if test "$GCC" = yes; then 3756 CFLAGS="-g -O2" 3757 else 3758 CFLAGS="-g" 3759 fi 3760else 3761 if test "$GCC" = yes; then 3762 CFLAGS="-O2" 3763 else 3764 CFLAGS= 3765 fi 3766fi 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3769if ${ac_cv_prog_cc_c89+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 ac_cv_prog_cc_c89=no 3773ac_save_CC=$CC 3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776#include <stdarg.h> 3777#include <stdio.h> 3778struct stat; 3779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3780struct buf { int x; }; 3781FILE * (*rcsopen) (struct buf *, struct stat *, int); 3782static char *e (p, i) 3783 char **p; 3784 int i; 3785{ 3786 return p[i]; 3787} 3788static char *f (char * (*g) (char **, int), char **p, ...) 3789{ 3790 char *s; 3791 va_list v; 3792 va_start (v,p); 3793 s = g (p, va_arg (v,int)); 3794 va_end (v); 3795 return s; 3796} 3797 3798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3799 function prototypes and stuff, but not '\xHH' hex character constants. 3800 These don't provoke an error unfortunately, instead are silently treated 3801 as 'x'. The following induces an error, until -std is added to get 3802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3803 array size at least. It's necessary to write '\x00'==0 to get something 3804 that's true only with -std. */ 3805int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3806 3807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3808 inside strings and character constants. */ 3809#define FOO(x) 'x' 3810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3811 3812int test (int i, double x); 3813struct s1 {int (*f) (int a);}; 3814struct s2 {int (*f) (double a);}; 3815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3816int argc; 3817char **argv; 3818int 3819main () 3820{ 3821return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3828do 3829 CC="$ac_save_CC $ac_arg" 3830 if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_cv_prog_cc_c89=$ac_arg 3832fi 3833rm -f core conftest.err conftest.$ac_objext 3834 test "x$ac_cv_prog_cc_c89" != "xno" && break 3835done 3836rm -f conftest.$ac_ext 3837CC=$ac_save_CC 3838 3839fi 3840# AC_CACHE_VAL 3841case "x$ac_cv_prog_cc_c89" in 3842 x) 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3844$as_echo "none needed" >&6; } ;; 3845 xno) 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3847$as_echo "unsupported" >&6; } ;; 3848 *) 3849 CC="$CC $ac_cv_prog_cc_c89" 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3851$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3852esac 3853if test "x$ac_cv_prog_cc_c89" != xno; then : 3854 3855fi 3856 3857ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3869$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3870if ${am_cv_prog_cc_c_o+:} false; then : 3871 $as_echo_n "(cached) " >&6 3872else 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875 3876int 3877main () 3878{ 3879 3880 ; 3881 return 0; 3882} 3883_ACEOF 3884 # Make sure it works both with $CC and with simple cc. 3885 # Following AC_PROG_CC_C_O, we do the test twice because some 3886 # compilers refuse to overwrite an existing .o file with -o, 3887 # though they will create one. 3888 am_cv_prog_cc_c_o=yes 3889 for am_i in 1 2; do 3890 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3891 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3892 ac_status=$? 3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3894 (exit $ac_status); } \ 3895 && test -f conftest2.$ac_objext; then 3896 : OK 3897 else 3898 am_cv_prog_cc_c_o=no 3899 break 3900 fi 3901 done 3902 rm -f core conftest* 3903 unset am_i 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3906$as_echo "$am_cv_prog_cc_c_o" >&6; } 3907if test "$am_cv_prog_cc_c_o" != yes; then 3908 # Losing compiler, so override with the script. 3909 # FIXME: It is wrong to rewrite CC. 3910 # But if we don't then we get into trouble of one sort or another. 3911 # A longer-term fix would be to have automake use am__CC in this case, 3912 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3913 CC="$am_aux_dir/compile $CC" 3914fi 3915ac_ext=c 3916ac_cpp='$CPP $CPPFLAGS' 3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3919ac_compiler_gnu=$ac_cv_c_compiler_gnu 3920 3921DEPDIR="${am__leading_dot}deps" 3922 3923ac_config_commands="$ac_config_commands depfiles" 3924 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3926$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3927cat > confinc.mk << 'END' 3928am__doit: 3929 @echo this is the am__doit target >confinc.out 3930.PHONY: am__doit 3931END 3932am__include="#" 3933am__quote= 3934# BSD make does it like this. 3935echo '.include "confinc.mk" # ignored' > confmf.BSD 3936# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3937echo 'include confinc.mk # ignored' > confmf.GNU 3938_am_result=no 3939for s in GNU BSD; do 3940 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3941 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3942 ac_status=$? 3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3944 (exit $ac_status); } 3945 case $?:`cat confinc.out 2>/dev/null` in #( 3946 '0:this is the am__doit target') : 3947 case $s in #( 3948 BSD) : 3949 am__include='.include' am__quote='"' ;; #( 3950 *) : 3951 am__include='include' am__quote='' ;; 3952esac ;; #( 3953 *) : 3954 ;; 3955esac 3956 if test "$am__include" != "#"; then 3957 _am_result="yes ($s style)" 3958 break 3959 fi 3960done 3961rm -f confinc.* confmf.* 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3963$as_echo "${_am_result}" >&6; } 3964 3965# Check whether --enable-dependency-tracking was given. 3966if test "${enable_dependency_tracking+set}" = set; then : 3967 enableval=$enable_dependency_tracking; 3968fi 3969 3970if test "x$enable_dependency_tracking" != xno; then 3971 am_depcomp="$ac_aux_dir/depcomp" 3972 AMDEPBACKSLASH='\' 3973 am__nodep='_no' 3974fi 3975 if test "x$enable_dependency_tracking" != xno; then 3976 AMDEP_TRUE= 3977 AMDEP_FALSE='#' 3978else 3979 AMDEP_TRUE='#' 3980 AMDEP_FALSE= 3981fi 3982 3983 3984 3985depcc="$CC" am_compiler_list= 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3988$as_echo_n "checking dependency style of $depcc... " >&6; } 3989if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3993 # We make a subdir and do the tests there. Otherwise we can end up 3994 # making bogus files that we don't know about and never remove. For 3995 # instance it was reported that on HP-UX the gcc test will end up 3996 # making a dummy file named 'D' -- because '-MD' means "put the output 3997 # in D". 3998 rm -rf conftest.dir 3999 mkdir conftest.dir 4000 # Copy depcomp to subdir because otherwise we won't find it if we're 4001 # using a relative directory. 4002 cp "$am_depcomp" conftest.dir 4003 cd conftest.dir 4004 # We will build objects and dependencies in a subdirectory because 4005 # it helps to detect inapplicable dependency modes. For instance 4006 # both Tru64's cc and ICC support -MD to output dependencies as a 4007 # side effect of compilation, but ICC will put the dependencies in 4008 # the current directory while Tru64 will put them in the object 4009 # directory. 4010 mkdir sub 4011 4012 am_cv_CC_dependencies_compiler_type=none 4013 if test "$am_compiler_list" = ""; then 4014 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4015 fi 4016 am__universal=false 4017 case " $depcc " in #( 4018 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4019 esac 4020 4021 for depmode in $am_compiler_list; do 4022 # Setup a source with many dependencies, because some compilers 4023 # like to wrap large dependency lists on column 80 (with \), and 4024 # we should not choose a depcomp mode which is confused by this. 4025 # 4026 # We need to recreate these files for each test, as the compiler may 4027 # overwrite some of them when testing with obscure command lines. 4028 # This happens at least with the AIX C compiler. 4029 : > sub/conftest.c 4030 for i in 1 2 3 4 5 6; do 4031 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4032 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4033 # Solaris 10 /bin/sh. 4034 echo '/* dummy */' > sub/conftst$i.h 4035 done 4036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4037 4038 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4039 # mode. It turns out that the SunPro C++ compiler does not properly 4040 # handle '-M -o', and we need to detect this. Also, some Intel 4041 # versions had trouble with output in subdirs. 4042 am__obj=sub/conftest.${OBJEXT-o} 4043 am__minus_obj="-o $am__obj" 4044 case $depmode in 4045 gcc) 4046 # This depmode causes a compiler race in universal mode. 4047 test "$am__universal" = false || continue 4048 ;; 4049 nosideeffect) 4050 # After this tag, mechanisms are not by side-effect, so they'll 4051 # only be used when explicitly requested. 4052 if test "x$enable_dependency_tracking" = xyes; then 4053 continue 4054 else 4055 break 4056 fi 4057 ;; 4058 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4059 # This compiler won't grok '-c -o', but also, the minuso test has 4060 # not run yet. These depmodes are late enough in the game, and 4061 # so weak that their functioning should not be impacted. 4062 am__obj=conftest.${OBJEXT-o} 4063 am__minus_obj= 4064 ;; 4065 none) break ;; 4066 esac 4067 if depmode=$depmode \ 4068 source=sub/conftest.c object=$am__obj \ 4069 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4070 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4071 >/dev/null 2>conftest.err && 4072 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4074 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4076 # icc doesn't choke on unknown options, it will just issue warnings 4077 # or remarks (even with -Werror). So we grep stderr for any message 4078 # that says an option was ignored or not supported. 4079 # When given -MP, icc 7.0 and 7.1 complain thusly: 4080 # icc: Command line warning: ignoring option '-M'; no argument required 4081 # The diagnosis changed in icc 8.0: 4082 # icc: Command line remark: option '-MP' not supported 4083 if (grep 'ignoring option' conftest.err || 4084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4085 am_cv_CC_dependencies_compiler_type=$depmode 4086 break 4087 fi 4088 fi 4089 done 4090 4091 cd .. 4092 rm -rf conftest.dir 4093else 4094 am_cv_CC_dependencies_compiler_type=none 4095fi 4096 4097fi 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4099$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4100CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4101 4102 if 4103 test "x$enable_dependency_tracking" != xno \ 4104 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4105 am__fastdepCC_TRUE= 4106 am__fastdepCC_FALSE='#' 4107else 4108 am__fastdepCC_TRUE='#' 4109 am__fastdepCC_FALSE= 4110fi 4111 4112 4113 case $ac_cv_prog_cc_stdc in #( 4114 no) : 4115 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4116 *) : 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4118$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4119if ${ac_cv_prog_cc_c99+:} false; then : 4120 $as_echo_n "(cached) " >&6 4121else 4122 ac_cv_prog_cc_c99=no 4123ac_save_CC=$CC 4124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125/* end confdefs.h. */ 4126#include <stdarg.h> 4127#include <stdbool.h> 4128#include <stdlib.h> 4129#include <wchar.h> 4130#include <stdio.h> 4131 4132// Check varargs macros. These examples are taken from C99 6.10.3.5. 4133#define debug(...) fprintf (stderr, __VA_ARGS__) 4134#define showlist(...) puts (#__VA_ARGS__) 4135#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4136static void 4137test_varargs_macros (void) 4138{ 4139 int x = 1234; 4140 int y = 5678; 4141 debug ("Flag"); 4142 debug ("X = %d\n", x); 4143 showlist (The first, second, and third items.); 4144 report (x>y, "x is %d but y is %d", x, y); 4145} 4146 4147// Check long long types. 4148#define BIG64 18446744073709551615ull 4149#define BIG32 4294967295ul 4150#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4151#if !BIG_OK 4152 your preprocessor is broken; 4153#endif 4154#if BIG_OK 4155#else 4156 your preprocessor is broken; 4157#endif 4158static long long int bignum = -9223372036854775807LL; 4159static unsigned long long int ubignum = BIG64; 4160 4161struct incomplete_array 4162{ 4163 int datasize; 4164 double data[]; 4165}; 4166 4167struct named_init { 4168 int number; 4169 const wchar_t *name; 4170 double average; 4171}; 4172 4173typedef const char *ccp; 4174 4175static inline int 4176test_restrict (ccp restrict text) 4177{ 4178 // See if C++-style comments work. 4179 // Iterate through items via the restricted pointer. 4180 // Also check for declarations in for loops. 4181 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4182 continue; 4183 return 0; 4184} 4185 4186// Check varargs and va_copy. 4187static void 4188test_varargs (const char *format, ...) 4189{ 4190 va_list args; 4191 va_start (args, format); 4192 va_list args_copy; 4193 va_copy (args_copy, args); 4194 4195 const char *str; 4196 int number; 4197 float fnumber; 4198 4199 while (*format) 4200 { 4201 switch (*format++) 4202 { 4203 case 's': // string 4204 str = va_arg (args_copy, const char *); 4205 break; 4206 case 'd': // int 4207 number = va_arg (args_copy, int); 4208 break; 4209 case 'f': // float 4210 fnumber = va_arg (args_copy, double); 4211 break; 4212 default: 4213 break; 4214 } 4215 } 4216 va_end (args_copy); 4217 va_end (args); 4218} 4219 4220int 4221main () 4222{ 4223 4224 // Check bool. 4225 _Bool success = false; 4226 4227 // Check restrict. 4228 if (test_restrict ("String literal") == 0) 4229 success = true; 4230 char *restrict newvar = "Another string"; 4231 4232 // Check varargs. 4233 test_varargs ("s, d' f .", "string", 65, 34.234); 4234 test_varargs_macros (); 4235 4236 // Check flexible array members. 4237 struct incomplete_array *ia = 4238 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4239 ia->datasize = 10; 4240 for (int i = 0; i < ia->datasize; ++i) 4241 ia->data[i] = i * 1.234; 4242 4243 // Check named initializers. 4244 struct named_init ni = { 4245 .number = 34, 4246 .name = L"Test wide string", 4247 .average = 543.34343, 4248 }; 4249 4250 ni.number = 58; 4251 4252 int dynamic_array[ni.number]; 4253 dynamic_array[ni.number - 1] = 543; 4254 4255 // work around unused variable warnings 4256 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4257 || dynamic_array[ni.number - 1] != 543); 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4264do 4265 CC="$ac_save_CC $ac_arg" 4266 if ac_fn_c_try_compile "$LINENO"; then : 4267 ac_cv_prog_cc_c99=$ac_arg 4268fi 4269rm -f core conftest.err conftest.$ac_objext 4270 test "x$ac_cv_prog_cc_c99" != "xno" && break 4271done 4272rm -f conftest.$ac_ext 4273CC=$ac_save_CC 4274 4275fi 4276# AC_CACHE_VAL 4277case "x$ac_cv_prog_cc_c99" in 4278 x) 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4280$as_echo "none needed" >&6; } ;; 4281 xno) 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4283$as_echo "unsupported" >&6; } ;; 4284 *) 4285 CC="$CC $ac_cv_prog_cc_c99" 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4287$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4288esac 4289if test "x$ac_cv_prog_cc_c99" != xno; then : 4290 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4291else 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4293$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4294if ${ac_cv_prog_cc_c89+:} false; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 ac_cv_prog_cc_c89=no 4298ac_save_CC=$CC 4299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301#include <stdarg.h> 4302#include <stdio.h> 4303struct stat; 4304/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4305struct buf { int x; }; 4306FILE * (*rcsopen) (struct buf *, struct stat *, int); 4307static char *e (p, i) 4308 char **p; 4309 int i; 4310{ 4311 return p[i]; 4312} 4313static char *f (char * (*g) (char **, int), char **p, ...) 4314{ 4315 char *s; 4316 va_list v; 4317 va_start (v,p); 4318 s = g (p, va_arg (v,int)); 4319 va_end (v); 4320 return s; 4321} 4322 4323/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4324 function prototypes and stuff, but not '\xHH' hex character constants. 4325 These don't provoke an error unfortunately, instead are silently treated 4326 as 'x'. The following induces an error, until -std is added to get 4327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4328 array size at least. It's necessary to write '\x00'==0 to get something 4329 that's true only with -std. */ 4330int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4331 4332/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4333 inside strings and character constants. */ 4334#define FOO(x) 'x' 4335int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4336 4337int test (int i, double x); 4338struct s1 {int (*f) (int a);}; 4339struct s2 {int (*f) (double a);}; 4340int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4341int argc; 4342char **argv; 4343int 4344main () 4345{ 4346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4353do 4354 CC="$ac_save_CC $ac_arg" 4355 if ac_fn_c_try_compile "$LINENO"; then : 4356 ac_cv_prog_cc_c89=$ac_arg 4357fi 4358rm -f core conftest.err conftest.$ac_objext 4359 test "x$ac_cv_prog_cc_c89" != "xno" && break 4360done 4361rm -f conftest.$ac_ext 4362CC=$ac_save_CC 4363 4364fi 4365# AC_CACHE_VAL 4366case "x$ac_cv_prog_cc_c89" in 4367 x) 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4369$as_echo "none needed" >&6; } ;; 4370 xno) 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4372$as_echo "unsupported" >&6; } ;; 4373 *) 4374 CC="$CC $ac_cv_prog_cc_c89" 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4376$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4377esac 4378if test "x$ac_cv_prog_cc_c89" != xno; then : 4379 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4380else 4381 ac_cv_prog_cc_stdc=no 4382fi 4383 4384fi 4385 ;; 4386esac 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4388$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4389 if ${ac_cv_prog_cc_stdc+:} false; then : 4390 $as_echo_n "(cached) " >&6 4391fi 4392 4393 case $ac_cv_prog_cc_stdc in #( 4394 no) : 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4396$as_echo "unsupported" >&6; } ;; #( 4397 '') : 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4399$as_echo "none needed" >&6; } ;; #( 4400 *) : 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4402$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4403esac 4404 4405 4406case `pwd` in 4407 *\ * | *\ *) 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4409$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4410esac 4411 4412 4413 4414macro_version='2.4.2' 4415macro_revision='1.3337' 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429ltmain="$ac_aux_dir/ltmain.sh" 4430 4431# Backslashify metacharacters that are still active within 4432# double-quoted strings. 4433sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4434 4435# Same as above, but do not quote variable references. 4436double_quote_subst='s/\(["`\\]\)/\\\1/g' 4437 4438# Sed substitution to delay expansion of an escaped shell variable in a 4439# double_quote_subst'ed string. 4440delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4441 4442# Sed substitution to delay expansion of an escaped single quote. 4443delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4444 4445# Sed substitution to avoid accidental globbing in evaled expressions 4446no_glob_subst='s/\*/\\\*/g' 4447 4448ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4449ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4453$as_echo_n "checking how to print strings... " >&6; } 4454# Test print first, because it will be a builtin if present. 4455if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4456 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4457 ECHO='print -r --' 4458elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4459 ECHO='printf %s\n' 4460else 4461 # Use this function as a fallback that always works. 4462 func_fallback_echo () 4463 { 4464 eval 'cat <<_LTECHO_EOF 4465$1 4466_LTECHO_EOF' 4467 } 4468 ECHO='func_fallback_echo' 4469fi 4470 4471# func_echo_all arg... 4472# Invoke $ECHO with all args, space-separated. 4473func_echo_all () 4474{ 4475 $ECHO "" 4476} 4477 4478case "$ECHO" in 4479 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4480$as_echo "printf" >&6; } ;; 4481 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4482$as_echo "print -r" >&6; } ;; 4483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4484$as_echo "cat" >&6; } ;; 4485esac 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4501$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4502if ${ac_cv_path_SED+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4506 for ac_i in 1 2 3 4 5 6 7; do 4507 ac_script="$ac_script$as_nl$ac_script" 4508 done 4509 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4510 { ac_script=; unset ac_script;} 4511 if test -z "$SED"; then 4512 ac_path_SED_found=false 4513 # Loop through the user's path and test for each of PROGNAME-LIST 4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4515for as_dir in $PATH 4516do 4517 IFS=$as_save_IFS 4518 test -z "$as_dir" && as_dir=. 4519 for ac_prog in sed gsed; do 4520 for ac_exec_ext in '' $ac_executable_extensions; do 4521 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4522 as_fn_executable_p "$ac_path_SED" || continue 4523# Check for GNU ac_path_SED and select it if it is found. 4524 # Check for GNU $ac_path_SED 4525case `"$ac_path_SED" --version 2>&1` in 4526*GNU*) 4527 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4528*) 4529 ac_count=0 4530 $as_echo_n 0123456789 >"conftest.in" 4531 while : 4532 do 4533 cat "conftest.in" "conftest.in" >"conftest.tmp" 4534 mv "conftest.tmp" "conftest.in" 4535 cp "conftest.in" "conftest.nl" 4536 $as_echo '' >> "conftest.nl" 4537 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4539 as_fn_arith $ac_count + 1 && ac_count=$as_val 4540 if test $ac_count -gt ${ac_path_SED_max-0}; then 4541 # Best one so far, save it but keep looking for a better one 4542 ac_cv_path_SED="$ac_path_SED" 4543 ac_path_SED_max=$ac_count 4544 fi 4545 # 10*(2^10) chars as input seems more than enough 4546 test $ac_count -gt 10 && break 4547 done 4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4549esac 4550 4551 $ac_path_SED_found && break 3 4552 done 4553 done 4554 done 4555IFS=$as_save_IFS 4556 if test -z "$ac_cv_path_SED"; then 4557 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4558 fi 4559else 4560 ac_cv_path_SED=$SED 4561fi 4562 4563fi 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4565$as_echo "$ac_cv_path_SED" >&6; } 4566 SED="$ac_cv_path_SED" 4567 rm -f conftest.sed 4568 4569test -z "$SED" && SED=sed 4570Xsed="$SED -e 1s/^X//" 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4583$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4584if ${ac_cv_path_GREP+:} false; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 if test -z "$GREP"; then 4588 ac_path_GREP_found=false 4589 # Loop through the user's path and test for each of PROGNAME-LIST 4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4592do 4593 IFS=$as_save_IFS 4594 test -z "$as_dir" && as_dir=. 4595 for ac_prog in grep ggrep; do 4596 for ac_exec_ext in '' $ac_executable_extensions; do 4597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4598 as_fn_executable_p "$ac_path_GREP" || continue 4599# Check for GNU ac_path_GREP and select it if it is found. 4600 # Check for GNU $ac_path_GREP 4601case `"$ac_path_GREP" --version 2>&1` in 4602*GNU*) 4603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4604*) 4605 ac_count=0 4606 $as_echo_n 0123456789 >"conftest.in" 4607 while : 4608 do 4609 cat "conftest.in" "conftest.in" >"conftest.tmp" 4610 mv "conftest.tmp" "conftest.in" 4611 cp "conftest.in" "conftest.nl" 4612 $as_echo 'GREP' >> "conftest.nl" 4613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4615 as_fn_arith $ac_count + 1 && ac_count=$as_val 4616 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4617 # Best one so far, save it but keep looking for a better one 4618 ac_cv_path_GREP="$ac_path_GREP" 4619 ac_path_GREP_max=$ac_count 4620 fi 4621 # 10*(2^10) chars as input seems more than enough 4622 test $ac_count -gt 10 && break 4623 done 4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4625esac 4626 4627 $ac_path_GREP_found && break 3 4628 done 4629 done 4630 done 4631IFS=$as_save_IFS 4632 if test -z "$ac_cv_path_GREP"; then 4633 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4634 fi 4635else 4636 ac_cv_path_GREP=$GREP 4637fi 4638 4639fi 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4641$as_echo "$ac_cv_path_GREP" >&6; } 4642 GREP="$ac_cv_path_GREP" 4643 4644 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4646$as_echo_n "checking for egrep... " >&6; } 4647if ${ac_cv_path_EGREP+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4651 then ac_cv_path_EGREP="$GREP -E" 4652 else 4653 if test -z "$EGREP"; then 4654 ac_path_EGREP_found=false 4655 # Loop through the user's path and test for each of PROGNAME-LIST 4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4658do 4659 IFS=$as_save_IFS 4660 test -z "$as_dir" && as_dir=. 4661 for ac_prog in egrep; do 4662 for ac_exec_ext in '' $ac_executable_extensions; do 4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4664 as_fn_executable_p "$ac_path_EGREP" || continue 4665# Check for GNU ac_path_EGREP and select it if it is found. 4666 # Check for GNU $ac_path_EGREP 4667case `"$ac_path_EGREP" --version 2>&1` in 4668*GNU*) 4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4670*) 4671 ac_count=0 4672 $as_echo_n 0123456789 >"conftest.in" 4673 while : 4674 do 4675 cat "conftest.in" "conftest.in" >"conftest.tmp" 4676 mv "conftest.tmp" "conftest.in" 4677 cp "conftest.in" "conftest.nl" 4678 $as_echo 'EGREP' >> "conftest.nl" 4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4681 as_fn_arith $ac_count + 1 && ac_count=$as_val 4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4683 # Best one so far, save it but keep looking for a better one 4684 ac_cv_path_EGREP="$ac_path_EGREP" 4685 ac_path_EGREP_max=$ac_count 4686 fi 4687 # 10*(2^10) chars as input seems more than enough 4688 test $ac_count -gt 10 && break 4689 done 4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4691esac 4692 4693 $ac_path_EGREP_found && break 3 4694 done 4695 done 4696 done 4697IFS=$as_save_IFS 4698 if test -z "$ac_cv_path_EGREP"; then 4699 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4700 fi 4701else 4702 ac_cv_path_EGREP=$EGREP 4703fi 4704 4705 fi 4706fi 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4708$as_echo "$ac_cv_path_EGREP" >&6; } 4709 EGREP="$ac_cv_path_EGREP" 4710 4711 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4713$as_echo_n "checking for fgrep... " >&6; } 4714if ${ac_cv_path_FGREP+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4718 then ac_cv_path_FGREP="$GREP -F" 4719 else 4720 if test -z "$FGREP"; then 4721 ac_path_FGREP_found=false 4722 # Loop through the user's path and test for each of PROGNAME-LIST 4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4725do 4726 IFS=$as_save_IFS 4727 test -z "$as_dir" && as_dir=. 4728 for ac_prog in fgrep; do 4729 for ac_exec_ext in '' $ac_executable_extensions; do 4730 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4731 as_fn_executable_p "$ac_path_FGREP" || continue 4732# Check for GNU ac_path_FGREP and select it if it is found. 4733 # Check for GNU $ac_path_FGREP 4734case `"$ac_path_FGREP" --version 2>&1` in 4735*GNU*) 4736 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4737*) 4738 ac_count=0 4739 $as_echo_n 0123456789 >"conftest.in" 4740 while : 4741 do 4742 cat "conftest.in" "conftest.in" >"conftest.tmp" 4743 mv "conftest.tmp" "conftest.in" 4744 cp "conftest.in" "conftest.nl" 4745 $as_echo 'FGREP' >> "conftest.nl" 4746 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4748 as_fn_arith $ac_count + 1 && ac_count=$as_val 4749 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4750 # Best one so far, save it but keep looking for a better one 4751 ac_cv_path_FGREP="$ac_path_FGREP" 4752 ac_path_FGREP_max=$ac_count 4753 fi 4754 # 10*(2^10) chars as input seems more than enough 4755 test $ac_count -gt 10 && break 4756 done 4757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4758esac 4759 4760 $ac_path_FGREP_found && break 3 4761 done 4762 done 4763 done 4764IFS=$as_save_IFS 4765 if test -z "$ac_cv_path_FGREP"; then 4766 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4767 fi 4768else 4769 ac_cv_path_FGREP=$FGREP 4770fi 4771 4772 fi 4773fi 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4775$as_echo "$ac_cv_path_FGREP" >&6; } 4776 FGREP="$ac_cv_path_FGREP" 4777 4778 4779test -z "$GREP" && GREP=grep 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799# Check whether --with-gnu-ld was given. 4800if test "${with_gnu_ld+set}" = set; then : 4801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4802else 4803 with_gnu_ld=no 4804fi 4805 4806ac_prog=ld 4807if test "$GCC" = yes; then 4808 # Check if gcc -print-prog-name=ld gives a path. 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4810$as_echo_n "checking for ld used by $CC... " >&6; } 4811 case $host in 4812 *-*-mingw*) 4813 # gcc leaves a trailing carriage return which upsets mingw 4814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4815 *) 4816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4817 esac 4818 case $ac_prog in 4819 # Accept absolute paths. 4820 [\\/]* | ?:[\\/]*) 4821 re_direlt='/[^/][^/]*/\.\./' 4822 # Canonicalize the pathname of ld 4823 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4824 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4825 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4826 done 4827 test -z "$LD" && LD="$ac_prog" 4828 ;; 4829 "") 4830 # If it fails, then pretend we aren't using GCC. 4831 ac_prog=ld 4832 ;; 4833 *) 4834 # If it is relative, then search for the first ld in PATH. 4835 with_gnu_ld=unknown 4836 ;; 4837 esac 4838elif test "$with_gnu_ld" = yes; then 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4840$as_echo_n "checking for GNU ld... " >&6; } 4841else 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4843$as_echo_n "checking for non-GNU ld... " >&6; } 4844fi 4845if ${lt_cv_path_LD+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 if test -z "$LD"; then 4849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4850 for ac_dir in $PATH; do 4851 IFS="$lt_save_ifs" 4852 test -z "$ac_dir" && ac_dir=. 4853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4854 lt_cv_path_LD="$ac_dir/$ac_prog" 4855 # Check to see if the program is GNU ld. I'd rather use --version, 4856 # but apparently some variants of GNU ld only accept -v. 4857 # Break only if it was the GNU/non-GNU ld that we prefer. 4858 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4859 *GNU* | *'with BFD'*) 4860 test "$with_gnu_ld" != no && break 4861 ;; 4862 *) 4863 test "$with_gnu_ld" != yes && break 4864 ;; 4865 esac 4866 fi 4867 done 4868 IFS="$lt_save_ifs" 4869else 4870 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4871fi 4872fi 4873 4874LD="$lt_cv_path_LD" 4875if test -n "$LD"; then 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4877$as_echo "$LD" >&6; } 4878else 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4880$as_echo "no" >&6; } 4881fi 4882test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4884$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4885if ${lt_cv_prog_gnu_ld+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4889case `$LD -v 2>&1 </dev/null` in 4890*GNU* | *'with BFD'*) 4891 lt_cv_prog_gnu_ld=yes 4892 ;; 4893*) 4894 lt_cv_prog_gnu_ld=no 4895 ;; 4896esac 4897fi 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4899$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4900with_gnu_ld=$lt_cv_prog_gnu_ld 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4911$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4912if ${lt_cv_path_NM+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 if test -n "$NM"; then 4916 # Let the user override the test. 4917 lt_cv_path_NM="$NM" 4918else 4919 lt_nm_to_check="${ac_tool_prefix}nm" 4920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4921 lt_nm_to_check="$lt_nm_to_check nm" 4922 fi 4923 for lt_tmp_nm in $lt_nm_to_check; do 4924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4926 IFS="$lt_save_ifs" 4927 test -z "$ac_dir" && ac_dir=. 4928 tmp_nm="$ac_dir/$lt_tmp_nm" 4929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4930 # Check to see if the nm accepts a BSD-compat flag. 4931 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4932 # nm: unknown option "B" ignored 4933 # Tru64's nm complains that /dev/null is an invalid object file 4934 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4935 */dev/null* | *'Invalid file or object type'*) 4936 lt_cv_path_NM="$tmp_nm -B" 4937 break 4938 ;; 4939 *) 4940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4941 */dev/null*) 4942 lt_cv_path_NM="$tmp_nm -p" 4943 break 4944 ;; 4945 *) 4946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4947 continue # so that we can try to find one that supports BSD flags 4948 ;; 4949 esac 4950 ;; 4951 esac 4952 fi 4953 done 4954 IFS="$lt_save_ifs" 4955 done 4956 : ${lt_cv_path_NM=no} 4957fi 4958fi 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4960$as_echo "$lt_cv_path_NM" >&6; } 4961if test "$lt_cv_path_NM" != "no"; then 4962 NM="$lt_cv_path_NM" 4963else 4964 # Didn't find any BSD compatible name lister, look for dumpbin. 4965 if test -n "$DUMPBIN"; then : 4966 # Let the user override the test. 4967 else 4968 if test -n "$ac_tool_prefix"; then 4969 for ac_prog in dumpbin "link -dump" 4970 do 4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4972set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4974$as_echo_n "checking for $ac_word... " >&6; } 4975if ${ac_cv_prog_DUMPBIN+:} false; then : 4976 $as_echo_n "(cached) " >&6 4977else 4978 if test -n "$DUMPBIN"; then 4979 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4980else 4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4982for as_dir in $PATH 4983do 4984 IFS=$as_save_IFS 4985 test -z "$as_dir" && as_dir=. 4986 for ac_exec_ext in '' $ac_executable_extensions; do 4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4988 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4990 break 2 4991 fi 4992done 4993 done 4994IFS=$as_save_IFS 4995 4996fi 4997fi 4998DUMPBIN=$ac_cv_prog_DUMPBIN 4999if test -n "$DUMPBIN"; then 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5001$as_echo "$DUMPBIN" >&6; } 5002else 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004$as_echo "no" >&6; } 5005fi 5006 5007 5008 test -n "$DUMPBIN" && break 5009 done 5010fi 5011if test -z "$DUMPBIN"; then 5012 ac_ct_DUMPBIN=$DUMPBIN 5013 for ac_prog in dumpbin "link -dump" 5014do 5015 # Extract the first word of "$ac_prog", so it can be a program name with args. 5016set dummy $ac_prog; ac_word=$2 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5018$as_echo_n "checking for $ac_word... " >&6; } 5019if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 if test -n "$ac_ct_DUMPBIN"; then 5023 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5024else 5025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5026for as_dir in $PATH 5027do 5028 IFS=$as_save_IFS 5029 test -z "$as_dir" && as_dir=. 5030 for ac_exec_ext in '' $ac_executable_extensions; do 5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5032 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5034 break 2 5035 fi 5036done 5037 done 5038IFS=$as_save_IFS 5039 5040fi 5041fi 5042ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5043if test -n "$ac_ct_DUMPBIN"; then 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5045$as_echo "$ac_ct_DUMPBIN" >&6; } 5046else 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5048$as_echo "no" >&6; } 5049fi 5050 5051 5052 test -n "$ac_ct_DUMPBIN" && break 5053done 5054 5055 if test "x$ac_ct_DUMPBIN" = x; then 5056 DUMPBIN=":" 5057 else 5058 case $cross_compiling:$ac_tool_warned in 5059yes:) 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5062ac_tool_warned=yes ;; 5063esac 5064 DUMPBIN=$ac_ct_DUMPBIN 5065 fi 5066fi 5067 5068 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5069 *COFF*) 5070 DUMPBIN="$DUMPBIN -symbols" 5071 ;; 5072 *) 5073 DUMPBIN=: 5074 ;; 5075 esac 5076 fi 5077 5078 if test "$DUMPBIN" != ":"; then 5079 NM="$DUMPBIN" 5080 fi 5081fi 5082test -z "$NM" && NM=nm 5083 5084 5085 5086 5087 5088 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5090$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5091if ${lt_cv_nm_interface+:} false; then : 5092 $as_echo_n "(cached) " >&6 5093else 5094 lt_cv_nm_interface="BSD nm" 5095 echo "int some_variable = 0;" > conftest.$ac_ext 5096 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5097 (eval "$ac_compile" 2>conftest.err) 5098 cat conftest.err >&5 5099 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5100 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5101 cat conftest.err >&5 5102 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5103 cat conftest.out >&5 5104 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5105 lt_cv_nm_interface="MS dumpbin" 5106 fi 5107 rm -f conftest* 5108fi 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5110$as_echo "$lt_cv_nm_interface" >&6; } 5111 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5113$as_echo_n "checking whether ln -s works... " >&6; } 5114LN_S=$as_ln_s 5115if test "$LN_S" = "ln -s"; then 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5117$as_echo "yes" >&6; } 5118else 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5120$as_echo "no, using $LN_S" >&6; } 5121fi 5122 5123# find the maximum length of command line arguments 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5125$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5126if ${lt_cv_sys_max_cmd_len+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 i=0 5130 teststring="ABCD" 5131 5132 case $build_os in 5133 msdosdjgpp*) 5134 # On DJGPP, this test can blow up pretty badly due to problems in libc 5135 # (any single argument exceeding 2000 bytes causes a buffer overrun 5136 # during glob expansion). Even if it were fixed, the result of this 5137 # check would be larger than it should be. 5138 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5139 ;; 5140 5141 gnu*) 5142 # Under GNU Hurd, this test is not required because there is 5143 # no limit to the length of command line arguments. 5144 # Libtool will interpret -1 as no limit whatsoever 5145 lt_cv_sys_max_cmd_len=-1; 5146 ;; 5147 5148 cygwin* | mingw* | cegcc*) 5149 # On Win9x/ME, this test blows up -- it succeeds, but takes 5150 # about 5 minutes as the teststring grows exponentially. 5151 # Worse, since 9x/ME are not pre-emptively multitasking, 5152 # you end up with a "frozen" computer, even though with patience 5153 # the test eventually succeeds (with a max line length of 256k). 5154 # Instead, let's just punt: use the minimum linelength reported by 5155 # all of the supported platforms: 8192 (on NT/2K/XP). 5156 lt_cv_sys_max_cmd_len=8192; 5157 ;; 5158 5159 mint*) 5160 # On MiNT this can take a long time and run out of memory. 5161 lt_cv_sys_max_cmd_len=8192; 5162 ;; 5163 5164 amigaos*) 5165 # On AmigaOS with pdksh, this test takes hours, literally. 5166 # So we just punt and use a minimum line length of 8192. 5167 lt_cv_sys_max_cmd_len=8192; 5168 ;; 5169 5170 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5171 # This has been around since 386BSD, at least. Likely further. 5172 if test -x /sbin/sysctl; then 5173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5174 elif test -x /usr/sbin/sysctl; then 5175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5176 else 5177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5178 fi 5179 # And add a safety zone 5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5182 ;; 5183 5184 interix*) 5185 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5186 lt_cv_sys_max_cmd_len=196608 5187 ;; 5188 5189 os2*) 5190 # The test takes a long time on OS/2. 5191 lt_cv_sys_max_cmd_len=8192 5192 ;; 5193 5194 osf*) 5195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5197 # nice to cause kernel panics so lets avoid the loop below. 5198 # First set a reasonable default. 5199 lt_cv_sys_max_cmd_len=16384 5200 # 5201 if test -x /sbin/sysconfig; then 5202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5203 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5204 esac 5205 fi 5206 ;; 5207 sco3.2v5*) 5208 lt_cv_sys_max_cmd_len=102400 5209 ;; 5210 sysv5* | sco5v6* | sysv4.2uw2*) 5211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5212 if test -n "$kargmax"; then 5213 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5214 else 5215 lt_cv_sys_max_cmd_len=32768 5216 fi 5217 ;; 5218 *) 5219 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5220 if test -n "$lt_cv_sys_max_cmd_len"; then 5221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5223 else 5224 # Make teststring a little bigger before we do anything with it. 5225 # a 1K string should be a reasonable start. 5226 for i in 1 2 3 4 5 6 7 8 ; do 5227 teststring=$teststring$teststring 5228 done 5229 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5230 # If test is not a shell built-in, we'll probably end up computing a 5231 # maximum length that is only half of the actual maximum length, but 5232 # we can't tell. 5233 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5234 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5235 test $i != 17 # 1/2 MB should be enough 5236 do 5237 i=`expr $i + 1` 5238 teststring=$teststring$teststring 5239 done 5240 # Only check the string length outside the loop. 5241 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5242 teststring= 5243 # Add a significant safety factor because C++ compilers can tack on 5244 # massive amounts of additional arguments before passing them to the 5245 # linker. It appears as though 1/2 is a usable value. 5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5247 fi 5248 ;; 5249 esac 5250 5251fi 5252 5253if test -n $lt_cv_sys_max_cmd_len ; then 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5255$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5256else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5258$as_echo "none" >&6; } 5259fi 5260max_cmd_len=$lt_cv_sys_max_cmd_len 5261 5262 5263 5264 5265 5266 5267: ${CP="cp -f"} 5268: ${MV="mv -f"} 5269: ${RM="rm -f"} 5270 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5272$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5273# Try some XSI features 5274xsi_shell=no 5275( _lt_dummy="a/b/c" 5276 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5277 = c,a/b,b/c, \ 5278 && eval 'test $(( 1 + 1 )) -eq 2 \ 5279 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5280 && xsi_shell=yes 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5282$as_echo "$xsi_shell" >&6; } 5283 5284 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5286$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5287lt_shell_append=no 5288( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5289 >/dev/null 2>&1 \ 5290 && lt_shell_append=yes 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5292$as_echo "$lt_shell_append" >&6; } 5293 5294 5295if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5296 lt_unset=unset 5297else 5298 lt_unset=false 5299fi 5300 5301 5302 5303 5304 5305# test EBCDIC or ASCII 5306case `echo X|tr X '\101'` in 5307 A) # ASCII based system 5308 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5309 lt_SP2NL='tr \040 \012' 5310 lt_NL2SP='tr \015\012 \040\040' 5311 ;; 5312 *) # EBCDIC based system 5313 lt_SP2NL='tr \100 \n' 5314 lt_NL2SP='tr \r\n \100\100' 5315 ;; 5316esac 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5327$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5328if ${lt_cv_to_host_file_cmd+:} false; then : 5329 $as_echo_n "(cached) " >&6 5330else 5331 case $host in 5332 *-*-mingw* ) 5333 case $build in 5334 *-*-mingw* ) # actually msys 5335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5336 ;; 5337 *-*-cygwin* ) 5338 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5339 ;; 5340 * ) # otherwise, assume *nix 5341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5342 ;; 5343 esac 5344 ;; 5345 *-*-cygwin* ) 5346 case $build in 5347 *-*-mingw* ) # actually msys 5348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5349 ;; 5350 *-*-cygwin* ) 5351 lt_cv_to_host_file_cmd=func_convert_file_noop 5352 ;; 5353 * ) # otherwise, assume *nix 5354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5355 ;; 5356 esac 5357 ;; 5358 * ) # unhandled hosts (and "normal" native builds) 5359 lt_cv_to_host_file_cmd=func_convert_file_noop 5360 ;; 5361esac 5362 5363fi 5364 5365to_host_file_cmd=$lt_cv_to_host_file_cmd 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5367$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5368 5369 5370 5371 5372 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5374$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5375if ${lt_cv_to_tool_file_cmd+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 #assume ordinary cross tools, or native build. 5379lt_cv_to_tool_file_cmd=func_convert_file_noop 5380case $host in 5381 *-*-mingw* ) 5382 case $build in 5383 *-*-mingw* ) # actually msys 5384 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5385 ;; 5386 esac 5387 ;; 5388esac 5389 5390fi 5391 5392to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5394$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5395 5396 5397 5398 5399 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5401$as_echo_n "checking for $LD option to reload object files... " >&6; } 5402if ${lt_cv_ld_reload_flag+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404else 5405 lt_cv_ld_reload_flag='-r' 5406fi 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5408$as_echo "$lt_cv_ld_reload_flag" >&6; } 5409reload_flag=$lt_cv_ld_reload_flag 5410case $reload_flag in 5411"" | " "*) ;; 5412*) reload_flag=" $reload_flag" ;; 5413esac 5414reload_cmds='$LD$reload_flag -o $output$reload_objs' 5415case $host_os in 5416 cygwin* | mingw* | pw32* | cegcc*) 5417 if test "$GCC" != yes; then 5418 reload_cmds=false 5419 fi 5420 ;; 5421 darwin*) 5422 if test "$GCC" = yes; then 5423 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5424 else 5425 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5426 fi 5427 ;; 5428esac 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438if test -n "$ac_tool_prefix"; then 5439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5440set dummy ${ac_tool_prefix}objdump; ac_word=$2 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5442$as_echo_n "checking for $ac_word... " >&6; } 5443if ${ac_cv_prog_OBJDUMP+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 if test -n "$OBJDUMP"; then 5447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5448else 5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5450for as_dir in $PATH 5451do 5452 IFS=$as_save_IFS 5453 test -z "$as_dir" && as_dir=. 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460done 5461 done 5462IFS=$as_save_IFS 5463 5464fi 5465fi 5466OBJDUMP=$ac_cv_prog_OBJDUMP 5467if test -n "$OBJDUMP"; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5469$as_echo "$OBJDUMP" >&6; } 5470else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472$as_echo "no" >&6; } 5473fi 5474 5475 5476fi 5477if test -z "$ac_cv_prog_OBJDUMP"; then 5478 ac_ct_OBJDUMP=$OBJDUMP 5479 # Extract the first word of "objdump", so it can be a program name with args. 5480set dummy objdump; ac_word=$2 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5482$as_echo_n "checking for $ac_word... " >&6; } 5483if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 if test -n "$ac_ct_OBJDUMP"; then 5487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5488else 5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490for as_dir in $PATH 5491do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5496 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5498 break 2 5499 fi 5500done 5501 done 5502IFS=$as_save_IFS 5503 5504fi 5505fi 5506ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5507if test -n "$ac_ct_OBJDUMP"; then 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5509$as_echo "$ac_ct_OBJDUMP" >&6; } 5510else 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5512$as_echo "no" >&6; } 5513fi 5514 5515 if test "x$ac_ct_OBJDUMP" = x; then 5516 OBJDUMP="false" 5517 else 5518 case $cross_compiling:$ac_tool_warned in 5519yes:) 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5522ac_tool_warned=yes ;; 5523esac 5524 OBJDUMP=$ac_ct_OBJDUMP 5525 fi 5526else 5527 OBJDUMP="$ac_cv_prog_OBJDUMP" 5528fi 5529 5530test -z "$OBJDUMP" && OBJDUMP=objdump 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5541$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5542if ${lt_cv_deplibs_check_method+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 lt_cv_file_magic_cmd='$MAGIC_CMD' 5546lt_cv_file_magic_test_file= 5547lt_cv_deplibs_check_method='unknown' 5548# Need to set the preceding variable on all platforms that support 5549# interlibrary dependencies. 5550# 'none' -- dependencies not supported. 5551# `unknown' -- same as none, but documents that we really don't know. 5552# 'pass_all' -- all dependencies passed with no checks. 5553# 'test_compile' -- check by making test program. 5554# 'file_magic [[regex]]' -- check by looking for files in library path 5555# which responds to the $file_magic_cmd with a given extended regex. 5556# If you have `file' or equivalent on your system and you're not sure 5557# whether `pass_all' will *always* work, you probably want this one. 5558 5559case $host_os in 5560aix[4-9]*) 5561 lt_cv_deplibs_check_method=pass_all 5562 ;; 5563 5564beos*) 5565 lt_cv_deplibs_check_method=pass_all 5566 ;; 5567 5568bsdi[45]*) 5569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5570 lt_cv_file_magic_cmd='/usr/bin/file -L' 5571 lt_cv_file_magic_test_file=/shlib/libc.so 5572 ;; 5573 5574cygwin*) 5575 # func_win32_libid is a shell function defined in ltmain.sh 5576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5577 lt_cv_file_magic_cmd='func_win32_libid' 5578 ;; 5579 5580mingw* | pw32*) 5581 # Base MSYS/MinGW do not provide the 'file' command needed by 5582 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5583 # unless we find 'file', for example because we are cross-compiling. 5584 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5585 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5586 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5587 lt_cv_file_magic_cmd='func_win32_libid' 5588 else 5589 # Keep this pattern in sync with the one in func_win32_libid. 5590 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5591 lt_cv_file_magic_cmd='$OBJDUMP -f' 5592 fi 5593 ;; 5594 5595cegcc*) 5596 # use the weaker test based on 'objdump'. See mingw*. 5597 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5598 lt_cv_file_magic_cmd='$OBJDUMP -f' 5599 ;; 5600 5601darwin* | rhapsody*) 5602 lt_cv_deplibs_check_method=pass_all 5603 ;; 5604 5605freebsd* | dragonfly*) 5606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5607 case $host_cpu in 5608 i*86 ) 5609 # Not sure whether the presence of OpenBSD here was a mistake. 5610 # Let's accept both of them until this is cleared up. 5611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5612 lt_cv_file_magic_cmd=/usr/bin/file 5613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5614 ;; 5615 esac 5616 else 5617 lt_cv_deplibs_check_method=pass_all 5618 fi 5619 ;; 5620 5621gnu*) 5622 lt_cv_deplibs_check_method=pass_all 5623 ;; 5624 5625haiku*) 5626 lt_cv_deplibs_check_method=pass_all 5627 ;; 5628 5629hpux10.20* | hpux11*) 5630 lt_cv_file_magic_cmd=/usr/bin/file 5631 case $host_cpu in 5632 ia64*) 5633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5634 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5635 ;; 5636 hppa*64*) 5637 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]' 5638 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5639 ;; 5640 *) 5641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5642 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5643 ;; 5644 esac 5645 ;; 5646 5647interix[3-9]*) 5648 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5650 ;; 5651 5652irix5* | irix6* | nonstopux*) 5653 case $LD in 5654 *-32|*"-32 ") libmagic=32-bit;; 5655 *-n32|*"-n32 ") libmagic=N32;; 5656 *-64|*"-64 ") libmagic=64-bit;; 5657 *) libmagic=never-match;; 5658 esac 5659 lt_cv_deplibs_check_method=pass_all 5660 ;; 5661 5662# This must be glibc/ELF. 5663linux* | k*bsd*-gnu | kopensolaris*-gnu) 5664 lt_cv_deplibs_check_method=pass_all 5665 ;; 5666 5667netbsd*) 5668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5670 else 5671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5672 fi 5673 ;; 5674 5675newos6*) 5676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5677 lt_cv_file_magic_cmd=/usr/bin/file 5678 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5679 ;; 5680 5681*nto* | *qnx*) 5682 lt_cv_deplibs_check_method=pass_all 5683 ;; 5684 5685openbsd*) 5686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5688 else 5689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5690 fi 5691 ;; 5692 5693osf3* | osf4* | osf5*) 5694 lt_cv_deplibs_check_method=pass_all 5695 ;; 5696 5697rdos*) 5698 lt_cv_deplibs_check_method=pass_all 5699 ;; 5700 5701solaris*) 5702 lt_cv_deplibs_check_method=pass_all 5703 ;; 5704 5705sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5706 lt_cv_deplibs_check_method=pass_all 5707 ;; 5708 5709sysv4 | sysv4.3*) 5710 case $host_vendor in 5711 motorola) 5712 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]' 5713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5714 ;; 5715 ncr) 5716 lt_cv_deplibs_check_method=pass_all 5717 ;; 5718 sequent) 5719 lt_cv_file_magic_cmd='/bin/file' 5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5721 ;; 5722 sni) 5723 lt_cv_file_magic_cmd='/bin/file' 5724 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5725 lt_cv_file_magic_test_file=/lib/libc.so 5726 ;; 5727 siemens) 5728 lt_cv_deplibs_check_method=pass_all 5729 ;; 5730 pc) 5731 lt_cv_deplibs_check_method=pass_all 5732 ;; 5733 esac 5734 ;; 5735 5736tpf*) 5737 lt_cv_deplibs_check_method=pass_all 5738 ;; 5739esac 5740 5741fi 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5743$as_echo "$lt_cv_deplibs_check_method" >&6; } 5744 5745file_magic_glob= 5746want_nocaseglob=no 5747if test "$build" = "$host"; then 5748 case $host_os in 5749 mingw* | pw32*) 5750 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5751 want_nocaseglob=yes 5752 else 5753 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5754 fi 5755 ;; 5756 esac 5757fi 5758 5759file_magic_cmd=$lt_cv_file_magic_cmd 5760deplibs_check_method=$lt_cv_deplibs_check_method 5761test -z "$deplibs_check_method" && deplibs_check_method=unknown 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784if test -n "$ac_tool_prefix"; then 5785 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5786set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788$as_echo_n "checking for $ac_word... " >&6; } 5789if ${ac_cv_prog_DLLTOOL+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 if test -n "$DLLTOOL"; then 5793 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5794else 5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5796for as_dir in $PATH 5797do 5798 IFS=$as_save_IFS 5799 test -z "$as_dir" && as_dir=. 5800 for ac_exec_ext in '' $ac_executable_extensions; do 5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5802 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5804 break 2 5805 fi 5806done 5807 done 5808IFS=$as_save_IFS 5809 5810fi 5811fi 5812DLLTOOL=$ac_cv_prog_DLLTOOL 5813if test -n "$DLLTOOL"; then 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5815$as_echo "$DLLTOOL" >&6; } 5816else 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5818$as_echo "no" >&6; } 5819fi 5820 5821 5822fi 5823if test -z "$ac_cv_prog_DLLTOOL"; then 5824 ac_ct_DLLTOOL=$DLLTOOL 5825 # Extract the first word of "dlltool", so it can be a program name with args. 5826set dummy dlltool; ac_word=$2 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5828$as_echo_n "checking for $ac_word... " >&6; } 5829if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 if test -n "$ac_ct_DLLTOOL"; then 5833 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5834else 5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5836for as_dir in $PATH 5837do 5838 IFS=$as_save_IFS 5839 test -z "$as_dir" && as_dir=. 5840 for ac_exec_ext in '' $ac_executable_extensions; do 5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5842 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5844 break 2 5845 fi 5846done 5847 done 5848IFS=$as_save_IFS 5849 5850fi 5851fi 5852ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5853if test -n "$ac_ct_DLLTOOL"; then 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5855$as_echo "$ac_ct_DLLTOOL" >&6; } 5856else 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5858$as_echo "no" >&6; } 5859fi 5860 5861 if test "x$ac_ct_DLLTOOL" = x; then 5862 DLLTOOL="false" 5863 else 5864 case $cross_compiling:$ac_tool_warned in 5865yes:) 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5868ac_tool_warned=yes ;; 5869esac 5870 DLLTOOL=$ac_ct_DLLTOOL 5871 fi 5872else 5873 DLLTOOL="$ac_cv_prog_DLLTOOL" 5874fi 5875 5876test -z "$DLLTOOL" && DLLTOOL=dlltool 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5888$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5889if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5890 $as_echo_n "(cached) " >&6 5891else 5892 lt_cv_sharedlib_from_linklib_cmd='unknown' 5893 5894case $host_os in 5895cygwin* | mingw* | pw32* | cegcc*) 5896 # two different shell functions defined in ltmain.sh 5897 # decide which to use based on capabilities of $DLLTOOL 5898 case `$DLLTOOL --help 2>&1` in 5899 *--identify-strict*) 5900 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5901 ;; 5902 *) 5903 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5904 ;; 5905 esac 5906 ;; 5907*) 5908 # fallback: assume linklib IS sharedlib 5909 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5910 ;; 5911esac 5912 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5915$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5916sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5917test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5918 5919 5920 5921 5922 5923 5924 5925 5926if test -n "$ac_tool_prefix"; then 5927 for ac_prog in ar 5928 do 5929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5930set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_AR+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$AR"; then 5937 ac_cv_prog_AR="$AR" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956AR=$ac_cv_prog_AR 5957if test -n "$AR"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5959$as_echo "$AR" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 5966 test -n "$AR" && break 5967 done 5968fi 5969if test -z "$AR"; then 5970 ac_ct_AR=$AR 5971 for ac_prog in ar 5972do 5973 # Extract the first word of "$ac_prog", so it can be a program name with args. 5974set dummy $ac_prog; ac_word=$2 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5976$as_echo_n "checking for $ac_word... " >&6; } 5977if ${ac_cv_prog_ac_ct_AR+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979else 5980 if test -n "$ac_ct_AR"; then 5981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5982else 5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5984for as_dir in $PATH 5985do 5986 IFS=$as_save_IFS 5987 test -z "$as_dir" && as_dir=. 5988 for ac_exec_ext in '' $ac_executable_extensions; do 5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5990 ac_cv_prog_ac_ct_AR="$ac_prog" 5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5992 break 2 5993 fi 5994done 5995 done 5996IFS=$as_save_IFS 5997 5998fi 5999fi 6000ac_ct_AR=$ac_cv_prog_ac_ct_AR 6001if test -n "$ac_ct_AR"; then 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6003$as_echo "$ac_ct_AR" >&6; } 6004else 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6006$as_echo "no" >&6; } 6007fi 6008 6009 6010 test -n "$ac_ct_AR" && break 6011done 6012 6013 if test "x$ac_ct_AR" = x; then 6014 AR="false" 6015 else 6016 case $cross_compiling:$ac_tool_warned in 6017yes:) 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6020ac_tool_warned=yes ;; 6021esac 6022 AR=$ac_ct_AR 6023 fi 6024fi 6025 6026: ${AR=ar} 6027: ${AR_FLAGS=cru} 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6040$as_echo_n "checking for archiver @FILE support... " >&6; } 6041if ${lt_cv_ar_at_file+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 lt_cv_ar_at_file=no 6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6046/* end confdefs.h. */ 6047 6048int 6049main () 6050{ 6051 6052 ; 6053 return 0; 6054} 6055_ACEOF 6056if ac_fn_c_try_compile "$LINENO"; then : 6057 echo conftest.$ac_objext > conftest.lst 6058 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6060 (eval $lt_ar_try) 2>&5 6061 ac_status=$? 6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6063 test $ac_status = 0; } 6064 if test "$ac_status" -eq 0; then 6065 # Ensure the archiver fails upon bogus file names. 6066 rm -f conftest.$ac_objext libconftest.a 6067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6068 (eval $lt_ar_try) 2>&5 6069 ac_status=$? 6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6071 test $ac_status = 0; } 6072 if test "$ac_status" -ne 0; then 6073 lt_cv_ar_at_file=@ 6074 fi 6075 fi 6076 rm -f conftest.* libconftest.a 6077 6078fi 6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6080 6081fi 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6083$as_echo "$lt_cv_ar_at_file" >&6; } 6084 6085if test "x$lt_cv_ar_at_file" = xno; then 6086 archiver_list_spec= 6087else 6088 archiver_list_spec=$lt_cv_ar_at_file 6089fi 6090 6091 6092 6093 6094 6095 6096 6097if test -n "$ac_tool_prefix"; then 6098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6099set dummy ${ac_tool_prefix}strip; ac_word=$2 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101$as_echo_n "checking for $ac_word... " >&6; } 6102if ${ac_cv_prog_STRIP+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 if test -n "$STRIP"; then 6106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6107else 6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6115 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120 done 6121IFS=$as_save_IFS 6122 6123fi 6124fi 6125STRIP=$ac_cv_prog_STRIP 6126if test -n "$STRIP"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6128$as_echo "$STRIP" >&6; } 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133 6134 6135fi 6136if test -z "$ac_cv_prog_STRIP"; then 6137 ac_ct_STRIP=$STRIP 6138 # Extract the first word of "strip", so it can be a program name with args. 6139set dummy strip; ac_word=$2 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6141$as_echo_n "checking for $ac_word... " >&6; } 6142if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 if test -n "$ac_ct_STRIP"; then 6146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6147else 6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149for as_dir in $PATH 6150do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6155 ac_cv_prog_ac_ct_STRIP="strip" 6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159done 6160 done 6161IFS=$as_save_IFS 6162 6163fi 6164fi 6165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6166if test -n "$ac_ct_STRIP"; then 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6168$as_echo "$ac_ct_STRIP" >&6; } 6169else 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6171$as_echo "no" >&6; } 6172fi 6173 6174 if test "x$ac_ct_STRIP" = x; then 6175 STRIP=":" 6176 else 6177 case $cross_compiling:$ac_tool_warned in 6178yes:) 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6181ac_tool_warned=yes ;; 6182esac 6183 STRIP=$ac_ct_STRIP 6184 fi 6185else 6186 STRIP="$ac_cv_prog_STRIP" 6187fi 6188 6189test -z "$STRIP" && STRIP=: 6190 6191 6192 6193 6194 6195 6196if test -n "$ac_tool_prefix"; then 6197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6198set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200$as_echo_n "checking for $ac_word... " >&6; } 6201if ${ac_cv_prog_RANLIB+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 if test -n "$RANLIB"; then 6205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6206else 6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208for as_dir in $PATH 6209do 6210 IFS=$as_save_IFS 6211 test -z "$as_dir" && as_dir=. 6212 for ac_exec_ext in '' $ac_executable_extensions; do 6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6216 break 2 6217 fi 6218done 6219 done 6220IFS=$as_save_IFS 6221 6222fi 6223fi 6224RANLIB=$ac_cv_prog_RANLIB 6225if test -n "$RANLIB"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6227$as_echo "$RANLIB" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234fi 6235if test -z "$ac_cv_prog_RANLIB"; then 6236 ac_ct_RANLIB=$RANLIB 6237 # Extract the first word of "ranlib", so it can be a program name with args. 6238set dummy ranlib; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 if test -n "$ac_ct_RANLIB"; then 6245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_ac_ct_RANLIB="ranlib" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6265if test -n "$ac_ct_RANLIB"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6267$as_echo "$ac_ct_RANLIB" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272 6273 if test "x$ac_ct_RANLIB" = x; then 6274 RANLIB=":" 6275 else 6276 case $cross_compiling:$ac_tool_warned in 6277yes:) 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6280ac_tool_warned=yes ;; 6281esac 6282 RANLIB=$ac_ct_RANLIB 6283 fi 6284else 6285 RANLIB="$ac_cv_prog_RANLIB" 6286fi 6287 6288test -z "$RANLIB" && RANLIB=: 6289 6290 6291 6292 6293 6294 6295# Determine commands to create old-style static archives. 6296old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6297old_postinstall_cmds='chmod 644 $oldlib' 6298old_postuninstall_cmds= 6299 6300if test -n "$RANLIB"; then 6301 case $host_os in 6302 openbsd*) 6303 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6304 ;; 6305 *) 6306 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6307 ;; 6308 esac 6309 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6310fi 6311 6312case $host_os in 6313 darwin*) 6314 lock_old_archive_extraction=yes ;; 6315 *) 6316 lock_old_archive_extraction=no ;; 6317esac 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357# If no C compiler was specified, use CC. 6358LTCC=${LTCC-"$CC"} 6359 6360# If no C compiler flags were specified, use CFLAGS. 6361LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6362 6363# Allow CC to be a program name with arguments. 6364compiler=$CC 6365 6366 6367# Check for command to grab the raw symbol name followed by C symbol from nm. 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6369$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6370if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 6374# These are sane defaults that work on at least a few old systems. 6375# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6376 6377# Character class describing NM global symbol codes. 6378symcode='[BCDEGRST]' 6379 6380# Regexp to match symbols that can be accessed directly from C. 6381sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6382 6383# Define system-specific variables. 6384case $host_os in 6385aix*) 6386 symcode='[BCDT]' 6387 ;; 6388cygwin* | mingw* | pw32* | cegcc*) 6389 symcode='[ABCDGISTW]' 6390 ;; 6391hpux*) 6392 if test "$host_cpu" = ia64; then 6393 symcode='[ABCDEGRST]' 6394 fi 6395 ;; 6396irix* | nonstopux*) 6397 symcode='[BCDEGRST]' 6398 ;; 6399osf*) 6400 symcode='[BCDEGQRST]' 6401 ;; 6402solaris*) 6403 symcode='[BDRT]' 6404 ;; 6405sco3.2v5*) 6406 symcode='[DT]' 6407 ;; 6408sysv4.2uw2*) 6409 symcode='[DT]' 6410 ;; 6411sysv5* | sco5v6* | unixware* | OpenUNIX*) 6412 symcode='[ABDT]' 6413 ;; 6414sysv4) 6415 symcode='[DFNSTU]' 6416 ;; 6417esac 6418 6419# If we're using GNU nm, then use its standard symbol codes. 6420case `$NM -V 2>&1` in 6421*GNU* | *'with BFD'*) 6422 symcode='[ABCDGIRSTW]' ;; 6423esac 6424 6425# Transform an extracted symbol line into a proper C declaration. 6426# Some systems (esp. on ia64) link data and code symbols differently, 6427# so use this general approach. 6428lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6429 6430# Transform an extracted symbol line into symbol name and symbol address 6431lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6432lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6433 6434# Handle CRLF in mingw tool chain 6435opt_cr= 6436case $build_os in 6437mingw*) 6438 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6439 ;; 6440esac 6441 6442# Try without a prefix underscore, then with it. 6443for ac_symprfx in "" "_"; do 6444 6445 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6446 symxfrm="\\1 $ac_symprfx\\2 \\2" 6447 6448 # Write the raw and C identifiers. 6449 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6450 # Fake it for dumpbin and say T for any non-static function 6451 # and D for any global variable. 6452 # Also find C++ and __fastcall symbols from MSVC++, 6453 # which start with @ or ?. 6454 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6455" {last_section=section; section=\$ 3};"\ 6456" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6457" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6458" \$ 0!~/External *\|/{next};"\ 6459" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6460" {if(hide[section]) next};"\ 6461" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6462" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6463" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6464" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6465" ' prfx=^$ac_symprfx" 6466 else 6467 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6468 fi 6469 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6470 6471 # Check to see that the pipe works correctly. 6472 pipe_works=no 6473 6474 rm -f conftest* 6475 cat > conftest.$ac_ext <<_LT_EOF 6476#ifdef __cplusplus 6477extern "C" { 6478#endif 6479char nm_test_var; 6480void nm_test_func(void); 6481void nm_test_func(void){} 6482#ifdef __cplusplus 6483} 6484#endif 6485int main(){nm_test_var='a';nm_test_func();return(0);} 6486_LT_EOF 6487 6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6489 (eval $ac_compile) 2>&5 6490 ac_status=$? 6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6492 test $ac_status = 0; }; then 6493 # Now try to grab the symbols. 6494 nlist=conftest.nm 6495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6496 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6497 ac_status=$? 6498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6499 test $ac_status = 0; } && test -s "$nlist"; then 6500 # Try sorting and uniquifying the output. 6501 if sort "$nlist" | uniq > "$nlist"T; then 6502 mv -f "$nlist"T "$nlist" 6503 else 6504 rm -f "$nlist"T 6505 fi 6506 6507 # Make sure that we snagged all the symbols we need. 6508 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6509 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6510 cat <<_LT_EOF > conftest.$ac_ext 6511/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6512#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6513/* DATA imports from DLLs on WIN32 con't be const, because runtime 6514 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6515# define LT_DLSYM_CONST 6516#elif defined(__osf__) 6517/* This system does not cope well with relocations in const data. */ 6518# define LT_DLSYM_CONST 6519#else 6520# define LT_DLSYM_CONST const 6521#endif 6522 6523#ifdef __cplusplus 6524extern "C" { 6525#endif 6526 6527_LT_EOF 6528 # Now generate the symbol file. 6529 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6530 6531 cat <<_LT_EOF >> conftest.$ac_ext 6532 6533/* The mapping between symbol names and symbols. */ 6534LT_DLSYM_CONST struct { 6535 const char *name; 6536 void *address; 6537} 6538lt__PROGRAM__LTX_preloaded_symbols[] = 6539{ 6540 { "@PROGRAM@", (void *) 0 }, 6541_LT_EOF 6542 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6543 cat <<\_LT_EOF >> conftest.$ac_ext 6544 {0, (void *) 0} 6545}; 6546 6547/* This works around a problem in FreeBSD linker */ 6548#ifdef FREEBSD_WORKAROUND 6549static const void *lt_preloaded_setup() { 6550 return lt__PROGRAM__LTX_preloaded_symbols; 6551} 6552#endif 6553 6554#ifdef __cplusplus 6555} 6556#endif 6557_LT_EOF 6558 # Now try linking the two files. 6559 mv conftest.$ac_objext conftstm.$ac_objext 6560 lt_globsym_save_LIBS=$LIBS 6561 lt_globsym_save_CFLAGS=$CFLAGS 6562 LIBS="conftstm.$ac_objext" 6563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6565 (eval $ac_link) 2>&5 6566 ac_status=$? 6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6568 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6569 pipe_works=yes 6570 fi 6571 LIBS=$lt_globsym_save_LIBS 6572 CFLAGS=$lt_globsym_save_CFLAGS 6573 else 6574 echo "cannot find nm_test_func in $nlist" >&5 6575 fi 6576 else 6577 echo "cannot find nm_test_var in $nlist" >&5 6578 fi 6579 else 6580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6581 fi 6582 else 6583 echo "$progname: failed program was:" >&5 6584 cat conftest.$ac_ext >&5 6585 fi 6586 rm -rf conftest* conftst* 6587 6588 # Do not use the global_symbol_pipe unless it works. 6589 if test "$pipe_works" = yes; then 6590 break 6591 else 6592 lt_cv_sys_global_symbol_pipe= 6593 fi 6594done 6595 6596fi 6597 6598if test -z "$lt_cv_sys_global_symbol_pipe"; then 6599 lt_cv_sys_global_symbol_to_cdecl= 6600fi 6601if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6603$as_echo "failed" >&6; } 6604else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6606$as_echo "ok" >&6; } 6607fi 6608 6609# Response file support. 6610if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6611 nm_file_list_spec='@' 6612elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6613 nm_file_list_spec='@' 6614fi 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6643$as_echo_n "checking for sysroot... " >&6; } 6644 6645# Check whether --with-sysroot was given. 6646if test "${with_sysroot+set}" = set; then : 6647 withval=$with_sysroot; 6648else 6649 with_sysroot=no 6650fi 6651 6652 6653lt_sysroot= 6654case ${with_sysroot} in #( 6655 yes) 6656 if test "$GCC" = yes; then 6657 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6658 fi 6659 ;; #( 6660 /*) 6661 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6662 ;; #( 6663 no|'') 6664 ;; #( 6665 *) 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6667$as_echo "${with_sysroot}" >&6; } 6668 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6669 ;; 6670esac 6671 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6673$as_echo "${lt_sysroot:-no}" >&6; } 6674 6675 6676 6677 6678 6679# Check whether --enable-libtool-lock was given. 6680if test "${enable_libtool_lock+set}" = set; then : 6681 enableval=$enable_libtool_lock; 6682fi 6683 6684test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6685 6686# Some flags need to be propagated to the compiler or linker for good 6687# libtool support. 6688case $host in 6689ia64-*-hpux*) 6690 # Find out which ABI we are using. 6691 echo 'int i;' > conftest.$ac_ext 6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6693 (eval $ac_compile) 2>&5 6694 ac_status=$? 6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6696 test $ac_status = 0; }; then 6697 case `/usr/bin/file conftest.$ac_objext` in 6698 *ELF-32*) 6699 HPUX_IA64_MODE="32" 6700 ;; 6701 *ELF-64*) 6702 HPUX_IA64_MODE="64" 6703 ;; 6704 esac 6705 fi 6706 rm -rf conftest* 6707 ;; 6708*-*-irix6*) 6709 # Find out which ABI we are using. 6710 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6712 (eval $ac_compile) 2>&5 6713 ac_status=$? 6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6715 test $ac_status = 0; }; then 6716 if test "$lt_cv_prog_gnu_ld" = yes; then 6717 case `/usr/bin/file conftest.$ac_objext` in 6718 *32-bit*) 6719 LD="${LD-ld} -melf32bsmip" 6720 ;; 6721 *N32*) 6722 LD="${LD-ld} -melf32bmipn32" 6723 ;; 6724 *64-bit*) 6725 LD="${LD-ld} -melf64bmip" 6726 ;; 6727 esac 6728 else 6729 case `/usr/bin/file conftest.$ac_objext` in 6730 *32-bit*) 6731 LD="${LD-ld} -32" 6732 ;; 6733 *N32*) 6734 LD="${LD-ld} -n32" 6735 ;; 6736 *64-bit*) 6737 LD="${LD-ld} -64" 6738 ;; 6739 esac 6740 fi 6741 fi 6742 rm -rf conftest* 6743 ;; 6744 6745x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6746s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6747 # Find out which ABI we are using. 6748 echo 'int i;' > conftest.$ac_ext 6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6750 (eval $ac_compile) 2>&5 6751 ac_status=$? 6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6753 test $ac_status = 0; }; then 6754 case `/usr/bin/file conftest.o` in 6755 *32-bit*) 6756 case $host in 6757 x86_64-*kfreebsd*-gnu) 6758 LD="${LD-ld} -m elf_i386_fbsd" 6759 ;; 6760 x86_64-*linux*) 6761 LD="${LD-ld} -m elf_i386" 6762 ;; 6763 ppc64-*linux*|powerpc64-*linux*) 6764 LD="${LD-ld} -m elf32ppclinux" 6765 ;; 6766 s390x-*linux*) 6767 LD="${LD-ld} -m elf_s390" 6768 ;; 6769 sparc64-*linux*) 6770 LD="${LD-ld} -m elf32_sparc" 6771 ;; 6772 esac 6773 ;; 6774 *64-bit*) 6775 case $host in 6776 x86_64-*kfreebsd*-gnu) 6777 LD="${LD-ld} -m elf_x86_64_fbsd" 6778 ;; 6779 x86_64-*linux*) 6780 LD="${LD-ld} -m elf_x86_64" 6781 ;; 6782 ppc*-*linux*|powerpc*-*linux*) 6783 LD="${LD-ld} -m elf64ppc" 6784 ;; 6785 s390*-*linux*|s390*-*tpf*) 6786 LD="${LD-ld} -m elf64_s390" 6787 ;; 6788 sparc*-*linux*) 6789 LD="${LD-ld} -m elf64_sparc" 6790 ;; 6791 esac 6792 ;; 6793 esac 6794 fi 6795 rm -rf conftest* 6796 ;; 6797 6798*-*-sco3.2v5*) 6799 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6800 SAVE_CFLAGS="$CFLAGS" 6801 CFLAGS="$CFLAGS -belf" 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6803$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6804if ${lt_cv_cc_needs_belf+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 ac_ext=c 6808ac_cpp='$CPP $CPPFLAGS' 6809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6811ac_compiler_gnu=$ac_cv_c_compiler_gnu 6812 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815 6816int 6817main () 6818{ 6819 6820 ; 6821 return 0; 6822} 6823_ACEOF 6824if ac_fn_c_try_link "$LINENO"; then : 6825 lt_cv_cc_needs_belf=yes 6826else 6827 lt_cv_cc_needs_belf=no 6828fi 6829rm -f core conftest.err conftest.$ac_objext \ 6830 conftest$ac_exeext conftest.$ac_ext 6831 ac_ext=c 6832ac_cpp='$CPP $CPPFLAGS' 6833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6835ac_compiler_gnu=$ac_cv_c_compiler_gnu 6836 6837fi 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6839$as_echo "$lt_cv_cc_needs_belf" >&6; } 6840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6842 CFLAGS="$SAVE_CFLAGS" 6843 fi 6844 ;; 6845*-*solaris*) 6846 # Find out which ABI we are using. 6847 echo 'int i;' > conftest.$ac_ext 6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6849 (eval $ac_compile) 2>&5 6850 ac_status=$? 6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6852 test $ac_status = 0; }; then 6853 case `/usr/bin/file conftest.o` in 6854 *64-bit*) 6855 case $lt_cv_prog_gnu_ld in 6856 yes*) 6857 case $host in 6858 i?86-*-solaris*) 6859 LD="${LD-ld} -m elf_x86_64" 6860 ;; 6861 sparc*-*-solaris*) 6862 LD="${LD-ld} -m elf64_sparc" 6863 ;; 6864 esac 6865 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6866 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6867 LD="${LD-ld}_sol2" 6868 fi 6869 ;; 6870 *) 6871 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6872 LD="${LD-ld} -64" 6873 fi 6874 ;; 6875 esac 6876 ;; 6877 esac 6878 fi 6879 rm -rf conftest* 6880 ;; 6881esac 6882 6883need_locks="$enable_libtool_lock" 6884 6885if test -n "$ac_tool_prefix"; then 6886 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6887set dummy ${ac_tool_prefix}mt; ac_word=$2 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6889$as_echo_n "checking for $ac_word... " >&6; } 6890if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 if test -n "$MANIFEST_TOOL"; then 6894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6895else 6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897for as_dir in $PATH 6898do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907done 6908 done 6909IFS=$as_save_IFS 6910 6911fi 6912fi 6913MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6914if test -n "$MANIFEST_TOOL"; then 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6916$as_echo "$MANIFEST_TOOL" >&6; } 6917else 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6919$as_echo "no" >&6; } 6920fi 6921 6922 6923fi 6924if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6925 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6926 # Extract the first word of "mt", so it can be a program name with args. 6927set dummy mt; ac_word=$2 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6929$as_echo_n "checking for $ac_word... " >&6; } 6930if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 if test -n "$ac_ct_MANIFEST_TOOL"; then 6934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6935else 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6943 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948 done 6949IFS=$as_save_IFS 6950 6951fi 6952fi 6953ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6954if test -n "$ac_ct_MANIFEST_TOOL"; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6956$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6957else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6959$as_echo "no" >&6; } 6960fi 6961 6962 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6963 MANIFEST_TOOL=":" 6964 else 6965 case $cross_compiling:$ac_tool_warned in 6966yes:) 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6969ac_tool_warned=yes ;; 6970esac 6971 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6972 fi 6973else 6974 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6975fi 6976 6977test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6979$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6980if ${lt_cv_path_mainfest_tool+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 lt_cv_path_mainfest_tool=no 6984 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6985 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6986 cat conftest.err >&5 6987 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6988 lt_cv_path_mainfest_tool=yes 6989 fi 6990 rm -f conftest* 6991fi 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6993$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6994if test "x$lt_cv_path_mainfest_tool" != xyes; then 6995 MANIFEST_TOOL=: 6996fi 6997 6998 6999 7000 7001 7002 7003 case $host_os in 7004 rhapsody* | darwin*) 7005 if test -n "$ac_tool_prefix"; then 7006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7007set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009$as_echo_n "checking for $ac_word... " >&6; } 7010if ${ac_cv_prog_DSYMUTIL+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 if test -n "$DSYMUTIL"; then 7014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7015else 7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7017for as_dir in $PATH 7018do 7019 IFS=$as_save_IFS 7020 test -z "$as_dir" && as_dir=. 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033DSYMUTIL=$ac_cv_prog_DSYMUTIL 7034if test -n "$DSYMUTIL"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7036$as_echo "$DSYMUTIL" >&6; } 7037else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039$as_echo "no" >&6; } 7040fi 7041 7042 7043fi 7044if test -z "$ac_cv_prog_DSYMUTIL"; then 7045 ac_ct_DSYMUTIL=$DSYMUTIL 7046 # Extract the first word of "dsymutil", so it can be a program name with args. 7047set dummy dsymutil; ac_word=$2 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7049$as_echo_n "checking for $ac_word... " >&6; } 7050if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 if test -n "$ac_ct_DSYMUTIL"; then 7054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7055else 7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057for as_dir in $PATH 7058do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067done 7068 done 7069IFS=$as_save_IFS 7070 7071fi 7072fi 7073ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7074if test -n "$ac_ct_DSYMUTIL"; then 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7076$as_echo "$ac_ct_DSYMUTIL" >&6; } 7077else 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7079$as_echo "no" >&6; } 7080fi 7081 7082 if test "x$ac_ct_DSYMUTIL" = x; then 7083 DSYMUTIL=":" 7084 else 7085 case $cross_compiling:$ac_tool_warned in 7086yes:) 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7089ac_tool_warned=yes ;; 7090esac 7091 DSYMUTIL=$ac_ct_DSYMUTIL 7092 fi 7093else 7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7095fi 7096 7097 if test -n "$ac_tool_prefix"; then 7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7099set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101$as_echo_n "checking for $ac_word... " >&6; } 7102if ${ac_cv_prog_NMEDIT+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 if test -n "$NMEDIT"; then 7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7107else 7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7109for as_dir in $PATH 7110do 7111 IFS=$as_save_IFS 7112 test -z "$as_dir" && as_dir=. 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7117 break 2 7118 fi 7119done 7120 done 7121IFS=$as_save_IFS 7122 7123fi 7124fi 7125NMEDIT=$ac_cv_prog_NMEDIT 7126if test -n "$NMEDIT"; then 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7128$as_echo "$NMEDIT" >&6; } 7129else 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7131$as_echo "no" >&6; } 7132fi 7133 7134 7135fi 7136if test -z "$ac_cv_prog_NMEDIT"; then 7137 ac_ct_NMEDIT=$NMEDIT 7138 # Extract the first word of "nmedit", so it can be a program name with args. 7139set dummy nmedit; ac_word=$2 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7141$as_echo_n "checking for $ac_word... " >&6; } 7142if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 if test -n "$ac_ct_NMEDIT"; then 7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7147else 7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7149for as_dir in $PATH 7150do 7151 IFS=$as_save_IFS 7152 test -z "$as_dir" && as_dir=. 7153 for ac_exec_ext in '' $ac_executable_extensions; do 7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7155 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7157 break 2 7158 fi 7159done 7160 done 7161IFS=$as_save_IFS 7162 7163fi 7164fi 7165ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7166if test -n "$ac_ct_NMEDIT"; then 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7168$as_echo "$ac_ct_NMEDIT" >&6; } 7169else 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171$as_echo "no" >&6; } 7172fi 7173 7174 if test "x$ac_ct_NMEDIT" = x; then 7175 NMEDIT=":" 7176 else 7177 case $cross_compiling:$ac_tool_warned in 7178yes:) 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7181ac_tool_warned=yes ;; 7182esac 7183 NMEDIT=$ac_ct_NMEDIT 7184 fi 7185else 7186 NMEDIT="$ac_cv_prog_NMEDIT" 7187fi 7188 7189 if test -n "$ac_tool_prefix"; then 7190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7191set dummy ${ac_tool_prefix}lipo; ac_word=$2 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7193$as_echo_n "checking for $ac_word... " >&6; } 7194if ${ac_cv_prog_LIPO+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 if test -n "$LIPO"; then 7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7199else 7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7201for as_dir in $PATH 7202do 7203 IFS=$as_save_IFS 7204 test -z "$as_dir" && as_dir=. 7205 for ac_exec_ext in '' $ac_executable_extensions; do 7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7209 break 2 7210 fi 7211done 7212 done 7213IFS=$as_save_IFS 7214 7215fi 7216fi 7217LIPO=$ac_cv_prog_LIPO 7218if test -n "$LIPO"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7220$as_echo "$LIPO" >&6; } 7221else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223$as_echo "no" >&6; } 7224fi 7225 7226 7227fi 7228if test -z "$ac_cv_prog_LIPO"; then 7229 ac_ct_LIPO=$LIPO 7230 # Extract the first word of "lipo", so it can be a program name with args. 7231set dummy lipo; ac_word=$2 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7233$as_echo_n "checking for $ac_word... " >&6; } 7234if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7235 $as_echo_n "(cached) " >&6 7236else 7237 if test -n "$ac_ct_LIPO"; then 7238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7239else 7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7241for as_dir in $PATH 7242do 7243 IFS=$as_save_IFS 7244 test -z "$as_dir" && as_dir=. 7245 for ac_exec_ext in '' $ac_executable_extensions; do 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7247 ac_cv_prog_ac_ct_LIPO="lipo" 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7249 break 2 7250 fi 7251done 7252 done 7253IFS=$as_save_IFS 7254 7255fi 7256fi 7257ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7258if test -n "$ac_ct_LIPO"; then 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7260$as_echo "$ac_ct_LIPO" >&6; } 7261else 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7263$as_echo "no" >&6; } 7264fi 7265 7266 if test "x$ac_ct_LIPO" = x; then 7267 LIPO=":" 7268 else 7269 case $cross_compiling:$ac_tool_warned in 7270yes:) 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7273ac_tool_warned=yes ;; 7274esac 7275 LIPO=$ac_ct_LIPO 7276 fi 7277else 7278 LIPO="$ac_cv_prog_LIPO" 7279fi 7280 7281 if test -n "$ac_tool_prefix"; then 7282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7283set dummy ${ac_tool_prefix}otool; ac_word=$2 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7285$as_echo_n "checking for $ac_word... " >&6; } 7286if ${ac_cv_prog_OTOOL+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 if test -n "$OTOOL"; then 7290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7291else 7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7293for as_dir in $PATH 7294do 7295 IFS=$as_save_IFS 7296 test -z "$as_dir" && as_dir=. 7297 for ac_exec_ext in '' $ac_executable_extensions; do 7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7301 break 2 7302 fi 7303done 7304 done 7305IFS=$as_save_IFS 7306 7307fi 7308fi 7309OTOOL=$ac_cv_prog_OTOOL 7310if test -n "$OTOOL"; then 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7312$as_echo "$OTOOL" >&6; } 7313else 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7315$as_echo "no" >&6; } 7316fi 7317 7318 7319fi 7320if test -z "$ac_cv_prog_OTOOL"; then 7321 ac_ct_OTOOL=$OTOOL 7322 # Extract the first word of "otool", so it can be a program name with args. 7323set dummy otool; ac_word=$2 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7325$as_echo_n "checking for $ac_word... " >&6; } 7326if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328else 7329 if test -n "$ac_ct_OTOOL"; then 7330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7331else 7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7333for as_dir in $PATH 7334do 7335 IFS=$as_save_IFS 7336 test -z "$as_dir" && as_dir=. 7337 for ac_exec_ext in '' $ac_executable_extensions; do 7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7339 ac_cv_prog_ac_ct_OTOOL="otool" 7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7341 break 2 7342 fi 7343done 7344 done 7345IFS=$as_save_IFS 7346 7347fi 7348fi 7349ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7350if test -n "$ac_ct_OTOOL"; then 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7352$as_echo "$ac_ct_OTOOL" >&6; } 7353else 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7355$as_echo "no" >&6; } 7356fi 7357 7358 if test "x$ac_ct_OTOOL" = x; then 7359 OTOOL=":" 7360 else 7361 case $cross_compiling:$ac_tool_warned in 7362yes:) 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7365ac_tool_warned=yes ;; 7366esac 7367 OTOOL=$ac_ct_OTOOL 7368 fi 7369else 7370 OTOOL="$ac_cv_prog_OTOOL" 7371fi 7372 7373 if test -n "$ac_tool_prefix"; then 7374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7375set dummy ${ac_tool_prefix}otool64; ac_word=$2 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7377$as_echo_n "checking for $ac_word... " >&6; } 7378if ${ac_cv_prog_OTOOL64+:} false; then : 7379 $as_echo_n "(cached) " >&6 7380else 7381 if test -n "$OTOOL64"; then 7382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7383else 7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7385for as_dir in $PATH 7386do 7387 IFS=$as_save_IFS 7388 test -z "$as_dir" && as_dir=. 7389 for ac_exec_ext in '' $ac_executable_extensions; do 7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7393 break 2 7394 fi 7395done 7396 done 7397IFS=$as_save_IFS 7398 7399fi 7400fi 7401OTOOL64=$ac_cv_prog_OTOOL64 7402if test -n "$OTOOL64"; then 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7404$as_echo "$OTOOL64" >&6; } 7405else 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7407$as_echo "no" >&6; } 7408fi 7409 7410 7411fi 7412if test -z "$ac_cv_prog_OTOOL64"; then 7413 ac_ct_OTOOL64=$OTOOL64 7414 # Extract the first word of "otool64", so it can be a program name with args. 7415set dummy otool64; ac_word=$2 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7417$as_echo_n "checking for $ac_word... " >&6; } 7418if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7419 $as_echo_n "(cached) " >&6 7420else 7421 if test -n "$ac_ct_OTOOL64"; then 7422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7423else 7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7425for as_dir in $PATH 7426do 7427 IFS=$as_save_IFS 7428 test -z "$as_dir" && as_dir=. 7429 for ac_exec_ext in '' $ac_executable_extensions; do 7430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7431 ac_cv_prog_ac_ct_OTOOL64="otool64" 7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7433 break 2 7434 fi 7435done 7436 done 7437IFS=$as_save_IFS 7438 7439fi 7440fi 7441ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7442if test -n "$ac_ct_OTOOL64"; then 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7444$as_echo "$ac_ct_OTOOL64" >&6; } 7445else 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7447$as_echo "no" >&6; } 7448fi 7449 7450 if test "x$ac_ct_OTOOL64" = x; then 7451 OTOOL64=":" 7452 else 7453 case $cross_compiling:$ac_tool_warned in 7454yes:) 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7457ac_tool_warned=yes ;; 7458esac 7459 OTOOL64=$ac_ct_OTOOL64 7460 fi 7461else 7462 OTOOL64="$ac_cv_prog_OTOOL64" 7463fi 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7492$as_echo_n "checking for -single_module linker flag... " >&6; } 7493if ${lt_cv_apple_cc_single_mod+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 lt_cv_apple_cc_single_mod=no 7497 if test -z "${LT_MULTI_MODULE}"; then 7498 # By default we will add the -single_module flag. You can override 7499 # by either setting the environment variable LT_MULTI_MODULE 7500 # non-empty at configure time, or by adding -multi_module to the 7501 # link flags. 7502 rm -rf libconftest.dylib* 7503 echo "int foo(void){return 1;}" > conftest.c 7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7505-dynamiclib -Wl,-single_module conftest.c" >&5 7506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7508 _lt_result=$? 7509 # If there is a non-empty error log, and "single_module" 7510 # appears in it, assume the flag caused a linker warning 7511 if test -s conftest.err && $GREP single_module conftest.err; then 7512 cat conftest.err >&5 7513 # Otherwise, if the output was created with a 0 exit code from 7514 # the compiler, it worked. 7515 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7516 lt_cv_apple_cc_single_mod=yes 7517 else 7518 cat conftest.err >&5 7519 fi 7520 rm -rf libconftest.dylib* 7521 rm -f conftest.* 7522 fi 7523fi 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7525$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7526 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7528$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7529if ${lt_cv_ld_exported_symbols_list+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 lt_cv_ld_exported_symbols_list=no 7533 save_LDFLAGS=$LDFLAGS 7534 echo "_main" > conftest.sym 7535 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7537/* end confdefs.h. */ 7538 7539int 7540main () 7541{ 7542 7543 ; 7544 return 0; 7545} 7546_ACEOF 7547if ac_fn_c_try_link "$LINENO"; then : 7548 lt_cv_ld_exported_symbols_list=yes 7549else 7550 lt_cv_ld_exported_symbols_list=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext \ 7553 conftest$ac_exeext conftest.$ac_ext 7554 LDFLAGS="$save_LDFLAGS" 7555 7556fi 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7558$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7559 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7561$as_echo_n "checking for -force_load linker flag... " >&6; } 7562if ${lt_cv_ld_force_load+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564else 7565 lt_cv_ld_force_load=no 7566 cat > conftest.c << _LT_EOF 7567int forced_loaded() { return 2;} 7568_LT_EOF 7569 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7570 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7571 echo "$AR cru libconftest.a conftest.o" >&5 7572 $AR cru libconftest.a conftest.o 2>&5 7573 echo "$RANLIB libconftest.a" >&5 7574 $RANLIB libconftest.a 2>&5 7575 cat > conftest.c << _LT_EOF 7576int main() { return 0;} 7577_LT_EOF 7578 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7579 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7580 _lt_result=$? 7581 if test -s conftest.err && $GREP force_load conftest.err; then 7582 cat conftest.err >&5 7583 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7584 lt_cv_ld_force_load=yes 7585 else 7586 cat conftest.err >&5 7587 fi 7588 rm -f conftest.err libconftest.a conftest conftest.c 7589 rm -rf conftest.dSYM 7590 7591fi 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7593$as_echo "$lt_cv_ld_force_load" >&6; } 7594 case $host_os in 7595 rhapsody* | darwin1.[012]) 7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7597 darwin1.*) 7598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7599 darwin*) # darwin 5.x on 7600 # if running on 10.5 or later, the deployment target defaults 7601 # to the OS version, if on x86, and 10.4, the deployment 7602 # target defaults to 10.4. Don't you love it? 7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7604 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7606 10.[012]*) 7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7608 10.*) 7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7610 esac 7611 ;; 7612 esac 7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7614 _lt_dar_single_mod='$single_module' 7615 fi 7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7618 else 7619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7620 fi 7621 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7622 _lt_dsymutil='~$DSYMUTIL $lib || :' 7623 else 7624 _lt_dsymutil= 7625 fi 7626 ;; 7627 esac 7628 7629ac_ext=c 7630ac_cpp='$CPP $CPPFLAGS' 7631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7633ac_compiler_gnu=$ac_cv_c_compiler_gnu 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7635$as_echo_n "checking how to run the C preprocessor... " >&6; } 7636# On Suns, sometimes $CPP names a directory. 7637if test -n "$CPP" && test -d "$CPP"; then 7638 CPP= 7639fi 7640if test -z "$CPP"; then 7641 if ${ac_cv_prog_CPP+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 # Double quotes because CPP needs to be expanded 7645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7646 do 7647 ac_preproc_ok=false 7648for ac_c_preproc_warn_flag in '' yes 7649do 7650 # Use a header file that comes with gcc, so configuring glibc 7651 # with a fresh cross-compiler works. 7652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7653 # <limits.h> exists even on freestanding compilers. 7654 # On the NeXT, cc -E runs the code through the compiler's parser, 7655 # not just through cpp. "Syntax error" is here to catch this case. 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658#ifdef __STDC__ 7659# include <limits.h> 7660#else 7661# include <assert.h> 7662#endif 7663 Syntax error 7664_ACEOF 7665if ac_fn_c_try_cpp "$LINENO"; then : 7666 7667else 7668 # Broken: fails on valid input. 7669continue 7670fi 7671rm -f conftest.err conftest.i conftest.$ac_ext 7672 7673 # OK, works on sane cases. Now check whether nonexistent headers 7674 # can be detected and how. 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676/* end confdefs.h. */ 7677#include <ac_nonexistent.h> 7678_ACEOF 7679if ac_fn_c_try_cpp "$LINENO"; then : 7680 # Broken: success on invalid input. 7681continue 7682else 7683 # Passes both tests. 7684ac_preproc_ok=: 7685break 7686fi 7687rm -f conftest.err conftest.i conftest.$ac_ext 7688 7689done 7690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7691rm -f conftest.i conftest.err conftest.$ac_ext 7692if $ac_preproc_ok; then : 7693 break 7694fi 7695 7696 done 7697 ac_cv_prog_CPP=$CPP 7698 7699fi 7700 CPP=$ac_cv_prog_CPP 7701else 7702 ac_cv_prog_CPP=$CPP 7703fi 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7705$as_echo "$CPP" >&6; } 7706ac_preproc_ok=false 7707for ac_c_preproc_warn_flag in '' yes 7708do 7709 # Use a header file that comes with gcc, so configuring glibc 7710 # with a fresh cross-compiler works. 7711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7712 # <limits.h> exists even on freestanding compilers. 7713 # On the NeXT, cc -E runs the code through the compiler's parser, 7714 # not just through cpp. "Syntax error" is here to catch this case. 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716/* end confdefs.h. */ 7717#ifdef __STDC__ 7718# include <limits.h> 7719#else 7720# include <assert.h> 7721#endif 7722 Syntax error 7723_ACEOF 7724if ac_fn_c_try_cpp "$LINENO"; then : 7725 7726else 7727 # Broken: fails on valid input. 7728continue 7729fi 7730rm -f conftest.err conftest.i conftest.$ac_ext 7731 7732 # OK, works on sane cases. Now check whether nonexistent headers 7733 # can be detected and how. 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736#include <ac_nonexistent.h> 7737_ACEOF 7738if ac_fn_c_try_cpp "$LINENO"; then : 7739 # Broken: success on invalid input. 7740continue 7741else 7742 # Passes both tests. 7743ac_preproc_ok=: 7744break 7745fi 7746rm -f conftest.err conftest.i conftest.$ac_ext 7747 7748done 7749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7750rm -f conftest.i conftest.err conftest.$ac_ext 7751if $ac_preproc_ok; then : 7752 7753else 7754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7756as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7757See \`config.log' for more details" "$LINENO" 5; } 7758fi 7759 7760ac_ext=c 7761ac_cpp='$CPP $CPPFLAGS' 7762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7764ac_compiler_gnu=$ac_cv_c_compiler_gnu 7765 7766 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7768$as_echo_n "checking for ANSI C header files... " >&6; } 7769if ${ac_cv_header_stdc+:} false; then : 7770 $as_echo_n "(cached) " >&6 7771else 7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7773/* end confdefs.h. */ 7774#include <stdlib.h> 7775#include <stdarg.h> 7776#include <string.h> 7777#include <float.h> 7778 7779int 7780main () 7781{ 7782 7783 ; 7784 return 0; 7785} 7786_ACEOF 7787if ac_fn_c_try_compile "$LINENO"; then : 7788 ac_cv_header_stdc=yes 7789else 7790 ac_cv_header_stdc=no 7791fi 7792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7793 7794if test $ac_cv_header_stdc = yes; then 7795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797/* end confdefs.h. */ 7798#include <string.h> 7799 7800_ACEOF 7801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7802 $EGREP "memchr" >/dev/null 2>&1; then : 7803 7804else 7805 ac_cv_header_stdc=no 7806fi 7807rm -f conftest* 7808 7809fi 7810 7811if test $ac_cv_header_stdc = yes; then 7812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814/* end confdefs.h. */ 7815#include <stdlib.h> 7816 7817_ACEOF 7818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7819 $EGREP "free" >/dev/null 2>&1; then : 7820 7821else 7822 ac_cv_header_stdc=no 7823fi 7824rm -f conftest* 7825 7826fi 7827 7828if test $ac_cv_header_stdc = yes; then 7829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7830 if test "$cross_compiling" = yes; then : 7831 : 7832else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834/* end confdefs.h. */ 7835#include <ctype.h> 7836#include <stdlib.h> 7837#if ((' ' & 0x0FF) == 0x020) 7838# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7839# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7840#else 7841# define ISLOWER(c) \ 7842 (('a' <= (c) && (c) <= 'i') \ 7843 || ('j' <= (c) && (c) <= 'r') \ 7844 || ('s' <= (c) && (c) <= 'z')) 7845# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7846#endif 7847 7848#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7849int 7850main () 7851{ 7852 int i; 7853 for (i = 0; i < 256; i++) 7854 if (XOR (islower (i), ISLOWER (i)) 7855 || toupper (i) != TOUPPER (i)) 7856 return 2; 7857 return 0; 7858} 7859_ACEOF 7860if ac_fn_c_try_run "$LINENO"; then : 7861 7862else 7863 ac_cv_header_stdc=no 7864fi 7865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7866 conftest.$ac_objext conftest.beam conftest.$ac_ext 7867fi 7868 7869fi 7870fi 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7872$as_echo "$ac_cv_header_stdc" >&6; } 7873if test $ac_cv_header_stdc = yes; then 7874 7875$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7876 7877fi 7878 7879# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7880for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7881 inttypes.h stdint.h unistd.h 7882do : 7883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7884ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7885" 7886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7887 cat >>confdefs.h <<_ACEOF 7888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7889_ACEOF 7890 7891fi 7892 7893done 7894 7895 7896for ac_header in dlfcn.h 7897do : 7898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7899" 7900if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7901 cat >>confdefs.h <<_ACEOF 7902#define HAVE_DLFCN_H 1 7903_ACEOF 7904 7905fi 7906 7907done 7908 7909 7910 7911 7912 7913# Set options 7914 7915# Check whether --with-pic was given. 7916if test "${with_pic+set}" = set; then : 7917 withval=$with_pic; lt_p=${PACKAGE-default} 7918 case $withval in 7919 yes|no) pic_mode=$withval ;; 7920 *) 7921 pic_mode=default 7922 # Look at the argument we got. We use all the common list separators. 7923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7924 for lt_pkg in $withval; do 7925 IFS="$lt_save_ifs" 7926 if test "X$lt_pkg" = "X$lt_p"; then 7927 pic_mode=yes 7928 fi 7929 done 7930 IFS="$lt_save_ifs" 7931 ;; 7932 esac 7933else 7934 pic_mode=default 7935fi 7936 7937 7938test -z "$pic_mode" && pic_mode=yes 7939 7940 7941 7942 7943 7944 7945 7946 7947 enable_dlopen=no 7948 7949 7950 enable_win32_dll=no 7951 7952 7953 # Check whether --enable-shared was given. 7954if test "${enable_shared+set}" = set; then : 7955 enableval=$enable_shared; p=${PACKAGE-default} 7956 case $enableval in 7957 yes) enable_shared=yes ;; 7958 no) enable_shared=no ;; 7959 *) 7960 enable_shared=no 7961 # Look at the argument we got. We use all the common list separators. 7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7963 for pkg in $enableval; do 7964 IFS="$lt_save_ifs" 7965 if test "X$pkg" = "X$p"; then 7966 enable_shared=yes 7967 fi 7968 done 7969 IFS="$lt_save_ifs" 7970 ;; 7971 esac 7972else 7973 enable_shared=yes 7974fi 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 # Check whether --enable-static was given. 7985if test "${enable_static+set}" = set; then : 7986 enableval=$enable_static; p=${PACKAGE-default} 7987 case $enableval in 7988 yes) enable_static=yes ;; 7989 no) enable_static=no ;; 7990 *) 7991 enable_static=no 7992 # Look at the argument we got. We use all the common list separators. 7993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7994 for pkg in $enableval; do 7995 IFS="$lt_save_ifs" 7996 if test "X$pkg" = "X$p"; then 7997 enable_static=yes 7998 fi 7999 done 8000 IFS="$lt_save_ifs" 8001 ;; 8002 esac 8003else 8004 enable_static=yes 8005fi 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 # Check whether --enable-fast-install was given. 8017if test "${enable_fast_install+set}" = set; then : 8018 enableval=$enable_fast_install; p=${PACKAGE-default} 8019 case $enableval in 8020 yes) enable_fast_install=yes ;; 8021 no) enable_fast_install=no ;; 8022 *) 8023 enable_fast_install=no 8024 # Look at the argument we got. We use all the common list separators. 8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8026 for pkg in $enableval; do 8027 IFS="$lt_save_ifs" 8028 if test "X$pkg" = "X$p"; then 8029 enable_fast_install=yes 8030 fi 8031 done 8032 IFS="$lt_save_ifs" 8033 ;; 8034 esac 8035else 8036 enable_fast_install=yes 8037fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049# This can be used to rebuild libtool when needed 8050LIBTOOL_DEPS="$ltmain" 8051 8052# Always use our own libtool. 8053LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084test -z "$LN_S" && LN_S="ln -s" 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099if test -n "${ZSH_VERSION+set}" ; then 8100 setopt NO_GLOB_SUBST 8101fi 8102 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8104$as_echo_n "checking for objdir... " >&6; } 8105if ${lt_cv_objdir+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 rm -f .libs 2>/dev/null 8109mkdir .libs 2>/dev/null 8110if test -d .libs; then 8111 lt_cv_objdir=.libs 8112else 8113 # MS-DOS does not allow filenames that begin with a dot. 8114 lt_cv_objdir=_libs 8115fi 8116rmdir .libs 2>/dev/null 8117fi 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8119$as_echo "$lt_cv_objdir" >&6; } 8120objdir=$lt_cv_objdir 8121 8122 8123 8124 8125 8126cat >>confdefs.h <<_ACEOF 8127#define LT_OBJDIR "$lt_cv_objdir/" 8128_ACEOF 8129 8130 8131 8132 8133case $host_os in 8134aix3*) 8135 # AIX sometimes has problems with the GCC collect2 program. For some 8136 # reason, if we set the COLLECT_NAMES environment variable, the problems 8137 # vanish in a puff of smoke. 8138 if test "X${COLLECT_NAMES+set}" != Xset; then 8139 COLLECT_NAMES= 8140 export COLLECT_NAMES 8141 fi 8142 ;; 8143esac 8144 8145# Global variables: 8146ofile=libtool 8147can_build_shared=yes 8148 8149# All known linkers require a `.a' archive for static linking (except MSVC, 8150# which needs '.lib'). 8151libext=a 8152 8153with_gnu_ld="$lt_cv_prog_gnu_ld" 8154 8155old_CC="$CC" 8156old_CFLAGS="$CFLAGS" 8157 8158# Set sane defaults for various variables 8159test -z "$CC" && CC=cc 8160test -z "$LTCC" && LTCC=$CC 8161test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8162test -z "$LD" && LD=ld 8163test -z "$ac_objext" && ac_objext=o 8164 8165for cc_temp in $compiler""; do 8166 case $cc_temp in 8167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8169 \-*) ;; 8170 *) break;; 8171 esac 8172done 8173cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8174 8175 8176# Only perform the check for file, if the check method requires it 8177test -z "$MAGIC_CMD" && MAGIC_CMD=file 8178case $deplibs_check_method in 8179file_magic*) 8180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8182$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8183if ${lt_cv_path_MAGIC_CMD+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 case $MAGIC_CMD in 8187[\\/*] | ?:[\\/]*) 8188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8189 ;; 8190*) 8191 lt_save_MAGIC_CMD="$MAGIC_CMD" 8192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8194 for ac_dir in $ac_dummy; do 8195 IFS="$lt_save_ifs" 8196 test -z "$ac_dir" && ac_dir=. 8197 if test -f $ac_dir/${ac_tool_prefix}file; then 8198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8199 if test -n "$file_magic_test_file"; then 8200 case $deplibs_check_method in 8201 "file_magic "*) 8202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8205 $EGREP "$file_magic_regex" > /dev/null; then 8206 : 8207 else 8208 cat <<_LT_EOF 1>&2 8209 8210*** Warning: the command libtool uses to detect shared libraries, 8211*** $file_magic_cmd, produces output that libtool cannot recognize. 8212*** The result is that libtool may fail to recognize shared libraries 8213*** as such. This will affect the creation of libtool libraries that 8214*** depend on shared libraries, but programs linked with such libtool 8215*** libraries will work regardless of this problem. Nevertheless, you 8216*** may want to report the problem to your system manager and/or to 8217*** bug-libtool@gnu.org 8218 8219_LT_EOF 8220 fi ;; 8221 esac 8222 fi 8223 break 8224 fi 8225 done 8226 IFS="$lt_save_ifs" 8227 MAGIC_CMD="$lt_save_MAGIC_CMD" 8228 ;; 8229esac 8230fi 8231 8232MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8233if test -n "$MAGIC_CMD"; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8235$as_echo "$MAGIC_CMD" >&6; } 8236else 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8238$as_echo "no" >&6; } 8239fi 8240 8241 8242 8243 8244 8245if test -z "$lt_cv_path_MAGIC_CMD"; then 8246 if test -n "$ac_tool_prefix"; then 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8248$as_echo_n "checking for file... " >&6; } 8249if ${lt_cv_path_MAGIC_CMD+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 case $MAGIC_CMD in 8253[\\/*] | ?:[\\/]*) 8254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8255 ;; 8256*) 8257 lt_save_MAGIC_CMD="$MAGIC_CMD" 8258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8260 for ac_dir in $ac_dummy; do 8261 IFS="$lt_save_ifs" 8262 test -z "$ac_dir" && ac_dir=. 8263 if test -f $ac_dir/file; then 8264 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8265 if test -n "$file_magic_test_file"; then 8266 case $deplibs_check_method in 8267 "file_magic "*) 8268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8271 $EGREP "$file_magic_regex" > /dev/null; then 8272 : 8273 else 8274 cat <<_LT_EOF 1>&2 8275 8276*** Warning: the command libtool uses to detect shared libraries, 8277*** $file_magic_cmd, produces output that libtool cannot recognize. 8278*** The result is that libtool may fail to recognize shared libraries 8279*** as such. This will affect the creation of libtool libraries that 8280*** depend on shared libraries, but programs linked with such libtool 8281*** libraries will work regardless of this problem. Nevertheless, you 8282*** may want to report the problem to your system manager and/or to 8283*** bug-libtool@gnu.org 8284 8285_LT_EOF 8286 fi ;; 8287 esac 8288 fi 8289 break 8290 fi 8291 done 8292 IFS="$lt_save_ifs" 8293 MAGIC_CMD="$lt_save_MAGIC_CMD" 8294 ;; 8295esac 8296fi 8297 8298MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8299if test -n "$MAGIC_CMD"; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8301$as_echo "$MAGIC_CMD" >&6; } 8302else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8304$as_echo "no" >&6; } 8305fi 8306 8307 8308 else 8309 MAGIC_CMD=: 8310 fi 8311fi 8312 8313 fi 8314 ;; 8315esac 8316 8317# Use C for the default configuration in the libtool script 8318 8319lt_save_CC="$CC" 8320ac_ext=c 8321ac_cpp='$CPP $CPPFLAGS' 8322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8324ac_compiler_gnu=$ac_cv_c_compiler_gnu 8325 8326 8327# Source file extension for C test sources. 8328ac_ext=c 8329 8330# Object file extension for compiled C test sources. 8331objext=o 8332objext=$objext 8333 8334# Code to be used in simple compile tests 8335lt_simple_compile_test_code="int some_variable = 0;" 8336 8337# Code to be used in simple link tests 8338lt_simple_link_test_code='int main(){return(0);}' 8339 8340 8341 8342 8343 8344 8345 8346# If no C compiler was specified, use CC. 8347LTCC=${LTCC-"$CC"} 8348 8349# If no C compiler flags were specified, use CFLAGS. 8350LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8351 8352# Allow CC to be a program name with arguments. 8353compiler=$CC 8354 8355# Save the default compiler, since it gets overwritten when the other 8356# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8357compiler_DEFAULT=$CC 8358 8359# save warnings/boilerplate of simple test code 8360ac_outfile=conftest.$ac_objext 8361echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8363_lt_compiler_boilerplate=`cat conftest.err` 8364$RM conftest* 8365 8366ac_outfile=conftest.$ac_objext 8367echo "$lt_simple_link_test_code" >conftest.$ac_ext 8368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8369_lt_linker_boilerplate=`cat conftest.err` 8370$RM -r conftest* 8371 8372 8373## CAVEAT EMPTOR: 8374## There is no encapsulation within the following macros, do not change 8375## the running order or otherwise move them around unless you know exactly 8376## what you are doing... 8377if test -n "$compiler"; then 8378 8379lt_prog_compiler_no_builtin_flag= 8380 8381if test "$GCC" = yes; then 8382 case $cc_basename in 8383 nvcc*) 8384 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8385 *) 8386 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8387 esac 8388 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8390$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8391if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 lt_cv_prog_compiler_rtti_exceptions=no 8395 ac_outfile=conftest.$ac_objext 8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8397 lt_compiler_flag="-fno-rtti -fno-exceptions" 8398 # Insert the option either (1) after the last *FLAGS variable, or 8399 # (2) before a word containing "conftest.", or (3) at the end. 8400 # Note that $ac_compile itself does not contain backslashes and begins 8401 # with a dollar sign (not a hyphen), so the echo should work correctly. 8402 # The option is referenced via a variable to avoid confusing sed. 8403 lt_compile=`echo "$ac_compile" | $SED \ 8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8406 -e 's:$: $lt_compiler_flag:'` 8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8408 (eval "$lt_compile" 2>conftest.err) 8409 ac_status=$? 8410 cat conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 if (exit $ac_status) && test -s "$ac_outfile"; then 8413 # The compiler can only warn and ignore the option if not recognized 8414 # So say no if there are warnings other than the usual output. 8415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8418 lt_cv_prog_compiler_rtti_exceptions=yes 8419 fi 8420 fi 8421 $RM conftest* 8422 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8425$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8426 8427if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8429else 8430 : 8431fi 8432 8433fi 8434 8435 8436 8437 8438 8439 8440 lt_prog_compiler_wl= 8441lt_prog_compiler_pic= 8442lt_prog_compiler_static= 8443 8444 8445 if test "$GCC" = yes; then 8446 lt_prog_compiler_wl='-Wl,' 8447 lt_prog_compiler_static='-static' 8448 8449 case $host_os in 8450 aix*) 8451 # All AIX code is PIC. 8452 if test "$host_cpu" = ia64; then 8453 # AIX 5 now supports IA64 processor 8454 lt_prog_compiler_static='-Bstatic' 8455 fi 8456 ;; 8457 8458 amigaos*) 8459 case $host_cpu in 8460 powerpc) 8461 # see comment about AmigaOS4 .so support 8462 lt_prog_compiler_pic='-fPIC' 8463 ;; 8464 m68k) 8465 # FIXME: we need at least 68020 code to build shared libraries, but 8466 # adding the `-m68020' flag to GCC prevents building anything better, 8467 # like `-m68040'. 8468 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8469 ;; 8470 esac 8471 ;; 8472 8473 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8474 # PIC is the default for these OSes. 8475 ;; 8476 8477 mingw* | cygwin* | pw32* | os2* | cegcc*) 8478 # This hack is so that the source file can tell whether it is being 8479 # built for inclusion in a dll (and should export symbols for example). 8480 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8481 # (--disable-auto-import) libraries 8482 lt_prog_compiler_pic='-DDLL_EXPORT' 8483 ;; 8484 8485 darwin* | rhapsody*) 8486 # PIC is the default on this platform 8487 # Common symbols not allowed in MH_DYLIB files 8488 lt_prog_compiler_pic='-fno-common' 8489 ;; 8490 8491 haiku*) 8492 # PIC is the default for Haiku. 8493 # The "-static" flag exists, but is broken. 8494 lt_prog_compiler_static= 8495 ;; 8496 8497 hpux*) 8498 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8499 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8500 # sets the default TLS model and affects inlining. 8501 case $host_cpu in 8502 hppa*64*) 8503 # +Z the default 8504 ;; 8505 *) 8506 lt_prog_compiler_pic='-fPIC' 8507 ;; 8508 esac 8509 ;; 8510 8511 interix[3-9]*) 8512 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8513 # Instead, we relocate shared libraries at runtime. 8514 ;; 8515 8516 msdosdjgpp*) 8517 # Just because we use GCC doesn't mean we suddenly get shared libraries 8518 # on systems that don't support them. 8519 lt_prog_compiler_can_build_shared=no 8520 enable_shared=no 8521 ;; 8522 8523 *nto* | *qnx*) 8524 # QNX uses GNU C++, but need to define -shared option too, otherwise 8525 # it will coredump. 8526 lt_prog_compiler_pic='-fPIC -shared' 8527 ;; 8528 8529 sysv4*MP*) 8530 if test -d /usr/nec; then 8531 lt_prog_compiler_pic=-Kconform_pic 8532 fi 8533 ;; 8534 8535 *) 8536 lt_prog_compiler_pic='-fPIC' 8537 ;; 8538 esac 8539 8540 case $cc_basename in 8541 nvcc*) # Cuda Compiler Driver 2.2 8542 lt_prog_compiler_wl='-Xlinker ' 8543 if test -n "$lt_prog_compiler_pic"; then 8544 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8545 fi 8546 ;; 8547 esac 8548 else 8549 # PORTME Check for flag to pass linker flags through the system compiler. 8550 case $host_os in 8551 aix*) 8552 lt_prog_compiler_wl='-Wl,' 8553 if test "$host_cpu" = ia64; then 8554 # AIX 5 now supports IA64 processor 8555 lt_prog_compiler_static='-Bstatic' 8556 else 8557 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8558 fi 8559 ;; 8560 8561 mingw* | cygwin* | pw32* | os2* | cegcc*) 8562 # This hack is so that the source file can tell whether it is being 8563 # built for inclusion in a dll (and should export symbols for example). 8564 lt_prog_compiler_pic='-DDLL_EXPORT' 8565 ;; 8566 8567 hpux9* | hpux10* | hpux11*) 8568 lt_prog_compiler_wl='-Wl,' 8569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8570 # not for PA HP-UX. 8571 case $host_cpu in 8572 hppa*64*|ia64*) 8573 # +Z the default 8574 ;; 8575 *) 8576 lt_prog_compiler_pic='+Z' 8577 ;; 8578 esac 8579 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8580 lt_prog_compiler_static='${wl}-a ${wl}archive' 8581 ;; 8582 8583 irix5* | irix6* | nonstopux*) 8584 lt_prog_compiler_wl='-Wl,' 8585 # PIC (with -KPIC) is the default. 8586 lt_prog_compiler_static='-non_shared' 8587 ;; 8588 8589 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8590 case $cc_basename in 8591 # old Intel for x86_64 which still supported -KPIC. 8592 ecc*) 8593 lt_prog_compiler_wl='-Wl,' 8594 lt_prog_compiler_pic='-KPIC' 8595 lt_prog_compiler_static='-static' 8596 ;; 8597 # icc used to be incompatible with GCC. 8598 # ICC 10 doesn't accept -KPIC any more. 8599 icc* | ifort*) 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='-fPIC' 8602 lt_prog_compiler_static='-static' 8603 ;; 8604 # Lahey Fortran 8.1. 8605 lf95*) 8606 lt_prog_compiler_wl='-Wl,' 8607 lt_prog_compiler_pic='--shared' 8608 lt_prog_compiler_static='--static' 8609 ;; 8610 nagfor*) 8611 # NAG Fortran compiler 8612 lt_prog_compiler_wl='-Wl,-Wl,,' 8613 lt_prog_compiler_pic='-PIC' 8614 lt_prog_compiler_static='-Bstatic' 8615 ;; 8616 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8617 # Portland Group compilers (*not* the Pentium gcc compiler, 8618 # which looks to be a dead project) 8619 lt_prog_compiler_wl='-Wl,' 8620 lt_prog_compiler_pic='-fpic' 8621 lt_prog_compiler_static='-Bstatic' 8622 ;; 8623 ccc*) 8624 lt_prog_compiler_wl='-Wl,' 8625 # All Alpha code is PIC. 8626 lt_prog_compiler_static='-non_shared' 8627 ;; 8628 xl* | bgxl* | bgf* | mpixl*) 8629 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8630 lt_prog_compiler_wl='-Wl,' 8631 lt_prog_compiler_pic='-qpic' 8632 lt_prog_compiler_static='-qstaticlink' 8633 ;; 8634 *) 8635 case `$CC -V 2>&1 | sed 5q` in 8636 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8637 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8638 lt_prog_compiler_pic='-KPIC' 8639 lt_prog_compiler_static='-Bstatic' 8640 lt_prog_compiler_wl='' 8641 ;; 8642 *Sun\ F* | *Sun*Fortran*) 8643 lt_prog_compiler_pic='-KPIC' 8644 lt_prog_compiler_static='-Bstatic' 8645 lt_prog_compiler_wl='-Qoption ld ' 8646 ;; 8647 *Sun\ C*) 8648 # Sun C 5.9 8649 lt_prog_compiler_pic='-KPIC' 8650 lt_prog_compiler_static='-Bstatic' 8651 lt_prog_compiler_wl='-Wl,' 8652 ;; 8653 *Intel*\ [CF]*Compiler*) 8654 lt_prog_compiler_wl='-Wl,' 8655 lt_prog_compiler_pic='-fPIC' 8656 lt_prog_compiler_static='-static' 8657 ;; 8658 *Portland\ Group*) 8659 lt_prog_compiler_wl='-Wl,' 8660 lt_prog_compiler_pic='-fpic' 8661 lt_prog_compiler_static='-Bstatic' 8662 ;; 8663 esac 8664 ;; 8665 esac 8666 ;; 8667 8668 newsos6) 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 ;; 8672 8673 *nto* | *qnx*) 8674 # QNX uses GNU C++, but need to define -shared option too, otherwise 8675 # it will coredump. 8676 lt_prog_compiler_pic='-fPIC -shared' 8677 ;; 8678 8679 osf3* | osf4* | osf5*) 8680 lt_prog_compiler_wl='-Wl,' 8681 # All OSF/1 code is PIC. 8682 lt_prog_compiler_static='-non_shared' 8683 ;; 8684 8685 rdos*) 8686 lt_prog_compiler_static='-non_shared' 8687 ;; 8688 8689 solaris*) 8690 lt_prog_compiler_pic='-KPIC' 8691 lt_prog_compiler_static='-Bstatic' 8692 case $cc_basename in 8693 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8694 lt_prog_compiler_wl='-Qoption ld ';; 8695 *) 8696 lt_prog_compiler_wl='-Wl,';; 8697 esac 8698 ;; 8699 8700 sunos4*) 8701 lt_prog_compiler_wl='-Qoption ld ' 8702 lt_prog_compiler_pic='-PIC' 8703 lt_prog_compiler_static='-Bstatic' 8704 ;; 8705 8706 sysv4 | sysv4.2uw2* | sysv4.3*) 8707 lt_prog_compiler_wl='-Wl,' 8708 lt_prog_compiler_pic='-KPIC' 8709 lt_prog_compiler_static='-Bstatic' 8710 ;; 8711 8712 sysv4*MP*) 8713 if test -d /usr/nec ;then 8714 lt_prog_compiler_pic='-Kconform_pic' 8715 lt_prog_compiler_static='-Bstatic' 8716 fi 8717 ;; 8718 8719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8720 lt_prog_compiler_wl='-Wl,' 8721 lt_prog_compiler_pic='-KPIC' 8722 lt_prog_compiler_static='-Bstatic' 8723 ;; 8724 8725 unicos*) 8726 lt_prog_compiler_wl='-Wl,' 8727 lt_prog_compiler_can_build_shared=no 8728 ;; 8729 8730 uts4*) 8731 lt_prog_compiler_pic='-pic' 8732 lt_prog_compiler_static='-Bstatic' 8733 ;; 8734 8735 *) 8736 lt_prog_compiler_can_build_shared=no 8737 ;; 8738 esac 8739 fi 8740 8741case $host_os in 8742 # For platforms which do not support PIC, -DPIC is meaningless: 8743 *djgpp*) 8744 lt_prog_compiler_pic= 8745 ;; 8746 *) 8747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8748 ;; 8749esac 8750 8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8752$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8753if ${lt_cv_prog_compiler_pic+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755else 8756 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8757fi 8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8759$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8760lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8761 8762# 8763# Check to make sure the PIC flag actually works. 8764# 8765if test -n "$lt_prog_compiler_pic"; then 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8767$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8768if ${lt_cv_prog_compiler_pic_works+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 lt_cv_prog_compiler_pic_works=no 8772 ac_outfile=conftest.$ac_objext 8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8774 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8775 # Insert the option either (1) after the last *FLAGS variable, or 8776 # (2) before a word containing "conftest.", or (3) at the end. 8777 # Note that $ac_compile itself does not contain backslashes and begins 8778 # with a dollar sign (not a hyphen), so the echo should work correctly. 8779 # The option is referenced via a variable to avoid confusing sed. 8780 lt_compile=`echo "$ac_compile" | $SED \ 8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8783 -e 's:$: $lt_compiler_flag:'` 8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8785 (eval "$lt_compile" 2>conftest.err) 8786 ac_status=$? 8787 cat conftest.err >&5 8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8789 if (exit $ac_status) && test -s "$ac_outfile"; then 8790 # The compiler can only warn and ignore the option if not recognized 8791 # So say no if there are warnings other than the usual output. 8792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8795 lt_cv_prog_compiler_pic_works=yes 8796 fi 8797 fi 8798 $RM conftest* 8799 8800fi 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8802$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8803 8804if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8805 case $lt_prog_compiler_pic in 8806 "" | " "*) ;; 8807 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8808 esac 8809else 8810 lt_prog_compiler_pic= 8811 lt_prog_compiler_can_build_shared=no 8812fi 8813 8814fi 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826# 8827# Check to make sure the static flag actually works. 8828# 8829wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8831$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8832if ${lt_cv_prog_compiler_static_works+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 lt_cv_prog_compiler_static_works=no 8836 save_LDFLAGS="$LDFLAGS" 8837 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8838 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8840 # The linker can only warn and ignore the option if not recognized 8841 # So say no if there are warnings 8842 if test -s conftest.err; then 8843 # Append any errors to the config.log. 8844 cat conftest.err 1>&5 8845 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8847 if diff conftest.exp conftest.er2 >/dev/null; then 8848 lt_cv_prog_compiler_static_works=yes 8849 fi 8850 else 8851 lt_cv_prog_compiler_static_works=yes 8852 fi 8853 fi 8854 $RM -r conftest* 8855 LDFLAGS="$save_LDFLAGS" 8856 8857fi 8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8859$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8860 8861if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8862 : 8863else 8864 lt_prog_compiler_static= 8865fi 8866 8867 8868 8869 8870 8871 8872 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8875if ${lt_cv_prog_compiler_c_o+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 lt_cv_prog_compiler_c_o=no 8879 $RM -r conftest 2>/dev/null 8880 mkdir conftest 8881 cd conftest 8882 mkdir out 8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8884 8885 lt_compiler_flag="-o out/conftest2.$ac_objext" 8886 # Insert the option either (1) after the last *FLAGS variable, or 8887 # (2) before a word containing "conftest.", or (3) at the end. 8888 # Note that $ac_compile itself does not contain backslashes and begins 8889 # with a dollar sign (not a hyphen), so the echo should work correctly. 8890 lt_compile=`echo "$ac_compile" | $SED \ 8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8893 -e 's:$: $lt_compiler_flag:'` 8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8895 (eval "$lt_compile" 2>out/conftest.err) 8896 ac_status=$? 8897 cat out/conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8900 then 8901 # The compiler can only warn and ignore the option if not recognized 8902 # So say no if there are warnings 8903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8906 lt_cv_prog_compiler_c_o=yes 8907 fi 8908 fi 8909 chmod u+w . 2>&5 8910 $RM conftest* 8911 # SGI C++ compiler will create directory out/ii_files/ for 8912 # template instantiation 8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8914 $RM out/* && rmdir out 8915 cd .. 8916 $RM -r conftest 8917 $RM conftest* 8918 8919fi 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8921$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8922 8923 8924 8925 8926 8927 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8929$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8930if ${lt_cv_prog_compiler_c_o+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 lt_cv_prog_compiler_c_o=no 8934 $RM -r conftest 2>/dev/null 8935 mkdir conftest 8936 cd conftest 8937 mkdir out 8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8939 8940 lt_compiler_flag="-o out/conftest2.$ac_objext" 8941 # Insert the option either (1) after the last *FLAGS variable, or 8942 # (2) before a word containing "conftest.", or (3) at the end. 8943 # Note that $ac_compile itself does not contain backslashes and begins 8944 # with a dollar sign (not a hyphen), so the echo should work correctly. 8945 lt_compile=`echo "$ac_compile" | $SED \ 8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8948 -e 's:$: $lt_compiler_flag:'` 8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8950 (eval "$lt_compile" 2>out/conftest.err) 8951 ac_status=$? 8952 cat out/conftest.err >&5 8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8955 then 8956 # The compiler can only warn and ignore the option if not recognized 8957 # So say no if there are warnings 8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8961 lt_cv_prog_compiler_c_o=yes 8962 fi 8963 fi 8964 chmod u+w . 2>&5 8965 $RM conftest* 8966 # SGI C++ compiler will create directory out/ii_files/ for 8967 # template instantiation 8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8969 $RM out/* && rmdir out 8970 cd .. 8971 $RM -r conftest 8972 $RM conftest* 8973 8974fi 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8976$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8977 8978 8979 8980 8981hard_links="nottested" 8982if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8983 # do not overwrite the value of need_locks provided by the user 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8985$as_echo_n "checking if we can lock with hard links... " >&6; } 8986 hard_links=yes 8987 $RM conftest* 8988 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8989 touch conftest.a 8990 ln conftest.a conftest.b 2>&5 || hard_links=no 8991 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8993$as_echo "$hard_links" >&6; } 8994 if test "$hard_links" = no; then 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8996$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8997 need_locks=warn 8998 fi 8999else 9000 need_locks=no 9001fi 9002 9003 9004 9005 9006 9007 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9009$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9010 9011 runpath_var= 9012 allow_undefined_flag= 9013 always_export_symbols=no 9014 archive_cmds= 9015 archive_expsym_cmds= 9016 compiler_needs_object=no 9017 enable_shared_with_static_runtimes=no 9018 export_dynamic_flag_spec= 9019 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9020 hardcode_automatic=no 9021 hardcode_direct=no 9022 hardcode_direct_absolute=no 9023 hardcode_libdir_flag_spec= 9024 hardcode_libdir_separator= 9025 hardcode_minus_L=no 9026 hardcode_shlibpath_var=unsupported 9027 inherit_rpath=no 9028 link_all_deplibs=unknown 9029 module_cmds= 9030 module_expsym_cmds= 9031 old_archive_from_new_cmds= 9032 old_archive_from_expsyms_cmds= 9033 thread_safe_flag_spec= 9034 whole_archive_flag_spec= 9035 # include_expsyms should be a list of space-separated symbols to be *always* 9036 # included in the symbol list 9037 include_expsyms= 9038 # exclude_expsyms can be an extended regexp of symbols to exclude 9039 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9041 # as well as any symbol that contains `d'. 9042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9044 # platforms (ab)use it in PIC code, but their linkers get confused if 9045 # the symbol is explicitly referenced. Since portable code cannot 9046 # rely on this symbol name, it's probably fine to never include it in 9047 # preloaded symbol tables. 9048 # Exclude shared library initialization/finalization symbols. 9049 extract_expsyms_cmds= 9050 9051 case $host_os in 9052 cygwin* | mingw* | pw32* | cegcc*) 9053 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9054 # When not using gcc, we currently assume that we are using 9055 # Microsoft Visual C++. 9056 if test "$GCC" != yes; then 9057 with_gnu_ld=no 9058 fi 9059 ;; 9060 interix*) 9061 # we just hope/assume this is gcc and not c89 (= MSVC++) 9062 with_gnu_ld=yes 9063 ;; 9064 openbsd*) 9065 with_gnu_ld=no 9066 ;; 9067 esac 9068 9069 ld_shlibs=yes 9070 9071 # On some targets, GNU ld is compatible enough with the native linker 9072 # that we're better off using the native interface for both. 9073 lt_use_gnu_ld_interface=no 9074 if test "$with_gnu_ld" = yes; then 9075 case $host_os in 9076 aix*) 9077 # The AIX port of GNU ld has always aspired to compatibility 9078 # with the native linker. However, as the warning in the GNU ld 9079 # block says, versions before 2.19.5* couldn't really create working 9080 # shared libraries, regardless of the interface used. 9081 case `$LD -v 2>&1` in 9082 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9083 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9084 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9085 *) 9086 lt_use_gnu_ld_interface=yes 9087 ;; 9088 esac 9089 ;; 9090 *) 9091 lt_use_gnu_ld_interface=yes 9092 ;; 9093 esac 9094 fi 9095 9096 if test "$lt_use_gnu_ld_interface" = yes; then 9097 # If archive_cmds runs LD, not CC, wlarc should be empty 9098 wlarc='${wl}' 9099 9100 # Set some defaults for GNU ld with shared library support. These 9101 # are reset later if shared libraries are not supported. Putting them 9102 # here allows them to be overridden if necessary. 9103 runpath_var=LD_RUN_PATH 9104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9105 export_dynamic_flag_spec='${wl}--export-dynamic' 9106 # ancient GNU ld didn't support --whole-archive et. al. 9107 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9109 else 9110 whole_archive_flag_spec= 9111 fi 9112 supports_anon_versioning=no 9113 case `$LD -v 2>&1` in 9114 *GNU\ gold*) supports_anon_versioning=yes ;; 9115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9118 *\ 2.11.*) ;; # other 2.11 versions 9119 *) supports_anon_versioning=yes ;; 9120 esac 9121 9122 # See if GNU ld supports shared libraries. 9123 case $host_os in 9124 aix[3-9]*) 9125 # On AIX/PPC, the GNU linker is very broken 9126 if test "$host_cpu" != ia64; then 9127 ld_shlibs=no 9128 cat <<_LT_EOF 1>&2 9129 9130*** Warning: the GNU linker, at least up to release 2.19, is reported 9131*** to be unable to reliably create shared libraries on AIX. 9132*** Therefore, libtool is disabling shared libraries support. If you 9133*** really care for shared libraries, you may want to install binutils 9134*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9135*** You will then need to restart the configuration process. 9136 9137_LT_EOF 9138 fi 9139 ;; 9140 9141 amigaos*) 9142 case $host_cpu in 9143 powerpc) 9144 # see comment about AmigaOS4 .so support 9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9146 archive_expsym_cmds='' 9147 ;; 9148 m68k) 9149 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)' 9150 hardcode_libdir_flag_spec='-L$libdir' 9151 hardcode_minus_L=yes 9152 ;; 9153 esac 9154 ;; 9155 9156 beos*) 9157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9158 allow_undefined_flag=unsupported 9159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9160 # support --undefined. This deserves some investigation. FIXME 9161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9162 else 9163 ld_shlibs=no 9164 fi 9165 ;; 9166 9167 cygwin* | mingw* | pw32* | cegcc*) 9168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9169 # as there is no search path for DLLs. 9170 hardcode_libdir_flag_spec='-L$libdir' 9171 export_dynamic_flag_spec='${wl}--export-all-symbols' 9172 allow_undefined_flag=unsupported 9173 always_export_symbols=no 9174 enable_shared_with_static_runtimes=yes 9175 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' 9176 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9177 9178 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9180 # If the export-symbols file already is a .def file (1st line 9181 # is EXPORTS), use it as is; otherwise, prepend... 9182 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9183 cp $export_symbols $output_objdir/$soname.def; 9184 else 9185 echo EXPORTS > $output_objdir/$soname.def; 9186 cat $export_symbols >> $output_objdir/$soname.def; 9187 fi~ 9188 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9189 else 9190 ld_shlibs=no 9191 fi 9192 ;; 9193 9194 haiku*) 9195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9196 link_all_deplibs=yes 9197 ;; 9198 9199 interix[3-9]*) 9200 hardcode_direct=no 9201 hardcode_shlibpath_var=no 9202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9203 export_dynamic_flag_spec='${wl}-E' 9204 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9205 # Instead, shared libraries are loaded at an image base (0x10000000 by 9206 # default) and relocated if they conflict, which is a slow very memory 9207 # consuming and fragmenting process. To avoid this, we pick a random, 9208 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9209 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9211 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' 9212 ;; 9213 9214 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9215 tmp_diet=no 9216 if test "$host_os" = linux-dietlibc; then 9217 case $cc_basename in 9218 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9219 esac 9220 fi 9221 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9222 && test "$tmp_diet" = no 9223 then 9224 tmp_addflag=' $pic_flag' 9225 tmp_sharedflag='-shared' 9226 case $cc_basename,$host_cpu in 9227 pgcc*) # Portland Group C compiler 9228 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' 9229 tmp_addflag=' $pic_flag' 9230 ;; 9231 pgf77* | pgf90* | pgf95* | pgfortran*) 9232 # Portland Group f77 and f90 compilers 9233 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' 9234 tmp_addflag=' $pic_flag -Mnomain' ;; 9235 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9236 tmp_addflag=' -i_dynamic' ;; 9237 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9238 tmp_addflag=' -i_dynamic -nofor_main' ;; 9239 ifc* | ifort*) # Intel Fortran compiler 9240 tmp_addflag=' -nofor_main' ;; 9241 lf95*) # Lahey Fortran 8.1 9242 whole_archive_flag_spec= 9243 tmp_sharedflag='--shared' ;; 9244 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9245 tmp_sharedflag='-qmkshrobj' 9246 tmp_addflag= ;; 9247 nvcc*) # Cuda Compiler Driver 2.2 9248 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' 9249 compiler_needs_object=yes 9250 ;; 9251 esac 9252 case `$CC -V 2>&1 | sed 5q` in 9253 *Sun\ C*) # Sun C 5.9 9254 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' 9255 compiler_needs_object=yes 9256 tmp_sharedflag='-G' ;; 9257 *Sun\ F*) # Sun Fortran 8.3 9258 tmp_sharedflag='-G' ;; 9259 esac 9260 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9261 9262 if test "x$supports_anon_versioning" = xyes; then 9263 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9265 echo "local: *; };" >> $output_objdir/$libname.ver~ 9266 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9267 fi 9268 9269 case $cc_basename in 9270 xlf* | bgf* | bgxlf* | mpixlf*) 9271 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9272 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9274 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9275 if test "x$supports_anon_versioning" = xyes; then 9276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9278 echo "local: *; };" >> $output_objdir/$libname.ver~ 9279 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9280 fi 9281 ;; 9282 esac 9283 else 9284 ld_shlibs=no 9285 fi 9286 ;; 9287 9288 netbsd*) 9289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9291 wlarc= 9292 else 9293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9294 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9295 fi 9296 ;; 9297 9298 solaris*) 9299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9300 ld_shlibs=no 9301 cat <<_LT_EOF 1>&2 9302 9303*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9304*** create shared libraries on Solaris systems. Therefore, libtool 9305*** is disabling shared libraries support. We urge you to upgrade GNU 9306*** binutils to release 2.9.1 or newer. Another option is to modify 9307*** your PATH or compiler configuration so that the native linker is 9308*** used, and then restart. 9309 9310_LT_EOF 9311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9312 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9313 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9314 else 9315 ld_shlibs=no 9316 fi 9317 ;; 9318 9319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9320 case `$LD -v 2>&1` in 9321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9322 ld_shlibs=no 9323 cat <<_LT_EOF 1>&2 9324 9325*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9326*** reliably create shared libraries on SCO systems. Therefore, libtool 9327*** is disabling shared libraries support. We urge you to upgrade GNU 9328*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9329*** your PATH or compiler configuration so that the native linker is 9330*** used, and then restart. 9331 9332_LT_EOF 9333 ;; 9334 *) 9335 # For security reasons, it is highly recommended that you always 9336 # use absolute paths for naming shared libraries, and exclude the 9337 # DT_RUNPATH tag from executables and libraries. But doing so 9338 # requires that you compile everything twice, which is a pain. 9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9343 else 9344 ld_shlibs=no 9345 fi 9346 ;; 9347 esac 9348 ;; 9349 9350 sunos4*) 9351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9352 wlarc= 9353 hardcode_direct=yes 9354 hardcode_shlibpath_var=no 9355 ;; 9356 9357 *) 9358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9359 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9360 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9361 else 9362 ld_shlibs=no 9363 fi 9364 ;; 9365 esac 9366 9367 if test "$ld_shlibs" = no; then 9368 runpath_var= 9369 hardcode_libdir_flag_spec= 9370 export_dynamic_flag_spec= 9371 whole_archive_flag_spec= 9372 fi 9373 else 9374 # PORTME fill in a description of your system's linker (not GNU ld) 9375 case $host_os in 9376 aix3*) 9377 allow_undefined_flag=unsupported 9378 always_export_symbols=yes 9379 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' 9380 # Note: this linker hardcodes the directories in LIBPATH if there 9381 # are no directories specified by -L. 9382 hardcode_minus_L=yes 9383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9384 # Neither direct hardcoding nor static linking is supported with a 9385 # broken collect2. 9386 hardcode_direct=unsupported 9387 fi 9388 ;; 9389 9390 aix[4-9]*) 9391 if test "$host_cpu" = ia64; then 9392 # On IA64, the linker does run time linking by default, so we don't 9393 # have to do anything special. 9394 aix_use_runtimelinking=no 9395 exp_sym_flag='-Bexport' 9396 no_entry_flag="" 9397 else 9398 # If we're using GNU nm, then we don't want the "-C" option. 9399 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9400 # Also, AIX nm treats weak defined symbols like other global 9401 # defined symbols, whereas GNU nm marks them as "W". 9402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9403 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9404 else 9405 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9406 fi 9407 aix_use_runtimelinking=no 9408 9409 # Test if we are trying to use run time linking or normal 9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9411 # need to do runtime linking. 9412 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9413 for ld_flag in $LDFLAGS; do 9414 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9415 aix_use_runtimelinking=yes 9416 break 9417 fi 9418 done 9419 ;; 9420 esac 9421 9422 exp_sym_flag='-bexport' 9423 no_entry_flag='-bnoentry' 9424 fi 9425 9426 # When large executables or shared objects are built, AIX ld can 9427 # have problems creating the table of contents. If linking a library 9428 # or program results in "error TOC overflow" add -mminimal-toc to 9429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9431 9432 archive_cmds='' 9433 hardcode_direct=yes 9434 hardcode_direct_absolute=yes 9435 hardcode_libdir_separator=':' 9436 link_all_deplibs=yes 9437 file_list_spec='${wl}-f,' 9438 9439 if test "$GCC" = yes; then 9440 case $host_os in aix4.[012]|aix4.[012].*) 9441 # We only want to do this on AIX 4.2 and lower, the check 9442 # below for broken collect2 doesn't work under 4.3+ 9443 collect2name=`${CC} -print-prog-name=collect2` 9444 if test -f "$collect2name" && 9445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9446 then 9447 # We have reworked collect2 9448 : 9449 else 9450 # We have old collect2 9451 hardcode_direct=unsupported 9452 # It fails to find uninstalled libraries when the uninstalled 9453 # path is not listed in the libpath. Setting hardcode_minus_L 9454 # to unsupported forces relinking 9455 hardcode_minus_L=yes 9456 hardcode_libdir_flag_spec='-L$libdir' 9457 hardcode_libdir_separator= 9458 fi 9459 ;; 9460 esac 9461 shared_flag='-shared' 9462 if test "$aix_use_runtimelinking" = yes; then 9463 shared_flag="$shared_flag "'${wl}-G' 9464 fi 9465 else 9466 # not using gcc 9467 if test "$host_cpu" = ia64; then 9468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9469 # chokes on -Wl,-G. The following line is correct: 9470 shared_flag='-G' 9471 else 9472 if test "$aix_use_runtimelinking" = yes; then 9473 shared_flag='${wl}-G' 9474 else 9475 shared_flag='${wl}-bM:SRE' 9476 fi 9477 fi 9478 fi 9479 9480 export_dynamic_flag_spec='${wl}-bexpall' 9481 # It seems that -bexpall does not export symbols beginning with 9482 # underscore (_), so it is better to generate a list of symbols to export. 9483 always_export_symbols=yes 9484 if test "$aix_use_runtimelinking" = yes; then 9485 # Warning - without using the other runtime loading flags (-brtl), 9486 # -berok will link without error, but may produce a broken library. 9487 allow_undefined_flag='-berok' 9488 # Determine the default libpath from the value encoded in an 9489 # empty executable. 9490 if test "${lt_cv_aix_libpath+set}" = set; then 9491 aix_libpath=$lt_cv_aix_libpath 9492else 9493 if ${lt_cv_aix_libpath_+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498 9499int 9500main () 9501{ 9502 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507if ac_fn_c_try_link "$LINENO"; then : 9508 9509 lt_aix_libpath_sed=' 9510 /Import File Strings/,/^$/ { 9511 /^0/ { 9512 s/^0 *\([^ ]*\) *$/\1/ 9513 p 9514 } 9515 }' 9516 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9517 # Check for a 64-bit object if we didn't find anything. 9518 if test -z "$lt_cv_aix_libpath_"; then 9519 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9520 fi 9521fi 9522rm -f core conftest.err conftest.$ac_objext \ 9523 conftest$ac_exeext conftest.$ac_ext 9524 if test -z "$lt_cv_aix_libpath_"; then 9525 lt_cv_aix_libpath_="/usr/lib:/lib" 9526 fi 9527 9528fi 9529 9530 aix_libpath=$lt_cv_aix_libpath_ 9531fi 9532 9533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9534 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9535 else 9536 if test "$host_cpu" = ia64; then 9537 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9538 allow_undefined_flag="-z nodefs" 9539 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" 9540 else 9541 # Determine the default libpath from the value encoded in an 9542 # empty executable. 9543 if test "${lt_cv_aix_libpath+set}" = set; then 9544 aix_libpath=$lt_cv_aix_libpath 9545else 9546 if ${lt_cv_aix_libpath_+:} false; then : 9547 $as_echo_n "(cached) " >&6 9548else 9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9550/* end confdefs.h. */ 9551 9552int 9553main () 9554{ 9555 9556 ; 9557 return 0; 9558} 9559_ACEOF 9560if ac_fn_c_try_link "$LINENO"; then : 9561 9562 lt_aix_libpath_sed=' 9563 /Import File Strings/,/^$/ { 9564 /^0/ { 9565 s/^0 *\([^ ]*\) *$/\1/ 9566 p 9567 } 9568 }' 9569 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9570 # Check for a 64-bit object if we didn't find anything. 9571 if test -z "$lt_cv_aix_libpath_"; then 9572 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9573 fi 9574fi 9575rm -f core conftest.err conftest.$ac_objext \ 9576 conftest$ac_exeext conftest.$ac_ext 9577 if test -z "$lt_cv_aix_libpath_"; then 9578 lt_cv_aix_libpath_="/usr/lib:/lib" 9579 fi 9580 9581fi 9582 9583 aix_libpath=$lt_cv_aix_libpath_ 9584fi 9585 9586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9587 # Warning - without using the other run time loading flags, 9588 # -berok will link without error, but may produce a broken library. 9589 no_undefined_flag=' ${wl}-bernotok' 9590 allow_undefined_flag=' ${wl}-berok' 9591 if test "$with_gnu_ld" = yes; then 9592 # We only use this code for GNU lds that support --whole-archive. 9593 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9594 else 9595 # Exported symbols can be pulled into shared objects from archives 9596 whole_archive_flag_spec='$convenience' 9597 fi 9598 archive_cmds_need_lc=yes 9599 # This is similar to how AIX traditionally builds its shared libraries. 9600 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9601 fi 9602 fi 9603 ;; 9604 9605 amigaos*) 9606 case $host_cpu in 9607 powerpc) 9608 # see comment about AmigaOS4 .so support 9609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9610 archive_expsym_cmds='' 9611 ;; 9612 m68k) 9613 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)' 9614 hardcode_libdir_flag_spec='-L$libdir' 9615 hardcode_minus_L=yes 9616 ;; 9617 esac 9618 ;; 9619 9620 bsdi[45]*) 9621 export_dynamic_flag_spec=-rdynamic 9622 ;; 9623 9624 cygwin* | mingw* | pw32* | cegcc*) 9625 # When not using gcc, we currently assume that we are using 9626 # Microsoft Visual C++. 9627 # hardcode_libdir_flag_spec is actually meaningless, as there is 9628 # no search path for DLLs. 9629 case $cc_basename in 9630 cl*) 9631 # Native MSVC 9632 hardcode_libdir_flag_spec=' ' 9633 allow_undefined_flag=unsupported 9634 always_export_symbols=yes 9635 file_list_spec='@' 9636 # Tell ltmain to make .lib files, not .a files. 9637 libext=lib 9638 # Tell ltmain to make .dll files, not .so files. 9639 shrext_cmds=".dll" 9640 # FIXME: Setting linknames here is a bad hack. 9641 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9642 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9643 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9644 else 9645 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9646 fi~ 9647 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9648 linknames=' 9649 # The linker will not automatically build a static lib if we build a DLL. 9650 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9651 enable_shared_with_static_runtimes=yes 9652 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9654 # Don't use ranlib 9655 old_postinstall_cmds='chmod 644 $oldlib' 9656 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9657 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9658 case $lt_outputfile in 9659 *.exe|*.EXE) ;; 9660 *) 9661 lt_outputfile="$lt_outputfile.exe" 9662 lt_tool_outputfile="$lt_tool_outputfile.exe" 9663 ;; 9664 esac~ 9665 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9666 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9667 $RM "$lt_outputfile.manifest"; 9668 fi' 9669 ;; 9670 *) 9671 # Assume MSVC wrapper 9672 hardcode_libdir_flag_spec=' ' 9673 allow_undefined_flag=unsupported 9674 # Tell ltmain to make .lib files, not .a files. 9675 libext=lib 9676 # Tell ltmain to make .dll files, not .so files. 9677 shrext_cmds=".dll" 9678 # FIXME: Setting linknames here is a bad hack. 9679 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9680 # The linker will automatically build a .lib file if we build a DLL. 9681 old_archive_from_new_cmds='true' 9682 # FIXME: Should let the user specify the lib program. 9683 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9684 enable_shared_with_static_runtimes=yes 9685 ;; 9686 esac 9687 ;; 9688 9689 darwin* | rhapsody*) 9690 9691 9692 archive_cmds_need_lc=no 9693 hardcode_direct=no 9694 hardcode_automatic=yes 9695 hardcode_shlibpath_var=unsupported 9696 if test "$lt_cv_ld_force_load" = "yes"; then 9697 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\"`' 9698 9699 else 9700 whole_archive_flag_spec='' 9701 fi 9702 link_all_deplibs=yes 9703 allow_undefined_flag="$_lt_dar_allow_undefined" 9704 case $cc_basename in 9705 ifort*) _lt_dar_can_shared=yes ;; 9706 *) _lt_dar_can_shared=$GCC ;; 9707 esac 9708 if test "$_lt_dar_can_shared" = "yes"; then 9709 output_verbose_link_cmd=func_echo_all 9710 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9711 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9712 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}" 9713 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}" 9714 9715 else 9716 ld_shlibs=no 9717 fi 9718 9719 ;; 9720 9721 dgux*) 9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9723 hardcode_libdir_flag_spec='-L$libdir' 9724 hardcode_shlibpath_var=no 9725 ;; 9726 9727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9728 # support. Future versions do this automatically, but an explicit c++rt0.o 9729 # does not break anything, and helps significantly (at the cost of a little 9730 # extra space). 9731 freebsd2.2*) 9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9733 hardcode_libdir_flag_spec='-R$libdir' 9734 hardcode_direct=yes 9735 hardcode_shlibpath_var=no 9736 ;; 9737 9738 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9739 freebsd2.*) 9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_direct=yes 9742 hardcode_minus_L=yes 9743 hardcode_shlibpath_var=no 9744 ;; 9745 9746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9747 freebsd* | dragonfly*) 9748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9749 hardcode_libdir_flag_spec='-R$libdir' 9750 hardcode_direct=yes 9751 hardcode_shlibpath_var=no 9752 ;; 9753 9754 hpux9*) 9755 if test "$GCC" = yes; then 9756 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9757 else 9758 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9759 fi 9760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9761 hardcode_libdir_separator=: 9762 hardcode_direct=yes 9763 9764 # hardcode_minus_L: Not really in the search PATH, 9765 # but as the default location of the library. 9766 hardcode_minus_L=yes 9767 export_dynamic_flag_spec='${wl}-E' 9768 ;; 9769 9770 hpux10*) 9771 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9772 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9773 else 9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9775 fi 9776 if test "$with_gnu_ld" = no; then 9777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9778 hardcode_libdir_separator=: 9779 hardcode_direct=yes 9780 hardcode_direct_absolute=yes 9781 export_dynamic_flag_spec='${wl}-E' 9782 # hardcode_minus_L: Not really in the search PATH, 9783 # but as the default location of the library. 9784 hardcode_minus_L=yes 9785 fi 9786 ;; 9787 9788 hpux11*) 9789 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9790 case $host_cpu in 9791 hppa*64*) 9792 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9793 ;; 9794 ia64*) 9795 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9796 ;; 9797 *) 9798 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9799 ;; 9800 esac 9801 else 9802 case $host_cpu in 9803 hppa*64*) 9804 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9805 ;; 9806 ia64*) 9807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9808 ;; 9809 *) 9810 9811 # Older versions of the 11.00 compiler do not understand -b yet 9812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9814$as_echo_n "checking if $CC understands -b... " >&6; } 9815if ${lt_cv_prog_compiler__b+:} false; then : 9816 $as_echo_n "(cached) " >&6 9817else 9818 lt_cv_prog_compiler__b=no 9819 save_LDFLAGS="$LDFLAGS" 9820 LDFLAGS="$LDFLAGS -b" 9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9823 # The linker can only warn and ignore the option if not recognized 9824 # So say no if there are warnings 9825 if test -s conftest.err; then 9826 # Append any errors to the config.log. 9827 cat conftest.err 1>&5 9828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9830 if diff conftest.exp conftest.er2 >/dev/null; then 9831 lt_cv_prog_compiler__b=yes 9832 fi 9833 else 9834 lt_cv_prog_compiler__b=yes 9835 fi 9836 fi 9837 $RM -r conftest* 9838 LDFLAGS="$save_LDFLAGS" 9839 9840fi 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9842$as_echo "$lt_cv_prog_compiler__b" >&6; } 9843 9844if test x"$lt_cv_prog_compiler__b" = xyes; then 9845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9846else 9847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9848fi 9849 9850 ;; 9851 esac 9852 fi 9853 if test "$with_gnu_ld" = no; then 9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9855 hardcode_libdir_separator=: 9856 9857 case $host_cpu in 9858 hppa*64*|ia64*) 9859 hardcode_direct=no 9860 hardcode_shlibpath_var=no 9861 ;; 9862 *) 9863 hardcode_direct=yes 9864 hardcode_direct_absolute=yes 9865 export_dynamic_flag_spec='${wl}-E' 9866 9867 # hardcode_minus_L: Not really in the search PATH, 9868 # but as the default location of the library. 9869 hardcode_minus_L=yes 9870 ;; 9871 esac 9872 fi 9873 ;; 9874 9875 irix5* | irix6* | nonstopux*) 9876 if test "$GCC" = yes; then 9877 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' 9878 # Try to use the -exported_symbol ld option, if it does not 9879 # work, assume that -exports_file does not work either and 9880 # implicitly export all symbols. 9881 # This should be the same for all languages, so no per-tag cache variable. 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9883$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9884if ${lt_cv_irix_exported_symbol+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886else 9887 save_LDFLAGS="$LDFLAGS" 9888 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890/* end confdefs.h. */ 9891int foo (void) { return 0; } 9892_ACEOF 9893if ac_fn_c_try_link "$LINENO"; then : 9894 lt_cv_irix_exported_symbol=yes 9895else 9896 lt_cv_irix_exported_symbol=no 9897fi 9898rm -f core conftest.err conftest.$ac_objext \ 9899 conftest$ac_exeext conftest.$ac_ext 9900 LDFLAGS="$save_LDFLAGS" 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9903$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9904 if test "$lt_cv_irix_exported_symbol" = yes; then 9905 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' 9906 fi 9907 else 9908 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' 9909 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' 9910 fi 9911 archive_cmds_need_lc='no' 9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9913 hardcode_libdir_separator=: 9914 inherit_rpath=yes 9915 link_all_deplibs=yes 9916 ;; 9917 9918 netbsd*) 9919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9921 else 9922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9923 fi 9924 hardcode_libdir_flag_spec='-R$libdir' 9925 hardcode_direct=yes 9926 hardcode_shlibpath_var=no 9927 ;; 9928 9929 newsos6) 9930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9931 hardcode_direct=yes 9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9933 hardcode_libdir_separator=: 9934 hardcode_shlibpath_var=no 9935 ;; 9936 9937 *nto* | *qnx*) 9938 ;; 9939 9940 openbsd*) 9941 if test -f /usr/libexec/ld.so; then 9942 hardcode_direct=yes 9943 hardcode_shlibpath_var=no 9944 hardcode_direct_absolute=yes 9945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9947 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9949 export_dynamic_flag_spec='${wl}-E' 9950 else 9951 case $host_os in 9952 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9954 hardcode_libdir_flag_spec='-R$libdir' 9955 ;; 9956 *) 9957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9959 ;; 9960 esac 9961 fi 9962 else 9963 ld_shlibs=no 9964 fi 9965 ;; 9966 9967 os2*) 9968 hardcode_libdir_flag_spec='-L$libdir' 9969 hardcode_minus_L=yes 9970 allow_undefined_flag=unsupported 9971 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9972 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9973 ;; 9974 9975 osf3*) 9976 if test "$GCC" = yes; then 9977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9978 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' 9979 else 9980 allow_undefined_flag=' -expect_unresolved \*' 9981 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' 9982 fi 9983 archive_cmds_need_lc='no' 9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9985 hardcode_libdir_separator=: 9986 ;; 9987 9988 osf4* | osf5*) # as osf3* with the addition of -msym flag 9989 if test "$GCC" = yes; then 9990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9991 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' 9992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9993 else 9994 allow_undefined_flag=' -expect_unresolved \*' 9995 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' 9996 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~ 9997 $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' 9998 9999 # Both c and cxx compiler support -rpath directly 10000 hardcode_libdir_flag_spec='-rpath $libdir' 10001 fi 10002 archive_cmds_need_lc='no' 10003 hardcode_libdir_separator=: 10004 ;; 10005 10006 solaris*) 10007 no_undefined_flag=' -z defs' 10008 if test "$GCC" = yes; then 10009 wlarc='${wl}' 10010 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10012 $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' 10013 else 10014 case `$CC -V 2>&1` in 10015 *"Compilers 5.0"*) 10016 wlarc='' 10017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10018 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10020 ;; 10021 *) 10022 wlarc='${wl}' 10023 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10024 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10025 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10026 ;; 10027 esac 10028 fi 10029 hardcode_libdir_flag_spec='-R$libdir' 10030 hardcode_shlibpath_var=no 10031 case $host_os in 10032 solaris2.[0-5] | solaris2.[0-5].*) ;; 10033 *) 10034 # The compiler driver will combine and reorder linker options, 10035 # but understands `-z linker_flag'. GCC discards it without `$wl', 10036 # but is careful enough not to reorder. 10037 # Supported since Solaris 2.6 (maybe 2.5.1?) 10038 if test "$GCC" = yes; then 10039 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10040 else 10041 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10042 fi 10043 ;; 10044 esac 10045 link_all_deplibs=yes 10046 ;; 10047 10048 sunos4*) 10049 if test "x$host_vendor" = xsequent; then 10050 # Use $CC to link under sequent, because it throws in some extra .o 10051 # files that make .init and .fini sections work. 10052 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10053 else 10054 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10055 fi 10056 hardcode_libdir_flag_spec='-L$libdir' 10057 hardcode_direct=yes 10058 hardcode_minus_L=yes 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 sysv4) 10063 case $host_vendor in 10064 sni) 10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10066 hardcode_direct=yes # is this really true??? 10067 ;; 10068 siemens) 10069 ## LD is ld it makes a PLAMLIB 10070 ## CC just makes a GrossModule. 10071 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10072 reload_cmds='$CC -r -o $output$reload_objs' 10073 hardcode_direct=no 10074 ;; 10075 motorola) 10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10077 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10078 ;; 10079 esac 10080 runpath_var='LD_RUN_PATH' 10081 hardcode_shlibpath_var=no 10082 ;; 10083 10084 sysv4.3*) 10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10086 hardcode_shlibpath_var=no 10087 export_dynamic_flag_spec='-Bexport' 10088 ;; 10089 10090 sysv4*MP*) 10091 if test -d /usr/nec; then 10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10093 hardcode_shlibpath_var=no 10094 runpath_var=LD_RUN_PATH 10095 hardcode_runpath_var=yes 10096 ld_shlibs=yes 10097 fi 10098 ;; 10099 10100 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10101 no_undefined_flag='${wl}-z,text' 10102 archive_cmds_need_lc=no 10103 hardcode_shlibpath_var=no 10104 runpath_var='LD_RUN_PATH' 10105 10106 if test "$GCC" = yes; then 10107 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10108 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10109 else 10110 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10111 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10112 fi 10113 ;; 10114 10115 sysv5* | sco3.2v5* | sco5v6*) 10116 # Note: We can NOT use -z defs as we might desire, because we do not 10117 # link with -lc, and that would cause any symbols used from libc to 10118 # always be unresolved, which means just about no library would 10119 # ever link correctly. If we're not using GNU ld we use -z text 10120 # though, which does catch some bad symbols but isn't as heavy-handed 10121 # as -z defs. 10122 no_undefined_flag='${wl}-z,text' 10123 allow_undefined_flag='${wl}-z,nodefs' 10124 archive_cmds_need_lc=no 10125 hardcode_shlibpath_var=no 10126 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10127 hardcode_libdir_separator=':' 10128 link_all_deplibs=yes 10129 export_dynamic_flag_spec='${wl}-Bexport' 10130 runpath_var='LD_RUN_PATH' 10131 10132 if test "$GCC" = yes; then 10133 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10134 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10135 else 10136 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10137 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10138 fi 10139 ;; 10140 10141 uts4*) 10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10143 hardcode_libdir_flag_spec='-L$libdir' 10144 hardcode_shlibpath_var=no 10145 ;; 10146 10147 *) 10148 ld_shlibs=no 10149 ;; 10150 esac 10151 10152 if test x$host_vendor = xsni; then 10153 case $host in 10154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10155 export_dynamic_flag_spec='${wl}-Blargedynsym' 10156 ;; 10157 esac 10158 fi 10159 fi 10160 10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10162$as_echo "$ld_shlibs" >&6; } 10163test "$ld_shlibs" = no && can_build_shared=no 10164 10165with_gnu_ld=$with_gnu_ld 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181# 10182# Do we need to explicitly link libc? 10183# 10184case "x$archive_cmds_need_lc" in 10185x|xyes) 10186 # Assume -lc should be added 10187 archive_cmds_need_lc=yes 10188 10189 if test "$enable_shared" = yes && test "$GCC" = yes; then 10190 case $archive_cmds in 10191 *'~'*) 10192 # FIXME: we may have to deal with multi-command sequences. 10193 ;; 10194 '$CC '*) 10195 # Test whether the compiler implicitly links with -lc since on some 10196 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10197 # to ld, don't add -lc before -lgcc. 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10199$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10200if ${lt_cv_archive_cmds_need_lc+:} false; then : 10201 $as_echo_n "(cached) " >&6 10202else 10203 $RM conftest* 10204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10205 10206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10207 (eval $ac_compile) 2>&5 10208 ac_status=$? 10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10210 test $ac_status = 0; } 2>conftest.err; then 10211 soname=conftest 10212 lib=conftest 10213 libobjs=conftest.$ac_objext 10214 deplibs= 10215 wl=$lt_prog_compiler_wl 10216 pic_flag=$lt_prog_compiler_pic 10217 compiler_flags=-v 10218 linker_flags=-v 10219 verstring= 10220 output_objdir=. 10221 libname=conftest 10222 lt_save_allow_undefined_flag=$allow_undefined_flag 10223 allow_undefined_flag= 10224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10225 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10226 ac_status=$? 10227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10228 test $ac_status = 0; } 10229 then 10230 lt_cv_archive_cmds_need_lc=no 10231 else 10232 lt_cv_archive_cmds_need_lc=yes 10233 fi 10234 allow_undefined_flag=$lt_save_allow_undefined_flag 10235 else 10236 cat conftest.err 1>&5 10237 fi 10238 $RM conftest* 10239 10240fi 10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10242$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10243 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10244 ;; 10245 esac 10246 fi 10247 ;; 10248esac 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10402$as_echo_n "checking dynamic linker characteristics... " >&6; } 10403 10404if test "$GCC" = yes; then 10405 case $host_os in 10406 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10407 *) lt_awk_arg="/^libraries:/" ;; 10408 esac 10409 case $host_os in 10410 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10411 *) lt_sed_strip_eq="s,=/,/,g" ;; 10412 esac 10413 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10414 case $lt_search_path_spec in 10415 *\;*) 10416 # if the path contains ";" then we assume it to be the separator 10417 # otherwise default to the standard path separator (i.e. ":") - it is 10418 # assumed that no part of a normal pathname contains ";" but that should 10419 # okay in the real world where ";" in dirpaths is itself problematic. 10420 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10421 ;; 10422 *) 10423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10424 ;; 10425 esac 10426 # Ok, now we have the path, separated by spaces, we can step through it 10427 # and add multilib dir if necessary. 10428 lt_tmp_lt_search_path_spec= 10429 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10430 for lt_sys_path in $lt_search_path_spec; do 10431 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10433 else 10434 test -d "$lt_sys_path" && \ 10435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10436 fi 10437 done 10438 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10439BEGIN {RS=" "; FS="/|\n";} { 10440 lt_foo=""; 10441 lt_count=0; 10442 for (lt_i = NF; lt_i > 0; lt_i--) { 10443 if ($lt_i != "" && $lt_i != ".") { 10444 if ($lt_i == "..") { 10445 lt_count++; 10446 } else { 10447 if (lt_count == 0) { 10448 lt_foo="/" $lt_i lt_foo; 10449 } else { 10450 lt_count--; 10451 } 10452 } 10453 } 10454 } 10455 if (lt_foo != "") { lt_freq[lt_foo]++; } 10456 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10457}'` 10458 # AWK program above erroneously prepends '/' to C:/dos/paths 10459 # for these hosts. 10460 case $host_os in 10461 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10462 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10463 esac 10464 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10465else 10466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10467fi 10468library_names_spec= 10469libname_spec='lib$name' 10470soname_spec= 10471shrext_cmds=".so" 10472postinstall_cmds= 10473postuninstall_cmds= 10474finish_cmds= 10475finish_eval= 10476shlibpath_var= 10477shlibpath_overrides_runpath=unknown 10478version_type=none 10479dynamic_linker="$host_os ld.so" 10480sys_lib_dlsearch_path_spec="/lib /usr/lib" 10481need_lib_prefix=unknown 10482hardcode_into_libs=no 10483 10484# when you set need_version to no, make sure it does not cause -set_version 10485# flags to be left without arguments 10486need_version=unknown 10487 10488case $host_os in 10489aix3*) 10490 version_type=linux # correct to gnu/linux during the next big refactor 10491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10492 shlibpath_var=LIBPATH 10493 10494 # AIX 3 has no versioning support, so we append a major version to the name. 10495 soname_spec='${libname}${release}${shared_ext}$major' 10496 ;; 10497 10498aix[4-9]*) 10499 version_type=linux # correct to gnu/linux during the next big refactor 10500 need_lib_prefix=no 10501 need_version=no 10502 hardcode_into_libs=yes 10503 if test "$host_cpu" = ia64; then 10504 # AIX 5 supports IA64 10505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10506 shlibpath_var=LD_LIBRARY_PATH 10507 else 10508 # With GCC up to 2.95.x, collect2 would create an import file 10509 # for dependence libraries. The import file would start with 10510 # the line `#! .'. This would cause the generated library to 10511 # depend on `.', always an invalid library. This was fixed in 10512 # development snapshots of GCC prior to 3.0. 10513 case $host_os in 10514 aix4 | aix4.[01] | aix4.[01].*) 10515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10516 echo ' yes ' 10517 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10518 : 10519 else 10520 can_build_shared=no 10521 fi 10522 ;; 10523 esac 10524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10525 # soname into executable. Probably we can add versioning support to 10526 # collect2, so additional links can be useful in future. 10527 if test "$aix_use_runtimelinking" = yes; then 10528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10529 # instead of lib<name>.a to let people know that these are not 10530 # typical AIX shared libraries. 10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10532 else 10533 # We preserve .a as extension for shared libraries through AIX4.2 10534 # and later when we are not doing run time linking. 10535 library_names_spec='${libname}${release}.a $libname.a' 10536 soname_spec='${libname}${release}${shared_ext}$major' 10537 fi 10538 shlibpath_var=LIBPATH 10539 fi 10540 ;; 10541 10542amigaos*) 10543 case $host_cpu in 10544 powerpc) 10545 # Since July 2007 AmigaOS4 officially supports .so libraries. 10546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10548 ;; 10549 m68k) 10550 library_names_spec='$libname.ixlibrary $libname.a' 10551 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10552 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10553 ;; 10554 esac 10555 ;; 10556 10557beos*) 10558 library_names_spec='${libname}${shared_ext}' 10559 dynamic_linker="$host_os ld.so" 10560 shlibpath_var=LIBRARY_PATH 10561 ;; 10562 10563bsdi[45]*) 10564 version_type=linux # correct to gnu/linux during the next big refactor 10565 need_version=no 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10567 soname_spec='${libname}${release}${shared_ext}$major' 10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10572 # the default ld.so.conf also contains /usr/contrib/lib and 10573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10574 # libtool to hard-code these into programs 10575 ;; 10576 10577cygwin* | mingw* | pw32* | cegcc*) 10578 version_type=windows 10579 shrext_cmds=".dll" 10580 need_version=no 10581 need_lib_prefix=no 10582 10583 case $GCC,$cc_basename in 10584 yes,*) 10585 # gcc 10586 library_names_spec='$libname.dll.a' 10587 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10588 postinstall_cmds='base_file=`basename \${file}`~ 10589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10590 dldir=$destdir/`dirname \$dlpath`~ 10591 test -d \$dldir || mkdir -p \$dldir~ 10592 $install_prog $dir/$dlname \$dldir/$dlname~ 10593 chmod a+x \$dldir/$dlname~ 10594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10596 fi' 10597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10598 dlpath=$dir/\$dldll~ 10599 $RM \$dlpath' 10600 shlibpath_overrides_runpath=yes 10601 10602 case $host_os in 10603 cygwin*) 10604 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10606 10607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10608 ;; 10609 mingw* | cegcc*) 10610 # MinGW DLLs use traditional 'lib' prefix 10611 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10612 ;; 10613 pw32*) 10614 # pw32 DLLs use 'pw' prefix rather than 'lib' 10615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10616 ;; 10617 esac 10618 dynamic_linker='Win32 ld.exe' 10619 ;; 10620 10621 *,cl*) 10622 # Native MSVC 10623 libname_spec='$name' 10624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10625 library_names_spec='${libname}.dll.lib' 10626 10627 case $build_os in 10628 mingw*) 10629 sys_lib_search_path_spec= 10630 lt_save_ifs=$IFS 10631 IFS=';' 10632 for lt_path in $LIB 10633 do 10634 IFS=$lt_save_ifs 10635 # Let DOS variable expansion print the short 8.3 style file name. 10636 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10637 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10638 done 10639 IFS=$lt_save_ifs 10640 # Convert to MSYS style. 10641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10642 ;; 10643 cygwin*) 10644 # Convert to unix form, then to dos form, then back to unix form 10645 # but this time dos style (no spaces!) so that the unix form looks 10646 # like /cygdrive/c/PROGRA~1:/cygdr... 10647 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10648 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10649 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10650 ;; 10651 *) 10652 sys_lib_search_path_spec="$LIB" 10653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10654 # It is most probably a Windows format PATH. 10655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10656 else 10657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10658 fi 10659 # FIXME: find the short name or the path components, as spaces are 10660 # common. (e.g. "Program Files" -> "PROGRA~1") 10661 ;; 10662 esac 10663 10664 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10665 postinstall_cmds='base_file=`basename \${file}`~ 10666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10667 dldir=$destdir/`dirname \$dlpath`~ 10668 test -d \$dldir || mkdir -p \$dldir~ 10669 $install_prog $dir/$dlname \$dldir/$dlname' 10670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10671 dlpath=$dir/\$dldll~ 10672 $RM \$dlpath' 10673 shlibpath_overrides_runpath=yes 10674 dynamic_linker='Win32 link.exe' 10675 ;; 10676 10677 *) 10678 # Assume MSVC wrapper 10679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10680 dynamic_linker='Win32 ld.exe' 10681 ;; 10682 esac 10683 # FIXME: first we should search . and the directory the executable is in 10684 shlibpath_var=PATH 10685 ;; 10686 10687darwin* | rhapsody*) 10688 dynamic_linker="$host_os dyld" 10689 version_type=darwin 10690 need_lib_prefix=no 10691 need_version=no 10692 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10693 soname_spec='${libname}${release}${major}$shared_ext' 10694 shlibpath_overrides_runpath=yes 10695 shlibpath_var=DYLD_LIBRARY_PATH 10696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10697 10698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10700 ;; 10701 10702dgux*) 10703 version_type=linux # correct to gnu/linux during the next big refactor 10704 need_lib_prefix=no 10705 need_version=no 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 shlibpath_var=LD_LIBRARY_PATH 10709 ;; 10710 10711freebsd* | dragonfly*) 10712 # DragonFly does not have aout. When/if they implement a new 10713 # versioning mechanism, adjust this. 10714 if test -x /usr/bin/objformat; then 10715 objformat=`/usr/bin/objformat` 10716 else 10717 case $host_os in 10718 freebsd[23].*) objformat=aout ;; 10719 *) objformat=elf ;; 10720 esac 10721 fi 10722 version_type=freebsd-$objformat 10723 case $version_type in 10724 freebsd-elf*) 10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10726 need_version=no 10727 need_lib_prefix=no 10728 ;; 10729 freebsd-*) 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10731 need_version=yes 10732 ;; 10733 esac 10734 shlibpath_var=LD_LIBRARY_PATH 10735 case $host_os in 10736 freebsd2.*) 10737 shlibpath_overrides_runpath=yes 10738 ;; 10739 freebsd3.[01]* | freebsdelf3.[01]*) 10740 shlibpath_overrides_runpath=yes 10741 hardcode_into_libs=yes 10742 ;; 10743 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10744 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10745 shlibpath_overrides_runpath=no 10746 hardcode_into_libs=yes 10747 ;; 10748 *) # from 4.6 on, and DragonFly 10749 shlibpath_overrides_runpath=yes 10750 hardcode_into_libs=yes 10751 ;; 10752 esac 10753 ;; 10754 10755gnu*) 10756 version_type=linux # correct to gnu/linux during the next big refactor 10757 need_lib_prefix=no 10758 need_version=no 10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10760 soname_spec='${libname}${release}${shared_ext}$major' 10761 shlibpath_var=LD_LIBRARY_PATH 10762 shlibpath_overrides_runpath=no 10763 hardcode_into_libs=yes 10764 ;; 10765 10766haiku*) 10767 version_type=linux # correct to gnu/linux during the next big refactor 10768 need_lib_prefix=no 10769 need_version=no 10770 dynamic_linker="$host_os runtime_loader" 10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10772 soname_spec='${libname}${release}${shared_ext}$major' 10773 shlibpath_var=LIBRARY_PATH 10774 shlibpath_overrides_runpath=yes 10775 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10776 hardcode_into_libs=yes 10777 ;; 10778 10779hpux9* | hpux10* | hpux11*) 10780 # Give a soname corresponding to the major version so that dld.sl refuses to 10781 # link against other versions. 10782 version_type=sunos 10783 need_lib_prefix=no 10784 need_version=no 10785 case $host_cpu in 10786 ia64*) 10787 shrext_cmds='.so' 10788 hardcode_into_libs=yes 10789 dynamic_linker="$host_os dld.so" 10790 shlibpath_var=LD_LIBRARY_PATH 10791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10793 soname_spec='${libname}${release}${shared_ext}$major' 10794 if test "X$HPUX_IA64_MODE" = X32; then 10795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10796 else 10797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10798 fi 10799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10800 ;; 10801 hppa*64*) 10802 shrext_cmds='.sl' 10803 hardcode_into_libs=yes 10804 dynamic_linker="$host_os dld.sl" 10805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10808 soname_spec='${libname}${release}${shared_ext}$major' 10809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10811 ;; 10812 *) 10813 shrext_cmds='.sl' 10814 dynamic_linker="$host_os dld.sl" 10815 shlibpath_var=SHLIB_PATH 10816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10818 soname_spec='${libname}${release}${shared_ext}$major' 10819 ;; 10820 esac 10821 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10822 postinstall_cmds='chmod 555 $lib' 10823 # or fails outright, so override atomically: 10824 install_override_mode=555 10825 ;; 10826 10827interix[3-9]*) 10828 version_type=linux # correct to gnu/linux during the next big refactor 10829 need_lib_prefix=no 10830 need_version=no 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10834 shlibpath_var=LD_LIBRARY_PATH 10835 shlibpath_overrides_runpath=no 10836 hardcode_into_libs=yes 10837 ;; 10838 10839irix5* | irix6* | nonstopux*) 10840 case $host_os in 10841 nonstopux*) version_type=nonstopux ;; 10842 *) 10843 if test "$lt_cv_prog_gnu_ld" = yes; then 10844 version_type=linux # correct to gnu/linux during the next big refactor 10845 else 10846 version_type=irix 10847 fi ;; 10848 esac 10849 need_lib_prefix=no 10850 need_version=no 10851 soname_spec='${libname}${release}${shared_ext}$major' 10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10853 case $host_os in 10854 irix5* | nonstopux*) 10855 libsuff= shlibsuff= 10856 ;; 10857 *) 10858 case $LD in # libtool.m4 will add one of these switches to LD 10859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10860 libsuff= shlibsuff= libmagic=32-bit;; 10861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10862 libsuff=32 shlibsuff=N32 libmagic=N32;; 10863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10864 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10865 *) libsuff= shlibsuff= libmagic=never-match;; 10866 esac 10867 ;; 10868 esac 10869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10870 shlibpath_overrides_runpath=no 10871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10873 hardcode_into_libs=yes 10874 ;; 10875 10876# No shared lib support for Linux oldld, aout, or coff. 10877linux*oldld* | linux*aout* | linux*coff*) 10878 dynamic_linker=no 10879 ;; 10880 10881# This must be glibc/ELF. 10882linux* | k*bsd*-gnu | kopensolaris*-gnu) 10883 version_type=linux # correct to gnu/linux during the next big refactor 10884 need_lib_prefix=no 10885 need_version=no 10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10887 soname_spec='${libname}${release}${shared_ext}$major' 10888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10889 shlibpath_var=LD_LIBRARY_PATH 10890 shlibpath_overrides_runpath=no 10891 10892 # Some binutils ld are patched to set DT_RUNPATH 10893 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895else 10896 lt_cv_shlibpath_overrides_runpath=no 10897 save_LDFLAGS=$LDFLAGS 10898 save_libdir=$libdir 10899 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10900 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10902/* end confdefs.h. */ 10903 10904int 10905main () 10906{ 10907 10908 ; 10909 return 0; 10910} 10911_ACEOF 10912if ac_fn_c_try_link "$LINENO"; then : 10913 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10914 lt_cv_shlibpath_overrides_runpath=yes 10915fi 10916fi 10917rm -f core conftest.err conftest.$ac_objext \ 10918 conftest$ac_exeext conftest.$ac_ext 10919 LDFLAGS=$save_LDFLAGS 10920 libdir=$save_libdir 10921 10922fi 10923 10924 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10925 10926 # This implies no fast_install, which is unacceptable. 10927 # Some rework will be needed to allow for fast_install 10928 # before this can be enabled. 10929 hardcode_into_libs=yes 10930 10931 # Append ld.so.conf contents to the search path 10932 if test -f /etc/ld.so.conf; then 10933 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' ' '` 10934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10935 fi 10936 10937 # We used to test for /lib/ld.so.1 and disable shared libraries on 10938 # powerpc, because MkLinux only supported shared libraries with the 10939 # GNU dynamic linker. Since this was broken with cross compilers, 10940 # most powerpc-linux boxes support dynamic linking these days and 10941 # people can always --disable-shared, the test was removed, and we 10942 # assume the GNU/Linux dynamic linker is in use. 10943 dynamic_linker='GNU/Linux ld.so' 10944 ;; 10945 10946netbsd*) 10947 version_type=sunos 10948 need_lib_prefix=no 10949 need_version=no 10950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10953 dynamic_linker='NetBSD (a.out) ld.so' 10954 else 10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10956 soname_spec='${libname}${release}${shared_ext}$major' 10957 dynamic_linker='NetBSD ld.elf_so' 10958 fi 10959 shlibpath_var=LD_LIBRARY_PATH 10960 shlibpath_overrides_runpath=yes 10961 hardcode_into_libs=yes 10962 ;; 10963 10964newsos6) 10965 version_type=linux # correct to gnu/linux during the next big refactor 10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10967 shlibpath_var=LD_LIBRARY_PATH 10968 shlibpath_overrides_runpath=yes 10969 ;; 10970 10971*nto* | *qnx*) 10972 version_type=qnx 10973 need_lib_prefix=no 10974 need_version=no 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10976 soname_spec='${libname}${release}${shared_ext}$major' 10977 shlibpath_var=LD_LIBRARY_PATH 10978 shlibpath_overrides_runpath=no 10979 hardcode_into_libs=yes 10980 dynamic_linker='ldqnx.so' 10981 ;; 10982 10983openbsd*) 10984 version_type=sunos 10985 sys_lib_dlsearch_path_spec="/usr/lib" 10986 need_lib_prefix=no 10987 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10988 case $host_os in 10989 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10990 *) need_version=no ;; 10991 esac 10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10994 shlibpath_var=LD_LIBRARY_PATH 10995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10996 case $host_os in 10997 openbsd2.[89] | openbsd2.[89].*) 10998 shlibpath_overrides_runpath=no 10999 ;; 11000 *) 11001 shlibpath_overrides_runpath=yes 11002 ;; 11003 esac 11004 else 11005 shlibpath_overrides_runpath=yes 11006 fi 11007 ;; 11008 11009os2*) 11010 libname_spec='$name' 11011 shrext_cmds=".dll" 11012 need_lib_prefix=no 11013 library_names_spec='$libname${shared_ext} $libname.a' 11014 dynamic_linker='OS/2 ld.exe' 11015 shlibpath_var=LIBPATH 11016 ;; 11017 11018osf3* | osf4* | osf5*) 11019 version_type=osf 11020 need_lib_prefix=no 11021 need_version=no 11022 soname_spec='${libname}${release}${shared_ext}$major' 11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11024 shlibpath_var=LD_LIBRARY_PATH 11025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11027 ;; 11028 11029rdos*) 11030 dynamic_linker=no 11031 ;; 11032 11033solaris*) 11034 version_type=linux # correct to gnu/linux during the next big refactor 11035 need_lib_prefix=no 11036 need_version=no 11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11038 soname_spec='${libname}${release}${shared_ext}$major' 11039 shlibpath_var=LD_LIBRARY_PATH 11040 shlibpath_overrides_runpath=yes 11041 hardcode_into_libs=yes 11042 # ldd complains unless libraries are executable 11043 postinstall_cmds='chmod +x $lib' 11044 ;; 11045 11046sunos4*) 11047 version_type=sunos 11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11050 shlibpath_var=LD_LIBRARY_PATH 11051 shlibpath_overrides_runpath=yes 11052 if test "$with_gnu_ld" = yes; then 11053 need_lib_prefix=no 11054 fi 11055 need_version=yes 11056 ;; 11057 11058sysv4 | sysv4.3*) 11059 version_type=linux # correct to gnu/linux during the next big refactor 11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11061 soname_spec='${libname}${release}${shared_ext}$major' 11062 shlibpath_var=LD_LIBRARY_PATH 11063 case $host_vendor in 11064 sni) 11065 shlibpath_overrides_runpath=no 11066 need_lib_prefix=no 11067 runpath_var=LD_RUN_PATH 11068 ;; 11069 siemens) 11070 need_lib_prefix=no 11071 ;; 11072 motorola) 11073 need_lib_prefix=no 11074 need_version=no 11075 shlibpath_overrides_runpath=no 11076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11077 ;; 11078 esac 11079 ;; 11080 11081sysv4*MP*) 11082 if test -d /usr/nec ;then 11083 version_type=linux # correct to gnu/linux during the next big refactor 11084 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11085 soname_spec='$libname${shared_ext}.$major' 11086 shlibpath_var=LD_LIBRARY_PATH 11087 fi 11088 ;; 11089 11090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11091 version_type=freebsd-elf 11092 need_lib_prefix=no 11093 need_version=no 11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11095 soname_spec='${libname}${release}${shared_ext}$major' 11096 shlibpath_var=LD_LIBRARY_PATH 11097 shlibpath_overrides_runpath=yes 11098 hardcode_into_libs=yes 11099 if test "$with_gnu_ld" = yes; then 11100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11101 else 11102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11103 case $host_os in 11104 sco3.2v5*) 11105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11106 ;; 11107 esac 11108 fi 11109 sys_lib_dlsearch_path_spec='/usr/lib' 11110 ;; 11111 11112tpf*) 11113 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11114 version_type=linux # correct to gnu/linux during the next big refactor 11115 need_lib_prefix=no 11116 need_version=no 11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11118 shlibpath_var=LD_LIBRARY_PATH 11119 shlibpath_overrides_runpath=no 11120 hardcode_into_libs=yes 11121 ;; 11122 11123uts4*) 11124 version_type=linux # correct to gnu/linux during the next big refactor 11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11126 soname_spec='${libname}${release}${shared_ext}$major' 11127 shlibpath_var=LD_LIBRARY_PATH 11128 ;; 11129 11130*) 11131 dynamic_linker=no 11132 ;; 11133esac 11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11135$as_echo "$dynamic_linker" >&6; } 11136test "$dynamic_linker" = no && can_build_shared=no 11137 11138variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11139if test "$GCC" = yes; then 11140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11141fi 11142 11143if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11144 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11145fi 11146if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11147 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11148fi 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11242$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11243hardcode_action= 11244if test -n "$hardcode_libdir_flag_spec" || 11245 test -n "$runpath_var" || 11246 test "X$hardcode_automatic" = "Xyes" ; then 11247 11248 # We can hardcode non-existent directories. 11249 if test "$hardcode_direct" != no && 11250 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11251 # have to relink, otherwise we might link with an installed library 11252 # when we should be linking with a yet-to-be-installed one 11253 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11254 test "$hardcode_minus_L" != no; then 11255 # Linking always hardcodes the temporary library directory. 11256 hardcode_action=relink 11257 else 11258 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11259 hardcode_action=immediate 11260 fi 11261else 11262 # We cannot hardcode anything, or else we can only hardcode existing 11263 # directories. 11264 hardcode_action=unsupported 11265fi 11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11267$as_echo "$hardcode_action" >&6; } 11268 11269if test "$hardcode_action" = relink || 11270 test "$inherit_rpath" = yes; then 11271 # Fast installation is not supported 11272 enable_fast_install=no 11273elif test "$shlibpath_overrides_runpath" = yes || 11274 test "$enable_shared" = no; then 11275 # Fast installation is not necessary 11276 enable_fast_install=needless 11277fi 11278 11279 11280 11281 11282 11283 11284 if test "x$enable_dlopen" != xyes; then 11285 enable_dlopen=unknown 11286 enable_dlopen_self=unknown 11287 enable_dlopen_self_static=unknown 11288else 11289 lt_cv_dlopen=no 11290 lt_cv_dlopen_libs= 11291 11292 case $host_os in 11293 beos*) 11294 lt_cv_dlopen="load_add_on" 11295 lt_cv_dlopen_libs= 11296 lt_cv_dlopen_self=yes 11297 ;; 11298 11299 mingw* | pw32* | cegcc*) 11300 lt_cv_dlopen="LoadLibrary" 11301 lt_cv_dlopen_libs= 11302 ;; 11303 11304 cygwin*) 11305 lt_cv_dlopen="dlopen" 11306 lt_cv_dlopen_libs= 11307 ;; 11308 11309 darwin*) 11310 # if libdl is installed we need to link against it 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11312$as_echo_n "checking for dlopen in -ldl... " >&6; } 11313if ${ac_cv_lib_dl_dlopen+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315else 11316 ac_check_lib_save_LIBS=$LIBS 11317LIBS="-ldl $LIBS" 11318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320 11321/* Override any GCC internal prototype to avoid an error. 11322 Use char because int might match the return type of a GCC 11323 builtin and then its argument prototype would still apply. */ 11324#ifdef __cplusplus 11325extern "C" 11326#endif 11327char dlopen (); 11328int 11329main () 11330{ 11331return dlopen (); 11332 ; 11333 return 0; 11334} 11335_ACEOF 11336if ac_fn_c_try_link "$LINENO"; then : 11337 ac_cv_lib_dl_dlopen=yes 11338else 11339 ac_cv_lib_dl_dlopen=no 11340fi 11341rm -f core conftest.err conftest.$ac_objext \ 11342 conftest$ac_exeext conftest.$ac_ext 11343LIBS=$ac_check_lib_save_LIBS 11344fi 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11346$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11347if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11349else 11350 11351 lt_cv_dlopen="dyld" 11352 lt_cv_dlopen_libs= 11353 lt_cv_dlopen_self=yes 11354 11355fi 11356 11357 ;; 11358 11359 *) 11360 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11361if test "x$ac_cv_func_shl_load" = xyes; then : 11362 lt_cv_dlopen="shl_load" 11363else 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11365$as_echo_n "checking for shl_load in -ldld... " >&6; } 11366if ${ac_cv_lib_dld_shl_load+:} false; then : 11367 $as_echo_n "(cached) " >&6 11368else 11369 ac_check_lib_save_LIBS=$LIBS 11370LIBS="-ldld $LIBS" 11371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11372/* end confdefs.h. */ 11373 11374/* Override any GCC internal prototype to avoid an error. 11375 Use char because int might match the return type of a GCC 11376 builtin and then its argument prototype would still apply. */ 11377#ifdef __cplusplus 11378extern "C" 11379#endif 11380char shl_load (); 11381int 11382main () 11383{ 11384return shl_load (); 11385 ; 11386 return 0; 11387} 11388_ACEOF 11389if ac_fn_c_try_link "$LINENO"; then : 11390 ac_cv_lib_dld_shl_load=yes 11391else 11392 ac_cv_lib_dld_shl_load=no 11393fi 11394rm -f core conftest.err conftest.$ac_objext \ 11395 conftest$ac_exeext conftest.$ac_ext 11396LIBS=$ac_check_lib_save_LIBS 11397fi 11398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11399$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11400if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11401 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11402else 11403 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11404if test "x$ac_cv_func_dlopen" = xyes; then : 11405 lt_cv_dlopen="dlopen" 11406else 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11408$as_echo_n "checking for dlopen in -ldl... " >&6; } 11409if ${ac_cv_lib_dl_dlopen+:} false; then : 11410 $as_echo_n "(cached) " >&6 11411else 11412 ac_check_lib_save_LIBS=$LIBS 11413LIBS="-ldl $LIBS" 11414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415/* end confdefs.h. */ 11416 11417/* Override any GCC internal prototype to avoid an error. 11418 Use char because int might match the return type of a GCC 11419 builtin and then its argument prototype would still apply. */ 11420#ifdef __cplusplus 11421extern "C" 11422#endif 11423char dlopen (); 11424int 11425main () 11426{ 11427return dlopen (); 11428 ; 11429 return 0; 11430} 11431_ACEOF 11432if ac_fn_c_try_link "$LINENO"; then : 11433 ac_cv_lib_dl_dlopen=yes 11434else 11435 ac_cv_lib_dl_dlopen=no 11436fi 11437rm -f core conftest.err conftest.$ac_objext \ 11438 conftest$ac_exeext conftest.$ac_ext 11439LIBS=$ac_check_lib_save_LIBS 11440fi 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11442$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11443if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11445else 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11447$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11448if ${ac_cv_lib_svld_dlopen+:} false; then : 11449 $as_echo_n "(cached) " >&6 11450else 11451 ac_check_lib_save_LIBS=$LIBS 11452LIBS="-lsvld $LIBS" 11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454/* end confdefs.h. */ 11455 11456/* Override any GCC internal prototype to avoid an error. 11457 Use char because int might match the return type of a GCC 11458 builtin and then its argument prototype would still apply. */ 11459#ifdef __cplusplus 11460extern "C" 11461#endif 11462char dlopen (); 11463int 11464main () 11465{ 11466return dlopen (); 11467 ; 11468 return 0; 11469} 11470_ACEOF 11471if ac_fn_c_try_link "$LINENO"; then : 11472 ac_cv_lib_svld_dlopen=yes 11473else 11474 ac_cv_lib_svld_dlopen=no 11475fi 11476rm -f core conftest.err conftest.$ac_objext \ 11477 conftest$ac_exeext conftest.$ac_ext 11478LIBS=$ac_check_lib_save_LIBS 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11481$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11482if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11484else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11486$as_echo_n "checking for dld_link in -ldld... " >&6; } 11487if ${ac_cv_lib_dld_dld_link+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489else 11490 ac_check_lib_save_LIBS=$LIBS 11491LIBS="-ldld $LIBS" 11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11493/* end confdefs.h. */ 11494 11495/* Override any GCC internal prototype to avoid an error. 11496 Use char because int might match the return type of a GCC 11497 builtin and then its argument prototype would still apply. */ 11498#ifdef __cplusplus 11499extern "C" 11500#endif 11501char dld_link (); 11502int 11503main () 11504{ 11505return dld_link (); 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510if ac_fn_c_try_link "$LINENO"; then : 11511 ac_cv_lib_dld_dld_link=yes 11512else 11513 ac_cv_lib_dld_dld_link=no 11514fi 11515rm -f core conftest.err conftest.$ac_objext \ 11516 conftest$ac_exeext conftest.$ac_ext 11517LIBS=$ac_check_lib_save_LIBS 11518fi 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11520$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11521if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11522 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11523fi 11524 11525 11526fi 11527 11528 11529fi 11530 11531 11532fi 11533 11534 11535fi 11536 11537 11538fi 11539 11540 ;; 11541 esac 11542 11543 if test "x$lt_cv_dlopen" != xno; then 11544 enable_dlopen=yes 11545 else 11546 enable_dlopen=no 11547 fi 11548 11549 case $lt_cv_dlopen in 11550 dlopen) 11551 save_CPPFLAGS="$CPPFLAGS" 11552 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11553 11554 save_LDFLAGS="$LDFLAGS" 11555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11556 11557 save_LIBS="$LIBS" 11558 LIBS="$lt_cv_dlopen_libs $LIBS" 11559 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11561$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11562if ${lt_cv_dlopen_self+:} false; then : 11563 $as_echo_n "(cached) " >&6 11564else 11565 if test "$cross_compiling" = yes; then : 11566 lt_cv_dlopen_self=cross 11567else 11568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11569 lt_status=$lt_dlunknown 11570 cat > conftest.$ac_ext <<_LT_EOF 11571#line $LINENO "configure" 11572#include "confdefs.h" 11573 11574#if HAVE_DLFCN_H 11575#include <dlfcn.h> 11576#endif 11577 11578#include <stdio.h> 11579 11580#ifdef RTLD_GLOBAL 11581# define LT_DLGLOBAL RTLD_GLOBAL 11582#else 11583# ifdef DL_GLOBAL 11584# define LT_DLGLOBAL DL_GLOBAL 11585# else 11586# define LT_DLGLOBAL 0 11587# endif 11588#endif 11589 11590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11591 find out it does not work in some platform. */ 11592#ifndef LT_DLLAZY_OR_NOW 11593# ifdef RTLD_LAZY 11594# define LT_DLLAZY_OR_NOW RTLD_LAZY 11595# else 11596# ifdef DL_LAZY 11597# define LT_DLLAZY_OR_NOW DL_LAZY 11598# else 11599# ifdef RTLD_NOW 11600# define LT_DLLAZY_OR_NOW RTLD_NOW 11601# else 11602# ifdef DL_NOW 11603# define LT_DLLAZY_OR_NOW DL_NOW 11604# else 11605# define LT_DLLAZY_OR_NOW 0 11606# endif 11607# endif 11608# endif 11609# endif 11610#endif 11611 11612/* When -fvisbility=hidden is used, assume the code has been annotated 11613 correspondingly for the symbols needed. */ 11614#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11615int fnord () __attribute__((visibility("default"))); 11616#endif 11617 11618int fnord () { return 42; } 11619int main () 11620{ 11621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11622 int status = $lt_dlunknown; 11623 11624 if (self) 11625 { 11626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11627 else 11628 { 11629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11630 else puts (dlerror ()); 11631 } 11632 /* dlclose (self); */ 11633 } 11634 else 11635 puts (dlerror ()); 11636 11637 return status; 11638} 11639_LT_EOF 11640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11641 (eval $ac_link) 2>&5 11642 ac_status=$? 11643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11644 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11645 (./conftest; exit; ) >&5 2>/dev/null 11646 lt_status=$? 11647 case x$lt_status in 11648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11651 esac 11652 else : 11653 # compilation failed 11654 lt_cv_dlopen_self=no 11655 fi 11656fi 11657rm -fr conftest* 11658 11659 11660fi 11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11662$as_echo "$lt_cv_dlopen_self" >&6; } 11663 11664 if test "x$lt_cv_dlopen_self" = xyes; then 11665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11667$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11668if ${lt_cv_dlopen_self_static+:} false; then : 11669 $as_echo_n "(cached) " >&6 11670else 11671 if test "$cross_compiling" = yes; then : 11672 lt_cv_dlopen_self_static=cross 11673else 11674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11675 lt_status=$lt_dlunknown 11676 cat > conftest.$ac_ext <<_LT_EOF 11677#line $LINENO "configure" 11678#include "confdefs.h" 11679 11680#if HAVE_DLFCN_H 11681#include <dlfcn.h> 11682#endif 11683 11684#include <stdio.h> 11685 11686#ifdef RTLD_GLOBAL 11687# define LT_DLGLOBAL RTLD_GLOBAL 11688#else 11689# ifdef DL_GLOBAL 11690# define LT_DLGLOBAL DL_GLOBAL 11691# else 11692# define LT_DLGLOBAL 0 11693# endif 11694#endif 11695 11696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11697 find out it does not work in some platform. */ 11698#ifndef LT_DLLAZY_OR_NOW 11699# ifdef RTLD_LAZY 11700# define LT_DLLAZY_OR_NOW RTLD_LAZY 11701# else 11702# ifdef DL_LAZY 11703# define LT_DLLAZY_OR_NOW DL_LAZY 11704# else 11705# ifdef RTLD_NOW 11706# define LT_DLLAZY_OR_NOW RTLD_NOW 11707# else 11708# ifdef DL_NOW 11709# define LT_DLLAZY_OR_NOW DL_NOW 11710# else 11711# define LT_DLLAZY_OR_NOW 0 11712# endif 11713# endif 11714# endif 11715# endif 11716#endif 11717 11718/* When -fvisbility=hidden is used, assume the code has been annotated 11719 correspondingly for the symbols needed. */ 11720#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11721int fnord () __attribute__((visibility("default"))); 11722#endif 11723 11724int fnord () { return 42; } 11725int main () 11726{ 11727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11728 int status = $lt_dlunknown; 11729 11730 if (self) 11731 { 11732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11733 else 11734 { 11735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11736 else puts (dlerror ()); 11737 } 11738 /* dlclose (self); */ 11739 } 11740 else 11741 puts (dlerror ()); 11742 11743 return status; 11744} 11745_LT_EOF 11746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11747 (eval $ac_link) 2>&5 11748 ac_status=$? 11749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11750 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11751 (./conftest; exit; ) >&5 2>/dev/null 11752 lt_status=$? 11753 case x$lt_status in 11754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11757 esac 11758 else : 11759 # compilation failed 11760 lt_cv_dlopen_self_static=no 11761 fi 11762fi 11763rm -fr conftest* 11764 11765 11766fi 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11768$as_echo "$lt_cv_dlopen_self_static" >&6; } 11769 fi 11770 11771 CPPFLAGS="$save_CPPFLAGS" 11772 LDFLAGS="$save_LDFLAGS" 11773 LIBS="$save_LIBS" 11774 ;; 11775 esac 11776 11777 case $lt_cv_dlopen_self in 11778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11779 *) enable_dlopen_self=unknown ;; 11780 esac 11781 11782 case $lt_cv_dlopen_self_static in 11783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11784 *) enable_dlopen_self_static=unknown ;; 11785 esac 11786fi 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804striplib= 11805old_striplib= 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11807$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11808if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11809 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11810 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11812$as_echo "yes" >&6; } 11813else 11814# FIXME - insert some real tests, host_os isn't really good enough 11815 case $host_os in 11816 darwin*) 11817 if test -n "$STRIP" ; then 11818 striplib="$STRIP -x" 11819 old_striplib="$STRIP -S" 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11821$as_echo "yes" >&6; } 11822 else 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11824$as_echo "no" >&6; } 11825 fi 11826 ;; 11827 *) 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11829$as_echo "no" >&6; } 11830 ;; 11831 esac 11832fi 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 # Report which library types will actually be built 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11847$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11849$as_echo "$can_build_shared" >&6; } 11850 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11852$as_echo_n "checking whether to build shared libraries... " >&6; } 11853 test "$can_build_shared" = "no" && enable_shared=no 11854 11855 # On AIX, shared libraries and static libraries use the same namespace, and 11856 # are all built from PIC. 11857 case $host_os in 11858 aix3*) 11859 test "$enable_shared" = yes && enable_static=no 11860 if test -n "$RANLIB"; then 11861 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11862 postinstall_cmds='$RANLIB $lib' 11863 fi 11864 ;; 11865 11866 aix[4-9]*) 11867 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11868 test "$enable_shared" = yes && enable_static=no 11869 fi 11870 ;; 11871 esac 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11873$as_echo "$enable_shared" >&6; } 11874 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11876$as_echo_n "checking whether to build static libraries... " >&6; } 11877 # Make sure either enable_shared or enable_static is yes. 11878 test "$enable_shared" = yes || enable_static=yes 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11880$as_echo "$enable_static" >&6; } 11881 11882 11883 11884 11885fi 11886ac_ext=c 11887ac_cpp='$CPP $CPPFLAGS' 11888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11890ac_compiler_gnu=$ac_cv_c_compiler_gnu 11891 11892CC="$lt_save_CC" 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 ac_config_commands="$ac_config_commands libtool" 11909 11910 11911 11912 11913# Only expand once: 11914 11915 11916 11917 11918 11919CFLAGS="$CFLAGS -Wall -std=gnu99 -fno-strict-aliasing" 11920BUILD_NC=yes 11921 11922case $host_os in 11923 *aix*) 11924 HOST_OS=aix 11925 if test "`echo $CC | cut -d ' ' -f 1`" != "gcc" ; then 11926 CFLAGS="-qnoansialias $USER_CFLAGS" 11927 fi 11928 PLATFORM_LDADD='-lperfstat' 11929 11930 ;; 11931 *cygwin*) 11932 HOST_OS=cygwin 11933 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 11934 ;; 11935 *darwin*) 11936 HOST_OS=darwin 11937 HOST_ABI=macosx 11938 # 11939 # Don't use arc4random on systems before 10.12 because of 11940 # weak seed on failure to open /dev/random, based on latest 11941 # public source: 11942 # http://www.opensource.apple.com/source/Libc/Libc-997.90.3/gen/FreeBSD/arc4random.c 11943 # 11944 # We use the presence of getentropy() to detect 10.12. The 11945 # following check take into account that: 11946 # 11947 # - iOS <= 10.1 fails because of missing getentropy and 11948 # hence they miss sys/random.h 11949 # 11950 # - in macOS 10.12 getentropy is not tagged as introduced in 11951 # 10.12 so we cannot use it for target < 10.12 11952 # 11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11954/* end confdefs.h. */ 11955 11956#include <AvailabilityMacros.h> 11957#include <unistd.h> 11958#include <sys/random.h> /* Systems without getentropy() should die here */ 11959 11960/* Based on: https://gitweb.torproject.org/tor.git/commit/?id=16fcbd21 */ 11961#ifndef MAC_OS_X_VERSION_10_12 11962# define MAC_OS_X_VERSION_10_12 101200 11963#endif 11964#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) 11965# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 11966# error "Running on Mac OSX 10.11 or earlier" 11967# endif 11968#endif 11969 11970int 11971main () 11972{ 11973 11974char buf[1]; getentropy(buf, 1); 11975 11976 ; 11977 return 0; 11978} 11979_ACEOF 11980if ac_fn_c_try_compile "$LINENO"; then : 11981 USE_BUILTIN_ARC4RANDOM=no 11982else 11983 USE_BUILTIN_ARC4RANDOM=yes 11984 11985fi 11986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin arc4random" >&5 11988$as_echo_n "checking whether to use builtin arc4random... " >&6; } 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_BUILTIN_ARC4RANDOM" >&5 11990$as_echo "$USE_BUILTIN_ARC4RANDOM" >&6; } 11991 # Not available on iOS 11992 ac_fn_c_check_header_mongrel "$LINENO" "arpa/telnet.h" "ac_cv_header_arpa_telnet_h" "$ac_includes_default" 11993if test "x$ac_cv_header_arpa_telnet_h" = xyes; then : 11994 11995else 11996 BUILD_NC=no 11997fi 11998 11999 12000 ;; 12001 *dragonfly*) 12002 HOST_OS=dragonfly 12003 HOST_ABI=elf 12004 ;; 12005 *freebsd*) 12006 HOST_OS=freebsd 12007 HOST_ABI=elf 12008 # fork detection missing, weak seed on failure 12009 # https://svnweb.freebsd.org/base/head/lib/libc/gen/arc4random.c?revision=268642&view=markup 12010 USE_BUILTIN_ARC4RANDOM=yes 12011 PROG_LDADD='-lthr' 12012 12013 ;; 12014 *hpux*) 12015 HOST_OS=hpux; 12016 if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then 12017 CFLAGS="$CFLAGS -mlp64" 12018 else 12019 CFLAGS="-g -O2 +DD64 +Otype_safety=off $USER_CFLAGS" 12020 fi 12021 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" 12022 ;; 12023 *linux*) 12024 HOST_OS=linux 12025 HOST_ABI=elf 12026 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" 12027 ;; 12028 *midipix*) 12029 HOST_OS=midipix 12030 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" 12031 ;; 12032 *netbsd*) 12033 HOST_OS=netbsd 12034 HOST_ABI=elf 12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12036/* end confdefs.h. */ 12037 12038#include <sys/param.h> 12039#if __NetBSD_Version__ < 700000001 12040 undefined 12041#endif 12042 12043int 12044main () 12045{ 12046 12047 ; 12048 return 0; 12049} 12050_ACEOF 12051if ac_fn_c_try_compile "$LINENO"; then : 12052 USE_BUILTIN_ARC4RANDOM=no 12053else 12054 USE_BUILTIN_ARC4RANDOM=yes 12055 12056fi 12057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12058 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" 12059 ;; 12060 *openbsd* | *bitrig*) 12061 HOST_OS=openbsd 12062 HOST_ABI=elf 12063 12064$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h 12065 12066 12067$as_echo "#define HAVE_ATTRIBUTE__DEAD 1" >>confdefs.h 12068 12069 ;; 12070 *mingw*) 12071 HOST_OS=win 12072 HOST_ABI=mingw64 12073 BUILD_NC=no 12074 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_POSIX -D_POSIX_SOURCE -D__USE_MINGW_ANSI_STDIO" 12075 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS" 12076 CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600" 12077 CPPFLAGS="$CPPFLAGS" 12078 PLATFORM_LDADD='-lws2_32 -lbcrypt' 12079 12080 ;; 12081 *solaris*) 12082 HOST_OS=solaris 12083 HOST_ABI=elf 12084 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP" 12085 PLATFORM_LDADD='-ldl -lnsl -lsocket' 12086 12087 ;; 12088 *) ;; 12089esac 12090 12091# Check if time_t is sized correctly 12092# The cast to long int works around a bug in the HP C Compiler 12093# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12094# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12095# This bug is HP SR number 8606223364. 12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 12097$as_echo_n "checking size of time_t... " >&6; } 12098if ${ac_cv_sizeof_time_t+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100else 12101 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 12102 12103else 12104 if test "$ac_cv_type_time_t" = yes; then 12105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12107as_fn_error 77 "cannot compute sizeof (time_t) 12108See \`config.log' for more details" "$LINENO" 5; } 12109 else 12110 ac_cv_sizeof_time_t=0 12111 fi 12112fi 12113 12114fi 12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 12116$as_echo "$ac_cv_sizeof_time_t" >&6; } 12117 12118 12119 12120cat >>confdefs.h <<_ACEOF 12121#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 12122_ACEOF 12123 12124 12125 if test "$ac_cv_sizeof_time_t" = "4"; then 12126 SMALL_TIME_T_TRUE= 12127 SMALL_TIME_T_FALSE='#' 12128else 12129 SMALL_TIME_T_TRUE='#' 12130 SMALL_TIME_T_FALSE= 12131fi 12132 12133if test "$ac_cv_sizeof_time_t" = "4"; then 12134 $as_echo "#define SMALL_TIME_T 1" >>confdefs.h 12135 12136 echo " ** Warning, this system is unable to represent times past 2038" 12137 echo " ** It will behave incorrectly when handling valid RFC5280 dates" 12138 12139 if test "$host_os" = "mingw32" ; then 12140 echo " **" 12141 echo " ** You can solve this by adjusting the build flags in your" 12142 echo " ** mingw-w64 toolchain. Refer to README.windows for details." 12143 fi 12144fi 12145 12146 if test x$HOST_OS = xaix; then 12147 HOST_AIX_TRUE= 12148 HOST_AIX_FALSE='#' 12149else 12150 HOST_AIX_TRUE='#' 12151 HOST_AIX_FALSE= 12152fi 12153 12154 if test x$HOST_OS = xcygwin; then 12155 HOST_CYGWIN_TRUE= 12156 HOST_CYGWIN_FALSE='#' 12157else 12158 HOST_CYGWIN_TRUE='#' 12159 HOST_CYGWIN_FALSE= 12160fi 12161 12162 if test x$HOST_OS = xdarwin; then 12163 HOST_DARWIN_TRUE= 12164 HOST_DARWIN_FALSE='#' 12165else 12166 HOST_DARWIN_TRUE='#' 12167 HOST_DARWIN_FALSE= 12168fi 12169 12170 if test x$HOST_OS = xfreebsd; then 12171 HOST_FREEBSD_TRUE= 12172 HOST_FREEBSD_FALSE='#' 12173else 12174 HOST_FREEBSD_TRUE='#' 12175 HOST_FREEBSD_FALSE= 12176fi 12177 12178 if test x$HOST_OS = xhpux; then 12179 HOST_HPUX_TRUE= 12180 HOST_HPUX_FALSE='#' 12181else 12182 HOST_HPUX_TRUE='#' 12183 HOST_HPUX_FALSE= 12184fi 12185 12186 if test x$HOST_OS = xlinux; then 12187 HOST_LINUX_TRUE= 12188 HOST_LINUX_FALSE='#' 12189else 12190 HOST_LINUX_TRUE='#' 12191 HOST_LINUX_FALSE= 12192fi 12193 12194 if test x$HOST_OS = xmidipix; then 12195 HOST_MIDIPIX_TRUE= 12196 HOST_MIDIPIX_FALSE='#' 12197else 12198 HOST_MIDIPIX_TRUE='#' 12199 HOST_MIDIPIX_FALSE= 12200fi 12201 12202 if test x$HOST_OS = xnetbsd; then 12203 HOST_NETBSD_TRUE= 12204 HOST_NETBSD_FALSE='#' 12205else 12206 HOST_NETBSD_TRUE='#' 12207 HOST_NETBSD_FALSE= 12208fi 12209 12210 if test x$HOST_OS = xopenbsd; then 12211 HOST_OPENBSD_TRUE= 12212 HOST_OPENBSD_FALSE='#' 12213else 12214 HOST_OPENBSD_TRUE='#' 12215 HOST_OPENBSD_FALSE= 12216fi 12217 12218 if test x$HOST_OS = xsolaris; then 12219 HOST_SOLARIS_TRUE= 12220 HOST_SOLARIS_FALSE='#' 12221else 12222 HOST_SOLARIS_TRUE='#' 12223 HOST_SOLARIS_FALSE= 12224fi 12225 12226 if test x$HOST_OS = xwin; then 12227 HOST_WIN_TRUE= 12228 HOST_WIN_FALSE='#' 12229else 12230 HOST_WIN_TRUE='#' 12231 HOST_WIN_FALSE= 12232fi 12233 12234 12235 12236 12237 12238 # Check whether --enable-hardening was given. 12239if test "${enable_hardening+set}" = set; then : 12240 enableval=$enable_hardening; 12241else 12242 enable_hardening=yes 12243fi 12244 12245 12246 # Check whether --enable-windows-ssp was given. 12247if test "${enable_windows_ssp+set}" = set; then : 12248 enableval=$enable_windows_ssp; 12249fi 12250 12251 12252 # We want to check for compiler flag support. Prior to clang v5.1, there was no 12253 # way to make clang's "argument unused" warning fatal. So we invoke the 12254 # compiler through a wrapper script that greps for this message. 12255 saved_CC="$CC" 12256 saved_LD="$LD" 12257 flag_wrap="$srcdir/scripts/wrap-compiler-for-flag-check" 12258 CC="$flag_wrap $CC" 12259 LD="$flag_wrap $LD" 12260 12261 if test "x$enable_hardening" = "xyes"; then : 12262 12263 # Tell GCC to NOT optimize based on signed arithmetic overflow 12264 12265 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_CC supports \"-fno-strict-overflow\"" >&5 12267$as_echo_n "checking if $saved_CC supports \"-fno-strict-overflow\"... " >&6; } 12268 old_cflags="$CFLAGS" 12269 CFLAGS="-fno-strict-overflow -Wall -Werror" 12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12271/* end confdefs.h. */ 12272 12273 #include <stdio.h> 12274 12275int 12276main () 12277{ 12278printf("Hello") 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283if ac_fn_c_try_link "$LINENO"; then : 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12285$as_echo "yes" >&6; } 12286 CFLAGS=$old_cflags 12287 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow" 12288else 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12290$as_echo "no" >&6; } 12291 CFLAGS=$old_cflags 12292 12293fi 12294rm -f core conftest.err conftest.$ac_objext \ 12295 conftest$ac_exeext conftest.$ac_ext 12296 12297 12298 # _FORTIFY_SOURCE replaces builtin functions with safer versions. 12299 if test "x$HOST_OS" != "xwin"; then : 12300 12301 12302 ac_save_cflags=$CFLAGS 12303 ac_cwerror_flag=yes 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5 12305$as_echo_n "checking whether C compiler accepts -Werror... " >&6; } 12306if ${ax_cv_check_cflags___Werror+:} false; then : 12307 $as_echo_n "(cached) " >&6 12308else 12309 12310 ax_check_save_flags=$CFLAGS 12311 CFLAGS="$CFLAGS -Werror" 12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12313/* end confdefs.h. */ 12314 12315int 12316main () 12317{ 12318 12319 ; 12320 return 0; 12321} 12322_ACEOF 12323if ac_fn_c_try_compile "$LINENO"; then : 12324 ax_cv_check_cflags___Werror=yes 12325else 12326 ax_cv_check_cflags___Werror=no 12327fi 12328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12329 CFLAGS=$ax_check_save_flags 12330fi 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5 12332$as_echo "$ax_cv_check_cflags___Werror" >&6; } 12333if test "x$ax_cv_check_cflags___Werror" = xyes; then : 12334 CFLAGS="$CFLAGS -Werror" 12335else 12336 : 12337fi 12338 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5 12340$as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; } 12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343 12344 12345int 12346main () 12347{ 12348 12349 #ifndef _FORTIFY_SOURCE 12350 return 0; 12351 #else 12352 this_is_an_error; 12353 #endif 12354 12355 12356 ; 12357 return 0; 12358} 12359_ACEOF 12360if ac_fn_c_try_link "$LINENO"; then : 12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12362/* end confdefs.h. */ 12363 12364 12365 #define _FORTIFY_SOURCE 2 12366 #include <string.h> 12367 int main() { 12368 char *s = " "; 12369 strcpy(s, "x"); 12370 return strlen(s)-1; 12371 } 12372 12373 12374_ACEOF 12375if ac_fn_c_try_link "$LINENO"; then : 12376 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12378$as_echo "yes" >&6; } 12379 CFLAGS=$ac_save_cflags 12380 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" 12381 12382else 12383 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12385$as_echo "no" >&6; } 12386 CFLAGS=$ac_save_cflags 12387 12388fi 12389rm -f core conftest.err conftest.$ac_objext \ 12390 conftest$ac_exeext conftest.$ac_ext 12391else 12392 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12394$as_echo "no" >&6; } 12395 CFLAGS=$ac_save_cflags 12396 12397fi 12398rm -f core conftest.err conftest.$ac_objext \ 12399 conftest$ac_exeext conftest.$ac_ext 12400 12401 12402fi 12403 12404 # Enable read only relocations 12405 12406 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_LD supports \"-Wl,-z,relro\"" >&5 12408$as_echo_n "checking if $saved_LD supports \"-Wl,-z,relro\"... " >&6; } 12409 old_ldflags="$LDFLAGS" 12410 LDFLAGS="-Wl,-z,relro -Wall -Werror" 12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12412/* end confdefs.h. */ 12413 12414 #include <stdio.h> 12415 12416int 12417main () 12418{ 12419printf("Hello") 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424if ac_fn_c_try_link "$LINENO"; then : 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12426$as_echo "yes" >&6; } 12427 LDFLAGS=$old_ldflags 12428 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro" 12429else 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12431$as_echo "no" >&6; } 12432 LDFLAGS=$old_ldflags 12433 12434fi 12435rm -f core conftest.err conftest.$ac_objext \ 12436 conftest$ac_exeext conftest.$ac_ext 12437 12438 12439 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_LD supports \"-Wl,-z,now\"" >&5 12441$as_echo_n "checking if $saved_LD supports \"-Wl,-z,now\"... " >&6; } 12442 old_ldflags="$LDFLAGS" 12443 LDFLAGS="-Wl,-z,now -Wall -Werror" 12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12445/* end confdefs.h. */ 12446 12447 #include <stdio.h> 12448 12449int 12450main () 12451{ 12452printf("Hello") 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457if ac_fn_c_try_link "$LINENO"; then : 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12459$as_echo "yes" >&6; } 12460 LDFLAGS=$old_ldflags 12461 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now" 12462else 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12464$as_echo "no" >&6; } 12465 LDFLAGS=$old_ldflags 12466 12467fi 12468rm -f core conftest.err conftest.$ac_objext \ 12469 conftest$ac_exeext conftest.$ac_ext 12470 12471 12472 # Windows security flags 12473 if test "x$HOST_OS" = "xwin"; then : 12474 12475 12476 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_LD supports \"-Wl,--nxcompat\"" >&5 12478$as_echo_n "checking if $saved_LD supports \"-Wl,--nxcompat\"... " >&6; } 12479 old_ldflags="$LDFLAGS" 12480 LDFLAGS="-Wl,--nxcompat -Wall -Werror" 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12482/* end confdefs.h. */ 12483 12484 #include <stdio.h> 12485 12486int 12487main () 12488{ 12489printf("Hello") 12490 ; 12491 return 0; 12492} 12493_ACEOF 12494if ac_fn_c_try_link "$LINENO"; then : 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12496$as_echo "yes" >&6; } 12497 LDFLAGS=$old_ldflags 12498 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,--nxcompat" 12499else 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12501$as_echo "no" >&6; } 12502 LDFLAGS=$old_ldflags 12503 12504fi 12505rm -f core conftest.err conftest.$ac_objext \ 12506 conftest$ac_exeext conftest.$ac_ext 12507 12508 12509 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_LD supports \"-Wl,--dynamicbase\"" >&5 12511$as_echo_n "checking if $saved_LD supports \"-Wl,--dynamicbase\"... " >&6; } 12512 old_ldflags="$LDFLAGS" 12513 LDFLAGS="-Wl,--dynamicbase -Wall -Werror" 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517 #include <stdio.h> 12518 12519int 12520main () 12521{ 12522printf("Hello") 12523 ; 12524 return 0; 12525} 12526_ACEOF 12527if ac_fn_c_try_link "$LINENO"; then : 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12529$as_echo "yes" >&6; } 12530 LDFLAGS=$old_ldflags 12531 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,--dynamicbase" 12532else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534$as_echo "no" >&6; } 12535 LDFLAGS=$old_ldflags 12536 12537fi 12538rm -f core conftest.err conftest.$ac_objext \ 12539 conftest$ac_exeext conftest.$ac_ext 12540 12541 12542 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_LD supports \"-Wl,--high-entropy-va\"" >&5 12544$as_echo_n "checking if $saved_LD supports \"-Wl,--high-entropy-va\"... " >&6; } 12545 old_ldflags="$LDFLAGS" 12546 LDFLAGS="-Wl,--high-entropy-va -Wall -Werror" 12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12548/* end confdefs.h. */ 12549 12550 #include <stdio.h> 12551 12552int 12553main () 12554{ 12555printf("Hello") 12556 ; 12557 return 0; 12558} 12559_ACEOF 12560if ac_fn_c_try_link "$LINENO"; then : 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12562$as_echo "yes" >&6; } 12563 LDFLAGS=$old_ldflags 12564 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,--high-entropy-va" 12565else 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12567$as_echo "no" >&6; } 12568 LDFLAGS=$old_ldflags 12569 12570fi 12571rm -f core conftest.err conftest.$ac_objext \ 12572 conftest$ac_exeext conftest.$ac_ext 12573 12574 12575fi 12576 12577 # Use stack-protector-strong if available; if not, fallback to 12578 # stack-protector-all which is considered to be overkill 12579 if test "x$enable_windows_ssp" = "xyes" -o "x$HOST_OS" != "xwin"; then : 12580 12581 12582 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_CC supports \"-fstack-protector-strong\"" >&5 12584$as_echo_n "checking if $saved_CC supports \"-fstack-protector-strong\"... " >&6; } 12585 old_cflags="$CFLAGS" 12586 CFLAGS="-fstack-protector-strong -Wall -Werror" 12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12588/* end confdefs.h. */ 12589 12590 #include <stdio.h> 12591 12592int 12593main () 12594{ 12595printf("Hello") 12596 ; 12597 return 0; 12598} 12599_ACEOF 12600if ac_fn_c_try_link "$LINENO"; then : 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12602$as_echo "yes" >&6; } 12603 CFLAGS=$old_cflags 12604 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-strong" 12605else 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12607$as_echo "no" >&6; } 12608 CFLAGS=$old_cflags 12609 12610 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $saved_CC supports \"-fstack-protector-all\"" >&5 12612$as_echo_n "checking if $saved_CC supports \"-fstack-protector-all\"... " >&6; } 12613 old_cflags="$CFLAGS" 12614 CFLAGS="-fstack-protector-all -Wall -Werror" 12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12616/* end confdefs.h. */ 12617 12618 #include <stdio.h> 12619 12620int 12621main () 12622{ 12623printf("Hello") 12624 ; 12625 return 0; 12626} 12627_ACEOF 12628if ac_fn_c_try_link "$LINENO"; then : 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12630$as_echo "yes" >&6; } 12631 CFLAGS=$old_cflags 12632 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all" 12633else 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12635$as_echo "no" >&6; } 12636 CFLAGS=$old_cflags 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler does not appear to support stack protection" >&5 12638$as_echo "$as_me: WARNING: compiler does not appear to support stack protection" >&2;} 12639 12640fi 12641rm -f core conftest.err conftest.$ac_objext \ 12642 conftest$ac_exeext conftest.$ac_ext 12643 12644 12645fi 12646rm -f core conftest.err conftest.$ac_objext \ 12647 conftest$ac_exeext conftest.$ac_ext 12648 12649 if test "x$HOST_OS" = "xwin"; then : 12650 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __stack_chk_guard" >&5 12652$as_echo_n "checking for library containing __stack_chk_guard... " >&6; } 12653if ${ac_cv_search___stack_chk_guard+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 ac_func_search_save_LIBS=$LIBS 12657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659 12660/* Override any GCC internal prototype to avoid an error. 12661 Use char because int might match the return type of a GCC 12662 builtin and then its argument prototype would still apply. */ 12663#ifdef __cplusplus 12664extern "C" 12665#endif 12666char __stack_chk_guard (); 12667int 12668main () 12669{ 12670return __stack_chk_guard (); 12671 ; 12672 return 0; 12673} 12674_ACEOF 12675for ac_lib in '' ssp; do 12676 if test -z "$ac_lib"; then 12677 ac_res="none required" 12678 else 12679 ac_res=-l$ac_lib 12680 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12681 fi 12682 if ac_fn_c_try_link "$LINENO"; then : 12683 ac_cv_search___stack_chk_guard=$ac_res 12684fi 12685rm -f core conftest.err conftest.$ac_objext \ 12686 conftest$ac_exeext 12687 if ${ac_cv_search___stack_chk_guard+:} false; then : 12688 break 12689fi 12690done 12691if ${ac_cv_search___stack_chk_guard+:} false; then : 12692 12693else 12694 ac_cv_search___stack_chk_guard=no 12695fi 12696rm conftest.$ac_ext 12697LIBS=$ac_func_search_save_LIBS 12698fi 12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___stack_chk_guard" >&5 12700$as_echo "$ac_cv_search___stack_chk_guard" >&6; } 12701ac_res=$ac_cv_search___stack_chk_guard 12702if test "$ac_res" != no; then : 12703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12704 12705fi 12706 12707 12708fi 12709 12710fi 12711 12712fi 12713 12714 # Restore CC, LD 12715 CC="$saved_CC" 12716 LD="$saved_LD" 12717 12718 CFLAGS="$CFLAGS $HARDEN_CFLAGS" 12719 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS" 12720 12721 12722 12723 save_cflags="$CFLAGS" 12724 CFLAGS= 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AS supports .note.GNU-stack" >&5 12726$as_echo_n "checking whether AS supports .note.GNU-stack... " >&6; } 12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729 12730 __asm__(".section .note.GNU-stack,\"\",@progbits"); 12731int 12732main () 12733{ 12734 12735 ; 12736 return 0; 12737} 12738_ACEOF 12739if ac_fn_c_try_compile "$LINENO"; then : 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12741$as_echo "yes" >&6; } 12742 AM_CFLAGS=-DHAVE_GNU_STACK 12743else 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12745$as_echo "no" >&6; } 12746 12747fi 12748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12749 CFLAGS="$save_cflags $AM_CFLAGS" 12750 12751# By default we simply use the C compiler to build assembly code. 12752 12753test "${CCAS+set}" = set || CCAS=$CC 12754test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 12755 12756 12757 12758depcc="$CCAS" am_compiler_list= 12759 12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12761$as_echo_n "checking dependency style of $depcc... " >&6; } 12762if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12766 # We make a subdir and do the tests there. Otherwise we can end up 12767 # making bogus files that we don't know about and never remove. For 12768 # instance it was reported that on HP-UX the gcc test will end up 12769 # making a dummy file named 'D' -- because '-MD' means "put the output 12770 # in D". 12771 rm -rf conftest.dir 12772 mkdir conftest.dir 12773 # Copy depcomp to subdir because otherwise we won't find it if we're 12774 # using a relative directory. 12775 cp "$am_depcomp" conftest.dir 12776 cd conftest.dir 12777 # We will build objects and dependencies in a subdirectory because 12778 # it helps to detect inapplicable dependency modes. For instance 12779 # both Tru64's cc and ICC support -MD to output dependencies as a 12780 # side effect of compilation, but ICC will put the dependencies in 12781 # the current directory while Tru64 will put them in the object 12782 # directory. 12783 mkdir sub 12784 12785 am_cv_CCAS_dependencies_compiler_type=none 12786 if test "$am_compiler_list" = ""; then 12787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12788 fi 12789 am__universal=false 12790 12791 12792 for depmode in $am_compiler_list; do 12793 # Setup a source with many dependencies, because some compilers 12794 # like to wrap large dependency lists on column 80 (with \), and 12795 # we should not choose a depcomp mode which is confused by this. 12796 # 12797 # We need to recreate these files for each test, as the compiler may 12798 # overwrite some of them when testing with obscure command lines. 12799 # This happens at least with the AIX C compiler. 12800 : > sub/conftest.c 12801 for i in 1 2 3 4 5 6; do 12802 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12803 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12804 # Solaris 10 /bin/sh. 12805 echo '/* dummy */' > sub/conftst$i.h 12806 done 12807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12808 12809 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12810 # mode. It turns out that the SunPro C++ compiler does not properly 12811 # handle '-M -o', and we need to detect this. Also, some Intel 12812 # versions had trouble with output in subdirs. 12813 am__obj=sub/conftest.${OBJEXT-o} 12814 am__minus_obj="-o $am__obj" 12815 case $depmode in 12816 gcc) 12817 # This depmode causes a compiler race in universal mode. 12818 test "$am__universal" = false || continue 12819 ;; 12820 nosideeffect) 12821 # After this tag, mechanisms are not by side-effect, so they'll 12822 # only be used when explicitly requested. 12823 if test "x$enable_dependency_tracking" = xyes; then 12824 continue 12825 else 12826 break 12827 fi 12828 ;; 12829 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12830 # This compiler won't grok '-c -o', but also, the minuso test has 12831 # not run yet. These depmodes are late enough in the game, and 12832 # so weak that their functioning should not be impacted. 12833 am__obj=conftest.${OBJEXT-o} 12834 am__minus_obj= 12835 ;; 12836 none) break ;; 12837 esac 12838 if depmode=$depmode \ 12839 source=sub/conftest.c object=$am__obj \ 12840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12841 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12842 >/dev/null 2>conftest.err && 12843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12845 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12847 # icc doesn't choke on unknown options, it will just issue warnings 12848 # or remarks (even with -Werror). So we grep stderr for any message 12849 # that says an option was ignored or not supported. 12850 # When given -MP, icc 7.0 and 7.1 complain thusly: 12851 # icc: Command line warning: ignoring option '-M'; no argument required 12852 # The diagnosis changed in icc 8.0: 12853 # icc: Command line remark: option '-MP' not supported 12854 if (grep 'ignoring option' conftest.err || 12855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12856 am_cv_CCAS_dependencies_compiler_type=$depmode 12857 break 12858 fi 12859 fi 12860 done 12861 12862 cd .. 12863 rm -rf conftest.dir 12864else 12865 am_cv_CCAS_dependencies_compiler_type=none 12866fi 12867 12868fi 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 12870$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 12871CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 12872 12873 if 12874 test "x$enable_dependency_tracking" != xno \ 12875 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 12876 am__fastdepCCAS_TRUE= 12877 am__fastdepCCAS_FALSE='#' 12878else 12879 am__fastdepCCAS_TRUE='#' 12880 am__fastdepCCAS_FALSE= 12881fi 12882 12883 12884 12885 12886# Clang throws a lot of warnings when it does not understand a flag. Disable 12887# this warning for now so other warnings are visible. 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5 12889$as_echo_n "checking if compiling with clang... " >&6; } 12890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12891/* end confdefs.h. */ 12892 12893int 12894main () 12895{ 12896 12897#ifndef __clang__ 12898 not clang 12899#endif 12900 12901 ; 12902 return 0; 12903} 12904_ACEOF 12905if ac_fn_c_try_compile "$LINENO"; then : 12906 CLANG=yes 12907else 12908 CLANG=no 12909 12910fi 12911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5 12913$as_echo "$CLANG" >&6; } 12914if test "x$CLANG" = "xyes"; then : 12915 CLANG_FLAGS=-Qunused-arguments 12916fi 12917CFLAGS="$CFLAGS $CLANG_FLAGS" 12918LDFLAGS="$LDFLAGS $CLANG_FLAGS" 12919 12920# Removing the dependency on -Wno-pointer-sign should be a goal. These are 12921# largely unsigned char */char* mismatches in asn1 functions. 12922save_cflags="$CFLAGS" 12923CFLAGS=-Wno-pointer-sign 12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-pointer-sign" >&5 12925$as_echo_n "checking whether CC supports -Wno-pointer-sign... " >&6; } 12926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12927/* end confdefs.h. */ 12928 12929int 12930main () 12931{ 12932 12933 ; 12934 return 0; 12935} 12936_ACEOF 12937if ac_fn_c_try_compile "$LINENO"; then : 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12939$as_echo "yes" >&6; } 12940 AM_CFLAGS=-Wno-pointer-sign 12941else 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12943$as_echo "no" >&6; } 12944 12945fi 12946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12947CFLAGS="$save_cflags $AM_CFLAGS" 12948 12949 12950# Check if the certhash command should be built 12951for ac_func in symlink 12952do : 12953 ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink" 12954if test "x$ac_cv_func_symlink" = xyes; then : 12955 cat >>confdefs.h <<_ACEOF 12956#define HAVE_SYMLINK 1 12957_ACEOF 12958 12959fi 12960done 12961 12962 if test "x$ac_cv_func_symlink" = xyes; then 12963 BUILD_CERTHASH_TRUE= 12964 BUILD_CERTHASH_FALSE='#' 12965else 12966 BUILD_CERTHASH_TRUE='#' 12967 BUILD_CERTHASH_FALSE= 12968fi 12969 12970 12971# Check if funopen exists 12972ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen" 12973if test "x$ac_cv_func_funopen" = xyes; then : 12974 12975fi 12976 12977 12978 12979# Check for libc headers 12980for ac_header in err.h readpassphrase.h 12981do : 12982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12985 cat >>confdefs.h <<_ACEOF 12986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12987_ACEOF 12988 12989fi 12990 12991done 12992 12993# Check for general libc functions 12994for ac_func in asprintf freezero memmem 12995do : 12996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12998if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12999 cat >>confdefs.h <<_ACEOF 13000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13001_ACEOF 13002 13003fi 13004done 13005 13006for ac_func in readpassphrase reallocarray recallocarray 13007do : 13008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13010if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13011 cat >>confdefs.h <<_ACEOF 13012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13013_ACEOF 13014 13015fi 13016done 13017 13018for ac_func in strlcat strlcpy strndup strnlen strsep strtonum 13019do : 13020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13022if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13023 cat >>confdefs.h <<_ACEOF 13024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13025_ACEOF 13026 13027fi 13028done 13029 13030for ac_func in timegm _mkgmtime timespecsub 13031do : 13032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13034if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13035 cat >>confdefs.h <<_ACEOF 13036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13037_ACEOF 13038 13039fi 13040done 13041 13042for ac_func in getprogname syslog syslog_r 13043do : 13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13046if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13047 cat >>confdefs.h <<_ACEOF 13048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13049_ACEOF 13050 13051fi 13052done 13053 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 13055$as_echo_n "checking for getpagesize... " >&6; } 13056if ${ac_cv_func_getpagesize+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13061/* end confdefs.h. */ 13062 13063// Since Android NDK v16 getpagesize is defined as inline inside unistd.h 13064#ifdef __ANDROID__ 13065# include <unistd.h> 13066#endif 13067 13068int 13069main () 13070{ 13071 13072 getpagesize(); 13073 13074 ; 13075 return 0; 13076} 13077_ACEOF 13078if ac_fn_c_try_link "$LINENO"; then : 13079 ac_cv_func_getpagesize="yes" 13080else 13081 ac_cv_func_getpagesize="no" 13082 13083fi 13084rm -f core conftest.err conftest.$ac_objext \ 13085 conftest$ac_exeext conftest.$ac_ext 13086 13087fi 13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5 13089$as_echo "$ac_cv_func_getpagesize" >&6; } 13090 if test "x$ac_cv_func_asprintf" = xyes; then 13091 HAVE_ASPRINTF_TRUE= 13092 HAVE_ASPRINTF_FALSE='#' 13093else 13094 HAVE_ASPRINTF_TRUE='#' 13095 HAVE_ASPRINTF_FALSE= 13096fi 13097 13098 if test "x$ac_cv_func_freezero" = xyes; then 13099 HAVE_FREEZERO_TRUE= 13100 HAVE_FREEZERO_FALSE='#' 13101else 13102 HAVE_FREEZERO_TRUE='#' 13103 HAVE_FREEZERO_FALSE= 13104fi 13105 13106 if test "x$ac_cv_func_getpagesize" = xyes; then 13107 HAVE_GETPAGESIZE_TRUE= 13108 HAVE_GETPAGESIZE_FALSE='#' 13109else 13110 HAVE_GETPAGESIZE_TRUE='#' 13111 HAVE_GETPAGESIZE_FALSE= 13112fi 13113 13114 if test "x$ac_cv_func_memmem" = xyes; then 13115 HAVE_MEMMEM_TRUE= 13116 HAVE_MEMMEM_FALSE='#' 13117else 13118 HAVE_MEMMEM_TRUE='#' 13119 HAVE_MEMMEM_FALSE= 13120fi 13121 13122 if test "x$ac_cv_func_readpassphrase" = xyes; then 13123 HAVE_READPASSPHRASE_TRUE= 13124 HAVE_READPASSPHRASE_FALSE='#' 13125else 13126 HAVE_READPASSPHRASE_TRUE='#' 13127 HAVE_READPASSPHRASE_FALSE= 13128fi 13129 13130 if test "x$ac_cv_func_reallocarray" = xyes; then 13131 HAVE_REALLOCARRAY_TRUE= 13132 HAVE_REALLOCARRAY_FALSE='#' 13133else 13134 HAVE_REALLOCARRAY_TRUE='#' 13135 HAVE_REALLOCARRAY_FALSE= 13136fi 13137 13138 if test "x$ac_cv_func_recallocarray" = xyes; then 13139 HAVE_RECALLOCARRAY_TRUE= 13140 HAVE_RECALLOCARRAY_FALSE='#' 13141else 13142 HAVE_RECALLOCARRAY_TRUE='#' 13143 HAVE_RECALLOCARRAY_FALSE= 13144fi 13145 13146 if test "x$ac_cv_func_strlcat" = xyes; then 13147 HAVE_STRLCAT_TRUE= 13148 HAVE_STRLCAT_FALSE='#' 13149else 13150 HAVE_STRLCAT_TRUE='#' 13151 HAVE_STRLCAT_FALSE= 13152fi 13153 13154 if test "x$ac_cv_func_strlcpy" = xyes; then 13155 HAVE_STRLCPY_TRUE= 13156 HAVE_STRLCPY_FALSE='#' 13157else 13158 HAVE_STRLCPY_TRUE='#' 13159 HAVE_STRLCPY_FALSE= 13160fi 13161 13162 if test "x$ac_cv_func_strndup" = xyes; then 13163 HAVE_STRNDUP_TRUE= 13164 HAVE_STRNDUP_FALSE='#' 13165else 13166 HAVE_STRNDUP_TRUE='#' 13167 HAVE_STRNDUP_FALSE= 13168fi 13169 13170 if test "x$ac_cv_func_strnlen" = xyes; then 13171 HAVE_STRNLEN_TRUE= 13172 HAVE_STRNLEN_FALSE='#' 13173else 13174 HAVE_STRNLEN_TRUE='#' 13175 HAVE_STRNLEN_FALSE= 13176fi 13177 13178 if test "x$ac_cv_func_strsep" = xyes; then 13179 HAVE_STRSEP_TRUE= 13180 HAVE_STRSEP_FALSE='#' 13181else 13182 HAVE_STRSEP_TRUE='#' 13183 HAVE_STRSEP_FALSE= 13184fi 13185 13186 if test "x$ac_cv_func_strtonum" = xyes; then 13187 HAVE_STRTONUM_TRUE= 13188 HAVE_STRTONUM_FALSE='#' 13189else 13190 HAVE_STRTONUM_TRUE='#' 13191 HAVE_STRTONUM_FALSE= 13192fi 13193 13194 if test "x$ac_cv_func_timegm" = xyes; then 13195 HAVE_TIMEGM_TRUE= 13196 HAVE_TIMEGM_FALSE='#' 13197else 13198 HAVE_TIMEGM_TRUE='#' 13199 HAVE_TIMEGM_FALSE= 13200fi 13201 13202 if test "x$ac_cv_func_getprogname" = xyes; then 13203 HAVE_GETPROGNAME_TRUE= 13204 HAVE_GETPROGNAME_FALSE='#' 13205else 13206 HAVE_GETPROGNAME_TRUE='#' 13207 HAVE_GETPROGNAME_FALSE= 13208fi 13209 13210 if test "x$ac_cv_func_syslog" = xyes; then 13211 HAVE_SYSLOG_TRUE= 13212 HAVE_SYSLOG_FALSE='#' 13213else 13214 HAVE_SYSLOG_TRUE='#' 13215 HAVE_SYSLOG_FALSE= 13216fi 13217 13218 if test "x$ac_cv_func_syslog_r" = xyes; then 13219 HAVE_SYSLOG_R_TRUE= 13220 HAVE_SYSLOG_R_FALSE='#' 13221else 13222 HAVE_SYSLOG_R_TRUE='#' 13223 HAVE_SYSLOG_R_FALSE= 13224fi 13225 13226 13227 13228for ac_func in accept4 pipe2 pledge poll socketpair 13229do : 13230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13232if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13233 cat >>confdefs.h <<_ACEOF 13234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13235_ACEOF 13236 13237fi 13238done 13239 13240 if test "x$ac_cv_func_accept4" = xyes; then 13241 HAVE_ACCEPT4_TRUE= 13242 HAVE_ACCEPT4_FALSE='#' 13243else 13244 HAVE_ACCEPT4_TRUE='#' 13245 HAVE_ACCEPT4_FALSE= 13246fi 13247 13248 if test "x$ac_cv_func_pipe2" = xyes; then 13249 HAVE_PIPE2_TRUE= 13250 HAVE_PIPE2_FALSE='#' 13251else 13252 HAVE_PIPE2_TRUE='#' 13253 HAVE_PIPE2_FALSE= 13254fi 13255 13256 if test "x$ac_cv_func_pledge" = xyes; then 13257 HAVE_PLEDGE_TRUE= 13258 HAVE_PLEDGE_FALSE='#' 13259else 13260 HAVE_PLEDGE_TRUE='#' 13261 HAVE_PLEDGE_FALSE= 13262fi 13263 13264 if test "x$ac_cv_func_poll" = xyes; then 13265 HAVE_POLL_TRUE= 13266 HAVE_POLL_FALSE='#' 13267else 13268 HAVE_POLL_TRUE='#' 13269 HAVE_POLL_FALSE= 13270fi 13271 13272 if test "x$ac_cv_func_socketpair" = xyes; then 13273 HAVE_SOCKETPAIR_TRUE= 13274 HAVE_SOCKETPAIR_FALSE='#' 13275else 13276 HAVE_SOCKETPAIR_TRUE='#' 13277 HAVE_SOCKETPAIR_FALSE= 13278fi 13279 13280 13281 13282# Check crypto-related libc functions and syscalls 13283for ac_func in arc4random arc4random_buf arc4random_uniform 13284do : 13285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13287if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13288 cat >>confdefs.h <<_ACEOF 13289#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13290_ACEOF 13291 13292fi 13293done 13294 13295for ac_func in explicit_bzero getauxval 13296do : 13297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13299if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13300 cat >>confdefs.h <<_ACEOF 13301#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13302_ACEOF 13303 13304fi 13305done 13306 13307 13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5 13309$as_echo_n "checking for getentropy... " >&6; } 13310if ${ac_cv_func_getentropy+:} false; then : 13311 $as_echo_n "(cached) " >&6 13312else 13313 13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316 13317#include <sys/types.h> 13318#include <unistd.h> 13319 13320/* 13321 * Explanation: 13322 * 13323 * - iOS <= 10.1 fails because of missing sys/random.h 13324 * 13325 * - in macOS 10.12 getentropy is not tagged as introduced in 13326 * 10.12 so we cannot use it for target < 10.12 13327 */ 13328#ifdef __APPLE__ 13329# include <AvailabilityMacros.h> 13330# include <TargetConditionals.h> 13331 13332# if (TARGET_OS_IPHONE || TARGET_OS_SIMULATOR) 13333# include <sys/random.h> /* Not available as of iOS <= 10.1 */ 13334# else 13335 13336# include <sys/random.h> /* Pre 10.12 systems should die here */ 13337 13338/* Based on: https://gitweb.torproject.org/tor.git/commit/?id=16fcbd21 */ 13339# ifndef MAC_OS_X_VERSION_10_12 13340# define MAC_OS_X_VERSION_10_12 101200 /* Robustness */ 13341# endif 13342# if defined(MAC_OS_X_VERSION_MIN_REQUIRED) 13343# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 13344# error "Targeting on Mac OSX 10.11 or earlier" 13345# endif 13346# endif 13347 13348# endif 13349#endif /* __APPLE__ */ 13350 13351int 13352main () 13353{ 13354 13355 char buffer; 13356 (void)getentropy(&buffer, sizeof (buffer)); 13357 13358 ; 13359 return 0; 13360} 13361_ACEOF 13362if ac_fn_c_try_link "$LINENO"; then : 13363 ac_cv_func_getentropy="yes" 13364else 13365 ac_cv_func_getentropy="no" 13366 13367fi 13368rm -f core conftest.err conftest.$ac_objext \ 13369 conftest$ac_exeext conftest.$ac_ext 13370 13371fi 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getentropy" >&5 13373$as_echo "$ac_cv_func_getentropy" >&6; } 13374 13375for ac_func in timingsafe_bcmp timingsafe_memcmp 13376do : 13377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13379if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13380 cat >>confdefs.h <<_ACEOF 13381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13382_ACEOF 13383 13384fi 13385done 13386 13387 if test "x$ac_cv_func_arc4random" = xyes; then 13388 HAVE_ARC4RANDOM_TRUE= 13389 HAVE_ARC4RANDOM_FALSE='#' 13390else 13391 HAVE_ARC4RANDOM_TRUE='#' 13392 HAVE_ARC4RANDOM_FALSE= 13393fi 13394 13395 if test "x$ac_cv_func_arc4random_buf" = xyes; then 13396 HAVE_ARC4RANDOM_BUF_TRUE= 13397 HAVE_ARC4RANDOM_BUF_FALSE='#' 13398else 13399 HAVE_ARC4RANDOM_BUF_TRUE='#' 13400 HAVE_ARC4RANDOM_BUF_FALSE= 13401fi 13402 13403 if test "x$ac_cv_func_arc4random_uniform" = xyes; then 13404 HAVE_ARC4RANDOM_UNIFORM_TRUE= 13405 HAVE_ARC4RANDOM_UNIFORM_FALSE='#' 13406else 13407 HAVE_ARC4RANDOM_UNIFORM_TRUE='#' 13408 HAVE_ARC4RANDOM_UNIFORM_FALSE= 13409fi 13410 13411 if test "x$ac_cv_func_explicit_bzero" = xyes; then 13412 HAVE_EXPLICIT_BZERO_TRUE= 13413 HAVE_EXPLICIT_BZERO_FALSE='#' 13414else 13415 HAVE_EXPLICIT_BZERO_TRUE='#' 13416 HAVE_EXPLICIT_BZERO_FALSE= 13417fi 13418 13419 if test "x$ac_cv_func_getentropy" = xyes; then 13420 HAVE_GETENTROPY_TRUE= 13421 HAVE_GETENTROPY_FALSE='#' 13422else 13423 HAVE_GETENTROPY_TRUE='#' 13424 HAVE_GETENTROPY_FALSE= 13425fi 13426 13427 if test "x$ac_cv_func_timingsafe_bcmp" = xyes; then 13428 HAVE_TIMINGSAFE_BCMP_TRUE= 13429 HAVE_TIMINGSAFE_BCMP_FALSE='#' 13430else 13431 HAVE_TIMINGSAFE_BCMP_TRUE='#' 13432 HAVE_TIMINGSAFE_BCMP_FALSE= 13433fi 13434 13435 if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then 13436 HAVE_TIMINGSAFE_MEMCMP_TRUE= 13437 HAVE_TIMINGSAFE_MEMCMP_FALSE='#' 13438else 13439 HAVE_TIMINGSAFE_MEMCMP_TRUE='#' 13440 HAVE_TIMINGSAFE_MEMCMP_FALSE= 13441fi 13442 13443 13444# Override arc4random_buf implementations with known issues 13445 if test "x$USE_BUILTIN_ARC4RANDOM" != xyes \ 13446 -a "x$ac_cv_func_arc4random_buf" = xyes; then 13447 HAVE_ARC4RANDOM_BUF_TRUE= 13448 HAVE_ARC4RANDOM_BUF_FALSE='#' 13449else 13450 HAVE_ARC4RANDOM_BUF_TRUE='#' 13451 HAVE_ARC4RANDOM_BUF_FALSE= 13452fi 13453 13454 13455# Check for getentropy fallback dependencies 13456for ac_func in getauxval 13457do : 13458 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 13459if test "x$ac_cv_func_getauxval" = xyes; then : 13460 cat >>confdefs.h <<_ACEOF 13461#define HAVE_GETAUXVAL 1 13462_ACEOF 13463 13464fi 13465done 13466 13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dl_iterate_phdr" >&5 13468$as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } 13469if ${ac_cv_search_dl_iterate_phdr+:} false; then : 13470 $as_echo_n "(cached) " >&6 13471else 13472 ac_func_search_save_LIBS=$LIBS 13473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475 13476/* Override any GCC internal prototype to avoid an error. 13477 Use char because int might match the return type of a GCC 13478 builtin and then its argument prototype would still apply. */ 13479#ifdef __cplusplus 13480extern "C" 13481#endif 13482char dl_iterate_phdr (); 13483int 13484main () 13485{ 13486return dl_iterate_phdr (); 13487 ; 13488 return 0; 13489} 13490_ACEOF 13491for ac_lib in '' dl; do 13492 if test -z "$ac_lib"; then 13493 ac_res="none required" 13494 else 13495 ac_res=-l$ac_lib 13496 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13497 fi 13498 if ac_fn_c_try_link "$LINENO"; then : 13499 ac_cv_search_dl_iterate_phdr=$ac_res 13500fi 13501rm -f core conftest.err conftest.$ac_objext \ 13502 conftest$ac_exeext 13503 if ${ac_cv_search_dl_iterate_phdr+:} false; then : 13504 break 13505fi 13506done 13507if ${ac_cv_search_dl_iterate_phdr+:} false; then : 13508 13509else 13510 ac_cv_search_dl_iterate_phdr=no 13511fi 13512rm conftest.$ac_ext 13513LIBS=$ac_func_search_save_LIBS 13514fi 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 13516$as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } 13517ac_res=$ac_cv_search_dl_iterate_phdr 13518if test "$ac_res" != no; then : 13519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13520 13521fi 13522 13523for ac_func in dl_iterate_phdr 13524do : 13525 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" 13526if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then : 13527 cat >>confdefs.h <<_ACEOF 13528#define HAVE_DL_ITERATE_PHDR 1 13529_ACEOF 13530 13531fi 13532done 13533 13534 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_once" >&5 13536$as_echo_n "checking for library containing pthread_once... " >&6; } 13537if ${ac_cv_search_pthread_once+:} false; then : 13538 $as_echo_n "(cached) " >&6 13539else 13540 ac_func_search_save_LIBS=$LIBS 13541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543 13544/* Override any GCC internal prototype to avoid an error. 13545 Use char because int might match the return type of a GCC 13546 builtin and then its argument prototype would still apply. */ 13547#ifdef __cplusplus 13548extern "C" 13549#endif 13550char pthread_once (); 13551int 13552main () 13553{ 13554return pthread_once (); 13555 ; 13556 return 0; 13557} 13558_ACEOF 13559for ac_lib in '' pthread; do 13560 if test -z "$ac_lib"; then 13561 ac_res="none required" 13562 else 13563 ac_res=-l$ac_lib 13564 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13565 fi 13566 if ac_fn_c_try_link "$LINENO"; then : 13567 ac_cv_search_pthread_once=$ac_res 13568fi 13569rm -f core conftest.err conftest.$ac_objext \ 13570 conftest$ac_exeext 13571 if ${ac_cv_search_pthread_once+:} false; then : 13572 break 13573fi 13574done 13575if ${ac_cv_search_pthread_once+:} false; then : 13576 13577else 13578 ac_cv_search_pthread_once=no 13579fi 13580rm conftest.$ac_ext 13581LIBS=$ac_func_search_save_LIBS 13582fi 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_once" >&5 13584$as_echo "$ac_cv_search_pthread_once" >&6; } 13585ac_res=$ac_cv_search_pthread_once 13586if test "$ac_res" != no; then : 13587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13588 13589fi 13590 13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5 13592$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } 13593if ${ac_cv_search_pthread_mutex_lock+:} false; then : 13594 $as_echo_n "(cached) " >&6 13595else 13596 ac_func_search_save_LIBS=$LIBS 13597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599 13600/* Override any GCC internal prototype to avoid an error. 13601 Use char because int might match the return type of a GCC 13602 builtin and then its argument prototype would still apply. */ 13603#ifdef __cplusplus 13604extern "C" 13605#endif 13606char pthread_mutex_lock (); 13607int 13608main () 13609{ 13610return pthread_mutex_lock (); 13611 ; 13612 return 0; 13613} 13614_ACEOF 13615for ac_lib in '' pthread; do 13616 if test -z "$ac_lib"; then 13617 ac_res="none required" 13618 else 13619 ac_res=-l$ac_lib 13620 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13621 fi 13622 if ac_fn_c_try_link "$LINENO"; then : 13623 ac_cv_search_pthread_mutex_lock=$ac_res 13624fi 13625rm -f core conftest.err conftest.$ac_objext \ 13626 conftest$ac_exeext 13627 if ${ac_cv_search_pthread_mutex_lock+:} false; then : 13628 break 13629fi 13630done 13631if ${ac_cv_search_pthread_mutex_lock+:} false; then : 13632 13633else 13634 ac_cv_search_pthread_mutex_lock=no 13635fi 13636rm conftest.$ac_ext 13637LIBS=$ac_func_search_save_LIBS 13638fi 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5 13640$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } 13641ac_res=$ac_cv_search_pthread_mutex_lock 13642if test "$ac_res" != no; then : 13643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13644 13645fi 13646 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13648$as_echo_n "checking for library containing clock_gettime... " >&6; } 13649if ${ac_cv_search_clock_gettime+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 ac_func_search_save_LIBS=$LIBS 13653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655 13656/* Override any GCC internal prototype to avoid an error. 13657 Use char because int might match the return type of a GCC 13658 builtin and then its argument prototype would still apply. */ 13659#ifdef __cplusplus 13660extern "C" 13661#endif 13662char clock_gettime (); 13663int 13664main () 13665{ 13666return clock_gettime (); 13667 ; 13668 return 0; 13669} 13670_ACEOF 13671for ac_lib in '' rt posix4; do 13672 if test -z "$ac_lib"; then 13673 ac_res="none required" 13674 else 13675 ac_res=-l$ac_lib 13676 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13677 fi 13678 if ac_fn_c_try_link "$LINENO"; then : 13679 ac_cv_search_clock_gettime=$ac_res 13680fi 13681rm -f core conftest.err conftest.$ac_objext \ 13682 conftest$ac_exeext 13683 if ${ac_cv_search_clock_gettime+:} false; then : 13684 break 13685fi 13686done 13687if ${ac_cv_search_clock_gettime+:} false; then : 13688 13689else 13690 ac_cv_search_clock_gettime=no 13691fi 13692rm conftest.$ac_ext 13693LIBS=$ac_func_search_save_LIBS 13694fi 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13696$as_echo "$ac_cv_search_clock_gettime" >&6; } 13697ac_res=$ac_cv_search_clock_gettime 13698if test "$ac_res" != no; then : 13699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13700 13701fi 13702 13703for ac_func in clock_gettime 13704do : 13705 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 13706if test "x$ac_cv_func_clock_gettime" = xyes; then : 13707 cat >>confdefs.h <<_ACEOF 13708#define HAVE_CLOCK_GETTIME 1 13709_ACEOF 13710 13711fi 13712done 13713 13714 if test "x$ac_cv_func_clock_gettime" = xyes; then 13715 HAVE_CLOCK_GETTIME_TRUE= 13716 HAVE_CLOCK_GETTIME_FALSE='#' 13717else 13718 HAVE_CLOCK_GETTIME_TRUE='#' 13719 HAVE_CLOCK_GETTIME_FALSE= 13720fi 13721 13722 13723 13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 13725$as_echo_n "checking whether va_copy exists... " >&6; } 13726if ${ac_cv_have_va_copy+:} false; then : 13727 $as_echo_n "(cached) " >&6 13728else 13729 13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13731/* end confdefs.h. */ 13732 13733#include <stdarg.h> 13734va_list x,y; 13735 13736int 13737main () 13738{ 13739 va_copy(x,y); 13740 ; 13741 return 0; 13742} 13743_ACEOF 13744if ac_fn_c_try_link "$LINENO"; then : 13745 ac_cv_have_va_copy="yes" 13746else 13747 ac_cv_have_va_copy="no" 13748 13749fi 13750rm -f core conftest.err conftest.$ac_objext \ 13751 conftest$ac_exeext conftest.$ac_ext 13752 13753fi 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 13755$as_echo "$ac_cv_have_va_copy" >&6; } 13756if test "x$ac_cv_have_va_copy" = "xyes" ; then 13757 13758$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 13759 13760fi 13761 13762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 13763$as_echo_n "checking whether __va_copy exists... " >&6; } 13764if ${ac_cv_have___va_copy+:} false; then : 13765 $as_echo_n "(cached) " >&6 13766else 13767 13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13769/* end confdefs.h. */ 13770 13771#include <stdarg.h> 13772va_list x,y; 13773 13774int 13775main () 13776{ 13777 __va_copy(x,y); 13778 ; 13779 return 0; 13780} 13781_ACEOF 13782if ac_fn_c_try_link "$LINENO"; then : 13783 ac_cv_have___va_copy="yes" 13784else 13785 ac_cv_have___va_copy="no" 13786 13787fi 13788rm -f core conftest.err conftest.$ac_objext \ 13789 conftest$ac_exeext conftest.$ac_ext 13790 13791fi 13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 13793$as_echo "$ac_cv_have___va_copy" >&6; } 13794if test "x$ac_cv_have___va_copy" = "xyes" ; then 13795 13796$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 13797 13798fi 13799 13800 13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing b64_ntop" >&5 13802$as_echo_n "checking for library containing b64_ntop... " >&6; } 13803if ${ac_cv_search_b64_ntop+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 ac_func_search_save_LIBS=$LIBS 13807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809 13810/* Override any GCC internal prototype to avoid an error. 13811 Use char because int might match the return type of a GCC 13812 builtin and then its argument prototype would still apply. */ 13813#ifdef __cplusplus 13814extern "C" 13815#endif 13816char b64_ntop (); 13817int 13818main () 13819{ 13820return b64_ntop (); 13821 ; 13822 return 0; 13823} 13824_ACEOF 13825for ac_lib in '' resolv; do 13826 if test -z "$ac_lib"; then 13827 ac_res="none required" 13828 else 13829 ac_res=-l$ac_lib 13830 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13831 fi 13832 if ac_fn_c_try_link "$LINENO"; then : 13833 ac_cv_search_b64_ntop=$ac_res 13834fi 13835rm -f core conftest.err conftest.$ac_objext \ 13836 conftest$ac_exeext 13837 if ${ac_cv_search_b64_ntop+:} false; then : 13838 break 13839fi 13840done 13841if ${ac_cv_search_b64_ntop+:} false; then : 13842 13843else 13844 ac_cv_search_b64_ntop=no 13845fi 13846rm conftest.$ac_ext 13847LIBS=$ac_func_search_save_LIBS 13848fi 13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_b64_ntop" >&5 13850$as_echo "$ac_cv_search_b64_ntop" >&6; } 13851ac_res=$ac_cv_search_b64_ntop 13852if test "$ac_res" != no; then : 13853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13854 13855fi 13856 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __b64_ntop" >&5 13858$as_echo_n "checking for library containing __b64_ntop... " >&6; } 13859if ${ac_cv_search___b64_ntop+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 ac_func_search_save_LIBS=$LIBS 13863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865 13866/* Override any GCC internal prototype to avoid an error. 13867 Use char because int might match the return type of a GCC 13868 builtin and then its argument prototype would still apply. */ 13869#ifdef __cplusplus 13870extern "C" 13871#endif 13872char __b64_ntop (); 13873int 13874main () 13875{ 13876return __b64_ntop (); 13877 ; 13878 return 0; 13879} 13880_ACEOF 13881for ac_lib in '' resolv; do 13882 if test -z "$ac_lib"; then 13883 ac_res="none required" 13884 else 13885 ac_res=-l$ac_lib 13886 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13887 fi 13888 if ac_fn_c_try_link "$LINENO"; then : 13889 ac_cv_search___b64_ntop=$ac_res 13890fi 13891rm -f core conftest.err conftest.$ac_objext \ 13892 conftest$ac_exeext 13893 if ${ac_cv_search___b64_ntop+:} false; then : 13894 break 13895fi 13896done 13897if ${ac_cv_search___b64_ntop+:} false; then : 13898 13899else 13900 ac_cv_search___b64_ntop=no 13901fi 13902rm conftest.$ac_ext 13903LIBS=$ac_func_search_save_LIBS 13904fi 13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___b64_ntop" >&5 13906$as_echo "$ac_cv_search___b64_ntop" >&6; } 13907ac_res=$ac_cv_search___b64_ntop 13908if test "$ac_res" != no; then : 13909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13910 13911fi 13912 13913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for b64_ntop" >&5 13914$as_echo_n "checking for b64_ntop... " >&6; } 13915if ${ac_cv_have_b64_ntop_arg+:} false; then : 13916 $as_echo_n "(cached) " >&6 13917else 13918 13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13920/* end confdefs.h. */ 13921 13922#include <sys/types.h> 13923#include <sys/socket.h> 13924#include <netinet/in.h> 13925#include <arpa/inet.h> 13926#include <resolv.h> 13927 13928int 13929main () 13930{ 13931 b64_ntop(NULL, 0, NULL, 0); 13932 ; 13933 return 0; 13934} 13935_ACEOF 13936if ac_fn_c_try_link "$LINENO"; then : 13937 ac_cv_have_b64_ntop_arg="yes" 13938else 13939 ac_cv_have_b64_ntop_arg="no" 13940 13941fi 13942rm -f core conftest.err conftest.$ac_objext \ 13943 conftest$ac_exeext conftest.$ac_ext 13944 13945fi 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_b64_ntop_arg" >&5 13947$as_echo "$ac_cv_have_b64_ntop_arg" >&6; } 13948 if test "x$ac_cv_func_b64_ntop_arg" = xyes; then 13949 HAVE_B64_NTOP_TRUE= 13950 HAVE_B64_NTOP_FALSE='#' 13951else 13952 HAVE_B64_NTOP_TRUE='#' 13953 HAVE_B64_NTOP_FALSE= 13954fi 13955 13956 13957 13958 13959# Check whether --with-openssldir was given. 13960if test "${with_openssldir+set}" = set; then : 13961 withval=$with_openssldir; OPENSSLDIR="$withval" 13962 13963 13964fi 13965 13966 if test x$with_openssldir != x; then 13967 OPENSSLDIR_DEFINED_TRUE= 13968 OPENSSLDIR_DEFINED_FALSE='#' 13969else 13970 OPENSSLDIR_DEFINED_TRUE='#' 13971 OPENSSLDIR_DEFINED_FALSE= 13972fi 13973 13974 13975# Check whether --enable-extratests was given. 13976if test "${enable_extratests+set}" = set; then : 13977 enableval=$enable_extratests; 13978fi 13979 13980 if test "x$enable_extratests" = xyes; then 13981 ENABLE_EXTRATESTS_TRUE= 13982 ENABLE_EXTRATESTS_FALSE='#' 13983else 13984 ENABLE_EXTRATESTS_TRUE='#' 13985 ENABLE_EXTRATESTS_FALSE= 13986fi 13987 13988 13989# Check whether --enable-tests was given. 13990if test "${enable_tests+set}" = set; then : 13991 enableval=$enable_tests; 13992 if ! test "x${enable_tests}" = "xyes"; then 13993 enable_tests="no" 13994 fi 13995else 13996 enable_tests="yes" 13997fi 13998 13999 if test "x$enable_tests" = xyes; then 14000 ENABLE_TESTS_TRUE= 14001 ENABLE_TESTS_FALSE='#' 14002else 14003 ENABLE_TESTS_TRUE='#' 14004 ENABLE_TESTS_FALSE= 14005fi 14006 14007 14008case $host_cpu in #( 14009 *arm*) : 14010 host_cpu=arm ;; #( 14011 *amd64*) : 14012 host_cpu=x86_64 HOSTARCH=intel ;; #( 14013 i?86) : 14014 HOSTARCH=intel ;; #( 14015 x86_64) : 14016 HOSTARCH=intel 14017 ;; #( 14018 *) : 14019 ;; 14020esac 14021 if test "x$HOSTARCH" = "xintel"; then 14022 HOST_CPU_IS_INTEL_TRUE= 14023 HOST_CPU_IS_INTEL_FALSE='#' 14024else 14025 HOST_CPU_IS_INTEL_TRUE='#' 14026 HOST_CPU_IS_INTEL_FALSE= 14027fi 14028 14029 14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5 14031$as_echo_n "checking if .gnu.warning accepts long strings... " >&6; } 14032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034 14035extern void SSLv3_method(); 14036__asm__(".section .gnu.warning.SSLv3_method\n\t.ascii \"SSLv3_method is insecure\"\n\t.text"); 14037int main() {return 0;} 14038 14039_ACEOF 14040if ac_fn_c_try_link "$LINENO"; then : 14041 14042 14043$as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h 14044 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14046$as_echo "yes" >&6; } 14047 14048else 14049 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14051$as_echo "no" >&6; } 14052 14053fi 14054rm -f core conftest.err conftest.$ac_objext \ 14055 conftest$ac_exeext conftest.$ac_ext 14056 14057# Check whether --enable-asm was given. 14058if test "${enable_asm+set}" = set; then : 14059 enableval=$enable_asm; 14060fi 14061 14062 if test "x$enable_asm" = "xno"; then 14063 OPENSSL_NO_ASM_TRUE= 14064 OPENSSL_NO_ASM_FALSE='#' 14065else 14066 OPENSSL_NO_ASM_TRUE='#' 14067 OPENSSL_NO_ASM_FALSE= 14068fi 14069 14070 14071# Conditionally enable assembly by default 14072 if test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "arm" -a "x$enable_asm" != "xno"; then 14073 HOST_ASM_ELF_ARM_TRUE= 14074 HOST_ASM_ELF_ARM_FALSE='#' 14075else 14076 HOST_ASM_ELF_ARM_TRUE='#' 14077 HOST_ASM_ELF_ARM_FALSE= 14078fi 14079 14080 if test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"; then 14081 HOST_ASM_ELF_X86_64_TRUE= 14082 HOST_ASM_ELF_X86_64_FALSE='#' 14083else 14084 HOST_ASM_ELF_X86_64_TRUE='#' 14085 HOST_ASM_ELF_X86_64_FALSE= 14086fi 14087 14088 if test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"; then 14089 HOST_ASM_MACOSX_X86_64_TRUE= 14090 HOST_ASM_MACOSX_X86_64_FALSE='#' 14091else 14092 HOST_ASM_MACOSX_X86_64_TRUE='#' 14093 HOST_ASM_MACOSX_X86_64_FALSE= 14094fi 14095 14096 if test "x$HOST_ABI" = "xmasm" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"; then 14097 HOST_ASM_MASM_X86_64_TRUE= 14098 HOST_ASM_MASM_X86_64_FALSE='#' 14099else 14100 HOST_ASM_MASM_X86_64_TRUE='#' 14101 HOST_ASM_MASM_X86_64_FALSE= 14102fi 14103 14104 if test "x$HOST_ABI" = "xmingw64" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"; then 14105 HOST_ASM_MINGW64_X86_64_TRUE= 14106 HOST_ASM_MINGW64_X86_64_FALSE='#' 14107else 14108 HOST_ASM_MINGW64_X86_64_TRUE='#' 14109 HOST_ASM_MINGW64_X86_64_FALSE= 14110fi 14111 14112 14113ac_config_files="$ac_config_files Makefile include/Makefile include/openssl/Makefile crypto/Makefile ssl/Makefile tls/Makefile tests/Makefile apps/Makefile apps/ocspcheck/Makefile apps/openssl/Makefile apps/nc/Makefile man/Makefile libcrypto.pc libssl.pc libtls.pc openssl.pc" 14114 14115 14116# Check whether --enable-nc was given. 14117if test "${enable_nc+set}" = set; then : 14118 enableval=$enable_nc; 14119fi 14120 14121 if test "x$enable_nc" = xyes; then 14122 ENABLE_NC_TRUE= 14123 ENABLE_NC_FALSE='#' 14124else 14125 ENABLE_NC_TRUE='#' 14126 ENABLE_NC_FALSE= 14127fi 14128 14129 if test x$BUILD_NC = xyes -o "x$enable_nc" = xyes; then 14130 BUILD_NC_TRUE= 14131 BUILD_NC_FALSE='#' 14132else 14133 BUILD_NC_TRUE='#' 14134 BUILD_NC_FALSE= 14135fi 14136 14137 14138# Check whether --enable-libtls-only was given. 14139if test "${enable_libtls_only+set}" = set; then : 14140 enableval=$enable_libtls_only; 14141fi 14142 14143 if test "x$enable_libtls_only" = xyes; then 14144 ENABLE_LIBTLS_ONLY_TRUE= 14145 ENABLE_LIBTLS_ONLY_FALSE='#' 14146else 14147 ENABLE_LIBTLS_ONLY_TRUE='#' 14148 ENABLE_LIBTLS_ONLY_FALSE= 14149fi 14150 14151 14152 14153 14154cat >confcache <<\_ACEOF 14155# This file is a shell script that caches the results of configure 14156# tests run on this system so they can be shared between configure 14157# scripts and configure runs, see configure's option --config-cache. 14158# It is not useful on other systems. If it contains results you don't 14159# want to keep, you may remove or edit it. 14160# 14161# config.status only pays attention to the cache file if you give it 14162# the --recheck option to rerun configure. 14163# 14164# `ac_cv_env_foo' variables (set or unset) will be overridden when 14165# loading this file, other *unset* `ac_cv_foo' will be assigned the 14166# following values. 14167 14168_ACEOF 14169 14170# The following way of writing the cache mishandles newlines in values, 14171# but we know of no workaround that is simple, portable, and efficient. 14172# So, we kill variables containing newlines. 14173# Ultrix sh set writes to stderr and can't be redirected directly, 14174# and sets the high bit in the cache file unless we assign to the vars. 14175( 14176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14177 eval ac_val=\$$ac_var 14178 case $ac_val in #( 14179 *${as_nl}*) 14180 case $ac_var in #( 14181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14183 esac 14184 case $ac_var in #( 14185 _ | IFS | as_nl) ;; #( 14186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14187 *) { eval $ac_var=; unset $ac_var;} ;; 14188 esac ;; 14189 esac 14190 done 14191 14192 (set) 2>&1 | 14193 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14194 *${as_nl}ac_space=\ *) 14195 # `set' does not quote correctly, so add quotes: double-quote 14196 # substitution turns \\\\ into \\, and sed turns \\ into \. 14197 sed -n \ 14198 "s/'/'\\\\''/g; 14199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14200 ;; #( 14201 *) 14202 # `set' quotes correctly as required by POSIX, so do not add quotes. 14203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14204 ;; 14205 esac | 14206 sort 14207) | 14208 sed ' 14209 /^ac_cv_env_/b end 14210 t clear 14211 :clear 14212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14213 t end 14214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14215 :end' >>confcache 14216if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14217 if test -w "$cache_file"; then 14218 if test "x$cache_file" != "x/dev/null"; then 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14220$as_echo "$as_me: updating cache $cache_file" >&6;} 14221 if test ! -f "$cache_file" || test -h "$cache_file"; then 14222 cat confcache >"$cache_file" 14223 else 14224 case $cache_file in #( 14225 */* | ?:*) 14226 mv -f confcache "$cache_file"$$ && 14227 mv -f "$cache_file"$$ "$cache_file" ;; #( 14228 *) 14229 mv -f confcache "$cache_file" ;; 14230 esac 14231 fi 14232 fi 14233 else 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14235$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14236 fi 14237fi 14238rm -f confcache 14239 14240test "x$prefix" = xNONE && prefix=$ac_default_prefix 14241# Let make expand exec_prefix. 14242test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14243 14244# Transform confdefs.h into DEFS. 14245# Protect against shell expansion while executing Makefile rules. 14246# Protect against Makefile macro expansion. 14247# 14248# If the first sed substitution is executed (which looks for macros that 14249# take arguments), then branch to the quote section. Otherwise, 14250# look for a macro that doesn't take arguments. 14251ac_script=' 14252:mline 14253/\\$/{ 14254 N 14255 s,\\\n,, 14256 b mline 14257} 14258t clear 14259:clear 14260s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14261t quote 14262s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14263t quote 14264b any 14265:quote 14266s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14267s/\[/\\&/g 14268s/\]/\\&/g 14269s/\$/$$/g 14270H 14271:any 14272${ 14273 g 14274 s/^\n// 14275 s/\n/ /g 14276 p 14277} 14278' 14279DEFS=`sed -n "$ac_script" confdefs.h` 14280 14281 14282ac_libobjs= 14283ac_ltlibobjs= 14284U= 14285for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14286 # 1. Remove the extension, and $U if already installed. 14287 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14288 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14289 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14290 # will be set to the directory where LIBOBJS objects are built. 14291 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14292 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14293done 14294LIBOBJS=$ac_libobjs 14295 14296LTLIBOBJS=$ac_ltlibobjs 14297 14298 14299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14300$as_echo_n "checking that generated files are newer than configure... " >&6; } 14301 if test -n "$am_sleep_pid"; then 14302 # Hide warnings about reused PIDs. 14303 wait $am_sleep_pid 2>/dev/null 14304 fi 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14306$as_echo "done" >&6; } 14307 if test -n "$EXEEXT"; then 14308 am__EXEEXT_TRUE= 14309 am__EXEEXT_FALSE='#' 14310else 14311 am__EXEEXT_TRUE='#' 14312 am__EXEEXT_FALSE= 14313fi 14314 14315if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14316 as_fn_error $? "conditional \"AMDEP\" was never defined. 14317Usually this means the macro was only invoked conditionally." "$LINENO" 5 14318fi 14319if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14320 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14321Usually this means the macro was only invoked conditionally." "$LINENO" 5 14322fi 14323if test -z "${SMALL_TIME_T_TRUE}" && test -z "${SMALL_TIME_T_FALSE}"; then 14324 as_fn_error $? "conditional \"SMALL_TIME_T\" was never defined. 14325Usually this means the macro was only invoked conditionally." "$LINENO" 5 14326fi 14327if test -z "${HOST_AIX_TRUE}" && test -z "${HOST_AIX_FALSE}"; then 14328 as_fn_error $? "conditional \"HOST_AIX\" was never defined. 14329Usually this means the macro was only invoked conditionally." "$LINENO" 5 14330fi 14331if test -z "${HOST_CYGWIN_TRUE}" && test -z "${HOST_CYGWIN_FALSE}"; then 14332 as_fn_error $? "conditional \"HOST_CYGWIN\" was never defined. 14333Usually this means the macro was only invoked conditionally." "$LINENO" 5 14334fi 14335if test -z "${HOST_DARWIN_TRUE}" && test -z "${HOST_DARWIN_FALSE}"; then 14336 as_fn_error $? "conditional \"HOST_DARWIN\" was never defined. 14337Usually this means the macro was only invoked conditionally." "$LINENO" 5 14338fi 14339if test -z "${HOST_FREEBSD_TRUE}" && test -z "${HOST_FREEBSD_FALSE}"; then 14340 as_fn_error $? "conditional \"HOST_FREEBSD\" was never defined. 14341Usually this means the macro was only invoked conditionally." "$LINENO" 5 14342fi 14343if test -z "${HOST_HPUX_TRUE}" && test -z "${HOST_HPUX_FALSE}"; then 14344 as_fn_error $? "conditional \"HOST_HPUX\" was never defined. 14345Usually this means the macro was only invoked conditionally." "$LINENO" 5 14346fi 14347if test -z "${HOST_LINUX_TRUE}" && test -z "${HOST_LINUX_FALSE}"; then 14348 as_fn_error $? "conditional \"HOST_LINUX\" was never defined. 14349Usually this means the macro was only invoked conditionally." "$LINENO" 5 14350fi 14351if test -z "${HOST_MIDIPIX_TRUE}" && test -z "${HOST_MIDIPIX_FALSE}"; then 14352 as_fn_error $? "conditional \"HOST_MIDIPIX\" was never defined. 14353Usually this means the macro was only invoked conditionally." "$LINENO" 5 14354fi 14355if test -z "${HOST_NETBSD_TRUE}" && test -z "${HOST_NETBSD_FALSE}"; then 14356 as_fn_error $? "conditional \"HOST_NETBSD\" was never defined. 14357Usually this means the macro was only invoked conditionally." "$LINENO" 5 14358fi 14359if test -z "${HOST_OPENBSD_TRUE}" && test -z "${HOST_OPENBSD_FALSE}"; then 14360 as_fn_error $? "conditional \"HOST_OPENBSD\" was never defined. 14361Usually this means the macro was only invoked conditionally." "$LINENO" 5 14362fi 14363if test -z "${HOST_SOLARIS_TRUE}" && test -z "${HOST_SOLARIS_FALSE}"; then 14364 as_fn_error $? "conditional \"HOST_SOLARIS\" was never defined. 14365Usually this means the macro was only invoked conditionally." "$LINENO" 5 14366fi 14367if test -z "${HOST_WIN_TRUE}" && test -z "${HOST_WIN_FALSE}"; then 14368 as_fn_error $? "conditional \"HOST_WIN\" was never defined. 14369Usually this means the macro was only invoked conditionally." "$LINENO" 5 14370fi 14371if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 14372 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 14373Usually this means the macro was only invoked conditionally." "$LINENO" 5 14374fi 14375if test -z "${BUILD_CERTHASH_TRUE}" && test -z "${BUILD_CERTHASH_FALSE}"; then 14376 as_fn_error $? "conditional \"BUILD_CERTHASH\" was never defined. 14377Usually this means the macro was only invoked conditionally." "$LINENO" 5 14378fi 14379if test -z "${HAVE_ASPRINTF_TRUE}" && test -z "${HAVE_ASPRINTF_FALSE}"; then 14380 as_fn_error $? "conditional \"HAVE_ASPRINTF\" was never defined. 14381Usually this means the macro was only invoked conditionally." "$LINENO" 5 14382fi 14383if test -z "${HAVE_FREEZERO_TRUE}" && test -z "${HAVE_FREEZERO_FALSE}"; then 14384 as_fn_error $? "conditional \"HAVE_FREEZERO\" was never defined. 14385Usually this means the macro was only invoked conditionally." "$LINENO" 5 14386fi 14387if test -z "${HAVE_GETPAGESIZE_TRUE}" && test -z "${HAVE_GETPAGESIZE_FALSE}"; then 14388 as_fn_error $? "conditional \"HAVE_GETPAGESIZE\" was never defined. 14389Usually this means the macro was only invoked conditionally." "$LINENO" 5 14390fi 14391if test -z "${HAVE_MEMMEM_TRUE}" && test -z "${HAVE_MEMMEM_FALSE}"; then 14392 as_fn_error $? "conditional \"HAVE_MEMMEM\" was never defined. 14393Usually this means the macro was only invoked conditionally." "$LINENO" 5 14394fi 14395if test -z "${HAVE_READPASSPHRASE_TRUE}" && test -z "${HAVE_READPASSPHRASE_FALSE}"; then 14396 as_fn_error $? "conditional \"HAVE_READPASSPHRASE\" was never defined. 14397Usually this means the macro was only invoked conditionally." "$LINENO" 5 14398fi 14399if test -z "${HAVE_REALLOCARRAY_TRUE}" && test -z "${HAVE_REALLOCARRAY_FALSE}"; then 14400 as_fn_error $? "conditional \"HAVE_REALLOCARRAY\" was never defined. 14401Usually this means the macro was only invoked conditionally." "$LINENO" 5 14402fi 14403if test -z "${HAVE_RECALLOCARRAY_TRUE}" && test -z "${HAVE_RECALLOCARRAY_FALSE}"; then 14404 as_fn_error $? "conditional \"HAVE_RECALLOCARRAY\" was never defined. 14405Usually this means the macro was only invoked conditionally." "$LINENO" 5 14406fi 14407if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then 14408 as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined. 14409Usually this means the macro was only invoked conditionally." "$LINENO" 5 14410fi 14411if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then 14412 as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined. 14413Usually this means the macro was only invoked conditionally." "$LINENO" 5 14414fi 14415if test -z "${HAVE_STRNDUP_TRUE}" && test -z "${HAVE_STRNDUP_FALSE}"; then 14416 as_fn_error $? "conditional \"HAVE_STRNDUP\" was never defined. 14417Usually this means the macro was only invoked conditionally." "$LINENO" 5 14418fi 14419if test -z "${HAVE_STRNLEN_TRUE}" && test -z "${HAVE_STRNLEN_FALSE}"; then 14420 as_fn_error $? "conditional \"HAVE_STRNLEN\" was never defined. 14421Usually this means the macro was only invoked conditionally." "$LINENO" 5 14422fi 14423if test -z "${HAVE_STRSEP_TRUE}" && test -z "${HAVE_STRSEP_FALSE}"; then 14424 as_fn_error $? "conditional \"HAVE_STRSEP\" was never defined. 14425Usually this means the macro was only invoked conditionally." "$LINENO" 5 14426fi 14427if test -z "${HAVE_STRTONUM_TRUE}" && test -z "${HAVE_STRTONUM_FALSE}"; then 14428 as_fn_error $? "conditional \"HAVE_STRTONUM\" was never defined. 14429Usually this means the macro was only invoked conditionally." "$LINENO" 5 14430fi 14431if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then 14432 as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined. 14433Usually this means the macro was only invoked conditionally." "$LINENO" 5 14434fi 14435if test -z "${HAVE_GETPROGNAME_TRUE}" && test -z "${HAVE_GETPROGNAME_FALSE}"; then 14436 as_fn_error $? "conditional \"HAVE_GETPROGNAME\" was never defined. 14437Usually this means the macro was only invoked conditionally." "$LINENO" 5 14438fi 14439if test -z "${HAVE_SYSLOG_TRUE}" && test -z "${HAVE_SYSLOG_FALSE}"; then 14440 as_fn_error $? "conditional \"HAVE_SYSLOG\" was never defined. 14441Usually this means the macro was only invoked conditionally." "$LINENO" 5 14442fi 14443if test -z "${HAVE_SYSLOG_R_TRUE}" && test -z "${HAVE_SYSLOG_R_FALSE}"; then 14444 as_fn_error $? "conditional \"HAVE_SYSLOG_R\" was never defined. 14445Usually this means the macro was only invoked conditionally." "$LINENO" 5 14446fi 14447if test -z "${HAVE_ACCEPT4_TRUE}" && test -z "${HAVE_ACCEPT4_FALSE}"; then 14448 as_fn_error $? "conditional \"HAVE_ACCEPT4\" was never defined. 14449Usually this means the macro was only invoked conditionally." "$LINENO" 5 14450fi 14451if test -z "${HAVE_PIPE2_TRUE}" && test -z "${HAVE_PIPE2_FALSE}"; then 14452 as_fn_error $? "conditional \"HAVE_PIPE2\" was never defined. 14453Usually this means the macro was only invoked conditionally." "$LINENO" 5 14454fi 14455if test -z "${HAVE_PLEDGE_TRUE}" && test -z "${HAVE_PLEDGE_FALSE}"; then 14456 as_fn_error $? "conditional \"HAVE_PLEDGE\" was never defined. 14457Usually this means the macro was only invoked conditionally." "$LINENO" 5 14458fi 14459if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then 14460 as_fn_error $? "conditional \"HAVE_POLL\" was never defined. 14461Usually this means the macro was only invoked conditionally." "$LINENO" 5 14462fi 14463if test -z "${HAVE_SOCKETPAIR_TRUE}" && test -z "${HAVE_SOCKETPAIR_FALSE}"; then 14464 as_fn_error $? "conditional \"HAVE_SOCKETPAIR\" was never defined. 14465Usually this means the macro was only invoked conditionally." "$LINENO" 5 14466fi 14467if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then 14468 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined. 14469Usually this means the macro was only invoked conditionally." "$LINENO" 5 14470fi 14471if test -z "${HAVE_ARC4RANDOM_BUF_TRUE}" && test -z "${HAVE_ARC4RANDOM_BUF_FALSE}"; then 14472 as_fn_error $? "conditional \"HAVE_ARC4RANDOM_BUF\" was never defined. 14473Usually this means the macro was only invoked conditionally." "$LINENO" 5 14474fi 14475if test -z "${HAVE_ARC4RANDOM_UNIFORM_TRUE}" && test -z "${HAVE_ARC4RANDOM_UNIFORM_FALSE}"; then 14476 as_fn_error $? "conditional \"HAVE_ARC4RANDOM_UNIFORM\" was never defined. 14477Usually this means the macro was only invoked conditionally." "$LINENO" 5 14478fi 14479if test -z "${HAVE_EXPLICIT_BZERO_TRUE}" && test -z "${HAVE_EXPLICIT_BZERO_FALSE}"; then 14480 as_fn_error $? "conditional \"HAVE_EXPLICIT_BZERO\" was never defined. 14481Usually this means the macro was only invoked conditionally." "$LINENO" 5 14482fi 14483if test -z "${HAVE_GETENTROPY_TRUE}" && test -z "${HAVE_GETENTROPY_FALSE}"; then 14484 as_fn_error $? "conditional \"HAVE_GETENTROPY\" was never defined. 14485Usually this means the macro was only invoked conditionally." "$LINENO" 5 14486fi 14487if test -z "${HAVE_TIMINGSAFE_BCMP_TRUE}" && test -z "${HAVE_TIMINGSAFE_BCMP_FALSE}"; then 14488 as_fn_error $? "conditional \"HAVE_TIMINGSAFE_BCMP\" was never defined. 14489Usually this means the macro was only invoked conditionally." "$LINENO" 5 14490fi 14491if test -z "${HAVE_TIMINGSAFE_MEMCMP_TRUE}" && test -z "${HAVE_TIMINGSAFE_MEMCMP_FALSE}"; then 14492 as_fn_error $? "conditional \"HAVE_TIMINGSAFE_MEMCMP\" was never defined. 14493Usually this means the macro was only invoked conditionally." "$LINENO" 5 14494fi 14495if test -z "${HAVE_ARC4RANDOM_BUF_TRUE}" && test -z "${HAVE_ARC4RANDOM_BUF_FALSE}"; then 14496 as_fn_error $? "conditional \"HAVE_ARC4RANDOM_BUF\" was never defined. 14497Usually this means the macro was only invoked conditionally." "$LINENO" 5 14498fi 14499if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then 14500 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined. 14501Usually this means the macro was only invoked conditionally." "$LINENO" 5 14502fi 14503if test -z "${HAVE_B64_NTOP_TRUE}" && test -z "${HAVE_B64_NTOP_FALSE}"; then 14504 as_fn_error $? "conditional \"HAVE_B64_NTOP\" was never defined. 14505Usually this means the macro was only invoked conditionally." "$LINENO" 5 14506fi 14507if test -z "${OPENSSLDIR_DEFINED_TRUE}" && test -z "${OPENSSLDIR_DEFINED_FALSE}"; then 14508 as_fn_error $? "conditional \"OPENSSLDIR_DEFINED\" was never defined. 14509Usually this means the macro was only invoked conditionally." "$LINENO" 5 14510fi 14511if test -z "${ENABLE_EXTRATESTS_TRUE}" && test -z "${ENABLE_EXTRATESTS_FALSE}"; then 14512 as_fn_error $? "conditional \"ENABLE_EXTRATESTS\" was never defined. 14513Usually this means the macro was only invoked conditionally." "$LINENO" 5 14514fi 14515if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then 14516 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. 14517Usually this means the macro was only invoked conditionally." "$LINENO" 5 14518fi 14519if test -z "${HOST_CPU_IS_INTEL_TRUE}" && test -z "${HOST_CPU_IS_INTEL_FALSE}"; then 14520 as_fn_error $? "conditional \"HOST_CPU_IS_INTEL\" was never defined. 14521Usually this means the macro was only invoked conditionally." "$LINENO" 5 14522fi 14523if test -z "${OPENSSL_NO_ASM_TRUE}" && test -z "${OPENSSL_NO_ASM_FALSE}"; then 14524 as_fn_error $? "conditional \"OPENSSL_NO_ASM\" was never defined. 14525Usually this means the macro was only invoked conditionally." "$LINENO" 5 14526fi 14527if test -z "${HOST_ASM_ELF_ARM_TRUE}" && test -z "${HOST_ASM_ELF_ARM_FALSE}"; then 14528 as_fn_error $? "conditional \"HOST_ASM_ELF_ARM\" was never defined. 14529Usually this means the macro was only invoked conditionally." "$LINENO" 5 14530fi 14531if test -z "${HOST_ASM_ELF_X86_64_TRUE}" && test -z "${HOST_ASM_ELF_X86_64_FALSE}"; then 14532 as_fn_error $? "conditional \"HOST_ASM_ELF_X86_64\" was never defined. 14533Usually this means the macro was only invoked conditionally." "$LINENO" 5 14534fi 14535if test -z "${HOST_ASM_MACOSX_X86_64_TRUE}" && test -z "${HOST_ASM_MACOSX_X86_64_FALSE}"; then 14536 as_fn_error $? "conditional \"HOST_ASM_MACOSX_X86_64\" was never defined. 14537Usually this means the macro was only invoked conditionally." "$LINENO" 5 14538fi 14539if test -z "${HOST_ASM_MASM_X86_64_TRUE}" && test -z "${HOST_ASM_MASM_X86_64_FALSE}"; then 14540 as_fn_error $? "conditional \"HOST_ASM_MASM_X86_64\" was never defined. 14541Usually this means the macro was only invoked conditionally." "$LINENO" 5 14542fi 14543if test -z "${HOST_ASM_MINGW64_X86_64_TRUE}" && test -z "${HOST_ASM_MINGW64_X86_64_FALSE}"; then 14544 as_fn_error $? "conditional \"HOST_ASM_MINGW64_X86_64\" was never defined. 14545Usually this means the macro was only invoked conditionally." "$LINENO" 5 14546fi 14547if test -z "${ENABLE_NC_TRUE}" && test -z "${ENABLE_NC_FALSE}"; then 14548 as_fn_error $? "conditional \"ENABLE_NC\" was never defined. 14549Usually this means the macro was only invoked conditionally." "$LINENO" 5 14550fi 14551if test -z "${BUILD_NC_TRUE}" && test -z "${BUILD_NC_FALSE}"; then 14552 as_fn_error $? "conditional \"BUILD_NC\" was never defined. 14553Usually this means the macro was only invoked conditionally." "$LINENO" 5 14554fi 14555if test -z "${ENABLE_LIBTLS_ONLY_TRUE}" && test -z "${ENABLE_LIBTLS_ONLY_FALSE}"; then 14556 as_fn_error $? "conditional \"ENABLE_LIBTLS_ONLY\" was never defined. 14557Usually this means the macro was only invoked conditionally." "$LINENO" 5 14558fi 14559 14560: "${CONFIG_STATUS=./config.status}" 14561ac_write_fail=0 14562ac_clean_files_save=$ac_clean_files 14563ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14564{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14565$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14566as_write_fail=0 14567cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14568#! $SHELL 14569# Generated by $as_me. 14570# Run this file to recreate the current configuration. 14571# Compiler output produced by configure, useful for debugging 14572# configure, is in config.log if it exists. 14573 14574debug=false 14575ac_cs_recheck=false 14576ac_cs_silent=false 14577 14578SHELL=\${CONFIG_SHELL-$SHELL} 14579export SHELL 14580_ASEOF 14581cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14582## -------------------- ## 14583## M4sh Initialization. ## 14584## -------------------- ## 14585 14586# Be more Bourne compatible 14587DUALCASE=1; export DUALCASE # for MKS sh 14588if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14589 emulate sh 14590 NULLCMD=: 14591 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14592 # is contrary to our usage. Disable this feature. 14593 alias -g '${1+"$@"}'='"$@"' 14594 setopt NO_GLOB_SUBST 14595else 14596 case `(set -o) 2>/dev/null` in #( 14597 *posix*) : 14598 set -o posix ;; #( 14599 *) : 14600 ;; 14601esac 14602fi 14603 14604 14605as_nl=' 14606' 14607export as_nl 14608# Printing a long string crashes Solaris 7 /usr/bin/printf. 14609as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14610as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14612# Prefer a ksh shell builtin over an external printf program on Solaris, 14613# but without wasting forks for bash or zsh. 14614if test -z "$BASH_VERSION$ZSH_VERSION" \ 14615 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14616 as_echo='print -r --' 14617 as_echo_n='print -rn --' 14618elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14619 as_echo='printf %s\n' 14620 as_echo_n='printf %s' 14621else 14622 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14623 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14624 as_echo_n='/usr/ucb/echo -n' 14625 else 14626 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14627 as_echo_n_body='eval 14628 arg=$1; 14629 case $arg in #( 14630 *"$as_nl"*) 14631 expr "X$arg" : "X\\(.*\\)$as_nl"; 14632 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14633 esac; 14634 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14635 ' 14636 export as_echo_n_body 14637 as_echo_n='sh -c $as_echo_n_body as_echo' 14638 fi 14639 export as_echo_body 14640 as_echo='sh -c $as_echo_body as_echo' 14641fi 14642 14643# The user is always right. 14644if test "${PATH_SEPARATOR+set}" != set; then 14645 PATH_SEPARATOR=: 14646 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14647 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14648 PATH_SEPARATOR=';' 14649 } 14650fi 14651 14652 14653# IFS 14654# We need space, tab and new line, in precisely that order. Quoting is 14655# there to prevent editors from complaining about space-tab. 14656# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14657# splitting by setting IFS to empty value.) 14658IFS=" "" $as_nl" 14659 14660# Find who we are. Look in the path if we contain no directory separator. 14661as_myself= 14662case $0 in #(( 14663 *[\\/]* ) as_myself=$0 ;; 14664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14665for as_dir in $PATH 14666do 14667 IFS=$as_save_IFS 14668 test -z "$as_dir" && as_dir=. 14669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14670 done 14671IFS=$as_save_IFS 14672 14673 ;; 14674esac 14675# We did not find ourselves, most probably we were run as `sh COMMAND' 14676# in which case we are not to be found in the path. 14677if test "x$as_myself" = x; then 14678 as_myself=$0 14679fi 14680if test ! -f "$as_myself"; then 14681 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14682 exit 1 14683fi 14684 14685# Unset variables that we do not need and which cause bugs (e.g. in 14686# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14687# suppresses any "Segmentation fault" message there. '((' could 14688# trigger a bug in pdksh 5.2.14. 14689for as_var in BASH_ENV ENV MAIL MAILPATH 14690do eval test x\${$as_var+set} = xset \ 14691 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14692done 14693PS1='$ ' 14694PS2='> ' 14695PS4='+ ' 14696 14697# NLS nuisances. 14698LC_ALL=C 14699export LC_ALL 14700LANGUAGE=C 14701export LANGUAGE 14702 14703# CDPATH. 14704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14705 14706 14707# as_fn_error STATUS ERROR [LINENO LOG_FD] 14708# ---------------------------------------- 14709# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14710# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14711# script with STATUS, using 1 if that was 0. 14712as_fn_error () 14713{ 14714 as_status=$1; test $as_status -eq 0 && as_status=1 14715 if test "$4"; then 14716 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14717 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14718 fi 14719 $as_echo "$as_me: error: $2" >&2 14720 as_fn_exit $as_status 14721} # as_fn_error 14722 14723 14724# as_fn_set_status STATUS 14725# ----------------------- 14726# Set $? to STATUS, without forking. 14727as_fn_set_status () 14728{ 14729 return $1 14730} # as_fn_set_status 14731 14732# as_fn_exit STATUS 14733# ----------------- 14734# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14735as_fn_exit () 14736{ 14737 set +e 14738 as_fn_set_status $1 14739 exit $1 14740} # as_fn_exit 14741 14742# as_fn_unset VAR 14743# --------------- 14744# Portably unset VAR. 14745as_fn_unset () 14746{ 14747 { eval $1=; unset $1;} 14748} 14749as_unset=as_fn_unset 14750# as_fn_append VAR VALUE 14751# ---------------------- 14752# Append the text in VALUE to the end of the definition contained in VAR. Take 14753# advantage of any shell optimizations that allow amortized linear growth over 14754# repeated appends, instead of the typical quadratic growth present in naive 14755# implementations. 14756if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14757 eval 'as_fn_append () 14758 { 14759 eval $1+=\$2 14760 }' 14761else 14762 as_fn_append () 14763 { 14764 eval $1=\$$1\$2 14765 } 14766fi # as_fn_append 14767 14768# as_fn_arith ARG... 14769# ------------------ 14770# Perform arithmetic evaluation on the ARGs, and store the result in the 14771# global $as_val. Take advantage of shells that can avoid forks. The arguments 14772# must be portable across $(()) and expr. 14773if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14774 eval 'as_fn_arith () 14775 { 14776 as_val=$(( $* )) 14777 }' 14778else 14779 as_fn_arith () 14780 { 14781 as_val=`expr "$@" || test $? -eq 1` 14782 } 14783fi # as_fn_arith 14784 14785 14786if expr a : '\(a\)' >/dev/null 2>&1 && 14787 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14788 as_expr=expr 14789else 14790 as_expr=false 14791fi 14792 14793if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14794 as_basename=basename 14795else 14796 as_basename=false 14797fi 14798 14799if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14800 as_dirname=dirname 14801else 14802 as_dirname=false 14803fi 14804 14805as_me=`$as_basename -- "$0" || 14806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14807 X"$0" : 'X\(//\)$' \| \ 14808 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14809$as_echo X/"$0" | 14810 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14811 s//\1/ 14812 q 14813 } 14814 /^X\/\(\/\/\)$/{ 14815 s//\1/ 14816 q 14817 } 14818 /^X\/\(\/\).*/{ 14819 s//\1/ 14820 q 14821 } 14822 s/.*/./; q'` 14823 14824# Avoid depending upon Character Ranges. 14825as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14826as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14827as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14828as_cr_digits='0123456789' 14829as_cr_alnum=$as_cr_Letters$as_cr_digits 14830 14831ECHO_C= ECHO_N= ECHO_T= 14832case `echo -n x` in #((((( 14833-n*) 14834 case `echo 'xy\c'` in 14835 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14836 xy) ECHO_C='\c';; 14837 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14838 ECHO_T=' ';; 14839 esac;; 14840*) 14841 ECHO_N='-n';; 14842esac 14843 14844rm -f conf$$ conf$$.exe conf$$.file 14845if test -d conf$$.dir; then 14846 rm -f conf$$.dir/conf$$.file 14847else 14848 rm -f conf$$.dir 14849 mkdir conf$$.dir 2>/dev/null 14850fi 14851if (echo >conf$$.file) 2>/dev/null; then 14852 if ln -s conf$$.file conf$$ 2>/dev/null; then 14853 as_ln_s='ln -s' 14854 # ... but there are two gotchas: 14855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14857 # In both cases, we have to default to `cp -pR'. 14858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14859 as_ln_s='cp -pR' 14860 elif ln conf$$.file conf$$ 2>/dev/null; then 14861 as_ln_s=ln 14862 else 14863 as_ln_s='cp -pR' 14864 fi 14865else 14866 as_ln_s='cp -pR' 14867fi 14868rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14869rmdir conf$$.dir 2>/dev/null 14870 14871 14872# as_fn_mkdir_p 14873# ------------- 14874# Create "$as_dir" as a directory, including parents if necessary. 14875as_fn_mkdir_p () 14876{ 14877 14878 case $as_dir in #( 14879 -*) as_dir=./$as_dir;; 14880 esac 14881 test -d "$as_dir" || eval $as_mkdir_p || { 14882 as_dirs= 14883 while :; do 14884 case $as_dir in #( 14885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14886 *) as_qdir=$as_dir;; 14887 esac 14888 as_dirs="'$as_qdir' $as_dirs" 14889 as_dir=`$as_dirname -- "$as_dir" || 14890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14891 X"$as_dir" : 'X\(//\)[^/]' \| \ 14892 X"$as_dir" : 'X\(//\)$' \| \ 14893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14894$as_echo X"$as_dir" | 14895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14896 s//\1/ 14897 q 14898 } 14899 /^X\(\/\/\)[^/].*/{ 14900 s//\1/ 14901 q 14902 } 14903 /^X\(\/\/\)$/{ 14904 s//\1/ 14905 q 14906 } 14907 /^X\(\/\).*/{ 14908 s//\1/ 14909 q 14910 } 14911 s/.*/./; q'` 14912 test -d "$as_dir" && break 14913 done 14914 test -z "$as_dirs" || eval "mkdir $as_dirs" 14915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14916 14917 14918} # as_fn_mkdir_p 14919if mkdir -p . 2>/dev/null; then 14920 as_mkdir_p='mkdir -p "$as_dir"' 14921else 14922 test -d ./-p && rmdir ./-p 14923 as_mkdir_p=false 14924fi 14925 14926 14927# as_fn_executable_p FILE 14928# ----------------------- 14929# Test if FILE is an executable regular file. 14930as_fn_executable_p () 14931{ 14932 test -f "$1" && test -x "$1" 14933} # as_fn_executable_p 14934as_test_x='test -x' 14935as_executable_p=as_fn_executable_p 14936 14937# Sed expression to map a string onto a valid CPP name. 14938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14939 14940# Sed expression to map a string onto a valid variable name. 14941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14942 14943 14944exec 6>&1 14945## ----------------------------------- ## 14946## Main body of $CONFIG_STATUS script. ## 14947## ----------------------------------- ## 14948_ASEOF 14949test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14950 14951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14952# Save the log message, to keep $0 and so on meaningful, and to 14953# report actual input values of CONFIG_FILES etc. instead of their 14954# values after options handling. 14955ac_log=" 14956This file was extended by libressl $as_me 3.4.3, which was 14957generated by GNU Autoconf 2.69. Invocation command line was 14958 14959 CONFIG_FILES = $CONFIG_FILES 14960 CONFIG_HEADERS = $CONFIG_HEADERS 14961 CONFIG_LINKS = $CONFIG_LINKS 14962 CONFIG_COMMANDS = $CONFIG_COMMANDS 14963 $ $0 $@ 14964 14965on `(hostname || uname -n) 2>/dev/null | sed 1q` 14966" 14967 14968_ACEOF 14969 14970case $ac_config_files in *" 14971"*) set x $ac_config_files; shift; ac_config_files=$*;; 14972esac 14973 14974 14975 14976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14977# Files that config.status was made for. 14978config_files="$ac_config_files" 14979config_commands="$ac_config_commands" 14980 14981_ACEOF 14982 14983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14984ac_cs_usage="\ 14985\`$as_me' instantiates files and other configuration actions 14986from templates according to the current configuration. Unless the files 14987and actions are specified as TAGs, all are instantiated by default. 14988 14989Usage: $0 [OPTION]... [TAG]... 14990 14991 -h, --help print this help, then exit 14992 -V, --version print version number and configuration settings, then exit 14993 --config print configuration, then exit 14994 -q, --quiet, --silent 14995 do not print progress messages 14996 -d, --debug don't remove temporary files 14997 --recheck update $as_me by reconfiguring in the same conditions 14998 --file=FILE[:TEMPLATE] 14999 instantiate the configuration file FILE 15000 15001Configuration files: 15002$config_files 15003 15004Configuration commands: 15005$config_commands 15006 15007Report bugs to the package provider." 15008 15009_ACEOF 15010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15011ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15012ac_cs_version="\\ 15013libressl config.status 3.4.3 15014configured by $0, generated by GNU Autoconf 2.69, 15015 with options \\"\$ac_cs_config\\" 15016 15017Copyright (C) 2012 Free Software Foundation, Inc. 15018This config.status script is free software; the Free Software Foundation 15019gives unlimited permission to copy, distribute and modify it." 15020 15021ac_pwd='$ac_pwd' 15022srcdir='$srcdir' 15023INSTALL='$INSTALL' 15024MKDIR_P='$MKDIR_P' 15025AWK='$AWK' 15026test -n "\$AWK" || AWK=awk 15027_ACEOF 15028 15029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15030# The default lists apply if the user does not specify any file. 15031ac_need_defaults=: 15032while test $# != 0 15033do 15034 case $1 in 15035 --*=?*) 15036 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15038 ac_shift=: 15039 ;; 15040 --*=) 15041 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15042 ac_optarg= 15043 ac_shift=: 15044 ;; 15045 *) 15046 ac_option=$1 15047 ac_optarg=$2 15048 ac_shift=shift 15049 ;; 15050 esac 15051 15052 case $ac_option in 15053 # Handling of the options. 15054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15055 ac_cs_recheck=: ;; 15056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15057 $as_echo "$ac_cs_version"; exit ;; 15058 --config | --confi | --conf | --con | --co | --c ) 15059 $as_echo "$ac_cs_config"; exit ;; 15060 --debug | --debu | --deb | --de | --d | -d ) 15061 debug=: ;; 15062 --file | --fil | --fi | --f ) 15063 $ac_shift 15064 case $ac_optarg in 15065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15066 '') as_fn_error $? "missing file argument" ;; 15067 esac 15068 as_fn_append CONFIG_FILES " '$ac_optarg'" 15069 ac_need_defaults=false;; 15070 --he | --h | --help | --hel | -h ) 15071 $as_echo "$ac_cs_usage"; exit ;; 15072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15073 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15074 ac_cs_silent=: ;; 15075 15076 # This is an error. 15077 -*) as_fn_error $? "unrecognized option: \`$1' 15078Try \`$0 --help' for more information." ;; 15079 15080 *) as_fn_append ac_config_targets " $1" 15081 ac_need_defaults=false ;; 15082 15083 esac 15084 shift 15085done 15086 15087ac_configure_extra_args= 15088 15089if $ac_cs_silent; then 15090 exec 6>/dev/null 15091 ac_configure_extra_args="$ac_configure_extra_args --silent" 15092fi 15093 15094_ACEOF 15095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15096if \$ac_cs_recheck; then 15097 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15098 shift 15099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15100 CONFIG_SHELL='$SHELL' 15101 export CONFIG_SHELL 15102 exec "\$@" 15103fi 15104 15105_ACEOF 15106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15107exec 5>>config.log 15108{ 15109 echo 15110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15111## Running $as_me. ## 15112_ASBOX 15113 $as_echo "$ac_log" 15114} >&5 15115 15116_ACEOF 15117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15118# 15119# INIT-COMMANDS 15120# 15121AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 15122 15123 15124# The HP-UX ksh and POSIX shell print the target directory to stdout 15125# if CDPATH is set. 15126(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15127 15128sed_quote_subst='$sed_quote_subst' 15129double_quote_subst='$double_quote_subst' 15130delay_variable_subst='$delay_variable_subst' 15131macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15132macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15133pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15134enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15135enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15136enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15137SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15138ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15139PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15140host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15141host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15142host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15143build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15144build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15145build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15146SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15147Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15148GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15149EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15150FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15151LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15152NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15153LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15154max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15155ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15156exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15157lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15158lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15159lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15160lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15161lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15162reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15163reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15164OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15165deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15166file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15167file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15168want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15169DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15170sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15171AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15172AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15173archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15174STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15175RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15176old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15177old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15178old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15179lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15180CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15181CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15182compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15183GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15184lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15185lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15186lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15187lt_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"`' 15188nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15189lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15190objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15191MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15192lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15193lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15194lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15195lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15196lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15197need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15198MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15199DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15200NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15201LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15202OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15203OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15204libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15205shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15206extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15207archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15208enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15209export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15210whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15211compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15212old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15213old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15214archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15215archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15216module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15217module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15218with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15219allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15220no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15221hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15222hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15223hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15224hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15225hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15226hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15227hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15228inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15229link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15230always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15231export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15232exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15233include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15234prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15235postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15236file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15237variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15238need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15239need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15240version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15241runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15242shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15243shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15244libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15245library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15246soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15247install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15248postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15249postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15250finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15251finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15252hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15253sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15254sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15255hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15256enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15257enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15258enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15259old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15260striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15261 15262LTCC='$LTCC' 15263LTCFLAGS='$LTCFLAGS' 15264compiler='$compiler_DEFAULT' 15265 15266# A function that is used when there is no print builtin or printf. 15267func_fallback_echo () 15268{ 15269 eval 'cat <<_LTECHO_EOF 15270\$1 15271_LTECHO_EOF' 15272} 15273 15274# Quote evaled strings. 15275for var in SHELL \ 15276ECHO \ 15277PATH_SEPARATOR \ 15278SED \ 15279GREP \ 15280EGREP \ 15281FGREP \ 15282LD \ 15283NM \ 15284LN_S \ 15285lt_SP2NL \ 15286lt_NL2SP \ 15287reload_flag \ 15288OBJDUMP \ 15289deplibs_check_method \ 15290file_magic_cmd \ 15291file_magic_glob \ 15292want_nocaseglob \ 15293DLLTOOL \ 15294sharedlib_from_linklib_cmd \ 15295AR \ 15296AR_FLAGS \ 15297archiver_list_spec \ 15298STRIP \ 15299RANLIB \ 15300CC \ 15301CFLAGS \ 15302compiler \ 15303lt_cv_sys_global_symbol_pipe \ 15304lt_cv_sys_global_symbol_to_cdecl \ 15305lt_cv_sys_global_symbol_to_c_name_address \ 15306lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15307nm_file_list_spec \ 15308lt_prog_compiler_no_builtin_flag \ 15309lt_prog_compiler_pic \ 15310lt_prog_compiler_wl \ 15311lt_prog_compiler_static \ 15312lt_cv_prog_compiler_c_o \ 15313need_locks \ 15314MANIFEST_TOOL \ 15315DSYMUTIL \ 15316NMEDIT \ 15317LIPO \ 15318OTOOL \ 15319OTOOL64 \ 15320shrext_cmds \ 15321export_dynamic_flag_spec \ 15322whole_archive_flag_spec \ 15323compiler_needs_object \ 15324with_gnu_ld \ 15325allow_undefined_flag \ 15326no_undefined_flag \ 15327hardcode_libdir_flag_spec \ 15328hardcode_libdir_separator \ 15329exclude_expsyms \ 15330include_expsyms \ 15331file_list_spec \ 15332variables_saved_for_relink \ 15333libname_spec \ 15334library_names_spec \ 15335soname_spec \ 15336install_override_mode \ 15337finish_eval \ 15338old_striplib \ 15339striplib; do 15340 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15341 *[\\\\\\\`\\"\\\$]*) 15342 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15343 ;; 15344 *) 15345 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15346 ;; 15347 esac 15348done 15349 15350# Double-quote double-evaled strings. 15351for var in reload_cmds \ 15352old_postinstall_cmds \ 15353old_postuninstall_cmds \ 15354old_archive_cmds \ 15355extract_expsyms_cmds \ 15356old_archive_from_new_cmds \ 15357old_archive_from_expsyms_cmds \ 15358archive_cmds \ 15359archive_expsym_cmds \ 15360module_cmds \ 15361module_expsym_cmds \ 15362export_symbols_cmds \ 15363prelink_cmds \ 15364postlink_cmds \ 15365postinstall_cmds \ 15366postuninstall_cmds \ 15367finish_cmds \ 15368sys_lib_search_path_spec \ 15369sys_lib_dlsearch_path_spec; do 15370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15371 *[\\\\\\\`\\"\\\$]*) 15372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15373 ;; 15374 *) 15375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15376 ;; 15377 esac 15378done 15379 15380ac_aux_dir='$ac_aux_dir' 15381xsi_shell='$xsi_shell' 15382lt_shell_append='$lt_shell_append' 15383 15384# See if we are running on zsh, and set the options which allow our 15385# commands through without removal of \ escapes INIT. 15386if test -n "\${ZSH_VERSION+set}" ; then 15387 setopt NO_GLOB_SUBST 15388fi 15389 15390 15391 PACKAGE='$PACKAGE' 15392 VERSION='$VERSION' 15393 TIMESTAMP='$TIMESTAMP' 15394 RM='$RM' 15395 ofile='$ofile' 15396 15397 15398 15399 15400_ACEOF 15401 15402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15403 15404# Handling of arguments. 15405for ac_config_target in $ac_config_targets 15406do 15407 case $ac_config_target in 15408 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15409 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15411 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 15412 "include/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES include/openssl/Makefile" ;; 15413 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;; 15414 "ssl/Makefile") CONFIG_FILES="$CONFIG_FILES ssl/Makefile" ;; 15415 "tls/Makefile") CONFIG_FILES="$CONFIG_FILES tls/Makefile" ;; 15416 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15417 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;; 15418 "apps/ocspcheck/Makefile") CONFIG_FILES="$CONFIG_FILES apps/ocspcheck/Makefile" ;; 15419 "apps/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES apps/openssl/Makefile" ;; 15420 "apps/nc/Makefile") CONFIG_FILES="$CONFIG_FILES apps/nc/Makefile" ;; 15421 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 15422 "libcrypto.pc") CONFIG_FILES="$CONFIG_FILES libcrypto.pc" ;; 15423 "libssl.pc") CONFIG_FILES="$CONFIG_FILES libssl.pc" ;; 15424 "libtls.pc") CONFIG_FILES="$CONFIG_FILES libtls.pc" ;; 15425 "openssl.pc") CONFIG_FILES="$CONFIG_FILES openssl.pc" ;; 15426 15427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15428 esac 15429done 15430 15431 15432# If the user did not use the arguments to specify the items to instantiate, 15433# then the envvar interface is used. Set only those that are not. 15434# We use the long form for the default assignment because of an extremely 15435# bizarre bug on SunOS 4.1.3. 15436if $ac_need_defaults; then 15437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15439fi 15440 15441# Have a temporary directory for convenience. Make it in the build tree 15442# simply because there is no reason against having it here, and in addition, 15443# creating and moving files from /tmp can sometimes cause problems. 15444# Hook for its removal unless debugging. 15445# Note that there is a small window in which the directory will not be cleaned: 15446# after its creation but before its name has been assigned to `$tmp'. 15447$debug || 15448{ 15449 tmp= ac_tmp= 15450 trap 'exit_status=$? 15451 : "${ac_tmp:=$tmp}" 15452 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15453' 0 15454 trap 'as_fn_exit 1' 1 2 13 15 15455} 15456# Create a (secure) tmp directory for tmp files. 15457 15458{ 15459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15460 test -d "$tmp" 15461} || 15462{ 15463 tmp=./conf$$-$RANDOM 15464 (umask 077 && mkdir "$tmp") 15465} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15466ac_tmp=$tmp 15467 15468# Set up the scripts for CONFIG_FILES section. 15469# No need to generate them if there are no CONFIG_FILES. 15470# This happens for instance with `./config.status config.h'. 15471if test -n "$CONFIG_FILES"; then 15472 15473 15474ac_cr=`echo X | tr X '\015'` 15475# On cygwin, bash can eat \r inside `` if the user requested igncr. 15476# But we know of no other shell where ac_cr would be empty at this 15477# point, so we can use a bashism as a fallback. 15478if test "x$ac_cr" = x; then 15479 eval ac_cr=\$\'\\r\' 15480fi 15481ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15482if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15483 ac_cs_awk_cr='\\r' 15484else 15485 ac_cs_awk_cr=$ac_cr 15486fi 15487 15488echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15489_ACEOF 15490 15491 15492{ 15493 echo "cat >conf$$subs.awk <<_ACEOF" && 15494 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15495 echo "_ACEOF" 15496} >conf$$subs.sh || 15497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15498ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15499ac_delim='%!_!# ' 15500for ac_last_try in false false false false false :; do 15501 . ./conf$$subs.sh || 15502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15503 15504 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15505 if test $ac_delim_n = $ac_delim_num; then 15506 break 15507 elif $ac_last_try; then 15508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15509 else 15510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15511 fi 15512done 15513rm -f conf$$subs.sh 15514 15515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15516cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15517_ACEOF 15518sed -n ' 15519h 15520s/^/S["/; s/!.*/"]=/ 15521p 15522g 15523s/^[^!]*!// 15524:repl 15525t repl 15526s/'"$ac_delim"'$// 15527t delim 15528:nl 15529h 15530s/\(.\{148\}\)..*/\1/ 15531t more1 15532s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15533p 15534n 15535b repl 15536:more1 15537s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15538p 15539g 15540s/.\{148\}// 15541t nl 15542:delim 15543h 15544s/\(.\{148\}\)..*/\1/ 15545t more2 15546s/["\\]/\\&/g; s/^/"/; s/$/"/ 15547p 15548b 15549:more2 15550s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15551p 15552g 15553s/.\{148\}// 15554t delim 15555' <conf$$subs.awk | sed ' 15556/^[^""]/{ 15557 N 15558 s/\n// 15559} 15560' >>$CONFIG_STATUS || ac_write_fail=1 15561rm -f conf$$subs.awk 15562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15563_ACAWK 15564cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15565 for (key in S) S_is_set[key] = 1 15566 FS = "" 15567 15568} 15569{ 15570 line = $ 0 15571 nfields = split(line, field, "@") 15572 substed = 0 15573 len = length(field[1]) 15574 for (i = 2; i < nfields; i++) { 15575 key = field[i] 15576 keylen = length(key) 15577 if (S_is_set[key]) { 15578 value = S[key] 15579 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15580 len += length(value) + length(field[++i]) 15581 substed = 1 15582 } else 15583 len += 1 + keylen 15584 } 15585 15586 print line 15587} 15588 15589_ACAWK 15590_ACEOF 15591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15592if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15593 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15594else 15595 cat 15596fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15597 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15598_ACEOF 15599 15600# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15601# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15602# trailing colons and then remove the whole line if VPATH becomes empty 15603# (actually we leave an empty line to preserve line numbers). 15604if test "x$srcdir" = x.; then 15605 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15606h 15607s/// 15608s/^/:/ 15609s/[ ]*$/:/ 15610s/:\$(srcdir):/:/g 15611s/:\${srcdir}:/:/g 15612s/:@srcdir@:/:/g 15613s/^:*// 15614s/:*$// 15615x 15616s/\(=[ ]*\).*/\1/ 15617G 15618s/\n// 15619s/^[^=]*=[ ]*$// 15620}' 15621fi 15622 15623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15624fi # test -n "$CONFIG_FILES" 15625 15626 15627eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 15628shift 15629for ac_tag 15630do 15631 case $ac_tag in 15632 :[FHLC]) ac_mode=$ac_tag; continue;; 15633 esac 15634 case $ac_mode$ac_tag in 15635 :[FHL]*:*);; 15636 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15637 :[FH]-) ac_tag=-:-;; 15638 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15639 esac 15640 ac_save_IFS=$IFS 15641 IFS=: 15642 set x $ac_tag 15643 IFS=$ac_save_IFS 15644 shift 15645 ac_file=$1 15646 shift 15647 15648 case $ac_mode in 15649 :L) ac_source=$1;; 15650 :[FH]) 15651 ac_file_inputs= 15652 for ac_f 15653 do 15654 case $ac_f in 15655 -) ac_f="$ac_tmp/stdin";; 15656 *) # Look for the file first in the build tree, then in the source tree 15657 # (if the path is not absolute). The absolute path cannot be DOS-style, 15658 # because $ac_f cannot contain `:'. 15659 test -f "$ac_f" || 15660 case $ac_f in 15661 [\\/$]*) false;; 15662 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15663 esac || 15664 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15665 esac 15666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15667 as_fn_append ac_file_inputs " '$ac_f'" 15668 done 15669 15670 # Let's still pretend it is `configure' which instantiates (i.e., don't 15671 # use $as_me), people would be surprised to read: 15672 # /* config.h. Generated by config.status. */ 15673 configure_input='Generated from '` 15674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15675 `' by configure.' 15676 if test x"$ac_file" != x-; then 15677 configure_input="$ac_file. $configure_input" 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15679$as_echo "$as_me: creating $ac_file" >&6;} 15680 fi 15681 # Neutralize special characters interpreted by sed in replacement strings. 15682 case $configure_input in #( 15683 *\&* | *\|* | *\\* ) 15684 ac_sed_conf_input=`$as_echo "$configure_input" | 15685 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15686 *) ac_sed_conf_input=$configure_input;; 15687 esac 15688 15689 case $ac_tag in 15690 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15692 esac 15693 ;; 15694 esac 15695 15696 ac_dir=`$as_dirname -- "$ac_file" || 15697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15698 X"$ac_file" : 'X\(//\)[^/]' \| \ 15699 X"$ac_file" : 'X\(//\)$' \| \ 15700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15701$as_echo X"$ac_file" | 15702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15703 s//\1/ 15704 q 15705 } 15706 /^X\(\/\/\)[^/].*/{ 15707 s//\1/ 15708 q 15709 } 15710 /^X\(\/\/\)$/{ 15711 s//\1/ 15712 q 15713 } 15714 /^X\(\/\).*/{ 15715 s//\1/ 15716 q 15717 } 15718 s/.*/./; q'` 15719 as_dir="$ac_dir"; as_fn_mkdir_p 15720 ac_builddir=. 15721 15722case "$ac_dir" in 15723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15724*) 15725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15726 # A ".." for each directory in $ac_dir_suffix. 15727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15728 case $ac_top_builddir_sub in 15729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15731 esac ;; 15732esac 15733ac_abs_top_builddir=$ac_pwd 15734ac_abs_builddir=$ac_pwd$ac_dir_suffix 15735# for backward compatibility: 15736ac_top_builddir=$ac_top_build_prefix 15737 15738case $srcdir in 15739 .) # We are building in place. 15740 ac_srcdir=. 15741 ac_top_srcdir=$ac_top_builddir_sub 15742 ac_abs_top_srcdir=$ac_pwd ;; 15743 [\\/]* | ?:[\\/]* ) # Absolute name. 15744 ac_srcdir=$srcdir$ac_dir_suffix; 15745 ac_top_srcdir=$srcdir 15746 ac_abs_top_srcdir=$srcdir ;; 15747 *) # Relative name. 15748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15749 ac_top_srcdir=$ac_top_build_prefix$srcdir 15750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15751esac 15752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15753 15754 15755 case $ac_mode in 15756 :F) 15757 # 15758 # CONFIG_FILE 15759 # 15760 15761 case $INSTALL in 15762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15763 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15764 esac 15765 ac_MKDIR_P=$MKDIR_P 15766 case $MKDIR_P in 15767 [\\/$]* | ?:[\\/]* ) ;; 15768 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15769 esac 15770_ACEOF 15771 15772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15773# If the template does not know about datarootdir, expand it. 15774# FIXME: This hack should be removed a few years after 2.60. 15775ac_datarootdir_hack=; ac_datarootdir_seen= 15776ac_sed_dataroot=' 15777/datarootdir/ { 15778 p 15779 q 15780} 15781/@datadir@/p 15782/@docdir@/p 15783/@infodir@/p 15784/@localedir@/p 15785/@mandir@/p' 15786case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15787*datarootdir*) ac_datarootdir_seen=yes;; 15788*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15790$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15791_ACEOF 15792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15793 ac_datarootdir_hack=' 15794 s&@datadir@&$datadir&g 15795 s&@docdir@&$docdir&g 15796 s&@infodir@&$infodir&g 15797 s&@localedir@&$localedir&g 15798 s&@mandir@&$mandir&g 15799 s&\\\${datarootdir}&$datarootdir&g' ;; 15800esac 15801_ACEOF 15802 15803# Neutralize VPATH when `$srcdir' = `.'. 15804# Shell code in configure.ac might set extrasub. 15805# FIXME: do we really want to maintain this feature? 15806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15807ac_sed_extra="$ac_vpsub 15808$extrasub 15809_ACEOF 15810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15811:t 15812/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15813s|@configure_input@|$ac_sed_conf_input|;t t 15814s&@top_builddir@&$ac_top_builddir_sub&;t t 15815s&@top_build_prefix@&$ac_top_build_prefix&;t t 15816s&@srcdir@&$ac_srcdir&;t t 15817s&@abs_srcdir@&$ac_abs_srcdir&;t t 15818s&@top_srcdir@&$ac_top_srcdir&;t t 15819s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15820s&@builddir@&$ac_builddir&;t t 15821s&@abs_builddir@&$ac_abs_builddir&;t t 15822s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15823s&@INSTALL@&$ac_INSTALL&;t t 15824s&@MKDIR_P@&$ac_MKDIR_P&;t t 15825$ac_datarootdir_hack 15826" 15827eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15828 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15829 15830test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15833 "$ac_tmp/out"`; test -z "$ac_out"; } && 15834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15835which seems to be undefined. Please make sure it is defined" >&5 15836$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15837which seems to be undefined. Please make sure it is defined" >&2;} 15838 15839 rm -f "$ac_tmp/stdin" 15840 case $ac_file in 15841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15843 esac \ 15844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15845 ;; 15846 15847 15848 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15849$as_echo "$as_me: executing $ac_file commands" >&6;} 15850 ;; 15851 esac 15852 15853 15854 case $ac_file$ac_mode in 15855 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15856 # Older Autoconf quotes --file arguments for eval, but not when files 15857 # are listed without --file. Let's play safe and only enable the eval 15858 # if we detect the quoting. 15859 # TODO: see whether this extra hack can be removed once we start 15860 # requiring Autoconf 2.70 or later. 15861 case $CONFIG_FILES in #( 15862 *\'*) : 15863 eval set x "$CONFIG_FILES" ;; #( 15864 *) : 15865 set x $CONFIG_FILES ;; #( 15866 *) : 15867 ;; 15868esac 15869 shift 15870 # Used to flag and report bootstrapping failures. 15871 am_rc=0 15872 for am_mf 15873 do 15874 # Strip MF so we end up with the name of the file. 15875 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15876 # Check whether this is an Automake generated Makefile which includes 15877 # dependency-tracking related rules and includes. 15878 # Grep'ing the whole file directly is not great: AIX grep has a line 15879 # limit of 2048, but all sed's we know have understand at least 4000. 15880 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15881 || continue 15882 am_dirpart=`$as_dirname -- "$am_mf" || 15883$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15884 X"$am_mf" : 'X\(//\)[^/]' \| \ 15885 X"$am_mf" : 'X\(//\)$' \| \ 15886 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15887$as_echo X"$am_mf" | 15888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15889 s//\1/ 15890 q 15891 } 15892 /^X\(\/\/\)[^/].*/{ 15893 s//\1/ 15894 q 15895 } 15896 /^X\(\/\/\)$/{ 15897 s//\1/ 15898 q 15899 } 15900 /^X\(\/\).*/{ 15901 s//\1/ 15902 q 15903 } 15904 s/.*/./; q'` 15905 am_filepart=`$as_basename -- "$am_mf" || 15906$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15907 X"$am_mf" : 'X\(//\)$' \| \ 15908 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15909$as_echo X/"$am_mf" | 15910 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15911 s//\1/ 15912 q 15913 } 15914 /^X\/\(\/\/\)$/{ 15915 s//\1/ 15916 q 15917 } 15918 /^X\/\(\/\).*/{ 15919 s//\1/ 15920 q 15921 } 15922 s/.*/./; q'` 15923 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15924 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15925 | $MAKE -f - am--depfiles" >&5 15926 (cd "$am_dirpart" \ 15927 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15928 | $MAKE -f - am--depfiles) >&5 2>&5 15929 ac_status=$? 15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15931 (exit $ac_status); } || am_rc=$? 15932 done 15933 if test $am_rc -ne 0; then 15934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15936as_fn_error $? "Something went wrong bootstrapping makefile fragments 15937 for automatic dependency tracking. If GNU make was not used, consider 15938 re-running the configure script with MAKE=\"gmake\" (or whatever is 15939 necessary). You can also try re-running configure with the 15940 '--disable-dependency-tracking' option to at least be able to build 15941 the package (albeit without support for automatic dependency tracking). 15942See \`config.log' for more details" "$LINENO" 5; } 15943 fi 15944 { am_dirpart=; unset am_dirpart;} 15945 { am_filepart=; unset am_filepart;} 15946 { am_mf=; unset am_mf;} 15947 { am_rc=; unset am_rc;} 15948 rm -f conftest-deps.mk 15949} 15950 ;; 15951 "libtool":C) 15952 15953 # See if we are running on zsh, and set the options which allow our 15954 # commands through without removal of \ escapes. 15955 if test -n "${ZSH_VERSION+set}" ; then 15956 setopt NO_GLOB_SUBST 15957 fi 15958 15959 cfgfile="${ofile}T" 15960 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15961 $RM "$cfgfile" 15962 15963 cat <<_LT_EOF >> "$cfgfile" 15964#! $SHELL 15965 15966# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15967# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15969# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15970# 15971# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15972# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15973# Foundation, Inc. 15974# Written by Gordon Matzigkeit, 1996 15975# 15976# This file is part of GNU Libtool. 15977# 15978# GNU Libtool is free software; you can redistribute it and/or 15979# modify it under the terms of the GNU General Public License as 15980# published by the Free Software Foundation; either version 2 of 15981# the License, or (at your option) any later version. 15982# 15983# As a special exception to the GNU General Public License, 15984# if you distribute this file as part of a program or library that 15985# is built using GNU Libtool, you may include this file under the 15986# same distribution terms that you use for the rest of that program. 15987# 15988# GNU Libtool is distributed in the hope that it will be useful, 15989# but WITHOUT ANY WARRANTY; without even the implied warranty of 15990# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15991# GNU General Public License for more details. 15992# 15993# You should have received a copy of the GNU General Public License 15994# along with GNU Libtool; see the file COPYING. If not, a copy 15995# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15996# obtained by writing to the Free Software Foundation, Inc., 15997# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15998 15999 16000# The names of the tagged configurations supported by this script. 16001available_tags="" 16002 16003# ### BEGIN LIBTOOL CONFIG 16004 16005# Which release of libtool.m4 was used? 16006macro_version=$macro_version 16007macro_revision=$macro_revision 16008 16009# What type of objects to build. 16010pic_mode=$pic_mode 16011 16012# Whether or not to build shared libraries. 16013build_libtool_libs=$enable_shared 16014 16015# Whether or not to build static libraries. 16016build_old_libs=$enable_static 16017 16018# Whether or not to optimize for fast installation. 16019fast_install=$enable_fast_install 16020 16021# Shell to use when invoking shell scripts. 16022SHELL=$lt_SHELL 16023 16024# An echo program that protects backslashes. 16025ECHO=$lt_ECHO 16026 16027# The PATH separator for the build system. 16028PATH_SEPARATOR=$lt_PATH_SEPARATOR 16029 16030# The host system. 16031host_alias=$host_alias 16032host=$host 16033host_os=$host_os 16034 16035# The build system. 16036build_alias=$build_alias 16037build=$build 16038build_os=$build_os 16039 16040# A sed program that does not truncate output. 16041SED=$lt_SED 16042 16043# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16044Xsed="\$SED -e 1s/^X//" 16045 16046# A grep program that handles long lines. 16047GREP=$lt_GREP 16048 16049# An ERE matcher. 16050EGREP=$lt_EGREP 16051 16052# A literal string matcher. 16053FGREP=$lt_FGREP 16054 16055# A BSD- or MS-compatible name lister. 16056NM=$lt_NM 16057 16058# Whether we need soft or hard links. 16059LN_S=$lt_LN_S 16060 16061# What is the maximum length of a command? 16062max_cmd_len=$max_cmd_len 16063 16064# Object file suffix (normally "o"). 16065objext=$ac_objext 16066 16067# Executable file suffix (normally ""). 16068exeext=$exeext 16069 16070# whether the shell understands "unset". 16071lt_unset=$lt_unset 16072 16073# turn spaces into newlines. 16074SP2NL=$lt_lt_SP2NL 16075 16076# turn newlines into spaces. 16077NL2SP=$lt_lt_NL2SP 16078 16079# convert \$build file names to \$host format. 16080to_host_file_cmd=$lt_cv_to_host_file_cmd 16081 16082# convert \$build files to toolchain format. 16083to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16084 16085# An object symbol dumper. 16086OBJDUMP=$lt_OBJDUMP 16087 16088# Method to check whether dependent libraries are shared objects. 16089deplibs_check_method=$lt_deplibs_check_method 16090 16091# Command to use when deplibs_check_method = "file_magic". 16092file_magic_cmd=$lt_file_magic_cmd 16093 16094# How to find potential files when deplibs_check_method = "file_magic". 16095file_magic_glob=$lt_file_magic_glob 16096 16097# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16098want_nocaseglob=$lt_want_nocaseglob 16099 16100# DLL creation program. 16101DLLTOOL=$lt_DLLTOOL 16102 16103# Command to associate shared and link libraries. 16104sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16105 16106# The archiver. 16107AR=$lt_AR 16108 16109# Flags to create an archive. 16110AR_FLAGS=$lt_AR_FLAGS 16111 16112# How to feed a file listing to the archiver. 16113archiver_list_spec=$lt_archiver_list_spec 16114 16115# A symbol stripping program. 16116STRIP=$lt_STRIP 16117 16118# Commands used to install an old-style archive. 16119RANLIB=$lt_RANLIB 16120old_postinstall_cmds=$lt_old_postinstall_cmds 16121old_postuninstall_cmds=$lt_old_postuninstall_cmds 16122 16123# Whether to use a lock for old archive extraction. 16124lock_old_archive_extraction=$lock_old_archive_extraction 16125 16126# A C compiler. 16127LTCC=$lt_CC 16128 16129# LTCC compiler flags. 16130LTCFLAGS=$lt_CFLAGS 16131 16132# Take the output of nm and produce a listing of raw symbols and C names. 16133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16134 16135# Transform the output of nm in a proper C declaration. 16136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16137 16138# Transform the output of nm in a C name address pair. 16139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16140 16141# Transform the output of nm in a C name address pair when lib prefix is needed. 16142global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16143 16144# Specify filename containing input files for \$NM. 16145nm_file_list_spec=$lt_nm_file_list_spec 16146 16147# The root where to search for dependent libraries,and in which our libraries should be installed. 16148lt_sysroot=$lt_sysroot 16149 16150# The name of the directory that contains temporary libtool files. 16151objdir=$objdir 16152 16153# Used to examine libraries when file_magic_cmd begins with "file". 16154MAGIC_CMD=$MAGIC_CMD 16155 16156# Must we lock files when doing compilation? 16157need_locks=$lt_need_locks 16158 16159# Manifest tool. 16160MANIFEST_TOOL=$lt_MANIFEST_TOOL 16161 16162# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16163DSYMUTIL=$lt_DSYMUTIL 16164 16165# Tool to change global to local symbols on Mac OS X. 16166NMEDIT=$lt_NMEDIT 16167 16168# Tool to manipulate fat objects and archives on Mac OS X. 16169LIPO=$lt_LIPO 16170 16171# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16172OTOOL=$lt_OTOOL 16173 16174# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16175OTOOL64=$lt_OTOOL64 16176 16177# Old archive suffix (normally "a"). 16178libext=$libext 16179 16180# Shared library suffix (normally ".so"). 16181shrext_cmds=$lt_shrext_cmds 16182 16183# The commands to extract the exported symbol list from a shared archive. 16184extract_expsyms_cmds=$lt_extract_expsyms_cmds 16185 16186# Variables whose values should be saved in libtool wrapper scripts and 16187# restored at link time. 16188variables_saved_for_relink=$lt_variables_saved_for_relink 16189 16190# Do we need the "lib" prefix for modules? 16191need_lib_prefix=$need_lib_prefix 16192 16193# Do we need a version for libraries? 16194need_version=$need_version 16195 16196# Library versioning type. 16197version_type=$version_type 16198 16199# Shared library runtime path variable. 16200runpath_var=$runpath_var 16201 16202# Shared library path variable. 16203shlibpath_var=$shlibpath_var 16204 16205# Is shlibpath searched before the hard-coded library search path? 16206shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16207 16208# Format of library name prefix. 16209libname_spec=$lt_libname_spec 16210 16211# List of archive names. First name is the real one, the rest are links. 16212# The last name is the one that the linker finds with -lNAME 16213library_names_spec=$lt_library_names_spec 16214 16215# The coded name of the library, if different from the real name. 16216soname_spec=$lt_soname_spec 16217 16218# Permission mode override for installation of shared libraries. 16219install_override_mode=$lt_install_override_mode 16220 16221# Command to use after installation of a shared archive. 16222postinstall_cmds=$lt_postinstall_cmds 16223 16224# Command to use after uninstallation of a shared archive. 16225postuninstall_cmds=$lt_postuninstall_cmds 16226 16227# Commands used to finish a libtool library installation in a directory. 16228finish_cmds=$lt_finish_cmds 16229 16230# As "finish_cmds", except a single script fragment to be evaled but 16231# not shown. 16232finish_eval=$lt_finish_eval 16233 16234# Whether we should hardcode library paths into libraries. 16235hardcode_into_libs=$hardcode_into_libs 16236 16237# Compile-time system search path for libraries. 16238sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16239 16240# Run-time system search path for libraries. 16241sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16242 16243# Whether dlopen is supported. 16244dlopen_support=$enable_dlopen 16245 16246# Whether dlopen of programs is supported. 16247dlopen_self=$enable_dlopen_self 16248 16249# Whether dlopen of statically linked programs is supported. 16250dlopen_self_static=$enable_dlopen_self_static 16251 16252# Commands to strip libraries. 16253old_striplib=$lt_old_striplib 16254striplib=$lt_striplib 16255 16256 16257# The linker used to build libraries. 16258LD=$lt_LD 16259 16260# How to create reloadable object files. 16261reload_flag=$lt_reload_flag 16262reload_cmds=$lt_reload_cmds 16263 16264# Commands used to build an old-style archive. 16265old_archive_cmds=$lt_old_archive_cmds 16266 16267# A language specific compiler. 16268CC=$lt_compiler 16269 16270# Is the compiler the GNU compiler? 16271with_gcc=$GCC 16272 16273# Compiler flag to turn off builtin functions. 16274no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16275 16276# Additional compiler flags for building library objects. 16277pic_flag=$lt_lt_prog_compiler_pic 16278 16279# How to pass a linker flag through the compiler. 16280wl=$lt_lt_prog_compiler_wl 16281 16282# Compiler flag to prevent dynamic linking. 16283link_static_flag=$lt_lt_prog_compiler_static 16284 16285# Does compiler simultaneously support -c and -o options? 16286compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16287 16288# Whether or not to add -lc for building shared libraries. 16289build_libtool_need_lc=$archive_cmds_need_lc 16290 16291# Whether or not to disallow shared libs when runtime libs are static. 16292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16293 16294# Compiler flag to allow reflexive dlopens. 16295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16296 16297# Compiler flag to generate shared objects directly from archives. 16298whole_archive_flag_spec=$lt_whole_archive_flag_spec 16299 16300# Whether the compiler copes with passing no objects directly. 16301compiler_needs_object=$lt_compiler_needs_object 16302 16303# Create an old-style archive from a shared archive. 16304old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16305 16306# Create a temporary old-style archive to link instead of a shared archive. 16307old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16308 16309# Commands used to build a shared archive. 16310archive_cmds=$lt_archive_cmds 16311archive_expsym_cmds=$lt_archive_expsym_cmds 16312 16313# Commands used to build a loadable module if different from building 16314# a shared archive. 16315module_cmds=$lt_module_cmds 16316module_expsym_cmds=$lt_module_expsym_cmds 16317 16318# Whether we are building with GNU ld or not. 16319with_gnu_ld=$lt_with_gnu_ld 16320 16321# Flag that allows shared libraries with undefined symbols to be built. 16322allow_undefined_flag=$lt_allow_undefined_flag 16323 16324# Flag that enforces no undefined symbols. 16325no_undefined_flag=$lt_no_undefined_flag 16326 16327# Flag to hardcode \$libdir into a binary during linking. 16328# This must work even if \$libdir does not exist 16329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16330 16331# Whether we need a single "-rpath" flag with a separated argument. 16332hardcode_libdir_separator=$lt_hardcode_libdir_separator 16333 16334# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16335# DIR into the resulting binary. 16336hardcode_direct=$hardcode_direct 16337 16338# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16339# DIR into the resulting binary and the resulting library dependency is 16340# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16341# library is relocated. 16342hardcode_direct_absolute=$hardcode_direct_absolute 16343 16344# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16345# into the resulting binary. 16346hardcode_minus_L=$hardcode_minus_L 16347 16348# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16349# into the resulting binary. 16350hardcode_shlibpath_var=$hardcode_shlibpath_var 16351 16352# Set to "yes" if building a shared library automatically hardcodes DIR 16353# into the library and all subsequent libraries and executables linked 16354# against it. 16355hardcode_automatic=$hardcode_automatic 16356 16357# Set to yes if linker adds runtime paths of dependent libraries 16358# to runtime path list. 16359inherit_rpath=$inherit_rpath 16360 16361# Whether libtool must link a program against all its dependency libraries. 16362link_all_deplibs=$link_all_deplibs 16363 16364# Set to "yes" if exported symbols are required. 16365always_export_symbols=$always_export_symbols 16366 16367# The commands to list exported symbols. 16368export_symbols_cmds=$lt_export_symbols_cmds 16369 16370# Symbols that should not be listed in the preloaded symbols. 16371exclude_expsyms=$lt_exclude_expsyms 16372 16373# Symbols that must always be exported. 16374include_expsyms=$lt_include_expsyms 16375 16376# Commands necessary for linking programs (against libraries) with templates. 16377prelink_cmds=$lt_prelink_cmds 16378 16379# Commands necessary for finishing linking programs. 16380postlink_cmds=$lt_postlink_cmds 16381 16382# Specify filename containing input files. 16383file_list_spec=$lt_file_list_spec 16384 16385# How to hardcode a shared library path into an executable. 16386hardcode_action=$hardcode_action 16387 16388# ### END LIBTOOL CONFIG 16389 16390_LT_EOF 16391 16392 case $host_os in 16393 aix3*) 16394 cat <<\_LT_EOF >> "$cfgfile" 16395# AIX sometimes has problems with the GCC collect2 program. For some 16396# reason, if we set the COLLECT_NAMES environment variable, the problems 16397# vanish in a puff of smoke. 16398if test "X${COLLECT_NAMES+set}" != Xset; then 16399 COLLECT_NAMES= 16400 export COLLECT_NAMES 16401fi 16402_LT_EOF 16403 ;; 16404 esac 16405 16406 16407ltmain="$ac_aux_dir/ltmain.sh" 16408 16409 16410 # We use sed instead of cat because bash on DJGPP gets confused if 16411 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16412 # text mode, it properly converts lines to CR/LF. This bash problem 16413 # is reportedly fixed, but why not run on old versions too? 16414 sed '$q' "$ltmain" >> "$cfgfile" \ 16415 || (rm -f "$cfgfile"; exit 1) 16416 16417 if test x"$xsi_shell" = xyes; then 16418 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 16419func_dirname ()\ 16420{\ 16421\ case ${1} in\ 16422\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16423\ * ) func_dirname_result="${3}" ;;\ 16424\ esac\ 16425} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 16426 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16428test 0 -eq $? || _lt_function_replace_fail=: 16429 16430 16431 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 16432func_basename ()\ 16433{\ 16434\ func_basename_result="${1##*/}"\ 16435} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16436 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16438test 0 -eq $? || _lt_function_replace_fail=: 16439 16440 16441 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 16442func_dirname_and_basename ()\ 16443{\ 16444\ case ${1} in\ 16445\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16446\ * ) func_dirname_result="${3}" ;;\ 16447\ esac\ 16448\ func_basename_result="${1##*/}"\ 16449} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16450 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16452test 0 -eq $? || _lt_function_replace_fail=: 16453 16454 16455 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 16456func_stripname ()\ 16457{\ 16458\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 16459\ # positional parameters, so assign one to ordinary parameter first.\ 16460\ func_stripname_result=${3}\ 16461\ func_stripname_result=${func_stripname_result#"${1}"}\ 16462\ func_stripname_result=${func_stripname_result%"${2}"}\ 16463} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 16464 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16466test 0 -eq $? || _lt_function_replace_fail=: 16467 16468 16469 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 16470func_split_long_opt ()\ 16471{\ 16472\ func_split_long_opt_name=${1%%=*}\ 16473\ func_split_long_opt_arg=${1#*=}\ 16474} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16475 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16477test 0 -eq $? || _lt_function_replace_fail=: 16478 16479 16480 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 16481func_split_short_opt ()\ 16482{\ 16483\ func_split_short_opt_arg=${1#??}\ 16484\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 16485} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16486 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16488test 0 -eq $? || _lt_function_replace_fail=: 16489 16490 16491 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 16492func_lo2o ()\ 16493{\ 16494\ case ${1} in\ 16495\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 16496\ *) func_lo2o_result=${1} ;;\ 16497\ esac\ 16498} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 16499 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16501test 0 -eq $? || _lt_function_replace_fail=: 16502 16503 16504 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 16505func_xform ()\ 16506{\ 16507 func_xform_result=${1%.*}.lo\ 16508} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 16509 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16511test 0 -eq $? || _lt_function_replace_fail=: 16512 16513 16514 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 16515func_arith ()\ 16516{\ 16517 func_arith_result=$(( $* ))\ 16518} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 16519 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16521test 0 -eq $? || _lt_function_replace_fail=: 16522 16523 16524 sed -e '/^func_len ()$/,/^} # func_len /c\ 16525func_len ()\ 16526{\ 16527 func_len_result=${#1}\ 16528} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 16529 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16531test 0 -eq $? || _lt_function_replace_fail=: 16532 16533fi 16534 16535if test x"$lt_shell_append" = xyes; then 16536 sed -e '/^func_append ()$/,/^} # func_append /c\ 16537func_append ()\ 16538{\ 16539 eval "${1}+=\\${2}"\ 16540} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 16541 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16543test 0 -eq $? || _lt_function_replace_fail=: 16544 16545 16546 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 16547func_append_quoted ()\ 16548{\ 16549\ func_quote_for_eval "${2}"\ 16550\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 16551} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 16552 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16554test 0 -eq $? || _lt_function_replace_fail=: 16555 16556 16557 # Save a `func_append' function call where possible by direct use of '+=' 16558 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 16559 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16561 test 0 -eq $? || _lt_function_replace_fail=: 16562else 16563 # Save a `func_append' function call even when '+=' is not available 16564 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16565 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16567 test 0 -eq $? || _lt_function_replace_fail=: 16568fi 16569 16570if test x"$_lt_function_replace_fail" = x":"; then 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16572$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16573fi 16574 16575 16576 mv -f "$cfgfile" "$ofile" || 16577 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16578 chmod +x "$ofile" 16579 16580 ;; 16581 16582 esac 16583done # for ac_tag 16584 16585 16586as_fn_exit 0 16587_ACEOF 16588ac_clean_files=$ac_clean_files_save 16589 16590test $ac_write_fail = 0 || 16591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16592 16593 16594# configure is writing to config.log, and then calls config.status. 16595# config.status does its own redirection, appending to config.log. 16596# Unfortunately, on DOS this fails, as config.log is still kept open 16597# by configure, so config.status won't be able to write to it; its 16598# output is simply discarded. So we exec the FD to /dev/null, 16599# effectively closing config.log, so it can be properly (re)opened and 16600# appended to by config.status. When coming back to configure, we 16601# need to make the FD available again. 16602if test "$no_create" != yes; then 16603 ac_cs_success=: 16604 ac_config_status_args= 16605 test "$silent" = yes && 16606 ac_config_status_args="$ac_config_status_args --quiet" 16607 exec 5>/dev/null 16608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16609 exec 5>>config.log 16610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16611 # would make configure fail if this is the last instruction. 16612 $ac_cs_success || as_fn_exit 1 16613fi 16614if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16616$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16617fi 16618 16619