1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.9.0. 4# 5# Report bugs to <unbound-bugs@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: unbound-bugs@nlnetlabs.nl about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='unbound' 592PACKAGE_TARNAME='unbound' 593PACKAGE_VERSION='1.9.0' 594PACKAGE_STRING='unbound 1.9.0' 595PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='LTLIBOBJS 635date 636version 637INSTALLTARGET 638ALLTARGET 639SOURCEFILE 640SOURCEDETERMINE 641IPSECMOD_HEADER 642IPSECMOD_OBJ 643DNSCRYPT_OBJ 644DNSCRYPT_SRC 645ENABLE_DNSCRYPT 646ENABLE_DNSCRYPT_XCHACHA20 647DNSTAP_OBJ 648DNSTAP_SRC 649opt_dnstap_socket_path 650ENABLE_DNSTAP 651PROTOC_C 652UBSYMS 653EXTRALINK 654COMMON_OBJ_ALL_SYMBOLS 655LIBOBJ_WITHOUT_CTIME 656LIBOBJ_WITHOUT_CTIMEARC4 657WIN_CHECKCONF_OBJ_LINK 658WIN_CONTROL_OBJ_LINK 659WIN_UBANCHOR_OBJ_LINK 660WIN_HOST_OBJ_LINK 661WIN_DAEMON_OBJ_LINK 662WIN_DAEMON_OBJ 663WIN_DAEMON_SRC 664WINAPPS 665WINDRES 666CHECKLOCK_OBJ 667USE_SYSTEMD_FALSE 668USE_SYSTEMD_TRUE 669SYSTEMD_DAEMON_LIBS 670SYSTEMD_DAEMON_CFLAGS 671SYSTEMD_LIBS 672SYSTEMD_CFLAGS 673staticexe 674PC_LIBEVENT_DEPENDENCY 675UNBOUND_EVENT_UNINSTALL 676UNBOUND_EVENT_INSTALL 677SUBNET_HEADER 678SUBNET_OBJ 679SSLLIB 680HAVE_SSL 681CONFIG_DATE 682NETBSD_LINTFLAGS 683PYUNBOUND_UNINSTALL 684PYUNBOUND_INSTALL 685PYUNBOUND_TARGET 686PYUNBOUND_OBJ 687WITH_PYUNBOUND 688PYTHONMOD_UNINSTALL 689PYTHONMOD_INSTALL 690PYTHONMOD_HEADER 691PYTHONMOD_OBJ 692WITH_PYTHONMODULE 693swig 694SWIG_LIB 695SWIG 696PC_PY_DEPENDENCY 697PKG_CONFIG_LIBDIR 698PKG_CONFIG_PATH 699PKG_CONFIG 700PY_MAJOR_VERSION 701PYTHON_SITE_PKG 702PYTHON_LDFLAGS 703PYTHON_CPPFLAGS 704PYTHON 705PYTHON_VERSION 706PTHREAD_CFLAGS_ONLY 707PTHREAD_CFLAGS 708PTHREAD_LIBS 709PTHREAD_CC 710ax_pthread_config 711RUNTIME_PATH 712LIBOBJS 713LT_SYS_LIBRARY_PATH 714OTOOL64 715OTOOL 716LIPO 717NMEDIT 718DSYMUTIL 719MANIFEST_TOOL 720AWK 721RANLIB 722ac_ct_AR 723DLLTOOL 724OBJDUMP 725LN_S 726NM 727ac_ct_DUMPBIN 728DUMPBIN 729LD 730FGREP 731SED 732LIBTOOL 733AR 734host_os 735host_vendor 736host_cpu 737host 738build_os 739build_vendor 740build_cpu 741build 742libtool 743STRIP 744doxygen 745YFLAGS 746YACC 747LEXLIB 748LEX_OUTPUT_ROOT 749LEX 750debug_enabled 751DEPFLAG 752UNBOUND_USERNAME 753UNBOUND_ROOTCERT_FILE 754UNBOUND_ROOTKEY_FILE 755UNBOUND_PIDFILE 756UNBOUND_SHARE_DIR 757UNBOUND_CHROOT_DIR 758UNBOUND_RUN_DIR 759ub_conf_dir 760ub_conf_file 761UNBOUND_LOCALSTATE_DIR 762UNBOUND_SYSCONF_DIR 763UNBOUND_SBIN_DIR 764EGREP 765GREP 766CPP 767OBJEXT 768EXEEXT 769ac_ct_CC 770CPPFLAGS 771LDFLAGS 772CFLAGS 773CC 774LIBUNBOUND_AGE 775LIBUNBOUND_REVISION 776LIBUNBOUND_CURRENT 777UNBOUND_VERSION_MICRO 778UNBOUND_VERSION_MINOR 779UNBOUND_VERSION_MAJOR 780target_alias 781host_alias 782build_alias 783LIBS 784ECHO_T 785ECHO_N 786ECHO_C 787DEFS 788mandir 789localedir 790libdir 791psdir 792pdfdir 793dvidir 794htmldir 795infodir 796docdir 797oldincludedir 798includedir 799localstatedir 800sharedstatedir 801sysconfdir 802datadir 803datarootdir 804libexecdir 805sbindir 806bindir 807program_transform_name 808prefix 809exec_prefix 810PACKAGE_URL 811PACKAGE_BUGREPORT 812PACKAGE_STRING 813PACKAGE_VERSION 814PACKAGE_TARNAME 815PACKAGE_NAME 816PATH_SEPARATOR 817SHELL' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821with_conf_file 822with_run_dir 823with_chroot_dir 824with_share_dir 825with_pidfile 826with_rootkey_file 827with_rootcert_file 828with_username 829enable_checking 830enable_debug 831enable_flto 832enable_pie 833enable_relro_now 834enable_shared 835enable_static 836with_pic 837enable_fast_install 838with_aix_soname 839with_gnu_ld 840with_sysroot 841enable_libtool_lock 842enable_rpath 843enable_largefile 844enable_alloc_checks 845enable_alloc_lite 846enable_alloc_nonregional 847with_pthreads 848with_solaris_threads 849with_pyunbound 850with_pythonmodule 851enable_swig_version_check 852with_nss 853with_nettle 854with_ssl 855enable_sha1 856enable_sha2 857enable_subnet 858enable_gost 859enable_ecdsa 860enable_dsa 861enable_ed25519 862enable_ed448 863enable_event_api 864enable_tfo_client 865enable_tfo_server 866with_libevent 867with_libexpat 868with_libhiredis 869enable_static_exe 870enable_systemd 871enable_lock_checks 872enable_allsymbols 873enable_dnstap 874with_dnstap_socket_path 875with_protobuf_c 876with_libfstrm 877enable_dnscrypt 878with_libsodium 879enable_cachedb 880enable_ipsecmod 881with_libunbound_only 882' 883 ac_precious_vars='build_alias 884host_alias 885target_alias 886CC 887CFLAGS 888LDFLAGS 889LIBS 890CPPFLAGS 891CPP 892YACC 893YFLAGS 894LT_SYS_LIBRARY_PATH 895PYTHON_VERSION 896PKG_CONFIG 897PKG_CONFIG_PATH 898PKG_CONFIG_LIBDIR 899SYSTEMD_CFLAGS 900SYSTEMD_LIBS 901SYSTEMD_DAEMON_CFLAGS 902SYSTEMD_DAEMON_LIBS' 903 904 905# Initialize some variables set by options. 906ac_init_help= 907ac_init_version=false 908ac_unrecognized_opts= 909ac_unrecognized_sep= 910# The variables have the same names as the options, with 911# dashes changed to underlines. 912cache_file=/dev/null 913exec_prefix=NONE 914no_create= 915no_recursion= 916prefix=NONE 917program_prefix=NONE 918program_suffix=NONE 919program_transform_name=s,x,x, 920silent= 921site= 922srcdir= 923verbose= 924x_includes=NONE 925x_libraries=NONE 926 927# Installation directory options. 928# These are left unexpanded so users can "make install exec_prefix=/foo" 929# and all the variables that are supposed to be based on exec_prefix 930# by default will actually change. 931# Use braces instead of parens because sh, perl, etc. also accept them. 932# (The list follows the same order as the GNU Coding Standards.) 933bindir='${exec_prefix}/bin' 934sbindir='${exec_prefix}/sbin' 935libexecdir='${exec_prefix}/libexec' 936datarootdir='${prefix}/share' 937datadir='${datarootdir}' 938sysconfdir='${prefix}/etc' 939sharedstatedir='${prefix}/com' 940localstatedir='${prefix}/var' 941includedir='${prefix}/include' 942oldincludedir='/usr/include' 943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 944infodir='${datarootdir}/info' 945htmldir='${docdir}' 946dvidir='${docdir}' 947pdfdir='${docdir}' 948psdir='${docdir}' 949libdir='${exec_prefix}/lib' 950localedir='${datarootdir}/locale' 951mandir='${datarootdir}/man' 952 953ac_prev= 954ac_dashdash= 955for ac_option 956do 957 # If the previous option needs an argument, assign it. 958 if test -n "$ac_prev"; then 959 eval $ac_prev=\$ac_option 960 ac_prev= 961 continue 962 fi 963 964 case $ac_option in 965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 966 *=) ac_optarg= ;; 967 *) ac_optarg=yes ;; 968 esac 969 970 # Accept the important Cygnus configure options, so we can diagnose typos. 971 972 case $ac_dashdash$ac_option in 973 --) 974 ac_dashdash=yes ;; 975 976 -bindir | --bindir | --bindi | --bind | --bin | --bi) 977 ac_prev=bindir ;; 978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 979 bindir=$ac_optarg ;; 980 981 -build | --build | --buil | --bui | --bu) 982 ac_prev=build_alias ;; 983 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 984 build_alias=$ac_optarg ;; 985 986 -cache-file | --cache-file | --cache-fil | --cache-fi \ 987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 988 ac_prev=cache_file ;; 989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 991 cache_file=$ac_optarg ;; 992 993 --config-cache | -C) 994 cache_file=config.cache ;; 995 996 -datadir | --datadir | --datadi | --datad) 997 ac_prev=datadir ;; 998 -datadir=* | --datadir=* | --datadi=* | --datad=*) 999 datadir=$ac_optarg ;; 1000 1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1002 | --dataroo | --dataro | --datar) 1003 ac_prev=datarootdir ;; 1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1006 datarootdir=$ac_optarg ;; 1007 1008 -disable-* | --disable-*) 1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1010 # Reject names that are not valid shell variable names. 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1012 as_fn_error $? "invalid feature name: $ac_useropt" 1013 ac_useropt_orig=$ac_useropt 1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1015 case $ac_user_opts in 1016 *" 1017"enable_$ac_useropt" 1018"*) ;; 1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1020 ac_unrecognized_sep=', ';; 1021 esac 1022 eval enable_$ac_useropt=no ;; 1023 1024 -docdir | --docdir | --docdi | --doc | --do) 1025 ac_prev=docdir ;; 1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1027 docdir=$ac_optarg ;; 1028 1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1030 ac_prev=dvidir ;; 1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1032 dvidir=$ac_optarg ;; 1033 1034 -enable-* | --enable-*) 1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1038 as_fn_error $? "invalid feature name: $ac_useropt" 1039 ac_useropt_orig=$ac_useropt 1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1041 case $ac_user_opts in 1042 *" 1043"enable_$ac_useropt" 1044"*) ;; 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1046 ac_unrecognized_sep=', ';; 1047 esac 1048 eval enable_$ac_useropt=\$ac_optarg ;; 1049 1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1052 | --exec | --exe | --ex) 1053 ac_prev=exec_prefix ;; 1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1056 | --exec=* | --exe=* | --ex=*) 1057 exec_prefix=$ac_optarg ;; 1058 1059 -gas | --gas | --ga | --g) 1060 # Obsolete; use --with-gas. 1061 with_gas=yes ;; 1062 1063 -help | --help | --hel | --he | -h) 1064 ac_init_help=long ;; 1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1066 ac_init_help=recursive ;; 1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1068 ac_init_help=short ;; 1069 1070 -host | --host | --hos | --ho) 1071 ac_prev=host_alias ;; 1072 -host=* | --host=* | --hos=* | --ho=*) 1073 host_alias=$ac_optarg ;; 1074 1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1076 ac_prev=htmldir ;; 1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1078 | --ht=*) 1079 htmldir=$ac_optarg ;; 1080 1081 -includedir | --includedir | --includedi | --included | --include \ 1082 | --includ | --inclu | --incl | --inc) 1083 ac_prev=includedir ;; 1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1085 | --includ=* | --inclu=* | --incl=* | --inc=*) 1086 includedir=$ac_optarg ;; 1087 1088 -infodir | --infodir | --infodi | --infod | --info | --inf) 1089 ac_prev=infodir ;; 1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1091 infodir=$ac_optarg ;; 1092 1093 -libdir | --libdir | --libdi | --libd) 1094 ac_prev=libdir ;; 1095 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1096 libdir=$ac_optarg ;; 1097 1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1099 | --libexe | --libex | --libe) 1100 ac_prev=libexecdir ;; 1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1102 | --libexe=* | --libex=* | --libe=*) 1103 libexecdir=$ac_optarg ;; 1104 1105 -localedir | --localedir | --localedi | --localed | --locale) 1106 ac_prev=localedir ;; 1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1108 localedir=$ac_optarg ;; 1109 1110 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1111 | --localstate | --localstat | --localsta | --localst | --locals) 1112 ac_prev=localstatedir ;; 1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1115 localstatedir=$ac_optarg ;; 1116 1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1118 ac_prev=mandir ;; 1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1120 mandir=$ac_optarg ;; 1121 1122 -nfp | --nfp | --nf) 1123 # Obsolete; use --without-fp. 1124 with_fp=no ;; 1125 1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1127 | --no-cr | --no-c | -n) 1128 no_create=yes ;; 1129 1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1132 no_recursion=yes ;; 1133 1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1136 | --oldin | --oldi | --old | --ol | --o) 1137 ac_prev=oldincludedir ;; 1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1141 oldincludedir=$ac_optarg ;; 1142 1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1144 ac_prev=prefix ;; 1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1146 prefix=$ac_optarg ;; 1147 1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1149 | --program-pre | --program-pr | --program-p) 1150 ac_prev=program_prefix ;; 1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1153 program_prefix=$ac_optarg ;; 1154 1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1156 | --program-suf | --program-su | --program-s) 1157 ac_prev=program_suffix ;; 1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1160 program_suffix=$ac_optarg ;; 1161 1162 -program-transform-name | --program-transform-name \ 1163 | --program-transform-nam | --program-transform-na \ 1164 | --program-transform-n | --program-transform- \ 1165 | --program-transform | --program-transfor \ 1166 | --program-transfo | --program-transf \ 1167 | --program-trans | --program-tran \ 1168 | --progr-tra | --program-tr | --program-t) 1169 ac_prev=program_transform_name ;; 1170 -program-transform-name=* | --program-transform-name=* \ 1171 | --program-transform-nam=* | --program-transform-na=* \ 1172 | --program-transform-n=* | --program-transform-=* \ 1173 | --program-transform=* | --program-transfor=* \ 1174 | --program-transfo=* | --program-transf=* \ 1175 | --program-trans=* | --program-tran=* \ 1176 | --progr-tra=* | --program-tr=* | --program-t=*) 1177 program_transform_name=$ac_optarg ;; 1178 1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1180 ac_prev=pdfdir ;; 1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1182 pdfdir=$ac_optarg ;; 1183 1184 -psdir | --psdir | --psdi | --psd | --ps) 1185 ac_prev=psdir ;; 1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1187 psdir=$ac_optarg ;; 1188 1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1190 | -silent | --silent | --silen | --sile | --sil) 1191 silent=yes ;; 1192 1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1194 ac_prev=sbindir ;; 1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1196 | --sbi=* | --sb=*) 1197 sbindir=$ac_optarg ;; 1198 1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1201 | --sharedst | --shareds | --shared | --share | --shar \ 1202 | --sha | --sh) 1203 ac_prev=sharedstatedir ;; 1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1207 | --sha=* | --sh=*) 1208 sharedstatedir=$ac_optarg ;; 1209 1210 -site | --site | --sit) 1211 ac_prev=site ;; 1212 -site=* | --site=* | --sit=*) 1213 site=$ac_optarg ;; 1214 1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1216 ac_prev=srcdir ;; 1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1218 srcdir=$ac_optarg ;; 1219 1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1221 | --syscon | --sysco | --sysc | --sys | --sy) 1222 ac_prev=sysconfdir ;; 1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1225 sysconfdir=$ac_optarg ;; 1226 1227 -target | --target | --targe | --targ | --tar | --ta | --t) 1228 ac_prev=target_alias ;; 1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1230 target_alias=$ac_optarg ;; 1231 1232 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1233 verbose=yes ;; 1234 1235 -version | --version | --versio | --versi | --vers | -V) 1236 ac_init_version=: ;; 1237 1238 -with-* | --with-*) 1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1240 # Reject names that are not valid shell variable names. 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1242 as_fn_error $? "invalid package name: $ac_useropt" 1243 ac_useropt_orig=$ac_useropt 1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1245 case $ac_user_opts in 1246 *" 1247"with_$ac_useropt" 1248"*) ;; 1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1250 ac_unrecognized_sep=', ';; 1251 esac 1252 eval with_$ac_useropt=\$ac_optarg ;; 1253 1254 -without-* | --without-*) 1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1258 as_fn_error $? "invalid package name: $ac_useropt" 1259 ac_useropt_orig=$ac_useropt 1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1261 case $ac_user_opts in 1262 *" 1263"with_$ac_useropt" 1264"*) ;; 1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1266 ac_unrecognized_sep=', ';; 1267 esac 1268 eval with_$ac_useropt=no ;; 1269 1270 --x) 1271 # Obsolete; use --with-x. 1272 with_x=yes ;; 1273 1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1275 | --x-incl | --x-inc | --x-in | --x-i) 1276 ac_prev=x_includes ;; 1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1279 x_includes=$ac_optarg ;; 1280 1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1283 ac_prev=x_libraries ;; 1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1286 x_libraries=$ac_optarg ;; 1287 1288 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1289Try \`$0 --help' for more information" 1290 ;; 1291 1292 *=*) 1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1294 # Reject names that are not valid shell variable names. 1295 case $ac_envvar in #( 1296 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1298 esac 1299 eval $ac_envvar=\$ac_optarg 1300 export $ac_envvar ;; 1301 1302 *) 1303 # FIXME: should be removed in autoconf 3.0. 1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1308 ;; 1309 1310 esac 1311done 1312 1313if test -n "$ac_prev"; then 1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1315 as_fn_error $? "missing argument to $ac_option" 1316fi 1317 1318if test -n "$ac_unrecognized_opts"; then 1319 case $enable_option_checking in 1320 no) ;; 1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1323 esac 1324fi 1325 1326# Check all directory arguments for consistency. 1327for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1328 datadir sysconfdir sharedstatedir localstatedir includedir \ 1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1330 libdir localedir mandir 1331do 1332 eval ac_val=\$$ac_var 1333 # Remove trailing slashes. 1334 case $ac_val in 1335 */ ) 1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1337 eval $ac_var=\$ac_val;; 1338 esac 1339 # Be sure to have absolute directory names. 1340 case $ac_val in 1341 [\\/$]* | ?:[\\/]* ) continue;; 1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1343 esac 1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1345done 1346 1347# There might be people who depend on the old broken behavior: `$host' 1348# used to hold the argument of --host etc. 1349# FIXME: To remove some day. 1350build=$build_alias 1351host=$host_alias 1352target=$target_alias 1353 1354# FIXME: To remove some day. 1355if test "x$host_alias" != x; then 1356 if test "x$build_alias" = x; then 1357 cross_compiling=maybe 1358 elif test "x$build_alias" != "x$host_alias"; then 1359 cross_compiling=yes 1360 fi 1361fi 1362 1363ac_tool_prefix= 1364test -n "$host_alias" && ac_tool_prefix=$host_alias- 1365 1366test "$silent" = yes && exec 6>/dev/null 1367 1368 1369ac_pwd=`pwd` && test -n "$ac_pwd" && 1370ac_ls_di=`ls -di .` && 1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1372 as_fn_error $? "working directory cannot be determined" 1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1374 as_fn_error $? "pwd does not report name of working directory" 1375 1376 1377# Find the source files, if location was not specified. 1378if test -z "$srcdir"; then 1379 ac_srcdir_defaulted=yes 1380 # Try the directory containing this script, then the parent directory. 1381 ac_confdir=`$as_dirname -- "$as_myself" || 1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1383 X"$as_myself" : 'X\(//\)[^/]' \| \ 1384 X"$as_myself" : 'X\(//\)$' \| \ 1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1386$as_echo X"$as_myself" | 1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1388 s//\1/ 1389 q 1390 } 1391 /^X\(\/\/\)[^/].*/{ 1392 s//\1/ 1393 q 1394 } 1395 /^X\(\/\/\)$/{ 1396 s//\1/ 1397 q 1398 } 1399 /^X\(\/\).*/{ 1400 s//\1/ 1401 q 1402 } 1403 s/.*/./; q'` 1404 srcdir=$ac_confdir 1405 if test ! -r "$srcdir/$ac_unique_file"; then 1406 srcdir=.. 1407 fi 1408else 1409 ac_srcdir_defaulted=no 1410fi 1411if test ! -r "$srcdir/$ac_unique_file"; then 1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1414fi 1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1416ac_abs_confdir=`( 1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1418 pwd)` 1419# When building in place, set srcdir=. 1420if test "$ac_abs_confdir" = "$ac_pwd"; then 1421 srcdir=. 1422fi 1423# Remove unnecessary trailing slashes from srcdir. 1424# Double slashes in file names in object file debugging info 1425# mess up M-x gdb in Emacs. 1426case $srcdir in 1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1428esac 1429for ac_var in $ac_precious_vars; do 1430 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1431 eval ac_env_${ac_var}_value=\$${ac_var} 1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1433 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1434done 1435 1436# 1437# Report the --help message. 1438# 1439if test "$ac_init_help" = "long"; then 1440 # Omit some internal or obsolete options to make the list less imposing. 1441 # This message is too long to be a string in the A/UX 3.1 sh. 1442 cat <<_ACEOF 1443\`configure' configures unbound 1.9.0 to adapt to many kinds of systems. 1444 1445Usage: $0 [OPTION]... [VAR=VALUE]... 1446 1447To assign environment variables (e.g., CC, CFLAGS...), specify them as 1448VAR=VALUE. See below for descriptions of some of the useful variables. 1449 1450Defaults for the options are specified in brackets. 1451 1452Configuration: 1453 -h, --help display this help and exit 1454 --help=short display options specific to this package 1455 --help=recursive display the short help of all the included packages 1456 -V, --version display version information and exit 1457 -q, --quiet, --silent do not print \`checking ...' messages 1458 --cache-file=FILE cache test results in FILE [disabled] 1459 -C, --config-cache alias for \`--cache-file=config.cache' 1460 -n, --no-create do not create output files 1461 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1462 1463Installation directories: 1464 --prefix=PREFIX install architecture-independent files in PREFIX 1465 [$ac_default_prefix] 1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1467 [PREFIX] 1468 1469By default, \`make install' will install all the files in 1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1471an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1472for instance \`--prefix=\$HOME'. 1473 1474For better control, use the options below. 1475 1476Fine tuning of the installation directories: 1477 --bindir=DIR user executables [EPREFIX/bin] 1478 --sbindir=DIR system admin executables [EPREFIX/sbin] 1479 --libexecdir=DIR program executables [EPREFIX/libexec] 1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1483 --libdir=DIR object code libraries [EPREFIX/lib] 1484 --includedir=DIR C header files [PREFIX/include] 1485 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1488 --infodir=DIR info documentation [DATAROOTDIR/info] 1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1490 --mandir=DIR man documentation [DATAROOTDIR/man] 1491 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1492 --htmldir=DIR html documentation [DOCDIR] 1493 --dvidir=DIR dvi documentation [DOCDIR] 1494 --pdfdir=DIR pdf documentation [DOCDIR] 1495 --psdir=DIR ps documentation [DOCDIR] 1496_ACEOF 1497 1498 cat <<\_ACEOF 1499 1500System types: 1501 --build=BUILD configure for building on BUILD [guessed] 1502 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1503_ACEOF 1504fi 1505 1506if test -n "$ac_init_help"; then 1507 case $ac_init_help in 1508 short | recursive ) echo "Configuration of unbound 1.9.0:";; 1509 esac 1510 cat <<\_ACEOF 1511 1512Optional Features: 1513 --disable-option-checking ignore unrecognized --enable/--with options 1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1516 --enable-checking Enable warnings, asserts, makefile-dependencies 1517 --enable-debug same as enable-checking 1518 --disable-flto Disable link-time optimization (gcc specific option) 1519 --enable-pie Enable Position-Independent Executable (eg. to fully 1520 benefit from ASLR, small performance penalty) 1521 --enable-relro-now Enable full relocation binding at load-time (RELRO 1522 NOW, to protect GOT and .dtor areas) 1523 --enable-shared[=PKGS] build shared libraries [default=yes] 1524 --enable-static[=PKGS] build static libraries [default=yes] 1525 --enable-fast-install[=PKGS] 1526 optimize for fast installation [default=yes] 1527 --disable-libtool-lock avoid locking (might break parallel builds) 1528 --disable-rpath disable hardcoded rpath (default=enabled) 1529 --disable-largefile omit support for large files 1530 --enable-alloc-checks enable to memory allocation statistics, for debug 1531 purposes 1532 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1533 purposes 1534 --enable-alloc-nonregional 1535 enable nonregional allocs, slow but exposes regional 1536 allocations to other memory purifiers, for debug 1537 purposes 1538 --disable-swig-version-check 1539 Disable swig version check to build python modules 1540 with older swig even though that is unreliable 1541 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1542 support 1543 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1544 --enable-subnet Enable client subnet 1545 --disable-gost Disable GOST support 1546 --disable-ecdsa Disable ECDSA support 1547 --disable-dsa Disable DSA support 1548 --disable-ed25519 Disable ED25519 support 1549 --disable-ed448 Disable ED448 support 1550 --enable-event-api Enable (experimental) pluggable event base 1551 libunbound API installed to unbound-event.h 1552 --enable-tfo-client Enable TCP Fast Open for client mode 1553 --enable-tfo-server Enable TCP Fast Open for server mode 1554 --enable-static-exe enable to compile executables statically against 1555 (event) libs, for debug purposes 1556 --enable-systemd compile with systemd support 1557 --enable-lock-checks enable to check lock and unlock calls, for debug 1558 purposes 1559 --enable-allsymbols export all symbols from libunbound and link binaries 1560 to it, smaller install size but libunbound export 1561 table is polluted by internal symbols 1562 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c) 1563 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1564 --enable-cachedb enable cachedb module that can use external cache 1565 storage 1566 --enable-ipsecmod Enable ipsecmod module that facilitates 1567 opportunistic IPsec 1568 1569Optional Packages: 1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1572 --with-conf-file=path Pathname to the Unbound configuration file 1573 --with-run-dir=path set default directory to chdir to (by default dir 1574 part of cfg file) 1575 --with-chroot-dir=path set default directory to chroot to (by default same 1576 as run-dir) 1577 --with-share-dir=path set default directory with shared data (by default 1578 same as share/unbound) 1579 --with-pidfile=filename set default pathname to unbound pidfile (default 1580 run-dir/unbound.pid) 1581 --with-rootkey-file=filename 1582 set default pathname to root key file (default 1583 run-dir/root.key). This file is read and written. 1584 --with-rootcert-file=filename 1585 set default pathname to root update certificate file 1586 (default run-dir/icannbundle.pem). This file need 1587 not exist if you are content with the builtin. 1588 --with-username=user set default user that unbound changes to (default 1589 user is unbound) 1590 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1591 both] 1592 --with-aix-soname=aix|svr4|both 1593 shared library versioning (aka "SONAME") variant to 1594 provide on AIX, [default=aix]. 1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1596 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1597 compiler's sysroot if not specified). 1598 --with-pthreads use pthreads library, or --without-pthreads to 1599 disable threading support. 1600 --with-solaris-threads use solaris native thread library. 1601 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1602 (default=no) 1603 --with-pythonmodule build Python module, or --without-pythonmodule to 1604 disable script engine. (default=no) 1605 --with-nss=path use libnss instead of openssl, installed at path. 1606 --with-nettle=path use libnettle as crypto library, installed at path. 1607 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1608 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1609 /usr) 1610 --with-libevent=pathname 1611 use libevent (will check /usr/local /opt/local 1612 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1613 an explicit path). Slower, but allows use of large 1614 outgoing port ranges. 1615 --with-libexpat=path specify explicit path for libexpat. 1616 --with-libhiredis=path specify explicit path for libhiredis. 1617 --with-dnstap-socket-path=pathname 1618 set default dnstap socket path 1619 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1620 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1621 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1622 --with-libunbound-only do not build daemon and tool programs 1623 1624Some influential environment variables: 1625 CC C compiler command 1626 CFLAGS C compiler flags 1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1628 nonstandard directory <lib dir> 1629 LIBS libraries to pass to the linker, e.g. -l<library> 1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1631 you have headers in a nonstandard directory <include dir> 1632 CPP C preprocessor 1633 YACC The `Yet Another Compiler Compiler' implementation to use. 1634 Defaults to the first program found out of: `bison -y', `byacc', 1635 `yacc'. 1636 YFLAGS The list of arguments that will be passed by default to $YACC. 1637 This script will default YFLAGS to the empty string to avoid a 1638 default value of `-d' given by some make applications. 1639 LT_SYS_LIBRARY_PATH 1640 User-defined run-time library search path. 1641 PYTHON_VERSION 1642 The installed Python version to use, for example '2.3'. This 1643 string will be appended to the Python interpreter canonical 1644 name. 1645 PKG_CONFIG path to pkg-config utility 1646 PKG_CONFIG_PATH 1647 directories to add to pkg-config's search path 1648 PKG_CONFIG_LIBDIR 1649 path overriding pkg-config's built-in search path 1650 SYSTEMD_CFLAGS 1651 C compiler flags for SYSTEMD, overriding pkg-config 1652 SYSTEMD_LIBS 1653 linker flags for SYSTEMD, overriding pkg-config 1654 SYSTEMD_DAEMON_CFLAGS 1655 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1656 SYSTEMD_DAEMON_LIBS 1657 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1658 1659Use these variables to override the choices made by `configure' or to help 1660it to find libraries and programs with nonstandard names/locations. 1661 1662Report bugs to <unbound-bugs@nlnetlabs.nl>. 1663_ACEOF 1664ac_status=$? 1665fi 1666 1667if test "$ac_init_help" = "recursive"; then 1668 # If there are subdirs, report their specific --help. 1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1670 test -d "$ac_dir" || 1671 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1672 continue 1673 ac_builddir=. 1674 1675case "$ac_dir" in 1676.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1677*) 1678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1679 # A ".." for each directory in $ac_dir_suffix. 1680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1681 case $ac_top_builddir_sub in 1682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1684 esac ;; 1685esac 1686ac_abs_top_builddir=$ac_pwd 1687ac_abs_builddir=$ac_pwd$ac_dir_suffix 1688# for backward compatibility: 1689ac_top_builddir=$ac_top_build_prefix 1690 1691case $srcdir in 1692 .) # We are building in place. 1693 ac_srcdir=. 1694 ac_top_srcdir=$ac_top_builddir_sub 1695 ac_abs_top_srcdir=$ac_pwd ;; 1696 [\\/]* | ?:[\\/]* ) # Absolute name. 1697 ac_srcdir=$srcdir$ac_dir_suffix; 1698 ac_top_srcdir=$srcdir 1699 ac_abs_top_srcdir=$srcdir ;; 1700 *) # Relative name. 1701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1702 ac_top_srcdir=$ac_top_build_prefix$srcdir 1703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1704esac 1705ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1706 1707 cd "$ac_dir" || { ac_status=$?; continue; } 1708 # Check for guested configure. 1709 if test -f "$ac_srcdir/configure.gnu"; then 1710 echo && 1711 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1712 elif test -f "$ac_srcdir/configure"; then 1713 echo && 1714 $SHELL "$ac_srcdir/configure" --help=recursive 1715 else 1716 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1717 fi || ac_status=$? 1718 cd "$ac_pwd" || { ac_status=$?; break; } 1719 done 1720fi 1721 1722test -n "$ac_init_help" && exit $ac_status 1723if $ac_init_version; then 1724 cat <<\_ACEOF 1725unbound configure 1.9.0 1726generated by GNU Autoconf 2.69 1727 1728Copyright (C) 2012 Free Software Foundation, Inc. 1729This configure script is free software; the Free Software Foundation 1730gives unlimited permission to copy, distribute and modify it. 1731_ACEOF 1732 exit 1733fi 1734 1735## ------------------------ ## 1736## Autoconf initialization. ## 1737## ------------------------ ## 1738 1739# ac_fn_c_try_compile LINENO 1740# -------------------------- 1741# Try to compile conftest.$ac_ext, and return whether this succeeded. 1742ac_fn_c_try_compile () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 rm -f conftest.$ac_objext 1746 if { { ac_try="$ac_compile" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752$as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_compile") 2>conftest.err 1754 ac_status=$? 1755 if test -s conftest.err; then 1756 grep -v '^ *+' conftest.err >conftest.er1 1757 cat conftest.er1 >&5 1758 mv -f conftest.er1 conftest.err 1759 fi 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } && { 1762 test -z "$ac_c_werror_flag" || 1763 test ! -s conftest.err 1764 } && test -s conftest.$ac_objext; then : 1765 ac_retval=0 1766else 1767 $as_echo "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=1 1771fi 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 as_fn_set_status $ac_retval 1774 1775} # ac_fn_c_try_compile 1776 1777# ac_fn_c_try_cpp LINENO 1778# ---------------------- 1779# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1780ac_fn_c_try_cpp () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 if { { ac_try="$ac_cpp conftest.$ac_ext" 1784case "(($ac_try" in 1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1786 *) ac_try_echo=$ac_try;; 1787esac 1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1789$as_echo "$ac_try_echo"; } >&5 1790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1791 ac_status=$? 1792 if test -s conftest.err; then 1793 grep -v '^ *+' conftest.err >conftest.er1 1794 cat conftest.er1 >&5 1795 mv -f conftest.er1 conftest.err 1796 fi 1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1798 test $ac_status = 0; } > conftest.i && { 1799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1800 test ! -s conftest.err 1801 }; then : 1802 ac_retval=0 1803else 1804 $as_echo "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808fi 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_cpp 1813 1814# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1815# ------------------------------------------------------- 1816# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1817# the include files in INCLUDES and setting the cache variable VAR 1818# accordingly. 1819ac_fn_c_check_header_mongrel () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 if eval \${$3+:} false; then : 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1824$as_echo_n "checking for $2... " >&6; } 1825if eval \${$3+:} false; then : 1826 $as_echo_n "(cached) " >&6 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831else 1832 # Is the header compilable? 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1834$as_echo_n "checking $2 usability... " >&6; } 1835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837$4 1838#include <$2> 1839_ACEOF 1840if ac_fn_c_try_compile "$LINENO"; then : 1841 ac_header_compiler=yes 1842else 1843 ac_header_compiler=no 1844fi 1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1847$as_echo "$ac_header_compiler" >&6; } 1848 1849# Is the header present? 1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1851$as_echo_n "checking $2 presence... " >&6; } 1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854#include <$2> 1855_ACEOF 1856if ac_fn_c_try_cpp "$LINENO"; then : 1857 ac_header_preproc=yes 1858else 1859 ac_header_preproc=no 1860fi 1861rm -f conftest.err conftest.i conftest.$ac_ext 1862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1863$as_echo "$ac_header_preproc" >&6; } 1864 1865# So? What about this header? 1866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1867 yes:no: ) 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1869$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1872 ;; 1873 no:yes:* ) 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1875$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1877$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1879$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1881$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1883$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1884( $as_echo "## ---------------------------------------- ## 1885## Report this to unbound-bugs@nlnetlabs.nl ## 1886## ---------------------------------------- ##" 1887 ) | sed "s/^/$as_me: WARNING: /" >&2 1888 ;; 1889esac 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894else 1895 eval "$3=\$ac_header_compiler" 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900fi 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 1903} # ac_fn_c_check_header_mongrel 1904 1905# ac_fn_c_try_run LINENO 1906# ---------------------- 1907# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1908# that executables *can* be run. 1909ac_fn_c_try_run () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 if { { ac_try="$ac_link" 1913case "(($ac_try" in 1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1915 *) ac_try_echo=$ac_try;; 1916esac 1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1918$as_echo "$ac_try_echo"; } >&5 1919 (eval "$ac_link") 2>&5 1920 ac_status=$? 1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1922 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1923 { { case "(($ac_try" in 1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1925 *) ac_try_echo=$ac_try;; 1926esac 1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1928$as_echo "$ac_try_echo"; } >&5 1929 (eval "$ac_try") 2>&5 1930 ac_status=$? 1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1932 test $ac_status = 0; }; }; then : 1933 ac_retval=0 1934else 1935 $as_echo "$as_me: program exited with status $ac_status" >&5 1936 $as_echo "$as_me: failed program was:" >&5 1937sed 's/^/| /' conftest.$ac_ext >&5 1938 1939 ac_retval=$ac_status 1940fi 1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 as_fn_set_status $ac_retval 1944 1945} # ac_fn_c_try_run 1946 1947# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1948# ------------------------------------------------------- 1949# Tests whether HEADER exists and can be compiled using the include files in 1950# INCLUDES, setting the cache variable VAR accordingly. 1951ac_fn_c_check_header_compile () 1952{ 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1955$as_echo_n "checking for $2... " >&6; } 1956if eval \${$3+:} false; then : 1957 $as_echo_n "(cached) " >&6 1958else 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962#include <$2> 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 eval "$3=yes" 1966else 1967 eval "$3=no" 1968fi 1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1970fi 1971eval ac_res=\$$3 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973$as_echo "$ac_res" >&6; } 1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1975 1976} # ac_fn_c_check_header_compile 1977 1978# ac_fn_c_try_link LINENO 1979# ----------------------- 1980# Try to link conftest.$ac_ext, and return whether this succeeded. 1981ac_fn_c_try_link () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 rm -f conftest.$ac_objext conftest$ac_exeext 1985 if { { ac_try="$ac_link" 1986case "(($ac_try" in 1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1988 *) ac_try_echo=$ac_try;; 1989esac 1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1991$as_echo "$ac_try_echo"; } >&5 1992 (eval "$ac_link") 2>conftest.err 1993 ac_status=$? 1994 if test -s conftest.err; then 1995 grep -v '^ *+' conftest.err >conftest.er1 1996 cat conftest.er1 >&5 1997 mv -f conftest.er1 conftest.err 1998 fi 1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2000 test $ac_status = 0; } && { 2001 test -z "$ac_c_werror_flag" || 2002 test ! -s conftest.err 2003 } && test -s conftest$ac_exeext && { 2004 test "$cross_compiling" = yes || 2005 test -x conftest$ac_exeext 2006 }; then : 2007 ac_retval=0 2008else 2009 $as_echo "$as_me: failed program was:" >&5 2010sed 's/^/| /' conftest.$ac_ext >&5 2011 2012 ac_retval=1 2013fi 2014 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2015 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2016 # interfere with the next link command; also delete a directory that is 2017 # left behind by Apple's compiler. We do this before executing the actions. 2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2020 as_fn_set_status $ac_retval 2021 2022} # ac_fn_c_try_link 2023 2024# ac_fn_c_check_func LINENO FUNC VAR 2025# ---------------------------------- 2026# Tests whether FUNC exists, setting the cache variable VAR accordingly 2027ac_fn_c_check_func () 2028{ 2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2031$as_echo_n "checking for $2... " >&6; } 2032if eval \${$3+:} false; then : 2033 $as_echo_n "(cached) " >&6 2034else 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2038 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2039#define $2 innocuous_$2 2040 2041/* System header to define __stub macros and hopefully few prototypes, 2042 which can conflict with char $2 (); below. 2043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2044 <limits.h> exists even on freestanding compilers. */ 2045 2046#ifdef __STDC__ 2047# include <limits.h> 2048#else 2049# include <assert.h> 2050#endif 2051 2052#undef $2 2053 2054/* Override any GCC internal prototype to avoid an error. 2055 Use char because int might match the return type of a GCC 2056 builtin and then its argument prototype would still apply. */ 2057#ifdef __cplusplus 2058extern "C" 2059#endif 2060char $2 (); 2061/* The GNU C library defines this for functions which it implements 2062 to always fail with ENOSYS. Some functions are actually named 2063 something starting with __ and the normal name is an alias. */ 2064#if defined __stub_$2 || defined __stub___$2 2065choke me 2066#endif 2067 2068int 2069main () 2070{ 2071return $2 (); 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_link "$LINENO"; then : 2077 eval "$3=yes" 2078else 2079 eval "$3=no" 2080fi 2081rm -f core conftest.err conftest.$ac_objext \ 2082 conftest$ac_exeext conftest.$ac_ext 2083fi 2084eval ac_res=\$$3 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2086$as_echo "$ac_res" >&6; } 2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2088 2089} # ac_fn_c_check_func 2090 2091# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2092# ------------------------------------------- 2093# Tests whether TYPE exists after having included INCLUDES, setting cache 2094# variable VAR accordingly. 2095ac_fn_c_check_type () 2096{ 2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2099$as_echo_n "checking for $2... " >&6; } 2100if eval \${$3+:} false; then : 2101 $as_echo_n "(cached) " >&6 2102else 2103 eval "$3=no" 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107int 2108main () 2109{ 2110if (sizeof ($2)) 2111 return 0; 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116if ac_fn_c_try_compile "$LINENO"; then : 2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120int 2121main () 2122{ 2123if (sizeof (($2))) 2124 return 0; 2125 ; 2126 return 0; 2127} 2128_ACEOF 2129if ac_fn_c_try_compile "$LINENO"; then : 2130 2131else 2132 eval "$3=yes" 2133fi 2134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2135fi 2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2137fi 2138eval ac_res=\$$3 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2140$as_echo "$ac_res" >&6; } 2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2142 2143} # ac_fn_c_check_type 2144 2145# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2146# -------------------------------------------- 2147# Tries to find the compile-time value of EXPR in a program that includes 2148# INCLUDES, setting VAR accordingly. Returns whether the value could be 2149# computed 2150ac_fn_c_compute_int () 2151{ 2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2153 if test "$cross_compiling" = yes; then 2154 # Depending upon the size, compute the lo and hi bounds. 2155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2156/* end confdefs.h. */ 2157$4 2158int 2159main () 2160{ 2161static int test_array [1 - 2 * !(($2) >= 0)]; 2162test_array [0] = 0; 2163return test_array [0]; 2164 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 ac_lo=0 ac_mid=0 2171 while :; do 2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2173/* end confdefs.h. */ 2174$4 2175int 2176main () 2177{ 2178static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2179test_array [0] = 0; 2180return test_array [0]; 2181 2182 ; 2183 return 0; 2184} 2185_ACEOF 2186if ac_fn_c_try_compile "$LINENO"; then : 2187 ac_hi=$ac_mid; break 2188else 2189 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2190 if test $ac_lo -le $ac_mid; then 2191 ac_lo= ac_hi= 2192 break 2193 fi 2194 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197 done 2198else 2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2200/* end confdefs.h. */ 2201$4 2202int 2203main () 2204{ 2205static int test_array [1 - 2 * !(($2) < 0)]; 2206test_array [0] = 0; 2207return test_array [0]; 2208 2209 ; 2210 return 0; 2211} 2212_ACEOF 2213if ac_fn_c_try_compile "$LINENO"; then : 2214 ac_hi=-1 ac_mid=-1 2215 while :; do 2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2217/* end confdefs.h. */ 2218$4 2219int 2220main () 2221{ 2222static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2223test_array [0] = 0; 2224return test_array [0]; 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 ac_lo=$ac_mid; break 2232else 2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2234 if test $ac_mid -le $ac_hi; then 2235 ac_lo= ac_hi= 2236 break 2237 fi 2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2241 done 2242else 2243 ac_lo= ac_hi= 2244fi 2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2246fi 2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2248# Binary search between lo and hi bounds. 2249while test "x$ac_lo" != "x$ac_hi"; do 2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2252/* end confdefs.h. */ 2253$4 2254int 2255main () 2256{ 2257static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2258test_array [0] = 0; 2259return test_array [0]; 2260 2261 ; 2262 return 0; 2263} 2264_ACEOF 2265if ac_fn_c_try_compile "$LINENO"; then : 2266 ac_hi=$ac_mid 2267else 2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2269fi 2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2271done 2272case $ac_lo in #(( 2273?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2274'') ac_retval=1 ;; 2275esac 2276 else 2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2278/* end confdefs.h. */ 2279$4 2280static long int longval () { return $2; } 2281static unsigned long int ulongval () { return $2; } 2282#include <stdio.h> 2283#include <stdlib.h> 2284int 2285main () 2286{ 2287 2288 FILE *f = fopen ("conftest.val", "w"); 2289 if (! f) 2290 return 1; 2291 if (($2) < 0) 2292 { 2293 long int i = longval (); 2294 if (i != ($2)) 2295 return 1; 2296 fprintf (f, "%ld", i); 2297 } 2298 else 2299 { 2300 unsigned long int i = ulongval (); 2301 if (i != ($2)) 2302 return 1; 2303 fprintf (f, "%lu", i); 2304 } 2305 /* Do not output a trailing newline, as this causes \r\n confusion 2306 on some platforms. */ 2307 return ferror (f) || fclose (f) != 0; 2308 2309 ; 2310 return 0; 2311} 2312_ACEOF 2313if ac_fn_c_try_run "$LINENO"; then : 2314 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2315else 2316 ac_retval=1 2317fi 2318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2319 conftest.$ac_objext conftest.beam conftest.$ac_ext 2320rm -f conftest.val 2321 2322 fi 2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2324 as_fn_set_status $ac_retval 2325 2326} # ac_fn_c_compute_int 2327 2328# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2329# --------------------------------------------- 2330# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2331# accordingly. 2332ac_fn_c_check_decl () 2333{ 2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2335 as_decl_name=`echo $2|sed 's/ *(.*//'` 2336 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2338$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2339if eval \${$3+:} false; then : 2340 $as_echo_n "(cached) " >&6 2341else 2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2343/* end confdefs.h. */ 2344$4 2345int 2346main () 2347{ 2348#ifndef $as_decl_name 2349#ifdef __cplusplus 2350 (void) $as_decl_use; 2351#else 2352 (void) $as_decl_name; 2353#endif 2354#endif 2355 2356 ; 2357 return 0; 2358} 2359_ACEOF 2360if ac_fn_c_try_compile "$LINENO"; then : 2361 eval "$3=yes" 2362else 2363 eval "$3=no" 2364fi 2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2366fi 2367eval ac_res=\$$3 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2369$as_echo "$ac_res" >&6; } 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2371 2372} # ac_fn_c_check_decl 2373 2374# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2375# ---------------------------------------------------- 2376# Tries to find if the field MEMBER exists in type AGGR, after including 2377# INCLUDES, setting cache variable VAR accordingly. 2378ac_fn_c_check_member () 2379{ 2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2382$as_echo_n "checking for $2.$3... " >&6; } 2383if eval \${$4+:} false; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2387/* end confdefs.h. */ 2388$5 2389int 2390main () 2391{ 2392static $2 ac_aggr; 2393if (ac_aggr.$3) 2394return 0; 2395 ; 2396 return 0; 2397} 2398_ACEOF 2399if ac_fn_c_try_compile "$LINENO"; then : 2400 eval "$4=yes" 2401else 2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2403/* end confdefs.h. */ 2404$5 2405int 2406main () 2407{ 2408static $2 ac_aggr; 2409if (sizeof ac_aggr.$3) 2410return 0; 2411 ; 2412 return 0; 2413} 2414_ACEOF 2415if ac_fn_c_try_compile "$LINENO"; then : 2416 eval "$4=yes" 2417else 2418 eval "$4=no" 2419fi 2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2421fi 2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2423fi 2424eval ac_res=\$$4 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2426$as_echo "$ac_res" >&6; } 2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2428 2429} # ac_fn_c_check_member 2430cat >config.log <<_ACEOF 2431This file contains any messages produced by compilers while 2432running configure, to aid debugging if configure makes a mistake. 2433 2434It was created by unbound $as_me 1.9.0, which was 2435generated by GNU Autoconf 2.69. Invocation command line was 2436 2437 $ $0 $@ 2438 2439_ACEOF 2440exec 5>>config.log 2441{ 2442cat <<_ASUNAME 2443## --------- ## 2444## Platform. ## 2445## --------- ## 2446 2447hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2448uname -m = `(uname -m) 2>/dev/null || echo unknown` 2449uname -r = `(uname -r) 2>/dev/null || echo unknown` 2450uname -s = `(uname -s) 2>/dev/null || echo unknown` 2451uname -v = `(uname -v) 2>/dev/null || echo unknown` 2452 2453/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2454/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2455 2456/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2457/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2458/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2459/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2460/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2461/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2462/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2463 2464_ASUNAME 2465 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 $as_echo "PATH: $as_dir" 2472 done 2473IFS=$as_save_IFS 2474 2475} >&5 2476 2477cat >&5 <<_ACEOF 2478 2479 2480## ----------- ## 2481## Core tests. ## 2482## ----------- ## 2483 2484_ACEOF 2485 2486 2487# Keep a trace of the command line. 2488# Strip out --no-create and --no-recursion so they do not pile up. 2489# Strip out --silent because we don't want to record it for future runs. 2490# Also quote any args containing shell meta-characters. 2491# Make two passes to allow for proper duplicate-argument suppression. 2492ac_configure_args= 2493ac_configure_args0= 2494ac_configure_args1= 2495ac_must_keep_next=false 2496for ac_pass in 1 2 2497do 2498 for ac_arg 2499 do 2500 case $ac_arg in 2501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2503 | -silent | --silent | --silen | --sile | --sil) 2504 continue ;; 2505 *\'*) 2506 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2507 esac 2508 case $ac_pass in 2509 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2510 2) 2511 as_fn_append ac_configure_args1 " '$ac_arg'" 2512 if test $ac_must_keep_next = true; then 2513 ac_must_keep_next=false # Got value, back to normal. 2514 else 2515 case $ac_arg in 2516 *=* | --config-cache | -C | -disable-* | --disable-* \ 2517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2519 | -with-* | --with-* | -without-* | --without-* | --x) 2520 case "$ac_configure_args0 " in 2521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2522 esac 2523 ;; 2524 -* ) ac_must_keep_next=true ;; 2525 esac 2526 fi 2527 as_fn_append ac_configure_args " '$ac_arg'" 2528 ;; 2529 esac 2530 done 2531done 2532{ ac_configure_args0=; unset ac_configure_args0;} 2533{ ac_configure_args1=; unset ac_configure_args1;} 2534 2535# When interrupted or exit'd, cleanup temporary files, and complete 2536# config.log. We remove comments because anyway the quotes in there 2537# would cause problems or look ugly. 2538# WARNING: Use '\'' to represent an apostrophe within the trap. 2539# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2540trap 'exit_status=$? 2541 # Save into config.log some information that might help in debugging. 2542 { 2543 echo 2544 2545 $as_echo "## ---------------- ## 2546## Cache variables. ## 2547## ---------------- ##" 2548 echo 2549 # The following way of writing the cache mishandles newlines in values, 2550( 2551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2552 eval ac_val=\$$ac_var 2553 case $ac_val in #( 2554 *${as_nl}*) 2555 case $ac_var in #( 2556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2558 esac 2559 case $ac_var in #( 2560 _ | IFS | as_nl) ;; #( 2561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2562 *) { eval $ac_var=; unset $ac_var;} ;; 2563 esac ;; 2564 esac 2565 done 2566 (set) 2>&1 | 2567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2568 *${as_nl}ac_space=\ *) 2569 sed -n \ 2570 "s/'\''/'\''\\\\'\'''\''/g; 2571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2572 ;; #( 2573 *) 2574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2575 ;; 2576 esac | 2577 sort 2578) 2579 echo 2580 2581 $as_echo "## ----------------- ## 2582## Output variables. ## 2583## ----------------- ##" 2584 echo 2585 for ac_var in $ac_subst_vars 2586 do 2587 eval ac_val=\$$ac_var 2588 case $ac_val in 2589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2590 esac 2591 $as_echo "$ac_var='\''$ac_val'\''" 2592 done | sort 2593 echo 2594 2595 if test -n "$ac_subst_files"; then 2596 $as_echo "## ------------------- ## 2597## File substitutions. ## 2598## ------------------- ##" 2599 echo 2600 for ac_var in $ac_subst_files 2601 do 2602 eval ac_val=\$$ac_var 2603 case $ac_val in 2604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2605 esac 2606 $as_echo "$ac_var='\''$ac_val'\''" 2607 done | sort 2608 echo 2609 fi 2610 2611 if test -s confdefs.h; then 2612 $as_echo "## ----------- ## 2613## confdefs.h. ## 2614## ----------- ##" 2615 echo 2616 cat confdefs.h 2617 echo 2618 fi 2619 test "$ac_signal" != 0 && 2620 $as_echo "$as_me: caught signal $ac_signal" 2621 $as_echo "$as_me: exit $exit_status" 2622 } >&5 2623 rm -f core *.core core.conftest.* && 2624 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2625 exit $exit_status 2626' 0 2627for ac_signal in 1 2 13 15; do 2628 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2629done 2630ac_signal=0 2631 2632# confdefs.h avoids OS command line length limits that DEFS can exceed. 2633rm -f -r conftest* confdefs.h 2634 2635$as_echo "/* confdefs.h */" > confdefs.h 2636 2637# Predefined preprocessor variables. 2638 2639cat >>confdefs.h <<_ACEOF 2640#define PACKAGE_NAME "$PACKAGE_NAME" 2641_ACEOF 2642 2643cat >>confdefs.h <<_ACEOF 2644#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2645_ACEOF 2646 2647cat >>confdefs.h <<_ACEOF 2648#define PACKAGE_VERSION "$PACKAGE_VERSION" 2649_ACEOF 2650 2651cat >>confdefs.h <<_ACEOF 2652#define PACKAGE_STRING "$PACKAGE_STRING" 2653_ACEOF 2654 2655cat >>confdefs.h <<_ACEOF 2656#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2657_ACEOF 2658 2659cat >>confdefs.h <<_ACEOF 2660#define PACKAGE_URL "$PACKAGE_URL" 2661_ACEOF 2662 2663 2664# Let the site file select an alternate cache file if it wants to. 2665# Prefer an explicitly selected file to automatically selected ones. 2666ac_site_file1=NONE 2667ac_site_file2=NONE 2668if test -n "$CONFIG_SITE"; then 2669 # We do not want a PATH search for config.site. 2670 case $CONFIG_SITE in #(( 2671 -*) ac_site_file1=./$CONFIG_SITE;; 2672 */*) ac_site_file1=$CONFIG_SITE;; 2673 *) ac_site_file1=./$CONFIG_SITE;; 2674 esac 2675elif test "x$prefix" != xNONE; then 2676 ac_site_file1=$prefix/share/config.site 2677 ac_site_file2=$prefix/etc/config.site 2678else 2679 ac_site_file1=$ac_default_prefix/share/config.site 2680 ac_site_file2=$ac_default_prefix/etc/config.site 2681fi 2682for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2683do 2684 test "x$ac_site_file" = xNONE && continue 2685 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2687$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2688 sed 's/^/| /' "$ac_site_file" >&5 2689 . "$ac_site_file" \ 2690 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2692as_fn_error $? "failed to load site script $ac_site_file 2693See \`config.log' for more details" "$LINENO" 5; } 2694 fi 2695done 2696 2697if test -r "$cache_file"; then 2698 # Some versions of bash will fail to source /dev/null (special files 2699 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2700 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2702$as_echo "$as_me: loading cache $cache_file" >&6;} 2703 case $cache_file in 2704 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2705 *) . "./$cache_file";; 2706 esac 2707 fi 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2710$as_echo "$as_me: creating cache $cache_file" >&6;} 2711 >$cache_file 2712fi 2713 2714# Check that the precious variables saved in the cache have kept the same 2715# value. 2716ac_cache_corrupted=false 2717for ac_var in $ac_precious_vars; do 2718 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2719 eval ac_new_set=\$ac_env_${ac_var}_set 2720 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2721 eval ac_new_val=\$ac_env_${ac_var}_value 2722 case $ac_old_set,$ac_new_set in 2723 set,) 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2725$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2726 ac_cache_corrupted=: ;; 2727 ,set) 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2729$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2730 ac_cache_corrupted=: ;; 2731 ,);; 2732 *) 2733 if test "x$ac_old_val" != "x$ac_new_val"; then 2734 # differences in whitespace do not lead to failure. 2735 ac_old_val_w=`echo x $ac_old_val` 2736 ac_new_val_w=`echo x $ac_new_val` 2737 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2739$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2740 ac_cache_corrupted=: 2741 else 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2743$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2744 eval $ac_var=\$ac_old_val 2745 fi 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2747$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2749$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2750 fi;; 2751 esac 2752 # Pass precious variables to config.status. 2753 if test "$ac_new_set" = set; then 2754 case $ac_new_val in 2755 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2756 *) ac_arg=$ac_var=$ac_new_val ;; 2757 esac 2758 case " $ac_configure_args " in 2759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2760 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2761 esac 2762 fi 2763done 2764if $ac_cache_corrupted; then 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2768$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2769 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2770fi 2771## -------------------- ## 2772## Main body of script. ## 2773## -------------------- ## 2774 2775ac_ext=c 2776ac_cpp='$CPP $CPPFLAGS' 2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2779ac_compiler_gnu=$ac_cv_c_compiler_gnu 2780 2781 2782UNBOUND_VERSION_MAJOR=1 2783 2784UNBOUND_VERSION_MINOR=9 2785 2786UNBOUND_VERSION_MICRO=0 2787 2788 2789LIBUNBOUND_CURRENT=9 2790LIBUNBOUND_REVISION=0 2791LIBUNBOUND_AGE=1 2792# 1.0.0 had 0:12:0 2793# 1.0.1 had 0:13:0 2794# 1.0.2 had 0:14:0 2795# 1.1.0 had 0:15:0 2796# 1.1.1 had 0:16:0 2797# 1.2.0 had 0:17:0 2798# 1.2.1 had 0:18:0 2799# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2800# 1.3.1 had 1:1:0 2801# 1.3.2 had 1:2:0 2802# 1.3.3 had 1:3:0 2803# 1.3.4 had 1:4:0 2804# 1.4.0-snapshots had 1:5:0 2805# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2806# 1.4.1 had 2:1:0 2807# 1.4.2 had 2:2:0 2808# 1.4.3 had 2:3:0 2809# 1.4.4 had 2:4:0 2810# 1.4.5 had 2:5:0 2811# 1.4.6 had 2:6:0 2812# 1.4.7 had 2:7:0 2813# 1.4.8 had 2:8:0 2814# 1.4.9 had 2:9:0 2815# 1.4.10 had 2:10:0 2816# 1.4.11 had 2:11:0 2817# 1.4.12 had 2:12:0 2818# 1.4.13 had 2:13:0 2819# and 1.4.13p1 and 1.4.13.p2 2820# 1.4.14 had 2:14:0 2821# 1.4.15 had 3:0:1 # adds ub_version() 2822# 1.4.16 had 3:1:1 2823# 1.4.17 had 3:2:1 2824# 1.4.18 had 3:3:1 2825# 1.4.19 had 3:4:1 2826# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2827# 1.4.21 had 4:1:2 2828# 1.4.22 had 4:1:2 2829# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2830# 1.5.1 had 5:3:3 2831# 1.5.2 had 5:5:3 2832# 1.5.3 had 5:6:3 2833# 1.5.4 had 5:7:3 2834# 1.5.5 had 5:8:3 2835# 1.5.6 had 5:9:3 2836# 1.5.7 had 5:10:3 2837# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 2838# 1.5.9 had 6:1:4 2839# 1.5.10 had 6:2:4 2840# 1.6.0 had 6:3:4 2841# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 2842# 1.6.2 had 7:1:5 2843# 1.6.3 had 7:2:5 2844# 1.6.4 had 7:3:5 2845# 1.6.5 had 7:4:5 2846# 1.6.6 had 7:5:5 2847# 1.6.7 had 7:6:5 2848# 1.6.8 had 7:7:5 2849# 1.7.0 had 7:8:5 2850# 1.7.1 had 7:9:5 2851# 1.7.2 had 7:10:5 2852# 1.7.3 had 7:11:5 2853# 1.8.0 had 8:0:0 # changes the event callback function signature 2854# 1.8.1 had 8:1:0 2855# 1.8.2 had 8:2:0 2856# 1.8.3 had 8:3:0 2857# 1.8.4 had 9:0:1 # add ub_ctx_set_tls 2858 2859# Current -- the number of the binary API that we're implementing 2860# Revision -- which iteration of the implementation of the binary 2861# API are we supplying? 2862# Age -- How many previous binary API versions do we also 2863# support? 2864# 2865# If we release a new version that does not change the binary API, 2866# increment Revision. 2867# 2868# If we release a new version that changes the binary API, but does 2869# not break programs compiled against the old binary API, increment 2870# Current and Age. Set Revision to 0, since this is the first 2871# implementation of the new API. 2872# 2873# Otherwise, we're changing the binary API and breaking backward 2874# compatibility with old binaries. Increment Current. Set Age to 0, 2875# since we're backward compatible with no previous APIs. Set Revision 2876# to 0 too. 2877 2878 2879 2880 2881CFLAGS="$CFLAGS" 2882ac_ext=c 2883ac_cpp='$CPP $CPPFLAGS' 2884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2886ac_compiler_gnu=$ac_cv_c_compiler_gnu 2887if test -n "$ac_tool_prefix"; then 2888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2889set dummy ${ac_tool_prefix}gcc; ac_word=$2 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891$as_echo_n "checking for $ac_word... " >&6; } 2892if ${ac_cv_prog_CC+:} false; then : 2893 $as_echo_n "(cached) " >&6 2894else 2895 if test -n "$CC"; then 2896 ac_cv_prog_CC="$CC" # Let the user override the test. 2897else 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910 done 2911IFS=$as_save_IFS 2912 2913fi 2914fi 2915CC=$ac_cv_prog_CC 2916if test -n "$CC"; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2918$as_echo "$CC" >&6; } 2919else 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921$as_echo "no" >&6; } 2922fi 2923 2924 2925fi 2926if test -z "$ac_cv_prog_CC"; then 2927 ac_ct_CC=$CC 2928 # Extract the first word of "gcc", so it can be a program name with args. 2929set dummy gcc; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_prog_ac_ct_CC+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$ac_ct_CC"; then 2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_prog_ac_ct_CC="gcc" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954fi 2955ac_ct_CC=$ac_cv_prog_ac_ct_CC 2956if test -n "$ac_ct_CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2958$as_echo "$ac_ct_CC" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 if test "x$ac_ct_CC" = x; then 2965 CC="" 2966 else 2967 case $cross_compiling:$ac_tool_warned in 2968yes:) 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2971ac_tool_warned=yes ;; 2972esac 2973 CC=$ac_ct_CC 2974 fi 2975else 2976 CC="$ac_cv_prog_CC" 2977fi 2978 2979if test -z "$CC"; then 2980 if test -n "$ac_tool_prefix"; then 2981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2982set dummy ${ac_tool_prefix}cc; ac_word=$2 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984$as_echo_n "checking for $ac_word... " >&6; } 2985if ${ac_cv_prog_CC+:} false; then : 2986 $as_echo_n "(cached) " >&6 2987else 2988 if test -n "$CC"; then 2989 ac_cv_prog_CC="$CC" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 test -z "$as_dir" && as_dir=. 2996 for ac_exec_ext in '' $ac_executable_extensions; do 2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2998 ac_cv_prog_CC="${ac_tool_prefix}cc" 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002done 3003 done 3004IFS=$as_save_IFS 3005 3006fi 3007fi 3008CC=$ac_cv_prog_CC 3009if test -n "$CC"; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3011$as_echo "$CC" >&6; } 3012else 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3014$as_echo "no" >&6; } 3015fi 3016 3017 3018 fi 3019fi 3020if test -z "$CC"; then 3021 # Extract the first word of "cc", so it can be a program name with args. 3022set dummy cc; ac_word=$2 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024$as_echo_n "checking for $ac_word... " >&6; } 3025if ${ac_cv_prog_CC+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027else 3028 if test -n "$CC"; then 3029 ac_cv_prog_CC="$CC" # Let the user override the test. 3030else 3031 ac_prog_rejected=no 3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3033for as_dir in $PATH 3034do 3035 IFS=$as_save_IFS 3036 test -z "$as_dir" && as_dir=. 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3040 ac_prog_rejected=yes 3041 continue 3042 fi 3043 ac_cv_prog_CC="cc" 3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3045 break 2 3046 fi 3047done 3048 done 3049IFS=$as_save_IFS 3050 3051if test $ac_prog_rejected = yes; then 3052 # We found a bogon in the path, so make sure we never use it. 3053 set dummy $ac_cv_prog_CC 3054 shift 3055 if test $# != 0; then 3056 # We chose a different compiler from the bogus one. 3057 # However, it has the same basename, so the bogon will be chosen 3058 # first if we set CC to just the basename; use the full file name. 3059 shift 3060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3061 fi 3062fi 3063fi 3064fi 3065CC=$ac_cv_prog_CC 3066if test -n "$CC"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3068$as_echo "$CC" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075fi 3076if test -z "$CC"; then 3077 if test -n "$ac_tool_prefix"; then 3078 for ac_prog in cl.exe 3079 do 3080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3081set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3083$as_echo_n "checking for $ac_word... " >&6; } 3084if ${ac_cv_prog_CC+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 if test -n "$CC"; then 3088 ac_cv_prog_CC="$CC" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102 done 3103IFS=$as_save_IFS 3104 3105fi 3106fi 3107CC=$ac_cv_prog_CC 3108if test -n "$CC"; then 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3110$as_echo "$CC" >&6; } 3111else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113$as_echo "no" >&6; } 3114fi 3115 3116 3117 test -n "$CC" && break 3118 done 3119fi 3120if test -z "$CC"; then 3121 ac_ct_CC=$CC 3122 for ac_prog in cl.exe 3123do 3124 # Extract the first word of "$ac_prog", so it can be a program name with args. 3125set dummy $ac_prog; ac_word=$2 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127$as_echo_n "checking for $ac_word... " >&6; } 3128if ${ac_cv_prog_ac_ct_CC+:} false; then : 3129 $as_echo_n "(cached) " >&6 3130else 3131 if test -n "$ac_ct_CC"; then 3132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3133else 3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3135for as_dir in $PATH 3136do 3137 IFS=$as_save_IFS 3138 test -z "$as_dir" && as_dir=. 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3141 ac_cv_prog_ac_ct_CC="$ac_prog" 3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3143 break 2 3144 fi 3145done 3146 done 3147IFS=$as_save_IFS 3148 3149fi 3150fi 3151ac_ct_CC=$ac_cv_prog_ac_ct_CC 3152if test -n "$ac_ct_CC"; then 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3154$as_echo "$ac_ct_CC" >&6; } 3155else 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158fi 3159 3160 3161 test -n "$ac_ct_CC" && break 3162done 3163 3164 if test "x$ac_ct_CC" = x; then 3165 CC="" 3166 else 3167 case $cross_compiling:$ac_tool_warned in 3168yes:) 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3171ac_tool_warned=yes ;; 3172esac 3173 CC=$ac_ct_CC 3174 fi 3175fi 3176 3177fi 3178 3179 3180test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3182as_fn_error $? "no acceptable C compiler found in \$PATH 3183See \`config.log' for more details" "$LINENO" 5; } 3184 3185# Provide some information about the compiler. 3186$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3187set X $ac_compile 3188ac_compiler=$2 3189for ac_option in --version -v -V -qversion; do 3190 { { ac_try="$ac_compiler $ac_option >&5" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3196$as_echo "$ac_try_echo"; } >&5 3197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3198 ac_status=$? 3199 if test -s conftest.err; then 3200 sed '10a\ 3201... rest of stderr output deleted ... 3202 10q' conftest.err >conftest.er1 3203 cat conftest.er1 >&5 3204 fi 3205 rm -f conftest.er1 conftest.err 3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3207 test $ac_status = 0; } 3208done 3209 3210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3211/* end confdefs.h. */ 3212 3213int 3214main () 3215{ 3216 3217 ; 3218 return 0; 3219} 3220_ACEOF 3221ac_clean_files_save=$ac_clean_files 3222ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3223# Try to create an executable without -o first, disregard a.out. 3224# It will help us diagnose broken compilers, and finding out an intuition 3225# of exeext. 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3227$as_echo_n "checking whether the C compiler works... " >&6; } 3228ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3229 3230# The possible output files: 3231ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3232 3233ac_rmfiles= 3234for ac_file in $ac_files 3235do 3236 case $ac_file in 3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3239 esac 3240done 3241rm -f $ac_rmfiles 3242 3243if { { ac_try="$ac_link_default" 3244case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247esac 3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3249$as_echo "$ac_try_echo"; } >&5 3250 (eval "$ac_link_default") 2>&5 3251 ac_status=$? 3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3253 test $ac_status = 0; }; then : 3254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3255# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3256# in a Makefile. We should not override ac_cv_exeext if it was cached, 3257# so that the user can short-circuit this test for compilers unknown to 3258# Autoconf. 3259for ac_file in $ac_files '' 3260do 3261 test -f "$ac_file" || continue 3262 case $ac_file in 3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3264 ;; 3265 [ab].out ) 3266 # We found the default executable, but exeext='' is most 3267 # certainly right. 3268 break;; 3269 *.* ) 3270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3271 then :; else 3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3273 fi 3274 # We set ac_cv_exeext here because the later test for it is not 3275 # safe: cross compilers may not add the suffix if given an `-o' 3276 # argument, so we may need to know it at that point already. 3277 # Even if this section looks crufty: it has the advantage of 3278 # actually working. 3279 break;; 3280 * ) 3281 break;; 3282 esac 3283done 3284test "$ac_cv_exeext" = no && ac_cv_exeext= 3285 3286else 3287 ac_file='' 3288fi 3289if test -z "$ac_file"; then : 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3291$as_echo "no" >&6; } 3292$as_echo "$as_me: failed program was:" >&5 3293sed 's/^/| /' conftest.$ac_ext >&5 3294 3295{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3297as_fn_error 77 "C compiler cannot create executables 3298See \`config.log' for more details" "$LINENO" 5; } 3299else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3301$as_echo "yes" >&6; } 3302fi 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3304$as_echo_n "checking for C compiler default output file name... " >&6; } 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3306$as_echo "$ac_file" >&6; } 3307ac_exeext=$ac_cv_exeext 3308 3309rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3310ac_clean_files=$ac_clean_files_save 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3312$as_echo_n "checking for suffix of executables... " >&6; } 3313if { { ac_try="$ac_link" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3319$as_echo "$ac_try_echo"; } >&5 3320 (eval "$ac_link") 2>&5 3321 ac_status=$? 3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3323 test $ac_status = 0; }; then : 3324 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3325# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3326# work properly (i.e., refer to `conftest.exe'), while it won't with 3327# `rm'. 3328for ac_file in conftest.exe conftest conftest.*; do 3329 test -f "$ac_file" || continue 3330 case $ac_file in 3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3333 break;; 3334 * ) break;; 3335 esac 3336done 3337else 3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3340as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3341See \`config.log' for more details" "$LINENO" 5; } 3342fi 3343rm -f conftest conftest$ac_cv_exeext 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3345$as_echo "$ac_cv_exeext" >&6; } 3346 3347rm -f conftest.$ac_ext 3348EXEEXT=$ac_cv_exeext 3349ac_exeext=$EXEEXT 3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351/* end confdefs.h. */ 3352#include <stdio.h> 3353int 3354main () 3355{ 3356FILE *f = fopen ("conftest.out", "w"); 3357 return ferror (f) || fclose (f) != 0; 3358 3359 ; 3360 return 0; 3361} 3362_ACEOF 3363ac_clean_files="$ac_clean_files conftest.out" 3364# Check that the compiler produces executables we can run. If not, either 3365# the compiler is broken, or we cross compile. 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3367$as_echo_n "checking whether we are cross compiling... " >&6; } 3368if test "$cross_compiling" != yes; then 3369 { { ac_try="$ac_link" 3370case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3375$as_echo "$ac_try_echo"; } >&5 3376 (eval "$ac_link") 2>&5 3377 ac_status=$? 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; } 3380 if { ac_try='./conftest$ac_cv_exeext' 3381 { { case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386$as_echo "$ac_try_echo"; } >&5 3387 (eval "$ac_try") 2>&5 3388 ac_status=$? 3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390 test $ac_status = 0; }; }; then 3391 cross_compiling=no 3392 else 3393 if test "$cross_compiling" = maybe; then 3394 cross_compiling=yes 3395 else 3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398as_fn_error $? "cannot run C compiled programs. 3399If you meant to cross compile, use \`--host'. 3400See \`config.log' for more details" "$LINENO" 5; } 3401 fi 3402 fi 3403fi 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3405$as_echo "$cross_compiling" >&6; } 3406 3407rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3408ac_clean_files=$ac_clean_files_save 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3410$as_echo_n "checking for suffix of object files... " >&6; } 3411if ${ac_cv_objext+:} false; then : 3412 $as_echo_n "(cached) " >&6 3413else 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416 3417int 3418main () 3419{ 3420 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425rm -f conftest.o conftest.obj 3426if { { ac_try="$ac_compile" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_compile") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; }; then : 3437 for ac_file in conftest.o conftest.obj conftest.*; do 3438 test -f "$ac_file" || continue; 3439 case $ac_file in 3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3442 break;; 3443 esac 3444done 3445else 3446 $as_echo "$as_me: failed program was:" >&5 3447sed 's/^/| /' conftest.$ac_ext >&5 3448 3449{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3451as_fn_error $? "cannot compute suffix of object files: cannot compile 3452See \`config.log' for more details" "$LINENO" 5; } 3453fi 3454rm -f conftest.$ac_cv_objext conftest.$ac_ext 3455fi 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3457$as_echo "$ac_cv_objext" >&6; } 3458OBJEXT=$ac_cv_objext 3459ac_objext=$OBJEXT 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3461$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3462if ${ac_cv_c_compiler_gnu+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467 3468int 3469main () 3470{ 3471#ifndef __GNUC__ 3472 choke me 3473#endif 3474 3475 ; 3476 return 0; 3477} 3478_ACEOF 3479if ac_fn_c_try_compile "$LINENO"; then : 3480 ac_compiler_gnu=yes 3481else 3482 ac_compiler_gnu=no 3483fi 3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3485ac_cv_c_compiler_gnu=$ac_compiler_gnu 3486 3487fi 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3489$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3490if test $ac_compiler_gnu = yes; then 3491 GCC=yes 3492else 3493 GCC= 3494fi 3495ac_test_CFLAGS=${CFLAGS+set} 3496ac_save_CFLAGS=$CFLAGS 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3498$as_echo_n "checking whether $CC accepts -g... " >&6; } 3499if ${ac_cv_prog_cc_g+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 ac_save_c_werror_flag=$ac_c_werror_flag 3503 ac_c_werror_flag=yes 3504 ac_cv_prog_cc_g=no 3505 CFLAGS="-g" 3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 ac_cv_prog_cc_g=yes 3519else 3520 CFLAGS="" 3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3522/* end confdefs.h. */ 3523 3524int 3525main () 3526{ 3527 3528 ; 3529 return 0; 3530} 3531_ACEOF 3532if ac_fn_c_try_compile "$LINENO"; then : 3533 3534else 3535 ac_c_werror_flag=$ac_save_c_werror_flag 3536 CFLAGS="-g" 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543 3544 ; 3545 return 0; 3546} 3547_ACEOF 3548if ac_fn_c_try_compile "$LINENO"; then : 3549 ac_cv_prog_cc_g=yes 3550fi 3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3552fi 3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3554fi 3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3556 ac_c_werror_flag=$ac_save_c_werror_flag 3557fi 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3559$as_echo "$ac_cv_prog_cc_g" >&6; } 3560if test "$ac_test_CFLAGS" = set; then 3561 CFLAGS=$ac_save_CFLAGS 3562elif test $ac_cv_prog_cc_g = yes; then 3563 if test "$GCC" = yes; then 3564 CFLAGS="-g -O2" 3565 else 3566 CFLAGS="-g" 3567 fi 3568else 3569 if test "$GCC" = yes; then 3570 CFLAGS="-O2" 3571 else 3572 CFLAGS= 3573 fi 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3576$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3577if ${ac_cv_prog_cc_c89+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 ac_cv_prog_cc_c89=no 3581ac_save_CC=$CC 3582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3583/* end confdefs.h. */ 3584#include <stdarg.h> 3585#include <stdio.h> 3586struct stat; 3587/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3588struct buf { int x; }; 3589FILE * (*rcsopen) (struct buf *, struct stat *, int); 3590static char *e (p, i) 3591 char **p; 3592 int i; 3593{ 3594 return p[i]; 3595} 3596static char *f (char * (*g) (char **, int), char **p, ...) 3597{ 3598 char *s; 3599 va_list v; 3600 va_start (v,p); 3601 s = g (p, va_arg (v,int)); 3602 va_end (v); 3603 return s; 3604} 3605 3606/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3607 function prototypes and stuff, but not '\xHH' hex character constants. 3608 These don't provoke an error unfortunately, instead are silently treated 3609 as 'x'. The following induces an error, until -std is added to get 3610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3611 array size at least. It's necessary to write '\x00'==0 to get something 3612 that's true only with -std. */ 3613int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3614 3615/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3616 inside strings and character constants. */ 3617#define FOO(x) 'x' 3618int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3619 3620int test (int i, double x); 3621struct s1 {int (*f) (int a);}; 3622struct s2 {int (*f) (double a);}; 3623int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3624int argc; 3625char **argv; 3626int 3627main () 3628{ 3629return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3636do 3637 CC="$ac_save_CC $ac_arg" 3638 if ac_fn_c_try_compile "$LINENO"; then : 3639 ac_cv_prog_cc_c89=$ac_arg 3640fi 3641rm -f core conftest.err conftest.$ac_objext 3642 test "x$ac_cv_prog_cc_c89" != "xno" && break 3643done 3644rm -f conftest.$ac_ext 3645CC=$ac_save_CC 3646 3647fi 3648# AC_CACHE_VAL 3649case "x$ac_cv_prog_cc_c89" in 3650 x) 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3652$as_echo "none needed" >&6; } ;; 3653 xno) 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3655$as_echo "unsupported" >&6; } ;; 3656 *) 3657 CC="$CC $ac_cv_prog_cc_c89" 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3659$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3660esac 3661if test "x$ac_cv_prog_cc_c89" != xno; then : 3662 3663fi 3664 3665ac_ext=c 3666ac_cpp='$CPP $CPPFLAGS' 3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3669ac_compiler_gnu=$ac_cv_c_compiler_gnu 3670 3671 3672ac_ext=c 3673ac_cpp='$CPP $CPPFLAGS' 3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3676ac_compiler_gnu=$ac_cv_c_compiler_gnu 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3678$as_echo_n "checking how to run the C preprocessor... " >&6; } 3679# On Suns, sometimes $CPP names a directory. 3680if test -n "$CPP" && test -d "$CPP"; then 3681 CPP= 3682fi 3683if test -z "$CPP"; then 3684 if ${ac_cv_prog_CPP+:} false; then : 3685 $as_echo_n "(cached) " >&6 3686else 3687 # Double quotes because CPP needs to be expanded 3688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3689 do 3690 ac_preproc_ok=false 3691for ac_c_preproc_warn_flag in '' yes 3692do 3693 # Use a header file that comes with gcc, so configuring glibc 3694 # with a fresh cross-compiler works. 3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3696 # <limits.h> exists even on freestanding compilers. 3697 # On the NeXT, cc -E runs the code through the compiler's parser, 3698 # not just through cpp. "Syntax error" is here to catch this case. 3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3700/* end confdefs.h. */ 3701#ifdef __STDC__ 3702# include <limits.h> 3703#else 3704# include <assert.h> 3705#endif 3706 Syntax error 3707_ACEOF 3708if ac_fn_c_try_cpp "$LINENO"; then : 3709 3710else 3711 # Broken: fails on valid input. 3712continue 3713fi 3714rm -f conftest.err conftest.i conftest.$ac_ext 3715 3716 # OK, works on sane cases. Now check whether nonexistent headers 3717 # can be detected and how. 3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3719/* end confdefs.h. */ 3720#include <ac_nonexistent.h> 3721_ACEOF 3722if ac_fn_c_try_cpp "$LINENO"; then : 3723 # Broken: success on invalid input. 3724continue 3725else 3726 # Passes both tests. 3727ac_preproc_ok=: 3728break 3729fi 3730rm -f conftest.err conftest.i conftest.$ac_ext 3731 3732done 3733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3734rm -f conftest.i conftest.err conftest.$ac_ext 3735if $ac_preproc_ok; then : 3736 break 3737fi 3738 3739 done 3740 ac_cv_prog_CPP=$CPP 3741 3742fi 3743 CPP=$ac_cv_prog_CPP 3744else 3745 ac_cv_prog_CPP=$CPP 3746fi 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3748$as_echo "$CPP" >&6; } 3749ac_preproc_ok=false 3750for ac_c_preproc_warn_flag in '' yes 3751do 3752 # Use a header file that comes with gcc, so configuring glibc 3753 # with a fresh cross-compiler works. 3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3755 # <limits.h> exists even on freestanding compilers. 3756 # On the NeXT, cc -E runs the code through the compiler's parser, 3757 # not just through cpp. "Syntax error" is here to catch this case. 3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3759/* end confdefs.h. */ 3760#ifdef __STDC__ 3761# include <limits.h> 3762#else 3763# include <assert.h> 3764#endif 3765 Syntax error 3766_ACEOF 3767if ac_fn_c_try_cpp "$LINENO"; then : 3768 3769else 3770 # Broken: fails on valid input. 3771continue 3772fi 3773rm -f conftest.err conftest.i conftest.$ac_ext 3774 3775 # OK, works on sane cases. Now check whether nonexistent headers 3776 # can be detected and how. 3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779#include <ac_nonexistent.h> 3780_ACEOF 3781if ac_fn_c_try_cpp "$LINENO"; then : 3782 # Broken: success on invalid input. 3783continue 3784else 3785 # Passes both tests. 3786ac_preproc_ok=: 3787break 3788fi 3789rm -f conftest.err conftest.i conftest.$ac_ext 3790 3791done 3792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3793rm -f conftest.i conftest.err conftest.$ac_ext 3794if $ac_preproc_ok; then : 3795 3796else 3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3799as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3800See \`config.log' for more details" "$LINENO" 5; } 3801fi 3802 3803ac_ext=c 3804ac_cpp='$CPP $CPPFLAGS' 3805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3807ac_compiler_gnu=$ac_cv_c_compiler_gnu 3808 3809 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3811$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3812if ${ac_cv_path_GREP+:} false; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 if test -z "$GREP"; then 3816 ac_path_GREP_found=false 3817 # Loop through the user's path and test for each of PROGNAME-LIST 3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3820do 3821 IFS=$as_save_IFS 3822 test -z "$as_dir" && as_dir=. 3823 for ac_prog in grep ggrep; do 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3826 as_fn_executable_p "$ac_path_GREP" || continue 3827# Check for GNU ac_path_GREP and select it if it is found. 3828 # Check for GNU $ac_path_GREP 3829case `"$ac_path_GREP" --version 2>&1` in 3830*GNU*) 3831 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3832*) 3833 ac_count=0 3834 $as_echo_n 0123456789 >"conftest.in" 3835 while : 3836 do 3837 cat "conftest.in" "conftest.in" >"conftest.tmp" 3838 mv "conftest.tmp" "conftest.in" 3839 cp "conftest.in" "conftest.nl" 3840 $as_echo 'GREP' >> "conftest.nl" 3841 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3843 as_fn_arith $ac_count + 1 && ac_count=$as_val 3844 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3845 # Best one so far, save it but keep looking for a better one 3846 ac_cv_path_GREP="$ac_path_GREP" 3847 ac_path_GREP_max=$ac_count 3848 fi 3849 # 10*(2^10) chars as input seems more than enough 3850 test $ac_count -gt 10 && break 3851 done 3852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3853esac 3854 3855 $ac_path_GREP_found && break 3 3856 done 3857 done 3858 done 3859IFS=$as_save_IFS 3860 if test -z "$ac_cv_path_GREP"; then 3861 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3862 fi 3863else 3864 ac_cv_path_GREP=$GREP 3865fi 3866 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3869$as_echo "$ac_cv_path_GREP" >&6; } 3870 GREP="$ac_cv_path_GREP" 3871 3872 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3874$as_echo_n "checking for egrep... " >&6; } 3875if ${ac_cv_path_EGREP+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3879 then ac_cv_path_EGREP="$GREP -E" 3880 else 3881 if test -z "$EGREP"; then 3882 ac_path_EGREP_found=false 3883 # Loop through the user's path and test for each of PROGNAME-LIST 3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3885for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3886do 3887 IFS=$as_save_IFS 3888 test -z "$as_dir" && as_dir=. 3889 for ac_prog in egrep; do 3890 for ac_exec_ext in '' $ac_executable_extensions; do 3891 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3892 as_fn_executable_p "$ac_path_EGREP" || continue 3893# Check for GNU ac_path_EGREP and select it if it is found. 3894 # Check for GNU $ac_path_EGREP 3895case `"$ac_path_EGREP" --version 2>&1` in 3896*GNU*) 3897 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3898*) 3899 ac_count=0 3900 $as_echo_n 0123456789 >"conftest.in" 3901 while : 3902 do 3903 cat "conftest.in" "conftest.in" >"conftest.tmp" 3904 mv "conftest.tmp" "conftest.in" 3905 cp "conftest.in" "conftest.nl" 3906 $as_echo 'EGREP' >> "conftest.nl" 3907 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3909 as_fn_arith $ac_count + 1 && ac_count=$as_val 3910 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3911 # Best one so far, save it but keep looking for a better one 3912 ac_cv_path_EGREP="$ac_path_EGREP" 3913 ac_path_EGREP_max=$ac_count 3914 fi 3915 # 10*(2^10) chars as input seems more than enough 3916 test $ac_count -gt 10 && break 3917 done 3918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3919esac 3920 3921 $ac_path_EGREP_found && break 3 3922 done 3923 done 3924 done 3925IFS=$as_save_IFS 3926 if test -z "$ac_cv_path_EGREP"; then 3927 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3928 fi 3929else 3930 ac_cv_path_EGREP=$EGREP 3931fi 3932 3933 fi 3934fi 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3936$as_echo "$ac_cv_path_EGREP" >&6; } 3937 EGREP="$ac_cv_path_EGREP" 3938 3939 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3941$as_echo_n "checking for ANSI C header files... " >&6; } 3942if ${ac_cv_header_stdc+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946/* end confdefs.h. */ 3947#include <stdlib.h> 3948#include <stdarg.h> 3949#include <string.h> 3950#include <float.h> 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960if ac_fn_c_try_compile "$LINENO"; then : 3961 ac_cv_header_stdc=yes 3962else 3963 ac_cv_header_stdc=no 3964fi 3965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3966 3967if test $ac_cv_header_stdc = yes; then 3968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3970/* end confdefs.h. */ 3971#include <string.h> 3972 3973_ACEOF 3974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3975 $EGREP "memchr" >/dev/null 2>&1; then : 3976 3977else 3978 ac_cv_header_stdc=no 3979fi 3980rm -f conftest* 3981 3982fi 3983 3984if test $ac_cv_header_stdc = yes; then 3985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988#include <stdlib.h> 3989 3990_ACEOF 3991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3992 $EGREP "free" >/dev/null 2>&1; then : 3993 3994else 3995 ac_cv_header_stdc=no 3996fi 3997rm -f conftest* 3998 3999fi 4000 4001if test $ac_cv_header_stdc = yes; then 4002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4003 if test "$cross_compiling" = yes; then : 4004 : 4005else 4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4007/* end confdefs.h. */ 4008#include <ctype.h> 4009#include <stdlib.h> 4010#if ((' ' & 0x0FF) == 0x020) 4011# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4012# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4013#else 4014# define ISLOWER(c) \ 4015 (('a' <= (c) && (c) <= 'i') \ 4016 || ('j' <= (c) && (c) <= 'r') \ 4017 || ('s' <= (c) && (c) <= 'z')) 4018# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4019#endif 4020 4021#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4022int 4023main () 4024{ 4025 int i; 4026 for (i = 0; i < 256; i++) 4027 if (XOR (islower (i), ISLOWER (i)) 4028 || toupper (i) != TOUPPER (i)) 4029 return 2; 4030 return 0; 4031} 4032_ACEOF 4033if ac_fn_c_try_run "$LINENO"; then : 4034 4035else 4036 ac_cv_header_stdc=no 4037fi 4038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4039 conftest.$ac_objext conftest.beam conftest.$ac_ext 4040fi 4041 4042fi 4043fi 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4045$as_echo "$ac_cv_header_stdc" >&6; } 4046if test $ac_cv_header_stdc = yes; then 4047 4048$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4049 4050fi 4051 4052# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4053for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4054 inttypes.h stdint.h unistd.h 4055do : 4056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4057ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4058" 4059if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4060 cat >>confdefs.h <<_ACEOF 4061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4062_ACEOF 4063 4064fi 4065 4066done 4067 4068 4069 4070 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4071if test "x$ac_cv_header_minix_config_h" = xyes; then : 4072 MINIX=yes 4073else 4074 MINIX= 4075fi 4076 4077 4078 if test "$MINIX" = yes; then 4079 4080$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4081 4082 4083$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4084 4085 4086$as_echo "#define _MINIX 1" >>confdefs.h 4087 4088 fi 4089 4090 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4092$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4093if ${ac_cv_safe_to_define___extensions__+:} false; then : 4094 $as_echo_n "(cached) " >&6 4095else 4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4097/* end confdefs.h. */ 4098 4099# define __EXTENSIONS__ 1 4100 $ac_includes_default 4101int 4102main () 4103{ 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109if ac_fn_c_try_compile "$LINENO"; then : 4110 ac_cv_safe_to_define___extensions__=yes 4111else 4112 ac_cv_safe_to_define___extensions__=no 4113fi 4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4115fi 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4117$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4118 test $ac_cv_safe_to_define___extensions__ = yes && 4119 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4120 4121 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4122 4123 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4124 4125 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4126 4127 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4128 4129 4130 4131if test "$ac_cv_header_minix_config_h" = "yes"; then 4132 4133$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4134 4135fi 4136 4137case "$prefix" in 4138 NONE) 4139 prefix="/usr/local" 4140 ;; 4141esac 4142case "$exec_prefix" in 4143 NONE) 4144 exec_prefix="$prefix" 4145 ;; 4146esac 4147 4148# are we on MinGW? 4149if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4150else 4151 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes" 4152 else on_mingw="no"; fi 4153fi 4154 4155# 4156# Determine configuration file 4157# the eval is to evaluate shell expansion twice 4158UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4159 4160UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4161 4162UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4163 4164if test $on_mingw = "no"; then 4165 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4166else 4167 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4168fi 4169 4170# Check whether --with-conf_file was given. 4171if test "${with_conf_file+set}" = set; then : 4172 withval=$with_conf_file; ub_conf_file="$withval" 4173fi 4174 4175 4176hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4177 4178 4179cat >>confdefs.h <<_ACEOF 4180#define CONFIGFILE "$hdr_config" 4181_ACEOF 4182 4183ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4184$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4185 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4186 X"$ub_conf_file" : 'X\(//\)$' \| \ 4187 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4188$as_echo X"$ub_conf_file" | 4189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4190 s//\1/ 4191 q 4192 } 4193 /^X\(\/\/\)[^/].*/{ 4194 s//\1/ 4195 q 4196 } 4197 /^X\(\/\/\)$/{ 4198 s//\1/ 4199 q 4200 } 4201 /^X\(\/\).*/{ 4202 s//\1/ 4203 q 4204 } 4205 s/.*/./; q'` 4206 4207 4208# Determine run, chroot directory and pidfile locations 4209 4210# Check whether --with-run-dir was given. 4211if test "${with_run_dir+set}" = set; then : 4212 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4213else 4214 if test $on_mingw = no; then 4215 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4216else 4217 UNBOUND_RUN_DIR="" 4218fi 4219 4220fi 4221 4222 4223hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4224 4225 4226cat >>confdefs.h <<_ACEOF 4227#define RUN_DIR "$hdr_run" 4228_ACEOF 4229 4230 4231 4232# Check whether --with-chroot-dir was given. 4233if test "${with_chroot_dir+set}" = set; then : 4234 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4235else 4236 if test $on_mingw = no; then 4237 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4238else 4239 UNBOUND_CHROOT_DIR="" 4240fi 4241 4242fi 4243 4244 4245hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4246 4247 4248cat >>confdefs.h <<_ACEOF 4249#define CHROOT_DIR "$hdr_chroot" 4250_ACEOF 4251 4252 4253 4254# Check whether --with-share-dir was given. 4255if test "${with_share_dir+set}" = set; then : 4256 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4257else 4258 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4259fi 4260 4261 4262 4263cat >>confdefs.h <<_ACEOF 4264#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4265_ACEOF 4266 4267 4268 4269# Check whether --with-pidfile was given. 4270if test "${with_pidfile+set}" = set; then : 4271 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4272else 4273 if test $on_mingw = no; then 4274 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4275else 4276 UNBOUND_PIDFILE="" 4277fi 4278 4279fi 4280 4281 4282hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4283 4284 4285cat >>confdefs.h <<_ACEOF 4286#define PIDFILE "$hdr_pid" 4287_ACEOF 4288 4289 4290 4291# Check whether --with-rootkey-file was given. 4292if test "${with_rootkey_file+set}" = set; then : 4293 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4294else 4295 if test $on_mingw = no; then 4296 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4297else 4298 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4299fi 4300 4301fi 4302 4303 4304hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4305 4306 4307cat >>confdefs.h <<_ACEOF 4308#define ROOT_ANCHOR_FILE "$hdr_rkey" 4309_ACEOF 4310 4311 4312 4313# Check whether --with-rootcert-file was given. 4314if test "${with_rootcert_file+set}" = set; then : 4315 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4316else 4317 if test $on_mingw = no; then 4318 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4319else 4320 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4321fi 4322 4323fi 4324 4325 4326hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4327 4328 4329cat >>confdefs.h <<_ACEOF 4330#define ROOT_CERT_FILE "$hdr_rpem" 4331_ACEOF 4332 4333 4334 4335# Check whether --with-username was given. 4336if test "${with_username+set}" = set; then : 4337 withval=$with_username; UNBOUND_USERNAME="$withval" 4338else 4339 UNBOUND_USERNAME="unbound" 4340fi 4341 4342 4343 4344cat >>confdefs.h <<_ACEOF 4345#define UB_USERNAME "$UNBOUND_USERNAME" 4346_ACEOF 4347 4348 4349 4350$as_echo "#define WINVER 0x0502" >>confdefs.h 4351 4352wnvs=`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/' ` 4353 4354 4355cat >>confdefs.h <<_ACEOF 4356#define RSRC_PACKAGE_VERSION $wnvs 4357_ACEOF 4358 4359 4360# Checks for typedefs, structures, and compiler characteristics. 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4362$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4363if ${ac_cv_c_const+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365else 4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4367/* end confdefs.h. */ 4368 4369int 4370main () 4371{ 4372 4373#ifndef __cplusplus 4374 /* Ultrix mips cc rejects this sort of thing. */ 4375 typedef int charset[2]; 4376 const charset cs = { 0, 0 }; 4377 /* SunOS 4.1.1 cc rejects this. */ 4378 char const *const *pcpcc; 4379 char **ppc; 4380 /* NEC SVR4.0.2 mips cc rejects this. */ 4381 struct point {int x, y;}; 4382 static struct point const zero = {0,0}; 4383 /* AIX XL C 1.02.0.0 rejects this. 4384 It does not let you subtract one const X* pointer from another in 4385 an arm of an if-expression whose if-part is not a constant 4386 expression */ 4387 const char *g = "string"; 4388 pcpcc = &g + (g ? g-g : 0); 4389 /* HPUX 7.0 cc rejects these. */ 4390 ++pcpcc; 4391 ppc = (char**) pcpcc; 4392 pcpcc = (char const *const *) ppc; 4393 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4394 char tx; 4395 char *t = &tx; 4396 char const *s = 0 ? (char *) 0 : (char const *) 0; 4397 4398 *t++ = 0; 4399 if (s) return 0; 4400 } 4401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4402 int x[] = {25, 17}; 4403 const int *foo = &x[0]; 4404 ++foo; 4405 } 4406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4407 typedef const int *iptr; 4408 iptr p = 0; 4409 ++p; 4410 } 4411 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4413 struct s { int j; const int *ap[3]; } bx; 4414 struct s *b = &bx; b->j = 5; 4415 } 4416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4417 const int foo = 10; 4418 if (!foo) return 0; 4419 } 4420 return !cs[0] && !zero.x; 4421#endif 4422 4423 ; 4424 return 0; 4425} 4426_ACEOF 4427if ac_fn_c_try_compile "$LINENO"; then : 4428 ac_cv_c_const=yes 4429else 4430 ac_cv_c_const=no 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4433fi 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4435$as_echo "$ac_cv_c_const" >&6; } 4436if test $ac_cv_c_const = no; then 4437 4438$as_echo "#define const /**/" >>confdefs.h 4439 4440fi 4441 4442ac_ext=c 4443ac_cpp='$CPP $CPPFLAGS' 4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4446ac_compiler_gnu=$ac_cv_c_compiler_gnu 4447 4448# allow user to override the -g -O2 flags. 4449default_cflags=no 4450if test "x$CFLAGS" = "x" ; then 4451 4452 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4454$as_echo_n "checking whether $CC supports -g... " >&6; } 4455cache=`echo g | sed 'y%.=/+-%___p_%'` 4456if eval \${cv_prog_cc_flag_$cache+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 4460echo 'void f(void){}' >conftest.c 4461if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4462eval "cv_prog_cc_flag_$cache=yes" 4463else 4464eval "cv_prog_cc_flag_$cache=no" 4465fi 4466rm -f conftest conftest.o conftest.c 4467 4468fi 4469 4470if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4472$as_echo "yes" >&6; } 4473: 4474CFLAGS="$CFLAGS -g" 4475else 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4477$as_echo "no" >&6; } 4478: 4479 4480fi 4481 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4485$as_echo_n "checking whether $CC supports -O2... " >&6; } 4486cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4487if eval \${cv_prog_cc_flag_$cache+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 4491echo 'void f(void){}' >conftest.c 4492if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4493eval "cv_prog_cc_flag_$cache=yes" 4494else 4495eval "cv_prog_cc_flag_$cache=no" 4496fi 4497rm -f conftest conftest.o conftest.c 4498 4499fi 4500 4501if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4503$as_echo "yes" >&6; } 4504: 4505CFLAGS="$CFLAGS -O2" 4506else 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4508$as_echo "no" >&6; } 4509: 4510 4511fi 4512 4513default_cflags=yes 4514fi 4515ac_ext=c 4516ac_cpp='$CPP $CPPFLAGS' 4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4519ac_compiler_gnu=$ac_cv_c_compiler_gnu 4520if test -n "$ac_tool_prefix"; then 4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4522set dummy ${ac_tool_prefix}gcc; ac_word=$2 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4524$as_echo_n "checking for $ac_word... " >&6; } 4525if ${ac_cv_prog_CC+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 if test -n "$CC"; then 4529 ac_cv_prog_CC="$CC" # Let the user override the test. 4530else 4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532for as_dir in $PATH 4533do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4538 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542done 4543 done 4544IFS=$as_save_IFS 4545 4546fi 4547fi 4548CC=$ac_cv_prog_CC 4549if test -n "$CC"; then 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4551$as_echo "$CC" >&6; } 4552else 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554$as_echo "no" >&6; } 4555fi 4556 4557 4558fi 4559if test -z "$ac_cv_prog_CC"; then 4560 ac_ct_CC=$CC 4561 # Extract the first word of "gcc", so it can be a program name with args. 4562set dummy gcc; ac_word=$2 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if ${ac_cv_prog_ac_ct_CC+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -n "$ac_ct_CC"; then 4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4570else 4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4578 ac_cv_prog_ac_ct_CC="gcc" 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582done 4583 done 4584IFS=$as_save_IFS 4585 4586fi 4587fi 4588ac_ct_CC=$ac_cv_prog_ac_ct_CC 4589if test -n "$ac_ct_CC"; then 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4591$as_echo "$ac_ct_CC" >&6; } 4592else 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4594$as_echo "no" >&6; } 4595fi 4596 4597 if test "x$ac_ct_CC" = x; then 4598 CC="" 4599 else 4600 case $cross_compiling:$ac_tool_warned in 4601yes:) 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4604ac_tool_warned=yes ;; 4605esac 4606 CC=$ac_ct_CC 4607 fi 4608else 4609 CC="$ac_cv_prog_CC" 4610fi 4611 4612if test -z "$CC"; then 4613 if test -n "$ac_tool_prefix"; then 4614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4615set dummy ${ac_tool_prefix}cc; ac_word=$2 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4617$as_echo_n "checking for $ac_word... " >&6; } 4618if ${ac_cv_prog_CC+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 if test -n "$CC"; then 4622 ac_cv_prog_CC="$CC" # Let the user override the test. 4623else 4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625for as_dir in $PATH 4626do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_prog_CC="${ac_tool_prefix}cc" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635done 4636 done 4637IFS=$as_save_IFS 4638 4639fi 4640fi 4641CC=$ac_cv_prog_CC 4642if test -n "$CC"; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4644$as_echo "$CC" >&6; } 4645else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648fi 4649 4650 4651 fi 4652fi 4653if test -z "$CC"; then 4654 # Extract the first word of "cc", so it can be a program name with args. 4655set dummy cc; ac_word=$2 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4657$as_echo_n "checking for $ac_word... " >&6; } 4658if ${ac_cv_prog_CC+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 if test -n "$CC"; then 4662 ac_cv_prog_CC="$CC" # Let the user override the test. 4663else 4664 ac_prog_rejected=no 4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666for as_dir in $PATH 4667do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4672 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4673 ac_prog_rejected=yes 4674 continue 4675 fi 4676 ac_cv_prog_CC="cc" 4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4678 break 2 4679 fi 4680done 4681 done 4682IFS=$as_save_IFS 4683 4684if test $ac_prog_rejected = yes; then 4685 # We found a bogon in the path, so make sure we never use it. 4686 set dummy $ac_cv_prog_CC 4687 shift 4688 if test $# != 0; then 4689 # We chose a different compiler from the bogus one. 4690 # However, it has the same basename, so the bogon will be chosen 4691 # first if we set CC to just the basename; use the full file name. 4692 shift 4693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4694 fi 4695fi 4696fi 4697fi 4698CC=$ac_cv_prog_CC 4699if test -n "$CC"; then 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4701$as_echo "$CC" >&6; } 4702else 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4704$as_echo "no" >&6; } 4705fi 4706 4707 4708fi 4709if test -z "$CC"; then 4710 if test -n "$ac_tool_prefix"; then 4711 for ac_prog in cl.exe 4712 do 4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4714set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4716$as_echo_n "checking for $ac_word... " >&6; } 4717if ${ac_cv_prog_CC+:} false; then : 4718 $as_echo_n "(cached) " >&6 4719else 4720 if test -n "$CC"; then 4721 ac_cv_prog_CC="$CC" # Let the user override the test. 4722else 4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724for as_dir in $PATH 4725do 4726 IFS=$as_save_IFS 4727 test -z "$as_dir" && as_dir=. 4728 for ac_exec_ext in '' $ac_executable_extensions; do 4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4732 break 2 4733 fi 4734done 4735 done 4736IFS=$as_save_IFS 4737 4738fi 4739fi 4740CC=$ac_cv_prog_CC 4741if test -n "$CC"; then 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4743$as_echo "$CC" >&6; } 4744else 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746$as_echo "no" >&6; } 4747fi 4748 4749 4750 test -n "$CC" && break 4751 done 4752fi 4753if test -z "$CC"; then 4754 ac_ct_CC=$CC 4755 for ac_prog in cl.exe 4756do 4757 # Extract the first word of "$ac_prog", so it can be a program name with args. 4758set dummy $ac_prog; ac_word=$2 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4760$as_echo_n "checking for $ac_word... " >&6; } 4761if ${ac_cv_prog_ac_ct_CC+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 if test -n "$ac_ct_CC"; then 4765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4766else 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4768for as_dir in $PATH 4769do 4770 IFS=$as_save_IFS 4771 test -z "$as_dir" && as_dir=. 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4774 ac_cv_prog_ac_ct_CC="$ac_prog" 4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4776 break 2 4777 fi 4778done 4779 done 4780IFS=$as_save_IFS 4781 4782fi 4783fi 4784ac_ct_CC=$ac_cv_prog_ac_ct_CC 4785if test -n "$ac_ct_CC"; then 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4787$as_echo "$ac_ct_CC" >&6; } 4788else 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4790$as_echo "no" >&6; } 4791fi 4792 4793 4794 test -n "$ac_ct_CC" && break 4795done 4796 4797 if test "x$ac_ct_CC" = x; then 4798 CC="" 4799 else 4800 case $cross_compiling:$ac_tool_warned in 4801yes:) 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4804ac_tool_warned=yes ;; 4805esac 4806 CC=$ac_ct_CC 4807 fi 4808fi 4809 4810fi 4811 4812 4813test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4815as_fn_error $? "no acceptable C compiler found in \$PATH 4816See \`config.log' for more details" "$LINENO" 5; } 4817 4818# Provide some information about the compiler. 4819$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4820set X $ac_compile 4821ac_compiler=$2 4822for ac_option in --version -v -V -qversion; do 4823 { { ac_try="$ac_compiler $ac_option >&5" 4824case "(($ac_try" in 4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4826 *) ac_try_echo=$ac_try;; 4827esac 4828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4829$as_echo "$ac_try_echo"; } >&5 4830 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4831 ac_status=$? 4832 if test -s conftest.err; then 4833 sed '10a\ 4834... rest of stderr output deleted ... 4835 10q' conftest.err >conftest.er1 4836 cat conftest.er1 >&5 4837 fi 4838 rm -f conftest.er1 conftest.err 4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4840 test $ac_status = 0; } 4841done 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4844$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4845if ${ac_cv_c_compiler_gnu+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4849/* end confdefs.h. */ 4850 4851int 4852main () 4853{ 4854#ifndef __GNUC__ 4855 choke me 4856#endif 4857 4858 ; 4859 return 0; 4860} 4861_ACEOF 4862if ac_fn_c_try_compile "$LINENO"; then : 4863 ac_compiler_gnu=yes 4864else 4865 ac_compiler_gnu=no 4866fi 4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4868ac_cv_c_compiler_gnu=$ac_compiler_gnu 4869 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4872$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4873if test $ac_compiler_gnu = yes; then 4874 GCC=yes 4875else 4876 GCC= 4877fi 4878ac_test_CFLAGS=${CFLAGS+set} 4879ac_save_CFLAGS=$CFLAGS 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4881$as_echo_n "checking whether $CC accepts -g... " >&6; } 4882if ${ac_cv_prog_cc_g+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 ac_save_c_werror_flag=$ac_c_werror_flag 4886 ac_c_werror_flag=yes 4887 ac_cv_prog_cc_g=no 4888 CFLAGS="-g" 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4890/* end confdefs.h. */ 4891 4892int 4893main () 4894{ 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900if ac_fn_c_try_compile "$LINENO"; then : 4901 ac_cv_prog_cc_g=yes 4902else 4903 CFLAGS="" 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905/* end confdefs.h. */ 4906 4907int 4908main () 4909{ 4910 4911 ; 4912 return 0; 4913} 4914_ACEOF 4915if ac_fn_c_try_compile "$LINENO"; then : 4916 4917else 4918 ac_c_werror_flag=$ac_save_c_werror_flag 4919 CFLAGS="-g" 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921/* end confdefs.h. */ 4922 4923int 4924main () 4925{ 4926 4927 ; 4928 return 0; 4929} 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 ac_cv_prog_cc_g=yes 4933fi 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939 ac_c_werror_flag=$ac_save_c_werror_flag 4940fi 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4942$as_echo "$ac_cv_prog_cc_g" >&6; } 4943if test "$ac_test_CFLAGS" = set; then 4944 CFLAGS=$ac_save_CFLAGS 4945elif test $ac_cv_prog_cc_g = yes; then 4946 if test "$GCC" = yes; then 4947 CFLAGS="-g -O2" 4948 else 4949 CFLAGS="-g" 4950 fi 4951else 4952 if test "$GCC" = yes; then 4953 CFLAGS="-O2" 4954 else 4955 CFLAGS= 4956 fi 4957fi 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4959$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4960if ${ac_cv_prog_cc_c89+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 ac_cv_prog_cc_c89=no 4964ac_save_CC=$CC 4965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967#include <stdarg.h> 4968#include <stdio.h> 4969struct stat; 4970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4971struct buf { int x; }; 4972FILE * (*rcsopen) (struct buf *, struct stat *, int); 4973static char *e (p, i) 4974 char **p; 4975 int i; 4976{ 4977 return p[i]; 4978} 4979static char *f (char * (*g) (char **, int), char **p, ...) 4980{ 4981 char *s; 4982 va_list v; 4983 va_start (v,p); 4984 s = g (p, va_arg (v,int)); 4985 va_end (v); 4986 return s; 4987} 4988 4989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4990 function prototypes and stuff, but not '\xHH' hex character constants. 4991 These don't provoke an error unfortunately, instead are silently treated 4992 as 'x'. The following induces an error, until -std is added to get 4993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4994 array size at least. It's necessary to write '\x00'==0 to get something 4995 that's true only with -std. */ 4996int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4997 4998/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4999 inside strings and character constants. */ 5000#define FOO(x) 'x' 5001int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5002 5003int test (int i, double x); 5004struct s1 {int (*f) (int a);}; 5005struct s2 {int (*f) (double a);}; 5006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5007int argc; 5008char **argv; 5009int 5010main () 5011{ 5012return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5013 ; 5014 return 0; 5015} 5016_ACEOF 5017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5019do 5020 CC="$ac_save_CC $ac_arg" 5021 if ac_fn_c_try_compile "$LINENO"; then : 5022 ac_cv_prog_cc_c89=$ac_arg 5023fi 5024rm -f core conftest.err conftest.$ac_objext 5025 test "x$ac_cv_prog_cc_c89" != "xno" && break 5026done 5027rm -f conftest.$ac_ext 5028CC=$ac_save_CC 5029 5030fi 5031# AC_CACHE_VAL 5032case "x$ac_cv_prog_cc_c89" in 5033 x) 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5035$as_echo "none needed" >&6; } ;; 5036 xno) 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5038$as_echo "unsupported" >&6; } ;; 5039 *) 5040 CC="$CC $ac_cv_prog_cc_c89" 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5042$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5043esac 5044if test "x$ac_cv_prog_cc_c89" != xno; then : 5045 5046fi 5047 5048ac_ext=c 5049ac_cpp='$CPP $CPPFLAGS' 5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5052ac_compiler_gnu=$ac_cv_c_compiler_gnu 5053 5054 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5056$as_echo_n "checking $CC dependency flag... " >&6; } 5057echo 'void f(){}' >conftest.c 5058if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5059 DEPFLAG="-MM" 5060else 5061 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5062 DEPFLAG="-xM1" 5063 else 5064 DEPFLAG="-MM" # dunno do something 5065 fi 5066fi 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5068$as_echo "$DEPFLAG" >&6; } 5069rm -f conftest.c 5070 5071 5072 5073 5074 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5076$as_echo_n "checking whether $CC supports -Werror... " >&6; } 5077cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5078if eval \${cv_prog_cc_flag_$cache+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 5082echo 'void f(void){}' >conftest.c 5083if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5084eval "cv_prog_cc_flag_$cache=yes" 5085else 5086eval "cv_prog_cc_flag_$cache=no" 5087fi 5088rm -f conftest conftest.o conftest.c 5089 5090fi 5091 5092if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5094$as_echo "yes" >&6; } 5095: 5096ERRFLAG="-Werror" 5097else 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5099$as_echo "no" >&6; } 5100: 5101ERRFLAG="-errwarn" 5102fi 5103 5104 5105 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5107$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5108cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5109if eval \${cv_prog_cc_flag_$cache+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 5113echo 'void f(void){}' >conftest.c 5114if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5115eval "cv_prog_cc_flag_$cache=yes" 5116else 5117eval "cv_prog_cc_flag_$cache=no" 5118fi 5119rm -f conftest conftest.o conftest.c 5120 5121fi 5122 5123if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5125$as_echo "yes" >&6; } 5126: 5127ERRFLAG="$ERRFLAG -Wall" 5128else 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130$as_echo "no" >&6; } 5131: 5132ERRFLAG="$ERRFLAG -errfmt" 5133fi 5134 5135 5136 5137 5138 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5140$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5141cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5142if eval \${cv_prog_cc_flag_$cache+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144else 5145 5146echo 'void f(void){}' >conftest.c 5147if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5148eval "cv_prog_cc_flag_$cache=yes" 5149else 5150eval "cv_prog_cc_flag_$cache=no" 5151fi 5152rm -f conftest conftest.o conftest.c 5153 5154fi 5155 5156if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5158$as_echo "yes" >&6; } 5159: 5160C99FLAG="-std=c99" 5161else 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164: 5165 5166fi 5167 5168 5169 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5171$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5172cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5173if eval \${cv_prog_cc_flag_$cache+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 5177echo 'void f(void){}' >conftest.c 5178if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5179eval "cv_prog_cc_flag_$cache=yes" 5180else 5181eval "cv_prog_cc_flag_$cache=no" 5182fi 5183rm -f conftest conftest.o conftest.c 5184 5185fi 5186 5187if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5189$as_echo "yes" >&6; } 5190: 5191C99FLAG="-xc99" 5192else 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5194$as_echo "no" >&6; } 5195: 5196 5197fi 5198 5199 5200for ac_header in getopt.h time.h 5201do : 5202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5203ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5204" 5205if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5206 cat >>confdefs.h <<_ACEOF 5207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5208_ACEOF 5209 5210fi 5211 5212done 5213 5214 5215 5216 5217 5218{ $as_echo "$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 5219$as_echo_n "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; } 5220cache=`$as_echo "$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` 5221if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 5225echo ' 5226#include "confdefs.h" 5227#include <stdlib.h> 5228#include <ctype.h> 5229#include <sys/time.h> 5230#ifdef HAVE_TIME_H 5231#include <time.h> 5232#endif 5233#include <unistd.h> 5234#include <netdb.h> 5235#ifdef HAVE_GETOPT_H 5236#include <getopt.h> 5237#endif 5238 5239int test() { 5240 int a; 5241 char **opts = NULL; 5242 struct timeval tv; 5243 char *t; 5244 time_t time = 0; 5245 char *buf = NULL; 5246 const char* str = NULL; 5247 struct msghdr msg; 5248 msg.msg_control = 0; 5249 t = ctime_r(&time, buf); 5250 tv.tv_usec = 10; 5251 srandom(32); 5252 a = getopt(2, opts, "a"); 5253 a = isascii(32); 5254 str = gai_strerror(0); 5255 if(str && t && tv.tv_usec && msg.msg_control) 5256 a = 0; 5257 return a; 5258} 5259' > conftest.c 5260echo 'void f(){}' >>conftest.c 5261if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5262eval "cv_prog_cc_flag_needed_$cache=no" 5263else 5264 5265if 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 5266eval "cv_prog_cc_flag_needed_$cache=yes" 5267else 5268eval "cv_prog_cc_flag_needed_$cache=fail" 5269#echo 'Test with flag fails too!' 5270#cat conftest.c 5271#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" 5272#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` 5273#exit 1 5274fi 5275 5276fi 5277rm -f conftest conftest.c conftest.o 5278 5279fi 5280 5281if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5283$as_echo "yes" >&6; } 5284: 5285CFLAGS="$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" 5286else 5287if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289$as_echo "no" >&6; } 5290#echo 'Test with flag is no!' 5291#cat conftest.c 5292#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" 5293#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` 5294#exit 1 5295: 5296 5297else 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5299$as_echo "failed" >&6; } 5300: 5301 5302fi 5303fi 5304 5305 5306 5307 5308 5309{ $as_echo "$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 5310$as_echo_n "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; } 5311cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5312if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 5316echo ' 5317#include "confdefs.h" 5318#include <stdlib.h> 5319#include <ctype.h> 5320#include <sys/time.h> 5321#ifdef HAVE_TIME_H 5322#include <time.h> 5323#endif 5324#include <unistd.h> 5325#include <netdb.h> 5326#ifdef HAVE_GETOPT_H 5327#include <getopt.h> 5328#endif 5329 5330int test() { 5331 int a; 5332 char **opts = NULL; 5333 struct timeval tv; 5334 char *t; 5335 time_t time = 0; 5336 char *buf = NULL; 5337 const char* str = NULL; 5338 struct msghdr msg; 5339 msg.msg_control = 0; 5340 t = ctime_r(&time, buf); 5341 tv.tv_usec = 10; 5342 srandom(32); 5343 a = getopt(2, opts, "a"); 5344 a = isascii(32); 5345 str = gai_strerror(0); 5346 if(str && t && tv.tv_usec && msg.msg_control) 5347 a = 0; 5348 return a; 5349} 5350' > conftest.c 5351echo 'void f(){}' >>conftest.c 5352if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5353eval "cv_prog_cc_flag_needed_$cache=no" 5354else 5355 5356if 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 5357eval "cv_prog_cc_flag_needed_$cache=yes" 5358else 5359eval "cv_prog_cc_flag_needed_$cache=fail" 5360#echo 'Test with flag fails too!' 5361#cat conftest.c 5362#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" 5363#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` 5364#exit 1 5365fi 5366 5367fi 5368rm -f conftest conftest.c conftest.o 5369 5370fi 5371 5372if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5374$as_echo "yes" >&6; } 5375: 5376CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5377else 5378if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5380$as_echo "no" >&6; } 5381#echo 'Test with flag is no!' 5382#cat conftest.c 5383#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" 5384#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` 5385#exit 1 5386: 5387 5388else 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5390$as_echo "failed" >&6; } 5391: 5392 5393fi 5394fi 5395 5396 5397 5398 5399 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5401$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5402cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5403if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 5407echo ' 5408#include <stdbool.h> 5409#include <ctype.h> 5410int test() { 5411 int a = 0; 5412 return a; 5413} 5414' > conftest.c 5415echo 'void f(){}' >>conftest.c 5416if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5417eval "cv_prog_cc_flag_needed_$cache=no" 5418else 5419 5420if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5421eval "cv_prog_cc_flag_needed_$cache=yes" 5422else 5423eval "cv_prog_cc_flag_needed_$cache=fail" 5424#echo 'Test with flag fails too!' 5425#cat conftest.c 5426#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5427#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5428#exit 1 5429fi 5430 5431fi 5432rm -f conftest conftest.c conftest.o 5433 5434fi 5435 5436if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5438$as_echo "yes" >&6; } 5439: 5440CFLAGS="$CFLAGS $C99FLAG" 5441else 5442if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5444$as_echo "no" >&6; } 5445#echo 'Test with flag is no!' 5446#cat conftest.c 5447#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5448#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5449#exit 1 5450: 5451 5452else 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5454$as_echo "failed" >&6; } 5455: 5456 5457fi 5458fi 5459 5460 5461 5462 5463 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 5465$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 5466cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 5467if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 5471echo ' 5472#include <ctype.h> 5473 5474int test() { 5475 int a; 5476 a = isascii(32); 5477 return a; 5478} 5479' > conftest.c 5480echo 'void f(){}' >>conftest.c 5481if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5482eval "cv_prog_cc_flag_needed_$cache=no" 5483else 5484 5485if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5486eval "cv_prog_cc_flag_needed_$cache=yes" 5487else 5488eval "cv_prog_cc_flag_needed_$cache=fail" 5489#echo 'Test with flag fails too!' 5490#cat conftest.c 5491#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5492#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5493#exit 1 5494fi 5495 5496fi 5497rm -f conftest conftest.c conftest.o 5498 5499fi 5500 5501if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5503$as_echo "yes" >&6; } 5504: 5505CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 5506else 5507if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5509$as_echo "no" >&6; } 5510#echo 'Test with flag is no!' 5511#cat conftest.c 5512#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5513#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5514#exit 1 5515: 5516 5517else 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5519$as_echo "failed" >&6; } 5520: 5521 5522fi 5523fi 5524 5525 5526 5527 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5530$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5531cache=_D_GNU_SOURCE 5532if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 5536echo ' 5537#include <netinet/in.h> 5538 5539int test() { 5540 struct in6_pktinfo inf; 5541 int a = (int)sizeof(inf); 5542 return a; 5543} 5544' > conftest.c 5545echo 'void f(){}' >>conftest.c 5546if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5547eval "cv_prog_cc_flag_needed_$cache=no" 5548else 5549 5550if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5551eval "cv_prog_cc_flag_needed_$cache=yes" 5552else 5553eval "cv_prog_cc_flag_needed_$cache=fail" 5554#echo 'Test with flag fails too!' 5555#cat conftest.c 5556#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5557#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5558#exit 1 5559fi 5560 5561fi 5562rm -f conftest conftest.c conftest.o 5563 5564fi 5565 5566if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5568$as_echo "yes" >&6; } 5569: 5570CFLAGS="$CFLAGS -D_GNU_SOURCE" 5571else 5572if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574$as_echo "no" >&6; } 5575#echo 'Test with flag is no!' 5576#cat conftest.c 5577#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5578#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5579#exit 1 5580: 5581 5582else 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5584$as_echo "failed" >&6; } 5585: 5586 5587fi 5588fi 5589 5590 5591# check again for GNU_SOURCE for setresgid. May fail if setresgid 5592# is not available at all. -D_FRSRESGID is to make this check unique. 5593# otherwise we would get the previous cached result. 5594 5595 5596 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5598$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5599cache=_D_GNU_SOURCE__D_FRSRESGID 5600if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602else 5603 5604echo ' 5605#include <unistd.h> 5606 5607int test() { 5608 int a = setresgid(0,0,0); 5609 a = setresuid(0,0,0); 5610 return a; 5611} 5612' > conftest.c 5613echo 'void f(){}' >>conftest.c 5614if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5615eval "cv_prog_cc_flag_needed_$cache=no" 5616else 5617 5618if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5619eval "cv_prog_cc_flag_needed_$cache=yes" 5620else 5621eval "cv_prog_cc_flag_needed_$cache=fail" 5622#echo 'Test with flag fails too!' 5623#cat conftest.c 5624#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5625#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5626#exit 1 5627fi 5628 5629fi 5630rm -f conftest conftest.c conftest.o 5631 5632fi 5633 5634if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5636$as_echo "yes" >&6; } 5637: 5638CFLAGS="$CFLAGS -D_GNU_SOURCE" 5639else 5640if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5642$as_echo "no" >&6; } 5643#echo 'Test with flag is no!' 5644#cat conftest.c 5645#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5646#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5647#exit 1 5648: 5649 5650else 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5652$as_echo "failed" >&6; } 5653: 5654 5655fi 5656fi 5657 5658 5659 5660 5661 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5663$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5664cache=_D_POSIX_C_SOURCE_200112 5665if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 5669echo ' 5670#include "confdefs.h" 5671#ifdef HAVE_TIME_H 5672#include <time.h> 5673#endif 5674#include <netdb.h> 5675 5676int test() { 5677 int a = 0; 5678 char *t; 5679 time_t time = 0; 5680 char *buf = NULL; 5681 const char* str = NULL; 5682 t = ctime_r(&time, buf); 5683 str = gai_strerror(0); 5684 if(t && str) 5685 a = 0; 5686 return a; 5687} 5688' > conftest.c 5689echo 'void f(){}' >>conftest.c 5690if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5691eval "cv_prog_cc_flag_needed_$cache=no" 5692else 5693 5694if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5695eval "cv_prog_cc_flag_needed_$cache=yes" 5696else 5697eval "cv_prog_cc_flag_needed_$cache=fail" 5698#echo 'Test with flag fails too!' 5699#cat conftest.c 5700#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5701#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5702#exit 1 5703fi 5704 5705fi 5706rm -f conftest conftest.c conftest.o 5707 5708fi 5709 5710if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5712$as_echo "yes" >&6; } 5713: 5714CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5715else 5716if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5718$as_echo "no" >&6; } 5719#echo 'Test with flag is no!' 5720#cat conftest.c 5721#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5722#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5723#exit 1 5724: 5725 5726else 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5728$as_echo "failed" >&6; } 5729: 5730 5731fi 5732fi 5733 5734 5735 5736 5737 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5739$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5740cache=_D__EXTENSIONS__ 5741if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 5745echo ' 5746#include "confdefs.h" 5747#include <stdlib.h> 5748#include <ctype.h> 5749#include <sys/time.h> 5750#ifdef HAVE_TIME_H 5751#include <time.h> 5752#endif 5753#include <unistd.h> 5754#ifdef HAVE_GETOPT_H 5755#include <getopt.h> 5756#endif 5757 5758int test() { 5759 int a; 5760 char **opts = NULL; 5761 struct timeval tv; 5762 tv.tv_usec = 10; 5763 srandom(32); 5764 a = getopt(2, opts, "a"); 5765 a = isascii(32); 5766 if(tv.tv_usec) 5767 a = 0; 5768 return a; 5769} 5770' > conftest.c 5771echo 'void f(){}' >>conftest.c 5772if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5773eval "cv_prog_cc_flag_needed_$cache=no" 5774else 5775 5776if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5777eval "cv_prog_cc_flag_needed_$cache=yes" 5778else 5779eval "cv_prog_cc_flag_needed_$cache=fail" 5780#echo 'Test with flag fails too!' 5781#cat conftest.c 5782#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5783#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5784#exit 1 5785fi 5786 5787fi 5788rm -f conftest conftest.c conftest.o 5789 5790fi 5791 5792if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5794$as_echo "yes" >&6; } 5795: 5796CFLAGS="$CFLAGS -D__EXTENSIONS__" 5797else 5798if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800$as_echo "no" >&6; } 5801#echo 'Test with flag is no!' 5802#cat conftest.c 5803#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5804#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5805#exit 1 5806: 5807 5808else 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5810$as_echo "failed" >&6; } 5811: 5812 5813fi 5814fi 5815 5816 5817 5818 5819# debug mode flags warnings 5820# Check whether --enable-checking was given. 5821if test "${enable_checking+set}" = set; then : 5822 enableval=$enable_checking; 5823fi 5824 5825# Check whether --enable-debug was given. 5826if test "${enable_debug+set}" = set; then : 5827 enableval=$enable_debug; 5828fi 5829 5830if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5831else debug_enabled="$enable_checking"; fi 5832 5833case "$debug_enabled" in 5834 yes) 5835 5836 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5838$as_echo_n "checking whether $CC supports -W... " >&6; } 5839cache=`echo W | sed 'y%.=/+-%___p_%'` 5840if eval \${cv_prog_cc_flag_$cache+:} false; then : 5841 $as_echo_n "(cached) " >&6 5842else 5843 5844echo 'void f(void){}' >conftest.c 5845if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5846eval "cv_prog_cc_flag_$cache=yes" 5847else 5848eval "cv_prog_cc_flag_$cache=no" 5849fi 5850rm -f conftest conftest.o conftest.c 5851 5852fi 5853 5854if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5856$as_echo "yes" >&6; } 5857: 5858CFLAGS="$CFLAGS -W" 5859else 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862: 5863 5864fi 5865 5866 5867 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5869$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5870cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5871if eval \${cv_prog_cc_flag_$cache+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 5875echo 'void f(void){}' >conftest.c 5876if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5877eval "cv_prog_cc_flag_$cache=yes" 5878else 5879eval "cv_prog_cc_flag_$cache=no" 5880fi 5881rm -f conftest conftest.o conftest.c 5882 5883fi 5884 5885if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5887$as_echo "yes" >&6; } 5888: 5889CFLAGS="$CFLAGS -Wall" 5890else 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893: 5894 5895fi 5896 5897 5898 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5900$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5901cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5902if eval \${cv_prog_cc_flag_$cache+:} false; then : 5903 $as_echo_n "(cached) " >&6 5904else 5905 5906echo 'void f(void){}' >conftest.c 5907if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5908eval "cv_prog_cc_flag_$cache=yes" 5909else 5910eval "cv_prog_cc_flag_$cache=no" 5911fi 5912rm -f conftest conftest.o conftest.c 5913 5914fi 5915 5916if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5918$as_echo "yes" >&6; } 5919: 5920CFLAGS="$CFLAGS -Wextra" 5921else 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923$as_echo "no" >&6; } 5924: 5925 5926fi 5927 5928 5929 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5931$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5932cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5933if eval \${cv_prog_cc_flag_$cache+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 5937echo 'void f(void){}' >conftest.c 5938if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5939eval "cv_prog_cc_flag_$cache=yes" 5940else 5941eval "cv_prog_cc_flag_$cache=no" 5942fi 5943rm -f conftest conftest.o conftest.c 5944 5945fi 5946 5947if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5949$as_echo "yes" >&6; } 5950: 5951CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5952else 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954$as_echo "no" >&6; } 5955: 5956 5957fi 5958 5959 5960$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5961 5962 ;; 5963 no|*) 5964 # nothing to do. 5965 ;; 5966esac 5967if test "$default_cflags" = "yes"; then 5968 # only when CFLAGS was "" at the start, if the users wants to 5969 # override we shouldn't add default cflags, because they wouldn't 5970 # be able to turn off these options and set the CFLAGS wanted. 5971 5972 # Check whether --enable-flto was given. 5973if test "${enable_flto+set}" = set; then : 5974 enableval=$enable_flto; 5975fi 5976 5977 if test "x$enable_flto" != "xno"; then : 5978 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5980$as_echo_n "checking if $CC supports -flto... " >&6; } 5981 BAKCFLAGS="$CFLAGS" 5982 CFLAGS="$CFLAGS -flto" 5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5984/* end confdefs.h. */ 5985 5986int 5987main () 5988{ 5989 5990 ; 5991 return 0; 5992} 5993_ACEOF 5994if ac_fn_c_try_link "$LINENO"; then : 5995 5996 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 5997 CFLAGS="$BAKCFLAGS" 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999$as_echo "no" >&6; } 6000 else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6002$as_echo "yes" >&6; } 6003 fi 6004 rm -f conftest conftest.c conftest.o 6005 6006else 6007 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6008$as_echo "no" >&6; } 6009fi 6010rm -f core conftest.err conftest.$ac_objext \ 6011 conftest$ac_exeext conftest.$ac_ext 6012 6013fi 6014 6015 6016 # Check whether --enable-pie was given. 6017if test "${enable_pie+set}" = set; then : 6018 enableval=$enable_pie; 6019fi 6020 6021 if test "x$enable_pie" = "xyes"; then : 6022 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6024$as_echo_n "checking if $CC supports PIE... " >&6; } 6025 BAKLDFLAGS="$LDFLAGS" 6026 BAKCFLAGS="$CFLAGS" 6027 LDFLAGS="$LDFLAGS -pie" 6028 CFLAGS="$CFLAGS -fPIE" 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031 6032int 6033main () 6034{ 6035 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040if ac_fn_c_try_link "$LINENO"; then : 6041 6042 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6043 LDFLAGS="$BAKLDFLAGS" 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6045$as_echo "no" >&6; } 6046 else 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6048$as_echo "yes" >&6; } 6049 fi 6050 rm -f conftest conftest.c conftest.o 6051 6052else 6053 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6054$as_echo "no" >&6; } 6055fi 6056rm -f core conftest.err conftest.$ac_objext \ 6057 conftest$ac_exeext conftest.$ac_ext 6058 6059fi 6060 6061 6062 # Check whether --enable-relro_now was given. 6063if test "${enable_relro_now+set}" = set; then : 6064 enableval=$enable_relro_now; 6065fi 6066 6067 if test "x$enable_relro_now" = "xyes"; then : 6068 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6070$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6071 BAKLDFLAGS="$LDFLAGS" 6072 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6074/* end confdefs.h. */ 6075 6076int 6077main () 6078{ 6079 6080 ; 6081 return 0; 6082} 6083_ACEOF 6084if ac_fn_c_try_link "$LINENO"; then : 6085 6086 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6087 LDFLAGS="$BAKLDFLAGS" 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6089$as_echo "no" >&6; } 6090 else 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6092$as_echo "yes" >&6; } 6093 fi 6094 rm -f conftest conftest.c conftest.o 6095 6096else 6097 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; } 6099fi 6100rm -f core conftest.err conftest.$ac_objext \ 6101 conftest$ac_exeext conftest.$ac_ext 6102 6103fi 6104 6105fi 6106 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6108$as_echo_n "checking for inline... " >&6; } 6109if ${ac_cv_c_inline+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 ac_cv_c_inline=no 6113for ac_kw in inline __inline__ __inline; do 6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116#ifndef __cplusplus 6117typedef int foo_t; 6118static $ac_kw foo_t static_foo () {return 0; } 6119$ac_kw foo_t foo () {return 0; } 6120#endif 6121 6122_ACEOF 6123if ac_fn_c_try_compile "$LINENO"; then : 6124 ac_cv_c_inline=$ac_kw 6125fi 6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6127 test "$ac_cv_c_inline" != no && break 6128done 6129 6130fi 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6132$as_echo "$ac_cv_c_inline" >&6; } 6133 6134case $ac_cv_c_inline in 6135 inline | yes) ;; 6136 *) 6137 case $ac_cv_c_inline in 6138 no) ac_val=;; 6139 *) ac_val=$ac_cv_c_inline;; 6140 esac 6141 cat >>confdefs.h <<_ACEOF 6142#ifndef __cplusplus 6143#define inline $ac_val 6144#endif 6145_ACEOF 6146 ;; 6147esac 6148 6149 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6151$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6152if ${ac_cv_c_format_attribute+:} false; then : 6153 $as_echo_n "(cached) " >&6 6154else 6155 ac_cv_c_format_attribute=no 6156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6157/* end confdefs.h. */ 6158#include <stdio.h> 6159void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6160void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6161 6162int 6163main () 6164{ 6165 6166 f ("%s", "str"); 6167 6168 ; 6169 return 0; 6170} 6171_ACEOF 6172if ac_fn_c_try_compile "$LINENO"; then : 6173 ac_cv_c_format_attribute="yes" 6174else 6175 ac_cv_c_format_attribute="no" 6176fi 6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6178 6179fi 6180 6181 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6183$as_echo "$ac_cv_c_format_attribute" >&6; } 6184if test $ac_cv_c_format_attribute = yes; then 6185 6186$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6187 6188fi 6189 6190 6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6192$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6193if ${ac_cv_c_unused_attribute+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195else 6196 ac_cv_c_unused_attribute=no 6197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198/* end confdefs.h. */ 6199#include <stdio.h> 6200void f (char *u __attribute__((unused))); 6201 6202int 6203main () 6204{ 6205 6206 f ("x"); 6207 6208 ; 6209 return 0; 6210} 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 ac_cv_c_unused_attribute="yes" 6214else 6215 ac_cv_c_unused_attribute="no" 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218 6219fi 6220 6221 6222 6223 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6225$as_echo "$ac_cv_c_unused_attribute" >&6; } 6226if test $ac_cv_c_unused_attribute = yes; then 6227 6228$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6229 6230fi 6231 6232 6233 6234 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6236$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6237if ${ac_cv_c_weak_attribute+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 ac_cv_c_weak_attribute=no 6241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243 #include <stdio.h> 6244__attribute__((weak)) void f(int x) { printf("%d", x); } 6245 6246int 6247main () 6248{ 6249 6250 f(1); 6251 6252 ; 6253 return 0; 6254} 6255_ACEOF 6256if ac_fn_c_try_compile "$LINENO"; then : 6257 ac_cv_c_weak_attribute="yes" 6258else 6259 ac_cv_c_weak_attribute="no" 6260fi 6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6262 6263fi 6264 6265 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6267$as_echo "$ac_cv_c_weak_attribute" >&6; } 6268if test $ac_cv_c_weak_attribute = yes; then 6269 6270$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6271 6272 6273$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6274 6275fi 6276 6277 6278 6279 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6281$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6282if ${ac_cv_c_noreturn_attribute+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 ac_cv_c_noreturn_attribute=no 6286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288 #include <stdio.h> 6289__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6290 6291int 6292main () 6293{ 6294 6295 f(1); 6296 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301if ac_fn_c_try_compile "$LINENO"; then : 6302 ac_cv_c_noreturn_attribute="yes" 6303else 6304 ac_cv_c_noreturn_attribute="no" 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307 6308fi 6309 6310 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6312$as_echo "$ac_cv_c_noreturn_attribute" >&6; } 6313if test $ac_cv_c_noreturn_attribute = yes; then 6314 6315$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6316 6317 6318$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6319 6320fi 6321 6322 6323if test "$srcdir" != "."; then 6324 CPPFLAGS="$CPPFLAGS -I$srcdir" 6325fi 6326 6327 6328 6329 6330 6331for ac_prog in flex lex 6332do 6333 # Extract the first word of "$ac_prog", so it can be a program name with args. 6334set dummy $ac_prog; ac_word=$2 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6336$as_echo_n "checking for $ac_word... " >&6; } 6337if ${ac_cv_prog_LEX+:} false; then : 6338 $as_echo_n "(cached) " >&6 6339else 6340 if test -n "$LEX"; then 6341 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6342else 6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6344for as_dir in $PATH 6345do 6346 IFS=$as_save_IFS 6347 test -z "$as_dir" && as_dir=. 6348 for ac_exec_ext in '' $ac_executable_extensions; do 6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6350 ac_cv_prog_LEX="$ac_prog" 6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6352 break 2 6353 fi 6354done 6355 done 6356IFS=$as_save_IFS 6357 6358fi 6359fi 6360LEX=$ac_cv_prog_LEX 6361if test -n "$LEX"; then 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6363$as_echo "$LEX" >&6; } 6364else 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6366$as_echo "no" >&6; } 6367fi 6368 6369 6370 test -n "$LEX" && break 6371done 6372test -n "$LEX" || LEX=":" 6373 6374if test "x$LEX" != "x:"; then 6375 cat >conftest.l <<_ACEOF 6376%% 6377a { ECHO; } 6378b { REJECT; } 6379c { yymore (); } 6380d { yyless (1); } 6381e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6382 yyless ((input () != 0)); } 6383f { unput (yytext[0]); } 6384. { BEGIN INITIAL; } 6385%% 6386#ifdef YYTEXT_POINTER 6387extern char *yytext; 6388#endif 6389int 6390main (void) 6391{ 6392 return ! yylex () + ! yywrap (); 6393} 6394_ACEOF 6395{ { ac_try="$LEX conftest.l" 6396case "(($ac_try" in 6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6398 *) ac_try_echo=$ac_try;; 6399esac 6400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6401$as_echo "$ac_try_echo"; } >&5 6402 (eval "$LEX conftest.l") 2>&5 6403 ac_status=$? 6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6405 test $ac_status = 0; } 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6407$as_echo_n "checking lex output file root... " >&6; } 6408if ${ac_cv_prog_lex_root+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 6412if test -f lex.yy.c; then 6413 ac_cv_prog_lex_root=lex.yy 6414elif test -f lexyy.c; then 6415 ac_cv_prog_lex_root=lexyy 6416else 6417 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6418fi 6419fi 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6421$as_echo "$ac_cv_prog_lex_root" >&6; } 6422LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6423 6424if test -z "${LEXLIB+set}"; then 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6426$as_echo_n "checking lex library... " >&6; } 6427if ${ac_cv_lib_lex+:} false; then : 6428 $as_echo_n "(cached) " >&6 6429else 6430 6431 ac_save_LIBS=$LIBS 6432 ac_cv_lib_lex='none needed' 6433 for ac_lib in '' -lfl -ll; do 6434 LIBS="$ac_lib $ac_save_LIBS" 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437`cat $LEX_OUTPUT_ROOT.c` 6438_ACEOF 6439if ac_fn_c_try_link "$LINENO"; then : 6440 ac_cv_lib_lex=$ac_lib 6441fi 6442rm -f core conftest.err conftest.$ac_objext \ 6443 conftest$ac_exeext conftest.$ac_ext 6444 test "$ac_cv_lib_lex" != 'none needed' && break 6445 done 6446 LIBS=$ac_save_LIBS 6447 6448fi 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6450$as_echo "$ac_cv_lib_lex" >&6; } 6451 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6452fi 6453 6454 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6456$as_echo_n "checking whether yytext is a pointer... " >&6; } 6457if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 # POSIX says lex can declare yytext either as a pointer or an array; the 6461# default is implementation-dependent. Figure out which it is, since 6462# not all implementations provide the %pointer and %array declarations. 6463ac_cv_prog_lex_yytext_pointer=no 6464ac_save_LIBS=$LIBS 6465LIBS="$LEXLIB $ac_save_LIBS" 6466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467/* end confdefs.h. */ 6468 6469 #define YYTEXT_POINTER 1 6470`cat $LEX_OUTPUT_ROOT.c` 6471_ACEOF 6472if ac_fn_c_try_link "$LINENO"; then : 6473 ac_cv_prog_lex_yytext_pointer=yes 6474fi 6475rm -f core conftest.err conftest.$ac_objext \ 6476 conftest$ac_exeext conftest.$ac_ext 6477LIBS=$ac_save_LIBS 6478 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6481$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6482if test $ac_cv_prog_lex_yytext_pointer = yes; then 6483 6484$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6485 6486fi 6487rm -f conftest.l $LEX_OUTPUT_ROOT.c 6488 6489fi 6490if test "$LEX" != "" -a "$LEX" != ":"; then 6491 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6493$as_echo_n "checking for yylex_destroy... " >&6; } 6494 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6495 6496$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6497 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6499$as_echo "yes" >&6; } 6500 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; }; 6502 LEX=":" 6503 fi 6504 6505fi 6506if test "$LEX" != "" -a "$LEX" != ":"; then 6507 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 6509$as_echo_n "checking for lex %option... " >&6; } 6510 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 6511%option nounput 6512%% 6513EOF 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6515$as_echo "yes" >&6; } 6516 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517$as_echo "no" >&6; }; 6518 LEX=":" 6519 fi 6520 6521fi 6522for ac_prog in 'bison -y' byacc 6523do 6524 # Extract the first word of "$ac_prog", so it can be a program name with args. 6525set dummy $ac_prog; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_prog_YACC+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$YACC"; then 6532 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_YACC="$ac_prog" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551YACC=$ac_cv_prog_YACC 6552if test -n "$YACC"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6554$as_echo "$YACC" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 6561 test -n "$YACC" && break 6562done 6563test -n "$YACC" || YACC="yacc" 6564 6565# Extract the first word of "doxygen", so it can be a program name with args. 6566set dummy doxygen; ac_word=$2 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6568$as_echo_n "checking for $ac_word... " >&6; } 6569if ${ac_cv_prog_doxygen+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 if test -n "$doxygen"; then 6573 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6574else 6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6576for as_dir in $PATH 6577do 6578 IFS=$as_save_IFS 6579 test -z "$as_dir" && as_dir=. 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6582 ac_cv_prog_doxygen="doxygen" 6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586done 6587 done 6588IFS=$as_save_IFS 6589 6590fi 6591fi 6592doxygen=$ac_cv_prog_doxygen 6593if test -n "$doxygen"; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6595$as_echo "$doxygen" >&6; } 6596else 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6598$as_echo "no" >&6; } 6599fi 6600 6601 6602if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6604set dummy ${ac_tool_prefix}strip; ac_word=$2 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606$as_echo_n "checking for $ac_word... " >&6; } 6607if ${ac_cv_prog_STRIP+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$STRIP"; then 6611 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6612else 6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6620 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624done 6625 done 6626IFS=$as_save_IFS 6627 6628fi 6629fi 6630STRIP=$ac_cv_prog_STRIP 6631if test -n "$STRIP"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6633$as_echo "$STRIP" >&6; } 6634else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638 6639 6640fi 6641if test -z "$ac_cv_prog_STRIP"; then 6642 ac_ct_STRIP=$STRIP 6643 # Extract the first word of "strip", so it can be a program name with args. 6644set dummy strip; ac_word=$2 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6646$as_echo_n "checking for $ac_word... " >&6; } 6647if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 if test -n "$ac_ct_STRIP"; then 6651 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6652else 6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6660 ac_cv_prog_ac_ct_STRIP="strip" 6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665 done 6666IFS=$as_save_IFS 6667 6668fi 6669fi 6670ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6671if test -n "$ac_ct_STRIP"; then 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6673$as_echo "$ac_ct_STRIP" >&6; } 6674else 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6676$as_echo "no" >&6; } 6677fi 6678 6679 if test "x$ac_ct_STRIP" = x; then 6680 STRIP="" 6681 else 6682 case $cross_compiling:$ac_tool_warned in 6683yes:) 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6686ac_tool_warned=yes ;; 6687esac 6688 STRIP=$ac_ct_STRIP 6689 fi 6690else 6691 STRIP="$ac_cv_prog_STRIP" 6692fi 6693 6694ac_aux_dir= 6695for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6696 if test -f "$ac_dir/install-sh"; then 6697 ac_aux_dir=$ac_dir 6698 ac_install_sh="$ac_aux_dir/install-sh -c" 6699 break 6700 elif test -f "$ac_dir/install.sh"; then 6701 ac_aux_dir=$ac_dir 6702 ac_install_sh="$ac_aux_dir/install.sh -c" 6703 break 6704 elif test -f "$ac_dir/shtool"; then 6705 ac_aux_dir=$ac_dir 6706 ac_install_sh="$ac_aux_dir/shtool install -c" 6707 break 6708 fi 6709done 6710if test -z "$ac_aux_dir"; then 6711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6712fi 6713 6714# These three variables are undocumented and unsupported, 6715# and are intended to be withdrawn in a future Autoconf release. 6716# They can cause serious problems if a builder's source tree is in a directory 6717# whose full name contains unusual characters. 6718ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6719ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6720ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6721 6722 6723# Make sure we can run config.sub. 6724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6725 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6726 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6728$as_echo_n "checking build system type... " >&6; } 6729if ${ac_cv_build+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 ac_build_alias=$build_alias 6733test "x$ac_build_alias" = x && 6734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6735test "x$ac_build_alias" = x && 6736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6737ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6739 6740fi 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6742$as_echo "$ac_cv_build" >&6; } 6743case $ac_cv_build in 6744*-*-*) ;; 6745*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6746esac 6747build=$ac_cv_build 6748ac_save_IFS=$IFS; IFS='-' 6749set x $ac_cv_build 6750shift 6751build_cpu=$1 6752build_vendor=$2 6753shift; shift 6754# Remember, the first character of IFS is used to create $*, 6755# except with old shells: 6756build_os=$* 6757IFS=$ac_save_IFS 6758case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6759 6760 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6762$as_echo_n "checking host system type... " >&6; } 6763if ${ac_cv_host+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 if test "x$host_alias" = x; then 6767 ac_cv_host=$ac_cv_build 6768else 6769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6771fi 6772 6773fi 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6775$as_echo "$ac_cv_host" >&6; } 6776case $ac_cv_host in 6777*-*-*) ;; 6778*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6779esac 6780host=$ac_cv_host 6781ac_save_IFS=$IFS; IFS='-' 6782set x $ac_cv_host 6783shift 6784host_cpu=$1 6785host_vendor=$2 6786shift; shift 6787# Remember, the first character of IFS is used to create $*, 6788# except with old shells: 6789host_os=$* 6790IFS=$ac_save_IFS 6791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6792 6793 6794 6795# skip these tests, we do not need them. 6796 6797 6798 6799 6800 6801 6802 6803 6804# always use ./libtool unless override from commandline (libtool=mylibtool) 6805if test -z "$libtool"; then 6806 libtool="./libtool" 6807fi 6808 6809# avoid libtool max commandline length test on systems that fork slowly. 6810 6811if echo "$host_os" | grep "sunos4" >/dev/null; then 6812 lt_cv_sys_max_cmd_len=32750; 6813fi 6814if test -n "$ac_tool_prefix"; then 6815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6816set dummy ${ac_tool_prefix}ar; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_path_AR+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 case $AR in 6823 [\\/]* | ?:[\\/]*) 6824 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6825 ;; 6826 *) 6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6828for as_dir in $PATH 6829do 6830 IFS=$as_save_IFS 6831 test -z "$as_dir" && as_dir=. 6832 for ac_exec_ext in '' $ac_executable_extensions; do 6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6834 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6836 break 2 6837 fi 6838done 6839 done 6840IFS=$as_save_IFS 6841 6842 ;; 6843esac 6844fi 6845AR=$ac_cv_path_AR 6846if test -n "$AR"; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6848$as_echo "$AR" >&6; } 6849else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851$as_echo "no" >&6; } 6852fi 6853 6854 6855fi 6856if test -z "$ac_cv_path_AR"; then 6857 ac_pt_AR=$AR 6858 # Extract the first word of "ar", so it can be a program name with args. 6859set dummy ar; ac_word=$2 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6861$as_echo_n "checking for $ac_word... " >&6; } 6862if ${ac_cv_path_ac_pt_AR+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864else 6865 case $ac_pt_AR in 6866 [\\/]* | ?:[\\/]*) 6867 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6868 ;; 6869 *) 6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871for as_dir in $PATH 6872do 6873 IFS=$as_save_IFS 6874 test -z "$as_dir" && as_dir=. 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6877 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882 done 6883IFS=$as_save_IFS 6884 6885 ;; 6886esac 6887fi 6888ac_pt_AR=$ac_cv_path_ac_pt_AR 6889if test -n "$ac_pt_AR"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6891$as_echo "$ac_pt_AR" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896 6897 if test "x$ac_pt_AR" = x; then 6898 AR="false" 6899 else 6900 case $cross_compiling:$ac_tool_warned in 6901yes:) 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6904ac_tool_warned=yes ;; 6905esac 6906 AR=$ac_pt_AR 6907 fi 6908else 6909 AR="$ac_cv_path_AR" 6910fi 6911 6912if test $AR = false; then 6913 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6914fi 6915 6916case `pwd` in 6917 *\ * | *\ *) 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6919$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6920esac 6921 6922 6923 6924macro_version='2.4.6' 6925macro_revision='2.4.6' 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939ltmain=$ac_aux_dir/ltmain.sh 6940 6941# Backslashify metacharacters that are still active within 6942# double-quoted strings. 6943sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6944 6945# Same as above, but do not quote variable references. 6946double_quote_subst='s/\(["`\\]\)/\\\1/g' 6947 6948# Sed substitution to delay expansion of an escaped shell variable in a 6949# double_quote_subst'ed string. 6950delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6951 6952# Sed substitution to delay expansion of an escaped single quote. 6953delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6954 6955# Sed substitution to avoid accidental globbing in evaled expressions 6956no_glob_subst='s/\*/\\\*/g' 6957 6958ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6959ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6960ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6961 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6963$as_echo_n "checking how to print strings... " >&6; } 6964# Test print first, because it will be a builtin if present. 6965if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6966 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6967 ECHO='print -r --' 6968elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6969 ECHO='printf %s\n' 6970else 6971 # Use this function as a fallback that always works. 6972 func_fallback_echo () 6973 { 6974 eval 'cat <<_LTECHO_EOF 6975$1 6976_LTECHO_EOF' 6977 } 6978 ECHO='func_fallback_echo' 6979fi 6980 6981# func_echo_all arg... 6982# Invoke $ECHO with all args, space-separated. 6983func_echo_all () 6984{ 6985 $ECHO "" 6986} 6987 6988case $ECHO in 6989 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6990$as_echo "printf" >&6; } ;; 6991 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6992$as_echo "print -r" >&6; } ;; 6993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6994$as_echo "cat" >&6; } ;; 6995esac 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7011$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7012if ${ac_cv_path_SED+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7016 for ac_i in 1 2 3 4 5 6 7; do 7017 ac_script="$ac_script$as_nl$ac_script" 7018 done 7019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7020 { ac_script=; unset ac_script;} 7021 if test -z "$SED"; then 7022 ac_path_SED_found=false 7023 # Loop through the user's path and test for each of PROGNAME-LIST 7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7025for as_dir in $PATH 7026do 7027 IFS=$as_save_IFS 7028 test -z "$as_dir" && as_dir=. 7029 for ac_prog in sed gsed; do 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7032 as_fn_executable_p "$ac_path_SED" || continue 7033# Check for GNU ac_path_SED and select it if it is found. 7034 # Check for GNU $ac_path_SED 7035case `"$ac_path_SED" --version 2>&1` in 7036*GNU*) 7037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7038*) 7039 ac_count=0 7040 $as_echo_n 0123456789 >"conftest.in" 7041 while : 7042 do 7043 cat "conftest.in" "conftest.in" >"conftest.tmp" 7044 mv "conftest.tmp" "conftest.in" 7045 cp "conftest.in" "conftest.nl" 7046 $as_echo '' >> "conftest.nl" 7047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7049 as_fn_arith $ac_count + 1 && ac_count=$as_val 7050 if test $ac_count -gt ${ac_path_SED_max-0}; then 7051 # Best one so far, save it but keep looking for a better one 7052 ac_cv_path_SED="$ac_path_SED" 7053 ac_path_SED_max=$ac_count 7054 fi 7055 # 10*(2^10) chars as input seems more than enough 7056 test $ac_count -gt 10 && break 7057 done 7058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7059esac 7060 7061 $ac_path_SED_found && break 3 7062 done 7063 done 7064 done 7065IFS=$as_save_IFS 7066 if test -z "$ac_cv_path_SED"; then 7067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7068 fi 7069else 7070 ac_cv_path_SED=$SED 7071fi 7072 7073fi 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7075$as_echo "$ac_cv_path_SED" >&6; } 7076 SED="$ac_cv_path_SED" 7077 rm -f conftest.sed 7078 7079test -z "$SED" && SED=sed 7080Xsed="$SED -e 1s/^X//" 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7093$as_echo_n "checking for fgrep... " >&6; } 7094if ${ac_cv_path_FGREP+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7098 then ac_cv_path_FGREP="$GREP -F" 7099 else 7100 if test -z "$FGREP"; then 7101 ac_path_FGREP_found=false 7102 # Loop through the user's path and test for each of PROGNAME-LIST 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7105do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_prog in fgrep; do 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7111 as_fn_executable_p "$ac_path_FGREP" || continue 7112# Check for GNU ac_path_FGREP and select it if it is found. 7113 # Check for GNU $ac_path_FGREP 7114case `"$ac_path_FGREP" --version 2>&1` in 7115*GNU*) 7116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7117*) 7118 ac_count=0 7119 $as_echo_n 0123456789 >"conftest.in" 7120 while : 7121 do 7122 cat "conftest.in" "conftest.in" >"conftest.tmp" 7123 mv "conftest.tmp" "conftest.in" 7124 cp "conftest.in" "conftest.nl" 7125 $as_echo 'FGREP' >> "conftest.nl" 7126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7128 as_fn_arith $ac_count + 1 && ac_count=$as_val 7129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7130 # Best one so far, save it but keep looking for a better one 7131 ac_cv_path_FGREP="$ac_path_FGREP" 7132 ac_path_FGREP_max=$ac_count 7133 fi 7134 # 10*(2^10) chars as input seems more than enough 7135 test $ac_count -gt 10 && break 7136 done 7137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7138esac 7139 7140 $ac_path_FGREP_found && break 3 7141 done 7142 done 7143 done 7144IFS=$as_save_IFS 7145 if test -z "$ac_cv_path_FGREP"; then 7146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7147 fi 7148else 7149 ac_cv_path_FGREP=$FGREP 7150fi 7151 7152 fi 7153fi 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7155$as_echo "$ac_cv_path_FGREP" >&6; } 7156 FGREP="$ac_cv_path_FGREP" 7157 7158 7159test -z "$GREP" && GREP=grep 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179# Check whether --with-gnu-ld was given. 7180if test "${with_gnu_ld+set}" = set; then : 7181 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7182else 7183 with_gnu_ld=no 7184fi 7185 7186ac_prog=ld 7187if test yes = "$GCC"; then 7188 # Check if gcc -print-prog-name=ld gives a path. 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7190$as_echo_n "checking for ld used by $CC... " >&6; } 7191 case $host in 7192 *-*-mingw*) 7193 # gcc leaves a trailing carriage return, which upsets mingw 7194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7195 *) 7196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7197 esac 7198 case $ac_prog in 7199 # Accept absolute paths. 7200 [\\/]* | ?:[\\/]*) 7201 re_direlt='/[^/][^/]*/\.\./' 7202 # Canonicalize the pathname of ld 7203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7206 done 7207 test -z "$LD" && LD=$ac_prog 7208 ;; 7209 "") 7210 # If it fails, then pretend we aren't using GCC. 7211 ac_prog=ld 7212 ;; 7213 *) 7214 # If it is relative, then search for the first ld in PATH. 7215 with_gnu_ld=unknown 7216 ;; 7217 esac 7218elif test yes = "$with_gnu_ld"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7220$as_echo_n "checking for GNU ld... " >&6; } 7221else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7223$as_echo_n "checking for non-GNU ld... " >&6; } 7224fi 7225if ${lt_cv_path_LD+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 if test -z "$LD"; then 7229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7230 for ac_dir in $PATH; do 7231 IFS=$lt_save_ifs 7232 test -z "$ac_dir" && ac_dir=. 7233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7234 lt_cv_path_LD=$ac_dir/$ac_prog 7235 # Check to see if the program is GNU ld. I'd rather use --version, 7236 # but apparently some variants of GNU ld only accept -v. 7237 # Break only if it was the GNU/non-GNU ld that we prefer. 7238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7239 *GNU* | *'with BFD'*) 7240 test no != "$with_gnu_ld" && break 7241 ;; 7242 *) 7243 test yes != "$with_gnu_ld" && break 7244 ;; 7245 esac 7246 fi 7247 done 7248 IFS=$lt_save_ifs 7249else 7250 lt_cv_path_LD=$LD # Let the user override the test with a path. 7251fi 7252fi 7253 7254LD=$lt_cv_path_LD 7255if test -n "$LD"; then 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7257$as_echo "$LD" >&6; } 7258else 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7260$as_echo "no" >&6; } 7261fi 7262test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7264$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7265if ${lt_cv_prog_gnu_ld+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7269case `$LD -v 2>&1 </dev/null` in 7270*GNU* | *'with BFD'*) 7271 lt_cv_prog_gnu_ld=yes 7272 ;; 7273*) 7274 lt_cv_prog_gnu_ld=no 7275 ;; 7276esac 7277fi 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7279$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7280with_gnu_ld=$lt_cv_prog_gnu_ld 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7291$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7292if ${lt_cv_path_NM+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 if test -n "$NM"; then 7296 # Let the user override the test. 7297 lt_cv_path_NM=$NM 7298else 7299 lt_nm_to_check=${ac_tool_prefix}nm 7300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7301 lt_nm_to_check="$lt_nm_to_check nm" 7302 fi 7303 for lt_tmp_nm in $lt_nm_to_check; do 7304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7306 IFS=$lt_save_ifs 7307 test -z "$ac_dir" && ac_dir=. 7308 tmp_nm=$ac_dir/$lt_tmp_nm 7309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7310 # Check to see if the nm accepts a BSD-compat flag. 7311 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7312 # nm: unknown option "B" ignored 7313 # Tru64's nm complains that /dev/null is an invalid object file 7314 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7315 case $build_os in 7316 mingw*) lt_bad_file=conftest.nm/nofile ;; 7317 *) lt_bad_file=/dev/null ;; 7318 esac 7319 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7320 *$lt_bad_file* | *'Invalid file or object type'*) 7321 lt_cv_path_NM="$tmp_nm -B" 7322 break 2 7323 ;; 7324 *) 7325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7326 */dev/null*) 7327 lt_cv_path_NM="$tmp_nm -p" 7328 break 2 7329 ;; 7330 *) 7331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7332 continue # so that we can try to find one that supports BSD flags 7333 ;; 7334 esac 7335 ;; 7336 esac 7337 fi 7338 done 7339 IFS=$lt_save_ifs 7340 done 7341 : ${lt_cv_path_NM=no} 7342fi 7343fi 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7345$as_echo "$lt_cv_path_NM" >&6; } 7346if test no != "$lt_cv_path_NM"; then 7347 NM=$lt_cv_path_NM 7348else 7349 # Didn't find any BSD compatible name lister, look for dumpbin. 7350 if test -n "$DUMPBIN"; then : 7351 # Let the user override the test. 7352 else 7353 if test -n "$ac_tool_prefix"; then 7354 for ac_prog in dumpbin "link -dump" 7355 do 7356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7357set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359$as_echo_n "checking for $ac_word... " >&6; } 7360if ${ac_cv_prog_DUMPBIN+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 if test -n "$DUMPBIN"; then 7364 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7365else 7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367for as_dir in $PATH 7368do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377done 7378 done 7379IFS=$as_save_IFS 7380 7381fi 7382fi 7383DUMPBIN=$ac_cv_prog_DUMPBIN 7384if test -n "$DUMPBIN"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7386$as_echo "$DUMPBIN" >&6; } 7387else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7389$as_echo "no" >&6; } 7390fi 7391 7392 7393 test -n "$DUMPBIN" && break 7394 done 7395fi 7396if test -z "$DUMPBIN"; then 7397 ac_ct_DUMPBIN=$DUMPBIN 7398 for ac_prog in dumpbin "link -dump" 7399do 7400 # Extract the first word of "$ac_prog", so it can be a program name with args. 7401set dummy $ac_prog; ac_word=$2 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7403$as_echo_n "checking for $ac_word... " >&6; } 7404if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 if test -n "$ac_ct_DUMPBIN"; then 7408 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7409else 7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7411for as_dir in $PATH 7412do 7413 IFS=$as_save_IFS 7414 test -z "$as_dir" && as_dir=. 7415 for ac_exec_ext in '' $ac_executable_extensions; do 7416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7419 break 2 7420 fi 7421done 7422 done 7423IFS=$as_save_IFS 7424 7425fi 7426fi 7427ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7428if test -n "$ac_ct_DUMPBIN"; then 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7430$as_echo "$ac_ct_DUMPBIN" >&6; } 7431else 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7433$as_echo "no" >&6; } 7434fi 7435 7436 7437 test -n "$ac_ct_DUMPBIN" && break 7438done 7439 7440 if test "x$ac_ct_DUMPBIN" = x; then 7441 DUMPBIN=":" 7442 else 7443 case $cross_compiling:$ac_tool_warned in 7444yes:) 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7447ac_tool_warned=yes ;; 7448esac 7449 DUMPBIN=$ac_ct_DUMPBIN 7450 fi 7451fi 7452 7453 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7454 *COFF*) 7455 DUMPBIN="$DUMPBIN -symbols -headers" 7456 ;; 7457 *) 7458 DUMPBIN=: 7459 ;; 7460 esac 7461 fi 7462 7463 if test : != "$DUMPBIN"; then 7464 NM=$DUMPBIN 7465 fi 7466fi 7467test -z "$NM" && NM=nm 7468 7469 7470 7471 7472 7473 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7475$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7476if ${lt_cv_nm_interface+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 lt_cv_nm_interface="BSD nm" 7480 echo "int some_variable = 0;" > conftest.$ac_ext 7481 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7482 (eval "$ac_compile" 2>conftest.err) 7483 cat conftest.err >&5 7484 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7485 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7486 cat conftest.err >&5 7487 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7488 cat conftest.out >&5 7489 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7490 lt_cv_nm_interface="MS dumpbin" 7491 fi 7492 rm -f conftest* 7493fi 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7495$as_echo "$lt_cv_nm_interface" >&6; } 7496 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7498$as_echo_n "checking whether ln -s works... " >&6; } 7499LN_S=$as_ln_s 7500if test "$LN_S" = "ln -s"; then 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7502$as_echo "yes" >&6; } 7503else 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7505$as_echo "no, using $LN_S" >&6; } 7506fi 7507 7508# find the maximum length of command line arguments 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7510$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7511if ${lt_cv_sys_max_cmd_len+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 i=0 7515 teststring=ABCD 7516 7517 case $build_os in 7518 msdosdjgpp*) 7519 # On DJGPP, this test can blow up pretty badly due to problems in libc 7520 # (any single argument exceeding 2000 bytes causes a buffer overrun 7521 # during glob expansion). Even if it were fixed, the result of this 7522 # check would be larger than it should be. 7523 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7524 ;; 7525 7526 gnu*) 7527 # Under GNU Hurd, this test is not required because there is 7528 # no limit to the length of command line arguments. 7529 # Libtool will interpret -1 as no limit whatsoever 7530 lt_cv_sys_max_cmd_len=-1; 7531 ;; 7532 7533 cygwin* | mingw* | cegcc*) 7534 # On Win9x/ME, this test blows up -- it succeeds, but takes 7535 # about 5 minutes as the teststring grows exponentially. 7536 # Worse, since 9x/ME are not pre-emptively multitasking, 7537 # you end up with a "frozen" computer, even though with patience 7538 # the test eventually succeeds (with a max line length of 256k). 7539 # Instead, let's just punt: use the minimum linelength reported by 7540 # all of the supported platforms: 8192 (on NT/2K/XP). 7541 lt_cv_sys_max_cmd_len=8192; 7542 ;; 7543 7544 mint*) 7545 # On MiNT this can take a long time and run out of memory. 7546 lt_cv_sys_max_cmd_len=8192; 7547 ;; 7548 7549 amigaos*) 7550 # On AmigaOS with pdksh, this test takes hours, literally. 7551 # So we just punt and use a minimum line length of 8192. 7552 lt_cv_sys_max_cmd_len=8192; 7553 ;; 7554 7555 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7556 # This has been around since 386BSD, at least. Likely further. 7557 if test -x /sbin/sysctl; then 7558 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7559 elif test -x /usr/sbin/sysctl; then 7560 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7561 else 7562 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7563 fi 7564 # And add a safety zone 7565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7567 ;; 7568 7569 interix*) 7570 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7571 lt_cv_sys_max_cmd_len=196608 7572 ;; 7573 7574 os2*) 7575 # The test takes a long time on OS/2. 7576 lt_cv_sys_max_cmd_len=8192 7577 ;; 7578 7579 osf*) 7580 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7581 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7582 # nice to cause kernel panics so lets avoid the loop below. 7583 # First set a reasonable default. 7584 lt_cv_sys_max_cmd_len=16384 7585 # 7586 if test -x /sbin/sysconfig; then 7587 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7588 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7589 esac 7590 fi 7591 ;; 7592 sco3.2v5*) 7593 lt_cv_sys_max_cmd_len=102400 7594 ;; 7595 sysv5* | sco5v6* | sysv4.2uw2*) 7596 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7597 if test -n "$kargmax"; then 7598 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7599 else 7600 lt_cv_sys_max_cmd_len=32768 7601 fi 7602 ;; 7603 *) 7604 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7605 if test -n "$lt_cv_sys_max_cmd_len" && \ 7606 test undefined != "$lt_cv_sys_max_cmd_len"; then 7607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7609 else 7610 # Make teststring a little bigger before we do anything with it. 7611 # a 1K string should be a reasonable start. 7612 for i in 1 2 3 4 5 6 7 8; do 7613 teststring=$teststring$teststring 7614 done 7615 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7616 # If test is not a shell built-in, we'll probably end up computing a 7617 # maximum length that is only half of the actual maximum length, but 7618 # we can't tell. 7619 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7620 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7621 test 17 != "$i" # 1/2 MB should be enough 7622 do 7623 i=`expr $i + 1` 7624 teststring=$teststring$teststring 7625 done 7626 # Only check the string length outside the loop. 7627 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7628 teststring= 7629 # Add a significant safety factor because C++ compilers can tack on 7630 # massive amounts of additional arguments before passing them to the 7631 # linker. It appears as though 1/2 is a usable value. 7632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7633 fi 7634 ;; 7635 esac 7636 7637fi 7638 7639if test -n "$lt_cv_sys_max_cmd_len"; then 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7641$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7642else 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7644$as_echo "none" >&6; } 7645fi 7646max_cmd_len=$lt_cv_sys_max_cmd_len 7647 7648 7649 7650 7651 7652 7653: ${CP="cp -f"} 7654: ${MV="mv -f"} 7655: ${RM="rm -f"} 7656 7657if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7658 lt_unset=unset 7659else 7660 lt_unset=false 7661fi 7662 7663 7664 7665 7666 7667# test EBCDIC or ASCII 7668case `echo X|tr X '\101'` in 7669 A) # ASCII based system 7670 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7671 lt_SP2NL='tr \040 \012' 7672 lt_NL2SP='tr \015\012 \040\040' 7673 ;; 7674 *) # EBCDIC based system 7675 lt_SP2NL='tr \100 \n' 7676 lt_NL2SP='tr \r\n \100\100' 7677 ;; 7678esac 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7689$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7690if ${lt_cv_to_host_file_cmd+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 case $host in 7694 *-*-mingw* ) 7695 case $build in 7696 *-*-mingw* ) # actually msys 7697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7698 ;; 7699 *-*-cygwin* ) 7700 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7701 ;; 7702 * ) # otherwise, assume *nix 7703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7704 ;; 7705 esac 7706 ;; 7707 *-*-cygwin* ) 7708 case $build in 7709 *-*-mingw* ) # actually msys 7710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7711 ;; 7712 *-*-cygwin* ) 7713 lt_cv_to_host_file_cmd=func_convert_file_noop 7714 ;; 7715 * ) # otherwise, assume *nix 7716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7717 ;; 7718 esac 7719 ;; 7720 * ) # unhandled hosts (and "normal" native builds) 7721 lt_cv_to_host_file_cmd=func_convert_file_noop 7722 ;; 7723esac 7724 7725fi 7726 7727to_host_file_cmd=$lt_cv_to_host_file_cmd 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7729$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7730 7731 7732 7733 7734 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7736$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7737if ${lt_cv_to_tool_file_cmd+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 #assume ordinary cross tools, or native build. 7741lt_cv_to_tool_file_cmd=func_convert_file_noop 7742case $host in 7743 *-*-mingw* ) 7744 case $build in 7745 *-*-mingw* ) # actually msys 7746 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7747 ;; 7748 esac 7749 ;; 7750esac 7751 7752fi 7753 7754to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7756$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7757 7758 7759 7760 7761 7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7763$as_echo_n "checking for $LD option to reload object files... " >&6; } 7764if ${lt_cv_ld_reload_flag+:} false; then : 7765 $as_echo_n "(cached) " >&6 7766else 7767 lt_cv_ld_reload_flag='-r' 7768fi 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7770$as_echo "$lt_cv_ld_reload_flag" >&6; } 7771reload_flag=$lt_cv_ld_reload_flag 7772case $reload_flag in 7773"" | " "*) ;; 7774*) reload_flag=" $reload_flag" ;; 7775esac 7776reload_cmds='$LD$reload_flag -o $output$reload_objs' 7777case $host_os in 7778 cygwin* | mingw* | pw32* | cegcc*) 7779 if test yes != "$GCC"; then 7780 reload_cmds=false 7781 fi 7782 ;; 7783 darwin*) 7784 if test yes = "$GCC"; then 7785 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7786 else 7787 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7788 fi 7789 ;; 7790esac 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800if test -n "$ac_tool_prefix"; then 7801 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7802set dummy ${ac_tool_prefix}objdump; ac_word=$2 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7804$as_echo_n "checking for $ac_word... " >&6; } 7805if ${ac_cv_prog_OBJDUMP+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 if test -n "$OBJDUMP"; then 7809 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7810else 7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7812for as_dir in $PATH 7813do 7814 IFS=$as_save_IFS 7815 test -z "$as_dir" && as_dir=. 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7818 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822done 7823 done 7824IFS=$as_save_IFS 7825 7826fi 7827fi 7828OBJDUMP=$ac_cv_prog_OBJDUMP 7829if test -n "$OBJDUMP"; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7831$as_echo "$OBJDUMP" >&6; } 7832else 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7834$as_echo "no" >&6; } 7835fi 7836 7837 7838fi 7839if test -z "$ac_cv_prog_OBJDUMP"; then 7840 ac_ct_OBJDUMP=$OBJDUMP 7841 # Extract the first word of "objdump", so it can be a program name with args. 7842set dummy objdump; ac_word=$2 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7844$as_echo_n "checking for $ac_word... " >&6; } 7845if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 if test -n "$ac_ct_OBJDUMP"; then 7849 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7850else 7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7852for as_dir in $PATH 7853do 7854 IFS=$as_save_IFS 7855 test -z "$as_dir" && as_dir=. 7856 for ac_exec_ext in '' $ac_executable_extensions; do 7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7858 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7860 break 2 7861 fi 7862done 7863 done 7864IFS=$as_save_IFS 7865 7866fi 7867fi 7868ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7869if test -n "$ac_ct_OBJDUMP"; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7871$as_echo "$ac_ct_OBJDUMP" >&6; } 7872else 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875fi 7876 7877 if test "x$ac_ct_OBJDUMP" = x; then 7878 OBJDUMP="false" 7879 else 7880 case $cross_compiling:$ac_tool_warned in 7881yes:) 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7884ac_tool_warned=yes ;; 7885esac 7886 OBJDUMP=$ac_ct_OBJDUMP 7887 fi 7888else 7889 OBJDUMP="$ac_cv_prog_OBJDUMP" 7890fi 7891 7892test -z "$OBJDUMP" && OBJDUMP=objdump 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7903$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7904if ${lt_cv_deplibs_check_method+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 lt_cv_file_magic_cmd='$MAGIC_CMD' 7908lt_cv_file_magic_test_file= 7909lt_cv_deplibs_check_method='unknown' 7910# Need to set the preceding variable on all platforms that support 7911# interlibrary dependencies. 7912# 'none' -- dependencies not supported. 7913# 'unknown' -- same as none, but documents that we really don't know. 7914# 'pass_all' -- all dependencies passed with no checks. 7915# 'test_compile' -- check by making test program. 7916# 'file_magic [[regex]]' -- check by looking for files in library path 7917# that responds to the $file_magic_cmd with a given extended regex. 7918# If you have 'file' or equivalent on your system and you're not sure 7919# whether 'pass_all' will *always* work, you probably want this one. 7920 7921case $host_os in 7922aix[4-9]*) 7923 lt_cv_deplibs_check_method=pass_all 7924 ;; 7925 7926beos*) 7927 lt_cv_deplibs_check_method=pass_all 7928 ;; 7929 7930bsdi[45]*) 7931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7932 lt_cv_file_magic_cmd='/usr/bin/file -L' 7933 lt_cv_file_magic_test_file=/shlib/libc.so 7934 ;; 7935 7936cygwin*) 7937 # func_win32_libid is a shell function defined in ltmain.sh 7938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7939 lt_cv_file_magic_cmd='func_win32_libid' 7940 ;; 7941 7942mingw* | pw32*) 7943 # Base MSYS/MinGW do not provide the 'file' command needed by 7944 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7945 # unless we find 'file', for example because we are cross-compiling. 7946 if ( file / ) >/dev/null 2>&1; then 7947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7948 lt_cv_file_magic_cmd='func_win32_libid' 7949 else 7950 # Keep this pattern in sync with the one in func_win32_libid. 7951 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7952 lt_cv_file_magic_cmd='$OBJDUMP -f' 7953 fi 7954 ;; 7955 7956cegcc*) 7957 # use the weaker test based on 'objdump'. See mingw*. 7958 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7959 lt_cv_file_magic_cmd='$OBJDUMP -f' 7960 ;; 7961 7962darwin* | rhapsody*) 7963 lt_cv_deplibs_check_method=pass_all 7964 ;; 7965 7966freebsd* | dragonfly*) 7967 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7968 case $host_cpu in 7969 i*86 ) 7970 # Not sure whether the presence of OpenBSD here was a mistake. 7971 # Let's accept both of them until this is cleared up. 7972 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7973 lt_cv_file_magic_cmd=/usr/bin/file 7974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7975 ;; 7976 esac 7977 else 7978 lt_cv_deplibs_check_method=pass_all 7979 fi 7980 ;; 7981 7982haiku*) 7983 lt_cv_deplibs_check_method=pass_all 7984 ;; 7985 7986hpux10.20* | hpux11*) 7987 lt_cv_file_magic_cmd=/usr/bin/file 7988 case $host_cpu in 7989 ia64*) 7990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7992 ;; 7993 hppa*64*) 7994 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]' 7995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7996 ;; 7997 *) 7998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7999 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8000 ;; 8001 esac 8002 ;; 8003 8004interix[3-9]*) 8005 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8007 ;; 8008 8009irix5* | irix6* | nonstopux*) 8010 case $LD in 8011 *-32|*"-32 ") libmagic=32-bit;; 8012 *-n32|*"-n32 ") libmagic=N32;; 8013 *-64|*"-64 ") libmagic=64-bit;; 8014 *) libmagic=never-match;; 8015 esac 8016 lt_cv_deplibs_check_method=pass_all 8017 ;; 8018 8019# This must be glibc/ELF. 8020linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8021 lt_cv_deplibs_check_method=pass_all 8022 ;; 8023 8024netbsd*) 8025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8027 else 8028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8029 fi 8030 ;; 8031 8032newos6*) 8033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8034 lt_cv_file_magic_cmd=/usr/bin/file 8035 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8036 ;; 8037 8038*nto* | *qnx*) 8039 lt_cv_deplibs_check_method=pass_all 8040 ;; 8041 8042openbsd* | bitrig*) 8043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8045 else 8046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8047 fi 8048 ;; 8049 8050osf3* | osf4* | osf5*) 8051 lt_cv_deplibs_check_method=pass_all 8052 ;; 8053 8054rdos*) 8055 lt_cv_deplibs_check_method=pass_all 8056 ;; 8057 8058solaris*) 8059 lt_cv_deplibs_check_method=pass_all 8060 ;; 8061 8062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8063 lt_cv_deplibs_check_method=pass_all 8064 ;; 8065 8066sysv4 | sysv4.3*) 8067 case $host_vendor in 8068 motorola) 8069 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]' 8070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8071 ;; 8072 ncr) 8073 lt_cv_deplibs_check_method=pass_all 8074 ;; 8075 sequent) 8076 lt_cv_file_magic_cmd='/bin/file' 8077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8078 ;; 8079 sni) 8080 lt_cv_file_magic_cmd='/bin/file' 8081 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8082 lt_cv_file_magic_test_file=/lib/libc.so 8083 ;; 8084 siemens) 8085 lt_cv_deplibs_check_method=pass_all 8086 ;; 8087 pc) 8088 lt_cv_deplibs_check_method=pass_all 8089 ;; 8090 esac 8091 ;; 8092 8093tpf*) 8094 lt_cv_deplibs_check_method=pass_all 8095 ;; 8096os2*) 8097 lt_cv_deplibs_check_method=pass_all 8098 ;; 8099esac 8100 8101fi 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8103$as_echo "$lt_cv_deplibs_check_method" >&6; } 8104 8105file_magic_glob= 8106want_nocaseglob=no 8107if test "$build" = "$host"; then 8108 case $host_os in 8109 mingw* | pw32*) 8110 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8111 want_nocaseglob=yes 8112 else 8113 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8114 fi 8115 ;; 8116 esac 8117fi 8118 8119file_magic_cmd=$lt_cv_file_magic_cmd 8120deplibs_check_method=$lt_cv_deplibs_check_method 8121test -z "$deplibs_check_method" && deplibs_check_method=unknown 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144if test -n "$ac_tool_prefix"; then 8145 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8146set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8148$as_echo_n "checking for $ac_word... " >&6; } 8149if ${ac_cv_prog_DLLTOOL+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 if test -n "$DLLTOOL"; then 8153 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8154else 8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8156for as_dir in $PATH 8157do 8158 IFS=$as_save_IFS 8159 test -z "$as_dir" && as_dir=. 8160 for ac_exec_ext in '' $ac_executable_extensions; do 8161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8162 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8164 break 2 8165 fi 8166done 8167 done 8168IFS=$as_save_IFS 8169 8170fi 8171fi 8172DLLTOOL=$ac_cv_prog_DLLTOOL 8173if test -n "$DLLTOOL"; then 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8175$as_echo "$DLLTOOL" >&6; } 8176else 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8178$as_echo "no" >&6; } 8179fi 8180 8181 8182fi 8183if test -z "$ac_cv_prog_DLLTOOL"; then 8184 ac_ct_DLLTOOL=$DLLTOOL 8185 # Extract the first word of "dlltool", so it can be a program name with args. 8186set dummy dlltool; ac_word=$2 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8188$as_echo_n "checking for $ac_word... " >&6; } 8189if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 if test -n "$ac_ct_DLLTOOL"; then 8193 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8194else 8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8196for as_dir in $PATH 8197do 8198 IFS=$as_save_IFS 8199 test -z "$as_dir" && as_dir=. 8200 for ac_exec_ext in '' $ac_executable_extensions; do 8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8202 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8204 break 2 8205 fi 8206done 8207 done 8208IFS=$as_save_IFS 8209 8210fi 8211fi 8212ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8213if test -n "$ac_ct_DLLTOOL"; then 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8215$as_echo "$ac_ct_DLLTOOL" >&6; } 8216else 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8218$as_echo "no" >&6; } 8219fi 8220 8221 if test "x$ac_ct_DLLTOOL" = x; then 8222 DLLTOOL="false" 8223 else 8224 case $cross_compiling:$ac_tool_warned in 8225yes:) 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8228ac_tool_warned=yes ;; 8229esac 8230 DLLTOOL=$ac_ct_DLLTOOL 8231 fi 8232else 8233 DLLTOOL="$ac_cv_prog_DLLTOOL" 8234fi 8235 8236test -z "$DLLTOOL" && DLLTOOL=dlltool 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8248$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8249if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 lt_cv_sharedlib_from_linklib_cmd='unknown' 8253 8254case $host_os in 8255cygwin* | mingw* | pw32* | cegcc*) 8256 # two different shell functions defined in ltmain.sh; 8257 # decide which one to use based on capabilities of $DLLTOOL 8258 case `$DLLTOOL --help 2>&1` in 8259 *--identify-strict*) 8260 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8261 ;; 8262 *) 8263 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8264 ;; 8265 esac 8266 ;; 8267*) 8268 # fallback: assume linklib IS sharedlib 8269 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8270 ;; 8271esac 8272 8273fi 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8275$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8276sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8277test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8278 8279 8280 8281 8282 8283 8284 8285if test -n "$ac_tool_prefix"; then 8286 for ac_prog in ar 8287 do 8288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8289set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8291$as_echo_n "checking for $ac_word... " >&6; } 8292if ${ac_cv_prog_AR+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 if test -n "$AR"; then 8296 ac_cv_prog_AR="$AR" # Let the user override the test. 8297else 8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8299for as_dir in $PATH 8300do 8301 IFS=$as_save_IFS 8302 test -z "$as_dir" && as_dir=. 8303 for ac_exec_ext in '' $ac_executable_extensions; do 8304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8307 break 2 8308 fi 8309done 8310 done 8311IFS=$as_save_IFS 8312 8313fi 8314fi 8315AR=$ac_cv_prog_AR 8316if test -n "$AR"; then 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8318$as_echo "$AR" >&6; } 8319else 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321$as_echo "no" >&6; } 8322fi 8323 8324 8325 test -n "$AR" && break 8326 done 8327fi 8328if test -z "$AR"; then 8329 ac_ct_AR=$AR 8330 for ac_prog in ar 8331do 8332 # Extract the first word of "$ac_prog", so it can be a program name with args. 8333set dummy $ac_prog; ac_word=$2 8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8335$as_echo_n "checking for $ac_word... " >&6; } 8336if ${ac_cv_prog_ac_ct_AR+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338else 8339 if test -n "$ac_ct_AR"; then 8340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8341else 8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8343for as_dir in $PATH 8344do 8345 IFS=$as_save_IFS 8346 test -z "$as_dir" && as_dir=. 8347 for ac_exec_ext in '' $ac_executable_extensions; do 8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8349 ac_cv_prog_ac_ct_AR="$ac_prog" 8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8351 break 2 8352 fi 8353done 8354 done 8355IFS=$as_save_IFS 8356 8357fi 8358fi 8359ac_ct_AR=$ac_cv_prog_ac_ct_AR 8360if test -n "$ac_ct_AR"; then 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8362$as_echo "$ac_ct_AR" >&6; } 8363else 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8365$as_echo "no" >&6; } 8366fi 8367 8368 8369 test -n "$ac_ct_AR" && break 8370done 8371 8372 if test "x$ac_ct_AR" = x; then 8373 AR="false" 8374 else 8375 case $cross_compiling:$ac_tool_warned in 8376yes:) 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8379ac_tool_warned=yes ;; 8380esac 8381 AR=$ac_ct_AR 8382 fi 8383fi 8384 8385: ${AR=ar} 8386: ${AR_FLAGS=cru} 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8399$as_echo_n "checking for archiver @FILE support... " >&6; } 8400if ${lt_cv_ar_at_file+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 lt_cv_ar_at_file=no 8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8405/* end confdefs.h. */ 8406 8407int 8408main () 8409{ 8410 8411 ; 8412 return 0; 8413} 8414_ACEOF 8415if ac_fn_c_try_compile "$LINENO"; then : 8416 echo conftest.$ac_objext > conftest.lst 8417 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8419 (eval $lt_ar_try) 2>&5 8420 ac_status=$? 8421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8422 test $ac_status = 0; } 8423 if test 0 -eq "$ac_status"; then 8424 # Ensure the archiver fails upon bogus file names. 8425 rm -f conftest.$ac_objext libconftest.a 8426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8427 (eval $lt_ar_try) 2>&5 8428 ac_status=$? 8429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8430 test $ac_status = 0; } 8431 if test 0 -ne "$ac_status"; then 8432 lt_cv_ar_at_file=@ 8433 fi 8434 fi 8435 rm -f conftest.* libconftest.a 8436 8437fi 8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8439 8440fi 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8442$as_echo "$lt_cv_ar_at_file" >&6; } 8443 8444if test no = "$lt_cv_ar_at_file"; then 8445 archiver_list_spec= 8446else 8447 archiver_list_spec=$lt_cv_ar_at_file 8448fi 8449 8450 8451 8452 8453 8454 8455 8456if test -n "$ac_tool_prefix"; then 8457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8458set dummy ${ac_tool_prefix}strip; ac_word=$2 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8460$as_echo_n "checking for $ac_word... " >&6; } 8461if ${ac_cv_prog_STRIP+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 if test -n "$STRIP"; then 8465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8466else 8467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8468for as_dir in $PATH 8469do 8470 IFS=$as_save_IFS 8471 test -z "$as_dir" && as_dir=. 8472 for ac_exec_ext in '' $ac_executable_extensions; do 8473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8474 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8476 break 2 8477 fi 8478done 8479 done 8480IFS=$as_save_IFS 8481 8482fi 8483fi 8484STRIP=$ac_cv_prog_STRIP 8485if test -n "$STRIP"; then 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8487$as_echo "$STRIP" >&6; } 8488else 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8490$as_echo "no" >&6; } 8491fi 8492 8493 8494fi 8495if test -z "$ac_cv_prog_STRIP"; then 8496 ac_ct_STRIP=$STRIP 8497 # Extract the first word of "strip", so it can be a program name with args. 8498set dummy strip; ac_word=$2 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8500$as_echo_n "checking for $ac_word... " >&6; } 8501if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 if test -n "$ac_ct_STRIP"; then 8505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8506else 8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8508for as_dir in $PATH 8509do 8510 IFS=$as_save_IFS 8511 test -z "$as_dir" && as_dir=. 8512 for ac_exec_ext in '' $ac_executable_extensions; do 8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8514 ac_cv_prog_ac_ct_STRIP="strip" 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8516 break 2 8517 fi 8518done 8519 done 8520IFS=$as_save_IFS 8521 8522fi 8523fi 8524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8525if test -n "$ac_ct_STRIP"; then 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8527$as_echo "$ac_ct_STRIP" >&6; } 8528else 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8530$as_echo "no" >&6; } 8531fi 8532 8533 if test "x$ac_ct_STRIP" = x; then 8534 STRIP=":" 8535 else 8536 case $cross_compiling:$ac_tool_warned in 8537yes:) 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8540ac_tool_warned=yes ;; 8541esac 8542 STRIP=$ac_ct_STRIP 8543 fi 8544else 8545 STRIP="$ac_cv_prog_STRIP" 8546fi 8547 8548test -z "$STRIP" && STRIP=: 8549 8550 8551 8552 8553 8554 8555if test -n "$ac_tool_prefix"; then 8556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8557set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8559$as_echo_n "checking for $ac_word... " >&6; } 8560if ${ac_cv_prog_RANLIB+:} false; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 if test -n "$RANLIB"; then 8564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8565else 8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8567for as_dir in $PATH 8568do 8569 IFS=$as_save_IFS 8570 test -z "$as_dir" && as_dir=. 8571 for ac_exec_ext in '' $ac_executable_extensions; do 8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8575 break 2 8576 fi 8577done 8578 done 8579IFS=$as_save_IFS 8580 8581fi 8582fi 8583RANLIB=$ac_cv_prog_RANLIB 8584if test -n "$RANLIB"; then 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8586$as_echo "$RANLIB" >&6; } 8587else 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8589$as_echo "no" >&6; } 8590fi 8591 8592 8593fi 8594if test -z "$ac_cv_prog_RANLIB"; then 8595 ac_ct_RANLIB=$RANLIB 8596 # Extract the first word of "ranlib", so it can be a program name with args. 8597set dummy ranlib; ac_word=$2 8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8599$as_echo_n "checking for $ac_word... " >&6; } 8600if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 if test -n "$ac_ct_RANLIB"; then 8604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8605else 8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8607for as_dir in $PATH 8608do 8609 IFS=$as_save_IFS 8610 test -z "$as_dir" && as_dir=. 8611 for ac_exec_ext in '' $ac_executable_extensions; do 8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8613 ac_cv_prog_ac_ct_RANLIB="ranlib" 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8615 break 2 8616 fi 8617done 8618 done 8619IFS=$as_save_IFS 8620 8621fi 8622fi 8623ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8624if test -n "$ac_ct_RANLIB"; then 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8626$as_echo "$ac_ct_RANLIB" >&6; } 8627else 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8629$as_echo "no" >&6; } 8630fi 8631 8632 if test "x$ac_ct_RANLIB" = x; then 8633 RANLIB=":" 8634 else 8635 case $cross_compiling:$ac_tool_warned in 8636yes:) 8637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8639ac_tool_warned=yes ;; 8640esac 8641 RANLIB=$ac_ct_RANLIB 8642 fi 8643else 8644 RANLIB="$ac_cv_prog_RANLIB" 8645fi 8646 8647test -z "$RANLIB" && RANLIB=: 8648 8649 8650 8651 8652 8653 8654# Determine commands to create old-style static archives. 8655old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8656old_postinstall_cmds='chmod 644 $oldlib' 8657old_postuninstall_cmds= 8658 8659if test -n "$RANLIB"; then 8660 case $host_os in 8661 bitrig* | openbsd*) 8662 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8663 ;; 8664 *) 8665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8666 ;; 8667 esac 8668 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8669fi 8670 8671case $host_os in 8672 darwin*) 8673 lock_old_archive_extraction=yes ;; 8674 *) 8675 lock_old_archive_extraction=no ;; 8676esac 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698for ac_prog in gawk mawk nawk awk 8699do 8700 # Extract the first word of "$ac_prog", so it can be a program name with args. 8701set dummy $ac_prog; ac_word=$2 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8703$as_echo_n "checking for $ac_word... " >&6; } 8704if ${ac_cv_prog_AWK+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 if test -n "$AWK"; then 8708 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8709else 8710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8711for as_dir in $PATH 8712do 8713 IFS=$as_save_IFS 8714 test -z "$as_dir" && as_dir=. 8715 for ac_exec_ext in '' $ac_executable_extensions; do 8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8717 ac_cv_prog_AWK="$ac_prog" 8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8719 break 2 8720 fi 8721done 8722 done 8723IFS=$as_save_IFS 8724 8725fi 8726fi 8727AWK=$ac_cv_prog_AWK 8728if test -n "$AWK"; then 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8730$as_echo "$AWK" >&6; } 8731else 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8733$as_echo "no" >&6; } 8734fi 8735 8736 8737 test -n "$AWK" && break 8738done 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758# If no C compiler was specified, use CC. 8759LTCC=${LTCC-"$CC"} 8760 8761# If no C compiler flags were specified, use CFLAGS. 8762LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8763 8764# Allow CC to be a program name with arguments. 8765compiler=$CC 8766 8767 8768# Check for command to grab the raw symbol name followed by C symbol from nm. 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8770$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8771if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 8775# These are sane defaults that work on at least a few old systems. 8776# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8777 8778# Character class describing NM global symbol codes. 8779symcode='[BCDEGRST]' 8780 8781# Regexp to match symbols that can be accessed directly from C. 8782sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8783 8784# Define system-specific variables. 8785case $host_os in 8786aix*) 8787 symcode='[BCDT]' 8788 ;; 8789cygwin* | mingw* | pw32* | cegcc*) 8790 symcode='[ABCDGISTW]' 8791 ;; 8792hpux*) 8793 if test ia64 = "$host_cpu"; then 8794 symcode='[ABCDEGRST]' 8795 fi 8796 ;; 8797irix* | nonstopux*) 8798 symcode='[BCDEGRST]' 8799 ;; 8800osf*) 8801 symcode='[BCDEGQRST]' 8802 ;; 8803solaris*) 8804 symcode='[BDRT]' 8805 ;; 8806sco3.2v5*) 8807 symcode='[DT]' 8808 ;; 8809sysv4.2uw2*) 8810 symcode='[DT]' 8811 ;; 8812sysv5* | sco5v6* | unixware* | OpenUNIX*) 8813 symcode='[ABDT]' 8814 ;; 8815sysv4) 8816 symcode='[DFNSTU]' 8817 ;; 8818esac 8819 8820# If we're using GNU nm, then use its standard symbol codes. 8821case `$NM -V 2>&1` in 8822*GNU* | *'with BFD'*) 8823 symcode='[ABCDGIRSTW]' ;; 8824esac 8825 8826if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8827 # Gets list of data symbols to import. 8828 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8829 # Adjust the below global symbol transforms to fixup imported variables. 8830 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8831 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8832 lt_c_name_lib_hook="\ 8833 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8834 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8835else 8836 # Disable hooks by default. 8837 lt_cv_sys_global_symbol_to_import= 8838 lt_cdecl_hook= 8839 lt_c_name_hook= 8840 lt_c_name_lib_hook= 8841fi 8842 8843# Transform an extracted symbol line into a proper C declaration. 8844# Some systems (esp. on ia64) link data and code symbols differently, 8845# so use this general approach. 8846lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8847$lt_cdecl_hook\ 8848" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8849" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8850 8851# Transform an extracted symbol line into symbol name and symbol address 8852lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8853$lt_c_name_hook\ 8854" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8855" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8856 8857# Transform an extracted symbol line into symbol name with lib prefix and 8858# symbol address. 8859lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8860$lt_c_name_lib_hook\ 8861" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8862" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8863" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8864 8865# Handle CRLF in mingw tool chain 8866opt_cr= 8867case $build_os in 8868mingw*) 8869 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8870 ;; 8871esac 8872 8873# Try without a prefix underscore, then with it. 8874for ac_symprfx in "" "_"; do 8875 8876 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8877 symxfrm="\\1 $ac_symprfx\\2 \\2" 8878 8879 # Write the raw and C identifiers. 8880 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8881 # Fake it for dumpbin and say T for any non-static function, 8882 # D for any global variable and I for any imported variable. 8883 # Also find C++ and __fastcall symbols from MSVC++, 8884 # which start with @ or ?. 8885 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8886" {last_section=section; section=\$ 3};"\ 8887" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8888" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8889" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8890" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8891" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8892" \$ 0!~/External *\|/{next};"\ 8893" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8894" {if(hide[section]) next};"\ 8895" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8896" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8897" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8898" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8899" ' prfx=^$ac_symprfx" 8900 else 8901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8902 fi 8903 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8904 8905 # Check to see that the pipe works correctly. 8906 pipe_works=no 8907 8908 rm -f conftest* 8909 cat > conftest.$ac_ext <<_LT_EOF 8910#ifdef __cplusplus 8911extern "C" { 8912#endif 8913char nm_test_var; 8914void nm_test_func(void); 8915void nm_test_func(void){} 8916#ifdef __cplusplus 8917} 8918#endif 8919int main(){nm_test_var='a';nm_test_func();return(0);} 8920_LT_EOF 8921 8922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8923 (eval $ac_compile) 2>&5 8924 ac_status=$? 8925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8926 test $ac_status = 0; }; then 8927 # Now try to grab the symbols. 8928 nlist=conftest.nm 8929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8930 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8931 ac_status=$? 8932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8933 test $ac_status = 0; } && test -s "$nlist"; then 8934 # Try sorting and uniquifying the output. 8935 if sort "$nlist" | uniq > "$nlist"T; then 8936 mv -f "$nlist"T "$nlist" 8937 else 8938 rm -f "$nlist"T 8939 fi 8940 8941 # Make sure that we snagged all the symbols we need. 8942 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8943 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8944 cat <<_LT_EOF > conftest.$ac_ext 8945/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8946#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8947/* DATA imports from DLLs on WIN32 can't be const, because runtime 8948 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8949# define LT_DLSYM_CONST 8950#elif defined __osf__ 8951/* This system does not cope well with relocations in const data. */ 8952# define LT_DLSYM_CONST 8953#else 8954# define LT_DLSYM_CONST const 8955#endif 8956 8957#ifdef __cplusplus 8958extern "C" { 8959#endif 8960 8961_LT_EOF 8962 # Now generate the symbol file. 8963 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8964 8965 cat <<_LT_EOF >> conftest.$ac_ext 8966 8967/* The mapping between symbol names and symbols. */ 8968LT_DLSYM_CONST struct { 8969 const char *name; 8970 void *address; 8971} 8972lt__PROGRAM__LTX_preloaded_symbols[] = 8973{ 8974 { "@PROGRAM@", (void *) 0 }, 8975_LT_EOF 8976 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8977 cat <<\_LT_EOF >> conftest.$ac_ext 8978 {0, (void *) 0} 8979}; 8980 8981/* This works around a problem in FreeBSD linker */ 8982#ifdef FREEBSD_WORKAROUND 8983static const void *lt_preloaded_setup() { 8984 return lt__PROGRAM__LTX_preloaded_symbols; 8985} 8986#endif 8987 8988#ifdef __cplusplus 8989} 8990#endif 8991_LT_EOF 8992 # Now try linking the two files. 8993 mv conftest.$ac_objext conftstm.$ac_objext 8994 lt_globsym_save_LIBS=$LIBS 8995 lt_globsym_save_CFLAGS=$CFLAGS 8996 LIBS=conftstm.$ac_objext 8997 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8999 (eval $ac_link) 2>&5 9000 ac_status=$? 9001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9002 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9003 pipe_works=yes 9004 fi 9005 LIBS=$lt_globsym_save_LIBS 9006 CFLAGS=$lt_globsym_save_CFLAGS 9007 else 9008 echo "cannot find nm_test_func in $nlist" >&5 9009 fi 9010 else 9011 echo "cannot find nm_test_var in $nlist" >&5 9012 fi 9013 else 9014 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9015 fi 9016 else 9017 echo "$progname: failed program was:" >&5 9018 cat conftest.$ac_ext >&5 9019 fi 9020 rm -rf conftest* conftst* 9021 9022 # Do not use the global_symbol_pipe unless it works. 9023 if test yes = "$pipe_works"; then 9024 break 9025 else 9026 lt_cv_sys_global_symbol_pipe= 9027 fi 9028done 9029 9030fi 9031 9032if test -z "$lt_cv_sys_global_symbol_pipe"; then 9033 lt_cv_sys_global_symbol_to_cdecl= 9034fi 9035if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9037$as_echo "failed" >&6; } 9038else 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9040$as_echo "ok" >&6; } 9041fi 9042 9043# Response file support. 9044if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9045 nm_file_list_spec='@' 9046elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9047 nm_file_list_spec='@' 9048fi 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9087$as_echo_n "checking for sysroot... " >&6; } 9088 9089# Check whether --with-sysroot was given. 9090if test "${with_sysroot+set}" = set; then : 9091 withval=$with_sysroot; 9092else 9093 with_sysroot=no 9094fi 9095 9096 9097lt_sysroot= 9098case $with_sysroot in #( 9099 yes) 9100 if test yes = "$GCC"; then 9101 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9102 fi 9103 ;; #( 9104 /*) 9105 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9106 ;; #( 9107 no|'') 9108 ;; #( 9109 *) 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9111$as_echo "$with_sysroot" >&6; } 9112 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9113 ;; 9114esac 9115 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9117$as_echo "${lt_sysroot:-no}" >&6; } 9118 9119 9120 9121 9122 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9124$as_echo_n "checking for a working dd... " >&6; } 9125if ${ac_cv_path_lt_DD+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 printf 0123456789abcdef0123456789abcdef >conftest.i 9129cat conftest.i conftest.i >conftest2.i 9130: ${lt_DD:=$DD} 9131if test -z "$lt_DD"; then 9132 ac_path_lt_DD_found=false 9133 # Loop through the user's path and test for each of PROGNAME-LIST 9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9135for as_dir in $PATH 9136do 9137 IFS=$as_save_IFS 9138 test -z "$as_dir" && as_dir=. 9139 for ac_prog in dd; do 9140 for ac_exec_ext in '' $ac_executable_extensions; do 9141 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9142 as_fn_executable_p "$ac_path_lt_DD" || continue 9143if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9144 cmp -s conftest.i conftest.out \ 9145 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9146fi 9147 $ac_path_lt_DD_found && break 3 9148 done 9149 done 9150 done 9151IFS=$as_save_IFS 9152 if test -z "$ac_cv_path_lt_DD"; then 9153 : 9154 fi 9155else 9156 ac_cv_path_lt_DD=$lt_DD 9157fi 9158 9159rm -f conftest.i conftest2.i conftest.out 9160fi 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9162$as_echo "$ac_cv_path_lt_DD" >&6; } 9163 9164 9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9166$as_echo_n "checking how to truncate binary pipes... " >&6; } 9167if ${lt_cv_truncate_bin+:} false; then : 9168 $as_echo_n "(cached) " >&6 9169else 9170 printf 0123456789abcdef0123456789abcdef >conftest.i 9171cat conftest.i conftest.i >conftest2.i 9172lt_cv_truncate_bin= 9173if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9174 cmp -s conftest.i conftest.out \ 9175 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9176fi 9177rm -f conftest.i conftest2.i conftest.out 9178test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9179fi 9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9181$as_echo "$lt_cv_truncate_bin" >&6; } 9182 9183 9184 9185 9186 9187 9188 9189# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9190func_cc_basename () 9191{ 9192 for cc_temp in $*""; do 9193 case $cc_temp in 9194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9196 \-*) ;; 9197 *) break;; 9198 esac 9199 done 9200 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9201} 9202 9203# Check whether --enable-libtool-lock was given. 9204if test "${enable_libtool_lock+set}" = set; then : 9205 enableval=$enable_libtool_lock; 9206fi 9207 9208test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9209 9210# Some flags need to be propagated to the compiler or linker for good 9211# libtool support. 9212case $host in 9213ia64-*-hpux*) 9214 # Find out what ABI is being produced by ac_compile, and set mode 9215 # options accordingly. 9216 echo 'int i;' > conftest.$ac_ext 9217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9218 (eval $ac_compile) 2>&5 9219 ac_status=$? 9220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9221 test $ac_status = 0; }; then 9222 case `/usr/bin/file conftest.$ac_objext` in 9223 *ELF-32*) 9224 HPUX_IA64_MODE=32 9225 ;; 9226 *ELF-64*) 9227 HPUX_IA64_MODE=64 9228 ;; 9229 esac 9230 fi 9231 rm -rf conftest* 9232 ;; 9233*-*-irix6*) 9234 # Find out what ABI is being produced by ac_compile, and set linker 9235 # options accordingly. 9236 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9238 (eval $ac_compile) 2>&5 9239 ac_status=$? 9240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9241 test $ac_status = 0; }; then 9242 if test yes = "$lt_cv_prog_gnu_ld"; then 9243 case `/usr/bin/file conftest.$ac_objext` in 9244 *32-bit*) 9245 LD="${LD-ld} -melf32bsmip" 9246 ;; 9247 *N32*) 9248 LD="${LD-ld} -melf32bmipn32" 9249 ;; 9250 *64-bit*) 9251 LD="${LD-ld} -melf64bmip" 9252 ;; 9253 esac 9254 else 9255 case `/usr/bin/file conftest.$ac_objext` in 9256 *32-bit*) 9257 LD="${LD-ld} -32" 9258 ;; 9259 *N32*) 9260 LD="${LD-ld} -n32" 9261 ;; 9262 *64-bit*) 9263 LD="${LD-ld} -64" 9264 ;; 9265 esac 9266 fi 9267 fi 9268 rm -rf conftest* 9269 ;; 9270 9271mips64*-*linux*) 9272 # Find out what ABI is being produced by ac_compile, and set linker 9273 # options accordingly. 9274 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9276 (eval $ac_compile) 2>&5 9277 ac_status=$? 9278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9279 test $ac_status = 0; }; then 9280 emul=elf 9281 case `/usr/bin/file conftest.$ac_objext` in 9282 *32-bit*) 9283 emul="${emul}32" 9284 ;; 9285 *64-bit*) 9286 emul="${emul}64" 9287 ;; 9288 esac 9289 case `/usr/bin/file conftest.$ac_objext` in 9290 *MSB*) 9291 emul="${emul}btsmip" 9292 ;; 9293 *LSB*) 9294 emul="${emul}ltsmip" 9295 ;; 9296 esac 9297 case `/usr/bin/file conftest.$ac_objext` in 9298 *N32*) 9299 emul="${emul}n32" 9300 ;; 9301 esac 9302 LD="${LD-ld} -m $emul" 9303 fi 9304 rm -rf conftest* 9305 ;; 9306 9307x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9308s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9309 # Find out what ABI is being produced by ac_compile, and set linker 9310 # options accordingly. Note that the listed cases only cover the 9311 # situations where additional linker options are needed (such as when 9312 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9313 # vice versa); the common cases where no linker options are needed do 9314 # not appear in the list. 9315 echo 'int i;' > conftest.$ac_ext 9316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9317 (eval $ac_compile) 2>&5 9318 ac_status=$? 9319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9320 test $ac_status = 0; }; then 9321 case `/usr/bin/file conftest.o` in 9322 *32-bit*) 9323 case $host in 9324 x86_64-*kfreebsd*-gnu) 9325 LD="${LD-ld} -m elf_i386_fbsd" 9326 ;; 9327 x86_64-*linux*) 9328 case `/usr/bin/file conftest.o` in 9329 *x86-64*) 9330 LD="${LD-ld} -m elf32_x86_64" 9331 ;; 9332 *) 9333 LD="${LD-ld} -m elf_i386" 9334 ;; 9335 esac 9336 ;; 9337 powerpc64le-*linux*) 9338 LD="${LD-ld} -m elf32lppclinux" 9339 ;; 9340 powerpc64-*linux*) 9341 LD="${LD-ld} -m elf32ppclinux" 9342 ;; 9343 s390x-*linux*) 9344 LD="${LD-ld} -m elf_s390" 9345 ;; 9346 sparc64-*linux*) 9347 LD="${LD-ld} -m elf32_sparc" 9348 ;; 9349 esac 9350 ;; 9351 *64-bit*) 9352 case $host in 9353 x86_64-*kfreebsd*-gnu) 9354 LD="${LD-ld} -m elf_x86_64_fbsd" 9355 ;; 9356 x86_64-*linux*) 9357 LD="${LD-ld} -m elf_x86_64" 9358 ;; 9359 powerpcle-*linux*) 9360 LD="${LD-ld} -m elf64lppc" 9361 ;; 9362 powerpc-*linux*) 9363 LD="${LD-ld} -m elf64ppc" 9364 ;; 9365 s390*-*linux*|s390*-*tpf*) 9366 LD="${LD-ld} -m elf64_s390" 9367 ;; 9368 sparc*-*linux*) 9369 LD="${LD-ld} -m elf64_sparc" 9370 ;; 9371 esac 9372 ;; 9373 esac 9374 fi 9375 rm -rf conftest* 9376 ;; 9377 9378*-*-sco3.2v5*) 9379 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9380 SAVE_CFLAGS=$CFLAGS 9381 CFLAGS="$CFLAGS -belf" 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9383$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9384if ${lt_cv_cc_needs_belf+:} false; then : 9385 $as_echo_n "(cached) " >&6 9386else 9387 ac_ext=c 9388ac_cpp='$CPP $CPPFLAGS' 9389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9391ac_compiler_gnu=$ac_cv_c_compiler_gnu 9392 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395 9396int 9397main () 9398{ 9399 9400 ; 9401 return 0; 9402} 9403_ACEOF 9404if ac_fn_c_try_link "$LINENO"; then : 9405 lt_cv_cc_needs_belf=yes 9406else 9407 lt_cv_cc_needs_belf=no 9408fi 9409rm -f core conftest.err conftest.$ac_objext \ 9410 conftest$ac_exeext conftest.$ac_ext 9411 ac_ext=c 9412ac_cpp='$CPP $CPPFLAGS' 9413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9415ac_compiler_gnu=$ac_cv_c_compiler_gnu 9416 9417fi 9418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9419$as_echo "$lt_cv_cc_needs_belf" >&6; } 9420 if test yes != "$lt_cv_cc_needs_belf"; then 9421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9422 CFLAGS=$SAVE_CFLAGS 9423 fi 9424 ;; 9425*-*solaris*) 9426 # Find out what ABI is being produced by ac_compile, and set linker 9427 # options accordingly. 9428 echo 'int i;' > conftest.$ac_ext 9429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9430 (eval $ac_compile) 2>&5 9431 ac_status=$? 9432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9433 test $ac_status = 0; }; then 9434 case `/usr/bin/file conftest.o` in 9435 *64-bit*) 9436 case $lt_cv_prog_gnu_ld in 9437 yes*) 9438 case $host in 9439 i?86-*-solaris*|x86_64-*-solaris*) 9440 LD="${LD-ld} -m elf_x86_64" 9441 ;; 9442 sparc*-*-solaris*) 9443 LD="${LD-ld} -m elf64_sparc" 9444 ;; 9445 esac 9446 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9447 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9448 LD=${LD-ld}_sol2 9449 fi 9450 ;; 9451 *) 9452 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9453 LD="${LD-ld} -64" 9454 fi 9455 ;; 9456 esac 9457 ;; 9458 esac 9459 fi 9460 rm -rf conftest* 9461 ;; 9462esac 9463 9464need_locks=$enable_libtool_lock 9465 9466if test -n "$ac_tool_prefix"; then 9467 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9468set dummy ${ac_tool_prefix}mt; ac_word=$2 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9470$as_echo_n "checking for $ac_word... " >&6; } 9471if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473else 9474 if test -n "$MANIFEST_TOOL"; then 9475 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9476else 9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9478for as_dir in $PATH 9479do 9480 IFS=$as_save_IFS 9481 test -z "$as_dir" && as_dir=. 9482 for ac_exec_ext in '' $ac_executable_extensions; do 9483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9484 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9486 break 2 9487 fi 9488done 9489 done 9490IFS=$as_save_IFS 9491 9492fi 9493fi 9494MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9495if test -n "$MANIFEST_TOOL"; then 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9497$as_echo "$MANIFEST_TOOL" >&6; } 9498else 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9500$as_echo "no" >&6; } 9501fi 9502 9503 9504fi 9505if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9506 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9507 # Extract the first word of "mt", so it can be a program name with args. 9508set dummy mt; ac_word=$2 9509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9510$as_echo_n "checking for $ac_word... " >&6; } 9511if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513else 9514 if test -n "$ac_ct_MANIFEST_TOOL"; then 9515 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9516else 9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9518for as_dir in $PATH 9519do 9520 IFS=$as_save_IFS 9521 test -z "$as_dir" && as_dir=. 9522 for ac_exec_ext in '' $ac_executable_extensions; do 9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9524 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9526 break 2 9527 fi 9528done 9529 done 9530IFS=$as_save_IFS 9531 9532fi 9533fi 9534ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9535if test -n "$ac_ct_MANIFEST_TOOL"; then 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9537$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9538else 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9540$as_echo "no" >&6; } 9541fi 9542 9543 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9544 MANIFEST_TOOL=":" 9545 else 9546 case $cross_compiling:$ac_tool_warned in 9547yes:) 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9550ac_tool_warned=yes ;; 9551esac 9552 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9553 fi 9554else 9555 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9556fi 9557 9558test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9560$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9561if ${lt_cv_path_mainfest_tool+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 lt_cv_path_mainfest_tool=no 9565 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9566 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9567 cat conftest.err >&5 9568 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9569 lt_cv_path_mainfest_tool=yes 9570 fi 9571 rm -f conftest* 9572fi 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9574$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9575if test yes != "$lt_cv_path_mainfest_tool"; then 9576 MANIFEST_TOOL=: 9577fi 9578 9579 9580 9581 9582 9583 9584 case $host_os in 9585 rhapsody* | darwin*) 9586 if test -n "$ac_tool_prefix"; then 9587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9588set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9590$as_echo_n "checking for $ac_word... " >&6; } 9591if ${ac_cv_prog_DSYMUTIL+:} false; then : 9592 $as_echo_n "(cached) " >&6 9593else 9594 if test -n "$DSYMUTIL"; then 9595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9596else 9597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9598for as_dir in $PATH 9599do 9600 IFS=$as_save_IFS 9601 test -z "$as_dir" && as_dir=. 9602 for ac_exec_ext in '' $ac_executable_extensions; do 9603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9606 break 2 9607 fi 9608done 9609 done 9610IFS=$as_save_IFS 9611 9612fi 9613fi 9614DSYMUTIL=$ac_cv_prog_DSYMUTIL 9615if test -n "$DSYMUTIL"; then 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9617$as_echo "$DSYMUTIL" >&6; } 9618else 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9620$as_echo "no" >&6; } 9621fi 9622 9623 9624fi 9625if test -z "$ac_cv_prog_DSYMUTIL"; then 9626 ac_ct_DSYMUTIL=$DSYMUTIL 9627 # Extract the first word of "dsymutil", so it can be a program name with args. 9628set dummy dsymutil; ac_word=$2 9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9630$as_echo_n "checking for $ac_word... " >&6; } 9631if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9632 $as_echo_n "(cached) " >&6 9633else 9634 if test -n "$ac_ct_DSYMUTIL"; then 9635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9636else 9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9638for as_dir in $PATH 9639do 9640 IFS=$as_save_IFS 9641 test -z "$as_dir" && as_dir=. 9642 for ac_exec_ext in '' $ac_executable_extensions; do 9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9644 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9646 break 2 9647 fi 9648done 9649 done 9650IFS=$as_save_IFS 9651 9652fi 9653fi 9654ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9655if test -n "$ac_ct_DSYMUTIL"; then 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9657$as_echo "$ac_ct_DSYMUTIL" >&6; } 9658else 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9660$as_echo "no" >&6; } 9661fi 9662 9663 if test "x$ac_ct_DSYMUTIL" = x; then 9664 DSYMUTIL=":" 9665 else 9666 case $cross_compiling:$ac_tool_warned in 9667yes:) 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9670ac_tool_warned=yes ;; 9671esac 9672 DSYMUTIL=$ac_ct_DSYMUTIL 9673 fi 9674else 9675 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9676fi 9677 9678 if test -n "$ac_tool_prefix"; then 9679 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9680set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9682$as_echo_n "checking for $ac_word... " >&6; } 9683if ${ac_cv_prog_NMEDIT+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 if test -n "$NMEDIT"; then 9687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9688else 9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9690for as_dir in $PATH 9691do 9692 IFS=$as_save_IFS 9693 test -z "$as_dir" && as_dir=. 9694 for ac_exec_ext in '' $ac_executable_extensions; do 9695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9696 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9698 break 2 9699 fi 9700done 9701 done 9702IFS=$as_save_IFS 9703 9704fi 9705fi 9706NMEDIT=$ac_cv_prog_NMEDIT 9707if test -n "$NMEDIT"; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9709$as_echo "$NMEDIT" >&6; } 9710else 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9712$as_echo "no" >&6; } 9713fi 9714 9715 9716fi 9717if test -z "$ac_cv_prog_NMEDIT"; then 9718 ac_ct_NMEDIT=$NMEDIT 9719 # Extract the first word of "nmedit", so it can be a program name with args. 9720set dummy nmedit; ac_word=$2 9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9722$as_echo_n "checking for $ac_word... " >&6; } 9723if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9724 $as_echo_n "(cached) " >&6 9725else 9726 if test -n "$ac_ct_NMEDIT"; then 9727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9728else 9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9730for as_dir in $PATH 9731do 9732 IFS=$as_save_IFS 9733 test -z "$as_dir" && as_dir=. 9734 for ac_exec_ext in '' $ac_executable_extensions; do 9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9736 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9738 break 2 9739 fi 9740done 9741 done 9742IFS=$as_save_IFS 9743 9744fi 9745fi 9746ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9747if test -n "$ac_ct_NMEDIT"; then 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9749$as_echo "$ac_ct_NMEDIT" >&6; } 9750else 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9752$as_echo "no" >&6; } 9753fi 9754 9755 if test "x$ac_ct_NMEDIT" = x; then 9756 NMEDIT=":" 9757 else 9758 case $cross_compiling:$ac_tool_warned in 9759yes:) 9760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9762ac_tool_warned=yes ;; 9763esac 9764 NMEDIT=$ac_ct_NMEDIT 9765 fi 9766else 9767 NMEDIT="$ac_cv_prog_NMEDIT" 9768fi 9769 9770 if test -n "$ac_tool_prefix"; then 9771 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9772set dummy ${ac_tool_prefix}lipo; ac_word=$2 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9774$as_echo_n "checking for $ac_word... " >&6; } 9775if ${ac_cv_prog_LIPO+:} false; then : 9776 $as_echo_n "(cached) " >&6 9777else 9778 if test -n "$LIPO"; then 9779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9780else 9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9782for as_dir in $PATH 9783do 9784 IFS=$as_save_IFS 9785 test -z "$as_dir" && as_dir=. 9786 for ac_exec_ext in '' $ac_executable_extensions; do 9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9788 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9790 break 2 9791 fi 9792done 9793 done 9794IFS=$as_save_IFS 9795 9796fi 9797fi 9798LIPO=$ac_cv_prog_LIPO 9799if test -n "$LIPO"; then 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9801$as_echo "$LIPO" >&6; } 9802else 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804$as_echo "no" >&6; } 9805fi 9806 9807 9808fi 9809if test -z "$ac_cv_prog_LIPO"; then 9810 ac_ct_LIPO=$LIPO 9811 # Extract the first word of "lipo", so it can be a program name with args. 9812set dummy lipo; ac_word=$2 9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9814$as_echo_n "checking for $ac_word... " >&6; } 9815if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9816 $as_echo_n "(cached) " >&6 9817else 9818 if test -n "$ac_ct_LIPO"; then 9819 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9820else 9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9822for as_dir in $PATH 9823do 9824 IFS=$as_save_IFS 9825 test -z "$as_dir" && as_dir=. 9826 for ac_exec_ext in '' $ac_executable_extensions; do 9827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9828 ac_cv_prog_ac_ct_LIPO="lipo" 9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9830 break 2 9831 fi 9832done 9833 done 9834IFS=$as_save_IFS 9835 9836fi 9837fi 9838ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9839if test -n "$ac_ct_LIPO"; then 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9841$as_echo "$ac_ct_LIPO" >&6; } 9842else 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9844$as_echo "no" >&6; } 9845fi 9846 9847 if test "x$ac_ct_LIPO" = x; then 9848 LIPO=":" 9849 else 9850 case $cross_compiling:$ac_tool_warned in 9851yes:) 9852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9854ac_tool_warned=yes ;; 9855esac 9856 LIPO=$ac_ct_LIPO 9857 fi 9858else 9859 LIPO="$ac_cv_prog_LIPO" 9860fi 9861 9862 if test -n "$ac_tool_prefix"; then 9863 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9864set dummy ${ac_tool_prefix}otool; ac_word=$2 9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9866$as_echo_n "checking for $ac_word... " >&6; } 9867if ${ac_cv_prog_OTOOL+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 if test -n "$OTOOL"; then 9871 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9872else 9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9874for as_dir in $PATH 9875do 9876 IFS=$as_save_IFS 9877 test -z "$as_dir" && as_dir=. 9878 for ac_exec_ext in '' $ac_executable_extensions; do 9879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9880 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9882 break 2 9883 fi 9884done 9885 done 9886IFS=$as_save_IFS 9887 9888fi 9889fi 9890OTOOL=$ac_cv_prog_OTOOL 9891if test -n "$OTOOL"; then 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9893$as_echo "$OTOOL" >&6; } 9894else 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9896$as_echo "no" >&6; } 9897fi 9898 9899 9900fi 9901if test -z "$ac_cv_prog_OTOOL"; then 9902 ac_ct_OTOOL=$OTOOL 9903 # Extract the first word of "otool", so it can be a program name with args. 9904set dummy otool; ac_word=$2 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9906$as_echo_n "checking for $ac_word... " >&6; } 9907if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 if test -n "$ac_ct_OTOOL"; then 9911 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9912else 9913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9914for as_dir in $PATH 9915do 9916 IFS=$as_save_IFS 9917 test -z "$as_dir" && as_dir=. 9918 for ac_exec_ext in '' $ac_executable_extensions; do 9919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9920 ac_cv_prog_ac_ct_OTOOL="otool" 9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9922 break 2 9923 fi 9924done 9925 done 9926IFS=$as_save_IFS 9927 9928fi 9929fi 9930ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9931if test -n "$ac_ct_OTOOL"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9933$as_echo "$ac_ct_OTOOL" >&6; } 9934else 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9936$as_echo "no" >&6; } 9937fi 9938 9939 if test "x$ac_ct_OTOOL" = x; then 9940 OTOOL=":" 9941 else 9942 case $cross_compiling:$ac_tool_warned in 9943yes:) 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9946ac_tool_warned=yes ;; 9947esac 9948 OTOOL=$ac_ct_OTOOL 9949 fi 9950else 9951 OTOOL="$ac_cv_prog_OTOOL" 9952fi 9953 9954 if test -n "$ac_tool_prefix"; then 9955 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9956set dummy ${ac_tool_prefix}otool64; ac_word=$2 9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9958$as_echo_n "checking for $ac_word... " >&6; } 9959if ${ac_cv_prog_OTOOL64+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 if test -n "$OTOOL64"; then 9963 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9964else 9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9966for as_dir in $PATH 9967do 9968 IFS=$as_save_IFS 9969 test -z "$as_dir" && as_dir=. 9970 for ac_exec_ext in '' $ac_executable_extensions; do 9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9972 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9974 break 2 9975 fi 9976done 9977 done 9978IFS=$as_save_IFS 9979 9980fi 9981fi 9982OTOOL64=$ac_cv_prog_OTOOL64 9983if test -n "$OTOOL64"; then 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9985$as_echo "$OTOOL64" >&6; } 9986else 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9988$as_echo "no" >&6; } 9989fi 9990 9991 9992fi 9993if test -z "$ac_cv_prog_OTOOL64"; then 9994 ac_ct_OTOOL64=$OTOOL64 9995 # Extract the first word of "otool64", so it can be a program name with args. 9996set dummy otool64; ac_word=$2 9997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9998$as_echo_n "checking for $ac_word... " >&6; } 9999if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 if test -n "$ac_ct_OTOOL64"; then 10003 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10004else 10005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10006for as_dir in $PATH 10007do 10008 IFS=$as_save_IFS 10009 test -z "$as_dir" && as_dir=. 10010 for ac_exec_ext in '' $ac_executable_extensions; do 10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10012 ac_cv_prog_ac_ct_OTOOL64="otool64" 10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10014 break 2 10015 fi 10016done 10017 done 10018IFS=$as_save_IFS 10019 10020fi 10021fi 10022ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10023if test -n "$ac_ct_OTOOL64"; then 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10025$as_echo "$ac_ct_OTOOL64" >&6; } 10026else 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10028$as_echo "no" >&6; } 10029fi 10030 10031 if test "x$ac_ct_OTOOL64" = x; then 10032 OTOOL64=":" 10033 else 10034 case $cross_compiling:$ac_tool_warned in 10035yes:) 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10038ac_tool_warned=yes ;; 10039esac 10040 OTOOL64=$ac_ct_OTOOL64 10041 fi 10042else 10043 OTOOL64="$ac_cv_prog_OTOOL64" 10044fi 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10073$as_echo_n "checking for -single_module linker flag... " >&6; } 10074if ${lt_cv_apple_cc_single_mod+:} false; then : 10075 $as_echo_n "(cached) " >&6 10076else 10077 lt_cv_apple_cc_single_mod=no 10078 if test -z "$LT_MULTI_MODULE"; then 10079 # By default we will add the -single_module flag. You can override 10080 # by either setting the environment variable LT_MULTI_MODULE 10081 # non-empty at configure time, or by adding -multi_module to the 10082 # link flags. 10083 rm -rf libconftest.dylib* 10084 echo "int foo(void){return 1;}" > conftest.c 10085 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10086-dynamiclib -Wl,-single_module conftest.c" >&5 10087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10088 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10089 _lt_result=$? 10090 # If there is a non-empty error log, and "single_module" 10091 # appears in it, assume the flag caused a linker warning 10092 if test -s conftest.err && $GREP single_module conftest.err; then 10093 cat conftest.err >&5 10094 # Otherwise, if the output was created with a 0 exit code from 10095 # the compiler, it worked. 10096 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10097 lt_cv_apple_cc_single_mod=yes 10098 else 10099 cat conftest.err >&5 10100 fi 10101 rm -rf libconftest.dylib* 10102 rm -f conftest.* 10103 fi 10104fi 10105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10106$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10107 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10109$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10110if ${lt_cv_ld_exported_symbols_list+:} false; then : 10111 $as_echo_n "(cached) " >&6 10112else 10113 lt_cv_ld_exported_symbols_list=no 10114 save_LDFLAGS=$LDFLAGS 10115 echo "_main" > conftest.sym 10116 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118/* end confdefs.h. */ 10119 10120int 10121main () 10122{ 10123 10124 ; 10125 return 0; 10126} 10127_ACEOF 10128if ac_fn_c_try_link "$LINENO"; then : 10129 lt_cv_ld_exported_symbols_list=yes 10130else 10131 lt_cv_ld_exported_symbols_list=no 10132fi 10133rm -f core conftest.err conftest.$ac_objext \ 10134 conftest$ac_exeext conftest.$ac_ext 10135 LDFLAGS=$save_LDFLAGS 10136 10137fi 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10139$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10140 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10142$as_echo_n "checking for -force_load linker flag... " >&6; } 10143if ${lt_cv_ld_force_load+:} false; then : 10144 $as_echo_n "(cached) " >&6 10145else 10146 lt_cv_ld_force_load=no 10147 cat > conftest.c << _LT_EOF 10148int forced_loaded() { return 2;} 10149_LT_EOF 10150 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10151 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10152 echo "$AR cru libconftest.a conftest.o" >&5 10153 $AR cru libconftest.a conftest.o 2>&5 10154 echo "$RANLIB libconftest.a" >&5 10155 $RANLIB libconftest.a 2>&5 10156 cat > conftest.c << _LT_EOF 10157int main() { return 0;} 10158_LT_EOF 10159 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10160 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10161 _lt_result=$? 10162 if test -s conftest.err && $GREP force_load conftest.err; then 10163 cat conftest.err >&5 10164 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10165 lt_cv_ld_force_load=yes 10166 else 10167 cat conftest.err >&5 10168 fi 10169 rm -f conftest.err libconftest.a conftest conftest.c 10170 rm -rf conftest.dSYM 10171 10172fi 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10174$as_echo "$lt_cv_ld_force_load" >&6; } 10175 case $host_os in 10176 rhapsody* | darwin1.[012]) 10177 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10178 darwin1.*) 10179 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10180 darwin*) # darwin 5.x on 10181 # if running on 10.5 or later, the deployment target defaults 10182 # to the OS version, if on x86, and 10.4, the deployment 10183 # target defaults to 10.4. Don't you love it? 10184 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10185 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10186 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10187 10.[012][,.]*) 10188 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10189 10.*) 10190 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10191 esac 10192 ;; 10193 esac 10194 if test yes = "$lt_cv_apple_cc_single_mod"; then 10195 _lt_dar_single_mod='$single_module' 10196 fi 10197 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10198 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10199 else 10200 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10201 fi 10202 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10203 _lt_dsymutil='~$DSYMUTIL $lib || :' 10204 else 10205 _lt_dsymutil= 10206 fi 10207 ;; 10208 esac 10209 10210# func_munge_path_list VARIABLE PATH 10211# ----------------------------------- 10212# VARIABLE is name of variable containing _space_ separated list of 10213# directories to be munged by the contents of PATH, which is string 10214# having a format: 10215# "DIR[:DIR]:" 10216# string "DIR[ DIR]" will be prepended to VARIABLE 10217# ":DIR[:DIR]" 10218# string "DIR[ DIR]" will be appended to VARIABLE 10219# "DIRP[:DIRP]::[DIRA:]DIRA" 10220# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10221# "DIRA[ DIRA]" will be appended to VARIABLE 10222# "DIR[:DIR]" 10223# VARIABLE will be replaced by "DIR[ DIR]" 10224func_munge_path_list () 10225{ 10226 case x$2 in 10227 x) 10228 ;; 10229 *:) 10230 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10231 ;; 10232 x:*) 10233 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10234 ;; 10235 *::*) 10236 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10237 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10238 ;; 10239 *) 10240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10241 ;; 10242 esac 10243} 10244 10245for ac_header in dlfcn.h 10246do : 10247 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10248" 10249if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10250 cat >>confdefs.h <<_ACEOF 10251#define HAVE_DLFCN_H 1 10252_ACEOF 10253 10254fi 10255 10256done 10257 10258 10259 10260 10261 10262 10263 10264# Set options 10265 10266 10267 10268 enable_dlopen=no 10269 10270 10271 enable_win32_dll=no 10272 10273 10274 # Check whether --enable-shared was given. 10275if test "${enable_shared+set}" = set; then : 10276 enableval=$enable_shared; p=${PACKAGE-default} 10277 case $enableval in 10278 yes) enable_shared=yes ;; 10279 no) enable_shared=no ;; 10280 *) 10281 enable_shared=no 10282 # Look at the argument we got. We use all the common list separators. 10283 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10284 for pkg in $enableval; do 10285 IFS=$lt_save_ifs 10286 if test "X$pkg" = "X$p"; then 10287 enable_shared=yes 10288 fi 10289 done 10290 IFS=$lt_save_ifs 10291 ;; 10292 esac 10293else 10294 enable_shared=yes 10295fi 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 # Check whether --enable-static was given. 10306if test "${enable_static+set}" = set; then : 10307 enableval=$enable_static; p=${PACKAGE-default} 10308 case $enableval in 10309 yes) enable_static=yes ;; 10310 no) enable_static=no ;; 10311 *) 10312 enable_static=no 10313 # Look at the argument we got. We use all the common list separators. 10314 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10315 for pkg in $enableval; do 10316 IFS=$lt_save_ifs 10317 if test "X$pkg" = "X$p"; then 10318 enable_static=yes 10319 fi 10320 done 10321 IFS=$lt_save_ifs 10322 ;; 10323 esac 10324else 10325 enable_static=yes 10326fi 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337# Check whether --with-pic was given. 10338if test "${with_pic+set}" = set; then : 10339 withval=$with_pic; lt_p=${PACKAGE-default} 10340 case $withval in 10341 yes|no) pic_mode=$withval ;; 10342 *) 10343 pic_mode=default 10344 # Look at the argument we got. We use all the common list separators. 10345 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10346 for lt_pkg in $withval; do 10347 IFS=$lt_save_ifs 10348 if test "X$lt_pkg" = "X$lt_p"; then 10349 pic_mode=yes 10350 fi 10351 done 10352 IFS=$lt_save_ifs 10353 ;; 10354 esac 10355else 10356 pic_mode=default 10357fi 10358 10359 10360 10361 10362 10363 10364 10365 10366 # Check whether --enable-fast-install was given. 10367if test "${enable_fast_install+set}" = set; then : 10368 enableval=$enable_fast_install; p=${PACKAGE-default} 10369 case $enableval in 10370 yes) enable_fast_install=yes ;; 10371 no) enable_fast_install=no ;; 10372 *) 10373 enable_fast_install=no 10374 # Look at the argument we got. We use all the common list separators. 10375 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10376 for pkg in $enableval; do 10377 IFS=$lt_save_ifs 10378 if test "X$pkg" = "X$p"; then 10379 enable_fast_install=yes 10380 fi 10381 done 10382 IFS=$lt_save_ifs 10383 ;; 10384 esac 10385else 10386 enable_fast_install=yes 10387fi 10388 10389 10390 10391 10392 10393 10394 10395 10396 shared_archive_member_spec= 10397case $host,$enable_shared in 10398power*-*-aix[5-9]*,yes) 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10400$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10401 10402# Check whether --with-aix-soname was given. 10403if test "${with_aix_soname+set}" = set; then : 10404 withval=$with_aix_soname; case $withval in 10405 aix|svr4|both) 10406 ;; 10407 *) 10408 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10409 ;; 10410 esac 10411 lt_cv_with_aix_soname=$with_aix_soname 10412else 10413 if ${lt_cv_with_aix_soname+:} false; then : 10414 $as_echo_n "(cached) " >&6 10415else 10416 lt_cv_with_aix_soname=aix 10417fi 10418 10419 with_aix_soname=$lt_cv_with_aix_soname 10420fi 10421 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10423$as_echo "$with_aix_soname" >&6; } 10424 if test aix != "$with_aix_soname"; then 10425 # For the AIX way of multilib, we name the shared archive member 10426 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10427 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10428 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10429 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10430 if test 64 = "${OBJECT_MODE-32}"; then 10431 shared_archive_member_spec=shr_64 10432 else 10433 shared_archive_member_spec=shr 10434 fi 10435 fi 10436 ;; 10437*) 10438 with_aix_soname=aix 10439 ;; 10440esac 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451# This can be used to rebuild libtool when needed 10452LIBTOOL_DEPS=$ltmain 10453 10454# Always use our own libtool. 10455LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486test -z "$LN_S" && LN_S="ln -s" 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501if test -n "${ZSH_VERSION+set}"; then 10502 setopt NO_GLOB_SUBST 10503fi 10504 10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10506$as_echo_n "checking for objdir... " >&6; } 10507if ${lt_cv_objdir+:} false; then : 10508 $as_echo_n "(cached) " >&6 10509else 10510 rm -f .libs 2>/dev/null 10511mkdir .libs 2>/dev/null 10512if test -d .libs; then 10513 lt_cv_objdir=.libs 10514else 10515 # MS-DOS does not allow filenames that begin with a dot. 10516 lt_cv_objdir=_libs 10517fi 10518rmdir .libs 2>/dev/null 10519fi 10520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10521$as_echo "$lt_cv_objdir" >&6; } 10522objdir=$lt_cv_objdir 10523 10524 10525 10526 10527 10528cat >>confdefs.h <<_ACEOF 10529#define LT_OBJDIR "$lt_cv_objdir/" 10530_ACEOF 10531 10532 10533 10534 10535case $host_os in 10536aix3*) 10537 # AIX sometimes has problems with the GCC collect2 program. For some 10538 # reason, if we set the COLLECT_NAMES environment variable, the problems 10539 # vanish in a puff of smoke. 10540 if test set != "${COLLECT_NAMES+set}"; then 10541 COLLECT_NAMES= 10542 export COLLECT_NAMES 10543 fi 10544 ;; 10545esac 10546 10547# Global variables: 10548ofile=libtool 10549can_build_shared=yes 10550 10551# All known linkers require a '.a' archive for static linking (except MSVC, 10552# which needs '.lib'). 10553libext=a 10554 10555with_gnu_ld=$lt_cv_prog_gnu_ld 10556 10557old_CC=$CC 10558old_CFLAGS=$CFLAGS 10559 10560# Set sane defaults for various variables 10561test -z "$CC" && CC=cc 10562test -z "$LTCC" && LTCC=$CC 10563test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10564test -z "$LD" && LD=ld 10565test -z "$ac_objext" && ac_objext=o 10566 10567func_cc_basename $compiler 10568cc_basename=$func_cc_basename_result 10569 10570 10571# Only perform the check for file, if the check method requires it 10572test -z "$MAGIC_CMD" && MAGIC_CMD=file 10573case $deplibs_check_method in 10574file_magic*) 10575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10577$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10578if ${lt_cv_path_MAGIC_CMD+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580else 10581 case $MAGIC_CMD in 10582[\\/*] | ?:[\\/]*) 10583 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10584 ;; 10585*) 10586 lt_save_MAGIC_CMD=$MAGIC_CMD 10587 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10589 for ac_dir in $ac_dummy; do 10590 IFS=$lt_save_ifs 10591 test -z "$ac_dir" && ac_dir=. 10592 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10593 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10594 if test -n "$file_magic_test_file"; then 10595 case $deplibs_check_method in 10596 "file_magic "*) 10597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10598 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10600 $EGREP "$file_magic_regex" > /dev/null; then 10601 : 10602 else 10603 cat <<_LT_EOF 1>&2 10604 10605*** Warning: the command libtool uses to detect shared libraries, 10606*** $file_magic_cmd, produces output that libtool cannot recognize. 10607*** The result is that libtool may fail to recognize shared libraries 10608*** as such. This will affect the creation of libtool libraries that 10609*** depend on shared libraries, but programs linked with such libtool 10610*** libraries will work regardless of this problem. Nevertheless, you 10611*** may want to report the problem to your system manager and/or to 10612*** bug-libtool@gnu.org 10613 10614_LT_EOF 10615 fi ;; 10616 esac 10617 fi 10618 break 10619 fi 10620 done 10621 IFS=$lt_save_ifs 10622 MAGIC_CMD=$lt_save_MAGIC_CMD 10623 ;; 10624esac 10625fi 10626 10627MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10628if test -n "$MAGIC_CMD"; then 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10630$as_echo "$MAGIC_CMD" >&6; } 10631else 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10633$as_echo "no" >&6; } 10634fi 10635 10636 10637 10638 10639 10640if test -z "$lt_cv_path_MAGIC_CMD"; then 10641 if test -n "$ac_tool_prefix"; then 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10643$as_echo_n "checking for file... " >&6; } 10644if ${lt_cv_path_MAGIC_CMD+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646else 10647 case $MAGIC_CMD in 10648[\\/*] | ?:[\\/]*) 10649 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10650 ;; 10651*) 10652 lt_save_MAGIC_CMD=$MAGIC_CMD 10653 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10655 for ac_dir in $ac_dummy; do 10656 IFS=$lt_save_ifs 10657 test -z "$ac_dir" && ac_dir=. 10658 if test -f "$ac_dir/file"; then 10659 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10660 if test -n "$file_magic_test_file"; then 10661 case $deplibs_check_method in 10662 "file_magic "*) 10663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10664 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10666 $EGREP "$file_magic_regex" > /dev/null; then 10667 : 10668 else 10669 cat <<_LT_EOF 1>&2 10670 10671*** Warning: the command libtool uses to detect shared libraries, 10672*** $file_magic_cmd, produces output that libtool cannot recognize. 10673*** The result is that libtool may fail to recognize shared libraries 10674*** as such. This will affect the creation of libtool libraries that 10675*** depend on shared libraries, but programs linked with such libtool 10676*** libraries will work regardless of this problem. Nevertheless, you 10677*** may want to report the problem to your system manager and/or to 10678*** bug-libtool@gnu.org 10679 10680_LT_EOF 10681 fi ;; 10682 esac 10683 fi 10684 break 10685 fi 10686 done 10687 IFS=$lt_save_ifs 10688 MAGIC_CMD=$lt_save_MAGIC_CMD 10689 ;; 10690esac 10691fi 10692 10693MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10694if test -n "$MAGIC_CMD"; then 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10696$as_echo "$MAGIC_CMD" >&6; } 10697else 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10699$as_echo "no" >&6; } 10700fi 10701 10702 10703 else 10704 MAGIC_CMD=: 10705 fi 10706fi 10707 10708 fi 10709 ;; 10710esac 10711 10712# Use C for the default configuration in the libtool script 10713 10714lt_save_CC=$CC 10715ac_ext=c 10716ac_cpp='$CPP $CPPFLAGS' 10717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10719ac_compiler_gnu=$ac_cv_c_compiler_gnu 10720 10721 10722# Source file extension for C test sources. 10723ac_ext=c 10724 10725# Object file extension for compiled C test sources. 10726objext=o 10727objext=$objext 10728 10729# Code to be used in simple compile tests 10730lt_simple_compile_test_code="int some_variable = 0;" 10731 10732# Code to be used in simple link tests 10733lt_simple_link_test_code='int main(){return(0);}' 10734 10735 10736 10737 10738 10739 10740 10741# If no C compiler was specified, use CC. 10742LTCC=${LTCC-"$CC"} 10743 10744# If no C compiler flags were specified, use CFLAGS. 10745LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10746 10747# Allow CC to be a program name with arguments. 10748compiler=$CC 10749 10750# Save the default compiler, since it gets overwritten when the other 10751# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10752compiler_DEFAULT=$CC 10753 10754# save warnings/boilerplate of simple test code 10755ac_outfile=conftest.$ac_objext 10756echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10757eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10758_lt_compiler_boilerplate=`cat conftest.err` 10759$RM conftest* 10760 10761ac_outfile=conftest.$ac_objext 10762echo "$lt_simple_link_test_code" >conftest.$ac_ext 10763eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10764_lt_linker_boilerplate=`cat conftest.err` 10765$RM -r conftest* 10766 10767 10768if test -n "$compiler"; then 10769 10770lt_prog_compiler_no_builtin_flag= 10771 10772if test yes = "$GCC"; then 10773 case $cc_basename in 10774 nvcc*) 10775 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10776 *) 10777 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10778 esac 10779 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10781$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10782if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10783 $as_echo_n "(cached) " >&6 10784else 10785 lt_cv_prog_compiler_rtti_exceptions=no 10786 ac_outfile=conftest.$ac_objext 10787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10788 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10789 # Insert the option either (1) after the last *FLAGS variable, or 10790 # (2) before a word containing "conftest.", or (3) at the end. 10791 # Note that $ac_compile itself does not contain backslashes and begins 10792 # with a dollar sign (not a hyphen), so the echo should work correctly. 10793 # The option is referenced via a variable to avoid confusing sed. 10794 lt_compile=`echo "$ac_compile" | $SED \ 10795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10797 -e 's:$: $lt_compiler_flag:'` 10798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10799 (eval "$lt_compile" 2>conftest.err) 10800 ac_status=$? 10801 cat conftest.err >&5 10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10803 if (exit $ac_status) && test -s "$ac_outfile"; then 10804 # The compiler can only warn and ignore the option if not recognized 10805 # So say no if there are warnings other than the usual output. 10806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10809 lt_cv_prog_compiler_rtti_exceptions=yes 10810 fi 10811 fi 10812 $RM conftest* 10813 10814fi 10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10816$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10817 10818if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10820else 10821 : 10822fi 10823 10824fi 10825 10826 10827 10828 10829 10830 10831 lt_prog_compiler_wl= 10832lt_prog_compiler_pic= 10833lt_prog_compiler_static= 10834 10835 10836 if test yes = "$GCC"; then 10837 lt_prog_compiler_wl='-Wl,' 10838 lt_prog_compiler_static='-static' 10839 10840 case $host_os in 10841 aix*) 10842 # All AIX code is PIC. 10843 if test ia64 = "$host_cpu"; then 10844 # AIX 5 now supports IA64 processor 10845 lt_prog_compiler_static='-Bstatic' 10846 fi 10847 lt_prog_compiler_pic='-fPIC' 10848 ;; 10849 10850 amigaos*) 10851 case $host_cpu in 10852 powerpc) 10853 # see comment about AmigaOS4 .so support 10854 lt_prog_compiler_pic='-fPIC' 10855 ;; 10856 m68k) 10857 # FIXME: we need at least 68020 code to build shared libraries, but 10858 # adding the '-m68020' flag to GCC prevents building anything better, 10859 # like '-m68040'. 10860 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10861 ;; 10862 esac 10863 ;; 10864 10865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10866 # PIC is the default for these OSes. 10867 ;; 10868 10869 mingw* | cygwin* | pw32* | os2* | cegcc*) 10870 # This hack is so that the source file can tell whether it is being 10871 # built for inclusion in a dll (and should export symbols for example). 10872 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10873 # (--disable-auto-import) libraries 10874 lt_prog_compiler_pic='-DDLL_EXPORT' 10875 case $host_os in 10876 os2*) 10877 lt_prog_compiler_static='$wl-static' 10878 ;; 10879 esac 10880 ;; 10881 10882 darwin* | rhapsody*) 10883 # PIC is the default on this platform 10884 # Common symbols not allowed in MH_DYLIB files 10885 lt_prog_compiler_pic='-fno-common' 10886 ;; 10887 10888 haiku*) 10889 # PIC is the default for Haiku. 10890 # The "-static" flag exists, but is broken. 10891 lt_prog_compiler_static= 10892 ;; 10893 10894 hpux*) 10895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10897 # sets the default TLS model and affects inlining. 10898 case $host_cpu in 10899 hppa*64*) 10900 # +Z the default 10901 ;; 10902 *) 10903 lt_prog_compiler_pic='-fPIC' 10904 ;; 10905 esac 10906 ;; 10907 10908 interix[3-9]*) 10909 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10910 # Instead, we relocate shared libraries at runtime. 10911 ;; 10912 10913 msdosdjgpp*) 10914 # Just because we use GCC doesn't mean we suddenly get shared libraries 10915 # on systems that don't support them. 10916 lt_prog_compiler_can_build_shared=no 10917 enable_shared=no 10918 ;; 10919 10920 *nto* | *qnx*) 10921 # QNX uses GNU C++, but need to define -shared option too, otherwise 10922 # it will coredump. 10923 lt_prog_compiler_pic='-fPIC -shared' 10924 ;; 10925 10926 sysv4*MP*) 10927 if test -d /usr/nec; then 10928 lt_prog_compiler_pic=-Kconform_pic 10929 fi 10930 ;; 10931 10932 *) 10933 lt_prog_compiler_pic='-fPIC' 10934 ;; 10935 esac 10936 10937 case $cc_basename in 10938 nvcc*) # Cuda Compiler Driver 2.2 10939 lt_prog_compiler_wl='-Xlinker ' 10940 if test -n "$lt_prog_compiler_pic"; then 10941 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10942 fi 10943 ;; 10944 esac 10945 else 10946 # PORTME Check for flag to pass linker flags through the system compiler. 10947 case $host_os in 10948 aix*) 10949 lt_prog_compiler_wl='-Wl,' 10950 if test ia64 = "$host_cpu"; then 10951 # AIX 5 now supports IA64 processor 10952 lt_prog_compiler_static='-Bstatic' 10953 else 10954 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10955 fi 10956 ;; 10957 10958 darwin* | rhapsody*) 10959 # PIC is the default on this platform 10960 # Common symbols not allowed in MH_DYLIB files 10961 lt_prog_compiler_pic='-fno-common' 10962 case $cc_basename in 10963 nagfor*) 10964 # NAG Fortran compiler 10965 lt_prog_compiler_wl='-Wl,-Wl,,' 10966 lt_prog_compiler_pic='-PIC' 10967 lt_prog_compiler_static='-Bstatic' 10968 ;; 10969 esac 10970 ;; 10971 10972 mingw* | cygwin* | pw32* | os2* | cegcc*) 10973 # This hack is so that the source file can tell whether it is being 10974 # built for inclusion in a dll (and should export symbols for example). 10975 lt_prog_compiler_pic='-DDLL_EXPORT' 10976 case $host_os in 10977 os2*) 10978 lt_prog_compiler_static='$wl-static' 10979 ;; 10980 esac 10981 ;; 10982 10983 hpux9* | hpux10* | hpux11*) 10984 lt_prog_compiler_wl='-Wl,' 10985 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10986 # not for PA HP-UX. 10987 case $host_cpu in 10988 hppa*64*|ia64*) 10989 # +Z the default 10990 ;; 10991 *) 10992 lt_prog_compiler_pic='+Z' 10993 ;; 10994 esac 10995 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10996 lt_prog_compiler_static='$wl-a ${wl}archive' 10997 ;; 10998 10999 irix5* | irix6* | nonstopux*) 11000 lt_prog_compiler_wl='-Wl,' 11001 # PIC (with -KPIC) is the default. 11002 lt_prog_compiler_static='-non_shared' 11003 ;; 11004 11005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11006 case $cc_basename in 11007 # old Intel for x86_64, which still supported -KPIC. 11008 ecc*) 11009 lt_prog_compiler_wl='-Wl,' 11010 lt_prog_compiler_pic='-KPIC' 11011 lt_prog_compiler_static='-static' 11012 ;; 11013 # icc used to be incompatible with GCC. 11014 # ICC 10 doesn't accept -KPIC any more. 11015 icc* | ifort*) 11016 lt_prog_compiler_wl='-Wl,' 11017 lt_prog_compiler_pic='-fPIC' 11018 lt_prog_compiler_static='-static' 11019 ;; 11020 # Lahey Fortran 8.1. 11021 lf95*) 11022 lt_prog_compiler_wl='-Wl,' 11023 lt_prog_compiler_pic='--shared' 11024 lt_prog_compiler_static='--static' 11025 ;; 11026 nagfor*) 11027 # NAG Fortran compiler 11028 lt_prog_compiler_wl='-Wl,-Wl,,' 11029 lt_prog_compiler_pic='-PIC' 11030 lt_prog_compiler_static='-Bstatic' 11031 ;; 11032 tcc*) 11033 # Fabrice Bellard et al's Tiny C Compiler 11034 lt_prog_compiler_wl='-Wl,' 11035 lt_prog_compiler_pic='-fPIC' 11036 lt_prog_compiler_static='-static' 11037 ;; 11038 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11039 # Portland Group compilers (*not* the Pentium gcc compiler, 11040 # which looks to be a dead project) 11041 lt_prog_compiler_wl='-Wl,' 11042 lt_prog_compiler_pic='-fpic' 11043 lt_prog_compiler_static='-Bstatic' 11044 ;; 11045 ccc*) 11046 lt_prog_compiler_wl='-Wl,' 11047 # All Alpha code is PIC. 11048 lt_prog_compiler_static='-non_shared' 11049 ;; 11050 xl* | bgxl* | bgf* | mpixl*) 11051 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11052 lt_prog_compiler_wl='-Wl,' 11053 lt_prog_compiler_pic='-qpic' 11054 lt_prog_compiler_static='-qstaticlink' 11055 ;; 11056 *) 11057 case `$CC -V 2>&1 | sed 5q` in 11058 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11059 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11060 lt_prog_compiler_pic='-KPIC' 11061 lt_prog_compiler_static='-Bstatic' 11062 lt_prog_compiler_wl='' 11063 ;; 11064 *Sun\ F* | *Sun*Fortran*) 11065 lt_prog_compiler_pic='-KPIC' 11066 lt_prog_compiler_static='-Bstatic' 11067 lt_prog_compiler_wl='-Qoption ld ' 11068 ;; 11069 *Sun\ C*) 11070 # Sun C 5.9 11071 lt_prog_compiler_pic='-KPIC' 11072 lt_prog_compiler_static='-Bstatic' 11073 lt_prog_compiler_wl='-Wl,' 11074 ;; 11075 *Intel*\ [CF]*Compiler*) 11076 lt_prog_compiler_wl='-Wl,' 11077 lt_prog_compiler_pic='-fPIC' 11078 lt_prog_compiler_static='-static' 11079 ;; 11080 *Portland\ Group*) 11081 lt_prog_compiler_wl='-Wl,' 11082 lt_prog_compiler_pic='-fpic' 11083 lt_prog_compiler_static='-Bstatic' 11084 ;; 11085 esac 11086 ;; 11087 esac 11088 ;; 11089 11090 newsos6) 11091 lt_prog_compiler_pic='-KPIC' 11092 lt_prog_compiler_static='-Bstatic' 11093 ;; 11094 11095 *nto* | *qnx*) 11096 # QNX uses GNU C++, but need to define -shared option too, otherwise 11097 # it will coredump. 11098 lt_prog_compiler_pic='-fPIC -shared' 11099 ;; 11100 11101 osf3* | osf4* | osf5*) 11102 lt_prog_compiler_wl='-Wl,' 11103 # All OSF/1 code is PIC. 11104 lt_prog_compiler_static='-non_shared' 11105 ;; 11106 11107 rdos*) 11108 lt_prog_compiler_static='-non_shared' 11109 ;; 11110 11111 solaris*) 11112 lt_prog_compiler_pic='-KPIC' 11113 lt_prog_compiler_static='-Bstatic' 11114 case $cc_basename in 11115 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11116 lt_prog_compiler_wl='-Qoption ld ';; 11117 *) 11118 lt_prog_compiler_wl='-Wl,';; 11119 esac 11120 ;; 11121 11122 sunos4*) 11123 lt_prog_compiler_wl='-Qoption ld ' 11124 lt_prog_compiler_pic='-PIC' 11125 lt_prog_compiler_static='-Bstatic' 11126 ;; 11127 11128 sysv4 | sysv4.2uw2* | sysv4.3*) 11129 lt_prog_compiler_wl='-Wl,' 11130 lt_prog_compiler_pic='-KPIC' 11131 lt_prog_compiler_static='-Bstatic' 11132 ;; 11133 11134 sysv4*MP*) 11135 if test -d /usr/nec; then 11136 lt_prog_compiler_pic='-Kconform_pic' 11137 lt_prog_compiler_static='-Bstatic' 11138 fi 11139 ;; 11140 11141 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11142 lt_prog_compiler_wl='-Wl,' 11143 lt_prog_compiler_pic='-KPIC' 11144 lt_prog_compiler_static='-Bstatic' 11145 ;; 11146 11147 unicos*) 11148 lt_prog_compiler_wl='-Wl,' 11149 lt_prog_compiler_can_build_shared=no 11150 ;; 11151 11152 uts4*) 11153 lt_prog_compiler_pic='-pic' 11154 lt_prog_compiler_static='-Bstatic' 11155 ;; 11156 11157 *) 11158 lt_prog_compiler_can_build_shared=no 11159 ;; 11160 esac 11161 fi 11162 11163case $host_os in 11164 # For platforms that do not support PIC, -DPIC is meaningless: 11165 *djgpp*) 11166 lt_prog_compiler_pic= 11167 ;; 11168 *) 11169 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11170 ;; 11171esac 11172 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11174$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11175if ${lt_cv_prog_compiler_pic+:} false; then : 11176 $as_echo_n "(cached) " >&6 11177else 11178 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11179fi 11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11181$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11182lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11183 11184# 11185# Check to make sure the PIC flag actually works. 11186# 11187if test -n "$lt_prog_compiler_pic"; then 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11189$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11190if ${lt_cv_prog_compiler_pic_works+:} false; then : 11191 $as_echo_n "(cached) " >&6 11192else 11193 lt_cv_prog_compiler_pic_works=no 11194 ac_outfile=conftest.$ac_objext 11195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11196 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11197 # Insert the option either (1) after the last *FLAGS variable, or 11198 # (2) before a word containing "conftest.", or (3) at the end. 11199 # Note that $ac_compile itself does not contain backslashes and begins 11200 # with a dollar sign (not a hyphen), so the echo should work correctly. 11201 # The option is referenced via a variable to avoid confusing sed. 11202 lt_compile=`echo "$ac_compile" | $SED \ 11203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11205 -e 's:$: $lt_compiler_flag:'` 11206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11207 (eval "$lt_compile" 2>conftest.err) 11208 ac_status=$? 11209 cat conftest.err >&5 11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11211 if (exit $ac_status) && test -s "$ac_outfile"; then 11212 # The compiler can only warn and ignore the option if not recognized 11213 # So say no if there are warnings other than the usual output. 11214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11217 lt_cv_prog_compiler_pic_works=yes 11218 fi 11219 fi 11220 $RM conftest* 11221 11222fi 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11224$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11225 11226if test yes = "$lt_cv_prog_compiler_pic_works"; then 11227 case $lt_prog_compiler_pic in 11228 "" | " "*) ;; 11229 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11230 esac 11231else 11232 lt_prog_compiler_pic= 11233 lt_prog_compiler_can_build_shared=no 11234fi 11235 11236fi 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248# 11249# Check to make sure the static flag actually works. 11250# 11251wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11253$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11254if ${lt_cv_prog_compiler_static_works+:} false; then : 11255 $as_echo_n "(cached) " >&6 11256else 11257 lt_cv_prog_compiler_static_works=no 11258 save_LDFLAGS=$LDFLAGS 11259 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11260 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11262 # The linker can only warn and ignore the option if not recognized 11263 # So say no if there are warnings 11264 if test -s conftest.err; then 11265 # Append any errors to the config.log. 11266 cat conftest.err 1>&5 11267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11269 if diff conftest.exp conftest.er2 >/dev/null; then 11270 lt_cv_prog_compiler_static_works=yes 11271 fi 11272 else 11273 lt_cv_prog_compiler_static_works=yes 11274 fi 11275 fi 11276 $RM -r conftest* 11277 LDFLAGS=$save_LDFLAGS 11278 11279fi 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11281$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11282 11283if test yes = "$lt_cv_prog_compiler_static_works"; then 11284 : 11285else 11286 lt_prog_compiler_static= 11287fi 11288 11289 11290 11291 11292 11293 11294 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11296$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11297if ${lt_cv_prog_compiler_c_o+:} false; then : 11298 $as_echo_n "(cached) " >&6 11299else 11300 lt_cv_prog_compiler_c_o=no 11301 $RM -r conftest 2>/dev/null 11302 mkdir conftest 11303 cd conftest 11304 mkdir out 11305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11306 11307 lt_compiler_flag="-o out/conftest2.$ac_objext" 11308 # Insert the option either (1) after the last *FLAGS variable, or 11309 # (2) before a word containing "conftest.", or (3) at the end. 11310 # Note that $ac_compile itself does not contain backslashes and begins 11311 # with a dollar sign (not a hyphen), so the echo should work correctly. 11312 lt_compile=`echo "$ac_compile" | $SED \ 11313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11315 -e 's:$: $lt_compiler_flag:'` 11316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11317 (eval "$lt_compile" 2>out/conftest.err) 11318 ac_status=$? 11319 cat out/conftest.err >&5 11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11321 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11322 then 11323 # The compiler can only warn and ignore the option if not recognized 11324 # So say no if there are warnings 11325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11328 lt_cv_prog_compiler_c_o=yes 11329 fi 11330 fi 11331 chmod u+w . 2>&5 11332 $RM conftest* 11333 # SGI C++ compiler will create directory out/ii_files/ for 11334 # template instantiation 11335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11336 $RM out/* && rmdir out 11337 cd .. 11338 $RM -r conftest 11339 $RM conftest* 11340 11341fi 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11343$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11344 11345 11346 11347 11348 11349 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11351$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11352if ${lt_cv_prog_compiler_c_o+:} false; then : 11353 $as_echo_n "(cached) " >&6 11354else 11355 lt_cv_prog_compiler_c_o=no 11356 $RM -r conftest 2>/dev/null 11357 mkdir conftest 11358 cd conftest 11359 mkdir out 11360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11361 11362 lt_compiler_flag="-o out/conftest2.$ac_objext" 11363 # Insert the option either (1) after the last *FLAGS variable, or 11364 # (2) before a word containing "conftest.", or (3) at the end. 11365 # Note that $ac_compile itself does not contain backslashes and begins 11366 # with a dollar sign (not a hyphen), so the echo should work correctly. 11367 lt_compile=`echo "$ac_compile" | $SED \ 11368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11370 -e 's:$: $lt_compiler_flag:'` 11371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11372 (eval "$lt_compile" 2>out/conftest.err) 11373 ac_status=$? 11374 cat out/conftest.err >&5 11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11376 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11377 then 11378 # The compiler can only warn and ignore the option if not recognized 11379 # So say no if there are warnings 11380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11383 lt_cv_prog_compiler_c_o=yes 11384 fi 11385 fi 11386 chmod u+w . 2>&5 11387 $RM conftest* 11388 # SGI C++ compiler will create directory out/ii_files/ for 11389 # template instantiation 11390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11391 $RM out/* && rmdir out 11392 cd .. 11393 $RM -r conftest 11394 $RM conftest* 11395 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11398$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11399 11400 11401 11402 11403hard_links=nottested 11404if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11405 # do not overwrite the value of need_locks provided by the user 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11407$as_echo_n "checking if we can lock with hard links... " >&6; } 11408 hard_links=yes 11409 $RM conftest* 11410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11411 touch conftest.a 11412 ln conftest.a conftest.b 2>&5 || hard_links=no 11413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11415$as_echo "$hard_links" >&6; } 11416 if test no = "$hard_links"; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11418$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11419 need_locks=warn 11420 fi 11421else 11422 need_locks=no 11423fi 11424 11425 11426 11427 11428 11429 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11432 11433 runpath_var= 11434 allow_undefined_flag= 11435 always_export_symbols=no 11436 archive_cmds= 11437 archive_expsym_cmds= 11438 compiler_needs_object=no 11439 enable_shared_with_static_runtimes=no 11440 export_dynamic_flag_spec= 11441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11442 hardcode_automatic=no 11443 hardcode_direct=no 11444 hardcode_direct_absolute=no 11445 hardcode_libdir_flag_spec= 11446 hardcode_libdir_separator= 11447 hardcode_minus_L=no 11448 hardcode_shlibpath_var=unsupported 11449 inherit_rpath=no 11450 link_all_deplibs=unknown 11451 module_cmds= 11452 module_expsym_cmds= 11453 old_archive_from_new_cmds= 11454 old_archive_from_expsyms_cmds= 11455 thread_safe_flag_spec= 11456 whole_archive_flag_spec= 11457 # include_expsyms should be a list of space-separated symbols to be *always* 11458 # included in the symbol list 11459 include_expsyms= 11460 # exclude_expsyms can be an extended regexp of symbols to exclude 11461 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11462 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11463 # as well as any symbol that contains 'd'. 11464 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11465 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11466 # platforms (ab)use it in PIC code, but their linkers get confused if 11467 # the symbol is explicitly referenced. Since portable code cannot 11468 # rely on this symbol name, it's probably fine to never include it in 11469 # preloaded symbol tables. 11470 # Exclude shared library initialization/finalization symbols. 11471 extract_expsyms_cmds= 11472 11473 case $host_os in 11474 cygwin* | mingw* | pw32* | cegcc*) 11475 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11476 # When not using gcc, we currently assume that we are using 11477 # Microsoft Visual C++. 11478 if test yes != "$GCC"; then 11479 with_gnu_ld=no 11480 fi 11481 ;; 11482 interix*) 11483 # we just hope/assume this is gcc and not c89 (= MSVC++) 11484 with_gnu_ld=yes 11485 ;; 11486 openbsd* | bitrig*) 11487 with_gnu_ld=no 11488 ;; 11489 esac 11490 11491 ld_shlibs=yes 11492 11493 # On some targets, GNU ld is compatible enough with the native linker 11494 # that we're better off using the native interface for both. 11495 lt_use_gnu_ld_interface=no 11496 if test yes = "$with_gnu_ld"; then 11497 case $host_os in 11498 aix*) 11499 # The AIX port of GNU ld has always aspired to compatibility 11500 # with the native linker. However, as the warning in the GNU ld 11501 # block says, versions before 2.19.5* couldn't really create working 11502 # shared libraries, regardless of the interface used. 11503 case `$LD -v 2>&1` in 11504 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11505 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11506 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11507 *) 11508 lt_use_gnu_ld_interface=yes 11509 ;; 11510 esac 11511 ;; 11512 *) 11513 lt_use_gnu_ld_interface=yes 11514 ;; 11515 esac 11516 fi 11517 11518 if test yes = "$lt_use_gnu_ld_interface"; then 11519 # If archive_cmds runs LD, not CC, wlarc should be empty 11520 wlarc='$wl' 11521 11522 # Set some defaults for GNU ld with shared library support. These 11523 # are reset later if shared libraries are not supported. Putting them 11524 # here allows them to be overridden if necessary. 11525 runpath_var=LD_RUN_PATH 11526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11527 export_dynamic_flag_spec='$wl--export-dynamic' 11528 # ancient GNU ld didn't support --whole-archive et. al. 11529 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11530 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11531 else 11532 whole_archive_flag_spec= 11533 fi 11534 supports_anon_versioning=no 11535 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11536 *GNU\ gold*) supports_anon_versioning=yes ;; 11537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11540 *\ 2.11.*) ;; # other 2.11 versions 11541 *) supports_anon_versioning=yes ;; 11542 esac 11543 11544 # See if GNU ld supports shared libraries. 11545 case $host_os in 11546 aix[3-9]*) 11547 # On AIX/PPC, the GNU linker is very broken 11548 if test ia64 != "$host_cpu"; then 11549 ld_shlibs=no 11550 cat <<_LT_EOF 1>&2 11551 11552*** Warning: the GNU linker, at least up to release 2.19, is reported 11553*** to be unable to reliably create shared libraries on AIX. 11554*** Therefore, libtool is disabling shared libraries support. If you 11555*** really care for shared libraries, you may want to install binutils 11556*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11557*** You will then need to restart the configuration process. 11558 11559_LT_EOF 11560 fi 11561 ;; 11562 11563 amigaos*) 11564 case $host_cpu in 11565 powerpc) 11566 # see comment about AmigaOS4 .so support 11567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11568 archive_expsym_cmds='' 11569 ;; 11570 m68k) 11571 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)' 11572 hardcode_libdir_flag_spec='-L$libdir' 11573 hardcode_minus_L=yes 11574 ;; 11575 esac 11576 ;; 11577 11578 beos*) 11579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11580 allow_undefined_flag=unsupported 11581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11582 # support --undefined. This deserves some investigation. FIXME 11583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11584 else 11585 ld_shlibs=no 11586 fi 11587 ;; 11588 11589 cygwin* | mingw* | pw32* | cegcc*) 11590 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11591 # as there is no search path for DLLs. 11592 hardcode_libdir_flag_spec='-L$libdir' 11593 export_dynamic_flag_spec='$wl--export-all-symbols' 11594 allow_undefined_flag=unsupported 11595 always_export_symbols=no 11596 enable_shared_with_static_runtimes=yes 11597 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' 11598 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11599 11600 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11602 # If the export-symbols file already is a .def file, use it as 11603 # is; otherwise, prepend EXPORTS... 11604 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11605 cp $export_symbols $output_objdir/$soname.def; 11606 else 11607 echo EXPORTS > $output_objdir/$soname.def; 11608 cat $export_symbols >> $output_objdir/$soname.def; 11609 fi~ 11610 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11611 else 11612 ld_shlibs=no 11613 fi 11614 ;; 11615 11616 haiku*) 11617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11618 link_all_deplibs=yes 11619 ;; 11620 11621 os2*) 11622 hardcode_libdir_flag_spec='-L$libdir' 11623 hardcode_minus_L=yes 11624 allow_undefined_flag=unsupported 11625 shrext_cmds=.dll 11626 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11627 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11628 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11629 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11630 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11632 emximp -o $lib $output_objdir/$libname.def' 11633 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11634 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11635 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11636 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11637 prefix_cmds="$SED"~ 11638 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11639 prefix_cmds="$prefix_cmds -e 1d"; 11640 fi~ 11641 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11642 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11644 emximp -o $lib $output_objdir/$libname.def' 11645 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11646 enable_shared_with_static_runtimes=yes 11647 ;; 11648 11649 interix[3-9]*) 11650 hardcode_direct=no 11651 hardcode_shlibpath_var=no 11652 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11653 export_dynamic_flag_spec='$wl-E' 11654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11655 # Instead, shared libraries are loaded at an image base (0x10000000 by 11656 # default) and relocated if they conflict, which is a slow very memory 11657 # consuming and fragmenting process. To avoid this, we pick a random, 11658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11659 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11661 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' 11662 ;; 11663 11664 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11665 tmp_diet=no 11666 if test linux-dietlibc = "$host_os"; then 11667 case $cc_basename in 11668 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11669 esac 11670 fi 11671 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11672 && test no = "$tmp_diet" 11673 then 11674 tmp_addflag=' $pic_flag' 11675 tmp_sharedflag='-shared' 11676 case $cc_basename,$host_cpu in 11677 pgcc*) # Portland Group C compiler 11678 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' 11679 tmp_addflag=' $pic_flag' 11680 ;; 11681 pgf77* | pgf90* | pgf95* | pgfortran*) 11682 # Portland Group f77 and f90 compilers 11683 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' 11684 tmp_addflag=' $pic_flag -Mnomain' ;; 11685 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11686 tmp_addflag=' -i_dynamic' ;; 11687 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11688 tmp_addflag=' -i_dynamic -nofor_main' ;; 11689 ifc* | ifort*) # Intel Fortran compiler 11690 tmp_addflag=' -nofor_main' ;; 11691 lf95*) # Lahey Fortran 8.1 11692 whole_archive_flag_spec= 11693 tmp_sharedflag='--shared' ;; 11694 nagfor*) # NAGFOR 5.3 11695 tmp_sharedflag='-Wl,-shared' ;; 11696 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11697 tmp_sharedflag='-qmkshrobj' 11698 tmp_addflag= ;; 11699 nvcc*) # Cuda Compiler Driver 2.2 11700 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' 11701 compiler_needs_object=yes 11702 ;; 11703 esac 11704 case `$CC -V 2>&1 | sed 5q` in 11705 *Sun\ C*) # Sun C 5.9 11706 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' 11707 compiler_needs_object=yes 11708 tmp_sharedflag='-G' ;; 11709 *Sun\ F*) # Sun Fortran 8.3 11710 tmp_sharedflag='-G' ;; 11711 esac 11712 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11713 11714 if test yes = "$supports_anon_versioning"; then 11715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11717 echo "local: *; };" >> $output_objdir/$libname.ver~ 11718 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11719 fi 11720 11721 case $cc_basename in 11722 tcc*) 11723 export_dynamic_flag_spec='-rdynamic' 11724 ;; 11725 xlf* | bgf* | bgxlf* | mpixlf*) 11726 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11727 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11728 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11729 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11730 if test yes = "$supports_anon_versioning"; then 11731 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11733 echo "local: *; };" >> $output_objdir/$libname.ver~ 11734 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11735 fi 11736 ;; 11737 esac 11738 else 11739 ld_shlibs=no 11740 fi 11741 ;; 11742 11743 netbsd*) 11744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11745 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11746 wlarc= 11747 else 11748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11749 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11750 fi 11751 ;; 11752 11753 solaris*) 11754 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11755 ld_shlibs=no 11756 cat <<_LT_EOF 1>&2 11757 11758*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11759*** create shared libraries on Solaris systems. Therefore, libtool 11760*** is disabling shared libraries support. We urge you to upgrade GNU 11761*** binutils to release 2.9.1 or newer. Another option is to modify 11762*** your PATH or compiler configuration so that the native linker is 11763*** used, and then restart. 11764 11765_LT_EOF 11766 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11768 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11769 else 11770 ld_shlibs=no 11771 fi 11772 ;; 11773 11774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11775 case `$LD -v 2>&1` in 11776 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11777 ld_shlibs=no 11778 cat <<_LT_EOF 1>&2 11779 11780*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11781*** reliably create shared libraries on SCO systems. Therefore, libtool 11782*** is disabling shared libraries support. We urge you to upgrade GNU 11783*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11784*** your PATH or compiler configuration so that the native linker is 11785*** used, and then restart. 11786 11787_LT_EOF 11788 ;; 11789 *) 11790 # For security reasons, it is highly recommended that you always 11791 # use absolute paths for naming shared libraries, and exclude the 11792 # DT_RUNPATH tag from executables and libraries. But doing so 11793 # requires that you compile everything twice, which is a pain. 11794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11798 else 11799 ld_shlibs=no 11800 fi 11801 ;; 11802 esac 11803 ;; 11804 11805 sunos4*) 11806 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11807 wlarc= 11808 hardcode_direct=yes 11809 hardcode_shlibpath_var=no 11810 ;; 11811 11812 *) 11813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11815 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11816 else 11817 ld_shlibs=no 11818 fi 11819 ;; 11820 esac 11821 11822 if test no = "$ld_shlibs"; then 11823 runpath_var= 11824 hardcode_libdir_flag_spec= 11825 export_dynamic_flag_spec= 11826 whole_archive_flag_spec= 11827 fi 11828 else 11829 # PORTME fill in a description of your system's linker (not GNU ld) 11830 case $host_os in 11831 aix3*) 11832 allow_undefined_flag=unsupported 11833 always_export_symbols=yes 11834 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' 11835 # Note: this linker hardcodes the directories in LIBPATH if there 11836 # are no directories specified by -L. 11837 hardcode_minus_L=yes 11838 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11839 # Neither direct hardcoding nor static linking is supported with a 11840 # broken collect2. 11841 hardcode_direct=unsupported 11842 fi 11843 ;; 11844 11845 aix[4-9]*) 11846 if test ia64 = "$host_cpu"; then 11847 # On IA64, the linker does run time linking by default, so we don't 11848 # have to do anything special. 11849 aix_use_runtimelinking=no 11850 exp_sym_flag='-Bexport' 11851 no_entry_flag= 11852 else 11853 # If we're using GNU nm, then we don't want the "-C" option. 11854 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11855 # Without the "-l" option, or with the "-B" option, AIX nm treats 11856 # weak defined symbols like other global defined symbols, whereas 11857 # GNU nm marks them as "W". 11858 # While the 'weak' keyword is ignored in the Export File, we need 11859 # it in the Import File for the 'aix-soname' feature, so we have 11860 # to replace the "-B" option with "-P" for AIX nm. 11861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11862 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' 11863 else 11864 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' 11865 fi 11866 aix_use_runtimelinking=no 11867 11868 # Test if we are trying to use run time linking or normal 11869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11870 # have runtime linking enabled, and use it for executables. 11871 # For shared libraries, we enable/disable runtime linking 11872 # depending on the kind of the shared library created - 11873 # when "with_aix_soname,aix_use_runtimelinking" is: 11874 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11875 # "aix,yes" lib.so shared, rtl:yes, for executables 11876 # lib.a static archive 11877 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11878 # lib.a(lib.so.V) shared, rtl:no, for executables 11879 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11880 # lib.a(lib.so.V) shared, rtl:no 11881 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11882 # lib.a static archive 11883 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11884 for ld_flag in $LDFLAGS; do 11885 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11886 aix_use_runtimelinking=yes 11887 break 11888 fi 11889 done 11890 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11891 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11892 # so we don't have lib.a shared libs to link our executables. 11893 # We have to force runtime linking in this case. 11894 aix_use_runtimelinking=yes 11895 LDFLAGS="$LDFLAGS -Wl,-brtl" 11896 fi 11897 ;; 11898 esac 11899 11900 exp_sym_flag='-bexport' 11901 no_entry_flag='-bnoentry' 11902 fi 11903 11904 # When large executables or shared objects are built, AIX ld can 11905 # have problems creating the table of contents. If linking a library 11906 # or program results in "error TOC overflow" add -mminimal-toc to 11907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11909 11910 archive_cmds='' 11911 hardcode_direct=yes 11912 hardcode_direct_absolute=yes 11913 hardcode_libdir_separator=':' 11914 link_all_deplibs=yes 11915 file_list_spec='$wl-f,' 11916 case $with_aix_soname,$aix_use_runtimelinking in 11917 aix,*) ;; # traditional, no import file 11918 svr4,* | *,yes) # use import file 11919 # The Import File defines what to hardcode. 11920 hardcode_direct=no 11921 hardcode_direct_absolute=no 11922 ;; 11923 esac 11924 11925 if test yes = "$GCC"; then 11926 case $host_os in aix4.[012]|aix4.[012].*) 11927 # We only want to do this on AIX 4.2 and lower, the check 11928 # below for broken collect2 doesn't work under 4.3+ 11929 collect2name=`$CC -print-prog-name=collect2` 11930 if test -f "$collect2name" && 11931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11932 then 11933 # We have reworked collect2 11934 : 11935 else 11936 # We have old collect2 11937 hardcode_direct=unsupported 11938 # It fails to find uninstalled libraries when the uninstalled 11939 # path is not listed in the libpath. Setting hardcode_minus_L 11940 # to unsupported forces relinking 11941 hardcode_minus_L=yes 11942 hardcode_libdir_flag_spec='-L$libdir' 11943 hardcode_libdir_separator= 11944 fi 11945 ;; 11946 esac 11947 shared_flag='-shared' 11948 if test yes = "$aix_use_runtimelinking"; then 11949 shared_flag="$shared_flag "'$wl-G' 11950 fi 11951 # Need to ensure runtime linking is disabled for the traditional 11952 # shared library, or the linker may eventually find shared libraries 11953 # /with/ Import File - we do not want to mix them. 11954 shared_flag_aix='-shared' 11955 shared_flag_svr4='-shared $wl-G' 11956 else 11957 # not using gcc 11958 if test ia64 = "$host_cpu"; then 11959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11960 # chokes on -Wl,-G. The following line is correct: 11961 shared_flag='-G' 11962 else 11963 if test yes = "$aix_use_runtimelinking"; then 11964 shared_flag='$wl-G' 11965 else 11966 shared_flag='$wl-bM:SRE' 11967 fi 11968 shared_flag_aix='$wl-bM:SRE' 11969 shared_flag_svr4='$wl-G' 11970 fi 11971 fi 11972 11973 export_dynamic_flag_spec='$wl-bexpall' 11974 # It seems that -bexpall does not export symbols beginning with 11975 # underscore (_), so it is better to generate a list of symbols to export. 11976 always_export_symbols=yes 11977 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11978 # Warning - without using the other runtime loading flags (-brtl), 11979 # -berok will link without error, but may produce a broken library. 11980 allow_undefined_flag='-berok' 11981 # Determine the default libpath from the value encoded in an 11982 # empty executable. 11983 if test set = "${lt_cv_aix_libpath+set}"; then 11984 aix_libpath=$lt_cv_aix_libpath 11985else 11986 if ${lt_cv_aix_libpath_+:} false; then : 11987 $as_echo_n "(cached) " >&6 11988else 11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11990/* end confdefs.h. */ 11991 11992int 11993main () 11994{ 11995 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_c_try_link "$LINENO"; then : 12001 12002 lt_aix_libpath_sed=' 12003 /Import File Strings/,/^$/ { 12004 /^0/ { 12005 s/^0 *\([^ ]*\) *$/\1/ 12006 p 12007 } 12008 }' 12009 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12010 # Check for a 64-bit object if we didn't find anything. 12011 if test -z "$lt_cv_aix_libpath_"; then 12012 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12013 fi 12014fi 12015rm -f core conftest.err conftest.$ac_objext \ 12016 conftest$ac_exeext conftest.$ac_ext 12017 if test -z "$lt_cv_aix_libpath_"; then 12018 lt_cv_aix_libpath_=/usr/lib:/lib 12019 fi 12020 12021fi 12022 12023 aix_libpath=$lt_cv_aix_libpath_ 12024fi 12025 12026 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12027 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 12028 else 12029 if test ia64 = "$host_cpu"; then 12030 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12031 allow_undefined_flag="-z nodefs" 12032 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" 12033 else 12034 # Determine the default libpath from the value encoded in an 12035 # empty executable. 12036 if test set = "${lt_cv_aix_libpath+set}"; then 12037 aix_libpath=$lt_cv_aix_libpath 12038else 12039 if ${lt_cv_aix_libpath_+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041else 12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12043/* end confdefs.h. */ 12044 12045int 12046main () 12047{ 12048 12049 ; 12050 return 0; 12051} 12052_ACEOF 12053if ac_fn_c_try_link "$LINENO"; then : 12054 12055 lt_aix_libpath_sed=' 12056 /Import File Strings/,/^$/ { 12057 /^0/ { 12058 s/^0 *\([^ ]*\) *$/\1/ 12059 p 12060 } 12061 }' 12062 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12063 # Check for a 64-bit object if we didn't find anything. 12064 if test -z "$lt_cv_aix_libpath_"; then 12065 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12066 fi 12067fi 12068rm -f core conftest.err conftest.$ac_objext \ 12069 conftest$ac_exeext conftest.$ac_ext 12070 if test -z "$lt_cv_aix_libpath_"; then 12071 lt_cv_aix_libpath_=/usr/lib:/lib 12072 fi 12073 12074fi 12075 12076 aix_libpath=$lt_cv_aix_libpath_ 12077fi 12078 12079 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12080 # Warning - without using the other run time loading flags, 12081 # -berok will link without error, but may produce a broken library. 12082 no_undefined_flag=' $wl-bernotok' 12083 allow_undefined_flag=' $wl-berok' 12084 if test yes = "$with_gnu_ld"; then 12085 # We only use this code for GNU lds that support --whole-archive. 12086 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12087 else 12088 # Exported symbols can be pulled into shared objects from archives 12089 whole_archive_flag_spec='$convenience' 12090 fi 12091 archive_cmds_need_lc=yes 12092 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12093 # -brtl affects multiple linker settings, -berok does not and is overridden later 12094 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12095 if test svr4 != "$with_aix_soname"; then 12096 # This is similar to how AIX traditionally builds its shared libraries. 12097 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' 12098 fi 12099 if test aix != "$with_aix_soname"; then 12100 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' 12101 else 12102 # used by -dlpreopen to get the symbols 12103 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12104 fi 12105 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12106 fi 12107 fi 12108 ;; 12109 12110 amigaos*) 12111 case $host_cpu in 12112 powerpc) 12113 # see comment about AmigaOS4 .so support 12114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12115 archive_expsym_cmds='' 12116 ;; 12117 m68k) 12118 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)' 12119 hardcode_libdir_flag_spec='-L$libdir' 12120 hardcode_minus_L=yes 12121 ;; 12122 esac 12123 ;; 12124 12125 bsdi[45]*) 12126 export_dynamic_flag_spec=-rdynamic 12127 ;; 12128 12129 cygwin* | mingw* | pw32* | cegcc*) 12130 # When not using gcc, we currently assume that we are using 12131 # Microsoft Visual C++. 12132 # hardcode_libdir_flag_spec is actually meaningless, as there is 12133 # no search path for DLLs. 12134 case $cc_basename in 12135 cl*) 12136 # Native MSVC 12137 hardcode_libdir_flag_spec=' ' 12138 allow_undefined_flag=unsupported 12139 always_export_symbols=yes 12140 file_list_spec='@' 12141 # Tell ltmain to make .lib files, not .a files. 12142 libext=lib 12143 # Tell ltmain to make .dll files, not .so files. 12144 shrext_cmds=.dll 12145 # FIXME: Setting linknames here is a bad hack. 12146 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12147 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12148 cp "$export_symbols" "$output_objdir/$soname.def"; 12149 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12150 else 12151 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12152 fi~ 12153 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12154 linknames=' 12155 # The linker will not automatically build a static lib if we build a DLL. 12156 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12157 enable_shared_with_static_runtimes=yes 12158 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12160 # Don't use ranlib 12161 old_postinstall_cmds='chmod 644 $oldlib' 12162 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12163 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12164 case $lt_outputfile in 12165 *.exe|*.EXE) ;; 12166 *) 12167 lt_outputfile=$lt_outputfile.exe 12168 lt_tool_outputfile=$lt_tool_outputfile.exe 12169 ;; 12170 esac~ 12171 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12172 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12173 $RM "$lt_outputfile.manifest"; 12174 fi' 12175 ;; 12176 *) 12177 # Assume MSVC wrapper 12178 hardcode_libdir_flag_spec=' ' 12179 allow_undefined_flag=unsupported 12180 # Tell ltmain to make .lib files, not .a files. 12181 libext=lib 12182 # Tell ltmain to make .dll files, not .so files. 12183 shrext_cmds=.dll 12184 # FIXME: Setting linknames here is a bad hack. 12185 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12186 # The linker will automatically build a .lib file if we build a DLL. 12187 old_archive_from_new_cmds='true' 12188 # FIXME: Should let the user specify the lib program. 12189 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12190 enable_shared_with_static_runtimes=yes 12191 ;; 12192 esac 12193 ;; 12194 12195 darwin* | rhapsody*) 12196 12197 12198 archive_cmds_need_lc=no 12199 hardcode_direct=no 12200 hardcode_automatic=yes 12201 hardcode_shlibpath_var=unsupported 12202 if test yes = "$lt_cv_ld_force_load"; then 12203 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\"`' 12204 12205 else 12206 whole_archive_flag_spec='' 12207 fi 12208 link_all_deplibs=yes 12209 allow_undefined_flag=$_lt_dar_allow_undefined 12210 case $cc_basename in 12211 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12212 *) _lt_dar_can_shared=$GCC ;; 12213 esac 12214 if test yes = "$_lt_dar_can_shared"; then 12215 output_verbose_link_cmd=func_echo_all 12216 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12217 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12218 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" 12219 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" 12220 12221 else 12222 ld_shlibs=no 12223 fi 12224 12225 ;; 12226 12227 dgux*) 12228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12229 hardcode_libdir_flag_spec='-L$libdir' 12230 hardcode_shlibpath_var=no 12231 ;; 12232 12233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12234 # support. Future versions do this automatically, but an explicit c++rt0.o 12235 # does not break anything, and helps significantly (at the cost of a little 12236 # extra space). 12237 freebsd2.2*) 12238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12239 hardcode_libdir_flag_spec='-R$libdir' 12240 hardcode_direct=yes 12241 hardcode_shlibpath_var=no 12242 ;; 12243 12244 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12245 freebsd2.*) 12246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12247 hardcode_direct=yes 12248 hardcode_minus_L=yes 12249 hardcode_shlibpath_var=no 12250 ;; 12251 12252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12253 freebsd* | dragonfly*) 12254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12255 hardcode_libdir_flag_spec='-R$libdir' 12256 hardcode_direct=yes 12257 hardcode_shlibpath_var=no 12258 ;; 12259 12260 hpux9*) 12261 if test yes = "$GCC"; then 12262 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' 12263 else 12264 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' 12265 fi 12266 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12267 hardcode_libdir_separator=: 12268 hardcode_direct=yes 12269 12270 # hardcode_minus_L: Not really in the search PATH, 12271 # but as the default location of the library. 12272 hardcode_minus_L=yes 12273 export_dynamic_flag_spec='$wl-E' 12274 ;; 12275 12276 hpux10*) 12277 if test yes,no = "$GCC,$with_gnu_ld"; then 12278 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12279 else 12280 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12281 fi 12282 if test no = "$with_gnu_ld"; then 12283 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12284 hardcode_libdir_separator=: 12285 hardcode_direct=yes 12286 hardcode_direct_absolute=yes 12287 export_dynamic_flag_spec='$wl-E' 12288 # hardcode_minus_L: Not really in the search PATH, 12289 # but as the default location of the library. 12290 hardcode_minus_L=yes 12291 fi 12292 ;; 12293 12294 hpux11*) 12295 if test yes,no = "$GCC,$with_gnu_ld"; then 12296 case $host_cpu in 12297 hppa*64*) 12298 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12299 ;; 12300 ia64*) 12301 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12302 ;; 12303 *) 12304 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12305 ;; 12306 esac 12307 else 12308 case $host_cpu in 12309 hppa*64*) 12310 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12311 ;; 12312 ia64*) 12313 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12314 ;; 12315 *) 12316 12317 # Older versions of the 11.00 compiler do not understand -b yet 12318 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12320$as_echo_n "checking if $CC understands -b... " >&6; } 12321if ${lt_cv_prog_compiler__b+:} false; then : 12322 $as_echo_n "(cached) " >&6 12323else 12324 lt_cv_prog_compiler__b=no 12325 save_LDFLAGS=$LDFLAGS 12326 LDFLAGS="$LDFLAGS -b" 12327 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12329 # The linker can only warn and ignore the option if not recognized 12330 # So say no if there are warnings 12331 if test -s conftest.err; then 12332 # Append any errors to the config.log. 12333 cat conftest.err 1>&5 12334 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12336 if diff conftest.exp conftest.er2 >/dev/null; then 12337 lt_cv_prog_compiler__b=yes 12338 fi 12339 else 12340 lt_cv_prog_compiler__b=yes 12341 fi 12342 fi 12343 $RM -r conftest* 12344 LDFLAGS=$save_LDFLAGS 12345 12346fi 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12348$as_echo "$lt_cv_prog_compiler__b" >&6; } 12349 12350if test yes = "$lt_cv_prog_compiler__b"; then 12351 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12352else 12353 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12354fi 12355 12356 ;; 12357 esac 12358 fi 12359 if test no = "$with_gnu_ld"; then 12360 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12361 hardcode_libdir_separator=: 12362 12363 case $host_cpu in 12364 hppa*64*|ia64*) 12365 hardcode_direct=no 12366 hardcode_shlibpath_var=no 12367 ;; 12368 *) 12369 hardcode_direct=yes 12370 hardcode_direct_absolute=yes 12371 export_dynamic_flag_spec='$wl-E' 12372 12373 # hardcode_minus_L: Not really in the search PATH, 12374 # but as the default location of the library. 12375 hardcode_minus_L=yes 12376 ;; 12377 esac 12378 fi 12379 ;; 12380 12381 irix5* | irix6* | nonstopux*) 12382 if test yes = "$GCC"; then 12383 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' 12384 # Try to use the -exported_symbol ld option, if it does not 12385 # work, assume that -exports_file does not work either and 12386 # implicitly export all symbols. 12387 # This should be the same for all languages, so no per-tag cache variable. 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12389$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12390if ${lt_cv_irix_exported_symbol+:} false; then : 12391 $as_echo_n "(cached) " >&6 12392else 12393 save_LDFLAGS=$LDFLAGS 12394 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397int foo (void) { return 0; } 12398_ACEOF 12399if ac_fn_c_try_link "$LINENO"; then : 12400 lt_cv_irix_exported_symbol=yes 12401else 12402 lt_cv_irix_exported_symbol=no 12403fi 12404rm -f core conftest.err conftest.$ac_objext \ 12405 conftest$ac_exeext conftest.$ac_ext 12406 LDFLAGS=$save_LDFLAGS 12407fi 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12409$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12410 if test yes = "$lt_cv_irix_exported_symbol"; then 12411 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' 12412 fi 12413 else 12414 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' 12415 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' 12416 fi 12417 archive_cmds_need_lc='no' 12418 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12419 hardcode_libdir_separator=: 12420 inherit_rpath=yes 12421 link_all_deplibs=yes 12422 ;; 12423 12424 linux*) 12425 case $cc_basename in 12426 tcc*) 12427 # Fabrice Bellard et al's Tiny C Compiler 12428 ld_shlibs=yes 12429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12430 ;; 12431 esac 12432 ;; 12433 12434 netbsd*) 12435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12437 else 12438 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12439 fi 12440 hardcode_libdir_flag_spec='-R$libdir' 12441 hardcode_direct=yes 12442 hardcode_shlibpath_var=no 12443 ;; 12444 12445 newsos6) 12446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12447 hardcode_direct=yes 12448 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12449 hardcode_libdir_separator=: 12450 hardcode_shlibpath_var=no 12451 ;; 12452 12453 *nto* | *qnx*) 12454 ;; 12455 12456 openbsd* | bitrig*) 12457 if test -f /usr/libexec/ld.so; then 12458 hardcode_direct=yes 12459 hardcode_shlibpath_var=no 12460 hardcode_direct_absolute=yes 12461 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12462 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12463 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12464 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12465 export_dynamic_flag_spec='$wl-E' 12466 else 12467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12468 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12469 fi 12470 else 12471 ld_shlibs=no 12472 fi 12473 ;; 12474 12475 os2*) 12476 hardcode_libdir_flag_spec='-L$libdir' 12477 hardcode_minus_L=yes 12478 allow_undefined_flag=unsupported 12479 shrext_cmds=.dll 12480 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12481 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12482 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12483 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12484 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12485 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12486 emximp -o $lib $output_objdir/$libname.def' 12487 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12488 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12489 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12490 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12491 prefix_cmds="$SED"~ 12492 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12493 prefix_cmds="$prefix_cmds -e 1d"; 12494 fi~ 12495 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12496 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12497 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12498 emximp -o $lib $output_objdir/$libname.def' 12499 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12500 enable_shared_with_static_runtimes=yes 12501 ;; 12502 12503 osf3*) 12504 if test yes = "$GCC"; then 12505 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12506 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' 12507 else 12508 allow_undefined_flag=' -expect_unresolved \*' 12509 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' 12510 fi 12511 archive_cmds_need_lc='no' 12512 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12513 hardcode_libdir_separator=: 12514 ;; 12515 12516 osf4* | osf5*) # as osf3* with the addition of -msym flag 12517 if test yes = "$GCC"; then 12518 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12519 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' 12520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12521 else 12522 allow_undefined_flag=' -expect_unresolved \*' 12523 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' 12524 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~ 12525 $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' 12526 12527 # Both c and cxx compiler support -rpath directly 12528 hardcode_libdir_flag_spec='-rpath $libdir' 12529 fi 12530 archive_cmds_need_lc='no' 12531 hardcode_libdir_separator=: 12532 ;; 12533 12534 solaris*) 12535 no_undefined_flag=' -z defs' 12536 if test yes = "$GCC"; then 12537 wlarc='$wl' 12538 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12540 $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' 12541 else 12542 case `$CC -V 2>&1` in 12543 *"Compilers 5.0"*) 12544 wlarc='' 12545 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12547 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12548 ;; 12549 *) 12550 wlarc='$wl' 12551 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12553 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12554 ;; 12555 esac 12556 fi 12557 hardcode_libdir_flag_spec='-R$libdir' 12558 hardcode_shlibpath_var=no 12559 case $host_os in 12560 solaris2.[0-5] | solaris2.[0-5].*) ;; 12561 *) 12562 # The compiler driver will combine and reorder linker options, 12563 # but understands '-z linker_flag'. GCC discards it without '$wl', 12564 # but is careful enough not to reorder. 12565 # Supported since Solaris 2.6 (maybe 2.5.1?) 12566 if test yes = "$GCC"; then 12567 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12568 else 12569 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12570 fi 12571 ;; 12572 esac 12573 link_all_deplibs=yes 12574 ;; 12575 12576 sunos4*) 12577 if test sequent = "$host_vendor"; then 12578 # Use $CC to link under sequent, because it throws in some extra .o 12579 # files that make .init and .fini sections work. 12580 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12581 else 12582 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12583 fi 12584 hardcode_libdir_flag_spec='-L$libdir' 12585 hardcode_direct=yes 12586 hardcode_minus_L=yes 12587 hardcode_shlibpath_var=no 12588 ;; 12589 12590 sysv4) 12591 case $host_vendor in 12592 sni) 12593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12594 hardcode_direct=yes # is this really true??? 12595 ;; 12596 siemens) 12597 ## LD is ld it makes a PLAMLIB 12598 ## CC just makes a GrossModule. 12599 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12600 reload_cmds='$CC -r -o $output$reload_objs' 12601 hardcode_direct=no 12602 ;; 12603 motorola) 12604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12605 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12606 ;; 12607 esac 12608 runpath_var='LD_RUN_PATH' 12609 hardcode_shlibpath_var=no 12610 ;; 12611 12612 sysv4.3*) 12613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12614 hardcode_shlibpath_var=no 12615 export_dynamic_flag_spec='-Bexport' 12616 ;; 12617 12618 sysv4*MP*) 12619 if test -d /usr/nec; then 12620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12621 hardcode_shlibpath_var=no 12622 runpath_var=LD_RUN_PATH 12623 hardcode_runpath_var=yes 12624 ld_shlibs=yes 12625 fi 12626 ;; 12627 12628 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12629 no_undefined_flag='$wl-z,text' 12630 archive_cmds_need_lc=no 12631 hardcode_shlibpath_var=no 12632 runpath_var='LD_RUN_PATH' 12633 12634 if test yes = "$GCC"; then 12635 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12636 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12637 else 12638 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12639 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12640 fi 12641 ;; 12642 12643 sysv5* | sco3.2v5* | sco5v6*) 12644 # Note: We CANNOT use -z defs as we might desire, because we do not 12645 # link with -lc, and that would cause any symbols used from libc to 12646 # always be unresolved, which means just about no library would 12647 # ever link correctly. If we're not using GNU ld we use -z text 12648 # though, which does catch some bad symbols but isn't as heavy-handed 12649 # as -z defs. 12650 no_undefined_flag='$wl-z,text' 12651 allow_undefined_flag='$wl-z,nodefs' 12652 archive_cmds_need_lc=no 12653 hardcode_shlibpath_var=no 12654 hardcode_libdir_flag_spec='$wl-R,$libdir' 12655 hardcode_libdir_separator=':' 12656 link_all_deplibs=yes 12657 export_dynamic_flag_spec='$wl-Bexport' 12658 runpath_var='LD_RUN_PATH' 12659 12660 if test yes = "$GCC"; then 12661 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12662 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12663 else 12664 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12665 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12666 fi 12667 ;; 12668 12669 uts4*) 12670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12671 hardcode_libdir_flag_spec='-L$libdir' 12672 hardcode_shlibpath_var=no 12673 ;; 12674 12675 *) 12676 ld_shlibs=no 12677 ;; 12678 esac 12679 12680 if test sni = "$host_vendor"; then 12681 case $host in 12682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12683 export_dynamic_flag_spec='$wl-Blargedynsym' 12684 ;; 12685 esac 12686 fi 12687 fi 12688 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12690$as_echo "$ld_shlibs" >&6; } 12691test no = "$ld_shlibs" && can_build_shared=no 12692 12693with_gnu_ld=$with_gnu_ld 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709# 12710# Do we need to explicitly link libc? 12711# 12712case "x$archive_cmds_need_lc" in 12713x|xyes) 12714 # Assume -lc should be added 12715 archive_cmds_need_lc=yes 12716 12717 if test yes,yes = "$GCC,$enable_shared"; then 12718 case $archive_cmds in 12719 *'~'*) 12720 # FIXME: we may have to deal with multi-command sequences. 12721 ;; 12722 '$CC '*) 12723 # Test whether the compiler implicitly links with -lc since on some 12724 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12725 # to ld, don't add -lc before -lgcc. 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12727$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12728if ${lt_cv_archive_cmds_need_lc+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 $RM conftest* 12732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12733 12734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12735 (eval $ac_compile) 2>&5 12736 ac_status=$? 12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12738 test $ac_status = 0; } 2>conftest.err; then 12739 soname=conftest 12740 lib=conftest 12741 libobjs=conftest.$ac_objext 12742 deplibs= 12743 wl=$lt_prog_compiler_wl 12744 pic_flag=$lt_prog_compiler_pic 12745 compiler_flags=-v 12746 linker_flags=-v 12747 verstring= 12748 output_objdir=. 12749 libname=conftest 12750 lt_save_allow_undefined_flag=$allow_undefined_flag 12751 allow_undefined_flag= 12752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12753 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12754 ac_status=$? 12755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12756 test $ac_status = 0; } 12757 then 12758 lt_cv_archive_cmds_need_lc=no 12759 else 12760 lt_cv_archive_cmds_need_lc=yes 12761 fi 12762 allow_undefined_flag=$lt_save_allow_undefined_flag 12763 else 12764 cat conftest.err 1>&5 12765 fi 12766 $RM conftest* 12767 12768fi 12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12770$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12771 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12772 ;; 12773 esac 12774 fi 12775 ;; 12776esac 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12930$as_echo_n "checking dynamic linker characteristics... " >&6; } 12931 12932if test yes = "$GCC"; then 12933 case $host_os in 12934 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12935 *) lt_awk_arg='/^libraries:/' ;; 12936 esac 12937 case $host_os in 12938 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12939 *) lt_sed_strip_eq='s|=/|/|g' ;; 12940 esac 12941 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12942 case $lt_search_path_spec in 12943 *\;*) 12944 # if the path contains ";" then we assume it to be the separator 12945 # otherwise default to the standard path separator (i.e. ":") - it is 12946 # assumed that no part of a normal pathname contains ";" but that should 12947 # okay in the real world where ";" in dirpaths is itself problematic. 12948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12949 ;; 12950 *) 12951 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12952 ;; 12953 esac 12954 # Ok, now we have the path, separated by spaces, we can step through it 12955 # and add multilib dir if necessary... 12956 lt_tmp_lt_search_path_spec= 12957 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12958 # ...but if some path component already ends with the multilib dir we assume 12959 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12960 case "$lt_multi_os_dir; $lt_search_path_spec " in 12961 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12962 lt_multi_os_dir= 12963 ;; 12964 esac 12965 for lt_sys_path in $lt_search_path_spec; do 12966 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12968 elif test -n "$lt_multi_os_dir"; then 12969 test -d "$lt_sys_path" && \ 12970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12971 fi 12972 done 12973 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12974BEGIN {RS = " "; FS = "/|\n";} { 12975 lt_foo = ""; 12976 lt_count = 0; 12977 for (lt_i = NF; lt_i > 0; lt_i--) { 12978 if ($lt_i != "" && $lt_i != ".") { 12979 if ($lt_i == "..") { 12980 lt_count++; 12981 } else { 12982 if (lt_count == 0) { 12983 lt_foo = "/" $lt_i lt_foo; 12984 } else { 12985 lt_count--; 12986 } 12987 } 12988 } 12989 } 12990 if (lt_foo != "") { lt_freq[lt_foo]++; } 12991 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12992}'` 12993 # AWK program above erroneously prepends '/' to C:/dos/paths 12994 # for these hosts. 12995 case $host_os in 12996 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12997 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12998 esac 12999 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13000else 13001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13002fi 13003library_names_spec= 13004libname_spec='lib$name' 13005soname_spec= 13006shrext_cmds=.so 13007postinstall_cmds= 13008postuninstall_cmds= 13009finish_cmds= 13010finish_eval= 13011shlibpath_var= 13012shlibpath_overrides_runpath=unknown 13013version_type=none 13014dynamic_linker="$host_os ld.so" 13015sys_lib_dlsearch_path_spec="/lib /usr/lib" 13016need_lib_prefix=unknown 13017hardcode_into_libs=no 13018 13019# when you set need_version to no, make sure it does not cause -set_version 13020# flags to be left without arguments 13021need_version=unknown 13022 13023 13024 13025case $host_os in 13026aix3*) 13027 version_type=linux # correct to gnu/linux during the next big refactor 13028 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13029 shlibpath_var=LIBPATH 13030 13031 # AIX 3 has no versioning support, so we append a major version to the name. 13032 soname_spec='$libname$release$shared_ext$major' 13033 ;; 13034 13035aix[4-9]*) 13036 version_type=linux # correct to gnu/linux during the next big refactor 13037 need_lib_prefix=no 13038 need_version=no 13039 hardcode_into_libs=yes 13040 if test ia64 = "$host_cpu"; then 13041 # AIX 5 supports IA64 13042 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13043 shlibpath_var=LD_LIBRARY_PATH 13044 else 13045 # With GCC up to 2.95.x, collect2 would create an import file 13046 # for dependence libraries. The import file would start with 13047 # the line '#! .'. This would cause the generated library to 13048 # depend on '.', always an invalid library. This was fixed in 13049 # development snapshots of GCC prior to 3.0. 13050 case $host_os in 13051 aix4 | aix4.[01] | aix4.[01].*) 13052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13053 echo ' yes ' 13054 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13055 : 13056 else 13057 can_build_shared=no 13058 fi 13059 ;; 13060 esac 13061 # Using Import Files as archive members, it is possible to support 13062 # filename-based versioning of shared library archives on AIX. While 13063 # this would work for both with and without runtime linking, it will 13064 # prevent static linking of such archives. So we do filename-based 13065 # shared library versioning with .so extension only, which is used 13066 # when both runtime linking and shared linking is enabled. 13067 # Unfortunately, runtime linking may impact performance, so we do 13068 # not want this to be the default eventually. Also, we use the 13069 # versioned .so libs for executables only if there is the -brtl 13070 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13071 # To allow for filename-based versioning support, we need to create 13072 # libNAME.so.V as an archive file, containing: 13073 # *) an Import File, referring to the versioned filename of the 13074 # archive as well as the shared archive member, telling the 13075 # bitwidth (32 or 64) of that shared object, and providing the 13076 # list of exported symbols of that shared object, eventually 13077 # decorated with the 'weak' keyword 13078 # *) the shared object with the F_LOADONLY flag set, to really avoid 13079 # it being seen by the linker. 13080 # At run time we better use the real file rather than another symlink, 13081 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13082 13083 case $with_aix_soname,$aix_use_runtimelinking in 13084 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13085 # soname into executable. Probably we can add versioning support to 13086 # collect2, so additional links can be useful in future. 13087 aix,yes) # traditional libtool 13088 dynamic_linker='AIX unversionable lib.so' 13089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13090 # instead of lib<name>.a to let people know that these are not 13091 # typical AIX shared libraries. 13092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13093 ;; 13094 aix,no) # traditional AIX only 13095 dynamic_linker='AIX lib.a(lib.so.V)' 13096 # We preserve .a as extension for shared libraries through AIX4.2 13097 # and later when we are not doing run time linking. 13098 library_names_spec='$libname$release.a $libname.a' 13099 soname_spec='$libname$release$shared_ext$major' 13100 ;; 13101 svr4,*) # full svr4 only 13102 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13103 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13104 # We do not specify a path in Import Files, so LIBPATH fires. 13105 shlibpath_overrides_runpath=yes 13106 ;; 13107 *,yes) # both, prefer svr4 13108 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13109 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13110 # unpreferred sharedlib libNAME.a needs extra handling 13111 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"' 13112 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"' 13113 # We do not specify a path in Import Files, so LIBPATH fires. 13114 shlibpath_overrides_runpath=yes 13115 ;; 13116 *,no) # both, prefer aix 13117 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13118 library_names_spec='$libname$release.a $libname.a' 13119 soname_spec='$libname$release$shared_ext$major' 13120 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13121 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)' 13122 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"' 13123 ;; 13124 esac 13125 shlibpath_var=LIBPATH 13126 fi 13127 ;; 13128 13129amigaos*) 13130 case $host_cpu in 13131 powerpc) 13132 # Since July 2007 AmigaOS4 officially supports .so libraries. 13133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13135 ;; 13136 m68k) 13137 library_names_spec='$libname.ixlibrary $libname.a' 13138 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13139 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' 13140 ;; 13141 esac 13142 ;; 13143 13144beos*) 13145 library_names_spec='$libname$shared_ext' 13146 dynamic_linker="$host_os ld.so" 13147 shlibpath_var=LIBRARY_PATH 13148 ;; 13149 13150bsdi[45]*) 13151 version_type=linux # correct to gnu/linux during the next big refactor 13152 need_version=no 13153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13154 soname_spec='$libname$release$shared_ext$major' 13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13156 shlibpath_var=LD_LIBRARY_PATH 13157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13159 # the default ld.so.conf also contains /usr/contrib/lib and 13160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13161 # libtool to hard-code these into programs 13162 ;; 13163 13164cygwin* | mingw* | pw32* | cegcc*) 13165 version_type=windows 13166 shrext_cmds=.dll 13167 need_version=no 13168 need_lib_prefix=no 13169 13170 case $GCC,$cc_basename in 13171 yes,*) 13172 # gcc 13173 library_names_spec='$libname.dll.a' 13174 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13175 postinstall_cmds='base_file=`basename \$file`~ 13176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13177 dldir=$destdir/`dirname \$dlpath`~ 13178 test -d \$dldir || mkdir -p \$dldir~ 13179 $install_prog $dir/$dlname \$dldir/$dlname~ 13180 chmod a+x \$dldir/$dlname~ 13181 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13182 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13183 fi' 13184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13185 dlpath=$dir/\$dldll~ 13186 $RM \$dlpath' 13187 shlibpath_overrides_runpath=yes 13188 13189 case $host_os in 13190 cygwin*) 13191 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13192 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13193 13194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13195 ;; 13196 mingw* | cegcc*) 13197 # MinGW DLLs use traditional 'lib' prefix 13198 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13199 ;; 13200 pw32*) 13201 # pw32 DLLs use 'pw' prefix rather than 'lib' 13202 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13203 ;; 13204 esac 13205 dynamic_linker='Win32 ld.exe' 13206 ;; 13207 13208 *,cl*) 13209 # Native MSVC 13210 libname_spec='$name' 13211 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13212 library_names_spec='$libname.dll.lib' 13213 13214 case $build_os in 13215 mingw*) 13216 sys_lib_search_path_spec= 13217 lt_save_ifs=$IFS 13218 IFS=';' 13219 for lt_path in $LIB 13220 do 13221 IFS=$lt_save_ifs 13222 # Let DOS variable expansion print the short 8.3 style file name. 13223 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13224 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13225 done 13226 IFS=$lt_save_ifs 13227 # Convert to MSYS style. 13228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13229 ;; 13230 cygwin*) 13231 # Convert to unix form, then to dos form, then back to unix form 13232 # but this time dos style (no spaces!) so that the unix form looks 13233 # like /cygdrive/c/PROGRA~1:/cygdr... 13234 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13235 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13236 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13237 ;; 13238 *) 13239 sys_lib_search_path_spec=$LIB 13240 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13241 # It is most probably a Windows format PATH. 13242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13243 else 13244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13245 fi 13246 # FIXME: find the short name or the path components, as spaces are 13247 # common. (e.g. "Program Files" -> "PROGRA~1") 13248 ;; 13249 esac 13250 13251 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13252 postinstall_cmds='base_file=`basename \$file`~ 13253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13254 dldir=$destdir/`dirname \$dlpath`~ 13255 test -d \$dldir || mkdir -p \$dldir~ 13256 $install_prog $dir/$dlname \$dldir/$dlname' 13257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13258 dlpath=$dir/\$dldll~ 13259 $RM \$dlpath' 13260 shlibpath_overrides_runpath=yes 13261 dynamic_linker='Win32 link.exe' 13262 ;; 13263 13264 *) 13265 # Assume MSVC wrapper 13266 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13267 dynamic_linker='Win32 ld.exe' 13268 ;; 13269 esac 13270 # FIXME: first we should search . and the directory the executable is in 13271 shlibpath_var=PATH 13272 ;; 13273 13274darwin* | rhapsody*) 13275 dynamic_linker="$host_os dyld" 13276 version_type=darwin 13277 need_lib_prefix=no 13278 need_version=no 13279 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13280 soname_spec='$libname$release$major$shared_ext' 13281 shlibpath_overrides_runpath=yes 13282 shlibpath_var=DYLD_LIBRARY_PATH 13283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13284 13285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13287 ;; 13288 13289dgux*) 13290 version_type=linux # correct to gnu/linux during the next big refactor 13291 need_lib_prefix=no 13292 need_version=no 13293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13294 soname_spec='$libname$release$shared_ext$major' 13295 shlibpath_var=LD_LIBRARY_PATH 13296 ;; 13297 13298freebsd* | dragonfly*) 13299 # DragonFly does not have aout. When/if they implement a new 13300 # versioning mechanism, adjust this. 13301 if test -x /usr/bin/objformat; then 13302 objformat=`/usr/bin/objformat` 13303 else 13304 case $host_os in 13305 freebsd[23].*) objformat=aout ;; 13306 *) objformat=elf ;; 13307 esac 13308 fi 13309 version_type=freebsd-$objformat 13310 case $version_type in 13311 freebsd-elf*) 13312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13313 soname_spec='$libname$release$shared_ext$major' 13314 need_version=no 13315 need_lib_prefix=no 13316 ;; 13317 freebsd-*) 13318 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13319 need_version=yes 13320 ;; 13321 esac 13322 shlibpath_var=LD_LIBRARY_PATH 13323 case $host_os in 13324 freebsd2.*) 13325 shlibpath_overrides_runpath=yes 13326 ;; 13327 freebsd3.[01]* | freebsdelf3.[01]*) 13328 shlibpath_overrides_runpath=yes 13329 hardcode_into_libs=yes 13330 ;; 13331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13333 shlibpath_overrides_runpath=no 13334 hardcode_into_libs=yes 13335 ;; 13336 *) # from 4.6 on, and DragonFly 13337 shlibpath_overrides_runpath=yes 13338 hardcode_into_libs=yes 13339 ;; 13340 esac 13341 ;; 13342 13343haiku*) 13344 version_type=linux # correct to gnu/linux during the next big refactor 13345 need_lib_prefix=no 13346 need_version=no 13347 dynamic_linker="$host_os runtime_loader" 13348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13349 soname_spec='$libname$release$shared_ext$major' 13350 shlibpath_var=LIBRARY_PATH 13351 shlibpath_overrides_runpath=no 13352 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13353 hardcode_into_libs=yes 13354 ;; 13355 13356hpux9* | hpux10* | hpux11*) 13357 # Give a soname corresponding to the major version so that dld.sl refuses to 13358 # link against other versions. 13359 version_type=sunos 13360 need_lib_prefix=no 13361 need_version=no 13362 case $host_cpu in 13363 ia64*) 13364 shrext_cmds='.so' 13365 hardcode_into_libs=yes 13366 dynamic_linker="$host_os dld.so" 13367 shlibpath_var=LD_LIBRARY_PATH 13368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13370 soname_spec='$libname$release$shared_ext$major' 13371 if test 32 = "$HPUX_IA64_MODE"; then 13372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13373 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13374 else 13375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13376 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13377 fi 13378 ;; 13379 hppa*64*) 13380 shrext_cmds='.sl' 13381 hardcode_into_libs=yes 13382 dynamic_linker="$host_os dld.sl" 13383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13386 soname_spec='$libname$release$shared_ext$major' 13387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13389 ;; 13390 *) 13391 shrext_cmds='.sl' 13392 dynamic_linker="$host_os dld.sl" 13393 shlibpath_var=SHLIB_PATH 13394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13396 soname_spec='$libname$release$shared_ext$major' 13397 ;; 13398 esac 13399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13400 postinstall_cmds='chmod 555 $lib' 13401 # or fails outright, so override atomically: 13402 install_override_mode=555 13403 ;; 13404 13405interix[3-9]*) 13406 version_type=linux # correct to gnu/linux during the next big refactor 13407 need_lib_prefix=no 13408 need_version=no 13409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13410 soname_spec='$libname$release$shared_ext$major' 13411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13412 shlibpath_var=LD_LIBRARY_PATH 13413 shlibpath_overrides_runpath=no 13414 hardcode_into_libs=yes 13415 ;; 13416 13417irix5* | irix6* | nonstopux*) 13418 case $host_os in 13419 nonstopux*) version_type=nonstopux ;; 13420 *) 13421 if test yes = "$lt_cv_prog_gnu_ld"; then 13422 version_type=linux # correct to gnu/linux during the next big refactor 13423 else 13424 version_type=irix 13425 fi ;; 13426 esac 13427 need_lib_prefix=no 13428 need_version=no 13429 soname_spec='$libname$release$shared_ext$major' 13430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13431 case $host_os in 13432 irix5* | nonstopux*) 13433 libsuff= shlibsuff= 13434 ;; 13435 *) 13436 case $LD in # libtool.m4 will add one of these switches to LD 13437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13438 libsuff= shlibsuff= libmagic=32-bit;; 13439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13440 libsuff=32 shlibsuff=N32 libmagic=N32;; 13441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13442 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13443 *) libsuff= shlibsuff= libmagic=never-match;; 13444 esac 13445 ;; 13446 esac 13447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13448 shlibpath_overrides_runpath=no 13449 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13450 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13451 hardcode_into_libs=yes 13452 ;; 13453 13454# No shared lib support for Linux oldld, aout, or coff. 13455linux*oldld* | linux*aout* | linux*coff*) 13456 dynamic_linker=no 13457 ;; 13458 13459linux*android*) 13460 version_type=none # Android doesn't support versioned libraries. 13461 need_lib_prefix=no 13462 need_version=no 13463 library_names_spec='$libname$release$shared_ext' 13464 soname_spec='$libname$release$shared_ext' 13465 finish_cmds= 13466 shlibpath_var=LD_LIBRARY_PATH 13467 shlibpath_overrides_runpath=yes 13468 13469 # This implies no fast_install, which is unacceptable. 13470 # Some rework will be needed to allow for fast_install 13471 # before this can be enabled. 13472 hardcode_into_libs=yes 13473 13474 dynamic_linker='Android linker' 13475 # Don't embed -rpath directories since the linker doesn't support them. 13476 hardcode_libdir_flag_spec='-L$libdir' 13477 ;; 13478 13479# This must be glibc/ELF. 13480linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13481 version_type=linux # correct to gnu/linux during the next big refactor 13482 need_lib_prefix=no 13483 need_version=no 13484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13485 soname_spec='$libname$release$shared_ext$major' 13486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13487 shlibpath_var=LD_LIBRARY_PATH 13488 shlibpath_overrides_runpath=no 13489 13490 # Some binutils ld are patched to set DT_RUNPATH 13491 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13492 $as_echo_n "(cached) " >&6 13493else 13494 lt_cv_shlibpath_overrides_runpath=no 13495 save_LDFLAGS=$LDFLAGS 13496 save_libdir=$libdir 13497 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13498 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13500/* end confdefs.h. */ 13501 13502int 13503main () 13504{ 13505 13506 ; 13507 return 0; 13508} 13509_ACEOF 13510if ac_fn_c_try_link "$LINENO"; then : 13511 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13512 lt_cv_shlibpath_overrides_runpath=yes 13513fi 13514fi 13515rm -f core conftest.err conftest.$ac_objext \ 13516 conftest$ac_exeext conftest.$ac_ext 13517 LDFLAGS=$save_LDFLAGS 13518 libdir=$save_libdir 13519 13520fi 13521 13522 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13523 13524 # This implies no fast_install, which is unacceptable. 13525 # Some rework will be needed to allow for fast_install 13526 # before this can be enabled. 13527 hardcode_into_libs=yes 13528 13529 # Add ABI-specific directories to the system library path. 13530 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13531 13532 # Ideally, we could use ldconfig to report *all* directores which are 13533 # searched for libraries, however this is still not possible. Aside from not 13534 # being certain /sbin/ldconfig is available, command 13535 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13536 # even though it is searched at run-time. Try to do the best guess by 13537 # appending ld.so.conf contents (and includes) to the search path. 13538 if test -f /etc/ld.so.conf; then 13539 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' ' '` 13540 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13541 fi 13542 13543 # We used to test for /lib/ld.so.1 and disable shared libraries on 13544 # powerpc, because MkLinux only supported shared libraries with the 13545 # GNU dynamic linker. Since this was broken with cross compilers, 13546 # most powerpc-linux boxes support dynamic linking these days and 13547 # people can always --disable-shared, the test was removed, and we 13548 # assume the GNU/Linux dynamic linker is in use. 13549 dynamic_linker='GNU/Linux ld.so' 13550 ;; 13551 13552netbsd*) 13553 version_type=sunos 13554 need_lib_prefix=no 13555 need_version=no 13556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13559 dynamic_linker='NetBSD (a.out) ld.so' 13560 else 13561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13562 soname_spec='$libname$release$shared_ext$major' 13563 dynamic_linker='NetBSD ld.elf_so' 13564 fi 13565 shlibpath_var=LD_LIBRARY_PATH 13566 shlibpath_overrides_runpath=yes 13567 hardcode_into_libs=yes 13568 ;; 13569 13570newsos6) 13571 version_type=linux # correct to gnu/linux during the next big refactor 13572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13573 shlibpath_var=LD_LIBRARY_PATH 13574 shlibpath_overrides_runpath=yes 13575 ;; 13576 13577*nto* | *qnx*) 13578 version_type=qnx 13579 need_lib_prefix=no 13580 need_version=no 13581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13582 soname_spec='$libname$release$shared_ext$major' 13583 shlibpath_var=LD_LIBRARY_PATH 13584 shlibpath_overrides_runpath=no 13585 hardcode_into_libs=yes 13586 dynamic_linker='ldqnx.so' 13587 ;; 13588 13589openbsd* | bitrig*) 13590 version_type=sunos 13591 sys_lib_dlsearch_path_spec=/usr/lib 13592 need_lib_prefix=no 13593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13594 need_version=no 13595 else 13596 need_version=yes 13597 fi 13598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13600 shlibpath_var=LD_LIBRARY_PATH 13601 shlibpath_overrides_runpath=yes 13602 ;; 13603 13604os2*) 13605 libname_spec='$name' 13606 version_type=windows 13607 shrext_cmds=.dll 13608 need_version=no 13609 need_lib_prefix=no 13610 # OS/2 can only load a DLL with a base name of 8 characters or less. 13611 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13612 v=$($ECHO $release$versuffix | tr -d .-); 13613 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13614 $ECHO $n$v`$shared_ext' 13615 library_names_spec='${libname}_dll.$libext' 13616 dynamic_linker='OS/2 ld.exe' 13617 shlibpath_var=BEGINLIBPATH 13618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13620 postinstall_cmds='base_file=`basename \$file`~ 13621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13622 dldir=$destdir/`dirname \$dlpath`~ 13623 test -d \$dldir || mkdir -p \$dldir~ 13624 $install_prog $dir/$dlname \$dldir/$dlname~ 13625 chmod a+x \$dldir/$dlname~ 13626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13628 fi' 13629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13630 dlpath=$dir/\$dldll~ 13631 $RM \$dlpath' 13632 ;; 13633 13634osf3* | osf4* | osf5*) 13635 version_type=osf 13636 need_lib_prefix=no 13637 need_version=no 13638 soname_spec='$libname$release$shared_ext$major' 13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13640 shlibpath_var=LD_LIBRARY_PATH 13641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13643 ;; 13644 13645rdos*) 13646 dynamic_linker=no 13647 ;; 13648 13649solaris*) 13650 version_type=linux # correct to gnu/linux during the next big refactor 13651 need_lib_prefix=no 13652 need_version=no 13653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13654 soname_spec='$libname$release$shared_ext$major' 13655 shlibpath_var=LD_LIBRARY_PATH 13656 shlibpath_overrides_runpath=yes 13657 hardcode_into_libs=yes 13658 # ldd complains unless libraries are executable 13659 postinstall_cmds='chmod +x $lib' 13660 ;; 13661 13662sunos4*) 13663 version_type=sunos 13664 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13666 shlibpath_var=LD_LIBRARY_PATH 13667 shlibpath_overrides_runpath=yes 13668 if test yes = "$with_gnu_ld"; then 13669 need_lib_prefix=no 13670 fi 13671 need_version=yes 13672 ;; 13673 13674sysv4 | sysv4.3*) 13675 version_type=linux # correct to gnu/linux during the next big refactor 13676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13677 soname_spec='$libname$release$shared_ext$major' 13678 shlibpath_var=LD_LIBRARY_PATH 13679 case $host_vendor in 13680 sni) 13681 shlibpath_overrides_runpath=no 13682 need_lib_prefix=no 13683 runpath_var=LD_RUN_PATH 13684 ;; 13685 siemens) 13686 need_lib_prefix=no 13687 ;; 13688 motorola) 13689 need_lib_prefix=no 13690 need_version=no 13691 shlibpath_overrides_runpath=no 13692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13693 ;; 13694 esac 13695 ;; 13696 13697sysv4*MP*) 13698 if test -d /usr/nec; then 13699 version_type=linux # correct to gnu/linux during the next big refactor 13700 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13701 soname_spec='$libname$shared_ext.$major' 13702 shlibpath_var=LD_LIBRARY_PATH 13703 fi 13704 ;; 13705 13706sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13707 version_type=sco 13708 need_lib_prefix=no 13709 need_version=no 13710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13711 soname_spec='$libname$release$shared_ext$major' 13712 shlibpath_var=LD_LIBRARY_PATH 13713 shlibpath_overrides_runpath=yes 13714 hardcode_into_libs=yes 13715 if test yes = "$with_gnu_ld"; then 13716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13717 else 13718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13719 case $host_os in 13720 sco3.2v5*) 13721 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13722 ;; 13723 esac 13724 fi 13725 sys_lib_dlsearch_path_spec='/usr/lib' 13726 ;; 13727 13728tpf*) 13729 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13730 version_type=linux # correct to gnu/linux during the next big refactor 13731 need_lib_prefix=no 13732 need_version=no 13733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13734 shlibpath_var=LD_LIBRARY_PATH 13735 shlibpath_overrides_runpath=no 13736 hardcode_into_libs=yes 13737 ;; 13738 13739uts4*) 13740 version_type=linux # correct to gnu/linux during the next big refactor 13741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13742 soname_spec='$libname$release$shared_ext$major' 13743 shlibpath_var=LD_LIBRARY_PATH 13744 ;; 13745 13746*) 13747 dynamic_linker=no 13748 ;; 13749esac 13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13751$as_echo "$dynamic_linker" >&6; } 13752test no = "$dynamic_linker" && can_build_shared=no 13753 13754variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13755if test yes = "$GCC"; then 13756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13757fi 13758 13759if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13760 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13761fi 13762 13763if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13764 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13765fi 13766 13767# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13768configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13769 13770# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13771func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13772 13773# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13774configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13873$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13874hardcode_action= 13875if test -n "$hardcode_libdir_flag_spec" || 13876 test -n "$runpath_var" || 13877 test yes = "$hardcode_automatic"; then 13878 13879 # We can hardcode non-existent directories. 13880 if test no != "$hardcode_direct" && 13881 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13882 # have to relink, otherwise we might link with an installed library 13883 # when we should be linking with a yet-to-be-installed one 13884 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13885 test no != "$hardcode_minus_L"; then 13886 # Linking always hardcodes the temporary library directory. 13887 hardcode_action=relink 13888 else 13889 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13890 hardcode_action=immediate 13891 fi 13892else 13893 # We cannot hardcode anything, or else we can only hardcode existing 13894 # directories. 13895 hardcode_action=unsupported 13896fi 13897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13898$as_echo "$hardcode_action" >&6; } 13899 13900if test relink = "$hardcode_action" || 13901 test yes = "$inherit_rpath"; then 13902 # Fast installation is not supported 13903 enable_fast_install=no 13904elif test yes = "$shlibpath_overrides_runpath" || 13905 test no = "$enable_shared"; then 13906 # Fast installation is not necessary 13907 enable_fast_install=needless 13908fi 13909 13910 13911 13912 13913 13914 13915 if test yes != "$enable_dlopen"; then 13916 enable_dlopen=unknown 13917 enable_dlopen_self=unknown 13918 enable_dlopen_self_static=unknown 13919else 13920 lt_cv_dlopen=no 13921 lt_cv_dlopen_libs= 13922 13923 case $host_os in 13924 beos*) 13925 lt_cv_dlopen=load_add_on 13926 lt_cv_dlopen_libs= 13927 lt_cv_dlopen_self=yes 13928 ;; 13929 13930 mingw* | pw32* | cegcc*) 13931 lt_cv_dlopen=LoadLibrary 13932 lt_cv_dlopen_libs= 13933 ;; 13934 13935 cygwin*) 13936 lt_cv_dlopen=dlopen 13937 lt_cv_dlopen_libs= 13938 ;; 13939 13940 darwin*) 13941 # if libdl is installed we need to link against it 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13943$as_echo_n "checking for dlopen in -ldl... " >&6; } 13944if ${ac_cv_lib_dl_dlopen+:} false; then : 13945 $as_echo_n "(cached) " >&6 13946else 13947 ac_check_lib_save_LIBS=$LIBS 13948LIBS="-ldl $LIBS" 13949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13950/* end confdefs.h. */ 13951 13952/* Override any GCC internal prototype to avoid an error. 13953 Use char because int might match the return type of a GCC 13954 builtin and then its argument prototype would still apply. */ 13955#ifdef __cplusplus 13956extern "C" 13957#endif 13958char dlopen (); 13959int 13960main () 13961{ 13962return dlopen (); 13963 ; 13964 return 0; 13965} 13966_ACEOF 13967if ac_fn_c_try_link "$LINENO"; then : 13968 ac_cv_lib_dl_dlopen=yes 13969else 13970 ac_cv_lib_dl_dlopen=no 13971fi 13972rm -f core conftest.err conftest.$ac_objext \ 13973 conftest$ac_exeext conftest.$ac_ext 13974LIBS=$ac_check_lib_save_LIBS 13975fi 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13977$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13978if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13979 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13980else 13981 13982 lt_cv_dlopen=dyld 13983 lt_cv_dlopen_libs= 13984 lt_cv_dlopen_self=yes 13985 13986fi 13987 13988 ;; 13989 13990 tpf*) 13991 # Don't try to run any link tests for TPF. We know it's impossible 13992 # because TPF is a cross-compiler, and we know how we open DSOs. 13993 lt_cv_dlopen=dlopen 13994 lt_cv_dlopen_libs= 13995 lt_cv_dlopen_self=no 13996 ;; 13997 13998 *) 13999 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14000if test "x$ac_cv_func_shl_load" = xyes; then : 14001 lt_cv_dlopen=shl_load 14002else 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14004$as_echo_n "checking for shl_load in -ldld... " >&6; } 14005if ${ac_cv_lib_dld_shl_load+:} false; then : 14006 $as_echo_n "(cached) " >&6 14007else 14008 ac_check_lib_save_LIBS=$LIBS 14009LIBS="-ldld $LIBS" 14010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14011/* end confdefs.h. */ 14012 14013/* Override any GCC internal prototype to avoid an error. 14014 Use char because int might match the return type of a GCC 14015 builtin and then its argument prototype would still apply. */ 14016#ifdef __cplusplus 14017extern "C" 14018#endif 14019char shl_load (); 14020int 14021main () 14022{ 14023return shl_load (); 14024 ; 14025 return 0; 14026} 14027_ACEOF 14028if ac_fn_c_try_link "$LINENO"; then : 14029 ac_cv_lib_dld_shl_load=yes 14030else 14031 ac_cv_lib_dld_shl_load=no 14032fi 14033rm -f core conftest.err conftest.$ac_objext \ 14034 conftest$ac_exeext conftest.$ac_ext 14035LIBS=$ac_check_lib_save_LIBS 14036fi 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14038$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14039if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14040 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14041else 14042 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14043if test "x$ac_cv_func_dlopen" = xyes; then : 14044 lt_cv_dlopen=dlopen 14045else 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14047$as_echo_n "checking for dlopen in -ldl... " >&6; } 14048if ${ac_cv_lib_dl_dlopen+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 ac_check_lib_save_LIBS=$LIBS 14052LIBS="-ldl $LIBS" 14053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055 14056/* Override any GCC internal prototype to avoid an error. 14057 Use char because int might match the return type of a GCC 14058 builtin and then its argument prototype would still apply. */ 14059#ifdef __cplusplus 14060extern "C" 14061#endif 14062char dlopen (); 14063int 14064main () 14065{ 14066return dlopen (); 14067 ; 14068 return 0; 14069} 14070_ACEOF 14071if ac_fn_c_try_link "$LINENO"; then : 14072 ac_cv_lib_dl_dlopen=yes 14073else 14074 ac_cv_lib_dl_dlopen=no 14075fi 14076rm -f core conftest.err conftest.$ac_objext \ 14077 conftest$ac_exeext conftest.$ac_ext 14078LIBS=$ac_check_lib_save_LIBS 14079fi 14080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14081$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14082if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14083 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14084else 14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14086$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14087if ${ac_cv_lib_svld_dlopen+:} false; then : 14088 $as_echo_n "(cached) " >&6 14089else 14090 ac_check_lib_save_LIBS=$LIBS 14091LIBS="-lsvld $LIBS" 14092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14093/* end confdefs.h. */ 14094 14095/* Override any GCC internal prototype to avoid an error. 14096 Use char because int might match the return type of a GCC 14097 builtin and then its argument prototype would still apply. */ 14098#ifdef __cplusplus 14099extern "C" 14100#endif 14101char dlopen (); 14102int 14103main () 14104{ 14105return dlopen (); 14106 ; 14107 return 0; 14108} 14109_ACEOF 14110if ac_fn_c_try_link "$LINENO"; then : 14111 ac_cv_lib_svld_dlopen=yes 14112else 14113 ac_cv_lib_svld_dlopen=no 14114fi 14115rm -f core conftest.err conftest.$ac_objext \ 14116 conftest$ac_exeext conftest.$ac_ext 14117LIBS=$ac_check_lib_save_LIBS 14118fi 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14120$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14121if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14122 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14123else 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14125$as_echo_n "checking for dld_link in -ldld... " >&6; } 14126if ${ac_cv_lib_dld_dld_link+:} false; then : 14127 $as_echo_n "(cached) " >&6 14128else 14129 ac_check_lib_save_LIBS=$LIBS 14130LIBS="-ldld $LIBS" 14131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133 14134/* Override any GCC internal prototype to avoid an error. 14135 Use char because int might match the return type of a GCC 14136 builtin and then its argument prototype would still apply. */ 14137#ifdef __cplusplus 14138extern "C" 14139#endif 14140char dld_link (); 14141int 14142main () 14143{ 14144return dld_link (); 14145 ; 14146 return 0; 14147} 14148_ACEOF 14149if ac_fn_c_try_link "$LINENO"; then : 14150 ac_cv_lib_dld_dld_link=yes 14151else 14152 ac_cv_lib_dld_dld_link=no 14153fi 14154rm -f core conftest.err conftest.$ac_objext \ 14155 conftest$ac_exeext conftest.$ac_ext 14156LIBS=$ac_check_lib_save_LIBS 14157fi 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14159$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14160if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14161 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14162fi 14163 14164 14165fi 14166 14167 14168fi 14169 14170 14171fi 14172 14173 14174fi 14175 14176 14177fi 14178 14179 ;; 14180 esac 14181 14182 if test no = "$lt_cv_dlopen"; then 14183 enable_dlopen=no 14184 else 14185 enable_dlopen=yes 14186 fi 14187 14188 case $lt_cv_dlopen in 14189 dlopen) 14190 save_CPPFLAGS=$CPPFLAGS 14191 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14192 14193 save_LDFLAGS=$LDFLAGS 14194 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14195 14196 save_LIBS=$LIBS 14197 LIBS="$lt_cv_dlopen_libs $LIBS" 14198 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14200$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14201if ${lt_cv_dlopen_self+:} false; then : 14202 $as_echo_n "(cached) " >&6 14203else 14204 if test yes = "$cross_compiling"; then : 14205 lt_cv_dlopen_self=cross 14206else 14207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14208 lt_status=$lt_dlunknown 14209 cat > conftest.$ac_ext <<_LT_EOF 14210#line $LINENO "configure" 14211#include "confdefs.h" 14212 14213#if HAVE_DLFCN_H 14214#include <dlfcn.h> 14215#endif 14216 14217#include <stdio.h> 14218 14219#ifdef RTLD_GLOBAL 14220# define LT_DLGLOBAL RTLD_GLOBAL 14221#else 14222# ifdef DL_GLOBAL 14223# define LT_DLGLOBAL DL_GLOBAL 14224# else 14225# define LT_DLGLOBAL 0 14226# endif 14227#endif 14228 14229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14230 find out it does not work in some platform. */ 14231#ifndef LT_DLLAZY_OR_NOW 14232# ifdef RTLD_LAZY 14233# define LT_DLLAZY_OR_NOW RTLD_LAZY 14234# else 14235# ifdef DL_LAZY 14236# define LT_DLLAZY_OR_NOW DL_LAZY 14237# else 14238# ifdef RTLD_NOW 14239# define LT_DLLAZY_OR_NOW RTLD_NOW 14240# else 14241# ifdef DL_NOW 14242# define LT_DLLAZY_OR_NOW DL_NOW 14243# else 14244# define LT_DLLAZY_OR_NOW 0 14245# endif 14246# endif 14247# endif 14248# endif 14249#endif 14250 14251/* When -fvisibility=hidden is used, assume the code has been annotated 14252 correspondingly for the symbols needed. */ 14253#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14254int fnord () __attribute__((visibility("default"))); 14255#endif 14256 14257int fnord () { return 42; } 14258int main () 14259{ 14260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14261 int status = $lt_dlunknown; 14262 14263 if (self) 14264 { 14265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14266 else 14267 { 14268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14269 else puts (dlerror ()); 14270 } 14271 /* dlclose (self); */ 14272 } 14273 else 14274 puts (dlerror ()); 14275 14276 return status; 14277} 14278_LT_EOF 14279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14280 (eval $ac_link) 2>&5 14281 ac_status=$? 14282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14283 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14284 (./conftest; exit; ) >&5 2>/dev/null 14285 lt_status=$? 14286 case x$lt_status in 14287 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14288 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14289 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14290 esac 14291 else : 14292 # compilation failed 14293 lt_cv_dlopen_self=no 14294 fi 14295fi 14296rm -fr conftest* 14297 14298 14299fi 14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14301$as_echo "$lt_cv_dlopen_self" >&6; } 14302 14303 if test yes = "$lt_cv_dlopen_self"; then 14304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14306$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14307if ${lt_cv_dlopen_self_static+:} false; then : 14308 $as_echo_n "(cached) " >&6 14309else 14310 if test yes = "$cross_compiling"; then : 14311 lt_cv_dlopen_self_static=cross 14312else 14313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14314 lt_status=$lt_dlunknown 14315 cat > conftest.$ac_ext <<_LT_EOF 14316#line $LINENO "configure" 14317#include "confdefs.h" 14318 14319#if HAVE_DLFCN_H 14320#include <dlfcn.h> 14321#endif 14322 14323#include <stdio.h> 14324 14325#ifdef RTLD_GLOBAL 14326# define LT_DLGLOBAL RTLD_GLOBAL 14327#else 14328# ifdef DL_GLOBAL 14329# define LT_DLGLOBAL DL_GLOBAL 14330# else 14331# define LT_DLGLOBAL 0 14332# endif 14333#endif 14334 14335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14336 find out it does not work in some platform. */ 14337#ifndef LT_DLLAZY_OR_NOW 14338# ifdef RTLD_LAZY 14339# define LT_DLLAZY_OR_NOW RTLD_LAZY 14340# else 14341# ifdef DL_LAZY 14342# define LT_DLLAZY_OR_NOW DL_LAZY 14343# else 14344# ifdef RTLD_NOW 14345# define LT_DLLAZY_OR_NOW RTLD_NOW 14346# else 14347# ifdef DL_NOW 14348# define LT_DLLAZY_OR_NOW DL_NOW 14349# else 14350# define LT_DLLAZY_OR_NOW 0 14351# endif 14352# endif 14353# endif 14354# endif 14355#endif 14356 14357/* When -fvisibility=hidden is used, assume the code has been annotated 14358 correspondingly for the symbols needed. */ 14359#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14360int fnord () __attribute__((visibility("default"))); 14361#endif 14362 14363int fnord () { return 42; } 14364int main () 14365{ 14366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14367 int status = $lt_dlunknown; 14368 14369 if (self) 14370 { 14371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14372 else 14373 { 14374 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14375 else puts (dlerror ()); 14376 } 14377 /* dlclose (self); */ 14378 } 14379 else 14380 puts (dlerror ()); 14381 14382 return status; 14383} 14384_LT_EOF 14385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14386 (eval $ac_link) 2>&5 14387 ac_status=$? 14388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14389 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14390 (./conftest; exit; ) >&5 2>/dev/null 14391 lt_status=$? 14392 case x$lt_status in 14393 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14394 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14395 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14396 esac 14397 else : 14398 # compilation failed 14399 lt_cv_dlopen_self_static=no 14400 fi 14401fi 14402rm -fr conftest* 14403 14404 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14407$as_echo "$lt_cv_dlopen_self_static" >&6; } 14408 fi 14409 14410 CPPFLAGS=$save_CPPFLAGS 14411 LDFLAGS=$save_LDFLAGS 14412 LIBS=$save_LIBS 14413 ;; 14414 esac 14415 14416 case $lt_cv_dlopen_self in 14417 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14418 *) enable_dlopen_self=unknown ;; 14419 esac 14420 14421 case $lt_cv_dlopen_self_static in 14422 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14423 *) enable_dlopen_self_static=unknown ;; 14424 esac 14425fi 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443striplib= 14444old_striplib= 14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14446$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14447if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14448 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14449 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14451$as_echo "yes" >&6; } 14452else 14453# FIXME - insert some real tests, host_os isn't really good enough 14454 case $host_os in 14455 darwin*) 14456 if test -n "$STRIP"; then 14457 striplib="$STRIP -x" 14458 old_striplib="$STRIP -S" 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14460$as_echo "yes" >&6; } 14461 else 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14463$as_echo "no" >&6; } 14464 fi 14465 ;; 14466 *) 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14468$as_echo "no" >&6; } 14469 ;; 14470 esac 14471fi 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 # Report what library types will actually be built 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14486$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14488$as_echo "$can_build_shared" >&6; } 14489 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14491$as_echo_n "checking whether to build shared libraries... " >&6; } 14492 test no = "$can_build_shared" && enable_shared=no 14493 14494 # On AIX, shared libraries and static libraries use the same namespace, and 14495 # are all built from PIC. 14496 case $host_os in 14497 aix3*) 14498 test yes = "$enable_shared" && enable_static=no 14499 if test -n "$RANLIB"; then 14500 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14501 postinstall_cmds='$RANLIB $lib' 14502 fi 14503 ;; 14504 14505 aix[4-9]*) 14506 if test ia64 != "$host_cpu"; then 14507 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14508 yes,aix,yes) ;; # shared object as lib.so file only 14509 yes,svr4,*) ;; # shared object as lib.so archive member only 14510 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14511 esac 14512 fi 14513 ;; 14514 esac 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14516$as_echo "$enable_shared" >&6; } 14517 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14519$as_echo_n "checking whether to build static libraries... " >&6; } 14520 # Make sure either enable_shared or enable_static is yes. 14521 test yes = "$enable_shared" || enable_static=yes 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14523$as_echo "$enable_static" >&6; } 14524 14525 14526 14527 14528fi 14529ac_ext=c 14530ac_cpp='$CPP $CPPFLAGS' 14531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14533ac_compiler_gnu=$ac_cv_c_compiler_gnu 14534 14535CC=$lt_save_CC 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 ac_config_commands="$ac_config_commands libtool" 14552 14553 14554 14555 14556# Only expand once: 14557 14558 14559 14560 14561# Checks for header files. 14562for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h 14563do : 14564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14565ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14566" 14567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14568 cat >>confdefs.h <<_ACEOF 14569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14570_ACEOF 14571 14572fi 14573 14574done 14575 14576 14577# check for types. 14578# Using own tests for int64* because autoconf builtin only give 32bit. 14579ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14580if test "x$ac_cv_type_int8_t" = xyes; then : 14581 14582else 14583 14584cat >>confdefs.h <<_ACEOF 14585#define int8_t signed char 14586_ACEOF 14587 14588fi 14589 14590ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14591if test "x$ac_cv_type_int16_t" = xyes; then : 14592 14593else 14594 14595cat >>confdefs.h <<_ACEOF 14596#define int16_t short 14597_ACEOF 14598 14599fi 14600 14601ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14602if test "x$ac_cv_type_int32_t" = xyes; then : 14603 14604else 14605 14606cat >>confdefs.h <<_ACEOF 14607#define int32_t int 14608_ACEOF 14609 14610fi 14611 14612ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14613if test "x$ac_cv_type_int64_t" = xyes; then : 14614 14615else 14616 14617cat >>confdefs.h <<_ACEOF 14618#define int64_t long long 14619_ACEOF 14620 14621fi 14622 14623ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14624if test "x$ac_cv_type_uint8_t" = xyes; then : 14625 14626else 14627 14628cat >>confdefs.h <<_ACEOF 14629#define uint8_t unsigned char 14630_ACEOF 14631 14632fi 14633 14634ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14635if test "x$ac_cv_type_uint16_t" = xyes; then : 14636 14637else 14638 14639cat >>confdefs.h <<_ACEOF 14640#define uint16_t unsigned short 14641_ACEOF 14642 14643fi 14644 14645ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14646if test "x$ac_cv_type_uint32_t" = xyes; then : 14647 14648else 14649 14650cat >>confdefs.h <<_ACEOF 14651#define uint32_t unsigned int 14652_ACEOF 14653 14654fi 14655 14656ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14657if test "x$ac_cv_type_uint64_t" = xyes; then : 14658 14659else 14660 14661cat >>confdefs.h <<_ACEOF 14662#define uint64_t unsigned long long 14663_ACEOF 14664 14665fi 14666 14667ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14668if test "x$ac_cv_type_size_t" = xyes; then : 14669 14670else 14671 14672cat >>confdefs.h <<_ACEOF 14673#define size_t unsigned int 14674_ACEOF 14675 14676fi 14677 14678ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14679if test "x$ac_cv_type_ssize_t" = xyes; then : 14680 14681else 14682 14683cat >>confdefs.h <<_ACEOF 14684#define ssize_t int 14685_ACEOF 14686 14687fi 14688 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14690$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14691if ${ac_cv_type_uid_t+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696#include <sys/types.h> 14697 14698_ACEOF 14699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14700 $EGREP "uid_t" >/dev/null 2>&1; then : 14701 ac_cv_type_uid_t=yes 14702else 14703 ac_cv_type_uid_t=no 14704fi 14705rm -f conftest* 14706 14707fi 14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14709$as_echo "$ac_cv_type_uid_t" >&6; } 14710if test $ac_cv_type_uid_t = no; then 14711 14712$as_echo "#define uid_t int" >>confdefs.h 14713 14714 14715$as_echo "#define gid_t int" >>confdefs.h 14716 14717fi 14718 14719ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14720if test "x$ac_cv_type_pid_t" = xyes; then : 14721 14722else 14723 14724cat >>confdefs.h <<_ACEOF 14725#define pid_t int 14726_ACEOF 14727 14728fi 14729 14730ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14731if test "x$ac_cv_type_off_t" = xyes; then : 14732 14733else 14734 14735cat >>confdefs.h <<_ACEOF 14736#define off_t long int 14737_ACEOF 14738 14739fi 14740 14741ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 14742$ac_includes_default 14743#ifdef HAVE_WINSOCK2_H 14744# include <winsock2.h> 14745#endif 14746 14747" 14748if test "x$ac_cv_type_u_char" = xyes; then : 14749 14750else 14751 14752$as_echo "#define u_char unsigned char" >>confdefs.h 14753 14754fi 14755 14756ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 14757$ac_includes_default 14758#ifdef HAVE_SYS_RESOURCE_H 14759# include <sys/resource.h> 14760#endif 14761 14762" 14763if test "x$ac_cv_type_rlim_t" = xyes; then : 14764 14765else 14766 14767$as_echo "#define rlim_t unsigned long" >>confdefs.h 14768 14769fi 14770 14771 14772ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 14773$ac_includes_default 14774#ifdef HAVE_SYS_SOCKET_H 14775# include <sys/socket.h> 14776#endif 14777#ifdef HAVE_WS2TCPIP_H 14778# include <ws2tcpip.h> 14779#endif 14780 14781" 14782if test "x$ac_cv_type_socklen_t" = xyes; then : 14783 14784else 14785 14786$as_echo "#define socklen_t int" >>confdefs.h 14787 14788fi 14789 14790 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 14791$ac_includes_default 14792#ifdef HAVE_SYS_TYPES_H 14793# include <sys/types.h> 14794#endif 14795#ifdef HAVE_NETINET_IN_H 14796# include <netinet/in.h> 14797#endif 14798 14799" 14800if test "x$ac_cv_type_in_addr_t" = xyes; then : 14801 14802else 14803 14804$as_echo "#define in_addr_t uint32_t" >>confdefs.h 14805 14806fi 14807 14808 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 14809$ac_includes_default 14810#ifdef HAVE_SYS_TYPES_H 14811# include <sys/types.h> 14812#endif 14813#ifdef HAVE_NETINET_IN_H 14814# include <netinet/in.h> 14815#endif 14816 14817" 14818if test "x$ac_cv_type_in_port_t" = xyes; then : 14819 14820else 14821 14822$as_echo "#define in_port_t uint16_t" >>confdefs.h 14823 14824fi 14825 14826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 14827$as_echo_n "checking if memcmp compares unsigned... " >&6; } 14828if test "$cross_compiling" = yes; then : 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 14830$as_echo "cross-compile no" >&6; } 14831 14832$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14833 14834 case " $LIBOBJS " in 14835 *" memcmp.$ac_objext "* ) ;; 14836 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14837 ;; 14838esac 14839 14840 14841else 14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14843/* end confdefs.h. */ 14844 14845#include <stdio.h> 14846#include <stdlib.h> 14847#include <string.h> 14848int main(void) 14849{ 14850 char a = 255, b = 0; 14851 if(memcmp(&a, &b, 1) < 0) 14852 return 1; 14853 return 0; 14854} 14855 14856_ACEOF 14857if ac_fn_c_try_run "$LINENO"; then : 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14859$as_echo "yes" >&6; } 14860else 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14862$as_echo "no" >&6; } 14863 14864$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14865 14866 case " $LIBOBJS " in 14867 *" memcmp.$ac_objext "* ) ;; 14868 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14869 ;; 14870esac 14871 14872 14873fi 14874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14875 conftest.$ac_objext conftest.beam conftest.$ac_ext 14876fi 14877 14878 14879# The cast to long int works around a bug in the HP C Compiler 14880# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14881# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14882# This bug is HP SR number 8606223364. 14883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14884$as_echo_n "checking size of time_t... " >&6; } 14885if ${ac_cv_sizeof_time_t+:} false; then : 14886 $as_echo_n "(cached) " >&6 14887else 14888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14889$ac_includes_default 14890#ifdef TIME_WITH_SYS_TIME 14891# include <sys/time.h> 14892# include <time.h> 14893#else 14894# ifdef HAVE_SYS_TIME_H 14895# include <sys/time.h> 14896# else 14897# include <time.h> 14898# endif 14899#endif 14900 14901"; then : 14902 14903else 14904 if test "$ac_cv_type_time_t" = yes; then 14905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14907as_fn_error 77 "cannot compute sizeof (time_t) 14908See \`config.log' for more details" "$LINENO" 5; } 14909 else 14910 ac_cv_sizeof_time_t=0 14911 fi 14912fi 14913 14914fi 14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14916$as_echo "$ac_cv_sizeof_time_t" >&6; } 14917 14918 14919 14920cat >>confdefs.h <<_ACEOF 14921#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14922_ACEOF 14923 14924 14925 14926# add option to disable the evil rpath 14927 14928# Check whether --enable-rpath was given. 14929if test "${enable_rpath+set}" = set; then : 14930 enableval=$enable_rpath; enable_rpath=$enableval 14931else 14932 enable_rpath=yes 14933fi 14934 14935if test "x$enable_rpath" = xno; then 14936 ac_config_commands="$ac_config_commands disable-rpath" 14937 14938fi 14939 14940 14941 14942# check to see if libraries are needed for these functions. 14943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14944$as_echo_n "checking for library containing inet_pton... " >&6; } 14945if ${ac_cv_search_inet_pton+:} false; then : 14946 $as_echo_n "(cached) " >&6 14947else 14948 ac_func_search_save_LIBS=$LIBS 14949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14950/* end confdefs.h. */ 14951 14952/* Override any GCC internal prototype to avoid an error. 14953 Use char because int might match the return type of a GCC 14954 builtin and then its argument prototype would still apply. */ 14955#ifdef __cplusplus 14956extern "C" 14957#endif 14958char inet_pton (); 14959int 14960main () 14961{ 14962return inet_pton (); 14963 ; 14964 return 0; 14965} 14966_ACEOF 14967for ac_lib in '' nsl; do 14968 if test -z "$ac_lib"; then 14969 ac_res="none required" 14970 else 14971 ac_res=-l$ac_lib 14972 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14973 fi 14974 if ac_fn_c_try_link "$LINENO"; then : 14975 ac_cv_search_inet_pton=$ac_res 14976fi 14977rm -f core conftest.err conftest.$ac_objext \ 14978 conftest$ac_exeext 14979 if ${ac_cv_search_inet_pton+:} false; then : 14980 break 14981fi 14982done 14983if ${ac_cv_search_inet_pton+:} false; then : 14984 14985else 14986 ac_cv_search_inet_pton=no 14987fi 14988rm conftest.$ac_ext 14989LIBS=$ac_func_search_save_LIBS 14990fi 14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14992$as_echo "$ac_cv_search_inet_pton" >&6; } 14993ac_res=$ac_cv_search_inet_pton 14994if test "$ac_res" != no; then : 14995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14996 14997fi 14998 14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15000$as_echo_n "checking for library containing socket... " >&6; } 15001if ${ac_cv_search_socket+:} false; then : 15002 $as_echo_n "(cached) " >&6 15003else 15004 ac_func_search_save_LIBS=$LIBS 15005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007 15008/* Override any GCC internal prototype to avoid an error. 15009 Use char because int might match the return type of a GCC 15010 builtin and then its argument prototype would still apply. */ 15011#ifdef __cplusplus 15012extern "C" 15013#endif 15014char socket (); 15015int 15016main () 15017{ 15018return socket (); 15019 ; 15020 return 0; 15021} 15022_ACEOF 15023for ac_lib in '' socket; do 15024 if test -z "$ac_lib"; then 15025 ac_res="none required" 15026 else 15027 ac_res=-l$ac_lib 15028 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15029 fi 15030 if ac_fn_c_try_link "$LINENO"; then : 15031 ac_cv_search_socket=$ac_res 15032fi 15033rm -f core conftest.err conftest.$ac_objext \ 15034 conftest$ac_exeext 15035 if ${ac_cv_search_socket+:} false; then : 15036 break 15037fi 15038done 15039if ${ac_cv_search_socket+:} false; then : 15040 15041else 15042 ac_cv_search_socket=no 15043fi 15044rm conftest.$ac_ext 15045LIBS=$ac_func_search_save_LIBS 15046fi 15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15048$as_echo "$ac_cv_search_socket" >&6; } 15049ac_res=$ac_cv_search_socket 15050if test "$ac_res" != no; then : 15051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15052 15053fi 15054 15055 15056# check wether strptime also works 15057 15058# check some functions of the OS before linking libs (while still runnable). 15059for ac_header in unistd.h 15060do : 15061 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 15062if test "x$ac_cv_header_unistd_h" = xyes; then : 15063 cat >>confdefs.h <<_ACEOF 15064#define HAVE_UNISTD_H 1 15065_ACEOF 15066 15067fi 15068 15069done 15070 15071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 15072$as_echo_n "checking for working chown... " >&6; } 15073if ${ac_cv_func_chown_works+:} false; then : 15074 $as_echo_n "(cached) " >&6 15075else 15076 if test "$cross_compiling" = yes; then : 15077 ac_cv_func_chown_works=no 15078else 15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15080/* end confdefs.h. */ 15081$ac_includes_default 15082#include <fcntl.h> 15083 15084int 15085main () 15086{ 15087 char *f = "conftest.chown"; 15088 struct stat before, after; 15089 15090 if (creat (f, 0600) < 0) 15091 return 1; 15092 if (stat (f, &before) < 0) 15093 return 1; 15094 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 15095 return 1; 15096 if (stat (f, &after) < 0) 15097 return 1; 15098 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 15099 15100 ; 15101 return 0; 15102} 15103_ACEOF 15104if ac_fn_c_try_run "$LINENO"; then : 15105 ac_cv_func_chown_works=yes 15106else 15107 ac_cv_func_chown_works=no 15108fi 15109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15110 conftest.$ac_objext conftest.beam conftest.$ac_ext 15111fi 15112 15113rm -f conftest.chown 15114 15115fi 15116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 15117$as_echo "$ac_cv_func_chown_works" >&6; } 15118if test $ac_cv_func_chown_works = yes; then 15119 15120$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 15121 15122fi 15123 15124for ac_header in vfork.h 15125do : 15126 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15127if test "x$ac_cv_header_vfork_h" = xyes; then : 15128 cat >>confdefs.h <<_ACEOF 15129#define HAVE_VFORK_H 1 15130_ACEOF 15131 15132fi 15133 15134done 15135 15136for ac_func in fork vfork 15137do : 15138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15140if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15141 cat >>confdefs.h <<_ACEOF 15142#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15143_ACEOF 15144 15145fi 15146done 15147 15148if test "x$ac_cv_func_fork" = xyes; then 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15150$as_echo_n "checking for working fork... " >&6; } 15151if ${ac_cv_func_fork_works+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 if test "$cross_compiling" = yes; then : 15155 ac_cv_func_fork_works=cross 15156else 15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15158/* end confdefs.h. */ 15159$ac_includes_default 15160int 15161main () 15162{ 15163 15164 /* By Ruediger Kuhlmann. */ 15165 return fork () < 0; 15166 15167 ; 15168 return 0; 15169} 15170_ACEOF 15171if ac_fn_c_try_run "$LINENO"; then : 15172 ac_cv_func_fork_works=yes 15173else 15174 ac_cv_func_fork_works=no 15175fi 15176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15177 conftest.$ac_objext conftest.beam conftest.$ac_ext 15178fi 15179 15180fi 15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15182$as_echo "$ac_cv_func_fork_works" >&6; } 15183 15184else 15185 ac_cv_func_fork_works=$ac_cv_func_fork 15186fi 15187if test "x$ac_cv_func_fork_works" = xcross; then 15188 case $host in 15189 *-*-amigaos* | *-*-msdosdjgpp*) 15190 # Override, as these systems have only a dummy fork() stub 15191 ac_cv_func_fork_works=no 15192 ;; 15193 *) 15194 ac_cv_func_fork_works=yes 15195 ;; 15196 esac 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15198$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15199fi 15200ac_cv_func_vfork_works=$ac_cv_func_vfork 15201if test "x$ac_cv_func_vfork" = xyes; then 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15203$as_echo_n "checking for working vfork... " >&6; } 15204if ${ac_cv_func_vfork_works+:} false; then : 15205 $as_echo_n "(cached) " >&6 15206else 15207 if test "$cross_compiling" = yes; then : 15208 ac_cv_func_vfork_works=cross 15209else 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211/* end confdefs.h. */ 15212/* Thanks to Paul Eggert for this test. */ 15213$ac_includes_default 15214#include <sys/wait.h> 15215#ifdef HAVE_VFORK_H 15216# include <vfork.h> 15217#endif 15218/* On some sparc systems, changes by the child to local and incoming 15219 argument registers are propagated back to the parent. The compiler 15220 is told about this with #include <vfork.h>, but some compilers 15221 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15222 static variable whose address is put into a register that is 15223 clobbered by the vfork. */ 15224static void 15225#ifdef __cplusplus 15226sparc_address_test (int arg) 15227# else 15228sparc_address_test (arg) int arg; 15229#endif 15230{ 15231 static pid_t child; 15232 if (!child) { 15233 child = vfork (); 15234 if (child < 0) { 15235 perror ("vfork"); 15236 _exit(2); 15237 } 15238 if (!child) { 15239 arg = getpid(); 15240 write(-1, "", 0); 15241 _exit (arg); 15242 } 15243 } 15244} 15245 15246int 15247main () 15248{ 15249 pid_t parent = getpid (); 15250 pid_t child; 15251 15252 sparc_address_test (0); 15253 15254 child = vfork (); 15255 15256 if (child == 0) { 15257 /* Here is another test for sparc vfork register problems. This 15258 test uses lots of local variables, at least as many local 15259 variables as main has allocated so far including compiler 15260 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15261 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15262 reuse the register of parent for one of the local variables, 15263 since it will think that parent can't possibly be used any more 15264 in this routine. Assigning to the local variable will thus 15265 munge parent in the parent process. */ 15266 pid_t 15267 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15268 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15269 /* Convince the compiler that p..p7 are live; otherwise, it might 15270 use the same hardware register for all 8 local variables. */ 15271 if (p != p1 || p != p2 || p != p3 || p != p4 15272 || p != p5 || p != p6 || p != p7) 15273 _exit(1); 15274 15275 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15276 from child file descriptors. If the child closes a descriptor 15277 before it execs or exits, this munges the parent's descriptor 15278 as well. Test for this by closing stdout in the child. */ 15279 _exit(close(fileno(stdout)) != 0); 15280 } else { 15281 int status; 15282 struct stat st; 15283 15284 while (wait(&status) != child) 15285 ; 15286 return ( 15287 /* Was there some problem with vforking? */ 15288 child < 0 15289 15290 /* Did the child fail? (This shouldn't happen.) */ 15291 || status 15292 15293 /* Did the vfork/compiler bug occur? */ 15294 || parent != getpid() 15295 15296 /* Did the file descriptor bug occur? */ 15297 || fstat(fileno(stdout), &st) != 0 15298 ); 15299 } 15300} 15301_ACEOF 15302if ac_fn_c_try_run "$LINENO"; then : 15303 ac_cv_func_vfork_works=yes 15304else 15305 ac_cv_func_vfork_works=no 15306fi 15307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15308 conftest.$ac_objext conftest.beam conftest.$ac_ext 15309fi 15310 15311fi 15312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15313$as_echo "$ac_cv_func_vfork_works" >&6; } 15314 15315fi; 15316if test "x$ac_cv_func_fork_works" = xcross; then 15317 ac_cv_func_vfork_works=$ac_cv_func_vfork 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15319$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15320fi 15321 15322if test "x$ac_cv_func_vfork_works" = xyes; then 15323 15324$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15325 15326else 15327 15328$as_echo "#define vfork fork" >>confdefs.h 15329 15330fi 15331if test "x$ac_cv_func_fork_works" = xyes; then 15332 15333$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15334 15335fi 15336 15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 15338$as_echo_n "checking return type of signal handlers... " >&6; } 15339if ${ac_cv_type_signal+:} false; then : 15340 $as_echo_n "(cached) " >&6 15341else 15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15343/* end confdefs.h. */ 15344#include <sys/types.h> 15345#include <signal.h> 15346 15347int 15348main () 15349{ 15350return *(signal (0, 0)) (0) == 1; 15351 ; 15352 return 0; 15353} 15354_ACEOF 15355if ac_fn_c_try_compile "$LINENO"; then : 15356 ac_cv_type_signal=int 15357else 15358 ac_cv_type_signal=void 15359fi 15360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15361fi 15362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 15363$as_echo "$ac_cv_type_signal" >&6; } 15364 15365cat >>confdefs.h <<_ACEOF 15366#define RETSIGTYPE $ac_cv_type_signal 15367_ACEOF 15368 15369 15370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15371$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15372if ${ac_cv_sys_largefile_source+:} false; then : 15373 $as_echo_n "(cached) " >&6 15374else 15375 while :; do 15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15377/* end confdefs.h. */ 15378#include <sys/types.h> /* for off_t */ 15379 #include <stdio.h> 15380int 15381main () 15382{ 15383int (*fp) (FILE *, off_t, int) = fseeko; 15384 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15385 ; 15386 return 0; 15387} 15388_ACEOF 15389if ac_fn_c_try_link "$LINENO"; then : 15390 ac_cv_sys_largefile_source=no; break 15391fi 15392rm -f core conftest.err conftest.$ac_objext \ 15393 conftest$ac_exeext conftest.$ac_ext 15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15395/* end confdefs.h. */ 15396#define _LARGEFILE_SOURCE 1 15397#include <sys/types.h> /* for off_t */ 15398 #include <stdio.h> 15399int 15400main () 15401{ 15402int (*fp) (FILE *, off_t, int) = fseeko; 15403 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15404 ; 15405 return 0; 15406} 15407_ACEOF 15408if ac_fn_c_try_link "$LINENO"; then : 15409 ac_cv_sys_largefile_source=1; break 15410fi 15411rm -f core conftest.err conftest.$ac_objext \ 15412 conftest$ac_exeext conftest.$ac_ext 15413 ac_cv_sys_largefile_source=unknown 15414 break 15415done 15416fi 15417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15418$as_echo "$ac_cv_sys_largefile_source" >&6; } 15419case $ac_cv_sys_largefile_source in #( 15420 no | unknown) ;; 15421 *) 15422cat >>confdefs.h <<_ACEOF 15423#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15424_ACEOF 15425;; 15426esac 15427rm -rf conftest* 15428 15429# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15430# in glibc 2.1.3, but that breaks too many other things. 15431# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15432if test $ac_cv_sys_largefile_source != unknown; then 15433 15434$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15435 15436fi 15437 15438 15439# Check whether --enable-largefile was given. 15440if test "${enable_largefile+set}" = set; then : 15441 enableval=$enable_largefile; 15442fi 15443 15444if test "$enable_largefile" != no; then 15445 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15447$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15448if ${ac_cv_sys_largefile_CC+:} false; then : 15449 $as_echo_n "(cached) " >&6 15450else 15451 ac_cv_sys_largefile_CC=no 15452 if test "$GCC" != yes; then 15453 ac_save_CC=$CC 15454 while :; do 15455 # IRIX 6.2 and later do not support large files by default, 15456 # so use the C compiler's -n32 option if that helps. 15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458/* end confdefs.h. */ 15459#include <sys/types.h> 15460 /* Check that off_t can represent 2**63 - 1 correctly. 15461 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15462 since some C++ compilers masquerading as C compilers 15463 incorrectly reject 9223372036854775807. */ 15464#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15466 && LARGE_OFF_T % 2147483647 == 1) 15467 ? 1 : -1]; 15468int 15469main () 15470{ 15471 15472 ; 15473 return 0; 15474} 15475_ACEOF 15476 if ac_fn_c_try_compile "$LINENO"; then : 15477 break 15478fi 15479rm -f core conftest.err conftest.$ac_objext 15480 CC="$CC -n32" 15481 if ac_fn_c_try_compile "$LINENO"; then : 15482 ac_cv_sys_largefile_CC=' -n32'; break 15483fi 15484rm -f core conftest.err conftest.$ac_objext 15485 break 15486 done 15487 CC=$ac_save_CC 15488 rm -f conftest.$ac_ext 15489 fi 15490fi 15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15492$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15493 if test "$ac_cv_sys_largefile_CC" != no; then 15494 CC=$CC$ac_cv_sys_largefile_CC 15495 fi 15496 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15498$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15499if ${ac_cv_sys_file_offset_bits+:} false; then : 15500 $as_echo_n "(cached) " >&6 15501else 15502 while :; do 15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15504/* end confdefs.h. */ 15505#include <sys/types.h> 15506 /* Check that off_t can represent 2**63 - 1 correctly. 15507 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15508 since some C++ compilers masquerading as C compilers 15509 incorrectly reject 9223372036854775807. */ 15510#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15512 && LARGE_OFF_T % 2147483647 == 1) 15513 ? 1 : -1]; 15514int 15515main () 15516{ 15517 15518 ; 15519 return 0; 15520} 15521_ACEOF 15522if ac_fn_c_try_compile "$LINENO"; then : 15523 ac_cv_sys_file_offset_bits=no; break 15524fi 15525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527/* end confdefs.h. */ 15528#define _FILE_OFFSET_BITS 64 15529#include <sys/types.h> 15530 /* Check that off_t can represent 2**63 - 1 correctly. 15531 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15532 since some C++ compilers masquerading as C compilers 15533 incorrectly reject 9223372036854775807. */ 15534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15536 && LARGE_OFF_T % 2147483647 == 1) 15537 ? 1 : -1]; 15538int 15539main () 15540{ 15541 15542 ; 15543 return 0; 15544} 15545_ACEOF 15546if ac_fn_c_try_compile "$LINENO"; then : 15547 ac_cv_sys_file_offset_bits=64; break 15548fi 15549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15550 ac_cv_sys_file_offset_bits=unknown 15551 break 15552done 15553fi 15554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15555$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15556case $ac_cv_sys_file_offset_bits in #( 15557 no | unknown) ;; 15558 *) 15559cat >>confdefs.h <<_ACEOF 15560#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15561_ACEOF 15562;; 15563esac 15564rm -rf conftest* 15565 if test $ac_cv_sys_file_offset_bits = unknown; then 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15567$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15568if ${ac_cv_sys_large_files+:} false; then : 15569 $as_echo_n "(cached) " >&6 15570else 15571 while :; do 15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15573/* end confdefs.h. */ 15574#include <sys/types.h> 15575 /* Check that off_t can represent 2**63 - 1 correctly. 15576 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15577 since some C++ compilers masquerading as C compilers 15578 incorrectly reject 9223372036854775807. */ 15579#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15581 && LARGE_OFF_T % 2147483647 == 1) 15582 ? 1 : -1]; 15583int 15584main () 15585{ 15586 15587 ; 15588 return 0; 15589} 15590_ACEOF 15591if ac_fn_c_try_compile "$LINENO"; then : 15592 ac_cv_sys_large_files=no; break 15593fi 15594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15596/* end confdefs.h. */ 15597#define _LARGE_FILES 1 15598#include <sys/types.h> 15599 /* Check that off_t can represent 2**63 - 1 correctly. 15600 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15601 since some C++ compilers masquerading as C compilers 15602 incorrectly reject 9223372036854775807. */ 15603#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15605 && LARGE_OFF_T % 2147483647 == 1) 15606 ? 1 : -1]; 15607int 15608main () 15609{ 15610 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_compile "$LINENO"; then : 15616 ac_cv_sys_large_files=1; break 15617fi 15618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15619 ac_cv_sys_large_files=unknown 15620 break 15621done 15622fi 15623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15624$as_echo "$ac_cv_sys_large_files" >&6; } 15625case $ac_cv_sys_large_files in #( 15626 no | unknown) ;; 15627 *) 15628cat >>confdefs.h <<_ACEOF 15629#define _LARGE_FILES $ac_cv_sys_large_files 15630_ACEOF 15631;; 15632esac 15633rm -rf conftest* 15634 fi 15635 15636 15637fi 15638 15639 15640 15641 15642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 15643$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 15644cache=_D_LARGEFILE_SOURCE_1 15645if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 15646 $as_echo_n "(cached) " >&6 15647else 15648 15649echo ' 15650#include <stdio.h> 15651int test() { 15652 int a = fseeko(stdin, 0, 0); 15653 return a; 15654} 15655' > conftest.c 15656echo 'void f(){}' >>conftest.c 15657if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 15658eval "cv_prog_cc_flag_needed_$cache=no" 15659else 15660 15661if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 15662eval "cv_prog_cc_flag_needed_$cache=yes" 15663else 15664eval "cv_prog_cc_flag_needed_$cache=fail" 15665#echo 'Test with flag fails too!' 15666#cat conftest.c 15667#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15668#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15669#exit 1 15670fi 15671 15672fi 15673rm -f conftest conftest.c conftest.o 15674 15675fi 15676 15677if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 15678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15679$as_echo "yes" >&6; } 15680: 15681CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 15682else 15683if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15685$as_echo "no" >&6; } 15686#echo 'Test with flag is no!' 15687#cat conftest.c 15688#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15689#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15690#exit 1 15691: 15692 15693else 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15695$as_echo "failed" >&6; } 15696: 15697 15698fi 15699fi 15700 15701 15702 15703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 15704$as_echo_n "checking if nonblocking sockets work... " >&6; } 15705if echo $target | grep mingw32 >/dev/null; then 15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 15707$as_echo "no (windows)" >&6; } 15708 15709$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15710 15711else 15712if test "$cross_compiling" = yes; then : 15713 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 15715$as_echo "crosscompile(yes)" >&6; } 15716 15717else 15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15719/* end confdefs.h. */ 15720 15721 15722#include <stdio.h> 15723#include <string.h> 15724#include <stdlib.h> 15725#include <fcntl.h> 15726#include <errno.h> 15727#ifdef HAVE_SYS_TYPES_H 15728#include <sys/types.h> 15729#endif 15730#ifdef HAVE_SYS_SOCKET_H 15731#include <sys/socket.h> 15732#endif 15733#ifdef HAVE_NETINET_IN_H 15734#include <netinet/in.h> 15735#endif 15736#ifdef HAVE_ARPA_INET_H 15737#include <arpa/inet.h> 15738#endif 15739#ifdef HAVE_UNISTD_H 15740#include <unistd.h> 15741#endif 15742#ifdef HAVE_TIME_H 15743#include <time.h> 15744#endif 15745 15746int main(void) 15747{ 15748 int port; 15749 int sfd, cfd; 15750 int num = 10; 15751 int i, p; 15752 struct sockaddr_in a; 15753 /* test if select and nonblocking reads work well together */ 15754 /* open port. 15755 fork child to send 10 messages. 15756 select to read. 15757 then try to nonblocking read the 10 messages 15758 then, nonblocking read must give EAGAIN 15759 */ 15760 15761 port = 12345 + (time(0)%32); 15762 sfd = socket(PF_INET, SOCK_DGRAM, 0); 15763 if(sfd == -1) { 15764 perror("socket"); 15765 return 1; 15766 } 15767 memset(&a, 0, sizeof(a)); 15768 a.sin_family = AF_INET; 15769 a.sin_port = htons(port); 15770 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 15771 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 15772 perror("bind"); 15773 return 1; 15774 } 15775 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 15776 perror("fcntl"); 15777 return 1; 15778 } 15779 15780 cfd = socket(PF_INET, SOCK_DGRAM, 0); 15781 if(cfd == -1) { 15782 perror("client socket"); 15783 return 1; 15784 } 15785 a.sin_port = 0; 15786 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 15787 perror("client bind"); 15788 return 1; 15789 } 15790 a.sin_port = htons(port); 15791 15792 /* no handler, causes exit in 10 seconds */ 15793 alarm(10); 15794 15795 /* send and receive on the socket */ 15796 if((p=fork()) == 0) { 15797 for(i=0; i<num; i++) { 15798 if(sendto(cfd, &i, sizeof(i), 0, 15799 (struct sockaddr*)&a, sizeof(a)) < 0) { 15800 perror("sendto"); 15801 return 1; 15802 } 15803 } 15804 } else { 15805 /* parent */ 15806 fd_set rset; 15807 int x; 15808 if(p == -1) { 15809 perror("fork"); 15810 return 1; 15811 } 15812 FD_ZERO(&rset); 15813 FD_SET(sfd, &rset); 15814 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 15815 perror("select"); 15816 return 1; 15817 } 15818 i = 0; 15819 while(i < num) { 15820 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 15821 if(errno == EAGAIN) 15822 continue; 15823 perror("recv"); 15824 return 1; 15825 } 15826 i++; 15827 } 15828 /* now we want to get EAGAIN: nonblocking goodness */ 15829 errno = 0; 15830 recv(sfd, &x, sizeof(x), 0); 15831 if(errno != EAGAIN) { 15832 perror("trying to recv again"); 15833 return 1; 15834 } 15835 /* EAGAIN encountered */ 15836 } 15837 15838 close(sfd); 15839 close(cfd); 15840 return 0; 15841} 15842 15843_ACEOF 15844if ac_fn_c_try_run "$LINENO"; then : 15845 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15847$as_echo "yes" >&6; } 15848 15849else 15850 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15852$as_echo "no" >&6; } 15853 15854$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15855 15856 15857fi 15858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15859 conftest.$ac_objext conftest.beam conftest.$ac_ext 15860fi 15861 15862fi 15863 15864 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 15866$as_echo_n "checking whether mkdir has one arg... " >&6; } 15867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15868/* end confdefs.h. */ 15869 15870#include <stdio.h> 15871#include <unistd.h> 15872#ifdef HAVE_WINSOCK2_H 15873#include <winsock2.h> 15874#endif 15875#ifdef HAVE_SYS_STAT_H 15876#include <sys/stat.h> 15877#endif 15878 15879int 15880main () 15881{ 15882 15883 (void)mkdir("directory"); 15884 15885 ; 15886 return 0; 15887} 15888_ACEOF 15889if ac_fn_c_try_compile "$LINENO"; then : 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15891$as_echo "yes" >&6; } 15892 15893$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 15894 15895 15896else 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15898$as_echo "no" >&6; } 15899 15900fi 15901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15902 15903for ac_func in strptime 15904do : 15905 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 15906if test "x$ac_cv_func_strptime" = xyes; then : 15907 cat >>confdefs.h <<_ACEOF 15908#define HAVE_STRPTIME 1 15909_ACEOF 15910 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 15912$as_echo_n "checking whether strptime works... " >&6; } 15913if test c${cross_compiling} = cno; then 15914if test "$cross_compiling" = yes; then : 15915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15917as_fn_error $? "cannot run test program while cross compiling 15918See \`config.log' for more details" "$LINENO" 5; } 15919else 15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922 15923#define _XOPEN_SOURCE 600 15924#include <time.h> 15925int main(void) { struct tm tm; char *res; 15926res = 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); 15927if (!res) return 2; 15928res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 15929if (!res) return 1; return 0; } 15930 15931_ACEOF 15932if ac_fn_c_try_run "$LINENO"; then : 15933 eval "ac_cv_c_strptime_works=yes" 15934else 15935 eval "ac_cv_c_strptime_works=no" 15936fi 15937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15938 conftest.$ac_objext conftest.beam conftest.$ac_ext 15939fi 15940 15941else 15942eval "ac_cv_c_strptime_works=maybe" 15943fi 15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 15945$as_echo "$ac_cv_c_strptime_works" >&6; } 15946if test $ac_cv_c_strptime_works = no; then 15947case " $LIBOBJS " in 15948 *" strptime.$ac_objext "* ) ;; 15949 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15950 ;; 15951esac 15952 15953else 15954 15955cat >>confdefs.h <<_ACEOF 15956#define STRPTIME_WORKS 1 15957_ACEOF 15958 15959fi 15960 15961else 15962 case " $LIBOBJS " in 15963 *" strptime.$ac_objext "* ) ;; 15964 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15965 ;; 15966esac 15967 15968fi 15969done 15970 15971 15972# check if we can use SO_REUSEPORT 15973if echo "$host" | grep -i -e linux -e dragonfly >/dev/null; then 15974 15975$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h 15976 15977else 15978 15979$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h 15980 15981fi 15982 15983# set memory allocation checking if requested 15984# Check whether --enable-alloc-checks was given. 15985if test "${enable_alloc_checks+set}" = set; then : 15986 enableval=$enable_alloc_checks; 15987fi 15988 15989# Check whether --enable-alloc-lite was given. 15990if test "${enable_alloc_lite+set}" = set; then : 15991 enableval=$enable_alloc_lite; 15992fi 15993 15994# Check whether --enable-alloc-nonregional was given. 15995if test "${enable_alloc_nonregional+set}" = set; then : 15996 enableval=$enable_alloc_nonregional; 15997fi 15998 15999if test x_$enable_alloc_nonregional = x_yes; then 16000 16001$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 16002 16003fi 16004if test x_$enable_alloc_checks = x_yes; then 16005 16006$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 16007 16008else 16009 if test x_$enable_alloc_lite = x_yes; then 16010 16011$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 16012 16013 else 16014 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 16016$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16017 if test "$cross_compiling" = yes; then : 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 16019$as_echo "no (crosscompile)" >&6; } 16020 case " $LIBOBJS " in 16021 *" malloc.$ac_objext "* ) ;; 16022 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16023 ;; 16024esac 16025 16026 16027cat >>confdefs.h <<_ACEOF 16028#define malloc rpl_malloc_unbound 16029_ACEOF 16030 16031else 16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16033/* end confdefs.h. */ 16034#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16035#include <stdlib.h> 16036#else 16037char *malloc (); 16038#endif 16039 16040int 16041main () 16042{ 16043 if(malloc(0) != 0) return 1; 16044 ; 16045 return 0; 16046} 16047 16048_ACEOF 16049if ac_fn_c_try_run "$LINENO"; then : 16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16051$as_echo "no" >&6; } 16052 case " $LIBOBJS " in 16053 *" malloc.$ac_objext "* ) ;; 16054 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16055 ;; 16056esac 16057 16058 16059cat >>confdefs.h <<_ACEOF 16060#define malloc rpl_malloc_unbound 16061_ACEOF 16062 16063else 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16065$as_echo "yes" >&6; } 16066 16067$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 16068 16069fi 16070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16071 conftest.$ac_objext conftest.beam conftest.$ac_ext 16072fi 16073 16074 16075 fi 16076fi 16077 16078# check windows threads (we use them, not pthreads, on windows). 16079if test "$on_mingw" = "yes"; then 16080# check windows threads 16081 for ac_header in windows.h 16082do : 16083 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 16084" 16085if test "x$ac_cv_header_windows_h" = xyes; then : 16086 cat >>confdefs.h <<_ACEOF 16087#define HAVE_WINDOWS_H 1 16088_ACEOF 16089 16090fi 16091 16092done 16093 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 16095$as_echo_n "checking for CreateThread... " >&6; } 16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16097/* end confdefs.h. */ 16098 16099#ifdef HAVE_WINDOWS_H 16100#include <windows.h> 16101#endif 16102 16103int 16104main () 16105{ 16106 16107 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 16108 16109 ; 16110 return 0; 16111} 16112_ACEOF 16113if ac_fn_c_try_compile "$LINENO"; then : 16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16115$as_echo "yes" >&6; } 16116 16117$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 16118 16119 16120else 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16122$as_echo "no" >&6; } 16123 16124fi 16125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16126 16127else 16128# not on mingw, check thread libraries. 16129 16130# check for thread library. 16131# check this first, so that the pthread lib does not get linked in via 16132# libssl or libpython, and thus distorts the tests, and we end up using 16133# the non-threadsafe C libraries. 16134 16135# Check whether --with-pthreads was given. 16136if test "${with_pthreads+set}" = set; then : 16137 withval=$with_pthreads; 16138else 16139 withval="yes" 16140fi 16141 16142ub_have_pthreads=no 16143if test x_$withval != x_no; then 16144 16145 16146ac_ext=c 16147ac_cpp='$CPP $CPPFLAGS' 16148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16150ac_compiler_gnu=$ac_cv_c_compiler_gnu 16151 16152ax_pthread_ok=no 16153 16154# We used to check for pthread.h first, but this fails if pthread.h 16155# requires special compiler flags (e.g. on True64 or Sequent). 16156# It gets checked for in the link test anyway. 16157 16158# First of all, check if the user has set any of the PTHREAD_LIBS, 16159# etcetera environment variables, and if threads linking works using 16160# them: 16161if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16162 save_CFLAGS="$CFLAGS" 16163 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16164 save_LIBS="$LIBS" 16165 LIBS="$PTHREAD_LIBS $LIBS" 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16167$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16169/* end confdefs.h. */ 16170 16171/* Override any GCC internal prototype to avoid an error. 16172 Use char because int might match the return type of a GCC 16173 builtin and then its argument prototype would still apply. */ 16174#ifdef __cplusplus 16175extern "C" 16176#endif 16177char pthread_join (); 16178int 16179main () 16180{ 16181return pthread_join (); 16182 ; 16183 return 0; 16184} 16185_ACEOF 16186if ac_fn_c_try_link "$LINENO"; then : 16187 ax_pthread_ok=yes 16188fi 16189rm -f core conftest.err conftest.$ac_objext \ 16190 conftest$ac_exeext conftest.$ac_ext 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16192$as_echo "$ax_pthread_ok" >&6; } 16193 if test x"$ax_pthread_ok" = xno; then 16194 PTHREAD_LIBS="" 16195 PTHREAD_CFLAGS="" 16196 fi 16197 LIBS="$save_LIBS" 16198 CFLAGS="$save_CFLAGS" 16199fi 16200 16201# We must check for the threads library under a number of different 16202# names; the ordering is very important because some systems 16203# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16204# libraries is broken (non-POSIX). 16205 16206# Create a list of thread flags to try. Items starting with a "-" are 16207# C compiler flags, and other items are library names, except for "none" 16208# which indicates that we try without any flags at all, and "pthread-config" 16209# which is a program returning the flags for the Pth emulation library. 16210 16211ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16212 16213# The ordering *is* (sometimes) important. Some notes on the 16214# individual items follow: 16215 16216# pthreads: AIX (must check this before -lpthread) 16217# none: in case threads are in libc; should be tried before -Kthread and 16218# other compiler flags to prevent continual compiler warnings 16219# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16220# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16221# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16222# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16223# -pthreads: Solaris/gcc 16224# -mthreads: Mingw32/gcc, Lynx/gcc 16225# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16226# doesn't hurt to check since this sometimes defines pthreads too; 16227# also defines -D_REENTRANT) 16228# ... -mt is also the pthreads flag for HP/aCC 16229# pthread: Linux, etcetera 16230# --thread-safe: KAI C++ 16231# pthread-config: use pthread-config program (for GNU Pth library) 16232 16233case ${host_os} in 16234 solaris*) 16235 16236 # On Solaris (at least, for some versions), libc contains stubbed 16237 # (non-functional) versions of the pthreads routines, so link-based 16238 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16239 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16240 # a function called by this macro, so we could check for that, but 16241 # who knows whether they'll stub that too in a future libc.) So, 16242 # we'll just look for -pthreads and -lpthread first: 16243 16244 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 16245 ;; 16246 16247 darwin*) 16248 ax_pthread_flags="-pthread $ax_pthread_flags" 16249 ;; 16250esac 16251 16252# Clang doesn't consider unrecognized options an error unless we specify 16253# -Werror. We throw in some extra Clang-specific options to ensure that 16254# this doesn't happen for GCC, which also accepts -Werror. 16255 16256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 16257$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 16258save_CFLAGS="$CFLAGS" 16259ax_pthread_extra_flags="-Werror" 16260CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 16261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263int foo(void); 16264int 16265main () 16266{ 16267foo() 16268 ; 16269 return 0; 16270} 16271_ACEOF 16272if ac_fn_c_try_compile "$LINENO"; then : 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16274$as_echo "yes" >&6; } 16275else 16276 ax_pthread_extra_flags= 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16278$as_echo "no" >&6; } 16279fi 16280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16281CFLAGS="$save_CFLAGS" 16282 16283if test x"$ax_pthread_ok" = xno; then 16284for flag in $ax_pthread_flags; do 16285 16286 case $flag in 16287 none) 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16289$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16290 ;; 16291 16292 -*) 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16294$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16295 PTHREAD_CFLAGS="$flag" 16296 ;; 16297 16298 pthread-config) 16299 # Extract the first word of "pthread-config", so it can be a program name with args. 16300set dummy pthread-config; ac_word=$2 16301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16302$as_echo_n "checking for $ac_word... " >&6; } 16303if ${ac_cv_prog_ax_pthread_config+:} false; then : 16304 $as_echo_n "(cached) " >&6 16305else 16306 if test -n "$ax_pthread_config"; then 16307 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 16308else 16309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16310for as_dir in $PATH 16311do 16312 IFS=$as_save_IFS 16313 test -z "$as_dir" && as_dir=. 16314 for ac_exec_ext in '' $ac_executable_extensions; do 16315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16316 ac_cv_prog_ax_pthread_config="yes" 16317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16318 break 2 16319 fi 16320done 16321 done 16322IFS=$as_save_IFS 16323 16324 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 16325fi 16326fi 16327ax_pthread_config=$ac_cv_prog_ax_pthread_config 16328if test -n "$ax_pthread_config"; then 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 16330$as_echo "$ax_pthread_config" >&6; } 16331else 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16333$as_echo "no" >&6; } 16334fi 16335 16336 16337 if test x"$ax_pthread_config" = xno; then continue; fi 16338 PTHREAD_CFLAGS="`pthread-config --cflags`" 16339 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16340 ;; 16341 16342 *) 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16344$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16345 PTHREAD_LIBS="-l$flag" 16346 ;; 16347 esac 16348 16349 save_LIBS="$LIBS" 16350 save_CFLAGS="$CFLAGS" 16351 LIBS="$PTHREAD_LIBS $LIBS" 16352 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 16353 16354 # Check for various functions. We must include pthread.h, 16355 # since some functions may be macros. (On the Sequent, we 16356 # need a special flag -Kthread to make this header compile.) 16357 # We check for pthread_join because it is in -lpthread on IRIX 16358 # while pthread_create is in libc. We check for pthread_attr_init 16359 # due to DEC craziness with -lpthreads. We check for 16360 # pthread_cleanup_push because it is one of the few pthread 16361 # functions on Solaris that doesn't have a non-functional libc stub. 16362 # We try pthread_create on general principles. 16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16364/* end confdefs.h. */ 16365#include <pthread.h> 16366 static void routine(void *a) { *((int*)a) = 0; } 16367 static void *start_routine(void *a) { return a; } 16368int 16369main () 16370{ 16371pthread_t th; pthread_attr_t attr; 16372 pthread_create(&th, 0, start_routine, 0); 16373 pthread_join(th, 0); 16374 pthread_attr_init(&attr); 16375 pthread_cleanup_push(routine, 0); 16376 pthread_cleanup_pop(0) /* ; */ 16377 ; 16378 return 0; 16379} 16380_ACEOF 16381if ac_fn_c_try_link "$LINENO"; then : 16382 ax_pthread_ok=yes 16383fi 16384rm -f core conftest.err conftest.$ac_objext \ 16385 conftest$ac_exeext conftest.$ac_ext 16386 16387 LIBS="$save_LIBS" 16388 CFLAGS="$save_CFLAGS" 16389 16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16391$as_echo "$ax_pthread_ok" >&6; } 16392 if test "x$ax_pthread_ok" = xyes; then 16393 break; 16394 fi 16395 16396 PTHREAD_LIBS="" 16397 PTHREAD_CFLAGS="" 16398done 16399fi 16400 16401# Various other checks: 16402if test "x$ax_pthread_ok" = xyes; then 16403 save_LIBS="$LIBS" 16404 LIBS="$PTHREAD_LIBS $LIBS" 16405 save_CFLAGS="$CFLAGS" 16406 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16407 16408 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16410$as_echo_n "checking for joinable pthread attribute... " >&6; } 16411 attr_name=unknown 16412 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16414/* end confdefs.h. */ 16415#include <pthread.h> 16416int 16417main () 16418{ 16419int attr = $attr; return attr /* ; */ 16420 ; 16421 return 0; 16422} 16423_ACEOF 16424if ac_fn_c_try_link "$LINENO"; then : 16425 attr_name=$attr; break 16426fi 16427rm -f core conftest.err conftest.$ac_objext \ 16428 conftest$ac_exeext conftest.$ac_ext 16429 done 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16431$as_echo "$attr_name" >&6; } 16432 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16433 16434cat >>confdefs.h <<_ACEOF 16435#define PTHREAD_CREATE_JOINABLE $attr_name 16436_ACEOF 16437 16438 fi 16439 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16441$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16442 flag=no 16443 case ${host_os} in 16444 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 16445 osf* | hpux*) flag="-D_REENTRANT";; 16446 solaris*) 16447 if test "$GCC" = "yes"; then 16448 flag="-D_REENTRANT" 16449 else 16450 # TODO: What about Clang on Solaris? 16451 flag="-mt -D_REENTRANT" 16452 fi 16453 ;; 16454 esac 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 16456$as_echo "$flag" >&6; } 16457 if test "x$flag" != xno; then 16458 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16459 fi 16460 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16462$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16463if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16464 $as_echo_n "(cached) " >&6 16465else 16466 16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469#include <pthread.h> 16470int 16471main () 16472{ 16473int i = PTHREAD_PRIO_INHERIT; 16474 ; 16475 return 0; 16476} 16477_ACEOF 16478if ac_fn_c_try_link "$LINENO"; then : 16479 ax_cv_PTHREAD_PRIO_INHERIT=yes 16480else 16481 ax_cv_PTHREAD_PRIO_INHERIT=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext \ 16484 conftest$ac_exeext conftest.$ac_ext 16485 16486fi 16487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16488$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16489 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 16490 16491$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16492 16493fi 16494 16495 LIBS="$save_LIBS" 16496 CFLAGS="$save_CFLAGS" 16497 16498 # More AIX lossage: compile with *_r variant 16499 if test "x$GCC" != xyes; then 16500 case $host_os in 16501 aix*) 16502 case "x/$CC" in #( 16503 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16504 #handle absolute path differently from PATH based program lookup 16505 case "x$CC" in #( 16506 x/*) : 16507 if as_fn_executable_p ${CC}_r; then : 16508 PTHREAD_CC="${CC}_r" 16509fi ;; #( 16510 *) : 16511 for ac_prog in ${CC}_r 16512do 16513 # Extract the first word of "$ac_prog", so it can be a program name with args. 16514set dummy $ac_prog; ac_word=$2 16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16516$as_echo_n "checking for $ac_word... " >&6; } 16517if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16518 $as_echo_n "(cached) " >&6 16519else 16520 if test -n "$PTHREAD_CC"; then 16521 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16522else 16523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16524for as_dir in $PATH 16525do 16526 IFS=$as_save_IFS 16527 test -z "$as_dir" && as_dir=. 16528 for ac_exec_ext in '' $ac_executable_extensions; do 16529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16530 ac_cv_prog_PTHREAD_CC="$ac_prog" 16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16532 break 2 16533 fi 16534done 16535 done 16536IFS=$as_save_IFS 16537 16538fi 16539fi 16540PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16541if test -n "$PTHREAD_CC"; then 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16543$as_echo "$PTHREAD_CC" >&6; } 16544else 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16546$as_echo "no" >&6; } 16547fi 16548 16549 16550 test -n "$PTHREAD_CC" && break 16551done 16552test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16553 ;; 16554esac ;; #( 16555 *) : 16556 ;; 16557esac 16558 ;; 16559 esac 16560 fi 16561fi 16562 16563test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16564 16565 16566 16567 16568 16569# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16570if test x"$ax_pthread_ok" = xyes; then 16571 16572 16573$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 16574 16575 if test -n "$PTHREAD_LIBS"; then 16576 LIBS="$PTHREAD_LIBS $LIBS" 16577 fi 16578 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16579 CC="$PTHREAD_CC" 16580 ub_have_pthreads=yes 16581 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 16582" 16583if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 16584 16585cat >>confdefs.h <<_ACEOF 16586#define HAVE_PTHREAD_SPINLOCK_T 1 16587_ACEOF 16588 16589 16590fi 16591ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 16592" 16593if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 16594 16595cat >>confdefs.h <<_ACEOF 16596#define HAVE_PTHREAD_RWLOCK_T 1 16597_ACEOF 16598 16599 16600fi 16601 16602 16603 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 16605$as_echo_n "checking if -pthread unused during linking... " >&6; } 16606 # catch clang warning 'argument unused during compilation' 16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609$ac_includes_default 16610 16611int main(void) {return 0;} 16612 16613_ACEOF 16614 pthread_unused="yes" 16615 # first compile 16616 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 16617 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 16618 if test $? = 0; then 16619 # then link 16620 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 16621 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 16622 if test $? -ne 0; then 16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16624$as_echo "yes" >&6; } 16625 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 16626 PTHREAD_CFLAGS_ONLY="-pthread" 16627 16628 else 16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16630$as_echo "no" >&6; } 16631 fi 16632 else 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16634$as_echo "no" >&6; } 16635 fi # endif cc successful 16636 rm -f conftest conftest.c conftest.o 16637 fi # endif -pthread in CFLAGS 16638 16639 16640 : 16641else 16642 ax_pthread_ok=no 16643 16644fi 16645ac_ext=c 16646ac_cpp='$CPP $CPPFLAGS' 16647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16649ac_compiler_gnu=$ac_cv_c_compiler_gnu 16650 16651 16652fi 16653 16654# check solaris thread library 16655 16656# Check whether --with-solaris-threads was given. 16657if test "${with_solaris_threads+set}" = set; then : 16658 withval=$with_solaris_threads; 16659else 16660 withval="no" 16661fi 16662 16663ub_have_sol_threads=no 16664if test x_$withval != x_no; then 16665 if test x_$ub_have_pthreads != x_no; then 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 16667$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 16668 else 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 16670$as_echo_n "checking for library containing thr_create... " >&6; } 16671if ${ac_cv_search_thr_create+:} false; then : 16672 $as_echo_n "(cached) " >&6 16673else 16674 ac_func_search_save_LIBS=$LIBS 16675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16676/* end confdefs.h. */ 16677 16678/* Override any GCC internal prototype to avoid an error. 16679 Use char because int might match the return type of a GCC 16680 builtin and then its argument prototype would still apply. */ 16681#ifdef __cplusplus 16682extern "C" 16683#endif 16684char thr_create (); 16685int 16686main () 16687{ 16688return thr_create (); 16689 ; 16690 return 0; 16691} 16692_ACEOF 16693for ac_lib in '' thread; do 16694 if test -z "$ac_lib"; then 16695 ac_res="none required" 16696 else 16697 ac_res=-l$ac_lib 16698 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16699 fi 16700 if ac_fn_c_try_link "$LINENO"; then : 16701 ac_cv_search_thr_create=$ac_res 16702fi 16703rm -f core conftest.err conftest.$ac_objext \ 16704 conftest$ac_exeext 16705 if ${ac_cv_search_thr_create+:} false; then : 16706 break 16707fi 16708done 16709if ${ac_cv_search_thr_create+:} false; then : 16710 16711else 16712 ac_cv_search_thr_create=no 16713fi 16714rm conftest.$ac_ext 16715LIBS=$ac_func_search_save_LIBS 16716fi 16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 16718$as_echo "$ac_cv_search_thr_create" >&6; } 16719ac_res=$ac_cv_search_thr_create 16720if test "$ac_res" != no; then : 16721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16722 16723 16724$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 16725 16726 16727 16728 16729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 16730$as_echo_n "checking whether $CC supports -mt... " >&6; } 16731cache=`echo mt | sed 'y%.=/+-%___p_%'` 16732if eval \${cv_prog_cc_flag_$cache+:} false; then : 16733 $as_echo_n "(cached) " >&6 16734else 16735 16736echo 'void f(void){}' >conftest.c 16737if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 16738eval "cv_prog_cc_flag_$cache=yes" 16739else 16740eval "cv_prog_cc_flag_$cache=no" 16741fi 16742rm -f conftest conftest.o conftest.c 16743 16744fi 16745 16746if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16748$as_echo "yes" >&6; } 16749: 16750CFLAGS="$CFLAGS -mt" 16751else 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16753$as_echo "no" >&6; } 16754: 16755CFLAGS="$CFLAGS -D_REENTRANT" 16756fi 16757 16758 ub_have_sol_threads=yes 16759 16760else 16761 16762 as_fn_error $? "no solaris threads found." "$LINENO" 5 16763 16764fi 16765 16766 fi 16767fi 16768 16769fi # end of non-mingw check of thread libraries 16770 16771# Check for PyUnbound 16772 16773# Check whether --with-pyunbound was given. 16774if test "${with_pyunbound+set}" = set; then : 16775 withval=$with_pyunbound; 16776else 16777 withval="no" 16778fi 16779 16780 16781ub_test_python=no 16782ub_with_pyunbound=no 16783if test x_$withval != x_no; then 16784 ub_with_pyunbound=yes 16785 ub_test_python=yes 16786fi 16787 16788# Check for Python module 16789 16790# Check whether --with-pythonmodule was given. 16791if test "${with_pythonmodule+set}" = set; then : 16792 withval=$with_pythonmodule; 16793else 16794 withval="no" 16795fi 16796 16797 16798ub_with_pythonmod=no 16799if test x_$withval != x_no; then 16800 ub_with_pythonmod=yes 16801 ub_test_python=yes 16802fi 16803 16804# Check for Python & SWIG only on PyUnbound or PyModule 16805if test x_$ub_test_python != x_no; then 16806 16807 # Check for Python 16808 ub_have_python=no 16809 ac_save_LIBS="$LIBS" 16810 # 16811 # Allow the use of a (user set) custom python version 16812 # 16813 16814 16815 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 16816set dummy python$PYTHON_VERSION; ac_word=$2 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16818$as_echo_n "checking for $ac_word... " >&6; } 16819if ${ac_cv_path_PYTHON+:} false; then : 16820 $as_echo_n "(cached) " >&6 16821else 16822 case $PYTHON in 16823 [\\/]* | ?:[\\/]*) 16824 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 16825 ;; 16826 *) 16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16828for as_dir in $PATH 16829do 16830 IFS=$as_save_IFS 16831 test -z "$as_dir" && as_dir=. 16832 for ac_exec_ext in '' $ac_executable_extensions; do 16833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16834 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16836 break 2 16837 fi 16838done 16839 done 16840IFS=$as_save_IFS 16841 16842 ;; 16843esac 16844fi 16845PYTHON=$ac_cv_path_PYTHON 16846if test -n "$PYTHON"; then 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 16848$as_echo "$PYTHON" >&6; } 16849else 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16851$as_echo "no" >&6; } 16852fi 16853 16854 16855 if test -z "$PYTHON"; then 16856 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 16857 PYTHON_VERSION="" 16858 fi 16859 16860 if test -z "$PYTHON_VERSION"; then 16861 PYTHON_VERSION=`$PYTHON -c "import sys; \ 16862 print(sys.version.split()[0])"` 16863 fi 16864 16865 # 16866 # Check if you have distutils, else fail 16867 # 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 16869$as_echo_n "checking for the distutils Python package... " >&6; } 16870 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16872$as_echo "yes" >&6; } 16873 else 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16875$as_echo "no" >&6; } 16876 as_fn_error $? "cannot import Python module \"distutils\". 16877Please check your Python installation. The error was: 16878$ac_distutils_result" "$LINENO" 5 16879 PYTHON_VERSION="" 16880 fi 16881 16882 # 16883 # Check for Python include path 16884 # 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 16886$as_echo_n "checking for Python include path... " >&6; } 16887 if test -z "$PYTHON_CPPFLAGS"; then 16888 python_path=`$PYTHON -c "import distutils.sysconfig; \ 16889 print(distutils.sysconfig.get_python_inc());"` 16890 if test -n "${python_path}"; then 16891 python_path="-I$python_path" 16892 fi 16893 PYTHON_CPPFLAGS=$python_path 16894 fi 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 16896$as_echo "$PYTHON_CPPFLAGS" >&6; } 16897 16898 16899 # 16900 # Check for Python library path 16901 # 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 16903$as_echo_n "checking for Python library path... " >&6; } 16904 if test -z "$PYTHON_LDFLAGS"; then 16905 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 16906 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 16907 fi 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 16909$as_echo "$PYTHON_LDFLAGS" >&6; } 16910 16911 16912 # 16913 # Check for site packages 16914 # 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 16916$as_echo_n "checking for Python site-packages path... " >&6; } 16917 if test -z "$PYTHON_SITE_PKG"; then 16918 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 16919 print(distutils.sysconfig.get_python_lib(1,0));"` 16920 fi 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 16922$as_echo "$PYTHON_SITE_PKG" >&6; } 16923 16924 16925 # 16926 # final check to see if everything compiles alright 16927 # 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 16929$as_echo_n "checking consistency of all components of python development environment... " >&6; } 16930 ac_ext=c 16931ac_cpp='$CPP $CPPFLAGS' 16932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16934ac_compiler_gnu=$ac_cv_c_compiler_gnu 16935 16936 # save current global flags 16937 ac_save_LIBS="$LIBS" 16938 ac_save_CPPFLAGS="$CPPFLAGS" 16939 16940 LIBS="$LIBS $PYTHON_LDFLAGS" 16941 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16943/* end confdefs.h. */ 16944 16945 #include <Python.h> 16946 16947int 16948main () 16949{ 16950 16951 Py_Initialize(); 16952 16953 ; 16954 return 0; 16955} 16956_ACEOF 16957if ac_fn_c_try_link "$LINENO"; then : 16958 pythonexists=yes 16959else 16960 pythonexists=no 16961fi 16962rm -f core conftest.err conftest.$ac_objext \ 16963 conftest$ac_exeext conftest.$ac_ext 16964 16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 16966$as_echo "$pythonexists" >&6; } 16967 16968 if test ! "$pythonexists" = "yes"; then 16969 as_fn_error $? " 16970 Could not link test program to Python. Maybe the main Python library has been 16971 installed in some non-standard library path. If so, pass it to configure, 16972 via the LDFLAGS environment variable. 16973 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 16974 ============================================================================ 16975 ERROR! 16976 You probably have to install the development version of the Python package 16977 for your distribution. The exact name of this package varies among them. 16978 ============================================================================ 16979 " "$LINENO" 5 16980 PYTHON_VERSION="" 16981 fi 16982 ac_ext=c 16983ac_cpp='$CPP $CPPFLAGS' 16984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16986ac_compiler_gnu=$ac_cv_c_compiler_gnu 16987 16988 # turn back to default flags 16989 CPPFLAGS="$ac_save_CPPFLAGS" 16990 LIBS="$ac_save_LIBS" 16991 16992 # 16993 # all done! 16994 # 16995 16996 if test ! -z "$PYTHON_VERSION"; then 16997 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 16998 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 16999 fi 17000 17001 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 17002 17003 # Have Python 17004 17005$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 17006 17007 if test -n "$LIBS"; then 17008 LIBS="$PYTHON_LDFLAGS $LIBS" 17009 else 17010 LIBS="$PYTHON_LDFLAGS" 17011 fi 17012 if test -n "$CPPFLAGS"; then 17013 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17014 else 17015 CPPFLAGS="$PYTHON_CPPFLAGS" 17016 fi 17017 ub_have_python=yes 17018 17019 17020 17021 17022 17023 17024 17025if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17026 if test -n "$ac_tool_prefix"; then 17027 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17028set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17030$as_echo_n "checking for $ac_word... " >&6; } 17031if ${ac_cv_path_PKG_CONFIG+:} false; then : 17032 $as_echo_n "(cached) " >&6 17033else 17034 case $PKG_CONFIG in 17035 [\\/]* | ?:[\\/]*) 17036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17037 ;; 17038 *) 17039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17040for as_dir in $PATH 17041do 17042 IFS=$as_save_IFS 17043 test -z "$as_dir" && as_dir=. 17044 for ac_exec_ext in '' $ac_executable_extensions; do 17045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17048 break 2 17049 fi 17050done 17051 done 17052IFS=$as_save_IFS 17053 17054 ;; 17055esac 17056fi 17057PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17058if test -n "$PKG_CONFIG"; then 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17060$as_echo "$PKG_CONFIG" >&6; } 17061else 17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17063$as_echo "no" >&6; } 17064fi 17065 17066 17067fi 17068if test -z "$ac_cv_path_PKG_CONFIG"; then 17069 ac_pt_PKG_CONFIG=$PKG_CONFIG 17070 # Extract the first word of "pkg-config", so it can be a program name with args. 17071set dummy pkg-config; ac_word=$2 17072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17073$as_echo_n "checking for $ac_word... " >&6; } 17074if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17075 $as_echo_n "(cached) " >&6 17076else 17077 case $ac_pt_PKG_CONFIG in 17078 [\\/]* | ?:[\\/]*) 17079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17080 ;; 17081 *) 17082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17083for as_dir in $PATH 17084do 17085 IFS=$as_save_IFS 17086 test -z "$as_dir" && as_dir=. 17087 for ac_exec_ext in '' $ac_executable_extensions; do 17088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17091 break 2 17092 fi 17093done 17094 done 17095IFS=$as_save_IFS 17096 17097 ;; 17098esac 17099fi 17100ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17101if test -n "$ac_pt_PKG_CONFIG"; then 17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17103$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17104else 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17106$as_echo "no" >&6; } 17107fi 17108 17109 if test "x$ac_pt_PKG_CONFIG" = x; then 17110 PKG_CONFIG="" 17111 else 17112 case $cross_compiling:$ac_tool_warned in 17113yes:) 17114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17116ac_tool_warned=yes ;; 17117esac 17118 PKG_CONFIG=$ac_pt_PKG_CONFIG 17119 fi 17120else 17121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17122fi 17123 17124fi 17125if test -n "$PKG_CONFIG"; then 17126 _pkg_min_version=0.9.0 17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17128$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17131$as_echo "yes" >&6; } 17132 else 17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17134$as_echo "no" >&6; } 17135 PKG_CONFIG="" 17136 fi 17137fi 17138 if test -n "$PKG_CONFIG" && \ 17139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 17140 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 17141 ac_status=$? 17142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17143 test $ac_status = 0; }; then 17144 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 17145else 17146 PC_PY_DEPENDENCY="python" 17147fi 17148 17149 17150 # Check for SWIG 17151 ub_have_swig=no 17152 # Check whether --enable-swig-version-check was given. 17153if test "${enable_swig_version_check+set}" = set; then : 17154 enableval=$enable_swig_version_check; 17155fi 17156 17157 if test "$enable_swig_version_check" = "yes"; then 17158 17159 # Extract the first word of "swig", so it can be a program name with args. 17160set dummy swig; ac_word=$2 17161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17162$as_echo_n "checking for $ac_word... " >&6; } 17163if ${ac_cv_path_SWIG+:} false; then : 17164 $as_echo_n "(cached) " >&6 17165else 17166 case $SWIG in 17167 [\\/]* | ?:[\\/]*) 17168 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17169 ;; 17170 *) 17171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17172for as_dir in $PATH 17173do 17174 IFS=$as_save_IFS 17175 test -z "$as_dir" && as_dir=. 17176 for ac_exec_ext in '' $ac_executable_extensions; do 17177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17178 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17180 break 2 17181 fi 17182done 17183 done 17184IFS=$as_save_IFS 17185 17186 ;; 17187esac 17188fi 17189SWIG=$ac_cv_path_SWIG 17190if test -n "$SWIG"; then 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17192$as_echo "$SWIG" >&6; } 17193else 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17195$as_echo "no" >&6; } 17196fi 17197 17198 17199 if test -z "$SWIG" ; then 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17201$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17202 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17203 elif test -n "2.0.1" ; then 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17205$as_echo_n "checking for SWIG version... " >&6; } 17206 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'` 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17208$as_echo "$swig_version" >&6; } 17209 if test -n "$swig_version" ; then 17210 # Calculate the required version number components 17211 required=2.0.1 17212 required_major=`echo $required | sed 's/[^0-9].*//'` 17213 if test -z "$required_major" ; then 17214 required_major=0 17215 fi 17216 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17217 required_minor=`echo $required | sed 's/[^0-9].*//'` 17218 if test -z "$required_minor" ; then 17219 required_minor=0 17220 fi 17221 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17222 required_patch=`echo $required | sed 's/[^0-9].*//'` 17223 if test -z "$required_patch" ; then 17224 required_patch=0 17225 fi 17226 # Calculate the available version number components 17227 available=$swig_version 17228 available_major=`echo $available | sed 's/[^0-9].*//'` 17229 if test -z "$available_major" ; then 17230 available_major=0 17231 fi 17232 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17233 available_minor=`echo $available | sed 's/[^0-9].*//'` 17234 if test -z "$available_minor" ; then 17235 available_minor=0 17236 fi 17237 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17238 available_patch=`echo $available | sed 's/[^0-9].*//'` 17239 if test -z "$available_patch" ; then 17240 available_patch=0 17241 fi 17242 badversion=0 17243 if test $available_major -lt $required_major ; then 17244 badversion=1 17245 fi 17246 if test $available_major -eq $required_major \ 17247 -a $available_minor -lt $required_minor ; then 17248 badversion=1 17249 fi 17250 if test $available_major -eq $required_major \ 17251 -a $available_minor -eq $required_minor \ 17252 -a $available_patch -lt $required_patch ; then 17253 badversion=1 17254 fi 17255 if test $badversion -eq 1 ; then 17256 { $as_echo "$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 17257$as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17258 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17259 else 17260 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17261$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17262 SWIG_LIB=`$SWIG -swiglib` 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17264$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17265 fi 17266 else 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17268$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17269 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17270 fi 17271 fi 17272 17273 17274 else 17275 17276 # Extract the first word of "swig", so it can be a program name with args. 17277set dummy swig; ac_word=$2 17278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17279$as_echo_n "checking for $ac_word... " >&6; } 17280if ${ac_cv_path_SWIG+:} false; then : 17281 $as_echo_n "(cached) " >&6 17282else 17283 case $SWIG in 17284 [\\/]* | ?:[\\/]*) 17285 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17286 ;; 17287 *) 17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17289for as_dir in $PATH 17290do 17291 IFS=$as_save_IFS 17292 test -z "$as_dir" && as_dir=. 17293 for ac_exec_ext in '' $ac_executable_extensions; do 17294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17295 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17297 break 2 17298 fi 17299done 17300 done 17301IFS=$as_save_IFS 17302 17303 ;; 17304esac 17305fi 17306SWIG=$ac_cv_path_SWIG 17307if test -n "$SWIG"; then 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17309$as_echo "$SWIG" >&6; } 17310else 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17312$as_echo "no" >&6; } 17313fi 17314 17315 17316 if test -z "$SWIG" ; then 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17318$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17319 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17320 elif test -n "" ; then 17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17322$as_echo_n "checking for SWIG version... " >&6; } 17323 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'` 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17325$as_echo "$swig_version" >&6; } 17326 if test -n "$swig_version" ; then 17327 # Calculate the required version number components 17328 required= 17329 required_major=`echo $required | sed 's/[^0-9].*//'` 17330 if test -z "$required_major" ; then 17331 required_major=0 17332 fi 17333 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17334 required_minor=`echo $required | sed 's/[^0-9].*//'` 17335 if test -z "$required_minor" ; then 17336 required_minor=0 17337 fi 17338 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17339 required_patch=`echo $required | sed 's/[^0-9].*//'` 17340 if test -z "$required_patch" ; then 17341 required_patch=0 17342 fi 17343 # Calculate the available version number components 17344 available=$swig_version 17345 available_major=`echo $available | sed 's/[^0-9].*//'` 17346 if test -z "$available_major" ; then 17347 available_major=0 17348 fi 17349 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17350 available_minor=`echo $available | sed 's/[^0-9].*//'` 17351 if test -z "$available_minor" ; then 17352 available_minor=0 17353 fi 17354 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17355 available_patch=`echo $available | sed 's/[^0-9].*//'` 17356 if test -z "$available_patch" ; then 17357 available_patch=0 17358 fi 17359 badversion=0 17360 if test $available_major -lt $required_major ; then 17361 badversion=1 17362 fi 17363 if test $available_major -eq $required_major \ 17364 -a $available_minor -lt $required_minor ; then 17365 badversion=1 17366 fi 17367 if test $available_major -eq $required_major \ 17368 -a $available_minor -eq $required_minor \ 17369 -a $available_patch -lt $required_patch ; then 17370 badversion=1 17371 fi 17372 if test $badversion -eq 1 ; then 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5 17374$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17375 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17376 else 17377 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17378$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17379 SWIG_LIB=`$SWIG -swiglib` 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17381$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17382 fi 17383 else 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17385$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17386 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17387 fi 17388 fi 17389 17390 17391 fi 17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 17393$as_echo_n "checking SWIG... " >&6; } 17394 if test ! -x "$SWIG"; then 17395 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 17396 else 17397 17398$as_echo "#define HAVE_SWIG 1" >>confdefs.h 17399 17400 swig="$SWIG" 17401 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 17403$as_echo "present" >&6; } 17404 17405 # If have Python & SWIG 17406 # Declare PythonMod 17407 if test x_$ub_with_pythonmod != x_no; then 17408 17409$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 17410 17411 WITH_PYTHONMODULE=yes 17412 17413 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 17414 17415 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 17416 17417 PYTHONMOD_INSTALL=pythonmod-install 17418 17419 PYTHONMOD_UNINSTALL=pythonmod-uninstall 17420 17421 fi 17422 17423 # Declare PyUnbound 17424 if test x_$ub_with_pyunbound != x_no; then 17425 17426$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 17427 17428 WITH_PYUNBOUND=yes 17429 17430 PYUNBOUND_OBJ="libunbound_wrap.lo" 17431 17432 PYUNBOUND_TARGET="_unbound.la" 17433 17434 PYUNBOUND_INSTALL=pyunbound-install 17435 17436 PYUNBOUND_UNINSTALL=pyunbound-uninstall 17437 17438 fi 17439 fi 17440 else 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 17442$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 17443 ub_with_pyunbound=no 17444 ub_with_pythonmod=no 17445 fi 17446fi 17447 17448if test "`uname`" = "NetBSD"; then 17449 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 17450 17451fi 17452CONFIG_DATE=`date +%Y%m%d` 17453 17454 17455# Checks for libraries. 17456 17457# libnss 17458USE_NSS="no" 17459 17460# Check whether --with-nss was given. 17461if test "${with_nss+set}" = set; then : 17462 withval=$with_nss; 17463 USE_NSS="yes" 17464 17465$as_echo "#define HAVE_NSS 1" >>confdefs.h 17466 17467 if test "$withval" != "" -a "$withval" != "yes"; then 17468 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 17469 LDFLAGS="$LDFLAGS -L$withval/lib" 17470 17471 if test "x$enable_rpath" = xyes; then 17472 if echo "$withval/lib" | grep "^/" >/dev/null; then 17473 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17474 fi 17475 fi 17476 17477 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 17478 else 17479 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 17480 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 17481 fi 17482 LIBS="$LIBS -lnss3 -lnspr4" 17483 SSLLIB="" 17484 17485 17486fi 17487 17488 17489# libnettle 17490USE_NETTLE="no" 17491 17492# Check whether --with-nettle was given. 17493if test "${with_nettle+set}" = set; then : 17494 withval=$with_nettle; 17495 USE_NETTLE="yes" 17496 17497$as_echo "#define HAVE_NETTLE 1" >>confdefs.h 17498 17499 for ac_header in nettle/dsa-compat.h 17500do : 17501 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 17502" 17503if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then : 17504 cat >>confdefs.h <<_ACEOF 17505#define HAVE_NETTLE_DSA_COMPAT_H 1 17506_ACEOF 17507 17508fi 17509 17510done 17511 17512 if test "$withval" != "" -a "$withval" != "yes"; then 17513 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 17514 LDFLAGS="$LDFLAGS -L$withval/lib" 17515 17516 if test "x$enable_rpath" = xyes; then 17517 if echo "$withval/lib" | grep "^/" >/dev/null; then 17518 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17519 fi 17520 fi 17521 17522 else 17523 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 17524 fi 17525 LIBS="$LIBS -lhogweed -lnettle -lgmp" 17526 SSLLIB="" 17527 17528 17529fi 17530 17531 17532# openssl 17533if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 17534 17535 17536# Check whether --with-ssl was given. 17537if test "${with_ssl+set}" = set; then : 17538 withval=$with_ssl; 17539 17540else 17541 17542 withval="yes" 17543 17544fi 17545 17546 if test x_$withval = x_no; then 17547 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 17548 fi 17549 17550 withval=$withval 17551 if test x_$withval != x_no; then 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 17553$as_echo_n "checking for SSL... " >&6; } 17554 if test x_$withval = x_ -o x_$withval = x_yes; then 17555 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 17556 fi 17557 for dir in $withval; do 17558 ssldir="$dir" 17559 if test -f "$dir/include/openssl/ssl.h"; then 17560 found_ssl="yes" 17561 17562cat >>confdefs.h <<_ACEOF 17563#define HAVE_SSL /**/ 17564_ACEOF 17565 17566 if test "$ssldir" != "/usr"; then 17567 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 17568 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 17569 fi 17570 break; 17571 fi 17572 done 17573 if test x_$found_ssl != x_yes; then 17574 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 17575 else 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 17577$as_echo "found in $ssldir" >&6; } 17578 HAVE_SSL=yes 17579 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 17580 LDFLAGS="$LDFLAGS -L$ssldir/lib" 17581 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 17582 17583 if test "x$enable_rpath" = xyes; then 17584 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 17585 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 17586 fi 17587 fi 17588 17589 fi 17590 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5 17592$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; } 17593 LIBS="$LIBS -lcrypto" 17594 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17596/* end confdefs.h. */ 17597 17598int 17599main () 17600{ 17601 17602 int HMAC_Update(void); 17603 (void)HMAC_Update(); 17604 17605 ; 17606 return 0; 17607} 17608_ACEOF 17609if ac_fn_c_try_link "$LINENO"; then : 17610 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17612$as_echo "yes" >&6; } 17613 17614$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h 17615 17616 17617else 17618 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17620$as_echo "no" >&6; } 17621 # check if -lwsock32 or -lgdi32 are needed. 17622 BAKLIBS="$LIBS" 17623 BAKSSLLIBS="$LIBSSL_LIBS" 17624 LIBS="$LIBS -lgdi32 -lws2_32" 17625 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 17627$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17629/* end confdefs.h. */ 17630 17631int 17632main () 17633{ 17634 17635 int HMAC_Update(void); 17636 (void)HMAC_Update(); 17637 17638 ; 17639 return 0; 17640} 17641_ACEOF 17642if ac_fn_c_try_link "$LINENO"; then : 17643 17644 17645$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h 17646 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17648$as_echo "yes" >&6; } 17649 17650else 17651 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17653$as_echo "no" >&6; } 17654 LIBS="$BAKLIBS" 17655 LIBSSL_LIBS="$BAKSSLLIBS" 17656 LIBS="$LIBS -ldl" 17657 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 17659$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661/* end confdefs.h. */ 17662 17663int 17664main () 17665{ 17666 17667 int HMAC_Update(void); 17668 (void)HMAC_Update(); 17669 17670 ; 17671 return 0; 17672} 17673_ACEOF 17674if ac_fn_c_try_link "$LINENO"; then : 17675 17676 17677$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h 17678 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17680$as_echo "yes" >&6; } 17681 17682else 17683 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17685$as_echo "no" >&6; } 17686 LIBS="$BAKLIBS" 17687 LIBSSL_LIBS="$BAKSSLLIBS" 17688 LIBS="$LIBS -ldl -pthread" 17689 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 17691$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; } 17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17693/* end confdefs.h. */ 17694 17695int 17696main () 17697{ 17698 17699 int HMAC_Update(void); 17700 (void)HMAC_Update(); 17701 17702 ; 17703 return 0; 17704} 17705_ACEOF 17706if ac_fn_c_try_link "$LINENO"; then : 17707 17708 17709$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h 17710 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17712$as_echo "yes" >&6; } 17713 17714else 17715 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17717$as_echo "no" >&6; } 17718 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 17719 17720fi 17721rm -f core conftest.err conftest.$ac_objext \ 17722 conftest$ac_exeext conftest.$ac_ext 17723 17724fi 17725rm -f core conftest.err conftest.$ac_objext \ 17726 conftest$ac_exeext conftest.$ac_ext 17727 17728fi 17729rm -f core conftest.err conftest.$ac_objext \ 17730 conftest$ac_exeext conftest.$ac_ext 17731 17732fi 17733rm -f core conftest.err conftest.$ac_objext \ 17734 conftest$ac_exeext conftest.$ac_ext 17735 fi 17736 17737 17738 fi 17739for ac_header in openssl/ssl.h 17740do : 17741 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 17742" 17743if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 17744 cat >>confdefs.h <<_ACEOF 17745#define HAVE_OPENSSL_SSL_H 1 17746_ACEOF 17747 17748fi 17749 17750done 17751 17752for ac_header in openssl/err.h 17753do : 17754 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 17755" 17756if test "x$ac_cv_header_openssl_err_h" = xyes; then : 17757 cat >>confdefs.h <<_ACEOF 17758#define HAVE_OPENSSL_ERR_H 1 17759_ACEOF 17760 17761fi 17762 17763done 17764 17765for ac_header in openssl/rand.h 17766do : 17767 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 17768" 17769if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 17770 cat >>confdefs.h <<_ACEOF 17771#define HAVE_OPENSSL_RAND_H 1 17772_ACEOF 17773 17774fi 17775 17776done 17777 17778 17779 17780 17781# check if libssl needs libdl 17782BAKLIBS="$LIBS" 17783LIBS="-lssl $LIBS" 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 17785$as_echo_n "checking if libssl needs libdl... " >&6; } 17786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17787/* end confdefs.h. */ 17788 17789/* Override any GCC internal prototype to avoid an error. 17790 Use char because int might match the return type of a GCC 17791 builtin and then its argument prototype would still apply. */ 17792#ifdef __cplusplus 17793extern "C" 17794#endif 17795char SSL_CTX_new (); 17796int 17797main () 17798{ 17799return SSL_CTX_new (); 17800 ; 17801 return 0; 17802} 17803_ACEOF 17804if ac_fn_c_try_link "$LINENO"; then : 17805 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17807$as_echo "no" >&6; } 17808 LIBS="$BAKLIBS" 17809 17810else 17811 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17813$as_echo "yes" >&6; } 17814 LIBS="$BAKLIBS" 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 17816$as_echo_n "checking for library containing dlopen... " >&6; } 17817if ${ac_cv_search_dlopen+:} false; then : 17818 $as_echo_n "(cached) " >&6 17819else 17820 ac_func_search_save_LIBS=$LIBS 17821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17822/* end confdefs.h. */ 17823 17824/* Override any GCC internal prototype to avoid an error. 17825 Use char because int might match the return type of a GCC 17826 builtin and then its argument prototype would still apply. */ 17827#ifdef __cplusplus 17828extern "C" 17829#endif 17830char dlopen (); 17831int 17832main () 17833{ 17834return dlopen (); 17835 ; 17836 return 0; 17837} 17838_ACEOF 17839for ac_lib in '' dl; do 17840 if test -z "$ac_lib"; then 17841 ac_res="none required" 17842 else 17843 ac_res=-l$ac_lib 17844 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17845 fi 17846 if ac_fn_c_try_link "$LINENO"; then : 17847 ac_cv_search_dlopen=$ac_res 17848fi 17849rm -f core conftest.err conftest.$ac_objext \ 17850 conftest$ac_exeext 17851 if ${ac_cv_search_dlopen+:} false; then : 17852 break 17853fi 17854done 17855if ${ac_cv_search_dlopen+:} false; then : 17856 17857else 17858 ac_cv_search_dlopen=no 17859fi 17860rm conftest.$ac_ext 17861LIBS=$ac_func_search_save_LIBS 17862fi 17863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 17864$as_echo "$ac_cv_search_dlopen" >&6; } 17865ac_res=$ac_cv_search_dlopen 17866if test "$ac_res" != no; then : 17867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17868 17869fi 17870 17871 17872fi 17873rm -f core conftest.err conftest.$ac_objext \ 17874 conftest$ac_exeext conftest.$ac_ext 17875SSLLIB="-lssl" 17876 17877# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 17878BAKLIBS="$LIBS" 17879LIBS="-lssl $LIBS" 17880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 17881$as_echo_n "checking if libssl needs -lcrypt32... " >&6; } 17882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17883/* end confdefs.h. */ 17884 17885/* Override any GCC internal prototype to avoid an error. 17886 Use char because int might match the return type of a GCC 17887 builtin and then its argument prototype would still apply. */ 17888#ifdef __cplusplus 17889extern "C" 17890#endif 17891char HMAC_Update (); 17892int 17893main () 17894{ 17895return HMAC_Update (); 17896 ; 17897 return 0; 17898} 17899_ACEOF 17900if ac_fn_c_try_link "$LINENO"; then : 17901 17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17903$as_echo "no" >&6; } 17904 LIBS="$BAKLIBS" 17905 17906else 17907 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17909$as_echo "yes" >&6; } 17910 LIBS="$BAKLIBS" 17911 LIBS="$LIBS -lcrypt32" 17912 17913fi 17914rm -f core conftest.err conftest.$ac_objext \ 17915 conftest$ac_exeext conftest.$ac_ext 17916 17917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 17918$as_echo_n "checking for LibreSSL... " >&6; } 17919if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17921$as_echo "yes" >&6; } 17922 17923$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 17924 17925 # libressl provides these compat functions, but they may also be 17926 # declared by the OS in libc. See if they have been declared. 17927 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 17928if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 17929 ac_have_decl=1 17930else 17931 ac_have_decl=0 17932fi 17933 17934cat >>confdefs.h <<_ACEOF 17935#define HAVE_DECL_STRLCPY $ac_have_decl 17936_ACEOF 17937ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 17938if test "x$ac_cv_have_decl_strlcat" = xyes; then : 17939 ac_have_decl=1 17940else 17941 ac_have_decl=0 17942fi 17943 17944cat >>confdefs.h <<_ACEOF 17945#define HAVE_DECL_STRLCAT $ac_have_decl 17946_ACEOF 17947ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 17948if test "x$ac_cv_have_decl_arc4random" = xyes; then : 17949 ac_have_decl=1 17950else 17951 ac_have_decl=0 17952fi 17953 17954cat >>confdefs.h <<_ACEOF 17955#define HAVE_DECL_ARC4RANDOM $ac_have_decl 17956_ACEOF 17957ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 17958if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 17959 ac_have_decl=1 17960else 17961 ac_have_decl=0 17962fi 17963 17964cat >>confdefs.h <<_ACEOF 17965#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 17966_ACEOF 17967ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" 17968if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 17969 ac_have_decl=1 17970else 17971 ac_have_decl=0 17972fi 17973 17974cat >>confdefs.h <<_ACEOF 17975#define HAVE_DECL_REALLOCARRAY $ac_have_decl 17976_ACEOF 17977 17978else 17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17980$as_echo "no" >&6; } 17981fi 17982for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h 17983do : 17984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17985ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17986" 17987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17988 cat >>confdefs.h <<_ACEOF 17989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17990_ACEOF 17991 17992fi 17993 17994done 17995 17996for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify SSL_CTX_set_tlsext_ticket_key_cb EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex 17997do : 17998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18000if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18001 cat >>confdefs.h <<_ACEOF 18002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18003_ACEOF 18004 18005fi 18006done 18007 18008 18009# these check_funcs need -lssl 18010BAKLIBS="$LIBS" 18011LIBS="-lssl $LIBS" 18012for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites 18013do : 18014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18015ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18016if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18017 cat >>confdefs.h <<_ACEOF 18018#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18019_ACEOF 18020 18021fi 18022done 18023 18024LIBS="$BAKLIBS" 18025 18026ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 18027$ac_includes_default 18028#ifdef HAVE_OPENSSL_ERR_H 18029#include <openssl/err.h> 18030#endif 18031 18032#ifdef HAVE_OPENSSL_RAND_H 18033#include <openssl/rand.h> 18034#endif 18035 18036#ifdef HAVE_OPENSSL_CONF_H 18037#include <openssl/conf.h> 18038#endif 18039 18040#ifdef HAVE_OPENSSL_ENGINE_H 18041#include <openssl/engine.h> 18042#endif 18043#include <openssl/ssl.h> 18044#include <openssl/evp.h> 18045 18046" 18047if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 18048 ac_have_decl=1 18049else 18050 ac_have_decl=0 18051fi 18052 18053cat >>confdefs.h <<_ACEOF 18054#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 18055_ACEOF 18056ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 18057$ac_includes_default 18058#ifdef HAVE_OPENSSL_ERR_H 18059#include <openssl/err.h> 18060#endif 18061 18062#ifdef HAVE_OPENSSL_RAND_H 18063#include <openssl/rand.h> 18064#endif 18065 18066#ifdef HAVE_OPENSSL_CONF_H 18067#include <openssl/conf.h> 18068#endif 18069 18070#ifdef HAVE_OPENSSL_ENGINE_H 18071#include <openssl/engine.h> 18072#endif 18073#include <openssl/ssl.h> 18074#include <openssl/evp.h> 18075 18076" 18077if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 18078 ac_have_decl=1 18079else 18080 ac_have_decl=0 18081fi 18082 18083cat >>confdefs.h <<_ACEOF 18084#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 18085_ACEOF 18086ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 18087$ac_includes_default 18088#ifdef HAVE_OPENSSL_ERR_H 18089#include <openssl/err.h> 18090#endif 18091 18092#ifdef HAVE_OPENSSL_RAND_H 18093#include <openssl/rand.h> 18094#endif 18095 18096#ifdef HAVE_OPENSSL_CONF_H 18097#include <openssl/conf.h> 18098#endif 18099 18100#ifdef HAVE_OPENSSL_ENGINE_H 18101#include <openssl/engine.h> 18102#endif 18103#include <openssl/ssl.h> 18104#include <openssl/evp.h> 18105 18106" 18107if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 18108 ac_have_decl=1 18109else 18110 ac_have_decl=0 18111fi 18112 18113cat >>confdefs.h <<_ACEOF 18114#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 18115_ACEOF 18116 18117fi 18118 18119 18120 18121# Check whether --enable-sha1 was given. 18122if test "${enable_sha1+set}" = set; then : 18123 enableval=$enable_sha1; 18124fi 18125 18126case "$enable_sha1" in 18127 no) 18128 ;; 18129 yes|*) 18130 18131$as_echo "#define USE_SHA1 1" >>confdefs.h 18132 18133 ;; 18134esac 18135 18136 18137# Check whether --enable-sha2 was given. 18138if test "${enable_sha2+set}" = set; then : 18139 enableval=$enable_sha2; 18140fi 18141 18142case "$enable_sha2" in 18143 no) 18144 ;; 18145 yes|*) 18146 18147$as_echo "#define USE_SHA2 1" >>confdefs.h 18148 18149 ;; 18150esac 18151 18152# Check whether --enable-subnet was given. 18153if test "${enable_subnet+set}" = set; then : 18154 enableval=$enable_subnet; 18155fi 18156 18157case "$enable_subnet" in 18158 yes) 18159 18160$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h 18161 18162 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 18163 18164 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 18165 18166 ;; 18167 no|*) 18168 ;; 18169esac 18170 18171# check wether gost also works 18172 18173# Check whether --enable-gost was given. 18174if test "${enable_gost+set}" = set; then : 18175 enableval=$enable_gost; 18176fi 18177 18178use_gost="no" 18179if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18180case "$enable_gost" in 18181 no) 18182 ;; 18183 *) 18184 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 18185if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 18186 : 18187else 18188 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 18189fi 18190 18191 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 18192if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 18193 18194else 18195 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 18196fi 18197 18198 18199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 18200$as_echo_n "checking if GOST works... " >&6; } 18201if test c${cross_compiling} = cno; then 18202BAKCFLAGS="$CFLAGS" 18203if test -n "$ssldir"; then 18204 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 18205fi 18206if test "$cross_compiling" = yes; then : 18207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18209as_fn_error $? "cannot run test program while cross compiling 18210See \`config.log' for more details" "$LINENO" 5; } 18211else 18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18213/* end confdefs.h. */ 18214 18215#include <string.h> 18216#include <openssl/ssl.h> 18217#include <openssl/evp.h> 18218#include <openssl/engine.h> 18219#include <openssl/conf.h> 18220/* routine to load gost (from sldns) */ 18221int load_gost_id(void) 18222{ 18223 static int gost_id = 0; 18224 const EVP_PKEY_ASN1_METHOD* meth; 18225 ENGINE* e; 18226 18227 if(gost_id) return gost_id; 18228 18229 /* see if configuration loaded gost implementation from other engine*/ 18230 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 18231 if(meth) { 18232 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18233 return gost_id; 18234 } 18235 18236 /* see if engine can be loaded already */ 18237 e = ENGINE_by_id("gost"); 18238 if(!e) { 18239 /* load it ourself, in case statically linked */ 18240 ENGINE_load_builtin_engines(); 18241 ENGINE_load_dynamic(); 18242 e = ENGINE_by_id("gost"); 18243 } 18244 if(!e) { 18245 /* no gost engine in openssl */ 18246 return 0; 18247 } 18248 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 18249 ENGINE_finish(e); 18250 ENGINE_free(e); 18251 return 0; 18252 } 18253 18254 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 18255 if(!meth) { 18256 /* algo not found */ 18257 ENGINE_finish(e); 18258 ENGINE_free(e); 18259 return 0; 18260 } 18261 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18262 return gost_id; 18263} 18264int main(void) { 18265 EVP_MD_CTX* ctx; 18266 const EVP_MD* md; 18267 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 18268 const char* str = "Hello world"; 18269 const unsigned char check[] = { 18270 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 18271 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 18272 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 18273 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 18274 }; 18275 OPENSSL_config(NULL); 18276 (void)load_gost_id(); 18277 md = EVP_get_digestbyname("md_gost94"); 18278 if(!md) return 1; 18279 memset(digest, 0, sizeof(digest)); 18280 ctx = EVP_MD_CTX_create(); 18281 if(!ctx) return 2; 18282 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 18283 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 18284 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 18285 /* uncomment to see the hash calculated. 18286 {int i; 18287 for(i=0; i<32; i++) 18288 printf(" %2.2x", (int)digest[i]); 18289 printf("\n");} 18290 */ 18291 if(memcmp(digest, check, sizeof(check)) != 0) 18292 return 6; 18293 return 0; 18294} 18295 18296_ACEOF 18297if ac_fn_c_try_run "$LINENO"; then : 18298 eval "ac_cv_c_gost_works=yes" 18299else 18300 eval "ac_cv_c_gost_works=no" 18301fi 18302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18303 conftest.$ac_objext conftest.beam conftest.$ac_ext 18304fi 18305 18306CFLAGS="$BAKCFLAGS" 18307else 18308eval "ac_cv_c_gost_works=maybe" 18309fi 18310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 18311$as_echo "$ac_cv_c_gost_works" >&6; } 18312 18313 if test "$ac_cv_c_gost_works" != no; then 18314 use_gost="yes" 18315 18316$as_echo "#define USE_GOST 1" >>confdefs.h 18317 18318 fi 18319 ;; 18320esac 18321fi 18322# Check whether --enable-ecdsa was given. 18323if test "${enable_ecdsa+set}" = set; then : 18324 enableval=$enable_ecdsa; 18325fi 18326 18327use_ecdsa="no" 18328case "$enable_ecdsa" in 18329 no) 18330 ;; 18331 *) 18332 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18333 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 18334if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 18335 18336else 18337 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18338fi 18339 18340 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 18341if test "x$ac_cv_func_SHA384_Init" = xyes; then : 18342 18343else 18344 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18345fi 18346 18347 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 18348#include <openssl/evp.h> 18349 18350" 18351if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 18352 ac_have_decl=1 18353else 18354 ac_have_decl=0 18355fi 18356 18357cat >>confdefs.h <<_ACEOF 18358#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 18359_ACEOF 18360if test $ac_have_decl = 1; then : 18361 18362else 18363 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18364fi 18365ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 18366#include <openssl/evp.h> 18367 18368" 18369if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 18370 ac_have_decl=1 18371else 18372 ac_have_decl=0 18373fi 18374 18375cat >>confdefs.h <<_ACEOF 18376#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 18377_ACEOF 18378if test $ac_have_decl = 1; then : 18379 18380else 18381 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18382fi 18383 18384 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 18386$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 18387 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 18388 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18390$as_echo "no" >&6; } 18391 18392cat >>confdefs.h <<_ACEOF 18393#define USE_ECDSA_EVP_WORKAROUND 1 18394_ACEOF 18395 18396 else 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18398$as_echo "yes" >&6; } 18399 fi 18400 else 18401 # not OpenSSL, thus likely LibreSSL, which supports it 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18403$as_echo "yes" >&6; } 18404 fi 18405 fi 18406 # we now know we have ECDSA and the required curves. 18407 18408cat >>confdefs.h <<_ACEOF 18409#define USE_ECDSA 1 18410_ACEOF 18411 18412 use_ecdsa="yes" 18413 ;; 18414esac 18415 18416# Check whether --enable-dsa was given. 18417if test "${enable_dsa+set}" = set; then : 18418 enableval=$enable_dsa; 18419fi 18420 18421use_dsa="no" 18422case "$enable_dsa" in 18423 no) 18424 ;; 18425 *) 18426 # detect if DSA is supported, and turn it off if not. 18427 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18428 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 18429if test "x$ac_cv_func_DSA_SIG_new" = xyes; then : 18430 18431 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh` 18432ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 18433$ac_includes_default 18434#ifdef HAVE_OPENSSL_ERR_H 18435#include <openssl/err.h> 18436#endif 18437 18438#ifdef HAVE_OPENSSL_RAND_H 18439#include <openssl/rand.h> 18440#endif 18441 18442#ifdef HAVE_OPENSSL_CONF_H 18443#include <openssl/conf.h> 18444#endif 18445 18446#ifdef HAVE_OPENSSL_ENGINE_H 18447#include <openssl/engine.h> 18448#endif 18449 18450" 18451if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 18452 18453 18454cat >>confdefs.h <<_ACEOF 18455#define USE_DSA 1 18456_ACEOF 18457 18458 18459else 18460 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 18461 fi 18462fi 18463 18464 18465else 18466 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 18467 fi 18468fi 18469 18470 else 18471 18472cat >>confdefs.h <<_ACEOF 18473#define USE_DSA 1 18474_ACEOF 18475 18476 fi 18477 ;; 18478esac 18479 18480# Check whether --enable-ed25519 was given. 18481if test "${enable_ed25519+set}" = set; then : 18482 enableval=$enable_ed25519; 18483fi 18484 18485use_ed25519="no" 18486case "$enable_ed25519" in 18487 no) 18488 ;; 18489 *) 18490 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18491 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 18492#include <openssl/evp.h> 18493 18494" 18495if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then : 18496 ac_have_decl=1 18497else 18498 ac_have_decl=0 18499fi 18500 18501cat >>confdefs.h <<_ACEOF 18502#define HAVE_DECL_NID_ED25519 $ac_have_decl 18503_ACEOF 18504if test $ac_have_decl = 1; then : 18505 18506 use_ed25519="yes" 18507 18508else 18509 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 18510 fi 18511fi 18512 18513 fi 18514 if test $USE_NETTLE = "yes"; then 18515 for ac_header in nettle/eddsa.h 18516do : 18517 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 18518" 18519if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then : 18520 cat >>confdefs.h <<_ACEOF 18521#define HAVE_NETTLE_EDDSA_H 1 18522_ACEOF 18523 use_ed25519="yes" 18524fi 18525 18526done 18527 18528 fi 18529 if test $use_ed25519 = "yes"; then 18530 18531cat >>confdefs.h <<_ACEOF 18532#define USE_ED25519 1 18533_ACEOF 18534 18535 fi 18536 ;; 18537esac 18538 18539# Check whether --enable-ed448 was given. 18540if test "${enable_ed448+set}" = set; then : 18541 enableval=$enable_ed448; 18542fi 18543 18544use_ed448="no" 18545case "$enable_ed448" in 18546 no) 18547 ;; 18548 *) 18549 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18550 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 18551#include <openssl/evp.h> 18552 18553" 18554if test "x$ac_cv_have_decl_NID_ED448" = xyes; then : 18555 ac_have_decl=1 18556else 18557 ac_have_decl=0 18558fi 18559 18560cat >>confdefs.h <<_ACEOF 18561#define HAVE_DECL_NID_ED448 $ac_have_decl 18562_ACEOF 18563if test $ac_have_decl = 1; then : 18564 18565 use_ed448="yes" 18566 18567else 18568 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 18569 fi 18570fi 18571 18572 fi 18573 if test $use_ed448 = "yes"; then 18574 18575cat >>confdefs.h <<_ACEOF 18576#define USE_ED448 1 18577_ACEOF 18578 18579 fi 18580 ;; 18581esac 18582 18583# Check whether --enable-event-api was given. 18584if test "${enable_event_api+set}" = set; then : 18585 enableval=$enable_event_api; 18586fi 18587 18588case "$enable_event_api" in 18589 yes) 18590 UNBOUND_EVENT_INSTALL=unbound-event-install 18591 18592 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 18593 18594 ;; 18595 *) 18596 ;; 18597esac 18598 18599# Check whether --enable-tfo-client was given. 18600if test "${enable_tfo_client+set}" = set; then : 18601 enableval=$enable_tfo_client; 18602fi 18603 18604case "$enable_tfo_client" in 18605 yes) 18606 case `uname` in 18607 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 18608#include <netinet/tcp.h> 18609 18610" 18611if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then : 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 18613$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 18614else 18615 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 18616fi 18617 18618 18619cat >>confdefs.h <<_ACEOF 18620#define USE_MSG_FASTOPEN 1 18621_ACEOF 18622 18623 ;; 18624 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 18625#include <sys/socket.h> 18626 18627" 18628if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then : 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 18630$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 18631else 18632 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 18633fi 18634 18635 18636cat >>confdefs.h <<_ACEOF 18637#define USE_OSX_MSG_FASTOPEN 1 18638_ACEOF 18639 18640 ;; 18641 esac 18642 ;; 18643 no|*) 18644 ;; 18645esac 18646 18647# Check whether --enable-tfo-server was given. 18648if test "${enable_tfo_server+set}" = set; then : 18649 enableval=$enable_tfo_server; 18650fi 18651 18652case "$enable_tfo_server" in 18653 yes) 18654 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 18655#include <netinet/tcp.h> 18656 18657" 18658if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then : 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 18660$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 18661else 18662 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 18663fi 18664 18665 18666cat >>confdefs.h <<_ACEOF 18667#define USE_TCP_FASTOPEN 1 18668_ACEOF 18669 18670 ;; 18671 no|*) 18672 ;; 18673esac 18674 18675# check for libevent 18676 18677# Check whether --with-libevent was given. 18678if test "${with_libevent+set}" = set; then : 18679 withval=$with_libevent; 18680else 18681 withval="no" 18682fi 18683 18684if test x_$withval = x_yes -o x_$withval != x_no; then 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 18686$as_echo_n "checking for libevent... " >&6; } 18687 if test x_$withval = x_ -o x_$withval = x_yes; then 18688 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 18689 fi 18690 for dir in $withval; do 18691 thedir="$dir" 18692 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 18693 found_libevent="yes" 18694 if test "$thedir" != "/usr"; then 18695 CPPFLAGS="$CPPFLAGS -I$thedir/include" 18696 fi 18697 break; 18698 fi 18699 done 18700 if test x_$found_libevent != x_yes; then 18701 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 18702 # libevent source directory 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 18704$as_echo "found in $thedir" >&6; } 18705 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 18706 BAK_LDFLAGS_SET="1" 18707 BAK_LDFLAGS="$LDFLAGS" 18708 # remove evdns from linking 18709 mkdir build >/dev/null 2>&1 18710 mkdir build/libevent >/dev/null 2>&1 18711 mkdir build/libevent/.libs >/dev/null 2>&1 18712 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 18713 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 18714 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 18715 cp $ev_files_o build/libevent 18716 cp $ev_files_lo build/libevent 18717 cp $ev_files_libso build/libevent/.libs 18718 LATE_LDFLAGS="build/libevent/*.lo -lm" 18719 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 18720 else 18721 as_fn_error $? "Cannot find the libevent library in $withval 18722You can restart ./configure --with-libevent=no to use a builtin alternative. 18723Please note that this alternative is not as capable as libevent when using 18724large outgoing port ranges. " "$LINENO" 5 18725 fi 18726 else 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 18728$as_echo "found in $thedir" >&6; } 18729 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 18730 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 18731 18732 if test "x$enable_rpath" = xyes; then 18733 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 18734 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 18735 fi 18736 fi 18737 18738 else 18739 if test "$thedir" != "/usr" -a "$thedir" != ""; then 18740 LDFLAGS="$LDFLAGS -L$thedir/lib" 18741 18742 if test "x$enable_rpath" = xyes; then 18743 if echo "$thedir/lib" | grep "^/" >/dev/null; then 18744 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 18745 fi 18746 fi 18747 18748 fi 18749 fi 18750 fi 18751 # check for library used by libevent after 1.3c 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 18753$as_echo_n "checking for library containing clock_gettime... " >&6; } 18754if ${ac_cv_search_clock_gettime+:} false; then : 18755 $as_echo_n "(cached) " >&6 18756else 18757 ac_func_search_save_LIBS=$LIBS 18758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18759/* end confdefs.h. */ 18760 18761/* Override any GCC internal prototype to avoid an error. 18762 Use char because int might match the return type of a GCC 18763 builtin and then its argument prototype would still apply. */ 18764#ifdef __cplusplus 18765extern "C" 18766#endif 18767char clock_gettime (); 18768int 18769main () 18770{ 18771return clock_gettime (); 18772 ; 18773 return 0; 18774} 18775_ACEOF 18776for ac_lib in '' rt; do 18777 if test -z "$ac_lib"; then 18778 ac_res="none required" 18779 else 18780 ac_res=-l$ac_lib 18781 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18782 fi 18783 if ac_fn_c_try_link "$LINENO"; then : 18784 ac_cv_search_clock_gettime=$ac_res 18785fi 18786rm -f core conftest.err conftest.$ac_objext \ 18787 conftest$ac_exeext 18788 if ${ac_cv_search_clock_gettime+:} false; then : 18789 break 18790fi 18791done 18792if ${ac_cv_search_clock_gettime+:} false; then : 18793 18794else 18795 ac_cv_search_clock_gettime=no 18796fi 18797rm conftest.$ac_ext 18798LIBS=$ac_func_search_save_LIBS 18799fi 18800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 18801$as_echo "$ac_cv_search_clock_gettime" >&6; } 18802ac_res=$ac_cv_search_clock_gettime 18803if test "$ac_res" != no; then : 18804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18805 18806fi 18807 18808 18809 # is the event.h header libev or libevent? 18810 for ac_header in event.h 18811do : 18812 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 18813" 18814if test "x$ac_cv_header_event_h" = xyes; then : 18815 cat >>confdefs.h <<_ACEOF 18816#define HAVE_EVENT_H 1 18817_ACEOF 18818 18819fi 18820 18821done 18822 18823 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 18824#include <event.h> 18825 18826" 18827if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 18828 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 18830$as_echo_n "checking for library containing event_set... " >&6; } 18831if ${ac_cv_search_event_set+:} false; then : 18832 $as_echo_n "(cached) " >&6 18833else 18834 ac_func_search_save_LIBS=$LIBS 18835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18836/* end confdefs.h. */ 18837 18838/* Override any GCC internal prototype to avoid an error. 18839 Use char because int might match the return type of a GCC 18840 builtin and then its argument prototype would still apply. */ 18841#ifdef __cplusplus 18842extern "C" 18843#endif 18844char event_set (); 18845int 18846main () 18847{ 18848return event_set (); 18849 ; 18850 return 0; 18851} 18852_ACEOF 18853for ac_lib in '' ev; do 18854 if test -z "$ac_lib"; then 18855 ac_res="none required" 18856 else 18857 ac_res=-l$ac_lib 18858 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18859 fi 18860 if ac_fn_c_try_link "$LINENO"; then : 18861 ac_cv_search_event_set=$ac_res 18862fi 18863rm -f core conftest.err conftest.$ac_objext \ 18864 conftest$ac_exeext 18865 if ${ac_cv_search_event_set+:} false; then : 18866 break 18867fi 18868done 18869if ${ac_cv_search_event_set+:} false; then : 18870 18871else 18872 ac_cv_search_event_set=no 18873fi 18874rm conftest.$ac_ext 18875LIBS=$ac_func_search_save_LIBS 18876fi 18877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 18878$as_echo "$ac_cv_search_event_set" >&6; } 18879ac_res=$ac_cv_search_event_set 18880if test "$ac_res" != no; then : 18881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18882 18883fi 18884 18885 18886else 18887 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 18889$as_echo_n "checking for library containing event_set... " >&6; } 18890if ${ac_cv_search_event_set+:} false; then : 18891 $as_echo_n "(cached) " >&6 18892else 18893 ac_func_search_save_LIBS=$LIBS 18894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18895/* end confdefs.h. */ 18896 18897/* Override any GCC internal prototype to avoid an error. 18898 Use char because int might match the return type of a GCC 18899 builtin and then its argument prototype would still apply. */ 18900#ifdef __cplusplus 18901extern "C" 18902#endif 18903char event_set (); 18904int 18905main () 18906{ 18907return event_set (); 18908 ; 18909 return 0; 18910} 18911_ACEOF 18912for ac_lib in '' event; do 18913 if test -z "$ac_lib"; then 18914 ac_res="none required" 18915 else 18916 ac_res=-l$ac_lib 18917 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18918 fi 18919 if ac_fn_c_try_link "$LINENO"; then : 18920 ac_cv_search_event_set=$ac_res 18921fi 18922rm -f core conftest.err conftest.$ac_objext \ 18923 conftest$ac_exeext 18924 if ${ac_cv_search_event_set+:} false; then : 18925 break 18926fi 18927done 18928if ${ac_cv_search_event_set+:} false; then : 18929 18930else 18931 ac_cv_search_event_set=no 18932fi 18933rm conftest.$ac_ext 18934LIBS=$ac_func_search_save_LIBS 18935fi 18936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 18937$as_echo "$ac_cv_search_event_set" >&6; } 18938ac_res=$ac_cv_search_event_set 18939if test "$ac_res" != no; then : 18940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18941 18942fi 18943 18944 18945fi 18946 18947 for ac_func in event_base_free 18948do : 18949 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 18950if test "x$ac_cv_func_event_base_free" = xyes; then : 18951 cat >>confdefs.h <<_ACEOF 18952#define HAVE_EVENT_BASE_FREE 1 18953_ACEOF 18954 18955fi 18956done 18957 # only in libevent 1.2 and later 18958 for ac_func in event_base_once 18959do : 18960 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 18961if test "x$ac_cv_func_event_base_once" = xyes; then : 18962 cat >>confdefs.h <<_ACEOF 18963#define HAVE_EVENT_BASE_ONCE 1 18964_ACEOF 18965 18966fi 18967done 18968 # only in libevent 1.4.1 and later 18969 for ac_func in event_base_new 18970do : 18971 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 18972if test "x$ac_cv_func_event_base_new" = xyes; then : 18973 cat >>confdefs.h <<_ACEOF 18974#define HAVE_EVENT_BASE_NEW 1 18975_ACEOF 18976 18977fi 18978done 18979 # only in libevent 1.4.1 and later 18980 for ac_func in event_base_get_method 18981do : 18982 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 18983if test "x$ac_cv_func_event_base_get_method" = xyes; then : 18984 cat >>confdefs.h <<_ACEOF 18985#define HAVE_EVENT_BASE_GET_METHOD 1 18986_ACEOF 18987 18988fi 18989done 18990 # only in libevent 1.4.3 and later 18991 for ac_func in ev_loop 18992do : 18993 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 18994if test "x$ac_cv_func_ev_loop" = xyes; then : 18995 cat >>confdefs.h <<_ACEOF 18996#define HAVE_EV_LOOP 1 18997_ACEOF 18998 18999fi 19000done 19001 # only in libev. (tested on 3.51) 19002 for ac_func in ev_default_loop 19003do : 19004 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 19005if test "x$ac_cv_func_ev_default_loop" = xyes; then : 19006 cat >>confdefs.h <<_ACEOF 19007#define HAVE_EV_DEFAULT_LOOP 1 19008_ACEOF 19009 19010fi 19011done 19012 # only in libev. (tested on 4.00) 19013 PC_LIBEVENT_DEPENDENCY="libevent" 19014 19015 if test -n "$BAK_LDFLAGS_SET"; then 19016 LDFLAGS="$BAK_LDFLAGS" 19017 fi 19018else 19019 19020$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 19021 19022fi 19023 19024# check for libexpat 19025 19026# Check whether --with-libexpat was given. 19027if test "${with_libexpat+set}" = set; then : 19028 withval=$with_libexpat; 19029else 19030 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19031fi 19032 19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 19034$as_echo_n "checking for libexpat... " >&6; } 19035found_libexpat="no" 19036for dir in $withval ; do 19037 if test -f "$dir/include/expat.h"; then 19038 found_libexpat="yes" 19039 if test "$dir" != "/usr"; then 19040 CPPFLAGS="$CPPFLAGS -I$dir/include" 19041 LDFLAGS="$LDFLAGS -L$dir/lib" 19042 fi 19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19044$as_echo "found in $dir" >&6; } 19045 break; 19046 fi 19047done 19048if test x_$found_libexpat != x_yes; then 19049 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 19050fi 19051for ac_header in expat.h 19052do : 19053 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 19054" 19055if test "x$ac_cv_header_expat_h" = xyes; then : 19056 cat >>confdefs.h <<_ACEOF 19057#define HAVE_EXPAT_H 1 19058_ACEOF 19059 19060fi 19061 19062done 19063 19064ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 19065#include <expat.h> 19066 19067" 19068if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then : 19069 ac_have_decl=1 19070else 19071 ac_have_decl=0 19072fi 19073 19074cat >>confdefs.h <<_ACEOF 19075#define HAVE_DECL_XML_STOPPARSER $ac_have_decl 19076_ACEOF 19077 19078 19079# hiredis (redis C client for cachedb) 19080 19081# Check whether --with-libhiredis was given. 19082if test "${with_libhiredis+set}" = set; then : 19083 withval=$with_libhiredis; 19084else 19085 withval="no" 19086fi 19087 19088found_libhiredis="no" 19089if test x_$withval = x_yes -o x_$withval != x_no; then 19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 19091$as_echo_n "checking for libhiredis... " >&6; } 19092 if test x_$withval = x_ -o x_$withval = x_yes; then 19093 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19094 fi 19095 for dir in $withval ; do 19096 if test -f "$dir/include/hiredis/hiredis.h"; then 19097 found_libhiredis="yes" 19098 if test "$dir" != "/usr"; then 19099 CPPFLAGS="$CPPFLAGS -I$dir/include" 19100 LDFLAGS="$LDFLAGS -L$dir/lib" 19101 fi 19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19103$as_echo "found in $dir" >&6; } 19104 19105$as_echo "#define USE_REDIS 1" >>confdefs.h 19106 19107 LIBS="$LIBS -lhiredis" 19108 break; 19109 fi 19110 done 19111 if test x_$found_libhiredis != x_yes; then 19112 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 19113 fi 19114 for ac_header in hiredis/hiredis.h 19115do : 19116 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 19117" 19118if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then : 19119 cat >>confdefs.h <<_ACEOF 19120#define HAVE_HIREDIS_HIREDIS_H 1 19121_ACEOF 19122 19123fi 19124 19125done 19126 19127 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 19128 #include <hiredis/hiredis.h> 19129 19130" 19131if test "x$ac_cv_have_decl_redisConnect" = xyes; then : 19132 ac_have_decl=1 19133else 19134 ac_have_decl=0 19135fi 19136 19137cat >>confdefs.h <<_ACEOF 19138#define HAVE_DECL_REDISCONNECT $ac_have_decl 19139_ACEOF 19140 19141fi 19142 19143# set static linking if requested 19144 19145staticexe="" 19146# Check whether --enable-static-exe was given. 19147if test "${enable_static_exe+set}" = set; then : 19148 enableval=$enable_static_exe; 19149fi 19150 19151if test x_$enable_static_exe = x_yes; then 19152 staticexe="-static" 19153 if test "$on_mingw" = yes; then 19154 staticexe="-all-static" 19155 # for static compile, include gdi32 and zlib here. 19156 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19157 : 19158 else 19159 LIBS="$LIBS -lgdi32" 19160 fi 19161 LIBS="$LIBS -lz" 19162 fi 19163fi 19164 19165# Include systemd.m4 - begin 19166# macros for configuring systemd 19167# Copyright 2015, Sami Kerola, CloudFlare. 19168# BSD licensed. 19169# Check whether --enable-systemd was given. 19170if test "${enable_systemd+set}" = set; then : 19171 enableval=$enable_systemd; 19172else 19173 enable_systemd=no 19174fi 19175 19176have_systemd=no 19177if test "x$enable_systemd" != xno; then : 19178 19179 19180 19181pkg_failed=no 19182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 19183$as_echo_n "checking for SYSTEMD... " >&6; } 19184 19185if test -n "$SYSTEMD_CFLAGS"; then 19186 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 19187 elif test -n "$PKG_CONFIG"; then 19188 if test -n "$PKG_CONFIG" && \ 19189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 19190 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 19191 ac_status=$? 19192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19193 test $ac_status = 0; }; then 19194 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 19195 test "x$?" != "x0" && pkg_failed=yes 19196else 19197 pkg_failed=yes 19198fi 19199 else 19200 pkg_failed=untried 19201fi 19202if test -n "$SYSTEMD_LIBS"; then 19203 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 19204 elif test -n "$PKG_CONFIG"; then 19205 if test -n "$PKG_CONFIG" && \ 19206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 19207 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 19208 ac_status=$? 19209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19210 test $ac_status = 0; }; then 19211 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 19212 test "x$?" != "x0" && pkg_failed=yes 19213else 19214 pkg_failed=yes 19215fi 19216 else 19217 pkg_failed=untried 19218fi 19219 19220 19221 19222if test $pkg_failed = yes; then 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19224$as_echo "no" >&6; } 19225 19226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19227 _pkg_short_errors_supported=yes 19228else 19229 _pkg_short_errors_supported=no 19230fi 19231 if test $_pkg_short_errors_supported = yes; then 19232 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 19233 else 19234 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 19235 fi 19236 # Put the nasty error message in config.log where it belongs 19237 echo "$SYSTEMD_PKG_ERRORS" >&5 19238 19239 have_systemd=no 19240elif test $pkg_failed = untried; then 19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19242$as_echo "no" >&6; } 19243 have_systemd=no 19244else 19245 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 19246 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19248$as_echo "yes" >&6; } 19249 have_systemd=yes 19250fi 19251 if test "x$have_systemd" != "xyes"; then : 19252 19253 19254pkg_failed=no 19255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 19256$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 19257 19258if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 19259 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 19260 elif test -n "$PKG_CONFIG"; then 19261 if test -n "$PKG_CONFIG" && \ 19262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 19263 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 19264 ac_status=$? 19265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19266 test $ac_status = 0; }; then 19267 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 19268 test "x$?" != "x0" && pkg_failed=yes 19269else 19270 pkg_failed=yes 19271fi 19272 else 19273 pkg_failed=untried 19274fi 19275if test -n "$SYSTEMD_DAEMON_LIBS"; then 19276 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 19277 elif test -n "$PKG_CONFIG"; then 19278 if test -n "$PKG_CONFIG" && \ 19279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 19280 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 19281 ac_status=$? 19282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19283 test $ac_status = 0; }; then 19284 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 19285 test "x$?" != "x0" && pkg_failed=yes 19286else 19287 pkg_failed=yes 19288fi 19289 else 19290 pkg_failed=untried 19291fi 19292 19293 19294 19295if test $pkg_failed = yes; then 19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19297$as_echo "no" >&6; } 19298 19299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19300 _pkg_short_errors_supported=yes 19301else 19302 _pkg_short_errors_supported=no 19303fi 19304 if test $_pkg_short_errors_supported = yes; then 19305 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 19306 else 19307 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 19308 fi 19309 # Put the nasty error message in config.log where it belongs 19310 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 19311 19312 have_systemd_daemon=no 19313elif test $pkg_failed = untried; then 19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19315$as_echo "no" >&6; } 19316 have_systemd_daemon=no 19317else 19318 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 19319 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19321$as_echo "yes" >&6; } 19322 have_systemd_daemon=yes 19323fi 19324 if test "x$have_systemd_daemon" = "xyes"; then : 19325 have_systemd=yes 19326fi 19327 19328fi 19329 case $enable_systemd:$have_systemd in #( 19330 yes:no) : 19331 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 19332 *:yes) : 19333 19334$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 19335 19336 LIBS="$LIBS $SYSTEMD_LIBS" 19337 19338 ;; #( 19339 *) : 19340 ;; 19341esac 19342 19343 19344fi 19345 if test "x$have_systemd" = xyes; then 19346 USE_SYSTEMD_TRUE= 19347 USE_SYSTEMD_FALSE='#' 19348else 19349 USE_SYSTEMD_TRUE='#' 19350 USE_SYSTEMD_FALSE= 19351fi 19352 19353 19354# Include systemd.m4 - end 19355 19356# set lock checking if requested 19357# Check whether --enable-lock_checks was given. 19358if test "${enable_lock_checks+set}" = set; then : 19359 enableval=$enable_lock_checks; 19360fi 19361 19362if test x_$enable_lock_checks = x_yes; then 19363 19364$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 19365 19366 CHECKLOCK_OBJ="checklocks.lo" 19367 19368fi 19369 19370 19371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 19372$as_echo_n "checking for getaddrinfo... " >&6; } 19373ac_cv_func_getaddrinfo=no 19374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19375/* end confdefs.h. */ 19376 19377#ifdef __cplusplus 19378extern "C" 19379{ 19380#endif 19381char* getaddrinfo(); 19382char* (*f) () = getaddrinfo; 19383#ifdef __cplusplus 19384} 19385#endif 19386int main() { 19387 ; 19388 return 0; 19389} 19390 19391_ACEOF 19392if ac_fn_c_try_link "$LINENO"; then : 19393 ac_cv_func_getaddrinfo="yes" 19394if test "$ac_cv_header_windows_h" = "yes"; then 19395 19396$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19397 19398 USE_WINSOCK="1" 19399 if echo $LIBS | grep 'lws2_32' >/dev/null; then 19400 : 19401 else 19402 LIBS="$LIBS -lws2_32" 19403 fi 19404fi 19405 19406else 19407 ORIGLIBS="$LIBS" 19408LIBS="$LIBS -lws2_32" 19409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19410/* end confdefs.h. */ 19411 19412#ifdef HAVE_WS2TCPIP_H 19413#include <ws2tcpip.h> 19414#endif 19415 19416int 19417main () 19418{ 19419 19420 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19421 19422 19423 ; 19424 return 0; 19425} 19426_ACEOF 19427if ac_fn_c_try_link "$LINENO"; then : 19428 19429ac_cv_func_getaddrinfo="yes" 19430 19431$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19432 19433USE_WINSOCK="1" 19434 19435else 19436 19437ac_cv_func_getaddrinfo="no" 19438LIBS="$ORIGLIBS" 19439 19440fi 19441rm -f core conftest.err conftest.$ac_objext \ 19442 conftest$ac_exeext conftest.$ac_ext 19443 19444fi 19445rm -f core conftest.err conftest.$ac_objext \ 19446 conftest$ac_exeext conftest.$ac_ext 19447 19448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 19449$as_echo "$ac_cv_func_getaddrinfo" >&6; } 19450if test $ac_cv_func_getaddrinfo = yes; then 19451 19452$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 19453 19454fi 19455 19456if test "$USE_WINSOCK" = 1; then 19457 19458$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 19459 19460 for ac_header in iphlpapi.h 19461do : 19462 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 19463#include <windows.h> 19464 19465" 19466if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 19467 cat >>confdefs.h <<_ACEOF 19468#define HAVE_IPHLPAPI_H 1 19469_ACEOF 19470 19471fi 19472 19473done 19474 19475 if test -n "$ac_tool_prefix"; then 19476 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 19477set dummy ${ac_tool_prefix}windres; ac_word=$2 19478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19479$as_echo_n "checking for $ac_word... " >&6; } 19480if ${ac_cv_prog_WINDRES+:} false; then : 19481 $as_echo_n "(cached) " >&6 19482else 19483 if test -n "$WINDRES"; then 19484 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 19485else 19486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19487for as_dir in $PATH 19488do 19489 IFS=$as_save_IFS 19490 test -z "$as_dir" && as_dir=. 19491 for ac_exec_ext in '' $ac_executable_extensions; do 19492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19493 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 19494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19495 break 2 19496 fi 19497done 19498 done 19499IFS=$as_save_IFS 19500 19501fi 19502fi 19503WINDRES=$ac_cv_prog_WINDRES 19504if test -n "$WINDRES"; then 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 19506$as_echo "$WINDRES" >&6; } 19507else 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19509$as_echo "no" >&6; } 19510fi 19511 19512 19513fi 19514if test -z "$ac_cv_prog_WINDRES"; then 19515 ac_ct_WINDRES=$WINDRES 19516 # Extract the first word of "windres", so it can be a program name with args. 19517set dummy windres; ac_word=$2 19518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19519$as_echo_n "checking for $ac_word... " >&6; } 19520if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 19521 $as_echo_n "(cached) " >&6 19522else 19523 if test -n "$ac_ct_WINDRES"; then 19524 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 19525else 19526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19527for as_dir in $PATH 19528do 19529 IFS=$as_save_IFS 19530 test -z "$as_dir" && as_dir=. 19531 for ac_exec_ext in '' $ac_executable_extensions; do 19532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19533 ac_cv_prog_ac_ct_WINDRES="windres" 19534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19535 break 2 19536 fi 19537done 19538 done 19539IFS=$as_save_IFS 19540 19541fi 19542fi 19543ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 19544if test -n "$ac_ct_WINDRES"; then 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 19546$as_echo "$ac_ct_WINDRES" >&6; } 19547else 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19549$as_echo "no" >&6; } 19550fi 19551 19552 if test "x$ac_ct_WINDRES" = x; then 19553 WINDRES="" 19554 else 19555 case $cross_compiling:$ac_tool_warned in 19556yes:) 19557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19559ac_tool_warned=yes ;; 19560esac 19561 WINDRES=$ac_ct_WINDRES 19562 fi 19563else 19564 WINDRES="$ac_cv_prog_WINDRES" 19565fi 19566 19567 LIBS="$LIBS -liphlpapi -lcrypt32" 19568 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 19569 19570 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 19571 19572 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 19573 19574 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 19575 19576 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 19577 19578 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 19579 19580 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 19581 19582 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 19583 19584fi 19585if test $ac_cv_func_getaddrinfo = no; then 19586 case " $LIBOBJS " in 19587 *" fake-rfc2553.$ac_objext "* ) ;; 19588 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 19589 ;; 19590esac 19591 19592fi 19593# check after getaddrinfo for its libraries 19594 19595# check ioctlsocket 19596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 19597$as_echo_n "checking for ioctlsocket... " >&6; } 19598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19599/* end confdefs.h. */ 19600 19601#ifdef HAVE_WINSOCK2_H 19602#include <winsock2.h> 19603#endif 19604 19605int 19606main () 19607{ 19608 19609 (void)ioctlsocket(0, 0, NULL); 19610 19611 ; 19612 return 0; 19613} 19614_ACEOF 19615if ac_fn_c_try_link "$LINENO"; then : 19616 19617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19618$as_echo "yes" >&6; } 19619 19620$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 19621 19622 19623else 19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19625$as_echo "no" >&6; } 19626fi 19627rm -f core conftest.err conftest.$ac_objext \ 19628 conftest$ac_exeext conftest.$ac_ext 19629 19630 19631# see if daemon(3) exists, and if it is deprecated. 19632for ac_func in daemon 19633do : 19634 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 19635if test "x$ac_cv_func_daemon" = xyes; then : 19636 cat >>confdefs.h <<_ACEOF 19637#define HAVE_DAEMON 1 19638_ACEOF 19639 19640fi 19641done 19642 19643if test $ac_cv_func_daemon = yes; then 19644 19645 19646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 19647$as_echo_n "checking if daemon is deprecated... " >&6; } 19648cache=`echo daemon | sed 'y%.=/+-%___p_%'` 19649if eval \${cv_cc_deprecated_$cache+:} false; then : 19650 $as_echo_n "(cached) " >&6 19651else 19652 19653echo ' 19654#include <stdlib.h> 19655' >conftest.c 19656echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 19657if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 19658eval "cv_cc_deprecated_$cache=no" 19659else 19660eval "cv_cc_deprecated_$cache=yes" 19661fi 19662rm -f conftest conftest.o conftest.c 19663 19664fi 19665 19666if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 19667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19668$as_echo "yes" >&6; } 19669 19670cat >>confdefs.h <<_ACEOF 19671#define DEPRECATED_DAEMON 1 19672_ACEOF 19673 19674: 19675 19676else 19677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19678$as_echo "no" >&6; } 19679: 19680 19681fi 19682 19683fi 19684 19685ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 19686$ac_includes_default 19687#ifdef HAVE_SYS_UN_H 19688#include <sys/un.h> 19689#endif 19690 19691" 19692if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 19693 19694cat >>confdefs.h <<_ACEOF 19695#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 19696_ACEOF 19697 19698 19699fi 19700 19701ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 19702$ac_includes_default 19703#if HAVE_SYS_PARAM_H 19704#include <sys/param.h> 19705#endif 19706 19707#ifdef HAVE_SYS_SOCKET_H 19708#include <sys/socket.h> 19709#endif 19710 19711#ifdef HAVE_SYS_UIO_H 19712#include <sys/uio.h> 19713#endif 19714 19715#ifdef HAVE_NETINET_IN_H 19716#include <netinet/in.h> 19717#endif 19718 19719#ifdef HAVE_NETINET_TCP_H 19720#include <netinet/tcp.h> 19721#endif 19722 19723#ifdef HAVE_ARPA_INET_H 19724#include <arpa/inet.h> 19725#endif 19726 19727#ifdef HAVE_WINSOCK2_H 19728#include <winsock2.h> 19729#endif 19730 19731#ifdef HAVE_WS2TCPIP_H 19732#include <ws2tcpip.h> 19733#endif 19734 19735" 19736if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 19737 19738cat >>confdefs.h <<_ACEOF 19739#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 19740_ACEOF 19741 19742 19743fi 19744 19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 19746$as_echo_n "checking for library containing setusercontext... " >&6; } 19747if ${ac_cv_search_setusercontext+:} false; then : 19748 $as_echo_n "(cached) " >&6 19749else 19750 ac_func_search_save_LIBS=$LIBS 19751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19752/* end confdefs.h. */ 19753 19754/* Override any GCC internal prototype to avoid an error. 19755 Use char because int might match the return type of a GCC 19756 builtin and then its argument prototype would still apply. */ 19757#ifdef __cplusplus 19758extern "C" 19759#endif 19760char setusercontext (); 19761int 19762main () 19763{ 19764return setusercontext (); 19765 ; 19766 return 0; 19767} 19768_ACEOF 19769for ac_lib in '' util; do 19770 if test -z "$ac_lib"; then 19771 ac_res="none required" 19772 else 19773 ac_res=-l$ac_lib 19774 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19775 fi 19776 if ac_fn_c_try_link "$LINENO"; then : 19777 ac_cv_search_setusercontext=$ac_res 19778fi 19779rm -f core conftest.err conftest.$ac_objext \ 19780 conftest$ac_exeext 19781 if ${ac_cv_search_setusercontext+:} false; then : 19782 break 19783fi 19784done 19785if ${ac_cv_search_setusercontext+:} false; then : 19786 19787else 19788 ac_cv_search_setusercontext=no 19789fi 19790rm conftest.$ac_ext 19791LIBS=$ac_func_search_save_LIBS 19792fi 19793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 19794$as_echo "$ac_cv_search_setusercontext" >&6; } 19795ac_res=$ac_cv_search_setusercontext 19796if test "$ac_res" != no; then : 19797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19798 19799fi 19800 19801for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 19802do : 19803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19804ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19805if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19806 cat >>confdefs.h <<_ACEOF 19807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19808_ACEOF 19809 19810fi 19811done 19812 19813for ac_func in setresuid 19814do : 19815 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 19816if test "x$ac_cv_func_setresuid" = xyes; then : 19817 cat >>confdefs.h <<_ACEOF 19818#define HAVE_SETRESUID 1 19819_ACEOF 19820 19821else 19822 for ac_func in setreuid 19823do : 19824 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 19825if test "x$ac_cv_func_setreuid" = xyes; then : 19826 cat >>confdefs.h <<_ACEOF 19827#define HAVE_SETREUID 1 19828_ACEOF 19829 19830fi 19831done 19832 19833fi 19834done 19835 19836for ac_func in setresgid 19837do : 19838 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 19839if test "x$ac_cv_func_setresgid" = xyes; then : 19840 cat >>confdefs.h <<_ACEOF 19841#define HAVE_SETRESGID 1 19842_ACEOF 19843 19844else 19845 for ac_func in setregid 19846do : 19847 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 19848if test "x$ac_cv_func_setregid" = xyes; then : 19849 cat >>confdefs.h <<_ACEOF 19850#define HAVE_SETREGID 1 19851_ACEOF 19852 19853fi 19854done 19855 19856fi 19857done 19858 19859 19860# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 19861if echo $target_os | grep darwin8 > /dev/null; then 19862 19863$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 19864 19865fi 19866ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 19867$ac_includes_default 19868#ifdef HAVE_NETINET_IN_H 19869#include <netinet/in.h> 19870#endif 19871 19872#ifdef HAVE_NETINET_TCP_H 19873#include <netinet/tcp.h> 19874#endif 19875 19876#ifdef HAVE_ARPA_INET_H 19877#include <arpa/inet.h> 19878#endif 19879 19880#ifdef HAVE_WINSOCK2_H 19881#include <winsock2.h> 19882#endif 19883 19884#ifdef HAVE_WS2TCPIP_H 19885#include <ws2tcpip.h> 19886#endif 19887 19888" 19889if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 19890 ac_have_decl=1 19891else 19892 ac_have_decl=0 19893fi 19894 19895cat >>confdefs.h <<_ACEOF 19896#define HAVE_DECL_INET_PTON $ac_have_decl 19897_ACEOF 19898ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 19899$ac_includes_default 19900#ifdef HAVE_NETINET_IN_H 19901#include <netinet/in.h> 19902#endif 19903 19904#ifdef HAVE_NETINET_TCP_H 19905#include <netinet/tcp.h> 19906#endif 19907 19908#ifdef HAVE_ARPA_INET_H 19909#include <arpa/inet.h> 19910#endif 19911 19912#ifdef HAVE_WINSOCK2_H 19913#include <winsock2.h> 19914#endif 19915 19916#ifdef HAVE_WS2TCPIP_H 19917#include <ws2tcpip.h> 19918#endif 19919 19920" 19921if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 19922 ac_have_decl=1 19923else 19924 ac_have_decl=0 19925fi 19926 19927cat >>confdefs.h <<_ACEOF 19928#define HAVE_DECL_INET_NTOP $ac_have_decl 19929_ACEOF 19930 19931ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 19932if test "x$ac_cv_func_inet_aton" = xyes; then : 19933 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 19934 19935else 19936 case " $LIBOBJS " in 19937 *" inet_aton.$ac_objext "* ) ;; 19938 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 19939 ;; 19940esac 19941 19942fi 19943 19944 19945ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 19946if test "x$ac_cv_func_inet_pton" = xyes; then : 19947 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 19948 19949else 19950 case " $LIBOBJS " in 19951 *" inet_pton.$ac_objext "* ) ;; 19952 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 19953 ;; 19954esac 19955 19956fi 19957 19958 19959ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 19960if test "x$ac_cv_func_inet_ntop" = xyes; then : 19961 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 19962 19963else 19964 case " $LIBOBJS " in 19965 *" inet_ntop.$ac_objext "* ) ;; 19966 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 19967 ;; 19968esac 19969 19970fi 19971 19972 19973ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 19974if test "x$ac_cv_func_snprintf" = xyes; then : 19975 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 19976 19977else 19978 case " $LIBOBJS " in 19979 *" snprintf.$ac_objext "* ) ;; 19980 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 19981 ;; 19982esac 19983 19984fi 19985 19986 19987# test if snprintf return the proper length 19988if test "x$ac_cv_func_snprintf" = xyes; then 19989 if test c${cross_compiling} = cno; then 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 19991$as_echo_n "checking for correct snprintf return value... " >&6; } 19992 if test "$cross_compiling" = yes; then : 19993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19995as_fn_error $? "cannot run test program while cross compiling 19996See \`config.log' for more details" "$LINENO" 5; } 19997else 19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19999/* end confdefs.h. */ 20000$ac_includes_default 20001 20002int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 20003 20004_ACEOF 20005if ac_fn_c_try_run "$LINENO"; then : 20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20007$as_echo "yes" >&6; } 20008else 20009 20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20011$as_echo "no" >&6; } 20012 20013$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 20014 20015 case " $LIBOBJS " in 20016 *" snprintf.$ac_objext "* ) ;; 20017 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20018 ;; 20019esac 20020 20021 20022fi 20023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20024 conftest.$ac_objext conftest.beam conftest.$ac_ext 20025fi 20026 20027 fi 20028fi 20029ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20030if test "x$ac_cv_func_strlcat" = xyes; then : 20031 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 20032 20033else 20034 case " $LIBOBJS " in 20035 *" strlcat.$ac_objext "* ) ;; 20036 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20037 ;; 20038esac 20039 20040fi 20041 20042 20043ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20044if test "x$ac_cv_func_strlcpy" = xyes; then : 20045 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 20046 20047else 20048 case " $LIBOBJS " in 20049 *" strlcpy.$ac_objext "* ) ;; 20050 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20051 ;; 20052esac 20053 20054fi 20055 20056 20057ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20058if test "x$ac_cv_func_memmove" = xyes; then : 20059 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 20060 20061else 20062 case " $LIBOBJS " in 20063 *" memmove.$ac_objext "* ) ;; 20064 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 20065 ;; 20066esac 20067 20068fi 20069 20070 20071ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 20072if test "x$ac_cv_func_gmtime_r" = xyes; then : 20073 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 20074 20075else 20076 case " $LIBOBJS " in 20077 *" gmtime_r.$ac_objext "* ) ;; 20078 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 20079 ;; 20080esac 20081 20082fi 20083 20084 20085ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 20086if test "x$ac_cv_func_isblank" = xyes; then : 20087 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 20088 20089else 20090 case " $LIBOBJS " in 20091 *" isblank.$ac_objext "* ) ;; 20092 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 20093 ;; 20094esac 20095 20096fi 20097 20098 20099ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 20100if test "x$ac_cv_func_explicit_bzero" = xyes; then : 20101 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 20102 20103else 20104 case " $LIBOBJS " in 20105 *" explicit_bzero.$ac_objext "* ) ;; 20106 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 20107 ;; 20108esac 20109 20110fi 20111 20112 20113LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 20114 20115ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20116if test "x$ac_cv_func_reallocarray" = xyes; then : 20117 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20118 20119else 20120 case " $LIBOBJS " in 20121 *" reallocarray.$ac_objext "* ) ;; 20122 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20123 ;; 20124esac 20125 20126fi 20127 20128 20129if test "$USE_NSS" = "no"; then 20130 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 20131if test "x$ac_cv_func_arc4random" = xyes; then : 20132 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 20133 20134else 20135 case " $LIBOBJS " in 20136 *" arc4random.$ac_objext "* ) ;; 20137 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 20138 ;; 20139esac 20140 20141fi 20142 20143 20144 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 20145if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 20146 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 20147 20148else 20149 case " $LIBOBJS " in 20150 *" arc4random_uniform.$ac_objext "* ) ;; 20151 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 20152 ;; 20153esac 20154 20155fi 20156 20157 20158 if test "$ac_cv_func_arc4random" = "no"; then 20159 case " $LIBOBJS " in 20160 *" arc4_lock.$ac_objext "* ) ;; 20161 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 20162 ;; 20163esac 20164 20165 for ac_func in getentropy 20166do : 20167 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 20168if test "x$ac_cv_func_getentropy" = xyes; then : 20169 cat >>confdefs.h <<_ACEOF 20170#define HAVE_GETENTROPY 1 20171_ACEOF 20172 20173else 20174 20175 if test "$USE_WINSOCK" = 1; then 20176 case " $LIBOBJS " in 20177 *" getentropy_win.$ac_objext "* ) ;; 20178 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 20179 ;; 20180esac 20181 20182 else 20183 case "$host" in 20184 Darwin|*darwin*) 20185 case " $LIBOBJS " in 20186 *" getentropy_osx.$ac_objext "* ) ;; 20187 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 20188 ;; 20189esac 20190 20191 ;; 20192 *solaris*|*sunos*|SunOS) 20193 case " $LIBOBJS " in 20194 *" getentropy_solaris.$ac_objext "* ) ;; 20195 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 20196 ;; 20197esac 20198 20199 for ac_header in sys/sha2.h 20200do : 20201 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 20202" 20203if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 20204 cat >>confdefs.h <<_ACEOF 20205#define HAVE_SYS_SHA2_H 1 20206_ACEOF 20207 20208else 20209 20210 for ac_func in SHA512_Update 20211do : 20212 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20213if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20214 cat >>confdefs.h <<_ACEOF 20215#define HAVE_SHA512_UPDATE 1 20216_ACEOF 20217 20218else 20219 20220 case " $LIBOBJS " in 20221 *" sha512.$ac_objext "* ) ;; 20222 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20223 ;; 20224esac 20225 20226 20227fi 20228done 20229 20230 20231fi 20232 20233done 20234 20235 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 20236 # this lib needed for sha2 on solaris 20237 LIBS="$LIBS -lmd" 20238 fi 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20240$as_echo_n "checking for library containing clock_gettime... " >&6; } 20241if ${ac_cv_search_clock_gettime+:} false; then : 20242 $as_echo_n "(cached) " >&6 20243else 20244 ac_func_search_save_LIBS=$LIBS 20245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20246/* end confdefs.h. */ 20247 20248/* Override any GCC internal prototype to avoid an error. 20249 Use char because int might match the return type of a GCC 20250 builtin and then its argument prototype would still apply. */ 20251#ifdef __cplusplus 20252extern "C" 20253#endif 20254char clock_gettime (); 20255int 20256main () 20257{ 20258return clock_gettime (); 20259 ; 20260 return 0; 20261} 20262_ACEOF 20263for ac_lib in '' rt; do 20264 if test -z "$ac_lib"; then 20265 ac_res="none required" 20266 else 20267 ac_res=-l$ac_lib 20268 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20269 fi 20270 if ac_fn_c_try_link "$LINENO"; then : 20271 ac_cv_search_clock_gettime=$ac_res 20272fi 20273rm -f core conftest.err conftest.$ac_objext \ 20274 conftest$ac_exeext 20275 if ${ac_cv_search_clock_gettime+:} false; then : 20276 break 20277fi 20278done 20279if ${ac_cv_search_clock_gettime+:} false; then : 20280 20281else 20282 ac_cv_search_clock_gettime=no 20283fi 20284rm conftest.$ac_ext 20285LIBS=$ac_func_search_save_LIBS 20286fi 20287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20288$as_echo "$ac_cv_search_clock_gettime" >&6; } 20289ac_res=$ac_cv_search_clock_gettime 20290if test "$ac_res" != no; then : 20291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20292 20293fi 20294 20295 ;; 20296 *linux*|Linux|*) 20297 case " $LIBOBJS " in 20298 *" getentropy_linux.$ac_objext "* ) ;; 20299 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 20300 ;; 20301esac 20302 20303 for ac_func in SHA512_Update 20304do : 20305 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20306if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20307 cat >>confdefs.h <<_ACEOF 20308#define HAVE_SHA512_UPDATE 1 20309_ACEOF 20310 20311else 20312 20313 20314$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 20315 20316 case " $LIBOBJS " in 20317 *" sha512.$ac_objext "* ) ;; 20318 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20319 ;; 20320esac 20321 20322 20323fi 20324done 20325 20326 for ac_header in sys/sysctl.h 20327do : 20328 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 20329" 20330if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 20331 cat >>confdefs.h <<_ACEOF 20332#define HAVE_SYS_SYSCTL_H 1 20333_ACEOF 20334 20335fi 20336 20337done 20338 20339 for ac_func in getauxval 20340do : 20341 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 20342if test "x$ac_cv_func_getauxval" = xyes; then : 20343 cat >>confdefs.h <<_ACEOF 20344#define HAVE_GETAUXVAL 1 20345_ACEOF 20346 20347fi 20348done 20349 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20351$as_echo_n "checking for library containing clock_gettime... " >&6; } 20352if ${ac_cv_search_clock_gettime+:} false; then : 20353 $as_echo_n "(cached) " >&6 20354else 20355 ac_func_search_save_LIBS=$LIBS 20356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20357/* end confdefs.h. */ 20358 20359/* Override any GCC internal prototype to avoid an error. 20360 Use char because int might match the return type of a GCC 20361 builtin and then its argument prototype would still apply. */ 20362#ifdef __cplusplus 20363extern "C" 20364#endif 20365char clock_gettime (); 20366int 20367main () 20368{ 20369return clock_gettime (); 20370 ; 20371 return 0; 20372} 20373_ACEOF 20374for ac_lib in '' rt; do 20375 if test -z "$ac_lib"; then 20376 ac_res="none required" 20377 else 20378 ac_res=-l$ac_lib 20379 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20380 fi 20381 if ac_fn_c_try_link "$LINENO"; then : 20382 ac_cv_search_clock_gettime=$ac_res 20383fi 20384rm -f core conftest.err conftest.$ac_objext \ 20385 conftest$ac_exeext 20386 if ${ac_cv_search_clock_gettime+:} false; then : 20387 break 20388fi 20389done 20390if ${ac_cv_search_clock_gettime+:} false; then : 20391 20392else 20393 ac_cv_search_clock_gettime=no 20394fi 20395rm conftest.$ac_ext 20396LIBS=$ac_func_search_save_LIBS 20397fi 20398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20399$as_echo "$ac_cv_search_clock_gettime" >&6; } 20400ac_res=$ac_cv_search_clock_gettime 20401if test "$ac_res" != no; then : 20402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20403 20404fi 20405 20406 ;; 20407 esac 20408 fi 20409 20410fi 20411done 20412 20413 fi 20414fi 20415LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 20416 20417ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 20418if test "x$ac_cv_func_ctime_r" = xyes; then : 20419 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 20420 20421else 20422 case " $LIBOBJS " in 20423 *" ctime_r.$ac_objext "* ) ;; 20424 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 20425 ;; 20426esac 20427 20428fi 20429 20430 20431ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 20432if test "x$ac_cv_func_strsep" = xyes; then : 20433 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 20434 20435else 20436 case " $LIBOBJS " in 20437 *" strsep.$ac_objext "* ) ;; 20438 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 20439 ;; 20440esac 20441 20442fi 20443 20444 20445 20446# Check whether --enable-allsymbols was given. 20447if test "${enable_allsymbols+set}" = set; then : 20448 enableval=$enable_allsymbols; 20449fi 20450 20451case "$enable_allsymbols" in 20452 yes) 20453 COMMON_OBJ_ALL_SYMBOLS="" 20454 UBSYMS="" 20455 EXTRALINK="-L. -L.libs -lunbound" 20456 20457$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 20458 20459 ;; 20460 no|*) 20461 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 20462 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 20463 EXTRALINK="" 20464 ;; 20465esac 20466 20467 20468 20469if test x_$enable_lock_checks = x_yes; then 20470 UBSYMS="-export-symbols clubsyms.def" 20471 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 20472 echo lock_protect >> clubsyms.def 20473 echo lock_unprotect >> clubsyms.def 20474 echo lock_get_mem >> clubsyms.def 20475 echo checklock_start >> clubsyms.def 20476 echo checklock_stop >> clubsyms.def 20477 echo checklock_lock >> clubsyms.def 20478 echo checklock_unlock >> clubsyms.def 20479 echo checklock_init >> clubsyms.def 20480 echo checklock_thrcreate >> clubsyms.def 20481 echo checklock_thrjoin >> clubsyms.def 20482fi 20483 20484# check for dnstap if requested 20485 20486 # Check whether --enable-dnstap was given. 20487if test "${enable_dnstap+set}" = set; then : 20488 enableval=$enable_dnstap; opt_dnstap=$enableval 20489else 20490 opt_dnstap=no 20491fi 20492 20493 20494 20495# Check whether --with-dnstap-socket-path was given. 20496if test "${with_dnstap_socket_path+set}" = set; then : 20497 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 20498else 20499 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 20500fi 20501 20502 20503 if test "x$opt_dnstap" != "xno"; then 20504 # Extract the first word of "protoc-c", so it can be a program name with args. 20505set dummy protoc-c; ac_word=$2 20506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20507$as_echo_n "checking for $ac_word... " >&6; } 20508if ${ac_cv_path_PROTOC_C+:} false; then : 20509 $as_echo_n "(cached) " >&6 20510else 20511 case $PROTOC_C in 20512 [\\/]* | ?:[\\/]*) 20513 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 20514 ;; 20515 *) 20516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20517for as_dir in $PATH 20518do 20519 IFS=$as_save_IFS 20520 test -z "$as_dir" && as_dir=. 20521 for ac_exec_ext in '' $ac_executable_extensions; do 20522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20523 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 20524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20525 break 2 20526 fi 20527done 20528 done 20529IFS=$as_save_IFS 20530 20531 ;; 20532esac 20533fi 20534PROTOC_C=$ac_cv_path_PROTOC_C 20535if test -n "$PROTOC_C"; then 20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 20537$as_echo "$PROTOC_C" >&6; } 20538else 20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20540$as_echo "no" >&6; } 20541fi 20542 20543 20544 if test -z "$PROTOC_C"; then 20545 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 20546 fi 20547 20548# Check whether --with-protobuf-c was given. 20549if test "${with_protobuf_c+set}" = set; then : 20550 withval=$with_protobuf_c; 20551 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 20552 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 20553 CFLAGS="$CFLAGS -I$withval/include/google" 20554 else 20555 CFLAGS="$CFLAGS -I$withval/include" 20556 fi 20557 LDFLAGS="$LDFLAGS -L$withval/lib" 20558 20559else 20560 20561 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 20562 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 20563 CFLAGS="$CFLAGS -I/usr/include/google" 20564 else 20565 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 20566 CFLAGS="$CFLAGS -I/usr/local/include/google" 20567 LDFLAGS="$LDFLAGS -L/usr/local/lib" 20568 fi 20569 fi 20570 20571fi 20572 20573 20574# Check whether --with-libfstrm was given. 20575if test "${with_libfstrm+set}" = set; then : 20576 withval=$with_libfstrm; 20577 CFLAGS="$CFLAGS -I$withval/include" 20578 LDFLAGS="$LDFLAGS -L$withval/lib" 20579 20580fi 20581 20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 20583$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; } 20584if ${ac_cv_search_fstrm_iothr_init+:} false; then : 20585 $as_echo_n "(cached) " >&6 20586else 20587 ac_func_search_save_LIBS=$LIBS 20588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20589/* end confdefs.h. */ 20590 20591/* Override any GCC internal prototype to avoid an error. 20592 Use char because int might match the return type of a GCC 20593 builtin and then its argument prototype would still apply. */ 20594#ifdef __cplusplus 20595extern "C" 20596#endif 20597char fstrm_iothr_init (); 20598int 20599main () 20600{ 20601return fstrm_iothr_init (); 20602 ; 20603 return 0; 20604} 20605_ACEOF 20606for ac_lib in '' fstrm; do 20607 if test -z "$ac_lib"; then 20608 ac_res="none required" 20609 else 20610 ac_res=-l$ac_lib 20611 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20612 fi 20613 if ac_fn_c_try_link "$LINENO"; then : 20614 ac_cv_search_fstrm_iothr_init=$ac_res 20615fi 20616rm -f core conftest.err conftest.$ac_objext \ 20617 conftest$ac_exeext 20618 if ${ac_cv_search_fstrm_iothr_init+:} false; then : 20619 break 20620fi 20621done 20622if ${ac_cv_search_fstrm_iothr_init+:} false; then : 20623 20624else 20625 ac_cv_search_fstrm_iothr_init=no 20626fi 20627rm conftest.$ac_ext 20628LIBS=$ac_func_search_save_LIBS 20629fi 20630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 20631$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; } 20632ac_res=$ac_cv_search_fstrm_iothr_init 20633if test "$ac_res" != no; then : 20634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20635 20636else 20637 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 20638fi 20639 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 20641$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 20642if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 20643 $as_echo_n "(cached) " >&6 20644else 20645 ac_func_search_save_LIBS=$LIBS 20646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20647/* end confdefs.h. */ 20648 20649/* Override any GCC internal prototype to avoid an error. 20650 Use char because int might match the return type of a GCC 20651 builtin and then its argument prototype would still apply. */ 20652#ifdef __cplusplus 20653extern "C" 20654#endif 20655char protobuf_c_message_pack (); 20656int 20657main () 20658{ 20659return protobuf_c_message_pack (); 20660 ; 20661 return 0; 20662} 20663_ACEOF 20664for ac_lib in '' protobuf-c; do 20665 if test -z "$ac_lib"; then 20666 ac_res="none required" 20667 else 20668 ac_res=-l$ac_lib 20669 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20670 fi 20671 if ac_fn_c_try_link "$LINENO"; then : 20672 ac_cv_search_protobuf_c_message_pack=$ac_res 20673fi 20674rm -f core conftest.err conftest.$ac_objext \ 20675 conftest$ac_exeext 20676 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 20677 break 20678fi 20679done 20680if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 20681 20682else 20683 ac_cv_search_protobuf_c_message_pack=no 20684fi 20685rm conftest.$ac_ext 20686LIBS=$ac_func_search_save_LIBS 20687fi 20688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 20689$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 20690ac_res=$ac_cv_search_protobuf_c_message_pack 20691if test "$ac_res" != no; then : 20692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20693 20694else 20695 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 20696fi 20697 20698 20699 20700$as_echo "#define USE_DNSTAP 1" >>confdefs.h 20701 20702 ENABLE_DNSTAP=1 20703 20704 20705 20706 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 20707 20708 20709cat >>confdefs.h <<_ACEOF 20710#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 20711_ACEOF 20712 20713 20714 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c" 20715 20716 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo" 20717 20718 20719 else 20720 20721 ENABLE_DNSTAP=0 20722 20723 20724 20725 fi 20726 20727 20728# check for dnscrypt if requested 20729 20730 # Check whether --enable-dnscrypt was given. 20731if test "${enable_dnscrypt+set}" = set; then : 20732 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 20733else 20734 opt_dnscrypt=no 20735fi 20736 20737 20738 if test "x$opt_dnscrypt" != "xno"; then 20739 20740# Check whether --with-libsodium was given. 20741if test "${with_libsodium+set}" = set; then : 20742 withval=$with_libsodium; 20743 CFLAGS="$CFLAGS -I$withval/include" 20744 LDFLAGS="$LDFLAGS -L$withval/lib" 20745 20746fi 20747 20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 20749$as_echo_n "checking for library containing sodium_init... " >&6; } 20750if ${ac_cv_search_sodium_init+:} false; then : 20751 $as_echo_n "(cached) " >&6 20752else 20753 ac_func_search_save_LIBS=$LIBS 20754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20755/* end confdefs.h. */ 20756 20757/* Override any GCC internal prototype to avoid an error. 20758 Use char because int might match the return type of a GCC 20759 builtin and then its argument prototype would still apply. */ 20760#ifdef __cplusplus 20761extern "C" 20762#endif 20763char sodium_init (); 20764int 20765main () 20766{ 20767return sodium_init (); 20768 ; 20769 return 0; 20770} 20771_ACEOF 20772for ac_lib in '' sodium; do 20773 if test -z "$ac_lib"; then 20774 ac_res="none required" 20775 else 20776 ac_res=-l$ac_lib 20777 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20778 fi 20779 if ac_fn_c_try_link "$LINENO"; then : 20780 ac_cv_search_sodium_init=$ac_res 20781fi 20782rm -f core conftest.err conftest.$ac_objext \ 20783 conftest$ac_exeext 20784 if ${ac_cv_search_sodium_init+:} false; then : 20785 break 20786fi 20787done 20788if ${ac_cv_search_sodium_init+:} false; then : 20789 20790else 20791 ac_cv_search_sodium_init=no 20792fi 20793rm conftest.$ac_ext 20794LIBS=$ac_func_search_save_LIBS 20795fi 20796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 20797$as_echo "$ac_cv_search_sodium_init" >&6; } 20798ac_res=$ac_cv_search_sodium_init 20799if test "$ac_res" != no; then : 20800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20801 20802else 20803 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 20804fi 20805 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 20807$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 20808if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 20809 $as_echo_n "(cached) " >&6 20810else 20811 ac_func_search_save_LIBS=$LIBS 20812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20813/* end confdefs.h. */ 20814 20815/* Override any GCC internal prototype to avoid an error. 20816 Use char because int might match the return type of a GCC 20817 builtin and then its argument prototype would still apply. */ 20818#ifdef __cplusplus 20819extern "C" 20820#endif 20821char crypto_box_curve25519xchacha20poly1305_beforenm (); 20822int 20823main () 20824{ 20825return crypto_box_curve25519xchacha20poly1305_beforenm (); 20826 ; 20827 return 0; 20828} 20829_ACEOF 20830for ac_lib in '' sodium; do 20831 if test -z "$ac_lib"; then 20832 ac_res="none required" 20833 else 20834 ac_res=-l$ac_lib 20835 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20836 fi 20837 if ac_fn_c_try_link "$LINENO"; then : 20838 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 20839fi 20840rm -f core conftest.err conftest.$ac_objext \ 20841 conftest$ac_exeext 20842 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 20843 break 20844fi 20845done 20846if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 20847 20848else 20849 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 20850fi 20851rm conftest.$ac_ext 20852LIBS=$ac_func_search_save_LIBS 20853fi 20854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 20855$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 20856ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 20857if test "$ac_res" != no; then : 20858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20859 20860 ENABLE_DNSCRYPT_XCHACHA20=1 20861 20862 20863$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 20864 20865 20866else 20867 20868 ENABLE_DNSCRYPT_XCHACHA20=0 20869 20870 20871fi 20872 20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 20874$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; } 20875if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 20876 $as_echo_n "(cached) " >&6 20877else 20878 ac_func_search_save_LIBS=$LIBS 20879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20880/* end confdefs.h. */ 20881 20882/* Override any GCC internal prototype to avoid an error. 20883 Use char because int might match the return type of a GCC 20884 builtin and then its argument prototype would still apply. */ 20885#ifdef __cplusplus 20886extern "C" 20887#endif 20888char sodium_set_misuse_handler (); 20889int 20890main () 20891{ 20892return sodium_set_misuse_handler (); 20893 ; 20894 return 0; 20895} 20896_ACEOF 20897for ac_lib in '' sodium; do 20898 if test -z "$ac_lib"; then 20899 ac_res="none required" 20900 else 20901 ac_res=-l$ac_lib 20902 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20903 fi 20904 if ac_fn_c_try_link "$LINENO"; then : 20905 ac_cv_search_sodium_set_misuse_handler=$ac_res 20906fi 20907rm -f core conftest.err conftest.$ac_objext \ 20908 conftest$ac_exeext 20909 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 20910 break 20911fi 20912done 20913if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 20914 20915else 20916 ac_cv_search_sodium_set_misuse_handler=no 20917fi 20918rm conftest.$ac_ext 20919LIBS=$ac_func_search_save_LIBS 20920fi 20921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 20922$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; } 20923ac_res=$ac_cv_search_sodium_set_misuse_handler 20924if test "$ac_res" != no; then : 20925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20926 20927 20928$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 20929 20930 20931fi 20932 20933 20934 20935$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h 20936 20937 ENABLE_DNSCRYPT=1 20938 20939 20940 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 20941 20942 DNSCRYPT_OBJ="dnscrypt.lo" 20943 20944 20945 else 20946 ENABLE_DNSCRYPT_XCHACHA20=0 20947 20948 20949 ENABLE_DNSCRYPT=0 20950 20951 20952 20953 fi 20954 20955 20956# check for cachedb if requested 20957# Check whether --enable-cachedb was given. 20958if test "${enable_cachedb+set}" = set; then : 20959 enableval=$enable_cachedb; 20960fi 20961 20962# turn on cachedb when hiredis support is enabled. 20963if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 20964case "$enable_cachedb" in 20965 yes) 20966 20967$as_echo "#define USE_CACHEDB 1" >>confdefs.h 20968 20969 ;; 20970 no|*) 20971 # nothing 20972 ;; 20973esac 20974 20975# check for ipsecmod if requested 20976# Check whether --enable-ipsecmod was given. 20977if test "${enable_ipsecmod+set}" = set; then : 20978 enableval=$enable_ipsecmod; 20979fi 20980 20981case "$enable_ipsecmod" in 20982 yes) 20983 20984$as_echo "#define USE_IPSECMOD 1" >>confdefs.h 20985 20986 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 20987 20988 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 20989 20990 ;; 20991 no|*) 20992 # nothing 20993 ;; 20994esac 20995 20996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 20997$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 20998# on openBSD, the implicit rule make $< work. 20999# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 21000# gmake works. 21001cat >conftest.make <<EOF 21002all: conftest.lo 21003 21004conftest.lo foo.lo bla.lo: 21005 if test -f "\$<"; then touch \$@; fi 21006 21007.SUFFIXES: .lo 21008.c.lo: 21009 if test -f "\$<"; then touch \$@; fi 21010 21011conftest.lo: conftest.dir/conftest.c 21012EOF 21013mkdir conftest.dir 21014touch conftest.dir/conftest.c 21015rm -f conftest.lo conftest.c 21016${MAKE:-make} -f conftest.make >/dev/null 21017rm -f conftest.make conftest.c conftest.dir/conftest.c 21018rm -rf conftest.dir 21019if test ! -f conftest.lo; then 21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21021$as_echo "no" >&6; } 21022 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 21023 SOURCEFILE='`cat .source`' 21024else 21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21026$as_echo "yes" >&6; } 21027 SOURCEDETERMINE=':' 21028 SOURCEFILE='$<' 21029fi 21030rm -f conftest.lo 21031 21032 21033 21034# see if we want to build the library or everything 21035ALLTARGET="alltargets" 21036INSTALLTARGET="install-all" 21037 21038# Check whether --with-libunbound-only was given. 21039if test "${with_libunbound_only+set}" = set; then : 21040 withval=$with_libunbound_only; 21041 if test "$withval" = "yes"; then 21042 ALLTARGET="lib" 21043 INSTALLTARGET="install-lib" 21044 fi 21045 21046fi 21047 21048if test $ALLTARGET = "alltargets"; then 21049 if test $USE_NSS = "yes"; then 21050 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 21051 fi 21052 if test $USE_NETTLE = "yes"; then 21053 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 21054 fi 21055fi 21056 21057 21058 21059 21060 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 21062$as_echo "$as_me: Stripping extension flags..." >&6;} 21063 21064 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 21065 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 21066 21067$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 21068 21069 fi 21070 21071 21072 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 21073 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 21074 21075$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 21076 21077 fi 21078 21079 21080 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 21081 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 21082 21083$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 21084 21085 fi 21086 21087 21088 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 21089 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 21090 21091$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 21092 21093 fi 21094 21095 21096 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 21097 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 21098 21099$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 21100 21101 fi 21102 21103 21104 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 21105 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 21106 21107$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 21108 21109 fi 21110 21111 21112 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 21113 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 21114 21115$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 21116 21117 fi 21118 21119 21120 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 21121 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 21122 21123$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 21124 21125 fi 21126 21127 21128 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 21129 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 21130 21131$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 21132 21133 fi 21134 21135 21136if test -n "$LATE_LDFLAGS"; then 21137 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 21138fi 21139# remove start spaces 21140LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 21141LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 21142 21143 21144cat >>confdefs.h <<_ACEOF 21145#define MAXSYSLOGMSGLEN 10240 21146_ACEOF 21147 21148 21149 21150 21151version=1.9.0 21152 21153date=`date +'%b %e, %Y'` 21154 21155 21156ac_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" 21157 21158ac_config_headers="$ac_config_headers config.h" 21159 21160cat >confcache <<\_ACEOF 21161# This file is a shell script that caches the results of configure 21162# tests run on this system so they can be shared between configure 21163# scripts and configure runs, see configure's option --config-cache. 21164# It is not useful on other systems. If it contains results you don't 21165# want to keep, you may remove or edit it. 21166# 21167# config.status only pays attention to the cache file if you give it 21168# the --recheck option to rerun configure. 21169# 21170# `ac_cv_env_foo' variables (set or unset) will be overridden when 21171# loading this file, other *unset* `ac_cv_foo' will be assigned the 21172# following values. 21173 21174_ACEOF 21175 21176# The following way of writing the cache mishandles newlines in values, 21177# but we know of no workaround that is simple, portable, and efficient. 21178# So, we kill variables containing newlines. 21179# Ultrix sh set writes to stderr and can't be redirected directly, 21180# and sets the high bit in the cache file unless we assign to the vars. 21181( 21182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21183 eval ac_val=\$$ac_var 21184 case $ac_val in #( 21185 *${as_nl}*) 21186 case $ac_var in #( 21187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21189 esac 21190 case $ac_var in #( 21191 _ | IFS | as_nl) ;; #( 21192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21193 *) { eval $ac_var=; unset $ac_var;} ;; 21194 esac ;; 21195 esac 21196 done 21197 21198 (set) 2>&1 | 21199 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21200 *${as_nl}ac_space=\ *) 21201 # `set' does not quote correctly, so add quotes: double-quote 21202 # substitution turns \\\\ into \\, and sed turns \\ into \. 21203 sed -n \ 21204 "s/'/'\\\\''/g; 21205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21206 ;; #( 21207 *) 21208 # `set' quotes correctly as required by POSIX, so do not add quotes. 21209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21210 ;; 21211 esac | 21212 sort 21213) | 21214 sed ' 21215 /^ac_cv_env_/b end 21216 t clear 21217 :clear 21218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21219 t end 21220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21221 :end' >>confcache 21222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21223 if test -w "$cache_file"; then 21224 if test "x$cache_file" != "x/dev/null"; then 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21226$as_echo "$as_me: updating cache $cache_file" >&6;} 21227 if test ! -f "$cache_file" || test -h "$cache_file"; then 21228 cat confcache >"$cache_file" 21229 else 21230 case $cache_file in #( 21231 */* | ?:*) 21232 mv -f confcache "$cache_file"$$ && 21233 mv -f "$cache_file"$$ "$cache_file" ;; #( 21234 *) 21235 mv -f confcache "$cache_file" ;; 21236 esac 21237 fi 21238 fi 21239 else 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21241$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21242 fi 21243fi 21244rm -f confcache 21245 21246test "x$prefix" = xNONE && prefix=$ac_default_prefix 21247# Let make expand exec_prefix. 21248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21249 21250DEFS=-DHAVE_CONFIG_H 21251 21252ac_libobjs= 21253ac_ltlibobjs= 21254U= 21255for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21256 # 1. Remove the extension, and $U if already installed. 21257 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21258 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21259 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21260 # will be set to the directory where LIBOBJS objects are built. 21261 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21262 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21263done 21264LIBOBJS=$ac_libobjs 21265 21266LTLIBOBJS=$ac_ltlibobjs 21267 21268 21269if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 21270 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 21271Usually this means the macro was only invoked conditionally." "$LINENO" 5 21272fi 21273 21274: "${CONFIG_STATUS=./config.status}" 21275ac_write_fail=0 21276ac_clean_files_save=$ac_clean_files 21277ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21278{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21279$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21280as_write_fail=0 21281cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21282#! $SHELL 21283# Generated by $as_me. 21284# Run this file to recreate the current configuration. 21285# Compiler output produced by configure, useful for debugging 21286# configure, is in config.log if it exists. 21287 21288debug=false 21289ac_cs_recheck=false 21290ac_cs_silent=false 21291 21292SHELL=\${CONFIG_SHELL-$SHELL} 21293export SHELL 21294_ASEOF 21295cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21296## -------------------- ## 21297## M4sh Initialization. ## 21298## -------------------- ## 21299 21300# Be more Bourne compatible 21301DUALCASE=1; export DUALCASE # for MKS sh 21302if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21303 emulate sh 21304 NULLCMD=: 21305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21306 # is contrary to our usage. Disable this feature. 21307 alias -g '${1+"$@"}'='"$@"' 21308 setopt NO_GLOB_SUBST 21309else 21310 case `(set -o) 2>/dev/null` in #( 21311 *posix*) : 21312 set -o posix ;; #( 21313 *) : 21314 ;; 21315esac 21316fi 21317 21318 21319as_nl=' 21320' 21321export as_nl 21322# Printing a long string crashes Solaris 7 /usr/bin/printf. 21323as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21324as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21325as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21326# Prefer a ksh shell builtin over an external printf program on Solaris, 21327# but without wasting forks for bash or zsh. 21328if test -z "$BASH_VERSION$ZSH_VERSION" \ 21329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21330 as_echo='print -r --' 21331 as_echo_n='print -rn --' 21332elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21333 as_echo='printf %s\n' 21334 as_echo_n='printf %s' 21335else 21336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21337 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21338 as_echo_n='/usr/ucb/echo -n' 21339 else 21340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21341 as_echo_n_body='eval 21342 arg=$1; 21343 case $arg in #( 21344 *"$as_nl"*) 21345 expr "X$arg" : "X\\(.*\\)$as_nl"; 21346 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21347 esac; 21348 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21349 ' 21350 export as_echo_n_body 21351 as_echo_n='sh -c $as_echo_n_body as_echo' 21352 fi 21353 export as_echo_body 21354 as_echo='sh -c $as_echo_body as_echo' 21355fi 21356 21357# The user is always right. 21358if test "${PATH_SEPARATOR+set}" != set; then 21359 PATH_SEPARATOR=: 21360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21361 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21362 PATH_SEPARATOR=';' 21363 } 21364fi 21365 21366 21367# IFS 21368# We need space, tab and new line, in precisely that order. Quoting is 21369# there to prevent editors from complaining about space-tab. 21370# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21371# splitting by setting IFS to empty value.) 21372IFS=" "" $as_nl" 21373 21374# Find who we are. Look in the path if we contain no directory separator. 21375as_myself= 21376case $0 in #(( 21377 *[\\/]* ) as_myself=$0 ;; 21378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21379for as_dir in $PATH 21380do 21381 IFS=$as_save_IFS 21382 test -z "$as_dir" && as_dir=. 21383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21384 done 21385IFS=$as_save_IFS 21386 21387 ;; 21388esac 21389# We did not find ourselves, most probably we were run as `sh COMMAND' 21390# in which case we are not to be found in the path. 21391if test "x$as_myself" = x; then 21392 as_myself=$0 21393fi 21394if test ! -f "$as_myself"; then 21395 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21396 exit 1 21397fi 21398 21399# Unset variables that we do not need and which cause bugs (e.g. in 21400# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21401# suppresses any "Segmentation fault" message there. '((' could 21402# trigger a bug in pdksh 5.2.14. 21403for as_var in BASH_ENV ENV MAIL MAILPATH 21404do eval test x\${$as_var+set} = xset \ 21405 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21406done 21407PS1='$ ' 21408PS2='> ' 21409PS4='+ ' 21410 21411# NLS nuisances. 21412LC_ALL=C 21413export LC_ALL 21414LANGUAGE=C 21415export LANGUAGE 21416 21417# CDPATH. 21418(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21419 21420 21421# as_fn_error STATUS ERROR [LINENO LOG_FD] 21422# ---------------------------------------- 21423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21425# script with STATUS, using 1 if that was 0. 21426as_fn_error () 21427{ 21428 as_status=$1; test $as_status -eq 0 && as_status=1 21429 if test "$4"; then 21430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21432 fi 21433 $as_echo "$as_me: error: $2" >&2 21434 as_fn_exit $as_status 21435} # as_fn_error 21436 21437 21438# as_fn_set_status STATUS 21439# ----------------------- 21440# Set $? to STATUS, without forking. 21441as_fn_set_status () 21442{ 21443 return $1 21444} # as_fn_set_status 21445 21446# as_fn_exit STATUS 21447# ----------------- 21448# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21449as_fn_exit () 21450{ 21451 set +e 21452 as_fn_set_status $1 21453 exit $1 21454} # as_fn_exit 21455 21456# as_fn_unset VAR 21457# --------------- 21458# Portably unset VAR. 21459as_fn_unset () 21460{ 21461 { eval $1=; unset $1;} 21462} 21463as_unset=as_fn_unset 21464# as_fn_append VAR VALUE 21465# ---------------------- 21466# Append the text in VALUE to the end of the definition contained in VAR. Take 21467# advantage of any shell optimizations that allow amortized linear growth over 21468# repeated appends, instead of the typical quadratic growth present in naive 21469# implementations. 21470if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21471 eval 'as_fn_append () 21472 { 21473 eval $1+=\$2 21474 }' 21475else 21476 as_fn_append () 21477 { 21478 eval $1=\$$1\$2 21479 } 21480fi # as_fn_append 21481 21482# as_fn_arith ARG... 21483# ------------------ 21484# Perform arithmetic evaluation on the ARGs, and store the result in the 21485# global $as_val. Take advantage of shells that can avoid forks. The arguments 21486# must be portable across $(()) and expr. 21487if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21488 eval 'as_fn_arith () 21489 { 21490 as_val=$(( $* )) 21491 }' 21492else 21493 as_fn_arith () 21494 { 21495 as_val=`expr "$@" || test $? -eq 1` 21496 } 21497fi # as_fn_arith 21498 21499 21500if expr a : '\(a\)' >/dev/null 2>&1 && 21501 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21502 as_expr=expr 21503else 21504 as_expr=false 21505fi 21506 21507if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21508 as_basename=basename 21509else 21510 as_basename=false 21511fi 21512 21513if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21514 as_dirname=dirname 21515else 21516 as_dirname=false 21517fi 21518 21519as_me=`$as_basename -- "$0" || 21520$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21521 X"$0" : 'X\(//\)$' \| \ 21522 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21523$as_echo X/"$0" | 21524 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21525 s//\1/ 21526 q 21527 } 21528 /^X\/\(\/\/\)$/{ 21529 s//\1/ 21530 q 21531 } 21532 /^X\/\(\/\).*/{ 21533 s//\1/ 21534 q 21535 } 21536 s/.*/./; q'` 21537 21538# Avoid depending upon Character Ranges. 21539as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21540as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21541as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21542as_cr_digits='0123456789' 21543as_cr_alnum=$as_cr_Letters$as_cr_digits 21544 21545ECHO_C= ECHO_N= ECHO_T= 21546case `echo -n x` in #((((( 21547-n*) 21548 case `echo 'xy\c'` in 21549 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21550 xy) ECHO_C='\c';; 21551 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21552 ECHO_T=' ';; 21553 esac;; 21554*) 21555 ECHO_N='-n';; 21556esac 21557 21558rm -f conf$$ conf$$.exe conf$$.file 21559if test -d conf$$.dir; then 21560 rm -f conf$$.dir/conf$$.file 21561else 21562 rm -f conf$$.dir 21563 mkdir conf$$.dir 2>/dev/null 21564fi 21565if (echo >conf$$.file) 2>/dev/null; then 21566 if ln -s conf$$.file conf$$ 2>/dev/null; then 21567 as_ln_s='ln -s' 21568 # ... but there are two gotchas: 21569 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21570 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21571 # In both cases, we have to default to `cp -pR'. 21572 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21573 as_ln_s='cp -pR' 21574 elif ln conf$$.file conf$$ 2>/dev/null; then 21575 as_ln_s=ln 21576 else 21577 as_ln_s='cp -pR' 21578 fi 21579else 21580 as_ln_s='cp -pR' 21581fi 21582rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21583rmdir conf$$.dir 2>/dev/null 21584 21585 21586# as_fn_mkdir_p 21587# ------------- 21588# Create "$as_dir" as a directory, including parents if necessary. 21589as_fn_mkdir_p () 21590{ 21591 21592 case $as_dir in #( 21593 -*) as_dir=./$as_dir;; 21594 esac 21595 test -d "$as_dir" || eval $as_mkdir_p || { 21596 as_dirs= 21597 while :; do 21598 case $as_dir in #( 21599 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21600 *) as_qdir=$as_dir;; 21601 esac 21602 as_dirs="'$as_qdir' $as_dirs" 21603 as_dir=`$as_dirname -- "$as_dir" || 21604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21605 X"$as_dir" : 'X\(//\)[^/]' \| \ 21606 X"$as_dir" : 'X\(//\)$' \| \ 21607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21608$as_echo X"$as_dir" | 21609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21610 s//\1/ 21611 q 21612 } 21613 /^X\(\/\/\)[^/].*/{ 21614 s//\1/ 21615 q 21616 } 21617 /^X\(\/\/\)$/{ 21618 s//\1/ 21619 q 21620 } 21621 /^X\(\/\).*/{ 21622 s//\1/ 21623 q 21624 } 21625 s/.*/./; q'` 21626 test -d "$as_dir" && break 21627 done 21628 test -z "$as_dirs" || eval "mkdir $as_dirs" 21629 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21630 21631 21632} # as_fn_mkdir_p 21633if mkdir -p . 2>/dev/null; then 21634 as_mkdir_p='mkdir -p "$as_dir"' 21635else 21636 test -d ./-p && rmdir ./-p 21637 as_mkdir_p=false 21638fi 21639 21640 21641# as_fn_executable_p FILE 21642# ----------------------- 21643# Test if FILE is an executable regular file. 21644as_fn_executable_p () 21645{ 21646 test -f "$1" && test -x "$1" 21647} # as_fn_executable_p 21648as_test_x='test -x' 21649as_executable_p=as_fn_executable_p 21650 21651# Sed expression to map a string onto a valid CPP name. 21652as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21653 21654# Sed expression to map a string onto a valid variable name. 21655as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21656 21657 21658exec 6>&1 21659## ----------------------------------- ## 21660## Main body of $CONFIG_STATUS script. ## 21661## ----------------------------------- ## 21662_ASEOF 21663test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21664 21665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21666# Save the log message, to keep $0 and so on meaningful, and to 21667# report actual input values of CONFIG_FILES etc. instead of their 21668# values after options handling. 21669ac_log=" 21670This file was extended by unbound $as_me 1.9.0, which was 21671generated by GNU Autoconf 2.69. Invocation command line was 21672 21673 CONFIG_FILES = $CONFIG_FILES 21674 CONFIG_HEADERS = $CONFIG_HEADERS 21675 CONFIG_LINKS = $CONFIG_LINKS 21676 CONFIG_COMMANDS = $CONFIG_COMMANDS 21677 $ $0 $@ 21678 21679on `(hostname || uname -n) 2>/dev/null | sed 1q` 21680" 21681 21682_ACEOF 21683 21684case $ac_config_files in *" 21685"*) set x $ac_config_files; shift; ac_config_files=$*;; 21686esac 21687 21688case $ac_config_headers in *" 21689"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21690esac 21691 21692 21693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21694# Files that config.status was made for. 21695config_files="$ac_config_files" 21696config_headers="$ac_config_headers" 21697config_commands="$ac_config_commands" 21698 21699_ACEOF 21700 21701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21702ac_cs_usage="\ 21703\`$as_me' instantiates files and other configuration actions 21704from templates according to the current configuration. Unless the files 21705and actions are specified as TAGs, all are instantiated by default. 21706 21707Usage: $0 [OPTION]... [TAG]... 21708 21709 -h, --help print this help, then exit 21710 -V, --version print version number and configuration settings, then exit 21711 --config print configuration, then exit 21712 -q, --quiet, --silent 21713 do not print progress messages 21714 -d, --debug don't remove temporary files 21715 --recheck update $as_me by reconfiguring in the same conditions 21716 --file=FILE[:TEMPLATE] 21717 instantiate the configuration file FILE 21718 --header=FILE[:TEMPLATE] 21719 instantiate the configuration header FILE 21720 21721Configuration files: 21722$config_files 21723 21724Configuration headers: 21725$config_headers 21726 21727Configuration commands: 21728$config_commands 21729 21730Report bugs to <unbound-bugs@nlnetlabs.nl>." 21731 21732_ACEOF 21733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21734ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21735ac_cs_version="\\ 21736unbound config.status 1.9.0 21737configured by $0, generated by GNU Autoconf 2.69, 21738 with options \\"\$ac_cs_config\\" 21739 21740Copyright (C) 2012 Free Software Foundation, Inc. 21741This config.status script is free software; the Free Software Foundation 21742gives unlimited permission to copy, distribute and modify it." 21743 21744ac_pwd='$ac_pwd' 21745srcdir='$srcdir' 21746AWK='$AWK' 21747test -n "\$AWK" || AWK=awk 21748_ACEOF 21749 21750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21751# The default lists apply if the user does not specify any file. 21752ac_need_defaults=: 21753while test $# != 0 21754do 21755 case $1 in 21756 --*=?*) 21757 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21758 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21759 ac_shift=: 21760 ;; 21761 --*=) 21762 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21763 ac_optarg= 21764 ac_shift=: 21765 ;; 21766 *) 21767 ac_option=$1 21768 ac_optarg=$2 21769 ac_shift=shift 21770 ;; 21771 esac 21772 21773 case $ac_option in 21774 # Handling of the options. 21775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21776 ac_cs_recheck=: ;; 21777 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21778 $as_echo "$ac_cs_version"; exit ;; 21779 --config | --confi | --conf | --con | --co | --c ) 21780 $as_echo "$ac_cs_config"; exit ;; 21781 --debug | --debu | --deb | --de | --d | -d ) 21782 debug=: ;; 21783 --file | --fil | --fi | --f ) 21784 $ac_shift 21785 case $ac_optarg in 21786 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21787 '') as_fn_error $? "missing file argument" ;; 21788 esac 21789 as_fn_append CONFIG_FILES " '$ac_optarg'" 21790 ac_need_defaults=false;; 21791 --header | --heade | --head | --hea ) 21792 $ac_shift 21793 case $ac_optarg in 21794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21795 esac 21796 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21797 ac_need_defaults=false;; 21798 --he | --h) 21799 # Conflict between --help and --header 21800 as_fn_error $? "ambiguous option: \`$1' 21801Try \`$0 --help' for more information.";; 21802 --help | --hel | -h ) 21803 $as_echo "$ac_cs_usage"; exit ;; 21804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21805 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21806 ac_cs_silent=: ;; 21807 21808 # This is an error. 21809 -*) as_fn_error $? "unrecognized option: \`$1' 21810Try \`$0 --help' for more information." ;; 21811 21812 *) as_fn_append ac_config_targets " $1" 21813 ac_need_defaults=false ;; 21814 21815 esac 21816 shift 21817done 21818 21819ac_configure_extra_args= 21820 21821if $ac_cs_silent; then 21822 exec 6>/dev/null 21823 ac_configure_extra_args="$ac_configure_extra_args --silent" 21824fi 21825 21826_ACEOF 21827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21828if \$ac_cs_recheck; then 21829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21830 shift 21831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21832 CONFIG_SHELL='$SHELL' 21833 export CONFIG_SHELL 21834 exec "\$@" 21835fi 21836 21837_ACEOF 21838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21839exec 5>>config.log 21840{ 21841 echo 21842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21843## Running $as_me. ## 21844_ASBOX 21845 $as_echo "$ac_log" 21846} >&5 21847 21848_ACEOF 21849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21850# 21851# INIT-COMMANDS 21852# 21853 21854 21855# The HP-UX ksh and POSIX shell print the target directory to stdout 21856# if CDPATH is set. 21857(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21858 21859sed_quote_subst='$sed_quote_subst' 21860double_quote_subst='$double_quote_subst' 21861delay_variable_subst='$delay_variable_subst' 21862macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21863macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21864enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21865enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21866pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21867enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21868shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21869SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21870ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21871PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21872host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21873host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21874host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21875build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21876build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21877build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21878SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21879Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21880GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21881EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21882FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21883LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21884NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21885LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21886max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21887ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21888exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21889lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21890lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21891lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21892lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21893lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21894reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21895reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21896OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21897deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21898file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21899file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21900want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21901DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21902sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21903AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21904AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21905archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21906STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21907RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21908old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21909old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21910old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21911lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21912CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21913CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21914compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21915GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21916lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21917lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21918lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21919lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21920lt_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"`' 21921lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21922nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21923lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21924lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21925objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21926MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21927lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21928lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21929lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21930lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21931lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21932need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21933MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21934DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21935NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21936LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21937OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21938OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21939libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21940shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21941extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21942archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21943enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21944export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21945whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21946compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21947old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21948old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21949archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21950archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21951module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21952module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21953with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21954allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21955no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21956hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21957hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21958hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21959hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21960hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21961hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21962hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21963inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21964link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21965always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21966export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21967exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21968include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21969prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21970postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21971file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21972variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21973need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21974need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21975version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21976runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21977shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21978shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21979libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21980library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21981soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21982install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21983postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21984postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21985finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21986finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21987hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21988sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21989configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21990configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21991hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21992enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21993enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21994enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21995old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21996striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21997 21998LTCC='$LTCC' 21999LTCFLAGS='$LTCFLAGS' 22000compiler='$compiler_DEFAULT' 22001 22002# A function that is used when there is no print builtin or printf. 22003func_fallback_echo () 22004{ 22005 eval 'cat <<_LTECHO_EOF 22006\$1 22007_LTECHO_EOF' 22008} 22009 22010# Quote evaled strings. 22011for var in SHELL \ 22012ECHO \ 22013PATH_SEPARATOR \ 22014SED \ 22015GREP \ 22016EGREP \ 22017FGREP \ 22018LD \ 22019NM \ 22020LN_S \ 22021lt_SP2NL \ 22022lt_NL2SP \ 22023reload_flag \ 22024OBJDUMP \ 22025deplibs_check_method \ 22026file_magic_cmd \ 22027file_magic_glob \ 22028want_nocaseglob \ 22029DLLTOOL \ 22030sharedlib_from_linklib_cmd \ 22031AR \ 22032AR_FLAGS \ 22033archiver_list_spec \ 22034STRIP \ 22035RANLIB \ 22036CC \ 22037CFLAGS \ 22038compiler \ 22039lt_cv_sys_global_symbol_pipe \ 22040lt_cv_sys_global_symbol_to_cdecl \ 22041lt_cv_sys_global_symbol_to_import \ 22042lt_cv_sys_global_symbol_to_c_name_address \ 22043lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22044lt_cv_nm_interface \ 22045nm_file_list_spec \ 22046lt_cv_truncate_bin \ 22047lt_prog_compiler_no_builtin_flag \ 22048lt_prog_compiler_pic \ 22049lt_prog_compiler_wl \ 22050lt_prog_compiler_static \ 22051lt_cv_prog_compiler_c_o \ 22052need_locks \ 22053MANIFEST_TOOL \ 22054DSYMUTIL \ 22055NMEDIT \ 22056LIPO \ 22057OTOOL \ 22058OTOOL64 \ 22059shrext_cmds \ 22060export_dynamic_flag_spec \ 22061whole_archive_flag_spec \ 22062compiler_needs_object \ 22063with_gnu_ld \ 22064allow_undefined_flag \ 22065no_undefined_flag \ 22066hardcode_libdir_flag_spec \ 22067hardcode_libdir_separator \ 22068exclude_expsyms \ 22069include_expsyms \ 22070file_list_spec \ 22071variables_saved_for_relink \ 22072libname_spec \ 22073library_names_spec \ 22074soname_spec \ 22075install_override_mode \ 22076finish_eval \ 22077old_striplib \ 22078striplib; do 22079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22080 *[\\\\\\\`\\"\\\$]*) 22081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22082 ;; 22083 *) 22084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22085 ;; 22086 esac 22087done 22088 22089# Double-quote double-evaled strings. 22090for var in reload_cmds \ 22091old_postinstall_cmds \ 22092old_postuninstall_cmds \ 22093old_archive_cmds \ 22094extract_expsyms_cmds \ 22095old_archive_from_new_cmds \ 22096old_archive_from_expsyms_cmds \ 22097archive_cmds \ 22098archive_expsym_cmds \ 22099module_cmds \ 22100module_expsym_cmds \ 22101export_symbols_cmds \ 22102prelink_cmds \ 22103postlink_cmds \ 22104postinstall_cmds \ 22105postuninstall_cmds \ 22106finish_cmds \ 22107sys_lib_search_path_spec \ 22108configure_time_dlsearch_path \ 22109configure_time_lt_sys_library_path; do 22110 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22111 *[\\\\\\\`\\"\\\$]*) 22112 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22113 ;; 22114 *) 22115 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22116 ;; 22117 esac 22118done 22119 22120ac_aux_dir='$ac_aux_dir' 22121 22122# See if we are running on zsh, and set the options that allow our 22123# commands through without removal of \ escapes INIT. 22124if test -n "\${ZSH_VERSION+set}"; then 22125 setopt NO_GLOB_SUBST 22126fi 22127 22128 22129 PACKAGE='$PACKAGE' 22130 VERSION='$VERSION' 22131 RM='$RM' 22132 ofile='$ofile' 22133 22134 22135 22136 22137_ACEOF 22138 22139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22140 22141# Handling of arguments. 22142for ac_config_target in $ac_config_targets 22143do 22144 case $ac_config_target in 22145 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22146 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 22147 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22148 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 22149 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 22150 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 22151 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 22152 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 22153 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 22154 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 22155 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 22156 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 22157 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 22158 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 22159 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22160 22161 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22162 esac 22163done 22164 22165 22166# If the user did not use the arguments to specify the items to instantiate, 22167# then the envvar interface is used. Set only those that are not. 22168# We use the long form for the default assignment because of an extremely 22169# bizarre bug on SunOS 4.1.3. 22170if $ac_need_defaults; then 22171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22174fi 22175 22176# Have a temporary directory for convenience. Make it in the build tree 22177# simply because there is no reason against having it here, and in addition, 22178# creating and moving files from /tmp can sometimes cause problems. 22179# Hook for its removal unless debugging. 22180# Note that there is a small window in which the directory will not be cleaned: 22181# after its creation but before its name has been assigned to `$tmp'. 22182$debug || 22183{ 22184 tmp= ac_tmp= 22185 trap 'exit_status=$? 22186 : "${ac_tmp:=$tmp}" 22187 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22188' 0 22189 trap 'as_fn_exit 1' 1 2 13 15 22190} 22191# Create a (secure) tmp directory for tmp files. 22192 22193{ 22194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22195 test -d "$tmp" 22196} || 22197{ 22198 tmp=./conf$$-$RANDOM 22199 (umask 077 && mkdir "$tmp") 22200} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22201ac_tmp=$tmp 22202 22203# Set up the scripts for CONFIG_FILES section. 22204# No need to generate them if there are no CONFIG_FILES. 22205# This happens for instance with `./config.status config.h'. 22206if test -n "$CONFIG_FILES"; then 22207 22208 22209ac_cr=`echo X | tr X '\015'` 22210# On cygwin, bash can eat \r inside `` if the user requested igncr. 22211# But we know of no other shell where ac_cr would be empty at this 22212# point, so we can use a bashism as a fallback. 22213if test "x$ac_cr" = x; then 22214 eval ac_cr=\$\'\\r\' 22215fi 22216ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22217if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22218 ac_cs_awk_cr='\\r' 22219else 22220 ac_cs_awk_cr=$ac_cr 22221fi 22222 22223echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22224_ACEOF 22225 22226 22227{ 22228 echo "cat >conf$$subs.awk <<_ACEOF" && 22229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22230 echo "_ACEOF" 22231} >conf$$subs.sh || 22232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22233ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22234ac_delim='%!_!# ' 22235for ac_last_try in false false false false false :; do 22236 . ./conf$$subs.sh || 22237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22238 22239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22240 if test $ac_delim_n = $ac_delim_num; then 22241 break 22242 elif $ac_last_try; then 22243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22244 else 22245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22246 fi 22247done 22248rm -f conf$$subs.sh 22249 22250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22251cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22252_ACEOF 22253sed -n ' 22254h 22255s/^/S["/; s/!.*/"]=/ 22256p 22257g 22258s/^[^!]*!// 22259:repl 22260t repl 22261s/'"$ac_delim"'$// 22262t delim 22263:nl 22264h 22265s/\(.\{148\}\)..*/\1/ 22266t more1 22267s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22268p 22269n 22270b repl 22271:more1 22272s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22273p 22274g 22275s/.\{148\}// 22276t nl 22277:delim 22278h 22279s/\(.\{148\}\)..*/\1/ 22280t more2 22281s/["\\]/\\&/g; s/^/"/; s/$/"/ 22282p 22283b 22284:more2 22285s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22286p 22287g 22288s/.\{148\}// 22289t delim 22290' <conf$$subs.awk | sed ' 22291/^[^""]/{ 22292 N 22293 s/\n// 22294} 22295' >>$CONFIG_STATUS || ac_write_fail=1 22296rm -f conf$$subs.awk 22297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22298_ACAWK 22299cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22300 for (key in S) S_is_set[key] = 1 22301 FS = "" 22302 22303} 22304{ 22305 line = $ 0 22306 nfields = split(line, field, "@") 22307 substed = 0 22308 len = length(field[1]) 22309 for (i = 2; i < nfields; i++) { 22310 key = field[i] 22311 keylen = length(key) 22312 if (S_is_set[key]) { 22313 value = S[key] 22314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22315 len += length(value) + length(field[++i]) 22316 substed = 1 22317 } else 22318 len += 1 + keylen 22319 } 22320 22321 print line 22322} 22323 22324_ACAWK 22325_ACEOF 22326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22327if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22329else 22330 cat 22331fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22332 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22333_ACEOF 22334 22335# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22336# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22337# trailing colons and then remove the whole line if VPATH becomes empty 22338# (actually we leave an empty line to preserve line numbers). 22339if test "x$srcdir" = x.; then 22340 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22341h 22342s/// 22343s/^/:/ 22344s/[ ]*$/:/ 22345s/:\$(srcdir):/:/g 22346s/:\${srcdir}:/:/g 22347s/:@srcdir@:/:/g 22348s/^:*// 22349s/:*$// 22350x 22351s/\(=[ ]*\).*/\1/ 22352G 22353s/\n// 22354s/^[^=]*=[ ]*$// 22355}' 22356fi 22357 22358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22359fi # test -n "$CONFIG_FILES" 22360 22361# Set up the scripts for CONFIG_HEADERS section. 22362# No need to generate them if there are no CONFIG_HEADERS. 22363# This happens for instance with `./config.status Makefile'. 22364if test -n "$CONFIG_HEADERS"; then 22365cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22366BEGIN { 22367_ACEOF 22368 22369# Transform confdefs.h into an awk script `defines.awk', embedded as 22370# here-document in config.status, that substitutes the proper values into 22371# config.h.in to produce config.h. 22372 22373# Create a delimiter string that does not exist in confdefs.h, to ease 22374# handling of long lines. 22375ac_delim='%!_!# ' 22376for ac_last_try in false false :; do 22377 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22378 if test -z "$ac_tt"; then 22379 break 22380 elif $ac_last_try; then 22381 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22382 else 22383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22384 fi 22385done 22386 22387# For the awk script, D is an array of macro values keyed by name, 22388# likewise P contains macro parameters if any. Preserve backslash 22389# newline sequences. 22390 22391ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22392sed -n ' 22393s/.\{148\}/&'"$ac_delim"'/g 22394t rset 22395:rset 22396s/^[ ]*#[ ]*define[ ][ ]*/ / 22397t def 22398d 22399:def 22400s/\\$// 22401t bsnl 22402s/["\\]/\\&/g 22403s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22404D["\1"]=" \3"/p 22405s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22406d 22407:bsnl 22408s/["\\]/\\&/g 22409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22410D["\1"]=" \3\\\\\\n"\\/p 22411t cont 22412s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22413t cont 22414d 22415:cont 22416n 22417s/.\{148\}/&'"$ac_delim"'/g 22418t clear 22419:clear 22420s/\\$// 22421t bsnlc 22422s/["\\]/\\&/g; s/^/"/; s/$/"/p 22423d 22424:bsnlc 22425s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22426b cont 22427' <confdefs.h | sed ' 22428s/'"$ac_delim"'/"\\\ 22429"/g' >>$CONFIG_STATUS || ac_write_fail=1 22430 22431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22432 for (key in D) D_is_set[key] = 1 22433 FS = "" 22434} 22435/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22436 line = \$ 0 22437 split(line, arg, " ") 22438 if (arg[1] == "#") { 22439 defundef = arg[2] 22440 mac1 = arg[3] 22441 } else { 22442 defundef = substr(arg[1], 2) 22443 mac1 = arg[2] 22444 } 22445 split(mac1, mac2, "(") #) 22446 macro = mac2[1] 22447 prefix = substr(line, 1, index(line, defundef) - 1) 22448 if (D_is_set[macro]) { 22449 # Preserve the white space surrounding the "#". 22450 print prefix "define", macro P[macro] D[macro] 22451 next 22452 } else { 22453 # Replace #undef with comments. This is necessary, for example, 22454 # in the case of _POSIX_SOURCE, which is predefined and required 22455 # on some systems where configure will not decide to define it. 22456 if (defundef == "undef") { 22457 print "/*", prefix defundef, macro, "*/" 22458 next 22459 } 22460 } 22461} 22462{ print } 22463_ACAWK 22464_ACEOF 22465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22466 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22467fi # test -n "$CONFIG_HEADERS" 22468 22469 22470eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22471shift 22472for ac_tag 22473do 22474 case $ac_tag in 22475 :[FHLC]) ac_mode=$ac_tag; continue;; 22476 esac 22477 case $ac_mode$ac_tag in 22478 :[FHL]*:*);; 22479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22480 :[FH]-) ac_tag=-:-;; 22481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22482 esac 22483 ac_save_IFS=$IFS 22484 IFS=: 22485 set x $ac_tag 22486 IFS=$ac_save_IFS 22487 shift 22488 ac_file=$1 22489 shift 22490 22491 case $ac_mode in 22492 :L) ac_source=$1;; 22493 :[FH]) 22494 ac_file_inputs= 22495 for ac_f 22496 do 22497 case $ac_f in 22498 -) ac_f="$ac_tmp/stdin";; 22499 *) # Look for the file first in the build tree, then in the source tree 22500 # (if the path is not absolute). The absolute path cannot be DOS-style, 22501 # because $ac_f cannot contain `:'. 22502 test -f "$ac_f" || 22503 case $ac_f in 22504 [\\/$]*) false;; 22505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22506 esac || 22507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22508 esac 22509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22510 as_fn_append ac_file_inputs " '$ac_f'" 22511 done 22512 22513 # Let's still pretend it is `configure' which instantiates (i.e., don't 22514 # use $as_me), people would be surprised to read: 22515 # /* config.h. Generated by config.status. */ 22516 configure_input='Generated from '` 22517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22518 `' by configure.' 22519 if test x"$ac_file" != x-; then 22520 configure_input="$ac_file. $configure_input" 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22522$as_echo "$as_me: creating $ac_file" >&6;} 22523 fi 22524 # Neutralize special characters interpreted by sed in replacement strings. 22525 case $configure_input in #( 22526 *\&* | *\|* | *\\* ) 22527 ac_sed_conf_input=`$as_echo "$configure_input" | 22528 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22529 *) ac_sed_conf_input=$configure_input;; 22530 esac 22531 22532 case $ac_tag in 22533 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22535 esac 22536 ;; 22537 esac 22538 22539 ac_dir=`$as_dirname -- "$ac_file" || 22540$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22541 X"$ac_file" : 'X\(//\)[^/]' \| \ 22542 X"$ac_file" : 'X\(//\)$' \| \ 22543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22544$as_echo X"$ac_file" | 22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22546 s//\1/ 22547 q 22548 } 22549 /^X\(\/\/\)[^/].*/{ 22550 s//\1/ 22551 q 22552 } 22553 /^X\(\/\/\)$/{ 22554 s//\1/ 22555 q 22556 } 22557 /^X\(\/\).*/{ 22558 s//\1/ 22559 q 22560 } 22561 s/.*/./; q'` 22562 as_dir="$ac_dir"; as_fn_mkdir_p 22563 ac_builddir=. 22564 22565case "$ac_dir" in 22566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22567*) 22568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22569 # A ".." for each directory in $ac_dir_suffix. 22570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22571 case $ac_top_builddir_sub in 22572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22574 esac ;; 22575esac 22576ac_abs_top_builddir=$ac_pwd 22577ac_abs_builddir=$ac_pwd$ac_dir_suffix 22578# for backward compatibility: 22579ac_top_builddir=$ac_top_build_prefix 22580 22581case $srcdir in 22582 .) # We are building in place. 22583 ac_srcdir=. 22584 ac_top_srcdir=$ac_top_builddir_sub 22585 ac_abs_top_srcdir=$ac_pwd ;; 22586 [\\/]* | ?:[\\/]* ) # Absolute name. 22587 ac_srcdir=$srcdir$ac_dir_suffix; 22588 ac_top_srcdir=$srcdir 22589 ac_abs_top_srcdir=$srcdir ;; 22590 *) # Relative name. 22591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22592 ac_top_srcdir=$ac_top_build_prefix$srcdir 22593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22594esac 22595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22596 22597 22598 case $ac_mode in 22599 :F) 22600 # 22601 # CONFIG_FILE 22602 # 22603 22604_ACEOF 22605 22606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22607# If the template does not know about datarootdir, expand it. 22608# FIXME: This hack should be removed a few years after 2.60. 22609ac_datarootdir_hack=; ac_datarootdir_seen= 22610ac_sed_dataroot=' 22611/datarootdir/ { 22612 p 22613 q 22614} 22615/@datadir@/p 22616/@docdir@/p 22617/@infodir@/p 22618/@localedir@/p 22619/@mandir@/p' 22620case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22621*datarootdir*) ac_datarootdir_seen=yes;; 22622*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22624$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22625_ACEOF 22626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22627 ac_datarootdir_hack=' 22628 s&@datadir@&$datadir&g 22629 s&@docdir@&$docdir&g 22630 s&@infodir@&$infodir&g 22631 s&@localedir@&$localedir&g 22632 s&@mandir@&$mandir&g 22633 s&\\\${datarootdir}&$datarootdir&g' ;; 22634esac 22635_ACEOF 22636 22637# Neutralize VPATH when `$srcdir' = `.'. 22638# Shell code in configure.ac might set extrasub. 22639# FIXME: do we really want to maintain this feature? 22640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22641ac_sed_extra="$ac_vpsub 22642$extrasub 22643_ACEOF 22644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22645:t 22646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22647s|@configure_input@|$ac_sed_conf_input|;t t 22648s&@top_builddir@&$ac_top_builddir_sub&;t t 22649s&@top_build_prefix@&$ac_top_build_prefix&;t t 22650s&@srcdir@&$ac_srcdir&;t t 22651s&@abs_srcdir@&$ac_abs_srcdir&;t t 22652s&@top_srcdir@&$ac_top_srcdir&;t t 22653s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22654s&@builddir@&$ac_builddir&;t t 22655s&@abs_builddir@&$ac_abs_builddir&;t t 22656s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22657$ac_datarootdir_hack 22658" 22659eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22660 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22661 22662test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22663 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22665 "$ac_tmp/out"`; test -z "$ac_out"; } && 22666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22667which seems to be undefined. Please make sure it is defined" >&5 22668$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22669which seems to be undefined. Please make sure it is defined" >&2;} 22670 22671 rm -f "$ac_tmp/stdin" 22672 case $ac_file in 22673 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22674 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22675 esac \ 22676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22677 ;; 22678 :H) 22679 # 22680 # CONFIG_HEADER 22681 # 22682 if test x"$ac_file" != x-; then 22683 { 22684 $as_echo "/* $configure_input */" \ 22685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22686 } >"$ac_tmp/config.h" \ 22687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22688 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22689 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22690$as_echo "$as_me: $ac_file is unchanged" >&6;} 22691 else 22692 rm -f "$ac_file" 22693 mv "$ac_tmp/config.h" "$ac_file" \ 22694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22695 fi 22696 else 22697 $as_echo "/* $configure_input */" \ 22698 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22699 || as_fn_error $? "could not create -" "$LINENO" 5 22700 fi 22701 ;; 22702 22703 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22704$as_echo "$as_me: executing $ac_file commands" >&6;} 22705 ;; 22706 esac 22707 22708 22709 case $ac_file$ac_mode in 22710 "libtool":C) 22711 22712 # See if we are running on zsh, and set the options that allow our 22713 # commands through without removal of \ escapes. 22714 if test -n "${ZSH_VERSION+set}"; then 22715 setopt NO_GLOB_SUBST 22716 fi 22717 22718 cfgfile=${ofile}T 22719 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22720 $RM "$cfgfile" 22721 22722 cat <<_LT_EOF >> "$cfgfile" 22723#! $SHELL 22724# Generated automatically by $as_me ($PACKAGE) $VERSION 22725# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22726# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22727 22728# Provide generalized library-building support services. 22729# Written by Gordon Matzigkeit, 1996 22730 22731# Copyright (C) 2014 Free Software Foundation, Inc. 22732# This is free software; see the source for copying conditions. There is NO 22733# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22734 22735# GNU Libtool is free software; you can redistribute it and/or modify 22736# it under the terms of the GNU General Public License as published by 22737# the Free Software Foundation; either version 2 of of the License, or 22738# (at your option) any later version. 22739# 22740# As a special exception to the GNU General Public License, if you 22741# distribute this file as part of a program or library that is built 22742# using GNU Libtool, you may include this file under the same 22743# distribution terms that you use for the rest of that program. 22744# 22745# GNU Libtool is distributed in the hope that it will be useful, but 22746# WITHOUT ANY WARRANTY; without even the implied warranty of 22747# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22748# GNU General Public License for more details. 22749# 22750# You should have received a copy of the GNU General Public License 22751# along with this program. If not, see <http://www.gnu.org/licenses/>. 22752 22753 22754# The names of the tagged configurations supported by this script. 22755available_tags='' 22756 22757# Configured defaults for sys_lib_dlsearch_path munging. 22758: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22759 22760# ### BEGIN LIBTOOL CONFIG 22761 22762# Which release of libtool.m4 was used? 22763macro_version=$macro_version 22764macro_revision=$macro_revision 22765 22766# Whether or not to build shared libraries. 22767build_libtool_libs=$enable_shared 22768 22769# Whether or not to build static libraries. 22770build_old_libs=$enable_static 22771 22772# What type of objects to build. 22773pic_mode=$pic_mode 22774 22775# Whether or not to optimize for fast installation. 22776fast_install=$enable_fast_install 22777 22778# Shared archive member basename,for filename based shared library versioning on AIX. 22779shared_archive_member_spec=$shared_archive_member_spec 22780 22781# Shell to use when invoking shell scripts. 22782SHELL=$lt_SHELL 22783 22784# An echo program that protects backslashes. 22785ECHO=$lt_ECHO 22786 22787# The PATH separator for the build system. 22788PATH_SEPARATOR=$lt_PATH_SEPARATOR 22789 22790# The host system. 22791host_alias=$host_alias 22792host=$host 22793host_os=$host_os 22794 22795# The build system. 22796build_alias=$build_alias 22797build=$build 22798build_os=$build_os 22799 22800# A sed program that does not truncate output. 22801SED=$lt_SED 22802 22803# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22804Xsed="\$SED -e 1s/^X//" 22805 22806# A grep program that handles long lines. 22807GREP=$lt_GREP 22808 22809# An ERE matcher. 22810EGREP=$lt_EGREP 22811 22812# A literal string matcher. 22813FGREP=$lt_FGREP 22814 22815# A BSD- or MS-compatible name lister. 22816NM=$lt_NM 22817 22818# Whether we need soft or hard links. 22819LN_S=$lt_LN_S 22820 22821# What is the maximum length of a command? 22822max_cmd_len=$max_cmd_len 22823 22824# Object file suffix (normally "o"). 22825objext=$ac_objext 22826 22827# Executable file suffix (normally ""). 22828exeext=$exeext 22829 22830# whether the shell understands "unset". 22831lt_unset=$lt_unset 22832 22833# turn spaces into newlines. 22834SP2NL=$lt_lt_SP2NL 22835 22836# turn newlines into spaces. 22837NL2SP=$lt_lt_NL2SP 22838 22839# convert \$build file names to \$host format. 22840to_host_file_cmd=$lt_cv_to_host_file_cmd 22841 22842# convert \$build files to toolchain format. 22843to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22844 22845# An object symbol dumper. 22846OBJDUMP=$lt_OBJDUMP 22847 22848# Method to check whether dependent libraries are shared objects. 22849deplibs_check_method=$lt_deplibs_check_method 22850 22851# Command to use when deplibs_check_method = "file_magic". 22852file_magic_cmd=$lt_file_magic_cmd 22853 22854# How to find potential files when deplibs_check_method = "file_magic". 22855file_magic_glob=$lt_file_magic_glob 22856 22857# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22858want_nocaseglob=$lt_want_nocaseglob 22859 22860# DLL creation program. 22861DLLTOOL=$lt_DLLTOOL 22862 22863# Command to associate shared and link libraries. 22864sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22865 22866# The archiver. 22867AR=$lt_AR 22868 22869# Flags to create an archive. 22870AR_FLAGS=$lt_AR_FLAGS 22871 22872# How to feed a file listing to the archiver. 22873archiver_list_spec=$lt_archiver_list_spec 22874 22875# A symbol stripping program. 22876STRIP=$lt_STRIP 22877 22878# Commands used to install an old-style archive. 22879RANLIB=$lt_RANLIB 22880old_postinstall_cmds=$lt_old_postinstall_cmds 22881old_postuninstall_cmds=$lt_old_postuninstall_cmds 22882 22883# Whether to use a lock for old archive extraction. 22884lock_old_archive_extraction=$lock_old_archive_extraction 22885 22886# A C compiler. 22887LTCC=$lt_CC 22888 22889# LTCC compiler flags. 22890LTCFLAGS=$lt_CFLAGS 22891 22892# Take the output of nm and produce a listing of raw symbols and C names. 22893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22894 22895# Transform the output of nm in a proper C declaration. 22896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22897 22898# Transform the output of nm into a list of symbols to manually relocate. 22899global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22900 22901# Transform the output of nm in a C name address pair. 22902global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22903 22904# Transform the output of nm in a C name address pair when lib prefix is needed. 22905global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22906 22907# The name lister interface. 22908nm_interface=$lt_lt_cv_nm_interface 22909 22910# Specify filename containing input files for \$NM. 22911nm_file_list_spec=$lt_nm_file_list_spec 22912 22913# The root where to search for dependent libraries,and where our libraries should be installed. 22914lt_sysroot=$lt_sysroot 22915 22916# Command to truncate a binary pipe. 22917lt_truncate_bin=$lt_lt_cv_truncate_bin 22918 22919# The name of the directory that contains temporary libtool files. 22920objdir=$objdir 22921 22922# Used to examine libraries when file_magic_cmd begins with "file". 22923MAGIC_CMD=$MAGIC_CMD 22924 22925# Must we lock files when doing compilation? 22926need_locks=$lt_need_locks 22927 22928# Manifest tool. 22929MANIFEST_TOOL=$lt_MANIFEST_TOOL 22930 22931# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22932DSYMUTIL=$lt_DSYMUTIL 22933 22934# Tool to change global to local symbols on Mac OS X. 22935NMEDIT=$lt_NMEDIT 22936 22937# Tool to manipulate fat objects and archives on Mac OS X. 22938LIPO=$lt_LIPO 22939 22940# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22941OTOOL=$lt_OTOOL 22942 22943# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22944OTOOL64=$lt_OTOOL64 22945 22946# Old archive suffix (normally "a"). 22947libext=$libext 22948 22949# Shared library suffix (normally ".so"). 22950shrext_cmds=$lt_shrext_cmds 22951 22952# The commands to extract the exported symbol list from a shared archive. 22953extract_expsyms_cmds=$lt_extract_expsyms_cmds 22954 22955# Variables whose values should be saved in libtool wrapper scripts and 22956# restored at link time. 22957variables_saved_for_relink=$lt_variables_saved_for_relink 22958 22959# Do we need the "lib" prefix for modules? 22960need_lib_prefix=$need_lib_prefix 22961 22962# Do we need a version for libraries? 22963need_version=$need_version 22964 22965# Library versioning type. 22966version_type=$version_type 22967 22968# Shared library runtime path variable. 22969runpath_var=$runpath_var 22970 22971# Shared library path variable. 22972shlibpath_var=$shlibpath_var 22973 22974# Is shlibpath searched before the hard-coded library search path? 22975shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22976 22977# Format of library name prefix. 22978libname_spec=$lt_libname_spec 22979 22980# List of archive names. First name is the real one, the rest are links. 22981# The last name is the one that the linker finds with -lNAME 22982library_names_spec=$lt_library_names_spec 22983 22984# The coded name of the library, if different from the real name. 22985soname_spec=$lt_soname_spec 22986 22987# Permission mode override for installation of shared libraries. 22988install_override_mode=$lt_install_override_mode 22989 22990# Command to use after installation of a shared archive. 22991postinstall_cmds=$lt_postinstall_cmds 22992 22993# Command to use after uninstallation of a shared archive. 22994postuninstall_cmds=$lt_postuninstall_cmds 22995 22996# Commands used to finish a libtool library installation in a directory. 22997finish_cmds=$lt_finish_cmds 22998 22999# As "finish_cmds", except a single script fragment to be evaled but 23000# not shown. 23001finish_eval=$lt_finish_eval 23002 23003# Whether we should hardcode library paths into libraries. 23004hardcode_into_libs=$hardcode_into_libs 23005 23006# Compile-time system search path for libraries. 23007sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23008 23009# Detected run-time system search path for libraries. 23010sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23011 23012# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23013configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23014 23015# Whether dlopen is supported. 23016dlopen_support=$enable_dlopen 23017 23018# Whether dlopen of programs is supported. 23019dlopen_self=$enable_dlopen_self 23020 23021# Whether dlopen of statically linked programs is supported. 23022dlopen_self_static=$enable_dlopen_self_static 23023 23024# Commands to strip libraries. 23025old_striplib=$lt_old_striplib 23026striplib=$lt_striplib 23027 23028 23029# The linker used to build libraries. 23030LD=$lt_LD 23031 23032# How to create reloadable object files. 23033reload_flag=$lt_reload_flag 23034reload_cmds=$lt_reload_cmds 23035 23036# Commands used to build an old-style archive. 23037old_archive_cmds=$lt_old_archive_cmds 23038 23039# A language specific compiler. 23040CC=$lt_compiler 23041 23042# Is the compiler the GNU compiler? 23043with_gcc=$GCC 23044 23045# Compiler flag to turn off builtin functions. 23046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23047 23048# Additional compiler flags for building library objects. 23049pic_flag=$lt_lt_prog_compiler_pic 23050 23051# How to pass a linker flag through the compiler. 23052wl=$lt_lt_prog_compiler_wl 23053 23054# Compiler flag to prevent dynamic linking. 23055link_static_flag=$lt_lt_prog_compiler_static 23056 23057# Does compiler simultaneously support -c and -o options? 23058compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23059 23060# Whether or not to add -lc for building shared libraries. 23061build_libtool_need_lc=$archive_cmds_need_lc 23062 23063# Whether or not to disallow shared libs when runtime libs are static. 23064allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23065 23066# Compiler flag to allow reflexive dlopens. 23067export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23068 23069# Compiler flag to generate shared objects directly from archives. 23070whole_archive_flag_spec=$lt_whole_archive_flag_spec 23071 23072# Whether the compiler copes with passing no objects directly. 23073compiler_needs_object=$lt_compiler_needs_object 23074 23075# Create an old-style archive from a shared archive. 23076old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23077 23078# Create a temporary old-style archive to link instead of a shared archive. 23079old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23080 23081# Commands used to build a shared archive. 23082archive_cmds=$lt_archive_cmds 23083archive_expsym_cmds=$lt_archive_expsym_cmds 23084 23085# Commands used to build a loadable module if different from building 23086# a shared archive. 23087module_cmds=$lt_module_cmds 23088module_expsym_cmds=$lt_module_expsym_cmds 23089 23090# Whether we are building with GNU ld or not. 23091with_gnu_ld=$lt_with_gnu_ld 23092 23093# Flag that allows shared libraries with undefined symbols to be built. 23094allow_undefined_flag=$lt_allow_undefined_flag 23095 23096# Flag that enforces no undefined symbols. 23097no_undefined_flag=$lt_no_undefined_flag 23098 23099# Flag to hardcode \$libdir into a binary during linking. 23100# This must work even if \$libdir does not exist 23101hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23102 23103# Whether we need a single "-rpath" flag with a separated argument. 23104hardcode_libdir_separator=$lt_hardcode_libdir_separator 23105 23106# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23107# DIR into the resulting binary. 23108hardcode_direct=$hardcode_direct 23109 23110# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23111# DIR into the resulting binary and the resulting library dependency is 23112# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23113# library is relocated. 23114hardcode_direct_absolute=$hardcode_direct_absolute 23115 23116# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23117# into the resulting binary. 23118hardcode_minus_L=$hardcode_minus_L 23119 23120# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23121# into the resulting binary. 23122hardcode_shlibpath_var=$hardcode_shlibpath_var 23123 23124# Set to "yes" if building a shared library automatically hardcodes DIR 23125# into the library and all subsequent libraries and executables linked 23126# against it. 23127hardcode_automatic=$hardcode_automatic 23128 23129# Set to yes if linker adds runtime paths of dependent libraries 23130# to runtime path list. 23131inherit_rpath=$inherit_rpath 23132 23133# Whether libtool must link a program against all its dependency libraries. 23134link_all_deplibs=$link_all_deplibs 23135 23136# Set to "yes" if exported symbols are required. 23137always_export_symbols=$always_export_symbols 23138 23139# The commands to list exported symbols. 23140export_symbols_cmds=$lt_export_symbols_cmds 23141 23142# Symbols that should not be listed in the preloaded symbols. 23143exclude_expsyms=$lt_exclude_expsyms 23144 23145# Symbols that must always be exported. 23146include_expsyms=$lt_include_expsyms 23147 23148# Commands necessary for linking programs (against libraries) with templates. 23149prelink_cmds=$lt_prelink_cmds 23150 23151# Commands necessary for finishing linking programs. 23152postlink_cmds=$lt_postlink_cmds 23153 23154# Specify filename containing input files. 23155file_list_spec=$lt_file_list_spec 23156 23157# How to hardcode a shared library path into an executable. 23158hardcode_action=$hardcode_action 23159 23160# ### END LIBTOOL CONFIG 23161 23162_LT_EOF 23163 23164 cat <<'_LT_EOF' >> "$cfgfile" 23165 23166# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23167 23168# func_munge_path_list VARIABLE PATH 23169# ----------------------------------- 23170# VARIABLE is name of variable containing _space_ separated list of 23171# directories to be munged by the contents of PATH, which is string 23172# having a format: 23173# "DIR[:DIR]:" 23174# string "DIR[ DIR]" will be prepended to VARIABLE 23175# ":DIR[:DIR]" 23176# string "DIR[ DIR]" will be appended to VARIABLE 23177# "DIRP[:DIRP]::[DIRA:]DIRA" 23178# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23179# "DIRA[ DIRA]" will be appended to VARIABLE 23180# "DIR[:DIR]" 23181# VARIABLE will be replaced by "DIR[ DIR]" 23182func_munge_path_list () 23183{ 23184 case x$2 in 23185 x) 23186 ;; 23187 *:) 23188 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23189 ;; 23190 x:*) 23191 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23192 ;; 23193 *::*) 23194 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23195 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23196 ;; 23197 *) 23198 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23199 ;; 23200 esac 23201} 23202 23203 23204# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23205func_cc_basename () 23206{ 23207 for cc_temp in $*""; do 23208 case $cc_temp in 23209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23211 \-*) ;; 23212 *) break;; 23213 esac 23214 done 23215 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23216} 23217 23218 23219# ### END FUNCTIONS SHARED WITH CONFIGURE 23220 23221_LT_EOF 23222 23223 case $host_os in 23224 aix3*) 23225 cat <<\_LT_EOF >> "$cfgfile" 23226# AIX sometimes has problems with the GCC collect2 program. For some 23227# reason, if we set the COLLECT_NAMES environment variable, the problems 23228# vanish in a puff of smoke. 23229if test set != "${COLLECT_NAMES+set}"; then 23230 COLLECT_NAMES= 23231 export COLLECT_NAMES 23232fi 23233_LT_EOF 23234 ;; 23235 esac 23236 23237 23238ltmain=$ac_aux_dir/ltmain.sh 23239 23240 23241 # We use sed instead of cat because bash on DJGPP gets confused if 23242 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23243 # text mode, it properly converts lines to CR/LF. This bash problem 23244 # is reportedly fixed, but why not run on old versions too? 23245 sed '$q' "$ltmain" >> "$cfgfile" \ 23246 || (rm -f "$cfgfile"; exit 1) 23247 23248 mv -f "$cfgfile" "$ofile" || 23249 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23250 chmod +x "$ofile" 23251 23252 ;; 23253 "disable-rpath":C) 23254 sed < libtool > libtool-2 \ 23255 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 23256 mv libtool-2 libtool 23257 chmod 755 libtool 23258 libtool="./libtool" 23259 ;; 23260 23261 esac 23262done # for ac_tag 23263 23264 23265as_fn_exit 0 23266_ACEOF 23267ac_clean_files=$ac_clean_files_save 23268 23269test $ac_write_fail = 0 || 23270 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23271 23272 23273# configure is writing to config.log, and then calls config.status. 23274# config.status does its own redirection, appending to config.log. 23275# Unfortunately, on DOS this fails, as config.log is still kept open 23276# by configure, so config.status won't be able to write to it; its 23277# output is simply discarded. So we exec the FD to /dev/null, 23278# effectively closing config.log, so it can be properly (re)opened and 23279# appended to by config.status. When coming back to configure, we 23280# need to make the FD available again. 23281if test "$no_create" != yes; then 23282 ac_cs_success=: 23283 ac_config_status_args= 23284 test "$silent" = yes && 23285 ac_config_status_args="$ac_config_status_args --quiet" 23286 exec 5>/dev/null 23287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23288 exec 5>>config.log 23289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23290 # would make configure fail if this is the last instruction. 23291 $ac_cs_success || as_fn_exit 1 23292fi 23293if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23295$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23296fi 23297 23298