1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for unbound 1.13.1. 4# 5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: unbound-bugs@nlnetlabs.nl or 280$0: https://github.com/NLnetLabs/unbound/issues about your 281$0: system, including any error possibly output before this 282$0: message. Then install a modern shell, or manually run 283$0: the script under such a shell if you do have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='unbound' 624PACKAGE_TARNAME='unbound' 625PACKAGE_VERSION='1.13.1' 626PACKAGE_STRING='unbound 1.13.1' 627PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' 628PACKAGE_URL='' 629 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_func_c_list= 663ac_subst_vars='LTLIBOBJS 664date 665version 666INSTALLTARGET 667ALLTARGET 668SOURCEFILE 669SOURCEDETERMINE 670IPSET_OBJ 671IPSET_SRC 672IPSECMOD_HEADER 673IPSECMOD_OBJ 674DNSCRYPT_OBJ 675DNSCRYPT_SRC 676ENABLE_DNSCRYPT 677ENABLE_DNSCRYPT_XCHACHA20 678DNSTAP_OBJ 679DNSTAP_SRC 680DNSTAP_SOCKET_TESTBIN 681DNSTAP_SOCKET_PATH 682opt_dnstap_socket_path 683ENABLE_DNSTAP 684PROTOC_C 685UBSYMS 686EXTRALINK 687COMMON_OBJ_ALL_SYMBOLS 688LIBOBJ_WITHOUT_CTIME 689LIBOBJ_WITHOUT_CTIMEARC4 690WIN_CHECKCONF_OBJ_LINK 691WIN_CONTROL_OBJ_LINK 692WIN_UBANCHOR_OBJ_LINK 693WIN_HOST_OBJ_LINK 694WIN_DAEMON_OBJ_LINK 695WIN_DAEMON_OBJ 696WIN_DAEMON_SRC 697WINAPPS 698WINDRES 699CHECKLOCK_OBJ 700staticexe 701PC_LIBEVENT_DEPENDENCY 702UNBOUND_EVENT_UNINSTALL 703UNBOUND_EVENT_INSTALL 704SUBNET_HEADER 705SUBNET_OBJ 706PC_LIBBSD_DEPENDENCY 707SSLLIB 708HAVE_SSL 709PC_CRYPTO_DEPENDENCY 710CONFIG_DATE 711NETBSD_LINTFLAGS 712PYUNBOUND_UNINSTALL 713PYUNBOUND_INSTALL 714PYUNBOUND_TARGET 715PYUNBOUND_OBJ 716WITH_PYUNBOUND 717PYTHONMOD_UNINSTALL 718PYTHONMOD_INSTALL 719PYTHONMOD_HEADER 720PYTHONMOD_OBJ 721WITH_PYTHONMODULE 722swig 723SWIG_LIB 724SWIG 725PC_PY_DEPENDENCY 726PY_MAJOR_VERSION 727PYTHON_SITE_PKG 728PYTHON_LDFLAGS 729PYTHON_CPPFLAGS 730PYTHON 731PYTHON_VERSION 732DYNLIBMOD_EXTRALIBS 733DYNLIBMOD_HEADER 734DYNLIBMOD_OBJ 735WITH_DYNLIBMODULE 736PTHREAD_CFLAGS_ONLY 737PTHREAD_CFLAGS 738PTHREAD_LIBS 739PTHREAD_CC 740ax_pthread_config 741ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 742SLDNS_ALLOCCHECK_EXTRA_OBJ 743USE_SYSTEMD_FALSE 744USE_SYSTEMD_TRUE 745SYSTEMD_DAEMON_LIBS 746SYSTEMD_DAEMON_CFLAGS 747SYSTEMD_LIBS 748SYSTEMD_CFLAGS 749RUNTIME_PATH 750LIBOBJS 751CPP 752PKG_CONFIG_LIBDIR 753PKG_CONFIG_PATH 754PKG_CONFIG 755LT_SYS_LIBRARY_PATH 756OTOOL64 757OTOOL 758LIPO 759NMEDIT 760DSYMUTIL 761MANIFEST_TOOL 762AWK 763RANLIB 764ac_ct_AR 765DLLTOOL 766OBJDUMP 767LN_S 768NM 769ac_ct_DUMPBIN 770DUMPBIN 771LD 772FGREP 773EGREP 774GREP 775SED 776LIBTOOL 777AR 778host_os 779host_vendor 780host_cpu 781host 782build_os 783build_vendor 784build_cpu 785build 786libtool 787STRIP 788doxygen 789YFLAGS 790YACC 791LEXLIB 792LEX_OUTPUT_ROOT 793LEX 794debug_enabled 795DEPFLAG 796UNBOUND_USERNAME 797UNBOUND_ROOTCERT_FILE 798UNBOUND_ROOTKEY_FILE 799UNBOUND_PIDFILE 800UNBOUND_SHARE_DIR 801UNBOUND_CHROOT_DIR 802UNBOUND_RUN_DIR 803ub_conf_dir 804ub_conf_file 805UNBOUND_LOCALSTATE_DIR 806UNBOUND_SYSCONF_DIR 807UNBOUND_SBIN_DIR 808OBJEXT 809EXEEXT 810ac_ct_CC 811CPPFLAGS 812LDFLAGS 813CFLAGS 814CC 815LIBUNBOUND_AGE 816LIBUNBOUND_REVISION 817LIBUNBOUND_CURRENT 818UNBOUND_VERSION_MICRO 819UNBOUND_VERSION_MINOR 820UNBOUND_VERSION_MAJOR 821target_alias 822host_alias 823build_alias 824LIBS 825ECHO_T 826ECHO_N 827ECHO_C 828DEFS 829mandir 830localedir 831libdir 832psdir 833pdfdir 834dvidir 835htmldir 836infodir 837docdir 838oldincludedir 839includedir 840runstatedir 841localstatedir 842sharedstatedir 843sysconfdir 844datadir 845datarootdir 846libexecdir 847sbindir 848bindir 849program_transform_name 850prefix 851exec_prefix 852PACKAGE_URL 853PACKAGE_BUGREPORT 854PACKAGE_STRING 855PACKAGE_VERSION 856PACKAGE_TARNAME 857PACKAGE_NAME 858PATH_SEPARATOR 859SHELL' 860ac_subst_files='' 861ac_user_opts=' 862enable_option_checking 863with_conf_file 864with_run_dir 865with_chroot_dir 866with_share_dir 867with_pidfile 868with_rootkey_file 869with_rootcert_file 870with_username 871enable_checking 872enable_debug 873enable_flto 874enable_pie 875enable_relro_now 876enable_shared 877enable_static 878with_pic 879enable_fast_install 880with_aix_soname 881with_gnu_ld 882with_sysroot 883enable_libtool_lock 884enable_rpath 885enable_largefile 886enable_systemd 887enable_alloc_checks 888enable_alloc_lite 889enable_alloc_nonregional 890with_pthreads 891with_solaris_threads 892with_syslog_facility 893with_dynlibmodule 894with_pyunbound 895with_pythonmodule 896enable_swig_version_check 897with_nss 898with_nettle 899with_ssl 900with_libbsd 901enable_sha1 902enable_sha2 903enable_subnet 904enable_gost 905enable_ecdsa 906enable_dsa 907enable_ed25519 908enable_ed448 909enable_event_api 910enable_tfo_client 911enable_tfo_server 912with_libevent 913with_libexpat 914with_libhiredis 915with_libnghttp2 916enable_static_exe 917enable_fully_static 918enable_lock_checks 919enable_allsymbols 920enable_dnstap 921with_dnstap_socket_path 922with_protobuf_c 923enable_dnscrypt 924with_libsodium 925enable_cachedb 926enable_ipsecmod 927enable_ipset 928with_libmnl 929enable_explicit_port_randomisation 930with_libunbound_only 931' 932 ac_precious_vars='build_alias 933host_alias 934target_alias 935CC 936CFLAGS 937LDFLAGS 938LIBS 939CPPFLAGS 940YACC 941YFLAGS 942LT_SYS_LIBRARY_PATH 943PKG_CONFIG 944PKG_CONFIG_PATH 945PKG_CONFIG_LIBDIR 946CPP 947SYSTEMD_CFLAGS 948SYSTEMD_LIBS 949SYSTEMD_DAEMON_CFLAGS 950SYSTEMD_DAEMON_LIBS 951PYTHON_VERSION' 952 953 954# Initialize some variables set by options. 955ac_init_help= 956ac_init_version=false 957ac_unrecognized_opts= 958ac_unrecognized_sep= 959# The variables have the same names as the options, with 960# dashes changed to underlines. 961cache_file=/dev/null 962exec_prefix=NONE 963no_create= 964no_recursion= 965prefix=NONE 966program_prefix=NONE 967program_suffix=NONE 968program_transform_name=s,x,x, 969silent= 970site= 971srcdir= 972verbose= 973x_includes=NONE 974x_libraries=NONE 975 976# Installation directory options. 977# These are left unexpanded so users can "make install exec_prefix=/foo" 978# and all the variables that are supposed to be based on exec_prefix 979# by default will actually change. 980# Use braces instead of parens because sh, perl, etc. also accept them. 981# (The list follows the same order as the GNU Coding Standards.) 982bindir='${exec_prefix}/bin' 983sbindir='${exec_prefix}/sbin' 984libexecdir='${exec_prefix}/libexec' 985datarootdir='${prefix}/share' 986datadir='${datarootdir}' 987sysconfdir='${prefix}/etc' 988sharedstatedir='${prefix}/com' 989localstatedir='${prefix}/var' 990runstatedir='${localstatedir}/run' 991includedir='${prefix}/include' 992oldincludedir='/usr/include' 993docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 994infodir='${datarootdir}/info' 995htmldir='${docdir}' 996dvidir='${docdir}' 997pdfdir='${docdir}' 998psdir='${docdir}' 999libdir='${exec_prefix}/lib' 1000localedir='${datarootdir}/locale' 1001mandir='${datarootdir}/man' 1002 1003ac_prev= 1004ac_dashdash= 1005for ac_option 1006do 1007 # If the previous option needs an argument, assign it. 1008 if test -n "$ac_prev"; then 1009 eval $ac_prev=\$ac_option 1010 ac_prev= 1011 continue 1012 fi 1013 1014 case $ac_option in 1015 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1016 *=) ac_optarg= ;; 1017 *) ac_optarg=yes ;; 1018 esac 1019 1020 case $ac_dashdash$ac_option in 1021 --) 1022 ac_dashdash=yes ;; 1023 1024 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1025 ac_prev=bindir ;; 1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1027 bindir=$ac_optarg ;; 1028 1029 -build | --build | --buil | --bui | --bu) 1030 ac_prev=build_alias ;; 1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1032 build_alias=$ac_optarg ;; 1033 1034 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1036 ac_prev=cache_file ;; 1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1039 cache_file=$ac_optarg ;; 1040 1041 --config-cache | -C) 1042 cache_file=config.cache ;; 1043 1044 -datadir | --datadir | --datadi | --datad) 1045 ac_prev=datadir ;; 1046 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1047 datadir=$ac_optarg ;; 1048 1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1050 | --dataroo | --dataro | --datar) 1051 ac_prev=datarootdir ;; 1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1054 datarootdir=$ac_optarg ;; 1055 1056 -disable-* | --disable-*) 1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1060 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065"enable_$ac_useropt" 1066"*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval enable_$ac_useropt=no ;; 1071 1072 -docdir | --docdir | --docdi | --doc | --do) 1073 ac_prev=docdir ;; 1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1075 docdir=$ac_optarg ;; 1076 1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1078 ac_prev=dvidir ;; 1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1080 dvidir=$ac_optarg ;; 1081 1082 -enable-* | --enable-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1087 ac_useropt_orig=$ac_useropt 1088 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1089 case $ac_user_opts in 1090 *" 1091"enable_$ac_useropt" 1092"*) ;; 1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1094 ac_unrecognized_sep=', ';; 1095 esac 1096 eval enable_$ac_useropt=\$ac_optarg ;; 1097 1098 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1099 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1100 | --exec | --exe | --ex) 1101 ac_prev=exec_prefix ;; 1102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1104 | --exec=* | --exe=* | --ex=*) 1105 exec_prefix=$ac_optarg ;; 1106 1107 -gas | --gas | --ga | --g) 1108 # Obsolete; use --with-gas. 1109 with_gas=yes ;; 1110 1111 -help | --help | --hel | --he | -h) 1112 ac_init_help=long ;; 1113 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1114 ac_init_help=recursive ;; 1115 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1116 ac_init_help=short ;; 1117 1118 -host | --host | --hos | --ho) 1119 ac_prev=host_alias ;; 1120 -host=* | --host=* | --hos=* | --ho=*) 1121 host_alias=$ac_optarg ;; 1122 1123 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1124 ac_prev=htmldir ;; 1125 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1126 | --ht=*) 1127 htmldir=$ac_optarg ;; 1128 1129 -includedir | --includedir | --includedi | --included | --include \ 1130 | --includ | --inclu | --incl | --inc) 1131 ac_prev=includedir ;; 1132 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1133 | --includ=* | --inclu=* | --incl=* | --inc=*) 1134 includedir=$ac_optarg ;; 1135 1136 -infodir | --infodir | --infodi | --infod | --info | --inf) 1137 ac_prev=infodir ;; 1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1139 infodir=$ac_optarg ;; 1140 1141 -libdir | --libdir | --libdi | --libd) 1142 ac_prev=libdir ;; 1143 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1144 libdir=$ac_optarg ;; 1145 1146 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1147 | --libexe | --libex | --libe) 1148 ac_prev=libexecdir ;; 1149 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1150 | --libexe=* | --libex=* | --libe=*) 1151 libexecdir=$ac_optarg ;; 1152 1153 -localedir | --localedir | --localedi | --localed | --locale) 1154 ac_prev=localedir ;; 1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1156 localedir=$ac_optarg ;; 1157 1158 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1159 | --localstate | --localstat | --localsta | --localst | --locals) 1160 ac_prev=localstatedir ;; 1161 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1162 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1163 localstatedir=$ac_optarg ;; 1164 1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1166 ac_prev=mandir ;; 1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1168 mandir=$ac_optarg ;; 1169 1170 -nfp | --nfp | --nf) 1171 # Obsolete; use --without-fp. 1172 with_fp=no ;; 1173 1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1175 | --no-cr | --no-c | -n) 1176 no_create=yes ;; 1177 1178 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1179 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1180 no_recursion=yes ;; 1181 1182 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1183 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1184 | --oldin | --oldi | --old | --ol | --o) 1185 ac_prev=oldincludedir ;; 1186 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1187 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1188 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1189 oldincludedir=$ac_optarg ;; 1190 1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1192 ac_prev=prefix ;; 1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1194 prefix=$ac_optarg ;; 1195 1196 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1197 | --program-pre | --program-pr | --program-p) 1198 ac_prev=program_prefix ;; 1199 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1200 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1201 program_prefix=$ac_optarg ;; 1202 1203 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1204 | --program-suf | --program-su | --program-s) 1205 ac_prev=program_suffix ;; 1206 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1207 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1208 program_suffix=$ac_optarg ;; 1209 1210 -program-transform-name | --program-transform-name \ 1211 | --program-transform-nam | --program-transform-na \ 1212 | --program-transform-n | --program-transform- \ 1213 | --program-transform | --program-transfor \ 1214 | --program-transfo | --program-transf \ 1215 | --program-trans | --program-tran \ 1216 | --progr-tra | --program-tr | --program-t) 1217 ac_prev=program_transform_name ;; 1218 -program-transform-name=* | --program-transform-name=* \ 1219 | --program-transform-nam=* | --program-transform-na=* \ 1220 | --program-transform-n=* | --program-transform-=* \ 1221 | --program-transform=* | --program-transfor=* \ 1222 | --program-transfo=* | --program-transf=* \ 1223 | --program-trans=* | --program-tran=* \ 1224 | --progr-tra=* | --program-tr=* | --program-t=*) 1225 program_transform_name=$ac_optarg ;; 1226 1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1228 ac_prev=pdfdir ;; 1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1230 pdfdir=$ac_optarg ;; 1231 1232 -psdir | --psdir | --psdi | --psd | --ps) 1233 ac_prev=psdir ;; 1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1235 psdir=$ac_optarg ;; 1236 1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1238 | -silent | --silent | --silen | --sile | --sil) 1239 silent=yes ;; 1240 1241 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1242 | --runstate | --runstat | --runsta | --runst | --runs \ 1243 | --run | --ru | --r) 1244 ac_prev=runstatedir ;; 1245 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1246 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1247 | --run=* | --ru=* | --r=*) 1248 runstatedir=$ac_optarg ;; 1249 1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1251 ac_prev=sbindir ;; 1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1253 | --sbi=* | --sb=*) 1254 sbindir=$ac_optarg ;; 1255 1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1258 | --sharedst | --shareds | --shared | --share | --shar \ 1259 | --sha | --sh) 1260 ac_prev=sharedstatedir ;; 1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1264 | --sha=* | --sh=*) 1265 sharedstatedir=$ac_optarg ;; 1266 1267 -site | --site | --sit) 1268 ac_prev=site ;; 1269 -site=* | --site=* | --sit=*) 1270 site=$ac_optarg ;; 1271 1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1273 ac_prev=srcdir ;; 1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1275 srcdir=$ac_optarg ;; 1276 1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1278 | --syscon | --sysco | --sysc | --sys | --sy) 1279 ac_prev=sysconfdir ;; 1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1282 sysconfdir=$ac_optarg ;; 1283 1284 -target | --target | --targe | --targ | --tar | --ta | --t) 1285 ac_prev=target_alias ;; 1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1287 target_alias=$ac_optarg ;; 1288 1289 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1290 verbose=yes ;; 1291 1292 -version | --version | --versio | --versi | --vers | -V) 1293 ac_init_version=: ;; 1294 1295 -with-* | --with-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 as_fn_error $? "invalid package name: \`$ac_useropt'" 1300 ac_useropt_orig=$ac_useropt 1301 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1302 case $ac_user_opts in 1303 *" 1304"with_$ac_useropt" 1305"*) ;; 1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1307 ac_unrecognized_sep=', ';; 1308 esac 1309 eval with_$ac_useropt=\$ac_optarg ;; 1310 1311 -without-* | --without-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 as_fn_error $? "invalid package name: \`$ac_useropt'" 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"with_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval with_$ac_useropt=no ;; 1326 1327 --x) 1328 # Obsolete; use --with-x. 1329 with_x=yes ;; 1330 1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1332 | --x-incl | --x-inc | --x-in | --x-i) 1333 ac_prev=x_includes ;; 1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1336 x_includes=$ac_optarg ;; 1337 1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1340 ac_prev=x_libraries ;; 1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1343 x_libraries=$ac_optarg ;; 1344 1345 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1346Try \`$0 --help' for more information" 1347 ;; 1348 1349 *=*) 1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1351 # Reject names that are not valid shell variable names. 1352 case $ac_envvar in #( 1353 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1354 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1355 esac 1356 eval $ac_envvar=\$ac_optarg 1357 export $ac_envvar ;; 1358 1359 *) 1360 # FIXME: should be removed in autoconf 3.0. 1361 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1363 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1364 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1365 ;; 1366 1367 esac 1368done 1369 1370if test -n "$ac_prev"; then 1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1372 as_fn_error $? "missing argument to $ac_option" 1373fi 1374 1375if test -n "$ac_unrecognized_opts"; then 1376 case $enable_option_checking in 1377 no) ;; 1378 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1379 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1380 esac 1381fi 1382 1383# Check all directory arguments for consistency. 1384for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1385 datadir sysconfdir sharedstatedir localstatedir includedir \ 1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1387 libdir localedir mandir runstatedir 1388do 1389 eval ac_val=\$$ac_var 1390 # Remove trailing slashes. 1391 case $ac_val in 1392 */ ) 1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1394 eval $ac_var=\$ac_val;; 1395 esac 1396 # Be sure to have absolute directory names. 1397 case $ac_val in 1398 [\\/$]* | ?:[\\/]* ) continue;; 1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1400 esac 1401 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1402done 1403 1404# There might be people who depend on the old broken behavior: `$host' 1405# used to hold the argument of --host etc. 1406# FIXME: To remove some day. 1407build=$build_alias 1408host=$host_alias 1409target=$target_alias 1410 1411# FIXME: To remove some day. 1412if test "x$host_alias" != x; then 1413 if test "x$build_alias" = x; then 1414 cross_compiling=maybe 1415 elif test "x$build_alias" != "x$host_alias"; then 1416 cross_compiling=yes 1417 fi 1418fi 1419 1420ac_tool_prefix= 1421test -n "$host_alias" && ac_tool_prefix=$host_alias- 1422 1423test "$silent" = yes && exec 6>/dev/null 1424 1425 1426ac_pwd=`pwd` && test -n "$ac_pwd" && 1427ac_ls_di=`ls -di .` && 1428ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1429 as_fn_error $? "working directory cannot be determined" 1430test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1431 as_fn_error $? "pwd does not report name of working directory" 1432 1433 1434# Find the source files, if location was not specified. 1435if test -z "$srcdir"; then 1436 ac_srcdir_defaulted=yes 1437 # Try the directory containing this script, then the parent directory. 1438 ac_confdir=`$as_dirname -- "$as_myself" || 1439$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1440 X"$as_myself" : 'X\(//\)[^/]' \| \ 1441 X"$as_myself" : 'X\(//\)$' \| \ 1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1443printf "%s\n" X"$as_myself" | 1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1445 s//\1/ 1446 q 1447 } 1448 /^X\(\/\/\)[^/].*/{ 1449 s//\1/ 1450 q 1451 } 1452 /^X\(\/\/\)$/{ 1453 s//\1/ 1454 q 1455 } 1456 /^X\(\/\).*/{ 1457 s//\1/ 1458 q 1459 } 1460 s/.*/./; q'` 1461 srcdir=$ac_confdir 1462 if test ! -r "$srcdir/$ac_unique_file"; then 1463 srcdir=.. 1464 fi 1465else 1466 ac_srcdir_defaulted=no 1467fi 1468if test ! -r "$srcdir/$ac_unique_file"; then 1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1470 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1471fi 1472ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1473ac_abs_confdir=`( 1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1475 pwd)` 1476# When building in place, set srcdir=. 1477if test "$ac_abs_confdir" = "$ac_pwd"; then 1478 srcdir=. 1479fi 1480# Remove unnecessary trailing slashes from srcdir. 1481# Double slashes in file names in object file debugging info 1482# mess up M-x gdb in Emacs. 1483case $srcdir in 1484*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1485esac 1486for ac_var in $ac_precious_vars; do 1487 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1488 eval ac_env_${ac_var}_value=\$${ac_var} 1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1490 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1491done 1492 1493# 1494# Report the --help message. 1495# 1496if test "$ac_init_help" = "long"; then 1497 # Omit some internal or obsolete options to make the list less imposing. 1498 # This message is too long to be a string in the A/UX 3.1 sh. 1499 cat <<_ACEOF 1500\`configure' configures unbound 1.13.1 to adapt to many kinds of systems. 1501 1502Usage: $0 [OPTION]... [VAR=VALUE]... 1503 1504To assign environment variables (e.g., CC, CFLAGS...), specify them as 1505VAR=VALUE. See below for descriptions of some of the useful variables. 1506 1507Defaults for the options are specified in brackets. 1508 1509Configuration: 1510 -h, --help display this help and exit 1511 --help=short display options specific to this package 1512 --help=recursive display the short help of all the included packages 1513 -V, --version display version information and exit 1514 -q, --quiet, --silent do not print \`checking ...' messages 1515 --cache-file=FILE cache test results in FILE [disabled] 1516 -C, --config-cache alias for \`--cache-file=config.cache' 1517 -n, --no-create do not create output files 1518 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1519 1520Installation directories: 1521 --prefix=PREFIX install architecture-independent files in PREFIX 1522 [$ac_default_prefix] 1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1524 [PREFIX] 1525 1526By default, \`make install' will install all the files in 1527\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1528an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1529for instance \`--prefix=\$HOME'. 1530 1531For better control, use the options below. 1532 1533Fine tuning of the installation directories: 1534 --bindir=DIR user executables [EPREFIX/bin] 1535 --sbindir=DIR system admin executables [EPREFIX/sbin] 1536 --libexecdir=DIR program executables [EPREFIX/libexec] 1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1540 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1541 --libdir=DIR object code libraries [EPREFIX/lib] 1542 --includedir=DIR C header files [PREFIX/include] 1543 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1544 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1545 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1546 --infodir=DIR info documentation [DATAROOTDIR/info] 1547 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1548 --mandir=DIR man documentation [DATAROOTDIR/man] 1549 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1550 --htmldir=DIR html documentation [DOCDIR] 1551 --dvidir=DIR dvi documentation [DOCDIR] 1552 --pdfdir=DIR pdf documentation [DOCDIR] 1553 --psdir=DIR ps documentation [DOCDIR] 1554_ACEOF 1555 1556 cat <<\_ACEOF 1557 1558System types: 1559 --build=BUILD configure for building on BUILD [guessed] 1560 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1561_ACEOF 1562fi 1563 1564if test -n "$ac_init_help"; then 1565 case $ac_init_help in 1566 short | recursive ) echo "Configuration of unbound 1.13.1:";; 1567 esac 1568 cat <<\_ACEOF 1569 1570Optional Features: 1571 --disable-option-checking ignore unrecognized --enable/--with options 1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1574 --enable-checking Enable warnings, asserts, makefile-dependencies 1575 --enable-debug same as enable-checking 1576 --disable-flto Disable link-time optimization (gcc specific option) 1577 --enable-pie Enable Position-Independent Executable (eg. to fully 1578 benefit from ASLR, small performance penalty) 1579 --enable-relro-now Enable full relocation binding at load-time (RELRO 1580 NOW, to protect GOT and .dtor areas) 1581 --enable-shared[=PKGS] build shared libraries [default=yes] 1582 --enable-static[=PKGS] build static libraries [default=yes] 1583 --enable-fast-install[=PKGS] 1584 optimize for fast installation [default=yes] 1585 --disable-libtool-lock avoid locking (might break parallel builds) 1586 --disable-rpath disable hardcoded rpath (default=enabled) 1587 --disable-largefile omit support for large files 1588 --enable-systemd compile with systemd support 1589 --enable-alloc-checks enable to memory allocation statistics, for debug 1590 purposes 1591 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1592 purposes 1593 --enable-alloc-nonregional 1594 enable nonregional allocs, slow but exposes regional 1595 allocations to other memory purifiers, for debug 1596 purposes 1597 --disable-swig-version-check 1598 Disable swig version check to build python modules 1599 with older swig even though that is unreliable 1600 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1601 support 1602 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1603 --enable-subnet Enable client subnet 1604 --disable-gost Disable GOST support 1605 --disable-ecdsa Disable ECDSA support 1606 --disable-dsa Disable DSA support 1607 --disable-ed25519 Disable ED25519 support 1608 --disable-ed448 Disable ED448 support 1609 --enable-event-api Enable (experimental) pluggable event base 1610 libunbound API installed to unbound-event.h 1611 --enable-tfo-client Enable TCP Fast Open for client mode 1612 --enable-tfo-server Enable TCP Fast Open for server mode 1613 --enable-static-exe enable to compile executables statically against 1614 (event) uninstalled libs, for debug purposes 1615 --enable-fully-static enable to compile fully static 1616 --enable-lock-checks enable to check lock and unlock calls, for debug 1617 purposes 1618 --enable-allsymbols export all symbols from libunbound and link binaries 1619 to it, smaller install size but libunbound export 1620 table is polluted by internal symbols 1621 --enable-dnstap Enable dnstap support (requires protobuf-c) 1622 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1623 --enable-cachedb enable cachedb module that can use external cache 1624 storage 1625 --enable-ipsecmod Enable ipsecmod module that facilitates 1626 opportunistic IPsec 1627 --enable-ipset enable ipset module 1628 --disable-explicit-port-randomisation 1629 disable explicit source port randomisation and rely 1630 on the kernel to provide random source ports 1631 1632Optional Packages: 1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1635 --with-conf-file=path Pathname to the Unbound configuration file 1636 --with-run-dir=path set default directory to chdir to (by default dir 1637 part of cfg file) 1638 --with-chroot-dir=path set default directory to chroot to (by default same 1639 as run-dir) 1640 --with-share-dir=path set default directory with shared data (by default 1641 same as share/unbound) 1642 --with-pidfile=filename set default pathname to unbound pidfile (default 1643 run-dir/unbound.pid) 1644 --with-rootkey-file=filename 1645 set default pathname to root key file (default 1646 run-dir/root.key). This file is read and written. 1647 --with-rootcert-file=filename 1648 set default pathname to root update certificate file 1649 (default run-dir/icannbundle.pem). This file need 1650 not exist if you are content with the builtin. 1651 --with-username=user set default user that unbound changes to (default 1652 user is unbound) 1653 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1654 both] 1655 --with-aix-soname=aix|svr4|both 1656 shared library versioning (aka "SONAME") variant to 1657 provide on AIX, [default=aix]. 1658 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1659 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1660 compiler's sysroot if not specified). 1661 --with-pthreads use pthreads library, or --without-pthreads to 1662 disable threading support. 1663 --with-solaris-threads use solaris native thread library. 1664 --with-syslog-facility=LOCAL0 - LOCAL7 1665 set SYSLOG_FACILITY, default DAEMON 1666 --with-dynlibmodule build dynamic library module, or 1667 --without-dynlibmodule to disable it. (default=no) 1668 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1669 (default=no) 1670 --with-pythonmodule build Python module, or --without-pythonmodule to 1671 disable script engine. (default=no) 1672 --with-nss=path use libnss instead of openssl, installed at path. 1673 --with-nettle=path use libnettle as crypto library, installed at path. 1674 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1675 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1676 /usr) 1677 --with-libbsd Use portable libbsd functions 1678 --with-libevent=pathname 1679 use libevent (will check /usr/local /opt/local 1680 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1681 an explicit path). Slower, but allows use of large 1682 outgoing port ranges. 1683 --with-libexpat=path specify explicit path for libexpat. 1684 --with-libhiredis=path specify explicit path for libhiredis. 1685 --with-libnghttp2=path specify explicit path for libnghttp2. 1686 --with-dnstap-socket-path=pathname 1687 set default dnstap socket path 1688 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1689 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1690 --with-libmnl=path specify explicit path for libmnl. 1691 --with-libunbound-only do not build daemon and tool programs 1692 1693Some influential environment variables: 1694 CC C compiler command 1695 CFLAGS C compiler flags 1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1697 nonstandard directory <lib dir> 1698 LIBS libraries to pass to the linker, e.g. -l<library> 1699 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1700 you have headers in a nonstandard directory <include dir> 1701 YACC The `Yet Another Compiler Compiler' implementation to use. 1702 Defaults to the first program found out of: `bison -y', `byacc', 1703 `yacc'. 1704 YFLAGS The list of arguments that will be passed by default to $YACC. 1705 This script will default YFLAGS to the empty string to avoid a 1706 default value of `-d' given by some make applications. 1707 LT_SYS_LIBRARY_PATH 1708 User-defined run-time library search path. 1709 PKG_CONFIG path to pkg-config utility 1710 PKG_CONFIG_PATH 1711 directories to add to pkg-config's search path 1712 PKG_CONFIG_LIBDIR 1713 path overriding pkg-config's built-in search path 1714 CPP C preprocessor 1715 SYSTEMD_CFLAGS 1716 C compiler flags for SYSTEMD, overriding pkg-config 1717 SYSTEMD_LIBS 1718 linker flags for SYSTEMD, overriding pkg-config 1719 SYSTEMD_DAEMON_CFLAGS 1720 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1721 SYSTEMD_DAEMON_LIBS 1722 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1723 PYTHON_VERSION 1724 The installed Python version to use, for example '2.3'. This 1725 string will be appended to the Python interpreter canonical 1726 name. 1727 1728Use these variables to override the choices made by `configure' or to help 1729it to find libraries and programs with nonstandard names/locations. 1730 1731Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1732_ACEOF 1733ac_status=$? 1734fi 1735 1736if test "$ac_init_help" = "recursive"; then 1737 # If there are subdirs, report their specific --help. 1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1739 test -d "$ac_dir" || 1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1741 continue 1742 ac_builddir=. 1743 1744case "$ac_dir" in 1745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1746*) 1747 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1748 # A ".." for each directory in $ac_dir_suffix. 1749 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1750 case $ac_top_builddir_sub in 1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1753 esac ;; 1754esac 1755ac_abs_top_builddir=$ac_pwd 1756ac_abs_builddir=$ac_pwd$ac_dir_suffix 1757# for backward compatibility: 1758ac_top_builddir=$ac_top_build_prefix 1759 1760case $srcdir in 1761 .) # We are building in place. 1762 ac_srcdir=. 1763 ac_top_srcdir=$ac_top_builddir_sub 1764 ac_abs_top_srcdir=$ac_pwd ;; 1765 [\\/]* | ?:[\\/]* ) # Absolute name. 1766 ac_srcdir=$srcdir$ac_dir_suffix; 1767 ac_top_srcdir=$srcdir 1768 ac_abs_top_srcdir=$srcdir ;; 1769 *) # Relative name. 1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1771 ac_top_srcdir=$ac_top_build_prefix$srcdir 1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1773esac 1774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1775 1776 cd "$ac_dir" || { ac_status=$?; continue; } 1777 # Check for configure.gnu first; this name is used for a wrapper for 1778 # Metaconfig's "Configure" on case-insensitive file systems. 1779 if test -f "$ac_srcdir/configure.gnu"; then 1780 echo && 1781 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1782 elif test -f "$ac_srcdir/configure"; then 1783 echo && 1784 $SHELL "$ac_srcdir/configure" --help=recursive 1785 else 1786 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1787 fi || ac_status=$? 1788 cd "$ac_pwd" || { ac_status=$?; break; } 1789 done 1790fi 1791 1792test -n "$ac_init_help" && exit $ac_status 1793if $ac_init_version; then 1794 cat <<\_ACEOF 1795unbound configure 1.13.1 1796generated by GNU Autoconf 2.71 1797 1798Copyright (C) 2021 Free Software Foundation, Inc. 1799This configure script is free software; the Free Software Foundation 1800gives unlimited permission to copy, distribute and modify it. 1801_ACEOF 1802 exit 1803fi 1804 1805## ------------------------ ## 1806## Autoconf initialization. ## 1807## ------------------------ ## 1808 1809# ac_fn_c_try_compile LINENO 1810# -------------------------- 1811# Try to compile conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_c_try_compile () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 rm -f conftest.$ac_objext conftest.beam 1816 if { { ac_try="$ac_compile" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822printf "%s\n" "$ac_try_echo"; } >&5 1823 (eval "$ac_compile") 2>conftest.err 1824 ac_status=$? 1825 if test -s conftest.err; then 1826 grep -v '^ *+' conftest.err >conftest.er1 1827 cat conftest.er1 >&5 1828 mv -f conftest.er1 conftest.err 1829 fi 1830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; } && { 1832 test -z "$ac_c_werror_flag" || 1833 test ! -s conftest.err 1834 } && test -s conftest.$ac_objext 1835then : 1836 ac_retval=0 1837else $as_nop 1838 printf "%s\n" "$as_me: failed program was:" >&5 1839sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 ac_retval=1 1842fi 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 as_fn_set_status $ac_retval 1845 1846} # ac_fn_c_try_compile 1847 1848# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1849# ------------------------------------------------------- 1850# Tests whether HEADER exists and can be compiled using the include files in 1851# INCLUDES, setting the cache variable VAR accordingly. 1852ac_fn_c_check_header_compile () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856printf %s "checking for $2... " >&6; } 1857if eval test \${$3+y} 1858then : 1859 printf %s "(cached) " >&6 1860else $as_nop 1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862/* end confdefs.h. */ 1863$4 1864#include <$2> 1865_ACEOF 1866if ac_fn_c_try_compile "$LINENO" 1867then : 1868 eval "$3=yes" 1869else $as_nop 1870 eval "$3=no" 1871fi 1872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1873fi 1874eval ac_res=\$$3 1875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876printf "%s\n" "$ac_res" >&6; } 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 1879} # ac_fn_c_check_header_compile 1880 1881# ac_fn_c_try_link LINENO 1882# ----------------------- 1883# Try to link conftest.$ac_ext, and return whether this succeeded. 1884ac_fn_c_try_link () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1888 if { { ac_try="$ac_link" 1889case "(($ac_try" in 1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891 *) ac_try_echo=$ac_try;; 1892esac 1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894printf "%s\n" "$ac_try_echo"; } >&5 1895 (eval "$ac_link") 2>conftest.err 1896 ac_status=$? 1897 if test -s conftest.err; then 1898 grep -v '^ *+' conftest.err >conftest.er1 1899 cat conftest.er1 >&5 1900 mv -f conftest.er1 conftest.err 1901 fi 1902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; } && { 1904 test -z "$ac_c_werror_flag" || 1905 test ! -s conftest.err 1906 } && test -s conftest$ac_exeext && { 1907 test "$cross_compiling" = yes || 1908 test -x conftest$ac_exeext 1909 } 1910then : 1911 ac_retval=0 1912else $as_nop 1913 printf "%s\n" "$as_me: failed program was:" >&5 1914sed 's/^/| /' conftest.$ac_ext >&5 1915 1916 ac_retval=1 1917fi 1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1920 # interfere with the next link command; also delete a directory that is 1921 # left behind by Apple's compiler. We do this before executing the actions. 1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 as_fn_set_status $ac_retval 1925 1926} # ac_fn_c_try_link 1927 1928# ac_fn_c_check_func LINENO FUNC VAR 1929# ---------------------------------- 1930# Tests whether FUNC exists, setting the cache variable VAR accordingly 1931ac_fn_c_check_func () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1935printf %s "checking for $2... " >&6; } 1936if eval test \${$3+y} 1937then : 1938 printf %s "(cached) " >&6 1939else $as_nop 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1944#define $2 innocuous_$2 1945 1946/* System header to define __stub macros and hopefully few prototypes, 1947 which can conflict with char $2 (); below. */ 1948 1949#include <limits.h> 1950#undef $2 1951 1952/* Override any GCC internal prototype to avoid an error. 1953 Use char because int might match the return type of a GCC 1954 builtin and then its argument prototype would still apply. */ 1955#ifdef __cplusplus 1956extern "C" 1957#endif 1958char $2 (); 1959/* The GNU C library defines this for functions which it implements 1960 to always fail with ENOSYS. Some functions are actually named 1961 something starting with __ and the normal name is an alias. */ 1962#if defined __stub_$2 || defined __stub___$2 1963choke me 1964#endif 1965 1966int 1967main (void) 1968{ 1969return $2 (); 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_link "$LINENO" 1975then : 1976 eval "$3=yes" 1977else $as_nop 1978 eval "$3=no" 1979fi 1980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1981 conftest$ac_exeext conftest.$ac_ext 1982fi 1983eval ac_res=\$$3 1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985printf "%s\n" "$ac_res" >&6; } 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 1988} # ac_fn_c_check_func 1989 1990# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1991# ------------------------------------------- 1992# Tests whether TYPE exists after having included INCLUDES, setting cache 1993# variable VAR accordingly. 1994ac_fn_c_check_type () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998printf %s "checking for $2... " >&6; } 1999if eval test \${$3+y} 2000then : 2001 printf %s "(cached) " >&6 2002else $as_nop 2003 eval "$3=no" 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main (void) 2009{ 2010if (sizeof ($2)) 2011 return 0; 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO" 2017then : 2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2019/* end confdefs.h. */ 2020$4 2021int 2022main (void) 2023{ 2024if (sizeof (($2))) 2025 return 0; 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO" 2031then : 2032 2033else $as_nop 2034 eval "$3=yes" 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2037fi 2038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2039fi 2040eval ac_res=\$$3 2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2042printf "%s\n" "$ac_res" >&6; } 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 2045} # ac_fn_c_check_type 2046 2047# ac_fn_c_try_cpp LINENO 2048# ---------------------- 2049# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2050ac_fn_c_try_cpp () 2051{ 2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2053 if { { ac_try="$ac_cpp conftest.$ac_ext" 2054case "(($ac_try" in 2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2056 *) ac_try_echo=$ac_try;; 2057esac 2058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2059printf "%s\n" "$ac_try_echo"; } >&5 2060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2061 ac_status=$? 2062 if test -s conftest.err; then 2063 grep -v '^ *+' conftest.err >conftest.er1 2064 cat conftest.er1 >&5 2065 mv -f conftest.er1 conftest.err 2066 fi 2067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2068 test $ac_status = 0; } > conftest.i && { 2069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2070 test ! -s conftest.err 2071 } 2072then : 2073 ac_retval=0 2074else $as_nop 2075 printf "%s\n" "$as_me: failed program was:" >&5 2076sed 's/^/| /' conftest.$ac_ext >&5 2077 2078 ac_retval=1 2079fi 2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2081 as_fn_set_status $ac_retval 2082 2083} # ac_fn_c_try_cpp 2084 2085# ac_fn_c_try_run LINENO 2086# ---------------------- 2087# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2088# executables *can* be run. 2089ac_fn_c_try_run () 2090{ 2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2092 if { { ac_try="$ac_link" 2093case "(($ac_try" in 2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2095 *) ac_try_echo=$ac_try;; 2096esac 2097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2098printf "%s\n" "$ac_try_echo"; } >&5 2099 (eval "$ac_link") 2>&5 2100 ac_status=$? 2101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2102 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2103 { { case "(($ac_try" in 2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2105 *) ac_try_echo=$ac_try;; 2106esac 2107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2108printf "%s\n" "$ac_try_echo"; } >&5 2109 (eval "$ac_try") 2>&5 2110 ac_status=$? 2111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2112 test $ac_status = 0; }; } 2113then : 2114 ac_retval=0 2115else $as_nop 2116 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2117 printf "%s\n" "$as_me: failed program was:" >&5 2118sed 's/^/| /' conftest.$ac_ext >&5 2119 2120 ac_retval=$ac_status 2121fi 2122 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2124 as_fn_set_status $ac_retval 2125 2126} # ac_fn_c_try_run 2127 2128# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2129# -------------------------------------------- 2130# Tries to find the compile-time value of EXPR in a program that includes 2131# INCLUDES, setting VAR accordingly. Returns whether the value could be 2132# computed 2133ac_fn_c_compute_int () 2134{ 2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2136 if test "$cross_compiling" = yes; then 2137 # Depending upon the size, compute the lo and hi bounds. 2138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141int 2142main (void) 2143{ 2144static int test_array [1 - 2 * !(($2) >= 0)]; 2145test_array [0] = 0; 2146return test_array [0]; 2147 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152if ac_fn_c_try_compile "$LINENO" 2153then : 2154 ac_lo=0 ac_mid=0 2155 while :; do 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159int 2160main (void) 2161{ 2162static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2163test_array [0] = 0; 2164return test_array [0]; 2165 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170if ac_fn_c_try_compile "$LINENO" 2171then : 2172 ac_hi=$ac_mid; break 2173else $as_nop 2174 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2175 if test $ac_lo -le $ac_mid; then 2176 ac_lo= ac_hi= 2177 break 2178 fi 2179 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2182 done 2183else $as_nop 2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2185/* end confdefs.h. */ 2186$4 2187int 2188main (void) 2189{ 2190static int test_array [1 - 2 * !(($2) < 0)]; 2191test_array [0] = 0; 2192return test_array [0]; 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198if ac_fn_c_try_compile "$LINENO" 2199then : 2200 ac_hi=-1 ac_mid=-1 2201 while :; do 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main (void) 2207{ 2208static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2209test_array [0] = 0; 2210return test_array [0]; 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO" 2217then : 2218 ac_lo=$ac_mid; break 2219else $as_nop 2220 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2221 if test $ac_mid -le $ac_hi; then 2222 ac_lo= ac_hi= 2223 break 2224 fi 2225 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2226fi 2227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2228 done 2229else $as_nop 2230 ac_lo= ac_hi= 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2233fi 2234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2235# Binary search between lo and hi bounds. 2236while test "x$ac_lo" != "x$ac_hi"; do 2237 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2239/* end confdefs.h. */ 2240$4 2241int 2242main (void) 2243{ 2244static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2245test_array [0] = 0; 2246return test_array [0]; 2247 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252if ac_fn_c_try_compile "$LINENO" 2253then : 2254 ac_hi=$ac_mid 2255else $as_nop 2256 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2257fi 2258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2259done 2260case $ac_lo in #(( 2261?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2262'') ac_retval=1 ;; 2263esac 2264 else 2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2266/* end confdefs.h. */ 2267$4 2268static long int longval (void) { return $2; } 2269static unsigned long int ulongval (void) { return $2; } 2270#include <stdio.h> 2271#include <stdlib.h> 2272int 2273main (void) 2274{ 2275 2276 FILE *f = fopen ("conftest.val", "w"); 2277 if (! f) 2278 return 1; 2279 if (($2) < 0) 2280 { 2281 long int i = longval (); 2282 if (i != ($2)) 2283 return 1; 2284 fprintf (f, "%ld", i); 2285 } 2286 else 2287 { 2288 unsigned long int i = ulongval (); 2289 if (i != ($2)) 2290 return 1; 2291 fprintf (f, "%lu", i); 2292 } 2293 /* Do not output a trailing newline, as this causes \r\n confusion 2294 on some platforms. */ 2295 return ferror (f) || fclose (f) != 0; 2296 2297 ; 2298 return 0; 2299} 2300_ACEOF 2301if ac_fn_c_try_run "$LINENO" 2302then : 2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2304else $as_nop 2305 ac_retval=1 2306fi 2307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2308 conftest.$ac_objext conftest.beam conftest.$ac_ext 2309rm -f conftest.val 2310 2311 fi 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 as_fn_set_status $ac_retval 2314 2315} # ac_fn_c_compute_int 2316 2317# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2318# ------------------------------------------------------------------ 2319# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2320# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2321ac_fn_check_decl () 2322{ 2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2324 as_decl_name=`echo $2|sed 's/ *(.*//'` 2325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2326printf %s "checking whether $as_decl_name is declared... " >&6; } 2327if eval test \${$3+y} 2328then : 2329 printf %s "(cached) " >&6 2330else $as_nop 2331 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2332 eval ac_save_FLAGS=\$$6 2333 as_fn_append $6 " $5" 2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2335/* end confdefs.h. */ 2336$4 2337int 2338main (void) 2339{ 2340#ifndef $as_decl_name 2341#ifdef __cplusplus 2342 (void) $as_decl_use; 2343#else 2344 (void) $as_decl_name; 2345#endif 2346#endif 2347 2348 ; 2349 return 0; 2350} 2351_ACEOF 2352if ac_fn_c_try_compile "$LINENO" 2353then : 2354 eval "$3=yes" 2355else $as_nop 2356 eval "$3=no" 2357fi 2358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2359 eval $6=\$ac_save_FLAGS 2360 2361fi 2362eval ac_res=\$$3 2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2364printf "%s\n" "$ac_res" >&6; } 2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2366 2367} # ac_fn_check_decl 2368 2369# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2370# ---------------------------------------------------- 2371# Tries to find if the field MEMBER exists in type AGGR, after including 2372# INCLUDES, setting cache variable VAR accordingly. 2373ac_fn_c_check_member () 2374{ 2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2377printf %s "checking for $2.$3... " >&6; } 2378if eval test \${$4+y} 2379then : 2380 printf %s "(cached) " >&6 2381else $as_nop 2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2383/* end confdefs.h. */ 2384$5 2385int 2386main (void) 2387{ 2388static $2 ac_aggr; 2389if (ac_aggr.$3) 2390return 0; 2391 ; 2392 return 0; 2393} 2394_ACEOF 2395if ac_fn_c_try_compile "$LINENO" 2396then : 2397 eval "$4=yes" 2398else $as_nop 2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2400/* end confdefs.h. */ 2401$5 2402int 2403main (void) 2404{ 2405static $2 ac_aggr; 2406if (sizeof ac_aggr.$3) 2407return 0; 2408 ; 2409 return 0; 2410} 2411_ACEOF 2412if ac_fn_c_try_compile "$LINENO" 2413then : 2414 eval "$4=yes" 2415else $as_nop 2416 eval "$4=no" 2417fi 2418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2419fi 2420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2421fi 2422eval ac_res=\$$4 2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2424printf "%s\n" "$ac_res" >&6; } 2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2426 2427} # ac_fn_c_check_member 2428ac_configure_args_raw= 2429for ac_arg 2430do 2431 case $ac_arg in 2432 *\'*) 2433 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2434 esac 2435 as_fn_append ac_configure_args_raw " '$ac_arg'" 2436done 2437 2438case $ac_configure_args_raw in 2439 *$as_nl*) 2440 ac_safe_unquote= ;; 2441 *) 2442 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2443 ac_unsafe_a="$ac_unsafe_z#~" 2444 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2445 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2446esac 2447 2448cat >config.log <<_ACEOF 2449This file contains any messages produced by compilers while 2450running configure, to aid debugging if configure makes a mistake. 2451 2452It was created by unbound $as_me 1.13.1, which was 2453generated by GNU Autoconf 2.71. Invocation command line was 2454 2455 $ $0$ac_configure_args_raw 2456 2457_ACEOF 2458exec 5>>config.log 2459{ 2460cat <<_ASUNAME 2461## --------- ## 2462## Platform. ## 2463## --------- ## 2464 2465hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2466uname -m = `(uname -m) 2>/dev/null || echo unknown` 2467uname -r = `(uname -r) 2>/dev/null || echo unknown` 2468uname -s = `(uname -s) 2>/dev/null || echo unknown` 2469uname -v = `(uname -v) 2>/dev/null || echo unknown` 2470 2471/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2472/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2473 2474/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2475/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2476/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2477/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2478/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2479/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2480/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2481 2482_ASUNAME 2483 2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 case $as_dir in #((( 2489 '') as_dir=./ ;; 2490 */) ;; 2491 *) as_dir=$as_dir/ ;; 2492 esac 2493 printf "%s\n" "PATH: $as_dir" 2494 done 2495IFS=$as_save_IFS 2496 2497} >&5 2498 2499cat >&5 <<_ACEOF 2500 2501 2502## ----------- ## 2503## Core tests. ## 2504## ----------- ## 2505 2506_ACEOF 2507 2508 2509# Keep a trace of the command line. 2510# Strip out --no-create and --no-recursion so they do not pile up. 2511# Strip out --silent because we don't want to record it for future runs. 2512# Also quote any args containing shell meta-characters. 2513# Make two passes to allow for proper duplicate-argument suppression. 2514ac_configure_args= 2515ac_configure_args0= 2516ac_configure_args1= 2517ac_must_keep_next=false 2518for ac_pass in 1 2 2519do 2520 for ac_arg 2521 do 2522 case $ac_arg in 2523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2525 | -silent | --silent | --silen | --sile | --sil) 2526 continue ;; 2527 *\'*) 2528 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2529 esac 2530 case $ac_pass in 2531 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2532 2) 2533 as_fn_append ac_configure_args1 " '$ac_arg'" 2534 if test $ac_must_keep_next = true; then 2535 ac_must_keep_next=false # Got value, back to normal. 2536 else 2537 case $ac_arg in 2538 *=* | --config-cache | -C | -disable-* | --disable-* \ 2539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2541 | -with-* | --with-* | -without-* | --without-* | --x) 2542 case "$ac_configure_args0 " in 2543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2544 esac 2545 ;; 2546 -* ) ac_must_keep_next=true ;; 2547 esac 2548 fi 2549 as_fn_append ac_configure_args " '$ac_arg'" 2550 ;; 2551 esac 2552 done 2553done 2554{ ac_configure_args0=; unset ac_configure_args0;} 2555{ ac_configure_args1=; unset ac_configure_args1;} 2556 2557# When interrupted or exit'd, cleanup temporary files, and complete 2558# config.log. We remove comments because anyway the quotes in there 2559# would cause problems or look ugly. 2560# WARNING: Use '\'' to represent an apostrophe within the trap. 2561# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2562trap 'exit_status=$? 2563 # Sanitize IFS. 2564 IFS=" "" $as_nl" 2565 # Save into config.log some information that might help in debugging. 2566 { 2567 echo 2568 2569 printf "%s\n" "## ---------------- ## 2570## Cache variables. ## 2571## ---------------- ##" 2572 echo 2573 # The following way of writing the cache mishandles newlines in values, 2574( 2575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2576 eval ac_val=\$$ac_var 2577 case $ac_val in #( 2578 *${as_nl}*) 2579 case $ac_var in #( 2580 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2581printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2582 esac 2583 case $ac_var in #( 2584 _ | IFS | as_nl) ;; #( 2585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2586 *) { eval $ac_var=; unset $ac_var;} ;; 2587 esac ;; 2588 esac 2589 done 2590 (set) 2>&1 | 2591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2592 *${as_nl}ac_space=\ *) 2593 sed -n \ 2594 "s/'\''/'\''\\\\'\'''\''/g; 2595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2596 ;; #( 2597 *) 2598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2599 ;; 2600 esac | 2601 sort 2602) 2603 echo 2604 2605 printf "%s\n" "## ----------------- ## 2606## Output variables. ## 2607## ----------------- ##" 2608 echo 2609 for ac_var in $ac_subst_vars 2610 do 2611 eval ac_val=\$$ac_var 2612 case $ac_val in 2613 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2614 esac 2615 printf "%s\n" "$ac_var='\''$ac_val'\''" 2616 done | sort 2617 echo 2618 2619 if test -n "$ac_subst_files"; then 2620 printf "%s\n" "## ------------------- ## 2621## File substitutions. ## 2622## ------------------- ##" 2623 echo 2624 for ac_var in $ac_subst_files 2625 do 2626 eval ac_val=\$$ac_var 2627 case $ac_val in 2628 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2629 esac 2630 printf "%s\n" "$ac_var='\''$ac_val'\''" 2631 done | sort 2632 echo 2633 fi 2634 2635 if test -s confdefs.h; then 2636 printf "%s\n" "## ----------- ## 2637## confdefs.h. ## 2638## ----------- ##" 2639 echo 2640 cat confdefs.h 2641 echo 2642 fi 2643 test "$ac_signal" != 0 && 2644 printf "%s\n" "$as_me: caught signal $ac_signal" 2645 printf "%s\n" "$as_me: exit $exit_status" 2646 } >&5 2647 rm -f core *.core core.conftest.* && 2648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2649 exit $exit_status 2650' 0 2651for ac_signal in 1 2 13 15; do 2652 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2653done 2654ac_signal=0 2655 2656# confdefs.h avoids OS command line length limits that DEFS can exceed. 2657rm -f -r conftest* confdefs.h 2658 2659printf "%s\n" "/* confdefs.h */" > confdefs.h 2660 2661# Predefined preprocessor variables. 2662 2663printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2664 2665printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2666 2667printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2668 2669printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2670 2671printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2672 2673printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2674 2675 2676# Let the site file select an alternate cache file if it wants to. 2677# Prefer an explicitly selected file to automatically selected ones. 2678if test -n "$CONFIG_SITE"; then 2679 ac_site_files="$CONFIG_SITE" 2680elif test "x$prefix" != xNONE; then 2681 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2682else 2683 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2684fi 2685 2686for ac_site_file in $ac_site_files 2687do 2688 case $ac_site_file in #( 2689 */*) : 2690 ;; #( 2691 *) : 2692 ac_site_file=./$ac_site_file ;; 2693esac 2694 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2696printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2697 sed 's/^/| /' "$ac_site_file" >&5 2698 . "$ac_site_file" \ 2699 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2700printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2701as_fn_error $? "failed to load site script $ac_site_file 2702See \`config.log' for more details" "$LINENO" 5; } 2703 fi 2704done 2705 2706if test -r "$cache_file"; then 2707 # Some versions of bash will fail to source /dev/null (special files 2708 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2709 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2711printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2712 case $cache_file in 2713 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2714 *) . "./$cache_file";; 2715 esac 2716 fi 2717else 2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2719printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2720 >$cache_file 2721fi 2722 2723as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2724# Test code for whether the C compiler supports C89 (global declarations) 2725ac_c_conftest_c89_globals=' 2726/* Does the compiler advertise C89 conformance? 2727 Do not test the value of __STDC__, because some compilers set it to 0 2728 while being otherwise adequately conformant. */ 2729#if !defined __STDC__ 2730# error "Compiler does not advertise C89 conformance" 2731#endif 2732 2733#include <stddef.h> 2734#include <stdarg.h> 2735struct stat; 2736/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2737struct buf { int x; }; 2738struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2739static char *e (p, i) 2740 char **p; 2741 int i; 2742{ 2743 return p[i]; 2744} 2745static char *f (char * (*g) (char **, int), char **p, ...) 2746{ 2747 char *s; 2748 va_list v; 2749 va_start (v,p); 2750 s = g (p, va_arg (v,int)); 2751 va_end (v); 2752 return s; 2753} 2754 2755/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2756 function prototypes and stuff, but not \xHH hex character constants. 2757 These do not provoke an error unfortunately, instead are silently treated 2758 as an "x". The following induces an error, until -std is added to get 2759 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2760 array size at least. It is necessary to write \x00 == 0 to get something 2761 that is true only with -std. */ 2762int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2763 2764/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2765 inside strings and character constants. */ 2766#define FOO(x) '\''x'\'' 2767int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2768 2769int test (int i, double x); 2770struct s1 {int (*f) (int a);}; 2771struct s2 {int (*f) (double a);}; 2772int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2773 int, int);' 2774 2775# Test code for whether the C compiler supports C89 (body of main). 2776ac_c_conftest_c89_main=' 2777ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2778' 2779 2780# Test code for whether the C compiler supports C99 (global declarations) 2781ac_c_conftest_c99_globals=' 2782// Does the compiler advertise C99 conformance? 2783#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2784# error "Compiler does not advertise C99 conformance" 2785#endif 2786 2787#include <stdbool.h> 2788extern int puts (const char *); 2789extern int printf (const char *, ...); 2790extern int dprintf (int, const char *, ...); 2791extern void *malloc (size_t); 2792 2793// Check varargs macros. These examples are taken from C99 6.10.3.5. 2794// dprintf is used instead of fprintf to avoid needing to declare 2795// FILE and stderr. 2796#define debug(...) dprintf (2, __VA_ARGS__) 2797#define showlist(...) puts (#__VA_ARGS__) 2798#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2799static void 2800test_varargs_macros (void) 2801{ 2802 int x = 1234; 2803 int y = 5678; 2804 debug ("Flag"); 2805 debug ("X = %d\n", x); 2806 showlist (The first, second, and third items.); 2807 report (x>y, "x is %d but y is %d", x, y); 2808} 2809 2810// Check long long types. 2811#define BIG64 18446744073709551615ull 2812#define BIG32 4294967295ul 2813#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2814#if !BIG_OK 2815 #error "your preprocessor is broken" 2816#endif 2817#if BIG_OK 2818#else 2819 #error "your preprocessor is broken" 2820#endif 2821static long long int bignum = -9223372036854775807LL; 2822static unsigned long long int ubignum = BIG64; 2823 2824struct incomplete_array 2825{ 2826 int datasize; 2827 double data[]; 2828}; 2829 2830struct named_init { 2831 int number; 2832 const wchar_t *name; 2833 double average; 2834}; 2835 2836typedef const char *ccp; 2837 2838static inline int 2839test_restrict (ccp restrict text) 2840{ 2841 // See if C++-style comments work. 2842 // Iterate through items via the restricted pointer. 2843 // Also check for declarations in for loops. 2844 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2845 continue; 2846 return 0; 2847} 2848 2849// Check varargs and va_copy. 2850static bool 2851test_varargs (const char *format, ...) 2852{ 2853 va_list args; 2854 va_start (args, format); 2855 va_list args_copy; 2856 va_copy (args_copy, args); 2857 2858 const char *str = ""; 2859 int number = 0; 2860 float fnumber = 0; 2861 2862 while (*format) 2863 { 2864 switch (*format++) 2865 { 2866 case '\''s'\'': // string 2867 str = va_arg (args_copy, const char *); 2868 break; 2869 case '\''d'\'': // int 2870 number = va_arg (args_copy, int); 2871 break; 2872 case '\''f'\'': // float 2873 fnumber = va_arg (args_copy, double); 2874 break; 2875 default: 2876 break; 2877 } 2878 } 2879 va_end (args_copy); 2880 va_end (args); 2881 2882 return *str && number && fnumber; 2883} 2884' 2885 2886# Test code for whether the C compiler supports C99 (body of main). 2887ac_c_conftest_c99_main=' 2888 // Check bool. 2889 _Bool success = false; 2890 success |= (argc != 0); 2891 2892 // Check restrict. 2893 if (test_restrict ("String literal") == 0) 2894 success = true; 2895 char *restrict newvar = "Another string"; 2896 2897 // Check varargs. 2898 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2899 test_varargs_macros (); 2900 2901 // Check flexible array members. 2902 struct incomplete_array *ia = 2903 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2904 ia->datasize = 10; 2905 for (int i = 0; i < ia->datasize; ++i) 2906 ia->data[i] = i * 1.234; 2907 2908 // Check named initializers. 2909 struct named_init ni = { 2910 .number = 34, 2911 .name = L"Test wide string", 2912 .average = 543.34343, 2913 }; 2914 2915 ni.number = 58; 2916 2917 int dynamic_array[ni.number]; 2918 dynamic_array[0] = argv[0][0]; 2919 dynamic_array[ni.number - 1] = 543; 2920 2921 // work around unused variable warnings 2922 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2923 || dynamic_array[ni.number - 1] != 543); 2924' 2925 2926# Test code for whether the C compiler supports C11 (global declarations) 2927ac_c_conftest_c11_globals=' 2928// Does the compiler advertise C11 conformance? 2929#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2930# error "Compiler does not advertise C11 conformance" 2931#endif 2932 2933// Check _Alignas. 2934char _Alignas (double) aligned_as_double; 2935char _Alignas (0) no_special_alignment; 2936extern char aligned_as_int; 2937char _Alignas (0) _Alignas (int) aligned_as_int; 2938 2939// Check _Alignof. 2940enum 2941{ 2942 int_alignment = _Alignof (int), 2943 int_array_alignment = _Alignof (int[100]), 2944 char_alignment = _Alignof (char) 2945}; 2946_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2947 2948// Check _Noreturn. 2949int _Noreturn does_not_return (void) { for (;;) continue; } 2950 2951// Check _Static_assert. 2952struct test_static_assert 2953{ 2954 int x; 2955 _Static_assert (sizeof (int) <= sizeof (long int), 2956 "_Static_assert does not work in struct"); 2957 long int y; 2958}; 2959 2960// Check UTF-8 literals. 2961#define u8 syntax error! 2962char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2963 2964// Check duplicate typedefs. 2965typedef long *long_ptr; 2966typedef long int *long_ptr; 2967typedef long_ptr long_ptr; 2968 2969// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2970struct anonymous 2971{ 2972 union { 2973 struct { int i; int j; }; 2974 struct { int k; long int l; } w; 2975 }; 2976 int m; 2977} v1; 2978' 2979 2980# Test code for whether the C compiler supports C11 (body of main). 2981ac_c_conftest_c11_main=' 2982 _Static_assert ((offsetof (struct anonymous, i) 2983 == offsetof (struct anonymous, w.k)), 2984 "Anonymous union alignment botch"); 2985 v1.i = 2; 2986 v1.w.k = 5; 2987 ok |= v1.i != 5; 2988' 2989 2990# Test code for whether the C compiler supports C11 (complete). 2991ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2992${ac_c_conftest_c99_globals} 2993${ac_c_conftest_c11_globals} 2994 2995int 2996main (int argc, char **argv) 2997{ 2998 int ok = 0; 2999 ${ac_c_conftest_c89_main} 3000 ${ac_c_conftest_c99_main} 3001 ${ac_c_conftest_c11_main} 3002 return ok; 3003} 3004" 3005 3006# Test code for whether the C compiler supports C99 (complete). 3007ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3008${ac_c_conftest_c99_globals} 3009 3010int 3011main (int argc, char **argv) 3012{ 3013 int ok = 0; 3014 ${ac_c_conftest_c89_main} 3015 ${ac_c_conftest_c99_main} 3016 return ok; 3017} 3018" 3019 3020# Test code for whether the C compiler supports C89 (complete). 3021ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3022 3023int 3024main (int argc, char **argv) 3025{ 3026 int ok = 0; 3027 ${ac_c_conftest_c89_main} 3028 return ok; 3029} 3030" 3031 3032as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3033as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3034as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3035as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3036as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3037as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3038as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3039as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3040as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3041as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3042as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 3043as_fn_append ac_func_c_list " fork HAVE_FORK" 3044as_fn_append ac_func_c_list " vfork HAVE_VFORK" 3045 3046# Auxiliary files required by this configure script. 3047ac_aux_files="ltmain.sh config.guess config.sub" 3048 3049# Locations in which to look for auxiliary files. 3050ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3051 3052# Search for a directory containing all of the required auxiliary files, 3053# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3054# If we don't find one directory that contains all the files we need, 3055# we report the set of missing files from the *first* directory in 3056# $ac_aux_dir_candidates and give up. 3057ac_missing_aux_files="" 3058ac_first_candidate=: 3059printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061as_found=false 3062for as_dir in $ac_aux_dir_candidates 3063do 3064 IFS=$as_save_IFS 3065 case $as_dir in #((( 3066 '') as_dir=./ ;; 3067 */) ;; 3068 *) as_dir=$as_dir/ ;; 3069 esac 3070 as_found=: 3071 3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3073 ac_aux_dir_found=yes 3074 ac_install_sh= 3075 for ac_aux in $ac_aux_files 3076 do 3077 # As a special case, if "install-sh" is required, that requirement 3078 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3079 # and $ac_install_sh is set appropriately for whichever one is found. 3080 if test x"$ac_aux" = x"install-sh" 3081 then 3082 if test -f "${as_dir}install-sh"; then 3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3084 ac_install_sh="${as_dir}install-sh -c" 3085 elif test -f "${as_dir}install.sh"; then 3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3087 ac_install_sh="${as_dir}install.sh -c" 3088 elif test -f "${as_dir}shtool"; then 3089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3090 ac_install_sh="${as_dir}shtool install -c" 3091 else 3092 ac_aux_dir_found=no 3093 if $ac_first_candidate; then 3094 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3095 else 3096 break 3097 fi 3098 fi 3099 else 3100 if test -f "${as_dir}${ac_aux}"; then 3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3102 else 3103 ac_aux_dir_found=no 3104 if $ac_first_candidate; then 3105 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3106 else 3107 break 3108 fi 3109 fi 3110 fi 3111 done 3112 if test "$ac_aux_dir_found" = yes; then 3113 ac_aux_dir="$as_dir" 3114 break 3115 fi 3116 ac_first_candidate=false 3117 3118 as_found=false 3119done 3120IFS=$as_save_IFS 3121if $as_found 3122then : 3123 3124else $as_nop 3125 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3126fi 3127 3128 3129# These three variables are undocumented and unsupported, 3130# and are intended to be withdrawn in a future Autoconf release. 3131# They can cause serious problems if a builder's source tree is in a directory 3132# whose full name contains unusual characters. 3133if test -f "${ac_aux_dir}config.guess"; then 3134 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3135fi 3136if test -f "${ac_aux_dir}config.sub"; then 3137 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3138fi 3139if test -f "$ac_aux_dir/configure"; then 3140 ac_configure="$SHELL ${ac_aux_dir}configure" 3141fi 3142 3143# Check that the precious variables saved in the cache have kept the same 3144# value. 3145ac_cache_corrupted=false 3146for ac_var in $ac_precious_vars; do 3147 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3148 eval ac_new_set=\$ac_env_${ac_var}_set 3149 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3150 eval ac_new_val=\$ac_env_${ac_var}_value 3151 case $ac_old_set,$ac_new_set in 3152 set,) 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3154printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3155 ac_cache_corrupted=: ;; 3156 ,set) 3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3158printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3159 ac_cache_corrupted=: ;; 3160 ,);; 3161 *) 3162 if test "x$ac_old_val" != "x$ac_new_val"; then 3163 # differences in whitespace do not lead to failure. 3164 ac_old_val_w=`echo x $ac_old_val` 3165 ac_new_val_w=`echo x $ac_new_val` 3166 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3168printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3169 ac_cache_corrupted=: 3170 else 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3172printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3173 eval $ac_var=\$ac_old_val 3174 fi 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3176printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3178printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3179 fi;; 3180 esac 3181 # Pass precious variables to config.status. 3182 if test "$ac_new_set" = set; then 3183 case $ac_new_val in 3184 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3185 *) ac_arg=$ac_var=$ac_new_val ;; 3186 esac 3187 case " $ac_configure_args " in 3188 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3189 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3190 esac 3191 fi 3192done 3193if $ac_cache_corrupted; then 3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3195printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3197printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3198 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3199 and start over" "$LINENO" 5 3200fi 3201## -------------------- ## 3202## Main body of script. ## 3203## -------------------- ## 3204 3205ac_ext=c 3206ac_cpp='$CPP $CPPFLAGS' 3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3209ac_compiler_gnu=$ac_cv_c_compiler_gnu 3210 3211 3212UNBOUND_VERSION_MAJOR=1 3213 3214UNBOUND_VERSION_MINOR=13 3215 3216UNBOUND_VERSION_MICRO=1 3217 3218 3219LIBUNBOUND_CURRENT=9 3220LIBUNBOUND_REVISION=12 3221LIBUNBOUND_AGE=1 3222# 1.0.0 had 0:12:0 3223# 1.0.1 had 0:13:0 3224# 1.0.2 had 0:14:0 3225# 1.1.0 had 0:15:0 3226# 1.1.1 had 0:16:0 3227# 1.2.0 had 0:17:0 3228# 1.2.1 had 0:18:0 3229# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 3230# 1.3.1 had 1:1:0 3231# 1.3.2 had 1:2:0 3232# 1.3.3 had 1:3:0 3233# 1.3.4 had 1:4:0 3234# 1.4.0-snapshots had 1:5:0 3235# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 3236# 1.4.1 had 2:1:0 3237# 1.4.2 had 2:2:0 3238# 1.4.3 had 2:3:0 3239# 1.4.4 had 2:4:0 3240# 1.4.5 had 2:5:0 3241# 1.4.6 had 2:6:0 3242# 1.4.7 had 2:7:0 3243# 1.4.8 had 2:8:0 3244# 1.4.9 had 2:9:0 3245# 1.4.10 had 2:10:0 3246# 1.4.11 had 2:11:0 3247# 1.4.12 had 2:12:0 3248# 1.4.13 had 2:13:0 3249# and 1.4.13p1 and 1.4.13.p2 3250# 1.4.14 had 2:14:0 3251# 1.4.15 had 3:0:1 # adds ub_version() 3252# 1.4.16 had 3:1:1 3253# 1.4.17 had 3:2:1 3254# 1.4.18 had 3:3:1 3255# 1.4.19 had 3:4:1 3256# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 3257# 1.4.21 had 4:1:2 3258# 1.4.22 had 4:1:2 3259# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 3260# 1.5.1 had 5:3:3 3261# 1.5.2 had 5:5:3 3262# 1.5.3 had 5:6:3 3263# 1.5.4 had 5:7:3 3264# 1.5.5 had 5:8:3 3265# 1.5.6 had 5:9:3 3266# 1.5.7 had 5:10:3 3267# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 3268# 1.5.9 had 6:1:4 3269# 1.5.10 had 6:2:4 3270# 1.6.0 had 6:3:4 3271# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 3272# 1.6.2 had 7:1:5 3273# 1.6.3 had 7:2:5 3274# 1.6.4 had 7:3:5 3275# 1.6.5 had 7:4:5 3276# 1.6.6 had 7:5:5 3277# 1.6.7 had 7:6:5 3278# 1.6.8 had 7:7:5 3279# 1.7.0 had 7:8:5 3280# 1.7.1 had 7:9:5 3281# 1.7.2 had 7:10:5 3282# 1.7.3 had 7:11:5 3283# 1.8.0 had 8:0:0 # changes the event callback function signature 3284# 1.8.1 had 8:1:0 3285# 1.8.2 had 8:2:0 3286# 1.8.3 had 8:3:0 3287# 1.9.0 had 9:0:1 # add ub_ctx_set_tls 3288# 1.9.1 had 9:1:1 3289# 1.9.2 had 9:2:1 3290# 1.9.3 had 9:3:1 3291# 1.9.4 had 9:4:1 3292# 1.9.5 had 9:5:1 3293# 1.9.6 had 9:6:1 3294# 1.10.0 had 9:7:1 3295# 1.10.1 had 9:8:1 3296# 1.11.0 had 9:9:1 3297# 1.12.0 had 9:10:1 3298# 1.13.0 had 9:11:1 3299# 1.13.1 had 9:12:1 3300 3301# Current -- the number of the binary API that we're implementing 3302# Revision -- which iteration of the implementation of the binary 3303# API are we supplying? 3304# Age -- How many previous binary API versions do we also 3305# support? 3306# 3307# If we release a new version that does not change the binary API, 3308# increment Revision. 3309# 3310# If we release a new version that changes the binary API, but does 3311# not break programs compiled against the old binary API, increment 3312# Current and Age. Set Revision to 0, since this is the first 3313# implementation of the new API. 3314# 3315# Otherwise, we're changing the binary API and breaking backward 3316# compatibility with old binaries. Increment Current. Set Age to 0, 3317# since we're backward compatible with no previous APIs. Set Revision 3318# to 0 too. 3319 3320 3321 3322 3323 3324cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 3325 3326printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h 3327 3328 3329CFLAGS="$CFLAGS" 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339ac_ext=c 3340ac_cpp='$CPP $CPPFLAGS' 3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3343ac_compiler_gnu=$ac_cv_c_compiler_gnu 3344if test -n "$ac_tool_prefix"; then 3345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3346set dummy ${ac_tool_prefix}gcc; ac_word=$2 3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348printf %s "checking for $ac_word... " >&6; } 3349if test ${ac_cv_prog_CC+y} 3350then : 3351 printf %s "(cached) " >&6 3352else $as_nop 3353 if test -n "$CC"; then 3354 ac_cv_prog_CC="$CC" # Let the user override the test. 3355else 3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH 3358do 3359 IFS=$as_save_IFS 3360 case $as_dir in #((( 3361 '') as_dir=./ ;; 3362 */) ;; 3363 *) as_dir=$as_dir/ ;; 3364 esac 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3367 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375fi 3376fi 3377CC=$ac_cv_prog_CC 3378if test -n "$CC"; then 3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3380printf "%s\n" "$CC" >&6; } 3381else 3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383printf "%s\n" "no" >&6; } 3384fi 3385 3386 3387fi 3388if test -z "$ac_cv_prog_CC"; then 3389 ac_ct_CC=$CC 3390 # Extract the first word of "gcc", so it can be a program name with args. 3391set dummy gcc; ac_word=$2 3392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3393printf %s "checking for $ac_word... " >&6; } 3394if test ${ac_cv_prog_ac_ct_CC+y} 3395then : 3396 printf %s "(cached) " >&6 3397else $as_nop 3398 if test -n "$ac_ct_CC"; then 3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3400else 3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3402for as_dir in $PATH 3403do 3404 IFS=$as_save_IFS 3405 case $as_dir in #((( 3406 '') as_dir=./ ;; 3407 */) ;; 3408 *) as_dir=$as_dir/ ;; 3409 esac 3410 for ac_exec_ext in '' $ac_executable_extensions; do 3411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3412 ac_cv_prog_ac_ct_CC="gcc" 3413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3414 break 2 3415 fi 3416done 3417 done 3418IFS=$as_save_IFS 3419 3420fi 3421fi 3422ac_ct_CC=$ac_cv_prog_ac_ct_CC 3423if test -n "$ac_ct_CC"; then 3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3425printf "%s\n" "$ac_ct_CC" >&6; } 3426else 3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3428printf "%s\n" "no" >&6; } 3429fi 3430 3431 if test "x$ac_ct_CC" = x; then 3432 CC="" 3433 else 3434 case $cross_compiling:$ac_tool_warned in 3435yes:) 3436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3437printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3438ac_tool_warned=yes ;; 3439esac 3440 CC=$ac_ct_CC 3441 fi 3442else 3443 CC="$ac_cv_prog_CC" 3444fi 3445 3446if test -z "$CC"; then 3447 if test -n "$ac_tool_prefix"; then 3448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3449set dummy ${ac_tool_prefix}cc; ac_word=$2 3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451printf %s "checking for $ac_word... " >&6; } 3452if test ${ac_cv_prog_CC+y} 3453then : 3454 printf %s "(cached) " >&6 3455else $as_nop 3456 if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 case $as_dir in #((( 3464 '') as_dir=./ ;; 3465 */) ;; 3466 *) as_dir=$as_dir/ ;; 3467 esac 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_CC="${ac_tool_prefix}cc" 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483printf "%s\n" "$CC" >&6; } 3484else 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486printf "%s\n" "no" >&6; } 3487fi 3488 3489 3490 fi 3491fi 3492if test -z "$CC"; then 3493 # Extract the first word of "cc", so it can be a program name with args. 3494set dummy cc; ac_word=$2 3495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496printf %s "checking for $ac_word... " >&6; } 3497if test ${ac_cv_prog_CC+y} 3498then : 3499 printf %s "(cached) " >&6 3500else $as_nop 3501 if test -n "$CC"; then 3502 ac_cv_prog_CC="$CC" # Let the user override the test. 3503else 3504 ac_prog_rejected=no 3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3506for as_dir in $PATH 3507do 3508 IFS=$as_save_IFS 3509 case $as_dir in #((( 3510 '') as_dir=./ ;; 3511 */) ;; 3512 *) as_dir=$as_dir/ ;; 3513 esac 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3516 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3517 ac_prog_rejected=yes 3518 continue 3519 fi 3520 ac_cv_prog_CC="cc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524done 3525 done 3526IFS=$as_save_IFS 3527 3528if test $ac_prog_rejected = yes; then 3529 # We found a bogon in the path, so make sure we never use it. 3530 set dummy $ac_cv_prog_CC 3531 shift 3532 if test $# != 0; then 3533 # We chose a different compiler from the bogus one. 3534 # However, it has the same basename, so the bogon will be chosen 3535 # first if we set CC to just the basename; use the full file name. 3536 shift 3537 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3538 fi 3539fi 3540fi 3541fi 3542CC=$ac_cv_prog_CC 3543if test -n "$CC"; then 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3545printf "%s\n" "$CC" >&6; } 3546else 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548printf "%s\n" "no" >&6; } 3549fi 3550 3551 3552fi 3553if test -z "$CC"; then 3554 if test -n "$ac_tool_prefix"; then 3555 for ac_prog in cl.exe 3556 do 3557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3558set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560printf %s "checking for $ac_word... " >&6; } 3561if test ${ac_cv_prog_CC+y} 3562then : 3563 printf %s "(cached) " >&6 3564else $as_nop 3565 if test -n "$CC"; then 3566 ac_cv_prog_CC="$CC" # Let the user override the test. 3567else 3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569for as_dir in $PATH 3570do 3571 IFS=$as_save_IFS 3572 case $as_dir in #((( 3573 '') as_dir=./ ;; 3574 */) ;; 3575 *) as_dir=$as_dir/ ;; 3576 esac 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583done 3584 done 3585IFS=$as_save_IFS 3586 3587fi 3588fi 3589CC=$ac_cv_prog_CC 3590if test -n "$CC"; then 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3592printf "%s\n" "$CC" >&6; } 3593else 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595printf "%s\n" "no" >&6; } 3596fi 3597 3598 3599 test -n "$CC" && break 3600 done 3601fi 3602if test -z "$CC"; then 3603 ac_ct_CC=$CC 3604 for ac_prog in cl.exe 3605do 3606 # Extract the first word of "$ac_prog", so it can be a program name with args. 3607set dummy $ac_prog; ac_word=$2 3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3609printf %s "checking for $ac_word... " >&6; } 3610if test ${ac_cv_prog_ac_ct_CC+y} 3611then : 3612 printf %s "(cached) " >&6 3613else $as_nop 3614 if test -n "$ac_ct_CC"; then 3615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 case $as_dir in #((( 3622 '') as_dir=./ ;; 3623 */) ;; 3624 *) as_dir=$as_dir/ ;; 3625 esac 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3628 ac_cv_prog_ac_ct_CC="$ac_prog" 3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi 3637fi 3638ac_ct_CC=$ac_cv_prog_ac_ct_CC 3639if test -n "$ac_ct_CC"; then 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3641printf "%s\n" "$ac_ct_CC" >&6; } 3642else 3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644printf "%s\n" "no" >&6; } 3645fi 3646 3647 3648 test -n "$ac_ct_CC" && break 3649done 3650 3651 if test "x$ac_ct_CC" = x; then 3652 CC="" 3653 else 3654 case $cross_compiling:$ac_tool_warned in 3655yes:) 3656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3658ac_tool_warned=yes ;; 3659esac 3660 CC=$ac_ct_CC 3661 fi 3662fi 3663 3664fi 3665if test -z "$CC"; then 3666 if test -n "$ac_tool_prefix"; then 3667 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3668set dummy ${ac_tool_prefix}clang; ac_word=$2 3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3670printf %s "checking for $ac_word... " >&6; } 3671if test ${ac_cv_prog_CC+y} 3672then : 3673 printf %s "(cached) " >&6 3674else $as_nop 3675 if test -n "$CC"; then 3676 ac_cv_prog_CC="$CC" # Let the user override the test. 3677else 3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH 3680do 3681 IFS=$as_save_IFS 3682 case $as_dir in #((( 3683 '') as_dir=./ ;; 3684 */) ;; 3685 *) as_dir=$as_dir/ ;; 3686 esac 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3689 ac_cv_prog_CC="${ac_tool_prefix}clang" 3690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3691 break 2 3692 fi 3693done 3694 done 3695IFS=$as_save_IFS 3696 3697fi 3698fi 3699CC=$ac_cv_prog_CC 3700if test -n "$CC"; then 3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3702printf "%s\n" "$CC" >&6; } 3703else 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3705printf "%s\n" "no" >&6; } 3706fi 3707 3708 3709fi 3710if test -z "$ac_cv_prog_CC"; then 3711 ac_ct_CC=$CC 3712 # Extract the first word of "clang", so it can be a program name with args. 3713set dummy clang; ac_word=$2 3714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3715printf %s "checking for $ac_word... " >&6; } 3716if test ${ac_cv_prog_ac_ct_CC+y} 3717then : 3718 printf %s "(cached) " >&6 3719else $as_nop 3720 if test -n "$ac_ct_CC"; then 3721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3722else 3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3724for as_dir in $PATH 3725do 3726 IFS=$as_save_IFS 3727 case $as_dir in #((( 3728 '') as_dir=./ ;; 3729 */) ;; 3730 *) as_dir=$as_dir/ ;; 3731 esac 3732 for ac_exec_ext in '' $ac_executable_extensions; do 3733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3734 ac_cv_prog_ac_ct_CC="clang" 3735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3736 break 2 3737 fi 3738done 3739 done 3740IFS=$as_save_IFS 3741 3742fi 3743fi 3744ac_ct_CC=$ac_cv_prog_ac_ct_CC 3745if test -n "$ac_ct_CC"; then 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3747printf "%s\n" "$ac_ct_CC" >&6; } 3748else 3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3750printf "%s\n" "no" >&6; } 3751fi 3752 3753 if test "x$ac_ct_CC" = x; then 3754 CC="" 3755 else 3756 case $cross_compiling:$ac_tool_warned in 3757yes:) 3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3759printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3760ac_tool_warned=yes ;; 3761esac 3762 CC=$ac_ct_CC 3763 fi 3764else 3765 CC="$ac_cv_prog_CC" 3766fi 3767 3768fi 3769 3770 3771test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3772printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3773as_fn_error $? "no acceptable C compiler found in \$PATH 3774See \`config.log' for more details" "$LINENO" 5; } 3775 3776# Provide some information about the compiler. 3777printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3778set X $ac_compile 3779ac_compiler=$2 3780for ac_option in --version -v -V -qversion -version; do 3781 { { ac_try="$ac_compiler $ac_option >&5" 3782case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3787printf "%s\n" "$ac_try_echo"; } >&5 3788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3789 ac_status=$? 3790 if test -s conftest.err; then 3791 sed '10a\ 3792... rest of stderr output deleted ... 3793 10q' conftest.err >conftest.er1 3794 cat conftest.er1 >&5 3795 fi 3796 rm -f conftest.er1 conftest.err 3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3798 test $ac_status = 0; } 3799done 3800 3801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3802/* end confdefs.h. */ 3803 3804int 3805main (void) 3806{ 3807 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812ac_clean_files_save=$ac_clean_files 3813ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3814# Try to create an executable without -o first, disregard a.out. 3815# It will help us diagnose broken compilers, and finding out an intuition 3816# of exeext. 3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3818printf %s "checking whether the C compiler works... " >&6; } 3819ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3820 3821# The possible output files: 3822ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3823 3824ac_rmfiles= 3825for ac_file in $ac_files 3826do 3827 case $ac_file in 3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3829 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3830 esac 3831done 3832rm -f $ac_rmfiles 3833 3834if { { ac_try="$ac_link_default" 3835case "(($ac_try" in 3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3837 *) ac_try_echo=$ac_try;; 3838esac 3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3840printf "%s\n" "$ac_try_echo"; } >&5 3841 (eval "$ac_link_default") 2>&5 3842 ac_status=$? 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3844 test $ac_status = 0; } 3845then : 3846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3847# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3848# in a Makefile. We should not override ac_cv_exeext if it was cached, 3849# so that the user can short-circuit this test for compilers unknown to 3850# Autoconf. 3851for ac_file in $ac_files '' 3852do 3853 test -f "$ac_file" || continue 3854 case $ac_file in 3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3856 ;; 3857 [ab].out ) 3858 # We found the default executable, but exeext='' is most 3859 # certainly right. 3860 break;; 3861 *.* ) 3862 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3863 then :; else 3864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3865 fi 3866 # We set ac_cv_exeext here because the later test for it is not 3867 # safe: cross compilers may not add the suffix if given an `-o' 3868 # argument, so we may need to know it at that point already. 3869 # Even if this section looks crufty: it has the advantage of 3870 # actually working. 3871 break;; 3872 * ) 3873 break;; 3874 esac 3875done 3876test "$ac_cv_exeext" = no && ac_cv_exeext= 3877 3878else $as_nop 3879 ac_file='' 3880fi 3881if test -z "$ac_file" 3882then : 3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3884printf "%s\n" "no" >&6; } 3885printf "%s\n" "$as_me: failed program was:" >&5 3886sed 's/^/| /' conftest.$ac_ext >&5 3887 3888{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3889printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3890as_fn_error 77 "C compiler cannot create executables 3891See \`config.log' for more details" "$LINENO" 5; } 3892else $as_nop 3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3894printf "%s\n" "yes" >&6; } 3895fi 3896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3897printf %s "checking for C compiler default output file name... " >&6; } 3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3899printf "%s\n" "$ac_file" >&6; } 3900ac_exeext=$ac_cv_exeext 3901 3902rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3903ac_clean_files=$ac_clean_files_save 3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3905printf %s "checking for suffix of executables... " >&6; } 3906if { { ac_try="$ac_link" 3907case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3912printf "%s\n" "$ac_try_echo"; } >&5 3913 (eval "$ac_link") 2>&5 3914 ac_status=$? 3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3916 test $ac_status = 0; } 3917then : 3918 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3919# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3920# work properly (i.e., refer to `conftest.exe'), while it won't with 3921# `rm'. 3922for ac_file in conftest.exe conftest conftest.*; do 3923 test -f "$ac_file" || continue 3924 case $ac_file in 3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3927 break;; 3928 * ) break;; 3929 esac 3930done 3931else $as_nop 3932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3933printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3934as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3935See \`config.log' for more details" "$LINENO" 5; } 3936fi 3937rm -f conftest conftest$ac_cv_exeext 3938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3939printf "%s\n" "$ac_cv_exeext" >&6; } 3940 3941rm -f conftest.$ac_ext 3942EXEEXT=$ac_cv_exeext 3943ac_exeext=$EXEEXT 3944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945/* end confdefs.h. */ 3946#include <stdio.h> 3947int 3948main (void) 3949{ 3950FILE *f = fopen ("conftest.out", "w"); 3951 return ferror (f) || fclose (f) != 0; 3952 3953 ; 3954 return 0; 3955} 3956_ACEOF 3957ac_clean_files="$ac_clean_files conftest.out" 3958# Check that the compiler produces executables we can run. If not, either 3959# the compiler is broken, or we cross compile. 3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3961printf %s "checking whether we are cross compiling... " >&6; } 3962if test "$cross_compiling" != yes; then 3963 { { ac_try="$ac_link" 3964case "(($ac_try" in 3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3966 *) ac_try_echo=$ac_try;; 3967esac 3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3969printf "%s\n" "$ac_try_echo"; } >&5 3970 (eval "$ac_link") 2>&5 3971 ac_status=$? 3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3973 test $ac_status = 0; } 3974 if { ac_try='./conftest$ac_cv_exeext' 3975 { { case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3980printf "%s\n" "$ac_try_echo"; } >&5 3981 (eval "$ac_try") 2>&5 3982 ac_status=$? 3983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3984 test $ac_status = 0; }; }; then 3985 cross_compiling=no 3986 else 3987 if test "$cross_compiling" = maybe; then 3988 cross_compiling=yes 3989 else 3990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3991printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3992as_fn_error 77 "cannot run C compiled programs. 3993If you meant to cross compile, use \`--host'. 3994See \`config.log' for more details" "$LINENO" 5; } 3995 fi 3996 fi 3997fi 3998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3999printf "%s\n" "$cross_compiling" >&6; } 4000 4001rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4002ac_clean_files=$ac_clean_files_save 4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4004printf %s "checking for suffix of object files... " >&6; } 4005if test ${ac_cv_objext+y} 4006then : 4007 printf %s "(cached) " >&6 4008else $as_nop 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010/* end confdefs.h. */ 4011 4012int 4013main (void) 4014{ 4015 4016 ; 4017 return 0; 4018} 4019_ACEOF 4020rm -f conftest.o conftest.obj 4021if { { ac_try="$ac_compile" 4022case "(($ac_try" in 4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4024 *) ac_try_echo=$ac_try;; 4025esac 4026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4027printf "%s\n" "$ac_try_echo"; } >&5 4028 (eval "$ac_compile") 2>&5 4029 ac_status=$? 4030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4031 test $ac_status = 0; } 4032then : 4033 for ac_file in conftest.o conftest.obj conftest.*; do 4034 test -f "$ac_file" || continue; 4035 case $ac_file in 4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4038 break;; 4039 esac 4040done 4041else $as_nop 4042 printf "%s\n" "$as_me: failed program was:" >&5 4043sed 's/^/| /' conftest.$ac_ext >&5 4044 4045{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4046printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4047as_fn_error $? "cannot compute suffix of object files: cannot compile 4048See \`config.log' for more details" "$LINENO" 5; } 4049fi 4050rm -f conftest.$ac_cv_objext conftest.$ac_ext 4051fi 4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4053printf "%s\n" "$ac_cv_objext" >&6; } 4054OBJEXT=$ac_cv_objext 4055ac_objext=$OBJEXT 4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4057printf %s "checking whether the compiler supports GNU C... " >&6; } 4058if test ${ac_cv_c_compiler_gnu+y} 4059then : 4060 printf %s "(cached) " >&6 4061else $as_nop 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063/* end confdefs.h. */ 4064 4065int 4066main (void) 4067{ 4068#ifndef __GNUC__ 4069 choke me 4070#endif 4071 4072 ; 4073 return 0; 4074} 4075_ACEOF 4076if ac_fn_c_try_compile "$LINENO" 4077then : 4078 ac_compiler_gnu=yes 4079else $as_nop 4080 ac_compiler_gnu=no 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4083ac_cv_c_compiler_gnu=$ac_compiler_gnu 4084 4085fi 4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4087printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4088ac_compiler_gnu=$ac_cv_c_compiler_gnu 4089 4090if test $ac_compiler_gnu = yes; then 4091 GCC=yes 4092else 4093 GCC= 4094fi 4095ac_test_CFLAGS=${CFLAGS+y} 4096ac_save_CFLAGS=$CFLAGS 4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4098printf %s "checking whether $CC accepts -g... " >&6; } 4099if test ${ac_cv_prog_cc_g+y} 4100then : 4101 printf %s "(cached) " >&6 4102else $as_nop 4103 ac_save_c_werror_flag=$ac_c_werror_flag 4104 ac_c_werror_flag=yes 4105 ac_cv_prog_cc_g=no 4106 CFLAGS="-g" 4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108/* end confdefs.h. */ 4109 4110int 4111main (void) 4112{ 4113 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118if ac_fn_c_try_compile "$LINENO" 4119then : 4120 ac_cv_prog_cc_g=yes 4121else $as_nop 4122 CFLAGS="" 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125 4126int 4127main (void) 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134if ac_fn_c_try_compile "$LINENO" 4135then : 4136 4137else $as_nop 4138 ac_c_werror_flag=$ac_save_c_werror_flag 4139 CFLAGS="-g" 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141/* end confdefs.h. */ 4142 4143int 4144main (void) 4145{ 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151if ac_fn_c_try_compile "$LINENO" 4152then : 4153 ac_cv_prog_cc_g=yes 4154fi 4155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4156fi 4157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4158fi 4159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4160 ac_c_werror_flag=$ac_save_c_werror_flag 4161fi 4162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4163printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4164if test $ac_test_CFLAGS; then 4165 CFLAGS=$ac_save_CFLAGS 4166elif test $ac_cv_prog_cc_g = yes; then 4167 if test "$GCC" = yes; then 4168 CFLAGS="-g -O2" 4169 else 4170 CFLAGS="-g" 4171 fi 4172else 4173 if test "$GCC" = yes; then 4174 CFLAGS="-O2" 4175 else 4176 CFLAGS= 4177 fi 4178fi 4179ac_prog_cc_stdc=no 4180if test x$ac_prog_cc_stdc = xno 4181then : 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4183printf %s "checking for $CC option to enable C11 features... " >&6; } 4184if test ${ac_cv_prog_cc_c11+y} 4185then : 4186 printf %s "(cached) " >&6 4187else $as_nop 4188 ac_cv_prog_cc_c11=no 4189ac_save_CC=$CC 4190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4191/* end confdefs.h. */ 4192$ac_c_conftest_c11_program 4193_ACEOF 4194for ac_arg in '' -std=gnu11 4195do 4196 CC="$ac_save_CC $ac_arg" 4197 if ac_fn_c_try_compile "$LINENO" 4198then : 4199 ac_cv_prog_cc_c11=$ac_arg 4200fi 4201rm -f core conftest.err conftest.$ac_objext conftest.beam 4202 test "x$ac_cv_prog_cc_c11" != "xno" && break 4203done 4204rm -f conftest.$ac_ext 4205CC=$ac_save_CC 4206fi 4207 4208if test "x$ac_cv_prog_cc_c11" = xno 4209then : 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4211printf "%s\n" "unsupported" >&6; } 4212else $as_nop 4213 if test "x$ac_cv_prog_cc_c11" = x 4214then : 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4216printf "%s\n" "none needed" >&6; } 4217else $as_nop 4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4219printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4220 CC="$CC $ac_cv_prog_cc_c11" 4221fi 4222 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4223 ac_prog_cc_stdc=c11 4224fi 4225fi 4226if test x$ac_prog_cc_stdc = xno 4227then : 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4229printf %s "checking for $CC option to enable C99 features... " >&6; } 4230if test ${ac_cv_prog_cc_c99+y} 4231then : 4232 printf %s "(cached) " >&6 4233else $as_nop 4234 ac_cv_prog_cc_c99=no 4235ac_save_CC=$CC 4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238$ac_c_conftest_c99_program 4239_ACEOF 4240for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4241do 4242 CC="$ac_save_CC $ac_arg" 4243 if ac_fn_c_try_compile "$LINENO" 4244then : 4245 ac_cv_prog_cc_c99=$ac_arg 4246fi 4247rm -f core conftest.err conftest.$ac_objext conftest.beam 4248 test "x$ac_cv_prog_cc_c99" != "xno" && break 4249done 4250rm -f conftest.$ac_ext 4251CC=$ac_save_CC 4252fi 4253 4254if test "x$ac_cv_prog_cc_c99" = xno 4255then : 4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4257printf "%s\n" "unsupported" >&6; } 4258else $as_nop 4259 if test "x$ac_cv_prog_cc_c99" = x 4260then : 4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4262printf "%s\n" "none needed" >&6; } 4263else $as_nop 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4265printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4266 CC="$CC $ac_cv_prog_cc_c99" 4267fi 4268 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4269 ac_prog_cc_stdc=c99 4270fi 4271fi 4272if test x$ac_prog_cc_stdc = xno 4273then : 4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4275printf %s "checking for $CC option to enable C89 features... " >&6; } 4276if test ${ac_cv_prog_cc_c89+y} 4277then : 4278 printf %s "(cached) " >&6 4279else $as_nop 4280 ac_cv_prog_cc_c89=no 4281ac_save_CC=$CC 4282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284$ac_c_conftest_c89_program 4285_ACEOF 4286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4287do 4288 CC="$ac_save_CC $ac_arg" 4289 if ac_fn_c_try_compile "$LINENO" 4290then : 4291 ac_cv_prog_cc_c89=$ac_arg 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.beam 4294 test "x$ac_cv_prog_cc_c89" != "xno" && break 4295done 4296rm -f conftest.$ac_ext 4297CC=$ac_save_CC 4298fi 4299 4300if test "x$ac_cv_prog_cc_c89" = xno 4301then : 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4303printf "%s\n" "unsupported" >&6; } 4304else $as_nop 4305 if test "x$ac_cv_prog_cc_c89" = x 4306then : 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4308printf "%s\n" "none needed" >&6; } 4309else $as_nop 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4311printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4312 CC="$CC $ac_cv_prog_cc_c89" 4313fi 4314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4315 ac_prog_cc_stdc=c89 4316fi 4317fi 4318 4319ac_ext=c 4320ac_cpp='$CPP $CPPFLAGS' 4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4323ac_compiler_gnu=$ac_cv_c_compiler_gnu 4324 4325 4326ac_header= ac_cache= 4327for ac_item in $ac_header_c_list 4328do 4329 if test $ac_cache; then 4330 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4331 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4332 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4333 fi 4334 ac_header= ac_cache= 4335 elif test $ac_header; then 4336 ac_cache=$ac_item 4337 else 4338 ac_header=$ac_item 4339 fi 4340done 4341 4342 4343 4344 4345 4346 4347 4348 4349if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4350then : 4351 4352printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4353 4354fi 4355 4356 4357 4358 4359 4360 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4362printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4363if test ${ac_cv_safe_to_define___extensions__+y} 4364then : 4365 printf %s "(cached) " >&6 4366else $as_nop 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368/* end confdefs.h. */ 4369 4370# define __EXTENSIONS__ 1 4371 $ac_includes_default 4372int 4373main (void) 4374{ 4375 4376 ; 4377 return 0; 4378} 4379_ACEOF 4380if ac_fn_c_try_compile "$LINENO" 4381then : 4382 ac_cv_safe_to_define___extensions__=yes 4383else $as_nop 4384 ac_cv_safe_to_define___extensions__=no 4385fi 4386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4387fi 4388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4389printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4390 4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4392printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4393if test ${ac_cv_should_define__xopen_source+y} 4394then : 4395 printf %s "(cached) " >&6 4396else $as_nop 4397 ac_cv_should_define__xopen_source=no 4398 if test $ac_cv_header_wchar_h = yes 4399then : 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402 4403 #include <wchar.h> 4404 mbstate_t x; 4405int 4406main (void) 4407{ 4408 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413if ac_fn_c_try_compile "$LINENO" 4414then : 4415 4416else $as_nop 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419 4420 #define _XOPEN_SOURCE 500 4421 #include <wchar.h> 4422 mbstate_t x; 4423int 4424main (void) 4425{ 4426 4427 ; 4428 return 0; 4429} 4430_ACEOF 4431if ac_fn_c_try_compile "$LINENO" 4432then : 4433 ac_cv_should_define__xopen_source=yes 4434fi 4435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4436fi 4437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4438fi 4439fi 4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4441printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4442 4443 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4444 4445 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4446 4447 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4448 4449 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4450 4451 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4452 4453 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4454 4455 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4456 4457 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4458 4459 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4460 4461 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4462 4463 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4464 4465 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4466 4467 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4468 4469 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4470 4471 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4472 4473 if test $ac_cv_header_minix_config_h = yes 4474then : 4475 MINIX=yes 4476 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4477 4478 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4479 4480 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4481 4482else $as_nop 4483 MINIX= 4484fi 4485 if test $ac_cv_safe_to_define___extensions__ = yes 4486then : 4487 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4488 4489fi 4490 if test $ac_cv_should_define__xopen_source = yes 4491then : 4492 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4493 4494fi 4495 4496if test "$ac_cv_header_minix_config_h" = "yes"; then 4497 4498printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4499 4500fi 4501 4502case "$prefix" in 4503 NONE) 4504 prefix="/usr/local" 4505 ;; 4506esac 4507case "$exec_prefix" in 4508 NONE) 4509 exec_prefix="$prefix" 4510 ;; 4511esac 4512 4513# are we on MinGW? 4514if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4515else 4516 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes" 4517 else on_mingw="no"; fi 4518fi 4519 4520# 4521# Determine configuration file 4522# the eval is to evaluate shell expansion twice 4523UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4524 4525UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4526 4527UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4528 4529if test $on_mingw = "no"; then 4530 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4531else 4532 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4533fi 4534 4535# Check whether --with-conf_file was given. 4536if test ${with_conf_file+y} 4537then : 4538 withval=$with_conf_file; ub_conf_file="$withval" 4539fi 4540 4541 4542hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4543 4544 4545printf "%s\n" "#define CONFIGFILE \"$hdr_config\"" >>confdefs.h 4546 4547ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4548$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4549 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4550 X"$ub_conf_file" : 'X\(//\)$' \| \ 4551 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4552printf "%s\n" X"$ub_conf_file" | 4553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4554 s//\1/ 4555 q 4556 } 4557 /^X\(\/\/\)[^/].*/{ 4558 s//\1/ 4559 q 4560 } 4561 /^X\(\/\/\)$/{ 4562 s//\1/ 4563 q 4564 } 4565 /^X\(\/\).*/{ 4566 s//\1/ 4567 q 4568 } 4569 s/.*/./; q'` 4570 4571 4572# Determine run, chroot directory and pidfile locations 4573 4574# Check whether --with-run-dir was given. 4575if test ${with_run_dir+y} 4576then : 4577 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4578else $as_nop 4579 if test $on_mingw = no; then 4580 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4581else 4582 UNBOUND_RUN_DIR="" 4583fi 4584 4585fi 4586 4587 4588hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4589 4590 4591printf "%s\n" "#define RUN_DIR \"$hdr_run\"" >>confdefs.h 4592 4593 4594 4595# Check whether --with-chroot-dir was given. 4596if test ${with_chroot_dir+y} 4597then : 4598 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4599else $as_nop 4600 if test $on_mingw = no; then 4601 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4602else 4603 UNBOUND_CHROOT_DIR="" 4604fi 4605 4606fi 4607 4608 4609hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4610 4611 4612printf "%s\n" "#define CHROOT_DIR \"$hdr_chroot\"" >>confdefs.h 4613 4614 4615 4616# Check whether --with-share-dir was given. 4617if test ${with_share_dir+y} 4618then : 4619 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4620else $as_nop 4621 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4622fi 4623 4624 4625 4626printf "%s\n" "#define SHARE_DIR \"$UNBOUND_SHARE_DIR\"" >>confdefs.h 4627 4628 4629 4630# Check whether --with-pidfile was given. 4631if test ${with_pidfile+y} 4632then : 4633 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4634else $as_nop 4635 if test $on_mingw = no; then 4636 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4637else 4638 UNBOUND_PIDFILE="" 4639fi 4640 4641fi 4642 4643 4644hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4645 4646 4647printf "%s\n" "#define PIDFILE \"$hdr_pid\"" >>confdefs.h 4648 4649 4650 4651# Check whether --with-rootkey-file was given. 4652if test ${with_rootkey_file+y} 4653then : 4654 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4655else $as_nop 4656 if test $on_mingw = no; then 4657 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4658else 4659 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4660fi 4661 4662fi 4663 4664 4665hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4666 4667 4668printf "%s\n" "#define ROOT_ANCHOR_FILE \"$hdr_rkey\"" >>confdefs.h 4669 4670 4671 4672# Check whether --with-rootcert-file was given. 4673if test ${with_rootcert_file+y} 4674then : 4675 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4676else $as_nop 4677 if test $on_mingw = no; then 4678 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4679else 4680 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4681fi 4682 4683fi 4684 4685 4686hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4687 4688 4689printf "%s\n" "#define ROOT_CERT_FILE \"$hdr_rpem\"" >>confdefs.h 4690 4691 4692 4693# Check whether --with-username was given. 4694if test ${with_username+y} 4695then : 4696 withval=$with_username; UNBOUND_USERNAME="$withval" 4697else $as_nop 4698 UNBOUND_USERNAME="unbound" 4699fi 4700 4701 4702 4703printf "%s\n" "#define UB_USERNAME \"$UNBOUND_USERNAME\"" >>confdefs.h 4704 4705 4706 4707printf "%s\n" "#define WINVER 0x0502" >>confdefs.h 4708 4709wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' ` 4710 4711 4712printf "%s\n" "#define RSRC_PACKAGE_VERSION $wnvs" >>confdefs.h 4713 4714 4715# Checks for typedefs, structures, and compiler characteristics. 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4717printf %s "checking for an ANSI C-conforming const... " >&6; } 4718if test ${ac_cv_c_const+y} 4719then : 4720 printf %s "(cached) " >&6 4721else $as_nop 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724 4725int 4726main (void) 4727{ 4728 4729#ifndef __cplusplus 4730 /* Ultrix mips cc rejects this sort of thing. */ 4731 typedef int charset[2]; 4732 const charset cs = { 0, 0 }; 4733 /* SunOS 4.1.1 cc rejects this. */ 4734 char const *const *pcpcc; 4735 char **ppc; 4736 /* NEC SVR4.0.2 mips cc rejects this. */ 4737 struct point {int x, y;}; 4738 static struct point const zero = {0,0}; 4739 /* IBM XL C 1.02.0.0 rejects this. 4740 It does not let you subtract one const X* pointer from another in 4741 an arm of an if-expression whose if-part is not a constant 4742 expression */ 4743 const char *g = "string"; 4744 pcpcc = &g + (g ? g-g : 0); 4745 /* HPUX 7.0 cc rejects these. */ 4746 ++pcpcc; 4747 ppc = (char**) pcpcc; 4748 pcpcc = (char const *const *) ppc; 4749 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4750 char tx; 4751 char *t = &tx; 4752 char const *s = 0 ? (char *) 0 : (char const *) 0; 4753 4754 *t++ = 0; 4755 if (s) return 0; 4756 } 4757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4758 int x[] = {25, 17}; 4759 const int *foo = &x[0]; 4760 ++foo; 4761 } 4762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4763 typedef const int *iptr; 4764 iptr p = 0; 4765 ++p; 4766 } 4767 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 4768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4769 struct s { int j; const int *ap[3]; } bx; 4770 struct s *b = &bx; b->j = 5; 4771 } 4772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4773 const int foo = 10; 4774 if (!foo) return 0; 4775 } 4776 return !cs[0] && !zero.x; 4777#endif 4778 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783if ac_fn_c_try_compile "$LINENO" 4784then : 4785 ac_cv_c_const=yes 4786else $as_nop 4787 ac_cv_c_const=no 4788fi 4789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4790fi 4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4792printf "%s\n" "$ac_cv_c_const" >&6; } 4793if test $ac_cv_c_const = no; then 4794 4795printf "%s\n" "#define const /**/" >>confdefs.h 4796 4797fi 4798 4799ac_ext=c 4800ac_cpp='$CPP $CPPFLAGS' 4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4803ac_compiler_gnu=$ac_cv_c_compiler_gnu 4804 4805# allow user to override the -g -O2 flags. 4806default_cflags=no 4807if test "x$CFLAGS" = "x" ; then 4808 4809 4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4811printf %s "checking whether $CC supports -g... " >&6; } 4812cache=`echo g | sed 'y%.=/+-%___p_%'` 4813if eval test \${cv_prog_cc_flag_$cache+y} 4814then : 4815 printf %s "(cached) " >&6 4816else $as_nop 4817 4818echo 'void f(void){}' >conftest.c 4819if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4820eval "cv_prog_cc_flag_$cache=yes" 4821else 4822eval "cv_prog_cc_flag_$cache=no" 4823fi 4824rm -f conftest conftest.o conftest.c 4825 4826fi 4827 4828if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4830printf "%s\n" "yes" >&6; } 4831: 4832CFLAGS="$CFLAGS -g" 4833else 4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4835printf "%s\n" "no" >&6; } 4836: 4837 4838fi 4839 4840 4841 4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4843printf %s "checking whether $CC supports -O2... " >&6; } 4844cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4845if eval test \${cv_prog_cc_flag_$cache+y} 4846then : 4847 printf %s "(cached) " >&6 4848else $as_nop 4849 4850echo 'void f(void){}' >conftest.c 4851if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4852eval "cv_prog_cc_flag_$cache=yes" 4853else 4854eval "cv_prog_cc_flag_$cache=no" 4855fi 4856rm -f conftest conftest.o conftest.c 4857 4858fi 4859 4860if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4862printf "%s\n" "yes" >&6; } 4863: 4864CFLAGS="$CFLAGS -O2" 4865else 4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4867printf "%s\n" "no" >&6; } 4868: 4869 4870fi 4871 4872default_cflags=yes 4873fi 4874ac_ext=c 4875ac_cpp='$CPP $CPPFLAGS' 4876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4878ac_compiler_gnu=$ac_cv_c_compiler_gnu 4879if test -n "$ac_tool_prefix"; then 4880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4881set dummy ${ac_tool_prefix}gcc; ac_word=$2 4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4883printf %s "checking for $ac_word... " >&6; } 4884if test ${ac_cv_prog_CC+y} 4885then : 4886 printf %s "(cached) " >&6 4887else $as_nop 4888 if test -n "$CC"; then 4889 ac_cv_prog_CC="$CC" # Let the user override the test. 4890else 4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4892for as_dir in $PATH 4893do 4894 IFS=$as_save_IFS 4895 case $as_dir in #((( 4896 '') as_dir=./ ;; 4897 */) ;; 4898 *) as_dir=$as_dir/ ;; 4899 esac 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4902 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4904 break 2 4905 fi 4906done 4907 done 4908IFS=$as_save_IFS 4909 4910fi 4911fi 4912CC=$ac_cv_prog_CC 4913if test -n "$CC"; then 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4915printf "%s\n" "$CC" >&6; } 4916else 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4918printf "%s\n" "no" >&6; } 4919fi 4920 4921 4922fi 4923if test -z "$ac_cv_prog_CC"; then 4924 ac_ct_CC=$CC 4925 # Extract the first word of "gcc", so it can be a program name with args. 4926set dummy gcc; ac_word=$2 4927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4928printf %s "checking for $ac_word... " >&6; } 4929if test ${ac_cv_prog_ac_ct_CC+y} 4930then : 4931 printf %s "(cached) " >&6 4932else $as_nop 4933 if test -n "$ac_ct_CC"; then 4934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4935else 4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4937for as_dir in $PATH 4938do 4939 IFS=$as_save_IFS 4940 case $as_dir in #((( 4941 '') as_dir=./ ;; 4942 */) ;; 4943 *) as_dir=$as_dir/ ;; 4944 esac 4945 for ac_exec_ext in '' $ac_executable_extensions; do 4946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4947 ac_cv_prog_ac_ct_CC="gcc" 4948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4949 break 2 4950 fi 4951done 4952 done 4953IFS=$as_save_IFS 4954 4955fi 4956fi 4957ac_ct_CC=$ac_cv_prog_ac_ct_CC 4958if test -n "$ac_ct_CC"; then 4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4960printf "%s\n" "$ac_ct_CC" >&6; } 4961else 4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4963printf "%s\n" "no" >&6; } 4964fi 4965 4966 if test "x$ac_ct_CC" = x; then 4967 CC="" 4968 else 4969 case $cross_compiling:$ac_tool_warned in 4970yes:) 4971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4972printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4973ac_tool_warned=yes ;; 4974esac 4975 CC=$ac_ct_CC 4976 fi 4977else 4978 CC="$ac_cv_prog_CC" 4979fi 4980 4981if test -z "$CC"; then 4982 if test -n "$ac_tool_prefix"; then 4983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4984set dummy ${ac_tool_prefix}cc; ac_word=$2 4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4986printf %s "checking for $ac_word... " >&6; } 4987if test ${ac_cv_prog_CC+y} 4988then : 4989 printf %s "(cached) " >&6 4990else $as_nop 4991 if test -n "$CC"; then 4992 ac_cv_prog_CC="$CC" # Let the user override the test. 4993else 4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4995for as_dir in $PATH 4996do 4997 IFS=$as_save_IFS 4998 case $as_dir in #((( 4999 '') as_dir=./ ;; 5000 */) ;; 5001 *) as_dir=$as_dir/ ;; 5002 esac 5003 for ac_exec_ext in '' $ac_executable_extensions; do 5004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5005 ac_cv_prog_CC="${ac_tool_prefix}cc" 5006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5007 break 2 5008 fi 5009done 5010 done 5011IFS=$as_save_IFS 5012 5013fi 5014fi 5015CC=$ac_cv_prog_CC 5016if test -n "$CC"; then 5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5018printf "%s\n" "$CC" >&6; } 5019else 5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5021printf "%s\n" "no" >&6; } 5022fi 5023 5024 5025 fi 5026fi 5027if test -z "$CC"; then 5028 # Extract the first word of "cc", so it can be a program name with args. 5029set dummy cc; ac_word=$2 5030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5031printf %s "checking for $ac_word... " >&6; } 5032if test ${ac_cv_prog_CC+y} 5033then : 5034 printf %s "(cached) " >&6 5035else $as_nop 5036 if test -n "$CC"; then 5037 ac_cv_prog_CC="$CC" # Let the user override the test. 5038else 5039 ac_prog_rejected=no 5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5041for as_dir in $PATH 5042do 5043 IFS=$as_save_IFS 5044 case $as_dir in #((( 5045 '') as_dir=./ ;; 5046 */) ;; 5047 *) as_dir=$as_dir/ ;; 5048 esac 5049 for ac_exec_ext in '' $ac_executable_extensions; do 5050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5051 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5052 ac_prog_rejected=yes 5053 continue 5054 fi 5055 ac_cv_prog_CC="cc" 5056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059done 5060 done 5061IFS=$as_save_IFS 5062 5063if test $ac_prog_rejected = yes; then 5064 # We found a bogon in the path, so make sure we never use it. 5065 set dummy $ac_cv_prog_CC 5066 shift 5067 if test $# != 0; then 5068 # We chose a different compiler from the bogus one. 5069 # However, it has the same basename, so the bogon will be chosen 5070 # first if we set CC to just the basename; use the full file name. 5071 shift 5072 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5073 fi 5074fi 5075fi 5076fi 5077CC=$ac_cv_prog_CC 5078if test -n "$CC"; then 5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5080printf "%s\n" "$CC" >&6; } 5081else 5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5083printf "%s\n" "no" >&6; } 5084fi 5085 5086 5087fi 5088if test -z "$CC"; then 5089 if test -n "$ac_tool_prefix"; then 5090 for ac_prog in cl.exe 5091 do 5092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5093set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5095printf %s "checking for $ac_word... " >&6; } 5096if test ${ac_cv_prog_CC+y} 5097then : 5098 printf %s "(cached) " >&6 5099else $as_nop 5100 if test -n "$CC"; then 5101 ac_cv_prog_CC="$CC" # Let the user override the test. 5102else 5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5104for as_dir in $PATH 5105do 5106 IFS=$as_save_IFS 5107 case $as_dir in #((( 5108 '') as_dir=./ ;; 5109 */) ;; 5110 *) as_dir=$as_dir/ ;; 5111 esac 5112 for ac_exec_ext in '' $ac_executable_extensions; do 5113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5116 break 2 5117 fi 5118done 5119 done 5120IFS=$as_save_IFS 5121 5122fi 5123fi 5124CC=$ac_cv_prog_CC 5125if test -n "$CC"; then 5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5127printf "%s\n" "$CC" >&6; } 5128else 5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130printf "%s\n" "no" >&6; } 5131fi 5132 5133 5134 test -n "$CC" && break 5135 done 5136fi 5137if test -z "$CC"; then 5138 ac_ct_CC=$CC 5139 for ac_prog in cl.exe 5140do 5141 # Extract the first word of "$ac_prog", so it can be a program name with args. 5142set dummy $ac_prog; ac_word=$2 5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5144printf %s "checking for $ac_word... " >&6; } 5145if test ${ac_cv_prog_ac_ct_CC+y} 5146then : 5147 printf %s "(cached) " >&6 5148else $as_nop 5149 if test -n "$ac_ct_CC"; then 5150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5151else 5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5153for as_dir in $PATH 5154do 5155 IFS=$as_save_IFS 5156 case $as_dir in #((( 5157 '') as_dir=./ ;; 5158 */) ;; 5159 *) as_dir=$as_dir/ ;; 5160 esac 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5163 ac_cv_prog_ac_ct_CC="$ac_prog" 5164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167done 5168 done 5169IFS=$as_save_IFS 5170 5171fi 5172fi 5173ac_ct_CC=$ac_cv_prog_ac_ct_CC 5174if test -n "$ac_ct_CC"; then 5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5176printf "%s\n" "$ac_ct_CC" >&6; } 5177else 5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5179printf "%s\n" "no" >&6; } 5180fi 5181 5182 5183 test -n "$ac_ct_CC" && break 5184done 5185 5186 if test "x$ac_ct_CC" = x; then 5187 CC="" 5188 else 5189 case $cross_compiling:$ac_tool_warned in 5190yes:) 5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5192printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5193ac_tool_warned=yes ;; 5194esac 5195 CC=$ac_ct_CC 5196 fi 5197fi 5198 5199fi 5200if test -z "$CC"; then 5201 if test -n "$ac_tool_prefix"; then 5202 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5203set dummy ${ac_tool_prefix}clang; ac_word=$2 5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5205printf %s "checking for $ac_word... " >&6; } 5206if test ${ac_cv_prog_CC+y} 5207then : 5208 printf %s "(cached) " >&6 5209else $as_nop 5210 if test -n "$CC"; then 5211 ac_cv_prog_CC="$CC" # Let the user override the test. 5212else 5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214for as_dir in $PATH 5215do 5216 IFS=$as_save_IFS 5217 case $as_dir in #((( 5218 '') as_dir=./ ;; 5219 */) ;; 5220 *) as_dir=$as_dir/ ;; 5221 esac 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5224 ac_cv_prog_CC="${ac_tool_prefix}clang" 5225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5226 break 2 5227 fi 5228done 5229 done 5230IFS=$as_save_IFS 5231 5232fi 5233fi 5234CC=$ac_cv_prog_CC 5235if test -n "$CC"; then 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5237printf "%s\n" "$CC" >&6; } 5238else 5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5240printf "%s\n" "no" >&6; } 5241fi 5242 5243 5244fi 5245if test -z "$ac_cv_prog_CC"; then 5246 ac_ct_CC=$CC 5247 # Extract the first word of "clang", so it can be a program name with args. 5248set dummy clang; ac_word=$2 5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250printf %s "checking for $ac_word... " >&6; } 5251if test ${ac_cv_prog_ac_ct_CC+y} 5252then : 5253 printf %s "(cached) " >&6 5254else $as_nop 5255 if test -n "$ac_ct_CC"; then 5256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5257else 5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH 5260do 5261 IFS=$as_save_IFS 5262 case $as_dir in #((( 5263 '') as_dir=./ ;; 5264 */) ;; 5265 *) as_dir=$as_dir/ ;; 5266 esac 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5269 ac_cv_prog_ac_ct_CC="clang" 5270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273done 5274 done 5275IFS=$as_save_IFS 5276 5277fi 5278fi 5279ac_ct_CC=$ac_cv_prog_ac_ct_CC 5280if test -n "$ac_ct_CC"; then 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5282printf "%s\n" "$ac_ct_CC" >&6; } 5283else 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285printf "%s\n" "no" >&6; } 5286fi 5287 5288 if test "x$ac_ct_CC" = x; then 5289 CC="" 5290 else 5291 case $cross_compiling:$ac_tool_warned in 5292yes:) 5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5294printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5295ac_tool_warned=yes ;; 5296esac 5297 CC=$ac_ct_CC 5298 fi 5299else 5300 CC="$ac_cv_prog_CC" 5301fi 5302 5303fi 5304 5305 5306test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5307printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5308as_fn_error $? "no acceptable C compiler found in \$PATH 5309See \`config.log' for more details" "$LINENO" 5; } 5310 5311# Provide some information about the compiler. 5312printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5313set X $ac_compile 5314ac_compiler=$2 5315for ac_option in --version -v -V -qversion -version; do 5316 { { ac_try="$ac_compiler $ac_option >&5" 5317case "(($ac_try" in 5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5319 *) ac_try_echo=$ac_try;; 5320esac 5321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5322printf "%s\n" "$ac_try_echo"; } >&5 5323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5324 ac_status=$? 5325 if test -s conftest.err; then 5326 sed '10a\ 5327... rest of stderr output deleted ... 5328 10q' conftest.err >conftest.er1 5329 cat conftest.er1 >&5 5330 fi 5331 rm -f conftest.er1 conftest.err 5332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5333 test $ac_status = 0; } 5334done 5335 5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5337printf %s "checking whether the compiler supports GNU C... " >&6; } 5338if test ${ac_cv_c_compiler_gnu+y} 5339then : 5340 printf %s "(cached) " >&6 5341else $as_nop 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344 5345int 5346main (void) 5347{ 5348#ifndef __GNUC__ 5349 choke me 5350#endif 5351 5352 ; 5353 return 0; 5354} 5355_ACEOF 5356if ac_fn_c_try_compile "$LINENO" 5357then : 5358 ac_compiler_gnu=yes 5359else $as_nop 5360 ac_compiler_gnu=no 5361fi 5362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5363ac_cv_c_compiler_gnu=$ac_compiler_gnu 5364 5365fi 5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5367printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5368ac_compiler_gnu=$ac_cv_c_compiler_gnu 5369 5370if test $ac_compiler_gnu = yes; then 5371 GCC=yes 5372else 5373 GCC= 5374fi 5375ac_test_CFLAGS=${CFLAGS+y} 5376ac_save_CFLAGS=$CFLAGS 5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5378printf %s "checking whether $CC accepts -g... " >&6; } 5379if test ${ac_cv_prog_cc_g+y} 5380then : 5381 printf %s "(cached) " >&6 5382else $as_nop 5383 ac_save_c_werror_flag=$ac_c_werror_flag 5384 ac_c_werror_flag=yes 5385 ac_cv_prog_cc_g=no 5386 CFLAGS="-g" 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389 5390int 5391main (void) 5392{ 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_compile "$LINENO" 5399then : 5400 ac_cv_prog_cc_g=yes 5401else $as_nop 5402 CFLAGS="" 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405 5406int 5407main (void) 5408{ 5409 5410 ; 5411 return 0; 5412} 5413_ACEOF 5414if ac_fn_c_try_compile "$LINENO" 5415then : 5416 5417else $as_nop 5418 ac_c_werror_flag=$ac_save_c_werror_flag 5419 CFLAGS="-g" 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422 5423int 5424main (void) 5425{ 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431if ac_fn_c_try_compile "$LINENO" 5432then : 5433 ac_cv_prog_cc_g=yes 5434fi 5435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5438fi 5439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5440 ac_c_werror_flag=$ac_save_c_werror_flag 5441fi 5442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5443printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5444if test $ac_test_CFLAGS; then 5445 CFLAGS=$ac_save_CFLAGS 5446elif test $ac_cv_prog_cc_g = yes; then 5447 if test "$GCC" = yes; then 5448 CFLAGS="-g -O2" 5449 else 5450 CFLAGS="-g" 5451 fi 5452else 5453 if test "$GCC" = yes; then 5454 CFLAGS="-O2" 5455 else 5456 CFLAGS= 5457 fi 5458fi 5459ac_prog_cc_stdc=no 5460if test x$ac_prog_cc_stdc = xno 5461then : 5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5463printf %s "checking for $CC option to enable C11 features... " >&6; } 5464if test ${ac_cv_prog_cc_c11+y} 5465then : 5466 printf %s "(cached) " >&6 5467else $as_nop 5468 ac_cv_prog_cc_c11=no 5469ac_save_CC=$CC 5470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471/* end confdefs.h. */ 5472$ac_c_conftest_c11_program 5473_ACEOF 5474for ac_arg in '' -std=gnu11 5475do 5476 CC="$ac_save_CC $ac_arg" 5477 if ac_fn_c_try_compile "$LINENO" 5478then : 5479 ac_cv_prog_cc_c11=$ac_arg 5480fi 5481rm -f core conftest.err conftest.$ac_objext conftest.beam 5482 test "x$ac_cv_prog_cc_c11" != "xno" && break 5483done 5484rm -f conftest.$ac_ext 5485CC=$ac_save_CC 5486fi 5487 5488if test "x$ac_cv_prog_cc_c11" = xno 5489then : 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5491printf "%s\n" "unsupported" >&6; } 5492else $as_nop 5493 if test "x$ac_cv_prog_cc_c11" = x 5494then : 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5496printf "%s\n" "none needed" >&6; } 5497else $as_nop 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5499printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5500 CC="$CC $ac_cv_prog_cc_c11" 5501fi 5502 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5503 ac_prog_cc_stdc=c11 5504fi 5505fi 5506if test x$ac_prog_cc_stdc = xno 5507then : 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5509printf %s "checking for $CC option to enable C99 features... " >&6; } 5510if test ${ac_cv_prog_cc_c99+y} 5511then : 5512 printf %s "(cached) " >&6 5513else $as_nop 5514 ac_cv_prog_cc_c99=no 5515ac_save_CC=$CC 5516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517/* end confdefs.h. */ 5518$ac_c_conftest_c99_program 5519_ACEOF 5520for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5521do 5522 CC="$ac_save_CC $ac_arg" 5523 if ac_fn_c_try_compile "$LINENO" 5524then : 5525 ac_cv_prog_cc_c99=$ac_arg 5526fi 5527rm -f core conftest.err conftest.$ac_objext conftest.beam 5528 test "x$ac_cv_prog_cc_c99" != "xno" && break 5529done 5530rm -f conftest.$ac_ext 5531CC=$ac_save_CC 5532fi 5533 5534if test "x$ac_cv_prog_cc_c99" = xno 5535then : 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5537printf "%s\n" "unsupported" >&6; } 5538else $as_nop 5539 if test "x$ac_cv_prog_cc_c99" = x 5540then : 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5542printf "%s\n" "none needed" >&6; } 5543else $as_nop 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5545printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5546 CC="$CC $ac_cv_prog_cc_c99" 5547fi 5548 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5549 ac_prog_cc_stdc=c99 5550fi 5551fi 5552if test x$ac_prog_cc_stdc = xno 5553then : 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5555printf %s "checking for $CC option to enable C89 features... " >&6; } 5556if test ${ac_cv_prog_cc_c89+y} 5557then : 5558 printf %s "(cached) " >&6 5559else $as_nop 5560 ac_cv_prog_cc_c89=no 5561ac_save_CC=$CC 5562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563/* end confdefs.h. */ 5564$ac_c_conftest_c89_program 5565_ACEOF 5566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5567do 5568 CC="$ac_save_CC $ac_arg" 5569 if ac_fn_c_try_compile "$LINENO" 5570then : 5571 ac_cv_prog_cc_c89=$ac_arg 5572fi 5573rm -f core conftest.err conftest.$ac_objext conftest.beam 5574 test "x$ac_cv_prog_cc_c89" != "xno" && break 5575done 5576rm -f conftest.$ac_ext 5577CC=$ac_save_CC 5578fi 5579 5580if test "x$ac_cv_prog_cc_c89" = xno 5581then : 5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5583printf "%s\n" "unsupported" >&6; } 5584else $as_nop 5585 if test "x$ac_cv_prog_cc_c89" = x 5586then : 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5588printf "%s\n" "none needed" >&6; } 5589else $as_nop 5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5591printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5592 CC="$CC $ac_cv_prog_cc_c89" 5593fi 5594 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5595 ac_prog_cc_stdc=c89 5596fi 5597fi 5598 5599ac_ext=c 5600ac_cpp='$CPP $CPPFLAGS' 5601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5603ac_compiler_gnu=$ac_cv_c_compiler_gnu 5604 5605 5606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5607printf %s "checking $CC dependency flag... " >&6; } 5608echo 'void f(){}' >conftest.c 5609if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5610 DEPFLAG="-MM" 5611else 5612 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5613 DEPFLAG="-xM1" 5614 else 5615 DEPFLAG="-MM" # dunno do something 5616 fi 5617fi 5618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5619printf "%s\n" "$DEPFLAG" >&6; } 5620rm -f conftest.c 5621 5622 5623 5624 5625 5626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5627printf %s "checking whether $CC supports -Werror... " >&6; } 5628cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5629if eval test \${cv_prog_cc_flag_$cache+y} 5630then : 5631 printf %s "(cached) " >&6 5632else $as_nop 5633 5634echo 'void f(void){}' >conftest.c 5635if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5636eval "cv_prog_cc_flag_$cache=yes" 5637else 5638eval "cv_prog_cc_flag_$cache=no" 5639fi 5640rm -f conftest conftest.o conftest.c 5641 5642fi 5643 5644if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5646printf "%s\n" "yes" >&6; } 5647: 5648ERRFLAG="-Werror" 5649else 5650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651printf "%s\n" "no" >&6; } 5652: 5653ERRFLAG="-errwarn" 5654fi 5655 5656 5657 5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5659printf %s "checking whether $CC supports -Wall... " >&6; } 5660cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5661if eval test \${cv_prog_cc_flag_$cache+y} 5662then : 5663 printf %s "(cached) " >&6 5664else $as_nop 5665 5666echo 'void f(void){}' >conftest.c 5667if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5668eval "cv_prog_cc_flag_$cache=yes" 5669else 5670eval "cv_prog_cc_flag_$cache=no" 5671fi 5672rm -f conftest conftest.o conftest.c 5673 5674fi 5675 5676if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5678printf "%s\n" "yes" >&6; } 5679: 5680ERRFLAG="$ERRFLAG -Wall" 5681else 5682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5683printf "%s\n" "no" >&6; } 5684: 5685ERRFLAG="$ERRFLAG -errfmt" 5686fi 5687 5688 5689 5690 5691 5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5693printf %s "checking whether $CC supports -std=c99... " >&6; } 5694cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5695if eval test \${cv_prog_cc_flag_$cache+y} 5696then : 5697 printf %s "(cached) " >&6 5698else $as_nop 5699 5700echo 'void f(void){}' >conftest.c 5701if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5702eval "cv_prog_cc_flag_$cache=yes" 5703else 5704eval "cv_prog_cc_flag_$cache=no" 5705fi 5706rm -f conftest conftest.o conftest.c 5707 5708fi 5709 5710if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5712printf "%s\n" "yes" >&6; } 5713: 5714C99FLAG="-std=c99" 5715else 5716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717printf "%s\n" "no" >&6; } 5718: 5719 5720fi 5721 5722 5723 5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5725printf %s "checking whether $CC supports -xc99... " >&6; } 5726cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5727if eval test \${cv_prog_cc_flag_$cache+y} 5728then : 5729 printf %s "(cached) " >&6 5730else $as_nop 5731 5732echo 'void f(void){}' >conftest.c 5733if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5734eval "cv_prog_cc_flag_$cache=yes" 5735else 5736eval "cv_prog_cc_flag_$cache=no" 5737fi 5738rm -f conftest conftest.o conftest.c 5739 5740fi 5741 5742if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5744printf "%s\n" "yes" >&6; } 5745: 5746C99FLAG="-xc99" 5747else 5748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749printf "%s\n" "no" >&6; } 5750: 5751 5752fi 5753 5754 5755ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 5756" 5757if test "x$ac_cv_header_getopt_h" = xyes 5758then : 5759 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 5760 5761fi 5762ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 5763" 5764if test "x$ac_cv_header_time_h" = xyes 5765then : 5766 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 5767 5768fi 5769 5770 5771 5772 5773 5774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5775printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5776cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5777if eval test \${cv_prog_cc_flag_needed_$cache+y} 5778then : 5779 printf %s "(cached) " >&6 5780else $as_nop 5781 5782echo ' 5783#include "confdefs.h" 5784#include <stdlib.h> 5785#include <ctype.h> 5786#include <sys/time.h> 5787#ifdef HAVE_TIME_H 5788#include <time.h> 5789#endif 5790#include <unistd.h> 5791#include <netdb.h> 5792#ifdef HAVE_GETOPT_H 5793#include <getopt.h> 5794#endif 5795 5796int test() { 5797 int a; 5798 char **opts = NULL; 5799 struct timeval tv; 5800 char *t; 5801 time_t time = 0; 5802 char *buf = NULL; 5803 const char* str = NULL; 5804 struct msghdr msg; 5805 msg.msg_control = 0; 5806 t = ctime_r(&time, buf); 5807 tv.tv_usec = 10; 5808 srandom(32); 5809 a = getopt(2, opts, "a"); 5810 a = isascii(32); 5811 str = gai_strerror(0); 5812 if(str && t && tv.tv_usec && msg.msg_control) 5813 a = 0; 5814 return a; 5815} 5816' > conftest.c 5817echo 'void f(){}' >>conftest.c 5818if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5819eval "cv_prog_cc_flag_needed_$cache=no" 5820else 5821 5822if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5823eval "cv_prog_cc_flag_needed_$cache=yes" 5824else 5825eval "cv_prog_cc_flag_needed_$cache=fail" 5826#echo 'Test with flag fails too!' 5827#cat conftest.c 5828#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5829#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5830#exit 1 5831fi 5832 5833fi 5834rm -f conftest conftest.c conftest.o 5835 5836fi 5837 5838if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5840printf "%s\n" "yes" >&6; } 5841: 5842CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5843else 5844if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5846printf "%s\n" "no" >&6; } 5847#echo 'Test with flag is no!' 5848#cat conftest.c 5849#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5850#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5851#exit 1 5852: 5853 5854else 5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5856printf "%s\n" "failed" >&6; } 5857: 5858 5859fi 5860fi 5861 5862 5863 5864 5865 5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5867printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5868cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5869if eval test \${cv_prog_cc_flag_needed_$cache+y} 5870then : 5871 printf %s "(cached) " >&6 5872else $as_nop 5873 5874echo ' 5875#include "confdefs.h" 5876#include <stdlib.h> 5877#include <ctype.h> 5878#include <sys/time.h> 5879#ifdef HAVE_TIME_H 5880#include <time.h> 5881#endif 5882#include <unistd.h> 5883#include <netdb.h> 5884#ifdef HAVE_GETOPT_H 5885#include <getopt.h> 5886#endif 5887 5888int test() { 5889 int a; 5890 char **opts = NULL; 5891 struct timeval tv; 5892 char *t; 5893 time_t time = 0; 5894 char *buf = NULL; 5895 const char* str = NULL; 5896 struct msghdr msg; 5897 msg.msg_control = 0; 5898 t = ctime_r(&time, buf); 5899 tv.tv_usec = 10; 5900 srandom(32); 5901 a = getopt(2, opts, "a"); 5902 a = isascii(32); 5903 str = gai_strerror(0); 5904 if(str && t && tv.tv_usec && msg.msg_control) 5905 a = 0; 5906 return a; 5907} 5908' > conftest.c 5909echo 'void f(){}' >>conftest.c 5910if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5911eval "cv_prog_cc_flag_needed_$cache=no" 5912else 5913 5914if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5915eval "cv_prog_cc_flag_needed_$cache=yes" 5916else 5917eval "cv_prog_cc_flag_needed_$cache=fail" 5918#echo 'Test with flag fails too!' 5919#cat conftest.c 5920#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5921#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5922#exit 1 5923fi 5924 5925fi 5926rm -f conftest conftest.c conftest.o 5927 5928fi 5929 5930if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5932printf "%s\n" "yes" >&6; } 5933: 5934CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5935else 5936if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938printf "%s\n" "no" >&6; } 5939#echo 'Test with flag is no!' 5940#cat conftest.c 5941#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5942#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5943#exit 1 5944: 5945 5946else 5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5948printf "%s\n" "failed" >&6; } 5949: 5950 5951fi 5952fi 5953 5954 5955 5956 5957 5958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5959printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5960cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh` 5961if eval test \${cv_prog_cc_flag_needed_$cache+y} 5962then : 5963 printf %s "(cached) " >&6 5964else $as_nop 5965 5966echo ' 5967#include <stdbool.h> 5968#include <ctype.h> 5969int test() { 5970 int a = 0; 5971 return a; 5972} 5973' > conftest.c 5974echo 'void f(){}' >>conftest.c 5975if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5976eval "cv_prog_cc_flag_needed_$cache=no" 5977else 5978 5979if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5980eval "cv_prog_cc_flag_needed_$cache=yes" 5981else 5982eval "cv_prog_cc_flag_needed_$cache=fail" 5983#echo 'Test with flag fails too!' 5984#cat conftest.c 5985#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5986#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5987#exit 1 5988fi 5989 5990fi 5991rm -f conftest conftest.c conftest.o 5992 5993fi 5994 5995if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5997printf "%s\n" "yes" >&6; } 5998: 5999CFLAGS="$CFLAGS $C99FLAG" 6000else 6001if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6003printf "%s\n" "no" >&6; } 6004#echo 'Test with flag is no!' 6005#cat conftest.c 6006#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 6007#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 6008#exit 1 6009: 6010 6011else 6012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6013printf "%s\n" "failed" >&6; } 6014: 6015 6016fi 6017fi 6018 6019 6020 6021 6022 6023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 6024printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 6025cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 6026if eval test \${cv_prog_cc_flag_needed_$cache+y} 6027then : 6028 printf %s "(cached) " >&6 6029else $as_nop 6030 6031echo ' 6032#include <ctype.h> 6033 6034int test() { 6035 int a; 6036 a = isascii(32); 6037 return a; 6038} 6039' > conftest.c 6040echo 'void f(){}' >>conftest.c 6041if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6042eval "cv_prog_cc_flag_needed_$cache=no" 6043else 6044 6045if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6046eval "cv_prog_cc_flag_needed_$cache=yes" 6047else 6048eval "cv_prog_cc_flag_needed_$cache=fail" 6049#echo 'Test with flag fails too!' 6050#cat conftest.c 6051#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 6052#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 6053#exit 1 6054fi 6055 6056fi 6057rm -f conftest conftest.c conftest.o 6058 6059fi 6060 6061if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6063printf "%s\n" "yes" >&6; } 6064: 6065CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 6066else 6067if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6069printf "%s\n" "no" >&6; } 6070#echo 'Test with flag is no!' 6071#cat conftest.c 6072#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 6073#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 6074#exit 1 6075: 6076 6077else 6078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6079printf "%s\n" "failed" >&6; } 6080: 6081 6082fi 6083fi 6084 6085 6086 6087 6088 6089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 6090printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 6091cache=_D_GNU_SOURCE 6092if eval test \${cv_prog_cc_flag_needed_$cache+y} 6093then : 6094 printf %s "(cached) " >&6 6095else $as_nop 6096 6097echo ' 6098#include <netinet/in.h> 6099 6100int test() { 6101 struct in6_pktinfo inf; 6102 int a = (int)sizeof(inf); 6103 return a; 6104} 6105' > conftest.c 6106echo 'void f(){}' >>conftest.c 6107if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6108eval "cv_prog_cc_flag_needed_$cache=no" 6109else 6110 6111if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6112eval "cv_prog_cc_flag_needed_$cache=yes" 6113else 6114eval "cv_prog_cc_flag_needed_$cache=fail" 6115#echo 'Test with flag fails too!' 6116#cat conftest.c 6117#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 6118#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 6119#exit 1 6120fi 6121 6122fi 6123rm -f conftest conftest.c conftest.o 6124 6125fi 6126 6127if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6129printf "%s\n" "yes" >&6; } 6130: 6131CFLAGS="$CFLAGS -D_GNU_SOURCE" 6132else 6133if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6135printf "%s\n" "no" >&6; } 6136#echo 'Test with flag is no!' 6137#cat conftest.c 6138#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 6139#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 6140#exit 1 6141: 6142 6143else 6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6145printf "%s\n" "failed" >&6; } 6146: 6147 6148fi 6149fi 6150 6151 6152# check again for GNU_SOURCE for setresgid. May fail if setresgid 6153# is not available at all. -D_FRSRESGID is to make this check unique. 6154# otherwise we would get the previous cached result. 6155 6156 6157 6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 6159printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 6160cache=_D_GNU_SOURCE__D_FRSRESGID 6161if eval test \${cv_prog_cc_flag_needed_$cache+y} 6162then : 6163 printf %s "(cached) " >&6 6164else $as_nop 6165 6166echo ' 6167#include <unistd.h> 6168 6169int test() { 6170 int a = setresgid(0,0,0); 6171 a = setresuid(0,0,0); 6172 return a; 6173} 6174' > conftest.c 6175echo 'void f(){}' >>conftest.c 6176if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6177eval "cv_prog_cc_flag_needed_$cache=no" 6178else 6179 6180if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 6181eval "cv_prog_cc_flag_needed_$cache=yes" 6182else 6183eval "cv_prog_cc_flag_needed_$cache=fail" 6184#echo 'Test with flag fails too!' 6185#cat conftest.c 6186#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 6187#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 6188#exit 1 6189fi 6190 6191fi 6192rm -f conftest conftest.c conftest.o 6193 6194fi 6195 6196if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6198printf "%s\n" "yes" >&6; } 6199: 6200CFLAGS="$CFLAGS -D_GNU_SOURCE" 6201else 6202if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6204printf "%s\n" "no" >&6; } 6205#echo 'Test with flag is no!' 6206#cat conftest.c 6207#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 6208#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 6209#exit 1 6210: 6211 6212else 6213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6214printf "%s\n" "failed" >&6; } 6215: 6216 6217fi 6218fi 6219 6220 6221 6222 6223 6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 6225printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 6226cache=_D_POSIX_C_SOURCE_200112 6227if eval test \${cv_prog_cc_flag_needed_$cache+y} 6228then : 6229 printf %s "(cached) " >&6 6230else $as_nop 6231 6232echo ' 6233#include "confdefs.h" 6234#ifdef HAVE_TIME_H 6235#include <time.h> 6236#endif 6237#include <netdb.h> 6238 6239int test() { 6240 int a = 0; 6241 char *t; 6242 time_t time = 0; 6243 char *buf = NULL; 6244 const char* str = NULL; 6245 t = ctime_r(&time, buf); 6246 str = gai_strerror(0); 6247 if(t && str) 6248 a = 0; 6249 return a; 6250} 6251' > conftest.c 6252echo 'void f(){}' >>conftest.c 6253if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6254eval "cv_prog_cc_flag_needed_$cache=no" 6255else 6256 6257if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 6258eval "cv_prog_cc_flag_needed_$cache=yes" 6259else 6260eval "cv_prog_cc_flag_needed_$cache=fail" 6261#echo 'Test with flag fails too!' 6262#cat conftest.c 6263#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 6264#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 6265#exit 1 6266fi 6267 6268fi 6269rm -f conftest conftest.c conftest.o 6270 6271fi 6272 6273if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6275printf "%s\n" "yes" >&6; } 6276: 6277CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 6278else 6279if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6281printf "%s\n" "no" >&6; } 6282#echo 'Test with flag is no!' 6283#cat conftest.c 6284#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 6285#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 6286#exit 1 6287: 6288 6289else 6290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6291printf "%s\n" "failed" >&6; } 6292: 6293 6294fi 6295fi 6296 6297 6298 6299 6300 6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 6302printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 6303cache=_D__EXTENSIONS__ 6304if eval test \${cv_prog_cc_flag_needed_$cache+y} 6305then : 6306 printf %s "(cached) " >&6 6307else $as_nop 6308 6309echo ' 6310#include "confdefs.h" 6311#include <stdlib.h> 6312#include <ctype.h> 6313#include <sys/time.h> 6314#ifdef HAVE_TIME_H 6315#include <time.h> 6316#endif 6317#include <unistd.h> 6318#ifdef HAVE_GETOPT_H 6319#include <getopt.h> 6320#endif 6321 6322int test() { 6323 int a; 6324 char **opts = NULL; 6325 struct timeval tv; 6326 tv.tv_usec = 10; 6327 srandom(32); 6328 a = getopt(2, opts, "a"); 6329 a = isascii(32); 6330 if(tv.tv_usec) 6331 a = 0; 6332 return a; 6333} 6334' > conftest.c 6335echo 'void f(){}' >>conftest.c 6336if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6337eval "cv_prog_cc_flag_needed_$cache=no" 6338else 6339 6340if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 6341eval "cv_prog_cc_flag_needed_$cache=yes" 6342else 6343eval "cv_prog_cc_flag_needed_$cache=fail" 6344#echo 'Test with flag fails too!' 6345#cat conftest.c 6346#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 6347#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 6348#exit 1 6349fi 6350 6351fi 6352rm -f conftest conftest.c conftest.o 6353 6354fi 6355 6356if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6358printf "%s\n" "yes" >&6; } 6359: 6360CFLAGS="$CFLAGS -D__EXTENSIONS__" 6361else 6362if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6364printf "%s\n" "no" >&6; } 6365#echo 'Test with flag is no!' 6366#cat conftest.c 6367#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 6368#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 6369#exit 1 6370: 6371 6372else 6373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6374printf "%s\n" "failed" >&6; } 6375: 6376 6377fi 6378fi 6379 6380 6381 6382 6383# debug mode flags warnings 6384# Check whether --enable-checking was given. 6385if test ${enable_checking+y} 6386then : 6387 enableval=$enable_checking; 6388fi 6389 6390# Check whether --enable-debug was given. 6391if test ${enable_debug+y} 6392then : 6393 enableval=$enable_debug; 6394fi 6395 6396if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 6397else debug_enabled="$enable_checking"; fi 6398 6399case "$debug_enabled" in 6400 yes) 6401 6402 6403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 6404printf %s "checking whether $CC supports -W... " >&6; } 6405cache=`echo W | sed 'y%.=/+-%___p_%'` 6406if eval test \${cv_prog_cc_flag_$cache+y} 6407then : 6408 printf %s "(cached) " >&6 6409else $as_nop 6410 6411echo 'void f(void){}' >conftest.c 6412if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 6413eval "cv_prog_cc_flag_$cache=yes" 6414else 6415eval "cv_prog_cc_flag_$cache=no" 6416fi 6417rm -f conftest conftest.o conftest.c 6418 6419fi 6420 6421if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6423printf "%s\n" "yes" >&6; } 6424: 6425CFLAGS="$CFLAGS -W" 6426else 6427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6428printf "%s\n" "no" >&6; } 6429: 6430 6431fi 6432 6433 6434 6435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 6436printf %s "checking whether $CC supports -Wall... " >&6; } 6437cache=`echo Wall | sed 'y%.=/+-%___p_%'` 6438if eval test \${cv_prog_cc_flag_$cache+y} 6439then : 6440 printf %s "(cached) " >&6 6441else $as_nop 6442 6443echo 'void f(void){}' >conftest.c 6444if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 6445eval "cv_prog_cc_flag_$cache=yes" 6446else 6447eval "cv_prog_cc_flag_$cache=no" 6448fi 6449rm -f conftest conftest.o conftest.c 6450 6451fi 6452 6453if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6455printf "%s\n" "yes" >&6; } 6456: 6457CFLAGS="$CFLAGS -Wall" 6458else 6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6460printf "%s\n" "no" >&6; } 6461: 6462 6463fi 6464 6465 6466 6467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 6468printf %s "checking whether $CC supports -Wextra... " >&6; } 6469cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 6470if eval test \${cv_prog_cc_flag_$cache+y} 6471then : 6472 printf %s "(cached) " >&6 6473else $as_nop 6474 6475echo 'void f(void){}' >conftest.c 6476if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 6477eval "cv_prog_cc_flag_$cache=yes" 6478else 6479eval "cv_prog_cc_flag_$cache=no" 6480fi 6481rm -f conftest conftest.o conftest.c 6482 6483fi 6484 6485if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6487printf "%s\n" "yes" >&6; } 6488: 6489CFLAGS="$CFLAGS -Wextra" 6490else 6491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492printf "%s\n" "no" >&6; } 6493: 6494 6495fi 6496 6497 6498 6499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 6500printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 6501cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 6502if eval test \${cv_prog_cc_flag_$cache+y} 6503then : 6504 printf %s "(cached) " >&6 6505else $as_nop 6506 6507echo 'void f(void){}' >conftest.c 6508if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 6509eval "cv_prog_cc_flag_$cache=yes" 6510else 6511eval "cv_prog_cc_flag_$cache=no" 6512fi 6513rm -f conftest conftest.o conftest.c 6514 6515fi 6516 6517if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6519printf "%s\n" "yes" >&6; } 6520: 6521CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6522else 6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6524printf "%s\n" "no" >&6; } 6525: 6526 6527fi 6528 6529 6530printf "%s\n" "#define UNBOUND_DEBUG /**/" >>confdefs.h 6531 6532 ;; 6533 no|*) 6534 # nothing to do. 6535 ;; 6536esac 6537if test "$default_cflags" = "yes"; then 6538 # only when CFLAGS was "" at the start, if the users wants to 6539 # override we shouldn't add default cflags, because they wouldn't 6540 # be able to turn off these options and set the CFLAGS wanted. 6541 6542 # Check whether --enable-flto was given. 6543if test ${enable_flto+y} 6544then : 6545 enableval=$enable_flto; 6546fi 6547 6548 if test "x$enable_flto" != "xno" 6549then : 6550 6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6552printf %s "checking if $CC supports -flto... " >&6; } 6553 BAKCFLAGS="$CFLAGS" 6554 CFLAGS="$CFLAGS -flto" 6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6556/* end confdefs.h. */ 6557 6558int 6559main (void) 6560{ 6561 6562 ; 6563 return 0; 6564} 6565_ACEOF 6566if ac_fn_c_try_link "$LINENO" 6567then : 6568 6569 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6570 CFLAGS="$BAKCFLAGS" 6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572printf "%s\n" "no" >&6; } 6573 else 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6575printf "%s\n" "yes" >&6; } 6576 fi 6577 rm -f conftest conftest.c conftest.o 6578 6579else $as_nop 6580 CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581printf "%s\n" "no" >&6; } 6582fi 6583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6584 conftest$ac_exeext conftest.$ac_ext 6585 6586fi 6587 6588 6589 # Check whether --enable-pie was given. 6590if test ${enable_pie+y} 6591then : 6592 enableval=$enable_pie; 6593fi 6594 6595 if test "x$enable_pie" = "xyes" 6596then : 6597 6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6599printf %s "checking if $CC supports PIE... " >&6; } 6600 BAKLDFLAGS="$LDFLAGS" 6601 BAKCFLAGS="$CFLAGS" 6602 LDFLAGS="$LDFLAGS -pie" 6603 CFLAGS="$CFLAGS -fPIE" 6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6605/* end confdefs.h. */ 6606 6607int 6608main (void) 6609{ 6610 6611 ; 6612 return 0; 6613} 6614_ACEOF 6615if ac_fn_c_try_link "$LINENO" 6616then : 6617 6618 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6619 LDFLAGS="$BAKLDFLAGS" 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621printf "%s\n" "no" >&6; } 6622 else 6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6624printf "%s\n" "yes" >&6; } 6625 fi 6626 rm -f conftest conftest.c conftest.o 6627 6628else $as_nop 6629 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630printf "%s\n" "no" >&6; } 6631fi 6632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6633 conftest$ac_exeext conftest.$ac_ext 6634 6635fi 6636 6637 6638 # Check whether --enable-relro_now was given. 6639if test ${enable_relro_now+y} 6640then : 6641 enableval=$enable_relro_now; 6642fi 6643 6644 if test "x$enable_relro_now" = "xyes" 6645then : 6646 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6648printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6649 BAKLDFLAGS="$LDFLAGS" 6650 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653 6654int 6655main (void) 6656{ 6657 6658 ; 6659 return 0; 6660} 6661_ACEOF 6662if ac_fn_c_try_link "$LINENO" 6663then : 6664 6665 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6666 LDFLAGS="$BAKLDFLAGS" 6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6668printf "%s\n" "no" >&6; } 6669 else 6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6671printf "%s\n" "yes" >&6; } 6672 fi 6673 rm -f conftest conftest.c conftest.o 6674 6675else $as_nop 6676 LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677printf "%s\n" "no" >&6; } 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6680 conftest$ac_exeext conftest.$ac_ext 6681 6682fi 6683 6684fi 6685 6686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6687printf %s "checking for inline... " >&6; } 6688if test ${ac_cv_c_inline+y} 6689then : 6690 printf %s "(cached) " >&6 6691else $as_nop 6692 ac_cv_c_inline=no 6693for ac_kw in inline __inline__ __inline; do 6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6695/* end confdefs.h. */ 6696#ifndef __cplusplus 6697typedef int foo_t; 6698static $ac_kw foo_t static_foo (void) {return 0; } 6699$ac_kw foo_t foo (void) {return 0; } 6700#endif 6701 6702_ACEOF 6703if ac_fn_c_try_compile "$LINENO" 6704then : 6705 ac_cv_c_inline=$ac_kw 6706fi 6707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6708 test "$ac_cv_c_inline" != no && break 6709done 6710 6711fi 6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6713printf "%s\n" "$ac_cv_c_inline" >&6; } 6714 6715case $ac_cv_c_inline in 6716 inline | yes) ;; 6717 *) 6718 case $ac_cv_c_inline in 6719 no) ac_val=;; 6720 *) ac_val=$ac_cv_c_inline;; 6721 esac 6722 cat >>confdefs.h <<_ACEOF 6723#ifndef __cplusplus 6724#define inline $ac_val 6725#endif 6726_ACEOF 6727 ;; 6728esac 6729 6730 6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6732printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6733if test ${ac_cv_c_format_attribute+y} 6734then : 6735 printf %s "(cached) " >&6 6736else $as_nop 6737 ac_cv_c_format_attribute=no 6738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740#include <stdio.h> 6741void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6742void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6743 6744int 6745main (void) 6746{ 6747 6748 f ("%s", "str"); 6749 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754if ac_fn_c_try_compile "$LINENO" 6755then : 6756 ac_cv_c_format_attribute="yes" 6757else $as_nop 6758 ac_cv_c_format_attribute="no" 6759fi 6760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6761 6762fi 6763 6764 6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6766printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 6767if test $ac_cv_c_format_attribute = yes; then 6768 6769printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6770 6771fi 6772 6773 6774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6775printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6776if test ${ac_cv_c_unused_attribute+y} 6777then : 6778 printf %s "(cached) " >&6 6779else $as_nop 6780 ac_cv_c_unused_attribute=no 6781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782/* end confdefs.h. */ 6783#include <stdio.h> 6784void f (char *u __attribute__((unused))); 6785 6786int 6787main (void) 6788{ 6789 6790 f ("x"); 6791 6792 ; 6793 return 0; 6794} 6795_ACEOF 6796if ac_fn_c_try_compile "$LINENO" 6797then : 6798 ac_cv_c_unused_attribute="yes" 6799else $as_nop 6800 ac_cv_c_unused_attribute="no" 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6803 6804fi 6805 6806 6807 6808 6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6810printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 6811if test $ac_cv_c_unused_attribute = yes; then 6812 6813printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6814 6815fi 6816 6817 6818 6819 6820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6821printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6822if test ${ac_cv_c_weak_attribute+y} 6823then : 6824 printf %s "(cached) " >&6 6825else $as_nop 6826 ac_cv_c_weak_attribute=no 6827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829 #include <stdio.h> 6830__attribute__((weak)) void f(int x) { printf("%d", x); } 6831 6832int 6833main (void) 6834{ 6835 6836 f(1); 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_compile "$LINENO" 6843then : 6844 ac_cv_c_weak_attribute="yes" 6845else $as_nop 6846 ac_cv_c_weak_attribute="no" 6847fi 6848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6849 6850fi 6851 6852 6853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6854printf "%s\n" "$ac_cv_c_weak_attribute" >&6; } 6855if test $ac_cv_c_weak_attribute = yes; then 6856 6857printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6858 6859 6860printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6861 6862fi 6863 6864 6865 6866 6867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6868printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6869if test ${ac_cv_c_noreturn_attribute+y} 6870then : 6871 printf %s "(cached) " >&6 6872else $as_nop 6873 ac_cv_c_noreturn_attribute=no 6874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876 #include <stdio.h> 6877__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6878 6879int 6880main (void) 6881{ 6882 6883 f(1); 6884 6885 ; 6886 return 0; 6887} 6888_ACEOF 6889if ac_fn_c_try_compile "$LINENO" 6890then : 6891 ac_cv_c_noreturn_attribute="yes" 6892else $as_nop 6893 ac_cv_c_noreturn_attribute="no" 6894fi 6895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6896 6897fi 6898 6899 6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6901printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; } 6902if test $ac_cv_c_noreturn_attribute = yes; then 6903 6904printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6905 6906 6907printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6908 6909fi 6910 6911 6912if test "$srcdir" != "."; then 6913 CPPFLAGS="$CPPFLAGS -I$srcdir" 6914fi 6915 6916 6917 6918 6919 6920for ac_prog in flex lex 6921do 6922 # Extract the first word of "$ac_prog", so it can be a program name with args. 6923set dummy $ac_prog; ac_word=$2 6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6925printf %s "checking for $ac_word... " >&6; } 6926if test ${ac_cv_prog_LEX+y} 6927then : 6928 printf %s "(cached) " >&6 6929else $as_nop 6930 if test -n "$LEX"; then 6931 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6932else 6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934for as_dir in $PATH 6935do 6936 IFS=$as_save_IFS 6937 case $as_dir in #((( 6938 '') as_dir=./ ;; 6939 */) ;; 6940 *) as_dir=$as_dir/ ;; 6941 esac 6942 for ac_exec_ext in '' $ac_executable_extensions; do 6943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6944 ac_cv_prog_LEX="$ac_prog" 6945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6946 break 2 6947 fi 6948done 6949 done 6950IFS=$as_save_IFS 6951 6952fi 6953fi 6954LEX=$ac_cv_prog_LEX 6955if test -n "$LEX"; then 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6957printf "%s\n" "$LEX" >&6; } 6958else 6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6960printf "%s\n" "no" >&6; } 6961fi 6962 6963 6964 test -n "$LEX" && break 6965done 6966test -n "$LEX" || LEX=":" 6967 6968 if test "x$LEX" != "x:"; then 6969 cat >conftest.l <<_ACEOF 6970%{ 6971#ifdef __cplusplus 6972extern "C" 6973#endif 6974int yywrap(void); 6975%} 6976%% 6977a { ECHO; } 6978b { REJECT; } 6979c { yymore (); } 6980d { yyless (1); } 6981e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6982#ifdef __cplusplus 6983 yyless ((yyinput () != 0)); 6984#else 6985 yyless ((input () != 0)); 6986#endif 6987 } 6988f { unput (yytext[0]); } 6989. { BEGIN INITIAL; } 6990%% 6991#ifdef YYTEXT_POINTER 6992extern char *yytext; 6993#endif 6994int 6995yywrap (void) 6996{ 6997 return 1; 6998} 6999int 7000main (void) 7001{ 7002 return ! yylex (); 7003} 7004_ACEOF 7005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 7006printf %s "checking for lex output file root... " >&6; } 7007if test ${ac_cv_prog_lex_root+y} 7008then : 7009 printf %s "(cached) " >&6 7010else $as_nop 7011 7012ac_cv_prog_lex_root=unknown 7013{ { ac_try="$LEX conftest.l" 7014case "(($ac_try" in 7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7016 *) ac_try_echo=$ac_try;; 7017esac 7018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7019printf "%s\n" "$ac_try_echo"; } >&5 7020 (eval "$LEX conftest.l") 2>&5 7021 ac_status=$? 7022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7023 test $ac_status = 0; } && 7024if test -f lex.yy.c; then 7025 ac_cv_prog_lex_root=lex.yy 7026elif test -f lexyy.c; then 7027 ac_cv_prog_lex_root=lexyy 7028fi 7029fi 7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 7031printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 7032if test "$ac_cv_prog_lex_root" = unknown 7033then : 7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 7035printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 7036 LEX=: LEXLIB= 7037fi 7038LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 7039 7040if test ${LEXLIB+y} 7041then : 7042 7043else $as_nop 7044 7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 7046printf %s "checking for lex library... " >&6; } 7047if test ${ac_cv_lib_lex+y} 7048then : 7049 printf %s "(cached) " >&6 7050else $as_nop 7051 7052 ac_save_LIBS="$LIBS" 7053 ac_found=false 7054 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 7055 case $ac_cv_lib_lex in #( 7056 'none needed') : 7057 ;; #( 7058 'not found') : 7059 break ;; #( 7060 *) : 7061 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 7062 *) : 7063 ;; 7064esac 7065 7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068`cat $LEX_OUTPUT_ROOT.c` 7069_ACEOF 7070if ac_fn_c_try_link "$LINENO" 7071then : 7072 ac_found=: 7073fi 7074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7075 conftest$ac_exeext conftest.$ac_ext 7076 if $ac_found; then 7077 break 7078 fi 7079 done 7080 LIBS="$ac_save_LIBS" 7081 7082fi 7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 7084printf "%s\n" "$ac_cv_lib_lex" >&6; } 7085 if test "$ac_cv_lib_lex" = 'not found' 7086then : 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 7088printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 7089 LEX=: LEXLIB= 7090elif test "$ac_cv_lib_lex" = 'none needed' 7091then : 7092 LEXLIB='' 7093else $as_nop 7094 LEXLIB=$ac_cv_lib_lex 7095fi 7096 7097fi 7098 7099 7100if test "$LEX" != : 7101then : 7102 7103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 7104printf %s "checking whether yytext is a pointer... " >&6; } 7105if test ${ac_cv_prog_lex_yytext_pointer+y} 7106then : 7107 printf %s "(cached) " >&6 7108else $as_nop 7109 # POSIX says lex can declare yytext either as a pointer or an array; the 7110# default is implementation-dependent. Figure out which it is, since 7111# not all implementations provide the %pointer and %array declarations. 7112ac_cv_prog_lex_yytext_pointer=no 7113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114/* end confdefs.h. */ 7115 7116 #define YYTEXT_POINTER 1 7117`cat $LEX_OUTPUT_ROOT.c` 7118_ACEOF 7119if ac_fn_c_try_compile "$LINENO" 7120then : 7121 ac_cv_prog_lex_yytext_pointer=yes 7122fi 7123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7124 7125fi 7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 7127printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 7128if test $ac_cv_prog_lex_yytext_pointer = yes; then 7129 7130printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 7131 7132fi 7133 7134fi 7135rm -f conftest.l $LEX_OUTPUT_ROOT.c 7136 7137fi 7138if test "$LEX" != "" -a "$LEX" != ":"; then 7139 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 7141printf %s "checking for yylex_destroy... " >&6; } 7142 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 7143 7144printf "%s\n" "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 7145 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7147printf "%s\n" "yes" >&6; } 7148 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149printf "%s\n" "no" >&6; }; 7150 LEX=":" 7151 fi 7152 7153fi 7154if test "$LEX" != "" -a "$LEX" != ":"; then 7155 7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 7157printf %s "checking for lex %option... " >&6; } 7158 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 7159%option nounput 7160%% 7161EOF 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7163printf "%s\n" "yes" >&6; } 7164 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7165printf "%s\n" "no" >&6; }; 7166 LEX=":" 7167 fi 7168 7169fi 7170for ac_prog in 'bison -y' byacc 7171do 7172 # Extract the first word of "$ac_prog", so it can be a program name with args. 7173set dummy $ac_prog; ac_word=$2 7174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175printf %s "checking for $ac_word... " >&6; } 7176if test ${ac_cv_prog_YACC+y} 7177then : 7178 printf %s "(cached) " >&6 7179else $as_nop 7180 if test -n "$YACC"; then 7181 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7182else 7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184for as_dir in $PATH 7185do 7186 IFS=$as_save_IFS 7187 case $as_dir in #((( 7188 '') as_dir=./ ;; 7189 */) ;; 7190 *) as_dir=$as_dir/ ;; 7191 esac 7192 for ac_exec_ext in '' $ac_executable_extensions; do 7193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7194 ac_cv_prog_YACC="$ac_prog" 7195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7196 break 2 7197 fi 7198done 7199 done 7200IFS=$as_save_IFS 7201 7202fi 7203fi 7204YACC=$ac_cv_prog_YACC 7205if test -n "$YACC"; then 7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7207printf "%s\n" "$YACC" >&6; } 7208else 7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7210printf "%s\n" "no" >&6; } 7211fi 7212 7213 7214 test -n "$YACC" && break 7215done 7216test -n "$YACC" || YACC="yacc" 7217 7218# Extract the first word of "doxygen", so it can be a program name with args. 7219set dummy doxygen; ac_word=$2 7220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7221printf %s "checking for $ac_word... " >&6; } 7222if test ${ac_cv_prog_doxygen+y} 7223then : 7224 printf %s "(cached) " >&6 7225else $as_nop 7226 if test -n "$doxygen"; then 7227 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 7228else 7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230for as_dir in $PATH 7231do 7232 IFS=$as_save_IFS 7233 case $as_dir in #((( 7234 '') as_dir=./ ;; 7235 */) ;; 7236 *) as_dir=$as_dir/ ;; 7237 esac 7238 for ac_exec_ext in '' $ac_executable_extensions; do 7239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7240 ac_cv_prog_doxygen="doxygen" 7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7242 break 2 7243 fi 7244done 7245 done 7246IFS=$as_save_IFS 7247 7248fi 7249fi 7250doxygen=$ac_cv_prog_doxygen 7251if test -n "$doxygen"; then 7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 7253printf "%s\n" "$doxygen" >&6; } 7254else 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7256printf "%s\n" "no" >&6; } 7257fi 7258 7259 7260if test -n "$ac_tool_prefix"; then 7261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7262set dummy ${ac_tool_prefix}strip; ac_word=$2 7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7264printf %s "checking for $ac_word... " >&6; } 7265if test ${ac_cv_prog_STRIP+y} 7266then : 7267 printf %s "(cached) " >&6 7268else $as_nop 7269 if test -n "$STRIP"; then 7270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7271else 7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 case $as_dir in #((( 7277 '') as_dir=./ ;; 7278 */) ;; 7279 *) as_dir=$as_dir/ ;; 7280 esac 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7283 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293STRIP=$ac_cv_prog_STRIP 7294if test -n "$STRIP"; then 7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7296printf "%s\n" "$STRIP" >&6; } 7297else 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7299printf "%s\n" "no" >&6; } 7300fi 7301 7302 7303fi 7304if test -z "$ac_cv_prog_STRIP"; then 7305 ac_ct_STRIP=$STRIP 7306 # Extract the first word of "strip", so it can be a program name with args. 7307set dummy strip; ac_word=$2 7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7309printf %s "checking for $ac_word... " >&6; } 7310if test ${ac_cv_prog_ac_ct_STRIP+y} 7311then : 7312 printf %s "(cached) " >&6 7313else $as_nop 7314 if test -n "$ac_ct_STRIP"; then 7315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7316else 7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7318for as_dir in $PATH 7319do 7320 IFS=$as_save_IFS 7321 case $as_dir in #((( 7322 '') as_dir=./ ;; 7323 */) ;; 7324 *) as_dir=$as_dir/ ;; 7325 esac 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7328 ac_cv_prog_ac_ct_STRIP="strip" 7329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332done 7333 done 7334IFS=$as_save_IFS 7335 7336fi 7337fi 7338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7339if test -n "$ac_ct_STRIP"; then 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7341printf "%s\n" "$ac_ct_STRIP" >&6; } 7342else 7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344printf "%s\n" "no" >&6; } 7345fi 7346 7347 if test "x$ac_ct_STRIP" = x; then 7348 STRIP="" 7349 else 7350 case $cross_compiling:$ac_tool_warned in 7351yes:) 7352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7353printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7354ac_tool_warned=yes ;; 7355esac 7356 STRIP=$ac_ct_STRIP 7357 fi 7358else 7359 STRIP="$ac_cv_prog_STRIP" 7360fi 7361 7362 7363 7364 7365 # Make sure we can run config.sub. 7366$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 7367 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 7368 7369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7370printf %s "checking build system type... " >&6; } 7371if test ${ac_cv_build+y} 7372then : 7373 printf %s "(cached) " >&6 7374else $as_nop 7375 ac_build_alias=$build_alias 7376test "x$ac_build_alias" = x && 7377 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 7378test "x$ac_build_alias" = x && 7379 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7380ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 7381 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 7382 7383fi 7384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7385printf "%s\n" "$ac_cv_build" >&6; } 7386case $ac_cv_build in 7387*-*-*) ;; 7388*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7389esac 7390build=$ac_cv_build 7391ac_save_IFS=$IFS; IFS='-' 7392set x $ac_cv_build 7393shift 7394build_cpu=$1 7395build_vendor=$2 7396shift; shift 7397# Remember, the first character of IFS is used to create $*, 7398# except with old shells: 7399build_os=$* 7400IFS=$ac_save_IFS 7401case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7402 7403 7404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7405printf %s "checking host system type... " >&6; } 7406if test ${ac_cv_host+y} 7407then : 7408 printf %s "(cached) " >&6 7409else $as_nop 7410 if test "x$host_alias" = x; then 7411 ac_cv_host=$ac_cv_build 7412else 7413 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7414 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7415fi 7416 7417fi 7418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7419printf "%s\n" "$ac_cv_host" >&6; } 7420case $ac_cv_host in 7421*-*-*) ;; 7422*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7423esac 7424host=$ac_cv_host 7425ac_save_IFS=$IFS; IFS='-' 7426set x $ac_cv_host 7427shift 7428host_cpu=$1 7429host_vendor=$2 7430shift; shift 7431# Remember, the first character of IFS is used to create $*, 7432# except with old shells: 7433host_os=$* 7434IFS=$ac_save_IFS 7435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7436 7437 7438 7439# skip these tests, we do not need them. 7440 7441 7442 7443 7444 7445 7446 7447 7448# always use ./libtool unless override from commandline (libtool=mylibtool) 7449if test -z "$libtool"; then 7450 libtool="./libtool" 7451fi 7452 7453# avoid libtool max commandline length test on systems that fork slowly. 7454 7455if echo "$host_os" | grep "sunos4" >/dev/null; then 7456 lt_cv_sys_max_cmd_len=32750; 7457fi 7458if test -n "$ac_tool_prefix"; then 7459 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7460set dummy ${ac_tool_prefix}ar; ac_word=$2 7461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7462printf %s "checking for $ac_word... " >&6; } 7463if test ${ac_cv_path_AR+y} 7464then : 7465 printf %s "(cached) " >&6 7466else $as_nop 7467 case $AR in 7468 [\\/]* | ?:[\\/]*) 7469 ac_cv_path_AR="$AR" # Let the user override the test with a path. 7470 ;; 7471 *) 7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473for as_dir in $PATH 7474do 7475 IFS=$as_save_IFS 7476 case $as_dir in #((( 7477 '') as_dir=./ ;; 7478 */) ;; 7479 *) as_dir=$as_dir/ ;; 7480 esac 7481 for ac_exec_ext in '' $ac_executable_extensions; do 7482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7483 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 7484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7485 break 2 7486 fi 7487done 7488 done 7489IFS=$as_save_IFS 7490 7491 ;; 7492esac 7493fi 7494AR=$ac_cv_path_AR 7495if test -n "$AR"; then 7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7497printf "%s\n" "$AR" >&6; } 7498else 7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7500printf "%s\n" "no" >&6; } 7501fi 7502 7503 7504fi 7505if test -z "$ac_cv_path_AR"; then 7506 ac_pt_AR=$AR 7507 # Extract the first word of "ar", so it can be a program name with args. 7508set dummy ar; ac_word=$2 7509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510printf %s "checking for $ac_word... " >&6; } 7511if test ${ac_cv_path_ac_pt_AR+y} 7512then : 7513 printf %s "(cached) " >&6 7514else $as_nop 7515 case $ac_pt_AR in 7516 [\\/]* | ?:[\\/]*) 7517 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 7518 ;; 7519 *) 7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7521for as_dir in $PATH 7522do 7523 IFS=$as_save_IFS 7524 case $as_dir in #((( 7525 '') as_dir=./ ;; 7526 */) ;; 7527 *) as_dir=$as_dir/ ;; 7528 esac 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7531 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 7532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536 done 7537IFS=$as_save_IFS 7538 7539 ;; 7540esac 7541fi 7542ac_pt_AR=$ac_cv_path_ac_pt_AR 7543if test -n "$ac_pt_AR"; then 7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 7545printf "%s\n" "$ac_pt_AR" >&6; } 7546else 7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7548printf "%s\n" "no" >&6; } 7549fi 7550 7551 if test "x$ac_pt_AR" = x; then 7552 AR="false" 7553 else 7554 case $cross_compiling:$ac_tool_warned in 7555yes:) 7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7557printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7558ac_tool_warned=yes ;; 7559esac 7560 AR=$ac_pt_AR 7561 fi 7562else 7563 AR="$ac_cv_path_AR" 7564fi 7565 7566if test $AR = false; then 7567 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 7568fi 7569 7570 7571case `pwd` in 7572 *\ * | *\ *) 7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7574printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7575esac 7576 7577 7578 7579macro_version='2.4.6' 7580macro_revision='2.4.6' 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595ltmain=$ac_aux_dir/ltmain.sh 7596 7597# Backslashify metacharacters that are still active within 7598# double-quoted strings. 7599sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7600 7601# Same as above, but do not quote variable references. 7602double_quote_subst='s/\(["`\\]\)/\\\1/g' 7603 7604# Sed substitution to delay expansion of an escaped shell variable in a 7605# double_quote_subst'ed string. 7606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7607 7608# Sed substitution to delay expansion of an escaped single quote. 7609delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7610 7611# Sed substitution to avoid accidental globbing in evaled expressions 7612no_glob_subst='s/\*/\\\*/g' 7613 7614ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7615ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7616ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7617 7618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7619printf %s "checking how to print strings... " >&6; } 7620# Test print first, because it will be a builtin if present. 7621if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7622 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7623 ECHO='print -r --' 7624elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7625 ECHO='printf %s\n' 7626else 7627 # Use this function as a fallback that always works. 7628 func_fallback_echo () 7629 { 7630 eval 'cat <<_LTECHO_EOF 7631$1 7632_LTECHO_EOF' 7633 } 7634 ECHO='func_fallback_echo' 7635fi 7636 7637# func_echo_all arg... 7638# Invoke $ECHO with all args, space-separated. 7639func_echo_all () 7640{ 7641 $ECHO "" 7642} 7643 7644case $ECHO in 7645 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7646printf "%s\n" "printf" >&6; } ;; 7647 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7648printf "%s\n" "print -r" >&6; } ;; 7649 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7650printf "%s\n" "cat" >&6; } ;; 7651esac 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7667printf %s "checking for a sed that does not truncate output... " >&6; } 7668if test ${ac_cv_path_SED+y} 7669then : 7670 printf %s "(cached) " >&6 7671else $as_nop 7672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7673 for ac_i in 1 2 3 4 5 6 7; do 7674 ac_script="$ac_script$as_nl$ac_script" 7675 done 7676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7677 { ac_script=; unset ac_script;} 7678 if test -z "$SED"; then 7679 ac_path_SED_found=false 7680 # Loop through the user's path and test for each of PROGNAME-LIST 7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7682for as_dir in $PATH 7683do 7684 IFS=$as_save_IFS 7685 case $as_dir in #((( 7686 '') as_dir=./ ;; 7687 */) ;; 7688 *) as_dir=$as_dir/ ;; 7689 esac 7690 for ac_prog in sed gsed 7691 do 7692 for ac_exec_ext in '' $ac_executable_extensions; do 7693 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 7694 as_fn_executable_p "$ac_path_SED" || continue 7695# Check for GNU ac_path_SED and select it if it is found. 7696 # Check for GNU $ac_path_SED 7697case `"$ac_path_SED" --version 2>&1` in 7698*GNU*) 7699 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7700*) 7701 ac_count=0 7702 printf %s 0123456789 >"conftest.in" 7703 while : 7704 do 7705 cat "conftest.in" "conftest.in" >"conftest.tmp" 7706 mv "conftest.tmp" "conftest.in" 7707 cp "conftest.in" "conftest.nl" 7708 printf "%s\n" '' >> "conftest.nl" 7709 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7711 as_fn_arith $ac_count + 1 && ac_count=$as_val 7712 if test $ac_count -gt ${ac_path_SED_max-0}; then 7713 # Best one so far, save it but keep looking for a better one 7714 ac_cv_path_SED="$ac_path_SED" 7715 ac_path_SED_max=$ac_count 7716 fi 7717 # 10*(2^10) chars as input seems more than enough 7718 test $ac_count -gt 10 && break 7719 done 7720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7721esac 7722 7723 $ac_path_SED_found && break 3 7724 done 7725 done 7726 done 7727IFS=$as_save_IFS 7728 if test -z "$ac_cv_path_SED"; then 7729 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7730 fi 7731else 7732 ac_cv_path_SED=$SED 7733fi 7734 7735fi 7736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7737printf "%s\n" "$ac_cv_path_SED" >&6; } 7738 SED="$ac_cv_path_SED" 7739 rm -f conftest.sed 7740 7741test -z "$SED" && SED=sed 7742Xsed="$SED -e 1s/^X//" 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7755printf %s "checking for grep that handles long lines and -e... " >&6; } 7756if test ${ac_cv_path_GREP+y} 7757then : 7758 printf %s "(cached) " >&6 7759else $as_nop 7760 if test -z "$GREP"; then 7761 ac_path_GREP_found=false 7762 # Loop through the user's path and test for each of PROGNAME-LIST 7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7765do 7766 IFS=$as_save_IFS 7767 case $as_dir in #((( 7768 '') as_dir=./ ;; 7769 */) ;; 7770 *) as_dir=$as_dir/ ;; 7771 esac 7772 for ac_prog in grep ggrep 7773 do 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7776 as_fn_executable_p "$ac_path_GREP" || continue 7777# Check for GNU ac_path_GREP and select it if it is found. 7778 # Check for GNU $ac_path_GREP 7779case `"$ac_path_GREP" --version 2>&1` in 7780*GNU*) 7781 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7782*) 7783 ac_count=0 7784 printf %s 0123456789 >"conftest.in" 7785 while : 7786 do 7787 cat "conftest.in" "conftest.in" >"conftest.tmp" 7788 mv "conftest.tmp" "conftest.in" 7789 cp "conftest.in" "conftest.nl" 7790 printf "%s\n" 'GREP' >> "conftest.nl" 7791 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7793 as_fn_arith $ac_count + 1 && ac_count=$as_val 7794 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7795 # Best one so far, save it but keep looking for a better one 7796 ac_cv_path_GREP="$ac_path_GREP" 7797 ac_path_GREP_max=$ac_count 7798 fi 7799 # 10*(2^10) chars as input seems more than enough 7800 test $ac_count -gt 10 && break 7801 done 7802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7803esac 7804 7805 $ac_path_GREP_found && break 3 7806 done 7807 done 7808 done 7809IFS=$as_save_IFS 7810 if test -z "$ac_cv_path_GREP"; then 7811 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7812 fi 7813else 7814 ac_cv_path_GREP=$GREP 7815fi 7816 7817fi 7818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7819printf "%s\n" "$ac_cv_path_GREP" >&6; } 7820 GREP="$ac_cv_path_GREP" 7821 7822 7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7824printf %s "checking for egrep... " >&6; } 7825if test ${ac_cv_path_EGREP+y} 7826then : 7827 printf %s "(cached) " >&6 7828else $as_nop 7829 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7830 then ac_cv_path_EGREP="$GREP -E" 7831 else 7832 if test -z "$EGREP"; then 7833 ac_path_EGREP_found=false 7834 # Loop through the user's path and test for each of PROGNAME-LIST 7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7837do 7838 IFS=$as_save_IFS 7839 case $as_dir in #((( 7840 '') as_dir=./ ;; 7841 */) ;; 7842 *) as_dir=$as_dir/ ;; 7843 esac 7844 for ac_prog in egrep 7845 do 7846 for ac_exec_ext in '' $ac_executable_extensions; do 7847 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7848 as_fn_executable_p "$ac_path_EGREP" || continue 7849# Check for GNU ac_path_EGREP and select it if it is found. 7850 # Check for GNU $ac_path_EGREP 7851case `"$ac_path_EGREP" --version 2>&1` in 7852*GNU*) 7853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7854*) 7855 ac_count=0 7856 printf %s 0123456789 >"conftest.in" 7857 while : 7858 do 7859 cat "conftest.in" "conftest.in" >"conftest.tmp" 7860 mv "conftest.tmp" "conftest.in" 7861 cp "conftest.in" "conftest.nl" 7862 printf "%s\n" 'EGREP' >> "conftest.nl" 7863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7865 as_fn_arith $ac_count + 1 && ac_count=$as_val 7866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7867 # Best one so far, save it but keep looking for a better one 7868 ac_cv_path_EGREP="$ac_path_EGREP" 7869 ac_path_EGREP_max=$ac_count 7870 fi 7871 # 10*(2^10) chars as input seems more than enough 7872 test $ac_count -gt 10 && break 7873 done 7874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7875esac 7876 7877 $ac_path_EGREP_found && break 3 7878 done 7879 done 7880 done 7881IFS=$as_save_IFS 7882 if test -z "$ac_cv_path_EGREP"; then 7883 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7884 fi 7885else 7886 ac_cv_path_EGREP=$EGREP 7887fi 7888 7889 fi 7890fi 7891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7892printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7893 EGREP="$ac_cv_path_EGREP" 7894 7895 7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7897printf %s "checking for fgrep... " >&6; } 7898if test ${ac_cv_path_FGREP+y} 7899then : 7900 printf %s "(cached) " >&6 7901else $as_nop 7902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7903 then ac_cv_path_FGREP="$GREP -F" 7904 else 7905 if test -z "$FGREP"; then 7906 ac_path_FGREP_found=false 7907 # Loop through the user's path and test for each of PROGNAME-LIST 7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7910do 7911 IFS=$as_save_IFS 7912 case $as_dir in #((( 7913 '') as_dir=./ ;; 7914 */) ;; 7915 *) as_dir=$as_dir/ ;; 7916 esac 7917 for ac_prog in fgrep 7918 do 7919 for ac_exec_ext in '' $ac_executable_extensions; do 7920 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 7921 as_fn_executable_p "$ac_path_FGREP" || continue 7922# Check for GNU ac_path_FGREP and select it if it is found. 7923 # Check for GNU $ac_path_FGREP 7924case `"$ac_path_FGREP" --version 2>&1` in 7925*GNU*) 7926 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7927*) 7928 ac_count=0 7929 printf %s 0123456789 >"conftest.in" 7930 while : 7931 do 7932 cat "conftest.in" "conftest.in" >"conftest.tmp" 7933 mv "conftest.tmp" "conftest.in" 7934 cp "conftest.in" "conftest.nl" 7935 printf "%s\n" 'FGREP' >> "conftest.nl" 7936 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7938 as_fn_arith $ac_count + 1 && ac_count=$as_val 7939 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7940 # Best one so far, save it but keep looking for a better one 7941 ac_cv_path_FGREP="$ac_path_FGREP" 7942 ac_path_FGREP_max=$ac_count 7943 fi 7944 # 10*(2^10) chars as input seems more than enough 7945 test $ac_count -gt 10 && break 7946 done 7947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7948esac 7949 7950 $ac_path_FGREP_found && break 3 7951 done 7952 done 7953 done 7954IFS=$as_save_IFS 7955 if test -z "$ac_cv_path_FGREP"; then 7956 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7957 fi 7958else 7959 ac_cv_path_FGREP=$FGREP 7960fi 7961 7962 fi 7963fi 7964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7965printf "%s\n" "$ac_cv_path_FGREP" >&6; } 7966 FGREP="$ac_cv_path_FGREP" 7967 7968 7969test -z "$GREP" && GREP=grep 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989# Check whether --with-gnu-ld was given. 7990if test ${with_gnu_ld+y} 7991then : 7992 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7993else $as_nop 7994 with_gnu_ld=no 7995fi 7996 7997ac_prog=ld 7998if test yes = "$GCC"; then 7999 # Check if gcc -print-prog-name=ld gives a path. 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8001printf %s "checking for ld used by $CC... " >&6; } 8002 case $host in 8003 *-*-mingw*) 8004 # gcc leaves a trailing carriage return, which upsets mingw 8005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8006 *) 8007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8008 esac 8009 case $ac_prog in 8010 # Accept absolute paths. 8011 [\\/]* | ?:[\\/]*) 8012 re_direlt='/[^/][^/]*/\.\./' 8013 # Canonicalize the pathname of ld 8014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8017 done 8018 test -z "$LD" && LD=$ac_prog 8019 ;; 8020 "") 8021 # If it fails, then pretend we aren't using GCC. 8022 ac_prog=ld 8023 ;; 8024 *) 8025 # If it is relative, then search for the first ld in PATH. 8026 with_gnu_ld=unknown 8027 ;; 8028 esac 8029elif test yes = "$with_gnu_ld"; then 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8031printf %s "checking for GNU ld... " >&6; } 8032else 8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8034printf %s "checking for non-GNU ld... " >&6; } 8035fi 8036if test ${lt_cv_path_LD+y} 8037then : 8038 printf %s "(cached) " >&6 8039else $as_nop 8040 if test -z "$LD"; then 8041 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8042 for ac_dir in $PATH; do 8043 IFS=$lt_save_ifs 8044 test -z "$ac_dir" && ac_dir=. 8045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8046 lt_cv_path_LD=$ac_dir/$ac_prog 8047 # Check to see if the program is GNU ld. I'd rather use --version, 8048 # but apparently some variants of GNU ld only accept -v. 8049 # Break only if it was the GNU/non-GNU ld that we prefer. 8050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8051 *GNU* | *'with BFD'*) 8052 test no != "$with_gnu_ld" && break 8053 ;; 8054 *) 8055 test yes != "$with_gnu_ld" && break 8056 ;; 8057 esac 8058 fi 8059 done 8060 IFS=$lt_save_ifs 8061else 8062 lt_cv_path_LD=$LD # Let the user override the test with a path. 8063fi 8064fi 8065 8066LD=$lt_cv_path_LD 8067if test -n "$LD"; then 8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8069printf "%s\n" "$LD" >&6; } 8070else 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8072printf "%s\n" "no" >&6; } 8073fi 8074test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8076printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8077if test ${lt_cv_prog_gnu_ld+y} 8078then : 8079 printf %s "(cached) " >&6 8080else $as_nop 8081 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8082case `$LD -v 2>&1 </dev/null` in 8083*GNU* | *'with BFD'*) 8084 lt_cv_prog_gnu_ld=yes 8085 ;; 8086*) 8087 lt_cv_prog_gnu_ld=no 8088 ;; 8089esac 8090fi 8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8092printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8093with_gnu_ld=$lt_cv_prog_gnu_ld 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8104printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8105if test ${lt_cv_path_NM+y} 8106then : 8107 printf %s "(cached) " >&6 8108else $as_nop 8109 if test -n "$NM"; then 8110 # Let the user override the test. 8111 lt_cv_path_NM=$NM 8112else 8113 lt_nm_to_check=${ac_tool_prefix}nm 8114 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8115 lt_nm_to_check="$lt_nm_to_check nm" 8116 fi 8117 for lt_tmp_nm in $lt_nm_to_check; do 8118 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8119 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8120 IFS=$lt_save_ifs 8121 test -z "$ac_dir" && ac_dir=. 8122 tmp_nm=$ac_dir/$lt_tmp_nm 8123 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8124 # Check to see if the nm accepts a BSD-compat flag. 8125 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8126 # nm: unknown option "B" ignored 8127 # Tru64's nm complains that /dev/null is an invalid object file 8128 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8129 case $build_os in 8130 mingw*) lt_bad_file=conftest.nm/nofile ;; 8131 *) lt_bad_file=/dev/null ;; 8132 esac 8133 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8134 *$lt_bad_file* | *'Invalid file or object type'*) 8135 lt_cv_path_NM="$tmp_nm -B" 8136 break 2 8137 ;; 8138 *) 8139 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8140 */dev/null*) 8141 lt_cv_path_NM="$tmp_nm -p" 8142 break 2 8143 ;; 8144 *) 8145 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8146 continue # so that we can try to find one that supports BSD flags 8147 ;; 8148 esac 8149 ;; 8150 esac 8151 fi 8152 done 8153 IFS=$lt_save_ifs 8154 done 8155 : ${lt_cv_path_NM=no} 8156fi 8157fi 8158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8159printf "%s\n" "$lt_cv_path_NM" >&6; } 8160if test no != "$lt_cv_path_NM"; then 8161 NM=$lt_cv_path_NM 8162else 8163 # Didn't find any BSD compatible name lister, look for dumpbin. 8164 if test -n "$DUMPBIN"; then : 8165 # Let the user override the test. 8166 else 8167 if test -n "$ac_tool_prefix"; then 8168 for ac_prog in dumpbin "link -dump" 8169 do 8170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8171set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173printf %s "checking for $ac_word... " >&6; } 8174if test ${ac_cv_prog_DUMPBIN+y} 8175then : 8176 printf %s "(cached) " >&6 8177else $as_nop 8178 if test -n "$DUMPBIN"; then 8179 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8180else 8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182for as_dir in $PATH 8183do 8184 IFS=$as_save_IFS 8185 case $as_dir in #((( 8186 '') as_dir=./ ;; 8187 */) ;; 8188 *) as_dir=$as_dir/ ;; 8189 esac 8190 for ac_exec_ext in '' $ac_executable_extensions; do 8191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8192 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8194 break 2 8195 fi 8196done 8197 done 8198IFS=$as_save_IFS 8199 8200fi 8201fi 8202DUMPBIN=$ac_cv_prog_DUMPBIN 8203if test -n "$DUMPBIN"; then 8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8205printf "%s\n" "$DUMPBIN" >&6; } 8206else 8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8208printf "%s\n" "no" >&6; } 8209fi 8210 8211 8212 test -n "$DUMPBIN" && break 8213 done 8214fi 8215if test -z "$DUMPBIN"; then 8216 ac_ct_DUMPBIN=$DUMPBIN 8217 for ac_prog in dumpbin "link -dump" 8218do 8219 # Extract the first word of "$ac_prog", so it can be a program name with args. 8220set dummy $ac_prog; ac_word=$2 8221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8222printf %s "checking for $ac_word... " >&6; } 8223if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 8224then : 8225 printf %s "(cached) " >&6 8226else $as_nop 8227 if test -n "$ac_ct_DUMPBIN"; then 8228 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8229else 8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8231for as_dir in $PATH 8232do 8233 IFS=$as_save_IFS 8234 case $as_dir in #((( 8235 '') as_dir=./ ;; 8236 */) ;; 8237 *) as_dir=$as_dir/ ;; 8238 esac 8239 for ac_exec_ext in '' $ac_executable_extensions; do 8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8241 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8243 break 2 8244 fi 8245done 8246 done 8247IFS=$as_save_IFS 8248 8249fi 8250fi 8251ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8252if test -n "$ac_ct_DUMPBIN"; then 8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8254printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 8255else 8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8257printf "%s\n" "no" >&6; } 8258fi 8259 8260 8261 test -n "$ac_ct_DUMPBIN" && break 8262done 8263 8264 if test "x$ac_ct_DUMPBIN" = x; then 8265 DUMPBIN=":" 8266 else 8267 case $cross_compiling:$ac_tool_warned in 8268yes:) 8269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8271ac_tool_warned=yes ;; 8272esac 8273 DUMPBIN=$ac_ct_DUMPBIN 8274 fi 8275fi 8276 8277 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8278 *COFF*) 8279 DUMPBIN="$DUMPBIN -symbols -headers" 8280 ;; 8281 *) 8282 DUMPBIN=: 8283 ;; 8284 esac 8285 fi 8286 8287 if test : != "$DUMPBIN"; then 8288 NM=$DUMPBIN 8289 fi 8290fi 8291test -z "$NM" && NM=nm 8292 8293 8294 8295 8296 8297 8298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8299printf %s "checking the name lister ($NM) interface... " >&6; } 8300if test ${lt_cv_nm_interface+y} 8301then : 8302 printf %s "(cached) " >&6 8303else $as_nop 8304 lt_cv_nm_interface="BSD nm" 8305 echo "int some_variable = 0;" > conftest.$ac_ext 8306 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8307 (eval "$ac_compile" 2>conftest.err) 8308 cat conftest.err >&5 8309 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8310 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8311 cat conftest.err >&5 8312 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8313 cat conftest.out >&5 8314 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8315 lt_cv_nm_interface="MS dumpbin" 8316 fi 8317 rm -f conftest* 8318fi 8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8320printf "%s\n" "$lt_cv_nm_interface" >&6; } 8321 8322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8323printf %s "checking whether ln -s works... " >&6; } 8324LN_S=$as_ln_s 8325if test "$LN_S" = "ln -s"; then 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8327printf "%s\n" "yes" >&6; } 8328else 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8330printf "%s\n" "no, using $LN_S" >&6; } 8331fi 8332 8333# find the maximum length of command line arguments 8334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8335printf %s "checking the maximum length of command line arguments... " >&6; } 8336if test ${lt_cv_sys_max_cmd_len+y} 8337then : 8338 printf %s "(cached) " >&6 8339else $as_nop 8340 i=0 8341 teststring=ABCD 8342 8343 case $build_os in 8344 msdosdjgpp*) 8345 # On DJGPP, this test can blow up pretty badly due to problems in libc 8346 # (any single argument exceeding 2000 bytes causes a buffer overrun 8347 # during glob expansion). Even if it were fixed, the result of this 8348 # check would be larger than it should be. 8349 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8350 ;; 8351 8352 gnu*) 8353 # Under GNU Hurd, this test is not required because there is 8354 # no limit to the length of command line arguments. 8355 # Libtool will interpret -1 as no limit whatsoever 8356 lt_cv_sys_max_cmd_len=-1; 8357 ;; 8358 8359 cygwin* | mingw* | cegcc*) 8360 # On Win9x/ME, this test blows up -- it succeeds, but takes 8361 # about 5 minutes as the teststring grows exponentially. 8362 # Worse, since 9x/ME are not pre-emptively multitasking, 8363 # you end up with a "frozen" computer, even though with patience 8364 # the test eventually succeeds (with a max line length of 256k). 8365 # Instead, let's just punt: use the minimum linelength reported by 8366 # all of the supported platforms: 8192 (on NT/2K/XP). 8367 lt_cv_sys_max_cmd_len=8192; 8368 ;; 8369 8370 mint*) 8371 # On MiNT this can take a long time and run out of memory. 8372 lt_cv_sys_max_cmd_len=8192; 8373 ;; 8374 8375 amigaos*) 8376 # On AmigaOS with pdksh, this test takes hours, literally. 8377 # So we just punt and use a minimum line length of 8192. 8378 lt_cv_sys_max_cmd_len=8192; 8379 ;; 8380 8381 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8382 # This has been around since 386BSD, at least. Likely further. 8383 if test -x /sbin/sysctl; then 8384 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8385 elif test -x /usr/sbin/sysctl; then 8386 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8387 else 8388 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8389 fi 8390 # And add a safety zone 8391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8393 ;; 8394 8395 interix*) 8396 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8397 lt_cv_sys_max_cmd_len=196608 8398 ;; 8399 8400 os2*) 8401 # The test takes a long time on OS/2. 8402 lt_cv_sys_max_cmd_len=8192 8403 ;; 8404 8405 osf*) 8406 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8407 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8408 # nice to cause kernel panics so lets avoid the loop below. 8409 # First set a reasonable default. 8410 lt_cv_sys_max_cmd_len=16384 8411 # 8412 if test -x /sbin/sysconfig; then 8413 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8414 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8415 esac 8416 fi 8417 ;; 8418 sco3.2v5*) 8419 lt_cv_sys_max_cmd_len=102400 8420 ;; 8421 sysv5* | sco5v6* | sysv4.2uw2*) 8422 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8423 if test -n "$kargmax"; then 8424 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8425 else 8426 lt_cv_sys_max_cmd_len=32768 8427 fi 8428 ;; 8429 *) 8430 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8431 if test -n "$lt_cv_sys_max_cmd_len" && \ 8432 test undefined != "$lt_cv_sys_max_cmd_len"; then 8433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8435 else 8436 # Make teststring a little bigger before we do anything with it. 8437 # a 1K string should be a reasonable start. 8438 for i in 1 2 3 4 5 6 7 8; do 8439 teststring=$teststring$teststring 8440 done 8441 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8442 # If test is not a shell built-in, we'll probably end up computing a 8443 # maximum length that is only half of the actual maximum length, but 8444 # we can't tell. 8445 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8446 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8447 test 17 != "$i" # 1/2 MB should be enough 8448 do 8449 i=`expr $i + 1` 8450 teststring=$teststring$teststring 8451 done 8452 # Only check the string length outside the loop. 8453 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8454 teststring= 8455 # Add a significant safety factor because C++ compilers can tack on 8456 # massive amounts of additional arguments before passing them to the 8457 # linker. It appears as though 1/2 is a usable value. 8458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8459 fi 8460 ;; 8461 esac 8462 8463fi 8464 8465if test -n "$lt_cv_sys_max_cmd_len"; then 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8467printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 8468else 8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 8470printf "%s\n" "none" >&6; } 8471fi 8472max_cmd_len=$lt_cv_sys_max_cmd_len 8473 8474 8475 8476 8477 8478 8479: ${CP="cp -f"} 8480: ${MV="mv -f"} 8481: ${RM="rm -f"} 8482 8483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8484 lt_unset=unset 8485else 8486 lt_unset=false 8487fi 8488 8489 8490 8491 8492 8493# test EBCDIC or ASCII 8494case `echo X|tr X '\101'` in 8495 A) # ASCII based system 8496 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8497 lt_SP2NL='tr \040 \012' 8498 lt_NL2SP='tr \015\012 \040\040' 8499 ;; 8500 *) # EBCDIC based system 8501 lt_SP2NL='tr \100 \n' 8502 lt_NL2SP='tr \r\n \100\100' 8503 ;; 8504esac 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8515printf %s "checking how to convert $build file names to $host format... " >&6; } 8516if test ${lt_cv_to_host_file_cmd+y} 8517then : 8518 printf %s "(cached) " >&6 8519else $as_nop 8520 case $host in 8521 *-*-mingw* ) 8522 case $build in 8523 *-*-mingw* ) # actually msys 8524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8525 ;; 8526 *-*-cygwin* ) 8527 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8528 ;; 8529 * ) # otherwise, assume *nix 8530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8531 ;; 8532 esac 8533 ;; 8534 *-*-cygwin* ) 8535 case $build in 8536 *-*-mingw* ) # actually msys 8537 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8538 ;; 8539 *-*-cygwin* ) 8540 lt_cv_to_host_file_cmd=func_convert_file_noop 8541 ;; 8542 * ) # otherwise, assume *nix 8543 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8544 ;; 8545 esac 8546 ;; 8547 * ) # unhandled hosts (and "normal" native builds) 8548 lt_cv_to_host_file_cmd=func_convert_file_noop 8549 ;; 8550esac 8551 8552fi 8553 8554to_host_file_cmd=$lt_cv_to_host_file_cmd 8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8556printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 8557 8558 8559 8560 8561 8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8563printf %s "checking how to convert $build file names to toolchain format... " >&6; } 8564if test ${lt_cv_to_tool_file_cmd+y} 8565then : 8566 printf %s "(cached) " >&6 8567else $as_nop 8568 #assume ordinary cross tools, or native build. 8569lt_cv_to_tool_file_cmd=func_convert_file_noop 8570case $host in 8571 *-*-mingw* ) 8572 case $build in 8573 *-*-mingw* ) # actually msys 8574 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8575 ;; 8576 esac 8577 ;; 8578esac 8579 8580fi 8581 8582to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8584printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 8585 8586 8587 8588 8589 8590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8591printf %s "checking for $LD option to reload object files... " >&6; } 8592if test ${lt_cv_ld_reload_flag+y} 8593then : 8594 printf %s "(cached) " >&6 8595else $as_nop 8596 lt_cv_ld_reload_flag='-r' 8597fi 8598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8599printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 8600reload_flag=$lt_cv_ld_reload_flag 8601case $reload_flag in 8602"" | " "*) ;; 8603*) reload_flag=" $reload_flag" ;; 8604esac 8605reload_cmds='$LD$reload_flag -o $output$reload_objs' 8606case $host_os in 8607 cygwin* | mingw* | pw32* | cegcc*) 8608 if test yes != "$GCC"; then 8609 reload_cmds=false 8610 fi 8611 ;; 8612 darwin*) 8613 if test yes = "$GCC"; then 8614 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8615 else 8616 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8617 fi 8618 ;; 8619esac 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629if test -n "$ac_tool_prefix"; then 8630 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8631set dummy ${ac_tool_prefix}objdump; ac_word=$2 8632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8633printf %s "checking for $ac_word... " >&6; } 8634if test ${ac_cv_prog_OBJDUMP+y} 8635then : 8636 printf %s "(cached) " >&6 8637else $as_nop 8638 if test -n "$OBJDUMP"; then 8639 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8640else 8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8642for as_dir in $PATH 8643do 8644 IFS=$as_save_IFS 8645 case $as_dir in #((( 8646 '') as_dir=./ ;; 8647 */) ;; 8648 *) as_dir=$as_dir/ ;; 8649 esac 8650 for ac_exec_ext in '' $ac_executable_extensions; do 8651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8652 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8654 break 2 8655 fi 8656done 8657 done 8658IFS=$as_save_IFS 8659 8660fi 8661fi 8662OBJDUMP=$ac_cv_prog_OBJDUMP 8663if test -n "$OBJDUMP"; then 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8665printf "%s\n" "$OBJDUMP" >&6; } 8666else 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8668printf "%s\n" "no" >&6; } 8669fi 8670 8671 8672fi 8673if test -z "$ac_cv_prog_OBJDUMP"; then 8674 ac_ct_OBJDUMP=$OBJDUMP 8675 # Extract the first word of "objdump", so it can be a program name with args. 8676set dummy objdump; ac_word=$2 8677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8678printf %s "checking for $ac_word... " >&6; } 8679if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 8680then : 8681 printf %s "(cached) " >&6 8682else $as_nop 8683 if test -n "$ac_ct_OBJDUMP"; then 8684 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8685else 8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8687for as_dir in $PATH 8688do 8689 IFS=$as_save_IFS 8690 case $as_dir in #((( 8691 '') as_dir=./ ;; 8692 */) ;; 8693 *) as_dir=$as_dir/ ;; 8694 esac 8695 for ac_exec_ext in '' $ac_executable_extensions; do 8696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8697 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8699 break 2 8700 fi 8701done 8702 done 8703IFS=$as_save_IFS 8704 8705fi 8706fi 8707ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8708if test -n "$ac_ct_OBJDUMP"; then 8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8710printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 8711else 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8713printf "%s\n" "no" >&6; } 8714fi 8715 8716 if test "x$ac_ct_OBJDUMP" = x; then 8717 OBJDUMP="false" 8718 else 8719 case $cross_compiling:$ac_tool_warned in 8720yes:) 8721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8723ac_tool_warned=yes ;; 8724esac 8725 OBJDUMP=$ac_ct_OBJDUMP 8726 fi 8727else 8728 OBJDUMP="$ac_cv_prog_OBJDUMP" 8729fi 8730 8731test -z "$OBJDUMP" && OBJDUMP=objdump 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8742printf %s "checking how to recognize dependent libraries... " >&6; } 8743if test ${lt_cv_deplibs_check_method+y} 8744then : 8745 printf %s "(cached) " >&6 8746else $as_nop 8747 lt_cv_file_magic_cmd='$MAGIC_CMD' 8748lt_cv_file_magic_test_file= 8749lt_cv_deplibs_check_method='unknown' 8750# Need to set the preceding variable on all platforms that support 8751# interlibrary dependencies. 8752# 'none' -- dependencies not supported. 8753# 'unknown' -- same as none, but documents that we really don't know. 8754# 'pass_all' -- all dependencies passed with no checks. 8755# 'test_compile' -- check by making test program. 8756# 'file_magic [[regex]]' -- check by looking for files in library path 8757# that responds to the $file_magic_cmd with a given extended regex. 8758# If you have 'file' or equivalent on your system and you're not sure 8759# whether 'pass_all' will *always* work, you probably want this one. 8760 8761case $host_os in 8762aix[4-9]*) 8763 lt_cv_deplibs_check_method=pass_all 8764 ;; 8765 8766beos*) 8767 lt_cv_deplibs_check_method=pass_all 8768 ;; 8769 8770bsdi[45]*) 8771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8772 lt_cv_file_magic_cmd='/usr/bin/file -L' 8773 lt_cv_file_magic_test_file=/shlib/libc.so 8774 ;; 8775 8776cygwin*) 8777 # func_win32_libid is a shell function defined in ltmain.sh 8778 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8779 lt_cv_file_magic_cmd='func_win32_libid' 8780 ;; 8781 8782mingw* | pw32*) 8783 # Base MSYS/MinGW do not provide the 'file' command needed by 8784 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8785 # unless we find 'file', for example because we are cross-compiling. 8786 if ( file / ) >/dev/null 2>&1; then 8787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8788 lt_cv_file_magic_cmd='func_win32_libid' 8789 else 8790 # Keep this pattern in sync with the one in func_win32_libid. 8791 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8792 lt_cv_file_magic_cmd='$OBJDUMP -f' 8793 fi 8794 ;; 8795 8796cegcc*) 8797 # use the weaker test based on 'objdump'. See mingw*. 8798 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8799 lt_cv_file_magic_cmd='$OBJDUMP -f' 8800 ;; 8801 8802darwin* | rhapsody*) 8803 lt_cv_deplibs_check_method=pass_all 8804 ;; 8805 8806freebsd* | dragonfly*) 8807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8808 case $host_cpu in 8809 i*86 ) 8810 # Not sure whether the presence of OpenBSD here was a mistake. 8811 # Let's accept both of them until this is cleared up. 8812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8813 lt_cv_file_magic_cmd=/usr/bin/file 8814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8815 ;; 8816 esac 8817 else 8818 lt_cv_deplibs_check_method=pass_all 8819 fi 8820 ;; 8821 8822haiku*) 8823 lt_cv_deplibs_check_method=pass_all 8824 ;; 8825 8826hpux10.20* | hpux11*) 8827 lt_cv_file_magic_cmd=/usr/bin/file 8828 case $host_cpu in 8829 ia64*) 8830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8832 ;; 8833 hppa*64*) 8834 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]' 8835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8836 ;; 8837 *) 8838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8839 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8840 ;; 8841 esac 8842 ;; 8843 8844interix[3-9]*) 8845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8847 ;; 8848 8849irix5* | irix6* | nonstopux*) 8850 case $LD in 8851 *-32|*"-32 ") libmagic=32-bit;; 8852 *-n32|*"-n32 ") libmagic=N32;; 8853 *-64|*"-64 ") libmagic=64-bit;; 8854 *) libmagic=never-match;; 8855 esac 8856 lt_cv_deplibs_check_method=pass_all 8857 ;; 8858 8859# This must be glibc/ELF. 8860linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8861 lt_cv_deplibs_check_method=pass_all 8862 ;; 8863 8864netbsd*) 8865 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8867 else 8868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8869 fi 8870 ;; 8871 8872newos6*) 8873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8874 lt_cv_file_magic_cmd=/usr/bin/file 8875 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8876 ;; 8877 8878*nto* | *qnx*) 8879 lt_cv_deplibs_check_method=pass_all 8880 ;; 8881 8882openbsd* | bitrig*) 8883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8885 else 8886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8887 fi 8888 ;; 8889 8890osf3* | osf4* | osf5*) 8891 lt_cv_deplibs_check_method=pass_all 8892 ;; 8893 8894rdos*) 8895 lt_cv_deplibs_check_method=pass_all 8896 ;; 8897 8898solaris*) 8899 lt_cv_deplibs_check_method=pass_all 8900 ;; 8901 8902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8903 lt_cv_deplibs_check_method=pass_all 8904 ;; 8905 8906sysv4 | sysv4.3*) 8907 case $host_vendor in 8908 motorola) 8909 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]' 8910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8911 ;; 8912 ncr) 8913 lt_cv_deplibs_check_method=pass_all 8914 ;; 8915 sequent) 8916 lt_cv_file_magic_cmd='/bin/file' 8917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8918 ;; 8919 sni) 8920 lt_cv_file_magic_cmd='/bin/file' 8921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8922 lt_cv_file_magic_test_file=/lib/libc.so 8923 ;; 8924 siemens) 8925 lt_cv_deplibs_check_method=pass_all 8926 ;; 8927 pc) 8928 lt_cv_deplibs_check_method=pass_all 8929 ;; 8930 esac 8931 ;; 8932 8933tpf*) 8934 lt_cv_deplibs_check_method=pass_all 8935 ;; 8936os2*) 8937 lt_cv_deplibs_check_method=pass_all 8938 ;; 8939esac 8940 8941fi 8942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8943printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 8944 8945file_magic_glob= 8946want_nocaseglob=no 8947if test "$build" = "$host"; then 8948 case $host_os in 8949 mingw* | pw32*) 8950 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8951 want_nocaseglob=yes 8952 else 8953 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8954 fi 8955 ;; 8956 esac 8957fi 8958 8959file_magic_cmd=$lt_cv_file_magic_cmd 8960deplibs_check_method=$lt_cv_deplibs_check_method 8961test -z "$deplibs_check_method" && deplibs_check_method=unknown 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984if test -n "$ac_tool_prefix"; then 8985 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8986set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8988printf %s "checking for $ac_word... " >&6; } 8989if test ${ac_cv_prog_DLLTOOL+y} 8990then : 8991 printf %s "(cached) " >&6 8992else $as_nop 8993 if test -n "$DLLTOOL"; then 8994 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8995else 8996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8997for as_dir in $PATH 8998do 8999 IFS=$as_save_IFS 9000 case $as_dir in #((( 9001 '') as_dir=./ ;; 9002 */) ;; 9003 *) as_dir=$as_dir/ ;; 9004 esac 9005 for ac_exec_ext in '' $ac_executable_extensions; do 9006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9007 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9009 break 2 9010 fi 9011done 9012 done 9013IFS=$as_save_IFS 9014 9015fi 9016fi 9017DLLTOOL=$ac_cv_prog_DLLTOOL 9018if test -n "$DLLTOOL"; then 9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9020printf "%s\n" "$DLLTOOL" >&6; } 9021else 9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9023printf "%s\n" "no" >&6; } 9024fi 9025 9026 9027fi 9028if test -z "$ac_cv_prog_DLLTOOL"; then 9029 ac_ct_DLLTOOL=$DLLTOOL 9030 # Extract the first word of "dlltool", so it can be a program name with args. 9031set dummy dlltool; ac_word=$2 9032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9033printf %s "checking for $ac_word... " >&6; } 9034if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9035then : 9036 printf %s "(cached) " >&6 9037else $as_nop 9038 if test -n "$ac_ct_DLLTOOL"; then 9039 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9040else 9041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9042for as_dir in $PATH 9043do 9044 IFS=$as_save_IFS 9045 case $as_dir in #((( 9046 '') as_dir=./ ;; 9047 */) ;; 9048 *) as_dir=$as_dir/ ;; 9049 esac 9050 for ac_exec_ext in '' $ac_executable_extensions; do 9051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9052 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9054 break 2 9055 fi 9056done 9057 done 9058IFS=$as_save_IFS 9059 9060fi 9061fi 9062ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9063if test -n "$ac_ct_DLLTOOL"; then 9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9065printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9066else 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9068printf "%s\n" "no" >&6; } 9069fi 9070 9071 if test "x$ac_ct_DLLTOOL" = x; then 9072 DLLTOOL="false" 9073 else 9074 case $cross_compiling:$ac_tool_warned in 9075yes:) 9076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9077printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9078ac_tool_warned=yes ;; 9079esac 9080 DLLTOOL=$ac_ct_DLLTOOL 9081 fi 9082else 9083 DLLTOOL="$ac_cv_prog_DLLTOOL" 9084fi 9085 9086test -z "$DLLTOOL" && DLLTOOL=dlltool 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9098printf %s "checking how to associate runtime and link libraries... " >&6; } 9099if test ${lt_cv_sharedlib_from_linklib_cmd+y} 9100then : 9101 printf %s "(cached) " >&6 9102else $as_nop 9103 lt_cv_sharedlib_from_linklib_cmd='unknown' 9104 9105case $host_os in 9106cygwin* | mingw* | pw32* | cegcc*) 9107 # two different shell functions defined in ltmain.sh; 9108 # decide which one to use based on capabilities of $DLLTOOL 9109 case `$DLLTOOL --help 2>&1` in 9110 *--identify-strict*) 9111 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9112 ;; 9113 *) 9114 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9115 ;; 9116 esac 9117 ;; 9118*) 9119 # fallback: assume linklib IS sharedlib 9120 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9121 ;; 9122esac 9123 9124fi 9125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9126printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9127sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9128test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9129 9130 9131 9132 9133 9134 9135 9136if test -n "$ac_tool_prefix"; then 9137 for ac_prog in ar 9138 do 9139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9140set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9142printf %s "checking for $ac_word... " >&6; } 9143if test ${ac_cv_prog_AR+y} 9144then : 9145 printf %s "(cached) " >&6 9146else $as_nop 9147 if test -n "$AR"; then 9148 ac_cv_prog_AR="$AR" # Let the user override the test. 9149else 9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9151for as_dir in $PATH 9152do 9153 IFS=$as_save_IFS 9154 case $as_dir in #((( 9155 '') as_dir=./ ;; 9156 */) ;; 9157 *) as_dir=$as_dir/ ;; 9158 esac 9159 for ac_exec_ext in '' $ac_executable_extensions; do 9160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9161 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9163 break 2 9164 fi 9165done 9166 done 9167IFS=$as_save_IFS 9168 9169fi 9170fi 9171AR=$ac_cv_prog_AR 9172if test -n "$AR"; then 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9174printf "%s\n" "$AR" >&6; } 9175else 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9177printf "%s\n" "no" >&6; } 9178fi 9179 9180 9181 test -n "$AR" && break 9182 done 9183fi 9184if test -z "$AR"; then 9185 ac_ct_AR=$AR 9186 for ac_prog in ar 9187do 9188 # Extract the first word of "$ac_prog", so it can be a program name with args. 9189set dummy $ac_prog; ac_word=$2 9190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9191printf %s "checking for $ac_word... " >&6; } 9192if test ${ac_cv_prog_ac_ct_AR+y} 9193then : 9194 printf %s "(cached) " >&6 9195else $as_nop 9196 if test -n "$ac_ct_AR"; then 9197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9198else 9199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9200for as_dir in $PATH 9201do 9202 IFS=$as_save_IFS 9203 case $as_dir in #((( 9204 '') as_dir=./ ;; 9205 */) ;; 9206 *) as_dir=$as_dir/ ;; 9207 esac 9208 for ac_exec_ext in '' $ac_executable_extensions; do 9209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9210 ac_cv_prog_ac_ct_AR="$ac_prog" 9211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9212 break 2 9213 fi 9214done 9215 done 9216IFS=$as_save_IFS 9217 9218fi 9219fi 9220ac_ct_AR=$ac_cv_prog_ac_ct_AR 9221if test -n "$ac_ct_AR"; then 9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9223printf "%s\n" "$ac_ct_AR" >&6; } 9224else 9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9226printf "%s\n" "no" >&6; } 9227fi 9228 9229 9230 test -n "$ac_ct_AR" && break 9231done 9232 9233 if test "x$ac_ct_AR" = x; then 9234 AR="false" 9235 else 9236 case $cross_compiling:$ac_tool_warned in 9237yes:) 9238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9239printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9240ac_tool_warned=yes ;; 9241esac 9242 AR=$ac_ct_AR 9243 fi 9244fi 9245 9246: ${AR=ar} 9247: ${AR_FLAGS=cru} 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9260printf %s "checking for archiver @FILE support... " >&6; } 9261if test ${lt_cv_ar_at_file+y} 9262then : 9263 printf %s "(cached) " >&6 9264else $as_nop 9265 lt_cv_ar_at_file=no 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268 9269int 9270main (void) 9271{ 9272 9273 ; 9274 return 0; 9275} 9276_ACEOF 9277if ac_fn_c_try_compile "$LINENO" 9278then : 9279 echo conftest.$ac_objext > conftest.lst 9280 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9282 (eval $lt_ar_try) 2>&5 9283 ac_status=$? 9284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9285 test $ac_status = 0; } 9286 if test 0 -eq "$ac_status"; then 9287 # Ensure the archiver fails upon bogus file names. 9288 rm -f conftest.$ac_objext libconftest.a 9289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9290 (eval $lt_ar_try) 2>&5 9291 ac_status=$? 9292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9293 test $ac_status = 0; } 9294 if test 0 -ne "$ac_status"; then 9295 lt_cv_ar_at_file=@ 9296 fi 9297 fi 9298 rm -f conftest.* libconftest.a 9299 9300fi 9301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9302 9303fi 9304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9305printf "%s\n" "$lt_cv_ar_at_file" >&6; } 9306 9307if test no = "$lt_cv_ar_at_file"; then 9308 archiver_list_spec= 9309else 9310 archiver_list_spec=$lt_cv_ar_at_file 9311fi 9312 9313 9314 9315 9316 9317 9318 9319if test -n "$ac_tool_prefix"; then 9320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9321set dummy ${ac_tool_prefix}strip; ac_word=$2 9322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9323printf %s "checking for $ac_word... " >&6; } 9324if test ${ac_cv_prog_STRIP+y} 9325then : 9326 printf %s "(cached) " >&6 9327else $as_nop 9328 if test -n "$STRIP"; then 9329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9330else 9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9332for as_dir in $PATH 9333do 9334 IFS=$as_save_IFS 9335 case $as_dir in #((( 9336 '') as_dir=./ ;; 9337 */) ;; 9338 *) as_dir=$as_dir/ ;; 9339 esac 9340 for ac_exec_ext in '' $ac_executable_extensions; do 9341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9342 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9344 break 2 9345 fi 9346done 9347 done 9348IFS=$as_save_IFS 9349 9350fi 9351fi 9352STRIP=$ac_cv_prog_STRIP 9353if test -n "$STRIP"; then 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9355printf "%s\n" "$STRIP" >&6; } 9356else 9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9358printf "%s\n" "no" >&6; } 9359fi 9360 9361 9362fi 9363if test -z "$ac_cv_prog_STRIP"; then 9364 ac_ct_STRIP=$STRIP 9365 # Extract the first word of "strip", so it can be a program name with args. 9366set dummy strip; ac_word=$2 9367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9368printf %s "checking for $ac_word... " >&6; } 9369if test ${ac_cv_prog_ac_ct_STRIP+y} 9370then : 9371 printf %s "(cached) " >&6 9372else $as_nop 9373 if test -n "$ac_ct_STRIP"; then 9374 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9375else 9376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9377for as_dir in $PATH 9378do 9379 IFS=$as_save_IFS 9380 case $as_dir in #((( 9381 '') as_dir=./ ;; 9382 */) ;; 9383 *) as_dir=$as_dir/ ;; 9384 esac 9385 for ac_exec_ext in '' $ac_executable_extensions; do 9386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9387 ac_cv_prog_ac_ct_STRIP="strip" 9388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9389 break 2 9390 fi 9391done 9392 done 9393IFS=$as_save_IFS 9394 9395fi 9396fi 9397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9398if test -n "$ac_ct_STRIP"; then 9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9400printf "%s\n" "$ac_ct_STRIP" >&6; } 9401else 9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9403printf "%s\n" "no" >&6; } 9404fi 9405 9406 if test "x$ac_ct_STRIP" = x; then 9407 STRIP=":" 9408 else 9409 case $cross_compiling:$ac_tool_warned in 9410yes:) 9411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9412printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9413ac_tool_warned=yes ;; 9414esac 9415 STRIP=$ac_ct_STRIP 9416 fi 9417else 9418 STRIP="$ac_cv_prog_STRIP" 9419fi 9420 9421test -z "$STRIP" && STRIP=: 9422 9423 9424 9425 9426 9427 9428if test -n "$ac_tool_prefix"; then 9429 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9430set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9432printf %s "checking for $ac_word... " >&6; } 9433if test ${ac_cv_prog_RANLIB+y} 9434then : 9435 printf %s "(cached) " >&6 9436else $as_nop 9437 if test -n "$RANLIB"; then 9438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9439else 9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9441for as_dir in $PATH 9442do 9443 IFS=$as_save_IFS 9444 case $as_dir in #((( 9445 '') as_dir=./ ;; 9446 */) ;; 9447 *) as_dir=$as_dir/ ;; 9448 esac 9449 for ac_exec_ext in '' $ac_executable_extensions; do 9450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9453 break 2 9454 fi 9455done 9456 done 9457IFS=$as_save_IFS 9458 9459fi 9460fi 9461RANLIB=$ac_cv_prog_RANLIB 9462if test -n "$RANLIB"; then 9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9464printf "%s\n" "$RANLIB" >&6; } 9465else 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9467printf "%s\n" "no" >&6; } 9468fi 9469 9470 9471fi 9472if test -z "$ac_cv_prog_RANLIB"; then 9473 ac_ct_RANLIB=$RANLIB 9474 # Extract the first word of "ranlib", so it can be a program name with args. 9475set dummy ranlib; ac_word=$2 9476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9477printf %s "checking for $ac_word... " >&6; } 9478if test ${ac_cv_prog_ac_ct_RANLIB+y} 9479then : 9480 printf %s "(cached) " >&6 9481else $as_nop 9482 if test -n "$ac_ct_RANLIB"; then 9483 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9484else 9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9486for as_dir in $PATH 9487do 9488 IFS=$as_save_IFS 9489 case $as_dir in #((( 9490 '') as_dir=./ ;; 9491 */) ;; 9492 *) as_dir=$as_dir/ ;; 9493 esac 9494 for ac_exec_ext in '' $ac_executable_extensions; do 9495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9496 ac_cv_prog_ac_ct_RANLIB="ranlib" 9497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9498 break 2 9499 fi 9500done 9501 done 9502IFS=$as_save_IFS 9503 9504fi 9505fi 9506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9507if test -n "$ac_ct_RANLIB"; then 9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9509printf "%s\n" "$ac_ct_RANLIB" >&6; } 9510else 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9512printf "%s\n" "no" >&6; } 9513fi 9514 9515 if test "x$ac_ct_RANLIB" = x; then 9516 RANLIB=":" 9517 else 9518 case $cross_compiling:$ac_tool_warned in 9519yes:) 9520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9521printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9522ac_tool_warned=yes ;; 9523esac 9524 RANLIB=$ac_ct_RANLIB 9525 fi 9526else 9527 RANLIB="$ac_cv_prog_RANLIB" 9528fi 9529 9530test -z "$RANLIB" && RANLIB=: 9531 9532 9533 9534 9535 9536 9537# Determine commands to create old-style static archives. 9538old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9539old_postinstall_cmds='chmod 644 $oldlib' 9540old_postuninstall_cmds= 9541 9542if test -n "$RANLIB"; then 9543 case $host_os in 9544 bitrig* | openbsd*) 9545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9546 ;; 9547 *) 9548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9549 ;; 9550 esac 9551 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9552fi 9553 9554case $host_os in 9555 darwin*) 9556 lock_old_archive_extraction=yes ;; 9557 *) 9558 lock_old_archive_extraction=no ;; 9559esac 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581for ac_prog in gawk mawk nawk awk 9582do 9583 # Extract the first word of "$ac_prog", so it can be a program name with args. 9584set dummy $ac_prog; ac_word=$2 9585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9586printf %s "checking for $ac_word... " >&6; } 9587if test ${ac_cv_prog_AWK+y} 9588then : 9589 printf %s "(cached) " >&6 9590else $as_nop 9591 if test -n "$AWK"; then 9592 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9593else 9594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9595for as_dir in $PATH 9596do 9597 IFS=$as_save_IFS 9598 case $as_dir in #((( 9599 '') as_dir=./ ;; 9600 */) ;; 9601 *) as_dir=$as_dir/ ;; 9602 esac 9603 for ac_exec_ext in '' $ac_executable_extensions; do 9604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9605 ac_cv_prog_AWK="$ac_prog" 9606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9607 break 2 9608 fi 9609done 9610 done 9611IFS=$as_save_IFS 9612 9613fi 9614fi 9615AWK=$ac_cv_prog_AWK 9616if test -n "$AWK"; then 9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9618printf "%s\n" "$AWK" >&6; } 9619else 9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9621printf "%s\n" "no" >&6; } 9622fi 9623 9624 9625 test -n "$AWK" && break 9626done 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646# If no C compiler was specified, use CC. 9647LTCC=${LTCC-"$CC"} 9648 9649# If no C compiler flags were specified, use CFLAGS. 9650LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9651 9652# Allow CC to be a program name with arguments. 9653compiler=$CC 9654 9655 9656# Check for command to grab the raw symbol name followed by C symbol from nm. 9657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9658printf %s "checking command to parse $NM output from $compiler object... " >&6; } 9659if test ${lt_cv_sys_global_symbol_pipe+y} 9660then : 9661 printf %s "(cached) " >&6 9662else $as_nop 9663 9664# These are sane defaults that work on at least a few old systems. 9665# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9666 9667# Character class describing NM global symbol codes. 9668symcode='[BCDEGRST]' 9669 9670# Regexp to match symbols that can be accessed directly from C. 9671sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9672 9673# Define system-specific variables. 9674case $host_os in 9675aix*) 9676 symcode='[BCDT]' 9677 ;; 9678cygwin* | mingw* | pw32* | cegcc*) 9679 symcode='[ABCDGISTW]' 9680 ;; 9681hpux*) 9682 if test ia64 = "$host_cpu"; then 9683 symcode='[ABCDEGRST]' 9684 fi 9685 ;; 9686irix* | nonstopux*) 9687 symcode='[BCDEGRST]' 9688 ;; 9689osf*) 9690 symcode='[BCDEGQRST]' 9691 ;; 9692solaris*) 9693 symcode='[BDRT]' 9694 ;; 9695sco3.2v5*) 9696 symcode='[DT]' 9697 ;; 9698sysv4.2uw2*) 9699 symcode='[DT]' 9700 ;; 9701sysv5* | sco5v6* | unixware* | OpenUNIX*) 9702 symcode='[ABDT]' 9703 ;; 9704sysv4) 9705 symcode='[DFNSTU]' 9706 ;; 9707esac 9708 9709# If we're using GNU nm, then use its standard symbol codes. 9710case `$NM -V 2>&1` in 9711*GNU* | *'with BFD'*) 9712 symcode='[ABCDGIRSTW]' ;; 9713esac 9714 9715if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9716 # Gets list of data symbols to import. 9717 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9718 # Adjust the below global symbol transforms to fixup imported variables. 9719 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9720 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9721 lt_c_name_lib_hook="\ 9722 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9723 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9724else 9725 # Disable hooks by default. 9726 lt_cv_sys_global_symbol_to_import= 9727 lt_cdecl_hook= 9728 lt_c_name_hook= 9729 lt_c_name_lib_hook= 9730fi 9731 9732# Transform an extracted symbol line into a proper C declaration. 9733# Some systems (esp. on ia64) link data and code symbols differently, 9734# so use this general approach. 9735lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9736$lt_cdecl_hook\ 9737" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9738" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9739 9740# Transform an extracted symbol line into symbol name and symbol address 9741lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9742$lt_c_name_hook\ 9743" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9744" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9745 9746# Transform an extracted symbol line into symbol name with lib prefix and 9747# symbol address. 9748lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9749$lt_c_name_lib_hook\ 9750" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9751" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9752" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9753 9754# Handle CRLF in mingw tool chain 9755opt_cr= 9756case $build_os in 9757mingw*) 9758 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9759 ;; 9760esac 9761 9762# Try without a prefix underscore, then with it. 9763for ac_symprfx in "" "_"; do 9764 9765 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9766 symxfrm="\\1 $ac_symprfx\\2 \\2" 9767 9768 # Write the raw and C identifiers. 9769 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9770 # Fake it for dumpbin and say T for any non-static function, 9771 # D for any global variable and I for any imported variable. 9772 # Also find C++ and __fastcall symbols from MSVC++, 9773 # which start with @ or ?. 9774 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9775" {last_section=section; section=\$ 3};"\ 9776" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9777" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9778" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9779" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9780" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9781" \$ 0!~/External *\|/{next};"\ 9782" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9783" {if(hide[section]) next};"\ 9784" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9785" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9786" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9787" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9788" ' prfx=^$ac_symprfx" 9789 else 9790 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9791 fi 9792 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9793 9794 # Check to see that the pipe works correctly. 9795 pipe_works=no 9796 9797 rm -f conftest* 9798 cat > conftest.$ac_ext <<_LT_EOF 9799#ifdef __cplusplus 9800extern "C" { 9801#endif 9802char nm_test_var; 9803void nm_test_func(void); 9804void nm_test_func(void){} 9805#ifdef __cplusplus 9806} 9807#endif 9808int main(){nm_test_var='a';nm_test_func();return(0);} 9809_LT_EOF 9810 9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9812 (eval $ac_compile) 2>&5 9813 ac_status=$? 9814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9815 test $ac_status = 0; }; then 9816 # Now try to grab the symbols. 9817 nlist=conftest.nm 9818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9819 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9820 ac_status=$? 9821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9822 test $ac_status = 0; } && test -s "$nlist"; then 9823 # Try sorting and uniquifying the output. 9824 if sort "$nlist" | uniq > "$nlist"T; then 9825 mv -f "$nlist"T "$nlist" 9826 else 9827 rm -f "$nlist"T 9828 fi 9829 9830 # Make sure that we snagged all the symbols we need. 9831 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9832 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9833 cat <<_LT_EOF > conftest.$ac_ext 9834/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9835#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9836/* DATA imports from DLLs on WIN32 can't be const, because runtime 9837 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9838# define LT_DLSYM_CONST 9839#elif defined __osf__ 9840/* This system does not cope well with relocations in const data. */ 9841# define LT_DLSYM_CONST 9842#else 9843# define LT_DLSYM_CONST const 9844#endif 9845 9846#ifdef __cplusplus 9847extern "C" { 9848#endif 9849 9850_LT_EOF 9851 # Now generate the symbol file. 9852 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9853 9854 cat <<_LT_EOF >> conftest.$ac_ext 9855 9856/* The mapping between symbol names and symbols. */ 9857LT_DLSYM_CONST struct { 9858 const char *name; 9859 void *address; 9860} 9861lt__PROGRAM__LTX_preloaded_symbols[] = 9862{ 9863 { "@PROGRAM@", (void *) 0 }, 9864_LT_EOF 9865 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9866 cat <<\_LT_EOF >> conftest.$ac_ext 9867 {0, (void *) 0} 9868}; 9869 9870/* This works around a problem in FreeBSD linker */ 9871#ifdef FREEBSD_WORKAROUND 9872static const void *lt_preloaded_setup() { 9873 return lt__PROGRAM__LTX_preloaded_symbols; 9874} 9875#endif 9876 9877#ifdef __cplusplus 9878} 9879#endif 9880_LT_EOF 9881 # Now try linking the two files. 9882 mv conftest.$ac_objext conftstm.$ac_objext 9883 lt_globsym_save_LIBS=$LIBS 9884 lt_globsym_save_CFLAGS=$CFLAGS 9885 LIBS=conftstm.$ac_objext 9886 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9888 (eval $ac_link) 2>&5 9889 ac_status=$? 9890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9891 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9892 pipe_works=yes 9893 fi 9894 LIBS=$lt_globsym_save_LIBS 9895 CFLAGS=$lt_globsym_save_CFLAGS 9896 else 9897 echo "cannot find nm_test_func in $nlist" >&5 9898 fi 9899 else 9900 echo "cannot find nm_test_var in $nlist" >&5 9901 fi 9902 else 9903 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9904 fi 9905 else 9906 echo "$progname: failed program was:" >&5 9907 cat conftest.$ac_ext >&5 9908 fi 9909 rm -rf conftest* conftst* 9910 9911 # Do not use the global_symbol_pipe unless it works. 9912 if test yes = "$pipe_works"; then 9913 break 9914 else 9915 lt_cv_sys_global_symbol_pipe= 9916 fi 9917done 9918 9919fi 9920 9921if test -z "$lt_cv_sys_global_symbol_pipe"; then 9922 lt_cv_sys_global_symbol_to_cdecl= 9923fi 9924if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9926printf "%s\n" "failed" >&6; } 9927else 9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9929printf "%s\n" "ok" >&6; } 9930fi 9931 9932# Response file support. 9933if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9934 nm_file_list_spec='@' 9935elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9936 nm_file_list_spec='@' 9937fi 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9976printf %s "checking for sysroot... " >&6; } 9977 9978# Check whether --with-sysroot was given. 9979if test ${with_sysroot+y} 9980then : 9981 withval=$with_sysroot; 9982else $as_nop 9983 with_sysroot=no 9984fi 9985 9986 9987lt_sysroot= 9988case $with_sysroot in #( 9989 yes) 9990 if test yes = "$GCC"; then 9991 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9992 fi 9993 ;; #( 9994 /*) 9995 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9996 ;; #( 9997 no|'') 9998 ;; #( 9999 *) 10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10001printf "%s\n" "$with_sysroot" >&6; } 10002 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10003 ;; 10004esac 10005 10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10007printf "%s\n" "${lt_sysroot:-no}" >&6; } 10008 10009 10010 10011 10012 10013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10014printf %s "checking for a working dd... " >&6; } 10015if test ${ac_cv_path_lt_DD+y} 10016then : 10017 printf %s "(cached) " >&6 10018else $as_nop 10019 printf 0123456789abcdef0123456789abcdef >conftest.i 10020cat conftest.i conftest.i >conftest2.i 10021: ${lt_DD:=$DD} 10022if test -z "$lt_DD"; then 10023 ac_path_lt_DD_found=false 10024 # Loop through the user's path and test for each of PROGNAME-LIST 10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10026for as_dir in $PATH 10027do 10028 IFS=$as_save_IFS 10029 case $as_dir in #((( 10030 '') as_dir=./ ;; 10031 */) ;; 10032 *) as_dir=$as_dir/ ;; 10033 esac 10034 for ac_prog in dd 10035 do 10036 for ac_exec_ext in '' $ac_executable_extensions; do 10037 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 10038 as_fn_executable_p "$ac_path_lt_DD" || continue 10039if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10040 cmp -s conftest.i conftest.out \ 10041 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10042fi 10043 $ac_path_lt_DD_found && break 3 10044 done 10045 done 10046 done 10047IFS=$as_save_IFS 10048 if test -z "$ac_cv_path_lt_DD"; then 10049 : 10050 fi 10051else 10052 ac_cv_path_lt_DD=$lt_DD 10053fi 10054 10055rm -f conftest.i conftest2.i conftest.out 10056fi 10057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10058printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 10059 10060 10061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10062printf %s "checking how to truncate binary pipes... " >&6; } 10063if test ${lt_cv_truncate_bin+y} 10064then : 10065 printf %s "(cached) " >&6 10066else $as_nop 10067 printf 0123456789abcdef0123456789abcdef >conftest.i 10068cat conftest.i conftest.i >conftest2.i 10069lt_cv_truncate_bin= 10070if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10071 cmp -s conftest.i conftest.out \ 10072 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10073fi 10074rm -f conftest.i conftest2.i conftest.out 10075test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10076fi 10077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10078printf "%s\n" "$lt_cv_truncate_bin" >&6; } 10079 10080 10081 10082 10083 10084 10085 10086# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10087func_cc_basename () 10088{ 10089 for cc_temp in $*""; do 10090 case $cc_temp in 10091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10093 \-*) ;; 10094 *) break;; 10095 esac 10096 done 10097 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10098} 10099 10100# Check whether --enable-libtool-lock was given. 10101if test ${enable_libtool_lock+y} 10102then : 10103 enableval=$enable_libtool_lock; 10104fi 10105 10106test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10107 10108# Some flags need to be propagated to the compiler or linker for good 10109# libtool support. 10110case $host in 10111ia64-*-hpux*) 10112 # Find out what ABI is being produced by ac_compile, and set mode 10113 # options accordingly. 10114 echo 'int i;' > conftest.$ac_ext 10115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10116 (eval $ac_compile) 2>&5 10117 ac_status=$? 10118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10119 test $ac_status = 0; }; then 10120 case `/usr/bin/file conftest.$ac_objext` in 10121 *ELF-32*) 10122 HPUX_IA64_MODE=32 10123 ;; 10124 *ELF-64*) 10125 HPUX_IA64_MODE=64 10126 ;; 10127 esac 10128 fi 10129 rm -rf conftest* 10130 ;; 10131*-*-irix6*) 10132 # Find out what ABI is being produced by ac_compile, and set linker 10133 # options accordingly. 10134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10136 (eval $ac_compile) 2>&5 10137 ac_status=$? 10138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10139 test $ac_status = 0; }; then 10140 if test yes = "$lt_cv_prog_gnu_ld"; then 10141 case `/usr/bin/file conftest.$ac_objext` in 10142 *32-bit*) 10143 LD="${LD-ld} -melf32bsmip" 10144 ;; 10145 *N32*) 10146 LD="${LD-ld} -melf32bmipn32" 10147 ;; 10148 *64-bit*) 10149 LD="${LD-ld} -melf64bmip" 10150 ;; 10151 esac 10152 else 10153 case `/usr/bin/file conftest.$ac_objext` in 10154 *32-bit*) 10155 LD="${LD-ld} -32" 10156 ;; 10157 *N32*) 10158 LD="${LD-ld} -n32" 10159 ;; 10160 *64-bit*) 10161 LD="${LD-ld} -64" 10162 ;; 10163 esac 10164 fi 10165 fi 10166 rm -rf conftest* 10167 ;; 10168 10169mips64*-*linux*) 10170 # Find out what ABI is being produced by ac_compile, and set linker 10171 # options accordingly. 10172 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10174 (eval $ac_compile) 2>&5 10175 ac_status=$? 10176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10177 test $ac_status = 0; }; then 10178 emul=elf 10179 case `/usr/bin/file conftest.$ac_objext` in 10180 *32-bit*) 10181 emul="${emul}32" 10182 ;; 10183 *64-bit*) 10184 emul="${emul}64" 10185 ;; 10186 esac 10187 case `/usr/bin/file conftest.$ac_objext` in 10188 *MSB*) 10189 emul="${emul}btsmip" 10190 ;; 10191 *LSB*) 10192 emul="${emul}ltsmip" 10193 ;; 10194 esac 10195 case `/usr/bin/file conftest.$ac_objext` in 10196 *N32*) 10197 emul="${emul}n32" 10198 ;; 10199 esac 10200 LD="${LD-ld} -m $emul" 10201 fi 10202 rm -rf conftest* 10203 ;; 10204 10205x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10206s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10207 # Find out what ABI is being produced by ac_compile, and set linker 10208 # options accordingly. Note that the listed cases only cover the 10209 # situations where additional linker options are needed (such as when 10210 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10211 # vice versa); the common cases where no linker options are needed do 10212 # not appear in the list. 10213 echo 'int i;' > conftest.$ac_ext 10214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10215 (eval $ac_compile) 2>&5 10216 ac_status=$? 10217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10218 test $ac_status = 0; }; then 10219 case `/usr/bin/file conftest.o` in 10220 *32-bit*) 10221 case $host in 10222 x86_64-*kfreebsd*-gnu) 10223 LD="${LD-ld} -m elf_i386_fbsd" 10224 ;; 10225 x86_64-*linux*) 10226 case `/usr/bin/file conftest.o` in 10227 *x86-64*) 10228 LD="${LD-ld} -m elf32_x86_64" 10229 ;; 10230 *) 10231 LD="${LD-ld} -m elf_i386" 10232 ;; 10233 esac 10234 ;; 10235 powerpc64le-*linux*) 10236 LD="${LD-ld} -m elf32lppclinux" 10237 ;; 10238 powerpc64-*linux*) 10239 LD="${LD-ld} -m elf32ppclinux" 10240 ;; 10241 s390x-*linux*) 10242 LD="${LD-ld} -m elf_s390" 10243 ;; 10244 sparc64-*linux*) 10245 LD="${LD-ld} -m elf32_sparc" 10246 ;; 10247 esac 10248 ;; 10249 *64-bit*) 10250 case $host in 10251 x86_64-*kfreebsd*-gnu) 10252 LD="${LD-ld} -m elf_x86_64_fbsd" 10253 ;; 10254 x86_64-*linux*) 10255 LD="${LD-ld} -m elf_x86_64" 10256 ;; 10257 powerpcle-*linux*) 10258 LD="${LD-ld} -m elf64lppc" 10259 ;; 10260 powerpc-*linux*) 10261 LD="${LD-ld} -m elf64ppc" 10262 ;; 10263 s390*-*linux*|s390*-*tpf*) 10264 LD="${LD-ld} -m elf64_s390" 10265 ;; 10266 sparc*-*linux*) 10267 LD="${LD-ld} -m elf64_sparc" 10268 ;; 10269 esac 10270 ;; 10271 esac 10272 fi 10273 rm -rf conftest* 10274 ;; 10275 10276*-*-sco3.2v5*) 10277 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10278 SAVE_CFLAGS=$CFLAGS 10279 CFLAGS="$CFLAGS -belf" 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10281printf %s "checking whether the C compiler needs -belf... " >&6; } 10282if test ${lt_cv_cc_needs_belf+y} 10283then : 10284 printf %s "(cached) " >&6 10285else $as_nop 10286 ac_ext=c 10287ac_cpp='$CPP $CPPFLAGS' 10288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10290ac_compiler_gnu=$ac_cv_c_compiler_gnu 10291 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294 10295int 10296main (void) 10297{ 10298 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO" 10304then : 10305 lt_cv_cc_needs_belf=yes 10306else $as_nop 10307 lt_cv_cc_needs_belf=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10310 conftest$ac_exeext conftest.$ac_ext 10311 ac_ext=c 10312ac_cpp='$CPP $CPPFLAGS' 10313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10315ac_compiler_gnu=$ac_cv_c_compiler_gnu 10316 10317fi 10318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10319printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 10320 if test yes != "$lt_cv_cc_needs_belf"; then 10321 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10322 CFLAGS=$SAVE_CFLAGS 10323 fi 10324 ;; 10325*-*solaris*) 10326 # Find out what ABI is being produced by ac_compile, and set linker 10327 # options accordingly. 10328 echo 'int i;' > conftest.$ac_ext 10329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10330 (eval $ac_compile) 2>&5 10331 ac_status=$? 10332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10333 test $ac_status = 0; }; then 10334 case `/usr/bin/file conftest.o` in 10335 *64-bit*) 10336 case $lt_cv_prog_gnu_ld in 10337 yes*) 10338 case $host in 10339 i?86-*-solaris*|x86_64-*-solaris*) 10340 LD="${LD-ld} -m elf_x86_64" 10341 ;; 10342 sparc*-*-solaris*) 10343 LD="${LD-ld} -m elf64_sparc" 10344 ;; 10345 esac 10346 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10347 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10348 LD=${LD-ld}_sol2 10349 fi 10350 ;; 10351 *) 10352 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10353 LD="${LD-ld} -64" 10354 fi 10355 ;; 10356 esac 10357 ;; 10358 esac 10359 fi 10360 rm -rf conftest* 10361 ;; 10362esac 10363 10364need_locks=$enable_libtool_lock 10365 10366if test -n "$ac_tool_prefix"; then 10367 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10368set dummy ${ac_tool_prefix}mt; ac_word=$2 10369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10370printf %s "checking for $ac_word... " >&6; } 10371if test ${ac_cv_prog_MANIFEST_TOOL+y} 10372then : 10373 printf %s "(cached) " >&6 10374else $as_nop 10375 if test -n "$MANIFEST_TOOL"; then 10376 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10377else 10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10379for as_dir in $PATH 10380do 10381 IFS=$as_save_IFS 10382 case $as_dir in #((( 10383 '') as_dir=./ ;; 10384 */) ;; 10385 *) as_dir=$as_dir/ ;; 10386 esac 10387 for ac_exec_ext in '' $ac_executable_extensions; do 10388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10389 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10391 break 2 10392 fi 10393done 10394 done 10395IFS=$as_save_IFS 10396 10397fi 10398fi 10399MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10400if test -n "$MANIFEST_TOOL"; then 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10402printf "%s\n" "$MANIFEST_TOOL" >&6; } 10403else 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10405printf "%s\n" "no" >&6; } 10406fi 10407 10408 10409fi 10410if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10411 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10412 # Extract the first word of "mt", so it can be a program name with args. 10413set dummy mt; ac_word=$2 10414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10415printf %s "checking for $ac_word... " >&6; } 10416if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 10417then : 10418 printf %s "(cached) " >&6 10419else $as_nop 10420 if test -n "$ac_ct_MANIFEST_TOOL"; then 10421 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10422else 10423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10424for as_dir in $PATH 10425do 10426 IFS=$as_save_IFS 10427 case $as_dir in #((( 10428 '') as_dir=./ ;; 10429 */) ;; 10430 *) as_dir=$as_dir/ ;; 10431 esac 10432 for ac_exec_ext in '' $ac_executable_extensions; do 10433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10434 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10436 break 2 10437 fi 10438done 10439 done 10440IFS=$as_save_IFS 10441 10442fi 10443fi 10444ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10445if test -n "$ac_ct_MANIFEST_TOOL"; then 10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10447printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 10448else 10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10450printf "%s\n" "no" >&6; } 10451fi 10452 10453 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10454 MANIFEST_TOOL=":" 10455 else 10456 case $cross_compiling:$ac_tool_warned in 10457yes:) 10458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10460ac_tool_warned=yes ;; 10461esac 10462 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10463 fi 10464else 10465 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10466fi 10467 10468test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10470printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10471if test ${lt_cv_path_mainfest_tool+y} 10472then : 10473 printf %s "(cached) " >&6 10474else $as_nop 10475 lt_cv_path_mainfest_tool=no 10476 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10477 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10478 cat conftest.err >&5 10479 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10480 lt_cv_path_mainfest_tool=yes 10481 fi 10482 rm -f conftest* 10483fi 10484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10485printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 10486if test yes != "$lt_cv_path_mainfest_tool"; then 10487 MANIFEST_TOOL=: 10488fi 10489 10490 10491 10492 10493 10494 10495 case $host_os in 10496 rhapsody* | darwin*) 10497 if test -n "$ac_tool_prefix"; then 10498 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10501printf %s "checking for $ac_word... " >&6; } 10502if test ${ac_cv_prog_DSYMUTIL+y} 10503then : 10504 printf %s "(cached) " >&6 10505else $as_nop 10506 if test -n "$DSYMUTIL"; then 10507 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10508else 10509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10510for as_dir in $PATH 10511do 10512 IFS=$as_save_IFS 10513 case $as_dir in #((( 10514 '') as_dir=./ ;; 10515 */) ;; 10516 *) as_dir=$as_dir/ ;; 10517 esac 10518 for ac_exec_ext in '' $ac_executable_extensions; do 10519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10520 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10522 break 2 10523 fi 10524done 10525 done 10526IFS=$as_save_IFS 10527 10528fi 10529fi 10530DSYMUTIL=$ac_cv_prog_DSYMUTIL 10531if test -n "$DSYMUTIL"; then 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10533printf "%s\n" "$DSYMUTIL" >&6; } 10534else 10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10536printf "%s\n" "no" >&6; } 10537fi 10538 10539 10540fi 10541if test -z "$ac_cv_prog_DSYMUTIL"; then 10542 ac_ct_DSYMUTIL=$DSYMUTIL 10543 # Extract the first word of "dsymutil", so it can be a program name with args. 10544set dummy dsymutil; ac_word=$2 10545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10546printf %s "checking for $ac_word... " >&6; } 10547if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 10548then : 10549 printf %s "(cached) " >&6 10550else $as_nop 10551 if test -n "$ac_ct_DSYMUTIL"; then 10552 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10553else 10554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10555for as_dir in $PATH 10556do 10557 IFS=$as_save_IFS 10558 case $as_dir in #((( 10559 '') as_dir=./ ;; 10560 */) ;; 10561 *) as_dir=$as_dir/ ;; 10562 esac 10563 for ac_exec_ext in '' $ac_executable_extensions; do 10564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10567 break 2 10568 fi 10569done 10570 done 10571IFS=$as_save_IFS 10572 10573fi 10574fi 10575ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10576if test -n "$ac_ct_DSYMUTIL"; then 10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10578printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 10579else 10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10581printf "%s\n" "no" >&6; } 10582fi 10583 10584 if test "x$ac_ct_DSYMUTIL" = x; then 10585 DSYMUTIL=":" 10586 else 10587 case $cross_compiling:$ac_tool_warned in 10588yes:) 10589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10591ac_tool_warned=yes ;; 10592esac 10593 DSYMUTIL=$ac_ct_DSYMUTIL 10594 fi 10595else 10596 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10597fi 10598 10599 if test -n "$ac_tool_prefix"; then 10600 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10601set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10603printf %s "checking for $ac_word... " >&6; } 10604if test ${ac_cv_prog_NMEDIT+y} 10605then : 10606 printf %s "(cached) " >&6 10607else $as_nop 10608 if test -n "$NMEDIT"; then 10609 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10610else 10611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10612for as_dir in $PATH 10613do 10614 IFS=$as_save_IFS 10615 case $as_dir in #((( 10616 '') as_dir=./ ;; 10617 */) ;; 10618 *) as_dir=$as_dir/ ;; 10619 esac 10620 for ac_exec_ext in '' $ac_executable_extensions; do 10621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10622 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10624 break 2 10625 fi 10626done 10627 done 10628IFS=$as_save_IFS 10629 10630fi 10631fi 10632NMEDIT=$ac_cv_prog_NMEDIT 10633if test -n "$NMEDIT"; then 10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10635printf "%s\n" "$NMEDIT" >&6; } 10636else 10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10638printf "%s\n" "no" >&6; } 10639fi 10640 10641 10642fi 10643if test -z "$ac_cv_prog_NMEDIT"; then 10644 ac_ct_NMEDIT=$NMEDIT 10645 # Extract the first word of "nmedit", so it can be a program name with args. 10646set dummy nmedit; ac_word=$2 10647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10648printf %s "checking for $ac_word... " >&6; } 10649if test ${ac_cv_prog_ac_ct_NMEDIT+y} 10650then : 10651 printf %s "(cached) " >&6 10652else $as_nop 10653 if test -n "$ac_ct_NMEDIT"; then 10654 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10655else 10656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10657for as_dir in $PATH 10658do 10659 IFS=$as_save_IFS 10660 case $as_dir in #((( 10661 '') as_dir=./ ;; 10662 */) ;; 10663 *) as_dir=$as_dir/ ;; 10664 esac 10665 for ac_exec_ext in '' $ac_executable_extensions; do 10666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10667 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10669 break 2 10670 fi 10671done 10672 done 10673IFS=$as_save_IFS 10674 10675fi 10676fi 10677ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10678if test -n "$ac_ct_NMEDIT"; then 10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10680printf "%s\n" "$ac_ct_NMEDIT" >&6; } 10681else 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10683printf "%s\n" "no" >&6; } 10684fi 10685 10686 if test "x$ac_ct_NMEDIT" = x; then 10687 NMEDIT=":" 10688 else 10689 case $cross_compiling:$ac_tool_warned in 10690yes:) 10691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10693ac_tool_warned=yes ;; 10694esac 10695 NMEDIT=$ac_ct_NMEDIT 10696 fi 10697else 10698 NMEDIT="$ac_cv_prog_NMEDIT" 10699fi 10700 10701 if test -n "$ac_tool_prefix"; then 10702 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10703set dummy ${ac_tool_prefix}lipo; ac_word=$2 10704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10705printf %s "checking for $ac_word... " >&6; } 10706if test ${ac_cv_prog_LIPO+y} 10707then : 10708 printf %s "(cached) " >&6 10709else $as_nop 10710 if test -n "$LIPO"; then 10711 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10712else 10713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10714for as_dir in $PATH 10715do 10716 IFS=$as_save_IFS 10717 case $as_dir in #((( 10718 '') as_dir=./ ;; 10719 */) ;; 10720 *) as_dir=$as_dir/ ;; 10721 esac 10722 for ac_exec_ext in '' $ac_executable_extensions; do 10723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10724 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10726 break 2 10727 fi 10728done 10729 done 10730IFS=$as_save_IFS 10731 10732fi 10733fi 10734LIPO=$ac_cv_prog_LIPO 10735if test -n "$LIPO"; then 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10737printf "%s\n" "$LIPO" >&6; } 10738else 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10740printf "%s\n" "no" >&6; } 10741fi 10742 10743 10744fi 10745if test -z "$ac_cv_prog_LIPO"; then 10746 ac_ct_LIPO=$LIPO 10747 # Extract the first word of "lipo", so it can be a program name with args. 10748set dummy lipo; ac_word=$2 10749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10750printf %s "checking for $ac_word... " >&6; } 10751if test ${ac_cv_prog_ac_ct_LIPO+y} 10752then : 10753 printf %s "(cached) " >&6 10754else $as_nop 10755 if test -n "$ac_ct_LIPO"; then 10756 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10757else 10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10759for as_dir in $PATH 10760do 10761 IFS=$as_save_IFS 10762 case $as_dir in #((( 10763 '') as_dir=./ ;; 10764 */) ;; 10765 *) as_dir=$as_dir/ ;; 10766 esac 10767 for ac_exec_ext in '' $ac_executable_extensions; do 10768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10769 ac_cv_prog_ac_ct_LIPO="lipo" 10770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10771 break 2 10772 fi 10773done 10774 done 10775IFS=$as_save_IFS 10776 10777fi 10778fi 10779ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10780if test -n "$ac_ct_LIPO"; then 10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10782printf "%s\n" "$ac_ct_LIPO" >&6; } 10783else 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10785printf "%s\n" "no" >&6; } 10786fi 10787 10788 if test "x$ac_ct_LIPO" = x; then 10789 LIPO=":" 10790 else 10791 case $cross_compiling:$ac_tool_warned in 10792yes:) 10793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10795ac_tool_warned=yes ;; 10796esac 10797 LIPO=$ac_ct_LIPO 10798 fi 10799else 10800 LIPO="$ac_cv_prog_LIPO" 10801fi 10802 10803 if test -n "$ac_tool_prefix"; then 10804 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10805set dummy ${ac_tool_prefix}otool; ac_word=$2 10806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10807printf %s "checking for $ac_word... " >&6; } 10808if test ${ac_cv_prog_OTOOL+y} 10809then : 10810 printf %s "(cached) " >&6 10811else $as_nop 10812 if test -n "$OTOOL"; then 10813 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10814else 10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10816for as_dir in $PATH 10817do 10818 IFS=$as_save_IFS 10819 case $as_dir in #((( 10820 '') as_dir=./ ;; 10821 */) ;; 10822 *) as_dir=$as_dir/ ;; 10823 esac 10824 for ac_exec_ext in '' $ac_executable_extensions; do 10825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10826 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10828 break 2 10829 fi 10830done 10831 done 10832IFS=$as_save_IFS 10833 10834fi 10835fi 10836OTOOL=$ac_cv_prog_OTOOL 10837if test -n "$OTOOL"; then 10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10839printf "%s\n" "$OTOOL" >&6; } 10840else 10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10842printf "%s\n" "no" >&6; } 10843fi 10844 10845 10846fi 10847if test -z "$ac_cv_prog_OTOOL"; then 10848 ac_ct_OTOOL=$OTOOL 10849 # Extract the first word of "otool", so it can be a program name with args. 10850set dummy otool; ac_word=$2 10851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10852printf %s "checking for $ac_word... " >&6; } 10853if test ${ac_cv_prog_ac_ct_OTOOL+y} 10854then : 10855 printf %s "(cached) " >&6 10856else $as_nop 10857 if test -n "$ac_ct_OTOOL"; then 10858 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10859else 10860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10861for as_dir in $PATH 10862do 10863 IFS=$as_save_IFS 10864 case $as_dir in #((( 10865 '') as_dir=./ ;; 10866 */) ;; 10867 *) as_dir=$as_dir/ ;; 10868 esac 10869 for ac_exec_ext in '' $ac_executable_extensions; do 10870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10871 ac_cv_prog_ac_ct_OTOOL="otool" 10872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10873 break 2 10874 fi 10875done 10876 done 10877IFS=$as_save_IFS 10878 10879fi 10880fi 10881ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10882if test -n "$ac_ct_OTOOL"; then 10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10884printf "%s\n" "$ac_ct_OTOOL" >&6; } 10885else 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10887printf "%s\n" "no" >&6; } 10888fi 10889 10890 if test "x$ac_ct_OTOOL" = x; then 10891 OTOOL=":" 10892 else 10893 case $cross_compiling:$ac_tool_warned in 10894yes:) 10895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10896printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10897ac_tool_warned=yes ;; 10898esac 10899 OTOOL=$ac_ct_OTOOL 10900 fi 10901else 10902 OTOOL="$ac_cv_prog_OTOOL" 10903fi 10904 10905 if test -n "$ac_tool_prefix"; then 10906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10907set dummy ${ac_tool_prefix}otool64; ac_word=$2 10908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10909printf %s "checking for $ac_word... " >&6; } 10910if test ${ac_cv_prog_OTOOL64+y} 10911then : 10912 printf %s "(cached) " >&6 10913else $as_nop 10914 if test -n "$OTOOL64"; then 10915 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10916else 10917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10918for as_dir in $PATH 10919do 10920 IFS=$as_save_IFS 10921 case $as_dir in #((( 10922 '') as_dir=./ ;; 10923 */) ;; 10924 *) as_dir=$as_dir/ ;; 10925 esac 10926 for ac_exec_ext in '' $ac_executable_extensions; do 10927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10928 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10930 break 2 10931 fi 10932done 10933 done 10934IFS=$as_save_IFS 10935 10936fi 10937fi 10938OTOOL64=$ac_cv_prog_OTOOL64 10939if test -n "$OTOOL64"; then 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10941printf "%s\n" "$OTOOL64" >&6; } 10942else 10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10944printf "%s\n" "no" >&6; } 10945fi 10946 10947 10948fi 10949if test -z "$ac_cv_prog_OTOOL64"; then 10950 ac_ct_OTOOL64=$OTOOL64 10951 # Extract the first word of "otool64", so it can be a program name with args. 10952set dummy otool64; ac_word=$2 10953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10954printf %s "checking for $ac_word... " >&6; } 10955if test ${ac_cv_prog_ac_ct_OTOOL64+y} 10956then : 10957 printf %s "(cached) " >&6 10958else $as_nop 10959 if test -n "$ac_ct_OTOOL64"; then 10960 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10961else 10962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10963for as_dir in $PATH 10964do 10965 IFS=$as_save_IFS 10966 case $as_dir in #((( 10967 '') as_dir=./ ;; 10968 */) ;; 10969 *) as_dir=$as_dir/ ;; 10970 esac 10971 for ac_exec_ext in '' $ac_executable_extensions; do 10972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10973 ac_cv_prog_ac_ct_OTOOL64="otool64" 10974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10975 break 2 10976 fi 10977done 10978 done 10979IFS=$as_save_IFS 10980 10981fi 10982fi 10983ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10984if test -n "$ac_ct_OTOOL64"; then 10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10986printf "%s\n" "$ac_ct_OTOOL64" >&6; } 10987else 10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10989printf "%s\n" "no" >&6; } 10990fi 10991 10992 if test "x$ac_ct_OTOOL64" = x; then 10993 OTOOL64=":" 10994 else 10995 case $cross_compiling:$ac_tool_warned in 10996yes:) 10997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10999ac_tool_warned=yes ;; 11000esac 11001 OTOOL64=$ac_ct_OTOOL64 11002 fi 11003else 11004 OTOOL64="$ac_cv_prog_OTOOL64" 11005fi 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11034printf %s "checking for -single_module linker flag... " >&6; } 11035if test ${lt_cv_apple_cc_single_mod+y} 11036then : 11037 printf %s "(cached) " >&6 11038else $as_nop 11039 lt_cv_apple_cc_single_mod=no 11040 if test -z "$LT_MULTI_MODULE"; then 11041 # By default we will add the -single_module flag. You can override 11042 # by either setting the environment variable LT_MULTI_MODULE 11043 # non-empty at configure time, or by adding -multi_module to the 11044 # link flags. 11045 rm -rf libconftest.dylib* 11046 echo "int foo(void){return 1;}" > conftest.c 11047 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11048-dynamiclib -Wl,-single_module conftest.c" >&5 11049 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11050 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11051 _lt_result=$? 11052 # If there is a non-empty error log, and "single_module" 11053 # appears in it, assume the flag caused a linker warning 11054 if test -s conftest.err && $GREP single_module conftest.err; then 11055 cat conftest.err >&5 11056 # Otherwise, if the output was created with a 0 exit code from 11057 # the compiler, it worked. 11058 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11059 lt_cv_apple_cc_single_mod=yes 11060 else 11061 cat conftest.err >&5 11062 fi 11063 rm -rf libconftest.dylib* 11064 rm -f conftest.* 11065 fi 11066fi 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11068printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 11069 11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11071printf %s "checking for -exported_symbols_list linker flag... " >&6; } 11072if test ${lt_cv_ld_exported_symbols_list+y} 11073then : 11074 printf %s "(cached) " >&6 11075else $as_nop 11076 lt_cv_ld_exported_symbols_list=no 11077 save_LDFLAGS=$LDFLAGS 11078 echo "_main" > conftest.sym 11079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11081/* end confdefs.h. */ 11082 11083int 11084main (void) 11085{ 11086 11087 ; 11088 return 0; 11089} 11090_ACEOF 11091if ac_fn_c_try_link "$LINENO" 11092then : 11093 lt_cv_ld_exported_symbols_list=yes 11094else $as_nop 11095 lt_cv_ld_exported_symbols_list=no 11096fi 11097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11098 conftest$ac_exeext conftest.$ac_ext 11099 LDFLAGS=$save_LDFLAGS 11100 11101fi 11102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11103printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 11104 11105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11106printf %s "checking for -force_load linker flag... " >&6; } 11107if test ${lt_cv_ld_force_load+y} 11108then : 11109 printf %s "(cached) " >&6 11110else $as_nop 11111 lt_cv_ld_force_load=no 11112 cat > conftest.c << _LT_EOF 11113int forced_loaded() { return 2;} 11114_LT_EOF 11115 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11116 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11117 echo "$AR cru libconftest.a conftest.o" >&5 11118 $AR cru libconftest.a conftest.o 2>&5 11119 echo "$RANLIB libconftest.a" >&5 11120 $RANLIB libconftest.a 2>&5 11121 cat > conftest.c << _LT_EOF 11122int main() { return 0;} 11123_LT_EOF 11124 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11125 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11126 _lt_result=$? 11127 if test -s conftest.err && $GREP force_load conftest.err; then 11128 cat conftest.err >&5 11129 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11130 lt_cv_ld_force_load=yes 11131 else 11132 cat conftest.err >&5 11133 fi 11134 rm -f conftest.err libconftest.a conftest conftest.c 11135 rm -rf conftest.dSYM 11136 11137fi 11138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11139printf "%s\n" "$lt_cv_ld_force_load" >&6; } 11140 case $host_os in 11141 rhapsody* | darwin1.[012]) 11142 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11143 darwin1.*) 11144 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11145 darwin*) # darwin 5.x on 11146 # if running on 10.5 or later, the deployment target defaults 11147 # to the OS version, if on x86, and 10.4, the deployment 11148 # target defaults to 10.4. Don't you love it? 11149 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11150 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11151 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11152 10.[012][,.]*) 11153 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11154 10.*) 11155 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11156 esac 11157 ;; 11158 esac 11159 if test yes = "$lt_cv_apple_cc_single_mod"; then 11160 _lt_dar_single_mod='$single_module' 11161 fi 11162 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11163 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11164 else 11165 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11166 fi 11167 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11168 _lt_dsymutil='~$DSYMUTIL $lib || :' 11169 else 11170 _lt_dsymutil= 11171 fi 11172 ;; 11173 esac 11174 11175# func_munge_path_list VARIABLE PATH 11176# ----------------------------------- 11177# VARIABLE is name of variable containing _space_ separated list of 11178# directories to be munged by the contents of PATH, which is string 11179# having a format: 11180# "DIR[:DIR]:" 11181# string "DIR[ DIR]" will be prepended to VARIABLE 11182# ":DIR[:DIR]" 11183# string "DIR[ DIR]" will be appended to VARIABLE 11184# "DIRP[:DIRP]::[DIRA:]DIRA" 11185# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11186# "DIRA[ DIRA]" will be appended to VARIABLE 11187# "DIR[:DIR]" 11188# VARIABLE will be replaced by "DIR[ DIR]" 11189func_munge_path_list () 11190{ 11191 case x$2 in 11192 x) 11193 ;; 11194 *:) 11195 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11196 ;; 11197 x:*) 11198 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11199 ;; 11200 *::*) 11201 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11202 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11203 ;; 11204 *) 11205 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11206 ;; 11207 esac 11208} 11209 11210ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11211" 11212if test "x$ac_cv_header_dlfcn_h" = xyes 11213then : 11214 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 11215 11216fi 11217 11218 11219 11220 11221 11222 11223 11224# Set options 11225 11226 11227 11228 enable_dlopen=no 11229 11230 11231 enable_win32_dll=no 11232 11233 11234 # Check whether --enable-shared was given. 11235if test ${enable_shared+y} 11236then : 11237 enableval=$enable_shared; p=${PACKAGE-default} 11238 case $enableval in 11239 yes) enable_shared=yes ;; 11240 no) enable_shared=no ;; 11241 *) 11242 enable_shared=no 11243 # Look at the argument we got. We use all the common list separators. 11244 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11245 for pkg in $enableval; do 11246 IFS=$lt_save_ifs 11247 if test "X$pkg" = "X$p"; then 11248 enable_shared=yes 11249 fi 11250 done 11251 IFS=$lt_save_ifs 11252 ;; 11253 esac 11254else $as_nop 11255 enable_shared=yes 11256fi 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 # Check whether --enable-static was given. 11267if test ${enable_static+y} 11268then : 11269 enableval=$enable_static; p=${PACKAGE-default} 11270 case $enableval in 11271 yes) enable_static=yes ;; 11272 no) enable_static=no ;; 11273 *) 11274 enable_static=no 11275 # Look at the argument we got. We use all the common list separators. 11276 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11277 for pkg in $enableval; do 11278 IFS=$lt_save_ifs 11279 if test "X$pkg" = "X$p"; then 11280 enable_static=yes 11281 fi 11282 done 11283 IFS=$lt_save_ifs 11284 ;; 11285 esac 11286else $as_nop 11287 enable_static=yes 11288fi 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299# Check whether --with-pic was given. 11300if test ${with_pic+y} 11301then : 11302 withval=$with_pic; lt_p=${PACKAGE-default} 11303 case $withval in 11304 yes|no) pic_mode=$withval ;; 11305 *) 11306 pic_mode=default 11307 # Look at the argument we got. We use all the common list separators. 11308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11309 for lt_pkg in $withval; do 11310 IFS=$lt_save_ifs 11311 if test "X$lt_pkg" = "X$lt_p"; then 11312 pic_mode=yes 11313 fi 11314 done 11315 IFS=$lt_save_ifs 11316 ;; 11317 esac 11318else $as_nop 11319 pic_mode=default 11320fi 11321 11322 11323 11324 11325 11326 11327 11328 11329 # Check whether --enable-fast-install was given. 11330if test ${enable_fast_install+y} 11331then : 11332 enableval=$enable_fast_install; p=${PACKAGE-default} 11333 case $enableval in 11334 yes) enable_fast_install=yes ;; 11335 no) enable_fast_install=no ;; 11336 *) 11337 enable_fast_install=no 11338 # Look at the argument we got. We use all the common list separators. 11339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11340 for pkg in $enableval; do 11341 IFS=$lt_save_ifs 11342 if test "X$pkg" = "X$p"; then 11343 enable_fast_install=yes 11344 fi 11345 done 11346 IFS=$lt_save_ifs 11347 ;; 11348 esac 11349else $as_nop 11350 enable_fast_install=yes 11351fi 11352 11353 11354 11355 11356 11357 11358 11359 11360 shared_archive_member_spec= 11361case $host,$enable_shared in 11362power*-*-aix[5-9]*,yes) 11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11364printf %s "checking which variant of shared library versioning to provide... " >&6; } 11365 11366# Check whether --with-aix-soname was given. 11367if test ${with_aix_soname+y} 11368then : 11369 withval=$with_aix_soname; case $withval in 11370 aix|svr4|both) 11371 ;; 11372 *) 11373 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11374 ;; 11375 esac 11376 lt_cv_with_aix_soname=$with_aix_soname 11377else $as_nop 11378 if test ${lt_cv_with_aix_soname+y} 11379then : 11380 printf %s "(cached) " >&6 11381else $as_nop 11382 lt_cv_with_aix_soname=aix 11383fi 11384 11385 with_aix_soname=$lt_cv_with_aix_soname 11386fi 11387 11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11389printf "%s\n" "$with_aix_soname" >&6; } 11390 if test aix != "$with_aix_soname"; then 11391 # For the AIX way of multilib, we name the shared archive member 11392 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11393 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11394 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11395 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11396 if test 64 = "${OBJECT_MODE-32}"; then 11397 shared_archive_member_spec=shr_64 11398 else 11399 shared_archive_member_spec=shr 11400 fi 11401 fi 11402 ;; 11403*) 11404 with_aix_soname=aix 11405 ;; 11406esac 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417# This can be used to rebuild libtool when needed 11418LIBTOOL_DEPS=$ltmain 11419 11420# Always use our own libtool. 11421LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452test -z "$LN_S" && LN_S="ln -s" 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467if test -n "${ZSH_VERSION+set}"; then 11468 setopt NO_GLOB_SUBST 11469fi 11470 11471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11472printf %s "checking for objdir... " >&6; } 11473if test ${lt_cv_objdir+y} 11474then : 11475 printf %s "(cached) " >&6 11476else $as_nop 11477 rm -f .libs 2>/dev/null 11478mkdir .libs 2>/dev/null 11479if test -d .libs; then 11480 lt_cv_objdir=.libs 11481else 11482 # MS-DOS does not allow filenames that begin with a dot. 11483 lt_cv_objdir=_libs 11484fi 11485rmdir .libs 2>/dev/null 11486fi 11487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11488printf "%s\n" "$lt_cv_objdir" >&6; } 11489objdir=$lt_cv_objdir 11490 11491 11492 11493 11494 11495printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 11496 11497 11498 11499 11500case $host_os in 11501aix3*) 11502 # AIX sometimes has problems with the GCC collect2 program. For some 11503 # reason, if we set the COLLECT_NAMES environment variable, the problems 11504 # vanish in a puff of smoke. 11505 if test set != "${COLLECT_NAMES+set}"; then 11506 COLLECT_NAMES= 11507 export COLLECT_NAMES 11508 fi 11509 ;; 11510esac 11511 11512# Global variables: 11513ofile=libtool 11514can_build_shared=yes 11515 11516# All known linkers require a '.a' archive for static linking (except MSVC, 11517# which needs '.lib'). 11518libext=a 11519 11520with_gnu_ld=$lt_cv_prog_gnu_ld 11521 11522old_CC=$CC 11523old_CFLAGS=$CFLAGS 11524 11525# Set sane defaults for various variables 11526test -z "$CC" && CC=cc 11527test -z "$LTCC" && LTCC=$CC 11528test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11529test -z "$LD" && LD=ld 11530test -z "$ac_objext" && ac_objext=o 11531 11532func_cc_basename $compiler 11533cc_basename=$func_cc_basename_result 11534 11535 11536# Only perform the check for file, if the check method requires it 11537test -z "$MAGIC_CMD" && MAGIC_CMD=file 11538case $deplibs_check_method in 11539file_magic*) 11540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11542printf %s "checking for ${ac_tool_prefix}file... " >&6; } 11543if test ${lt_cv_path_MAGIC_CMD+y} 11544then : 11545 printf %s "(cached) " >&6 11546else $as_nop 11547 case $MAGIC_CMD in 11548[\\/*] | ?:[\\/]*) 11549 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11550 ;; 11551*) 11552 lt_save_MAGIC_CMD=$MAGIC_CMD 11553 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11555 for ac_dir in $ac_dummy; do 11556 IFS=$lt_save_ifs 11557 test -z "$ac_dir" && ac_dir=. 11558 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11559 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11560 if test -n "$file_magic_test_file"; then 11561 case $deplibs_check_method in 11562 "file_magic "*) 11563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11564 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11566 $EGREP "$file_magic_regex" > /dev/null; then 11567 : 11568 else 11569 cat <<_LT_EOF 1>&2 11570 11571*** Warning: the command libtool uses to detect shared libraries, 11572*** $file_magic_cmd, produces output that libtool cannot recognize. 11573*** The result is that libtool may fail to recognize shared libraries 11574*** as such. This will affect the creation of libtool libraries that 11575*** depend on shared libraries, but programs linked with such libtool 11576*** libraries will work regardless of this problem. Nevertheless, you 11577*** may want to report the problem to your system manager and/or to 11578*** bug-libtool@gnu.org 11579 11580_LT_EOF 11581 fi ;; 11582 esac 11583 fi 11584 break 11585 fi 11586 done 11587 IFS=$lt_save_ifs 11588 MAGIC_CMD=$lt_save_MAGIC_CMD 11589 ;; 11590esac 11591fi 11592 11593MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11594if test -n "$MAGIC_CMD"; then 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11596printf "%s\n" "$MAGIC_CMD" >&6; } 11597else 11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11599printf "%s\n" "no" >&6; } 11600fi 11601 11602 11603 11604 11605 11606if test -z "$lt_cv_path_MAGIC_CMD"; then 11607 if test -n "$ac_tool_prefix"; then 11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11609printf %s "checking for file... " >&6; } 11610if test ${lt_cv_path_MAGIC_CMD+y} 11611then : 11612 printf %s "(cached) " >&6 11613else $as_nop 11614 case $MAGIC_CMD in 11615[\\/*] | ?:[\\/]*) 11616 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11617 ;; 11618*) 11619 lt_save_MAGIC_CMD=$MAGIC_CMD 11620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11622 for ac_dir in $ac_dummy; do 11623 IFS=$lt_save_ifs 11624 test -z "$ac_dir" && ac_dir=. 11625 if test -f "$ac_dir/file"; then 11626 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11627 if test -n "$file_magic_test_file"; then 11628 case $deplibs_check_method in 11629 "file_magic "*) 11630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11631 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11633 $EGREP "$file_magic_regex" > /dev/null; then 11634 : 11635 else 11636 cat <<_LT_EOF 1>&2 11637 11638*** Warning: the command libtool uses to detect shared libraries, 11639*** $file_magic_cmd, produces output that libtool cannot recognize. 11640*** The result is that libtool may fail to recognize shared libraries 11641*** as such. This will affect the creation of libtool libraries that 11642*** depend on shared libraries, but programs linked with such libtool 11643*** libraries will work regardless of this problem. Nevertheless, you 11644*** may want to report the problem to your system manager and/or to 11645*** bug-libtool@gnu.org 11646 11647_LT_EOF 11648 fi ;; 11649 esac 11650 fi 11651 break 11652 fi 11653 done 11654 IFS=$lt_save_ifs 11655 MAGIC_CMD=$lt_save_MAGIC_CMD 11656 ;; 11657esac 11658fi 11659 11660MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11661if test -n "$MAGIC_CMD"; then 11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11663printf "%s\n" "$MAGIC_CMD" >&6; } 11664else 11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11666printf "%s\n" "no" >&6; } 11667fi 11668 11669 11670 else 11671 MAGIC_CMD=: 11672 fi 11673fi 11674 11675 fi 11676 ;; 11677esac 11678 11679# Use C for the default configuration in the libtool script 11680 11681lt_save_CC=$CC 11682ac_ext=c 11683ac_cpp='$CPP $CPPFLAGS' 11684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11686ac_compiler_gnu=$ac_cv_c_compiler_gnu 11687 11688 11689# Source file extension for C test sources. 11690ac_ext=c 11691 11692# Object file extension for compiled C test sources. 11693objext=o 11694objext=$objext 11695 11696# Code to be used in simple compile tests 11697lt_simple_compile_test_code="int some_variable = 0;" 11698 11699# Code to be used in simple link tests 11700lt_simple_link_test_code='int main(){return(0);}' 11701 11702 11703 11704 11705 11706 11707 11708# If no C compiler was specified, use CC. 11709LTCC=${LTCC-"$CC"} 11710 11711# If no C compiler flags were specified, use CFLAGS. 11712LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11713 11714# Allow CC to be a program name with arguments. 11715compiler=$CC 11716 11717# Save the default compiler, since it gets overwritten when the other 11718# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11719compiler_DEFAULT=$CC 11720 11721# save warnings/boilerplate of simple test code 11722ac_outfile=conftest.$ac_objext 11723echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11724eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11725_lt_compiler_boilerplate=`cat conftest.err` 11726$RM conftest* 11727 11728ac_outfile=conftest.$ac_objext 11729echo "$lt_simple_link_test_code" >conftest.$ac_ext 11730eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11731_lt_linker_boilerplate=`cat conftest.err` 11732$RM -r conftest* 11733 11734 11735if test -n "$compiler"; then 11736 11737lt_prog_compiler_no_builtin_flag= 11738 11739if test yes = "$GCC"; then 11740 case $cc_basename in 11741 nvcc*) 11742 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11743 *) 11744 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11745 esac 11746 11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11748printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11749if test ${lt_cv_prog_compiler_rtti_exceptions+y} 11750then : 11751 printf %s "(cached) " >&6 11752else $as_nop 11753 lt_cv_prog_compiler_rtti_exceptions=no 11754 ac_outfile=conftest.$ac_objext 11755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11756 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11757 # Insert the option either (1) after the last *FLAGS variable, or 11758 # (2) before a word containing "conftest.", or (3) at the end. 11759 # Note that $ac_compile itself does not contain backslashes and begins 11760 # with a dollar sign (not a hyphen), so the echo should work correctly. 11761 # The option is referenced via a variable to avoid confusing sed. 11762 lt_compile=`echo "$ac_compile" | $SED \ 11763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11765 -e 's:$: $lt_compiler_flag:'` 11766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11767 (eval "$lt_compile" 2>conftest.err) 11768 ac_status=$? 11769 cat conftest.err >&5 11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11771 if (exit $ac_status) && test -s "$ac_outfile"; then 11772 # The compiler can only warn and ignore the option if not recognized 11773 # So say no if there are warnings other than the usual output. 11774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11777 lt_cv_prog_compiler_rtti_exceptions=yes 11778 fi 11779 fi 11780 $RM conftest* 11781 11782fi 11783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11784printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11785 11786if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11787 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11788else 11789 : 11790fi 11791 11792fi 11793 11794 11795 11796 11797 11798 11799 lt_prog_compiler_wl= 11800lt_prog_compiler_pic= 11801lt_prog_compiler_static= 11802 11803 11804 if test yes = "$GCC"; then 11805 lt_prog_compiler_wl='-Wl,' 11806 lt_prog_compiler_static='-static' 11807 11808 case $host_os in 11809 aix*) 11810 # All AIX code is PIC. 11811 if test ia64 = "$host_cpu"; then 11812 # AIX 5 now supports IA64 processor 11813 lt_prog_compiler_static='-Bstatic' 11814 fi 11815 lt_prog_compiler_pic='-fPIC' 11816 ;; 11817 11818 amigaos*) 11819 case $host_cpu in 11820 powerpc) 11821 # see comment about AmigaOS4 .so support 11822 lt_prog_compiler_pic='-fPIC' 11823 ;; 11824 m68k) 11825 # FIXME: we need at least 68020 code to build shared libraries, but 11826 # adding the '-m68020' flag to GCC prevents building anything better, 11827 # like '-m68040'. 11828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11829 ;; 11830 esac 11831 ;; 11832 11833 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11834 # PIC is the default for these OSes. 11835 ;; 11836 11837 mingw* | cygwin* | pw32* | os2* | cegcc*) 11838 # This hack is so that the source file can tell whether it is being 11839 # built for inclusion in a dll (and should export symbols for example). 11840 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11841 # (--disable-auto-import) libraries 11842 lt_prog_compiler_pic='-DDLL_EXPORT' 11843 case $host_os in 11844 os2*) 11845 lt_prog_compiler_static='$wl-static' 11846 ;; 11847 esac 11848 ;; 11849 11850 darwin* | rhapsody*) 11851 # PIC is the default on this platform 11852 # Common symbols not allowed in MH_DYLIB files 11853 lt_prog_compiler_pic='-fno-common' 11854 ;; 11855 11856 haiku*) 11857 # PIC is the default for Haiku. 11858 # The "-static" flag exists, but is broken. 11859 lt_prog_compiler_static= 11860 ;; 11861 11862 hpux*) 11863 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11864 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11865 # sets the default TLS model and affects inlining. 11866 case $host_cpu in 11867 hppa*64*) 11868 # +Z the default 11869 ;; 11870 *) 11871 lt_prog_compiler_pic='-fPIC' 11872 ;; 11873 esac 11874 ;; 11875 11876 interix[3-9]*) 11877 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11878 # Instead, we relocate shared libraries at runtime. 11879 ;; 11880 11881 msdosdjgpp*) 11882 # Just because we use GCC doesn't mean we suddenly get shared libraries 11883 # on systems that don't support them. 11884 lt_prog_compiler_can_build_shared=no 11885 enable_shared=no 11886 ;; 11887 11888 *nto* | *qnx*) 11889 # QNX uses GNU C++, but need to define -shared option too, otherwise 11890 # it will coredump. 11891 lt_prog_compiler_pic='-fPIC -shared' 11892 ;; 11893 11894 sysv4*MP*) 11895 if test -d /usr/nec; then 11896 lt_prog_compiler_pic=-Kconform_pic 11897 fi 11898 ;; 11899 11900 *) 11901 lt_prog_compiler_pic='-fPIC' 11902 ;; 11903 esac 11904 11905 case $cc_basename in 11906 nvcc*) # Cuda Compiler Driver 2.2 11907 lt_prog_compiler_wl='-Xlinker ' 11908 if test -n "$lt_prog_compiler_pic"; then 11909 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11910 fi 11911 ;; 11912 esac 11913 else 11914 # PORTME Check for flag to pass linker flags through the system compiler. 11915 case $host_os in 11916 aix*) 11917 lt_prog_compiler_wl='-Wl,' 11918 if test ia64 = "$host_cpu"; then 11919 # AIX 5 now supports IA64 processor 11920 lt_prog_compiler_static='-Bstatic' 11921 else 11922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11923 fi 11924 ;; 11925 11926 darwin* | rhapsody*) 11927 # PIC is the default on this platform 11928 # Common symbols not allowed in MH_DYLIB files 11929 lt_prog_compiler_pic='-fno-common' 11930 case $cc_basename in 11931 nagfor*) 11932 # NAG Fortran compiler 11933 lt_prog_compiler_wl='-Wl,-Wl,,' 11934 lt_prog_compiler_pic='-PIC' 11935 lt_prog_compiler_static='-Bstatic' 11936 ;; 11937 esac 11938 ;; 11939 11940 mingw* | cygwin* | pw32* | os2* | cegcc*) 11941 # This hack is so that the source file can tell whether it is being 11942 # built for inclusion in a dll (and should export symbols for example). 11943 lt_prog_compiler_pic='-DDLL_EXPORT' 11944 case $host_os in 11945 os2*) 11946 lt_prog_compiler_static='$wl-static' 11947 ;; 11948 esac 11949 ;; 11950 11951 hpux9* | hpux10* | hpux11*) 11952 lt_prog_compiler_wl='-Wl,' 11953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11954 # not for PA HP-UX. 11955 case $host_cpu in 11956 hppa*64*|ia64*) 11957 # +Z the default 11958 ;; 11959 *) 11960 lt_prog_compiler_pic='+Z' 11961 ;; 11962 esac 11963 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11964 lt_prog_compiler_static='$wl-a ${wl}archive' 11965 ;; 11966 11967 irix5* | irix6* | nonstopux*) 11968 lt_prog_compiler_wl='-Wl,' 11969 # PIC (with -KPIC) is the default. 11970 lt_prog_compiler_static='-non_shared' 11971 ;; 11972 11973 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11974 case $cc_basename in 11975 # old Intel for x86_64, which still supported -KPIC. 11976 ecc*) 11977 lt_prog_compiler_wl='-Wl,' 11978 lt_prog_compiler_pic='-KPIC' 11979 lt_prog_compiler_static='-static' 11980 ;; 11981 # icc used to be incompatible with GCC. 11982 # ICC 10 doesn't accept -KPIC any more. 11983 icc* | ifort*) 11984 lt_prog_compiler_wl='-Wl,' 11985 lt_prog_compiler_pic='-fPIC' 11986 lt_prog_compiler_static='-static' 11987 ;; 11988 # Lahey Fortran 8.1. 11989 lf95*) 11990 lt_prog_compiler_wl='-Wl,' 11991 lt_prog_compiler_pic='--shared' 11992 lt_prog_compiler_static='--static' 11993 ;; 11994 nagfor*) 11995 # NAG Fortran compiler 11996 lt_prog_compiler_wl='-Wl,-Wl,,' 11997 lt_prog_compiler_pic='-PIC' 11998 lt_prog_compiler_static='-Bstatic' 11999 ;; 12000 tcc*) 12001 # Fabrice Bellard et al's Tiny C Compiler 12002 lt_prog_compiler_wl='-Wl,' 12003 lt_prog_compiler_pic='-fPIC' 12004 lt_prog_compiler_static='-static' 12005 ;; 12006 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12007 # Portland Group compilers (*not* the Pentium gcc compiler, 12008 # which looks to be a dead project) 12009 lt_prog_compiler_wl='-Wl,' 12010 lt_prog_compiler_pic='-fpic' 12011 lt_prog_compiler_static='-Bstatic' 12012 ;; 12013 ccc*) 12014 lt_prog_compiler_wl='-Wl,' 12015 # All Alpha code is PIC. 12016 lt_prog_compiler_static='-non_shared' 12017 ;; 12018 xl* | bgxl* | bgf* | mpixl*) 12019 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12020 lt_prog_compiler_wl='-Wl,' 12021 lt_prog_compiler_pic='-qpic' 12022 lt_prog_compiler_static='-qstaticlink' 12023 ;; 12024 *) 12025 case `$CC -V 2>&1 | sed 5q` in 12026 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12027 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12028 lt_prog_compiler_pic='-KPIC' 12029 lt_prog_compiler_static='-Bstatic' 12030 lt_prog_compiler_wl='' 12031 ;; 12032 *Sun\ F* | *Sun*Fortran*) 12033 lt_prog_compiler_pic='-KPIC' 12034 lt_prog_compiler_static='-Bstatic' 12035 lt_prog_compiler_wl='-Qoption ld ' 12036 ;; 12037 *Sun\ C*) 12038 # Sun C 5.9 12039 lt_prog_compiler_pic='-KPIC' 12040 lt_prog_compiler_static='-Bstatic' 12041 lt_prog_compiler_wl='-Wl,' 12042 ;; 12043 *Intel*\ [CF]*Compiler*) 12044 lt_prog_compiler_wl='-Wl,' 12045 lt_prog_compiler_pic='-fPIC' 12046 lt_prog_compiler_static='-static' 12047 ;; 12048 *Portland\ Group*) 12049 lt_prog_compiler_wl='-Wl,' 12050 lt_prog_compiler_pic='-fpic' 12051 lt_prog_compiler_static='-Bstatic' 12052 ;; 12053 esac 12054 ;; 12055 esac 12056 ;; 12057 12058 newsos6) 12059 lt_prog_compiler_pic='-KPIC' 12060 lt_prog_compiler_static='-Bstatic' 12061 ;; 12062 12063 *nto* | *qnx*) 12064 # QNX uses GNU C++, but need to define -shared option too, otherwise 12065 # it will coredump. 12066 lt_prog_compiler_pic='-fPIC -shared' 12067 ;; 12068 12069 osf3* | osf4* | osf5*) 12070 lt_prog_compiler_wl='-Wl,' 12071 # All OSF/1 code is PIC. 12072 lt_prog_compiler_static='-non_shared' 12073 ;; 12074 12075 rdos*) 12076 lt_prog_compiler_static='-non_shared' 12077 ;; 12078 12079 solaris*) 12080 lt_prog_compiler_pic='-KPIC' 12081 lt_prog_compiler_static='-Bstatic' 12082 case $cc_basename in 12083 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12084 lt_prog_compiler_wl='-Qoption ld ';; 12085 *) 12086 lt_prog_compiler_wl='-Wl,';; 12087 esac 12088 ;; 12089 12090 sunos4*) 12091 lt_prog_compiler_wl='-Qoption ld ' 12092 lt_prog_compiler_pic='-PIC' 12093 lt_prog_compiler_static='-Bstatic' 12094 ;; 12095 12096 sysv4 | sysv4.2uw2* | sysv4.3*) 12097 lt_prog_compiler_wl='-Wl,' 12098 lt_prog_compiler_pic='-KPIC' 12099 lt_prog_compiler_static='-Bstatic' 12100 ;; 12101 12102 sysv4*MP*) 12103 if test -d /usr/nec; then 12104 lt_prog_compiler_pic='-Kconform_pic' 12105 lt_prog_compiler_static='-Bstatic' 12106 fi 12107 ;; 12108 12109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12110 lt_prog_compiler_wl='-Wl,' 12111 lt_prog_compiler_pic='-KPIC' 12112 lt_prog_compiler_static='-Bstatic' 12113 ;; 12114 12115 unicos*) 12116 lt_prog_compiler_wl='-Wl,' 12117 lt_prog_compiler_can_build_shared=no 12118 ;; 12119 12120 uts4*) 12121 lt_prog_compiler_pic='-pic' 12122 lt_prog_compiler_static='-Bstatic' 12123 ;; 12124 12125 *) 12126 lt_prog_compiler_can_build_shared=no 12127 ;; 12128 esac 12129 fi 12130 12131case $host_os in 12132 # For platforms that do not support PIC, -DPIC is meaningless: 12133 *djgpp*) 12134 lt_prog_compiler_pic= 12135 ;; 12136 *) 12137 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12138 ;; 12139esac 12140 12141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12142printf %s "checking for $compiler option to produce PIC... " >&6; } 12143if test ${lt_cv_prog_compiler_pic+y} 12144then : 12145 printf %s "(cached) " >&6 12146else $as_nop 12147 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12148fi 12149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12150printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12151lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12152 12153# 12154# Check to make sure the PIC flag actually works. 12155# 12156if test -n "$lt_prog_compiler_pic"; then 12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12158printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12159if test ${lt_cv_prog_compiler_pic_works+y} 12160then : 12161 printf %s "(cached) " >&6 12162else $as_nop 12163 lt_cv_prog_compiler_pic_works=no 12164 ac_outfile=conftest.$ac_objext 12165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12166 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12167 # Insert the option either (1) after the last *FLAGS variable, or 12168 # (2) before a word containing "conftest.", or (3) at the end. 12169 # Note that $ac_compile itself does not contain backslashes and begins 12170 # with a dollar sign (not a hyphen), so the echo should work correctly. 12171 # The option is referenced via a variable to avoid confusing sed. 12172 lt_compile=`echo "$ac_compile" | $SED \ 12173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12175 -e 's:$: $lt_compiler_flag:'` 12176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12177 (eval "$lt_compile" 2>conftest.err) 12178 ac_status=$? 12179 cat conftest.err >&5 12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12181 if (exit $ac_status) && test -s "$ac_outfile"; then 12182 # The compiler can only warn and ignore the option if not recognized 12183 # So say no if there are warnings other than the usual output. 12184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12187 lt_cv_prog_compiler_pic_works=yes 12188 fi 12189 fi 12190 $RM conftest* 12191 12192fi 12193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12194printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12195 12196if test yes = "$lt_cv_prog_compiler_pic_works"; then 12197 case $lt_prog_compiler_pic in 12198 "" | " "*) ;; 12199 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12200 esac 12201else 12202 lt_prog_compiler_pic= 12203 lt_prog_compiler_can_build_shared=no 12204fi 12205 12206fi 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218# 12219# Check to make sure the static flag actually works. 12220# 12221wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12223printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12224if test ${lt_cv_prog_compiler_static_works+y} 12225then : 12226 printf %s "(cached) " >&6 12227else $as_nop 12228 lt_cv_prog_compiler_static_works=no 12229 save_LDFLAGS=$LDFLAGS 12230 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12231 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12233 # The linker can only warn and ignore the option if not recognized 12234 # So say no if there are warnings 12235 if test -s conftest.err; then 12236 # Append any errors to the config.log. 12237 cat conftest.err 1>&5 12238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12240 if diff conftest.exp conftest.er2 >/dev/null; then 12241 lt_cv_prog_compiler_static_works=yes 12242 fi 12243 else 12244 lt_cv_prog_compiler_static_works=yes 12245 fi 12246 fi 12247 $RM -r conftest* 12248 LDFLAGS=$save_LDFLAGS 12249 12250fi 12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12252printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12253 12254if test yes = "$lt_cv_prog_compiler_static_works"; then 12255 : 12256else 12257 lt_prog_compiler_static= 12258fi 12259 12260 12261 12262 12263 12264 12265 12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12267printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12268if test ${lt_cv_prog_compiler_c_o+y} 12269then : 12270 printf %s "(cached) " >&6 12271else $as_nop 12272 lt_cv_prog_compiler_c_o=no 12273 $RM -r conftest 2>/dev/null 12274 mkdir conftest 12275 cd conftest 12276 mkdir out 12277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12278 12279 lt_compiler_flag="-o out/conftest2.$ac_objext" 12280 # Insert the option either (1) after the last *FLAGS variable, or 12281 # (2) before a word containing "conftest.", or (3) at the end. 12282 # Note that $ac_compile itself does not contain backslashes and begins 12283 # with a dollar sign (not a hyphen), so the echo should work correctly. 12284 lt_compile=`echo "$ac_compile" | $SED \ 12285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12287 -e 's:$: $lt_compiler_flag:'` 12288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12289 (eval "$lt_compile" 2>out/conftest.err) 12290 ac_status=$? 12291 cat out/conftest.err >&5 12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12293 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12294 then 12295 # The compiler can only warn and ignore the option if not recognized 12296 # So say no if there are warnings 12297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12300 lt_cv_prog_compiler_c_o=yes 12301 fi 12302 fi 12303 chmod u+w . 2>&5 12304 $RM conftest* 12305 # SGI C++ compiler will create directory out/ii_files/ for 12306 # template instantiation 12307 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12308 $RM out/* && rmdir out 12309 cd .. 12310 $RM -r conftest 12311 $RM conftest* 12312 12313fi 12314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12315printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12316 12317 12318 12319 12320 12321 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12323printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12324if test ${lt_cv_prog_compiler_c_o+y} 12325then : 12326 printf %s "(cached) " >&6 12327else $as_nop 12328 lt_cv_prog_compiler_c_o=no 12329 $RM -r conftest 2>/dev/null 12330 mkdir conftest 12331 cd conftest 12332 mkdir out 12333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12334 12335 lt_compiler_flag="-o out/conftest2.$ac_objext" 12336 # Insert the option either (1) after the last *FLAGS variable, or 12337 # (2) before a word containing "conftest.", or (3) at the end. 12338 # Note that $ac_compile itself does not contain backslashes and begins 12339 # with a dollar sign (not a hyphen), so the echo should work correctly. 12340 lt_compile=`echo "$ac_compile" | $SED \ 12341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12343 -e 's:$: $lt_compiler_flag:'` 12344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12345 (eval "$lt_compile" 2>out/conftest.err) 12346 ac_status=$? 12347 cat out/conftest.err >&5 12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12349 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12350 then 12351 # The compiler can only warn and ignore the option if not recognized 12352 # So say no if there are warnings 12353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12356 lt_cv_prog_compiler_c_o=yes 12357 fi 12358 fi 12359 chmod u+w . 2>&5 12360 $RM conftest* 12361 # SGI C++ compiler will create directory out/ii_files/ for 12362 # template instantiation 12363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12364 $RM out/* && rmdir out 12365 cd .. 12366 $RM -r conftest 12367 $RM conftest* 12368 12369fi 12370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12371printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12372 12373 12374 12375 12376hard_links=nottested 12377if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12378 # do not overwrite the value of need_locks provided by the user 12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12380printf %s "checking if we can lock with hard links... " >&6; } 12381 hard_links=yes 12382 $RM conftest* 12383 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12384 touch conftest.a 12385 ln conftest.a conftest.b 2>&5 || hard_links=no 12386 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12388printf "%s\n" "$hard_links" >&6; } 12389 if test no = "$hard_links"; then 12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12391printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12392 need_locks=warn 12393 fi 12394else 12395 need_locks=no 12396fi 12397 12398 12399 12400 12401 12402 12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12404printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12405 12406 runpath_var= 12407 allow_undefined_flag= 12408 always_export_symbols=no 12409 archive_cmds= 12410 archive_expsym_cmds= 12411 compiler_needs_object=no 12412 enable_shared_with_static_runtimes=no 12413 export_dynamic_flag_spec= 12414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12415 hardcode_automatic=no 12416 hardcode_direct=no 12417 hardcode_direct_absolute=no 12418 hardcode_libdir_flag_spec= 12419 hardcode_libdir_separator= 12420 hardcode_minus_L=no 12421 hardcode_shlibpath_var=unsupported 12422 inherit_rpath=no 12423 link_all_deplibs=unknown 12424 module_cmds= 12425 module_expsym_cmds= 12426 old_archive_from_new_cmds= 12427 old_archive_from_expsyms_cmds= 12428 thread_safe_flag_spec= 12429 whole_archive_flag_spec= 12430 # include_expsyms should be a list of space-separated symbols to be *always* 12431 # included in the symbol list 12432 include_expsyms= 12433 # exclude_expsyms can be an extended regexp of symbols to exclude 12434 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12435 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12436 # as well as any symbol that contains 'd'. 12437 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12439 # platforms (ab)use it in PIC code, but their linkers get confused if 12440 # the symbol is explicitly referenced. Since portable code cannot 12441 # rely on this symbol name, it's probably fine to never include it in 12442 # preloaded symbol tables. 12443 # Exclude shared library initialization/finalization symbols. 12444 extract_expsyms_cmds= 12445 12446 case $host_os in 12447 cygwin* | mingw* | pw32* | cegcc*) 12448 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12449 # When not using gcc, we currently assume that we are using 12450 # Microsoft Visual C++. 12451 if test yes != "$GCC"; then 12452 with_gnu_ld=no 12453 fi 12454 ;; 12455 interix*) 12456 # we just hope/assume this is gcc and not c89 (= MSVC++) 12457 with_gnu_ld=yes 12458 ;; 12459 openbsd* | bitrig*) 12460 with_gnu_ld=no 12461 ;; 12462 esac 12463 12464 ld_shlibs=yes 12465 12466 # On some targets, GNU ld is compatible enough with the native linker 12467 # that we're better off using the native interface for both. 12468 lt_use_gnu_ld_interface=no 12469 if test yes = "$with_gnu_ld"; then 12470 case $host_os in 12471 aix*) 12472 # The AIX port of GNU ld has always aspired to compatibility 12473 # with the native linker. However, as the warning in the GNU ld 12474 # block says, versions before 2.19.5* couldn't really create working 12475 # shared libraries, regardless of the interface used. 12476 case `$LD -v 2>&1` in 12477 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12478 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12479 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12480 *) 12481 lt_use_gnu_ld_interface=yes 12482 ;; 12483 esac 12484 ;; 12485 *) 12486 lt_use_gnu_ld_interface=yes 12487 ;; 12488 esac 12489 fi 12490 12491 if test yes = "$lt_use_gnu_ld_interface"; then 12492 # If archive_cmds runs LD, not CC, wlarc should be empty 12493 wlarc='$wl' 12494 12495 # Set some defaults for GNU ld with shared library support. These 12496 # are reset later if shared libraries are not supported. Putting them 12497 # here allows them to be overridden if necessary. 12498 runpath_var=LD_RUN_PATH 12499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12500 export_dynamic_flag_spec='$wl--export-dynamic' 12501 # ancient GNU ld didn't support --whole-archive et. al. 12502 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12503 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12504 else 12505 whole_archive_flag_spec= 12506 fi 12507 supports_anon_versioning=no 12508 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12509 *GNU\ gold*) supports_anon_versioning=yes ;; 12510 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12511 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12512 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12513 *\ 2.11.*) ;; # other 2.11 versions 12514 *) supports_anon_versioning=yes ;; 12515 esac 12516 12517 # See if GNU ld supports shared libraries. 12518 case $host_os in 12519 aix[3-9]*) 12520 # On AIX/PPC, the GNU linker is very broken 12521 if test ia64 != "$host_cpu"; then 12522 ld_shlibs=no 12523 cat <<_LT_EOF 1>&2 12524 12525*** Warning: the GNU linker, at least up to release 2.19, is reported 12526*** to be unable to reliably create shared libraries on AIX. 12527*** Therefore, libtool is disabling shared libraries support. If you 12528*** really care for shared libraries, you may want to install binutils 12529*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12530*** You will then need to restart the configuration process. 12531 12532_LT_EOF 12533 fi 12534 ;; 12535 12536 amigaos*) 12537 case $host_cpu in 12538 powerpc) 12539 # see comment about AmigaOS4 .so support 12540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12541 archive_expsym_cmds='' 12542 ;; 12543 m68k) 12544 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)' 12545 hardcode_libdir_flag_spec='-L$libdir' 12546 hardcode_minus_L=yes 12547 ;; 12548 esac 12549 ;; 12550 12551 beos*) 12552 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12553 allow_undefined_flag=unsupported 12554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12555 # support --undefined. This deserves some investigation. FIXME 12556 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12557 else 12558 ld_shlibs=no 12559 fi 12560 ;; 12561 12562 cygwin* | mingw* | pw32* | cegcc*) 12563 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12564 # as there is no search path for DLLs. 12565 hardcode_libdir_flag_spec='-L$libdir' 12566 export_dynamic_flag_spec='$wl--export-all-symbols' 12567 allow_undefined_flag=unsupported 12568 always_export_symbols=no 12569 enable_shared_with_static_runtimes=yes 12570 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' 12571 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12572 12573 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12575 # If the export-symbols file already is a .def file, use it as 12576 # is; otherwise, prepend EXPORTS... 12577 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12578 cp $export_symbols $output_objdir/$soname.def; 12579 else 12580 echo EXPORTS > $output_objdir/$soname.def; 12581 cat $export_symbols >> $output_objdir/$soname.def; 12582 fi~ 12583 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12584 else 12585 ld_shlibs=no 12586 fi 12587 ;; 12588 12589 haiku*) 12590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12591 link_all_deplibs=yes 12592 ;; 12593 12594 os2*) 12595 hardcode_libdir_flag_spec='-L$libdir' 12596 hardcode_minus_L=yes 12597 allow_undefined_flag=unsupported 12598 shrext_cmds=.dll 12599 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12600 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12601 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12602 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12603 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12604 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12605 emximp -o $lib $output_objdir/$libname.def' 12606 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12607 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12608 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12609 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12610 prefix_cmds="$SED"~ 12611 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12612 prefix_cmds="$prefix_cmds -e 1d"; 12613 fi~ 12614 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12615 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12616 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12617 emximp -o $lib $output_objdir/$libname.def' 12618 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12619 enable_shared_with_static_runtimes=yes 12620 ;; 12621 12622 interix[3-9]*) 12623 hardcode_direct=no 12624 hardcode_shlibpath_var=no 12625 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12626 export_dynamic_flag_spec='$wl-E' 12627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12628 # Instead, shared libraries are loaded at an image base (0x10000000 by 12629 # default) and relocated if they conflict, which is a slow very memory 12630 # consuming and fragmenting process. To avoid this, we pick a random, 12631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12632 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12634 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' 12635 ;; 12636 12637 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12638 tmp_diet=no 12639 if test linux-dietlibc = "$host_os"; then 12640 case $cc_basename in 12641 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12642 esac 12643 fi 12644 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12645 && test no = "$tmp_diet" 12646 then 12647 tmp_addflag=' $pic_flag' 12648 tmp_sharedflag='-shared' 12649 case $cc_basename,$host_cpu in 12650 pgcc*) # Portland Group C compiler 12651 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' 12652 tmp_addflag=' $pic_flag' 12653 ;; 12654 pgf77* | pgf90* | pgf95* | pgfortran*) 12655 # Portland Group f77 and f90 compilers 12656 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' 12657 tmp_addflag=' $pic_flag -Mnomain' ;; 12658 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12659 tmp_addflag=' -i_dynamic' ;; 12660 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12661 tmp_addflag=' -i_dynamic -nofor_main' ;; 12662 ifc* | ifort*) # Intel Fortran compiler 12663 tmp_addflag=' -nofor_main' ;; 12664 lf95*) # Lahey Fortran 8.1 12665 whole_archive_flag_spec= 12666 tmp_sharedflag='--shared' ;; 12667 nagfor*) # NAGFOR 5.3 12668 tmp_sharedflag='-Wl,-shared' ;; 12669 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12670 tmp_sharedflag='-qmkshrobj' 12671 tmp_addflag= ;; 12672 nvcc*) # Cuda Compiler Driver 2.2 12673 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' 12674 compiler_needs_object=yes 12675 ;; 12676 esac 12677 case `$CC -V 2>&1 | sed 5q` in 12678 *Sun\ C*) # Sun C 5.9 12679 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' 12680 compiler_needs_object=yes 12681 tmp_sharedflag='-G' ;; 12682 *Sun\ F*) # Sun Fortran 8.3 12683 tmp_sharedflag='-G' ;; 12684 esac 12685 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12686 12687 if test yes = "$supports_anon_versioning"; then 12688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12690 echo "local: *; };" >> $output_objdir/$libname.ver~ 12691 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12692 fi 12693 12694 case $cc_basename in 12695 tcc*) 12696 export_dynamic_flag_spec='-rdynamic' 12697 ;; 12698 xlf* | bgf* | bgxlf* | mpixlf*) 12699 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12700 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12701 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12702 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12703 if test yes = "$supports_anon_versioning"; then 12704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12706 echo "local: *; };" >> $output_objdir/$libname.ver~ 12707 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12708 fi 12709 ;; 12710 esac 12711 else 12712 ld_shlibs=no 12713 fi 12714 ;; 12715 12716 netbsd*) 12717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12719 wlarc= 12720 else 12721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12723 fi 12724 ;; 12725 12726 solaris*) 12727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12728 ld_shlibs=no 12729 cat <<_LT_EOF 1>&2 12730 12731*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12732*** create shared libraries on Solaris systems. Therefore, libtool 12733*** is disabling shared libraries support. We urge you to upgrade GNU 12734*** binutils to release 2.9.1 or newer. Another option is to modify 12735*** your PATH or compiler configuration so that the native linker is 12736*** used, and then restart. 12737 12738_LT_EOF 12739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12741 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12742 else 12743 ld_shlibs=no 12744 fi 12745 ;; 12746 12747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12748 case `$LD -v 2>&1` in 12749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12750 ld_shlibs=no 12751 cat <<_LT_EOF 1>&2 12752 12753*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12754*** reliably create shared libraries on SCO systems. Therefore, libtool 12755*** is disabling shared libraries support. We urge you to upgrade GNU 12756*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12757*** your PATH or compiler configuration so that the native linker is 12758*** used, and then restart. 12759 12760_LT_EOF 12761 ;; 12762 *) 12763 # For security reasons, it is highly recommended that you always 12764 # use absolute paths for naming shared libraries, and exclude the 12765 # DT_RUNPATH tag from executables and libraries. But doing so 12766 # requires that you compile everything twice, which is a pain. 12767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12768 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12771 else 12772 ld_shlibs=no 12773 fi 12774 ;; 12775 esac 12776 ;; 12777 12778 sunos4*) 12779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12780 wlarc= 12781 hardcode_direct=yes 12782 hardcode_shlibpath_var=no 12783 ;; 12784 12785 *) 12786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12788 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12789 else 12790 ld_shlibs=no 12791 fi 12792 ;; 12793 esac 12794 12795 if test no = "$ld_shlibs"; then 12796 runpath_var= 12797 hardcode_libdir_flag_spec= 12798 export_dynamic_flag_spec= 12799 whole_archive_flag_spec= 12800 fi 12801 else 12802 # PORTME fill in a description of your system's linker (not GNU ld) 12803 case $host_os in 12804 aix3*) 12805 allow_undefined_flag=unsupported 12806 always_export_symbols=yes 12807 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' 12808 # Note: this linker hardcodes the directories in LIBPATH if there 12809 # are no directories specified by -L. 12810 hardcode_minus_L=yes 12811 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12812 # Neither direct hardcoding nor static linking is supported with a 12813 # broken collect2. 12814 hardcode_direct=unsupported 12815 fi 12816 ;; 12817 12818 aix[4-9]*) 12819 if test ia64 = "$host_cpu"; then 12820 # On IA64, the linker does run time linking by default, so we don't 12821 # have to do anything special. 12822 aix_use_runtimelinking=no 12823 exp_sym_flag='-Bexport' 12824 no_entry_flag= 12825 else 12826 # If we're using GNU nm, then we don't want the "-C" option. 12827 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12828 # Without the "-l" option, or with the "-B" option, AIX nm treats 12829 # weak defined symbols like other global defined symbols, whereas 12830 # GNU nm marks them as "W". 12831 # While the 'weak' keyword is ignored in the Export File, we need 12832 # it in the Import File for the 'aix-soname' feature, so we have 12833 # to replace the "-B" option with "-P" for AIX nm. 12834 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12835 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 12836 else 12837 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 12838 fi 12839 aix_use_runtimelinking=no 12840 12841 # Test if we are trying to use run time linking or normal 12842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12843 # have runtime linking enabled, and use it for executables. 12844 # For shared libraries, we enable/disable runtime linking 12845 # depending on the kind of the shared library created - 12846 # when "with_aix_soname,aix_use_runtimelinking" is: 12847 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12848 # "aix,yes" lib.so shared, rtl:yes, for executables 12849 # lib.a static archive 12850 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12851 # lib.a(lib.so.V) shared, rtl:no, for executables 12852 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12853 # lib.a(lib.so.V) shared, rtl:no 12854 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12855 # lib.a static archive 12856 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12857 for ld_flag in $LDFLAGS; do 12858 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12859 aix_use_runtimelinking=yes 12860 break 12861 fi 12862 done 12863 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12864 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12865 # so we don't have lib.a shared libs to link our executables. 12866 # We have to force runtime linking in this case. 12867 aix_use_runtimelinking=yes 12868 LDFLAGS="$LDFLAGS -Wl,-brtl" 12869 fi 12870 ;; 12871 esac 12872 12873 exp_sym_flag='-bexport' 12874 no_entry_flag='-bnoentry' 12875 fi 12876 12877 # When large executables or shared objects are built, AIX ld can 12878 # have problems creating the table of contents. If linking a library 12879 # or program results in "error TOC overflow" add -mminimal-toc to 12880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12882 12883 archive_cmds='' 12884 hardcode_direct=yes 12885 hardcode_direct_absolute=yes 12886 hardcode_libdir_separator=':' 12887 link_all_deplibs=yes 12888 file_list_spec='$wl-f,' 12889 case $with_aix_soname,$aix_use_runtimelinking in 12890 aix,*) ;; # traditional, no import file 12891 svr4,* | *,yes) # use import file 12892 # The Import File defines what to hardcode. 12893 hardcode_direct=no 12894 hardcode_direct_absolute=no 12895 ;; 12896 esac 12897 12898 if test yes = "$GCC"; then 12899 case $host_os in aix4.[012]|aix4.[012].*) 12900 # We only want to do this on AIX 4.2 and lower, the check 12901 # below for broken collect2 doesn't work under 4.3+ 12902 collect2name=`$CC -print-prog-name=collect2` 12903 if test -f "$collect2name" && 12904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12905 then 12906 # We have reworked collect2 12907 : 12908 else 12909 # We have old collect2 12910 hardcode_direct=unsupported 12911 # It fails to find uninstalled libraries when the uninstalled 12912 # path is not listed in the libpath. Setting hardcode_minus_L 12913 # to unsupported forces relinking 12914 hardcode_minus_L=yes 12915 hardcode_libdir_flag_spec='-L$libdir' 12916 hardcode_libdir_separator= 12917 fi 12918 ;; 12919 esac 12920 shared_flag='-shared' 12921 if test yes = "$aix_use_runtimelinking"; then 12922 shared_flag="$shared_flag "'$wl-G' 12923 fi 12924 # Need to ensure runtime linking is disabled for the traditional 12925 # shared library, or the linker may eventually find shared libraries 12926 # /with/ Import File - we do not want to mix them. 12927 shared_flag_aix='-shared' 12928 shared_flag_svr4='-shared $wl-G' 12929 else 12930 # not using gcc 12931 if test ia64 = "$host_cpu"; then 12932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12933 # chokes on -Wl,-G. The following line is correct: 12934 shared_flag='-G' 12935 else 12936 if test yes = "$aix_use_runtimelinking"; then 12937 shared_flag='$wl-G' 12938 else 12939 shared_flag='$wl-bM:SRE' 12940 fi 12941 shared_flag_aix='$wl-bM:SRE' 12942 shared_flag_svr4='$wl-G' 12943 fi 12944 fi 12945 12946 export_dynamic_flag_spec='$wl-bexpall' 12947 # It seems that -bexpall does not export symbols beginning with 12948 # underscore (_), so it is better to generate a list of symbols to export. 12949 always_export_symbols=yes 12950 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12951 # Warning - without using the other runtime loading flags (-brtl), 12952 # -berok will link without error, but may produce a broken library. 12953 allow_undefined_flag='-berok' 12954 # Determine the default libpath from the value encoded in an 12955 # empty executable. 12956 if test set = "${lt_cv_aix_libpath+set}"; then 12957 aix_libpath=$lt_cv_aix_libpath 12958else 12959 if test ${lt_cv_aix_libpath_+y} 12960then : 12961 printf %s "(cached) " >&6 12962else $as_nop 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965 12966int 12967main (void) 12968{ 12969 12970 ; 12971 return 0; 12972} 12973_ACEOF 12974if ac_fn_c_try_link "$LINENO" 12975then : 12976 12977 lt_aix_libpath_sed=' 12978 /Import File Strings/,/^$/ { 12979 /^0/ { 12980 s/^0 *\([^ ]*\) *$/\1/ 12981 p 12982 } 12983 }' 12984 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12985 # Check for a 64-bit object if we didn't find anything. 12986 if test -z "$lt_cv_aix_libpath_"; then 12987 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12988 fi 12989fi 12990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12991 conftest$ac_exeext conftest.$ac_ext 12992 if test -z "$lt_cv_aix_libpath_"; then 12993 lt_cv_aix_libpath_=/usr/lib:/lib 12994 fi 12995 12996fi 12997 12998 aix_libpath=$lt_cv_aix_libpath_ 12999fi 13000 13001 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13002 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13003 else 13004 if test ia64 = "$host_cpu"; then 13005 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13006 allow_undefined_flag="-z nodefs" 13007 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" 13008 else 13009 # Determine the default libpath from the value encoded in an 13010 # empty executable. 13011 if test set = "${lt_cv_aix_libpath+set}"; then 13012 aix_libpath=$lt_cv_aix_libpath 13013else 13014 if test ${lt_cv_aix_libpath_+y} 13015then : 13016 printf %s "(cached) " >&6 13017else $as_nop 13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019/* end confdefs.h. */ 13020 13021int 13022main (void) 13023{ 13024 13025 ; 13026 return 0; 13027} 13028_ACEOF 13029if ac_fn_c_try_link "$LINENO" 13030then : 13031 13032 lt_aix_libpath_sed=' 13033 /Import File Strings/,/^$/ { 13034 /^0/ { 13035 s/^0 *\([^ ]*\) *$/\1/ 13036 p 13037 } 13038 }' 13039 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13040 # Check for a 64-bit object if we didn't find anything. 13041 if test -z "$lt_cv_aix_libpath_"; then 13042 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13043 fi 13044fi 13045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13046 conftest$ac_exeext conftest.$ac_ext 13047 if test -z "$lt_cv_aix_libpath_"; then 13048 lt_cv_aix_libpath_=/usr/lib:/lib 13049 fi 13050 13051fi 13052 13053 aix_libpath=$lt_cv_aix_libpath_ 13054fi 13055 13056 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13057 # Warning - without using the other run time loading flags, 13058 # -berok will link without error, but may produce a broken library. 13059 no_undefined_flag=' $wl-bernotok' 13060 allow_undefined_flag=' $wl-berok' 13061 if test yes = "$with_gnu_ld"; then 13062 # We only use this code for GNU lds that support --whole-archive. 13063 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13064 else 13065 # Exported symbols can be pulled into shared objects from archives 13066 whole_archive_flag_spec='$convenience' 13067 fi 13068 archive_cmds_need_lc=yes 13069 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13070 # -brtl affects multiple linker settings, -berok does not and is overridden later 13071 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13072 if test svr4 != "$with_aix_soname"; then 13073 # This is similar to how AIX traditionally builds its shared libraries. 13074 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13075 fi 13076 if test aix != "$with_aix_soname"; then 13077 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13078 else 13079 # used by -dlpreopen to get the symbols 13080 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13081 fi 13082 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13083 fi 13084 fi 13085 ;; 13086 13087 amigaos*) 13088 case $host_cpu in 13089 powerpc) 13090 # see comment about AmigaOS4 .so support 13091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13092 archive_expsym_cmds='' 13093 ;; 13094 m68k) 13095 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)' 13096 hardcode_libdir_flag_spec='-L$libdir' 13097 hardcode_minus_L=yes 13098 ;; 13099 esac 13100 ;; 13101 13102 bsdi[45]*) 13103 export_dynamic_flag_spec=-rdynamic 13104 ;; 13105 13106 cygwin* | mingw* | pw32* | cegcc*) 13107 # When not using gcc, we currently assume that we are using 13108 # Microsoft Visual C++. 13109 # hardcode_libdir_flag_spec is actually meaningless, as there is 13110 # no search path for DLLs. 13111 case $cc_basename in 13112 cl*) 13113 # Native MSVC 13114 hardcode_libdir_flag_spec=' ' 13115 allow_undefined_flag=unsupported 13116 always_export_symbols=yes 13117 file_list_spec='@' 13118 # Tell ltmain to make .lib files, not .a files. 13119 libext=lib 13120 # Tell ltmain to make .dll files, not .so files. 13121 shrext_cmds=.dll 13122 # FIXME: Setting linknames here is a bad hack. 13123 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13124 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13125 cp "$export_symbols" "$output_objdir/$soname.def"; 13126 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13127 else 13128 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13129 fi~ 13130 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13131 linknames=' 13132 # The linker will not automatically build a static lib if we build a DLL. 13133 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13134 enable_shared_with_static_runtimes=yes 13135 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13137 # Don't use ranlib 13138 old_postinstall_cmds='chmod 644 $oldlib' 13139 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13140 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13141 case $lt_outputfile in 13142 *.exe|*.EXE) ;; 13143 *) 13144 lt_outputfile=$lt_outputfile.exe 13145 lt_tool_outputfile=$lt_tool_outputfile.exe 13146 ;; 13147 esac~ 13148 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13149 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13150 $RM "$lt_outputfile.manifest"; 13151 fi' 13152 ;; 13153 *) 13154 # Assume MSVC wrapper 13155 hardcode_libdir_flag_spec=' ' 13156 allow_undefined_flag=unsupported 13157 # Tell ltmain to make .lib files, not .a files. 13158 libext=lib 13159 # Tell ltmain to make .dll files, not .so files. 13160 shrext_cmds=.dll 13161 # FIXME: Setting linknames here is a bad hack. 13162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13163 # The linker will automatically build a .lib file if we build a DLL. 13164 old_archive_from_new_cmds='true' 13165 # FIXME: Should let the user specify the lib program. 13166 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13167 enable_shared_with_static_runtimes=yes 13168 ;; 13169 esac 13170 ;; 13171 13172 darwin* | rhapsody*) 13173 13174 13175 archive_cmds_need_lc=no 13176 hardcode_direct=no 13177 hardcode_automatic=yes 13178 hardcode_shlibpath_var=unsupported 13179 if test yes = "$lt_cv_ld_force_load"; then 13180 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\"`' 13181 13182 else 13183 whole_archive_flag_spec='' 13184 fi 13185 link_all_deplibs=yes 13186 allow_undefined_flag=$_lt_dar_allow_undefined 13187 case $cc_basename in 13188 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13189 *) _lt_dar_can_shared=$GCC ;; 13190 esac 13191 if test yes = "$_lt_dar_can_shared"; then 13192 output_verbose_link_cmd=func_echo_all 13193 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13194 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13195 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" 13196 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" 13197 13198 else 13199 ld_shlibs=no 13200 fi 13201 13202 ;; 13203 13204 dgux*) 13205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13206 hardcode_libdir_flag_spec='-L$libdir' 13207 hardcode_shlibpath_var=no 13208 ;; 13209 13210 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13211 # support. Future versions do this automatically, but an explicit c++rt0.o 13212 # does not break anything, and helps significantly (at the cost of a little 13213 # extra space). 13214 freebsd2.2*) 13215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13216 hardcode_libdir_flag_spec='-R$libdir' 13217 hardcode_direct=yes 13218 hardcode_shlibpath_var=no 13219 ;; 13220 13221 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13222 freebsd2.*) 13223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13224 hardcode_direct=yes 13225 hardcode_minus_L=yes 13226 hardcode_shlibpath_var=no 13227 ;; 13228 13229 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13230 freebsd* | dragonfly*) 13231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13232 hardcode_libdir_flag_spec='-R$libdir' 13233 hardcode_direct=yes 13234 hardcode_shlibpath_var=no 13235 ;; 13236 13237 hpux9*) 13238 if test yes = "$GCC"; then 13239 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13240 else 13241 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13242 fi 13243 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13244 hardcode_libdir_separator=: 13245 hardcode_direct=yes 13246 13247 # hardcode_minus_L: Not really in the search PATH, 13248 # but as the default location of the library. 13249 hardcode_minus_L=yes 13250 export_dynamic_flag_spec='$wl-E' 13251 ;; 13252 13253 hpux10*) 13254 if test yes,no = "$GCC,$with_gnu_ld"; then 13255 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13256 else 13257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13258 fi 13259 if test no = "$with_gnu_ld"; then 13260 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13261 hardcode_libdir_separator=: 13262 hardcode_direct=yes 13263 hardcode_direct_absolute=yes 13264 export_dynamic_flag_spec='$wl-E' 13265 # hardcode_minus_L: Not really in the search PATH, 13266 # but as the default location of the library. 13267 hardcode_minus_L=yes 13268 fi 13269 ;; 13270 13271 hpux11*) 13272 if test yes,no = "$GCC,$with_gnu_ld"; then 13273 case $host_cpu in 13274 hppa*64*) 13275 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13276 ;; 13277 ia64*) 13278 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13279 ;; 13280 *) 13281 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13282 ;; 13283 esac 13284 else 13285 case $host_cpu in 13286 hppa*64*) 13287 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13288 ;; 13289 ia64*) 13290 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13291 ;; 13292 *) 13293 13294 # Older versions of the 11.00 compiler do not understand -b yet 13295 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13297printf %s "checking if $CC understands -b... " >&6; } 13298if test ${lt_cv_prog_compiler__b+y} 13299then : 13300 printf %s "(cached) " >&6 13301else $as_nop 13302 lt_cv_prog_compiler__b=no 13303 save_LDFLAGS=$LDFLAGS 13304 LDFLAGS="$LDFLAGS -b" 13305 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13307 # The linker can only warn and ignore the option if not recognized 13308 # So say no if there are warnings 13309 if test -s conftest.err; then 13310 # Append any errors to the config.log. 13311 cat conftest.err 1>&5 13312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13314 if diff conftest.exp conftest.er2 >/dev/null; then 13315 lt_cv_prog_compiler__b=yes 13316 fi 13317 else 13318 lt_cv_prog_compiler__b=yes 13319 fi 13320 fi 13321 $RM -r conftest* 13322 LDFLAGS=$save_LDFLAGS 13323 13324fi 13325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13326printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 13327 13328if test yes = "$lt_cv_prog_compiler__b"; then 13329 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13330else 13331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13332fi 13333 13334 ;; 13335 esac 13336 fi 13337 if test no = "$with_gnu_ld"; then 13338 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13339 hardcode_libdir_separator=: 13340 13341 case $host_cpu in 13342 hppa*64*|ia64*) 13343 hardcode_direct=no 13344 hardcode_shlibpath_var=no 13345 ;; 13346 *) 13347 hardcode_direct=yes 13348 hardcode_direct_absolute=yes 13349 export_dynamic_flag_spec='$wl-E' 13350 13351 # hardcode_minus_L: Not really in the search PATH, 13352 # but as the default location of the library. 13353 hardcode_minus_L=yes 13354 ;; 13355 esac 13356 fi 13357 ;; 13358 13359 irix5* | irix6* | nonstopux*) 13360 if test yes = "$GCC"; then 13361 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' 13362 # Try to use the -exported_symbol ld option, if it does not 13363 # work, assume that -exports_file does not work either and 13364 # implicitly export all symbols. 13365 # This should be the same for all languages, so no per-tag cache variable. 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13367printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13368if test ${lt_cv_irix_exported_symbol+y} 13369then : 13370 printf %s "(cached) " >&6 13371else $as_nop 13372 save_LDFLAGS=$LDFLAGS 13373 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376int foo (void) { return 0; } 13377_ACEOF 13378if ac_fn_c_try_link "$LINENO" 13379then : 13380 lt_cv_irix_exported_symbol=yes 13381else $as_nop 13382 lt_cv_irix_exported_symbol=no 13383fi 13384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13385 conftest$ac_exeext conftest.$ac_ext 13386 LDFLAGS=$save_LDFLAGS 13387fi 13388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13389printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 13390 if test yes = "$lt_cv_irix_exported_symbol"; then 13391 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' 13392 fi 13393 else 13394 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' 13395 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' 13396 fi 13397 archive_cmds_need_lc='no' 13398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13399 hardcode_libdir_separator=: 13400 inherit_rpath=yes 13401 link_all_deplibs=yes 13402 ;; 13403 13404 linux*) 13405 case $cc_basename in 13406 tcc*) 13407 # Fabrice Bellard et al's Tiny C Compiler 13408 ld_shlibs=yes 13409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13410 ;; 13411 esac 13412 ;; 13413 13414 netbsd*) 13415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13417 else 13418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13419 fi 13420 hardcode_libdir_flag_spec='-R$libdir' 13421 hardcode_direct=yes 13422 hardcode_shlibpath_var=no 13423 ;; 13424 13425 newsos6) 13426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13427 hardcode_direct=yes 13428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13429 hardcode_libdir_separator=: 13430 hardcode_shlibpath_var=no 13431 ;; 13432 13433 *nto* | *qnx*) 13434 ;; 13435 13436 openbsd* | bitrig*) 13437 if test -f /usr/libexec/ld.so; then 13438 hardcode_direct=yes 13439 hardcode_shlibpath_var=no 13440 hardcode_direct_absolute=yes 13441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13444 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13445 export_dynamic_flag_spec='$wl-E' 13446 else 13447 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13448 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13449 fi 13450 else 13451 ld_shlibs=no 13452 fi 13453 ;; 13454 13455 os2*) 13456 hardcode_libdir_flag_spec='-L$libdir' 13457 hardcode_minus_L=yes 13458 allow_undefined_flag=unsupported 13459 shrext_cmds=.dll 13460 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13461 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13462 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13463 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13464 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13465 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13466 emximp -o $lib $output_objdir/$libname.def' 13467 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13468 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13469 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13470 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13471 prefix_cmds="$SED"~ 13472 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13473 prefix_cmds="$prefix_cmds -e 1d"; 13474 fi~ 13475 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13476 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13477 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13478 emximp -o $lib $output_objdir/$libname.def' 13479 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13480 enable_shared_with_static_runtimes=yes 13481 ;; 13482 13483 osf3*) 13484 if test yes = "$GCC"; then 13485 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13486 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' 13487 else 13488 allow_undefined_flag=' -expect_unresolved \*' 13489 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' 13490 fi 13491 archive_cmds_need_lc='no' 13492 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13493 hardcode_libdir_separator=: 13494 ;; 13495 13496 osf4* | osf5*) # as osf3* with the addition of -msym flag 13497 if test yes = "$GCC"; then 13498 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13499 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' 13500 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13501 else 13502 allow_undefined_flag=' -expect_unresolved \*' 13503 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' 13504 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~ 13505 $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' 13506 13507 # Both c and cxx compiler support -rpath directly 13508 hardcode_libdir_flag_spec='-rpath $libdir' 13509 fi 13510 archive_cmds_need_lc='no' 13511 hardcode_libdir_separator=: 13512 ;; 13513 13514 solaris*) 13515 no_undefined_flag=' -z defs' 13516 if test yes = "$GCC"; then 13517 wlarc='$wl' 13518 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13520 $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' 13521 else 13522 case `$CC -V 2>&1` in 13523 *"Compilers 5.0"*) 13524 wlarc='' 13525 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13527 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13528 ;; 13529 *) 13530 wlarc='$wl' 13531 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13533 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13534 ;; 13535 esac 13536 fi 13537 hardcode_libdir_flag_spec='-R$libdir' 13538 hardcode_shlibpath_var=no 13539 case $host_os in 13540 solaris2.[0-5] | solaris2.[0-5].*) ;; 13541 *) 13542 # The compiler driver will combine and reorder linker options, 13543 # but understands '-z linker_flag'. GCC discards it without '$wl', 13544 # but is careful enough not to reorder. 13545 # Supported since Solaris 2.6 (maybe 2.5.1?) 13546 if test yes = "$GCC"; then 13547 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13548 else 13549 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13550 fi 13551 ;; 13552 esac 13553 link_all_deplibs=yes 13554 ;; 13555 13556 sunos4*) 13557 if test sequent = "$host_vendor"; then 13558 # Use $CC to link under sequent, because it throws in some extra .o 13559 # files that make .init and .fini sections work. 13560 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13561 else 13562 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13563 fi 13564 hardcode_libdir_flag_spec='-L$libdir' 13565 hardcode_direct=yes 13566 hardcode_minus_L=yes 13567 hardcode_shlibpath_var=no 13568 ;; 13569 13570 sysv4) 13571 case $host_vendor in 13572 sni) 13573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13574 hardcode_direct=yes # is this really true??? 13575 ;; 13576 siemens) 13577 ## LD is ld it makes a PLAMLIB 13578 ## CC just makes a GrossModule. 13579 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13580 reload_cmds='$CC -r -o $output$reload_objs' 13581 hardcode_direct=no 13582 ;; 13583 motorola) 13584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13585 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13586 ;; 13587 esac 13588 runpath_var='LD_RUN_PATH' 13589 hardcode_shlibpath_var=no 13590 ;; 13591 13592 sysv4.3*) 13593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13594 hardcode_shlibpath_var=no 13595 export_dynamic_flag_spec='-Bexport' 13596 ;; 13597 13598 sysv4*MP*) 13599 if test -d /usr/nec; then 13600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13601 hardcode_shlibpath_var=no 13602 runpath_var=LD_RUN_PATH 13603 hardcode_runpath_var=yes 13604 ld_shlibs=yes 13605 fi 13606 ;; 13607 13608 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13609 no_undefined_flag='$wl-z,text' 13610 archive_cmds_need_lc=no 13611 hardcode_shlibpath_var=no 13612 runpath_var='LD_RUN_PATH' 13613 13614 if test yes = "$GCC"; then 13615 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13616 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13617 else 13618 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13619 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13620 fi 13621 ;; 13622 13623 sysv5* | sco3.2v5* | sco5v6*) 13624 # Note: We CANNOT use -z defs as we might desire, because we do not 13625 # link with -lc, and that would cause any symbols used from libc to 13626 # always be unresolved, which means just about no library would 13627 # ever link correctly. If we're not using GNU ld we use -z text 13628 # though, which does catch some bad symbols but isn't as heavy-handed 13629 # as -z defs. 13630 no_undefined_flag='$wl-z,text' 13631 allow_undefined_flag='$wl-z,nodefs' 13632 archive_cmds_need_lc=no 13633 hardcode_shlibpath_var=no 13634 hardcode_libdir_flag_spec='$wl-R,$libdir' 13635 hardcode_libdir_separator=':' 13636 link_all_deplibs=yes 13637 export_dynamic_flag_spec='$wl-Bexport' 13638 runpath_var='LD_RUN_PATH' 13639 13640 if test yes = "$GCC"; then 13641 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13642 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13643 else 13644 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13645 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13646 fi 13647 ;; 13648 13649 uts4*) 13650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13651 hardcode_libdir_flag_spec='-L$libdir' 13652 hardcode_shlibpath_var=no 13653 ;; 13654 13655 *) 13656 ld_shlibs=no 13657 ;; 13658 esac 13659 13660 if test sni = "$host_vendor"; then 13661 case $host in 13662 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13663 export_dynamic_flag_spec='$wl-Blargedynsym' 13664 ;; 13665 esac 13666 fi 13667 fi 13668 13669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13670printf "%s\n" "$ld_shlibs" >&6; } 13671test no = "$ld_shlibs" && can_build_shared=no 13672 13673with_gnu_ld=$with_gnu_ld 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689# 13690# Do we need to explicitly link libc? 13691# 13692case "x$archive_cmds_need_lc" in 13693x|xyes) 13694 # Assume -lc should be added 13695 archive_cmds_need_lc=yes 13696 13697 if test yes,yes = "$GCC,$enable_shared"; then 13698 case $archive_cmds in 13699 *'~'*) 13700 # FIXME: we may have to deal with multi-command sequences. 13701 ;; 13702 '$CC '*) 13703 # Test whether the compiler implicitly links with -lc since on some 13704 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13705 # to ld, don't add -lc before -lgcc. 13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13707printf %s "checking whether -lc should be explicitly linked in... " >&6; } 13708if test ${lt_cv_archive_cmds_need_lc+y} 13709then : 13710 printf %s "(cached) " >&6 13711else $as_nop 13712 $RM conftest* 13713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13714 13715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13716 (eval $ac_compile) 2>&5 13717 ac_status=$? 13718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13719 test $ac_status = 0; } 2>conftest.err; then 13720 soname=conftest 13721 lib=conftest 13722 libobjs=conftest.$ac_objext 13723 deplibs= 13724 wl=$lt_prog_compiler_wl 13725 pic_flag=$lt_prog_compiler_pic 13726 compiler_flags=-v 13727 linker_flags=-v 13728 verstring= 13729 output_objdir=. 13730 libname=conftest 13731 lt_save_allow_undefined_flag=$allow_undefined_flag 13732 allow_undefined_flag= 13733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13734 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13735 ac_status=$? 13736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13737 test $ac_status = 0; } 13738 then 13739 lt_cv_archive_cmds_need_lc=no 13740 else 13741 lt_cv_archive_cmds_need_lc=yes 13742 fi 13743 allow_undefined_flag=$lt_save_allow_undefined_flag 13744 else 13745 cat conftest.err 1>&5 13746 fi 13747 $RM conftest* 13748 13749fi 13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13751printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 13752 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13753 ;; 13754 esac 13755 fi 13756 ;; 13757esac 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13911printf %s "checking dynamic linker characteristics... " >&6; } 13912 13913if test yes = "$GCC"; then 13914 case $host_os in 13915 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13916 *) lt_awk_arg='/^libraries:/' ;; 13917 esac 13918 case $host_os in 13919 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13920 *) lt_sed_strip_eq='s|=/|/|g' ;; 13921 esac 13922 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13923 case $lt_search_path_spec in 13924 *\;*) 13925 # if the path contains ";" then we assume it to be the separator 13926 # otherwise default to the standard path separator (i.e. ":") - it is 13927 # assumed that no part of a normal pathname contains ";" but that should 13928 # okay in the real world where ";" in dirpaths is itself problematic. 13929 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13930 ;; 13931 *) 13932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13933 ;; 13934 esac 13935 # Ok, now we have the path, separated by spaces, we can step through it 13936 # and add multilib dir if necessary... 13937 lt_tmp_lt_search_path_spec= 13938 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13939 # ...but if some path component already ends with the multilib dir we assume 13940 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13941 case "$lt_multi_os_dir; $lt_search_path_spec " in 13942 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13943 lt_multi_os_dir= 13944 ;; 13945 esac 13946 for lt_sys_path in $lt_search_path_spec; do 13947 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13949 elif test -n "$lt_multi_os_dir"; then 13950 test -d "$lt_sys_path" && \ 13951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13952 fi 13953 done 13954 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13955BEGIN {RS = " "; FS = "/|\n";} { 13956 lt_foo = ""; 13957 lt_count = 0; 13958 for (lt_i = NF; lt_i > 0; lt_i--) { 13959 if ($lt_i != "" && $lt_i != ".") { 13960 if ($lt_i == "..") { 13961 lt_count++; 13962 } else { 13963 if (lt_count == 0) { 13964 lt_foo = "/" $lt_i lt_foo; 13965 } else { 13966 lt_count--; 13967 } 13968 } 13969 } 13970 } 13971 if (lt_foo != "") { lt_freq[lt_foo]++; } 13972 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13973}'` 13974 # AWK program above erroneously prepends '/' to C:/dos/paths 13975 # for these hosts. 13976 case $host_os in 13977 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13978 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13979 esac 13980 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13981else 13982 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13983fi 13984library_names_spec= 13985libname_spec='lib$name' 13986soname_spec= 13987shrext_cmds=.so 13988postinstall_cmds= 13989postuninstall_cmds= 13990finish_cmds= 13991finish_eval= 13992shlibpath_var= 13993shlibpath_overrides_runpath=unknown 13994version_type=none 13995dynamic_linker="$host_os ld.so" 13996sys_lib_dlsearch_path_spec="/lib /usr/lib" 13997need_lib_prefix=unknown 13998hardcode_into_libs=no 13999 14000# when you set need_version to no, make sure it does not cause -set_version 14001# flags to be left without arguments 14002need_version=unknown 14003 14004 14005 14006case $host_os in 14007aix3*) 14008 version_type=linux # correct to gnu/linux during the next big refactor 14009 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14010 shlibpath_var=LIBPATH 14011 14012 # AIX 3 has no versioning support, so we append a major version to the name. 14013 soname_spec='$libname$release$shared_ext$major' 14014 ;; 14015 14016aix[4-9]*) 14017 version_type=linux # correct to gnu/linux during the next big refactor 14018 need_lib_prefix=no 14019 need_version=no 14020 hardcode_into_libs=yes 14021 if test ia64 = "$host_cpu"; then 14022 # AIX 5 supports IA64 14023 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14024 shlibpath_var=LD_LIBRARY_PATH 14025 else 14026 # With GCC up to 2.95.x, collect2 would create an import file 14027 # for dependence libraries. The import file would start with 14028 # the line '#! .'. This would cause the generated library to 14029 # depend on '.', always an invalid library. This was fixed in 14030 # development snapshots of GCC prior to 3.0. 14031 case $host_os in 14032 aix4 | aix4.[01] | aix4.[01].*) 14033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14034 echo ' yes ' 14035 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14036 : 14037 else 14038 can_build_shared=no 14039 fi 14040 ;; 14041 esac 14042 # Using Import Files as archive members, it is possible to support 14043 # filename-based versioning of shared library archives on AIX. While 14044 # this would work for both with and without runtime linking, it will 14045 # prevent static linking of such archives. So we do filename-based 14046 # shared library versioning with .so extension only, which is used 14047 # when both runtime linking and shared linking is enabled. 14048 # Unfortunately, runtime linking may impact performance, so we do 14049 # not want this to be the default eventually. Also, we use the 14050 # versioned .so libs for executables only if there is the -brtl 14051 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14052 # To allow for filename-based versioning support, we need to create 14053 # libNAME.so.V as an archive file, containing: 14054 # *) an Import File, referring to the versioned filename of the 14055 # archive as well as the shared archive member, telling the 14056 # bitwidth (32 or 64) of that shared object, and providing the 14057 # list of exported symbols of that shared object, eventually 14058 # decorated with the 'weak' keyword 14059 # *) the shared object with the F_LOADONLY flag set, to really avoid 14060 # it being seen by the linker. 14061 # At run time we better use the real file rather than another symlink, 14062 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14063 14064 case $with_aix_soname,$aix_use_runtimelinking in 14065 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14066 # soname into executable. Probably we can add versioning support to 14067 # collect2, so additional links can be useful in future. 14068 aix,yes) # traditional libtool 14069 dynamic_linker='AIX unversionable lib.so' 14070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14071 # instead of lib<name>.a to let people know that these are not 14072 # typical AIX shared libraries. 14073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14074 ;; 14075 aix,no) # traditional AIX only 14076 dynamic_linker='AIX lib.a(lib.so.V)' 14077 # We preserve .a as extension for shared libraries through AIX4.2 14078 # and later when we are not doing run time linking. 14079 library_names_spec='$libname$release.a $libname.a' 14080 soname_spec='$libname$release$shared_ext$major' 14081 ;; 14082 svr4,*) # full svr4 only 14083 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14084 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14085 # We do not specify a path in Import Files, so LIBPATH fires. 14086 shlibpath_overrides_runpath=yes 14087 ;; 14088 *,yes) # both, prefer svr4 14089 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14090 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14091 # unpreferred sharedlib libNAME.a needs extra handling 14092 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14093 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14094 # We do not specify a path in Import Files, so LIBPATH fires. 14095 shlibpath_overrides_runpath=yes 14096 ;; 14097 *,no) # both, prefer aix 14098 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14099 library_names_spec='$libname$release.a $libname.a' 14100 soname_spec='$libname$release$shared_ext$major' 14101 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14102 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 14103 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 14104 ;; 14105 esac 14106 shlibpath_var=LIBPATH 14107 fi 14108 ;; 14109 14110amigaos*) 14111 case $host_cpu in 14112 powerpc) 14113 # Since July 2007 AmigaOS4 officially supports .so libraries. 14114 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14116 ;; 14117 m68k) 14118 library_names_spec='$libname.ixlibrary $libname.a' 14119 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14120 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14121 ;; 14122 esac 14123 ;; 14124 14125beos*) 14126 library_names_spec='$libname$shared_ext' 14127 dynamic_linker="$host_os ld.so" 14128 shlibpath_var=LIBRARY_PATH 14129 ;; 14130 14131bsdi[45]*) 14132 version_type=linux # correct to gnu/linux during the next big refactor 14133 need_version=no 14134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14135 soname_spec='$libname$release$shared_ext$major' 14136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14137 shlibpath_var=LD_LIBRARY_PATH 14138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14140 # the default ld.so.conf also contains /usr/contrib/lib and 14141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14142 # libtool to hard-code these into programs 14143 ;; 14144 14145cygwin* | mingw* | pw32* | cegcc*) 14146 version_type=windows 14147 shrext_cmds=.dll 14148 need_version=no 14149 need_lib_prefix=no 14150 14151 case $GCC,$cc_basename in 14152 yes,*) 14153 # gcc 14154 library_names_spec='$libname.dll.a' 14155 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14156 postinstall_cmds='base_file=`basename \$file`~ 14157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14158 dldir=$destdir/`dirname \$dlpath`~ 14159 test -d \$dldir || mkdir -p \$dldir~ 14160 $install_prog $dir/$dlname \$dldir/$dlname~ 14161 chmod a+x \$dldir/$dlname~ 14162 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14163 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14164 fi' 14165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14166 dlpath=$dir/\$dldll~ 14167 $RM \$dlpath' 14168 shlibpath_overrides_runpath=yes 14169 14170 case $host_os in 14171 cygwin*) 14172 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14173 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14174 14175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14176 ;; 14177 mingw* | cegcc*) 14178 # MinGW DLLs use traditional 'lib' prefix 14179 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14180 ;; 14181 pw32*) 14182 # pw32 DLLs use 'pw' prefix rather than 'lib' 14183 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14184 ;; 14185 esac 14186 dynamic_linker='Win32 ld.exe' 14187 ;; 14188 14189 *,cl*) 14190 # Native MSVC 14191 libname_spec='$name' 14192 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14193 library_names_spec='$libname.dll.lib' 14194 14195 case $build_os in 14196 mingw*) 14197 sys_lib_search_path_spec= 14198 lt_save_ifs=$IFS 14199 IFS=';' 14200 for lt_path in $LIB 14201 do 14202 IFS=$lt_save_ifs 14203 # Let DOS variable expansion print the short 8.3 style file name. 14204 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14205 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14206 done 14207 IFS=$lt_save_ifs 14208 # Convert to MSYS style. 14209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14210 ;; 14211 cygwin*) 14212 # Convert to unix form, then to dos form, then back to unix form 14213 # but this time dos style (no spaces!) so that the unix form looks 14214 # like /cygdrive/c/PROGRA~1:/cygdr... 14215 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14216 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14217 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14218 ;; 14219 *) 14220 sys_lib_search_path_spec=$LIB 14221 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14222 # It is most probably a Windows format PATH. 14223 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14224 else 14225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14226 fi 14227 # FIXME: find the short name or the path components, as spaces are 14228 # common. (e.g. "Program Files" -> "PROGRA~1") 14229 ;; 14230 esac 14231 14232 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14233 postinstall_cmds='base_file=`basename \$file`~ 14234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14235 dldir=$destdir/`dirname \$dlpath`~ 14236 test -d \$dldir || mkdir -p \$dldir~ 14237 $install_prog $dir/$dlname \$dldir/$dlname' 14238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14239 dlpath=$dir/\$dldll~ 14240 $RM \$dlpath' 14241 shlibpath_overrides_runpath=yes 14242 dynamic_linker='Win32 link.exe' 14243 ;; 14244 14245 *) 14246 # Assume MSVC wrapper 14247 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14248 dynamic_linker='Win32 ld.exe' 14249 ;; 14250 esac 14251 # FIXME: first we should search . and the directory the executable is in 14252 shlibpath_var=PATH 14253 ;; 14254 14255darwin* | rhapsody*) 14256 dynamic_linker="$host_os dyld" 14257 version_type=darwin 14258 need_lib_prefix=no 14259 need_version=no 14260 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14261 soname_spec='$libname$release$major$shared_ext' 14262 shlibpath_overrides_runpath=yes 14263 shlibpath_var=DYLD_LIBRARY_PATH 14264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14265 14266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14268 ;; 14269 14270dgux*) 14271 version_type=linux # correct to gnu/linux during the next big refactor 14272 need_lib_prefix=no 14273 need_version=no 14274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14275 soname_spec='$libname$release$shared_ext$major' 14276 shlibpath_var=LD_LIBRARY_PATH 14277 ;; 14278 14279freebsd* | dragonfly*) 14280 # DragonFly does not have aout. When/if they implement a new 14281 # versioning mechanism, adjust this. 14282 if test -x /usr/bin/objformat; then 14283 objformat=`/usr/bin/objformat` 14284 else 14285 case $host_os in 14286 freebsd[23].*) objformat=aout ;; 14287 *) objformat=elf ;; 14288 esac 14289 fi 14290 version_type=freebsd-$objformat 14291 case $version_type in 14292 freebsd-elf*) 14293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14294 soname_spec='$libname$release$shared_ext$major' 14295 need_version=no 14296 need_lib_prefix=no 14297 ;; 14298 freebsd-*) 14299 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14300 need_version=yes 14301 ;; 14302 esac 14303 shlibpath_var=LD_LIBRARY_PATH 14304 case $host_os in 14305 freebsd2.*) 14306 shlibpath_overrides_runpath=yes 14307 ;; 14308 freebsd3.[01]* | freebsdelf3.[01]*) 14309 shlibpath_overrides_runpath=yes 14310 hardcode_into_libs=yes 14311 ;; 14312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14314 shlibpath_overrides_runpath=no 14315 hardcode_into_libs=yes 14316 ;; 14317 *) # from 4.6 on, and DragonFly 14318 shlibpath_overrides_runpath=yes 14319 hardcode_into_libs=yes 14320 ;; 14321 esac 14322 ;; 14323 14324haiku*) 14325 version_type=linux # correct to gnu/linux during the next big refactor 14326 need_lib_prefix=no 14327 need_version=no 14328 dynamic_linker="$host_os runtime_loader" 14329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14330 soname_spec='$libname$release$shared_ext$major' 14331 shlibpath_var=LIBRARY_PATH 14332 shlibpath_overrides_runpath=no 14333 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14334 hardcode_into_libs=yes 14335 ;; 14336 14337hpux9* | hpux10* | hpux11*) 14338 # Give a soname corresponding to the major version so that dld.sl refuses to 14339 # link against other versions. 14340 version_type=sunos 14341 need_lib_prefix=no 14342 need_version=no 14343 case $host_cpu in 14344 ia64*) 14345 shrext_cmds='.so' 14346 hardcode_into_libs=yes 14347 dynamic_linker="$host_os dld.so" 14348 shlibpath_var=LD_LIBRARY_PATH 14349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14351 soname_spec='$libname$release$shared_ext$major' 14352 if test 32 = "$HPUX_IA64_MODE"; then 14353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14354 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14355 else 14356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14357 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14358 fi 14359 ;; 14360 hppa*64*) 14361 shrext_cmds='.sl' 14362 hardcode_into_libs=yes 14363 dynamic_linker="$host_os dld.sl" 14364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14367 soname_spec='$libname$release$shared_ext$major' 14368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14370 ;; 14371 *) 14372 shrext_cmds='.sl' 14373 dynamic_linker="$host_os dld.sl" 14374 shlibpath_var=SHLIB_PATH 14375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14377 soname_spec='$libname$release$shared_ext$major' 14378 ;; 14379 esac 14380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14381 postinstall_cmds='chmod 555 $lib' 14382 # or fails outright, so override atomically: 14383 install_override_mode=555 14384 ;; 14385 14386interix[3-9]*) 14387 version_type=linux # correct to gnu/linux during the next big refactor 14388 need_lib_prefix=no 14389 need_version=no 14390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14391 soname_spec='$libname$release$shared_ext$major' 14392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14393 shlibpath_var=LD_LIBRARY_PATH 14394 shlibpath_overrides_runpath=no 14395 hardcode_into_libs=yes 14396 ;; 14397 14398irix5* | irix6* | nonstopux*) 14399 case $host_os in 14400 nonstopux*) version_type=nonstopux ;; 14401 *) 14402 if test yes = "$lt_cv_prog_gnu_ld"; then 14403 version_type=linux # correct to gnu/linux during the next big refactor 14404 else 14405 version_type=irix 14406 fi ;; 14407 esac 14408 need_lib_prefix=no 14409 need_version=no 14410 soname_spec='$libname$release$shared_ext$major' 14411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14412 case $host_os in 14413 irix5* | nonstopux*) 14414 libsuff= shlibsuff= 14415 ;; 14416 *) 14417 case $LD in # libtool.m4 will add one of these switches to LD 14418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14419 libsuff= shlibsuff= libmagic=32-bit;; 14420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14421 libsuff=32 shlibsuff=N32 libmagic=N32;; 14422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14423 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14424 *) libsuff= shlibsuff= libmagic=never-match;; 14425 esac 14426 ;; 14427 esac 14428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14429 shlibpath_overrides_runpath=no 14430 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14431 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14432 hardcode_into_libs=yes 14433 ;; 14434 14435# No shared lib support for Linux oldld, aout, or coff. 14436linux*oldld* | linux*aout* | linux*coff*) 14437 dynamic_linker=no 14438 ;; 14439 14440linux*android*) 14441 version_type=none # Android doesn't support versioned libraries. 14442 need_lib_prefix=no 14443 need_version=no 14444 library_names_spec='$libname$release$shared_ext' 14445 soname_spec='$libname$release$shared_ext' 14446 finish_cmds= 14447 shlibpath_var=LD_LIBRARY_PATH 14448 shlibpath_overrides_runpath=yes 14449 14450 # This implies no fast_install, which is unacceptable. 14451 # Some rework will be needed to allow for fast_install 14452 # before this can be enabled. 14453 hardcode_into_libs=yes 14454 14455 dynamic_linker='Android linker' 14456 # Don't embed -rpath directories since the linker doesn't support them. 14457 hardcode_libdir_flag_spec='-L$libdir' 14458 ;; 14459 14460# This must be glibc/ELF. 14461linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14462 version_type=linux # correct to gnu/linux during the next big refactor 14463 need_lib_prefix=no 14464 need_version=no 14465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14466 soname_spec='$libname$release$shared_ext$major' 14467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14468 shlibpath_var=LD_LIBRARY_PATH 14469 shlibpath_overrides_runpath=no 14470 14471 # Some binutils ld are patched to set DT_RUNPATH 14472 if test ${lt_cv_shlibpath_overrides_runpath+y} 14473then : 14474 printf %s "(cached) " >&6 14475else $as_nop 14476 lt_cv_shlibpath_overrides_runpath=no 14477 save_LDFLAGS=$LDFLAGS 14478 save_libdir=$libdir 14479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483 14484int 14485main (void) 14486{ 14487 14488 ; 14489 return 0; 14490} 14491_ACEOF 14492if ac_fn_c_try_link "$LINENO" 14493then : 14494 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 14495then : 14496 lt_cv_shlibpath_overrides_runpath=yes 14497fi 14498fi 14499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14500 conftest$ac_exeext conftest.$ac_ext 14501 LDFLAGS=$save_LDFLAGS 14502 libdir=$save_libdir 14503 14504fi 14505 14506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14507 14508 # This implies no fast_install, which is unacceptable. 14509 # Some rework will be needed to allow for fast_install 14510 # before this can be enabled. 14511 hardcode_into_libs=yes 14512 14513 # Add ABI-specific directories to the system library path. 14514 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 14515 14516 # Ideally, we could use ldconfig to report *all* directores which are 14517 # searched for libraries, however this is still not possible. Aside from not 14518 # being certain /sbin/ldconfig is available, command 14519 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14520 # even though it is searched at run-time. Try to do the best guess by 14521 # appending ld.so.conf contents (and includes) to the search path. 14522 if test -f /etc/ld.so.conf; then 14523 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' ' '` 14524 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14525 fi 14526 14527 # We used to test for /lib/ld.so.1 and disable shared libraries on 14528 # powerpc, because MkLinux only supported shared libraries with the 14529 # GNU dynamic linker. Since this was broken with cross compilers, 14530 # most powerpc-linux boxes support dynamic linking these days and 14531 # people can always --disable-shared, the test was removed, and we 14532 # assume the GNU/Linux dynamic linker is in use. 14533 dynamic_linker='GNU/Linux ld.so' 14534 ;; 14535 14536netbsd*) 14537 version_type=sunos 14538 need_lib_prefix=no 14539 need_version=no 14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14543 dynamic_linker='NetBSD (a.out) ld.so' 14544 else 14545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14546 soname_spec='$libname$release$shared_ext$major' 14547 dynamic_linker='NetBSD ld.elf_so' 14548 fi 14549 shlibpath_var=LD_LIBRARY_PATH 14550 shlibpath_overrides_runpath=yes 14551 hardcode_into_libs=yes 14552 ;; 14553 14554newsos6) 14555 version_type=linux # correct to gnu/linux during the next big refactor 14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14557 shlibpath_var=LD_LIBRARY_PATH 14558 shlibpath_overrides_runpath=yes 14559 ;; 14560 14561*nto* | *qnx*) 14562 version_type=qnx 14563 need_lib_prefix=no 14564 need_version=no 14565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14566 soname_spec='$libname$release$shared_ext$major' 14567 shlibpath_var=LD_LIBRARY_PATH 14568 shlibpath_overrides_runpath=no 14569 hardcode_into_libs=yes 14570 dynamic_linker='ldqnx.so' 14571 ;; 14572 14573openbsd* | bitrig*) 14574 version_type=sunos 14575 sys_lib_dlsearch_path_spec=/usr/lib 14576 need_lib_prefix=no 14577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14578 need_version=no 14579 else 14580 need_version=yes 14581 fi 14582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14584 shlibpath_var=LD_LIBRARY_PATH 14585 shlibpath_overrides_runpath=yes 14586 ;; 14587 14588os2*) 14589 libname_spec='$name' 14590 version_type=windows 14591 shrext_cmds=.dll 14592 need_version=no 14593 need_lib_prefix=no 14594 # OS/2 can only load a DLL with a base name of 8 characters or less. 14595 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14596 v=$($ECHO $release$versuffix | tr -d .-); 14597 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14598 $ECHO $n$v`$shared_ext' 14599 library_names_spec='${libname}_dll.$libext' 14600 dynamic_linker='OS/2 ld.exe' 14601 shlibpath_var=BEGINLIBPATH 14602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14604 postinstall_cmds='base_file=`basename \$file`~ 14605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14606 dldir=$destdir/`dirname \$dlpath`~ 14607 test -d \$dldir || mkdir -p \$dldir~ 14608 $install_prog $dir/$dlname \$dldir/$dlname~ 14609 chmod a+x \$dldir/$dlname~ 14610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14612 fi' 14613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14614 dlpath=$dir/\$dldll~ 14615 $RM \$dlpath' 14616 ;; 14617 14618osf3* | osf4* | osf5*) 14619 version_type=osf 14620 need_lib_prefix=no 14621 need_version=no 14622 soname_spec='$libname$release$shared_ext$major' 14623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14624 shlibpath_var=LD_LIBRARY_PATH 14625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14627 ;; 14628 14629rdos*) 14630 dynamic_linker=no 14631 ;; 14632 14633solaris*) 14634 version_type=linux # correct to gnu/linux during the next big refactor 14635 need_lib_prefix=no 14636 need_version=no 14637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14638 soname_spec='$libname$release$shared_ext$major' 14639 shlibpath_var=LD_LIBRARY_PATH 14640 shlibpath_overrides_runpath=yes 14641 hardcode_into_libs=yes 14642 # ldd complains unless libraries are executable 14643 postinstall_cmds='chmod +x $lib' 14644 ;; 14645 14646sunos4*) 14647 version_type=sunos 14648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14649 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14650 shlibpath_var=LD_LIBRARY_PATH 14651 shlibpath_overrides_runpath=yes 14652 if test yes = "$with_gnu_ld"; then 14653 need_lib_prefix=no 14654 fi 14655 need_version=yes 14656 ;; 14657 14658sysv4 | sysv4.3*) 14659 version_type=linux # correct to gnu/linux during the next big refactor 14660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14661 soname_spec='$libname$release$shared_ext$major' 14662 shlibpath_var=LD_LIBRARY_PATH 14663 case $host_vendor in 14664 sni) 14665 shlibpath_overrides_runpath=no 14666 need_lib_prefix=no 14667 runpath_var=LD_RUN_PATH 14668 ;; 14669 siemens) 14670 need_lib_prefix=no 14671 ;; 14672 motorola) 14673 need_lib_prefix=no 14674 need_version=no 14675 shlibpath_overrides_runpath=no 14676 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14677 ;; 14678 esac 14679 ;; 14680 14681sysv4*MP*) 14682 if test -d /usr/nec; then 14683 version_type=linux # correct to gnu/linux during the next big refactor 14684 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14685 soname_spec='$libname$shared_ext.$major' 14686 shlibpath_var=LD_LIBRARY_PATH 14687 fi 14688 ;; 14689 14690sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14691 version_type=sco 14692 need_lib_prefix=no 14693 need_version=no 14694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14695 soname_spec='$libname$release$shared_ext$major' 14696 shlibpath_var=LD_LIBRARY_PATH 14697 shlibpath_overrides_runpath=yes 14698 hardcode_into_libs=yes 14699 if test yes = "$with_gnu_ld"; then 14700 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14701 else 14702 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14703 case $host_os in 14704 sco3.2v5*) 14705 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14706 ;; 14707 esac 14708 fi 14709 sys_lib_dlsearch_path_spec='/usr/lib' 14710 ;; 14711 14712tpf*) 14713 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14714 version_type=linux # correct to gnu/linux during the next big refactor 14715 need_lib_prefix=no 14716 need_version=no 14717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14718 shlibpath_var=LD_LIBRARY_PATH 14719 shlibpath_overrides_runpath=no 14720 hardcode_into_libs=yes 14721 ;; 14722 14723uts4*) 14724 version_type=linux # correct to gnu/linux during the next big refactor 14725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14726 soname_spec='$libname$release$shared_ext$major' 14727 shlibpath_var=LD_LIBRARY_PATH 14728 ;; 14729 14730*) 14731 dynamic_linker=no 14732 ;; 14733esac 14734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14735printf "%s\n" "$dynamic_linker" >&6; } 14736test no = "$dynamic_linker" && can_build_shared=no 14737 14738variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14739if test yes = "$GCC"; then 14740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14741fi 14742 14743if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14744 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14745fi 14746 14747if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14748 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14749fi 14750 14751# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14752configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14753 14754# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14755func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14756 14757# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14758configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14857printf %s "checking how to hardcode library paths into programs... " >&6; } 14858hardcode_action= 14859if test -n "$hardcode_libdir_flag_spec" || 14860 test -n "$runpath_var" || 14861 test yes = "$hardcode_automatic"; then 14862 14863 # We can hardcode non-existent directories. 14864 if test no != "$hardcode_direct" && 14865 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14866 # have to relink, otherwise we might link with an installed library 14867 # when we should be linking with a yet-to-be-installed one 14868 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14869 test no != "$hardcode_minus_L"; then 14870 # Linking always hardcodes the temporary library directory. 14871 hardcode_action=relink 14872 else 14873 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14874 hardcode_action=immediate 14875 fi 14876else 14877 # We cannot hardcode anything, or else we can only hardcode existing 14878 # directories. 14879 hardcode_action=unsupported 14880fi 14881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14882printf "%s\n" "$hardcode_action" >&6; } 14883 14884if test relink = "$hardcode_action" || 14885 test yes = "$inherit_rpath"; then 14886 # Fast installation is not supported 14887 enable_fast_install=no 14888elif test yes = "$shlibpath_overrides_runpath" || 14889 test no = "$enable_shared"; then 14890 # Fast installation is not necessary 14891 enable_fast_install=needless 14892fi 14893 14894 14895 14896 14897 14898 14899 if test yes != "$enable_dlopen"; then 14900 enable_dlopen=unknown 14901 enable_dlopen_self=unknown 14902 enable_dlopen_self_static=unknown 14903else 14904 lt_cv_dlopen=no 14905 lt_cv_dlopen_libs= 14906 14907 case $host_os in 14908 beos*) 14909 lt_cv_dlopen=load_add_on 14910 lt_cv_dlopen_libs= 14911 lt_cv_dlopen_self=yes 14912 ;; 14913 14914 mingw* | pw32* | cegcc*) 14915 lt_cv_dlopen=LoadLibrary 14916 lt_cv_dlopen_libs= 14917 ;; 14918 14919 cygwin*) 14920 lt_cv_dlopen=dlopen 14921 lt_cv_dlopen_libs= 14922 ;; 14923 14924 darwin*) 14925 # if libdl is installed we need to link against it 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14927printf %s "checking for dlopen in -ldl... " >&6; } 14928if test ${ac_cv_lib_dl_dlopen+y} 14929then : 14930 printf %s "(cached) " >&6 14931else $as_nop 14932 ac_check_lib_save_LIBS=$LIBS 14933LIBS="-ldl $LIBS" 14934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14935/* end confdefs.h. */ 14936 14937/* Override any GCC internal prototype to avoid an error. 14938 Use char because int might match the return type of a GCC 14939 builtin and then its argument prototype would still apply. */ 14940char dlopen (); 14941int 14942main (void) 14943{ 14944return dlopen (); 14945 ; 14946 return 0; 14947} 14948_ACEOF 14949if ac_fn_c_try_link "$LINENO" 14950then : 14951 ac_cv_lib_dl_dlopen=yes 14952else $as_nop 14953 ac_cv_lib_dl_dlopen=no 14954fi 14955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14956 conftest$ac_exeext conftest.$ac_ext 14957LIBS=$ac_check_lib_save_LIBS 14958fi 14959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14960printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 14961if test "x$ac_cv_lib_dl_dlopen" = xyes 14962then : 14963 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14964else $as_nop 14965 14966 lt_cv_dlopen=dyld 14967 lt_cv_dlopen_libs= 14968 lt_cv_dlopen_self=yes 14969 14970fi 14971 14972 ;; 14973 14974 tpf*) 14975 # Don't try to run any link tests for TPF. We know it's impossible 14976 # because TPF is a cross-compiler, and we know how we open DSOs. 14977 lt_cv_dlopen=dlopen 14978 lt_cv_dlopen_libs= 14979 lt_cv_dlopen_self=no 14980 ;; 14981 14982 *) 14983 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14984if test "x$ac_cv_func_shl_load" = xyes 14985then : 14986 lt_cv_dlopen=shl_load 14987else $as_nop 14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14989printf %s "checking for shl_load in -ldld... " >&6; } 14990if test ${ac_cv_lib_dld_shl_load+y} 14991then : 14992 printf %s "(cached) " >&6 14993else $as_nop 14994 ac_check_lib_save_LIBS=$LIBS 14995LIBS="-ldld $LIBS" 14996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14997/* end confdefs.h. */ 14998 14999/* Override any GCC internal prototype to avoid an error. 15000 Use char because int might match the return type of a GCC 15001 builtin and then its argument prototype would still apply. */ 15002char shl_load (); 15003int 15004main (void) 15005{ 15006return shl_load (); 15007 ; 15008 return 0; 15009} 15010_ACEOF 15011if ac_fn_c_try_link "$LINENO" 15012then : 15013 ac_cv_lib_dld_shl_load=yes 15014else $as_nop 15015 ac_cv_lib_dld_shl_load=no 15016fi 15017rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15018 conftest$ac_exeext conftest.$ac_ext 15019LIBS=$ac_check_lib_save_LIBS 15020fi 15021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15022printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 15023if test "x$ac_cv_lib_dld_shl_load" = xyes 15024then : 15025 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15026else $as_nop 15027 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15028if test "x$ac_cv_func_dlopen" = xyes 15029then : 15030 lt_cv_dlopen=dlopen 15031else $as_nop 15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15033printf %s "checking for dlopen in -ldl... " >&6; } 15034if test ${ac_cv_lib_dl_dlopen+y} 15035then : 15036 printf %s "(cached) " >&6 15037else $as_nop 15038 ac_check_lib_save_LIBS=$LIBS 15039LIBS="-ldl $LIBS" 15040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15041/* end confdefs.h. */ 15042 15043/* Override any GCC internal prototype to avoid an error. 15044 Use char because int might match the return type of a GCC 15045 builtin and then its argument prototype would still apply. */ 15046char dlopen (); 15047int 15048main (void) 15049{ 15050return dlopen (); 15051 ; 15052 return 0; 15053} 15054_ACEOF 15055if ac_fn_c_try_link "$LINENO" 15056then : 15057 ac_cv_lib_dl_dlopen=yes 15058else $as_nop 15059 ac_cv_lib_dl_dlopen=no 15060fi 15061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15062 conftest$ac_exeext conftest.$ac_ext 15063LIBS=$ac_check_lib_save_LIBS 15064fi 15065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15066printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15067if test "x$ac_cv_lib_dl_dlopen" = xyes 15068then : 15069 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15070else $as_nop 15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15072printf %s "checking for dlopen in -lsvld... " >&6; } 15073if test ${ac_cv_lib_svld_dlopen+y} 15074then : 15075 printf %s "(cached) " >&6 15076else $as_nop 15077 ac_check_lib_save_LIBS=$LIBS 15078LIBS="-lsvld $LIBS" 15079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15080/* end confdefs.h. */ 15081 15082/* Override any GCC internal prototype to avoid an error. 15083 Use char because int might match the return type of a GCC 15084 builtin and then its argument prototype would still apply. */ 15085char dlopen (); 15086int 15087main (void) 15088{ 15089return dlopen (); 15090 ; 15091 return 0; 15092} 15093_ACEOF 15094if ac_fn_c_try_link "$LINENO" 15095then : 15096 ac_cv_lib_svld_dlopen=yes 15097else $as_nop 15098 ac_cv_lib_svld_dlopen=no 15099fi 15100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15101 conftest$ac_exeext conftest.$ac_ext 15102LIBS=$ac_check_lib_save_LIBS 15103fi 15104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15105printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 15106if test "x$ac_cv_lib_svld_dlopen" = xyes 15107then : 15108 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15109else $as_nop 15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15111printf %s "checking for dld_link in -ldld... " >&6; } 15112if test ${ac_cv_lib_dld_dld_link+y} 15113then : 15114 printf %s "(cached) " >&6 15115else $as_nop 15116 ac_check_lib_save_LIBS=$LIBS 15117LIBS="-ldld $LIBS" 15118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15119/* end confdefs.h. */ 15120 15121/* Override any GCC internal prototype to avoid an error. 15122 Use char because int might match the return type of a GCC 15123 builtin and then its argument prototype would still apply. */ 15124char dld_link (); 15125int 15126main (void) 15127{ 15128return dld_link (); 15129 ; 15130 return 0; 15131} 15132_ACEOF 15133if ac_fn_c_try_link "$LINENO" 15134then : 15135 ac_cv_lib_dld_dld_link=yes 15136else $as_nop 15137 ac_cv_lib_dld_dld_link=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15140 conftest$ac_exeext conftest.$ac_ext 15141LIBS=$ac_check_lib_save_LIBS 15142fi 15143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15144printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 15145if test "x$ac_cv_lib_dld_dld_link" = xyes 15146then : 15147 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15148fi 15149 15150 15151fi 15152 15153 15154fi 15155 15156 15157fi 15158 15159 15160fi 15161 15162 15163fi 15164 15165 ;; 15166 esac 15167 15168 if test no = "$lt_cv_dlopen"; then 15169 enable_dlopen=no 15170 else 15171 enable_dlopen=yes 15172 fi 15173 15174 case $lt_cv_dlopen in 15175 dlopen) 15176 save_CPPFLAGS=$CPPFLAGS 15177 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15178 15179 save_LDFLAGS=$LDFLAGS 15180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15181 15182 save_LIBS=$LIBS 15183 LIBS="$lt_cv_dlopen_libs $LIBS" 15184 15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15186printf %s "checking whether a program can dlopen itself... " >&6; } 15187if test ${lt_cv_dlopen_self+y} 15188then : 15189 printf %s "(cached) " >&6 15190else $as_nop 15191 if test yes = "$cross_compiling"; then : 15192 lt_cv_dlopen_self=cross 15193else 15194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15195 lt_status=$lt_dlunknown 15196 cat > conftest.$ac_ext <<_LT_EOF 15197#line $LINENO "configure" 15198#include "confdefs.h" 15199 15200#if HAVE_DLFCN_H 15201#include <dlfcn.h> 15202#endif 15203 15204#include <stdio.h> 15205 15206#ifdef RTLD_GLOBAL 15207# define LT_DLGLOBAL RTLD_GLOBAL 15208#else 15209# ifdef DL_GLOBAL 15210# define LT_DLGLOBAL DL_GLOBAL 15211# else 15212# define LT_DLGLOBAL 0 15213# endif 15214#endif 15215 15216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15217 find out it does not work in some platform. */ 15218#ifndef LT_DLLAZY_OR_NOW 15219# ifdef RTLD_LAZY 15220# define LT_DLLAZY_OR_NOW RTLD_LAZY 15221# else 15222# ifdef DL_LAZY 15223# define LT_DLLAZY_OR_NOW DL_LAZY 15224# else 15225# ifdef RTLD_NOW 15226# define LT_DLLAZY_OR_NOW RTLD_NOW 15227# else 15228# ifdef DL_NOW 15229# define LT_DLLAZY_OR_NOW DL_NOW 15230# else 15231# define LT_DLLAZY_OR_NOW 0 15232# endif 15233# endif 15234# endif 15235# endif 15236#endif 15237 15238/* When -fvisibility=hidden is used, assume the code has been annotated 15239 correspondingly for the symbols needed. */ 15240#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15241int fnord () __attribute__((visibility("default"))); 15242#endif 15243 15244int fnord () { return 42; } 15245int main () 15246{ 15247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15248 int status = $lt_dlunknown; 15249 15250 if (self) 15251 { 15252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15253 else 15254 { 15255 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15256 else puts (dlerror ()); 15257 } 15258 /* dlclose (self); */ 15259 } 15260 else 15261 puts (dlerror ()); 15262 15263 return status; 15264} 15265_LT_EOF 15266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15267 (eval $ac_link) 2>&5 15268 ac_status=$? 15269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15270 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15271 (./conftest; exit; ) >&5 2>/dev/null 15272 lt_status=$? 15273 case x$lt_status in 15274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15277 esac 15278 else : 15279 # compilation failed 15280 lt_cv_dlopen_self=no 15281 fi 15282fi 15283rm -fr conftest* 15284 15285 15286fi 15287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15288printf "%s\n" "$lt_cv_dlopen_self" >&6; } 15289 15290 if test yes = "$lt_cv_dlopen_self"; then 15291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15293printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 15294if test ${lt_cv_dlopen_self_static+y} 15295then : 15296 printf %s "(cached) " >&6 15297else $as_nop 15298 if test yes = "$cross_compiling"; then : 15299 lt_cv_dlopen_self_static=cross 15300else 15301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15302 lt_status=$lt_dlunknown 15303 cat > conftest.$ac_ext <<_LT_EOF 15304#line $LINENO "configure" 15305#include "confdefs.h" 15306 15307#if HAVE_DLFCN_H 15308#include <dlfcn.h> 15309#endif 15310 15311#include <stdio.h> 15312 15313#ifdef RTLD_GLOBAL 15314# define LT_DLGLOBAL RTLD_GLOBAL 15315#else 15316# ifdef DL_GLOBAL 15317# define LT_DLGLOBAL DL_GLOBAL 15318# else 15319# define LT_DLGLOBAL 0 15320# endif 15321#endif 15322 15323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15324 find out it does not work in some platform. */ 15325#ifndef LT_DLLAZY_OR_NOW 15326# ifdef RTLD_LAZY 15327# define LT_DLLAZY_OR_NOW RTLD_LAZY 15328# else 15329# ifdef DL_LAZY 15330# define LT_DLLAZY_OR_NOW DL_LAZY 15331# else 15332# ifdef RTLD_NOW 15333# define LT_DLLAZY_OR_NOW RTLD_NOW 15334# else 15335# ifdef DL_NOW 15336# define LT_DLLAZY_OR_NOW DL_NOW 15337# else 15338# define LT_DLLAZY_OR_NOW 0 15339# endif 15340# endif 15341# endif 15342# endif 15343#endif 15344 15345/* When -fvisibility=hidden is used, assume the code has been annotated 15346 correspondingly for the symbols needed. */ 15347#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15348int fnord () __attribute__((visibility("default"))); 15349#endif 15350 15351int fnord () { return 42; } 15352int main () 15353{ 15354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15355 int status = $lt_dlunknown; 15356 15357 if (self) 15358 { 15359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15360 else 15361 { 15362 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15363 else puts (dlerror ()); 15364 } 15365 /* dlclose (self); */ 15366 } 15367 else 15368 puts (dlerror ()); 15369 15370 return status; 15371} 15372_LT_EOF 15373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15374 (eval $ac_link) 2>&5 15375 ac_status=$? 15376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15377 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15378 (./conftest; exit; ) >&5 2>/dev/null 15379 lt_status=$? 15380 case x$lt_status in 15381 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15382 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15383 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15384 esac 15385 else : 15386 # compilation failed 15387 lt_cv_dlopen_self_static=no 15388 fi 15389fi 15390rm -fr conftest* 15391 15392 15393fi 15394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15395printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 15396 fi 15397 15398 CPPFLAGS=$save_CPPFLAGS 15399 LDFLAGS=$save_LDFLAGS 15400 LIBS=$save_LIBS 15401 ;; 15402 esac 15403 15404 case $lt_cv_dlopen_self in 15405 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15406 *) enable_dlopen_self=unknown ;; 15407 esac 15408 15409 case $lt_cv_dlopen_self_static in 15410 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15411 *) enable_dlopen_self_static=unknown ;; 15412 esac 15413fi 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431striplib= 15432old_striplib= 15433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15434printf %s "checking whether stripping libraries is possible... " >&6; } 15435if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15436 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15437 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15439printf "%s\n" "yes" >&6; } 15440else 15441# FIXME - insert some real tests, host_os isn't really good enough 15442 case $host_os in 15443 darwin*) 15444 if test -n "$STRIP"; then 15445 striplib="$STRIP -x" 15446 old_striplib="$STRIP -S" 15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15448printf "%s\n" "yes" >&6; } 15449 else 15450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15451printf "%s\n" "no" >&6; } 15452 fi 15453 ;; 15454 *) 15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15456printf "%s\n" "no" >&6; } 15457 ;; 15458 esac 15459fi 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 # Report what library types will actually be built 15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15474printf %s "checking if libtool supports shared libraries... " >&6; } 15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15476printf "%s\n" "$can_build_shared" >&6; } 15477 15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15479printf %s "checking whether to build shared libraries... " >&6; } 15480 test no = "$can_build_shared" && enable_shared=no 15481 15482 # On AIX, shared libraries and static libraries use the same namespace, and 15483 # are all built from PIC. 15484 case $host_os in 15485 aix3*) 15486 test yes = "$enable_shared" && enable_static=no 15487 if test -n "$RANLIB"; then 15488 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15489 postinstall_cmds='$RANLIB $lib' 15490 fi 15491 ;; 15492 15493 aix[4-9]*) 15494 if test ia64 != "$host_cpu"; then 15495 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15496 yes,aix,yes) ;; # shared object as lib.so file only 15497 yes,svr4,*) ;; # shared object as lib.so archive member only 15498 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15499 esac 15500 fi 15501 ;; 15502 esac 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15504printf "%s\n" "$enable_shared" >&6; } 15505 15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15507printf %s "checking whether to build static libraries... " >&6; } 15508 # Make sure either enable_shared or enable_static is yes. 15509 test yes = "$enable_shared" || enable_static=yes 15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15511printf "%s\n" "$enable_static" >&6; } 15512 15513 15514 15515 15516fi 15517ac_ext=c 15518ac_cpp='$CPP $CPPFLAGS' 15519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15521ac_compiler_gnu=$ac_cv_c_compiler_gnu 15522 15523CC=$lt_save_CC 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 ac_config_commands="$ac_config_commands libtool" 15540 15541 15542 15543 15544# Only expand once: 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15557 if test -n "$ac_tool_prefix"; then 15558 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15559set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15561printf %s "checking for $ac_word... " >&6; } 15562if test ${ac_cv_path_PKG_CONFIG+y} 15563then : 15564 printf %s "(cached) " >&6 15565else $as_nop 15566 case $PKG_CONFIG in 15567 [\\/]* | ?:[\\/]*) 15568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15569 ;; 15570 *) 15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15572for as_dir in $PATH 15573do 15574 IFS=$as_save_IFS 15575 case $as_dir in #((( 15576 '') as_dir=./ ;; 15577 */) ;; 15578 *) as_dir=$as_dir/ ;; 15579 esac 15580 for ac_exec_ext in '' $ac_executable_extensions; do 15581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15582 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 15583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15584 break 2 15585 fi 15586done 15587 done 15588IFS=$as_save_IFS 15589 15590 ;; 15591esac 15592fi 15593PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15594if test -n "$PKG_CONFIG"; then 15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15596printf "%s\n" "$PKG_CONFIG" >&6; } 15597else 15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15599printf "%s\n" "no" >&6; } 15600fi 15601 15602 15603fi 15604if test -z "$ac_cv_path_PKG_CONFIG"; then 15605 ac_pt_PKG_CONFIG=$PKG_CONFIG 15606 # Extract the first word of "pkg-config", so it can be a program name with args. 15607set dummy pkg-config; ac_word=$2 15608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15609printf %s "checking for $ac_word... " >&6; } 15610if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 15611then : 15612 printf %s "(cached) " >&6 15613else $as_nop 15614 case $ac_pt_PKG_CONFIG in 15615 [\\/]* | ?:[\\/]*) 15616 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15617 ;; 15618 *) 15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15620for as_dir in $PATH 15621do 15622 IFS=$as_save_IFS 15623 case $as_dir in #((( 15624 '') as_dir=./ ;; 15625 */) ;; 15626 *) as_dir=$as_dir/ ;; 15627 esac 15628 for ac_exec_ext in '' $ac_executable_extensions; do 15629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15630 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 15631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15632 break 2 15633 fi 15634done 15635 done 15636IFS=$as_save_IFS 15637 15638 ;; 15639esac 15640fi 15641ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15642if test -n "$ac_pt_PKG_CONFIG"; then 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15644printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 15645else 15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15647printf "%s\n" "no" >&6; } 15648fi 15649 15650 if test "x$ac_pt_PKG_CONFIG" = x; then 15651 PKG_CONFIG="" 15652 else 15653 case $cross_compiling:$ac_tool_warned in 15654yes:) 15655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15656printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15657ac_tool_warned=yes ;; 15658esac 15659 PKG_CONFIG=$ac_pt_PKG_CONFIG 15660 fi 15661else 15662 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15663fi 15664 15665fi 15666if test -n "$PKG_CONFIG"; then 15667 _pkg_min_version=0.9.0 15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15669printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15670 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15672printf "%s\n" "yes" >&6; } 15673 else 15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15675printf "%s\n" "no" >&6; } 15676 PKG_CONFIG="" 15677 fi 15678fi 15679 15680# Checks for header files. 15681ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 15682" 15683if test "x$ac_cv_header_stdarg_h" = xyes 15684then : 15685 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 15686 15687fi 15688ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default 15689" 15690if test "x$ac_cv_header_stdbool_h" = xyes 15691then : 15692 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 15693 15694fi 15695ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 15696" 15697if test "x$ac_cv_header_netinet_in_h" = xyes 15698then : 15699 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 15700 15701fi 15702ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default 15703" 15704if test "x$ac_cv_header_netinet_tcp_h" = xyes 15705then : 15706 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 15707 15708fi 15709ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 15710" 15711if test "x$ac_cv_header_sys_param_h" = xyes 15712then : 15713 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 15714 15715fi 15716ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 15717" 15718if test "x$ac_cv_header_sys_select_h" = xyes 15719then : 15720 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 15721 15722fi 15723ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 15724" 15725if test "x$ac_cv_header_sys_socket_h" = xyes 15726then : 15727 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 15728 15729fi 15730ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default 15731" 15732if test "x$ac_cv_header_sys_un_h" = xyes 15733then : 15734 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 15735 15736fi 15737ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default 15738" 15739if test "x$ac_cv_header_sys_uio_h" = xyes 15740then : 15741 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 15742 15743fi 15744ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default 15745" 15746if test "x$ac_cv_header_sys_resource_h" = xyes 15747then : 15748 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 15749 15750fi 15751ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 15752" 15753if test "x$ac_cv_header_arpa_inet_h" = xyes 15754then : 15755 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 15756 15757fi 15758ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default 15759" 15760if test "x$ac_cv_header_syslog_h" = xyes 15761then : 15762 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 15763 15764fi 15765ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 15766" 15767if test "x$ac_cv_header_netdb_h" = xyes 15768then : 15769 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 15770 15771fi 15772ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default 15773" 15774if test "x$ac_cv_header_sys_wait_h" = xyes 15775then : 15776 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 15777 15778fi 15779ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default 15780" 15781if test "x$ac_cv_header_pwd_h" = xyes 15782then : 15783 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 15784 15785fi 15786ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default 15787" 15788if test "x$ac_cv_header_glob_h" = xyes 15789then : 15790 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 15791 15792fi 15793ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default 15794" 15795if test "x$ac_cv_header_grp_h" = xyes 15796then : 15797 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 15798 15799fi 15800ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default 15801" 15802if test "x$ac_cv_header_login_cap_h" = xyes 15803then : 15804 printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h 15805 15806fi 15807ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default 15808" 15809if test "x$ac_cv_header_winsock2_h" = xyes 15810then : 15811 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 15812 15813fi 15814ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default 15815" 15816if test "x$ac_cv_header_ws2tcpip_h" = xyes 15817then : 15818 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 15819 15820fi 15821ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default 15822" 15823if test "x$ac_cv_header_endian_h" = xyes 15824then : 15825 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 15826 15827fi 15828ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default 15829" 15830if test "x$ac_cv_header_sys_endian_h" = xyes 15831then : 15832 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 15833 15834fi 15835ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default 15836" 15837if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes 15838then : 15839 printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h 15840 15841fi 15842ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default 15843" 15844if test "x$ac_cv_header_sys_ipc_h" = xyes 15845then : 15846 printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h 15847 15848fi 15849ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default 15850" 15851if test "x$ac_cv_header_sys_shm_h" = xyes 15852then : 15853 printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h 15854 15855fi 15856ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default 15857" 15858if test "x$ac_cv_header_ifaddrs_h" = xyes 15859then : 15860 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 15861 15862fi 15863 15864# net/if.h portability for Darwin see: 15865# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html 15866ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 15867#include <stdio.h> 15868#ifdef STDC_HEADERS 15869# include <stdlib.h> 15870# include <stddef.h> 15871#else 15872# ifdef HAVE_STDLIB_H 15873# include <stdlib.h> 15874# endif 15875#endif 15876#ifdef HAVE_SYS_SOCKET_H 15877# include <sys/socket.h> 15878#endif 15879 15880" 15881if test "x$ac_cv_header_net_if_h" = xyes 15882then : 15883 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 15884 15885fi 15886 15887 15888# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 15889ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default" 15890if test "x$ac_cv_header_TargetConditionals_h" = xyes 15891then : 15892 printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h 15893 15894fi 15895 15896 15897# check for types. 15898# Using own tests for int64* because autoconf builtin only give 32bit. 15899ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 15900if test "x$ac_cv_type_int8_t" = xyes 15901then : 15902 15903else $as_nop 15904 15905printf "%s\n" "#define int8_t signed char" >>confdefs.h 15906 15907fi 15908 15909ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 15910if test "x$ac_cv_type_int16_t" = xyes 15911then : 15912 15913else $as_nop 15914 15915printf "%s\n" "#define int16_t short" >>confdefs.h 15916 15917fi 15918 15919ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 15920if test "x$ac_cv_type_int32_t" = xyes 15921then : 15922 15923else $as_nop 15924 15925printf "%s\n" "#define int32_t int" >>confdefs.h 15926 15927fi 15928 15929ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 15930if test "x$ac_cv_type_int64_t" = xyes 15931then : 15932 15933else $as_nop 15934 15935printf "%s\n" "#define int64_t long long" >>confdefs.h 15936 15937fi 15938 15939ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 15940if test "x$ac_cv_type_uint8_t" = xyes 15941then : 15942 15943else $as_nop 15944 15945printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 15946 15947fi 15948 15949ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 15950if test "x$ac_cv_type_uint16_t" = xyes 15951then : 15952 15953else $as_nop 15954 15955printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 15956 15957fi 15958 15959ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 15960if test "x$ac_cv_type_uint32_t" = xyes 15961then : 15962 15963else $as_nop 15964 15965printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 15966 15967fi 15968 15969ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 15970if test "x$ac_cv_type_uint64_t" = xyes 15971then : 15972 15973else $as_nop 15974 15975printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 15976 15977fi 15978 15979ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15980if test "x$ac_cv_type_size_t" = xyes 15981then : 15982 15983else $as_nop 15984 15985printf "%s\n" "#define size_t unsigned int" >>confdefs.h 15986 15987fi 15988 15989ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15990if test "x$ac_cv_type_ssize_t" = xyes 15991then : 15992 15993else $as_nop 15994 15995printf "%s\n" "#define ssize_t int" >>confdefs.h 15996 15997fi 15998 15999ac_ext=c 16000ac_cpp='$CPP $CPPFLAGS' 16001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16003ac_compiler_gnu=$ac_cv_c_compiler_gnu 16004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 16005printf %s "checking how to run the C preprocessor... " >&6; } 16006# On Suns, sometimes $CPP names a directory. 16007if test -n "$CPP" && test -d "$CPP"; then 16008 CPP= 16009fi 16010if test -z "$CPP"; then 16011 if test ${ac_cv_prog_CPP+y} 16012then : 16013 printf %s "(cached) " >&6 16014else $as_nop 16015 # Double quotes because $CC needs to be expanded 16016 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 16017 do 16018 ac_preproc_ok=false 16019for ac_c_preproc_warn_flag in '' yes 16020do 16021 # Use a header file that comes with gcc, so configuring glibc 16022 # with a fresh cross-compiler works. 16023 # On the NeXT, cc -E runs the code through the compiler's parser, 16024 # not just through cpp. "Syntax error" is here to catch this case. 16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16026/* end confdefs.h. */ 16027#include <limits.h> 16028 Syntax error 16029_ACEOF 16030if ac_fn_c_try_cpp "$LINENO" 16031then : 16032 16033else $as_nop 16034 # Broken: fails on valid input. 16035continue 16036fi 16037rm -f conftest.err conftest.i conftest.$ac_ext 16038 16039 # OK, works on sane cases. Now check whether nonexistent headers 16040 # can be detected and how. 16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043#include <ac_nonexistent.h> 16044_ACEOF 16045if ac_fn_c_try_cpp "$LINENO" 16046then : 16047 # Broken: success on invalid input. 16048continue 16049else $as_nop 16050 # Passes both tests. 16051ac_preproc_ok=: 16052break 16053fi 16054rm -f conftest.err conftest.i conftest.$ac_ext 16055 16056done 16057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16058rm -f conftest.i conftest.err conftest.$ac_ext 16059if $ac_preproc_ok 16060then : 16061 break 16062fi 16063 16064 done 16065 ac_cv_prog_CPP=$CPP 16066 16067fi 16068 CPP=$ac_cv_prog_CPP 16069else 16070 ac_cv_prog_CPP=$CPP 16071fi 16072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 16073printf "%s\n" "$CPP" >&6; } 16074ac_preproc_ok=false 16075for ac_c_preproc_warn_flag in '' yes 16076do 16077 # Use a header file that comes with gcc, so configuring glibc 16078 # with a fresh cross-compiler works. 16079 # On the NeXT, cc -E runs the code through the compiler's parser, 16080 # not just through cpp. "Syntax error" is here to catch this case. 16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16082/* end confdefs.h. */ 16083#include <limits.h> 16084 Syntax error 16085_ACEOF 16086if ac_fn_c_try_cpp "$LINENO" 16087then : 16088 16089else $as_nop 16090 # Broken: fails on valid input. 16091continue 16092fi 16093rm -f conftest.err conftest.i conftest.$ac_ext 16094 16095 # OK, works on sane cases. Now check whether nonexistent headers 16096 # can be detected and how. 16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16098/* end confdefs.h. */ 16099#include <ac_nonexistent.h> 16100_ACEOF 16101if ac_fn_c_try_cpp "$LINENO" 16102then : 16103 # Broken: success on invalid input. 16104continue 16105else $as_nop 16106 # Passes both tests. 16107ac_preproc_ok=: 16108break 16109fi 16110rm -f conftest.err conftest.i conftest.$ac_ext 16111 16112done 16113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16114rm -f conftest.i conftest.err conftest.$ac_ext 16115if $ac_preproc_ok 16116then : 16117 16118else $as_nop 16119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16121as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 16122See \`config.log' for more details" "$LINENO" 5; } 16123fi 16124 16125ac_ext=c 16126ac_cpp='$CPP $CPPFLAGS' 16127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16129ac_compiler_gnu=$ac_cv_c_compiler_gnu 16130 16131 16132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 16133printf %s "checking for uid_t in sys/types.h... " >&6; } 16134if test ${ac_cv_type_uid_t+y} 16135then : 16136 printf %s "(cached) " >&6 16137else $as_nop 16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16139/* end confdefs.h. */ 16140#include <sys/types.h> 16141 16142_ACEOF 16143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16144 $EGREP "uid_t" >/dev/null 2>&1 16145then : 16146 ac_cv_type_uid_t=yes 16147else $as_nop 16148 ac_cv_type_uid_t=no 16149fi 16150rm -rf conftest* 16151 16152fi 16153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 16154printf "%s\n" "$ac_cv_type_uid_t" >&6; } 16155if test $ac_cv_type_uid_t = no; then 16156 16157printf "%s\n" "#define uid_t int" >>confdefs.h 16158 16159 16160printf "%s\n" "#define gid_t int" >>confdefs.h 16161 16162fi 16163 16164 16165 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 16166" 16167if test "x$ac_cv_type_pid_t" = xyes 16168then : 16169 16170else $as_nop 16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16172/* end confdefs.h. */ 16173 16174 #if defined _WIN64 && !defined __CYGWIN__ 16175 LLP64 16176 #endif 16177 16178int 16179main (void) 16180{ 16181 16182 ; 16183 return 0; 16184} 16185 16186_ACEOF 16187if ac_fn_c_try_compile "$LINENO" 16188then : 16189 ac_pid_type='int' 16190else $as_nop 16191 ac_pid_type='__int64' 16192fi 16193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16194 16195printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 16196 16197 16198fi 16199 16200 16201ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16202if test "x$ac_cv_type_off_t" = xyes 16203then : 16204 16205else $as_nop 16206 16207printf "%s\n" "#define off_t long int" >>confdefs.h 16208 16209fi 16210 16211ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 16212$ac_includes_default 16213#ifdef HAVE_WINSOCK2_H 16214# include <winsock2.h> 16215#endif 16216 16217" 16218if test "x$ac_cv_type_u_char" = xyes 16219then : 16220 16221else $as_nop 16222 16223printf "%s\n" "#define u_char unsigned char" >>confdefs.h 16224 16225fi 16226 16227ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 16228$ac_includes_default 16229#ifdef HAVE_SYS_RESOURCE_H 16230# include <sys/resource.h> 16231#endif 16232 16233" 16234if test "x$ac_cv_type_rlim_t" = xyes 16235then : 16236 16237else $as_nop 16238 16239printf "%s\n" "#define rlim_t unsigned long" >>confdefs.h 16240 16241fi 16242 16243 16244ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16245$ac_includes_default 16246#ifdef HAVE_SYS_SOCKET_H 16247# include <sys/socket.h> 16248#endif 16249#ifdef HAVE_WS2TCPIP_H 16250# include <ws2tcpip.h> 16251#endif 16252 16253" 16254if test "x$ac_cv_type_socklen_t" = xyes 16255then : 16256 16257else $as_nop 16258 16259printf "%s\n" "#define socklen_t int" >>confdefs.h 16260 16261fi 16262 16263 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 16264$ac_includes_default 16265#ifdef HAVE_SYS_TYPES_H 16266# include <sys/types.h> 16267#endif 16268#ifdef HAVE_NETINET_IN_H 16269# include <netinet/in.h> 16270#endif 16271 16272" 16273if test "x$ac_cv_type_in_addr_t" = xyes 16274then : 16275 16276else $as_nop 16277 16278printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 16279 16280fi 16281 16282 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 16283$ac_includes_default 16284#ifdef HAVE_SYS_TYPES_H 16285# include <sys/types.h> 16286#endif 16287#ifdef HAVE_NETINET_IN_H 16288# include <netinet/in.h> 16289#endif 16290 16291" 16292if test "x$ac_cv_type_in_port_t" = xyes 16293then : 16294 16295else $as_nop 16296 16297printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h 16298 16299fi 16300 16301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 16302printf %s "checking if memcmp compares unsigned... " >&6; } 16303if test "$cross_compiling" = yes 16304then : 16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 16306printf "%s\n" "cross-compile no" >&6; } 16307 16308printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 16309 16310 case " $LIBOBJS " in 16311 *" memcmp.$ac_objext "* ) ;; 16312 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16313 ;; 16314esac 16315 16316 16317else $as_nop 16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16319/* end confdefs.h. */ 16320 16321#include <stdio.h> 16322#include <stdlib.h> 16323#include <string.h> 16324int main(void) 16325{ 16326 char a = 255, b = 0; 16327 if(memcmp(&a, &b, 1) < 0) 16328 return 1; 16329 return 0; 16330} 16331 16332_ACEOF 16333if ac_fn_c_try_run "$LINENO" 16334then : 16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16336printf "%s\n" "yes" >&6; } 16337else $as_nop 16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16339printf "%s\n" "no" >&6; } 16340 16341printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 16342 16343 case " $LIBOBJS " in 16344 *" memcmp.$ac_objext "* ) ;; 16345 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16346 ;; 16347esac 16348 16349 16350fi 16351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16352 conftest.$ac_objext conftest.beam conftest.$ac_ext 16353fi 16354 16355 16356# The cast to long int works around a bug in the HP C Compiler 16357# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16358# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16359# This bug is HP SR number 8606223364. 16360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 16361printf %s "checking size of time_t... " >&6; } 16362if test ${ac_cv_sizeof_time_t+y} 16363then : 16364 printf %s "(cached) " >&6 16365else $as_nop 16366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 16367$ac_includes_default 16368#ifdef TIME_WITH_SYS_TIME 16369# include <sys/time.h> 16370# include <time.h> 16371#else 16372# ifdef HAVE_SYS_TIME_H 16373# include <sys/time.h> 16374# else 16375# include <time.h> 16376# endif 16377#endif 16378 16379" 16380then : 16381 16382else $as_nop 16383 if test "$ac_cv_type_time_t" = yes; then 16384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16386as_fn_error 77 "cannot compute sizeof (time_t) 16387See \`config.log' for more details" "$LINENO" 5; } 16388 else 16389 ac_cv_sizeof_time_t=0 16390 fi 16391fi 16392 16393fi 16394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 16395printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 16396 16397 16398 16399printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 16400 16401 16402# The cast to long int works around a bug in the HP C Compiler 16403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16405# This bug is HP SR number 8606223364. 16406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 16407printf %s "checking size of size_t... " >&6; } 16408if test ${ac_cv_sizeof_size_t+y} 16409then : 16410 printf %s "(cached) " >&6 16411else $as_nop 16412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 16413then : 16414 16415else $as_nop 16416 if test "$ac_cv_type_size_t" = yes; then 16417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16418printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16419as_fn_error 77 "cannot compute sizeof (size_t) 16420See \`config.log' for more details" "$LINENO" 5; } 16421 else 16422 ac_cv_sizeof_size_t=0 16423 fi 16424fi 16425 16426fi 16427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 16428printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 16429 16430 16431 16432printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 16433 16434 16435 16436# add option to disable the evil rpath 16437 16438# Check whether --enable-rpath was given. 16439if test ${enable_rpath+y} 16440then : 16441 enableval=$enable_rpath; enable_rpath=$enableval 16442else $as_nop 16443 enable_rpath=yes 16444fi 16445 16446if test "x$enable_rpath" = xno; then 16447 ac_config_commands="$ac_config_commands disable-rpath" 16448 16449fi 16450 16451 16452 16453# check to see if libraries are needed for these functions. 16454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 16455printf %s "checking for library containing inet_pton... " >&6; } 16456if test ${ac_cv_search_inet_pton+y} 16457then : 16458 printf %s "(cached) " >&6 16459else $as_nop 16460 ac_func_search_save_LIBS=$LIBS 16461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463 16464/* Override any GCC internal prototype to avoid an error. 16465 Use char because int might match the return type of a GCC 16466 builtin and then its argument prototype would still apply. */ 16467char inet_pton (); 16468int 16469main (void) 16470{ 16471return inet_pton (); 16472 ; 16473 return 0; 16474} 16475_ACEOF 16476for ac_lib in '' nsl 16477do 16478 if test -z "$ac_lib"; then 16479 ac_res="none required" 16480 else 16481 ac_res=-l$ac_lib 16482 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16483 fi 16484 if ac_fn_c_try_link "$LINENO" 16485then : 16486 ac_cv_search_inet_pton=$ac_res 16487fi 16488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16489 conftest$ac_exeext 16490 if test ${ac_cv_search_inet_pton+y} 16491then : 16492 break 16493fi 16494done 16495if test ${ac_cv_search_inet_pton+y} 16496then : 16497 16498else $as_nop 16499 ac_cv_search_inet_pton=no 16500fi 16501rm conftest.$ac_ext 16502LIBS=$ac_func_search_save_LIBS 16503fi 16504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 16505printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 16506ac_res=$ac_cv_search_inet_pton 16507if test "$ac_res" != no 16508then : 16509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16510 16511fi 16512 16513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 16514printf %s "checking for library containing socket... " >&6; } 16515if test ${ac_cv_search_socket+y} 16516then : 16517 printf %s "(cached) " >&6 16518else $as_nop 16519 ac_func_search_save_LIBS=$LIBS 16520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522 16523/* Override any GCC internal prototype to avoid an error. 16524 Use char because int might match the return type of a GCC 16525 builtin and then its argument prototype would still apply. */ 16526char socket (); 16527int 16528main (void) 16529{ 16530return socket (); 16531 ; 16532 return 0; 16533} 16534_ACEOF 16535for ac_lib in '' socket 16536do 16537 if test -z "$ac_lib"; then 16538 ac_res="none required" 16539 else 16540 ac_res=-l$ac_lib 16541 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16542 fi 16543 if ac_fn_c_try_link "$LINENO" 16544then : 16545 ac_cv_search_socket=$ac_res 16546fi 16547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16548 conftest$ac_exeext 16549 if test ${ac_cv_search_socket+y} 16550then : 16551 break 16552fi 16553done 16554if test ${ac_cv_search_socket+y} 16555then : 16556 16557else $as_nop 16558 ac_cv_search_socket=no 16559fi 16560rm conftest.$ac_ext 16561LIBS=$ac_func_search_save_LIBS 16562fi 16563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 16564printf "%s\n" "$ac_cv_search_socket" >&6; } 16565ac_res=$ac_cv_search_socket 16566if test "$ac_res" != no 16567then : 16568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16569 16570fi 16571 16572 16573# check wether strptime also works 16574 16575# check some functions of the OS before linking libs (while still runnable). 16576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 16577printf %s "checking for working chown... " >&6; } 16578if test ${ac_cv_func_chown_works+y} 16579then : 16580 printf %s "(cached) " >&6 16581else $as_nop 16582 if test "$cross_compiling" = yes 16583then : 16584 case "$host_os" in # (( 16585 # Guess yes on glibc systems. 16586 *-gnu*) ac_cv_func_chown_works=yes ;; 16587 # If we don't know, assume the worst. 16588 *) ac_cv_func_chown_works=no ;; 16589 esac 16590else $as_nop 16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16592/* end confdefs.h. */ 16593$ac_includes_default 16594#include <fcntl.h> 16595 16596int 16597main (void) 16598{ 16599 char *f = "conftest.chown"; 16600 struct stat before, after; 16601 16602 if (creat (f, 0600) < 0) 16603 return 1; 16604 if (stat (f, &before) < 0) 16605 return 1; 16606 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 16607 return 1; 16608 if (stat (f, &after) < 0) 16609 return 1; 16610 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 16611 16612 ; 16613 return 0; 16614} 16615_ACEOF 16616if ac_fn_c_try_run "$LINENO" 16617then : 16618 ac_cv_func_chown_works=yes 16619else $as_nop 16620 ac_cv_func_chown_works=no 16621fi 16622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16623 conftest.$ac_objext conftest.beam conftest.$ac_ext 16624fi 16625 16626rm -f conftest.chown 16627 16628fi 16629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 16630printf "%s\n" "$ac_cv_func_chown_works" >&6; } 16631if test $ac_cv_func_chown_works = yes; then 16632 16633printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 16634 16635fi 16636 16637 16638ac_func= 16639for ac_item in $ac_func_c_list 16640do 16641 if test $ac_func; then 16642 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 16643 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 16644 echo "#define $ac_item 1" >> confdefs.h 16645 fi 16646 ac_func= 16647 else 16648 ac_func=$ac_item 16649 fi 16650done 16651 16652 16653 16654if test "x$ac_cv_func_fork" = xyes; then 16655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 16656printf %s "checking for working fork... " >&6; } 16657if test ${ac_cv_func_fork_works+y} 16658then : 16659 printf %s "(cached) " >&6 16660else $as_nop 16661 if test "$cross_compiling" = yes 16662then : 16663 ac_cv_func_fork_works=cross 16664else $as_nop 16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666/* end confdefs.h. */ 16667$ac_includes_default 16668int 16669main (void) 16670{ 16671 16672 /* By Ruediger Kuhlmann. */ 16673 return fork () < 0; 16674 16675 ; 16676 return 0; 16677} 16678_ACEOF 16679if ac_fn_c_try_run "$LINENO" 16680then : 16681 ac_cv_func_fork_works=yes 16682else $as_nop 16683 ac_cv_func_fork_works=no 16684fi 16685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16686 conftest.$ac_objext conftest.beam conftest.$ac_ext 16687fi 16688 16689fi 16690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 16691printf "%s\n" "$ac_cv_func_fork_works" >&6; } 16692 16693else 16694 ac_cv_func_fork_works=$ac_cv_func_fork 16695fi 16696if test "x$ac_cv_func_fork_works" = xcross; then 16697 case $host in 16698 *-*-amigaos* | *-*-msdosdjgpp*) 16699 # Override, as these systems have only a dummy fork() stub 16700 ac_cv_func_fork_works=no 16701 ;; 16702 *) 16703 ac_cv_func_fork_works=yes 16704 ;; 16705 esac 16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 16707printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 16708fi 16709ac_cv_func_vfork_works=$ac_cv_func_vfork 16710if test "x$ac_cv_func_vfork" = xyes; then 16711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 16712printf %s "checking for working vfork... " >&6; } 16713if test ${ac_cv_func_vfork_works+y} 16714then : 16715 printf %s "(cached) " >&6 16716else $as_nop 16717 if test "$cross_compiling" = yes 16718then : 16719 ac_cv_func_vfork_works=cross 16720else $as_nop 16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16722/* end confdefs.h. */ 16723/* Thanks to Paul Eggert for this test. */ 16724$ac_includes_default 16725#include <signal.h> 16726#include <sys/wait.h> 16727#ifdef HAVE_VFORK_H 16728# include <vfork.h> 16729#endif 16730 16731static void 16732do_nothing (int sig) 16733{ 16734 (void) sig; 16735} 16736 16737/* On some sparc systems, changes by the child to local and incoming 16738 argument registers are propagated back to the parent. The compiler 16739 is told about this with #include <vfork.h>, but some compilers 16740 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 16741 static variable whose address is put into a register that is 16742 clobbered by the vfork. */ 16743static void 16744sparc_address_test (int arg) 16745{ 16746 static pid_t child; 16747 if (!child) { 16748 child = vfork (); 16749 if (child < 0) { 16750 perror ("vfork"); 16751 _exit(2); 16752 } 16753 if (!child) { 16754 arg = getpid(); 16755 write(-1, "", 0); 16756 _exit (arg); 16757 } 16758 } 16759} 16760 16761int 16762main (void) 16763{ 16764 pid_t parent = getpid (); 16765 pid_t child; 16766 16767 sparc_address_test (0); 16768 16769 /* On Solaris 2.4, changes by the child to the signal handler 16770 also munge signal handlers in the parent. To detect this, 16771 start by putting the parent's handler in a known state. */ 16772 signal (SIGTERM, SIG_DFL); 16773 16774 child = vfork (); 16775 16776 if (child == 0) { 16777 /* Here is another test for sparc vfork register problems. This 16778 test uses lots of local variables, at least as many local 16779 variables as main has allocated so far including compiler 16780 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 16781 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 16782 reuse the register of parent for one of the local variables, 16783 since it will think that parent can't possibly be used any more 16784 in this routine. Assigning to the local variable will thus 16785 munge parent in the parent process. */ 16786 pid_t 16787 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 16788 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 16789 /* Convince the compiler that p..p7 are live; otherwise, it might 16790 use the same hardware register for all 8 local variables. */ 16791 if (p != p1 || p != p2 || p != p3 || p != p4 16792 || p != p5 || p != p6 || p != p7) 16793 _exit(1); 16794 16795 /* Alter the child's signal handler. */ 16796 if (signal (SIGTERM, do_nothing) != SIG_DFL) 16797 _exit(1); 16798 16799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 16800 from child file descriptors. If the child closes a descriptor 16801 before it execs or exits, this munges the parent's descriptor 16802 as well. Test for this by closing stdout in the child. */ 16803 _exit(close(fileno(stdout)) != 0); 16804 } else { 16805 int status; 16806 struct stat st; 16807 16808 while (wait(&status) != child) 16809 ; 16810 return ( 16811 /* Was there some problem with vforking? */ 16812 child < 0 16813 16814 /* Did the child munge the parent's signal handler? */ 16815 || signal (SIGTERM, SIG_DFL) != SIG_DFL 16816 16817 /* Did the child fail? (This shouldn't happen.) */ 16818 || status 16819 16820 /* Did the vfork/compiler bug occur? */ 16821 || parent != getpid() 16822 16823 /* Did the file descriptor bug occur? */ 16824 || fstat(fileno(stdout), &st) != 0 16825 ); 16826 } 16827} 16828_ACEOF 16829if ac_fn_c_try_run "$LINENO" 16830then : 16831 ac_cv_func_vfork_works=yes 16832else $as_nop 16833 ac_cv_func_vfork_works=no 16834fi 16835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16836 conftest.$ac_objext conftest.beam conftest.$ac_ext 16837fi 16838 16839fi 16840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 16841printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 16842 16843fi; 16844if test "x$ac_cv_func_fork_works" = xcross; then 16845 ac_cv_func_vfork_works=$ac_cv_func_vfork 16846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 16847printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 16848fi 16849 16850if test "x$ac_cv_func_vfork_works" = xyes; then 16851 16852printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 16853 16854else 16855 16856printf "%s\n" "#define vfork fork" >>confdefs.h 16857 16858fi 16859if test "x$ac_cv_func_fork_works" = xyes; then 16860 16861printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 16862 16863fi 16864 16865 16866printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 16867 16868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 16869printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 16870if test ${ac_cv_sys_largefile_source+y} 16871then : 16872 printf %s "(cached) " >&6 16873else $as_nop 16874 while :; do 16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16876/* end confdefs.h. */ 16877#include <sys/types.h> /* for off_t */ 16878 #include <stdio.h> 16879int 16880main (void) 16881{ 16882int (*fp) (FILE *, off_t, int) = fseeko; 16883 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 16884 ; 16885 return 0; 16886} 16887_ACEOF 16888if ac_fn_c_try_link "$LINENO" 16889then : 16890 ac_cv_sys_largefile_source=no; break 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16893 conftest$ac_exeext conftest.$ac_ext 16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895/* end confdefs.h. */ 16896#define _LARGEFILE_SOURCE 1 16897#include <sys/types.h> /* for off_t */ 16898 #include <stdio.h> 16899int 16900main (void) 16901{ 16902int (*fp) (FILE *, off_t, int) = fseeko; 16903 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 16904 ; 16905 return 0; 16906} 16907_ACEOF 16908if ac_fn_c_try_link "$LINENO" 16909then : 16910 ac_cv_sys_largefile_source=1; break 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16913 conftest$ac_exeext conftest.$ac_ext 16914 ac_cv_sys_largefile_source=unknown 16915 break 16916done 16917fi 16918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 16919printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 16920case $ac_cv_sys_largefile_source in #( 16921 no | unknown) ;; 16922 *) 16923printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 16924;; 16925esac 16926rm -rf conftest* 16927 16928# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 16929# in glibc 2.1.3, but that breaks too many other things. 16930# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 16931if test $ac_cv_sys_largefile_source != unknown; then 16932 16933printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 16934 16935fi 16936 16937 16938# Check whether --enable-largefile was given. 16939if test ${enable_largefile+y} 16940then : 16941 enableval=$enable_largefile; 16942fi 16943 16944if test "$enable_largefile" != no; then 16945 16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16947printf %s "checking for special C compiler options needed for large files... " >&6; } 16948if test ${ac_cv_sys_largefile_CC+y} 16949then : 16950 printf %s "(cached) " >&6 16951else $as_nop 16952 ac_cv_sys_largefile_CC=no 16953 if test "$GCC" != yes; then 16954 ac_save_CC=$CC 16955 while :; do 16956 # IRIX 6.2 and later do not support large files by default, 16957 # so use the C compiler's -n32 option if that helps. 16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16959/* end confdefs.h. */ 16960#include <sys/types.h> 16961 /* Check that off_t can represent 2**63 - 1 correctly. 16962 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16963 since some C++ compilers masquerading as C compilers 16964 incorrectly reject 9223372036854775807. */ 16965#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 16966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16967 && LARGE_OFF_T % 2147483647 == 1) 16968 ? 1 : -1]; 16969int 16970main (void) 16971{ 16972 16973 ; 16974 return 0; 16975} 16976_ACEOF 16977 if ac_fn_c_try_compile "$LINENO" 16978then : 16979 break 16980fi 16981rm -f core conftest.err conftest.$ac_objext conftest.beam 16982 CC="$CC -n32" 16983 if ac_fn_c_try_compile "$LINENO" 16984then : 16985 ac_cv_sys_largefile_CC=' -n32'; break 16986fi 16987rm -f core conftest.err conftest.$ac_objext conftest.beam 16988 break 16989 done 16990 CC=$ac_save_CC 16991 rm -f conftest.$ac_ext 16992 fi 16993fi 16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16995printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 16996 if test "$ac_cv_sys_largefile_CC" != no; then 16997 CC=$CC$ac_cv_sys_largefile_CC 16998 fi 16999 17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17001printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17002if test ${ac_cv_sys_file_offset_bits+y} 17003then : 17004 printf %s "(cached) " >&6 17005else $as_nop 17006 while :; do 17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17008/* end confdefs.h. */ 17009#include <sys/types.h> 17010 /* Check that off_t can represent 2**63 - 1 correctly. 17011 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17012 since some C++ compilers masquerading as C compilers 17013 incorrectly reject 9223372036854775807. */ 17014#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17016 && LARGE_OFF_T % 2147483647 == 1) 17017 ? 1 : -1]; 17018int 17019main (void) 17020{ 17021 17022 ; 17023 return 0; 17024} 17025_ACEOF 17026if ac_fn_c_try_compile "$LINENO" 17027then : 17028 ac_cv_sys_file_offset_bits=no; break 17029fi 17030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033#define _FILE_OFFSET_BITS 64 17034#include <sys/types.h> 17035 /* Check that off_t can represent 2**63 - 1 correctly. 17036 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17037 since some C++ compilers masquerading as C compilers 17038 incorrectly reject 9223372036854775807. */ 17039#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17041 && LARGE_OFF_T % 2147483647 == 1) 17042 ? 1 : -1]; 17043int 17044main (void) 17045{ 17046 17047 ; 17048 return 0; 17049} 17050_ACEOF 17051if ac_fn_c_try_compile "$LINENO" 17052then : 17053 ac_cv_sys_file_offset_bits=64; break 17054fi 17055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17056 ac_cv_sys_file_offset_bits=unknown 17057 break 17058done 17059fi 17060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17061printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 17062case $ac_cv_sys_file_offset_bits in #( 17063 no | unknown) ;; 17064 *) 17065printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 17066;; 17067esac 17068rm -rf conftest* 17069 if test $ac_cv_sys_file_offset_bits = unknown; then 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17071printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 17072if test ${ac_cv_sys_large_files+y} 17073then : 17074 printf %s "(cached) " >&6 17075else $as_nop 17076 while :; do 17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17078/* end confdefs.h. */ 17079#include <sys/types.h> 17080 /* Check that off_t can represent 2**63 - 1 correctly. 17081 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17082 since some C++ compilers masquerading as C compilers 17083 incorrectly reject 9223372036854775807. */ 17084#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17086 && LARGE_OFF_T % 2147483647 == 1) 17087 ? 1 : -1]; 17088int 17089main (void) 17090{ 17091 17092 ; 17093 return 0; 17094} 17095_ACEOF 17096if ac_fn_c_try_compile "$LINENO" 17097then : 17098 ac_cv_sys_large_files=no; break 17099fi 17100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17102/* end confdefs.h. */ 17103#define _LARGE_FILES 1 17104#include <sys/types.h> 17105 /* Check that off_t can represent 2**63 - 1 correctly. 17106 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17107 since some C++ compilers masquerading as C compilers 17108 incorrectly reject 9223372036854775807. */ 17109#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17111 && LARGE_OFF_T % 2147483647 == 1) 17112 ? 1 : -1]; 17113int 17114main (void) 17115{ 17116 17117 ; 17118 return 0; 17119} 17120_ACEOF 17121if ac_fn_c_try_compile "$LINENO" 17122then : 17123 ac_cv_sys_large_files=1; break 17124fi 17125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17126 ac_cv_sys_large_files=unknown 17127 break 17128done 17129fi 17130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17131printf "%s\n" "$ac_cv_sys_large_files" >&6; } 17132case $ac_cv_sys_large_files in #( 17133 no | unknown) ;; 17134 *) 17135printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 17136;; 17137esac 17138rm -rf conftest* 17139 fi 17140fi 17141 17142 17143 17144 17145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 17146printf %s "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 17147cache=_D_LARGEFILE_SOURCE_1 17148if eval test \${cv_prog_cc_flag_needed_$cache+y} 17149then : 17150 printf %s "(cached) " >&6 17151else $as_nop 17152 17153echo ' 17154#include <stdio.h> 17155int test() { 17156 int a = fseeko(stdin, 0, 0); 17157 return a; 17158} 17159' > conftest.c 17160echo 'void f(){}' >>conftest.c 17161if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 17162eval "cv_prog_cc_flag_needed_$cache=no" 17163else 17164 17165if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 17166eval "cv_prog_cc_flag_needed_$cache=yes" 17167else 17168eval "cv_prog_cc_flag_needed_$cache=fail" 17169#echo 'Test with flag fails too!' 17170#cat conftest.c 17171#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 17172#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 17173#exit 1 17174fi 17175 17176fi 17177rm -f conftest conftest.c conftest.o 17178 17179fi 17180 17181if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 17182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17183printf "%s\n" "yes" >&6; } 17184: 17185CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 17186else 17187if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 17188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17189printf "%s\n" "no" >&6; } 17190#echo 'Test with flag is no!' 17191#cat conftest.c 17192#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 17193#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 17194#exit 1 17195: 17196 17197else 17198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 17199printf "%s\n" "failed" >&6; } 17200: 17201 17202fi 17203fi 17204 17205 17206 17207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 17208printf %s "checking if nonblocking sockets work... " >&6; } 17209if echo $target | grep mingw32 >/dev/null; then 17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 17211printf "%s\n" "no (windows)" >&6; } 17212 17213printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 17214 17215else 17216if test "$cross_compiling" = yes 17217then : 17218 17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 17220printf "%s\n" "crosscompile(yes)" >&6; } 17221 17222else $as_nop 17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224/* end confdefs.h. */ 17225 17226 17227#include <stdio.h> 17228#include <string.h> 17229#include <stdlib.h> 17230#include <fcntl.h> 17231#include <errno.h> 17232#ifdef HAVE_SYS_TYPES_H 17233#include <sys/types.h> 17234#endif 17235#ifdef HAVE_SYS_SOCKET_H 17236#include <sys/socket.h> 17237#endif 17238#ifdef HAVE_NETINET_IN_H 17239#include <netinet/in.h> 17240#endif 17241#ifdef HAVE_ARPA_INET_H 17242#include <arpa/inet.h> 17243#endif 17244#ifdef HAVE_UNISTD_H 17245#include <unistd.h> 17246#endif 17247#ifdef HAVE_TIME_H 17248#include <time.h> 17249#endif 17250 17251int main(void) 17252{ 17253 int port; 17254 int sfd, cfd; 17255 int num = 10; 17256 int i, p; 17257 struct sockaddr_in a; 17258 /* test if select and nonblocking reads work well together */ 17259 /* open port. 17260 fork child to send 10 messages. 17261 select to read. 17262 then try to nonblocking read the 10 messages 17263 then, nonblocking read must give EAGAIN 17264 */ 17265 17266 port = 12345 + (time(0)%32); 17267 sfd = socket(PF_INET, SOCK_DGRAM, 0); 17268 if(sfd == -1) { 17269 perror("socket"); 17270 return 1; 17271 } 17272 memset(&a, 0, sizeof(a)); 17273 a.sin_family = AF_INET; 17274 a.sin_port = htons(port); 17275 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 17276 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 17277 perror("bind"); 17278 return 1; 17279 } 17280 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 17281 perror("fcntl"); 17282 return 1; 17283 } 17284 17285 cfd = socket(PF_INET, SOCK_DGRAM, 0); 17286 if(cfd == -1) { 17287 perror("client socket"); 17288 return 1; 17289 } 17290 a.sin_port = 0; 17291 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 17292 perror("client bind"); 17293 return 1; 17294 } 17295 a.sin_port = htons(port); 17296 17297 /* no handler, causes exit in 10 seconds */ 17298 alarm(10); 17299 17300 /* send and receive on the socket */ 17301 if((p=fork()) == 0) { 17302 for(i=0; i<num; i++) { 17303 if(sendto(cfd, &i, sizeof(i), 0, 17304 (struct sockaddr*)&a, sizeof(a)) < 0) { 17305 perror("sendto"); 17306 return 1; 17307 } 17308 } 17309 } else { 17310 /* parent */ 17311 fd_set rset; 17312 int x; 17313 if(p == -1) { 17314 perror("fork"); 17315 return 1; 17316 } 17317 FD_ZERO(&rset); 17318 FD_SET(sfd, &rset); 17319 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 17320 perror("select"); 17321 return 1; 17322 } 17323 i = 0; 17324 while(i < num) { 17325 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 17326 if(errno == EAGAIN) 17327 continue; 17328 perror("recv"); 17329 return 1; 17330 } 17331 i++; 17332 } 17333 /* now we want to get EAGAIN: nonblocking goodness */ 17334 errno = 0; 17335 recv(sfd, &x, sizeof(x), 0); 17336 if(errno != EAGAIN) { 17337 perror("trying to recv again"); 17338 return 1; 17339 } 17340 /* EAGAIN encountered */ 17341 } 17342 17343 close(sfd); 17344 close(cfd); 17345 return 0; 17346} 17347 17348_ACEOF 17349if ac_fn_c_try_run "$LINENO" 17350then : 17351 17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17353printf "%s\n" "yes" >&6; } 17354 17355else $as_nop 17356 17357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17358printf "%s\n" "no" >&6; } 17359 17360printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 17361 17362 17363fi 17364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17365 conftest.$ac_objext conftest.beam conftest.$ac_ext 17366fi 17367 17368fi 17369 17370 17371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 17372printf %s "checking whether mkdir has one arg... " >&6; } 17373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17374/* end confdefs.h. */ 17375 17376#include <stdio.h> 17377#include <unistd.h> 17378#ifdef HAVE_WINSOCK2_H 17379#include <winsock2.h> 17380#endif 17381#ifdef HAVE_SYS_STAT_H 17382#include <sys/stat.h> 17383#endif 17384 17385int 17386main (void) 17387{ 17388 17389 (void)mkdir("directory"); 17390 17391 ; 17392 return 0; 17393} 17394_ACEOF 17395if ac_fn_c_try_compile "$LINENO" 17396then : 17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17398printf "%s\n" "yes" >&6; } 17399 17400printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 17401 17402 17403else $as_nop 17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17405printf "%s\n" "no" >&6; } 17406 17407fi 17408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17409 17410 17411 for ac_func in strptime 17412do : 17413 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 17414if test "x$ac_cv_func_strptime" = xyes 17415then : 17416 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 17417 17418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 17419printf %s "checking whether strptime works... " >&6; } 17420if test c${cross_compiling} = cno; then 17421if test "$cross_compiling" = yes 17422then : 17423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17424printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17425as_fn_error $? "cannot run test program while cross compiling 17426See \`config.log' for more details" "$LINENO" 5; } 17427else $as_nop 17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17429/* end confdefs.h. */ 17430 17431#define _XOPEN_SOURCE 600 17432#include <time.h> 17433int main(void) { struct tm tm; char *res; 17434res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm); 17435if (!res) return 2; 17436res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 17437if (!res) return 1; return 0; } 17438 17439_ACEOF 17440if ac_fn_c_try_run "$LINENO" 17441then : 17442 eval "ac_cv_c_strptime_works=yes" 17443else $as_nop 17444 eval "ac_cv_c_strptime_works=no" 17445fi 17446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17447 conftest.$ac_objext conftest.beam conftest.$ac_ext 17448fi 17449 17450else 17451eval "ac_cv_c_strptime_works=maybe" 17452fi 17453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 17454printf "%s\n" "$ac_cv_c_strptime_works" >&6; } 17455if test $ac_cv_c_strptime_works = no; then 17456case " $LIBOBJS " in 17457 *" strptime.$ac_objext "* ) ;; 17458 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 17459 ;; 17460esac 17461 17462else 17463 17464printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h 17465 17466fi 17467 17468else $as_nop 17469 case " $LIBOBJS " in 17470 *" strptime.$ac_objext "* ) ;; 17471 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 17472 ;; 17473esac 17474 17475fi 17476 17477done 17478 17479# check if we can use SO_REUSEPORT 17480if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then 17481 17482printf "%s\n" "#define REUSEPORT_DEFAULT 1" >>confdefs.h 17483 17484else 17485 17486printf "%s\n" "#define REUSEPORT_DEFAULT 0" >>confdefs.h 17487 17488fi 17489 17490# Include systemd.m4 - begin 17491# macros for configuring systemd 17492# Copyright 2015, Sami Kerola, CloudFlare. 17493# BSD licensed. 17494# Check whether --enable-systemd was given. 17495if test ${enable_systemd+y} 17496then : 17497 enableval=$enable_systemd; 17498else $as_nop 17499 enable_systemd=no 17500fi 17501 17502have_systemd=no 17503if test "x$enable_systemd" != xno 17504then : 17505 17506 17507 17508pkg_failed=no 17509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 17510printf %s "checking for SYSTEMD... " >&6; } 17511 17512if test -n "$SYSTEMD_CFLAGS"; then 17513 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 17514 elif test -n "$PKG_CONFIG"; then 17515 if test -n "$PKG_CONFIG" && \ 17516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 17517 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 17518 ac_status=$? 17519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17520 test $ac_status = 0; }; then 17521 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 17522 test "x$?" != "x0" && pkg_failed=yes 17523else 17524 pkg_failed=yes 17525fi 17526 else 17527 pkg_failed=untried 17528fi 17529if test -n "$SYSTEMD_LIBS"; then 17530 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 17531 elif test -n "$PKG_CONFIG"; then 17532 if test -n "$PKG_CONFIG" && \ 17533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 17534 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 17535 ac_status=$? 17536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17537 test $ac_status = 0; }; then 17538 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 17539 test "x$?" != "x0" && pkg_failed=yes 17540else 17541 pkg_failed=yes 17542fi 17543 else 17544 pkg_failed=untried 17545fi 17546 17547 17548 17549if test $pkg_failed = yes; then 17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17551printf "%s\n" "no" >&6; } 17552 17553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17554 _pkg_short_errors_supported=yes 17555else 17556 _pkg_short_errors_supported=no 17557fi 17558 if test $_pkg_short_errors_supported = yes; then 17559 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 17560 else 17561 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 17562 fi 17563 # Put the nasty error message in config.log where it belongs 17564 echo "$SYSTEMD_PKG_ERRORS" >&5 17565 17566 have_systemd=no 17567elif test $pkg_failed = untried; then 17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17569printf "%s\n" "no" >&6; } 17570 have_systemd=no 17571else 17572 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 17573 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17575printf "%s\n" "yes" >&6; } 17576 have_systemd=yes 17577fi 17578 if test "x$have_systemd" != "xyes" 17579then : 17580 17581 17582pkg_failed=no 17583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 17584printf %s "checking for SYSTEMD_DAEMON... " >&6; } 17585 17586if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 17587 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 17588 elif test -n "$PKG_CONFIG"; then 17589 if test -n "$PKG_CONFIG" && \ 17590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 17591 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 17592 ac_status=$? 17593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17594 test $ac_status = 0; }; then 17595 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 17596 test "x$?" != "x0" && pkg_failed=yes 17597else 17598 pkg_failed=yes 17599fi 17600 else 17601 pkg_failed=untried 17602fi 17603if test -n "$SYSTEMD_DAEMON_LIBS"; then 17604 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 17605 elif test -n "$PKG_CONFIG"; then 17606 if test -n "$PKG_CONFIG" && \ 17607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 17608 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 17609 ac_status=$? 17610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17611 test $ac_status = 0; }; then 17612 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 17613 test "x$?" != "x0" && pkg_failed=yes 17614else 17615 pkg_failed=yes 17616fi 17617 else 17618 pkg_failed=untried 17619fi 17620 17621 17622 17623if test $pkg_failed = yes; then 17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17625printf "%s\n" "no" >&6; } 17626 17627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17628 _pkg_short_errors_supported=yes 17629else 17630 _pkg_short_errors_supported=no 17631fi 17632 if test $_pkg_short_errors_supported = yes; then 17633 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 17634 else 17635 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 17636 fi 17637 # Put the nasty error message in config.log where it belongs 17638 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 17639 17640 have_systemd_daemon=no 17641elif test $pkg_failed = untried; then 17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17643printf "%s\n" "no" >&6; } 17644 have_systemd_daemon=no 17645else 17646 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 17647 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17649printf "%s\n" "yes" >&6; } 17650 have_systemd_daemon=yes 17651fi 17652 if test "x$have_systemd_daemon" = "xyes" 17653then : 17654 have_systemd=yes 17655fi 17656 17657fi 17658 case $enable_systemd:$have_systemd in #( 17659 yes:no) : 17660 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 17661 *:yes) : 17662 17663printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h 17664 17665 LIBS="$LIBS $SYSTEMD_LIBS" 17666 17667 ;; #( 17668 *) : 17669 ;; 17670esac 17671 17672 17673fi 17674 if test "x$have_systemd" = xyes; then 17675 USE_SYSTEMD_TRUE= 17676 USE_SYSTEMD_FALSE='#' 17677else 17678 USE_SYSTEMD_TRUE='#' 17679 USE_SYSTEMD_FALSE= 17680fi 17681 17682 17683# Include systemd.m4 - end 17684 17685# set memory allocation checking if requested 17686# Check whether --enable-alloc-checks was given. 17687if test ${enable_alloc_checks+y} 17688then : 17689 enableval=$enable_alloc_checks; 17690fi 17691 17692# Check whether --enable-alloc-lite was given. 17693if test ${enable_alloc_lite+y} 17694then : 17695 enableval=$enable_alloc_lite; 17696fi 17697 17698# Check whether --enable-alloc-nonregional was given. 17699if test ${enable_alloc_nonregional+y} 17700then : 17701 enableval=$enable_alloc_nonregional; 17702fi 17703 17704if test x_$enable_alloc_nonregional = x_yes; then 17705 17706printf "%s\n" "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 17707 17708fi 17709if test x_$enable_alloc_checks = x_yes; then 17710 17711printf "%s\n" "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 17712 17713 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 17714 17715 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 17716 17717else 17718 if test x_$enable_alloc_lite = x_yes; then 17719 17720printf "%s\n" "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 17721 17722 else 17723 17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 17725printf %s "checking for GNU libc compatible malloc... " >&6; } 17726 if test "$cross_compiling" = yes 17727then : 17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 17729printf "%s\n" "no (crosscompile)" >&6; } 17730 case " $LIBOBJS " in 17731 *" malloc.$ac_objext "* ) ;; 17732 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 17733 ;; 17734esac 17735 17736 17737printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h 17738 17739else $as_nop 17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17741/* end confdefs.h. */ 17742#if defined STDC_HEADERS || defined HAVE_STDLIB_H 17743#include <stdlib.h> 17744#else 17745char *malloc (); 17746#endif 17747 17748int 17749main (void) 17750{ 17751 if(malloc(0) != 0) return 1; 17752 ; 17753 return 0; 17754} 17755 17756_ACEOF 17757if ac_fn_c_try_run "$LINENO" 17758then : 17759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17760printf "%s\n" "no" >&6; } 17761 case " $LIBOBJS " in 17762 *" malloc.$ac_objext "* ) ;; 17763 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 17764 ;; 17765esac 17766 17767 17768printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h 17769 17770else $as_nop 17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17772printf "%s\n" "yes" >&6; } 17773 17774printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h 17775 17776fi 17777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17778 conftest.$ac_objext conftest.beam conftest.$ac_ext 17779fi 17780 17781 17782 fi 17783fi 17784 17785# check windows threads (we use them, not pthreads, on windows). 17786if test "$on_mingw" = "yes"; then 17787# check windows threads 17788 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 17789" 17790if test "x$ac_cv_header_windows_h" = xyes 17791then : 17792 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 17793 17794fi 17795 17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 17797printf %s "checking for CreateThread... " >&6; } 17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17799/* end confdefs.h. */ 17800 17801#ifdef HAVE_WINDOWS_H 17802#include <windows.h> 17803#endif 17804 17805int 17806main (void) 17807{ 17808 17809 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 17810 17811 ; 17812 return 0; 17813} 17814_ACEOF 17815if ac_fn_c_try_compile "$LINENO" 17816then : 17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17818printf "%s\n" "yes" >&6; } 17819 17820printf "%s\n" "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 17821 17822 17823else $as_nop 17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17825printf "%s\n" "no" >&6; } 17826 17827fi 17828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17829 17830else 17831# not on mingw, check thread libraries. 17832 17833# check for thread library. 17834# check this first, so that the pthread lib does not get linked in via 17835# libssl or libpython, and thus distorts the tests, and we end up using 17836# the non-threadsafe C libraries. 17837 17838# Check whether --with-pthreads was given. 17839if test ${with_pthreads+y} 17840then : 17841 withval=$with_pthreads; 17842else $as_nop 17843 withval="yes" 17844fi 17845 17846ub_have_pthreads=no 17847if test x_$withval != x_no; then 17848 17849 17850ac_ext=c 17851ac_cpp='$CPP $CPPFLAGS' 17852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17854ac_compiler_gnu=$ac_cv_c_compiler_gnu 17855 17856ax_pthread_ok=no 17857 17858# We used to check for pthread.h first, but this fails if pthread.h 17859# requires special compiler flags (e.g. on True64 or Sequent). 17860# It gets checked for in the link test anyway. 17861 17862# First of all, check if the user has set any of the PTHREAD_LIBS, 17863# etcetera environment variables, and if threads linking works using 17864# them: 17865if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 17866 save_CFLAGS="$CFLAGS" 17867 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17868 save_LIBS="$LIBS" 17869 LIBS="$PTHREAD_LIBS $LIBS" 17870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 17871printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17873/* end confdefs.h. */ 17874 17875/* Override any GCC internal prototype to avoid an error. 17876 Use char because int might match the return type of a GCC 17877 builtin and then its argument prototype would still apply. */ 17878char pthread_join (); 17879int 17880main (void) 17881{ 17882return pthread_join (); 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887if ac_fn_c_try_link "$LINENO" 17888then : 17889 ax_pthread_ok=yes 17890fi 17891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17892 conftest$ac_exeext conftest.$ac_ext 17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17894printf "%s\n" "$ax_pthread_ok" >&6; } 17895 if test x"$ax_pthread_ok" = xno; then 17896 PTHREAD_LIBS="" 17897 PTHREAD_CFLAGS="" 17898 fi 17899 LIBS="$save_LIBS" 17900 CFLAGS="$save_CFLAGS" 17901fi 17902 17903# We must check for the threads library under a number of different 17904# names; the ordering is very important because some systems 17905# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17906# libraries is broken (non-POSIX). 17907 17908# Create a list of thread flags to try. Items starting with a "-" are 17909# C compiler flags, and other items are library names, except for "none" 17910# which indicates that we try without any flags at all, and "pthread-config" 17911# which is a program returning the flags for the Pth emulation library. 17912 17913ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17914 17915# The ordering *is* (sometimes) important. Some notes on the 17916# individual items follow: 17917 17918# pthreads: AIX (must check this before -lpthread) 17919# none: in case threads are in libc; should be tried before -Kthread and 17920# other compiler flags to prevent continual compiler warnings 17921# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17922# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17923# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17924# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 17925# -pthreads: Solaris/gcc 17926# -mthreads: Mingw32/gcc, Lynx/gcc 17927# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17928# doesn't hurt to check since this sometimes defines pthreads too; 17929# also defines -D_REENTRANT) 17930# ... -mt is also the pthreads flag for HP/aCC 17931# pthread: Linux, etcetera 17932# --thread-safe: KAI C++ 17933# pthread-config: use pthread-config program (for GNU Pth library) 17934 17935case ${host_os} in 17936 solaris*) 17937 17938 # On Solaris (at least, for some versions), libc contains stubbed 17939 # (non-functional) versions of the pthreads routines, so link-based 17940 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 17941 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 17942 # a function called by this macro, so we could check for that, but 17943 # who knows whether they'll stub that too in a future libc.) So, 17944 # we'll just look for -pthreads and -lpthread first: 17945 17946 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 17947 ;; 17948 17949 darwin*) 17950 ax_pthread_flags="-pthread $ax_pthread_flags" 17951 ;; 17952esac 17953 17954# Clang doesn't consider unrecognized options an error unless we specify 17955# -Werror. We throw in some extra Clang-specific options to ensure that 17956# this doesn't happen for GCC, which also accepts -Werror. 17957 17958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 17959printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } 17960save_CFLAGS="$CFLAGS" 17961ax_pthread_extra_flags="-Werror" 17962CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 17963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17964/* end confdefs.h. */ 17965int foo(void); 17966int 17967main (void) 17968{ 17969foo() 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974if ac_fn_c_try_compile "$LINENO" 17975then : 17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17977printf "%s\n" "yes" >&6; } 17978else $as_nop 17979 ax_pthread_extra_flags= 17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17981printf "%s\n" "no" >&6; } 17982fi 17983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17984CFLAGS="$save_CFLAGS" 17985 17986if test x"$ax_pthread_ok" = xno; then 17987for flag in $ax_pthread_flags; do 17988 17989 case $flag in 17990 none) 17991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 17992printf %s "checking whether pthreads work without any flags... " >&6; } 17993 ;; 17994 17995 -*) 17996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 17997printf %s "checking whether pthreads work with $flag... " >&6; } 17998 PTHREAD_CFLAGS="$flag" 17999 ;; 18000 18001 pthread-config) 18002 # Extract the first word of "pthread-config", so it can be a program name with args. 18003set dummy pthread-config; ac_word=$2 18004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18005printf %s "checking for $ac_word... " >&6; } 18006if test ${ac_cv_prog_ax_pthread_config+y} 18007then : 18008 printf %s "(cached) " >&6 18009else $as_nop 18010 if test -n "$ax_pthread_config"; then 18011 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18012else 18013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18014for as_dir in $PATH 18015do 18016 IFS=$as_save_IFS 18017 case $as_dir in #((( 18018 '') as_dir=./ ;; 18019 */) ;; 18020 *) as_dir=$as_dir/ ;; 18021 esac 18022 for ac_exec_ext in '' $ac_executable_extensions; do 18023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18024 ac_cv_prog_ax_pthread_config="yes" 18025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18026 break 2 18027 fi 18028done 18029 done 18030IFS=$as_save_IFS 18031 18032 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18033fi 18034fi 18035ax_pthread_config=$ac_cv_prog_ax_pthread_config 18036if test -n "$ax_pthread_config"; then 18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18038printf "%s\n" "$ax_pthread_config" >&6; } 18039else 18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18041printf "%s\n" "no" >&6; } 18042fi 18043 18044 18045 if test x"$ax_pthread_config" = xno; then continue; fi 18046 PTHREAD_CFLAGS="`pthread-config --cflags`" 18047 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18048 ;; 18049 18050 *) 18051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18052printf %s "checking for the pthreads library -l$flag... " >&6; } 18053 PTHREAD_LIBS="-l$flag" 18054 ;; 18055 esac 18056 18057 save_LIBS="$LIBS" 18058 save_CFLAGS="$CFLAGS" 18059 LIBS="$PTHREAD_LIBS $LIBS" 18060 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 18061 18062 # Check for various functions. We must include pthread.h, 18063 # since some functions may be macros. (On the Sequent, we 18064 # need a special flag -Kthread to make this header compile.) 18065 # We check for pthread_join because it is in -lpthread on IRIX 18066 # while pthread_create is in libc. We check for pthread_attr_init 18067 # due to DEC craziness with -lpthreads. We check for 18068 # pthread_cleanup_push because it is one of the few pthread 18069 # functions on Solaris that doesn't have a non-functional libc stub. 18070 # We try pthread_create on general principles. 18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18072/* end confdefs.h. */ 18073#include <pthread.h> 18074 static void routine(void *a) { *((int*)a) = 0; } 18075 static void *start_routine(void *a) { return a; } 18076int 18077main (void) 18078{ 18079pthread_t th; pthread_attr_t attr; 18080 pthread_create(&th, 0, start_routine, 0); 18081 pthread_join(th, 0); 18082 pthread_attr_init(&attr); 18083 pthread_cleanup_push(routine, 0); 18084 pthread_cleanup_pop(0) /* ; */ 18085 ; 18086 return 0; 18087} 18088_ACEOF 18089if ac_fn_c_try_link "$LINENO" 18090then : 18091 ax_pthread_ok=yes 18092fi 18093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18094 conftest$ac_exeext conftest.$ac_ext 18095 18096 LIBS="$save_LIBS" 18097 CFLAGS="$save_CFLAGS" 18098 18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18100printf "%s\n" "$ax_pthread_ok" >&6; } 18101 if test "x$ax_pthread_ok" = xyes; then 18102 break; 18103 fi 18104 18105 PTHREAD_LIBS="" 18106 PTHREAD_CFLAGS="" 18107done 18108fi 18109 18110# Various other checks: 18111if test "x$ax_pthread_ok" = xyes; then 18112 save_LIBS="$LIBS" 18113 LIBS="$PTHREAD_LIBS $LIBS" 18114 save_CFLAGS="$CFLAGS" 18115 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18116 18117 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18119printf %s "checking for joinable pthread attribute... " >&6; } 18120 attr_name=unknown 18121 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18123/* end confdefs.h. */ 18124#include <pthread.h> 18125int 18126main (void) 18127{ 18128int attr = $attr; return attr /* ; */ 18129 ; 18130 return 0; 18131} 18132_ACEOF 18133if ac_fn_c_try_link "$LINENO" 18134then : 18135 attr_name=$attr; break 18136fi 18137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18138 conftest$ac_exeext conftest.$ac_ext 18139 done 18140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18141printf "%s\n" "$attr_name" >&6; } 18142 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18143 18144printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 18145 18146 fi 18147 18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18149printf %s "checking if more special flags are required for pthreads... " >&6; } 18150 flag=no 18151 case ${host_os} in 18152 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 18153 osf* | hpux*) flag="-D_REENTRANT";; 18154 solaris*) 18155 if test "$GCC" = "yes"; then 18156 flag="-D_REENTRANT" 18157 else 18158 # TODO: What about Clang on Solaris? 18159 flag="-mt -D_REENTRANT" 18160 fi 18161 ;; 18162 esac 18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 18164printf "%s\n" "$flag" >&6; } 18165 if test "x$flag" != xno; then 18166 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 18167 fi 18168 18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 18170printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 18171if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 18172then : 18173 printf %s "(cached) " >&6 18174else $as_nop 18175 18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18177/* end confdefs.h. */ 18178#include <pthread.h> 18179int 18180main (void) 18181{ 18182int i = PTHREAD_PRIO_INHERIT; 18183 ; 18184 return 0; 18185} 18186_ACEOF 18187if ac_fn_c_try_link "$LINENO" 18188then : 18189 ax_cv_PTHREAD_PRIO_INHERIT=yes 18190else $as_nop 18191 ax_cv_PTHREAD_PRIO_INHERIT=no 18192fi 18193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18194 conftest$ac_exeext conftest.$ac_ext 18195 18196fi 18197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 18198printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 18199 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 18200then : 18201 18202printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 18203 18204fi 18205 18206 LIBS="$save_LIBS" 18207 CFLAGS="$save_CFLAGS" 18208 18209 # More AIX lossage: compile with *_r variant 18210 if test "x$GCC" != xyes; then 18211 case $host_os in 18212 aix*) 18213 case "x/$CC" in #( 18214 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 18215 #handle absolute path differently from PATH based program lookup 18216 case "x$CC" in #( 18217 x/*) : 18218 if as_fn_executable_p ${CC}_r 18219then : 18220 PTHREAD_CC="${CC}_r" 18221fi ;; #( 18222 *) : 18223 for ac_prog in ${CC}_r 18224do 18225 # Extract the first word of "$ac_prog", so it can be a program name with args. 18226set dummy $ac_prog; ac_word=$2 18227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18228printf %s "checking for $ac_word... " >&6; } 18229if test ${ac_cv_prog_PTHREAD_CC+y} 18230then : 18231 printf %s "(cached) " >&6 18232else $as_nop 18233 if test -n "$PTHREAD_CC"; then 18234 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18235else 18236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18237for as_dir in $PATH 18238do 18239 IFS=$as_save_IFS 18240 case $as_dir in #((( 18241 '') as_dir=./ ;; 18242 */) ;; 18243 *) as_dir=$as_dir/ ;; 18244 esac 18245 for ac_exec_ext in '' $ac_executable_extensions; do 18246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18247 ac_cv_prog_PTHREAD_CC="$ac_prog" 18248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18249 break 2 18250 fi 18251done 18252 done 18253IFS=$as_save_IFS 18254 18255fi 18256fi 18257PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18258if test -n "$PTHREAD_CC"; then 18259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18260printf "%s\n" "$PTHREAD_CC" >&6; } 18261else 18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18263printf "%s\n" "no" >&6; } 18264fi 18265 18266 18267 test -n "$PTHREAD_CC" && break 18268done 18269test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18270 ;; 18271esac ;; #( 18272 *) : 18273 ;; 18274esac 18275 ;; 18276 esac 18277 fi 18278fi 18279 18280test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18281 18282 18283 18284 18285 18286# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18287if test x"$ax_pthread_ok" = xyes; then 18288 18289 18290printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 18291 18292 if test -n "$PTHREAD_LIBS"; then 18293 LIBS="$PTHREAD_LIBS $LIBS" 18294 fi 18295 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18296 CC="$PTHREAD_CC" 18297 ub_have_pthreads=yes 18298 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 18299" 18300if test "x$ac_cv_type_pthread_spinlock_t" = xyes 18301then : 18302 18303printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h 18304 18305 18306fi 18307ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 18308" 18309if test "x$ac_cv_type_pthread_rwlock_t" = xyes 18310then : 18311 18312printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h 18313 18314 18315fi 18316 18317 18318 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 18320printf %s "checking if -pthread unused during linking... " >&6; } 18321 # catch clang warning 'argument unused during compilation' 18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18323/* end confdefs.h. */ 18324$ac_includes_default 18325 18326int main(void) {return 0;} 18327 18328_ACEOF 18329 pthread_unused="yes" 18330 # first compile 18331 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 18332 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 18333 if test $? = 0; then 18334 # then link 18335 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 18336 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 18337 if test $? -ne 0; then 18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18339printf "%s\n" "yes" >&6; } 18340 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 18341 PTHREAD_CFLAGS_ONLY="-pthread" 18342 18343 else 18344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18345printf "%s\n" "no" >&6; } 18346 fi 18347 else 18348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18349printf "%s\n" "no" >&6; } 18350 fi # endif cc successful 18351 rm -f conftest conftest.c conftest.o 18352 fi # endif -pthread in CFLAGS 18353 18354 18355 : 18356else 18357 ax_pthread_ok=no 18358 18359fi 18360ac_ext=c 18361ac_cpp='$CPP $CPPFLAGS' 18362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18364ac_compiler_gnu=$ac_cv_c_compiler_gnu 18365 18366 18367fi 18368 18369# check solaris thread library 18370 18371# Check whether --with-solaris-threads was given. 18372if test ${with_solaris_threads+y} 18373then : 18374 withval=$with_solaris_threads; 18375else $as_nop 18376 withval="no" 18377fi 18378 18379ub_have_sol_threads=no 18380if test x_$withval != x_no; then 18381 if test x_$ub_have_pthreads != x_no; then 18382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 18383printf "%s\n" "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 18384 else 18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 18386printf %s "checking for library containing thr_create... " >&6; } 18387if test ${ac_cv_search_thr_create+y} 18388then : 18389 printf %s "(cached) " >&6 18390else $as_nop 18391 ac_func_search_save_LIBS=$LIBS 18392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18393/* end confdefs.h. */ 18394 18395/* Override any GCC internal prototype to avoid an error. 18396 Use char because int might match the return type of a GCC 18397 builtin and then its argument prototype would still apply. */ 18398char thr_create (); 18399int 18400main (void) 18401{ 18402return thr_create (); 18403 ; 18404 return 0; 18405} 18406_ACEOF 18407for ac_lib in '' thread 18408do 18409 if test -z "$ac_lib"; then 18410 ac_res="none required" 18411 else 18412 ac_res=-l$ac_lib 18413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18414 fi 18415 if ac_fn_c_try_link "$LINENO" 18416then : 18417 ac_cv_search_thr_create=$ac_res 18418fi 18419rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18420 conftest$ac_exeext 18421 if test ${ac_cv_search_thr_create+y} 18422then : 18423 break 18424fi 18425done 18426if test ${ac_cv_search_thr_create+y} 18427then : 18428 18429else $as_nop 18430 ac_cv_search_thr_create=no 18431fi 18432rm conftest.$ac_ext 18433LIBS=$ac_func_search_save_LIBS 18434fi 18435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 18436printf "%s\n" "$ac_cv_search_thr_create" >&6; } 18437ac_res=$ac_cv_search_thr_create 18438if test "$ac_res" != no 18439then : 18440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18441 18442 18443printf "%s\n" "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 18444 18445 18446 18447 18448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 18449printf %s "checking whether $CC supports -mt... " >&6; } 18450cache=`echo mt | sed 'y%.=/+-%___p_%'` 18451if eval test \${cv_prog_cc_flag_$cache+y} 18452then : 18453 printf %s "(cached) " >&6 18454else $as_nop 18455 18456echo 'void f(void){}' >conftest.c 18457if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 18458eval "cv_prog_cc_flag_$cache=yes" 18459else 18460eval "cv_prog_cc_flag_$cache=no" 18461fi 18462rm -f conftest conftest.o conftest.c 18463 18464fi 18465 18466if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 18467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18468printf "%s\n" "yes" >&6; } 18469: 18470CFLAGS="$CFLAGS -mt" 18471else 18472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18473printf "%s\n" "no" >&6; } 18474: 18475CFLAGS="$CFLAGS -D_REENTRANT" 18476fi 18477 18478 ub_have_sol_threads=yes 18479 18480else $as_nop 18481 18482 as_fn_error $? "no solaris threads found." "$LINENO" 5 18483 18484fi 18485 18486 fi 18487fi 18488 18489fi # end of non-mingw check of thread libraries 18490 18491# Check for SYSLOG_FACILITY 18492 18493# Check whether --with-syslog-facility was given. 18494if test ${with_syslog_facility+y} 18495then : 18496 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 18497fi 18498 18499case "${UNBOUND_SYSLOG_FACILITY}" in 18500 18501 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 18502 18503 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 18504 18505esac 18506 18507printf "%s\n" "#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}" >>confdefs.h 18508 18509 18510# Check for dynamic library module 18511 18512# Check whether --with-dynlibmodule was given. 18513if test ${with_dynlibmodule+y} 18514then : 18515 withval=$with_dynlibmodule; 18516else $as_nop 18517 withval="no" 18518fi 18519 18520 18521if test x_$withval != x_no; then 18522 18523printf "%s\n" "#define WITH_DYNLIBMODULE 1" >>confdefs.h 18524 18525 WITH_DYNLIBMODULE=yes 18526 18527 DYNLIBMOD_OBJ="dynlibmod.lo" 18528 18529 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 18530 18531 if test $on_mingw = "no"; then 18532 # link with -ldl if not already there, for all executables because 18533 # dlopen call is in the dynlib module. For unbound executable, also 18534 # export symbols. 18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18536printf %s "checking for library containing dlopen... " >&6; } 18537if test ${ac_cv_search_dlopen+y} 18538then : 18539 printf %s "(cached) " >&6 18540else $as_nop 18541 ac_func_search_save_LIBS=$LIBS 18542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18543/* end confdefs.h. */ 18544 18545/* Override any GCC internal prototype to avoid an error. 18546 Use char because int might match the return type of a GCC 18547 builtin and then its argument prototype would still apply. */ 18548char dlopen (); 18549int 18550main (void) 18551{ 18552return dlopen (); 18553 ; 18554 return 0; 18555} 18556_ACEOF 18557for ac_lib in '' dl 18558do 18559 if test -z "$ac_lib"; then 18560 ac_res="none required" 18561 else 18562 ac_res=-l$ac_lib 18563 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18564 fi 18565 if ac_fn_c_try_link "$LINENO" 18566then : 18567 ac_cv_search_dlopen=$ac_res 18568fi 18569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18570 conftest$ac_exeext 18571 if test ${ac_cv_search_dlopen+y} 18572then : 18573 break 18574fi 18575done 18576if test ${ac_cv_search_dlopen+y} 18577then : 18578 18579else $as_nop 18580 ac_cv_search_dlopen=no 18581fi 18582rm conftest.$ac_ext 18583LIBS=$ac_func_search_save_LIBS 18584fi 18585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18586printf "%s\n" "$ac_cv_search_dlopen" >&6; } 18587ac_res=$ac_cv_search_dlopen 18588if test "$ac_res" != no 18589then : 18590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18591 18592fi 18593 18594 DYNLIBMOD_EXTRALIBS="-export-dynamic" 18595 else 18596 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" 18597 fi 18598 18599fi 18600 18601# Check for PyUnbound 18602 18603# Check whether --with-pyunbound was given. 18604if test ${with_pyunbound+y} 18605then : 18606 withval=$with_pyunbound; 18607else $as_nop 18608 withval="no" 18609fi 18610 18611 18612ub_test_python=no 18613ub_with_pyunbound=no 18614if test x_$withval != x_no; then 18615 ub_with_pyunbound=yes 18616 ub_test_python=yes 18617fi 18618 18619# Check for Python module 18620 18621# Check whether --with-pythonmodule was given. 18622if test ${with_pythonmodule+y} 18623then : 18624 withval=$with_pythonmodule; 18625else $as_nop 18626 withval="no" 18627fi 18628 18629 18630ub_with_pythonmod=no 18631if test x_$withval != x_no; then 18632 ub_with_pythonmod=yes 18633 ub_test_python=yes 18634fi 18635 18636# Check for Python & SWIG only on PyUnbound or PyModule 18637if test x_$ub_test_python != x_no; then 18638 18639 # Check for Python 18640 ub_have_python=no 18641 ac_save_LIBS="$LIBS" 18642 # 18643 # Allow the use of a (user set) custom python version 18644 # 18645 18646 18647 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 18648set dummy python$PYTHON_VERSION; ac_word=$2 18649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18650printf %s "checking for $ac_word... " >&6; } 18651if test ${ac_cv_path_PYTHON+y} 18652then : 18653 printf %s "(cached) " >&6 18654else $as_nop 18655 case $PYTHON in 18656 [\\/]* | ?:[\\/]*) 18657 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 18658 ;; 18659 *) 18660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18661for as_dir in $PATH 18662do 18663 IFS=$as_save_IFS 18664 case $as_dir in #((( 18665 '') as_dir=./ ;; 18666 */) ;; 18667 *) as_dir=$as_dir/ ;; 18668 esac 18669 for ac_exec_ext in '' $ac_executable_extensions; do 18670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18671 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 18672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18673 break 2 18674 fi 18675done 18676 done 18677IFS=$as_save_IFS 18678 18679 ;; 18680esac 18681fi 18682PYTHON=$ac_cv_path_PYTHON 18683if test -n "$PYTHON"; then 18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 18685printf "%s\n" "$PYTHON" >&6; } 18686else 18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18688printf "%s\n" "no" >&6; } 18689fi 18690 18691 18692 if test -z "$PYTHON"; then 18693 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 18694 PYTHON_VERSION="" 18695 fi 18696 18697 if test -z "$PYTHON_VERSION"; then 18698 PYTHON_VERSION=`$PYTHON -c "import sys; \ 18699 print(sys.version.split()[0])"` 18700 fi 18701 18702 # 18703 # Check if you have distutils, else fail 18704 # 18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 18706printf %s "checking for the distutils Python package... " >&6; } 18707 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18709printf "%s\n" "yes" >&6; } 18710 else 18711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18712printf "%s\n" "no" >&6; } 18713 as_fn_error $? "cannot import Python module \"distutils\". 18714Please check your Python installation. The error was: 18715$ac_distutils_result" "$LINENO" 5 18716 PYTHON_VERSION="" 18717 fi 18718 18719 # 18720 # Check for Python include path 18721 # 18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 18723printf %s "checking for Python include path... " >&6; } 18724 if test -z "$PYTHON_CPPFLAGS"; then 18725 python_path=`$PYTHON -c "import distutils.sysconfig; \ 18726 print(distutils.sysconfig.get_python_inc());"` 18727 if test -n "${python_path}"; then 18728 python_path="-I$python_path" 18729 fi 18730 PYTHON_CPPFLAGS=$python_path 18731 fi 18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 18733printf "%s\n" "$PYTHON_CPPFLAGS" >&6; } 18734 18735 18736 # 18737 # Check for Python library path 18738 # 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 18740printf %s "checking for Python library path... " >&6; } 18741 if test -z "$PYTHON_LDFLAGS"; then 18742 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 18743 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 18744 fi 18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 18746printf "%s\n" "$PYTHON_LDFLAGS" >&6; } 18747 18748 18749 if test -z "$PYTHON_LIBDIR"; then 18750 PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \ 18751 print(get_config_var('LIBDIR'));"` 18752 fi 18753 18754 # 18755 # Check for site packages 18756 # 18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 18758printf %s "checking for Python site-packages path... " >&6; } 18759 if test -z "$PYTHON_SITE_PKG"; then 18760 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 18761 print(distutils.sysconfig.get_python_lib(1,0));"` 18762 fi 18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 18764printf "%s\n" "$PYTHON_SITE_PKG" >&6; } 18765 18766 18767 # 18768 # final check to see if everything compiles alright 18769 # 18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 18771printf %s "checking consistency of all components of python development environment... " >&6; } 18772 ac_ext=c 18773ac_cpp='$CPP $CPPFLAGS' 18774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18776ac_compiler_gnu=$ac_cv_c_compiler_gnu 18777 18778 # save current global flags 18779 ac_save_LIBS="$LIBS" 18780 ac_save_CPPFLAGS="$CPPFLAGS" 18781 18782 LIBS="$LIBS $PYTHON_LDFLAGS" 18783 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18785/* end confdefs.h. */ 18786 18787 #include <Python.h> 18788 18789int 18790main (void) 18791{ 18792 18793 Py_Initialize(); 18794 18795 ; 18796 return 0; 18797} 18798_ACEOF 18799if ac_fn_c_try_link "$LINENO" 18800then : 18801 pythonexists=yes 18802else $as_nop 18803 pythonexists=no 18804fi 18805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18806 conftest$ac_exeext conftest.$ac_ext 18807 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 18809printf "%s\n" "$pythonexists" >&6; } 18810 18811 if test ! "$pythonexists" = "yes"; then 18812 as_fn_error $? " 18813 Could not link test program to Python. Maybe the main Python library has been 18814 installed in some non-standard library path. If so, pass it to configure, 18815 via the LDFLAGS environment variable. 18816 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 18817 ============================================================================ 18818 ERROR! 18819 You probably have to install the development version of the Python package 18820 for your distribution. The exact name of this package varies among them. 18821 ============================================================================ 18822 " "$LINENO" 5 18823 PYTHON_VERSION="" 18824 fi 18825 ac_ext=c 18826ac_cpp='$CPP $CPPFLAGS' 18827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18829ac_compiler_gnu=$ac_cv_c_compiler_gnu 18830 18831 # turn back to default flags 18832 CPPFLAGS="$ac_save_CPPFLAGS" 18833 LIBS="$ac_save_LIBS" 18834 18835 # 18836 # all done! 18837 # 18838 18839 if test ! -z "$PYTHON_VERSION"; then 18840 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 18841 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 18842 fi 18843 18844 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 18845 18846 # Have Python 18847 18848printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h 18849 18850 if test -n "$LIBS"; then 18851 LIBS="$PYTHON_LDFLAGS $LIBS" 18852 else 18853 LIBS="$PYTHON_LDFLAGS" 18854 fi 18855 if test -n "$CPPFLAGS"; then 18856 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 18857 else 18858 CPPFLAGS="$PYTHON_CPPFLAGS" 18859 fi 18860 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 18861 18862 if test "x$enable_rpath" = xyes; then 18863 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 18864 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 18865 fi 18866 fi 18867 18868 fi 18869 ub_have_python=yes 18870 if test -n "$PKG_CONFIG" && \ 18871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 18872 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 18873 ac_status=$? 18874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18875 test $ac_status = 0; }; then 18876 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 18877else 18878 PC_PY_DEPENDENCY="python" 18879fi 18880 18881 18882 # Check for SWIG 18883 ub_have_swig=no 18884 # Check whether --enable-swig-version-check was given. 18885if test ${enable_swig_version_check+y} 18886then : 18887 enableval=$enable_swig_version_check; 18888fi 18889 18890 if test "$enable_swig_version_check" = "yes"; then 18891 18892 # Extract the first word of "swig", so it can be a program name with args. 18893set dummy swig; ac_word=$2 18894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18895printf %s "checking for $ac_word... " >&6; } 18896if test ${ac_cv_path_SWIG+y} 18897then : 18898 printf %s "(cached) " >&6 18899else $as_nop 18900 case $SWIG in 18901 [\\/]* | ?:[\\/]*) 18902 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 18903 ;; 18904 *) 18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18906for as_dir in $PATH 18907do 18908 IFS=$as_save_IFS 18909 case $as_dir in #((( 18910 '') as_dir=./ ;; 18911 */) ;; 18912 *) as_dir=$as_dir/ ;; 18913 esac 18914 for ac_exec_ext in '' $ac_executable_extensions; do 18915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18916 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 18917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18918 break 2 18919 fi 18920done 18921 done 18922IFS=$as_save_IFS 18923 18924 ;; 18925esac 18926fi 18927SWIG=$ac_cv_path_SWIG 18928if test -n "$SWIG"; then 18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 18930printf "%s\n" "$SWIG" >&6; } 18931else 18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18933printf "%s\n" "no" >&6; } 18934fi 18935 18936 18937 if test -z "$SWIG" ; then 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 18939printf "%s\n" "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 18940 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 18941 elif test -n "2.0.1" ; then 18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 18943printf %s "checking for SWIG version... " >&6; } 18944 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 18946printf "%s\n" "$swig_version" >&6; } 18947 if test -n "$swig_version" ; then 18948 # Calculate the required version number components 18949 required=2.0.1 18950 required_major=`echo $required | sed 's/[^0-9].*//'` 18951 if test -z "$required_major" ; then 18952 required_major=0 18953 fi 18954 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 18955 required_minor=`echo $required | sed 's/[^0-9].*//'` 18956 if test -z "$required_minor" ; then 18957 required_minor=0 18958 fi 18959 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 18960 required_patch=`echo $required | sed 's/[^0-9].*//'` 18961 if test -z "$required_patch" ; then 18962 required_patch=0 18963 fi 18964 # Calculate the available version number components 18965 available=$swig_version 18966 available_major=`echo $available | sed 's/[^0-9].*//'` 18967 if test -z "$available_major" ; then 18968 available_major=0 18969 fi 18970 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 18971 available_minor=`echo $available | sed 's/[^0-9].*//'` 18972 if test -z "$available_minor" ; then 18973 available_minor=0 18974 fi 18975 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 18976 available_patch=`echo $available | sed 's/[^0-9].*//'` 18977 if test -z "$available_patch" ; then 18978 available_patch=0 18979 fi 18980 badversion=0 18981 if test $available_major -lt $required_major ; then 18982 badversion=1 18983 fi 18984 if test $available_major -eq $required_major \ 18985 -a $available_minor -lt $required_minor ; then 18986 badversion=1 18987 fi 18988 if test $available_major -eq $required_major \ 18989 -a $available_minor -eq $required_minor \ 18990 -a $available_patch -lt $required_patch ; then 18991 badversion=1 18992 fi 18993 if test $badversion -eq 1 ; then 18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&5 18995printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 18996 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 18997 else 18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 18999printf "%s\n" "$as_me: SWIG executable is '$SWIG'" >&6;} 19000 SWIG_LIB=`$SWIG -swiglib` 19001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 19002printf "%s\n" "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 19003 fi 19004 else 19005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 19006printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 19007 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 19008 fi 19009 fi 19010 19011 19012 else 19013 19014 # Extract the first word of "swig", so it can be a program name with args. 19015set dummy swig; ac_word=$2 19016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19017printf %s "checking for $ac_word... " >&6; } 19018if test ${ac_cv_path_SWIG+y} 19019then : 19020 printf %s "(cached) " >&6 19021else $as_nop 19022 case $SWIG in 19023 [\\/]* | ?:[\\/]*) 19024 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 19025 ;; 19026 *) 19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19028for as_dir in $PATH 19029do 19030 IFS=$as_save_IFS 19031 case $as_dir in #((( 19032 '') as_dir=./ ;; 19033 */) ;; 19034 *) as_dir=$as_dir/ ;; 19035 esac 19036 for ac_exec_ext in '' $ac_executable_extensions; do 19037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19038 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 19039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19040 break 2 19041 fi 19042done 19043 done 19044IFS=$as_save_IFS 19045 19046 ;; 19047esac 19048fi 19049SWIG=$ac_cv_path_SWIG 19050if test -n "$SWIG"; then 19051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 19052printf "%s\n" "$SWIG" >&6; } 19053else 19054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19055printf "%s\n" "no" >&6; } 19056fi 19057 19058 19059 if test -z "$SWIG" ; then 19060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 19061printf "%s\n" "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 19062 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 19063 elif test -n "" ; then 19064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 19065printf %s "checking for SWIG version... " >&6; } 19066 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 19067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 19068printf "%s\n" "$swig_version" >&6; } 19069 if test -n "$swig_version" ; then 19070 # Calculate the required version number components 19071 required= 19072 required_major=`echo $required | sed 's/[^0-9].*//'` 19073 if test -z "$required_major" ; then 19074 required_major=0 19075 fi 19076 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 19077 required_minor=`echo $required | sed 's/[^0-9].*//'` 19078 if test -z "$required_minor" ; then 19079 required_minor=0 19080 fi 19081 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 19082 required_patch=`echo $required | sed 's/[^0-9].*//'` 19083 if test -z "$required_patch" ; then 19084 required_patch=0 19085 fi 19086 # Calculate the available version number components 19087 available=$swig_version 19088 available_major=`echo $available | sed 's/[^0-9].*//'` 19089 if test -z "$available_major" ; then 19090 available_major=0 19091 fi 19092 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19093 available_minor=`echo $available | sed 's/[^0-9].*//'` 19094 if test -z "$available_minor" ; then 19095 available_minor=0 19096 fi 19097 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19098 available_patch=`echo $available | sed 's/[^0-9].*//'` 19099 if test -z "$available_patch" ; then 19100 available_patch=0 19101 fi 19102 badversion=0 19103 if test $available_major -lt $required_major ; then 19104 badversion=1 19105 fi 19106 if test $available_major -eq $required_major \ 19107 -a $available_minor -lt $required_minor ; then 19108 badversion=1 19109 fi 19110 if test $available_major -eq $required_major \ 19111 -a $available_minor -eq $required_minor \ 19112 -a $available_patch -lt $required_patch ; then 19113 badversion=1 19114 fi 19115 if test $badversion -eq 1 ; then 19116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5 19117printf "%s\n" "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 19118 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 19119 else 19120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 19121printf "%s\n" "$as_me: SWIG executable is '$SWIG'" >&6;} 19122 SWIG_LIB=`$SWIG -swiglib` 19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 19124printf "%s\n" "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 19125 fi 19126 else 19127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 19128printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 19129 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 19130 fi 19131 fi 19132 19133 19134 fi 19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 19136printf %s "checking SWIG... " >&6; } 19137 if test ! -x "$SWIG"; then 19138 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 19139 else 19140 19141printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h 19142 19143 swig="$SWIG" 19144 19145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5 19146printf "%s\n" "present" >&6; } 19147 19148 # If have Python & SWIG 19149 # Declare PythonMod 19150 if test x_$ub_with_pythonmod != x_no; then 19151 19152printf "%s\n" "#define WITH_PYTHONMODULE 1" >>confdefs.h 19153 19154 WITH_PYTHONMODULE=yes 19155 19156 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 19157 19158 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 19159 19160 PYTHONMOD_INSTALL=pythonmod-install 19161 19162 PYTHONMOD_UNINSTALL=pythonmod-uninstall 19163 19164 fi 19165 19166 # Declare PyUnbound 19167 if test x_$ub_with_pyunbound != x_no; then 19168 19169printf "%s\n" "#define WITH_PYUNBOUND 1" >>confdefs.h 19170 19171 WITH_PYUNBOUND=yes 19172 19173 PYUNBOUND_OBJ="libunbound_wrap.lo" 19174 19175 PYUNBOUND_TARGET="_unbound.la" 19176 19177 PYUNBOUND_INSTALL=pyunbound-install 19178 19179 PYUNBOUND_UNINSTALL=pyunbound-uninstall 19180 19181 fi 19182 fi 19183 else 19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 19185printf "%s\n" "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 19186 ub_with_pyunbound=no 19187 ub_with_pythonmod=no 19188 fi 19189fi 19190 19191if test "`uname`" = "NetBSD"; then 19192 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 19193 19194fi 19195CONFIG_DATE=`date +%Y%m%d` 19196 19197 19198# Checks for libraries. 19199 19200# libnss 19201USE_NSS="no" 19202 19203# Check whether --with-nss was given. 19204if test ${with_nss+y} 19205then : 19206 withval=$with_nss; 19207 USE_NSS="yes" 19208 19209printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h 19210 19211 if test "$withval" != "" -a "$withval" != "yes"; then 19212 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 19213 LDFLAGS="$LDFLAGS -L$withval/lib" 19214 19215 if test "x$enable_rpath" = xyes; then 19216 if echo "$withval/lib" | grep "^/" >/dev/null; then 19217 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 19218 fi 19219 fi 19220 19221 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 19222 else 19223 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 19224 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 19225 fi 19226 LIBS="$LIBS -lnss3 -lnspr4" 19227 SSLLIB="" 19228 PC_CRYPTO_DEPENDENCY="nss nspr" 19229 19230 19231 19232fi 19233 19234 19235# libnettle 19236USE_NETTLE="no" 19237 19238# Check whether --with-nettle was given. 19239if test ${with_nettle+y} 19240then : 19241 withval=$with_nettle; 19242 USE_NETTLE="yes" 19243 19244printf "%s\n" "#define HAVE_NETTLE 1" >>confdefs.h 19245 19246 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 19247" 19248if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes 19249then : 19250 printf "%s\n" "#define HAVE_NETTLE_DSA_COMPAT_H 1" >>confdefs.h 19251 19252fi 19253 19254 if test "$withval" != "" -a "$withval" != "yes"; then 19255 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 19256 LDFLAGS="$LDFLAGS -L$withval/lib" 19257 19258 if test "x$enable_rpath" = xyes; then 19259 if echo "$withval/lib" | grep "^/" >/dev/null; then 19260 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 19261 fi 19262 fi 19263 19264 else 19265 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 19266 fi 19267 LIBS="$LIBS -lhogweed -lnettle -lgmp" 19268 SSLLIB="" 19269 PC_CRYPTO_DEPENDENCY="hogweed nettle" 19270 19271 19272 19273fi 19274 19275 19276# openssl 19277if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19278 19279 19280# Check whether --with-ssl was given. 19281if test ${with_ssl+y} 19282then : 19283 withval=$with_ssl; 19284 19285else $as_nop 19286 19287 withval="yes" 19288 19289fi 19290 19291 if test x_$withval = x_no; then 19292 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 19293 fi 19294 19295 withval=$withval 19296 if test x_$withval != x_no; then 19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 19298printf %s "checking for SSL... " >&6; } 19299 if test x_$withval = x_ -o x_$withval = x_yes; then 19300 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 19301 fi 19302 for dir in $withval; do 19303 ssldir="$dir" 19304 if test -f "$dir/include/openssl/ssl.h"; then 19305 found_ssl="yes" 19306 19307printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 19308 19309 if test "$ssldir" != "/usr"; then 19310 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 19311 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 19312 fi 19313 break; 19314 fi 19315 done 19316 if test x_$found_ssl != x_yes; then 19317 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 19318 else 19319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 19320printf "%s\n" "found in $ssldir" >&6; } 19321 HAVE_SSL=yes 19322 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 19323 LDFLAGS="$LDFLAGS -L$ssldir/lib" 19324 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 19325 19326 if test "x$enable_rpath" = xyes; then 19327 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 19328 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 19329 fi 19330 fi 19331 19332 fi 19333 19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 19335printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 19336 LIBS="$LIBS -lcrypto" 19337 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19339/* end confdefs.h. */ 19340 19341int 19342main (void) 19343{ 19344 19345 int EVP_sha256(void); 19346 (void)EVP_sha256(); 19347 19348 ; 19349 return 0; 19350} 19351_ACEOF 19352if ac_fn_c_try_link "$LINENO" 19353then : 19354 19355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19356printf "%s\n" "yes" >&6; } 19357 19358printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 19359 19360 19361else $as_nop 19362 19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19364printf "%s\n" "no" >&6; } 19365 # check if -lwsock32 or -lgdi32 are needed. 19366 BAKLIBS="$LIBS" 19367 BAKSSLLIBS="$LIBSSL_LIBS" 19368 LIBS="$LIBS -lgdi32 -lws2_32" 19369 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 19371printf %s "checking if -lcrypto needs -lgdi32... " >&6; } 19372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19373/* end confdefs.h. */ 19374 19375int 19376main (void) 19377{ 19378 19379 int EVP_sha256(void); 19380 (void)EVP_sha256(); 19381 19382 ; 19383 return 0; 19384} 19385_ACEOF 19386if ac_fn_c_try_link "$LINENO" 19387then : 19388 19389 19390printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 19391 19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19393printf "%s\n" "yes" >&6; } 19394 19395else $as_nop 19396 19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19398printf "%s\n" "no" >&6; } 19399 LIBS="$BAKLIBS" 19400 LIBSSL_LIBS="$BAKSSLLIBS" 19401 LIBS="$LIBS -ldl" 19402 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 19404printf %s "checking if -lcrypto needs -ldl... " >&6; } 19405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19406/* end confdefs.h. */ 19407 19408int 19409main (void) 19410{ 19411 19412 int EVP_sha256(void); 19413 (void)EVP_sha256(); 19414 19415 ; 19416 return 0; 19417} 19418_ACEOF 19419if ac_fn_c_try_link "$LINENO" 19420then : 19421 19422 19423printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 19424 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19426printf "%s\n" "yes" >&6; } 19427 19428else $as_nop 19429 19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19431printf "%s\n" "no" >&6; } 19432 LIBS="$BAKLIBS" 19433 LIBSSL_LIBS="$BAKSSLLIBS" 19434 LIBS="$LIBS -ldl -pthread" 19435 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 19437printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; } 19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19439/* end confdefs.h. */ 19440 19441int 19442main (void) 19443{ 19444 19445 int EVP_sha256(void); 19446 (void)EVP_sha256(); 19447 19448 ; 19449 return 0; 19450} 19451_ACEOF 19452if ac_fn_c_try_link "$LINENO" 19453then : 19454 19455 19456printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 19457 19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19459printf "%s\n" "yes" >&6; } 19460 19461else $as_nop 19462 19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19464printf "%s\n" "no" >&6; } 19465 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 19466 19467fi 19468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19469 conftest$ac_exeext conftest.$ac_ext 19470 19471fi 19472rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19473 conftest$ac_exeext conftest.$ac_ext 19474 19475fi 19476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19477 conftest$ac_exeext conftest.$ac_ext 19478 19479fi 19480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19481 conftest$ac_exeext conftest.$ac_ext 19482 fi 19483 19484 19485 fi 19486ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 19487" 19488if test "x$ac_cv_header_openssl_ssl_h" = xyes 19489then : 19490 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 19491 19492fi 19493 19494ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 19495" 19496if test "x$ac_cv_header_openssl_err_h" = xyes 19497then : 19498 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 19499 19500fi 19501 19502ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 19503" 19504if test "x$ac_cv_header_openssl_rand_h" = xyes 19505then : 19506 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 19507 19508fi 19509 19510 19511 19512 19513# check if libssl needs libdl 19514BAKLIBS="$LIBS" 19515LIBS="-lssl $LIBS" 19516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 19517printf %s "checking if libssl needs libdl... " >&6; } 19518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19519/* end confdefs.h. */ 19520 19521/* Override any GCC internal prototype to avoid an error. 19522 Use char because int might match the return type of a GCC 19523 builtin and then its argument prototype would still apply. */ 19524char SSL_CTX_new (); 19525int 19526main (void) 19527{ 19528return SSL_CTX_new (); 19529 ; 19530 return 0; 19531} 19532_ACEOF 19533if ac_fn_c_try_link "$LINENO" 19534then : 19535 19536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19537printf "%s\n" "no" >&6; } 19538 LIBS="$BAKLIBS" 19539 19540else $as_nop 19541 19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19543printf "%s\n" "yes" >&6; } 19544 LIBS="$BAKLIBS" 19545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 19546printf %s "checking for library containing dlopen... " >&6; } 19547if test ${ac_cv_search_dlopen+y} 19548then : 19549 printf %s "(cached) " >&6 19550else $as_nop 19551 ac_func_search_save_LIBS=$LIBS 19552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19553/* end confdefs.h. */ 19554 19555/* Override any GCC internal prototype to avoid an error. 19556 Use char because int might match the return type of a GCC 19557 builtin and then its argument prototype would still apply. */ 19558char dlopen (); 19559int 19560main (void) 19561{ 19562return dlopen (); 19563 ; 19564 return 0; 19565} 19566_ACEOF 19567for ac_lib in '' dl 19568do 19569 if test -z "$ac_lib"; then 19570 ac_res="none required" 19571 else 19572 ac_res=-l$ac_lib 19573 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19574 fi 19575 if ac_fn_c_try_link "$LINENO" 19576then : 19577 ac_cv_search_dlopen=$ac_res 19578fi 19579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19580 conftest$ac_exeext 19581 if test ${ac_cv_search_dlopen+y} 19582then : 19583 break 19584fi 19585done 19586if test ${ac_cv_search_dlopen+y} 19587then : 19588 19589else $as_nop 19590 ac_cv_search_dlopen=no 19591fi 19592rm conftest.$ac_ext 19593LIBS=$ac_func_search_save_LIBS 19594fi 19595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 19596printf "%s\n" "$ac_cv_search_dlopen" >&6; } 19597ac_res=$ac_cv_search_dlopen 19598if test "$ac_res" != no 19599then : 19600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19601 19602fi 19603 19604 19605fi 19606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19607 conftest$ac_exeext conftest.$ac_ext 19608SSLLIB="-lssl" 19609 19610PC_CRYPTO_DEPENDENCY="libcrypto libssl" 19611 19612 19613# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 19614BAKLIBS="$LIBS" 19615LIBS="-lssl $LIBS" 19616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 19617printf %s "checking if libssl needs -lcrypt32... " >&6; } 19618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19619/* end confdefs.h. */ 19620 19621int 19622main (void) 19623{ 19624 19625 int EVP_sha256(void); 19626 (void)EVP_sha256(); 19627 19628 ; 19629 return 0; 19630} 19631_ACEOF 19632if ac_fn_c_try_link "$LINENO" 19633then : 19634 19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19636printf "%s\n" "no" >&6; } 19637 LIBS="$BAKLIBS" 19638 19639else $as_nop 19640 19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19642printf "%s\n" "yes" >&6; } 19643 LIBS="$BAKLIBS" 19644 LIBS="$LIBS -lcrypt32" 19645 19646fi 19647rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19648 conftest$ac_exeext conftest.$ac_ext 19649 19650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 19651printf %s "checking for LibreSSL... " >&6; } 19652if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19654printf "%s\n" "yes" >&6; } 19655 19656printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h 19657 19658 # libressl provides these compat functions, but they may also be 19659 # declared by the OS in libc. See if they have been declared. 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 19661printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 19662if test ${ac_cv_c_undeclared_builtin_options+y} 19663then : 19664 printf %s "(cached) " >&6 19665else $as_nop 19666 ac_save_CFLAGS=$CFLAGS 19667 ac_cv_c_undeclared_builtin_options='cannot detect' 19668 for ac_arg in '' -fno-builtin; do 19669 CFLAGS="$ac_save_CFLAGS $ac_arg" 19670 # This test program should *not* compile successfully. 19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19672/* end confdefs.h. */ 19673 19674int 19675main (void) 19676{ 19677(void) strchr; 19678 ; 19679 return 0; 19680} 19681_ACEOF 19682if ac_fn_c_try_compile "$LINENO" 19683then : 19684 19685else $as_nop 19686 # This test program should compile successfully. 19687 # No library function is consistently available on 19688 # freestanding implementations, so test against a dummy 19689 # declaration. Include always-available headers on the 19690 # off chance that they somehow elicit warnings. 19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19692/* end confdefs.h. */ 19693#include <float.h> 19694#include <limits.h> 19695#include <stdarg.h> 19696#include <stddef.h> 19697extern void ac_decl (int, char *); 19698 19699int 19700main (void) 19701{ 19702(void) ac_decl (0, (char *) 0); 19703 (void) ac_decl; 19704 19705 ; 19706 return 0; 19707} 19708_ACEOF 19709if ac_fn_c_try_compile "$LINENO" 19710then : 19711 if test x"$ac_arg" = x 19712then : 19713 ac_cv_c_undeclared_builtin_options='none needed' 19714else $as_nop 19715 ac_cv_c_undeclared_builtin_options=$ac_arg 19716fi 19717 break 19718fi 19719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19720fi 19721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19722 done 19723 CFLAGS=$ac_save_CFLAGS 19724 19725fi 19726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 19727printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 19728 case $ac_cv_c_undeclared_builtin_options in #( 19729 'cannot detect') : 19730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19731printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19732as_fn_error $? "cannot make $CC report undeclared builtins 19733See \`config.log' for more details" "$LINENO" 5; } ;; #( 19734 'none needed') : 19735 ac_c_undeclared_builtin_options='' ;; #( 19736 *) : 19737 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 19738esac 19739 19740ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19741if test "x$ac_cv_have_decl_strlcpy" = xyes 19742then : 19743 ac_have_decl=1 19744else $as_nop 19745 ac_have_decl=0 19746fi 19747printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h 19748ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19749if test "x$ac_cv_have_decl_strlcat" = xyes 19750then : 19751 ac_have_decl=1 19752else $as_nop 19753 ac_have_decl=0 19754fi 19755printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h 19756ac_fn_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19757if test "x$ac_cv_have_decl_arc4random" = xyes 19758then : 19759 ac_have_decl=1 19760else $as_nop 19761 ac_have_decl=0 19762fi 19763printf "%s\n" "#define HAVE_DECL_ARC4RANDOM $ac_have_decl" >>confdefs.h 19764ac_fn_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19765if test "x$ac_cv_have_decl_arc4random_uniform" = xyes 19766then : 19767 ac_have_decl=1 19768else $as_nop 19769 ac_have_decl=0 19770fi 19771printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl" >>confdefs.h 19772 19773else 19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19775printf "%s\n" "no" >&6; } 19776fi 19777ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 19778" 19779if test "x$ac_cv_header_openssl_conf_h" = xyes 19780then : 19781 printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h 19782 19783fi 19784ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 19785" 19786if test "x$ac_cv_header_openssl_engine_h" = xyes 19787then : 19788 printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h 19789 19790fi 19791ac_fn_c_check_header_compile "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default 19792" 19793if test "x$ac_cv_header_openssl_bn_h" = xyes 19794then : 19795 printf "%s\n" "#define HAVE_OPENSSL_BN_H 1" >>confdefs.h 19796 19797fi 19798ac_fn_c_check_header_compile "$LINENO" "openssl/dh.h" "ac_cv_header_openssl_dh_h" "$ac_includes_default 19799" 19800if test "x$ac_cv_header_openssl_dh_h" = xyes 19801then : 19802 printf "%s\n" "#define HAVE_OPENSSL_DH_H 1" >>confdefs.h 19803 19804fi 19805ac_fn_c_check_header_compile "$LINENO" "openssl/dsa.h" "ac_cv_header_openssl_dsa_h" "$ac_includes_default 19806" 19807if test "x$ac_cv_header_openssl_dsa_h" = xyes 19808then : 19809 printf "%s\n" "#define HAVE_OPENSSL_DSA_H 1" >>confdefs.h 19810 19811fi 19812ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default 19813" 19814if test "x$ac_cv_header_openssl_rsa_h" = xyes 19815then : 19816 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h 19817 19818fi 19819ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default 19820" 19821if test "x$ac_cv_header_openssl_core_names_h" = xyes 19822then : 19823 printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h 19824 19825fi 19826 19827ac_fn_c_check_func "$LINENO" "OPENSSL_config" "ac_cv_func_OPENSSL_config" 19828if test "x$ac_cv_func_OPENSSL_config" = xyes 19829then : 19830 printf "%s\n" "#define HAVE_OPENSSL_CONFIG 1" >>confdefs.h 19831 19832fi 19833ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1" 19834if test "x$ac_cv_func_EVP_sha1" = xyes 19835then : 19836 printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h 19837 19838fi 19839ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 19840if test "x$ac_cv_func_EVP_sha256" = xyes 19841then : 19842 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 19843 19844fi 19845ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512" 19846if test "x$ac_cv_func_EVP_sha512" = xyes 19847then : 19848 printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h 19849 19850fi 19851ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode" 19852if test "x$ac_cv_func_FIPS_mode" = xyes 19853then : 19854 printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h 19855 19856fi 19857ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 19858if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 19859then : 19860 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 19861 19862fi 19863ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_digests" "ac_cv_func_OpenSSL_add_all_digests" 19864if test "x$ac_cv_func_OpenSSL_add_all_digests" = xyes 19865then : 19866 printf "%s\n" "#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1" >>confdefs.h 19867 19868fi 19869ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 19870if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 19871then : 19872 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 19873 19874fi 19875ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 19876if test "x$ac_cv_func_EVP_cleanup" = xyes 19877then : 19878 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 19879 19880fi 19881ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup" 19882if test "x$ac_cv_func_ENGINE_cleanup" = xyes 19883then : 19884 printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h 19885 19886fi 19887ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 19888if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 19889then : 19890 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 19891 19892fi 19893ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data" 19894if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes 19895then : 19896 printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h 19897 19898fi 19899ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings" 19900if test "x$ac_cv_func_ERR_free_strings" = xyes 19901then : 19902 printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h 19903 19904fi 19905ac_fn_c_check_func "$LINENO" "RAND_cleanup" "ac_cv_func_RAND_cleanup" 19906if test "x$ac_cv_func_RAND_cleanup" = xyes 19907then : 19908 printf "%s\n" "#define HAVE_RAND_CLEANUP 1" >>confdefs.h 19909 19910fi 19911ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0" 19912if test "x$ac_cv_func_DSA_SIG_set0" = xyes 19913then : 19914 printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h 19915 19916fi 19917ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1" 19918if test "x$ac_cv_func_EVP_dss1" = xyes 19919then : 19920 printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h 19921 19922fi 19923ac_fn_c_check_func "$LINENO" "EVP_DigestVerify" "ac_cv_func_EVP_DigestVerify" 19924if test "x$ac_cv_func_EVP_DigestVerify" = xyes 19925then : 19926 printf "%s\n" "#define HAVE_EVP_DIGESTVERIFY 1" >>confdefs.h 19927 19928fi 19929ac_fn_c_check_func "$LINENO" "EVP_aes_256_cbc" "ac_cv_func_EVP_aes_256_cbc" 19930if test "x$ac_cv_func_EVP_aes_256_cbc" = xyes 19931then : 19932 printf "%s\n" "#define HAVE_EVP_AES_256_CBC 1" >>confdefs.h 19933 19934fi 19935ac_fn_c_check_func "$LINENO" "EVP_EncryptInit_ex" "ac_cv_func_EVP_EncryptInit_ex" 19936if test "x$ac_cv_func_EVP_EncryptInit_ex" = xyes 19937then : 19938 printf "%s\n" "#define HAVE_EVP_ENCRYPTINIT_EX 1" >>confdefs.h 19939 19940fi 19941ac_fn_c_check_func "$LINENO" "HMAC_Init_ex" "ac_cv_func_HMAC_Init_ex" 19942if test "x$ac_cv_func_HMAC_Init_ex" = xyes 19943then : 19944 printf "%s\n" "#define HAVE_HMAC_INIT_EX 1" >>confdefs.h 19945 19946fi 19947ac_fn_c_check_func "$LINENO" "CRYPTO_THREADID_set_callback" "ac_cv_func_CRYPTO_THREADID_set_callback" 19948if test "x$ac_cv_func_CRYPTO_THREADID_set_callback" = xyes 19949then : 19950 printf "%s\n" "#define HAVE_CRYPTO_THREADID_SET_CALLBACK 1" >>confdefs.h 19951 19952fi 19953ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params" 19954if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes 19955then : 19956 printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h 19957 19958fi 19959 19960 19961# these check_funcs need -lssl 19962BAKLIBS="$LIBS" 19963LIBS="-lssl $LIBS" 19964ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 19965if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 19966then : 19967 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 19968 19969fi 19970ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level" 19971if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes 19972then : 19973 printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h 19974 19975fi 19976ac_fn_c_check_func "$LINENO" "SSL_set1_host" "ac_cv_func_SSL_set1_host" 19977if test "x$ac_cv_func_SSL_set1_host" = xyes 19978then : 19979 printf "%s\n" "#define HAVE_SSL_SET1_HOST 1" >>confdefs.h 19980 19981fi 19982ac_fn_c_check_func "$LINENO" "SSL_get0_peername" "ac_cv_func_SSL_get0_peername" 19983if test "x$ac_cv_func_SSL_get0_peername" = xyes 19984then : 19985 printf "%s\n" "#define HAVE_SSL_GET0_PEERNAME 1" >>confdefs.h 19986 19987fi 19988ac_fn_c_check_func "$LINENO" "X509_VERIFY_PARAM_set1_host" "ac_cv_func_X509_VERIFY_PARAM_set1_host" 19989if test "x$ac_cv_func_X509_VERIFY_PARAM_set1_host" = xyes 19990then : 19991 printf "%s\n" "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h 19992 19993fi 19994ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites" 19995if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes 19996then : 19997 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h 19998 19999fi 20000ac_fn_c_check_func "$LINENO" "SSL_CTX_set_tlsext_ticket_key_evp_cb" "ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" 20001if test "x$ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" = xyes 20002then : 20003 printf "%s\n" "#define HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 1" >>confdefs.h 20004 20005fi 20006ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_select_cb" "ac_cv_func_SSL_CTX_set_alpn_select_cb" 20007if test "x$ac_cv_func_SSL_CTX_set_alpn_select_cb" = xyes 20008then : 20009 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1" >>confdefs.h 20010 20011fi 20012 20013LIBS="$BAKLIBS" 20014 20015ac_fn_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 20016$ac_includes_default 20017#ifdef HAVE_OPENSSL_ERR_H 20018#include <openssl/err.h> 20019#endif 20020 20021#ifdef HAVE_OPENSSL_RAND_H 20022#include <openssl/rand.h> 20023#endif 20024 20025#ifdef HAVE_OPENSSL_CONF_H 20026#include <openssl/conf.h> 20027#endif 20028 20029#ifdef HAVE_OPENSSL_ENGINE_H 20030#include <openssl/engine.h> 20031#endif 20032#include <openssl/ssl.h> 20033#include <openssl/evp.h> 20034 20035" "$ac_c_undeclared_builtin_options" "CFLAGS" 20036if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes 20037then : 20038 ac_have_decl=1 20039else $as_nop 20040 ac_have_decl=0 20041fi 20042printf "%s\n" "#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl" >>confdefs.h 20043ac_fn_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 20044$ac_includes_default 20045#ifdef HAVE_OPENSSL_ERR_H 20046#include <openssl/err.h> 20047#endif 20048 20049#ifdef HAVE_OPENSSL_RAND_H 20050#include <openssl/rand.h> 20051#endif 20052 20053#ifdef HAVE_OPENSSL_CONF_H 20054#include <openssl/conf.h> 20055#endif 20056 20057#ifdef HAVE_OPENSSL_ENGINE_H 20058#include <openssl/engine.h> 20059#endif 20060#include <openssl/ssl.h> 20061#include <openssl/evp.h> 20062 20063" "$ac_c_undeclared_builtin_options" "CFLAGS" 20064if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes 20065then : 20066 ac_have_decl=1 20067else $as_nop 20068 ac_have_decl=0 20069fi 20070printf "%s\n" "#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl" >>confdefs.h 20071ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 20072$ac_includes_default 20073#ifdef HAVE_OPENSSL_ERR_H 20074#include <openssl/err.h> 20075#endif 20076 20077#ifdef HAVE_OPENSSL_RAND_H 20078#include <openssl/rand.h> 20079#endif 20080 20081#ifdef HAVE_OPENSSL_CONF_H 20082#include <openssl/conf.h> 20083#endif 20084 20085#ifdef HAVE_OPENSSL_ENGINE_H 20086#include <openssl/engine.h> 20087#endif 20088#include <openssl/ssl.h> 20089#include <openssl/evp.h> 20090 20091" "$ac_c_undeclared_builtin_options" "CFLAGS" 20092if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes 20093then : 20094 ac_have_decl=1 20095else $as_nop 20096 ac_have_decl=0 20097fi 20098printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h 20099 20100 20101if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 20102# check function return type. 20103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 20104printf %s "checking the return type of HMAC_Init_ex... " >&6; } 20105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20106/* end confdefs.h. */ 20107 20108#ifdef HAVE_OPENSSL_ERR_H 20109#include <openssl/err.h> 20110#endif 20111 20112#ifdef HAVE_OPENSSL_RAND_H 20113#include <openssl/rand.h> 20114#endif 20115 20116#ifdef HAVE_OPENSSL_CONF_H 20117#include <openssl/conf.h> 20118#endif 20119 20120#ifdef HAVE_OPENSSL_ENGINE_H 20121#include <openssl/engine.h> 20122#endif 20123#include <openssl/ssl.h> 20124#include <openssl/evp.h> 20125 20126int 20127main (void) 20128{ 20129 20130 HMAC_CTX* hmac_ctx = NULL; 20131 void* hmac_key = NULL; 20132 const EVP_MD* digest = NULL; 20133 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 20134 (void)x; 20135 20136 ; 20137 return 0; 20138} 20139_ACEOF 20140if ac_fn_c_try_compile "$LINENO" 20141then : 20142 20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5 20144printf "%s\n" "int" >&6; } 20145 20146else $as_nop 20147 20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void" >&5 20149printf "%s\n" "void" >&6; } 20150 20151printf "%s\n" "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 20152 20153 20154fi 20155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20156fi 20157 20158fi 20159 20160 20161# libbsd 20162 20163# Check whether --with-libbsd was given. 20164if test ${with_libbsd+y} 20165then : 20166 withval=$with_libbsd; 20167 ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default 20168" 20169if test "x$ac_cv_header_bsd_string_h" = xyes 20170then : 20171 printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h 20172 20173fi 20174ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default 20175" 20176if test "x$ac_cv_header_bsd_stdlib_h" = xyes 20177then : 20178 printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h 20179 20180fi 20181 20182 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 20183 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 20184 as_ac_Search=`printf "%s\n" "ac_cv_search_$func" | $as_tr_sh` 20185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 20186printf %s "checking for library containing $func... " >&6; } 20187if eval test \${$as_ac_Search+y} 20188then : 20189 printf %s "(cached) " >&6 20190else $as_nop 20191 ac_func_search_save_LIBS=$LIBS 20192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20193/* end confdefs.h. */ 20194 20195/* Override any GCC internal prototype to avoid an error. 20196 Use char because int might match the return type of a GCC 20197 builtin and then its argument prototype would still apply. */ 20198char $func (); 20199int 20200main (void) 20201{ 20202return $func (); 20203 ; 20204 return 0; 20205} 20206_ACEOF 20207for ac_lib in '' bsd 20208do 20209 if test -z "$ac_lib"; then 20210 ac_res="none required" 20211 else 20212 ac_res=-l$ac_lib 20213 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20214 fi 20215 if ac_fn_c_try_link "$LINENO" 20216then : 20217 eval "$as_ac_Search=\$ac_res" 20218fi 20219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20220 conftest$ac_exeext 20221 if eval test \${$as_ac_Search+y} 20222then : 20223 break 20224fi 20225done 20226if eval test \${$as_ac_Search+y} 20227then : 20228 20229else $as_nop 20230 eval "$as_ac_Search=no" 20231fi 20232rm conftest.$ac_ext 20233LIBS=$ac_func_search_save_LIBS 20234fi 20235eval ac_res=\$$as_ac_Search 20236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20237printf "%s\n" "$ac_res" >&6; } 20238eval ac_res=\$$as_ac_Search 20239if test "$ac_res" != no 20240then : 20241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20242 20243 20244printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h 20245 20246 PC_LIBBSD_DEPENDENCY=libbsd 20247 20248 20249fi 20250 20251 done 20252 fi 20253 20254fi 20255 20256 20257# Check whether --enable-sha1 was given. 20258if test ${enable_sha1+y} 20259then : 20260 enableval=$enable_sha1; 20261fi 20262 20263case "$enable_sha1" in 20264 no) 20265 ;; 20266 yes|*) 20267 20268printf "%s\n" "#define USE_SHA1 1" >>confdefs.h 20269 20270 ;; 20271esac 20272 20273 20274# Check whether --enable-sha2 was given. 20275if test ${enable_sha2+y} 20276then : 20277 enableval=$enable_sha2; 20278fi 20279 20280case "$enable_sha2" in 20281 no) 20282 ;; 20283 yes|*) 20284 20285printf "%s\n" "#define USE_SHA2 1" >>confdefs.h 20286 20287 ;; 20288esac 20289 20290# Check whether --enable-subnet was given. 20291if test ${enable_subnet+y} 20292then : 20293 enableval=$enable_subnet; 20294fi 20295 20296case "$enable_subnet" in 20297 yes) 20298 20299printf "%s\n" "#define CLIENT_SUBNET 1" >>confdefs.h 20300 20301 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 20302 20303 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 20304 20305 ;; 20306 no|*) 20307 ;; 20308esac 20309 20310# check wether gost also works 20311 20312# Check whether --enable-gost was given. 20313if test ${enable_gost+y} 20314then : 20315 enableval=$enable_gost; 20316fi 20317 20318use_gost="no" 20319if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 20320case "$enable_gost" in 20321 no) 20322 ;; 20323 *) 20324 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 20325if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes 20326then : 20327 : 20328else $as_nop 20329 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 20330fi 20331 20332 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 20333if test "x$ac_cv_func_EC_KEY_new" = xyes 20334then : 20335 20336else $as_nop 20337 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 20338fi 20339 20340 20341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 20342printf %s "checking if GOST works... " >&6; } 20343if test c${cross_compiling} = cno; then 20344BAKCFLAGS="$CFLAGS" 20345if test -n "$ssldir"; then 20346 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 20347fi 20348if test "$cross_compiling" = yes 20349then : 20350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20351printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20352as_fn_error $? "cannot run test program while cross compiling 20353See \`config.log' for more details" "$LINENO" 5; } 20354else $as_nop 20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20356/* end confdefs.h. */ 20357 20358#include <string.h> 20359#include <openssl/ssl.h> 20360#include <openssl/evp.h> 20361#include <openssl/engine.h> 20362#include <openssl/conf.h> 20363/* routine to load gost (from sldns) */ 20364int load_gost_id(void) 20365{ 20366 static int gost_id = 0; 20367 const EVP_PKEY_ASN1_METHOD* meth; 20368 ENGINE* e; 20369 20370 if(gost_id) return gost_id; 20371 20372 /* see if configuration loaded gost implementation from other engine*/ 20373 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 20374 if(meth) { 20375 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 20376 return gost_id; 20377 } 20378 20379 /* see if engine can be loaded already */ 20380 e = ENGINE_by_id("gost"); 20381 if(!e) { 20382 /* load it ourself, in case statically linked */ 20383 ENGINE_load_builtin_engines(); 20384 ENGINE_load_dynamic(); 20385 e = ENGINE_by_id("gost"); 20386 } 20387 if(!e) { 20388 /* no gost engine in openssl */ 20389 return 0; 20390 } 20391 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 20392 ENGINE_finish(e); 20393 ENGINE_free(e); 20394 return 0; 20395 } 20396 20397 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 20398 if(!meth) { 20399 /* algo not found */ 20400 ENGINE_finish(e); 20401 ENGINE_free(e); 20402 return 0; 20403 } 20404 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 20405 return gost_id; 20406} 20407int main(void) { 20408 EVP_MD_CTX* ctx; 20409 const EVP_MD* md; 20410 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 20411 const char* str = "Hello world"; 20412 const unsigned char check[] = { 20413 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 20414 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 20415 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 20416 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 20417 }; 20418 OPENSSL_config(NULL); 20419 (void)load_gost_id(); 20420 md = EVP_get_digestbyname("md_gost94"); 20421 if(!md) return 1; 20422 memset(digest, 0, sizeof(digest)); 20423 ctx = EVP_MD_CTX_create(); 20424 if(!ctx) return 2; 20425 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 20426 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 20427 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 20428 /* uncomment to see the hash calculated. 20429 {int i; 20430 for(i=0; i<32; i++) 20431 printf(" %2.2x", (int)digest[i]); 20432 printf("\n");} 20433 */ 20434 if(memcmp(digest, check, sizeof(check)) != 0) 20435 return 6; 20436 return 0; 20437} 20438 20439_ACEOF 20440if ac_fn_c_try_run "$LINENO" 20441then : 20442 eval "ac_cv_c_gost_works=yes" 20443else $as_nop 20444 eval "ac_cv_c_gost_works=no" 20445fi 20446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20447 conftest.$ac_objext conftest.beam conftest.$ac_ext 20448fi 20449 20450CFLAGS="$BAKCFLAGS" 20451else 20452eval "ac_cv_c_gost_works=maybe" 20453fi 20454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 20455printf "%s\n" "$ac_cv_c_gost_works" >&6; } 20456 20457 if test "$ac_cv_c_gost_works" != no; then 20458 use_gost="yes" 20459 20460printf "%s\n" "#define USE_GOST 1" >>confdefs.h 20461 20462 fi 20463 ;; 20464esac 20465fi 20466# Check whether --enable-ecdsa was given. 20467if test ${enable_ecdsa+y} 20468then : 20469 enableval=$enable_ecdsa; 20470fi 20471 20472use_ecdsa="no" 20473case "$enable_ecdsa" in 20474 no) 20475 ;; 20476 *) 20477 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 20478 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 20479if test "x$ac_cv_func_ECDSA_sign" = xyes 20480then : 20481 20482else $as_nop 20483 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 20484fi 20485 20486 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 20487if test "x$ac_cv_func_SHA384_Init" = xyes 20488then : 20489 20490else $as_nop 20491 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 20492fi 20493 20494 ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 20495#include <openssl/evp.h> 20496 20497" "$ac_c_undeclared_builtin_options" "CFLAGS" 20498if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes 20499then : 20500 ac_have_decl=1 20501else $as_nop 20502 ac_have_decl=0 20503fi 20504printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h 20505if test $ac_have_decl = 1 20506then : 20507 20508else $as_nop 20509 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 20510fi 20511ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 20512#include <openssl/evp.h> 20513 20514" "$ac_c_undeclared_builtin_options" "CFLAGS" 20515if test "x$ac_cv_have_decl_NID_secp384r1" = xyes 20516then : 20517 ac_have_decl=1 20518else $as_nop 20519 ac_have_decl=0 20520fi 20521printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h 20522if test $ac_have_decl = 1 20523then : 20524 20525else $as_nop 20526 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 20527fi 20528 20529 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 20530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 20531printf %s "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 20532 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 20533 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 20534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20535printf "%s\n" "no" >&6; } 20536 20537printf "%s\n" "#define USE_ECDSA_EVP_WORKAROUND 1" >>confdefs.h 20538 20539 else 20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20541printf "%s\n" "yes" >&6; } 20542 fi 20543 else 20544 # not OpenSSL, thus likely LibreSSL, which supports it 20545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20546printf "%s\n" "yes" >&6; } 20547 fi 20548 fi 20549 # we now know we have ECDSA and the required curves. 20550 20551printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h 20552 20553 use_ecdsa="yes" 20554 ;; 20555esac 20556 20557# Check whether --enable-dsa was given. 20558if test ${enable_dsa+y} 20559then : 20560 enableval=$enable_dsa; 20561fi 20562 20563use_dsa="no" 20564case "$enable_dsa" in 20565 yes) 20566 # detect if DSA is supported, and turn it off if not. 20567 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 20568 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 20569if test "x$ac_cv_func_DSA_SIG_new" = xyes 20570then : 20571 20572 as_ac_Type=`printf "%s\n" "ac_cv_type_DSA_SIG*" | $as_tr_sh` 20573ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 20574$ac_includes_default 20575#ifdef HAVE_OPENSSL_ERR_H 20576#include <openssl/err.h> 20577#endif 20578 20579#ifdef HAVE_OPENSSL_RAND_H 20580#include <openssl/rand.h> 20581#endif 20582 20583#ifdef HAVE_OPENSSL_CONF_H 20584#include <openssl/conf.h> 20585#endif 20586 20587#ifdef HAVE_OPENSSL_ENGINE_H 20588#include <openssl/engine.h> 20589#endif 20590 20591" 20592if eval test \"x\$"$as_ac_Type"\" = x"yes" 20593then : 20594 20595 20596printf "%s\n" "#define USE_DSA 1" >>confdefs.h 20597 20598 20599else $as_nop 20600 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 20601 fi 20602fi 20603 20604 20605else $as_nop 20606 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 20607 fi 20608fi 20609 20610 else 20611 20612printf "%s\n" "#define USE_DSA 1" >>confdefs.h 20613 20614 fi 20615 ;; 20616 *) 20617 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 20618 # support DSA for DNSSEC Validation. 20619 ;; 20620esac 20621 20622# Check whether --enable-ed25519 was given. 20623if test ${enable_ed25519+y} 20624then : 20625 enableval=$enable_ed25519; 20626fi 20627 20628use_ed25519="no" 20629case "$enable_ed25519" in 20630 no) 20631 ;; 20632 *) 20633 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 20634 ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 20635#include <openssl/evp.h> 20636 20637" "$ac_c_undeclared_builtin_options" "CFLAGS" 20638if test "x$ac_cv_have_decl_NID_ED25519" = xyes 20639then : 20640 ac_have_decl=1 20641else $as_nop 20642 ac_have_decl=0 20643fi 20644printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h 20645if test $ac_have_decl = 1 20646then : 20647 20648 use_ed25519="yes" 20649 20650else $as_nop 20651 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 20652 fi 20653fi 20654 20655 fi 20656 if test $USE_NETTLE = "yes"; then 20657 for ac_header in nettle/eddsa.h 20658do : 20659 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 20660" 20661if test "x$ac_cv_header_nettle_eddsa_h" = xyes 20662then : 20663 printf "%s\n" "#define HAVE_NETTLE_EDDSA_H 1" >>confdefs.h 20664 use_ed25519="yes" 20665fi 20666 20667done 20668 fi 20669 if test $use_ed25519 = "yes"; then 20670 20671printf "%s\n" "#define USE_ED25519 1" >>confdefs.h 20672 20673 fi 20674 ;; 20675esac 20676 20677# Check whether --enable-ed448 was given. 20678if test ${enable_ed448+y} 20679then : 20680 enableval=$enable_ed448; 20681fi 20682 20683use_ed448="no" 20684case "$enable_ed448" in 20685 no) 20686 ;; 20687 *) 20688 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 20689 ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 20690#include <openssl/evp.h> 20691 20692" "$ac_c_undeclared_builtin_options" "CFLAGS" 20693if test "x$ac_cv_have_decl_NID_ED448" = xyes 20694then : 20695 ac_have_decl=1 20696else $as_nop 20697 ac_have_decl=0 20698fi 20699printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h 20700if test $ac_have_decl = 1 20701then : 20702 20703 use_ed448="yes" 20704 20705else $as_nop 20706 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 20707 fi 20708fi 20709 20710 fi 20711 if test $use_ed448 = "yes"; then 20712 20713printf "%s\n" "#define USE_ED448 1" >>confdefs.h 20714 20715 fi 20716 ;; 20717esac 20718 20719# Check whether --enable-event-api was given. 20720if test ${enable_event_api+y} 20721then : 20722 enableval=$enable_event_api; 20723fi 20724 20725case "$enable_event_api" in 20726 yes) 20727 UNBOUND_EVENT_INSTALL=unbound-event-install 20728 20729 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 20730 20731 ;; 20732 *) 20733 ;; 20734esac 20735 20736# Check whether --enable-tfo-client was given. 20737if test ${enable_tfo_client+y} 20738then : 20739 enableval=$enable_tfo_client; 20740fi 20741 20742case "$enable_tfo_client" in 20743 yes) 20744 case `uname` in 20745 Linux) ac_fn_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 20746#include <netinet/tcp.h> 20747 20748" "$ac_c_undeclared_builtin_options" "CFLAGS" 20749if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes 20750then : 20751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 20752printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 20753else $as_nop 20754 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 20755fi 20756 20757printf "%s\n" "#define USE_MSG_FASTOPEN 1" >>confdefs.h 20758 20759 ;; 20760 Darwin) ac_fn_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 20761#include <sys/socket.h> 20762 20763" "$ac_c_undeclared_builtin_options" "CFLAGS" 20764if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes 20765then : 20766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 20767printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 20768else $as_nop 20769 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 20770fi 20771 20772printf "%s\n" "#define USE_OSX_MSG_FASTOPEN 1" >>confdefs.h 20773 20774 ;; 20775 esac 20776 ;; 20777 no|*) 20778 ;; 20779esac 20780 20781# Check whether --enable-tfo-server was given. 20782if test ${enable_tfo_server+y} 20783then : 20784 enableval=$enable_tfo_server; 20785fi 20786 20787case "$enable_tfo_server" in 20788 yes) 20789 ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 20790#include <netinet/tcp.h> 20791 20792" "$ac_c_undeclared_builtin_options" "CFLAGS" 20793if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes 20794then : 20795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 20796printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 20797else $as_nop 20798 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 20799fi 20800 20801printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h 20802 20803 ;; 20804 no|*) 20805 ;; 20806esac 20807 20808# check for libevent 20809 20810# Check whether --with-libevent was given. 20811if test ${with_libevent+y} 20812then : 20813 withval=$with_libevent; 20814else $as_nop 20815 with_libevent="no" 20816fi 20817 20818if test "x_$with_libevent" != x_no; then 20819 20820printf "%s\n" "#define USE_LIBEVENT 1" >>confdefs.h 20821 20822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 20823printf %s "checking for libevent... " >&6; } 20824 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 20825 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 20826 fi 20827 for dir in $with_libevent; do 20828 thedir="$dir" 20829 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 20830 found_libevent="yes" 20831 if test "$thedir" != "/usr"; then 20832 CPPFLAGS="$CPPFLAGS -I$thedir/include" 20833 fi 20834 break; 20835 fi 20836 done 20837 if test x_$found_libevent != x_yes; then 20838 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 20839 # libevent source directory 20840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 20841printf "%s\n" "found in $thedir" >&6; } 20842 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 20843 BAK_LDFLAGS_SET="1" 20844 BAK_LDFLAGS="$LDFLAGS" 20845 # remove evdns from linking 20846 mkdir build >/dev/null 2>&1 20847 mkdir build/libevent >/dev/null 2>&1 20848 mkdir build/libevent/.libs >/dev/null 2>&1 20849 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 20850 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 20851 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 20852 cp $ev_files_o build/libevent 20853 cp $ev_files_lo build/libevent 20854 cp $ev_files_libso build/libevent/.libs 20855 LATE_LDFLAGS="build/libevent/*.lo -lm" 20856 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 20857 else 20858 as_fn_error $? "Cannot find the libevent library in $with_libevent 20859You can restart ./configure --with-libevent=no to use a builtin alternative. 20860Please note that this alternative is not as capable as libevent when using 20861large outgoing port ranges. " "$LINENO" 5 20862 fi 20863 else 20864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 20865printf "%s\n" "found in $thedir" >&6; } 20866 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 20867 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 20868 20869 if test "x$enable_rpath" = xyes; then 20870 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 20871 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 20872 fi 20873 fi 20874 20875 else 20876 if test "$thedir" != "/usr" -a "$thedir" != ""; then 20877 LDFLAGS="$LDFLAGS -L$thedir/lib" 20878 20879 if test "x$enable_rpath" = xyes; then 20880 if echo "$thedir/lib" | grep "^/" >/dev/null; then 20881 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 20882 fi 20883 fi 20884 20885 fi 20886 fi 20887 fi 20888 # check for library used by libevent after 1.3c 20889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20890printf %s "checking for library containing clock_gettime... " >&6; } 20891if test ${ac_cv_search_clock_gettime+y} 20892then : 20893 printf %s "(cached) " >&6 20894else $as_nop 20895 ac_func_search_save_LIBS=$LIBS 20896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20897/* end confdefs.h. */ 20898 20899/* Override any GCC internal prototype to avoid an error. 20900 Use char because int might match the return type of a GCC 20901 builtin and then its argument prototype would still apply. */ 20902char clock_gettime (); 20903int 20904main (void) 20905{ 20906return clock_gettime (); 20907 ; 20908 return 0; 20909} 20910_ACEOF 20911for ac_lib in '' rt 20912do 20913 if test -z "$ac_lib"; then 20914 ac_res="none required" 20915 else 20916 ac_res=-l$ac_lib 20917 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20918 fi 20919 if ac_fn_c_try_link "$LINENO" 20920then : 20921 ac_cv_search_clock_gettime=$ac_res 20922fi 20923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20924 conftest$ac_exeext 20925 if test ${ac_cv_search_clock_gettime+y} 20926then : 20927 break 20928fi 20929done 20930if test ${ac_cv_search_clock_gettime+y} 20931then : 20932 20933else $as_nop 20934 ac_cv_search_clock_gettime=no 20935fi 20936rm conftest.$ac_ext 20937LIBS=$ac_func_search_save_LIBS 20938fi 20939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20940printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 20941ac_res=$ac_cv_search_clock_gettime 20942if test "$ac_res" != no 20943then : 20944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20945 20946fi 20947 20948 20949 # is the event.h header libev or libevent? 20950 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 20951" 20952if test "x$ac_cv_header_event_h" = xyes 20953then : 20954 printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h 20955 20956fi 20957 20958 ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 20959#include <event.h> 20960 20961" "$ac_c_undeclared_builtin_options" "CFLAGS" 20962if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes 20963then : 20964 20965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 20966printf %s "checking for library containing event_set... " >&6; } 20967if test ${ac_cv_search_event_set+y} 20968then : 20969 printf %s "(cached) " >&6 20970else $as_nop 20971 ac_func_search_save_LIBS=$LIBS 20972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20973/* end confdefs.h. */ 20974 20975/* Override any GCC internal prototype to avoid an error. 20976 Use char because int might match the return type of a GCC 20977 builtin and then its argument prototype would still apply. */ 20978char event_set (); 20979int 20980main (void) 20981{ 20982return event_set (); 20983 ; 20984 return 0; 20985} 20986_ACEOF 20987for ac_lib in '' ev 20988do 20989 if test -z "$ac_lib"; then 20990 ac_res="none required" 20991 else 20992 ac_res=-l$ac_lib 20993 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20994 fi 20995 if ac_fn_c_try_link "$LINENO" 20996then : 20997 ac_cv_search_event_set=$ac_res 20998fi 20999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21000 conftest$ac_exeext 21001 if test ${ac_cv_search_event_set+y} 21002then : 21003 break 21004fi 21005done 21006if test ${ac_cv_search_event_set+y} 21007then : 21008 21009else $as_nop 21010 ac_cv_search_event_set=no 21011fi 21012rm conftest.$ac_ext 21013LIBS=$ac_func_search_save_LIBS 21014fi 21015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 21016printf "%s\n" "$ac_cv_search_event_set" >&6; } 21017ac_res=$ac_cv_search_event_set 21018if test "$ac_res" != no 21019then : 21020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21021 21022fi 21023 21024 21025else $as_nop 21026 21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 21028printf %s "checking for library containing event_set... " >&6; } 21029if test ${ac_cv_search_event_set+y} 21030then : 21031 printf %s "(cached) " >&6 21032else $as_nop 21033 ac_func_search_save_LIBS=$LIBS 21034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21035/* end confdefs.h. */ 21036 21037/* Override any GCC internal prototype to avoid an error. 21038 Use char because int might match the return type of a GCC 21039 builtin and then its argument prototype would still apply. */ 21040char event_set (); 21041int 21042main (void) 21043{ 21044return event_set (); 21045 ; 21046 return 0; 21047} 21048_ACEOF 21049for ac_lib in '' event 21050do 21051 if test -z "$ac_lib"; then 21052 ac_res="none required" 21053 else 21054 ac_res=-l$ac_lib 21055 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21056 fi 21057 if ac_fn_c_try_link "$LINENO" 21058then : 21059 ac_cv_search_event_set=$ac_res 21060fi 21061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21062 conftest$ac_exeext 21063 if test ${ac_cv_search_event_set+y} 21064then : 21065 break 21066fi 21067done 21068if test ${ac_cv_search_event_set+y} 21069then : 21070 21071else $as_nop 21072 ac_cv_search_event_set=no 21073fi 21074rm conftest.$ac_ext 21075LIBS=$ac_func_search_save_LIBS 21076fi 21077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 21078printf "%s\n" "$ac_cv_search_event_set" >&6; } 21079ac_res=$ac_cv_search_event_set 21080if test "$ac_res" != no 21081then : 21082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21083 21084fi 21085 21086 21087fi 21088 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 21089if test "x$ac_cv_func_event_base_free" = xyes 21090then : 21091 printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h 21092 21093fi 21094 # only in libevent 1.2 and later 21095 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 21096if test "x$ac_cv_func_event_base_once" = xyes 21097then : 21098 printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h 21099 21100fi 21101 # only in libevent 1.4.1 and later 21102 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 21103if test "x$ac_cv_func_event_base_new" = xyes 21104then : 21105 printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h 21106 21107fi 21108 # only in libevent 1.4.1 and later 21109 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 21110if test "x$ac_cv_func_event_base_get_method" = xyes 21111then : 21112 printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h 21113 21114fi 21115 # only in libevent 1.4.3 and later 21116 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 21117if test "x$ac_cv_func_ev_loop" = xyes 21118then : 21119 printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h 21120 21121fi 21122 # only in libev. (tested on 3.51) 21123 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 21124if test "x$ac_cv_func_ev_default_loop" = xyes 21125then : 21126 printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h 21127 21128fi 21129 # only in libev. (tested on 4.00) 21130 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 21131if test "x$ac_cv_func_event_assign" = xyes 21132then : 21133 printf "%s\n" "#define HAVE_EVENT_ASSIGN 1" >>confdefs.h 21134 21135fi 21136 # in libevent, for thread-safety 21137 ac_fn_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 21138#ifdef HAVE_EVENT_H 21139# include <event.h> 21140#else 21141# include \"event2/event.h\" 21142#endif 21143 21144" "$ac_c_undeclared_builtin_options" "CFLAGS" 21145if test "x$ac_cv_have_decl_evsignal_assign" = xyes 21146then : 21147 ac_have_decl=1 21148else $as_nop 21149 ac_have_decl=0 21150fi 21151printf "%s\n" "#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl" >>confdefs.h 21152 21153 PC_LIBEVENT_DEPENDENCY="libevent" 21154 21155 if test -n "$BAK_LDFLAGS_SET"; then 21156 LDFLAGS="$BAK_LDFLAGS" 21157 fi 21158else 21159 21160printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h 21161 21162fi 21163 21164# check for libexpat 21165 21166# Check whether --with-libexpat was given. 21167if test ${with_libexpat+y} 21168then : 21169 withval=$with_libexpat; 21170else $as_nop 21171 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21172fi 21173 21174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 21175printf %s "checking for libexpat... " >&6; } 21176found_libexpat="no" 21177for dir in $withval ; do 21178 if test -f "$dir/include/expat.h"; then 21179 found_libexpat="yes" 21180 if test "$dir" != "/usr"; then 21181 CPPFLAGS="$CPPFLAGS -I$dir/include" 21182 LDFLAGS="$LDFLAGS -L$dir/lib" 21183 fi 21184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21185printf "%s\n" "found in $dir" >&6; } 21186 break; 21187 fi 21188done 21189if test x_$found_libexpat != x_yes; then 21190 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 21191fi 21192ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 21193" 21194if test "x$ac_cv_header_expat_h" = xyes 21195then : 21196 printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h 21197 21198fi 21199 21200ac_fn_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 21201#include <expat.h> 21202 21203" "$ac_c_undeclared_builtin_options" "CFLAGS" 21204if test "x$ac_cv_have_decl_XML_StopParser" = xyes 21205then : 21206 ac_have_decl=1 21207else $as_nop 21208 ac_have_decl=0 21209fi 21210printf "%s\n" "#define HAVE_DECL_XML_STOPPARSER $ac_have_decl" >>confdefs.h 21211 21212 21213# hiredis (redis C client for cachedb) 21214 21215# Check whether --with-libhiredis was given. 21216if test ${with_libhiredis+y} 21217then : 21218 withval=$with_libhiredis; 21219else $as_nop 21220 withval="no" 21221fi 21222 21223found_libhiredis="no" 21224if test x_$withval = x_yes -o x_$withval != x_no; then 21225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 21226printf %s "checking for libhiredis... " >&6; } 21227 if test x_$withval = x_ -o x_$withval = x_yes; then 21228 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21229 fi 21230 for dir in $withval ; do 21231 if test -f "$dir/include/hiredis/hiredis.h"; then 21232 found_libhiredis="yes" 21233 if test "$dir" != "/usr"; then 21234 CPPFLAGS="$CPPFLAGS -I$dir/include" 21235 LDFLAGS="$LDFLAGS -L$dir/lib" 21236 fi 21237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21238printf "%s\n" "found in $dir" >&6; } 21239 21240printf "%s\n" "#define USE_REDIS 1" >>confdefs.h 21241 21242 LIBS="$LIBS -lhiredis" 21243 break; 21244 fi 21245 done 21246 if test x_$found_libhiredis != x_yes; then 21247 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 21248 fi 21249 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 21250" 21251if test "x$ac_cv_header_hiredis_hiredis_h" = xyes 21252then : 21253 printf "%s\n" "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h 21254 21255fi 21256 21257 ac_fn_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 21258 #include <hiredis/hiredis.h> 21259 21260" "$ac_c_undeclared_builtin_options" "CFLAGS" 21261if test "x$ac_cv_have_decl_redisConnect" = xyes 21262then : 21263 ac_have_decl=1 21264else $as_nop 21265 ac_have_decl=0 21266fi 21267printf "%s\n" "#define HAVE_DECL_REDISCONNECT $ac_have_decl" >>confdefs.h 21268 21269fi 21270 21271# nghttp2 21272 21273# Check whether --with-libnghttp2 was given. 21274if test ${with_libnghttp2+y} 21275then : 21276 withval=$with_libnghttp2; 21277else $as_nop 21278 withval="no" 21279fi 21280 21281found_libnghttp2="no" 21282if test x_$withval = x_yes -o x_$withval != x_no; then 21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 21284printf %s "checking for libnghttp2... " >&6; } 21285 if test x_$withval = x_ -o x_$withval = x_yes; then 21286 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21287 fi 21288 for dir in $withval ; do 21289 if test -f "$dir/include/nghttp2/nghttp2.h"; then 21290 found_libnghttp2="yes" 21291 if test "$dir" != "/usr"; then 21292 CPPFLAGS="$CPPFLAGS -I$dir/include" 21293 LDFLAGS="$LDFLAGS -L$dir/lib" 21294 fi 21295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21296printf "%s\n" "found in $dir" >&6; } 21297 21298printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h 21299 21300 LIBS="$LIBS -lnghttp2" 21301 break; 21302 fi 21303 done 21304 if test x_$found_libnghttp2 != x_yes; then 21305 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 21306 fi 21307 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 21308" 21309if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes 21310then : 21311 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h 21312 21313fi 21314 21315 ac_fn_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 21316 #include <nghttp2/nghttp2.h> 21317 21318" "$ac_c_undeclared_builtin_options" "CFLAGS" 21319if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes 21320then : 21321 ac_have_decl=1 21322else $as_nop 21323 ac_have_decl=0 21324fi 21325printf "%s\n" "#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl" >>confdefs.h 21326 21327fi 21328 21329# set static linking for uninstalled libraries if requested 21330 21331staticexe="" 21332# Check whether --enable-static-exe was given. 21333if test ${enable_static_exe+y} 21334then : 21335 enableval=$enable_static_exe; 21336fi 21337 21338if test x_$enable_static_exe = x_yes; then 21339 staticexe="-static" 21340 if test "$on_mingw" = yes; then 21341 staticexe="-all-static" 21342 # for static compile, include gdi32 and zlib here. 21343 if echo $LIBS | grep 'lgdi32' >/dev/null; then 21344 : 21345 else 21346 LIBS="$LIBS -lgdi32" 21347 fi 21348 LIBS="$LIBS -lz" 21349 LIBS="$LIBS -l:libssp.a" 21350 fi 21351fi 21352 21353# set full static linking if requested 21354# Check whether --enable-fully-static was given. 21355if test ${enable_fully_static+y} 21356then : 21357 enableval=$enable_fully_static; 21358fi 21359 21360if test x_$enable_fully_static = x_yes; then 21361 staticexe="-all-static" 21362 if test "$on_mingw" = yes; then 21363 # for static compile, include gdi32 and zlib here. 21364 if echo $LIBS | grep 'lgdi32' >/dev/null; then 21365 : 21366 else 21367 LIBS="$LIBS -lgdi32" 21368 fi 21369 LIBS="$LIBS -lz" 21370 LIBS="$LIBS -l:libssp.a" 21371 fi 21372fi 21373 21374# set lock checking if requested 21375# Check whether --enable-lock_checks was given. 21376if test ${enable_lock_checks+y} 21377then : 21378 enableval=$enable_lock_checks; 21379fi 21380 21381if test x_$enable_lock_checks = x_yes; then 21382 21383printf "%s\n" "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 21384 21385 CHECKLOCK_OBJ="checklocks.lo" 21386 21387fi 21388 21389 21390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 21391printf %s "checking for getaddrinfo... " >&6; } 21392ac_cv_func_getaddrinfo=no 21393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21394/* end confdefs.h. */ 21395 21396#ifdef __cplusplus 21397extern "C" 21398{ 21399#endif 21400char* getaddrinfo(); 21401char* (*f) () = getaddrinfo; 21402#ifdef __cplusplus 21403} 21404#endif 21405int main() { 21406 ; 21407 return 0; 21408} 21409 21410_ACEOF 21411if ac_fn_c_try_link "$LINENO" 21412then : 21413 ac_cv_func_getaddrinfo="yes" 21414if test "$ac_cv_header_windows_h" = "yes"; then 21415 21416printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 21417 21418 USE_WINSOCK="1" 21419 if echo $LIBS | grep 'lws2_32' >/dev/null; then 21420 : 21421 else 21422 LIBS="$LIBS -lws2_32" 21423 fi 21424fi 21425 21426else $as_nop 21427 ORIGLIBS="$LIBS" 21428LIBS="$LIBS -lws2_32" 21429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21430/* end confdefs.h. */ 21431 21432#ifdef HAVE_WS2TCPIP_H 21433#include <ws2tcpip.h> 21434#endif 21435 21436int 21437main (void) 21438{ 21439 21440 (void)getaddrinfo(NULL, NULL, NULL, NULL); 21441 21442 21443 ; 21444 return 0; 21445} 21446_ACEOF 21447if ac_fn_c_try_link "$LINENO" 21448then : 21449 21450ac_cv_func_getaddrinfo="yes" 21451 21452printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 21453 21454USE_WINSOCK="1" 21455 21456else $as_nop 21457 21458ac_cv_func_getaddrinfo="no" 21459LIBS="$ORIGLIBS" 21460 21461fi 21462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21463 conftest$ac_exeext conftest.$ac_ext 21464 21465fi 21466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21467 conftest$ac_exeext conftest.$ac_ext 21468 21469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 21470printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 21471if test $ac_cv_func_getaddrinfo = yes; then 21472 21473printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 21474 21475fi 21476 21477if test "$USE_WINSOCK" = 1; then 21478 21479printf "%s\n" "#define UB_ON_WINDOWS 1" >>confdefs.h 21480 21481 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 21482#include <windows.h> 21483 21484" 21485if test "x$ac_cv_header_iphlpapi_h" = xyes 21486then : 21487 printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h 21488 21489fi 21490 21491 if test -n "$ac_tool_prefix"; then 21492 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 21493set dummy ${ac_tool_prefix}windres; ac_word=$2 21494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21495printf %s "checking for $ac_word... " >&6; } 21496if test ${ac_cv_prog_WINDRES+y} 21497then : 21498 printf %s "(cached) " >&6 21499else $as_nop 21500 if test -n "$WINDRES"; then 21501 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 21502else 21503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21504for as_dir in $PATH 21505do 21506 IFS=$as_save_IFS 21507 case $as_dir in #((( 21508 '') as_dir=./ ;; 21509 */) ;; 21510 *) as_dir=$as_dir/ ;; 21511 esac 21512 for ac_exec_ext in '' $ac_executable_extensions; do 21513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21514 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 21515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21516 break 2 21517 fi 21518done 21519 done 21520IFS=$as_save_IFS 21521 21522fi 21523fi 21524WINDRES=$ac_cv_prog_WINDRES 21525if test -n "$WINDRES"; then 21526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 21527printf "%s\n" "$WINDRES" >&6; } 21528else 21529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21530printf "%s\n" "no" >&6; } 21531fi 21532 21533 21534fi 21535if test -z "$ac_cv_prog_WINDRES"; then 21536 ac_ct_WINDRES=$WINDRES 21537 # Extract the first word of "windres", so it can be a program name with args. 21538set dummy windres; ac_word=$2 21539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21540printf %s "checking for $ac_word... " >&6; } 21541if test ${ac_cv_prog_ac_ct_WINDRES+y} 21542then : 21543 printf %s "(cached) " >&6 21544else $as_nop 21545 if test -n "$ac_ct_WINDRES"; then 21546 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 21547else 21548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21549for as_dir in $PATH 21550do 21551 IFS=$as_save_IFS 21552 case $as_dir in #((( 21553 '') as_dir=./ ;; 21554 */) ;; 21555 *) as_dir=$as_dir/ ;; 21556 esac 21557 for ac_exec_ext in '' $ac_executable_extensions; do 21558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21559 ac_cv_prog_ac_ct_WINDRES="windres" 21560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21561 break 2 21562 fi 21563done 21564 done 21565IFS=$as_save_IFS 21566 21567fi 21568fi 21569ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 21570if test -n "$ac_ct_WINDRES"; then 21571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 21572printf "%s\n" "$ac_ct_WINDRES" >&6; } 21573else 21574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21575printf "%s\n" "no" >&6; } 21576fi 21577 21578 if test "x$ac_ct_WINDRES" = x; then 21579 WINDRES="" 21580 else 21581 case $cross_compiling:$ac_tool_warned in 21582yes:) 21583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21585ac_tool_warned=yes ;; 21586esac 21587 WINDRES=$ac_ct_WINDRES 21588 fi 21589else 21590 WINDRES="$ac_cv_prog_WINDRES" 21591fi 21592 21593 LIBS="$LIBS -liphlpapi -lcrypt32" 21594 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 21595 21596 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 21597 21598 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 21599 21600 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 21601 21602 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 21603 21604 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 21605 21606 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 21607 21608 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 21609 21610fi 21611if test $ac_cv_func_getaddrinfo = no; then 21612 case " $LIBOBJS " in 21613 *" fake-rfc2553.$ac_objext "* ) ;; 21614 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 21615 ;; 21616esac 21617 21618fi 21619# check after getaddrinfo for its libraries 21620 21621# check ioctlsocket 21622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 21623printf %s "checking for ioctlsocket... " >&6; } 21624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21625/* end confdefs.h. */ 21626 21627#ifdef HAVE_WINSOCK2_H 21628#include <winsock2.h> 21629#endif 21630 21631int 21632main (void) 21633{ 21634 21635 (void)ioctlsocket(0, 0, NULL); 21636 21637 ; 21638 return 0; 21639} 21640_ACEOF 21641if ac_fn_c_try_link "$LINENO" 21642then : 21643 21644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21645printf "%s\n" "yes" >&6; } 21646 21647printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 21648 21649 21650else $as_nop 21651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21652printf "%s\n" "no" >&6; } 21653fi 21654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21655 conftest$ac_exeext conftest.$ac_ext 21656 21657 21658# see if daemon(3) exists, and if it is deprecated. 21659ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 21660if test "x$ac_cv_func_daemon" = xyes 21661then : 21662 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 21663 21664fi 21665 21666if test $ac_cv_func_daemon = yes; then 21667 21668 21669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 21670printf %s "checking if daemon is deprecated... " >&6; } 21671cache=`echo daemon | sed 'y%.=/+-%___p_%'` 21672if eval test \${cv_cc_deprecated_$cache+y} 21673then : 21674 printf %s "(cached) " >&6 21675else $as_nop 21676 21677echo ' 21678#include <stdlib.h> 21679' >conftest.c 21680echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 21681if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 21682eval "cv_cc_deprecated_$cache=no" 21683else 21684eval "cv_cc_deprecated_$cache=yes" 21685fi 21686rm -f conftest conftest.o conftest.c 21687 21688fi 21689 21690if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 21691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21692printf "%s\n" "yes" >&6; } 21693 21694printf "%s\n" "#define DEPRECATED_DAEMON 1" >>confdefs.h 21695 21696: 21697 21698else 21699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21700printf "%s\n" "no" >&6; } 21701: 21702 21703fi 21704 21705fi 21706 21707ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 21708$ac_includes_default 21709#ifdef HAVE_SYS_UN_H 21710#include <sys/un.h> 21711#endif 21712 21713" 21714if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 21715then : 21716 21717printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h 21718 21719 21720fi 21721 21722ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 21723$ac_includes_default 21724#if HAVE_SYS_PARAM_H 21725#include <sys/param.h> 21726#endif 21727 21728#ifdef HAVE_SYS_SOCKET_H 21729#include <sys/socket.h> 21730#endif 21731 21732#ifdef HAVE_SYS_UIO_H 21733#include <sys/uio.h> 21734#endif 21735 21736#ifdef HAVE_NETINET_IN_H 21737#include <netinet/in.h> 21738#endif 21739 21740#ifdef HAVE_NETINET_TCP_H 21741#include <netinet/tcp.h> 21742#endif 21743 21744#ifdef HAVE_ARPA_INET_H 21745#include <arpa/inet.h> 21746#endif 21747 21748#ifdef HAVE_WINSOCK2_H 21749#include <winsock2.h> 21750#endif 21751 21752#ifdef HAVE_WS2TCPIP_H 21753#include <ws2tcpip.h> 21754#endif 21755 21756" 21757if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes 21758then : 21759 21760printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h 21761 21762 21763fi 21764 21765 21766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 21767printf %s "checking for htobe64... " >&6; } 21768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21769/* end confdefs.h. */ 21770 21771#include <stdio.h> 21772#ifdef HAVE_ENDIAN_H 21773# include <endian.h> 21774#endif 21775#ifdef HAVE_SYS_ENDIAN_H 21776# include <sys/endian.h> 21777#endif 21778 21779int 21780main (void) 21781{ 21782unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 21783 ; 21784 return 0; 21785} 21786_ACEOF 21787if ac_fn_c_try_link "$LINENO" 21788then : 21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21790printf "%s\n" "yes" >&6; } 21791 21792printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h 21793 21794else $as_nop 21795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21796printf "%s\n" "no" >&6; } 21797fi 21798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21799 conftest$ac_exeext conftest.$ac_ext 21800 21801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 21802printf %s "checking for be64toh... " >&6; } 21803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21804/* end confdefs.h. */ 21805 21806#include <stdio.h> 21807#ifdef HAVE_ENDIAN_H 21808# include <endian.h> 21809#endif 21810#ifdef HAVE_SYS_ENDIAN_H 21811# include <sys/endian.h> 21812#endif 21813 21814int 21815main (void) 21816{ 21817unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 21818 ; 21819 return 0; 21820} 21821_ACEOF 21822if ac_fn_c_try_link "$LINENO" 21823then : 21824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21825printf "%s\n" "yes" >&6; } 21826 21827printf "%s\n" "#define HAVE_BE64TOH 1" >>confdefs.h 21828 21829else $as_nop 21830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21831printf "%s\n" "no" >&6; } 21832fi 21833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21834 conftest$ac_exeext conftest.$ac_ext 21835 21836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 21837printf %s "checking for library containing setusercontext... " >&6; } 21838if test ${ac_cv_search_setusercontext+y} 21839then : 21840 printf %s "(cached) " >&6 21841else $as_nop 21842 ac_func_search_save_LIBS=$LIBS 21843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21844/* end confdefs.h. */ 21845 21846/* Override any GCC internal prototype to avoid an error. 21847 Use char because int might match the return type of a GCC 21848 builtin and then its argument prototype would still apply. */ 21849char setusercontext (); 21850int 21851main (void) 21852{ 21853return setusercontext (); 21854 ; 21855 return 0; 21856} 21857_ACEOF 21858for ac_lib in '' util 21859do 21860 if test -z "$ac_lib"; then 21861 ac_res="none required" 21862 else 21863 ac_res=-l$ac_lib 21864 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21865 fi 21866 if ac_fn_c_try_link "$LINENO" 21867then : 21868 ac_cv_search_setusercontext=$ac_res 21869fi 21870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21871 conftest$ac_exeext 21872 if test ${ac_cv_search_setusercontext+y} 21873then : 21874 break 21875fi 21876done 21877if test ${ac_cv_search_setusercontext+y} 21878then : 21879 21880else $as_nop 21881 ac_cv_search_setusercontext=no 21882fi 21883rm conftest.$ac_ext 21884LIBS=$ac_func_search_save_LIBS 21885fi 21886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 21887printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 21888ac_res=$ac_cv_search_setusercontext 21889if test "$ac_res" != no 21890then : 21891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21892 21893fi 21894 21895ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 21896if test "x$ac_cv_func_tzset" = xyes 21897then : 21898 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 21899 21900fi 21901ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 21902if test "x$ac_cv_func_sigprocmask" = xyes 21903then : 21904 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 21905 21906fi 21907ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 21908if test "x$ac_cv_func_fcntl" = xyes 21909then : 21910 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 21911 21912fi 21913ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" 21914if test "x$ac_cv_func_getpwnam" = xyes 21915then : 21916 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h 21917 21918fi 21919ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 21920if test "x$ac_cv_func_endpwent" = xyes 21921then : 21922 printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h 21923 21924fi 21925ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 21926if test "x$ac_cv_func_getrlimit" = xyes 21927then : 21928 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 21929 21930fi 21931ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 21932if test "x$ac_cv_func_setrlimit" = xyes 21933then : 21934 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 21935 21936fi 21937ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 21938if test "x$ac_cv_func_setsid" = xyes 21939then : 21940 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 21941 21942fi 21943ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 21944if test "x$ac_cv_func_chroot" = xyes 21945then : 21946 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 21947 21948fi 21949ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 21950if test "x$ac_cv_func_kill" = xyes 21951then : 21952 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 21953 21954fi 21955ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 21956if test "x$ac_cv_func_chown" = xyes 21957then : 21958 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 21959 21960fi 21961ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 21962if test "x$ac_cv_func_sleep" = xyes 21963then : 21964 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h 21965 21966fi 21967ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 21968if test "x$ac_cv_func_usleep" = xyes 21969then : 21970 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 21971 21972fi 21973ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 21974if test "x$ac_cv_func_random" = xyes 21975then : 21976 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 21977 21978fi 21979ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" 21980if test "x$ac_cv_func_srandom" = xyes 21981then : 21982 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h 21983 21984fi 21985ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 21986if test "x$ac_cv_func_recvmsg" = xyes 21987then : 21988 printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h 21989 21990fi 21991ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 21992if test "x$ac_cv_func_sendmsg" = xyes 21993then : 21994 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 21995 21996fi 21997ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 21998if test "x$ac_cv_func_writev" = xyes 21999then : 22000 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 22001 22002fi 22003ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 22004if test "x$ac_cv_func_socketpair" = xyes 22005then : 22006 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 22007 22008fi 22009ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" 22010if test "x$ac_cv_func_glob" = xyes 22011then : 22012 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 22013 22014fi 22015ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 22016if test "x$ac_cv_func_initgroups" = xyes 22017then : 22018 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 22019 22020fi 22021ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 22022if test "x$ac_cv_func_strftime" = xyes 22023then : 22024 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 22025 22026fi 22027ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 22028if test "x$ac_cv_func_localtime_r" = xyes 22029then : 22030 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 22031 22032fi 22033ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 22034if test "x$ac_cv_func_setusercontext" = xyes 22035then : 22036 printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 22037 22038fi 22039ac_fn_c_check_func "$LINENO" "_beginthreadex" "ac_cv_func__beginthreadex" 22040if test "x$ac_cv_func__beginthreadex" = xyes 22041then : 22042 printf "%s\n" "#define HAVE__BEGINTHREADEX 1" >>confdefs.h 22043 22044fi 22045ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent" 22046if test "x$ac_cv_func_endservent" = xyes 22047then : 22048 printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h 22049 22050fi 22051ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent" 22052if test "x$ac_cv_func_endprotoent" = xyes 22053then : 22054 printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h 22055 22056fi 22057ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" 22058if test "x$ac_cv_func_fsync" = xyes 22059then : 22060 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h 22061 22062fi 22063ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" 22064if test "x$ac_cv_func_shmget" = xyes 22065then : 22066 printf "%s\n" "#define HAVE_SHMGET 1" >>confdefs.h 22067 22068fi 22069ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 22070if test "x$ac_cv_func_accept4" = xyes 22071then : 22072 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 22073 22074fi 22075ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 22076if test "x$ac_cv_func_getifaddrs" = xyes 22077then : 22078 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 22079 22080fi 22081 22082 22083 for ac_func in setresuid 22084do : 22085 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 22086if test "x$ac_cv_func_setresuid" = xyes 22087then : 22088 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 22089 22090else $as_nop 22091 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 22092if test "x$ac_cv_func_setreuid" = xyes 22093then : 22094 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 22095 22096fi 22097 22098fi 22099 22100done 22101 22102 for ac_func in setresgid 22103do : 22104 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 22105if test "x$ac_cv_func_setresgid" = xyes 22106then : 22107 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 22108 22109else $as_nop 22110 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 22111if test "x$ac_cv_func_setregid" = xyes 22112then : 22113 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 22114 22115fi 22116 22117fi 22118 22119done 22120 22121# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 22122if echo $target_os | grep darwin8 > /dev/null; then 22123 22124printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 22125 22126fi 22127ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 22128$ac_includes_default 22129#ifdef HAVE_NETINET_IN_H 22130#include <netinet/in.h> 22131#endif 22132 22133#ifdef HAVE_NETINET_TCP_H 22134#include <netinet/tcp.h> 22135#endif 22136 22137#ifdef HAVE_ARPA_INET_H 22138#include <arpa/inet.h> 22139#endif 22140 22141#ifdef HAVE_WINSOCK2_H 22142#include <winsock2.h> 22143#endif 22144 22145#ifdef HAVE_WS2TCPIP_H 22146#include <ws2tcpip.h> 22147#endif 22148 22149" "$ac_c_undeclared_builtin_options" "CFLAGS" 22150if test "x$ac_cv_have_decl_inet_pton" = xyes 22151then : 22152 ac_have_decl=1 22153else $as_nop 22154 ac_have_decl=0 22155fi 22156printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 22157ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 22158$ac_includes_default 22159#ifdef HAVE_NETINET_IN_H 22160#include <netinet/in.h> 22161#endif 22162 22163#ifdef HAVE_NETINET_TCP_H 22164#include <netinet/tcp.h> 22165#endif 22166 22167#ifdef HAVE_ARPA_INET_H 22168#include <arpa/inet.h> 22169#endif 22170 22171#ifdef HAVE_WINSOCK2_H 22172#include <winsock2.h> 22173#endif 22174 22175#ifdef HAVE_WS2TCPIP_H 22176#include <ws2tcpip.h> 22177#endif 22178 22179" "$ac_c_undeclared_builtin_options" "CFLAGS" 22180if test "x$ac_cv_have_decl_inet_ntop" = xyes 22181then : 22182 ac_have_decl=1 22183else $as_nop 22184 ac_have_decl=0 22185fi 22186printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 22187 22188ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 22189if test "x$ac_cv_func_inet_aton" = xyes 22190then : 22191 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 22192 22193else $as_nop 22194 case " $LIBOBJS " in 22195 *" inet_aton.$ac_objext "* ) ;; 22196 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 22197 ;; 22198esac 22199 22200fi 22201 22202ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 22203if test "x$ac_cv_func_inet_pton" = xyes 22204then : 22205 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 22206 22207else $as_nop 22208 case " $LIBOBJS " in 22209 *" inet_pton.$ac_objext "* ) ;; 22210 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 22211 ;; 22212esac 22213 22214fi 22215 22216ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 22217if test "x$ac_cv_func_inet_ntop" = xyes 22218then : 22219 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 22220 22221else $as_nop 22222 case " $LIBOBJS " in 22223 *" inet_ntop.$ac_objext "* ) ;; 22224 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 22225 ;; 22226esac 22227 22228fi 22229 22230ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 22231if test "x$ac_cv_func_snprintf" = xyes 22232then : 22233 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 22234 22235else $as_nop 22236 case " $LIBOBJS " in 22237 *" snprintf.$ac_objext "* ) ;; 22238 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 22239 ;; 22240esac 22241 22242fi 22243 22244# test if snprintf return the proper length 22245if test "x$ac_cv_func_snprintf" = xyes; then 22246 if test c${cross_compiling} = cno; then 22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 22248printf %s "checking for correct snprintf return value... " >&6; } 22249 if test "$cross_compiling" = yes 22250then : 22251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22252printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22253as_fn_error $? "cannot run test program while cross compiling 22254See \`config.log' for more details" "$LINENO" 5; } 22255else $as_nop 22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22257/* end confdefs.h. */ 22258$ac_includes_default 22259 22260int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 22261 22262_ACEOF 22263if ac_fn_c_try_run "$LINENO" 22264then : 22265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22266printf "%s\n" "yes" >&6; } 22267else $as_nop 22268 22269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22270printf "%s\n" "no" >&6; } 22271 22272printf "%s\n" "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 22273 22274 case " $LIBOBJS " in 22275 *" snprintf.$ac_objext "* ) ;; 22276 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 22277 ;; 22278esac 22279 22280 22281fi 22282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22283 conftest.$ac_objext conftest.beam conftest.$ac_ext 22284fi 22285 22286 fi 22287fi 22288ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 22289if test "x$ac_cv_func_strlcat" = xyes 22290then : 22291 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 22292 22293else $as_nop 22294 case " $LIBOBJS " in 22295 *" strlcat.$ac_objext "* ) ;; 22296 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22297 ;; 22298esac 22299 22300fi 22301 22302ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22303if test "x$ac_cv_func_strlcpy" = xyes 22304then : 22305 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22306 22307else $as_nop 22308 case " $LIBOBJS " in 22309 *" strlcpy.$ac_objext "* ) ;; 22310 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22311 ;; 22312esac 22313 22314fi 22315 22316ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 22317if test "x$ac_cv_func_memmove" = xyes 22318then : 22319 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 22320 22321else $as_nop 22322 case " $LIBOBJS " in 22323 *" memmove.$ac_objext "* ) ;; 22324 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 22325 ;; 22326esac 22327 22328fi 22329 22330ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 22331if test "x$ac_cv_func_gmtime_r" = xyes 22332then : 22333 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 22334 22335else $as_nop 22336 case " $LIBOBJS " in 22337 *" gmtime_r.$ac_objext "* ) ;; 22338 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 22339 ;; 22340esac 22341 22342fi 22343 22344ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 22345if test "x$ac_cv_func_isblank" = xyes 22346then : 22347 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h 22348 22349else $as_nop 22350 case " $LIBOBJS " in 22351 *" isblank.$ac_objext "* ) ;; 22352 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 22353 ;; 22354esac 22355 22356fi 22357 22358ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 22359if test "x$ac_cv_func_explicit_bzero" = xyes 22360then : 22361 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 22362 22363else $as_nop 22364 case " $LIBOBJS " in 22365 *" explicit_bzero.$ac_objext "* ) ;; 22366 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 22367 ;; 22368esac 22369 22370fi 22371 22372LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 22373 22374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 22375printf %s "checking for reallocarray... " >&6; } 22376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22377/* end confdefs.h. */ 22378$ac_includes_default 22379 22380#ifndef _OPENBSD_SOURCE 22381#define _OPENBSD_SOURCE 1 22382#endif 22383#include <stdlib.h> 22384int main(void) { 22385 void* p = reallocarray(NULL, 10, 100); 22386 free(p); 22387 return 0; 22388} 22389 22390_ACEOF 22391if ac_fn_c_try_link "$LINENO" 22392then : 22393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22394printf "%s\n" "yes" >&6; } 22395 22396printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22397 22398 22399else $as_nop 22400 22401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22402printf "%s\n" "no" >&6; } 22403 case " $LIBOBJS " in 22404 *" reallocarray.$ac_objext "* ) ;; 22405 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22406 ;; 22407esac 22408 22409 22410fi 22411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22412 conftest$ac_exeext conftest.$ac_ext 22413ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 22414if test "x$ac_cv_have_decl_reallocarray" = xyes 22415then : 22416 ac_have_decl=1 22417else $as_nop 22418 ac_have_decl=0 22419fi 22420printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h 22421 22422if test "$USE_NSS" = "no"; then 22423 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 22424if test "x$ac_cv_func_arc4random" = xyes 22425then : 22426 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 22427 22428else $as_nop 22429 case " $LIBOBJS " in 22430 *" arc4random.$ac_objext "* ) ;; 22431 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 22432 ;; 22433esac 22434 22435fi 22436 22437 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 22438if test "x$ac_cv_func_arc4random_uniform" = xyes 22439then : 22440 printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 22441 22442else $as_nop 22443 case " $LIBOBJS " in 22444 *" arc4random_uniform.$ac_objext "* ) ;; 22445 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 22446 ;; 22447esac 22448 22449fi 22450 22451 if test "$ac_cv_func_arc4random" = "no"; then 22452 case " $LIBOBJS " in 22453 *" arc4_lock.$ac_objext "* ) ;; 22454 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 22455 ;; 22456esac 22457 22458 22459 for ac_func in getentropy 22460do : 22461 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 22462if test "x$ac_cv_func_getentropy" = xyes 22463then : 22464 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 22465 22466else $as_nop 22467 22468 if test "$USE_WINSOCK" = 1; then 22469 case " $LIBOBJS " in 22470 *" getentropy_win.$ac_objext "* ) ;; 22471 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 22472 ;; 22473esac 22474 22475 else 22476 case "$host" in 22477 Darwin|*darwin*) 22478 case " $LIBOBJS " in 22479 *" getentropy_osx.$ac_objext "* ) ;; 22480 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 22481 ;; 22482esac 22483 22484 ;; 22485 *solaris*|*sunos*|SunOS) 22486 case " $LIBOBJS " in 22487 *" getentropy_solaris.$ac_objext "* ) ;; 22488 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 22489 ;; 22490esac 22491 22492 for ac_header in sys/sha2.h 22493do : 22494 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 22495" 22496if test "x$ac_cv_header_sys_sha2_h" = xyes 22497then : 22498 printf "%s\n" "#define HAVE_SYS_SHA2_H 1" >>confdefs.h 22499 22500else $as_nop 22501 22502 22503 for ac_func in SHA512_Update 22504do : 22505 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 22506if test "x$ac_cv_func_SHA512_Update" = xyes 22507then : 22508 printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h 22509 22510else $as_nop 22511 22512 case " $LIBOBJS " in 22513 *" sha512.$ac_objext "* ) ;; 22514 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 22515 ;; 22516esac 22517 22518 22519fi 22520 22521done 22522 22523fi 22524 22525done 22526 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 22527 # this lib needed for sha2 on solaris 22528 LIBS="$LIBS -lmd" 22529 fi 22530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 22531printf %s "checking for library containing clock_gettime... " >&6; } 22532if test ${ac_cv_search_clock_gettime+y} 22533then : 22534 printf %s "(cached) " >&6 22535else $as_nop 22536 ac_func_search_save_LIBS=$LIBS 22537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22538/* end confdefs.h. */ 22539 22540/* Override any GCC internal prototype to avoid an error. 22541 Use char because int might match the return type of a GCC 22542 builtin and then its argument prototype would still apply. */ 22543char clock_gettime (); 22544int 22545main (void) 22546{ 22547return clock_gettime (); 22548 ; 22549 return 0; 22550} 22551_ACEOF 22552for ac_lib in '' rt 22553do 22554 if test -z "$ac_lib"; then 22555 ac_res="none required" 22556 else 22557 ac_res=-l$ac_lib 22558 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22559 fi 22560 if ac_fn_c_try_link "$LINENO" 22561then : 22562 ac_cv_search_clock_gettime=$ac_res 22563fi 22564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22565 conftest$ac_exeext 22566 if test ${ac_cv_search_clock_gettime+y} 22567then : 22568 break 22569fi 22570done 22571if test ${ac_cv_search_clock_gettime+y} 22572then : 22573 22574else $as_nop 22575 ac_cv_search_clock_gettime=no 22576fi 22577rm conftest.$ac_ext 22578LIBS=$ac_func_search_save_LIBS 22579fi 22580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 22581printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 22582ac_res=$ac_cv_search_clock_gettime 22583if test "$ac_res" != no 22584then : 22585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22586 22587fi 22588 22589 ;; 22590 *freebsd*|*FreeBSD) 22591 case " $LIBOBJS " in 22592 *" getentropy_freebsd.$ac_objext "* ) ;; 22593 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 22594 ;; 22595esac 22596 22597 ;; 22598 *linux*|Linux|*) 22599 case " $LIBOBJS " in 22600 *" getentropy_linux.$ac_objext "* ) ;; 22601 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 22602 ;; 22603esac 22604 22605 22606 for ac_func in SHA512_Update 22607do : 22608 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 22609if test "x$ac_cv_func_SHA512_Update" = xyes 22610then : 22611 printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h 22612 22613else $as_nop 22614 22615 22616printf "%s\n" "#define COMPAT_SHA512 1" >>confdefs.h 22617 22618 case " $LIBOBJS " in 22619 *" sha512.$ac_objext "* ) ;; 22620 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 22621 ;; 22622esac 22623 22624 22625fi 22626 22627done 22628 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 22629" 22630if test "x$ac_cv_header_sys_sysctl_h" = xyes 22631then : 22632 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 22633 22634fi 22635 22636 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 22637if test "x$ac_cv_func_getauxval" = xyes 22638then : 22639 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h 22640 22641fi 22642 22643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 22644printf %s "checking for library containing clock_gettime... " >&6; } 22645if test ${ac_cv_search_clock_gettime+y} 22646then : 22647 printf %s "(cached) " >&6 22648else $as_nop 22649 ac_func_search_save_LIBS=$LIBS 22650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22651/* end confdefs.h. */ 22652 22653/* Override any GCC internal prototype to avoid an error. 22654 Use char because int might match the return type of a GCC 22655 builtin and then its argument prototype would still apply. */ 22656char clock_gettime (); 22657int 22658main (void) 22659{ 22660return clock_gettime (); 22661 ; 22662 return 0; 22663} 22664_ACEOF 22665for ac_lib in '' rt 22666do 22667 if test -z "$ac_lib"; then 22668 ac_res="none required" 22669 else 22670 ac_res=-l$ac_lib 22671 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22672 fi 22673 if ac_fn_c_try_link "$LINENO" 22674then : 22675 ac_cv_search_clock_gettime=$ac_res 22676fi 22677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22678 conftest$ac_exeext 22679 if test ${ac_cv_search_clock_gettime+y} 22680then : 22681 break 22682fi 22683done 22684if test ${ac_cv_search_clock_gettime+y} 22685then : 22686 22687else $as_nop 22688 ac_cv_search_clock_gettime=no 22689fi 22690rm conftest.$ac_ext 22691LIBS=$ac_func_search_save_LIBS 22692fi 22693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 22694printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 22695ac_res=$ac_cv_search_clock_gettime 22696if test "$ac_res" != no 22697then : 22698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22699 22700fi 22701 22702 ;; 22703 esac 22704 fi 22705 22706fi 22707 22708done 22709 fi 22710fi 22711LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 22712 22713ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 22714if test "x$ac_cv_func_ctime_r" = xyes 22715then : 22716 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 22717 22718else $as_nop 22719 case " $LIBOBJS " in 22720 *" ctime_r.$ac_objext "* ) ;; 22721 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 22722 ;; 22723esac 22724 22725fi 22726 22727ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 22728if test "x$ac_cv_func_strsep" = xyes 22729then : 22730 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 22731 22732else $as_nop 22733 case " $LIBOBJS " in 22734 *" strsep.$ac_objext "* ) ;; 22735 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 22736 ;; 22737esac 22738 22739fi 22740 22741 22742# Check whether --enable-allsymbols was given. 22743if test ${enable_allsymbols+y} 22744then : 22745 enableval=$enable_allsymbols; 22746fi 22747 22748case "$enable_allsymbols" in 22749 yes) 22750 COMMON_OBJ_ALL_SYMBOLS="" 22751 UBSYMS="" 22752 EXTRALINK="-L. -L.libs -lunbound" 22753 22754printf "%s\n" "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 22755 22756 ;; 22757 no|*) 22758 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 22759 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 22760 EXTRALINK="" 22761 ;; 22762esac 22763 22764 22765 22766if test x_$enable_lock_checks = x_yes; then 22767 UBSYMS="-export-symbols clubsyms.def" 22768 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 22769 echo lock_protect >> clubsyms.def 22770 echo lock_unprotect >> clubsyms.def 22771 echo lock_get_mem >> clubsyms.def 22772 echo checklock_start >> clubsyms.def 22773 echo checklock_stop >> clubsyms.def 22774 echo checklock_lock >> clubsyms.def 22775 echo checklock_unlock >> clubsyms.def 22776 echo checklock_init >> clubsyms.def 22777 echo checklock_thrcreate >> clubsyms.def 22778 echo checklock_thrjoin >> clubsyms.def 22779fi 22780 22781# check for dnstap if requested 22782 22783 # Check whether --enable-dnstap was given. 22784if test ${enable_dnstap+y} 22785then : 22786 enableval=$enable_dnstap; opt_dnstap=$enableval 22787else $as_nop 22788 opt_dnstap=no 22789fi 22790 22791 22792 22793# Check whether --with-dnstap-socket-path was given. 22794if test ${with_dnstap_socket_path+y} 22795then : 22796 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 22797else $as_nop 22798 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 22799fi 22800 22801 22802 if test "x$opt_dnstap" != "xno"; then 22803 # Extract the first word of "protoc-c", so it can be a program name with args. 22804set dummy protoc-c; ac_word=$2 22805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22806printf %s "checking for $ac_word... " >&6; } 22807if test ${ac_cv_path_PROTOC_C+y} 22808then : 22809 printf %s "(cached) " >&6 22810else $as_nop 22811 case $PROTOC_C in 22812 [\\/]* | ?:[\\/]*) 22813 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 22814 ;; 22815 *) 22816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22817for as_dir in $PATH 22818do 22819 IFS=$as_save_IFS 22820 case $as_dir in #((( 22821 '') as_dir=./ ;; 22822 */) ;; 22823 *) as_dir=$as_dir/ ;; 22824 esac 22825 for ac_exec_ext in '' $ac_executable_extensions; do 22826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22827 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 22828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22829 break 2 22830 fi 22831done 22832 done 22833IFS=$as_save_IFS 22834 22835 ;; 22836esac 22837fi 22838PROTOC_C=$ac_cv_path_PROTOC_C 22839if test -n "$PROTOC_C"; then 22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 22841printf "%s\n" "$PROTOC_C" >&6; } 22842else 22843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22844printf "%s\n" "no" >&6; } 22845fi 22846 22847 22848 if test -z "$PROTOC_C"; then 22849 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 22850 fi 22851 22852# Check whether --with-protobuf-c was given. 22853if test ${with_protobuf_c+y} 22854then : 22855 withval=$with_protobuf_c; 22856 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 22857 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 22858 CFLAGS="$CFLAGS -I$withval/include/google" 22859 else 22860 CFLAGS="$CFLAGS -I$withval/include" 22861 fi 22862 LDFLAGS="$LDFLAGS -L$withval/lib" 22863 22864else $as_nop 22865 22866 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 22867 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 22868 CFLAGS="$CFLAGS -I/usr/include/google" 22869 else 22870 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 22871 CFLAGS="$CFLAGS -I/usr/local/include/google" 22872 LDFLAGS="$LDFLAGS -L/usr/local/lib" 22873 fi 22874 fi 22875 22876fi 22877 22878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 22879printf %s "checking for library containing protobuf_c_message_pack... " >&6; } 22880if test ${ac_cv_search_protobuf_c_message_pack+y} 22881then : 22882 printf %s "(cached) " >&6 22883else $as_nop 22884 ac_func_search_save_LIBS=$LIBS 22885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22886/* end confdefs.h. */ 22887 22888/* Override any GCC internal prototype to avoid an error. 22889 Use char because int might match the return type of a GCC 22890 builtin and then its argument prototype would still apply. */ 22891char protobuf_c_message_pack (); 22892int 22893main (void) 22894{ 22895return protobuf_c_message_pack (); 22896 ; 22897 return 0; 22898} 22899_ACEOF 22900for ac_lib in '' protobuf-c 22901do 22902 if test -z "$ac_lib"; then 22903 ac_res="none required" 22904 else 22905 ac_res=-l$ac_lib 22906 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22907 fi 22908 if ac_fn_c_try_link "$LINENO" 22909then : 22910 ac_cv_search_protobuf_c_message_pack=$ac_res 22911fi 22912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22913 conftest$ac_exeext 22914 if test ${ac_cv_search_protobuf_c_message_pack+y} 22915then : 22916 break 22917fi 22918done 22919if test ${ac_cv_search_protobuf_c_message_pack+y} 22920then : 22921 22922else $as_nop 22923 ac_cv_search_protobuf_c_message_pack=no 22924fi 22925rm conftest.$ac_ext 22926LIBS=$ac_func_search_save_LIBS 22927fi 22928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 22929printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; } 22930ac_res=$ac_cv_search_protobuf_c_message_pack 22931if test "$ac_res" != no 22932then : 22933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22934 22935else $as_nop 22936 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 22937fi 22938 22939 22940 22941printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h 22942 22943 ENABLE_DNSTAP=1 22944 22945 22946 22947 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 22948 22949 22950printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h 22951 22952 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 22953 22954 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)' 22955 22956 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 22957 22958 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 22959 22960 22961 else 22962 22963 ENABLE_DNSTAP=0 22964 22965 22966 22967 fi 22968 22969 22970# check for dnscrypt if requested 22971 22972 # Check whether --enable-dnscrypt was given. 22973if test ${enable_dnscrypt+y} 22974then : 22975 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 22976else $as_nop 22977 opt_dnscrypt=no 22978fi 22979 22980 22981 if test "x$opt_dnscrypt" != "xno"; then 22982 22983# Check whether --with-libsodium was given. 22984if test ${with_libsodium+y} 22985then : 22986 withval=$with_libsodium; 22987 CFLAGS="$CFLAGS -I$withval/include" 22988 LDFLAGS="$LDFLAGS -L$withval/lib" 22989 22990fi 22991 22992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 22993printf %s "checking for library containing sodium_init... " >&6; } 22994if test ${ac_cv_search_sodium_init+y} 22995then : 22996 printf %s "(cached) " >&6 22997else $as_nop 22998 ac_func_search_save_LIBS=$LIBS 22999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23000/* end confdefs.h. */ 23001 23002/* Override any GCC internal prototype to avoid an error. 23003 Use char because int might match the return type of a GCC 23004 builtin and then its argument prototype would still apply. */ 23005char sodium_init (); 23006int 23007main (void) 23008{ 23009return sodium_init (); 23010 ; 23011 return 0; 23012} 23013_ACEOF 23014for ac_lib in '' sodium 23015do 23016 if test -z "$ac_lib"; then 23017 ac_res="none required" 23018 else 23019 ac_res=-l$ac_lib 23020 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23021 fi 23022 if ac_fn_c_try_link "$LINENO" 23023then : 23024 ac_cv_search_sodium_init=$ac_res 23025fi 23026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23027 conftest$ac_exeext 23028 if test ${ac_cv_search_sodium_init+y} 23029then : 23030 break 23031fi 23032done 23033if test ${ac_cv_search_sodium_init+y} 23034then : 23035 23036else $as_nop 23037 ac_cv_search_sodium_init=no 23038fi 23039rm conftest.$ac_ext 23040LIBS=$ac_func_search_save_LIBS 23041fi 23042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 23043printf "%s\n" "$ac_cv_search_sodium_init" >&6; } 23044ac_res=$ac_cv_search_sodium_init 23045if test "$ac_res" != no 23046then : 23047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23048 23049else $as_nop 23050 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 23051fi 23052 23053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 23054printf %s "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 23055if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 23056then : 23057 printf %s "(cached) " >&6 23058else $as_nop 23059 ac_func_search_save_LIBS=$LIBS 23060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23061/* end confdefs.h. */ 23062 23063/* Override any GCC internal prototype to avoid an error. 23064 Use char because int might match the return type of a GCC 23065 builtin and then its argument prototype would still apply. */ 23066char crypto_box_curve25519xchacha20poly1305_beforenm (); 23067int 23068main (void) 23069{ 23070return crypto_box_curve25519xchacha20poly1305_beforenm (); 23071 ; 23072 return 0; 23073} 23074_ACEOF 23075for ac_lib in '' sodium 23076do 23077 if test -z "$ac_lib"; then 23078 ac_res="none required" 23079 else 23080 ac_res=-l$ac_lib 23081 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23082 fi 23083 if ac_fn_c_try_link "$LINENO" 23084then : 23085 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 23086fi 23087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23088 conftest$ac_exeext 23089 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 23090then : 23091 break 23092fi 23093done 23094if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 23095then : 23096 23097else $as_nop 23098 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 23099fi 23100rm conftest.$ac_ext 23101LIBS=$ac_func_search_save_LIBS 23102fi 23103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 23104printf "%s\n" "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 23105ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 23106if test "$ac_res" != no 23107then : 23108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23109 23110 ENABLE_DNSCRYPT_XCHACHA20=1 23111 23112 23113printf "%s\n" "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 23114 23115 23116else $as_nop 23117 23118 ENABLE_DNSCRYPT_XCHACHA20=0 23119 23120 23121fi 23122 23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 23124printf %s "checking for library containing sodium_set_misuse_handler... " >&6; } 23125if test ${ac_cv_search_sodium_set_misuse_handler+y} 23126then : 23127 printf %s "(cached) " >&6 23128else $as_nop 23129 ac_func_search_save_LIBS=$LIBS 23130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23131/* end confdefs.h. */ 23132 23133/* Override any GCC internal prototype to avoid an error. 23134 Use char because int might match the return type of a GCC 23135 builtin and then its argument prototype would still apply. */ 23136char sodium_set_misuse_handler (); 23137int 23138main (void) 23139{ 23140return sodium_set_misuse_handler (); 23141 ; 23142 return 0; 23143} 23144_ACEOF 23145for ac_lib in '' sodium 23146do 23147 if test -z "$ac_lib"; then 23148 ac_res="none required" 23149 else 23150 ac_res=-l$ac_lib 23151 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23152 fi 23153 if ac_fn_c_try_link "$LINENO" 23154then : 23155 ac_cv_search_sodium_set_misuse_handler=$ac_res 23156fi 23157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23158 conftest$ac_exeext 23159 if test ${ac_cv_search_sodium_set_misuse_handler+y} 23160then : 23161 break 23162fi 23163done 23164if test ${ac_cv_search_sodium_set_misuse_handler+y} 23165then : 23166 23167else $as_nop 23168 ac_cv_search_sodium_set_misuse_handler=no 23169fi 23170rm conftest.$ac_ext 23171LIBS=$ac_func_search_save_LIBS 23172fi 23173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 23174printf "%s\n" "$ac_cv_search_sodium_set_misuse_handler" >&6; } 23175ac_res=$ac_cv_search_sodium_set_misuse_handler 23176if test "$ac_res" != no 23177then : 23178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23179 23180 23181printf "%s\n" "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 23182 23183 23184fi 23185 23186 23187 23188printf "%s\n" "#define USE_DNSCRYPT 1" >>confdefs.h 23189 23190 ENABLE_DNSCRYPT=1 23191 23192 23193 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 23194 23195 DNSCRYPT_OBJ="dnscrypt.lo" 23196 23197 23198 else 23199 ENABLE_DNSCRYPT_XCHACHA20=0 23200 23201 23202 ENABLE_DNSCRYPT=0 23203 23204 23205 23206 fi 23207 23208 23209# check for cachedb if requested 23210# Check whether --enable-cachedb was given. 23211if test ${enable_cachedb+y} 23212then : 23213 enableval=$enable_cachedb; 23214fi 23215 23216# turn on cachedb when hiredis support is enabled. 23217if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 23218case "$enable_cachedb" in 23219 yes) 23220 23221printf "%s\n" "#define USE_CACHEDB 1" >>confdefs.h 23222 23223 ;; 23224 no|*) 23225 # nothing 23226 ;; 23227esac 23228 23229# check for ipsecmod if requested 23230# Check whether --enable-ipsecmod was given. 23231if test ${enable_ipsecmod+y} 23232then : 23233 enableval=$enable_ipsecmod; 23234fi 23235 23236case "$enable_ipsecmod" in 23237 yes) 23238 23239printf "%s\n" "#define USE_IPSECMOD 1" >>confdefs.h 23240 23241 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 23242 23243 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 23244 23245 ;; 23246 no|*) 23247 # nothing 23248 ;; 23249esac 23250 23251# check for ipset if requested 23252# Check whether --enable-ipset was given. 23253if test ${enable_ipset+y} 23254then : 23255 enableval=$enable_ipset; 23256fi 23257 23258case "$enable_ipset" in 23259 yes) 23260 23261printf "%s\n" "#define USE_IPSET 1" >>confdefs.h 23262 23263 IPSET_SRC="ipset/ipset.c" 23264 23265 IPSET_OBJ="ipset.lo" 23266 23267 23268 # mnl 23269 23270# Check whether --with-libmnl was given. 23271if test ${with_libmnl+y} 23272then : 23273 withval=$with_libmnl; 23274else $as_nop 23275 withval="yes" 23276fi 23277 23278 found_libmnl="no" 23279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 23280printf %s "checking for libmnl... " >&6; } 23281 if test x_$withval = x_ -o x_$withval = x_yes; then 23282 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 23283 fi 23284 for dir in $withval ; do 23285 if test -f "$dir/include/libmnl/libmnl.h"; then 23286 found_libmnl="yes" 23287 if test "$dir" != "/usr"; then 23288 CPPFLAGS="$CPPFLAGS -I$dir/include" 23289 LDFLAGS="$LDFLAGS -L$dir/lib" 23290 fi 23291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 23292printf "%s\n" "found in $dir" >&6; } 23293 LIBS="$LIBS -lmnl" 23294 break; 23295 fi 23296 done 23297 if test x_$found_libmnl != x_yes; then 23298 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 23299 fi 23300 ;; 23301 no|*) 23302 # nothing 23303 ;; 23304esac 23305# Check whether --enable-explicit-port-randomisation was given. 23306if test ${enable_explicit_port_randomisation+y} 23307then : 23308 enableval=$enable_explicit_port_randomisation; 23309fi 23310 23311case "$enable_explicit_port_randomisation" in 23312 no) 23313 23314printf "%s\n" "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 23315 23316 ;; 23317 yes|*) 23318 ;; 23319esac 23320 23321 23322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 23323printf %s "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 23324# on openBSD, the implicit rule make $< work. 23325# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 23326# gmake works. 23327cat >conftest.make <<EOF 23328all: conftest.lo 23329 23330conftest.lo foo.lo bla.lo: 23331 if test -f "\$<"; then touch \$@; fi 23332 23333.SUFFIXES: .lo 23334.c.lo: 23335 if test -f "\$<"; then touch \$@; fi 23336 23337conftest.lo: conftest.dir/conftest.c 23338EOF 23339mkdir conftest.dir 23340touch conftest.dir/conftest.c 23341rm -f conftest.lo conftest.c 23342${MAKE:-make} -f conftest.make >/dev/null 23343rm -f conftest.make conftest.c conftest.dir/conftest.c 23344rm -rf conftest.dir 23345if test ! -f conftest.lo; then 23346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23347printf "%s\n" "no" >&6; } 23348 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 23349 SOURCEFILE='`cat .source`' 23350else 23351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23352printf "%s\n" "yes" >&6; } 23353 SOURCEDETERMINE=':' 23354 SOURCEFILE='$<' 23355fi 23356rm -f conftest.lo 23357 23358 23359 23360# see if we want to build the library or everything 23361ALLTARGET="alltargets" 23362INSTALLTARGET="install-all" 23363 23364# Check whether --with-libunbound-only was given. 23365if test ${with_libunbound_only+y} 23366then : 23367 withval=$with_libunbound_only; 23368 if test "$withval" = "yes"; then 23369 ALLTARGET="lib" 23370 INSTALLTARGET="install-lib" 23371 fi 23372 23373fi 23374 23375if test $ALLTARGET = "alltargets"; then 23376 if test $USE_NSS = "yes"; then 23377 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 23378 fi 23379 if test $USE_NETTLE = "yes"; then 23380 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 23381 fi 23382fi 23383 23384 23385 23386 23387 23388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 23389printf "%s\n" "$as_me: Stripping extension flags..." >&6;} 23390 23391 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 23392 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 23393 23394printf "%s\n" "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 23395 23396 fi 23397 23398 23399 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 23400 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 23401 23402printf "%s\n" "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 23403 23404 fi 23405 23406 23407 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 23408 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 23409 23410printf "%s\n" "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 23411 23412 fi 23413 23414 23415 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 23416 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 23417 23418printf "%s\n" "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 23419 23420 fi 23421 23422 23423 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 23424 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 23425 23426printf "%s\n" "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 23427 23428 fi 23429 23430 23431 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 23432 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 23433 23434printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 23435 23436 fi 23437 23438 23439 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 23440 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 23441 23442printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 23443 23444 fi 23445 23446 23447 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 23448 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 23449 23450printf "%s\n" "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 23451 23452 fi 23453 23454 23455 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 23456 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 23457 23458printf "%s\n" "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 23459 23460 fi 23461 23462 23463if test -n "$LATE_LDFLAGS"; then 23464 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 23465fi 23466# remove start spaces 23467LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 23468LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 23469 23470 23471printf "%s\n" "#define MAXSYSLOGMSGLEN 10240" >>confdefs.h 23472 23473 23474 23475 23476version=1.13.1 23477 23478date=`date +'%b %e, %Y'` 23479 23480 23481ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h" 23482 23483ac_config_headers="$ac_config_headers config.h" 23484 23485cat >confcache <<\_ACEOF 23486# This file is a shell script that caches the results of configure 23487# tests run on this system so they can be shared between configure 23488# scripts and configure runs, see configure's option --config-cache. 23489# It is not useful on other systems. If it contains results you don't 23490# want to keep, you may remove or edit it. 23491# 23492# config.status only pays attention to the cache file if you give it 23493# the --recheck option to rerun configure. 23494# 23495# `ac_cv_env_foo' variables (set or unset) will be overridden when 23496# loading this file, other *unset* `ac_cv_foo' will be assigned the 23497# following values. 23498 23499_ACEOF 23500 23501# The following way of writing the cache mishandles newlines in values, 23502# but we know of no workaround that is simple, portable, and efficient. 23503# So, we kill variables containing newlines. 23504# Ultrix sh set writes to stderr and can't be redirected directly, 23505# and sets the high bit in the cache file unless we assign to the vars. 23506( 23507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23508 eval ac_val=\$$ac_var 23509 case $ac_val in #( 23510 *${as_nl}*) 23511 case $ac_var in #( 23512 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23513printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23514 esac 23515 case $ac_var in #( 23516 _ | IFS | as_nl) ;; #( 23517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23518 *) { eval $ac_var=; unset $ac_var;} ;; 23519 esac ;; 23520 esac 23521 done 23522 23523 (set) 2>&1 | 23524 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23525 *${as_nl}ac_space=\ *) 23526 # `set' does not quote correctly, so add quotes: double-quote 23527 # substitution turns \\\\ into \\, and sed turns \\ into \. 23528 sed -n \ 23529 "s/'/'\\\\''/g; 23530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23531 ;; #( 23532 *) 23533 # `set' quotes correctly as required by POSIX, so do not add quotes. 23534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23535 ;; 23536 esac | 23537 sort 23538) | 23539 sed ' 23540 /^ac_cv_env_/b end 23541 t clear 23542 :clear 23543 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 23544 t end 23545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23546 :end' >>confcache 23547if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23548 if test -w "$cache_file"; then 23549 if test "x$cache_file" != "x/dev/null"; then 23550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23551printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 23552 if test ! -f "$cache_file" || test -h "$cache_file"; then 23553 cat confcache >"$cache_file" 23554 else 23555 case $cache_file in #( 23556 */* | ?:*) 23557 mv -f confcache "$cache_file"$$ && 23558 mv -f "$cache_file"$$ "$cache_file" ;; #( 23559 *) 23560 mv -f confcache "$cache_file" ;; 23561 esac 23562 fi 23563 fi 23564 else 23565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23566printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 23567 fi 23568fi 23569rm -f confcache 23570 23571test "x$prefix" = xNONE && prefix=$ac_default_prefix 23572# Let make expand exec_prefix. 23573test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23574 23575DEFS=-DHAVE_CONFIG_H 23576 23577ac_libobjs= 23578ac_ltlibobjs= 23579U= 23580for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23581 # 1. Remove the extension, and $U if already installed. 23582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23583 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 23584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23585 # will be set to the directory where LIBOBJS objects are built. 23586 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23587 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23588done 23589LIBOBJS=$ac_libobjs 23590 23591LTLIBOBJS=$ac_ltlibobjs 23592 23593 23594if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 23595 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 23596Usually this means the macro was only invoked conditionally." "$LINENO" 5 23597fi 23598 23599: "${CONFIG_STATUS=./config.status}" 23600ac_write_fail=0 23601ac_clean_files_save=$ac_clean_files 23602ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23604printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 23605as_write_fail=0 23606cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23607#! $SHELL 23608# Generated by $as_me. 23609# Run this file to recreate the current configuration. 23610# Compiler output produced by configure, useful for debugging 23611# configure, is in config.log if it exists. 23612 23613debug=false 23614ac_cs_recheck=false 23615ac_cs_silent=false 23616 23617SHELL=\${CONFIG_SHELL-$SHELL} 23618export SHELL 23619_ASEOF 23620cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23621## -------------------- ## 23622## M4sh Initialization. ## 23623## -------------------- ## 23624 23625# Be more Bourne compatible 23626DUALCASE=1; export DUALCASE # for MKS sh 23627as_nop=: 23628if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23629then : 23630 emulate sh 23631 NULLCMD=: 23632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23633 # is contrary to our usage. Disable this feature. 23634 alias -g '${1+"$@"}'='"$@"' 23635 setopt NO_GLOB_SUBST 23636else $as_nop 23637 case `(set -o) 2>/dev/null` in #( 23638 *posix*) : 23639 set -o posix ;; #( 23640 *) : 23641 ;; 23642esac 23643fi 23644 23645 23646 23647# Reset variables that may have inherited troublesome values from 23648# the environment. 23649 23650# IFS needs to be set, to space, tab, and newline, in precisely that order. 23651# (If _AS_PATH_WALK were called with IFS unset, it would have the 23652# side effect of setting IFS to empty, thus disabling word splitting.) 23653# Quoting is to prevent editors from complaining about space-tab. 23654as_nl=' 23655' 23656export as_nl 23657IFS=" "" $as_nl" 23658 23659PS1='$ ' 23660PS2='> ' 23661PS4='+ ' 23662 23663# Ensure predictable behavior from utilities with locale-dependent output. 23664LC_ALL=C 23665export LC_ALL 23666LANGUAGE=C 23667export LANGUAGE 23668 23669# We cannot yet rely on "unset" to work, but we need these variables 23670# to be unset--not just set to an empty or harmless value--now, to 23671# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 23672# also avoids known problems related to "unset" and subshell syntax 23673# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 23674for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 23675do eval test \${$as_var+y} \ 23676 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23677done 23678 23679# Ensure that fds 0, 1, and 2 are open. 23680if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 23681if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 23682if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 23683 23684# The user is always right. 23685if ${PATH_SEPARATOR+false} :; then 23686 PATH_SEPARATOR=: 23687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23689 PATH_SEPARATOR=';' 23690 } 23691fi 23692 23693 23694# Find who we are. Look in the path if we contain no directory separator. 23695as_myself= 23696case $0 in #(( 23697 *[\\/]* ) as_myself=$0 ;; 23698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23699for as_dir in $PATH 23700do 23701 IFS=$as_save_IFS 23702 case $as_dir in #((( 23703 '') as_dir=./ ;; 23704 */) ;; 23705 *) as_dir=$as_dir/ ;; 23706 esac 23707 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 23708 done 23709IFS=$as_save_IFS 23710 23711 ;; 23712esac 23713# We did not find ourselves, most probably we were run as `sh COMMAND' 23714# in which case we are not to be found in the path. 23715if test "x$as_myself" = x; then 23716 as_myself=$0 23717fi 23718if test ! -f "$as_myself"; then 23719 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23720 exit 1 23721fi 23722 23723 23724 23725# as_fn_error STATUS ERROR [LINENO LOG_FD] 23726# ---------------------------------------- 23727# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23728# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23729# script with STATUS, using 1 if that was 0. 23730as_fn_error () 23731{ 23732 as_status=$1; test $as_status -eq 0 && as_status=1 23733 if test "$4"; then 23734 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23736 fi 23737 printf "%s\n" "$as_me: error: $2" >&2 23738 as_fn_exit $as_status 23739} # as_fn_error 23740 23741 23742 23743# as_fn_set_status STATUS 23744# ----------------------- 23745# Set $? to STATUS, without forking. 23746as_fn_set_status () 23747{ 23748 return $1 23749} # as_fn_set_status 23750 23751# as_fn_exit STATUS 23752# ----------------- 23753# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23754as_fn_exit () 23755{ 23756 set +e 23757 as_fn_set_status $1 23758 exit $1 23759} # as_fn_exit 23760 23761# as_fn_unset VAR 23762# --------------- 23763# Portably unset VAR. 23764as_fn_unset () 23765{ 23766 { eval $1=; unset $1;} 23767} 23768as_unset=as_fn_unset 23769 23770# as_fn_append VAR VALUE 23771# ---------------------- 23772# Append the text in VALUE to the end of the definition contained in VAR. Take 23773# advantage of any shell optimizations that allow amortized linear growth over 23774# repeated appends, instead of the typical quadratic growth present in naive 23775# implementations. 23776if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 23777then : 23778 eval 'as_fn_append () 23779 { 23780 eval $1+=\$2 23781 }' 23782else $as_nop 23783 as_fn_append () 23784 { 23785 eval $1=\$$1\$2 23786 } 23787fi # as_fn_append 23788 23789# as_fn_arith ARG... 23790# ------------------ 23791# Perform arithmetic evaluation on the ARGs, and store the result in the 23792# global $as_val. Take advantage of shells that can avoid forks. The arguments 23793# must be portable across $(()) and expr. 23794if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 23795then : 23796 eval 'as_fn_arith () 23797 { 23798 as_val=$(( $* )) 23799 }' 23800else $as_nop 23801 as_fn_arith () 23802 { 23803 as_val=`expr "$@" || test $? -eq 1` 23804 } 23805fi # as_fn_arith 23806 23807 23808if expr a : '\(a\)' >/dev/null 2>&1 && 23809 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23810 as_expr=expr 23811else 23812 as_expr=false 23813fi 23814 23815if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23816 as_basename=basename 23817else 23818 as_basename=false 23819fi 23820 23821if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23822 as_dirname=dirname 23823else 23824 as_dirname=false 23825fi 23826 23827as_me=`$as_basename -- "$0" || 23828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23829 X"$0" : 'X\(//\)$' \| \ 23830 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23831printf "%s\n" X/"$0" | 23832 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23833 s//\1/ 23834 q 23835 } 23836 /^X\/\(\/\/\)$/{ 23837 s//\1/ 23838 q 23839 } 23840 /^X\/\(\/\).*/{ 23841 s//\1/ 23842 q 23843 } 23844 s/.*/./; q'` 23845 23846# Avoid depending upon Character Ranges. 23847as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23848as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23849as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23850as_cr_digits='0123456789' 23851as_cr_alnum=$as_cr_Letters$as_cr_digits 23852 23853 23854# Determine whether it's possible to make 'echo' print without a newline. 23855# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 23856# for compatibility with existing Makefiles. 23857ECHO_C= ECHO_N= ECHO_T= 23858case `echo -n x` in #((((( 23859-n*) 23860 case `echo 'xy\c'` in 23861 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23862 xy) ECHO_C='\c';; 23863 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23864 ECHO_T=' ';; 23865 esac;; 23866*) 23867 ECHO_N='-n';; 23868esac 23869 23870# For backward compatibility with old third-party macros, we provide 23871# the shell variables $as_echo and $as_echo_n. New code should use 23872# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 23873as_echo='printf %s\n' 23874as_echo_n='printf %s' 23875 23876rm -f conf$$ conf$$.exe conf$$.file 23877if test -d conf$$.dir; then 23878 rm -f conf$$.dir/conf$$.file 23879else 23880 rm -f conf$$.dir 23881 mkdir conf$$.dir 2>/dev/null 23882fi 23883if (echo >conf$$.file) 2>/dev/null; then 23884 if ln -s conf$$.file conf$$ 2>/dev/null; then 23885 as_ln_s='ln -s' 23886 # ... but there are two gotchas: 23887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23889 # In both cases, we have to default to `cp -pR'. 23890 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23891 as_ln_s='cp -pR' 23892 elif ln conf$$.file conf$$ 2>/dev/null; then 23893 as_ln_s=ln 23894 else 23895 as_ln_s='cp -pR' 23896 fi 23897else 23898 as_ln_s='cp -pR' 23899fi 23900rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23901rmdir conf$$.dir 2>/dev/null 23902 23903 23904# as_fn_mkdir_p 23905# ------------- 23906# Create "$as_dir" as a directory, including parents if necessary. 23907as_fn_mkdir_p () 23908{ 23909 23910 case $as_dir in #( 23911 -*) as_dir=./$as_dir;; 23912 esac 23913 test -d "$as_dir" || eval $as_mkdir_p || { 23914 as_dirs= 23915 while :; do 23916 case $as_dir in #( 23917 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23918 *) as_qdir=$as_dir;; 23919 esac 23920 as_dirs="'$as_qdir' $as_dirs" 23921 as_dir=`$as_dirname -- "$as_dir" || 23922$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23923 X"$as_dir" : 'X\(//\)[^/]' \| \ 23924 X"$as_dir" : 'X\(//\)$' \| \ 23925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23926printf "%s\n" X"$as_dir" | 23927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23928 s//\1/ 23929 q 23930 } 23931 /^X\(\/\/\)[^/].*/{ 23932 s//\1/ 23933 q 23934 } 23935 /^X\(\/\/\)$/{ 23936 s//\1/ 23937 q 23938 } 23939 /^X\(\/\).*/{ 23940 s//\1/ 23941 q 23942 } 23943 s/.*/./; q'` 23944 test -d "$as_dir" && break 23945 done 23946 test -z "$as_dirs" || eval "mkdir $as_dirs" 23947 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23948 23949 23950} # as_fn_mkdir_p 23951if mkdir -p . 2>/dev/null; then 23952 as_mkdir_p='mkdir -p "$as_dir"' 23953else 23954 test -d ./-p && rmdir ./-p 23955 as_mkdir_p=false 23956fi 23957 23958 23959# as_fn_executable_p FILE 23960# ----------------------- 23961# Test if FILE is an executable regular file. 23962as_fn_executable_p () 23963{ 23964 test -f "$1" && test -x "$1" 23965} # as_fn_executable_p 23966as_test_x='test -x' 23967as_executable_p=as_fn_executable_p 23968 23969# Sed expression to map a string onto a valid CPP name. 23970as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23971 23972# Sed expression to map a string onto a valid variable name. 23973as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23974 23975 23976exec 6>&1 23977## ----------------------------------- ## 23978## Main body of $CONFIG_STATUS script. ## 23979## ----------------------------------- ## 23980_ASEOF 23981test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23982 23983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23984# Save the log message, to keep $0 and so on meaningful, and to 23985# report actual input values of CONFIG_FILES etc. instead of their 23986# values after options handling. 23987ac_log=" 23988This file was extended by unbound $as_me 1.13.1, which was 23989generated by GNU Autoconf 2.71. Invocation command line was 23990 23991 CONFIG_FILES = $CONFIG_FILES 23992 CONFIG_HEADERS = $CONFIG_HEADERS 23993 CONFIG_LINKS = $CONFIG_LINKS 23994 CONFIG_COMMANDS = $CONFIG_COMMANDS 23995 $ $0 $@ 23996 23997on `(hostname || uname -n) 2>/dev/null | sed 1q` 23998" 23999 24000_ACEOF 24001 24002case $ac_config_files in *" 24003"*) set x $ac_config_files; shift; ac_config_files=$*;; 24004esac 24005 24006case $ac_config_headers in *" 24007"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24008esac 24009 24010 24011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24012# Files that config.status was made for. 24013config_files="$ac_config_files" 24014config_headers="$ac_config_headers" 24015config_commands="$ac_config_commands" 24016 24017_ACEOF 24018 24019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24020ac_cs_usage="\ 24021\`$as_me' instantiates files and other configuration actions 24022from templates according to the current configuration. Unless the files 24023and actions are specified as TAGs, all are instantiated by default. 24024 24025Usage: $0 [OPTION]... [TAG]... 24026 24027 -h, --help print this help, then exit 24028 -V, --version print version number and configuration settings, then exit 24029 --config print configuration, then exit 24030 -q, --quiet, --silent 24031 do not print progress messages 24032 -d, --debug don't remove temporary files 24033 --recheck update $as_me by reconfiguring in the same conditions 24034 --file=FILE[:TEMPLATE] 24035 instantiate the configuration file FILE 24036 --header=FILE[:TEMPLATE] 24037 instantiate the configuration header FILE 24038 24039Configuration files: 24040$config_files 24041 24042Configuration headers: 24043$config_headers 24044 24045Configuration commands: 24046$config_commands 24047 24048Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 24049 24050_ACEOF 24051ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 24052ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 24053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24054ac_cs_config='$ac_cs_config_escaped' 24055ac_cs_version="\\ 24056unbound config.status 1.13.1 24057configured by $0, generated by GNU Autoconf 2.71, 24058 with options \\"\$ac_cs_config\\" 24059 24060Copyright (C) 2021 Free Software Foundation, Inc. 24061This config.status script is free software; the Free Software Foundation 24062gives unlimited permission to copy, distribute and modify it." 24063 24064ac_pwd='$ac_pwd' 24065srcdir='$srcdir' 24066AWK='$AWK' 24067test -n "\$AWK" || AWK=awk 24068_ACEOF 24069 24070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24071# The default lists apply if the user does not specify any file. 24072ac_need_defaults=: 24073while test $# != 0 24074do 24075 case $1 in 24076 --*=?*) 24077 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24079 ac_shift=: 24080 ;; 24081 --*=) 24082 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24083 ac_optarg= 24084 ac_shift=: 24085 ;; 24086 *) 24087 ac_option=$1 24088 ac_optarg=$2 24089 ac_shift=shift 24090 ;; 24091 esac 24092 24093 case $ac_option in 24094 # Handling of the options. 24095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24096 ac_cs_recheck=: ;; 24097 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24098 printf "%s\n" "$ac_cs_version"; exit ;; 24099 --config | --confi | --conf | --con | --co | --c ) 24100 printf "%s\n" "$ac_cs_config"; exit ;; 24101 --debug | --debu | --deb | --de | --d | -d ) 24102 debug=: ;; 24103 --file | --fil | --fi | --f ) 24104 $ac_shift 24105 case $ac_optarg in 24106 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24107 '') as_fn_error $? "missing file argument" ;; 24108 esac 24109 as_fn_append CONFIG_FILES " '$ac_optarg'" 24110 ac_need_defaults=false;; 24111 --header | --heade | --head | --hea ) 24112 $ac_shift 24113 case $ac_optarg in 24114 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24115 esac 24116 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24117 ac_need_defaults=false;; 24118 --he | --h) 24119 # Conflict between --help and --header 24120 as_fn_error $? "ambiguous option: \`$1' 24121Try \`$0 --help' for more information.";; 24122 --help | --hel | -h ) 24123 printf "%s\n" "$ac_cs_usage"; exit ;; 24124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24125 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24126 ac_cs_silent=: ;; 24127 24128 # This is an error. 24129 -*) as_fn_error $? "unrecognized option: \`$1' 24130Try \`$0 --help' for more information." ;; 24131 24132 *) as_fn_append ac_config_targets " $1" 24133 ac_need_defaults=false ;; 24134 24135 esac 24136 shift 24137done 24138 24139ac_configure_extra_args= 24140 24141if $ac_cs_silent; then 24142 exec 6>/dev/null 24143 ac_configure_extra_args="$ac_configure_extra_args --silent" 24144fi 24145 24146_ACEOF 24147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24148if \$ac_cs_recheck; then 24149 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24150 shift 24151 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 24152 CONFIG_SHELL='$SHELL' 24153 export CONFIG_SHELL 24154 exec "\$@" 24155fi 24156 24157_ACEOF 24158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24159exec 5>>config.log 24160{ 24161 echo 24162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24163## Running $as_me. ## 24164_ASBOX 24165 printf "%s\n" "$ac_log" 24166} >&5 24167 24168_ACEOF 24169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24170# 24171# INIT-COMMANDS 24172# 24173 24174 24175# The HP-UX ksh and POSIX shell print the target directory to stdout 24176# if CDPATH is set. 24177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24178 24179sed_quote_subst='$sed_quote_subst' 24180double_quote_subst='$double_quote_subst' 24181delay_variable_subst='$delay_variable_subst' 24182macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24183macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24184enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24185enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24186pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24187enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24188shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 24189SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24190ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24191PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24192host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24193host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24194host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24195build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24196build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24197build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24198SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24199Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24200GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24201EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24202FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24203LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24204NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24205LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24206max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24207ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24208exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24209lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24210lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24211lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24212lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24213lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24214reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24215reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24216OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24217deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24218file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24219file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24220want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24221DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24222sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24223AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24224AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24225archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24226STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24227RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24228old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24229old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24230old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24231lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24232CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24233CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24234compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24235GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24236lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24237lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24238lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 24239lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24240lt_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"`' 24241lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 24242nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24243lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24244lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 24245objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24246MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24247lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24248lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24249lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24250lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24251lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24252need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24253MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24254DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24255NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24256LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24257OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24258OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24259libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24260shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24261extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24262archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24263enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 24264export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 24265whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 24266compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 24267old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 24268old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24269archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24270archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24271module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24272module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24273with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24274allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24275no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24276hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24277hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24278hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24279hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24280hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24281hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24282hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24283inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24284link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24285always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24286export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24287exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24288include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24289prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24290postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24291file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24292variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24293need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24294need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24295version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24296runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24297shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24298shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24299libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24300library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24301soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24302install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24303postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24304postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24305finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24306finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24307hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24308sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24309configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 24310configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 24311hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24312enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24313enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24314enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24315old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24316striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24317 24318LTCC='$LTCC' 24319LTCFLAGS='$LTCFLAGS' 24320compiler='$compiler_DEFAULT' 24321 24322# A function that is used when there is no print builtin or printf. 24323func_fallback_echo () 24324{ 24325 eval 'cat <<_LTECHO_EOF 24326\$1 24327_LTECHO_EOF' 24328} 24329 24330# Quote evaled strings. 24331for var in SHELL \ 24332ECHO \ 24333PATH_SEPARATOR \ 24334SED \ 24335GREP \ 24336EGREP \ 24337FGREP \ 24338LD \ 24339NM \ 24340LN_S \ 24341lt_SP2NL \ 24342lt_NL2SP \ 24343reload_flag \ 24344OBJDUMP \ 24345deplibs_check_method \ 24346file_magic_cmd \ 24347file_magic_glob \ 24348want_nocaseglob \ 24349DLLTOOL \ 24350sharedlib_from_linklib_cmd \ 24351AR \ 24352AR_FLAGS \ 24353archiver_list_spec \ 24354STRIP \ 24355RANLIB \ 24356CC \ 24357CFLAGS \ 24358compiler \ 24359lt_cv_sys_global_symbol_pipe \ 24360lt_cv_sys_global_symbol_to_cdecl \ 24361lt_cv_sys_global_symbol_to_import \ 24362lt_cv_sys_global_symbol_to_c_name_address \ 24363lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24364lt_cv_nm_interface \ 24365nm_file_list_spec \ 24366lt_cv_truncate_bin \ 24367lt_prog_compiler_no_builtin_flag \ 24368lt_prog_compiler_pic \ 24369lt_prog_compiler_wl \ 24370lt_prog_compiler_static \ 24371lt_cv_prog_compiler_c_o \ 24372need_locks \ 24373MANIFEST_TOOL \ 24374DSYMUTIL \ 24375NMEDIT \ 24376LIPO \ 24377OTOOL \ 24378OTOOL64 \ 24379shrext_cmds \ 24380export_dynamic_flag_spec \ 24381whole_archive_flag_spec \ 24382compiler_needs_object \ 24383with_gnu_ld \ 24384allow_undefined_flag \ 24385no_undefined_flag \ 24386hardcode_libdir_flag_spec \ 24387hardcode_libdir_separator \ 24388exclude_expsyms \ 24389include_expsyms \ 24390file_list_spec \ 24391variables_saved_for_relink \ 24392libname_spec \ 24393library_names_spec \ 24394soname_spec \ 24395install_override_mode \ 24396finish_eval \ 24397old_striplib \ 24398striplib; do 24399 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24400 *[\\\\\\\`\\"\\\$]*) 24401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24402 ;; 24403 *) 24404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24405 ;; 24406 esac 24407done 24408 24409# Double-quote double-evaled strings. 24410for var in reload_cmds \ 24411old_postinstall_cmds \ 24412old_postuninstall_cmds \ 24413old_archive_cmds \ 24414extract_expsyms_cmds \ 24415old_archive_from_new_cmds \ 24416old_archive_from_expsyms_cmds \ 24417archive_cmds \ 24418archive_expsym_cmds \ 24419module_cmds \ 24420module_expsym_cmds \ 24421export_symbols_cmds \ 24422prelink_cmds \ 24423postlink_cmds \ 24424postinstall_cmds \ 24425postuninstall_cmds \ 24426finish_cmds \ 24427sys_lib_search_path_spec \ 24428configure_time_dlsearch_path \ 24429configure_time_lt_sys_library_path; do 24430 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24431 *[\\\\\\\`\\"\\\$]*) 24432 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24433 ;; 24434 *) 24435 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24436 ;; 24437 esac 24438done 24439 24440ac_aux_dir='$ac_aux_dir' 24441 24442# See if we are running on zsh, and set the options that allow our 24443# commands through without removal of \ escapes INIT. 24444if test -n "\${ZSH_VERSION+set}"; then 24445 setopt NO_GLOB_SUBST 24446fi 24447 24448 24449 PACKAGE='$PACKAGE' 24450 VERSION='$VERSION' 24451 RM='$RM' 24452 ofile='$ofile' 24453 24454 24455 24456 24457_ACEOF 24458 24459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24460 24461# Handling of arguments. 24462for ac_config_target in $ac_config_targets 24463do 24464 case $ac_config_target in 24465 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24466 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 24467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24468 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 24469 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 24470 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 24471 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 24472 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 24473 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 24474 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 24475 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 24476 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 24477 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 24478 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 24479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24480 24481 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24482 esac 24483done 24484 24485 24486# If the user did not use the arguments to specify the items to instantiate, 24487# then the envvar interface is used. Set only those that are not. 24488# We use the long form for the default assignment because of an extremely 24489# bizarre bug on SunOS 4.1.3. 24490if $ac_need_defaults; then 24491 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 24492 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 24493 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 24494fi 24495 24496# Have a temporary directory for convenience. Make it in the build tree 24497# simply because there is no reason against having it here, and in addition, 24498# creating and moving files from /tmp can sometimes cause problems. 24499# Hook for its removal unless debugging. 24500# Note that there is a small window in which the directory will not be cleaned: 24501# after its creation but before its name has been assigned to `$tmp'. 24502$debug || 24503{ 24504 tmp= ac_tmp= 24505 trap 'exit_status=$? 24506 : "${ac_tmp:=$tmp}" 24507 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24508' 0 24509 trap 'as_fn_exit 1' 1 2 13 15 24510} 24511# Create a (secure) tmp directory for tmp files. 24512 24513{ 24514 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24515 test -d "$tmp" 24516} || 24517{ 24518 tmp=./conf$$-$RANDOM 24519 (umask 077 && mkdir "$tmp") 24520} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24521ac_tmp=$tmp 24522 24523# Set up the scripts for CONFIG_FILES section. 24524# No need to generate them if there are no CONFIG_FILES. 24525# This happens for instance with `./config.status config.h'. 24526if test -n "$CONFIG_FILES"; then 24527 24528 24529ac_cr=`echo X | tr X '\015'` 24530# On cygwin, bash can eat \r inside `` if the user requested igncr. 24531# But we know of no other shell where ac_cr would be empty at this 24532# point, so we can use a bashism as a fallback. 24533if test "x$ac_cr" = x; then 24534 eval ac_cr=\$\'\\r\' 24535fi 24536ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24537if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24538 ac_cs_awk_cr='\\r' 24539else 24540 ac_cs_awk_cr=$ac_cr 24541fi 24542 24543echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24544_ACEOF 24545 24546 24547{ 24548 echo "cat >conf$$subs.awk <<_ACEOF" && 24549 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24550 echo "_ACEOF" 24551} >conf$$subs.sh || 24552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24553ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24554ac_delim='%!_!# ' 24555for ac_last_try in false false false false false :; do 24556 . ./conf$$subs.sh || 24557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24558 24559 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24560 if test $ac_delim_n = $ac_delim_num; then 24561 break 24562 elif $ac_last_try; then 24563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24564 else 24565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24566 fi 24567done 24568rm -f conf$$subs.sh 24569 24570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24571cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24572_ACEOF 24573sed -n ' 24574h 24575s/^/S["/; s/!.*/"]=/ 24576p 24577g 24578s/^[^!]*!// 24579:repl 24580t repl 24581s/'"$ac_delim"'$// 24582t delim 24583:nl 24584h 24585s/\(.\{148\}\)..*/\1/ 24586t more1 24587s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24588p 24589n 24590b repl 24591:more1 24592s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24593p 24594g 24595s/.\{148\}// 24596t nl 24597:delim 24598h 24599s/\(.\{148\}\)..*/\1/ 24600t more2 24601s/["\\]/\\&/g; s/^/"/; s/$/"/ 24602p 24603b 24604:more2 24605s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24606p 24607g 24608s/.\{148\}// 24609t delim 24610' <conf$$subs.awk | sed ' 24611/^[^""]/{ 24612 N 24613 s/\n// 24614} 24615' >>$CONFIG_STATUS || ac_write_fail=1 24616rm -f conf$$subs.awk 24617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24618_ACAWK 24619cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24620 for (key in S) S_is_set[key] = 1 24621 FS = "" 24622 24623} 24624{ 24625 line = $ 0 24626 nfields = split(line, field, "@") 24627 substed = 0 24628 len = length(field[1]) 24629 for (i = 2; i < nfields; i++) { 24630 key = field[i] 24631 keylen = length(key) 24632 if (S_is_set[key]) { 24633 value = S[key] 24634 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24635 len += length(value) + length(field[++i]) 24636 substed = 1 24637 } else 24638 len += 1 + keylen 24639 } 24640 24641 print line 24642} 24643 24644_ACAWK 24645_ACEOF 24646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24647if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24648 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24649else 24650 cat 24651fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24652 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24653_ACEOF 24654 24655# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24656# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24657# trailing colons and then remove the whole line if VPATH becomes empty 24658# (actually we leave an empty line to preserve line numbers). 24659if test "x$srcdir" = x.; then 24660 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24661h 24662s/// 24663s/^/:/ 24664s/[ ]*$/:/ 24665s/:\$(srcdir):/:/g 24666s/:\${srcdir}:/:/g 24667s/:@srcdir@:/:/g 24668s/^:*// 24669s/:*$// 24670x 24671s/\(=[ ]*\).*/\1/ 24672G 24673s/\n// 24674s/^[^=]*=[ ]*$// 24675}' 24676fi 24677 24678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24679fi # test -n "$CONFIG_FILES" 24680 24681# Set up the scripts for CONFIG_HEADERS section. 24682# No need to generate them if there are no CONFIG_HEADERS. 24683# This happens for instance with `./config.status Makefile'. 24684if test -n "$CONFIG_HEADERS"; then 24685cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24686BEGIN { 24687_ACEOF 24688 24689# Transform confdefs.h into an awk script `defines.awk', embedded as 24690# here-document in config.status, that substitutes the proper values into 24691# config.h.in to produce config.h. 24692 24693# Create a delimiter string that does not exist in confdefs.h, to ease 24694# handling of long lines. 24695ac_delim='%!_!# ' 24696for ac_last_try in false false :; do 24697 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24698 if test -z "$ac_tt"; then 24699 break 24700 elif $ac_last_try; then 24701 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24702 else 24703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24704 fi 24705done 24706 24707# For the awk script, D is an array of macro values keyed by name, 24708# likewise P contains macro parameters if any. Preserve backslash 24709# newline sequences. 24710 24711ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24712sed -n ' 24713s/.\{148\}/&'"$ac_delim"'/g 24714t rset 24715:rset 24716s/^[ ]*#[ ]*define[ ][ ]*/ / 24717t def 24718d 24719:def 24720s/\\$// 24721t bsnl 24722s/["\\]/\\&/g 24723s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24724D["\1"]=" \3"/p 24725s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24726d 24727:bsnl 24728s/["\\]/\\&/g 24729s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24730D["\1"]=" \3\\\\\\n"\\/p 24731t cont 24732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24733t cont 24734d 24735:cont 24736n 24737s/.\{148\}/&'"$ac_delim"'/g 24738t clear 24739:clear 24740s/\\$// 24741t bsnlc 24742s/["\\]/\\&/g; s/^/"/; s/$/"/p 24743d 24744:bsnlc 24745s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24746b cont 24747' <confdefs.h | sed ' 24748s/'"$ac_delim"'/"\\\ 24749"/g' >>$CONFIG_STATUS || ac_write_fail=1 24750 24751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24752 for (key in D) D_is_set[key] = 1 24753 FS = "" 24754} 24755/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24756 line = \$ 0 24757 split(line, arg, " ") 24758 if (arg[1] == "#") { 24759 defundef = arg[2] 24760 mac1 = arg[3] 24761 } else { 24762 defundef = substr(arg[1], 2) 24763 mac1 = arg[2] 24764 } 24765 split(mac1, mac2, "(") #) 24766 macro = mac2[1] 24767 prefix = substr(line, 1, index(line, defundef) - 1) 24768 if (D_is_set[macro]) { 24769 # Preserve the white space surrounding the "#". 24770 print prefix "define", macro P[macro] D[macro] 24771 next 24772 } else { 24773 # Replace #undef with comments. This is necessary, for example, 24774 # in the case of _POSIX_SOURCE, which is predefined and required 24775 # on some systems where configure will not decide to define it. 24776 if (defundef == "undef") { 24777 print "/*", prefix defundef, macro, "*/" 24778 next 24779 } 24780 } 24781} 24782{ print } 24783_ACAWK 24784_ACEOF 24785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24786 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24787fi # test -n "$CONFIG_HEADERS" 24788 24789 24790eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24791shift 24792for ac_tag 24793do 24794 case $ac_tag in 24795 :[FHLC]) ac_mode=$ac_tag; continue;; 24796 esac 24797 case $ac_mode$ac_tag in 24798 :[FHL]*:*);; 24799 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24800 :[FH]-) ac_tag=-:-;; 24801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24802 esac 24803 ac_save_IFS=$IFS 24804 IFS=: 24805 set x $ac_tag 24806 IFS=$ac_save_IFS 24807 shift 24808 ac_file=$1 24809 shift 24810 24811 case $ac_mode in 24812 :L) ac_source=$1;; 24813 :[FH]) 24814 ac_file_inputs= 24815 for ac_f 24816 do 24817 case $ac_f in 24818 -) ac_f="$ac_tmp/stdin";; 24819 *) # Look for the file first in the build tree, then in the source tree 24820 # (if the path is not absolute). The absolute path cannot be DOS-style, 24821 # because $ac_f cannot contain `:'. 24822 test -f "$ac_f" || 24823 case $ac_f in 24824 [\\/$]*) false;; 24825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24826 esac || 24827 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24828 esac 24829 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24830 as_fn_append ac_file_inputs " '$ac_f'" 24831 done 24832 24833 # Let's still pretend it is `configure' which instantiates (i.e., don't 24834 # use $as_me), people would be surprised to read: 24835 # /* config.h. Generated by config.status. */ 24836 configure_input='Generated from '` 24837 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24838 `' by configure.' 24839 if test x"$ac_file" != x-; then 24840 configure_input="$ac_file. $configure_input" 24841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24842printf "%s\n" "$as_me: creating $ac_file" >&6;} 24843 fi 24844 # Neutralize special characters interpreted by sed in replacement strings. 24845 case $configure_input in #( 24846 *\&* | *\|* | *\\* ) 24847 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 24848 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24849 *) ac_sed_conf_input=$configure_input;; 24850 esac 24851 24852 case $ac_tag in 24853 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24855 esac 24856 ;; 24857 esac 24858 24859 ac_dir=`$as_dirname -- "$ac_file" || 24860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24861 X"$ac_file" : 'X\(//\)[^/]' \| \ 24862 X"$ac_file" : 'X\(//\)$' \| \ 24863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24864printf "%s\n" X"$ac_file" | 24865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24866 s//\1/ 24867 q 24868 } 24869 /^X\(\/\/\)[^/].*/{ 24870 s//\1/ 24871 q 24872 } 24873 /^X\(\/\/\)$/{ 24874 s//\1/ 24875 q 24876 } 24877 /^X\(\/\).*/{ 24878 s//\1/ 24879 q 24880 } 24881 s/.*/./; q'` 24882 as_dir="$ac_dir"; as_fn_mkdir_p 24883 ac_builddir=. 24884 24885case "$ac_dir" in 24886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24887*) 24888 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 24889 # A ".." for each directory in $ac_dir_suffix. 24890 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24891 case $ac_top_builddir_sub in 24892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24894 esac ;; 24895esac 24896ac_abs_top_builddir=$ac_pwd 24897ac_abs_builddir=$ac_pwd$ac_dir_suffix 24898# for backward compatibility: 24899ac_top_builddir=$ac_top_build_prefix 24900 24901case $srcdir in 24902 .) # We are building in place. 24903 ac_srcdir=. 24904 ac_top_srcdir=$ac_top_builddir_sub 24905 ac_abs_top_srcdir=$ac_pwd ;; 24906 [\\/]* | ?:[\\/]* ) # Absolute name. 24907 ac_srcdir=$srcdir$ac_dir_suffix; 24908 ac_top_srcdir=$srcdir 24909 ac_abs_top_srcdir=$srcdir ;; 24910 *) # Relative name. 24911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24912 ac_top_srcdir=$ac_top_build_prefix$srcdir 24913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24914esac 24915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24916 24917 24918 case $ac_mode in 24919 :F) 24920 # 24921 # CONFIG_FILE 24922 # 24923 24924_ACEOF 24925 24926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24927# If the template does not know about datarootdir, expand it. 24928# FIXME: This hack should be removed a few years after 2.60. 24929ac_datarootdir_hack=; ac_datarootdir_seen= 24930ac_sed_dataroot=' 24931/datarootdir/ { 24932 p 24933 q 24934} 24935/@datadir@/p 24936/@docdir@/p 24937/@infodir@/p 24938/@localedir@/p 24939/@mandir@/p' 24940case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24941*datarootdir*) ac_datarootdir_seen=yes;; 24942*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24944printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24945_ACEOF 24946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24947 ac_datarootdir_hack=' 24948 s&@datadir@&$datadir&g 24949 s&@docdir@&$docdir&g 24950 s&@infodir@&$infodir&g 24951 s&@localedir@&$localedir&g 24952 s&@mandir@&$mandir&g 24953 s&\\\${datarootdir}&$datarootdir&g' ;; 24954esac 24955_ACEOF 24956 24957# Neutralize VPATH when `$srcdir' = `.'. 24958# Shell code in configure.ac might set extrasub. 24959# FIXME: do we really want to maintain this feature? 24960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24961ac_sed_extra="$ac_vpsub 24962$extrasub 24963_ACEOF 24964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24965:t 24966/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24967s|@configure_input@|$ac_sed_conf_input|;t t 24968s&@top_builddir@&$ac_top_builddir_sub&;t t 24969s&@top_build_prefix@&$ac_top_build_prefix&;t t 24970s&@srcdir@&$ac_srcdir&;t t 24971s&@abs_srcdir@&$ac_abs_srcdir&;t t 24972s&@top_srcdir@&$ac_top_srcdir&;t t 24973s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24974s&@builddir@&$ac_builddir&;t t 24975s&@abs_builddir@&$ac_abs_builddir&;t t 24976s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24977$ac_datarootdir_hack 24978" 24979eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24980 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24981 24982test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24983 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24984 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24985 "$ac_tmp/out"`; test -z "$ac_out"; } && 24986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24987which seems to be undefined. Please make sure it is defined" >&5 24988printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24989which seems to be undefined. Please make sure it is defined" >&2;} 24990 24991 rm -f "$ac_tmp/stdin" 24992 case $ac_file in 24993 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24994 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24995 esac \ 24996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24997 ;; 24998 :H) 24999 # 25000 # CONFIG_HEADER 25001 # 25002 if test x"$ac_file" != x-; then 25003 { 25004 printf "%s\n" "/* $configure_input */" >&1 \ 25005 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25006 } >"$ac_tmp/config.h" \ 25007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25008 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25010printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 25011 else 25012 rm -f "$ac_file" 25013 mv "$ac_tmp/config.h" "$ac_file" \ 25014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25015 fi 25016 else 25017 printf "%s\n" "/* $configure_input */" >&1 \ 25018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25019 || as_fn_error $? "could not create -" "$LINENO" 5 25020 fi 25021 ;; 25022 25023 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25024printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 25025 ;; 25026 esac 25027 25028 25029 case $ac_file$ac_mode in 25030 "libtool":C) 25031 25032 # See if we are running on zsh, and set the options that allow our 25033 # commands through without removal of \ escapes. 25034 if test -n "${ZSH_VERSION+set}"; then 25035 setopt NO_GLOB_SUBST 25036 fi 25037 25038 cfgfile=${ofile}T 25039 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25040 $RM "$cfgfile" 25041 25042 cat <<_LT_EOF >> "$cfgfile" 25043#! $SHELL 25044# Generated automatically by $as_me ($PACKAGE) $VERSION 25045# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25046# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25047 25048# Provide generalized library-building support services. 25049# Written by Gordon Matzigkeit, 1996 25050 25051# Copyright (C) 2014 Free Software Foundation, Inc. 25052# This is free software; see the source for copying conditions. There is NO 25053# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 25054 25055# GNU Libtool is free software; you can redistribute it and/or modify 25056# it under the terms of the GNU General Public License as published by 25057# the Free Software Foundation; either version 2 of of the License, or 25058# (at your option) any later version. 25059# 25060# As a special exception to the GNU General Public License, if you 25061# distribute this file as part of a program or library that is built 25062# using GNU Libtool, you may include this file under the same 25063# distribution terms that you use for the rest of that program. 25064# 25065# GNU Libtool is distributed in the hope that it will be useful, but 25066# WITHOUT ANY WARRANTY; without even the implied warranty of 25067# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25068# GNU General Public License for more details. 25069# 25070# You should have received a copy of the GNU General Public License 25071# along with this program. If not, see <http://www.gnu.org/licenses/>. 25072 25073 25074# The names of the tagged configurations supported by this script. 25075available_tags='' 25076 25077# Configured defaults for sys_lib_dlsearch_path munging. 25078: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 25079 25080# ### BEGIN LIBTOOL CONFIG 25081 25082# Which release of libtool.m4 was used? 25083macro_version=$macro_version 25084macro_revision=$macro_revision 25085 25086# Whether or not to build shared libraries. 25087build_libtool_libs=$enable_shared 25088 25089# Whether or not to build static libraries. 25090build_old_libs=$enable_static 25091 25092# What type of objects to build. 25093pic_mode=$pic_mode 25094 25095# Whether or not to optimize for fast installation. 25096fast_install=$enable_fast_install 25097 25098# Shared archive member basename,for filename based shared library versioning on AIX. 25099shared_archive_member_spec=$shared_archive_member_spec 25100 25101# Shell to use when invoking shell scripts. 25102SHELL=$lt_SHELL 25103 25104# An echo program that protects backslashes. 25105ECHO=$lt_ECHO 25106 25107# The PATH separator for the build system. 25108PATH_SEPARATOR=$lt_PATH_SEPARATOR 25109 25110# The host system. 25111host_alias=$host_alias 25112host=$host 25113host_os=$host_os 25114 25115# The build system. 25116build_alias=$build_alias 25117build=$build 25118build_os=$build_os 25119 25120# A sed program that does not truncate output. 25121SED=$lt_SED 25122 25123# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25124Xsed="\$SED -e 1s/^X//" 25125 25126# A grep program that handles long lines. 25127GREP=$lt_GREP 25128 25129# An ERE matcher. 25130EGREP=$lt_EGREP 25131 25132# A literal string matcher. 25133FGREP=$lt_FGREP 25134 25135# A BSD- or MS-compatible name lister. 25136NM=$lt_NM 25137 25138# Whether we need soft or hard links. 25139LN_S=$lt_LN_S 25140 25141# What is the maximum length of a command? 25142max_cmd_len=$max_cmd_len 25143 25144# Object file suffix (normally "o"). 25145objext=$ac_objext 25146 25147# Executable file suffix (normally ""). 25148exeext=$exeext 25149 25150# whether the shell understands "unset". 25151lt_unset=$lt_unset 25152 25153# turn spaces into newlines. 25154SP2NL=$lt_lt_SP2NL 25155 25156# turn newlines into spaces. 25157NL2SP=$lt_lt_NL2SP 25158 25159# convert \$build file names to \$host format. 25160to_host_file_cmd=$lt_cv_to_host_file_cmd 25161 25162# convert \$build files to toolchain format. 25163to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25164 25165# An object symbol dumper. 25166OBJDUMP=$lt_OBJDUMP 25167 25168# Method to check whether dependent libraries are shared objects. 25169deplibs_check_method=$lt_deplibs_check_method 25170 25171# Command to use when deplibs_check_method = "file_magic". 25172file_magic_cmd=$lt_file_magic_cmd 25173 25174# How to find potential files when deplibs_check_method = "file_magic". 25175file_magic_glob=$lt_file_magic_glob 25176 25177# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25178want_nocaseglob=$lt_want_nocaseglob 25179 25180# DLL creation program. 25181DLLTOOL=$lt_DLLTOOL 25182 25183# Command to associate shared and link libraries. 25184sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25185 25186# The archiver. 25187AR=$lt_AR 25188 25189# Flags to create an archive. 25190AR_FLAGS=$lt_AR_FLAGS 25191 25192# How to feed a file listing to the archiver. 25193archiver_list_spec=$lt_archiver_list_spec 25194 25195# A symbol stripping program. 25196STRIP=$lt_STRIP 25197 25198# Commands used to install an old-style archive. 25199RANLIB=$lt_RANLIB 25200old_postinstall_cmds=$lt_old_postinstall_cmds 25201old_postuninstall_cmds=$lt_old_postuninstall_cmds 25202 25203# Whether to use a lock for old archive extraction. 25204lock_old_archive_extraction=$lock_old_archive_extraction 25205 25206# A C compiler. 25207LTCC=$lt_CC 25208 25209# LTCC compiler flags. 25210LTCFLAGS=$lt_CFLAGS 25211 25212# Take the output of nm and produce a listing of raw symbols and C names. 25213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25214 25215# Transform the output of nm in a proper C declaration. 25216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25217 25218# Transform the output of nm into a list of symbols to manually relocate. 25219global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 25220 25221# Transform the output of nm in a C name address pair. 25222global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25223 25224# Transform the output of nm in a C name address pair when lib prefix is needed. 25225global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25226 25227# The name lister interface. 25228nm_interface=$lt_lt_cv_nm_interface 25229 25230# Specify filename containing input files for \$NM. 25231nm_file_list_spec=$lt_nm_file_list_spec 25232 25233# The root where to search for dependent libraries,and where our libraries should be installed. 25234lt_sysroot=$lt_sysroot 25235 25236# Command to truncate a binary pipe. 25237lt_truncate_bin=$lt_lt_cv_truncate_bin 25238 25239# The name of the directory that contains temporary libtool files. 25240objdir=$objdir 25241 25242# Used to examine libraries when file_magic_cmd begins with "file". 25243MAGIC_CMD=$MAGIC_CMD 25244 25245# Must we lock files when doing compilation? 25246need_locks=$lt_need_locks 25247 25248# Manifest tool. 25249MANIFEST_TOOL=$lt_MANIFEST_TOOL 25250 25251# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25252DSYMUTIL=$lt_DSYMUTIL 25253 25254# Tool to change global to local symbols on Mac OS X. 25255NMEDIT=$lt_NMEDIT 25256 25257# Tool to manipulate fat objects and archives on Mac OS X. 25258LIPO=$lt_LIPO 25259 25260# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25261OTOOL=$lt_OTOOL 25262 25263# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25264OTOOL64=$lt_OTOOL64 25265 25266# Old archive suffix (normally "a"). 25267libext=$libext 25268 25269# Shared library suffix (normally ".so"). 25270shrext_cmds=$lt_shrext_cmds 25271 25272# The commands to extract the exported symbol list from a shared archive. 25273extract_expsyms_cmds=$lt_extract_expsyms_cmds 25274 25275# Variables whose values should be saved in libtool wrapper scripts and 25276# restored at link time. 25277variables_saved_for_relink=$lt_variables_saved_for_relink 25278 25279# Do we need the "lib" prefix for modules? 25280need_lib_prefix=$need_lib_prefix 25281 25282# Do we need a version for libraries? 25283need_version=$need_version 25284 25285# Library versioning type. 25286version_type=$version_type 25287 25288# Shared library runtime path variable. 25289runpath_var=$runpath_var 25290 25291# Shared library path variable. 25292shlibpath_var=$shlibpath_var 25293 25294# Is shlibpath searched before the hard-coded library search path? 25295shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25296 25297# Format of library name prefix. 25298libname_spec=$lt_libname_spec 25299 25300# List of archive names. First name is the real one, the rest are links. 25301# The last name is the one that the linker finds with -lNAME 25302library_names_spec=$lt_library_names_spec 25303 25304# The coded name of the library, if different from the real name. 25305soname_spec=$lt_soname_spec 25306 25307# Permission mode override for installation of shared libraries. 25308install_override_mode=$lt_install_override_mode 25309 25310# Command to use after installation of a shared archive. 25311postinstall_cmds=$lt_postinstall_cmds 25312 25313# Command to use after uninstallation of a shared archive. 25314postuninstall_cmds=$lt_postuninstall_cmds 25315 25316# Commands used to finish a libtool library installation in a directory. 25317finish_cmds=$lt_finish_cmds 25318 25319# As "finish_cmds", except a single script fragment to be evaled but 25320# not shown. 25321finish_eval=$lt_finish_eval 25322 25323# Whether we should hardcode library paths into libraries. 25324hardcode_into_libs=$hardcode_into_libs 25325 25326# Compile-time system search path for libraries. 25327sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25328 25329# Detected run-time system search path for libraries. 25330sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 25331 25332# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 25333configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 25334 25335# Whether dlopen is supported. 25336dlopen_support=$enable_dlopen 25337 25338# Whether dlopen of programs is supported. 25339dlopen_self=$enable_dlopen_self 25340 25341# Whether dlopen of statically linked programs is supported. 25342dlopen_self_static=$enable_dlopen_self_static 25343 25344# Commands to strip libraries. 25345old_striplib=$lt_old_striplib 25346striplib=$lt_striplib 25347 25348 25349# The linker used to build libraries. 25350LD=$lt_LD 25351 25352# How to create reloadable object files. 25353reload_flag=$lt_reload_flag 25354reload_cmds=$lt_reload_cmds 25355 25356# Commands used to build an old-style archive. 25357old_archive_cmds=$lt_old_archive_cmds 25358 25359# A language specific compiler. 25360CC=$lt_compiler 25361 25362# Is the compiler the GNU compiler? 25363with_gcc=$GCC 25364 25365# Compiler flag to turn off builtin functions. 25366no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25367 25368# Additional compiler flags for building library objects. 25369pic_flag=$lt_lt_prog_compiler_pic 25370 25371# How to pass a linker flag through the compiler. 25372wl=$lt_lt_prog_compiler_wl 25373 25374# Compiler flag to prevent dynamic linking. 25375link_static_flag=$lt_lt_prog_compiler_static 25376 25377# Does compiler simultaneously support -c and -o options? 25378compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25379 25380# Whether or not to add -lc for building shared libraries. 25381build_libtool_need_lc=$archive_cmds_need_lc 25382 25383# Whether or not to disallow shared libs when runtime libs are static. 25384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25385 25386# Compiler flag to allow reflexive dlopens. 25387export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25388 25389# Compiler flag to generate shared objects directly from archives. 25390whole_archive_flag_spec=$lt_whole_archive_flag_spec 25391 25392# Whether the compiler copes with passing no objects directly. 25393compiler_needs_object=$lt_compiler_needs_object 25394 25395# Create an old-style archive from a shared archive. 25396old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25397 25398# Create a temporary old-style archive to link instead of a shared archive. 25399old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25400 25401# Commands used to build a shared archive. 25402archive_cmds=$lt_archive_cmds 25403archive_expsym_cmds=$lt_archive_expsym_cmds 25404 25405# Commands used to build a loadable module if different from building 25406# a shared archive. 25407module_cmds=$lt_module_cmds 25408module_expsym_cmds=$lt_module_expsym_cmds 25409 25410# Whether we are building with GNU ld or not. 25411with_gnu_ld=$lt_with_gnu_ld 25412 25413# Flag that allows shared libraries with undefined symbols to be built. 25414allow_undefined_flag=$lt_allow_undefined_flag 25415 25416# Flag that enforces no undefined symbols. 25417no_undefined_flag=$lt_no_undefined_flag 25418 25419# Flag to hardcode \$libdir into a binary during linking. 25420# This must work even if \$libdir does not exist 25421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25422 25423# Whether we need a single "-rpath" flag with a separated argument. 25424hardcode_libdir_separator=$lt_hardcode_libdir_separator 25425 25426# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25427# DIR into the resulting binary. 25428hardcode_direct=$hardcode_direct 25429 25430# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25431# DIR into the resulting binary and the resulting library dependency is 25432# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25433# library is relocated. 25434hardcode_direct_absolute=$hardcode_direct_absolute 25435 25436# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25437# into the resulting binary. 25438hardcode_minus_L=$hardcode_minus_L 25439 25440# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25441# into the resulting binary. 25442hardcode_shlibpath_var=$hardcode_shlibpath_var 25443 25444# Set to "yes" if building a shared library automatically hardcodes DIR 25445# into the library and all subsequent libraries and executables linked 25446# against it. 25447hardcode_automatic=$hardcode_automatic 25448 25449# Set to yes if linker adds runtime paths of dependent libraries 25450# to runtime path list. 25451inherit_rpath=$inherit_rpath 25452 25453# Whether libtool must link a program against all its dependency libraries. 25454link_all_deplibs=$link_all_deplibs 25455 25456# Set to "yes" if exported symbols are required. 25457always_export_symbols=$always_export_symbols 25458 25459# The commands to list exported symbols. 25460export_symbols_cmds=$lt_export_symbols_cmds 25461 25462# Symbols that should not be listed in the preloaded symbols. 25463exclude_expsyms=$lt_exclude_expsyms 25464 25465# Symbols that must always be exported. 25466include_expsyms=$lt_include_expsyms 25467 25468# Commands necessary for linking programs (against libraries) with templates. 25469prelink_cmds=$lt_prelink_cmds 25470 25471# Commands necessary for finishing linking programs. 25472postlink_cmds=$lt_postlink_cmds 25473 25474# Specify filename containing input files. 25475file_list_spec=$lt_file_list_spec 25476 25477# How to hardcode a shared library path into an executable. 25478hardcode_action=$hardcode_action 25479 25480# ### END LIBTOOL CONFIG 25481 25482_LT_EOF 25483 25484 cat <<'_LT_EOF' >> "$cfgfile" 25485 25486# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25487 25488# func_munge_path_list VARIABLE PATH 25489# ----------------------------------- 25490# VARIABLE is name of variable containing _space_ separated list of 25491# directories to be munged by the contents of PATH, which is string 25492# having a format: 25493# "DIR[:DIR]:" 25494# string "DIR[ DIR]" will be prepended to VARIABLE 25495# ":DIR[:DIR]" 25496# string "DIR[ DIR]" will be appended to VARIABLE 25497# "DIRP[:DIRP]::[DIRA:]DIRA" 25498# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25499# "DIRA[ DIRA]" will be appended to VARIABLE 25500# "DIR[:DIR]" 25501# VARIABLE will be replaced by "DIR[ DIR]" 25502func_munge_path_list () 25503{ 25504 case x$2 in 25505 x) 25506 ;; 25507 *:) 25508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25509 ;; 25510 x:*) 25511 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25512 ;; 25513 *::*) 25514 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25515 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25516 ;; 25517 *) 25518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25519 ;; 25520 esac 25521} 25522 25523 25524# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25525func_cc_basename () 25526{ 25527 for cc_temp in $*""; do 25528 case $cc_temp in 25529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25531 \-*) ;; 25532 *) break;; 25533 esac 25534 done 25535 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25536} 25537 25538 25539# ### END FUNCTIONS SHARED WITH CONFIGURE 25540 25541_LT_EOF 25542 25543 case $host_os in 25544 aix3*) 25545 cat <<\_LT_EOF >> "$cfgfile" 25546# AIX sometimes has problems with the GCC collect2 program. For some 25547# reason, if we set the COLLECT_NAMES environment variable, the problems 25548# vanish in a puff of smoke. 25549if test set != "${COLLECT_NAMES+set}"; then 25550 COLLECT_NAMES= 25551 export COLLECT_NAMES 25552fi 25553_LT_EOF 25554 ;; 25555 esac 25556 25557 25558 25559ltmain=$ac_aux_dir/ltmain.sh 25560 25561 25562 # We use sed instead of cat because bash on DJGPP gets confused if 25563 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25564 # text mode, it properly converts lines to CR/LF. This bash problem 25565 # is reportedly fixed, but why not run on old versions too? 25566 sed '$q' "$ltmain" >> "$cfgfile" \ 25567 || (rm -f "$cfgfile"; exit 1) 25568 25569 mv -f "$cfgfile" "$ofile" || 25570 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25571 chmod +x "$ofile" 25572 25573 ;; 25574 "disable-rpath":C) 25575 sed < libtool > libtool-2 \ 25576 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 25577 mv libtool-2 libtool 25578 chmod 755 libtool 25579 libtool="./libtool" 25580 ;; 25581 25582 esac 25583done # for ac_tag 25584 25585 25586as_fn_exit 0 25587_ACEOF 25588ac_clean_files=$ac_clean_files_save 25589 25590test $ac_write_fail = 0 || 25591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25592 25593 25594# configure is writing to config.log, and then calls config.status. 25595# config.status does its own redirection, appending to config.log. 25596# Unfortunately, on DOS this fails, as config.log is still kept open 25597# by configure, so config.status won't be able to write to it; its 25598# output is simply discarded. So we exec the FD to /dev/null, 25599# effectively closing config.log, so it can be properly (re)opened and 25600# appended to by config.status. When coming back to configure, we 25601# need to make the FD available again. 25602if test "$no_create" != yes; then 25603 ac_cs_success=: 25604 ac_config_status_args= 25605 test "$silent" = yes && 25606 ac_config_status_args="$ac_config_status_args --quiet" 25607 exec 5>/dev/null 25608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25609 exec 5>>config.log 25610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25611 # would make configure fail if this is the last instruction. 25612 $ac_cs_success || as_fn_exit 1 25613fi 25614if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25616printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25617fi 25618 25619