1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.4.22. 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.4.22' 594PACKAGE_STRING='unbound 1.4.22' 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 635INSTALLTARGET 636ALLTARGET 637SOURCEFILE 638SOURCEDETERMINE 639UBSYMS 640EXTRALINK 641COMMON_OBJ_ALL_SYMBOLS 642LIBOBJ_WITHOUT_CTIME 643WIN_CHECKCONF_OBJ_LINK 644WIN_CONTROL_OBJ_LINK 645WIN_UBANCHOR_OBJ_LINK 646WIN_HOST_OBJ_LINK 647WIN_DAEMON_OBJ_LINK 648WIN_DAEMON_OBJ 649WIN_DAEMON_SRC 650WINAPPS 651WINDRES 652CHECKLOCK_OBJ 653staticexe 654UNBOUND_EVENT_UNINSTALL 655UNBOUND_EVENT_INSTALL 656HAVE_SSL 657CONFIG_DATE 658NETBSD_LINTFLAGS 659PYUNBOUND_UNINSTALL 660PYUNBOUND_INSTALL 661PYUNBOUND_TARGET 662PYUNBOUND_OBJ 663WITH_PYUNBOUND 664PYTHONMOD_UNINSTALL 665PYTHONMOD_INSTALL 666PYTHONMOD_HEADER 667PYTHONMOD_OBJ 668WITH_PYTHONMODULE 669swig 670SWIG_LIB 671SWIG 672PYTHON_EXTRA_LDFLAGS 673PYTHON_EXTRA_LIBS 674PYTHON_SITE_PKG 675PYTHON_LDFLAGS 676PYTHON_CPPFLAGS 677PYTHON 678PYTHON_VERSION 679PTHREAD_CFLAGS 680PTHREAD_LIBS 681PTHREAD_CC 682ax_pthread_config 683RUNTIME_PATH 684LIBOBJS 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691AWK 692RANLIB 693ac_ct_AR 694DLLTOOL 695OBJDUMP 696LN_S 697NM 698ac_ct_DUMPBIN 699DUMPBIN 700LD 701FGREP 702SED 703LIBTOOL 704AR 705host_os 706host_vendor 707host_cpu 708host 709build_os 710build_vendor 711build_cpu 712build 713libtool 714STRIP 715doxygen 716YFLAGS 717YACC 718LEXLIB 719LEX_OUTPUT_ROOT 720LEX 721debug_enabled 722DEPFLAG 723UNBOUND_USERNAME 724UNBOUND_ROOTCERT_FILE 725UNBOUND_ROOTKEY_FILE 726UNBOUND_PIDFILE 727UNBOUND_SHARE_DIR 728UNBOUND_CHROOT_DIR 729UNBOUND_RUN_DIR 730ub_conf_file 731EGREP 732GREP 733CPP 734OBJEXT 735EXEEXT 736ac_ct_CC 737CPPFLAGS 738LDFLAGS 739CFLAGS 740CC 741LIBUNBOUND_AGE 742LIBUNBOUND_REVISION 743LIBUNBOUND_CURRENT 744UNBOUND_VERSION_MICRO 745UNBOUND_VERSION_MINOR 746UNBOUND_VERSION_MAJOR 747target_alias 748host_alias 749build_alias 750LIBS 751ECHO_T 752ECHO_N 753ECHO_C 754DEFS 755mandir 756localedir 757libdir 758psdir 759pdfdir 760dvidir 761htmldir 762infodir 763docdir 764oldincludedir 765includedir 766localstatedir 767sharedstatedir 768sysconfdir 769datadir 770datarootdir 771libexecdir 772sbindir 773bindir 774program_transform_name 775prefix 776exec_prefix 777PACKAGE_URL 778PACKAGE_BUGREPORT 779PACKAGE_STRING 780PACKAGE_VERSION 781PACKAGE_TARNAME 782PACKAGE_NAME 783PATH_SEPARATOR 784SHELL' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788with_conf_file 789with_run_dir 790with_chroot_dir 791with_share_dir 792with_pidfile 793with_rootkey_file 794with_rootcert_file 795with_username 796enable_checking 797enable_debug 798enable_flto 799enable_shared 800enable_static 801with_pic 802enable_fast_install 803with_gnu_ld 804with_sysroot 805enable_libtool_lock 806enable_rpath 807enable_largefile 808enable_alloc_checks 809enable_alloc_lite 810enable_alloc_nonregional 811with_pthreads 812with_solaris_threads 813with_pyunbound 814with_pythonmodule 815with_nss 816with_ssl 817enable_sha2 818enable_gost 819enable_ecdsa 820enable_event_api 821with_libevent 822with_libexpat 823enable_static_exe 824enable_lock_checks 825enable_allsymbols 826with_libunbound_only 827' 828 ac_precious_vars='build_alias 829host_alias 830target_alias 831CC 832CFLAGS 833LDFLAGS 834LIBS 835CPPFLAGS 836CPP 837YACC 838YFLAGS 839PYTHON_VERSION' 840 841 842# Initialize some variables set by options. 843ac_init_help= 844ac_init_version=false 845ac_unrecognized_opts= 846ac_unrecognized_sep= 847# The variables have the same names as the options, with 848# dashes changed to underlines. 849cache_file=/dev/null 850exec_prefix=NONE 851no_create= 852no_recursion= 853prefix=NONE 854program_prefix=NONE 855program_suffix=NONE 856program_transform_name=s,x,x, 857silent= 858site= 859srcdir= 860verbose= 861x_includes=NONE 862x_libraries=NONE 863 864# Installation directory options. 865# These are left unexpanded so users can "make install exec_prefix=/foo" 866# and all the variables that are supposed to be based on exec_prefix 867# by default will actually change. 868# Use braces instead of parens because sh, perl, etc. also accept them. 869# (The list follows the same order as the GNU Coding Standards.) 870bindir='${exec_prefix}/bin' 871sbindir='${exec_prefix}/sbin' 872libexecdir='${exec_prefix}/libexec' 873datarootdir='${prefix}/share' 874datadir='${datarootdir}' 875sysconfdir='${prefix}/etc' 876sharedstatedir='${prefix}/com' 877localstatedir='${prefix}/var' 878includedir='${prefix}/include' 879oldincludedir='/usr/include' 880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881infodir='${datarootdir}/info' 882htmldir='${docdir}' 883dvidir='${docdir}' 884pdfdir='${docdir}' 885psdir='${docdir}' 886libdir='${exec_prefix}/lib' 887localedir='${datarootdir}/locale' 888mandir='${datarootdir}/man' 889 890ac_prev= 891ac_dashdash= 892for ac_option 893do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 # Accept the important Cygnus configure options, so we can diagnose typos. 908 909 case $ac_dashdash$ac_option in 910 --) 911 ac_dashdash=yes ;; 912 913 -bindir | --bindir | --bindi | --bind | --bin | --bi) 914 ac_prev=bindir ;; 915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 916 bindir=$ac_optarg ;; 917 918 -build | --build | --buil | --bui | --bu) 919 ac_prev=build_alias ;; 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 921 build_alias=$ac_optarg ;; 922 923 -cache-file | --cache-file | --cache-fil | --cache-fi \ 924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 925 ac_prev=cache_file ;; 926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 928 cache_file=$ac_optarg ;; 929 930 --config-cache | -C) 931 cache_file=config.cache ;; 932 933 -datadir | --datadir | --datadi | --datad) 934 ac_prev=datadir ;; 935 -datadir=* | --datadir=* | --datadi=* | --datad=*) 936 datadir=$ac_optarg ;; 937 938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 939 | --dataroo | --dataro | --datar) 940 ac_prev=datarootdir ;; 941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 943 datarootdir=$ac_optarg ;; 944 945 -disable-* | --disable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=no ;; 960 961 -docdir | --docdir | --docdi | --doc | --do) 962 ac_prev=docdir ;; 963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 964 docdir=$ac_optarg ;; 965 966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 967 ac_prev=dvidir ;; 968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 969 dvidir=$ac_optarg ;; 970 971 -enable-* | --enable-*) 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 973 # Reject names that are not valid shell variable names. 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 975 as_fn_error $? "invalid feature name: $ac_useropt" 976 ac_useropt_orig=$ac_useropt 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 978 case $ac_user_opts in 979 *" 980"enable_$ac_useropt" 981"*) ;; 982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 983 ac_unrecognized_sep=', ';; 984 esac 985 eval enable_$ac_useropt=\$ac_optarg ;; 986 987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 989 | --exec | --exe | --ex) 990 ac_prev=exec_prefix ;; 991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 993 | --exec=* | --exe=* | --ex=*) 994 exec_prefix=$ac_optarg ;; 995 996 -gas | --gas | --ga | --g) 997 # Obsolete; use --with-gas. 998 with_gas=yes ;; 999 1000 -help | --help | --hel | --he | -h) 1001 ac_init_help=long ;; 1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1003 ac_init_help=recursive ;; 1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1005 ac_init_help=short ;; 1006 1007 -host | --host | --hos | --ho) 1008 ac_prev=host_alias ;; 1009 -host=* | --host=* | --hos=* | --ho=*) 1010 host_alias=$ac_optarg ;; 1011 1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1013 ac_prev=htmldir ;; 1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1015 | --ht=*) 1016 htmldir=$ac_optarg ;; 1017 1018 -includedir | --includedir | --includedi | --included | --include \ 1019 | --includ | --inclu | --incl | --inc) 1020 ac_prev=includedir ;; 1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1022 | --includ=* | --inclu=* | --incl=* | --inc=*) 1023 includedir=$ac_optarg ;; 1024 1025 -infodir | --infodir | --infodi | --infod | --info | --inf) 1026 ac_prev=infodir ;; 1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1028 infodir=$ac_optarg ;; 1029 1030 -libdir | --libdir | --libdi | --libd) 1031 ac_prev=libdir ;; 1032 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1033 libdir=$ac_optarg ;; 1034 1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1036 | --libexe | --libex | --libe) 1037 ac_prev=libexecdir ;; 1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1039 | --libexe=* | --libex=* | --libe=*) 1040 libexecdir=$ac_optarg ;; 1041 1042 -localedir | --localedir | --localedi | --localed | --locale) 1043 ac_prev=localedir ;; 1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1045 localedir=$ac_optarg ;; 1046 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1048 | --localstate | --localstat | --localsta | --localst | --locals) 1049 ac_prev=localstatedir ;; 1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1052 localstatedir=$ac_optarg ;; 1053 1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1055 ac_prev=mandir ;; 1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1057 mandir=$ac_optarg ;; 1058 1059 -nfp | --nfp | --nf) 1060 # Obsolete; use --without-fp. 1061 with_fp=no ;; 1062 1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1064 | --no-cr | --no-c | -n) 1065 no_create=yes ;; 1066 1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1069 no_recursion=yes ;; 1070 1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1073 | --oldin | --oldi | --old | --ol | --o) 1074 ac_prev=oldincludedir ;; 1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1078 oldincludedir=$ac_optarg ;; 1079 1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1081 ac_prev=prefix ;; 1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1083 prefix=$ac_optarg ;; 1084 1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1086 | --program-pre | --program-pr | --program-p) 1087 ac_prev=program_prefix ;; 1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1090 program_prefix=$ac_optarg ;; 1091 1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1093 | --program-suf | --program-su | --program-s) 1094 ac_prev=program_suffix ;; 1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1097 program_suffix=$ac_optarg ;; 1098 1099 -program-transform-name | --program-transform-name \ 1100 | --program-transform-nam | --program-transform-na \ 1101 | --program-transform-n | --program-transform- \ 1102 | --program-transform | --program-transfor \ 1103 | --program-transfo | --program-transf \ 1104 | --program-trans | --program-tran \ 1105 | --progr-tra | --program-tr | --program-t) 1106 ac_prev=program_transform_name ;; 1107 -program-transform-name=* | --program-transform-name=* \ 1108 | --program-transform-nam=* | --program-transform-na=* \ 1109 | --program-transform-n=* | --program-transform-=* \ 1110 | --program-transform=* | --program-transfor=* \ 1111 | --program-transfo=* | --program-transf=* \ 1112 | --program-trans=* | --program-tran=* \ 1113 | --progr-tra=* | --program-tr=* | --program-t=*) 1114 program_transform_name=$ac_optarg ;; 1115 1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1117 ac_prev=pdfdir ;; 1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1119 pdfdir=$ac_optarg ;; 1120 1121 -psdir | --psdir | --psdi | --psd | --ps) 1122 ac_prev=psdir ;; 1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1124 psdir=$ac_optarg ;; 1125 1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1127 | -silent | --silent | --silen | --sile | --sil) 1128 silent=yes ;; 1129 1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1131 ac_prev=sbindir ;; 1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1133 | --sbi=* | --sb=*) 1134 sbindir=$ac_optarg ;; 1135 1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1138 | --sharedst | --shareds | --shared | --share | --shar \ 1139 | --sha | --sh) 1140 ac_prev=sharedstatedir ;; 1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1144 | --sha=* | --sh=*) 1145 sharedstatedir=$ac_optarg ;; 1146 1147 -site | --site | --sit) 1148 ac_prev=site ;; 1149 -site=* | --site=* | --sit=*) 1150 site=$ac_optarg ;; 1151 1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1153 ac_prev=srcdir ;; 1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1155 srcdir=$ac_optarg ;; 1156 1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1158 | --syscon | --sysco | --sysc | --sys | --sy) 1159 ac_prev=sysconfdir ;; 1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1162 sysconfdir=$ac_optarg ;; 1163 1164 -target | --target | --targe | --targ | --tar | --ta | --t) 1165 ac_prev=target_alias ;; 1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1167 target_alias=$ac_optarg ;; 1168 1169 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1170 verbose=yes ;; 1171 1172 -version | --version | --versio | --versi | --vers | -V) 1173 ac_init_version=: ;; 1174 1175 -with-* | --with-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184"with_$ac_useropt" 1185"*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=\$ac_optarg ;; 1190 1191 -without-* | --without-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error $? "invalid package name: $ac_useropt" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200"with_$ac_useropt" 1201"*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=no ;; 1206 1207 --x) 1208 # Obsolete; use --with-x. 1209 with_x=yes ;; 1210 1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1212 | --x-incl | --x-inc | --x-in | --x-i) 1213 ac_prev=x_includes ;; 1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1216 x_includes=$ac_optarg ;; 1217 1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1220 ac_prev=x_libraries ;; 1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1223 x_libraries=$ac_optarg ;; 1224 1225 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1226Try \`$0 --help' for more information" 1227 ;; 1228 1229 *=*) 1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1231 # Reject names that are not valid shell variable names. 1232 case $ac_envvar in #( 1233 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1235 esac 1236 eval $ac_envvar=\$ac_optarg 1237 export $ac_envvar ;; 1238 1239 *) 1240 # FIXME: should be removed in autoconf 3.0. 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1245 ;; 1246 1247 esac 1248done 1249 1250if test -n "$ac_prev"; then 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1252 as_fn_error $? "missing argument to $ac_option" 1253fi 1254 1255if test -n "$ac_unrecognized_opts"; then 1256 case $enable_option_checking in 1257 no) ;; 1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1260 esac 1261fi 1262 1263# Check all directory arguments for consistency. 1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1265 datadir sysconfdir sharedstatedir localstatedir includedir \ 1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1267 libdir localedir mandir 1268do 1269 eval ac_val=\$$ac_var 1270 # Remove trailing slashes. 1271 case $ac_val in 1272 */ ) 1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1274 eval $ac_var=\$ac_val;; 1275 esac 1276 # Be sure to have absolute directory names. 1277 case $ac_val in 1278 [\\/$]* | ?:[\\/]* ) continue;; 1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1280 esac 1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1282done 1283 1284# There might be people who depend on the old broken behavior: `$host' 1285# used to hold the argument of --host etc. 1286# FIXME: To remove some day. 1287build=$build_alias 1288host=$host_alias 1289target=$target_alias 1290 1291# FIXME: To remove some day. 1292if test "x$host_alias" != x; then 1293 if test "x$build_alias" = x; then 1294 cross_compiling=maybe 1295 elif test "x$build_alias" != "x$host_alias"; then 1296 cross_compiling=yes 1297 fi 1298fi 1299 1300ac_tool_prefix= 1301test -n "$host_alias" && ac_tool_prefix=$host_alias- 1302 1303test "$silent" = yes && exec 6>/dev/null 1304 1305 1306ac_pwd=`pwd` && test -n "$ac_pwd" && 1307ac_ls_di=`ls -di .` && 1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1309 as_fn_error $? "working directory cannot be determined" 1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1311 as_fn_error $? "pwd does not report name of working directory" 1312 1313 1314# Find the source files, if location was not specified. 1315if test -z "$srcdir"; then 1316 ac_srcdir_defaulted=yes 1317 # Try the directory containing this script, then the parent directory. 1318 ac_confdir=`$as_dirname -- "$as_myself" || 1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1320 X"$as_myself" : 'X\(//\)[^/]' \| \ 1321 X"$as_myself" : 'X\(//\)$' \| \ 1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1323$as_echo X"$as_myself" | 1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)[^/].*/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)$/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\).*/{ 1337 s//\1/ 1338 q 1339 } 1340 s/.*/./; q'` 1341 srcdir=$ac_confdir 1342 if test ! -r "$srcdir/$ac_unique_file"; then 1343 srcdir=.. 1344 fi 1345else 1346 ac_srcdir_defaulted=no 1347fi 1348if test ! -r "$srcdir/$ac_unique_file"; then 1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1351fi 1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1353ac_abs_confdir=`( 1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1355 pwd)` 1356# When building in place, set srcdir=. 1357if test "$ac_abs_confdir" = "$ac_pwd"; then 1358 srcdir=. 1359fi 1360# Remove unnecessary trailing slashes from srcdir. 1361# Double slashes in file names in object file debugging info 1362# mess up M-x gdb in Emacs. 1363case $srcdir in 1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1365esac 1366for ac_var in $ac_precious_vars; do 1367 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1368 eval ac_env_${ac_var}_value=\$${ac_var} 1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1370 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1371done 1372 1373# 1374# Report the --help message. 1375# 1376if test "$ac_init_help" = "long"; then 1377 # Omit some internal or obsolete options to make the list less imposing. 1378 # This message is too long to be a string in the A/UX 3.1 sh. 1379 cat <<_ACEOF 1380\`configure' configures unbound 1.4.22 to adapt to many kinds of systems. 1381 1382Usage: $0 [OPTION]... [VAR=VALUE]... 1383 1384To assign environment variables (e.g., CC, CFLAGS...), specify them as 1385VAR=VALUE. See below for descriptions of some of the useful variables. 1386 1387Defaults for the options are specified in brackets. 1388 1389Configuration: 1390 -h, --help display this help and exit 1391 --help=short display options specific to this package 1392 --help=recursive display the short help of all the included packages 1393 -V, --version display version information and exit 1394 -q, --quiet, --silent do not print \`checking ...' messages 1395 --cache-file=FILE cache test results in FILE [disabled] 1396 -C, --config-cache alias for \`--cache-file=config.cache' 1397 -n, --no-create do not create output files 1398 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1399 1400Installation directories: 1401 --prefix=PREFIX install architecture-independent files in PREFIX 1402 [$ac_default_prefix] 1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1404 [PREFIX] 1405 1406By default, \`make install' will install all the files in 1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1408an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1409for instance \`--prefix=\$HOME'. 1410 1411For better control, use the options below. 1412 1413Fine tuning of the installation directories: 1414 --bindir=DIR user executables [EPREFIX/bin] 1415 --sbindir=DIR system admin executables [EPREFIX/sbin] 1416 --libexecdir=DIR program executables [EPREFIX/libexec] 1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1420 --libdir=DIR object code libraries [EPREFIX/lib] 1421 --includedir=DIR C header files [PREFIX/include] 1422 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1425 --infodir=DIR info documentation [DATAROOTDIR/info] 1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1427 --mandir=DIR man documentation [DATAROOTDIR/man] 1428 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1429 --htmldir=DIR html documentation [DOCDIR] 1430 --dvidir=DIR dvi documentation [DOCDIR] 1431 --pdfdir=DIR pdf documentation [DOCDIR] 1432 --psdir=DIR ps documentation [DOCDIR] 1433_ACEOF 1434 1435 cat <<\_ACEOF 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of unbound 1.4.22:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-checking Enable warnings, asserts, makefile-dependencies 1454 --enable-debug same as enable-checking 1455 --disable-flto Disable link-time optimization (gcc specific option) 1456 --enable-shared[=PKGS] build shared libraries [default=yes] 1457 --enable-static[=PKGS] build static libraries [default=yes] 1458 --enable-fast-install[=PKGS] 1459 optimize for fast installation [default=yes] 1460 --disable-libtool-lock avoid locking (might break parallel builds) 1461 --disable-rpath disable hardcoded rpath (default=enabled) 1462 --disable-largefile omit support for large files 1463 --enable-alloc-checks enable to memory allocation statistics, for debug 1464 purposes 1465 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1466 purposes 1467 --enable-alloc-nonregional 1468 enable nonregional allocs, slow but exposes regional 1469 allocations to other memory purifiers, for debug 1470 purposes 1471 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1472 --disable-gost Disable GOST support 1473 --disable-ecdsa Disable ECDSA support 1474 --enable-event-api Enable (experimental) libevent-based libunbound API 1475 installed to unbound-event.h 1476 --enable-static-exe enable to compile executables statically against 1477 (event) libs, for debug purposes 1478 --enable-lock-checks enable to check lock and unlock calls, for debug 1479 purposes 1480 --enable-allsymbols export all symbols from libunbound and link binaries 1481 to it, smaller install size but libunbound export 1482 table is polluted by internal symbols 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-conf-file=path Pathname to the Unbound configuration file 1488 --with-run-dir=path set default directory to chdir to (by default dir 1489 part of cfg file) 1490 --with-chroot-dir=path set default directory to chroot to (by default same 1491 as run-dir) 1492 --with-share-dir=path set default directory with shared data (by default 1493 same as share/unbound) 1494 --with-pidfile=filename set default pathname to unbound pidfile (default 1495 run-dir/unbound.pid) 1496 --with-rootkey-file=filename 1497 set default pathname to root key file (default 1498 run-dir/root.key). This file is read and written. 1499 --with-rootcert-file=filename 1500 set default pathname to root update certificate file 1501 (default run-dir/icannbundle.pem). This file need 1502 not exist if you are content with the builtin. 1503 --with-username=user set default user that unbound changes to (default 1504 user is unbound) 1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1506 both] 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1508 --with-sysroot=DIR Search for dependent libraries within DIR 1509 (or the compiler's sysroot if not specified). 1510 --with-pthreads use pthreads library, or --without-pthreads to 1511 disable threading support. 1512 --with-solaris-threads use solaris native thread library. 1513 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1514 (default=no) 1515 --with-pythonmodule build Python module, or --without-pythonmodule to 1516 disable script engine. (default=no) 1517 --with-nss=path use libnss instead of openssl, installed at path. 1518 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1519 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1520 /usr) 1521 --with-libevent=pathname 1522 use libevent (will check /usr/local /opt/local 1523 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1524 an explicit path). Slower, but allows use of large 1525 outgoing port ranges. 1526 --with-libexpat=path specify explicit path for libexpat. 1527 --with-libunbound-only do not build daemon and tool programs 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 CPP C preprocessor 1538 YACC The `Yet Another Compiler Compiler' implementation to use. 1539 Defaults to the first program found out of: `bison -y', `byacc', 1540 `yacc'. 1541 YFLAGS The list of arguments that will be passed by default to $YACC. 1542 This script will default YFLAGS to the empty string to avoid a 1543 default value of `-d' given by some make applications. 1544 PYTHON_VERSION 1545 The installed Python version to use, for example '2.3'. This 1546 string will be appended to the Python interpreter canonical 1547 name. 1548 1549Use these variables to override the choices made by `configure' or to help 1550it to find libraries and programs with nonstandard names/locations. 1551 1552Report bugs to <unbound-bugs@nlnetlabs.nl>. 1553_ACEOF 1554ac_status=$? 1555fi 1556 1557if test "$ac_init_help" = "recursive"; then 1558 # If there are subdirs, report their specific --help. 1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1560 test -d "$ac_dir" || 1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1562 continue 1563 ac_builddir=. 1564 1565case "$ac_dir" in 1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1567*) 1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1569 # A ".." for each directory in $ac_dir_suffix. 1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1571 case $ac_top_builddir_sub in 1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1574 esac ;; 1575esac 1576ac_abs_top_builddir=$ac_pwd 1577ac_abs_builddir=$ac_pwd$ac_dir_suffix 1578# for backward compatibility: 1579ac_top_builddir=$ac_top_build_prefix 1580 1581case $srcdir in 1582 .) # We are building in place. 1583 ac_srcdir=. 1584 ac_top_srcdir=$ac_top_builddir_sub 1585 ac_abs_top_srcdir=$ac_pwd ;; 1586 [\\/]* | ?:[\\/]* ) # Absolute name. 1587 ac_srcdir=$srcdir$ac_dir_suffix; 1588 ac_top_srcdir=$srcdir 1589 ac_abs_top_srcdir=$srcdir ;; 1590 *) # Relative name. 1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1592 ac_top_srcdir=$ac_top_build_prefix$srcdir 1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1594esac 1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1596 1597 cd "$ac_dir" || { ac_status=$?; continue; } 1598 # Check for guested configure. 1599 if test -f "$ac_srcdir/configure.gnu"; then 1600 echo && 1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1602 elif test -f "$ac_srcdir/configure"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure" --help=recursive 1605 else 1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1607 fi || ac_status=$? 1608 cd "$ac_pwd" || { ac_status=$?; break; } 1609 done 1610fi 1611 1612test -n "$ac_init_help" && exit $ac_status 1613if $ac_init_version; then 1614 cat <<\_ACEOF 1615unbound configure 1.4.22 1616generated by GNU Autoconf 2.69 1617 1618Copyright (C) 2012 Free Software Foundation, Inc. 1619This configure script is free software; the Free Software Foundation 1620gives unlimited permission to copy, distribute and modify it. 1621_ACEOF 1622 exit 1623fi 1624 1625## ------------------------ ## 1626## Autoconf initialization. ## 1627## ------------------------ ## 1628 1629# ac_fn_c_try_compile LINENO 1630# -------------------------- 1631# Try to compile conftest.$ac_ext, and return whether this succeeded. 1632ac_fn_c_try_compile () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 rm -f conftest.$ac_objext 1636 if { { ac_try="$ac_compile" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_compile") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } && { 1652 test -z "$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 } && test -s conftest.$ac_objext; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_compile 1666 1667# ac_fn_c_try_cpp LINENO 1668# ---------------------- 1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_cpp () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 if { { ac_try="$ac_cpp conftest.$ac_ext" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } > conftest.i && { 1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 }; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 1698fi 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_cpp 1703 1704# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1705# ------------------------------------------------------- 1706# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1707# the include files in INCLUDES and setting the cache variable VAR 1708# accordingly. 1709ac_fn_c_check_header_mongrel () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 if eval \${$3+:} false; then : 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714$as_echo_n "checking for $2... " >&6; } 1715if eval \${$3+:} false; then : 1716 $as_echo_n "(cached) " >&6 1717fi 1718eval ac_res=\$$3 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1720$as_echo "$ac_res" >&6; } 1721else 1722 # Is the header compilable? 1723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1724$as_echo_n "checking $2 usability... " >&6; } 1725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726/* end confdefs.h. */ 1727$4 1728#include <$2> 1729_ACEOF 1730if ac_fn_c_try_compile "$LINENO"; then : 1731 ac_header_compiler=yes 1732else 1733 ac_header_compiler=no 1734fi 1735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1737$as_echo "$ac_header_compiler" >&6; } 1738 1739# Is the header present? 1740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1741$as_echo_n "checking $2 presence... " >&6; } 1742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744#include <$2> 1745_ACEOF 1746if ac_fn_c_try_cpp "$LINENO"; then : 1747 ac_header_preproc=yes 1748else 1749 ac_header_preproc=no 1750fi 1751rm -f conftest.err conftest.i conftest.$ac_ext 1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1753$as_echo "$ac_header_preproc" >&6; } 1754 1755# So? What about this header? 1756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1757 yes:no: ) 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1759$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1761$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1762 ;; 1763 no:yes:* ) 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1765$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1767$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1769$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1771$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1773$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1774( $as_echo "## ---------------------------------------- ## 1775## Report this to unbound-bugs@nlnetlabs.nl ## 1776## ---------------------------------------- ##" 1777 ) | sed "s/^/$as_me: WARNING: /" >&2 1778 ;; 1779esac 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1781$as_echo_n "checking for $2... " >&6; } 1782if eval \${$3+:} false; then : 1783 $as_echo_n "(cached) " >&6 1784else 1785 eval "$3=\$ac_header_compiler" 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790fi 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 1793} # ac_fn_c_check_header_mongrel 1794 1795# ac_fn_c_try_run LINENO 1796# ---------------------- 1797# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1798# that executables *can* be run. 1799ac_fn_c_try_run () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if { { ac_try="$ac_link" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_link") 2>&5 1810 ac_status=$? 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1813 { { case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_try") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; }; }; then : 1823 ac_retval=0 1824else 1825 $as_echo "$as_me: program exited with status $ac_status" >&5 1826 $as_echo "$as_me: failed program was:" >&5 1827sed 's/^/| /' conftest.$ac_ext >&5 1828 1829 ac_retval=$ac_status 1830fi 1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 as_fn_set_status $ac_retval 1834 1835} # ac_fn_c_try_run 1836 1837# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1838# ------------------------------------------------------- 1839# Tests whether HEADER exists and can be compiled using the include files in 1840# INCLUDES, setting the cache variable VAR accordingly. 1841ac_fn_c_check_header_compile () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1845$as_echo_n "checking for $2... " >&6; } 1846if eval \${$3+:} false; then : 1847 $as_echo_n "(cached) " >&6 1848else 1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1850/* end confdefs.h. */ 1851$4 1852#include <$2> 1853_ACEOF 1854if ac_fn_c_try_compile "$LINENO"; then : 1855 eval "$3=yes" 1856else 1857 eval "$3=no" 1858fi 1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1860fi 1861eval ac_res=\$$3 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1863$as_echo "$ac_res" >&6; } 1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865 1866} # ac_fn_c_check_header_compile 1867 1868# ac_fn_c_try_link LINENO 1869# ----------------------- 1870# Try to link conftest.$ac_ext, and return whether this succeeded. 1871ac_fn_c_try_link () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 rm -f conftest.$ac_objext conftest$ac_exeext 1875 if { { ac_try="$ac_link" 1876case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881$as_echo "$ac_try_echo"; } >&5 1882 (eval "$ac_link") 2>conftest.err 1883 ac_status=$? 1884 if test -s conftest.err; then 1885 grep -v '^ *+' conftest.err >conftest.er1 1886 cat conftest.er1 >&5 1887 mv -f conftest.er1 conftest.err 1888 fi 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; } && { 1891 test -z "$ac_c_werror_flag" || 1892 test ! -s conftest.err 1893 } && test -s conftest$ac_exeext && { 1894 test "$cross_compiling" = yes || 1895 test -x conftest$ac_exeext 1896 }; then : 1897 ac_retval=0 1898else 1899 $as_echo "$as_me: failed program was:" >&5 1900sed 's/^/| /' conftest.$ac_ext >&5 1901 1902 ac_retval=1 1903fi 1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1906 # interfere with the next link command; also delete a directory that is 1907 # left behind by Apple's compiler. We do this before executing the actions. 1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 as_fn_set_status $ac_retval 1911 1912} # ac_fn_c_try_link 1913 1914# ac_fn_c_check_func LINENO FUNC VAR 1915# ---------------------------------- 1916# Tests whether FUNC exists, setting the cache variable VAR accordingly 1917ac_fn_c_check_func () 1918{ 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1921$as_echo_n "checking for $2... " >&6; } 1922if eval \${$3+:} false; then : 1923 $as_echo_n "(cached) " >&6 1924else 1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1926/* end confdefs.h. */ 1927/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1928 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1929#define $2 innocuous_$2 1930 1931/* System header to define __stub macros and hopefully few prototypes, 1932 which can conflict with char $2 (); below. 1933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1934 <limits.h> exists even on freestanding compilers. */ 1935 1936#ifdef __STDC__ 1937# include <limits.h> 1938#else 1939# include <assert.h> 1940#endif 1941 1942#undef $2 1943 1944/* Override any GCC internal prototype to avoid an error. 1945 Use char because int might match the return type of a GCC 1946 builtin and then its argument prototype would still apply. */ 1947#ifdef __cplusplus 1948extern "C" 1949#endif 1950char $2 (); 1951/* The GNU C library defines this for functions which it implements 1952 to always fail with ENOSYS. Some functions are actually named 1953 something starting with __ and the normal name is an alias. */ 1954#if defined __stub_$2 || defined __stub___$2 1955choke me 1956#endif 1957 1958int 1959main () 1960{ 1961return $2 (); 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_link "$LINENO"; then : 1967 eval "$3=yes" 1968else 1969 eval "$3=no" 1970fi 1971rm -f core conftest.err conftest.$ac_objext \ 1972 conftest$ac_exeext conftest.$ac_ext 1973fi 1974eval ac_res=\$$3 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1976$as_echo "$ac_res" >&6; } 1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1978 1979} # ac_fn_c_check_func 1980 1981# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1982# ------------------------------------------- 1983# Tests whether TYPE exists after having included INCLUDES, setting cache 1984# variable VAR accordingly. 1985ac_fn_c_check_type () 1986{ 1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1989$as_echo_n "checking for $2... " >&6; } 1990if eval \${$3+:} false; then : 1991 $as_echo_n "(cached) " >&6 1992else 1993 eval "$3=no" 1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995/* end confdefs.h. */ 1996$4 1997int 1998main () 1999{ 2000if (sizeof ($2)) 2001 return 0; 2002 ; 2003 return 0; 2004} 2005_ACEOF 2006if ac_fn_c_try_compile "$LINENO"; then : 2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2008/* end confdefs.h. */ 2009$4 2010int 2011main () 2012{ 2013if (sizeof (($2))) 2014 return 0; 2015 ; 2016 return 0; 2017} 2018_ACEOF 2019if ac_fn_c_try_compile "$LINENO"; then : 2020 2021else 2022 eval "$3=yes" 2023fi 2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2025fi 2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2027fi 2028eval ac_res=\$$3 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2030$as_echo "$ac_res" >&6; } 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032 2033} # ac_fn_c_check_type 2034 2035# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2036# -------------------------------------------- 2037# Tries to find the compile-time value of EXPR in a program that includes 2038# INCLUDES, setting VAR accordingly. Returns whether the value could be 2039# computed 2040ac_fn_c_compute_int () 2041{ 2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2043 if test "$cross_compiling" = yes; then 2044 # Depending upon the size, compute the lo and hi bounds. 2045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046/* end confdefs.h. */ 2047$4 2048int 2049main () 2050{ 2051static int test_array [1 - 2 * !(($2) >= 0)]; 2052test_array [0] = 0; 2053return test_array [0]; 2054 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO"; then : 2060 ac_lo=0 ac_mid=0 2061 while :; do 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$4 2065int 2066main () 2067{ 2068static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2069test_array [0] = 0; 2070return test_array [0]; 2071 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO"; then : 2077 ac_hi=$ac_mid; break 2078else 2079 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2080 if test $ac_lo -le $ac_mid; then 2081 ac_lo= ac_hi= 2082 break 2083 fi 2084 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2085fi 2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087 done 2088else 2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2090/* end confdefs.h. */ 2091$4 2092int 2093main () 2094{ 2095static int test_array [1 - 2 * !(($2) < 0)]; 2096test_array [0] = 0; 2097return test_array [0]; 2098 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO"; then : 2104 ac_hi=-1 ac_mid=-1 2105 while :; do 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109int 2110main () 2111{ 2112static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2113test_array [0] = 0; 2114return test_array [0]; 2115 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_compile "$LINENO"; then : 2121 ac_lo=$ac_mid; break 2122else 2123 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2124 if test $ac_mid -le $ac_hi; then 2125 ac_lo= ac_hi= 2126 break 2127 fi 2128 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2131 done 2132else 2133 ac_lo= ac_hi= 2134fi 2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2136fi 2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2138# Binary search between lo and hi bounds. 2139while test "x$ac_lo" != "x$ac_hi"; do 2140 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142/* end confdefs.h. */ 2143$4 2144int 2145main () 2146{ 2147static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2148test_array [0] = 0; 2149return test_array [0]; 2150 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_compile "$LINENO"; then : 2156 ac_hi=$ac_mid 2157else 2158 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2159fi 2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2161done 2162case $ac_lo in #(( 2163?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2164'') ac_retval=1 ;; 2165esac 2166 else 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170static long int longval () { return $2; } 2171static unsigned long int ulongval () { return $2; } 2172#include <stdio.h> 2173#include <stdlib.h> 2174int 2175main () 2176{ 2177 2178 FILE *f = fopen ("conftest.val", "w"); 2179 if (! f) 2180 return 1; 2181 if (($2) < 0) 2182 { 2183 long int i = longval (); 2184 if (i != ($2)) 2185 return 1; 2186 fprintf (f, "%ld", i); 2187 } 2188 else 2189 { 2190 unsigned long int i = ulongval (); 2191 if (i != ($2)) 2192 return 1; 2193 fprintf (f, "%lu", i); 2194 } 2195 /* Do not output a trailing newline, as this causes \r\n confusion 2196 on some platforms. */ 2197 return ferror (f) || fclose (f) != 0; 2198 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_run "$LINENO"; then : 2204 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2205else 2206 ac_retval=1 2207fi 2208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2209 conftest.$ac_objext conftest.beam conftest.$ac_ext 2210rm -f conftest.val 2211 2212 fi 2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2214 as_fn_set_status $ac_retval 2215 2216} # ac_fn_c_compute_int 2217 2218# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2219# --------------------------------------------- 2220# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2221# accordingly. 2222ac_fn_c_check_decl () 2223{ 2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2225 as_decl_name=`echo $2|sed 's/ *(.*//'` 2226 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2228$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2229if eval \${$3+:} false; then : 2230 $as_echo_n "(cached) " >&6 2231else 2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2233/* end confdefs.h. */ 2234$4 2235int 2236main () 2237{ 2238#ifndef $as_decl_name 2239#ifdef __cplusplus 2240 (void) $as_decl_use; 2241#else 2242 (void) $as_decl_name; 2243#endif 2244#endif 2245 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250if ac_fn_c_try_compile "$LINENO"; then : 2251 eval "$3=yes" 2252else 2253 eval "$3=no" 2254fi 2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2256fi 2257eval ac_res=\$$3 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2259$as_echo "$ac_res" >&6; } 2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2261 2262} # ac_fn_c_check_decl 2263 2264# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2265# ---------------------------------------------------- 2266# Tries to find if the field MEMBER exists in type AGGR, after including 2267# INCLUDES, setting cache variable VAR accordingly. 2268ac_fn_c_check_member () 2269{ 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2272$as_echo_n "checking for $2.$3... " >&6; } 2273if eval \${$4+:} false; then : 2274 $as_echo_n "(cached) " >&6 2275else 2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2277/* end confdefs.h. */ 2278$5 2279int 2280main () 2281{ 2282static $2 ac_aggr; 2283if (ac_aggr.$3) 2284return 0; 2285 ; 2286 return 0; 2287} 2288_ACEOF 2289if ac_fn_c_try_compile "$LINENO"; then : 2290 eval "$4=yes" 2291else 2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2293/* end confdefs.h. */ 2294$5 2295int 2296main () 2297{ 2298static $2 ac_aggr; 2299if (sizeof ac_aggr.$3) 2300return 0; 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305if ac_fn_c_try_compile "$LINENO"; then : 2306 eval "$4=yes" 2307else 2308 eval "$4=no" 2309fi 2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2311fi 2312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2313fi 2314eval ac_res=\$$4 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2316$as_echo "$ac_res" >&6; } 2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2318 2319} # ac_fn_c_check_member 2320cat >config.log <<_ACEOF 2321This file contains any messages produced by compilers while 2322running configure, to aid debugging if configure makes a mistake. 2323 2324It was created by unbound $as_me 1.4.22, which was 2325generated by GNU Autoconf 2.69. Invocation command line was 2326 2327 $ $0 $@ 2328 2329_ACEOF 2330exec 5>>config.log 2331{ 2332cat <<_ASUNAME 2333## --------- ## 2334## Platform. ## 2335## --------- ## 2336 2337hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2338uname -m = `(uname -m) 2>/dev/null || echo unknown` 2339uname -r = `(uname -r) 2>/dev/null || echo unknown` 2340uname -s = `(uname -s) 2>/dev/null || echo unknown` 2341uname -v = `(uname -v) 2>/dev/null || echo unknown` 2342 2343/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2344/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2345 2346/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2347/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2348/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2349/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2350/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2351/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2352/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2353 2354_ASUNAME 2355 2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2357for as_dir in $PATH 2358do 2359 IFS=$as_save_IFS 2360 test -z "$as_dir" && as_dir=. 2361 $as_echo "PATH: $as_dir" 2362 done 2363IFS=$as_save_IFS 2364 2365} >&5 2366 2367cat >&5 <<_ACEOF 2368 2369 2370## ----------- ## 2371## Core tests. ## 2372## ----------- ## 2373 2374_ACEOF 2375 2376 2377# Keep a trace of the command line. 2378# Strip out --no-create and --no-recursion so they do not pile up. 2379# Strip out --silent because we don't want to record it for future runs. 2380# Also quote any args containing shell meta-characters. 2381# Make two passes to allow for proper duplicate-argument suppression. 2382ac_configure_args= 2383ac_configure_args0= 2384ac_configure_args1= 2385ac_must_keep_next=false 2386for ac_pass in 1 2 2387do 2388 for ac_arg 2389 do 2390 case $ac_arg in 2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2393 | -silent | --silent | --silen | --sile | --sil) 2394 continue ;; 2395 *\'*) 2396 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2397 esac 2398 case $ac_pass in 2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2400 2) 2401 as_fn_append ac_configure_args1 " '$ac_arg'" 2402 if test $ac_must_keep_next = true; then 2403 ac_must_keep_next=false # Got value, back to normal. 2404 else 2405 case $ac_arg in 2406 *=* | --config-cache | -C | -disable-* | --disable-* \ 2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2409 | -with-* | --with-* | -without-* | --without-* | --x) 2410 case "$ac_configure_args0 " in 2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2412 esac 2413 ;; 2414 -* ) ac_must_keep_next=true ;; 2415 esac 2416 fi 2417 as_fn_append ac_configure_args " '$ac_arg'" 2418 ;; 2419 esac 2420 done 2421done 2422{ ac_configure_args0=; unset ac_configure_args0;} 2423{ ac_configure_args1=; unset ac_configure_args1;} 2424 2425# When interrupted or exit'd, cleanup temporary files, and complete 2426# config.log. We remove comments because anyway the quotes in there 2427# would cause problems or look ugly. 2428# WARNING: Use '\'' to represent an apostrophe within the trap. 2429# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2430trap 'exit_status=$? 2431 # Save into config.log some information that might help in debugging. 2432 { 2433 echo 2434 2435 $as_echo "## ---------------- ## 2436## Cache variables. ## 2437## ---------------- ##" 2438 echo 2439 # The following way of writing the cache mishandles newlines in values, 2440( 2441 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2442 eval ac_val=\$$ac_var 2443 case $ac_val in #( 2444 *${as_nl}*) 2445 case $ac_var in #( 2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2447$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2448 esac 2449 case $ac_var in #( 2450 _ | IFS | as_nl) ;; #( 2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2452 *) { eval $ac_var=; unset $ac_var;} ;; 2453 esac ;; 2454 esac 2455 done 2456 (set) 2>&1 | 2457 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2458 *${as_nl}ac_space=\ *) 2459 sed -n \ 2460 "s/'\''/'\''\\\\'\'''\''/g; 2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2462 ;; #( 2463 *) 2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2465 ;; 2466 esac | 2467 sort 2468) 2469 echo 2470 2471 $as_echo "## ----------------- ## 2472## Output variables. ## 2473## ----------------- ##" 2474 echo 2475 for ac_var in $ac_subst_vars 2476 do 2477 eval ac_val=\$$ac_var 2478 case $ac_val in 2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2480 esac 2481 $as_echo "$ac_var='\''$ac_val'\''" 2482 done | sort 2483 echo 2484 2485 if test -n "$ac_subst_files"; then 2486 $as_echo "## ------------------- ## 2487## File substitutions. ## 2488## ------------------- ##" 2489 echo 2490 for ac_var in $ac_subst_files 2491 do 2492 eval ac_val=\$$ac_var 2493 case $ac_val in 2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2495 esac 2496 $as_echo "$ac_var='\''$ac_val'\''" 2497 done | sort 2498 echo 2499 fi 2500 2501 if test -s confdefs.h; then 2502 $as_echo "## ----------- ## 2503## confdefs.h. ## 2504## ----------- ##" 2505 echo 2506 cat confdefs.h 2507 echo 2508 fi 2509 test "$ac_signal" != 0 && 2510 $as_echo "$as_me: caught signal $ac_signal" 2511 $as_echo "$as_me: exit $exit_status" 2512 } >&5 2513 rm -f core *.core core.conftest.* && 2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2515 exit $exit_status 2516' 0 2517for ac_signal in 1 2 13 15; do 2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2519done 2520ac_signal=0 2521 2522# confdefs.h avoids OS command line length limits that DEFS can exceed. 2523rm -f -r conftest* confdefs.h 2524 2525$as_echo "/* confdefs.h */" > confdefs.h 2526 2527# Predefined preprocessor variables. 2528 2529cat >>confdefs.h <<_ACEOF 2530#define PACKAGE_NAME "$PACKAGE_NAME" 2531_ACEOF 2532 2533cat >>confdefs.h <<_ACEOF 2534#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2535_ACEOF 2536 2537cat >>confdefs.h <<_ACEOF 2538#define PACKAGE_VERSION "$PACKAGE_VERSION" 2539_ACEOF 2540 2541cat >>confdefs.h <<_ACEOF 2542#define PACKAGE_STRING "$PACKAGE_STRING" 2543_ACEOF 2544 2545cat >>confdefs.h <<_ACEOF 2546#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2547_ACEOF 2548 2549cat >>confdefs.h <<_ACEOF 2550#define PACKAGE_URL "$PACKAGE_URL" 2551_ACEOF 2552 2553 2554# Let the site file select an alternate cache file if it wants to. 2555# Prefer an explicitly selected file to automatically selected ones. 2556ac_site_file1=NONE 2557ac_site_file2=NONE 2558if test -n "$CONFIG_SITE"; then 2559 # We do not want a PATH search for config.site. 2560 case $CONFIG_SITE in #(( 2561 -*) ac_site_file1=./$CONFIG_SITE;; 2562 */*) ac_site_file1=$CONFIG_SITE;; 2563 *) ac_site_file1=./$CONFIG_SITE;; 2564 esac 2565elif test "x$prefix" != xNONE; then 2566 ac_site_file1=$prefix/share/config.site 2567 ac_site_file2=$prefix/etc/config.site 2568else 2569 ac_site_file1=$ac_default_prefix/share/config.site 2570 ac_site_file2=$ac_default_prefix/etc/config.site 2571fi 2572for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2573do 2574 test "x$ac_site_file" = xNONE && continue 2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2577$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2578 sed 's/^/| /' "$ac_site_file" >&5 2579 . "$ac_site_file" \ 2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2582as_fn_error $? "failed to load site script $ac_site_file 2583See \`config.log' for more details" "$LINENO" 5; } 2584 fi 2585done 2586 2587if test -r "$cache_file"; then 2588 # Some versions of bash will fail to source /dev/null (special files 2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2592$as_echo "$as_me: loading cache $cache_file" >&6;} 2593 case $cache_file in 2594 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2595 *) . "./$cache_file";; 2596 esac 2597 fi 2598else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2600$as_echo "$as_me: creating cache $cache_file" >&6;} 2601 >$cache_file 2602fi 2603 2604# Check that the precious variables saved in the cache have kept the same 2605# value. 2606ac_cache_corrupted=false 2607for ac_var in $ac_precious_vars; do 2608 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2609 eval ac_new_set=\$ac_env_${ac_var}_set 2610 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2611 eval ac_new_val=\$ac_env_${ac_var}_value 2612 case $ac_old_set,$ac_new_set in 2613 set,) 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2615$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2616 ac_cache_corrupted=: ;; 2617 ,set) 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2619$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2620 ac_cache_corrupted=: ;; 2621 ,);; 2622 *) 2623 if test "x$ac_old_val" != "x$ac_new_val"; then 2624 # differences in whitespace do not lead to failure. 2625 ac_old_val_w=`echo x $ac_old_val` 2626 ac_new_val_w=`echo x $ac_new_val` 2627 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2629$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2630 ac_cache_corrupted=: 2631 else 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2633$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2634 eval $ac_var=\$ac_old_val 2635 fi 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2637$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2639$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2640 fi;; 2641 esac 2642 # Pass precious variables to config.status. 2643 if test "$ac_new_set" = set; then 2644 case $ac_new_val in 2645 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2646 *) ac_arg=$ac_var=$ac_new_val ;; 2647 esac 2648 case " $ac_configure_args " in 2649 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2650 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2651 esac 2652 fi 2653done 2654if $ac_cache_corrupted; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2658$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2659 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2660fi 2661## -------------------- ## 2662## Main body of script. ## 2663## -------------------- ## 2664 2665ac_ext=c 2666ac_cpp='$CPP $CPPFLAGS' 2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2669ac_compiler_gnu=$ac_cv_c_compiler_gnu 2670 2671 2672UNBOUND_VERSION_MAJOR=1 2673 2674UNBOUND_VERSION_MINOR=4 2675 2676UNBOUND_VERSION_MICRO=22 2677 2678 2679LIBUNBOUND_CURRENT=4 2680LIBUNBOUND_REVISION=1 2681LIBUNBOUND_AGE=2 2682# 1.0.0 had 0:12:0 2683# 1.0.1 had 0:13:0 2684# 1.0.2 had 0:14:0 2685# 1.1.0 had 0:15:0 2686# 1.1.1 had 0:16:0 2687# 1.2.0 had 0:17:0 2688# 1.2.1 had 0:18:0 2689# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2690# 1.3.1 had 1:1:0 2691# 1.3.2 had 1:2:0 2692# 1.3.3 had 1:3:0 2693# 1.3.4 had 1:4:0 2694# 1.4.0-snapshots had 1:5:0 2695# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2696# 1.4.1 had 2:1:0 2697# 1.4.2 had 2:2:0 2698# 1.4.3 had 2:3:0 2699# 1.4.4 had 2:4:0 2700# 1.4.5 had 2:5:0 2701# 1.4.6 had 2:6:0 2702# 1.4.7 had 2:7:0 2703# 1.4.8 had 2:8:0 2704# 1.4.9 had 2:9:0 2705# 1.4.10 had 2:10:0 2706# 1.4.11 had 2:11:0 2707# 1.4.12 had 2:12:0 2708# 1.4.13 had 2:13:0 2709# and 1.4.13p1 and 1.4.13.p2 2710# 1.4.14 had 2:14:0 2711# 1.4.15 had 3:0:1 # adds ub_version() 2712# 1.4.16 had 3:1:1 2713# 1.4.17 had 3:2:1 2714# 1.4.18 had 3:3:1 2715# 1.4.19 had 3:4:1 2716# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2717# 1.4.21 had 4:1:2 2718 2719# Current -- the number of the binary API that we're implementing 2720# Revision -- which iteration of the implementation of the binary 2721# API are we supplying? 2722# Age -- How many previous binary API versions do we also 2723# support? 2724# 2725# If we release a new version that does not change the binary API, 2726# increment Revision. 2727# 2728# If we release a new version that changes the binary API, but does 2729# not break programs compiled against the old binary API, increment 2730# Current and Age. Set Revision to 0, since this is the first 2731# implementation of the new API. 2732# 2733# Otherwise, we're changing the binary API and breaking bakward 2734# compatibility with old binaries. Increment Current. Set Age to 0, 2735# since we're backward compatible with no previous APIs. Set Revision 2736# to 0 too. 2737 2738 2739 2740 2741CFLAGS="$CFLAGS" 2742ac_ext=c 2743ac_cpp='$CPP $CPPFLAGS' 2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2746ac_compiler_gnu=$ac_cv_c_compiler_gnu 2747if test -n "$ac_tool_prefix"; then 2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2749set dummy ${ac_tool_prefix}gcc; ac_word=$2 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2751$as_echo_n "checking for $ac_word... " >&6; } 2752if ${ac_cv_prog_CC+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754else 2755 if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2765 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769done 2770 done 2771IFS=$as_save_IFS 2772 2773fi 2774fi 2775CC=$ac_cv_prog_CC 2776if test -n "$CC"; then 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2778$as_echo "$CC" >&6; } 2779else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781$as_echo "no" >&6; } 2782fi 2783 2784 2785fi 2786if test -z "$ac_cv_prog_CC"; then 2787 ac_ct_CC=$CC 2788 # Extract the first word of "gcc", so it can be a program name with args. 2789set dummy gcc; ac_word=$2 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791$as_echo_n "checking for $ac_word... " >&6; } 2792if ${ac_cv_prog_ac_ct_CC+:} false; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 if test -n "$ac_ct_CC"; then 2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2805 ac_cv_prog_ac_ct_CC="gcc" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813fi 2814fi 2815ac_ct_CC=$ac_cv_prog_ac_ct_CC 2816if test -n "$ac_ct_CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2818$as_echo "$ac_ct_CC" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 if test "x$ac_ct_CC" = x; then 2825 CC="" 2826 else 2827 case $cross_compiling:$ac_tool_warned in 2828yes:) 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2831ac_tool_warned=yes ;; 2832esac 2833 CC=$ac_ct_CC 2834 fi 2835else 2836 CC="$ac_cv_prog_CC" 2837fi 2838 2839if test -z "$CC"; then 2840 if test -n "$ac_tool_prefix"; then 2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2842set dummy ${ac_tool_prefix}cc; ac_word=$2 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844$as_echo_n "checking for $ac_word... " >&6; } 2845if ${ac_cv_prog_CC+:} false; then : 2846 $as_echo_n "(cached) " >&6 2847else 2848 if test -n "$CC"; then 2849 ac_cv_prog_CC="$CC" # Let the user override the test. 2850else 2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852for as_dir in $PATH 2853do 2854 IFS=$as_save_IFS 2855 test -z "$as_dir" && as_dir=. 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2858 ac_cv_prog_CC="${ac_tool_prefix}cc" 2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862done 2863 done 2864IFS=$as_save_IFS 2865 2866fi 2867fi 2868CC=$ac_cv_prog_CC 2869if test -n "$CC"; then 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2871$as_echo "$CC" >&6; } 2872else 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874$as_echo "no" >&6; } 2875fi 2876 2877 2878 fi 2879fi 2880if test -z "$CC"; then 2881 # Extract the first word of "cc", so it can be a program name with args. 2882set dummy cc; ac_word=$2 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884$as_echo_n "checking for $ac_word... " >&6; } 2885if ${ac_cv_prog_CC+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 if test -n "$CC"; then 2889 ac_cv_prog_CC="$CC" # Let the user override the test. 2890else 2891 ac_prog_rejected=no 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2900 ac_prog_rejected=yes 2901 continue 2902 fi 2903 ac_cv_prog_CC="cc" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911if test $ac_prog_rejected = yes; then 2912 # We found a bogon in the path, so make sure we never use it. 2913 set dummy $ac_cv_prog_CC 2914 shift 2915 if test $# != 0; then 2916 # We chose a different compiler from the bogus one. 2917 # However, it has the same basename, so the bogon will be chosen 2918 # first if we set CC to just the basename; use the full file name. 2919 shift 2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2921 fi 2922fi 2923fi 2924fi 2925CC=$ac_cv_prog_CC 2926if test -n "$CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928$as_echo "$CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 2935fi 2936if test -z "$CC"; then 2937 if test -n "$ac_tool_prefix"; then 2938 for ac_prog in cl.exe 2939 do 2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2941set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943$as_echo_n "checking for $ac_word... " >&6; } 2944if ${ac_cv_prog_CC+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 if test -n "$CC"; then 2948 ac_cv_prog_CC="$CC" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962 done 2963IFS=$as_save_IFS 2964 2965fi 2966fi 2967CC=$ac_cv_prog_CC 2968if test -n "$CC"; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2970$as_echo "$CC" >&6; } 2971else 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2973$as_echo "no" >&6; } 2974fi 2975 2976 2977 test -n "$CC" && break 2978 done 2979fi 2980if test -z "$CC"; then 2981 ac_ct_CC=$CC 2982 for ac_prog in cl.exe 2983do 2984 # Extract the first word of "$ac_prog", so it can be a program name with args. 2985set dummy $ac_prog; ac_word=$2 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2987$as_echo_n "checking for $ac_word... " >&6; } 2988if ${ac_cv_prog_ac_ct_CC+:} false; then : 2989 $as_echo_n "(cached) " >&6 2990else 2991 if test -n "$ac_ct_CC"; then 2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2993else 2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995for as_dir in $PATH 2996do 2997 IFS=$as_save_IFS 2998 test -z "$as_dir" && as_dir=. 2999 for ac_exec_ext in '' $ac_executable_extensions; do 3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3001 ac_cv_prog_ac_ct_CC="$ac_prog" 3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3003 break 2 3004 fi 3005done 3006 done 3007IFS=$as_save_IFS 3008 3009fi 3010fi 3011ac_ct_CC=$ac_cv_prog_ac_ct_CC 3012if test -n "$ac_ct_CC"; then 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3014$as_echo "$ac_ct_CC" >&6; } 3015else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017$as_echo "no" >&6; } 3018fi 3019 3020 3021 test -n "$ac_ct_CC" && break 3022done 3023 3024 if test "x$ac_ct_CC" = x; then 3025 CC="" 3026 else 3027 case $cross_compiling:$ac_tool_warned in 3028yes:) 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3031ac_tool_warned=yes ;; 3032esac 3033 CC=$ac_ct_CC 3034 fi 3035fi 3036 3037fi 3038 3039 3040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3042as_fn_error $? "no acceptable C compiler found in \$PATH 3043See \`config.log' for more details" "$LINENO" 5; } 3044 3045# Provide some information about the compiler. 3046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3047set X $ac_compile 3048ac_compiler=$2 3049for ac_option in --version -v -V -qversion; do 3050 { { ac_try="$ac_compiler $ac_option >&5" 3051case "(($ac_try" in 3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053 *) ac_try_echo=$ac_try;; 3054esac 3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3056$as_echo "$ac_try_echo"; } >&5 3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3058 ac_status=$? 3059 if test -s conftest.err; then 3060 sed '10a\ 3061... rest of stderr output deleted ... 3062 10q' conftest.err >conftest.er1 3063 cat conftest.er1 >&5 3064 fi 3065 rm -f conftest.er1 conftest.err 3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3067 test $ac_status = 0; } 3068done 3069 3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3071/* end confdefs.h. */ 3072 3073int 3074main () 3075{ 3076 3077 ; 3078 return 0; 3079} 3080_ACEOF 3081ac_clean_files_save=$ac_clean_files 3082ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3083# Try to create an executable without -o first, disregard a.out. 3084# It will help us diagnose broken compilers, and finding out an intuition 3085# of exeext. 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3087$as_echo_n "checking whether the C compiler works... " >&6; } 3088ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3089 3090# The possible output files: 3091ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3092 3093ac_rmfiles= 3094for ac_file in $ac_files 3095do 3096 case $ac_file in 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3099 esac 3100done 3101rm -f $ac_rmfiles 3102 3103if { { ac_try="$ac_link_default" 3104case "(($ac_try" in 3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *) ac_try_echo=$ac_try;; 3107esac 3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3109$as_echo "$ac_try_echo"; } >&5 3110 (eval "$ac_link_default") 2>&5 3111 ac_status=$? 3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3113 test $ac_status = 0; }; then : 3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3115# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3116# in a Makefile. We should not override ac_cv_exeext if it was cached, 3117# so that the user can short-circuit this test for compilers unknown to 3118# Autoconf. 3119for ac_file in $ac_files '' 3120do 3121 test -f "$ac_file" || continue 3122 case $ac_file in 3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3124 ;; 3125 [ab].out ) 3126 # We found the default executable, but exeext='' is most 3127 # certainly right. 3128 break;; 3129 *.* ) 3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3131 then :; else 3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3133 fi 3134 # We set ac_cv_exeext here because the later test for it is not 3135 # safe: cross compilers may not add the suffix if given an `-o' 3136 # argument, so we may need to know it at that point already. 3137 # Even if this section looks crufty: it has the advantage of 3138 # actually working. 3139 break;; 3140 * ) 3141 break;; 3142 esac 3143done 3144test "$ac_cv_exeext" = no && ac_cv_exeext= 3145 3146else 3147 ac_file='' 3148fi 3149if test -z "$ac_file"; then : 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3151$as_echo "no" >&6; } 3152$as_echo "$as_me: failed program was:" >&5 3153sed 's/^/| /' conftest.$ac_ext >&5 3154 3155{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3157as_fn_error 77 "C compiler cannot create executables 3158See \`config.log' for more details" "$LINENO" 5; } 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3161$as_echo "yes" >&6; } 3162fi 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3164$as_echo_n "checking for C compiler default output file name... " >&6; } 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3166$as_echo "$ac_file" >&6; } 3167ac_exeext=$ac_cv_exeext 3168 3169rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3170ac_clean_files=$ac_clean_files_save 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3172$as_echo_n "checking for suffix of executables... " >&6; } 3173if { { ac_try="$ac_link" 3174case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3179$as_echo "$ac_try_echo"; } >&5 3180 (eval "$ac_link") 2>&5 3181 ac_status=$? 3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3183 test $ac_status = 0; }; then : 3184 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3185# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3186# work properly (i.e., refer to `conftest.exe'), while it won't with 3187# `rm'. 3188for ac_file in conftest.exe conftest conftest.*; do 3189 test -f "$ac_file" || continue 3190 case $ac_file in 3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3193 break;; 3194 * ) break;; 3195 esac 3196done 3197else 3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3200as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3201See \`config.log' for more details" "$LINENO" 5; } 3202fi 3203rm -f conftest conftest$ac_cv_exeext 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3205$as_echo "$ac_cv_exeext" >&6; } 3206 3207rm -f conftest.$ac_ext 3208EXEEXT=$ac_cv_exeext 3209ac_exeext=$EXEEXT 3210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3211/* end confdefs.h. */ 3212#include <stdio.h> 3213int 3214main () 3215{ 3216FILE *f = fopen ("conftest.out", "w"); 3217 return ferror (f) || fclose (f) != 0; 3218 3219 ; 3220 return 0; 3221} 3222_ACEOF 3223ac_clean_files="$ac_clean_files conftest.out" 3224# Check that the compiler produces executables we can run. If not, either 3225# the compiler is broken, or we cross compile. 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3227$as_echo_n "checking whether we are cross compiling... " >&6; } 3228if test "$cross_compiling" != yes; then 3229 { { ac_try="$ac_link" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235$as_echo "$ac_try_echo"; } >&5 3236 (eval "$ac_link") 2>&5 3237 ac_status=$? 3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3239 test $ac_status = 0; } 3240 if { ac_try='./conftest$ac_cv_exeext' 3241 { { case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3246$as_echo "$ac_try_echo"; } >&5 3247 (eval "$ac_try") 2>&5 3248 ac_status=$? 3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3250 test $ac_status = 0; }; }; then 3251 cross_compiling=no 3252 else 3253 if test "$cross_compiling" = maybe; then 3254 cross_compiling=yes 3255 else 3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3258as_fn_error $? "cannot run C compiled programs. 3259If you meant to cross compile, use \`--host'. 3260See \`config.log' for more details" "$LINENO" 5; } 3261 fi 3262 fi 3263fi 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3265$as_echo "$cross_compiling" >&6; } 3266 3267rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3268ac_clean_files=$ac_clean_files_save 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3270$as_echo_n "checking for suffix of object files... " >&6; } 3271if ${ac_cv_objext+:} false; then : 3272 $as_echo_n "(cached) " >&6 3273else 3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285rm -f conftest.o conftest.obj 3286if { { ac_try="$ac_compile" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292$as_echo "$ac_try_echo"; } >&5 3293 (eval "$ac_compile") 2>&5 3294 ac_status=$? 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; then : 3297 for ac_file in conftest.o conftest.obj conftest.*; do 3298 test -f "$ac_file" || continue; 3299 case $ac_file in 3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3302 break;; 3303 esac 3304done 3305else 3306 $as_echo "$as_me: failed program was:" >&5 3307sed 's/^/| /' conftest.$ac_ext >&5 3308 3309{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3311as_fn_error $? "cannot compute suffix of object files: cannot compile 3312See \`config.log' for more details" "$LINENO" 5; } 3313fi 3314rm -f conftest.$ac_cv_objext conftest.$ac_ext 3315fi 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3317$as_echo "$ac_cv_objext" >&6; } 3318OBJEXT=$ac_cv_objext 3319ac_objext=$OBJEXT 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3321$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3322if ${ac_cv_c_compiler_gnu+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3326/* end confdefs.h. */ 3327 3328int 3329main () 3330{ 3331#ifndef __GNUC__ 3332 choke me 3333#endif 3334 3335 ; 3336 return 0; 3337} 3338_ACEOF 3339if ac_fn_c_try_compile "$LINENO"; then : 3340 ac_compiler_gnu=yes 3341else 3342 ac_compiler_gnu=no 3343fi 3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3345ac_cv_c_compiler_gnu=$ac_compiler_gnu 3346 3347fi 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3349$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3350if test $ac_compiler_gnu = yes; then 3351 GCC=yes 3352else 3353 GCC= 3354fi 3355ac_test_CFLAGS=${CFLAGS+set} 3356ac_save_CFLAGS=$CFLAGS 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3358$as_echo_n "checking whether $CC accepts -g... " >&6; } 3359if ${ac_cv_prog_cc_g+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 ac_save_c_werror_flag=$ac_c_werror_flag 3363 ac_c_werror_flag=yes 3364 ac_cv_prog_cc_g=no 3365 CFLAGS="-g" 3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367/* end confdefs.h. */ 3368 3369int 3370main () 3371{ 3372 3373 ; 3374 return 0; 3375} 3376_ACEOF 3377if ac_fn_c_try_compile "$LINENO"; then : 3378 ac_cv_prog_cc_g=yes 3379else 3380 CFLAGS="" 3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3382/* end confdefs.h. */ 3383 3384int 3385main () 3386{ 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392if ac_fn_c_try_compile "$LINENO"; then : 3393 3394else 3395 ac_c_werror_flag=$ac_save_c_werror_flag 3396 CFLAGS="-g" 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399 3400int 3401main () 3402{ 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408if ac_fn_c_try_compile "$LINENO"; then : 3409 ac_cv_prog_cc_g=yes 3410fi 3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3412fi 3413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3414fi 3415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3416 ac_c_werror_flag=$ac_save_c_werror_flag 3417fi 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3419$as_echo "$ac_cv_prog_cc_g" >&6; } 3420if test "$ac_test_CFLAGS" = set; then 3421 CFLAGS=$ac_save_CFLAGS 3422elif test $ac_cv_prog_cc_g = yes; then 3423 if test "$GCC" = yes; then 3424 CFLAGS="-g -O2" 3425 else 3426 CFLAGS="-g" 3427 fi 3428else 3429 if test "$GCC" = yes; then 3430 CFLAGS="-O2" 3431 else 3432 CFLAGS= 3433 fi 3434fi 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3436$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3437if ${ac_cv_prog_cc_c89+:} false; then : 3438 $as_echo_n "(cached) " >&6 3439else 3440 ac_cv_prog_cc_c89=no 3441ac_save_CC=$CC 3442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444#include <stdarg.h> 3445#include <stdio.h> 3446struct stat; 3447/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3448struct buf { int x; }; 3449FILE * (*rcsopen) (struct buf *, struct stat *, int); 3450static char *e (p, i) 3451 char **p; 3452 int i; 3453{ 3454 return p[i]; 3455} 3456static char *f (char * (*g) (char **, int), char **p, ...) 3457{ 3458 char *s; 3459 va_list v; 3460 va_start (v,p); 3461 s = g (p, va_arg (v,int)); 3462 va_end (v); 3463 return s; 3464} 3465 3466/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3467 function prototypes and stuff, but not '\xHH' hex character constants. 3468 These don't provoke an error unfortunately, instead are silently treated 3469 as 'x'. The following induces an error, until -std is added to get 3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3471 array size at least. It's necessary to write '\x00'==0 to get something 3472 that's true only with -std. */ 3473int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3474 3475/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3476 inside strings and character constants. */ 3477#define FOO(x) 'x' 3478int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3479 3480int test (int i, double x); 3481struct s1 {int (*f) (int a);}; 3482struct s2 {int (*f) (double a);}; 3483int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3484int argc; 3485char **argv; 3486int 3487main () 3488{ 3489return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3496do 3497 CC="$ac_save_CC $ac_arg" 3498 if ac_fn_c_try_compile "$LINENO"; then : 3499 ac_cv_prog_cc_c89=$ac_arg 3500fi 3501rm -f core conftest.err conftest.$ac_objext 3502 test "x$ac_cv_prog_cc_c89" != "xno" && break 3503done 3504rm -f conftest.$ac_ext 3505CC=$ac_save_CC 3506 3507fi 3508# AC_CACHE_VAL 3509case "x$ac_cv_prog_cc_c89" in 3510 x) 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3512$as_echo "none needed" >&6; } ;; 3513 xno) 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3515$as_echo "unsupported" >&6; } ;; 3516 *) 3517 CC="$CC $ac_cv_prog_cc_c89" 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3519$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3520esac 3521if test "x$ac_cv_prog_cc_c89" != xno; then : 3522 3523fi 3524 3525ac_ext=c 3526ac_cpp='$CPP $CPPFLAGS' 3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3529ac_compiler_gnu=$ac_cv_c_compiler_gnu 3530 3531 3532ac_ext=c 3533ac_cpp='$CPP $CPPFLAGS' 3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3536ac_compiler_gnu=$ac_cv_c_compiler_gnu 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3538$as_echo_n "checking how to run the C preprocessor... " >&6; } 3539# On Suns, sometimes $CPP names a directory. 3540if test -n "$CPP" && test -d "$CPP"; then 3541 CPP= 3542fi 3543if test -z "$CPP"; then 3544 if ${ac_cv_prog_CPP+:} false; then : 3545 $as_echo_n "(cached) " >&6 3546else 3547 # Double quotes because CPP needs to be expanded 3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3549 do 3550 ac_preproc_ok=false 3551for ac_c_preproc_warn_flag in '' yes 3552do 3553 # Use a header file that comes with gcc, so configuring glibc 3554 # with a fresh cross-compiler works. 3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3556 # <limits.h> exists even on freestanding compilers. 3557 # On the NeXT, cc -E runs the code through the compiler's parser, 3558 # not just through cpp. "Syntax error" is here to catch this case. 3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3560/* end confdefs.h. */ 3561#ifdef __STDC__ 3562# include <limits.h> 3563#else 3564# include <assert.h> 3565#endif 3566 Syntax error 3567_ACEOF 3568if ac_fn_c_try_cpp "$LINENO"; then : 3569 3570else 3571 # Broken: fails on valid input. 3572continue 3573fi 3574rm -f conftest.err conftest.i conftest.$ac_ext 3575 3576 # OK, works on sane cases. Now check whether nonexistent headers 3577 # can be detected and how. 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580#include <ac_nonexistent.h> 3581_ACEOF 3582if ac_fn_c_try_cpp "$LINENO"; then : 3583 # Broken: success on invalid input. 3584continue 3585else 3586 # Passes both tests. 3587ac_preproc_ok=: 3588break 3589fi 3590rm -f conftest.err conftest.i conftest.$ac_ext 3591 3592done 3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3594rm -f conftest.i conftest.err conftest.$ac_ext 3595if $ac_preproc_ok; then : 3596 break 3597fi 3598 3599 done 3600 ac_cv_prog_CPP=$CPP 3601 3602fi 3603 CPP=$ac_cv_prog_CPP 3604else 3605 ac_cv_prog_CPP=$CPP 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3608$as_echo "$CPP" >&6; } 3609ac_preproc_ok=false 3610for ac_c_preproc_warn_flag in '' yes 3611do 3612 # Use a header file that comes with gcc, so configuring glibc 3613 # with a fresh cross-compiler works. 3614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3615 # <limits.h> exists even on freestanding compilers. 3616 # On the NeXT, cc -E runs the code through the compiler's parser, 3617 # not just through cpp. "Syntax error" is here to catch this case. 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#ifdef __STDC__ 3621# include <limits.h> 3622#else 3623# include <assert.h> 3624#endif 3625 Syntax error 3626_ACEOF 3627if ac_fn_c_try_cpp "$LINENO"; then : 3628 3629else 3630 # Broken: fails on valid input. 3631continue 3632fi 3633rm -f conftest.err conftest.i conftest.$ac_ext 3634 3635 # OK, works on sane cases. Now check whether nonexistent headers 3636 # can be detected and how. 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639#include <ac_nonexistent.h> 3640_ACEOF 3641if ac_fn_c_try_cpp "$LINENO"; then : 3642 # Broken: success on invalid input. 3643continue 3644else 3645 # Passes both tests. 3646ac_preproc_ok=: 3647break 3648fi 3649rm -f conftest.err conftest.i conftest.$ac_ext 3650 3651done 3652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3653rm -f conftest.i conftest.err conftest.$ac_ext 3654if $ac_preproc_ok; then : 3655 3656else 3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3659as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3660See \`config.log' for more details" "$LINENO" 5; } 3661fi 3662 3663ac_ext=c 3664ac_cpp='$CPP $CPPFLAGS' 3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3667ac_compiler_gnu=$ac_cv_c_compiler_gnu 3668 3669 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3671$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3672if ${ac_cv_path_GREP+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 if test -z "$GREP"; then 3676 ac_path_GREP_found=false 3677 # Loop through the user's path and test for each of PROGNAME-LIST 3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3680do 3681 IFS=$as_save_IFS 3682 test -z "$as_dir" && as_dir=. 3683 for ac_prog in grep ggrep; do 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3686 as_fn_executable_p "$ac_path_GREP" || continue 3687# Check for GNU ac_path_GREP and select it if it is found. 3688 # Check for GNU $ac_path_GREP 3689case `"$ac_path_GREP" --version 2>&1` in 3690*GNU*) 3691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3692*) 3693 ac_count=0 3694 $as_echo_n 0123456789 >"conftest.in" 3695 while : 3696 do 3697 cat "conftest.in" "conftest.in" >"conftest.tmp" 3698 mv "conftest.tmp" "conftest.in" 3699 cp "conftest.in" "conftest.nl" 3700 $as_echo 'GREP' >> "conftest.nl" 3701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3703 as_fn_arith $ac_count + 1 && ac_count=$as_val 3704 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3705 # Best one so far, save it but keep looking for a better one 3706 ac_cv_path_GREP="$ac_path_GREP" 3707 ac_path_GREP_max=$ac_count 3708 fi 3709 # 10*(2^10) chars as input seems more than enough 3710 test $ac_count -gt 10 && break 3711 done 3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3713esac 3714 3715 $ac_path_GREP_found && break 3 3716 done 3717 done 3718 done 3719IFS=$as_save_IFS 3720 if test -z "$ac_cv_path_GREP"; then 3721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3722 fi 3723else 3724 ac_cv_path_GREP=$GREP 3725fi 3726 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3729$as_echo "$ac_cv_path_GREP" >&6; } 3730 GREP="$ac_cv_path_GREP" 3731 3732 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3734$as_echo_n "checking for egrep... " >&6; } 3735if ${ac_cv_path_EGREP+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3739 then ac_cv_path_EGREP="$GREP -E" 3740 else 3741 if test -z "$EGREP"; then 3742 ac_path_EGREP_found=false 3743 # Loop through the user's path and test for each of PROGNAME-LIST 3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3746do 3747 IFS=$as_save_IFS 3748 test -z "$as_dir" && as_dir=. 3749 for ac_prog in egrep; do 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3752 as_fn_executable_p "$ac_path_EGREP" || continue 3753# Check for GNU ac_path_EGREP and select it if it is found. 3754 # Check for GNU $ac_path_EGREP 3755case `"$ac_path_EGREP" --version 2>&1` in 3756*GNU*) 3757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3758*) 3759 ac_count=0 3760 $as_echo_n 0123456789 >"conftest.in" 3761 while : 3762 do 3763 cat "conftest.in" "conftest.in" >"conftest.tmp" 3764 mv "conftest.tmp" "conftest.in" 3765 cp "conftest.in" "conftest.nl" 3766 $as_echo 'EGREP' >> "conftest.nl" 3767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3769 as_fn_arith $ac_count + 1 && ac_count=$as_val 3770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3771 # Best one so far, save it but keep looking for a better one 3772 ac_cv_path_EGREP="$ac_path_EGREP" 3773 ac_path_EGREP_max=$ac_count 3774 fi 3775 # 10*(2^10) chars as input seems more than enough 3776 test $ac_count -gt 10 && break 3777 done 3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3779esac 3780 3781 $ac_path_EGREP_found && break 3 3782 done 3783 done 3784 done 3785IFS=$as_save_IFS 3786 if test -z "$ac_cv_path_EGREP"; then 3787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3788 fi 3789else 3790 ac_cv_path_EGREP=$EGREP 3791fi 3792 3793 fi 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3796$as_echo "$ac_cv_path_EGREP" >&6; } 3797 EGREP="$ac_cv_path_EGREP" 3798 3799 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3801$as_echo_n "checking for ANSI C header files... " >&6; } 3802if ${ac_cv_header_stdc+:} false; then : 3803 $as_echo_n "(cached) " >&6 3804else 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807#include <stdlib.h> 3808#include <stdarg.h> 3809#include <string.h> 3810#include <float.h> 3811 3812int 3813main () 3814{ 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820if ac_fn_c_try_compile "$LINENO"; then : 3821 ac_cv_header_stdc=yes 3822else 3823 ac_cv_header_stdc=no 3824fi 3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826 3827if test $ac_cv_header_stdc = yes; then 3828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#include <string.h> 3832 3833_ACEOF 3834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3835 $EGREP "memchr" >/dev/null 2>&1; then : 3836 3837else 3838 ac_cv_header_stdc=no 3839fi 3840rm -f conftest* 3841 3842fi 3843 3844if test $ac_cv_header_stdc = yes; then 3845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3847/* end confdefs.h. */ 3848#include <stdlib.h> 3849 3850_ACEOF 3851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3852 $EGREP "free" >/dev/null 2>&1; then : 3853 3854else 3855 ac_cv_header_stdc=no 3856fi 3857rm -f conftest* 3858 3859fi 3860 3861if test $ac_cv_header_stdc = yes; then 3862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3863 if test "$cross_compiling" = yes; then : 3864 : 3865else 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#include <ctype.h> 3869#include <stdlib.h> 3870#if ((' ' & 0x0FF) == 0x020) 3871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3873#else 3874# define ISLOWER(c) \ 3875 (('a' <= (c) && (c) <= 'i') \ 3876 || ('j' <= (c) && (c) <= 'r') \ 3877 || ('s' <= (c) && (c) <= 'z')) 3878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3879#endif 3880 3881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3882int 3883main () 3884{ 3885 int i; 3886 for (i = 0; i < 256; i++) 3887 if (XOR (islower (i), ISLOWER (i)) 3888 || toupper (i) != TOUPPER (i)) 3889 return 2; 3890 return 0; 3891} 3892_ACEOF 3893if ac_fn_c_try_run "$LINENO"; then : 3894 3895else 3896 ac_cv_header_stdc=no 3897fi 3898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3899 conftest.$ac_objext conftest.beam conftest.$ac_ext 3900fi 3901 3902fi 3903fi 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3905$as_echo "$ac_cv_header_stdc" >&6; } 3906if test $ac_cv_header_stdc = yes; then 3907 3908$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3909 3910fi 3911 3912# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3913for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3914 inttypes.h stdint.h unistd.h 3915do : 3916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3917ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3918" 3919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3920 cat >>confdefs.h <<_ACEOF 3921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3922_ACEOF 3923 3924fi 3925 3926done 3927 3928 3929 3930 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3931if test "x$ac_cv_header_minix_config_h" = xyes; then : 3932 MINIX=yes 3933else 3934 MINIX= 3935fi 3936 3937 3938 if test "$MINIX" = yes; then 3939 3940$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3941 3942 3943$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3944 3945 3946$as_echo "#define _MINIX 1" >>confdefs.h 3947 3948 fi 3949 3950 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3952$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3953if ${ac_cv_safe_to_define___extensions__+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958 3959# define __EXTENSIONS__ 1 3960 $ac_includes_default 3961int 3962main () 3963{ 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969if ac_fn_c_try_compile "$LINENO"; then : 3970 ac_cv_safe_to_define___extensions__=yes 3971else 3972 ac_cv_safe_to_define___extensions__=no 3973fi 3974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3975fi 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3977$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3978 test $ac_cv_safe_to_define___extensions__ = yes && 3979 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3980 3981 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3982 3983 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3984 3985 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3986 3987 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3988 3989 3990 3991if test "$ac_cv_header_minix_config_h" = "yes"; then 3992 3993$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 3994 3995fi 3996 3997case "$prefix" in 3998 NONE) 3999 prefix="/usr/local" 4000 ;; 4001esac 4002 4003# are we on MinGW? 4004if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4005else 4006 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" 4007 else on_mingw="no"; fi 4008fi 4009 4010# 4011# Determine configuration file 4012# the eval is to evaluate shell expansion twice 4013if test $on_mingw = "no"; then 4014 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4015else 4016 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4017fi 4018 4019# Check whether --with-conf_file was given. 4020if test "${with_conf_file+set}" = set; then : 4021 withval=$with_conf_file; ub_conf_file="$withval" 4022fi 4023 4024 4025hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4026 4027 4028cat >>confdefs.h <<_ACEOF 4029#define CONFIGFILE "$hdr_config" 4030_ACEOF 4031 4032 4033# Determine run, chroot directory and pidfile locations 4034 4035# Check whether --with-run-dir was given. 4036if test "${with_run_dir+set}" = set; then : 4037 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4038else 4039 if test $on_mingw = no; then 4040 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4041else 4042 UNBOUND_RUN_DIR="" 4043fi 4044 4045fi 4046 4047 4048hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4049 4050 4051cat >>confdefs.h <<_ACEOF 4052#define RUN_DIR "$hdr_run" 4053_ACEOF 4054 4055 4056 4057# Check whether --with-chroot-dir was given. 4058if test "${with_chroot_dir+set}" = set; then : 4059 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4060else 4061 if test $on_mingw = no; then 4062 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4063else 4064 UNBOUND_CHROOT_DIR="" 4065fi 4066 4067fi 4068 4069 4070hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4071 4072 4073cat >>confdefs.h <<_ACEOF 4074#define CHROOT_DIR "$hdr_chroot" 4075_ACEOF 4076 4077 4078 4079# Check whether --with-share-dir was given. 4080if test "${with_share_dir+set}" = set; then : 4081 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4082else 4083 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4084fi 4085 4086 4087 4088cat >>confdefs.h <<_ACEOF 4089#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4090_ACEOF 4091 4092 4093 4094# Check whether --with-pidfile was given. 4095if test "${with_pidfile+set}" = set; then : 4096 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4097else 4098 if test $on_mingw = no; then 4099 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4100else 4101 UNBOUND_PIDFILE="" 4102fi 4103 4104fi 4105 4106 4107hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4108 4109 4110cat >>confdefs.h <<_ACEOF 4111#define PIDFILE "$hdr_pid" 4112_ACEOF 4113 4114 4115 4116# Check whether --with-rootkey-file was given. 4117if test "${with_rootkey_file+set}" = set; then : 4118 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4119else 4120 if test $on_mingw = no; then 4121 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4122else 4123 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4124fi 4125 4126fi 4127 4128 4129hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4130 4131 4132cat >>confdefs.h <<_ACEOF 4133#define ROOT_ANCHOR_FILE "$hdr_rkey" 4134_ACEOF 4135 4136 4137 4138# Check whether --with-rootcert-file was given. 4139if test "${with_rootcert_file+set}" = set; then : 4140 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4141else 4142 if test $on_mingw = no; then 4143 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4144else 4145 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4146fi 4147 4148fi 4149 4150 4151hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4152 4153 4154cat >>confdefs.h <<_ACEOF 4155#define ROOT_CERT_FILE "$hdr_rpem" 4156_ACEOF 4157 4158 4159 4160# Check whether --with-username was given. 4161if test "${with_username+set}" = set; then : 4162 withval=$with_username; UNBOUND_USERNAME="$withval" 4163else 4164 UNBOUND_USERNAME="unbound" 4165fi 4166 4167 4168 4169cat >>confdefs.h <<_ACEOF 4170#define UB_USERNAME "$UNBOUND_USERNAME" 4171_ACEOF 4172 4173 4174 4175$as_echo "#define WINVER 0x0502" >>confdefs.h 4176 4177wnvs=`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/' ` 4178 4179 4180cat >>confdefs.h <<_ACEOF 4181#define RSRC_PACKAGE_VERSION $wnvs 4182_ACEOF 4183 4184 4185# Checks for typedefs, structures, and compiler characteristics. 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4187$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4188if ${ac_cv_c_const+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197 4198#ifndef __cplusplus 4199 /* Ultrix mips cc rejects this sort of thing. */ 4200 typedef int charset[2]; 4201 const charset cs = { 0, 0 }; 4202 /* SunOS 4.1.1 cc rejects this. */ 4203 char const *const *pcpcc; 4204 char **ppc; 4205 /* NEC SVR4.0.2 mips cc rejects this. */ 4206 struct point {int x, y;}; 4207 static struct point const zero = {0,0}; 4208 /* AIX XL C 1.02.0.0 rejects this. 4209 It does not let you subtract one const X* pointer from another in 4210 an arm of an if-expression whose if-part is not a constant 4211 expression */ 4212 const char *g = "string"; 4213 pcpcc = &g + (g ? g-g : 0); 4214 /* HPUX 7.0 cc rejects these. */ 4215 ++pcpcc; 4216 ppc = (char**) pcpcc; 4217 pcpcc = (char const *const *) ppc; 4218 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4219 char tx; 4220 char *t = &tx; 4221 char const *s = 0 ? (char *) 0 : (char const *) 0; 4222 4223 *t++ = 0; 4224 if (s) return 0; 4225 } 4226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4227 int x[] = {25, 17}; 4228 const int *foo = &x[0]; 4229 ++foo; 4230 } 4231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4232 typedef const int *iptr; 4233 iptr p = 0; 4234 ++p; 4235 } 4236 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4238 struct s { int j; const int *ap[3]; } bx; 4239 struct s *b = &bx; b->j = 5; 4240 } 4241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4242 const int foo = 10; 4243 if (!foo) return 0; 4244 } 4245 return !cs[0] && !zero.x; 4246#endif 4247 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252if ac_fn_c_try_compile "$LINENO"; then : 4253 ac_cv_c_const=yes 4254else 4255 ac_cv_c_const=no 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4260$as_echo "$ac_cv_c_const" >&6; } 4261if test $ac_cv_c_const = no; then 4262 4263$as_echo "#define const /**/" >>confdefs.h 4264 4265fi 4266 4267ac_ext=c 4268ac_cpp='$CPP $CPPFLAGS' 4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4271ac_compiler_gnu=$ac_cv_c_compiler_gnu 4272 4273# allow user to override the -g -O2 flags. 4274if test "x$CFLAGS" = "x" ; then 4275 4276 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4278$as_echo_n "checking whether $CC supports -g... " >&6; } 4279cache=`echo g | sed 'y%.=/+-%___p_%'` 4280if eval \${cv_prog_cc_flag_$cache+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 4284echo 'void f(void){}' >conftest.c 4285if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4286eval "cv_prog_cc_flag_$cache=yes" 4287else 4288eval "cv_prog_cc_flag_$cache=no" 4289fi 4290rm -f conftest conftest.o conftest.c 4291 4292fi 4293 4294if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4296$as_echo "yes" >&6; } 4297: 4298CFLAGS="$CFLAGS -g" 4299else 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4301$as_echo "no" >&6; } 4302: 4303 4304fi 4305 4306 4307 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4309$as_echo_n "checking whether $CC supports -O2... " >&6; } 4310cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4311if eval \${cv_prog_cc_flag_$cache+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 4315echo 'void f(void){}' >conftest.c 4316if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4317eval "cv_prog_cc_flag_$cache=yes" 4318else 4319eval "cv_prog_cc_flag_$cache=no" 4320fi 4321rm -f conftest conftest.o conftest.c 4322 4323fi 4324 4325if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4327$as_echo "yes" >&6; } 4328: 4329CFLAGS="$CFLAGS -O2" 4330else 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333: 4334 4335fi 4336 4337fi 4338ac_ext=c 4339ac_cpp='$CPP $CPPFLAGS' 4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4342ac_compiler_gnu=$ac_cv_c_compiler_gnu 4343if test -n "$ac_tool_prefix"; then 4344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4345set dummy ${ac_tool_prefix}gcc; ac_word=$2 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4347$as_echo_n "checking for $ac_word... " >&6; } 4348if ${ac_cv_prog_CC+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 if test -n "$CC"; then 4352 ac_cv_prog_CC="$CC" # Let the user override the test. 4353else 4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4355for as_dir in $PATH 4356do 4357 IFS=$as_save_IFS 4358 test -z "$as_dir" && as_dir=. 4359 for ac_exec_ext in '' $ac_executable_extensions; do 4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4361 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4363 break 2 4364 fi 4365done 4366 done 4367IFS=$as_save_IFS 4368 4369fi 4370fi 4371CC=$ac_cv_prog_CC 4372if test -n "$CC"; then 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4374$as_echo "$CC" >&6; } 4375else 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4377$as_echo "no" >&6; } 4378fi 4379 4380 4381fi 4382if test -z "$ac_cv_prog_CC"; then 4383 ac_ct_CC=$CC 4384 # Extract the first word of "gcc", so it can be a program name with args. 4385set dummy gcc; ac_word=$2 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4387$as_echo_n "checking for $ac_word... " >&6; } 4388if ${ac_cv_prog_ac_ct_CC+:} false; then : 4389 $as_echo_n "(cached) " >&6 4390else 4391 if test -n "$ac_ct_CC"; then 4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4393else 4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4395for as_dir in $PATH 4396do 4397 IFS=$as_save_IFS 4398 test -z "$as_dir" && as_dir=. 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4401 ac_cv_prog_ac_ct_CC="gcc" 4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4403 break 2 4404 fi 4405done 4406 done 4407IFS=$as_save_IFS 4408 4409fi 4410fi 4411ac_ct_CC=$ac_cv_prog_ac_ct_CC 4412if test -n "$ac_ct_CC"; then 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4414$as_echo "$ac_ct_CC" >&6; } 4415else 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4417$as_echo "no" >&6; } 4418fi 4419 4420 if test "x$ac_ct_CC" = x; then 4421 CC="" 4422 else 4423 case $cross_compiling:$ac_tool_warned in 4424yes:) 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4427ac_tool_warned=yes ;; 4428esac 4429 CC=$ac_ct_CC 4430 fi 4431else 4432 CC="$ac_cv_prog_CC" 4433fi 4434 4435if test -z "$CC"; then 4436 if test -n "$ac_tool_prefix"; then 4437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4438set dummy ${ac_tool_prefix}cc; ac_word=$2 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4440$as_echo_n "checking for $ac_word... " >&6; } 4441if ${ac_cv_prog_CC+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 if test -n "$CC"; then 4445 ac_cv_prog_CC="$CC" # Let the user override the test. 4446else 4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4448for as_dir in $PATH 4449do 4450 IFS=$as_save_IFS 4451 test -z "$as_dir" && as_dir=. 4452 for ac_exec_ext in '' $ac_executable_extensions; do 4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4454 ac_cv_prog_CC="${ac_tool_prefix}cc" 4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4456 break 2 4457 fi 4458done 4459 done 4460IFS=$as_save_IFS 4461 4462fi 4463fi 4464CC=$ac_cv_prog_CC 4465if test -n "$CC"; then 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4467$as_echo "$CC" >&6; } 4468else 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4470$as_echo "no" >&6; } 4471fi 4472 4473 4474 fi 4475fi 4476if test -z "$CC"; then 4477 # Extract the first word of "cc", so it can be a program name with args. 4478set dummy cc; ac_word=$2 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4480$as_echo_n "checking for $ac_word... " >&6; } 4481if ${ac_cv_prog_CC+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 if test -n "$CC"; then 4485 ac_cv_prog_CC="$CC" # Let the user override the test. 4486else 4487 ac_prog_rejected=no 4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489for as_dir in $PATH 4490do 4491 IFS=$as_save_IFS 4492 test -z "$as_dir" && as_dir=. 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4496 ac_prog_rejected=yes 4497 continue 4498 fi 4499 ac_cv_prog_CC="cc" 4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4501 break 2 4502 fi 4503done 4504 done 4505IFS=$as_save_IFS 4506 4507if test $ac_prog_rejected = yes; then 4508 # We found a bogon in the path, so make sure we never use it. 4509 set dummy $ac_cv_prog_CC 4510 shift 4511 if test $# != 0; then 4512 # We chose a different compiler from the bogus one. 4513 # However, it has the same basename, so the bogon will be chosen 4514 # first if we set CC to just the basename; use the full file name. 4515 shift 4516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4517 fi 4518fi 4519fi 4520fi 4521CC=$ac_cv_prog_CC 4522if test -n "$CC"; then 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4524$as_echo "$CC" >&6; } 4525else 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4527$as_echo "no" >&6; } 4528fi 4529 4530 4531fi 4532if test -z "$CC"; then 4533 if test -n "$ac_tool_prefix"; then 4534 for ac_prog in cl.exe 4535 do 4536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4537set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4539$as_echo_n "checking for $ac_word... " >&6; } 4540if ${ac_cv_prog_CC+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 if test -n "$CC"; then 4544 ac_cv_prog_CC="$CC" # Let the user override the test. 4545else 4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4547for as_dir in $PATH 4548do 4549 IFS=$as_save_IFS 4550 test -z "$as_dir" && as_dir=. 4551 for ac_exec_ext in '' $ac_executable_extensions; do 4552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4555 break 2 4556 fi 4557done 4558 done 4559IFS=$as_save_IFS 4560 4561fi 4562fi 4563CC=$ac_cv_prog_CC 4564if test -n "$CC"; then 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4566$as_echo "$CC" >&6; } 4567else 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4569$as_echo "no" >&6; } 4570fi 4571 4572 4573 test -n "$CC" && break 4574 done 4575fi 4576if test -z "$CC"; then 4577 ac_ct_CC=$CC 4578 for ac_prog in cl.exe 4579do 4580 # Extract the first word of "$ac_prog", so it can be a program name with args. 4581set dummy $ac_prog; ac_word=$2 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4583$as_echo_n "checking for $ac_word... " >&6; } 4584if ${ac_cv_prog_ac_ct_CC+:} false; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 if test -n "$ac_ct_CC"; then 4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4589else 4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH 4592do 4593 IFS=$as_save_IFS 4594 test -z "$as_dir" && as_dir=. 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4597 ac_cv_prog_ac_ct_CC="$ac_prog" 4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605fi 4606fi 4607ac_ct_CC=$ac_cv_prog_ac_ct_CC 4608if test -n "$ac_ct_CC"; then 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4610$as_echo "$ac_ct_CC" >&6; } 4611else 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613$as_echo "no" >&6; } 4614fi 4615 4616 4617 test -n "$ac_ct_CC" && break 4618done 4619 4620 if test "x$ac_ct_CC" = x; then 4621 CC="" 4622 else 4623 case $cross_compiling:$ac_tool_warned in 4624yes:) 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4627ac_tool_warned=yes ;; 4628esac 4629 CC=$ac_ct_CC 4630 fi 4631fi 4632 4633fi 4634 4635 4636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4638as_fn_error $? "no acceptable C compiler found in \$PATH 4639See \`config.log' for more details" "$LINENO" 5; } 4640 4641# Provide some information about the compiler. 4642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4643set X $ac_compile 4644ac_compiler=$2 4645for ac_option in --version -v -V -qversion; do 4646 { { ac_try="$ac_compiler $ac_option >&5" 4647case "(($ac_try" in 4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4649 *) ac_try_echo=$ac_try;; 4650esac 4651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4652$as_echo "$ac_try_echo"; } >&5 4653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4654 ac_status=$? 4655 if test -s conftest.err; then 4656 sed '10a\ 4657... rest of stderr output deleted ... 4658 10q' conftest.err >conftest.er1 4659 cat conftest.er1 >&5 4660 fi 4661 rm -f conftest.er1 conftest.err 4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4663 test $ac_status = 0; } 4664done 4665 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4667$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4668if ${ac_cv_c_compiler_gnu+:} false; then : 4669 $as_echo_n "(cached) " >&6 4670else 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673 4674int 4675main () 4676{ 4677#ifndef __GNUC__ 4678 choke me 4679#endif 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685if ac_fn_c_try_compile "$LINENO"; then : 4686 ac_compiler_gnu=yes 4687else 4688 ac_compiler_gnu=no 4689fi 4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4691ac_cv_c_compiler_gnu=$ac_compiler_gnu 4692 4693fi 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4695$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4696if test $ac_compiler_gnu = yes; then 4697 GCC=yes 4698else 4699 GCC= 4700fi 4701ac_test_CFLAGS=${CFLAGS+set} 4702ac_save_CFLAGS=$CFLAGS 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4704$as_echo_n "checking whether $CC accepts -g... " >&6; } 4705if ${ac_cv_prog_cc_g+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 ac_save_c_werror_flag=$ac_c_werror_flag 4709 ac_c_werror_flag=yes 4710 ac_cv_prog_cc_g=no 4711 CFLAGS="-g" 4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4713/* end confdefs.h. */ 4714 4715int 4716main () 4717{ 4718 4719 ; 4720 return 0; 4721} 4722_ACEOF 4723if ac_fn_c_try_compile "$LINENO"; then : 4724 ac_cv_prog_cc_g=yes 4725else 4726 CFLAGS="" 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729 4730int 4731main () 4732{ 4733 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738if ac_fn_c_try_compile "$LINENO"; then : 4739 4740else 4741 ac_c_werror_flag=$ac_save_c_werror_flag 4742 CFLAGS="-g" 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744/* end confdefs.h. */ 4745 4746int 4747main () 4748{ 4749 4750 ; 4751 return 0; 4752} 4753_ACEOF 4754if ac_fn_c_try_compile "$LINENO"; then : 4755 ac_cv_prog_cc_g=yes 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760fi 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4762 ac_c_werror_flag=$ac_save_c_werror_flag 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4765$as_echo "$ac_cv_prog_cc_g" >&6; } 4766if test "$ac_test_CFLAGS" = set; then 4767 CFLAGS=$ac_save_CFLAGS 4768elif test $ac_cv_prog_cc_g = yes; then 4769 if test "$GCC" = yes; then 4770 CFLAGS="-g -O2" 4771 else 4772 CFLAGS="-g" 4773 fi 4774else 4775 if test "$GCC" = yes; then 4776 CFLAGS="-O2" 4777 else 4778 CFLAGS= 4779 fi 4780fi 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4782$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4783if ${ac_cv_prog_cc_c89+:} false; then : 4784 $as_echo_n "(cached) " >&6 4785else 4786 ac_cv_prog_cc_c89=no 4787ac_save_CC=$CC 4788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4789/* end confdefs.h. */ 4790#include <stdarg.h> 4791#include <stdio.h> 4792struct stat; 4793/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4794struct buf { int x; }; 4795FILE * (*rcsopen) (struct buf *, struct stat *, int); 4796static char *e (p, i) 4797 char **p; 4798 int i; 4799{ 4800 return p[i]; 4801} 4802static char *f (char * (*g) (char **, int), char **p, ...) 4803{ 4804 char *s; 4805 va_list v; 4806 va_start (v,p); 4807 s = g (p, va_arg (v,int)); 4808 va_end (v); 4809 return s; 4810} 4811 4812/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4813 function prototypes and stuff, but not '\xHH' hex character constants. 4814 These don't provoke an error unfortunately, instead are silently treated 4815 as 'x'. The following induces an error, until -std is added to get 4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4817 array size at least. It's necessary to write '\x00'==0 to get something 4818 that's true only with -std. */ 4819int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4820 4821/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4822 inside strings and character constants. */ 4823#define FOO(x) 'x' 4824int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4825 4826int test (int i, double x); 4827struct s1 {int (*f) (int a);}; 4828struct s2 {int (*f) (double a);}; 4829int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4830int argc; 4831char **argv; 4832int 4833main () 4834{ 4835return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4836 ; 4837 return 0; 4838} 4839_ACEOF 4840for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4842do 4843 CC="$ac_save_CC $ac_arg" 4844 if ac_fn_c_try_compile "$LINENO"; then : 4845 ac_cv_prog_cc_c89=$ac_arg 4846fi 4847rm -f core conftest.err conftest.$ac_objext 4848 test "x$ac_cv_prog_cc_c89" != "xno" && break 4849done 4850rm -f conftest.$ac_ext 4851CC=$ac_save_CC 4852 4853fi 4854# AC_CACHE_VAL 4855case "x$ac_cv_prog_cc_c89" in 4856 x) 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4858$as_echo "none needed" >&6; } ;; 4859 xno) 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4861$as_echo "unsupported" >&6; } ;; 4862 *) 4863 CC="$CC $ac_cv_prog_cc_c89" 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4865$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4866esac 4867if test "x$ac_cv_prog_cc_c89" != xno; then : 4868 4869fi 4870 4871ac_ext=c 4872ac_cpp='$CPP $CPPFLAGS' 4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4875ac_compiler_gnu=$ac_cv_c_compiler_gnu 4876 4877 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4879$as_echo_n "checking $CC dependency flag... " >&6; } 4880echo 'void f(){}' >conftest.c 4881if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4882 DEPFLAG="-MM" 4883else 4884 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4885 DEPFLAG="-xM1" 4886 else 4887 DEPFLAG="-MM" # dunno do something 4888 fi 4889fi 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4891$as_echo "$DEPFLAG" >&6; } 4892rm -f conftest.c 4893 4894 4895 4896 4897 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4899$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4900cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4901if eval \${cv_prog_cc_flag_$cache+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 4905echo 'void f(void){}' >conftest.c 4906if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4907eval "cv_prog_cc_flag_$cache=yes" 4908else 4909eval "cv_prog_cc_flag_$cache=no" 4910fi 4911rm -f conftest conftest.o conftest.c 4912 4913fi 4914 4915if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4917$as_echo "yes" >&6; } 4918: 4919ERRFLAG="-Werror" 4920else 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4922$as_echo "no" >&6; } 4923: 4924ERRFLAG="-errwarn" 4925fi 4926 4927 4928 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4930$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4931cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4932if eval \${cv_prog_cc_flag_$cache+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934else 4935 4936echo 'void f(void){}' >conftest.c 4937if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4938eval "cv_prog_cc_flag_$cache=yes" 4939else 4940eval "cv_prog_cc_flag_$cache=no" 4941fi 4942rm -f conftest conftest.o conftest.c 4943 4944fi 4945 4946if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4948$as_echo "yes" >&6; } 4949: 4950ERRFLAG="$ERRFLAG -Wall" 4951else 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4953$as_echo "no" >&6; } 4954: 4955ERRFLAG="$ERRFLAG -errfmt" 4956fi 4957 4958 4959 4960 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4963$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4964cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4965if eval \${cv_prog_cc_flag_$cache+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 4969echo 'void f(void){}' >conftest.c 4970if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4971eval "cv_prog_cc_flag_$cache=yes" 4972else 4973eval "cv_prog_cc_flag_$cache=no" 4974fi 4975rm -f conftest conftest.o conftest.c 4976 4977fi 4978 4979if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4981$as_echo "yes" >&6; } 4982: 4983C99FLAG="-std=c99" 4984else 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986$as_echo "no" >&6; } 4987: 4988 4989fi 4990 4991 4992 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 4994$as_echo_n "checking whether $CC supports -xc99... " >&6; } 4995cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 4996if eval \${cv_prog_cc_flag_$cache+:} false; then : 4997 $as_echo_n "(cached) " >&6 4998else 4999 5000echo 'void f(void){}' >conftest.c 5001if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5002eval "cv_prog_cc_flag_$cache=yes" 5003else 5004eval "cv_prog_cc_flag_$cache=no" 5005fi 5006rm -f conftest conftest.o conftest.c 5007 5008fi 5009 5010if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5012$as_echo "yes" >&6; } 5013: 5014C99FLAG="-xc99" 5015else 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5017$as_echo "no" >&6; } 5018: 5019 5020fi 5021 5022 5023for ac_header in getopt.h time.h 5024do : 5025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5026ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5027" 5028if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5029 cat >>confdefs.h <<_ACEOF 5030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5031_ACEOF 5032 5033fi 5034 5035done 5036 5037 5038 5039 5040 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5042$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5043cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5044if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 5048echo ' 5049#include "confdefs.h" 5050#include <stdlib.h> 5051#include <ctype.h> 5052#include <sys/time.h> 5053#ifdef HAVE_TIME_H 5054#include <time.h> 5055#endif 5056#include <unistd.h> 5057#include <netdb.h> 5058#ifdef HAVE_GETOPT_H 5059#include <getopt.h> 5060#endif 5061 5062int test() { 5063 int a; 5064 char **opts = NULL; 5065 struct timeval tv; 5066 char *t; 5067 time_t time = 0; 5068 char *buf = NULL; 5069 const char* str = NULL; 5070 struct msghdr msg; 5071 msg.msg_control = 0; 5072 t = ctime_r(&time, buf); 5073 tv.tv_usec = 10; 5074 srandom(32); 5075 a = getopt(2, opts, "a"); 5076 a = isascii(32); 5077 str = gai_strerror(0); 5078 if(str && t && tv.tv_usec && msg.msg_control) 5079 a = 0; 5080 return a; 5081} 5082' > conftest.c 5083echo 'void f(){}' >>conftest.c 5084if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5085eval "cv_prog_cc_flag_needed_$cache=no" 5086else 5087 5088if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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 5089eval "cv_prog_cc_flag_needed_$cache=yes" 5090else 5091eval "cv_prog_cc_flag_needed_$cache=fail" 5092#echo 'Test with flag fails too!' 5093#cat conftest.c 5094#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5095#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5096#exit 1 5097fi 5098 5099fi 5100rm -f conftest conftest.c conftest.o 5101 5102fi 5103 5104if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5106$as_echo "yes" >&6; } 5107: 5108CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5109else 5110if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112$as_echo "no" >&6; } 5113#echo 'Test with flag is no!' 5114#cat conftest.c 5115#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5116#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5117#exit 1 5118: 5119 5120else 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5122$as_echo "failed" >&6; } 5123: 5124 5125fi 5126fi 5127 5128 5129 5130 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5133$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5134cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5135if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 5139echo ' 5140#include "confdefs.h" 5141#include <stdlib.h> 5142#include <ctype.h> 5143#include <sys/time.h> 5144#ifdef HAVE_TIME_H 5145#include <time.h> 5146#endif 5147#include <unistd.h> 5148#include <netdb.h> 5149#ifdef HAVE_GETOPT_H 5150#include <getopt.h> 5151#endif 5152 5153int test() { 5154 int a; 5155 char **opts = NULL; 5156 struct timeval tv; 5157 char *t; 5158 time_t time = 0; 5159 char *buf = NULL; 5160 const char* str = NULL; 5161 struct msghdr msg; 5162 msg.msg_control = 0; 5163 t = ctime_r(&time, buf); 5164 tv.tv_usec = 10; 5165 srandom(32); 5166 a = getopt(2, opts, "a"); 5167 a = isascii(32); 5168 str = gai_strerror(0); 5169 if(str && t && tv.tv_usec && msg.msg_control) 5170 a = 0; 5171 return a; 5172} 5173' > conftest.c 5174echo 'void f(){}' >>conftest.c 5175if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5176eval "cv_prog_cc_flag_needed_$cache=no" 5177else 5178 5179if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5180eval "cv_prog_cc_flag_needed_$cache=yes" 5181else 5182eval "cv_prog_cc_flag_needed_$cache=fail" 5183#echo 'Test with flag fails too!' 5184#cat conftest.c 5185#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5186#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5187#exit 1 5188fi 5189 5190fi 5191rm -f conftest conftest.c conftest.o 5192 5193fi 5194 5195if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5197$as_echo "yes" >&6; } 5198: 5199CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5200else 5201if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204#echo 'Test with flag is no!' 5205#cat conftest.c 5206#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5207#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5208#exit 1 5209: 5210 5211else 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5213$as_echo "failed" >&6; } 5214: 5215 5216fi 5217fi 5218 5219 5220 5221 5222 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5224$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5225cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5226if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 5230echo ' 5231#include <stdbool.h> 5232#include <ctype.h> 5233int test() { 5234 int a = 0; 5235 return a; 5236} 5237' > conftest.c 5238echo 'void f(){}' >>conftest.c 5239if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5240eval "cv_prog_cc_flag_needed_$cache=no" 5241else 5242 5243if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5244eval "cv_prog_cc_flag_needed_$cache=yes" 5245else 5246eval "cv_prog_cc_flag_needed_$cache=fail" 5247#echo 'Test with flag fails too!' 5248#cat conftest.c 5249#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5250#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5251#exit 1 5252fi 5253 5254fi 5255rm -f conftest conftest.c conftest.o 5256 5257fi 5258 5259if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5261$as_echo "yes" >&6; } 5262: 5263CFLAGS="$CFLAGS $C99FLAG" 5264else 5265if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5267$as_echo "no" >&6; } 5268#echo 'Test with flag is no!' 5269#cat conftest.c 5270#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5271#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5272#exit 1 5273: 5274 5275else 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5277$as_echo "failed" >&6; } 5278: 5279 5280fi 5281fi 5282 5283 5284 5285 5286 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5288$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5289cache=_D_BSD_SOURCE 5290if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 5294echo ' 5295#include <ctype.h> 5296 5297int test() { 5298 int a; 5299 a = isascii(32); 5300 return a; 5301} 5302' > conftest.c 5303echo 'void f(){}' >>conftest.c 5304if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5305eval "cv_prog_cc_flag_needed_$cache=no" 5306else 5307 5308if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5309eval "cv_prog_cc_flag_needed_$cache=yes" 5310else 5311eval "cv_prog_cc_flag_needed_$cache=fail" 5312#echo 'Test with flag fails too!' 5313#cat conftest.c 5314#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5315#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5316#exit 1 5317fi 5318 5319fi 5320rm -f conftest conftest.c conftest.o 5321 5322fi 5323 5324if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5326$as_echo "yes" >&6; } 5327: 5328CFLAGS="$CFLAGS -D_BSD_SOURCE" 5329else 5330if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5332$as_echo "no" >&6; } 5333#echo 'Test with flag is no!' 5334#cat conftest.c 5335#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5336#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5337#exit 1 5338: 5339 5340else 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5342$as_echo "failed" >&6; } 5343: 5344 5345fi 5346fi 5347 5348 5349 5350 5351 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5353$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5354cache=_D_GNU_SOURCE 5355if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5356 $as_echo_n "(cached) " >&6 5357else 5358 5359echo ' 5360#include <netinet/in.h> 5361 5362int test() { 5363 struct in6_pktinfo inf; 5364 int a = (int)sizeof(inf); 5365 return a; 5366} 5367' > conftest.c 5368echo 'void f(){}' >>conftest.c 5369if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5370eval "cv_prog_cc_flag_needed_$cache=no" 5371else 5372 5373if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5374eval "cv_prog_cc_flag_needed_$cache=yes" 5375else 5376eval "cv_prog_cc_flag_needed_$cache=fail" 5377#echo 'Test with flag fails too!' 5378#cat conftest.c 5379#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5380#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5381#exit 1 5382fi 5383 5384fi 5385rm -f conftest conftest.c conftest.o 5386 5387fi 5388 5389if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5391$as_echo "yes" >&6; } 5392: 5393CFLAGS="$CFLAGS -D_GNU_SOURCE" 5394else 5395if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397$as_echo "no" >&6; } 5398#echo 'Test with flag is no!' 5399#cat conftest.c 5400#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5401#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5402#exit 1 5403: 5404 5405else 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5407$as_echo "failed" >&6; } 5408: 5409 5410fi 5411fi 5412 5413 5414# check again for GNU_SOURCE for setresgid. May fail if setresgid 5415# is not available at all. -D_FRSRESGID is to make this check unique. 5416# otherwise we would get the previous cached result. 5417 5418 5419 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5421$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5422cache=_D_GNU_SOURCE__D_FRSRESGID 5423if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425else 5426 5427echo ' 5428#include <unistd.h> 5429 5430int test() { 5431 int a = setresgid(0,0,0); 5432 a = setresuid(0,0,0); 5433 return a; 5434} 5435' > conftest.c 5436echo 'void f(){}' >>conftest.c 5437if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5438eval "cv_prog_cc_flag_needed_$cache=no" 5439else 5440 5441if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5442eval "cv_prog_cc_flag_needed_$cache=yes" 5443else 5444eval "cv_prog_cc_flag_needed_$cache=fail" 5445#echo 'Test with flag fails too!' 5446#cat conftest.c 5447#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5448#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5449#exit 1 5450fi 5451 5452fi 5453rm -f conftest conftest.c conftest.o 5454 5455fi 5456 5457if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5459$as_echo "yes" >&6; } 5460: 5461CFLAGS="$CFLAGS -D_GNU_SOURCE" 5462else 5463if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5465$as_echo "no" >&6; } 5466#echo 'Test with flag is no!' 5467#cat conftest.c 5468#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5469#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5470#exit 1 5471: 5472 5473else 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5475$as_echo "failed" >&6; } 5476: 5477 5478fi 5479fi 5480 5481 5482 5483 5484 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5486$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5487cache=_D_POSIX_C_SOURCE_200112 5488if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 5492echo ' 5493#include "confdefs.h" 5494#ifdef HAVE_TIME_H 5495#include <time.h> 5496#endif 5497#include <netdb.h> 5498 5499int test() { 5500 int a = 0; 5501 char *t; 5502 time_t time = 0; 5503 char *buf = NULL; 5504 const char* str = NULL; 5505 t = ctime_r(&time, buf); 5506 str = gai_strerror(0); 5507 if(t && str) 5508 a = 0; 5509 return a; 5510} 5511' > conftest.c 5512echo 'void f(){}' >>conftest.c 5513if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5514eval "cv_prog_cc_flag_needed_$cache=no" 5515else 5516 5517if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5518eval "cv_prog_cc_flag_needed_$cache=yes" 5519else 5520eval "cv_prog_cc_flag_needed_$cache=fail" 5521#echo 'Test with flag fails too!' 5522#cat conftest.c 5523#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5524#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5525#exit 1 5526fi 5527 5528fi 5529rm -f conftest conftest.c conftest.o 5530 5531fi 5532 5533if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5535$as_echo "yes" >&6; } 5536: 5537CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5538else 5539if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541$as_echo "no" >&6; } 5542#echo 'Test with flag is no!' 5543#cat conftest.c 5544#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5545#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5546#exit 1 5547: 5548 5549else 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5551$as_echo "failed" >&6; } 5552: 5553 5554fi 5555fi 5556 5557 5558 5559 5560 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5562$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5563cache=_D__EXTENSIONS__ 5564if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 5568echo ' 5569#include "confdefs.h" 5570#include <stdlib.h> 5571#include <ctype.h> 5572#include <sys/time.h> 5573#ifdef HAVE_TIME_H 5574#include <time.h> 5575#endif 5576#include <unistd.h> 5577#ifdef HAVE_GETOPT_H 5578#include <getopt.h> 5579#endif 5580 5581int test() { 5582 int a; 5583 char **opts = NULL; 5584 struct timeval tv; 5585 tv.tv_usec = 10; 5586 srandom(32); 5587 a = getopt(2, opts, "a"); 5588 a = isascii(32); 5589 if(tv.tv_usec) 5590 a = 0; 5591 return a; 5592} 5593' > conftest.c 5594echo 'void f(){}' >>conftest.c 5595if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5596eval "cv_prog_cc_flag_needed_$cache=no" 5597else 5598 5599if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5600eval "cv_prog_cc_flag_needed_$cache=yes" 5601else 5602eval "cv_prog_cc_flag_needed_$cache=fail" 5603#echo 'Test with flag fails too!' 5604#cat conftest.c 5605#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5606#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5607#exit 1 5608fi 5609 5610fi 5611rm -f conftest conftest.c conftest.o 5612 5613fi 5614 5615if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5617$as_echo "yes" >&6; } 5618: 5619CFLAGS="$CFLAGS -D__EXTENSIONS__" 5620else 5621if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5623$as_echo "no" >&6; } 5624#echo 'Test with flag is no!' 5625#cat conftest.c 5626#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5627#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5628#exit 1 5629: 5630 5631else 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5633$as_echo "failed" >&6; } 5634: 5635 5636fi 5637fi 5638 5639 5640 5641 5642# debug mode flags warnings 5643# Check whether --enable-checking was given. 5644if test "${enable_checking+set}" = set; then : 5645 enableval=$enable_checking; 5646fi 5647 5648# Check whether --enable-debug was given. 5649if test "${enable_debug+set}" = set; then : 5650 enableval=$enable_debug; 5651fi 5652 5653if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5654else debug_enabled="$enable_checking"; fi 5655 5656case "$debug_enabled" in 5657 yes) 5658 5659 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5661$as_echo_n "checking whether $CC supports -W... " >&6; } 5662cache=`echo W | sed 'y%.=/+-%___p_%'` 5663if eval \${cv_prog_cc_flag_$cache+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 5667echo 'void f(void){}' >conftest.c 5668if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5669eval "cv_prog_cc_flag_$cache=yes" 5670else 5671eval "cv_prog_cc_flag_$cache=no" 5672fi 5673rm -f conftest conftest.o conftest.c 5674 5675fi 5676 5677if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5679$as_echo "yes" >&6; } 5680: 5681CFLAGS="$CFLAGS -W" 5682else 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5684$as_echo "no" >&6; } 5685: 5686 5687fi 5688 5689 5690 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5692$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5693cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5694if eval \${cv_prog_cc_flag_$cache+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 5698echo 'void f(void){}' >conftest.c 5699if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5700eval "cv_prog_cc_flag_$cache=yes" 5701else 5702eval "cv_prog_cc_flag_$cache=no" 5703fi 5704rm -f conftest conftest.o conftest.c 5705 5706fi 5707 5708if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5710$as_echo "yes" >&6; } 5711: 5712CFLAGS="$CFLAGS -Wall" 5713else 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5715$as_echo "no" >&6; } 5716: 5717 5718fi 5719 5720 5721 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5723$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5724cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5725if eval \${cv_prog_cc_flag_$cache+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 5729echo 'void f(void){}' >conftest.c 5730if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5731eval "cv_prog_cc_flag_$cache=yes" 5732else 5733eval "cv_prog_cc_flag_$cache=no" 5734fi 5735rm -f conftest conftest.o conftest.c 5736 5737fi 5738 5739if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5741$as_echo "yes" >&6; } 5742: 5743CFLAGS="$CFLAGS -Wextra" 5744else 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5746$as_echo "no" >&6; } 5747: 5748 5749fi 5750 5751 5752 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5754$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5755cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5756if eval \${cv_prog_cc_flag_$cache+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 5760echo 'void f(void){}' >conftest.c 5761if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5762eval "cv_prog_cc_flag_$cache=yes" 5763else 5764eval "cv_prog_cc_flag_$cache=no" 5765fi 5766rm -f conftest conftest.o conftest.c 5767 5768fi 5769 5770if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5772$as_echo "yes" >&6; } 5773: 5774CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5775else 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777$as_echo "no" >&6; } 5778: 5779 5780fi 5781 5782 5783$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5784 5785 ;; 5786 no|*) 5787 # nothing to do. 5788 ;; 5789esac 5790 5791 # Check whether --enable-flto was given. 5792if test "${enable_flto+set}" = set; then : 5793 enableval=$enable_flto; 5794fi 5795 5796 if test "x$enable_flto" != "xno"; then : 5797 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5799$as_echo_n "checking if $CC supports -flto... " >&6; } 5800 BAKCFLAGS="$CFLAGS" 5801 CFLAGS="$CFLAGS -flto" 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804 5805int 5806main () 5807{ 5808 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813if ac_fn_c_try_link "$LINENO"; then : 5814 5815 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5816 CFLAGS="$BAKCFLAGS" 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5818$as_echo "no" >&6; } 5819 else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5821$as_echo "yes" >&6; } 5822 fi 5823 rm -f conftest conftest.c conftest.o 5824 5825else 5826 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5827$as_echo "no" >&6; } 5828fi 5829rm -f core conftest.err conftest.$ac_objext \ 5830 conftest$ac_exeext conftest.$ac_ext 5831 5832fi 5833 5834 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5836$as_echo_n "checking for inline... " >&6; } 5837if ${ac_cv_c_inline+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 ac_cv_c_inline=no 5841for ac_kw in inline __inline__ __inline; do 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844#ifndef __cplusplus 5845typedef int foo_t; 5846static $ac_kw foo_t static_foo () {return 0; } 5847$ac_kw foo_t foo () {return 0; } 5848#endif 5849 5850_ACEOF 5851if ac_fn_c_try_compile "$LINENO"; then : 5852 ac_cv_c_inline=$ac_kw 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5855 test "$ac_cv_c_inline" != no && break 5856done 5857 5858fi 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5860$as_echo "$ac_cv_c_inline" >&6; } 5861 5862case $ac_cv_c_inline in 5863 inline | yes) ;; 5864 *) 5865 case $ac_cv_c_inline in 5866 no) ac_val=;; 5867 *) ac_val=$ac_cv_c_inline;; 5868 esac 5869 cat >>confdefs.h <<_ACEOF 5870#ifndef __cplusplus 5871#define inline $ac_val 5872#endif 5873_ACEOF 5874 ;; 5875esac 5876 5877 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 5879$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 5880if ${ac_cv_c_format_attribute+:} false; then : 5881 $as_echo_n "(cached) " >&6 5882else 5883 ac_cv_c_format_attribute=no 5884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885/* end confdefs.h. */ 5886#include <stdio.h> 5887void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5888void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5889 5890int 5891main () 5892{ 5893 5894 f ("%s", "str"); 5895 5896 ; 5897 return 0; 5898} 5899_ACEOF 5900if ac_fn_c_try_compile "$LINENO"; then : 5901 ac_cv_c_format_attribute="yes" 5902else 5903 ac_cv_c_format_attribute="no" 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5906 5907fi 5908 5909 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 5911$as_echo "$ac_cv_c_format_attribute" >&6; } 5912if test $ac_cv_c_format_attribute = yes; then 5913 5914$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 5915 5916fi 5917 5918 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 5920$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 5921if ${ac_cv_c_unused_attribute+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 ac_cv_c_unused_attribute=no 5925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926/* end confdefs.h. */ 5927#include <stdio.h> 5928void f (char *u __attribute__((unused))); 5929 5930int 5931main () 5932{ 5933 5934 f ("x"); 5935 5936 ; 5937 return 0; 5938} 5939_ACEOF 5940if ac_fn_c_try_compile "$LINENO"; then : 5941 ac_cv_c_unused_attribute="yes" 5942else 5943 ac_cv_c_unused_attribute="no" 5944fi 5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5946 5947fi 5948 5949 5950 5951 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 5953$as_echo "$ac_cv_c_unused_attribute" >&6; } 5954if test $ac_cv_c_unused_attribute = yes; then 5955 5956$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 5957 5958fi 5959 5960 5961if test "$srcdir" != "."; then 5962 CPPFLAGS="$CPPFLAGS -I$srcdir" 5963fi 5964 5965 5966 5967for ac_prog in flex lex 5968do 5969 # Extract the first word of "$ac_prog", so it can be a program name with args. 5970set dummy $ac_prog; ac_word=$2 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5972$as_echo_n "checking for $ac_word... " >&6; } 5973if ${ac_cv_prog_LEX+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 if test -n "$LEX"; then 5977 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_LEX="$ac_prog" 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996LEX=$ac_cv_prog_LEX 5997if test -n "$LEX"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5999$as_echo "$LEX" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003fi 6004 6005 6006 test -n "$LEX" && break 6007done 6008test -n "$LEX" || LEX=":" 6009 6010if test "x$LEX" != "x:"; then 6011 cat >conftest.l <<_ACEOF 6012%% 6013a { ECHO; } 6014b { REJECT; } 6015c { yymore (); } 6016d { yyless (1); } 6017e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6018 yyless ((input () != 0)); } 6019f { unput (yytext[0]); } 6020. { BEGIN INITIAL; } 6021%% 6022#ifdef YYTEXT_POINTER 6023extern char *yytext; 6024#endif 6025int 6026main (void) 6027{ 6028 return ! yylex () + ! yywrap (); 6029} 6030_ACEOF 6031{ { ac_try="$LEX conftest.l" 6032case "(($ac_try" in 6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6034 *) ac_try_echo=$ac_try;; 6035esac 6036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6037$as_echo "$ac_try_echo"; } >&5 6038 (eval "$LEX conftest.l") 2>&5 6039 ac_status=$? 6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6041 test $ac_status = 0; } 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6043$as_echo_n "checking lex output file root... " >&6; } 6044if ${ac_cv_prog_lex_root+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 6048if test -f lex.yy.c; then 6049 ac_cv_prog_lex_root=lex.yy 6050elif test -f lexyy.c; then 6051 ac_cv_prog_lex_root=lexyy 6052else 6053 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6054fi 6055fi 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6057$as_echo "$ac_cv_prog_lex_root" >&6; } 6058LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6059 6060if test -z "${LEXLIB+set}"; then 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6062$as_echo_n "checking lex library... " >&6; } 6063if ${ac_cv_lib_lex+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 6067 ac_save_LIBS=$LIBS 6068 ac_cv_lib_lex='none needed' 6069 for ac_lib in '' -lfl -ll; do 6070 LIBS="$ac_lib $ac_save_LIBS" 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072/* end confdefs.h. */ 6073`cat $LEX_OUTPUT_ROOT.c` 6074_ACEOF 6075if ac_fn_c_try_link "$LINENO"; then : 6076 ac_cv_lib_lex=$ac_lib 6077fi 6078rm -f core conftest.err conftest.$ac_objext \ 6079 conftest$ac_exeext conftest.$ac_ext 6080 test "$ac_cv_lib_lex" != 'none needed' && break 6081 done 6082 LIBS=$ac_save_LIBS 6083 6084fi 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6086$as_echo "$ac_cv_lib_lex" >&6; } 6087 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6088fi 6089 6090 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6092$as_echo_n "checking whether yytext is a pointer... " >&6; } 6093if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095else 6096 # POSIX says lex can declare yytext either as a pointer or an array; the 6097# default is implementation-dependent. Figure out which it is, since 6098# not all implementations provide the %pointer and %array declarations. 6099ac_cv_prog_lex_yytext_pointer=no 6100ac_save_LIBS=$LIBS 6101LIBS="$LEXLIB $ac_save_LIBS" 6102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6103/* end confdefs.h. */ 6104 6105 #define YYTEXT_POINTER 1 6106`cat $LEX_OUTPUT_ROOT.c` 6107_ACEOF 6108if ac_fn_c_try_link "$LINENO"; then : 6109 ac_cv_prog_lex_yytext_pointer=yes 6110fi 6111rm -f core conftest.err conftest.$ac_objext \ 6112 conftest$ac_exeext conftest.$ac_ext 6113LIBS=$ac_save_LIBS 6114 6115fi 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6117$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6118if test $ac_cv_prog_lex_yytext_pointer = yes; then 6119 6120$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6121 6122fi 6123rm -f conftest.l $LEX_OUTPUT_ROOT.c 6124 6125fi 6126 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6128$as_echo_n "checking for yylex_destroy... " >&6; } 6129 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6130 6131$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6132 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6134$as_echo "yes" >&6; } 6135 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6136$as_echo "no" >&6; }; fi 6137 6138for ac_prog in 'bison -y' byacc 6139do 6140 # Extract the first word of "$ac_prog", so it can be a program name with args. 6141set dummy $ac_prog; ac_word=$2 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6143$as_echo_n "checking for $ac_word... " >&6; } 6144if ${ac_cv_prog_YACC+:} false; then : 6145 $as_echo_n "(cached) " >&6 6146else 6147 if test -n "$YACC"; then 6148 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6149else 6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151for as_dir in $PATH 6152do 6153 IFS=$as_save_IFS 6154 test -z "$as_dir" && as_dir=. 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6157 ac_cv_prog_YACC="$ac_prog" 6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6159 break 2 6160 fi 6161done 6162 done 6163IFS=$as_save_IFS 6164 6165fi 6166fi 6167YACC=$ac_cv_prog_YACC 6168if test -n "$YACC"; then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6170$as_echo "$YACC" >&6; } 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173$as_echo "no" >&6; } 6174fi 6175 6176 6177 test -n "$YACC" && break 6178done 6179test -n "$YACC" || YACC="yacc" 6180 6181# Extract the first word of "doxygen", so it can be a program name with args. 6182set dummy doxygen; ac_word=$2 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6184$as_echo_n "checking for $ac_word... " >&6; } 6185if ${ac_cv_prog_doxygen+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 if test -n "$doxygen"; then 6189 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6190else 6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6198 ac_cv_prog_doxygen="doxygen" 6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203 done 6204IFS=$as_save_IFS 6205 6206fi 6207fi 6208doxygen=$ac_cv_prog_doxygen 6209if test -n "$doxygen"; then 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6211$as_echo "$doxygen" >&6; } 6212else 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6214$as_echo "no" >&6; } 6215fi 6216 6217 6218if test -n "$ac_tool_prefix"; then 6219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6220set dummy ${ac_tool_prefix}strip; ac_word=$2 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222$as_echo_n "checking for $ac_word... " >&6; } 6223if ${ac_cv_prog_STRIP+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 if test -n "$STRIP"; then 6227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6228else 6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241 done 6242IFS=$as_save_IFS 6243 6244fi 6245fi 6246STRIP=$ac_cv_prog_STRIP 6247if test -n "$STRIP"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6249$as_echo "$STRIP" >&6; } 6250else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252$as_echo "no" >&6; } 6253fi 6254 6255 6256fi 6257if test -z "$ac_cv_prog_STRIP"; then 6258 ac_ct_STRIP=$STRIP 6259 # Extract the first word of "strip", so it can be a program name with args. 6260set dummy strip; ac_word=$2 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262$as_echo_n "checking for $ac_word... " >&6; } 6263if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 if test -n "$ac_ct_STRIP"; then 6267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6268else 6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270for as_dir in $PATH 6271do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_exec_ext in '' $ac_executable_extensions; do 6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6276 ac_cv_prog_ac_ct_STRIP="strip" 6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6278 break 2 6279 fi 6280done 6281 done 6282IFS=$as_save_IFS 6283 6284fi 6285fi 6286ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6287if test -n "$ac_ct_STRIP"; then 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6289$as_echo "$ac_ct_STRIP" >&6; } 6290else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292$as_echo "no" >&6; } 6293fi 6294 6295 if test "x$ac_ct_STRIP" = x; then 6296 STRIP="" 6297 else 6298 case $cross_compiling:$ac_tool_warned in 6299yes:) 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6302ac_tool_warned=yes ;; 6303esac 6304 STRIP=$ac_ct_STRIP 6305 fi 6306else 6307 STRIP="$ac_cv_prog_STRIP" 6308fi 6309 6310ac_aux_dir= 6311for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6312 if test -f "$ac_dir/install-sh"; then 6313 ac_aux_dir=$ac_dir 6314 ac_install_sh="$ac_aux_dir/install-sh -c" 6315 break 6316 elif test -f "$ac_dir/install.sh"; then 6317 ac_aux_dir=$ac_dir 6318 ac_install_sh="$ac_aux_dir/install.sh -c" 6319 break 6320 elif test -f "$ac_dir/shtool"; then 6321 ac_aux_dir=$ac_dir 6322 ac_install_sh="$ac_aux_dir/shtool install -c" 6323 break 6324 fi 6325done 6326if test -z "$ac_aux_dir"; then 6327 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6328fi 6329 6330# These three variables are undocumented and unsupported, 6331# and are intended to be withdrawn in a future Autoconf release. 6332# They can cause serious problems if a builder's source tree is in a directory 6333# whose full name contains unusual characters. 6334ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6335ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6336ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6337 6338 6339# Make sure we can run config.sub. 6340$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6341 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6342 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6344$as_echo_n "checking build system type... " >&6; } 6345if ${ac_cv_build+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 ac_build_alias=$build_alias 6349test "x$ac_build_alias" = x && 6350 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6351test "x$ac_build_alias" = x && 6352 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6353ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6355 6356fi 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6358$as_echo "$ac_cv_build" >&6; } 6359case $ac_cv_build in 6360*-*-*) ;; 6361*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6362esac 6363build=$ac_cv_build 6364ac_save_IFS=$IFS; IFS='-' 6365set x $ac_cv_build 6366shift 6367build_cpu=$1 6368build_vendor=$2 6369shift; shift 6370# Remember, the first character of IFS is used to create $*, 6371# except with old shells: 6372build_os=$* 6373IFS=$ac_save_IFS 6374case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6375 6376 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6378$as_echo_n "checking host system type... " >&6; } 6379if ${ac_cv_host+:} false; then : 6380 $as_echo_n "(cached) " >&6 6381else 6382 if test "x$host_alias" = x; then 6383 ac_cv_host=$ac_cv_build 6384else 6385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6387fi 6388 6389fi 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6391$as_echo "$ac_cv_host" >&6; } 6392case $ac_cv_host in 6393*-*-*) ;; 6394*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6395esac 6396host=$ac_cv_host 6397ac_save_IFS=$IFS; IFS='-' 6398set x $ac_cv_host 6399shift 6400host_cpu=$1 6401host_vendor=$2 6402shift; shift 6403# Remember, the first character of IFS is used to create $*, 6404# except with old shells: 6405host_os=$* 6406IFS=$ac_save_IFS 6407case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6408 6409 6410 6411# skip these tests, we do not need them. 6412 6413 6414 6415 6416 6417 6418 6419 6420# always use ./libtool unless override from commandline (libtool=mylibtool) 6421if test -z "$libtool"; then 6422 libtool="./libtool" 6423fi 6424 6425# avoid libtool max commandline length test on systems that fork slowly. 6426 6427if echo "$host_os" | grep "sunos4" >/dev/null; then 6428 lt_cv_sys_max_cmd_len=32750; 6429fi 6430if test -n "$ac_tool_prefix"; then 6431 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6432set dummy ${ac_tool_prefix}ar; ac_word=$2 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6434$as_echo_n "checking for $ac_word... " >&6; } 6435if ${ac_cv_path_AR+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 case $AR in 6439 [\\/]* | ?:[\\/]*) 6440 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6441 ;; 6442 *) 6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444for as_dir in $PATH 6445do 6446 IFS=$as_save_IFS 6447 test -z "$as_dir" && as_dir=. 6448 for ac_exec_ext in '' $ac_executable_extensions; do 6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6450 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6452 break 2 6453 fi 6454done 6455 done 6456IFS=$as_save_IFS 6457 6458 ;; 6459esac 6460fi 6461AR=$ac_cv_path_AR 6462if test -n "$AR"; then 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6464$as_echo "$AR" >&6; } 6465else 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467$as_echo "no" >&6; } 6468fi 6469 6470 6471fi 6472if test -z "$ac_cv_path_AR"; then 6473 ac_pt_AR=$AR 6474 # Extract the first word of "ar", so it can be a program name with args. 6475set dummy ar; ac_word=$2 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477$as_echo_n "checking for $ac_word... " >&6; } 6478if ${ac_cv_path_ac_pt_AR+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 case $ac_pt_AR in 6482 [\\/]* | ?:[\\/]*) 6483 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6484 ;; 6485 *) 6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6487for as_dir in $PATH 6488do 6489 IFS=$as_save_IFS 6490 test -z "$as_dir" && as_dir=. 6491 for ac_exec_ext in '' $ac_executable_extensions; do 6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6493 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6495 break 2 6496 fi 6497done 6498 done 6499IFS=$as_save_IFS 6500 6501 ;; 6502esac 6503fi 6504ac_pt_AR=$ac_cv_path_ac_pt_AR 6505if test -n "$ac_pt_AR"; then 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6507$as_echo "$ac_pt_AR" >&6; } 6508else 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6510$as_echo "no" >&6; } 6511fi 6512 6513 if test "x$ac_pt_AR" = x; then 6514 AR="false" 6515 else 6516 case $cross_compiling:$ac_tool_warned in 6517yes:) 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6520ac_tool_warned=yes ;; 6521esac 6522 AR=$ac_pt_AR 6523 fi 6524else 6525 AR="$ac_cv_path_AR" 6526fi 6527 6528if test $AR = false; then 6529 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6530fi 6531 6532case `pwd` in 6533 *\ * | *\ *) 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6535$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6536esac 6537 6538 6539 6540macro_version='2.4.2' 6541macro_revision='1.3337' 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555ltmain="$ac_aux_dir/ltmain.sh" 6556 6557# Backslashify metacharacters that are still active within 6558# double-quoted strings. 6559sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6560 6561# Same as above, but do not quote variable references. 6562double_quote_subst='s/\(["`\\]\)/\\\1/g' 6563 6564# Sed substitution to delay expansion of an escaped shell variable in a 6565# double_quote_subst'ed string. 6566delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6567 6568# Sed substitution to delay expansion of an escaped single quote. 6569delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6570 6571# Sed substitution to avoid accidental globbing in evaled expressions 6572no_glob_subst='s/\*/\\\*/g' 6573 6574ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6575ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6576ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6577 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6579$as_echo_n "checking how to print strings... " >&6; } 6580# Test print first, because it will be a builtin if present. 6581if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6582 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6583 ECHO='print -r --' 6584elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6585 ECHO='printf %s\n' 6586else 6587 # Use this function as a fallback that always works. 6588 func_fallback_echo () 6589 { 6590 eval 'cat <<_LTECHO_EOF 6591$1 6592_LTECHO_EOF' 6593 } 6594 ECHO='func_fallback_echo' 6595fi 6596 6597# func_echo_all arg... 6598# Invoke $ECHO with all args, space-separated. 6599func_echo_all () 6600{ 6601 $ECHO "" 6602} 6603 6604case "$ECHO" in 6605 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6606$as_echo "printf" >&6; } ;; 6607 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6608$as_echo "print -r" >&6; } ;; 6609 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6610$as_echo "cat" >&6; } ;; 6611esac 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6627$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6628if ${ac_cv_path_SED+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6632 for ac_i in 1 2 3 4 5 6 7; do 6633 ac_script="$ac_script$as_nl$ac_script" 6634 done 6635 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6636 { ac_script=; unset ac_script;} 6637 if test -z "$SED"; then 6638 ac_path_SED_found=false 6639 # Loop through the user's path and test for each of PROGNAME-LIST 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_prog in sed gsed; do 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6648 as_fn_executable_p "$ac_path_SED" || continue 6649# Check for GNU ac_path_SED and select it if it is found. 6650 # Check for GNU $ac_path_SED 6651case `"$ac_path_SED" --version 2>&1` in 6652*GNU*) 6653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6654*) 6655 ac_count=0 6656 $as_echo_n 0123456789 >"conftest.in" 6657 while : 6658 do 6659 cat "conftest.in" "conftest.in" >"conftest.tmp" 6660 mv "conftest.tmp" "conftest.in" 6661 cp "conftest.in" "conftest.nl" 6662 $as_echo '' >> "conftest.nl" 6663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6665 as_fn_arith $ac_count + 1 && ac_count=$as_val 6666 if test $ac_count -gt ${ac_path_SED_max-0}; then 6667 # Best one so far, save it but keep looking for a better one 6668 ac_cv_path_SED="$ac_path_SED" 6669 ac_path_SED_max=$ac_count 6670 fi 6671 # 10*(2^10) chars as input seems more than enough 6672 test $ac_count -gt 10 && break 6673 done 6674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6675esac 6676 6677 $ac_path_SED_found && break 3 6678 done 6679 done 6680 done 6681IFS=$as_save_IFS 6682 if test -z "$ac_cv_path_SED"; then 6683 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6684 fi 6685else 6686 ac_cv_path_SED=$SED 6687fi 6688 6689fi 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6691$as_echo "$ac_cv_path_SED" >&6; } 6692 SED="$ac_cv_path_SED" 6693 rm -f conftest.sed 6694 6695test -z "$SED" && SED=sed 6696Xsed="$SED -e 1s/^X//" 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6709$as_echo_n "checking for fgrep... " >&6; } 6710if ${ac_cv_path_FGREP+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6714 then ac_cv_path_FGREP="$GREP -F" 6715 else 6716 if test -z "$FGREP"; then 6717 ac_path_FGREP_found=false 6718 # Loop through the user's path and test for each of PROGNAME-LIST 6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6720for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6721do 6722 IFS=$as_save_IFS 6723 test -z "$as_dir" && as_dir=. 6724 for ac_prog in fgrep; do 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6727 as_fn_executable_p "$ac_path_FGREP" || continue 6728# Check for GNU ac_path_FGREP and select it if it is found. 6729 # Check for GNU $ac_path_FGREP 6730case `"$ac_path_FGREP" --version 2>&1` in 6731*GNU*) 6732 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6733*) 6734 ac_count=0 6735 $as_echo_n 0123456789 >"conftest.in" 6736 while : 6737 do 6738 cat "conftest.in" "conftest.in" >"conftest.tmp" 6739 mv "conftest.tmp" "conftest.in" 6740 cp "conftest.in" "conftest.nl" 6741 $as_echo 'FGREP' >> "conftest.nl" 6742 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6744 as_fn_arith $ac_count + 1 && ac_count=$as_val 6745 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6746 # Best one so far, save it but keep looking for a better one 6747 ac_cv_path_FGREP="$ac_path_FGREP" 6748 ac_path_FGREP_max=$ac_count 6749 fi 6750 # 10*(2^10) chars as input seems more than enough 6751 test $ac_count -gt 10 && break 6752 done 6753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6754esac 6755 6756 $ac_path_FGREP_found && break 3 6757 done 6758 done 6759 done 6760IFS=$as_save_IFS 6761 if test -z "$ac_cv_path_FGREP"; then 6762 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6763 fi 6764else 6765 ac_cv_path_FGREP=$FGREP 6766fi 6767 6768 fi 6769fi 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6771$as_echo "$ac_cv_path_FGREP" >&6; } 6772 FGREP="$ac_cv_path_FGREP" 6773 6774 6775test -z "$GREP" && GREP=grep 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795# Check whether --with-gnu-ld was given. 6796if test "${with_gnu_ld+set}" = set; then : 6797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6798else 6799 with_gnu_ld=no 6800fi 6801 6802ac_prog=ld 6803if test "$GCC" = yes; then 6804 # Check if gcc -print-prog-name=ld gives a path. 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6806$as_echo_n "checking for ld used by $CC... " >&6; } 6807 case $host in 6808 *-*-mingw*) 6809 # gcc leaves a trailing carriage return which upsets mingw 6810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6811 *) 6812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6813 esac 6814 case $ac_prog in 6815 # Accept absolute paths. 6816 [\\/]* | ?:[\\/]*) 6817 re_direlt='/[^/][^/]*/\.\./' 6818 # Canonicalize the pathname of ld 6819 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6820 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6821 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6822 done 6823 test -z "$LD" && LD="$ac_prog" 6824 ;; 6825 "") 6826 # If it fails, then pretend we aren't using GCC. 6827 ac_prog=ld 6828 ;; 6829 *) 6830 # If it is relative, then search for the first ld in PATH. 6831 with_gnu_ld=unknown 6832 ;; 6833 esac 6834elif test "$with_gnu_ld" = yes; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6836$as_echo_n "checking for GNU ld... " >&6; } 6837else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6839$as_echo_n "checking for non-GNU ld... " >&6; } 6840fi 6841if ${lt_cv_path_LD+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 if test -z "$LD"; then 6845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6846 for ac_dir in $PATH; do 6847 IFS="$lt_save_ifs" 6848 test -z "$ac_dir" && ac_dir=. 6849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6850 lt_cv_path_LD="$ac_dir/$ac_prog" 6851 # Check to see if the program is GNU ld. I'd rather use --version, 6852 # but apparently some variants of GNU ld only accept -v. 6853 # Break only if it was the GNU/non-GNU ld that we prefer. 6854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6855 *GNU* | *'with BFD'*) 6856 test "$with_gnu_ld" != no && break 6857 ;; 6858 *) 6859 test "$with_gnu_ld" != yes && break 6860 ;; 6861 esac 6862 fi 6863 done 6864 IFS="$lt_save_ifs" 6865else 6866 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6867fi 6868fi 6869 6870LD="$lt_cv_path_LD" 6871if test -n "$LD"; then 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6873$as_echo "$LD" >&6; } 6874else 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6876$as_echo "no" >&6; } 6877fi 6878test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6880$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6881if ${lt_cv_prog_gnu_ld+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6885case `$LD -v 2>&1 </dev/null` in 6886*GNU* | *'with BFD'*) 6887 lt_cv_prog_gnu_ld=yes 6888 ;; 6889*) 6890 lt_cv_prog_gnu_ld=no 6891 ;; 6892esac 6893fi 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6895$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6896with_gnu_ld=$lt_cv_prog_gnu_ld 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6907$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6908if ${lt_cv_path_NM+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 if test -n "$NM"; then 6912 # Let the user override the test. 6913 lt_cv_path_NM="$NM" 6914else 6915 lt_nm_to_check="${ac_tool_prefix}nm" 6916 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6917 lt_nm_to_check="$lt_nm_to_check nm" 6918 fi 6919 for lt_tmp_nm in $lt_nm_to_check; do 6920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6921 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6922 IFS="$lt_save_ifs" 6923 test -z "$ac_dir" && ac_dir=. 6924 tmp_nm="$ac_dir/$lt_tmp_nm" 6925 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6926 # Check to see if the nm accepts a BSD-compat flag. 6927 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6928 # nm: unknown option "B" ignored 6929 # Tru64's nm complains that /dev/null is an invalid object file 6930 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6931 */dev/null* | *'Invalid file or object type'*) 6932 lt_cv_path_NM="$tmp_nm -B" 6933 break 6934 ;; 6935 *) 6936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6937 */dev/null*) 6938 lt_cv_path_NM="$tmp_nm -p" 6939 break 6940 ;; 6941 *) 6942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6943 continue # so that we can try to find one that supports BSD flags 6944 ;; 6945 esac 6946 ;; 6947 esac 6948 fi 6949 done 6950 IFS="$lt_save_ifs" 6951 done 6952 : ${lt_cv_path_NM=no} 6953fi 6954fi 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6956$as_echo "$lt_cv_path_NM" >&6; } 6957if test "$lt_cv_path_NM" != "no"; then 6958 NM="$lt_cv_path_NM" 6959else 6960 # Didn't find any BSD compatible name lister, look for dumpbin. 6961 if test -n "$DUMPBIN"; then : 6962 # Let the user override the test. 6963 else 6964 if test -n "$ac_tool_prefix"; then 6965 for ac_prog in dumpbin "link -dump" 6966 do 6967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6968set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6970$as_echo_n "checking for $ac_word... " >&6; } 6971if ${ac_cv_prog_DUMPBIN+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 if test -n "$DUMPBIN"; then 6975 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6976else 6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6978for as_dir in $PATH 6979do 6980 IFS=$as_save_IFS 6981 test -z "$as_dir" && as_dir=. 6982 for ac_exec_ext in '' $ac_executable_extensions; do 6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6984 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6986 break 2 6987 fi 6988done 6989 done 6990IFS=$as_save_IFS 6991 6992fi 6993fi 6994DUMPBIN=$ac_cv_prog_DUMPBIN 6995if test -n "$DUMPBIN"; then 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6997$as_echo "$DUMPBIN" >&6; } 6998else 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7000$as_echo "no" >&6; } 7001fi 7002 7003 7004 test -n "$DUMPBIN" && break 7005 done 7006fi 7007if test -z "$DUMPBIN"; then 7008 ac_ct_DUMPBIN=$DUMPBIN 7009 for ac_prog in dumpbin "link -dump" 7010do 7011 # Extract the first word of "$ac_prog", so it can be a program name with args. 7012set dummy $ac_prog; ac_word=$2 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7014$as_echo_n "checking for $ac_word... " >&6; } 7015if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 if test -n "$ac_ct_DUMPBIN"; then 7019 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7020else 7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7022for as_dir in $PATH 7023do 7024 IFS=$as_save_IFS 7025 test -z "$as_dir" && as_dir=. 7026 for ac_exec_ext in '' $ac_executable_extensions; do 7027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7028 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7030 break 2 7031 fi 7032done 7033 done 7034IFS=$as_save_IFS 7035 7036fi 7037fi 7038ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7039if test -n "$ac_ct_DUMPBIN"; then 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7041$as_echo "$ac_ct_DUMPBIN" >&6; } 7042else 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7044$as_echo "no" >&6; } 7045fi 7046 7047 7048 test -n "$ac_ct_DUMPBIN" && break 7049done 7050 7051 if test "x$ac_ct_DUMPBIN" = x; then 7052 DUMPBIN=":" 7053 else 7054 case $cross_compiling:$ac_tool_warned in 7055yes:) 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7058ac_tool_warned=yes ;; 7059esac 7060 DUMPBIN=$ac_ct_DUMPBIN 7061 fi 7062fi 7063 7064 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7065 *COFF*) 7066 DUMPBIN="$DUMPBIN -symbols" 7067 ;; 7068 *) 7069 DUMPBIN=: 7070 ;; 7071 esac 7072 fi 7073 7074 if test "$DUMPBIN" != ":"; then 7075 NM="$DUMPBIN" 7076 fi 7077fi 7078test -z "$NM" && NM=nm 7079 7080 7081 7082 7083 7084 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7086$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7087if ${lt_cv_nm_interface+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 lt_cv_nm_interface="BSD nm" 7091 echo "int some_variable = 0;" > conftest.$ac_ext 7092 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7093 (eval "$ac_compile" 2>conftest.err) 7094 cat conftest.err >&5 7095 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7096 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7097 cat conftest.err >&5 7098 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7099 cat conftest.out >&5 7100 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7101 lt_cv_nm_interface="MS dumpbin" 7102 fi 7103 rm -f conftest* 7104fi 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7106$as_echo "$lt_cv_nm_interface" >&6; } 7107 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7109$as_echo_n "checking whether ln -s works... " >&6; } 7110LN_S=$as_ln_s 7111if test "$LN_S" = "ln -s"; then 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7113$as_echo "yes" >&6; } 7114else 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7116$as_echo "no, using $LN_S" >&6; } 7117fi 7118 7119# find the maximum length of command line arguments 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7121$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7122if ${lt_cv_sys_max_cmd_len+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 i=0 7126 teststring="ABCD" 7127 7128 case $build_os in 7129 msdosdjgpp*) 7130 # On DJGPP, this test can blow up pretty badly due to problems in libc 7131 # (any single argument exceeding 2000 bytes causes a buffer overrun 7132 # during glob expansion). Even if it were fixed, the result of this 7133 # check would be larger than it should be. 7134 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7135 ;; 7136 7137 gnu*) 7138 # Under GNU Hurd, this test is not required because there is 7139 # no limit to the length of command line arguments. 7140 # Libtool will interpret -1 as no limit whatsoever 7141 lt_cv_sys_max_cmd_len=-1; 7142 ;; 7143 7144 cygwin* | mingw* | cegcc*) 7145 # On Win9x/ME, this test blows up -- it succeeds, but takes 7146 # about 5 minutes as the teststring grows exponentially. 7147 # Worse, since 9x/ME are not pre-emptively multitasking, 7148 # you end up with a "frozen" computer, even though with patience 7149 # the test eventually succeeds (with a max line length of 256k). 7150 # Instead, let's just punt: use the minimum linelength reported by 7151 # all of the supported platforms: 8192 (on NT/2K/XP). 7152 lt_cv_sys_max_cmd_len=8192; 7153 ;; 7154 7155 mint*) 7156 # On MiNT this can take a long time and run out of memory. 7157 lt_cv_sys_max_cmd_len=8192; 7158 ;; 7159 7160 amigaos*) 7161 # On AmigaOS with pdksh, this test takes hours, literally. 7162 # So we just punt and use a minimum line length of 8192. 7163 lt_cv_sys_max_cmd_len=8192; 7164 ;; 7165 7166 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7167 # This has been around since 386BSD, at least. Likely further. 7168 if test -x /sbin/sysctl; then 7169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7170 elif test -x /usr/sbin/sysctl; then 7171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7172 else 7173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7174 fi 7175 # And add a safety zone 7176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7178 ;; 7179 7180 interix*) 7181 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7182 lt_cv_sys_max_cmd_len=196608 7183 ;; 7184 7185 os2*) 7186 # The test takes a long time on OS/2. 7187 lt_cv_sys_max_cmd_len=8192 7188 ;; 7189 7190 osf*) 7191 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7192 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7193 # nice to cause kernel panics so lets avoid the loop below. 7194 # First set a reasonable default. 7195 lt_cv_sys_max_cmd_len=16384 7196 # 7197 if test -x /sbin/sysconfig; then 7198 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7199 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7200 esac 7201 fi 7202 ;; 7203 sco3.2v5*) 7204 lt_cv_sys_max_cmd_len=102400 7205 ;; 7206 sysv5* | sco5v6* | sysv4.2uw2*) 7207 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7208 if test -n "$kargmax"; then 7209 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7210 else 7211 lt_cv_sys_max_cmd_len=32768 7212 fi 7213 ;; 7214 *) 7215 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7216 if test -n "$lt_cv_sys_max_cmd_len"; then 7217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7219 else 7220 # Make teststring a little bigger before we do anything with it. 7221 # a 1K string should be a reasonable start. 7222 for i in 1 2 3 4 5 6 7 8 ; do 7223 teststring=$teststring$teststring 7224 done 7225 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7226 # If test is not a shell built-in, we'll probably end up computing a 7227 # maximum length that is only half of the actual maximum length, but 7228 # we can't tell. 7229 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7230 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7231 test $i != 17 # 1/2 MB should be enough 7232 do 7233 i=`expr $i + 1` 7234 teststring=$teststring$teststring 7235 done 7236 # Only check the string length outside the loop. 7237 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7238 teststring= 7239 # Add a significant safety factor because C++ compilers can tack on 7240 # massive amounts of additional arguments before passing them to the 7241 # linker. It appears as though 1/2 is a usable value. 7242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7243 fi 7244 ;; 7245 esac 7246 7247fi 7248 7249if test -n $lt_cv_sys_max_cmd_len ; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7251$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7252else 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7254$as_echo "none" >&6; } 7255fi 7256max_cmd_len=$lt_cv_sys_max_cmd_len 7257 7258 7259 7260 7261 7262 7263: ${CP="cp -f"} 7264: ${MV="mv -f"} 7265: ${RM="rm -f"} 7266 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7268$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7269# Try some XSI features 7270xsi_shell=no 7271( _lt_dummy="a/b/c" 7272 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7273 = c,a/b,b/c, \ 7274 && eval 'test $(( 1 + 1 )) -eq 2 \ 7275 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7276 && xsi_shell=yes 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7278$as_echo "$xsi_shell" >&6; } 7279 7280 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7282$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7283lt_shell_append=no 7284( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7285 >/dev/null 2>&1 \ 7286 && lt_shell_append=yes 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7288$as_echo "$lt_shell_append" >&6; } 7289 7290 7291if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7292 lt_unset=unset 7293else 7294 lt_unset=false 7295fi 7296 7297 7298 7299 7300 7301# test EBCDIC or ASCII 7302case `echo X|tr X '\101'` in 7303 A) # ASCII based system 7304 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7305 lt_SP2NL='tr \040 \012' 7306 lt_NL2SP='tr \015\012 \040\040' 7307 ;; 7308 *) # EBCDIC based system 7309 lt_SP2NL='tr \100 \n' 7310 lt_NL2SP='tr \r\n \100\100' 7311 ;; 7312esac 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7323$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7324if ${lt_cv_to_host_file_cmd+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 case $host in 7328 *-*-mingw* ) 7329 case $build in 7330 *-*-mingw* ) # actually msys 7331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7332 ;; 7333 *-*-cygwin* ) 7334 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7335 ;; 7336 * ) # otherwise, assume *nix 7337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7338 ;; 7339 esac 7340 ;; 7341 *-*-cygwin* ) 7342 case $build in 7343 *-*-mingw* ) # actually msys 7344 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7345 ;; 7346 *-*-cygwin* ) 7347 lt_cv_to_host_file_cmd=func_convert_file_noop 7348 ;; 7349 * ) # otherwise, assume *nix 7350 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7351 ;; 7352 esac 7353 ;; 7354 * ) # unhandled hosts (and "normal" native builds) 7355 lt_cv_to_host_file_cmd=func_convert_file_noop 7356 ;; 7357esac 7358 7359fi 7360 7361to_host_file_cmd=$lt_cv_to_host_file_cmd 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7363$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7364 7365 7366 7367 7368 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7370$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7371if ${lt_cv_to_tool_file_cmd+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 #assume ordinary cross tools, or native build. 7375lt_cv_to_tool_file_cmd=func_convert_file_noop 7376case $host in 7377 *-*-mingw* ) 7378 case $build in 7379 *-*-mingw* ) # actually msys 7380 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7381 ;; 7382 esac 7383 ;; 7384esac 7385 7386fi 7387 7388to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7390$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7391 7392 7393 7394 7395 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7397$as_echo_n "checking for $LD option to reload object files... " >&6; } 7398if ${lt_cv_ld_reload_flag+:} false; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 lt_cv_ld_reload_flag='-r' 7402fi 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7404$as_echo "$lt_cv_ld_reload_flag" >&6; } 7405reload_flag=$lt_cv_ld_reload_flag 7406case $reload_flag in 7407"" | " "*) ;; 7408*) reload_flag=" $reload_flag" ;; 7409esac 7410reload_cmds='$LD$reload_flag -o $output$reload_objs' 7411case $host_os in 7412 cygwin* | mingw* | pw32* | cegcc*) 7413 if test "$GCC" != yes; then 7414 reload_cmds=false 7415 fi 7416 ;; 7417 darwin*) 7418 if test "$GCC" = yes; then 7419 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7420 else 7421 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7422 fi 7423 ;; 7424esac 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434if test -n "$ac_tool_prefix"; then 7435 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7436set dummy ${ac_tool_prefix}objdump; ac_word=$2 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7438$as_echo_n "checking for $ac_word... " >&6; } 7439if ${ac_cv_prog_OBJDUMP+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 if test -n "$OBJDUMP"; then 7443 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7444else 7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7446for as_dir in $PATH 7447do 7448 IFS=$as_save_IFS 7449 test -z "$as_dir" && as_dir=. 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7452 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7454 break 2 7455 fi 7456done 7457 done 7458IFS=$as_save_IFS 7459 7460fi 7461fi 7462OBJDUMP=$ac_cv_prog_OBJDUMP 7463if test -n "$OBJDUMP"; then 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7465$as_echo "$OBJDUMP" >&6; } 7466else 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468$as_echo "no" >&6; } 7469fi 7470 7471 7472fi 7473if test -z "$ac_cv_prog_OBJDUMP"; then 7474 ac_ct_OBJDUMP=$OBJDUMP 7475 # Extract the first word of "objdump", so it can be a program name with args. 7476set dummy objdump; ac_word=$2 7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7478$as_echo_n "checking for $ac_word... " >&6; } 7479if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7480 $as_echo_n "(cached) " >&6 7481else 7482 if test -n "$ac_ct_OBJDUMP"; then 7483 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7484else 7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7486for as_dir in $PATH 7487do 7488 IFS=$as_save_IFS 7489 test -z "$as_dir" && as_dir=. 7490 for ac_exec_ext in '' $ac_executable_extensions; do 7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7492 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7494 break 2 7495 fi 7496done 7497 done 7498IFS=$as_save_IFS 7499 7500fi 7501fi 7502ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7503if test -n "$ac_ct_OBJDUMP"; then 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7505$as_echo "$ac_ct_OBJDUMP" >&6; } 7506else 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7508$as_echo "no" >&6; } 7509fi 7510 7511 if test "x$ac_ct_OBJDUMP" = x; then 7512 OBJDUMP="false" 7513 else 7514 case $cross_compiling:$ac_tool_warned in 7515yes:) 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7518ac_tool_warned=yes ;; 7519esac 7520 OBJDUMP=$ac_ct_OBJDUMP 7521 fi 7522else 7523 OBJDUMP="$ac_cv_prog_OBJDUMP" 7524fi 7525 7526test -z "$OBJDUMP" && OBJDUMP=objdump 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7537$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7538if ${lt_cv_deplibs_check_method+:} false; then : 7539 $as_echo_n "(cached) " >&6 7540else 7541 lt_cv_file_magic_cmd='$MAGIC_CMD' 7542lt_cv_file_magic_test_file= 7543lt_cv_deplibs_check_method='unknown' 7544# Need to set the preceding variable on all platforms that support 7545# interlibrary dependencies. 7546# 'none' -- dependencies not supported. 7547# `unknown' -- same as none, but documents that we really don't know. 7548# 'pass_all' -- all dependencies passed with no checks. 7549# 'test_compile' -- check by making test program. 7550# 'file_magic [[regex]]' -- check by looking for files in library path 7551# which responds to the $file_magic_cmd with a given extended regex. 7552# If you have `file' or equivalent on your system and you're not sure 7553# whether `pass_all' will *always* work, you probably want this one. 7554 7555case $host_os in 7556aix[4-9]*) 7557 lt_cv_deplibs_check_method=pass_all 7558 ;; 7559 7560beos*) 7561 lt_cv_deplibs_check_method=pass_all 7562 ;; 7563 7564bsdi[45]*) 7565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7566 lt_cv_file_magic_cmd='/usr/bin/file -L' 7567 lt_cv_file_magic_test_file=/shlib/libc.so 7568 ;; 7569 7570cygwin*) 7571 # func_win32_libid is a shell function defined in ltmain.sh 7572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7573 lt_cv_file_magic_cmd='func_win32_libid' 7574 ;; 7575 7576mingw* | pw32*) 7577 # Base MSYS/MinGW do not provide the 'file' command needed by 7578 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7579 # unless we find 'file', for example because we are cross-compiling. 7580 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7581 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7583 lt_cv_file_magic_cmd='func_win32_libid' 7584 else 7585 # Keep this pattern in sync with the one in func_win32_libid. 7586 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7587 lt_cv_file_magic_cmd='$OBJDUMP -f' 7588 fi 7589 ;; 7590 7591cegcc*) 7592 # use the weaker test based on 'objdump'. See mingw*. 7593 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7594 lt_cv_file_magic_cmd='$OBJDUMP -f' 7595 ;; 7596 7597darwin* | rhapsody*) 7598 lt_cv_deplibs_check_method=pass_all 7599 ;; 7600 7601freebsd* | dragonfly*) 7602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7603 case $host_cpu in 7604 i*86 ) 7605 # Not sure whether the presence of OpenBSD here was a mistake. 7606 # Let's accept both of them until this is cleared up. 7607 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7608 lt_cv_file_magic_cmd=/usr/bin/file 7609 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7610 ;; 7611 esac 7612 else 7613 lt_cv_deplibs_check_method=pass_all 7614 fi 7615 ;; 7616 7617gnu*) 7618 lt_cv_deplibs_check_method=pass_all 7619 ;; 7620 7621haiku*) 7622 lt_cv_deplibs_check_method=pass_all 7623 ;; 7624 7625hpux10.20* | hpux11*) 7626 lt_cv_file_magic_cmd=/usr/bin/file 7627 case $host_cpu in 7628 ia64*) 7629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7630 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7631 ;; 7632 hppa*64*) 7633 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]' 7634 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7635 ;; 7636 *) 7637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7638 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7639 ;; 7640 esac 7641 ;; 7642 7643interix[3-9]*) 7644 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7646 ;; 7647 7648irix5* | irix6* | nonstopux*) 7649 case $LD in 7650 *-32|*"-32 ") libmagic=32-bit;; 7651 *-n32|*"-n32 ") libmagic=N32;; 7652 *-64|*"-64 ") libmagic=64-bit;; 7653 *) libmagic=never-match;; 7654 esac 7655 lt_cv_deplibs_check_method=pass_all 7656 ;; 7657 7658# This must be glibc/ELF. 7659linux* | k*bsd*-gnu | kopensolaris*-gnu) 7660 lt_cv_deplibs_check_method=pass_all 7661 ;; 7662 7663netbsd*) 7664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7666 else 7667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7668 fi 7669 ;; 7670 7671newos6*) 7672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7673 lt_cv_file_magic_cmd=/usr/bin/file 7674 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7675 ;; 7676 7677*nto* | *qnx*) 7678 lt_cv_deplibs_check_method=pass_all 7679 ;; 7680 7681openbsd*) 7682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7684 else 7685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7686 fi 7687 ;; 7688 7689osf3* | osf4* | osf5*) 7690 lt_cv_deplibs_check_method=pass_all 7691 ;; 7692 7693rdos*) 7694 lt_cv_deplibs_check_method=pass_all 7695 ;; 7696 7697solaris*) 7698 lt_cv_deplibs_check_method=pass_all 7699 ;; 7700 7701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7702 lt_cv_deplibs_check_method=pass_all 7703 ;; 7704 7705sysv4 | sysv4.3*) 7706 case $host_vendor in 7707 motorola) 7708 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]' 7709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7710 ;; 7711 ncr) 7712 lt_cv_deplibs_check_method=pass_all 7713 ;; 7714 sequent) 7715 lt_cv_file_magic_cmd='/bin/file' 7716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7717 ;; 7718 sni) 7719 lt_cv_file_magic_cmd='/bin/file' 7720 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7721 lt_cv_file_magic_test_file=/lib/libc.so 7722 ;; 7723 siemens) 7724 lt_cv_deplibs_check_method=pass_all 7725 ;; 7726 pc) 7727 lt_cv_deplibs_check_method=pass_all 7728 ;; 7729 esac 7730 ;; 7731 7732tpf*) 7733 lt_cv_deplibs_check_method=pass_all 7734 ;; 7735esac 7736 7737fi 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7739$as_echo "$lt_cv_deplibs_check_method" >&6; } 7740 7741file_magic_glob= 7742want_nocaseglob=no 7743if test "$build" = "$host"; then 7744 case $host_os in 7745 mingw* | pw32*) 7746 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7747 want_nocaseglob=yes 7748 else 7749 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7750 fi 7751 ;; 7752 esac 7753fi 7754 7755file_magic_cmd=$lt_cv_file_magic_cmd 7756deplibs_check_method=$lt_cv_deplibs_check_method 7757test -z "$deplibs_check_method" && deplibs_check_method=unknown 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780if test -n "$ac_tool_prefix"; then 7781 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7782set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7784$as_echo_n "checking for $ac_word... " >&6; } 7785if ${ac_cv_prog_DLLTOOL+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 if test -n "$DLLTOOL"; then 7789 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7790else 7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7792for as_dir in $PATH 7793do 7794 IFS=$as_save_IFS 7795 test -z "$as_dir" && as_dir=. 7796 for ac_exec_ext in '' $ac_executable_extensions; do 7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7798 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7800 break 2 7801 fi 7802done 7803 done 7804IFS=$as_save_IFS 7805 7806fi 7807fi 7808DLLTOOL=$ac_cv_prog_DLLTOOL 7809if test -n "$DLLTOOL"; then 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7811$as_echo "$DLLTOOL" >&6; } 7812else 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7814$as_echo "no" >&6; } 7815fi 7816 7817 7818fi 7819if test -z "$ac_cv_prog_DLLTOOL"; then 7820 ac_ct_DLLTOOL=$DLLTOOL 7821 # Extract the first word of "dlltool", so it can be a program name with args. 7822set dummy dlltool; ac_word=$2 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7824$as_echo_n "checking for $ac_word... " >&6; } 7825if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 if test -n "$ac_ct_DLLTOOL"; then 7829 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7830else 7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7832for as_dir in $PATH 7833do 7834 IFS=$as_save_IFS 7835 test -z "$as_dir" && as_dir=. 7836 for ac_exec_ext in '' $ac_executable_extensions; do 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7838 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7840 break 2 7841 fi 7842done 7843 done 7844IFS=$as_save_IFS 7845 7846fi 7847fi 7848ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7849if test -n "$ac_ct_DLLTOOL"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7851$as_echo "$ac_ct_DLLTOOL" >&6; } 7852else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854$as_echo "no" >&6; } 7855fi 7856 7857 if test "x$ac_ct_DLLTOOL" = x; then 7858 DLLTOOL="false" 7859 else 7860 case $cross_compiling:$ac_tool_warned in 7861yes:) 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7864ac_tool_warned=yes ;; 7865esac 7866 DLLTOOL=$ac_ct_DLLTOOL 7867 fi 7868else 7869 DLLTOOL="$ac_cv_prog_DLLTOOL" 7870fi 7871 7872test -z "$DLLTOOL" && DLLTOOL=dlltool 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7884$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7885if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 lt_cv_sharedlib_from_linklib_cmd='unknown' 7889 7890case $host_os in 7891cygwin* | mingw* | pw32* | cegcc*) 7892 # two different shell functions defined in ltmain.sh 7893 # decide which to use based on capabilities of $DLLTOOL 7894 case `$DLLTOOL --help 2>&1` in 7895 *--identify-strict*) 7896 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7897 ;; 7898 *) 7899 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7900 ;; 7901 esac 7902 ;; 7903*) 7904 # fallback: assume linklib IS sharedlib 7905 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7906 ;; 7907esac 7908 7909fi 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7911$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7912sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7913test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7914 7915 7916 7917 7918 7919 7920 7921if test -n "$ac_tool_prefix"; then 7922 for ac_prog in ar 7923 do 7924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7925set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7927$as_echo_n "checking for $ac_word... " >&6; } 7928if ${ac_cv_prog_AR+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 if test -n "$AR"; then 7932 ac_cv_prog_AR="$AR" # Let the user override the test. 7933else 7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7935for as_dir in $PATH 7936do 7937 IFS=$as_save_IFS 7938 test -z "$as_dir" && as_dir=. 7939 for ac_exec_ext in '' $ac_executable_extensions; do 7940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7941 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7943 break 2 7944 fi 7945done 7946 done 7947IFS=$as_save_IFS 7948 7949fi 7950fi 7951AR=$ac_cv_prog_AR 7952if test -n "$AR"; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7954$as_echo "$AR" >&6; } 7955else 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7957$as_echo "no" >&6; } 7958fi 7959 7960 7961 test -n "$AR" && break 7962 done 7963fi 7964if test -z "$AR"; then 7965 ac_ct_AR=$AR 7966 for ac_prog in ar 7967do 7968 # Extract the first word of "$ac_prog", so it can be a program name with args. 7969set dummy $ac_prog; ac_word=$2 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7971$as_echo_n "checking for $ac_word... " >&6; } 7972if ${ac_cv_prog_ac_ct_AR+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 if test -n "$ac_ct_AR"; then 7976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7977else 7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979for as_dir in $PATH 7980do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7985 ac_cv_prog_ac_ct_AR="$ac_prog" 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989done 7990 done 7991IFS=$as_save_IFS 7992 7993fi 7994fi 7995ac_ct_AR=$ac_cv_prog_ac_ct_AR 7996if test -n "$ac_ct_AR"; then 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7998$as_echo "$ac_ct_AR" >&6; } 7999else 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8001$as_echo "no" >&6; } 8002fi 8003 8004 8005 test -n "$ac_ct_AR" && break 8006done 8007 8008 if test "x$ac_ct_AR" = x; then 8009 AR="false" 8010 else 8011 case $cross_compiling:$ac_tool_warned in 8012yes:) 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8015ac_tool_warned=yes ;; 8016esac 8017 AR=$ac_ct_AR 8018 fi 8019fi 8020 8021: ${AR=ar} 8022: ${AR_FLAGS=cru} 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8035$as_echo_n "checking for archiver @FILE support... " >&6; } 8036if ${lt_cv_ar_at_file+:} false; then : 8037 $as_echo_n "(cached) " >&6 8038else 8039 lt_cv_ar_at_file=no 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042 8043int 8044main () 8045{ 8046 8047 ; 8048 return 0; 8049} 8050_ACEOF 8051if ac_fn_c_try_compile "$LINENO"; then : 8052 echo conftest.$ac_objext > conftest.lst 8053 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8055 (eval $lt_ar_try) 2>&5 8056 ac_status=$? 8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8058 test $ac_status = 0; } 8059 if test "$ac_status" -eq 0; then 8060 # Ensure the archiver fails upon bogus file names. 8061 rm -f conftest.$ac_objext libconftest.a 8062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8063 (eval $lt_ar_try) 2>&5 8064 ac_status=$? 8065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8066 test $ac_status = 0; } 8067 if test "$ac_status" -ne 0; then 8068 lt_cv_ar_at_file=@ 8069 fi 8070 fi 8071 rm -f conftest.* libconftest.a 8072 8073fi 8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8075 8076fi 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8078$as_echo "$lt_cv_ar_at_file" >&6; } 8079 8080if test "x$lt_cv_ar_at_file" = xno; then 8081 archiver_list_spec= 8082else 8083 archiver_list_spec=$lt_cv_ar_at_file 8084fi 8085 8086 8087 8088 8089 8090 8091 8092if test -n "$ac_tool_prefix"; then 8093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8094set dummy ${ac_tool_prefix}strip; ac_word=$2 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8096$as_echo_n "checking for $ac_word... " >&6; } 8097if ${ac_cv_prog_STRIP+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 if test -n "$STRIP"; then 8101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8102else 8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104for as_dir in $PATH 8105do 8106 IFS=$as_save_IFS 8107 test -z "$as_dir" && as_dir=. 8108 for ac_exec_ext in '' $ac_executable_extensions; do 8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8110 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8112 break 2 8113 fi 8114done 8115 done 8116IFS=$as_save_IFS 8117 8118fi 8119fi 8120STRIP=$ac_cv_prog_STRIP 8121if test -n "$STRIP"; then 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8123$as_echo "$STRIP" >&6; } 8124else 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8126$as_echo "no" >&6; } 8127fi 8128 8129 8130fi 8131if test -z "$ac_cv_prog_STRIP"; then 8132 ac_ct_STRIP=$STRIP 8133 # Extract the first word of "strip", so it can be a program name with args. 8134set dummy strip; ac_word=$2 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8136$as_echo_n "checking for $ac_word... " >&6; } 8137if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 if test -n "$ac_ct_STRIP"; then 8141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8142else 8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8144for as_dir in $PATH 8145do 8146 IFS=$as_save_IFS 8147 test -z "$as_dir" && as_dir=. 8148 for ac_exec_ext in '' $ac_executable_extensions; do 8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8150 ac_cv_prog_ac_ct_STRIP="strip" 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8152 break 2 8153 fi 8154done 8155 done 8156IFS=$as_save_IFS 8157 8158fi 8159fi 8160ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8161if test -n "$ac_ct_STRIP"; then 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8163$as_echo "$ac_ct_STRIP" >&6; } 8164else 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8166$as_echo "no" >&6; } 8167fi 8168 8169 if test "x$ac_ct_STRIP" = x; then 8170 STRIP=":" 8171 else 8172 case $cross_compiling:$ac_tool_warned in 8173yes:) 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8176ac_tool_warned=yes ;; 8177esac 8178 STRIP=$ac_ct_STRIP 8179 fi 8180else 8181 STRIP="$ac_cv_prog_STRIP" 8182fi 8183 8184test -z "$STRIP" && STRIP=: 8185 8186 8187 8188 8189 8190 8191if test -n "$ac_tool_prefix"; then 8192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8193set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8195$as_echo_n "checking for $ac_word... " >&6; } 8196if ${ac_cv_prog_RANLIB+:} false; then : 8197 $as_echo_n "(cached) " >&6 8198else 8199 if test -n "$RANLIB"; then 8200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8201else 8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8203for as_dir in $PATH 8204do 8205 IFS=$as_save_IFS 8206 test -z "$as_dir" && as_dir=. 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213done 8214 done 8215IFS=$as_save_IFS 8216 8217fi 8218fi 8219RANLIB=$ac_cv_prog_RANLIB 8220if test -n "$RANLIB"; then 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8222$as_echo "$RANLIB" >&6; } 8223else 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8225$as_echo "no" >&6; } 8226fi 8227 8228 8229fi 8230if test -z "$ac_cv_prog_RANLIB"; then 8231 ac_ct_RANLIB=$RANLIB 8232 # Extract the first word of "ranlib", so it can be a program name with args. 8233set dummy ranlib; ac_word=$2 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8235$as_echo_n "checking for $ac_word... " >&6; } 8236if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 if test -n "$ac_ct_RANLIB"; then 8240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8241else 8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8243for as_dir in $PATH 8244do 8245 IFS=$as_save_IFS 8246 test -z "$as_dir" && as_dir=. 8247 for ac_exec_ext in '' $ac_executable_extensions; do 8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8249 ac_cv_prog_ac_ct_RANLIB="ranlib" 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8251 break 2 8252 fi 8253done 8254 done 8255IFS=$as_save_IFS 8256 8257fi 8258fi 8259ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8260if test -n "$ac_ct_RANLIB"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8262$as_echo "$ac_ct_RANLIB" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265$as_echo "no" >&6; } 8266fi 8267 8268 if test "x$ac_ct_RANLIB" = x; then 8269 RANLIB=":" 8270 else 8271 case $cross_compiling:$ac_tool_warned in 8272yes:) 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8275ac_tool_warned=yes ;; 8276esac 8277 RANLIB=$ac_ct_RANLIB 8278 fi 8279else 8280 RANLIB="$ac_cv_prog_RANLIB" 8281fi 8282 8283test -z "$RANLIB" && RANLIB=: 8284 8285 8286 8287 8288 8289 8290# Determine commands to create old-style static archives. 8291old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8292old_postinstall_cmds='chmod 644 $oldlib' 8293old_postuninstall_cmds= 8294 8295if test -n "$RANLIB"; then 8296 case $host_os in 8297 openbsd*) 8298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8299 ;; 8300 *) 8301 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8302 ;; 8303 esac 8304 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8305fi 8306 8307case $host_os in 8308 darwin*) 8309 lock_old_archive_extraction=yes ;; 8310 *) 8311 lock_old_archive_extraction=no ;; 8312esac 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334for ac_prog in gawk mawk nawk awk 8335do 8336 # Extract the first word of "$ac_prog", so it can be a program name with args. 8337set dummy $ac_prog; ac_word=$2 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8339$as_echo_n "checking for $ac_word... " >&6; } 8340if ${ac_cv_prog_AWK+:} false; then : 8341 $as_echo_n "(cached) " >&6 8342else 8343 if test -n "$AWK"; then 8344 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8345else 8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 8349 IFS=$as_save_IFS 8350 test -z "$as_dir" && as_dir=. 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8353 ac_cv_prog_AWK="$ac_prog" 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357done 8358 done 8359IFS=$as_save_IFS 8360 8361fi 8362fi 8363AWK=$ac_cv_prog_AWK 8364if test -n "$AWK"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8366$as_echo "$AWK" >&6; } 8367else 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369$as_echo "no" >&6; } 8370fi 8371 8372 8373 test -n "$AWK" && break 8374done 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394# If no C compiler was specified, use CC. 8395LTCC=${LTCC-"$CC"} 8396 8397# If no C compiler flags were specified, use CFLAGS. 8398LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8399 8400# Allow CC to be a program name with arguments. 8401compiler=$CC 8402 8403 8404# Check for command to grab the raw symbol name followed by C symbol from nm. 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8406$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8407if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 8411# These are sane defaults that work on at least a few old systems. 8412# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8413 8414# Character class describing NM global symbol codes. 8415symcode='[BCDEGRST]' 8416 8417# Regexp to match symbols that can be accessed directly from C. 8418sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8419 8420# Define system-specific variables. 8421case $host_os in 8422aix*) 8423 symcode='[BCDT]' 8424 ;; 8425cygwin* | mingw* | pw32* | cegcc*) 8426 symcode='[ABCDGISTW]' 8427 ;; 8428hpux*) 8429 if test "$host_cpu" = ia64; then 8430 symcode='[ABCDEGRST]' 8431 fi 8432 ;; 8433irix* | nonstopux*) 8434 symcode='[BCDEGRST]' 8435 ;; 8436osf*) 8437 symcode='[BCDEGQRST]' 8438 ;; 8439solaris*) 8440 symcode='[BDRT]' 8441 ;; 8442sco3.2v5*) 8443 symcode='[DT]' 8444 ;; 8445sysv4.2uw2*) 8446 symcode='[DT]' 8447 ;; 8448sysv5* | sco5v6* | unixware* | OpenUNIX*) 8449 symcode='[ABDT]' 8450 ;; 8451sysv4) 8452 symcode='[DFNSTU]' 8453 ;; 8454esac 8455 8456# If we're using GNU nm, then use its standard symbol codes. 8457case `$NM -V 2>&1` in 8458*GNU* | *'with BFD'*) 8459 symcode='[ABCDGIRSTW]' ;; 8460esac 8461 8462# Transform an extracted symbol line into a proper C declaration. 8463# Some systems (esp. on ia64) link data and code symbols differently, 8464# so use this general approach. 8465lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8466 8467# Transform an extracted symbol line into symbol name and symbol address 8468lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8470 8471# Handle CRLF in mingw tool chain 8472opt_cr= 8473case $build_os in 8474mingw*) 8475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8476 ;; 8477esac 8478 8479# Try without a prefix underscore, then with it. 8480for ac_symprfx in "" "_"; do 8481 8482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8483 symxfrm="\\1 $ac_symprfx\\2 \\2" 8484 8485 # Write the raw and C identifiers. 8486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8487 # Fake it for dumpbin and say T for any non-static function 8488 # and D for any global variable. 8489 # Also find C++ and __fastcall symbols from MSVC++, 8490 # which start with @ or ?. 8491 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8492" {last_section=section; section=\$ 3};"\ 8493" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8494" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8495" \$ 0!~/External *\|/{next};"\ 8496" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8497" {if(hide[section]) next};"\ 8498" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8499" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8500" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8501" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8502" ' prfx=^$ac_symprfx" 8503 else 8504 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8505 fi 8506 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8507 8508 # Check to see that the pipe works correctly. 8509 pipe_works=no 8510 8511 rm -f conftest* 8512 cat > conftest.$ac_ext <<_LT_EOF 8513#ifdef __cplusplus 8514extern "C" { 8515#endif 8516char nm_test_var; 8517void nm_test_func(void); 8518void nm_test_func(void){} 8519#ifdef __cplusplus 8520} 8521#endif 8522int main(){nm_test_var='a';nm_test_func();return(0);} 8523_LT_EOF 8524 8525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8526 (eval $ac_compile) 2>&5 8527 ac_status=$? 8528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8529 test $ac_status = 0; }; then 8530 # Now try to grab the symbols. 8531 nlist=conftest.nm 8532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8533 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8534 ac_status=$? 8535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8536 test $ac_status = 0; } && test -s "$nlist"; then 8537 # Try sorting and uniquifying the output. 8538 if sort "$nlist" | uniq > "$nlist"T; then 8539 mv -f "$nlist"T "$nlist" 8540 else 8541 rm -f "$nlist"T 8542 fi 8543 8544 # Make sure that we snagged all the symbols we need. 8545 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8546 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8547 cat <<_LT_EOF > conftest.$ac_ext 8548/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8549#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8550/* DATA imports from DLLs on WIN32 con't be const, because runtime 8551 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8552# define LT_DLSYM_CONST 8553#elif defined(__osf__) 8554/* This system does not cope well with relocations in const data. */ 8555# define LT_DLSYM_CONST 8556#else 8557# define LT_DLSYM_CONST const 8558#endif 8559 8560#ifdef __cplusplus 8561extern "C" { 8562#endif 8563 8564_LT_EOF 8565 # Now generate the symbol file. 8566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8567 8568 cat <<_LT_EOF >> conftest.$ac_ext 8569 8570/* The mapping between symbol names and symbols. */ 8571LT_DLSYM_CONST struct { 8572 const char *name; 8573 void *address; 8574} 8575lt__PROGRAM__LTX_preloaded_symbols[] = 8576{ 8577 { "@PROGRAM@", (void *) 0 }, 8578_LT_EOF 8579 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8580 cat <<\_LT_EOF >> conftest.$ac_ext 8581 {0, (void *) 0} 8582}; 8583 8584/* This works around a problem in FreeBSD linker */ 8585#ifdef FREEBSD_WORKAROUND 8586static const void *lt_preloaded_setup() { 8587 return lt__PROGRAM__LTX_preloaded_symbols; 8588} 8589#endif 8590 8591#ifdef __cplusplus 8592} 8593#endif 8594_LT_EOF 8595 # Now try linking the two files. 8596 mv conftest.$ac_objext conftstm.$ac_objext 8597 lt_globsym_save_LIBS=$LIBS 8598 lt_globsym_save_CFLAGS=$CFLAGS 8599 LIBS="conftstm.$ac_objext" 8600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8602 (eval $ac_link) 2>&5 8603 ac_status=$? 8604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8606 pipe_works=yes 8607 fi 8608 LIBS=$lt_globsym_save_LIBS 8609 CFLAGS=$lt_globsym_save_CFLAGS 8610 else 8611 echo "cannot find nm_test_func in $nlist" >&5 8612 fi 8613 else 8614 echo "cannot find nm_test_var in $nlist" >&5 8615 fi 8616 else 8617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8618 fi 8619 else 8620 echo "$progname: failed program was:" >&5 8621 cat conftest.$ac_ext >&5 8622 fi 8623 rm -rf conftest* conftst* 8624 8625 # Do not use the global_symbol_pipe unless it works. 8626 if test "$pipe_works" = yes; then 8627 break 8628 else 8629 lt_cv_sys_global_symbol_pipe= 8630 fi 8631done 8632 8633fi 8634 8635if test -z "$lt_cv_sys_global_symbol_pipe"; then 8636 lt_cv_sys_global_symbol_to_cdecl= 8637fi 8638if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8640$as_echo "failed" >&6; } 8641else 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8643$as_echo "ok" >&6; } 8644fi 8645 8646# Response file support. 8647if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8648 nm_file_list_spec='@' 8649elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8650 nm_file_list_spec='@' 8651fi 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8680$as_echo_n "checking for sysroot... " >&6; } 8681 8682# Check whether --with-sysroot was given. 8683if test "${with_sysroot+set}" = set; then : 8684 withval=$with_sysroot; 8685else 8686 with_sysroot=no 8687fi 8688 8689 8690lt_sysroot= 8691case ${with_sysroot} in #( 8692 yes) 8693 if test "$GCC" = yes; then 8694 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8695 fi 8696 ;; #( 8697 /*) 8698 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8699 ;; #( 8700 no|'') 8701 ;; #( 8702 *) 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8704$as_echo "${with_sysroot}" >&6; } 8705 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8706 ;; 8707esac 8708 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8710$as_echo "${lt_sysroot:-no}" >&6; } 8711 8712 8713 8714 8715 8716# Check whether --enable-libtool-lock was given. 8717if test "${enable_libtool_lock+set}" = set; then : 8718 enableval=$enable_libtool_lock; 8719fi 8720 8721test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8722 8723# Some flags need to be propagated to the compiler or linker for good 8724# libtool support. 8725case $host in 8726ia64-*-hpux*) 8727 # Find out which ABI we are using. 8728 echo 'int i;' > conftest.$ac_ext 8729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8730 (eval $ac_compile) 2>&5 8731 ac_status=$? 8732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8733 test $ac_status = 0; }; then 8734 case `/usr/bin/file conftest.$ac_objext` in 8735 *ELF-32*) 8736 HPUX_IA64_MODE="32" 8737 ;; 8738 *ELF-64*) 8739 HPUX_IA64_MODE="64" 8740 ;; 8741 esac 8742 fi 8743 rm -rf conftest* 8744 ;; 8745*-*-irix6*) 8746 # Find out which ABI we are using. 8747 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8749 (eval $ac_compile) 2>&5 8750 ac_status=$? 8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8752 test $ac_status = 0; }; then 8753 if test "$lt_cv_prog_gnu_ld" = yes; then 8754 case `/usr/bin/file conftest.$ac_objext` in 8755 *32-bit*) 8756 LD="${LD-ld} -melf32bsmip" 8757 ;; 8758 *N32*) 8759 LD="${LD-ld} -melf32bmipn32" 8760 ;; 8761 *64-bit*) 8762 LD="${LD-ld} -melf64bmip" 8763 ;; 8764 esac 8765 else 8766 case `/usr/bin/file conftest.$ac_objext` in 8767 *32-bit*) 8768 LD="${LD-ld} -32" 8769 ;; 8770 *N32*) 8771 LD="${LD-ld} -n32" 8772 ;; 8773 *64-bit*) 8774 LD="${LD-ld} -64" 8775 ;; 8776 esac 8777 fi 8778 fi 8779 rm -rf conftest* 8780 ;; 8781 8782x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8783s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8784 # Find out which ABI we are using. 8785 echo 'int i;' > conftest.$ac_ext 8786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8787 (eval $ac_compile) 2>&5 8788 ac_status=$? 8789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8790 test $ac_status = 0; }; then 8791 case `/usr/bin/file conftest.o` in 8792 *32-bit*) 8793 case $host in 8794 x86_64-*kfreebsd*-gnu) 8795 LD="${LD-ld} -m elf_i386_fbsd" 8796 ;; 8797 x86_64-*linux*) 8798 LD="${LD-ld} -m elf_i386" 8799 ;; 8800 ppc64-*linux*|powerpc64-*linux*) 8801 LD="${LD-ld} -m elf32ppclinux" 8802 ;; 8803 s390x-*linux*) 8804 LD="${LD-ld} -m elf_s390" 8805 ;; 8806 sparc64-*linux*) 8807 LD="${LD-ld} -m elf32_sparc" 8808 ;; 8809 esac 8810 ;; 8811 *64-bit*) 8812 case $host in 8813 x86_64-*kfreebsd*-gnu) 8814 LD="${LD-ld} -m elf_x86_64_fbsd" 8815 ;; 8816 x86_64-*linux*) 8817 LD="${LD-ld} -m elf_x86_64" 8818 ;; 8819 ppc*-*linux*|powerpc*-*linux*) 8820 LD="${LD-ld} -m elf64ppc" 8821 ;; 8822 s390*-*linux*|s390*-*tpf*) 8823 LD="${LD-ld} -m elf64_s390" 8824 ;; 8825 sparc*-*linux*) 8826 LD="${LD-ld} -m elf64_sparc" 8827 ;; 8828 esac 8829 ;; 8830 esac 8831 fi 8832 rm -rf conftest* 8833 ;; 8834 8835*-*-sco3.2v5*) 8836 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8837 SAVE_CFLAGS="$CFLAGS" 8838 CFLAGS="$CFLAGS -belf" 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8840$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8841if ${lt_cv_cc_needs_belf+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 ac_ext=c 8845ac_cpp='$CPP $CPPFLAGS' 8846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8848ac_compiler_gnu=$ac_cv_c_compiler_gnu 8849 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8851/* end confdefs.h. */ 8852 8853int 8854main () 8855{ 8856 8857 ; 8858 return 0; 8859} 8860_ACEOF 8861if ac_fn_c_try_link "$LINENO"; then : 8862 lt_cv_cc_needs_belf=yes 8863else 8864 lt_cv_cc_needs_belf=no 8865fi 8866rm -f core conftest.err conftest.$ac_objext \ 8867 conftest$ac_exeext conftest.$ac_ext 8868 ac_ext=c 8869ac_cpp='$CPP $CPPFLAGS' 8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8872ac_compiler_gnu=$ac_cv_c_compiler_gnu 8873 8874fi 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8876$as_echo "$lt_cv_cc_needs_belf" >&6; } 8877 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8878 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8879 CFLAGS="$SAVE_CFLAGS" 8880 fi 8881 ;; 8882*-*solaris*) 8883 # Find out which ABI we are using. 8884 echo 'int i;' > conftest.$ac_ext 8885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8886 (eval $ac_compile) 2>&5 8887 ac_status=$? 8888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8889 test $ac_status = 0; }; then 8890 case `/usr/bin/file conftest.o` in 8891 *64-bit*) 8892 case $lt_cv_prog_gnu_ld in 8893 yes*) 8894 case $host in 8895 i?86-*-solaris*) 8896 LD="${LD-ld} -m elf_x86_64" 8897 ;; 8898 sparc*-*-solaris*) 8899 LD="${LD-ld} -m elf64_sparc" 8900 ;; 8901 esac 8902 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8903 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8904 LD="${LD-ld}_sol2" 8905 fi 8906 ;; 8907 *) 8908 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8909 LD="${LD-ld} -64" 8910 fi 8911 ;; 8912 esac 8913 ;; 8914 esac 8915 fi 8916 rm -rf conftest* 8917 ;; 8918esac 8919 8920need_locks="$enable_libtool_lock" 8921 8922if test -n "$ac_tool_prefix"; then 8923 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8924set dummy ${ac_tool_prefix}mt; ac_word=$2 8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8926$as_echo_n "checking for $ac_word... " >&6; } 8927if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8928 $as_echo_n "(cached) " >&6 8929else 8930 if test -n "$MANIFEST_TOOL"; then 8931 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8932else 8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8934for as_dir in $PATH 8935do 8936 IFS=$as_save_IFS 8937 test -z "$as_dir" && as_dir=. 8938 for ac_exec_ext in '' $ac_executable_extensions; do 8939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8940 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8942 break 2 8943 fi 8944done 8945 done 8946IFS=$as_save_IFS 8947 8948fi 8949fi 8950MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8951if test -n "$MANIFEST_TOOL"; then 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8953$as_echo "$MANIFEST_TOOL" >&6; } 8954else 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8956$as_echo "no" >&6; } 8957fi 8958 8959 8960fi 8961if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8962 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8963 # Extract the first word of "mt", so it can be a program name with args. 8964set dummy mt; ac_word=$2 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8966$as_echo_n "checking for $ac_word... " >&6; } 8967if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 8970 if test -n "$ac_ct_MANIFEST_TOOL"; then 8971 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8972else 8973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8974for as_dir in $PATH 8975do 8976 IFS=$as_save_IFS 8977 test -z "$as_dir" && as_dir=. 8978 for ac_exec_ext in '' $ac_executable_extensions; do 8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8980 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8982 break 2 8983 fi 8984done 8985 done 8986IFS=$as_save_IFS 8987 8988fi 8989fi 8990ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8991if test -n "$ac_ct_MANIFEST_TOOL"; then 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8993$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8994else 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8996$as_echo "no" >&6; } 8997fi 8998 8999 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9000 MANIFEST_TOOL=":" 9001 else 9002 case $cross_compiling:$ac_tool_warned in 9003yes:) 9004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9006ac_tool_warned=yes ;; 9007esac 9008 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9009 fi 9010else 9011 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9012fi 9013 9014test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9016$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9017if ${lt_cv_path_mainfest_tool+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019else 9020 lt_cv_path_mainfest_tool=no 9021 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9022 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9023 cat conftest.err >&5 9024 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9025 lt_cv_path_mainfest_tool=yes 9026 fi 9027 rm -f conftest* 9028fi 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9030$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9031if test "x$lt_cv_path_mainfest_tool" != xyes; then 9032 MANIFEST_TOOL=: 9033fi 9034 9035 9036 9037 9038 9039 9040 case $host_os in 9041 rhapsody* | darwin*) 9042 if test -n "$ac_tool_prefix"; then 9043 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9044set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9046$as_echo_n "checking for $ac_word... " >&6; } 9047if ${ac_cv_prog_DSYMUTIL+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 if test -n "$DSYMUTIL"; then 9051 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9052else 9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9054for as_dir in $PATH 9055do 9056 IFS=$as_save_IFS 9057 test -z "$as_dir" && as_dir=. 9058 for ac_exec_ext in '' $ac_executable_extensions; do 9059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9060 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9062 break 2 9063 fi 9064done 9065 done 9066IFS=$as_save_IFS 9067 9068fi 9069fi 9070DSYMUTIL=$ac_cv_prog_DSYMUTIL 9071if test -n "$DSYMUTIL"; then 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9073$as_echo "$DSYMUTIL" >&6; } 9074else 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9076$as_echo "no" >&6; } 9077fi 9078 9079 9080fi 9081if test -z "$ac_cv_prog_DSYMUTIL"; then 9082 ac_ct_DSYMUTIL=$DSYMUTIL 9083 # Extract the first word of "dsymutil", so it can be a program name with args. 9084set dummy dsymutil; ac_word=$2 9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9086$as_echo_n "checking for $ac_word... " >&6; } 9087if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9088 $as_echo_n "(cached) " >&6 9089else 9090 if test -n "$ac_ct_DSYMUTIL"; then 9091 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9092else 9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9094for as_dir in $PATH 9095do 9096 IFS=$as_save_IFS 9097 test -z "$as_dir" && as_dir=. 9098 for ac_exec_ext in '' $ac_executable_extensions; do 9099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9100 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9102 break 2 9103 fi 9104done 9105 done 9106IFS=$as_save_IFS 9107 9108fi 9109fi 9110ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9111if test -n "$ac_ct_DSYMUTIL"; then 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9113$as_echo "$ac_ct_DSYMUTIL" >&6; } 9114else 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9116$as_echo "no" >&6; } 9117fi 9118 9119 if test "x$ac_ct_DSYMUTIL" = x; then 9120 DSYMUTIL=":" 9121 else 9122 case $cross_compiling:$ac_tool_warned in 9123yes:) 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9126ac_tool_warned=yes ;; 9127esac 9128 DSYMUTIL=$ac_ct_DSYMUTIL 9129 fi 9130else 9131 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9132fi 9133 9134 if test -n "$ac_tool_prefix"; then 9135 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9136set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9138$as_echo_n "checking for $ac_word... " >&6; } 9139if ${ac_cv_prog_NMEDIT+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 if test -n "$NMEDIT"; then 9143 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9144else 9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9146for as_dir in $PATH 9147do 9148 IFS=$as_save_IFS 9149 test -z "$as_dir" && as_dir=. 9150 for ac_exec_ext in '' $ac_executable_extensions; do 9151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9152 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9154 break 2 9155 fi 9156done 9157 done 9158IFS=$as_save_IFS 9159 9160fi 9161fi 9162NMEDIT=$ac_cv_prog_NMEDIT 9163if test -n "$NMEDIT"; then 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9165$as_echo "$NMEDIT" >&6; } 9166else 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9168$as_echo "no" >&6; } 9169fi 9170 9171 9172fi 9173if test -z "$ac_cv_prog_NMEDIT"; then 9174 ac_ct_NMEDIT=$NMEDIT 9175 # Extract the first word of "nmedit", so it can be a program name with args. 9176set dummy nmedit; ac_word=$2 9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9178$as_echo_n "checking for $ac_word... " >&6; } 9179if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 if test -n "$ac_ct_NMEDIT"; then 9183 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9184else 9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9186for as_dir in $PATH 9187do 9188 IFS=$as_save_IFS 9189 test -z "$as_dir" && as_dir=. 9190 for ac_exec_ext in '' $ac_executable_extensions; do 9191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9192 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9194 break 2 9195 fi 9196done 9197 done 9198IFS=$as_save_IFS 9199 9200fi 9201fi 9202ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9203if test -n "$ac_ct_NMEDIT"; then 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9205$as_echo "$ac_ct_NMEDIT" >&6; } 9206else 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9208$as_echo "no" >&6; } 9209fi 9210 9211 if test "x$ac_ct_NMEDIT" = x; then 9212 NMEDIT=":" 9213 else 9214 case $cross_compiling:$ac_tool_warned in 9215yes:) 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9218ac_tool_warned=yes ;; 9219esac 9220 NMEDIT=$ac_ct_NMEDIT 9221 fi 9222else 9223 NMEDIT="$ac_cv_prog_NMEDIT" 9224fi 9225 9226 if test -n "$ac_tool_prefix"; then 9227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9228set dummy ${ac_tool_prefix}lipo; ac_word=$2 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9230$as_echo_n "checking for $ac_word... " >&6; } 9231if ${ac_cv_prog_LIPO+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233else 9234 if test -n "$LIPO"; then 9235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9236else 9237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9238for as_dir in $PATH 9239do 9240 IFS=$as_save_IFS 9241 test -z "$as_dir" && as_dir=. 9242 for ac_exec_ext in '' $ac_executable_extensions; do 9243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9246 break 2 9247 fi 9248done 9249 done 9250IFS=$as_save_IFS 9251 9252fi 9253fi 9254LIPO=$ac_cv_prog_LIPO 9255if test -n "$LIPO"; then 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9257$as_echo "$LIPO" >&6; } 9258else 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9260$as_echo "no" >&6; } 9261fi 9262 9263 9264fi 9265if test -z "$ac_cv_prog_LIPO"; then 9266 ac_ct_LIPO=$LIPO 9267 # Extract the first word of "lipo", so it can be a program name with args. 9268set dummy lipo; ac_word=$2 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9270$as_echo_n "checking for $ac_word... " >&6; } 9271if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 if test -n "$ac_ct_LIPO"; then 9275 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9276else 9277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9278for as_dir in $PATH 9279do 9280 IFS=$as_save_IFS 9281 test -z "$as_dir" && as_dir=. 9282 for ac_exec_ext in '' $ac_executable_extensions; do 9283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9284 ac_cv_prog_ac_ct_LIPO="lipo" 9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9286 break 2 9287 fi 9288done 9289 done 9290IFS=$as_save_IFS 9291 9292fi 9293fi 9294ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9295if test -n "$ac_ct_LIPO"; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9297$as_echo "$ac_ct_LIPO" >&6; } 9298else 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9300$as_echo "no" >&6; } 9301fi 9302 9303 if test "x$ac_ct_LIPO" = x; then 9304 LIPO=":" 9305 else 9306 case $cross_compiling:$ac_tool_warned in 9307yes:) 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9310ac_tool_warned=yes ;; 9311esac 9312 LIPO=$ac_ct_LIPO 9313 fi 9314else 9315 LIPO="$ac_cv_prog_LIPO" 9316fi 9317 9318 if test -n "$ac_tool_prefix"; then 9319 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9320set dummy ${ac_tool_prefix}otool; ac_word=$2 9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9322$as_echo_n "checking for $ac_word... " >&6; } 9323if ${ac_cv_prog_OTOOL+:} false; then : 9324 $as_echo_n "(cached) " >&6 9325else 9326 if test -n "$OTOOL"; then 9327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9328else 9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9330for as_dir in $PATH 9331do 9332 IFS=$as_save_IFS 9333 test -z "$as_dir" && as_dir=. 9334 for ac_exec_ext in '' $ac_executable_extensions; do 9335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9338 break 2 9339 fi 9340done 9341 done 9342IFS=$as_save_IFS 9343 9344fi 9345fi 9346OTOOL=$ac_cv_prog_OTOOL 9347if test -n "$OTOOL"; then 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9349$as_echo "$OTOOL" >&6; } 9350else 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9352$as_echo "no" >&6; } 9353fi 9354 9355 9356fi 9357if test -z "$ac_cv_prog_OTOOL"; then 9358 ac_ct_OTOOL=$OTOOL 9359 # Extract the first word of "otool", so it can be a program name with args. 9360set dummy otool; ac_word=$2 9361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9362$as_echo_n "checking for $ac_word... " >&6; } 9363if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 if test -n "$ac_ct_OTOOL"; then 9367 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9368else 9369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9370for as_dir in $PATH 9371do 9372 IFS=$as_save_IFS 9373 test -z "$as_dir" && as_dir=. 9374 for ac_exec_ext in '' $ac_executable_extensions; do 9375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9376 ac_cv_prog_ac_ct_OTOOL="otool" 9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9378 break 2 9379 fi 9380done 9381 done 9382IFS=$as_save_IFS 9383 9384fi 9385fi 9386ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9387if test -n "$ac_ct_OTOOL"; then 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9389$as_echo "$ac_ct_OTOOL" >&6; } 9390else 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9392$as_echo "no" >&6; } 9393fi 9394 9395 if test "x$ac_ct_OTOOL" = x; then 9396 OTOOL=":" 9397 else 9398 case $cross_compiling:$ac_tool_warned in 9399yes:) 9400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9402ac_tool_warned=yes ;; 9403esac 9404 OTOOL=$ac_ct_OTOOL 9405 fi 9406else 9407 OTOOL="$ac_cv_prog_OTOOL" 9408fi 9409 9410 if test -n "$ac_tool_prefix"; then 9411 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9412set dummy ${ac_tool_prefix}otool64; ac_word=$2 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9414$as_echo_n "checking for $ac_word... " >&6; } 9415if ${ac_cv_prog_OTOOL64+:} false; then : 9416 $as_echo_n "(cached) " >&6 9417else 9418 if test -n "$OTOOL64"; then 9419 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9420else 9421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9422for as_dir in $PATH 9423do 9424 IFS=$as_save_IFS 9425 test -z "$as_dir" && as_dir=. 9426 for ac_exec_ext in '' $ac_executable_extensions; do 9427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9428 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9430 break 2 9431 fi 9432done 9433 done 9434IFS=$as_save_IFS 9435 9436fi 9437fi 9438OTOOL64=$ac_cv_prog_OTOOL64 9439if test -n "$OTOOL64"; then 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9441$as_echo "$OTOOL64" >&6; } 9442else 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9444$as_echo "no" >&6; } 9445fi 9446 9447 9448fi 9449if test -z "$ac_cv_prog_OTOOL64"; then 9450 ac_ct_OTOOL64=$OTOOL64 9451 # Extract the first word of "otool64", so it can be a program name with args. 9452set dummy otool64; ac_word=$2 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9454$as_echo_n "checking for $ac_word... " >&6; } 9455if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457else 9458 if test -n "$ac_ct_OTOOL64"; then 9459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9460else 9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9462for as_dir in $PATH 9463do 9464 IFS=$as_save_IFS 9465 test -z "$as_dir" && as_dir=. 9466 for ac_exec_ext in '' $ac_executable_extensions; do 9467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9468 ac_cv_prog_ac_ct_OTOOL64="otool64" 9469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9470 break 2 9471 fi 9472done 9473 done 9474IFS=$as_save_IFS 9475 9476fi 9477fi 9478ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9479if test -n "$ac_ct_OTOOL64"; then 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9481$as_echo "$ac_ct_OTOOL64" >&6; } 9482else 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9484$as_echo "no" >&6; } 9485fi 9486 9487 if test "x$ac_ct_OTOOL64" = x; then 9488 OTOOL64=":" 9489 else 9490 case $cross_compiling:$ac_tool_warned in 9491yes:) 9492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9494ac_tool_warned=yes ;; 9495esac 9496 OTOOL64=$ac_ct_OTOOL64 9497 fi 9498else 9499 OTOOL64="$ac_cv_prog_OTOOL64" 9500fi 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9529$as_echo_n "checking for -single_module linker flag... " >&6; } 9530if ${lt_cv_apple_cc_single_mod+:} false; then : 9531 $as_echo_n "(cached) " >&6 9532else 9533 lt_cv_apple_cc_single_mod=no 9534 if test -z "${LT_MULTI_MODULE}"; then 9535 # By default we will add the -single_module flag. You can override 9536 # by either setting the environment variable LT_MULTI_MODULE 9537 # non-empty at configure time, or by adding -multi_module to the 9538 # link flags. 9539 rm -rf libconftest.dylib* 9540 echo "int foo(void){return 1;}" > conftest.c 9541 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9542-dynamiclib -Wl,-single_module conftest.c" >&5 9543 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9544 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9545 _lt_result=$? 9546 # If there is a non-empty error log, and "single_module" 9547 # appears in it, assume the flag caused a linker warning 9548 if test -s conftest.err && $GREP single_module conftest.err; then 9549 cat conftest.err >&5 9550 # Otherwise, if the output was created with a 0 exit code from 9551 # the compiler, it worked. 9552 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9553 lt_cv_apple_cc_single_mod=yes 9554 else 9555 cat conftest.err >&5 9556 fi 9557 rm -rf libconftest.dylib* 9558 rm -f conftest.* 9559 fi 9560fi 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9562$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9563 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9565$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9566if ${lt_cv_ld_exported_symbols_list+:} false; then : 9567 $as_echo_n "(cached) " >&6 9568else 9569 lt_cv_ld_exported_symbols_list=no 9570 save_LDFLAGS=$LDFLAGS 9571 echo "_main" > conftest.sym 9572 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9574/* end confdefs.h. */ 9575 9576int 9577main () 9578{ 9579 9580 ; 9581 return 0; 9582} 9583_ACEOF 9584if ac_fn_c_try_link "$LINENO"; then : 9585 lt_cv_ld_exported_symbols_list=yes 9586else 9587 lt_cv_ld_exported_symbols_list=no 9588fi 9589rm -f core conftest.err conftest.$ac_objext \ 9590 conftest$ac_exeext conftest.$ac_ext 9591 LDFLAGS="$save_LDFLAGS" 9592 9593fi 9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9595$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9596 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9598$as_echo_n "checking for -force_load linker flag... " >&6; } 9599if ${lt_cv_ld_force_load+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 lt_cv_ld_force_load=no 9603 cat > conftest.c << _LT_EOF 9604int forced_loaded() { return 2;} 9605_LT_EOF 9606 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9607 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9608 echo "$AR cru libconftest.a conftest.o" >&5 9609 $AR cru libconftest.a conftest.o 2>&5 9610 echo "$RANLIB libconftest.a" >&5 9611 $RANLIB libconftest.a 2>&5 9612 cat > conftest.c << _LT_EOF 9613int main() { return 0;} 9614_LT_EOF 9615 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9616 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9617 _lt_result=$? 9618 if test -s conftest.err && $GREP force_load conftest.err; then 9619 cat conftest.err >&5 9620 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9621 lt_cv_ld_force_load=yes 9622 else 9623 cat conftest.err >&5 9624 fi 9625 rm -f conftest.err libconftest.a conftest conftest.c 9626 rm -rf conftest.dSYM 9627 9628fi 9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9630$as_echo "$lt_cv_ld_force_load" >&6; } 9631 case $host_os in 9632 rhapsody* | darwin1.[012]) 9633 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9634 darwin1.*) 9635 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9636 darwin*) # darwin 5.x on 9637 # if running on 10.5 or later, the deployment target defaults 9638 # to the OS version, if on x86, and 10.4, the deployment 9639 # target defaults to 10.4. Don't you love it? 9640 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9641 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9642 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9643 10.[012]*) 9644 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9645 10.*) 9646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9647 esac 9648 ;; 9649 esac 9650 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9651 _lt_dar_single_mod='$single_module' 9652 fi 9653 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9654 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9655 else 9656 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9657 fi 9658 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9659 _lt_dsymutil='~$DSYMUTIL $lib || :' 9660 else 9661 _lt_dsymutil= 9662 fi 9663 ;; 9664 esac 9665 9666for ac_header in dlfcn.h 9667do : 9668 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9669" 9670if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9671 cat >>confdefs.h <<_ACEOF 9672#define HAVE_DLFCN_H 1 9673_ACEOF 9674 9675fi 9676 9677done 9678 9679 9680 9681 9682 9683 9684 9685# Set options 9686 9687 9688 9689 enable_dlopen=no 9690 9691 9692 enable_win32_dll=no 9693 9694 9695 # Check whether --enable-shared was given. 9696if test "${enable_shared+set}" = set; then : 9697 enableval=$enable_shared; p=${PACKAGE-default} 9698 case $enableval in 9699 yes) enable_shared=yes ;; 9700 no) enable_shared=no ;; 9701 *) 9702 enable_shared=no 9703 # Look at the argument we got. We use all the common list separators. 9704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9705 for pkg in $enableval; do 9706 IFS="$lt_save_ifs" 9707 if test "X$pkg" = "X$p"; then 9708 enable_shared=yes 9709 fi 9710 done 9711 IFS="$lt_save_ifs" 9712 ;; 9713 esac 9714else 9715 enable_shared=yes 9716fi 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 # Check whether --enable-static was given. 9727if test "${enable_static+set}" = set; then : 9728 enableval=$enable_static; p=${PACKAGE-default} 9729 case $enableval in 9730 yes) enable_static=yes ;; 9731 no) enable_static=no ;; 9732 *) 9733 enable_static=no 9734 # Look at the argument we got. We use all the common list separators. 9735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9736 for pkg in $enableval; do 9737 IFS="$lt_save_ifs" 9738 if test "X$pkg" = "X$p"; then 9739 enable_static=yes 9740 fi 9741 done 9742 IFS="$lt_save_ifs" 9743 ;; 9744 esac 9745else 9746 enable_static=yes 9747fi 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758# Check whether --with-pic was given. 9759if test "${with_pic+set}" = set; then : 9760 withval=$with_pic; lt_p=${PACKAGE-default} 9761 case $withval in 9762 yes|no) pic_mode=$withval ;; 9763 *) 9764 pic_mode=default 9765 # Look at the argument we got. We use all the common list separators. 9766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9767 for lt_pkg in $withval; do 9768 IFS="$lt_save_ifs" 9769 if test "X$lt_pkg" = "X$lt_p"; then 9770 pic_mode=yes 9771 fi 9772 done 9773 IFS="$lt_save_ifs" 9774 ;; 9775 esac 9776else 9777 pic_mode=default 9778fi 9779 9780 9781test -z "$pic_mode" && pic_mode=default 9782 9783 9784 9785 9786 9787 9788 9789 # Check whether --enable-fast-install was given. 9790if test "${enable_fast_install+set}" = set; then : 9791 enableval=$enable_fast_install; p=${PACKAGE-default} 9792 case $enableval in 9793 yes) enable_fast_install=yes ;; 9794 no) enable_fast_install=no ;; 9795 *) 9796 enable_fast_install=no 9797 # Look at the argument we got. We use all the common list separators. 9798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9799 for pkg in $enableval; do 9800 IFS="$lt_save_ifs" 9801 if test "X$pkg" = "X$p"; then 9802 enable_fast_install=yes 9803 fi 9804 done 9805 IFS="$lt_save_ifs" 9806 ;; 9807 esac 9808else 9809 enable_fast_install=yes 9810fi 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822# This can be used to rebuild libtool when needed 9823LIBTOOL_DEPS="$ltmain" 9824 9825# Always use our own libtool. 9826LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857test -z "$LN_S" && LN_S="ln -s" 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872if test -n "${ZSH_VERSION+set}" ; then 9873 setopt NO_GLOB_SUBST 9874fi 9875 9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9877$as_echo_n "checking for objdir... " >&6; } 9878if ${lt_cv_objdir+:} false; then : 9879 $as_echo_n "(cached) " >&6 9880else 9881 rm -f .libs 2>/dev/null 9882mkdir .libs 2>/dev/null 9883if test -d .libs; then 9884 lt_cv_objdir=.libs 9885else 9886 # MS-DOS does not allow filenames that begin with a dot. 9887 lt_cv_objdir=_libs 9888fi 9889rmdir .libs 2>/dev/null 9890fi 9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9892$as_echo "$lt_cv_objdir" >&6; } 9893objdir=$lt_cv_objdir 9894 9895 9896 9897 9898 9899cat >>confdefs.h <<_ACEOF 9900#define LT_OBJDIR "$lt_cv_objdir/" 9901_ACEOF 9902 9903 9904 9905 9906case $host_os in 9907aix3*) 9908 # AIX sometimes has problems with the GCC collect2 program. For some 9909 # reason, if we set the COLLECT_NAMES environment variable, the problems 9910 # vanish in a puff of smoke. 9911 if test "X${COLLECT_NAMES+set}" != Xset; then 9912 COLLECT_NAMES= 9913 export COLLECT_NAMES 9914 fi 9915 ;; 9916esac 9917 9918# Global variables: 9919ofile=libtool 9920can_build_shared=yes 9921 9922# All known linkers require a `.a' archive for static linking (except MSVC, 9923# which needs '.lib'). 9924libext=a 9925 9926with_gnu_ld="$lt_cv_prog_gnu_ld" 9927 9928old_CC="$CC" 9929old_CFLAGS="$CFLAGS" 9930 9931# Set sane defaults for various variables 9932test -z "$CC" && CC=cc 9933test -z "$LTCC" && LTCC=$CC 9934test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9935test -z "$LD" && LD=ld 9936test -z "$ac_objext" && ac_objext=o 9937 9938for cc_temp in $compiler""; do 9939 case $cc_temp in 9940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9942 \-*) ;; 9943 *) break;; 9944 esac 9945done 9946cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9947 9948 9949# Only perform the check for file, if the check method requires it 9950test -z "$MAGIC_CMD" && MAGIC_CMD=file 9951case $deplibs_check_method in 9952file_magic*) 9953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9955$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9956if ${lt_cv_path_MAGIC_CMD+:} false; then : 9957 $as_echo_n "(cached) " >&6 9958else 9959 case $MAGIC_CMD in 9960[\\/*] | ?:[\\/]*) 9961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9962 ;; 9963*) 9964 lt_save_MAGIC_CMD="$MAGIC_CMD" 9965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9967 for ac_dir in $ac_dummy; do 9968 IFS="$lt_save_ifs" 9969 test -z "$ac_dir" && ac_dir=. 9970 if test -f $ac_dir/${ac_tool_prefix}file; then 9971 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9972 if test -n "$file_magic_test_file"; then 9973 case $deplibs_check_method in 9974 "file_magic "*) 9975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9978 $EGREP "$file_magic_regex" > /dev/null; then 9979 : 9980 else 9981 cat <<_LT_EOF 1>&2 9982 9983*** Warning: the command libtool uses to detect shared libraries, 9984*** $file_magic_cmd, produces output that libtool cannot recognize. 9985*** The result is that libtool may fail to recognize shared libraries 9986*** as such. This will affect the creation of libtool libraries that 9987*** depend on shared libraries, but programs linked with such libtool 9988*** libraries will work regardless of this problem. Nevertheless, you 9989*** may want to report the problem to your system manager and/or to 9990*** bug-libtool@gnu.org 9991 9992_LT_EOF 9993 fi ;; 9994 esac 9995 fi 9996 break 9997 fi 9998 done 9999 IFS="$lt_save_ifs" 10000 MAGIC_CMD="$lt_save_MAGIC_CMD" 10001 ;; 10002esac 10003fi 10004 10005MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10006if test -n "$MAGIC_CMD"; then 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10008$as_echo "$MAGIC_CMD" >&6; } 10009else 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10011$as_echo "no" >&6; } 10012fi 10013 10014 10015 10016 10017 10018if test -z "$lt_cv_path_MAGIC_CMD"; then 10019 if test -n "$ac_tool_prefix"; then 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10021$as_echo_n "checking for file... " >&6; } 10022if ${lt_cv_path_MAGIC_CMD+:} false; then : 10023 $as_echo_n "(cached) " >&6 10024else 10025 case $MAGIC_CMD in 10026[\\/*] | ?:[\\/]*) 10027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10028 ;; 10029*) 10030 lt_save_MAGIC_CMD="$MAGIC_CMD" 10031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10033 for ac_dir in $ac_dummy; do 10034 IFS="$lt_save_ifs" 10035 test -z "$ac_dir" && ac_dir=. 10036 if test -f $ac_dir/file; then 10037 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10038 if test -n "$file_magic_test_file"; then 10039 case $deplibs_check_method in 10040 "file_magic "*) 10041 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10044 $EGREP "$file_magic_regex" > /dev/null; then 10045 : 10046 else 10047 cat <<_LT_EOF 1>&2 10048 10049*** Warning: the command libtool uses to detect shared libraries, 10050*** $file_magic_cmd, produces output that libtool cannot recognize. 10051*** The result is that libtool may fail to recognize shared libraries 10052*** as such. This will affect the creation of libtool libraries that 10053*** depend on shared libraries, but programs linked with such libtool 10054*** libraries will work regardless of this problem. Nevertheless, you 10055*** may want to report the problem to your system manager and/or to 10056*** bug-libtool@gnu.org 10057 10058_LT_EOF 10059 fi ;; 10060 esac 10061 fi 10062 break 10063 fi 10064 done 10065 IFS="$lt_save_ifs" 10066 MAGIC_CMD="$lt_save_MAGIC_CMD" 10067 ;; 10068esac 10069fi 10070 10071MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10072if test -n "$MAGIC_CMD"; then 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10074$as_echo "$MAGIC_CMD" >&6; } 10075else 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10077$as_echo "no" >&6; } 10078fi 10079 10080 10081 else 10082 MAGIC_CMD=: 10083 fi 10084fi 10085 10086 fi 10087 ;; 10088esac 10089 10090# Use C for the default configuration in the libtool script 10091 10092lt_save_CC="$CC" 10093ac_ext=c 10094ac_cpp='$CPP $CPPFLAGS' 10095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10097ac_compiler_gnu=$ac_cv_c_compiler_gnu 10098 10099 10100# Source file extension for C test sources. 10101ac_ext=c 10102 10103# Object file extension for compiled C test sources. 10104objext=o 10105objext=$objext 10106 10107# Code to be used in simple compile tests 10108lt_simple_compile_test_code="int some_variable = 0;" 10109 10110# Code to be used in simple link tests 10111lt_simple_link_test_code='int main(){return(0);}' 10112 10113 10114 10115 10116 10117 10118 10119# If no C compiler was specified, use CC. 10120LTCC=${LTCC-"$CC"} 10121 10122# If no C compiler flags were specified, use CFLAGS. 10123LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10124 10125# Allow CC to be a program name with arguments. 10126compiler=$CC 10127 10128# Save the default compiler, since it gets overwritten when the other 10129# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10130compiler_DEFAULT=$CC 10131 10132# save warnings/boilerplate of simple test code 10133ac_outfile=conftest.$ac_objext 10134echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10135eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10136_lt_compiler_boilerplate=`cat conftest.err` 10137$RM conftest* 10138 10139ac_outfile=conftest.$ac_objext 10140echo "$lt_simple_link_test_code" >conftest.$ac_ext 10141eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10142_lt_linker_boilerplate=`cat conftest.err` 10143$RM -r conftest* 10144 10145 10146if test -n "$compiler"; then 10147 10148lt_prog_compiler_no_builtin_flag= 10149 10150if test "$GCC" = yes; then 10151 case $cc_basename in 10152 nvcc*) 10153 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10154 *) 10155 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10156 esac 10157 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10159$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10160if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 lt_cv_prog_compiler_rtti_exceptions=no 10164 ac_outfile=conftest.$ac_objext 10165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10166 lt_compiler_flag="-fno-rtti -fno-exceptions" 10167 # Insert the option either (1) after the last *FLAGS variable, or 10168 # (2) before a word containing "conftest.", or (3) at the end. 10169 # Note that $ac_compile itself does not contain backslashes and begins 10170 # with a dollar sign (not a hyphen), so the echo should work correctly. 10171 # The option is referenced via a variable to avoid confusing sed. 10172 lt_compile=`echo "$ac_compile" | $SED \ 10173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10175 -e 's:$: $lt_compiler_flag:'` 10176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10177 (eval "$lt_compile" 2>conftest.err) 10178 ac_status=$? 10179 cat conftest.err >&5 10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10181 if (exit $ac_status) && test -s "$ac_outfile"; then 10182 # The compiler can only warn and ignore the option if not recognized 10183 # So say no if there are warnings other than the usual output. 10184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10187 lt_cv_prog_compiler_rtti_exceptions=yes 10188 fi 10189 fi 10190 $RM conftest* 10191 10192fi 10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10194$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10195 10196if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10197 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10198else 10199 : 10200fi 10201 10202fi 10203 10204 10205 10206 10207 10208 10209 lt_prog_compiler_wl= 10210lt_prog_compiler_pic= 10211lt_prog_compiler_static= 10212 10213 10214 if test "$GCC" = yes; then 10215 lt_prog_compiler_wl='-Wl,' 10216 lt_prog_compiler_static='-static' 10217 10218 case $host_os in 10219 aix*) 10220 # All AIX code is PIC. 10221 if test "$host_cpu" = ia64; then 10222 # AIX 5 now supports IA64 processor 10223 lt_prog_compiler_static='-Bstatic' 10224 fi 10225 ;; 10226 10227 amigaos*) 10228 case $host_cpu in 10229 powerpc) 10230 # see comment about AmigaOS4 .so support 10231 lt_prog_compiler_pic='-fPIC' 10232 ;; 10233 m68k) 10234 # FIXME: we need at least 68020 code to build shared libraries, but 10235 # adding the `-m68020' flag to GCC prevents building anything better, 10236 # like `-m68040'. 10237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10238 ;; 10239 esac 10240 ;; 10241 10242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10243 # PIC is the default for these OSes. 10244 ;; 10245 10246 mingw* | cygwin* | pw32* | os2* | cegcc*) 10247 # This hack is so that the source file can tell whether it is being 10248 # built for inclusion in a dll (and should export symbols for example). 10249 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10250 # (--disable-auto-import) libraries 10251 lt_prog_compiler_pic='-DDLL_EXPORT' 10252 ;; 10253 10254 darwin* | rhapsody*) 10255 # PIC is the default on this platform 10256 # Common symbols not allowed in MH_DYLIB files 10257 lt_prog_compiler_pic='-fno-common' 10258 ;; 10259 10260 haiku*) 10261 # PIC is the default for Haiku. 10262 # The "-static" flag exists, but is broken. 10263 lt_prog_compiler_static= 10264 ;; 10265 10266 hpux*) 10267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10269 # sets the default TLS model and affects inlining. 10270 case $host_cpu in 10271 hppa*64*) 10272 # +Z the default 10273 ;; 10274 *) 10275 lt_prog_compiler_pic='-fPIC' 10276 ;; 10277 esac 10278 ;; 10279 10280 interix[3-9]*) 10281 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10282 # Instead, we relocate shared libraries at runtime. 10283 ;; 10284 10285 msdosdjgpp*) 10286 # Just because we use GCC doesn't mean we suddenly get shared libraries 10287 # on systems that don't support them. 10288 lt_prog_compiler_can_build_shared=no 10289 enable_shared=no 10290 ;; 10291 10292 *nto* | *qnx*) 10293 # QNX uses GNU C++, but need to define -shared option too, otherwise 10294 # it will coredump. 10295 lt_prog_compiler_pic='-fPIC -shared' 10296 ;; 10297 10298 sysv4*MP*) 10299 if test -d /usr/nec; then 10300 lt_prog_compiler_pic=-Kconform_pic 10301 fi 10302 ;; 10303 10304 *) 10305 lt_prog_compiler_pic='-fPIC' 10306 ;; 10307 esac 10308 10309 case $cc_basename in 10310 nvcc*) # Cuda Compiler Driver 2.2 10311 lt_prog_compiler_wl='-Xlinker ' 10312 if test -n "$lt_prog_compiler_pic"; then 10313 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10314 fi 10315 ;; 10316 esac 10317 else 10318 # PORTME Check for flag to pass linker flags through the system compiler. 10319 case $host_os in 10320 aix*) 10321 lt_prog_compiler_wl='-Wl,' 10322 if test "$host_cpu" = ia64; then 10323 # AIX 5 now supports IA64 processor 10324 lt_prog_compiler_static='-Bstatic' 10325 else 10326 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10327 fi 10328 ;; 10329 10330 mingw* | cygwin* | pw32* | os2* | cegcc*) 10331 # This hack is so that the source file can tell whether it is being 10332 # built for inclusion in a dll (and should export symbols for example). 10333 lt_prog_compiler_pic='-DDLL_EXPORT' 10334 ;; 10335 10336 hpux9* | hpux10* | hpux11*) 10337 lt_prog_compiler_wl='-Wl,' 10338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10339 # not for PA HP-UX. 10340 case $host_cpu in 10341 hppa*64*|ia64*) 10342 # +Z the default 10343 ;; 10344 *) 10345 lt_prog_compiler_pic='+Z' 10346 ;; 10347 esac 10348 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10349 lt_prog_compiler_static='${wl}-a ${wl}archive' 10350 ;; 10351 10352 irix5* | irix6* | nonstopux*) 10353 lt_prog_compiler_wl='-Wl,' 10354 # PIC (with -KPIC) is the default. 10355 lt_prog_compiler_static='-non_shared' 10356 ;; 10357 10358 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10359 case $cc_basename in 10360 # old Intel for x86_64 which still supported -KPIC. 10361 ecc*) 10362 lt_prog_compiler_wl='-Wl,' 10363 lt_prog_compiler_pic='-KPIC' 10364 lt_prog_compiler_static='-static' 10365 ;; 10366 # icc used to be incompatible with GCC. 10367 # ICC 10 doesn't accept -KPIC any more. 10368 icc* | ifort*) 10369 lt_prog_compiler_wl='-Wl,' 10370 lt_prog_compiler_pic='-fPIC' 10371 lt_prog_compiler_static='-static' 10372 ;; 10373 # Lahey Fortran 8.1. 10374 lf95*) 10375 lt_prog_compiler_wl='-Wl,' 10376 lt_prog_compiler_pic='--shared' 10377 lt_prog_compiler_static='--static' 10378 ;; 10379 nagfor*) 10380 # NAG Fortran compiler 10381 lt_prog_compiler_wl='-Wl,-Wl,,' 10382 lt_prog_compiler_pic='-PIC' 10383 lt_prog_compiler_static='-Bstatic' 10384 ;; 10385 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10386 # Portland Group compilers (*not* the Pentium gcc compiler, 10387 # which looks to be a dead project) 10388 lt_prog_compiler_wl='-Wl,' 10389 lt_prog_compiler_pic='-fpic' 10390 lt_prog_compiler_static='-Bstatic' 10391 ;; 10392 ccc*) 10393 lt_prog_compiler_wl='-Wl,' 10394 # All Alpha code is PIC. 10395 lt_prog_compiler_static='-non_shared' 10396 ;; 10397 xl* | bgxl* | bgf* | mpixl*) 10398 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10399 lt_prog_compiler_wl='-Wl,' 10400 lt_prog_compiler_pic='-qpic' 10401 lt_prog_compiler_static='-qstaticlink' 10402 ;; 10403 *) 10404 case `$CC -V 2>&1 | sed 5q` in 10405 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10406 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10407 lt_prog_compiler_pic='-KPIC' 10408 lt_prog_compiler_static='-Bstatic' 10409 lt_prog_compiler_wl='' 10410 ;; 10411 *Sun\ F* | *Sun*Fortran*) 10412 lt_prog_compiler_pic='-KPIC' 10413 lt_prog_compiler_static='-Bstatic' 10414 lt_prog_compiler_wl='-Qoption ld ' 10415 ;; 10416 *Sun\ C*) 10417 # Sun C 5.9 10418 lt_prog_compiler_pic='-KPIC' 10419 lt_prog_compiler_static='-Bstatic' 10420 lt_prog_compiler_wl='-Wl,' 10421 ;; 10422 *Intel*\ [CF]*Compiler*) 10423 lt_prog_compiler_wl='-Wl,' 10424 lt_prog_compiler_pic='-fPIC' 10425 lt_prog_compiler_static='-static' 10426 ;; 10427 *Portland\ Group*) 10428 lt_prog_compiler_wl='-Wl,' 10429 lt_prog_compiler_pic='-fpic' 10430 lt_prog_compiler_static='-Bstatic' 10431 ;; 10432 esac 10433 ;; 10434 esac 10435 ;; 10436 10437 newsos6) 10438 lt_prog_compiler_pic='-KPIC' 10439 lt_prog_compiler_static='-Bstatic' 10440 ;; 10441 10442 *nto* | *qnx*) 10443 # QNX uses GNU C++, but need to define -shared option too, otherwise 10444 # it will coredump. 10445 lt_prog_compiler_pic='-fPIC -shared' 10446 ;; 10447 10448 osf3* | osf4* | osf5*) 10449 lt_prog_compiler_wl='-Wl,' 10450 # All OSF/1 code is PIC. 10451 lt_prog_compiler_static='-non_shared' 10452 ;; 10453 10454 rdos*) 10455 lt_prog_compiler_static='-non_shared' 10456 ;; 10457 10458 solaris*) 10459 lt_prog_compiler_pic='-KPIC' 10460 lt_prog_compiler_static='-Bstatic' 10461 case $cc_basename in 10462 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10463 lt_prog_compiler_wl='-Qoption ld ';; 10464 *) 10465 lt_prog_compiler_wl='-Wl,';; 10466 esac 10467 ;; 10468 10469 sunos4*) 10470 lt_prog_compiler_wl='-Qoption ld ' 10471 lt_prog_compiler_pic='-PIC' 10472 lt_prog_compiler_static='-Bstatic' 10473 ;; 10474 10475 sysv4 | sysv4.2uw2* | sysv4.3*) 10476 lt_prog_compiler_wl='-Wl,' 10477 lt_prog_compiler_pic='-KPIC' 10478 lt_prog_compiler_static='-Bstatic' 10479 ;; 10480 10481 sysv4*MP*) 10482 if test -d /usr/nec ;then 10483 lt_prog_compiler_pic='-Kconform_pic' 10484 lt_prog_compiler_static='-Bstatic' 10485 fi 10486 ;; 10487 10488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10489 lt_prog_compiler_wl='-Wl,' 10490 lt_prog_compiler_pic='-KPIC' 10491 lt_prog_compiler_static='-Bstatic' 10492 ;; 10493 10494 unicos*) 10495 lt_prog_compiler_wl='-Wl,' 10496 lt_prog_compiler_can_build_shared=no 10497 ;; 10498 10499 uts4*) 10500 lt_prog_compiler_pic='-pic' 10501 lt_prog_compiler_static='-Bstatic' 10502 ;; 10503 10504 *) 10505 lt_prog_compiler_can_build_shared=no 10506 ;; 10507 esac 10508 fi 10509 10510case $host_os in 10511 # For platforms which do not support PIC, -DPIC is meaningless: 10512 *djgpp*) 10513 lt_prog_compiler_pic= 10514 ;; 10515 *) 10516 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10517 ;; 10518esac 10519 10520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10521$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10522if ${lt_cv_prog_compiler_pic+:} false; then : 10523 $as_echo_n "(cached) " >&6 10524else 10525 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10526fi 10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10528$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10529lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10530 10531# 10532# Check to make sure the PIC flag actually works. 10533# 10534if test -n "$lt_prog_compiler_pic"; then 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10536$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10537if ${lt_cv_prog_compiler_pic_works+:} false; then : 10538 $as_echo_n "(cached) " >&6 10539else 10540 lt_cv_prog_compiler_pic_works=no 10541 ac_outfile=conftest.$ac_objext 10542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10544 # Insert the option either (1) after the last *FLAGS variable, or 10545 # (2) before a word containing "conftest.", or (3) at the end. 10546 # Note that $ac_compile itself does not contain backslashes and begins 10547 # with a dollar sign (not a hyphen), so the echo should work correctly. 10548 # The option is referenced via a variable to avoid confusing sed. 10549 lt_compile=`echo "$ac_compile" | $SED \ 10550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10552 -e 's:$: $lt_compiler_flag:'` 10553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10554 (eval "$lt_compile" 2>conftest.err) 10555 ac_status=$? 10556 cat conftest.err >&5 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 if (exit $ac_status) && test -s "$ac_outfile"; then 10559 # The compiler can only warn and ignore the option if not recognized 10560 # So say no if there are warnings other than the usual output. 10561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10564 lt_cv_prog_compiler_pic_works=yes 10565 fi 10566 fi 10567 $RM conftest* 10568 10569fi 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10571$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10572 10573if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10574 case $lt_prog_compiler_pic in 10575 "" | " "*) ;; 10576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10577 esac 10578else 10579 lt_prog_compiler_pic= 10580 lt_prog_compiler_can_build_shared=no 10581fi 10582 10583fi 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595# 10596# Check to make sure the static flag actually works. 10597# 10598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10601if ${lt_cv_prog_compiler_static_works+:} false; then : 10602 $as_echo_n "(cached) " >&6 10603else 10604 lt_cv_prog_compiler_static_works=no 10605 save_LDFLAGS="$LDFLAGS" 10606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10607 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10609 # The linker can only warn and ignore the option if not recognized 10610 # So say no if there are warnings 10611 if test -s conftest.err; then 10612 # Append any errors to the config.log. 10613 cat conftest.err 1>&5 10614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10616 if diff conftest.exp conftest.er2 >/dev/null; then 10617 lt_cv_prog_compiler_static_works=yes 10618 fi 10619 else 10620 lt_cv_prog_compiler_static_works=yes 10621 fi 10622 fi 10623 $RM -r conftest* 10624 LDFLAGS="$save_LDFLAGS" 10625 10626fi 10627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10628$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10629 10630if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10631 : 10632else 10633 lt_prog_compiler_static= 10634fi 10635 10636 10637 10638 10639 10640 10641 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10644if ${lt_cv_prog_compiler_c_o+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646else 10647 lt_cv_prog_compiler_c_o=no 10648 $RM -r conftest 2>/dev/null 10649 mkdir conftest 10650 cd conftest 10651 mkdir out 10652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10653 10654 lt_compiler_flag="-o out/conftest2.$ac_objext" 10655 # Insert the option either (1) after the last *FLAGS variable, or 10656 # (2) before a word containing "conftest.", or (3) at the end. 10657 # Note that $ac_compile itself does not contain backslashes and begins 10658 # with a dollar sign (not a hyphen), so the echo should work correctly. 10659 lt_compile=`echo "$ac_compile" | $SED \ 10660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10662 -e 's:$: $lt_compiler_flag:'` 10663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10664 (eval "$lt_compile" 2>out/conftest.err) 10665 ac_status=$? 10666 cat out/conftest.err >&5 10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10668 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10669 then 10670 # The compiler can only warn and ignore the option if not recognized 10671 # So say no if there are warnings 10672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10675 lt_cv_prog_compiler_c_o=yes 10676 fi 10677 fi 10678 chmod u+w . 2>&5 10679 $RM conftest* 10680 # SGI C++ compiler will create directory out/ii_files/ for 10681 # template instantiation 10682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10683 $RM out/* && rmdir out 10684 cd .. 10685 $RM -r conftest 10686 $RM conftest* 10687 10688fi 10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10690$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10691 10692 10693 10694 10695 10696 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10699if ${lt_cv_prog_compiler_c_o+:} false; then : 10700 $as_echo_n "(cached) " >&6 10701else 10702 lt_cv_prog_compiler_c_o=no 10703 $RM -r conftest 2>/dev/null 10704 mkdir conftest 10705 cd conftest 10706 mkdir out 10707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10708 10709 lt_compiler_flag="-o out/conftest2.$ac_objext" 10710 # Insert the option either (1) after the last *FLAGS variable, or 10711 # (2) before a word containing "conftest.", or (3) at the end. 10712 # Note that $ac_compile itself does not contain backslashes and begins 10713 # with a dollar sign (not a hyphen), so the echo should work correctly. 10714 lt_compile=`echo "$ac_compile" | $SED \ 10715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10717 -e 's:$: $lt_compiler_flag:'` 10718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10719 (eval "$lt_compile" 2>out/conftest.err) 10720 ac_status=$? 10721 cat out/conftest.err >&5 10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10723 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10724 then 10725 # The compiler can only warn and ignore the option if not recognized 10726 # So say no if there are warnings 10727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10730 lt_cv_prog_compiler_c_o=yes 10731 fi 10732 fi 10733 chmod u+w . 2>&5 10734 $RM conftest* 10735 # SGI C++ compiler will create directory out/ii_files/ for 10736 # template instantiation 10737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10738 $RM out/* && rmdir out 10739 cd .. 10740 $RM -r conftest 10741 $RM conftest* 10742 10743fi 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10745$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10746 10747 10748 10749 10750hard_links="nottested" 10751if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10752 # do not overwrite the value of need_locks provided by the user 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10754$as_echo_n "checking if we can lock with hard links... " >&6; } 10755 hard_links=yes 10756 $RM conftest* 10757 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10758 touch conftest.a 10759 ln conftest.a conftest.b 2>&5 || hard_links=no 10760 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10762$as_echo "$hard_links" >&6; } 10763 if test "$hard_links" = no; then 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10765$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10766 need_locks=warn 10767 fi 10768else 10769 need_locks=no 10770fi 10771 10772 10773 10774 10775 10776 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10779 10780 runpath_var= 10781 allow_undefined_flag= 10782 always_export_symbols=no 10783 archive_cmds= 10784 archive_expsym_cmds= 10785 compiler_needs_object=no 10786 enable_shared_with_static_runtimes=no 10787 export_dynamic_flag_spec= 10788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10789 hardcode_automatic=no 10790 hardcode_direct=no 10791 hardcode_direct_absolute=no 10792 hardcode_libdir_flag_spec= 10793 hardcode_libdir_separator= 10794 hardcode_minus_L=no 10795 hardcode_shlibpath_var=unsupported 10796 inherit_rpath=no 10797 link_all_deplibs=unknown 10798 module_cmds= 10799 module_expsym_cmds= 10800 old_archive_from_new_cmds= 10801 old_archive_from_expsyms_cmds= 10802 thread_safe_flag_spec= 10803 whole_archive_flag_spec= 10804 # include_expsyms should be a list of space-separated symbols to be *always* 10805 # included in the symbol list 10806 include_expsyms= 10807 # exclude_expsyms can be an extended regexp of symbols to exclude 10808 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10810 # as well as any symbol that contains `d'. 10811 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10813 # platforms (ab)use it in PIC code, but their linkers get confused if 10814 # the symbol is explicitly referenced. Since portable code cannot 10815 # rely on this symbol name, it's probably fine to never include it in 10816 # preloaded symbol tables. 10817 # Exclude shared library initialization/finalization symbols. 10818 extract_expsyms_cmds= 10819 10820 case $host_os in 10821 cygwin* | mingw* | pw32* | cegcc*) 10822 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10823 # When not using gcc, we currently assume that we are using 10824 # Microsoft Visual C++. 10825 if test "$GCC" != yes; then 10826 with_gnu_ld=no 10827 fi 10828 ;; 10829 interix*) 10830 # we just hope/assume this is gcc and not c89 (= MSVC++) 10831 with_gnu_ld=yes 10832 ;; 10833 openbsd*) 10834 with_gnu_ld=no 10835 ;; 10836 esac 10837 10838 ld_shlibs=yes 10839 10840 # On some targets, GNU ld is compatible enough with the native linker 10841 # that we're better off using the native interface for both. 10842 lt_use_gnu_ld_interface=no 10843 if test "$with_gnu_ld" = yes; then 10844 case $host_os in 10845 aix*) 10846 # The AIX port of GNU ld has always aspired to compatibility 10847 # with the native linker. However, as the warning in the GNU ld 10848 # block says, versions before 2.19.5* couldn't really create working 10849 # shared libraries, regardless of the interface used. 10850 case `$LD -v 2>&1` in 10851 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10852 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10853 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10854 *) 10855 lt_use_gnu_ld_interface=yes 10856 ;; 10857 esac 10858 ;; 10859 *) 10860 lt_use_gnu_ld_interface=yes 10861 ;; 10862 esac 10863 fi 10864 10865 if test "$lt_use_gnu_ld_interface" = yes; then 10866 # If archive_cmds runs LD, not CC, wlarc should be empty 10867 wlarc='${wl}' 10868 10869 # Set some defaults for GNU ld with shared library support. These 10870 # are reset later if shared libraries are not supported. Putting them 10871 # here allows them to be overridden if necessary. 10872 runpath_var=LD_RUN_PATH 10873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10874 export_dynamic_flag_spec='${wl}--export-dynamic' 10875 # ancient GNU ld didn't support --whole-archive et. al. 10876 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10877 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10878 else 10879 whole_archive_flag_spec= 10880 fi 10881 supports_anon_versioning=no 10882 case `$LD -v 2>&1` in 10883 *GNU\ gold*) supports_anon_versioning=yes ;; 10884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10887 *\ 2.11.*) ;; # other 2.11 versions 10888 *) supports_anon_versioning=yes ;; 10889 esac 10890 10891 # See if GNU ld supports shared libraries. 10892 case $host_os in 10893 aix[3-9]*) 10894 # On AIX/PPC, the GNU linker is very broken 10895 if test "$host_cpu" != ia64; then 10896 ld_shlibs=no 10897 cat <<_LT_EOF 1>&2 10898 10899*** Warning: the GNU linker, at least up to release 2.19, is reported 10900*** to be unable to reliably create shared libraries on AIX. 10901*** Therefore, libtool is disabling shared libraries support. If you 10902*** really care for shared libraries, you may want to install binutils 10903*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10904*** You will then need to restart the configuration process. 10905 10906_LT_EOF 10907 fi 10908 ;; 10909 10910 amigaos*) 10911 case $host_cpu in 10912 powerpc) 10913 # see comment about AmigaOS4 .so support 10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10915 archive_expsym_cmds='' 10916 ;; 10917 m68k) 10918 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)' 10919 hardcode_libdir_flag_spec='-L$libdir' 10920 hardcode_minus_L=yes 10921 ;; 10922 esac 10923 ;; 10924 10925 beos*) 10926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10927 allow_undefined_flag=unsupported 10928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10929 # support --undefined. This deserves some investigation. FIXME 10930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10931 else 10932 ld_shlibs=no 10933 fi 10934 ;; 10935 10936 cygwin* | mingw* | pw32* | cegcc*) 10937 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10938 # as there is no search path for DLLs. 10939 hardcode_libdir_flag_spec='-L$libdir' 10940 export_dynamic_flag_spec='${wl}--export-all-symbols' 10941 allow_undefined_flag=unsupported 10942 always_export_symbols=no 10943 enable_shared_with_static_runtimes=yes 10944 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' 10945 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10946 10947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10949 # If the export-symbols file already is a .def file (1st line 10950 # is EXPORTS), use it as is; otherwise, prepend... 10951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10952 cp $export_symbols $output_objdir/$soname.def; 10953 else 10954 echo EXPORTS > $output_objdir/$soname.def; 10955 cat $export_symbols >> $output_objdir/$soname.def; 10956 fi~ 10957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10958 else 10959 ld_shlibs=no 10960 fi 10961 ;; 10962 10963 haiku*) 10964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10965 link_all_deplibs=yes 10966 ;; 10967 10968 interix[3-9]*) 10969 hardcode_direct=no 10970 hardcode_shlibpath_var=no 10971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10972 export_dynamic_flag_spec='${wl}-E' 10973 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10974 # Instead, shared libraries are loaded at an image base (0x10000000 by 10975 # default) and relocated if they conflict, which is a slow very memory 10976 # consuming and fragmenting process. To avoid this, we pick a random, 10977 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10978 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10980 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' 10981 ;; 10982 10983 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10984 tmp_diet=no 10985 if test "$host_os" = linux-dietlibc; then 10986 case $cc_basename in 10987 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10988 esac 10989 fi 10990 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10991 && test "$tmp_diet" = no 10992 then 10993 tmp_addflag=' $pic_flag' 10994 tmp_sharedflag='-shared' 10995 case $cc_basename,$host_cpu in 10996 pgcc*) # Portland Group C compiler 10997 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' 10998 tmp_addflag=' $pic_flag' 10999 ;; 11000 pgf77* | pgf90* | pgf95* | pgfortran*) 11001 # Portland Group f77 and f90 compilers 11002 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' 11003 tmp_addflag=' $pic_flag -Mnomain' ;; 11004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11005 tmp_addflag=' -i_dynamic' ;; 11006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11007 tmp_addflag=' -i_dynamic -nofor_main' ;; 11008 ifc* | ifort*) # Intel Fortran compiler 11009 tmp_addflag=' -nofor_main' ;; 11010 lf95*) # Lahey Fortran 8.1 11011 whole_archive_flag_spec= 11012 tmp_sharedflag='--shared' ;; 11013 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11014 tmp_sharedflag='-qmkshrobj' 11015 tmp_addflag= ;; 11016 nvcc*) # Cuda Compiler Driver 2.2 11017 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' 11018 compiler_needs_object=yes 11019 ;; 11020 esac 11021 case `$CC -V 2>&1 | sed 5q` in 11022 *Sun\ C*) # Sun C 5.9 11023 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' 11024 compiler_needs_object=yes 11025 tmp_sharedflag='-G' ;; 11026 *Sun\ F*) # Sun Fortran 8.3 11027 tmp_sharedflag='-G' ;; 11028 esac 11029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11030 11031 if test "x$supports_anon_versioning" = xyes; then 11032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11034 echo "local: *; };" >> $output_objdir/$libname.ver~ 11035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11036 fi 11037 11038 case $cc_basename in 11039 xlf* | bgf* | bgxlf* | mpixlf*) 11040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11043 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11044 if test "x$supports_anon_versioning" = xyes; then 11045 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11047 echo "local: *; };" >> $output_objdir/$libname.ver~ 11048 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11049 fi 11050 ;; 11051 esac 11052 else 11053 ld_shlibs=no 11054 fi 11055 ;; 11056 11057 netbsd*) 11058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11060 wlarc= 11061 else 11062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11064 fi 11065 ;; 11066 11067 solaris*) 11068 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11069 ld_shlibs=no 11070 cat <<_LT_EOF 1>&2 11071 11072*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11073*** create shared libraries on Solaris systems. Therefore, libtool 11074*** is disabling shared libraries support. We urge you to upgrade GNU 11075*** binutils to release 2.9.1 or newer. Another option is to modify 11076*** your PATH or compiler configuration so that the native linker is 11077*** used, and then restart. 11078 11079_LT_EOF 11080 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11082 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11083 else 11084 ld_shlibs=no 11085 fi 11086 ;; 11087 11088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11089 case `$LD -v 2>&1` in 11090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11091 ld_shlibs=no 11092 cat <<_LT_EOF 1>&2 11093 11094*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11095*** reliably create shared libraries on SCO systems. Therefore, libtool 11096*** is disabling shared libraries support. We urge you to upgrade GNU 11097*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11098*** your PATH or compiler configuration so that the native linker is 11099*** used, and then restart. 11100 11101_LT_EOF 11102 ;; 11103 *) 11104 # For security reasons, it is highly recommended that you always 11105 # use absolute paths for naming shared libraries, and exclude the 11106 # DT_RUNPATH tag from executables and libraries. But doing so 11107 # requires that you compile everything twice, which is a pain. 11108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11112 else 11113 ld_shlibs=no 11114 fi 11115 ;; 11116 esac 11117 ;; 11118 11119 sunos4*) 11120 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11121 wlarc= 11122 hardcode_direct=yes 11123 hardcode_shlibpath_var=no 11124 ;; 11125 11126 *) 11127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11129 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11130 else 11131 ld_shlibs=no 11132 fi 11133 ;; 11134 esac 11135 11136 if test "$ld_shlibs" = no; then 11137 runpath_var= 11138 hardcode_libdir_flag_spec= 11139 export_dynamic_flag_spec= 11140 whole_archive_flag_spec= 11141 fi 11142 else 11143 # PORTME fill in a description of your system's linker (not GNU ld) 11144 case $host_os in 11145 aix3*) 11146 allow_undefined_flag=unsupported 11147 always_export_symbols=yes 11148 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' 11149 # Note: this linker hardcodes the directories in LIBPATH if there 11150 # are no directories specified by -L. 11151 hardcode_minus_L=yes 11152 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11153 # Neither direct hardcoding nor static linking is supported with a 11154 # broken collect2. 11155 hardcode_direct=unsupported 11156 fi 11157 ;; 11158 11159 aix[4-9]*) 11160 if test "$host_cpu" = ia64; then 11161 # On IA64, the linker does run time linking by default, so we don't 11162 # have to do anything special. 11163 aix_use_runtimelinking=no 11164 exp_sym_flag='-Bexport' 11165 no_entry_flag="" 11166 else 11167 # If we're using GNU nm, then we don't want the "-C" option. 11168 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11169 # Also, AIX nm treats weak defined symbols like other global 11170 # defined symbols, whereas GNU nm marks them as "W". 11171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11172 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11173 else 11174 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11175 fi 11176 aix_use_runtimelinking=no 11177 11178 # Test if we are trying to use run time linking or normal 11179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11180 # need to do runtime linking. 11181 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11182 for ld_flag in $LDFLAGS; do 11183 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11184 aix_use_runtimelinking=yes 11185 break 11186 fi 11187 done 11188 ;; 11189 esac 11190 11191 exp_sym_flag='-bexport' 11192 no_entry_flag='-bnoentry' 11193 fi 11194 11195 # When large executables or shared objects are built, AIX ld can 11196 # have problems creating the table of contents. If linking a library 11197 # or program results in "error TOC overflow" add -mminimal-toc to 11198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11200 11201 archive_cmds='' 11202 hardcode_direct=yes 11203 hardcode_direct_absolute=yes 11204 hardcode_libdir_separator=':' 11205 link_all_deplibs=yes 11206 file_list_spec='${wl}-f,' 11207 11208 if test "$GCC" = yes; then 11209 case $host_os in aix4.[012]|aix4.[012].*) 11210 # We only want to do this on AIX 4.2 and lower, the check 11211 # below for broken collect2 doesn't work under 4.3+ 11212 collect2name=`${CC} -print-prog-name=collect2` 11213 if test -f "$collect2name" && 11214 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11215 then 11216 # We have reworked collect2 11217 : 11218 else 11219 # We have old collect2 11220 hardcode_direct=unsupported 11221 # It fails to find uninstalled libraries when the uninstalled 11222 # path is not listed in the libpath. Setting hardcode_minus_L 11223 # to unsupported forces relinking 11224 hardcode_minus_L=yes 11225 hardcode_libdir_flag_spec='-L$libdir' 11226 hardcode_libdir_separator= 11227 fi 11228 ;; 11229 esac 11230 shared_flag='-shared' 11231 if test "$aix_use_runtimelinking" = yes; then 11232 shared_flag="$shared_flag "'${wl}-G' 11233 fi 11234 else 11235 # not using gcc 11236 if test "$host_cpu" = ia64; then 11237 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11238 # chokes on -Wl,-G. The following line is correct: 11239 shared_flag='-G' 11240 else 11241 if test "$aix_use_runtimelinking" = yes; then 11242 shared_flag='${wl}-G' 11243 else 11244 shared_flag='${wl}-bM:SRE' 11245 fi 11246 fi 11247 fi 11248 11249 export_dynamic_flag_spec='${wl}-bexpall' 11250 # It seems that -bexpall does not export symbols beginning with 11251 # underscore (_), so it is better to generate a list of symbols to export. 11252 always_export_symbols=yes 11253 if test "$aix_use_runtimelinking" = yes; then 11254 # Warning - without using the other runtime loading flags (-brtl), 11255 # -berok will link without error, but may produce a broken library. 11256 allow_undefined_flag='-berok' 11257 # Determine the default libpath from the value encoded in an 11258 # empty executable. 11259 if test "${lt_cv_aix_libpath+set}" = set; then 11260 aix_libpath=$lt_cv_aix_libpath 11261else 11262 if ${lt_cv_aix_libpath_+:} false; then : 11263 $as_echo_n "(cached) " >&6 11264else 11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11266/* end confdefs.h. */ 11267 11268int 11269main () 11270{ 11271 11272 ; 11273 return 0; 11274} 11275_ACEOF 11276if ac_fn_c_try_link "$LINENO"; then : 11277 11278 lt_aix_libpath_sed=' 11279 /Import File Strings/,/^$/ { 11280 /^0/ { 11281 s/^0 *\([^ ]*\) *$/\1/ 11282 p 11283 } 11284 }' 11285 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11286 # Check for a 64-bit object if we didn't find anything. 11287 if test -z "$lt_cv_aix_libpath_"; then 11288 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11289 fi 11290fi 11291rm -f core conftest.err conftest.$ac_objext \ 11292 conftest$ac_exeext conftest.$ac_ext 11293 if test -z "$lt_cv_aix_libpath_"; then 11294 lt_cv_aix_libpath_="/usr/lib:/lib" 11295 fi 11296 11297fi 11298 11299 aix_libpath=$lt_cv_aix_libpath_ 11300fi 11301 11302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11303 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11304 else 11305 if test "$host_cpu" = ia64; then 11306 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11307 allow_undefined_flag="-z nodefs" 11308 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" 11309 else 11310 # Determine the default libpath from the value encoded in an 11311 # empty executable. 11312 if test "${lt_cv_aix_libpath+set}" = set; then 11313 aix_libpath=$lt_cv_aix_libpath 11314else 11315 if ${lt_cv_aix_libpath_+:} false; then : 11316 $as_echo_n "(cached) " >&6 11317else 11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320 11321int 11322main () 11323{ 11324 11325 ; 11326 return 0; 11327} 11328_ACEOF 11329if ac_fn_c_try_link "$LINENO"; then : 11330 11331 lt_aix_libpath_sed=' 11332 /Import File Strings/,/^$/ { 11333 /^0/ { 11334 s/^0 *\([^ ]*\) *$/\1/ 11335 p 11336 } 11337 }' 11338 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11339 # Check for a 64-bit object if we didn't find anything. 11340 if test -z "$lt_cv_aix_libpath_"; then 11341 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11342 fi 11343fi 11344rm -f core conftest.err conftest.$ac_objext \ 11345 conftest$ac_exeext conftest.$ac_ext 11346 if test -z "$lt_cv_aix_libpath_"; then 11347 lt_cv_aix_libpath_="/usr/lib:/lib" 11348 fi 11349 11350fi 11351 11352 aix_libpath=$lt_cv_aix_libpath_ 11353fi 11354 11355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11356 # Warning - without using the other run time loading flags, 11357 # -berok will link without error, but may produce a broken library. 11358 no_undefined_flag=' ${wl}-bernotok' 11359 allow_undefined_flag=' ${wl}-berok' 11360 if test "$with_gnu_ld" = yes; then 11361 # We only use this code for GNU lds that support --whole-archive. 11362 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11363 else 11364 # Exported symbols can be pulled into shared objects from archives 11365 whole_archive_flag_spec='$convenience' 11366 fi 11367 archive_cmds_need_lc=yes 11368 # This is similar to how AIX traditionally builds its shared libraries. 11369 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11370 fi 11371 fi 11372 ;; 11373 11374 amigaos*) 11375 case $host_cpu in 11376 powerpc) 11377 # see comment about AmigaOS4 .so support 11378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11379 archive_expsym_cmds='' 11380 ;; 11381 m68k) 11382 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)' 11383 hardcode_libdir_flag_spec='-L$libdir' 11384 hardcode_minus_L=yes 11385 ;; 11386 esac 11387 ;; 11388 11389 bsdi[45]*) 11390 export_dynamic_flag_spec=-rdynamic 11391 ;; 11392 11393 cygwin* | mingw* | pw32* | cegcc*) 11394 # When not using gcc, we currently assume that we are using 11395 # Microsoft Visual C++. 11396 # hardcode_libdir_flag_spec is actually meaningless, as there is 11397 # no search path for DLLs. 11398 case $cc_basename in 11399 cl*) 11400 # Native MSVC 11401 hardcode_libdir_flag_spec=' ' 11402 allow_undefined_flag=unsupported 11403 always_export_symbols=yes 11404 file_list_spec='@' 11405 # Tell ltmain to make .lib files, not .a files. 11406 libext=lib 11407 # Tell ltmain to make .dll files, not .so files. 11408 shrext_cmds=".dll" 11409 # FIXME: Setting linknames here is a bad hack. 11410 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11412 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11413 else 11414 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11415 fi~ 11416 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11417 linknames=' 11418 # The linker will not automatically build a static lib if we build a DLL. 11419 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11420 enable_shared_with_static_runtimes=yes 11421 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11423 # Don't use ranlib 11424 old_postinstall_cmds='chmod 644 $oldlib' 11425 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11426 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11427 case $lt_outputfile in 11428 *.exe|*.EXE) ;; 11429 *) 11430 lt_outputfile="$lt_outputfile.exe" 11431 lt_tool_outputfile="$lt_tool_outputfile.exe" 11432 ;; 11433 esac~ 11434 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11435 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11436 $RM "$lt_outputfile.manifest"; 11437 fi' 11438 ;; 11439 *) 11440 # Assume MSVC wrapper 11441 hardcode_libdir_flag_spec=' ' 11442 allow_undefined_flag=unsupported 11443 # Tell ltmain to make .lib files, not .a files. 11444 libext=lib 11445 # Tell ltmain to make .dll files, not .so files. 11446 shrext_cmds=".dll" 11447 # FIXME: Setting linknames here is a bad hack. 11448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11449 # The linker will automatically build a .lib file if we build a DLL. 11450 old_archive_from_new_cmds='true' 11451 # FIXME: Should let the user specify the lib program. 11452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11453 enable_shared_with_static_runtimes=yes 11454 ;; 11455 esac 11456 ;; 11457 11458 darwin* | rhapsody*) 11459 11460 11461 archive_cmds_need_lc=no 11462 hardcode_direct=no 11463 hardcode_automatic=yes 11464 hardcode_shlibpath_var=unsupported 11465 if test "$lt_cv_ld_force_load" = "yes"; then 11466 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\"`' 11467 11468 else 11469 whole_archive_flag_spec='' 11470 fi 11471 link_all_deplibs=yes 11472 allow_undefined_flag="$_lt_dar_allow_undefined" 11473 case $cc_basename in 11474 ifort*) _lt_dar_can_shared=yes ;; 11475 *) _lt_dar_can_shared=$GCC ;; 11476 esac 11477 if test "$_lt_dar_can_shared" = "yes"; then 11478 output_verbose_link_cmd=func_echo_all 11479 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11480 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11481 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}" 11482 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}" 11483 11484 else 11485 ld_shlibs=no 11486 fi 11487 11488 ;; 11489 11490 dgux*) 11491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11492 hardcode_libdir_flag_spec='-L$libdir' 11493 hardcode_shlibpath_var=no 11494 ;; 11495 11496 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11497 # support. Future versions do this automatically, but an explicit c++rt0.o 11498 # does not break anything, and helps significantly (at the cost of a little 11499 # extra space). 11500 freebsd2.2*) 11501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11502 hardcode_libdir_flag_spec='-R$libdir' 11503 hardcode_direct=yes 11504 hardcode_shlibpath_var=no 11505 ;; 11506 11507 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11508 freebsd2.*) 11509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11510 hardcode_direct=yes 11511 hardcode_minus_L=yes 11512 hardcode_shlibpath_var=no 11513 ;; 11514 11515 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11516 freebsd* | dragonfly*) 11517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11518 hardcode_libdir_flag_spec='-R$libdir' 11519 hardcode_direct=yes 11520 hardcode_shlibpath_var=no 11521 ;; 11522 11523 hpux9*) 11524 if test "$GCC" = yes; then 11525 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11526 else 11527 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11528 fi 11529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11530 hardcode_libdir_separator=: 11531 hardcode_direct=yes 11532 11533 # hardcode_minus_L: Not really in the search PATH, 11534 # but as the default location of the library. 11535 hardcode_minus_L=yes 11536 export_dynamic_flag_spec='${wl}-E' 11537 ;; 11538 11539 hpux10*) 11540 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11541 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11542 else 11543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11544 fi 11545 if test "$with_gnu_ld" = no; then 11546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11547 hardcode_libdir_separator=: 11548 hardcode_direct=yes 11549 hardcode_direct_absolute=yes 11550 export_dynamic_flag_spec='${wl}-E' 11551 # hardcode_minus_L: Not really in the search PATH, 11552 # but as the default location of the library. 11553 hardcode_minus_L=yes 11554 fi 11555 ;; 11556 11557 hpux11*) 11558 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11559 case $host_cpu in 11560 hppa*64*) 11561 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11562 ;; 11563 ia64*) 11564 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11565 ;; 11566 *) 11567 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11568 ;; 11569 esac 11570 else 11571 case $host_cpu in 11572 hppa*64*) 11573 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11574 ;; 11575 ia64*) 11576 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11577 ;; 11578 *) 11579 11580 # Older versions of the 11.00 compiler do not understand -b yet 11581 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11583$as_echo_n "checking if $CC understands -b... " >&6; } 11584if ${lt_cv_prog_compiler__b+:} false; then : 11585 $as_echo_n "(cached) " >&6 11586else 11587 lt_cv_prog_compiler__b=no 11588 save_LDFLAGS="$LDFLAGS" 11589 LDFLAGS="$LDFLAGS -b" 11590 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11591 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11592 # The linker can only warn and ignore the option if not recognized 11593 # So say no if there are warnings 11594 if test -s conftest.err; then 11595 # Append any errors to the config.log. 11596 cat conftest.err 1>&5 11597 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11599 if diff conftest.exp conftest.er2 >/dev/null; then 11600 lt_cv_prog_compiler__b=yes 11601 fi 11602 else 11603 lt_cv_prog_compiler__b=yes 11604 fi 11605 fi 11606 $RM -r conftest* 11607 LDFLAGS="$save_LDFLAGS" 11608 11609fi 11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11611$as_echo "$lt_cv_prog_compiler__b" >&6; } 11612 11613if test x"$lt_cv_prog_compiler__b" = xyes; then 11614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11615else 11616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11617fi 11618 11619 ;; 11620 esac 11621 fi 11622 if test "$with_gnu_ld" = no; then 11623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11624 hardcode_libdir_separator=: 11625 11626 case $host_cpu in 11627 hppa*64*|ia64*) 11628 hardcode_direct=no 11629 hardcode_shlibpath_var=no 11630 ;; 11631 *) 11632 hardcode_direct=yes 11633 hardcode_direct_absolute=yes 11634 export_dynamic_flag_spec='${wl}-E' 11635 11636 # hardcode_minus_L: Not really in the search PATH, 11637 # but as the default location of the library. 11638 hardcode_minus_L=yes 11639 ;; 11640 esac 11641 fi 11642 ;; 11643 11644 irix5* | irix6* | nonstopux*) 11645 if test "$GCC" = yes; then 11646 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' 11647 # Try to use the -exported_symbol ld option, if it does not 11648 # work, assume that -exports_file does not work either and 11649 # implicitly export all symbols. 11650 # This should be the same for all languages, so no per-tag cache variable. 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11652$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11653if ${lt_cv_irix_exported_symbol+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 save_LDFLAGS="$LDFLAGS" 11657 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11659/* end confdefs.h. */ 11660int foo (void) { return 0; } 11661_ACEOF 11662if ac_fn_c_try_link "$LINENO"; then : 11663 lt_cv_irix_exported_symbol=yes 11664else 11665 lt_cv_irix_exported_symbol=no 11666fi 11667rm -f core conftest.err conftest.$ac_objext \ 11668 conftest$ac_exeext conftest.$ac_ext 11669 LDFLAGS="$save_LDFLAGS" 11670fi 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11672$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11673 if test "$lt_cv_irix_exported_symbol" = yes; then 11674 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' 11675 fi 11676 else 11677 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' 11678 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' 11679 fi 11680 archive_cmds_need_lc='no' 11681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11682 hardcode_libdir_separator=: 11683 inherit_rpath=yes 11684 link_all_deplibs=yes 11685 ;; 11686 11687 netbsd*) 11688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11690 else 11691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11692 fi 11693 hardcode_libdir_flag_spec='-R$libdir' 11694 hardcode_direct=yes 11695 hardcode_shlibpath_var=no 11696 ;; 11697 11698 newsos6) 11699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11700 hardcode_direct=yes 11701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11702 hardcode_libdir_separator=: 11703 hardcode_shlibpath_var=no 11704 ;; 11705 11706 *nto* | *qnx*) 11707 ;; 11708 11709 openbsd*) 11710 if test -f /usr/libexec/ld.so; then 11711 hardcode_direct=yes 11712 hardcode_shlibpath_var=no 11713 hardcode_direct_absolute=yes 11714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11718 export_dynamic_flag_spec='${wl}-E' 11719 else 11720 case $host_os in 11721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11723 hardcode_libdir_flag_spec='-R$libdir' 11724 ;; 11725 *) 11726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11728 ;; 11729 esac 11730 fi 11731 else 11732 ld_shlibs=no 11733 fi 11734 ;; 11735 11736 os2*) 11737 hardcode_libdir_flag_spec='-L$libdir' 11738 hardcode_minus_L=yes 11739 allow_undefined_flag=unsupported 11740 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11741 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11742 ;; 11743 11744 osf3*) 11745 if test "$GCC" = yes; then 11746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11747 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' 11748 else 11749 allow_undefined_flag=' -expect_unresolved \*' 11750 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' 11751 fi 11752 archive_cmds_need_lc='no' 11753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11754 hardcode_libdir_separator=: 11755 ;; 11756 11757 osf4* | osf5*) # as osf3* with the addition of -msym flag 11758 if test "$GCC" = yes; then 11759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11760 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' 11761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11762 else 11763 allow_undefined_flag=' -expect_unresolved \*' 11764 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' 11765 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~ 11766 $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' 11767 11768 # Both c and cxx compiler support -rpath directly 11769 hardcode_libdir_flag_spec='-rpath $libdir' 11770 fi 11771 archive_cmds_need_lc='no' 11772 hardcode_libdir_separator=: 11773 ;; 11774 11775 solaris*) 11776 no_undefined_flag=' -z defs' 11777 if test "$GCC" = yes; then 11778 wlarc='${wl}' 11779 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11781 $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' 11782 else 11783 case `$CC -V 2>&1` in 11784 *"Compilers 5.0"*) 11785 wlarc='' 11786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11789 ;; 11790 *) 11791 wlarc='${wl}' 11792 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11794 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11795 ;; 11796 esac 11797 fi 11798 hardcode_libdir_flag_spec='-R$libdir' 11799 hardcode_shlibpath_var=no 11800 case $host_os in 11801 solaris2.[0-5] | solaris2.[0-5].*) ;; 11802 *) 11803 # The compiler driver will combine and reorder linker options, 11804 # but understands `-z linker_flag'. GCC discards it without `$wl', 11805 # but is careful enough not to reorder. 11806 # Supported since Solaris 2.6 (maybe 2.5.1?) 11807 if test "$GCC" = yes; then 11808 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11809 else 11810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11811 fi 11812 ;; 11813 esac 11814 link_all_deplibs=yes 11815 ;; 11816 11817 sunos4*) 11818 if test "x$host_vendor" = xsequent; then 11819 # Use $CC to link under sequent, because it throws in some extra .o 11820 # files that make .init and .fini sections work. 11821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11822 else 11823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11824 fi 11825 hardcode_libdir_flag_spec='-L$libdir' 11826 hardcode_direct=yes 11827 hardcode_minus_L=yes 11828 hardcode_shlibpath_var=no 11829 ;; 11830 11831 sysv4) 11832 case $host_vendor in 11833 sni) 11834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11835 hardcode_direct=yes # is this really true??? 11836 ;; 11837 siemens) 11838 ## LD is ld it makes a PLAMLIB 11839 ## CC just makes a GrossModule. 11840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11841 reload_cmds='$CC -r -o $output$reload_objs' 11842 hardcode_direct=no 11843 ;; 11844 motorola) 11845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11847 ;; 11848 esac 11849 runpath_var='LD_RUN_PATH' 11850 hardcode_shlibpath_var=no 11851 ;; 11852 11853 sysv4.3*) 11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11855 hardcode_shlibpath_var=no 11856 export_dynamic_flag_spec='-Bexport' 11857 ;; 11858 11859 sysv4*MP*) 11860 if test -d /usr/nec; then 11861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11862 hardcode_shlibpath_var=no 11863 runpath_var=LD_RUN_PATH 11864 hardcode_runpath_var=yes 11865 ld_shlibs=yes 11866 fi 11867 ;; 11868 11869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11870 no_undefined_flag='${wl}-z,text' 11871 archive_cmds_need_lc=no 11872 hardcode_shlibpath_var=no 11873 runpath_var='LD_RUN_PATH' 11874 11875 if test "$GCC" = yes; then 11876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11878 else 11879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11881 fi 11882 ;; 11883 11884 sysv5* | sco3.2v5* | sco5v6*) 11885 # Note: We can NOT use -z defs as we might desire, because we do not 11886 # link with -lc, and that would cause any symbols used from libc to 11887 # always be unresolved, which means just about no library would 11888 # ever link correctly. If we're not using GNU ld we use -z text 11889 # though, which does catch some bad symbols but isn't as heavy-handed 11890 # as -z defs. 11891 no_undefined_flag='${wl}-z,text' 11892 allow_undefined_flag='${wl}-z,nodefs' 11893 archive_cmds_need_lc=no 11894 hardcode_shlibpath_var=no 11895 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11896 hardcode_libdir_separator=':' 11897 link_all_deplibs=yes 11898 export_dynamic_flag_spec='${wl}-Bexport' 11899 runpath_var='LD_RUN_PATH' 11900 11901 if test "$GCC" = yes; then 11902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11904 else 11905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11907 fi 11908 ;; 11909 11910 uts4*) 11911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11912 hardcode_libdir_flag_spec='-L$libdir' 11913 hardcode_shlibpath_var=no 11914 ;; 11915 11916 *) 11917 ld_shlibs=no 11918 ;; 11919 esac 11920 11921 if test x$host_vendor = xsni; then 11922 case $host in 11923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11924 export_dynamic_flag_spec='${wl}-Blargedynsym' 11925 ;; 11926 esac 11927 fi 11928 fi 11929 11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11931$as_echo "$ld_shlibs" >&6; } 11932test "$ld_shlibs" = no && can_build_shared=no 11933 11934with_gnu_ld=$with_gnu_ld 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950# 11951# Do we need to explicitly link libc? 11952# 11953case "x$archive_cmds_need_lc" in 11954x|xyes) 11955 # Assume -lc should be added 11956 archive_cmds_need_lc=yes 11957 11958 if test "$enable_shared" = yes && test "$GCC" = yes; then 11959 case $archive_cmds in 11960 *'~'*) 11961 # FIXME: we may have to deal with multi-command sequences. 11962 ;; 11963 '$CC '*) 11964 # Test whether the compiler implicitly links with -lc since on some 11965 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11966 # to ld, don't add -lc before -lgcc. 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11968$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11969if ${lt_cv_archive_cmds_need_lc+:} false; then : 11970 $as_echo_n "(cached) " >&6 11971else 11972 $RM conftest* 11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11974 11975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11976 (eval $ac_compile) 2>&5 11977 ac_status=$? 11978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11979 test $ac_status = 0; } 2>conftest.err; then 11980 soname=conftest 11981 lib=conftest 11982 libobjs=conftest.$ac_objext 11983 deplibs= 11984 wl=$lt_prog_compiler_wl 11985 pic_flag=$lt_prog_compiler_pic 11986 compiler_flags=-v 11987 linker_flags=-v 11988 verstring= 11989 output_objdir=. 11990 libname=conftest 11991 lt_save_allow_undefined_flag=$allow_undefined_flag 11992 allow_undefined_flag= 11993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11994 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11995 ac_status=$? 11996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11997 test $ac_status = 0; } 11998 then 11999 lt_cv_archive_cmds_need_lc=no 12000 else 12001 lt_cv_archive_cmds_need_lc=yes 12002 fi 12003 allow_undefined_flag=$lt_save_allow_undefined_flag 12004 else 12005 cat conftest.err 1>&5 12006 fi 12007 $RM conftest* 12008 12009fi 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12011$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12012 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12013 ;; 12014 esac 12015 fi 12016 ;; 12017esac 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12171$as_echo_n "checking dynamic linker characteristics... " >&6; } 12172 12173if test "$GCC" = yes; then 12174 case $host_os in 12175 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12176 *) lt_awk_arg="/^libraries:/" ;; 12177 esac 12178 case $host_os in 12179 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12180 *) lt_sed_strip_eq="s,=/,/,g" ;; 12181 esac 12182 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12183 case $lt_search_path_spec in 12184 *\;*) 12185 # if the path contains ";" then we assume it to be the separator 12186 # otherwise default to the standard path separator (i.e. ":") - it is 12187 # assumed that no part of a normal pathname contains ";" but that should 12188 # okay in the real world where ";" in dirpaths is itself problematic. 12189 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12190 ;; 12191 *) 12192 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12193 ;; 12194 esac 12195 # Ok, now we have the path, separated by spaces, we can step through it 12196 # and add multilib dir if necessary. 12197 lt_tmp_lt_search_path_spec= 12198 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12199 for lt_sys_path in $lt_search_path_spec; do 12200 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12202 else 12203 test -d "$lt_sys_path" && \ 12204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12205 fi 12206 done 12207 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12208BEGIN {RS=" "; FS="/|\n";} { 12209 lt_foo=""; 12210 lt_count=0; 12211 for (lt_i = NF; lt_i > 0; lt_i--) { 12212 if ($lt_i != "" && $lt_i != ".") { 12213 if ($lt_i == "..") { 12214 lt_count++; 12215 } else { 12216 if (lt_count == 0) { 12217 lt_foo="/" $lt_i lt_foo; 12218 } else { 12219 lt_count--; 12220 } 12221 } 12222 } 12223 } 12224 if (lt_foo != "") { lt_freq[lt_foo]++; } 12225 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12226}'` 12227 # AWK program above erroneously prepends '/' to C:/dos/paths 12228 # for these hosts. 12229 case $host_os in 12230 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12231 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12232 esac 12233 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12234else 12235 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12236fi 12237library_names_spec= 12238libname_spec='lib$name' 12239soname_spec= 12240shrext_cmds=".so" 12241postinstall_cmds= 12242postuninstall_cmds= 12243finish_cmds= 12244finish_eval= 12245shlibpath_var= 12246shlibpath_overrides_runpath=unknown 12247version_type=none 12248dynamic_linker="$host_os ld.so" 12249sys_lib_dlsearch_path_spec="/lib /usr/lib" 12250need_lib_prefix=unknown 12251hardcode_into_libs=no 12252 12253# when you set need_version to no, make sure it does not cause -set_version 12254# flags to be left without arguments 12255need_version=unknown 12256 12257case $host_os in 12258aix3*) 12259 version_type=linux # correct to gnu/linux during the next big refactor 12260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12261 shlibpath_var=LIBPATH 12262 12263 # AIX 3 has no versioning support, so we append a major version to the name. 12264 soname_spec='${libname}${release}${shared_ext}$major' 12265 ;; 12266 12267aix[4-9]*) 12268 version_type=linux # correct to gnu/linux during the next big refactor 12269 need_lib_prefix=no 12270 need_version=no 12271 hardcode_into_libs=yes 12272 if test "$host_cpu" = ia64; then 12273 # AIX 5 supports IA64 12274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12275 shlibpath_var=LD_LIBRARY_PATH 12276 else 12277 # With GCC up to 2.95.x, collect2 would create an import file 12278 # for dependence libraries. The import file would start with 12279 # the line `#! .'. This would cause the generated library to 12280 # depend on `.', always an invalid library. This was fixed in 12281 # development snapshots of GCC prior to 3.0. 12282 case $host_os in 12283 aix4 | aix4.[01] | aix4.[01].*) 12284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12285 echo ' yes ' 12286 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12287 : 12288 else 12289 can_build_shared=no 12290 fi 12291 ;; 12292 esac 12293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12294 # soname into executable. Probably we can add versioning support to 12295 # collect2, so additional links can be useful in future. 12296 if test "$aix_use_runtimelinking" = yes; then 12297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12298 # instead of lib<name>.a to let people know that these are not 12299 # typical AIX shared libraries. 12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12301 else 12302 # We preserve .a as extension for shared libraries through AIX4.2 12303 # and later when we are not doing run time linking. 12304 library_names_spec='${libname}${release}.a $libname.a' 12305 soname_spec='${libname}${release}${shared_ext}$major' 12306 fi 12307 shlibpath_var=LIBPATH 12308 fi 12309 ;; 12310 12311amigaos*) 12312 case $host_cpu in 12313 powerpc) 12314 # Since July 2007 AmigaOS4 officially supports .so libraries. 12315 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12317 ;; 12318 m68k) 12319 library_names_spec='$libname.ixlibrary $libname.a' 12320 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12321 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12322 ;; 12323 esac 12324 ;; 12325 12326beos*) 12327 library_names_spec='${libname}${shared_ext}' 12328 dynamic_linker="$host_os ld.so" 12329 shlibpath_var=LIBRARY_PATH 12330 ;; 12331 12332bsdi[45]*) 12333 version_type=linux # correct to gnu/linux during the next big refactor 12334 need_version=no 12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12336 soname_spec='${libname}${release}${shared_ext}$major' 12337 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12338 shlibpath_var=LD_LIBRARY_PATH 12339 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12340 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12341 # the default ld.so.conf also contains /usr/contrib/lib and 12342 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12343 # libtool to hard-code these into programs 12344 ;; 12345 12346cygwin* | mingw* | pw32* | cegcc*) 12347 version_type=windows 12348 shrext_cmds=".dll" 12349 need_version=no 12350 need_lib_prefix=no 12351 12352 case $GCC,$cc_basename in 12353 yes,*) 12354 # gcc 12355 library_names_spec='$libname.dll.a' 12356 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12357 postinstall_cmds='base_file=`basename \${file}`~ 12358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12359 dldir=$destdir/`dirname \$dlpath`~ 12360 test -d \$dldir || mkdir -p \$dldir~ 12361 $install_prog $dir/$dlname \$dldir/$dlname~ 12362 chmod a+x \$dldir/$dlname~ 12363 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12364 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12365 fi' 12366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12367 dlpath=$dir/\$dldll~ 12368 $RM \$dlpath' 12369 shlibpath_overrides_runpath=yes 12370 12371 case $host_os in 12372 cygwin*) 12373 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12375 12376 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12377 ;; 12378 mingw* | cegcc*) 12379 # MinGW DLLs use traditional 'lib' prefix 12380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12381 ;; 12382 pw32*) 12383 # pw32 DLLs use 'pw' prefix rather than 'lib' 12384 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12385 ;; 12386 esac 12387 dynamic_linker='Win32 ld.exe' 12388 ;; 12389 12390 *,cl*) 12391 # Native MSVC 12392 libname_spec='$name' 12393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12394 library_names_spec='${libname}.dll.lib' 12395 12396 case $build_os in 12397 mingw*) 12398 sys_lib_search_path_spec= 12399 lt_save_ifs=$IFS 12400 IFS=';' 12401 for lt_path in $LIB 12402 do 12403 IFS=$lt_save_ifs 12404 # Let DOS variable expansion print the short 8.3 style file name. 12405 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12406 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12407 done 12408 IFS=$lt_save_ifs 12409 # Convert to MSYS style. 12410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12411 ;; 12412 cygwin*) 12413 # Convert to unix form, then to dos form, then back to unix form 12414 # but this time dos style (no spaces!) so that the unix form looks 12415 # like /cygdrive/c/PROGRA~1:/cygdr... 12416 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12417 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12418 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12419 ;; 12420 *) 12421 sys_lib_search_path_spec="$LIB" 12422 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12423 # It is most probably a Windows format PATH. 12424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12425 else 12426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12427 fi 12428 # FIXME: find the short name or the path components, as spaces are 12429 # common. (e.g. "Program Files" -> "PROGRA~1") 12430 ;; 12431 esac 12432 12433 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12434 postinstall_cmds='base_file=`basename \${file}`~ 12435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12436 dldir=$destdir/`dirname \$dlpath`~ 12437 test -d \$dldir || mkdir -p \$dldir~ 12438 $install_prog $dir/$dlname \$dldir/$dlname' 12439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12440 dlpath=$dir/\$dldll~ 12441 $RM \$dlpath' 12442 shlibpath_overrides_runpath=yes 12443 dynamic_linker='Win32 link.exe' 12444 ;; 12445 12446 *) 12447 # Assume MSVC wrapper 12448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12449 dynamic_linker='Win32 ld.exe' 12450 ;; 12451 esac 12452 # FIXME: first we should search . and the directory the executable is in 12453 shlibpath_var=PATH 12454 ;; 12455 12456darwin* | rhapsody*) 12457 dynamic_linker="$host_os dyld" 12458 version_type=darwin 12459 need_lib_prefix=no 12460 need_version=no 12461 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12462 soname_spec='${libname}${release}${major}$shared_ext' 12463 shlibpath_overrides_runpath=yes 12464 shlibpath_var=DYLD_LIBRARY_PATH 12465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12466 12467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12469 ;; 12470 12471dgux*) 12472 version_type=linux # correct to gnu/linux during the next big refactor 12473 need_lib_prefix=no 12474 need_version=no 12475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12476 soname_spec='${libname}${release}${shared_ext}$major' 12477 shlibpath_var=LD_LIBRARY_PATH 12478 ;; 12479 12480freebsd* | dragonfly*) 12481 # DragonFly does not have aout. When/if they implement a new 12482 # versioning mechanism, adjust this. 12483 if test -x /usr/bin/objformat; then 12484 objformat=`/usr/bin/objformat` 12485 else 12486 case $host_os in 12487 freebsd[23].*) objformat=aout ;; 12488 *) objformat=elf ;; 12489 esac 12490 fi 12491 version_type=freebsd-$objformat 12492 case $version_type in 12493 freebsd-elf*) 12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12495 need_version=no 12496 need_lib_prefix=no 12497 ;; 12498 freebsd-*) 12499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12500 need_version=yes 12501 ;; 12502 esac 12503 shlibpath_var=LD_LIBRARY_PATH 12504 case $host_os in 12505 freebsd2.*) 12506 shlibpath_overrides_runpath=yes 12507 ;; 12508 freebsd3.[01]* | freebsdelf3.[01]*) 12509 shlibpath_overrides_runpath=yes 12510 hardcode_into_libs=yes 12511 ;; 12512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12514 shlibpath_overrides_runpath=no 12515 hardcode_into_libs=yes 12516 ;; 12517 *) # from 4.6 on, and DragonFly 12518 shlibpath_overrides_runpath=yes 12519 hardcode_into_libs=yes 12520 ;; 12521 esac 12522 ;; 12523 12524gnu*) 12525 version_type=linux # correct to gnu/linux during the next big refactor 12526 need_lib_prefix=no 12527 need_version=no 12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12529 soname_spec='${libname}${release}${shared_ext}$major' 12530 shlibpath_var=LD_LIBRARY_PATH 12531 shlibpath_overrides_runpath=no 12532 hardcode_into_libs=yes 12533 ;; 12534 12535haiku*) 12536 version_type=linux # correct to gnu/linux during the next big refactor 12537 need_lib_prefix=no 12538 need_version=no 12539 dynamic_linker="$host_os runtime_loader" 12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12541 soname_spec='${libname}${release}${shared_ext}$major' 12542 shlibpath_var=LIBRARY_PATH 12543 shlibpath_overrides_runpath=yes 12544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12545 hardcode_into_libs=yes 12546 ;; 12547 12548hpux9* | hpux10* | hpux11*) 12549 # Give a soname corresponding to the major version so that dld.sl refuses to 12550 # link against other versions. 12551 version_type=sunos 12552 need_lib_prefix=no 12553 need_version=no 12554 case $host_cpu in 12555 ia64*) 12556 shrext_cmds='.so' 12557 hardcode_into_libs=yes 12558 dynamic_linker="$host_os dld.so" 12559 shlibpath_var=LD_LIBRARY_PATH 12560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12562 soname_spec='${libname}${release}${shared_ext}$major' 12563 if test "X$HPUX_IA64_MODE" = X32; then 12564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12565 else 12566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12567 fi 12568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12569 ;; 12570 hppa*64*) 12571 shrext_cmds='.sl' 12572 hardcode_into_libs=yes 12573 dynamic_linker="$host_os dld.sl" 12574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12577 soname_spec='${libname}${release}${shared_ext}$major' 12578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12580 ;; 12581 *) 12582 shrext_cmds='.sl' 12583 dynamic_linker="$host_os dld.sl" 12584 shlibpath_var=SHLIB_PATH 12585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12587 soname_spec='${libname}${release}${shared_ext}$major' 12588 ;; 12589 esac 12590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12591 postinstall_cmds='chmod 555 $lib' 12592 # or fails outright, so override atomically: 12593 install_override_mode=555 12594 ;; 12595 12596interix[3-9]*) 12597 version_type=linux # correct to gnu/linux during the next big refactor 12598 need_lib_prefix=no 12599 need_version=no 12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12601 soname_spec='${libname}${release}${shared_ext}$major' 12602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12603 shlibpath_var=LD_LIBRARY_PATH 12604 shlibpath_overrides_runpath=no 12605 hardcode_into_libs=yes 12606 ;; 12607 12608irix5* | irix6* | nonstopux*) 12609 case $host_os in 12610 nonstopux*) version_type=nonstopux ;; 12611 *) 12612 if test "$lt_cv_prog_gnu_ld" = yes; then 12613 version_type=linux # correct to gnu/linux during the next big refactor 12614 else 12615 version_type=irix 12616 fi ;; 12617 esac 12618 need_lib_prefix=no 12619 need_version=no 12620 soname_spec='${libname}${release}${shared_ext}$major' 12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12622 case $host_os in 12623 irix5* | nonstopux*) 12624 libsuff= shlibsuff= 12625 ;; 12626 *) 12627 case $LD in # libtool.m4 will add one of these switches to LD 12628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12629 libsuff= shlibsuff= libmagic=32-bit;; 12630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12631 libsuff=32 shlibsuff=N32 libmagic=N32;; 12632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12633 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12634 *) libsuff= shlibsuff= libmagic=never-match;; 12635 esac 12636 ;; 12637 esac 12638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12639 shlibpath_overrides_runpath=no 12640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12642 hardcode_into_libs=yes 12643 ;; 12644 12645# No shared lib support for Linux oldld, aout, or coff. 12646linux*oldld* | linux*aout* | linux*coff*) 12647 dynamic_linker=no 12648 ;; 12649 12650# This must be glibc/ELF. 12651linux* | k*bsd*-gnu | kopensolaris*-gnu) 12652 version_type=linux # correct to gnu/linux during the next big refactor 12653 need_lib_prefix=no 12654 need_version=no 12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12656 soname_spec='${libname}${release}${shared_ext}$major' 12657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12658 shlibpath_var=LD_LIBRARY_PATH 12659 shlibpath_overrides_runpath=no 12660 12661 # Some binutils ld are patched to set DT_RUNPATH 12662 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12663 $as_echo_n "(cached) " >&6 12664else 12665 lt_cv_shlibpath_overrides_runpath=no 12666 save_LDFLAGS=$LDFLAGS 12667 save_libdir=$libdir 12668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12671/* end confdefs.h. */ 12672 12673int 12674main () 12675{ 12676 12677 ; 12678 return 0; 12679} 12680_ACEOF 12681if ac_fn_c_try_link "$LINENO"; then : 12682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12683 lt_cv_shlibpath_overrides_runpath=yes 12684fi 12685fi 12686rm -f core conftest.err conftest.$ac_objext \ 12687 conftest$ac_exeext conftest.$ac_ext 12688 LDFLAGS=$save_LDFLAGS 12689 libdir=$save_libdir 12690 12691fi 12692 12693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12694 12695 # This implies no fast_install, which is unacceptable. 12696 # Some rework will be needed to allow for fast_install 12697 # before this can be enabled. 12698 hardcode_into_libs=yes 12699 12700 # Add ABI-specific directories to the system library path. 12701 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12702 12703 # Append ld.so.conf contents to the search path 12704 if test -f /etc/ld.so.conf; then 12705 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' ' '` 12706 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12707 12708 fi 12709 12710 # We used to test for /lib/ld.so.1 and disable shared libraries on 12711 # powerpc, because MkLinux only supported shared libraries with the 12712 # GNU dynamic linker. Since this was broken with cross compilers, 12713 # most powerpc-linux boxes support dynamic linking these days and 12714 # people can always --disable-shared, the test was removed, and we 12715 # assume the GNU/Linux dynamic linker is in use. 12716 dynamic_linker='GNU/Linux ld.so' 12717 ;; 12718 12719netbsd*) 12720 version_type=sunos 12721 need_lib_prefix=no 12722 need_version=no 12723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12726 dynamic_linker='NetBSD (a.out) ld.so' 12727 else 12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12729 soname_spec='${libname}${release}${shared_ext}$major' 12730 dynamic_linker='NetBSD ld.elf_so' 12731 fi 12732 shlibpath_var=LD_LIBRARY_PATH 12733 shlibpath_overrides_runpath=yes 12734 hardcode_into_libs=yes 12735 ;; 12736 12737newsos6) 12738 version_type=linux # correct to gnu/linux during the next big refactor 12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12740 shlibpath_var=LD_LIBRARY_PATH 12741 shlibpath_overrides_runpath=yes 12742 ;; 12743 12744*nto* | *qnx*) 12745 version_type=qnx 12746 need_lib_prefix=no 12747 need_version=no 12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12749 soname_spec='${libname}${release}${shared_ext}$major' 12750 shlibpath_var=LD_LIBRARY_PATH 12751 shlibpath_overrides_runpath=no 12752 hardcode_into_libs=yes 12753 dynamic_linker='ldqnx.so' 12754 ;; 12755 12756openbsd*) 12757 version_type=sunos 12758 sys_lib_dlsearch_path_spec="/usr/lib" 12759 need_lib_prefix=no 12760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12761 case $host_os in 12762 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12763 *) need_version=no ;; 12764 esac 12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12767 shlibpath_var=LD_LIBRARY_PATH 12768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12769 case $host_os in 12770 openbsd2.[89] | openbsd2.[89].*) 12771 shlibpath_overrides_runpath=no 12772 ;; 12773 *) 12774 shlibpath_overrides_runpath=yes 12775 ;; 12776 esac 12777 else 12778 shlibpath_overrides_runpath=yes 12779 fi 12780 ;; 12781 12782os2*) 12783 libname_spec='$name' 12784 shrext_cmds=".dll" 12785 need_lib_prefix=no 12786 library_names_spec='$libname${shared_ext} $libname.a' 12787 dynamic_linker='OS/2 ld.exe' 12788 shlibpath_var=LIBPATH 12789 ;; 12790 12791osf3* | osf4* | osf5*) 12792 version_type=osf 12793 need_lib_prefix=no 12794 need_version=no 12795 soname_spec='${libname}${release}${shared_ext}$major' 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12797 shlibpath_var=LD_LIBRARY_PATH 12798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12800 ;; 12801 12802rdos*) 12803 dynamic_linker=no 12804 ;; 12805 12806solaris*) 12807 version_type=linux # correct to gnu/linux during the next big refactor 12808 need_lib_prefix=no 12809 need_version=no 12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12811 soname_spec='${libname}${release}${shared_ext}$major' 12812 shlibpath_var=LD_LIBRARY_PATH 12813 shlibpath_overrides_runpath=yes 12814 hardcode_into_libs=yes 12815 # ldd complains unless libraries are executable 12816 postinstall_cmds='chmod +x $lib' 12817 ;; 12818 12819sunos4*) 12820 version_type=sunos 12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12823 shlibpath_var=LD_LIBRARY_PATH 12824 shlibpath_overrides_runpath=yes 12825 if test "$with_gnu_ld" = yes; then 12826 need_lib_prefix=no 12827 fi 12828 need_version=yes 12829 ;; 12830 12831sysv4 | sysv4.3*) 12832 version_type=linux # correct to gnu/linux during the next big refactor 12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12834 soname_spec='${libname}${release}${shared_ext}$major' 12835 shlibpath_var=LD_LIBRARY_PATH 12836 case $host_vendor in 12837 sni) 12838 shlibpath_overrides_runpath=no 12839 need_lib_prefix=no 12840 runpath_var=LD_RUN_PATH 12841 ;; 12842 siemens) 12843 need_lib_prefix=no 12844 ;; 12845 motorola) 12846 need_lib_prefix=no 12847 need_version=no 12848 shlibpath_overrides_runpath=no 12849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12850 ;; 12851 esac 12852 ;; 12853 12854sysv4*MP*) 12855 if test -d /usr/nec ;then 12856 version_type=linux # correct to gnu/linux during the next big refactor 12857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12858 soname_spec='$libname${shared_ext}.$major' 12859 shlibpath_var=LD_LIBRARY_PATH 12860 fi 12861 ;; 12862 12863sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12864 version_type=freebsd-elf 12865 need_lib_prefix=no 12866 need_version=no 12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12868 soname_spec='${libname}${release}${shared_ext}$major' 12869 shlibpath_var=LD_LIBRARY_PATH 12870 shlibpath_overrides_runpath=yes 12871 hardcode_into_libs=yes 12872 if test "$with_gnu_ld" = yes; then 12873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12874 else 12875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12876 case $host_os in 12877 sco3.2v5*) 12878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12879 ;; 12880 esac 12881 fi 12882 sys_lib_dlsearch_path_spec='/usr/lib' 12883 ;; 12884 12885tpf*) 12886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12887 version_type=linux # correct to gnu/linux during the next big refactor 12888 need_lib_prefix=no 12889 need_version=no 12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12891 shlibpath_var=LD_LIBRARY_PATH 12892 shlibpath_overrides_runpath=no 12893 hardcode_into_libs=yes 12894 ;; 12895 12896uts4*) 12897 version_type=linux # correct to gnu/linux during the next big refactor 12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12899 soname_spec='${libname}${release}${shared_ext}$major' 12900 shlibpath_var=LD_LIBRARY_PATH 12901 ;; 12902 12903*) 12904 dynamic_linker=no 12905 ;; 12906esac 12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12908$as_echo "$dynamic_linker" >&6; } 12909test "$dynamic_linker" = no && can_build_shared=no 12910 12911variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12912if test "$GCC" = yes; then 12913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12914fi 12915 12916if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12918fi 12919if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12921fi 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13015$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13016hardcode_action= 13017if test -n "$hardcode_libdir_flag_spec" || 13018 test -n "$runpath_var" || 13019 test "X$hardcode_automatic" = "Xyes" ; then 13020 13021 # We can hardcode non-existent directories. 13022 if test "$hardcode_direct" != no && 13023 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13024 # have to relink, otherwise we might link with an installed library 13025 # when we should be linking with a yet-to-be-installed one 13026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13027 test "$hardcode_minus_L" != no; then 13028 # Linking always hardcodes the temporary library directory. 13029 hardcode_action=relink 13030 else 13031 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13032 hardcode_action=immediate 13033 fi 13034else 13035 # We cannot hardcode anything, or else we can only hardcode existing 13036 # directories. 13037 hardcode_action=unsupported 13038fi 13039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13040$as_echo "$hardcode_action" >&6; } 13041 13042if test "$hardcode_action" = relink || 13043 test "$inherit_rpath" = yes; then 13044 # Fast installation is not supported 13045 enable_fast_install=no 13046elif test "$shlibpath_overrides_runpath" = yes || 13047 test "$enable_shared" = no; then 13048 # Fast installation is not necessary 13049 enable_fast_install=needless 13050fi 13051 13052 13053 13054 13055 13056 13057 if test "x$enable_dlopen" != xyes; then 13058 enable_dlopen=unknown 13059 enable_dlopen_self=unknown 13060 enable_dlopen_self_static=unknown 13061else 13062 lt_cv_dlopen=no 13063 lt_cv_dlopen_libs= 13064 13065 case $host_os in 13066 beos*) 13067 lt_cv_dlopen="load_add_on" 13068 lt_cv_dlopen_libs= 13069 lt_cv_dlopen_self=yes 13070 ;; 13071 13072 mingw* | pw32* | cegcc*) 13073 lt_cv_dlopen="LoadLibrary" 13074 lt_cv_dlopen_libs= 13075 ;; 13076 13077 cygwin*) 13078 lt_cv_dlopen="dlopen" 13079 lt_cv_dlopen_libs= 13080 ;; 13081 13082 darwin*) 13083 # if libdl is installed we need to link against it 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13085$as_echo_n "checking for dlopen in -ldl... " >&6; } 13086if ${ac_cv_lib_dl_dlopen+:} false; then : 13087 $as_echo_n "(cached) " >&6 13088else 13089 ac_check_lib_save_LIBS=$LIBS 13090LIBS="-ldl $LIBS" 13091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13092/* end confdefs.h. */ 13093 13094/* Override any GCC internal prototype to avoid an error. 13095 Use char because int might match the return type of a GCC 13096 builtin and then its argument prototype would still apply. */ 13097#ifdef __cplusplus 13098extern "C" 13099#endif 13100char dlopen (); 13101int 13102main () 13103{ 13104return dlopen (); 13105 ; 13106 return 0; 13107} 13108_ACEOF 13109if ac_fn_c_try_link "$LINENO"; then : 13110 ac_cv_lib_dl_dlopen=yes 13111else 13112 ac_cv_lib_dl_dlopen=no 13113fi 13114rm -f core conftest.err conftest.$ac_objext \ 13115 conftest$ac_exeext conftest.$ac_ext 13116LIBS=$ac_check_lib_save_LIBS 13117fi 13118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13119$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13120if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13122else 13123 13124 lt_cv_dlopen="dyld" 13125 lt_cv_dlopen_libs= 13126 lt_cv_dlopen_self=yes 13127 13128fi 13129 13130 ;; 13131 13132 *) 13133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13134if test "x$ac_cv_func_shl_load" = xyes; then : 13135 lt_cv_dlopen="shl_load" 13136else 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13138$as_echo_n "checking for shl_load in -ldld... " >&6; } 13139if ${ac_cv_lib_dld_shl_load+:} false; then : 13140 $as_echo_n "(cached) " >&6 13141else 13142 ac_check_lib_save_LIBS=$LIBS 13143LIBS="-ldld $LIBS" 13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146 13147/* Override any GCC internal prototype to avoid an error. 13148 Use char because int might match the return type of a GCC 13149 builtin and then its argument prototype would still apply. */ 13150#ifdef __cplusplus 13151extern "C" 13152#endif 13153char shl_load (); 13154int 13155main () 13156{ 13157return shl_load (); 13158 ; 13159 return 0; 13160} 13161_ACEOF 13162if ac_fn_c_try_link "$LINENO"; then : 13163 ac_cv_lib_dld_shl_load=yes 13164else 13165 ac_cv_lib_dld_shl_load=no 13166fi 13167rm -f core conftest.err conftest.$ac_objext \ 13168 conftest$ac_exeext conftest.$ac_ext 13169LIBS=$ac_check_lib_save_LIBS 13170fi 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13172$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13173if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13174 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13175else 13176 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13177if test "x$ac_cv_func_dlopen" = xyes; then : 13178 lt_cv_dlopen="dlopen" 13179else 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13181$as_echo_n "checking for dlopen in -ldl... " >&6; } 13182if ${ac_cv_lib_dl_dlopen+:} false; then : 13183 $as_echo_n "(cached) " >&6 13184else 13185 ac_check_lib_save_LIBS=$LIBS 13186LIBS="-ldl $LIBS" 13187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13188/* end confdefs.h. */ 13189 13190/* Override any GCC internal prototype to avoid an error. 13191 Use char because int might match the return type of a GCC 13192 builtin and then its argument prototype would still apply. */ 13193#ifdef __cplusplus 13194extern "C" 13195#endif 13196char dlopen (); 13197int 13198main () 13199{ 13200return dlopen (); 13201 ; 13202 return 0; 13203} 13204_ACEOF 13205if ac_fn_c_try_link "$LINENO"; then : 13206 ac_cv_lib_dl_dlopen=yes 13207else 13208 ac_cv_lib_dl_dlopen=no 13209fi 13210rm -f core conftest.err conftest.$ac_objext \ 13211 conftest$ac_exeext conftest.$ac_ext 13212LIBS=$ac_check_lib_save_LIBS 13213fi 13214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13215$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13216if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13218else 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13220$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13221if ${ac_cv_lib_svld_dlopen+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 ac_check_lib_save_LIBS=$LIBS 13225LIBS="-lsvld $LIBS" 13226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228 13229/* Override any GCC internal prototype to avoid an error. 13230 Use char because int might match the return type of a GCC 13231 builtin and then its argument prototype would still apply. */ 13232#ifdef __cplusplus 13233extern "C" 13234#endif 13235char dlopen (); 13236int 13237main () 13238{ 13239return dlopen (); 13240 ; 13241 return 0; 13242} 13243_ACEOF 13244if ac_fn_c_try_link "$LINENO"; then : 13245 ac_cv_lib_svld_dlopen=yes 13246else 13247 ac_cv_lib_svld_dlopen=no 13248fi 13249rm -f core conftest.err conftest.$ac_objext \ 13250 conftest$ac_exeext conftest.$ac_ext 13251LIBS=$ac_check_lib_save_LIBS 13252fi 13253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13254$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13255if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13257else 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13259$as_echo_n "checking for dld_link in -ldld... " >&6; } 13260if ${ac_cv_lib_dld_dld_link+:} false; then : 13261 $as_echo_n "(cached) " >&6 13262else 13263 ac_check_lib_save_LIBS=$LIBS 13264LIBS="-ldld $LIBS" 13265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267 13268/* Override any GCC internal prototype to avoid an error. 13269 Use char because int might match the return type of a GCC 13270 builtin and then its argument prototype would still apply. */ 13271#ifdef __cplusplus 13272extern "C" 13273#endif 13274char dld_link (); 13275int 13276main () 13277{ 13278return dld_link (); 13279 ; 13280 return 0; 13281} 13282_ACEOF 13283if ac_fn_c_try_link "$LINENO"; then : 13284 ac_cv_lib_dld_dld_link=yes 13285else 13286 ac_cv_lib_dld_dld_link=no 13287fi 13288rm -f core conftest.err conftest.$ac_objext \ 13289 conftest$ac_exeext conftest.$ac_ext 13290LIBS=$ac_check_lib_save_LIBS 13291fi 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13293$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13294if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13296fi 13297 13298 13299fi 13300 13301 13302fi 13303 13304 13305fi 13306 13307 13308fi 13309 13310 13311fi 13312 13313 ;; 13314 esac 13315 13316 if test "x$lt_cv_dlopen" != xno; then 13317 enable_dlopen=yes 13318 else 13319 enable_dlopen=no 13320 fi 13321 13322 case $lt_cv_dlopen in 13323 dlopen) 13324 save_CPPFLAGS="$CPPFLAGS" 13325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13326 13327 save_LDFLAGS="$LDFLAGS" 13328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13329 13330 save_LIBS="$LIBS" 13331 LIBS="$lt_cv_dlopen_libs $LIBS" 13332 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13334$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13335if ${lt_cv_dlopen_self+:} false; then : 13336 $as_echo_n "(cached) " >&6 13337else 13338 if test "$cross_compiling" = yes; then : 13339 lt_cv_dlopen_self=cross 13340else 13341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13342 lt_status=$lt_dlunknown 13343 cat > conftest.$ac_ext <<_LT_EOF 13344#line $LINENO "configure" 13345#include "confdefs.h" 13346 13347#if HAVE_DLFCN_H 13348#include <dlfcn.h> 13349#endif 13350 13351#include <stdio.h> 13352 13353#ifdef RTLD_GLOBAL 13354# define LT_DLGLOBAL RTLD_GLOBAL 13355#else 13356# ifdef DL_GLOBAL 13357# define LT_DLGLOBAL DL_GLOBAL 13358# else 13359# define LT_DLGLOBAL 0 13360# endif 13361#endif 13362 13363/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13364 find out it does not work in some platform. */ 13365#ifndef LT_DLLAZY_OR_NOW 13366# ifdef RTLD_LAZY 13367# define LT_DLLAZY_OR_NOW RTLD_LAZY 13368# else 13369# ifdef DL_LAZY 13370# define LT_DLLAZY_OR_NOW DL_LAZY 13371# else 13372# ifdef RTLD_NOW 13373# define LT_DLLAZY_OR_NOW RTLD_NOW 13374# else 13375# ifdef DL_NOW 13376# define LT_DLLAZY_OR_NOW DL_NOW 13377# else 13378# define LT_DLLAZY_OR_NOW 0 13379# endif 13380# endif 13381# endif 13382# endif 13383#endif 13384 13385/* When -fvisbility=hidden is used, assume the code has been annotated 13386 correspondingly for the symbols needed. */ 13387#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13388int fnord () __attribute__((visibility("default"))); 13389#endif 13390 13391int fnord () { return 42; } 13392int main () 13393{ 13394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13395 int status = $lt_dlunknown; 13396 13397 if (self) 13398 { 13399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13400 else 13401 { 13402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13403 else puts (dlerror ()); 13404 } 13405 /* dlclose (self); */ 13406 } 13407 else 13408 puts (dlerror ()); 13409 13410 return status; 13411} 13412_LT_EOF 13413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13414 (eval $ac_link) 2>&5 13415 ac_status=$? 13416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13418 (./conftest; exit; ) >&5 2>/dev/null 13419 lt_status=$? 13420 case x$lt_status in 13421 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13422 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13423 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13424 esac 13425 else : 13426 # compilation failed 13427 lt_cv_dlopen_self=no 13428 fi 13429fi 13430rm -fr conftest* 13431 13432 13433fi 13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13435$as_echo "$lt_cv_dlopen_self" >&6; } 13436 13437 if test "x$lt_cv_dlopen_self" = xyes; then 13438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13440$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13441if ${lt_cv_dlopen_self_static+:} false; then : 13442 $as_echo_n "(cached) " >&6 13443else 13444 if test "$cross_compiling" = yes; then : 13445 lt_cv_dlopen_self_static=cross 13446else 13447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13448 lt_status=$lt_dlunknown 13449 cat > conftest.$ac_ext <<_LT_EOF 13450#line $LINENO "configure" 13451#include "confdefs.h" 13452 13453#if HAVE_DLFCN_H 13454#include <dlfcn.h> 13455#endif 13456 13457#include <stdio.h> 13458 13459#ifdef RTLD_GLOBAL 13460# define LT_DLGLOBAL RTLD_GLOBAL 13461#else 13462# ifdef DL_GLOBAL 13463# define LT_DLGLOBAL DL_GLOBAL 13464# else 13465# define LT_DLGLOBAL 0 13466# endif 13467#endif 13468 13469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13470 find out it does not work in some platform. */ 13471#ifndef LT_DLLAZY_OR_NOW 13472# ifdef RTLD_LAZY 13473# define LT_DLLAZY_OR_NOW RTLD_LAZY 13474# else 13475# ifdef DL_LAZY 13476# define LT_DLLAZY_OR_NOW DL_LAZY 13477# else 13478# ifdef RTLD_NOW 13479# define LT_DLLAZY_OR_NOW RTLD_NOW 13480# else 13481# ifdef DL_NOW 13482# define LT_DLLAZY_OR_NOW DL_NOW 13483# else 13484# define LT_DLLAZY_OR_NOW 0 13485# endif 13486# endif 13487# endif 13488# endif 13489#endif 13490 13491/* When -fvisbility=hidden is used, assume the code has been annotated 13492 correspondingly for the symbols needed. */ 13493#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13494int fnord () __attribute__((visibility("default"))); 13495#endif 13496 13497int fnord () { return 42; } 13498int main () 13499{ 13500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13501 int status = $lt_dlunknown; 13502 13503 if (self) 13504 { 13505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13506 else 13507 { 13508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13509 else puts (dlerror ()); 13510 } 13511 /* dlclose (self); */ 13512 } 13513 else 13514 puts (dlerror ()); 13515 13516 return status; 13517} 13518_LT_EOF 13519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13520 (eval $ac_link) 2>&5 13521 ac_status=$? 13522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13524 (./conftest; exit; ) >&5 2>/dev/null 13525 lt_status=$? 13526 case x$lt_status in 13527 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13528 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13529 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13530 esac 13531 else : 13532 # compilation failed 13533 lt_cv_dlopen_self_static=no 13534 fi 13535fi 13536rm -fr conftest* 13537 13538 13539fi 13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13541$as_echo "$lt_cv_dlopen_self_static" >&6; } 13542 fi 13543 13544 CPPFLAGS="$save_CPPFLAGS" 13545 LDFLAGS="$save_LDFLAGS" 13546 LIBS="$save_LIBS" 13547 ;; 13548 esac 13549 13550 case $lt_cv_dlopen_self in 13551 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13552 *) enable_dlopen_self=unknown ;; 13553 esac 13554 13555 case $lt_cv_dlopen_self_static in 13556 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13557 *) enable_dlopen_self_static=unknown ;; 13558 esac 13559fi 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577striplib= 13578old_striplib= 13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13580$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13581if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13583 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13585$as_echo "yes" >&6; } 13586else 13587# FIXME - insert some real tests, host_os isn't really good enough 13588 case $host_os in 13589 darwin*) 13590 if test -n "$STRIP" ; then 13591 striplib="$STRIP -x" 13592 old_striplib="$STRIP -S" 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13594$as_echo "yes" >&6; } 13595 else 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13597$as_echo "no" >&6; } 13598 fi 13599 ;; 13600 *) 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13602$as_echo "no" >&6; } 13603 ;; 13604 esac 13605fi 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 # Report which library types will actually be built 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13620$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13622$as_echo "$can_build_shared" >&6; } 13623 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13625$as_echo_n "checking whether to build shared libraries... " >&6; } 13626 test "$can_build_shared" = "no" && enable_shared=no 13627 13628 # On AIX, shared libraries and static libraries use the same namespace, and 13629 # are all built from PIC. 13630 case $host_os in 13631 aix3*) 13632 test "$enable_shared" = yes && enable_static=no 13633 if test -n "$RANLIB"; then 13634 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13635 postinstall_cmds='$RANLIB $lib' 13636 fi 13637 ;; 13638 13639 aix[4-9]*) 13640 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13641 test "$enable_shared" = yes && enable_static=no 13642 fi 13643 ;; 13644 esac 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13646$as_echo "$enable_shared" >&6; } 13647 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13649$as_echo_n "checking whether to build static libraries... " >&6; } 13650 # Make sure either enable_shared or enable_static is yes. 13651 test "$enable_shared" = yes || enable_static=yes 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13653$as_echo "$enable_static" >&6; } 13654 13655 13656 13657 13658fi 13659ac_ext=c 13660ac_cpp='$CPP $CPPFLAGS' 13661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13663ac_compiler_gnu=$ac_cv_c_compiler_gnu 13664 13665CC="$lt_save_CC" 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 ac_config_commands="$ac_config_commands libtool" 13682 13683 13684 13685 13686# Only expand once: 13687 13688 13689 13690 13691# Checks for header files. 13692for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.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 13693do : 13694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13695ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13696" 13697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13698 cat >>confdefs.h <<_ACEOF 13699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13700_ACEOF 13701 13702fi 13703 13704done 13705 13706 13707# check for types. 13708# Using own tests for int64* because autoconf builtin only give 32bit. 13709ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13710if test "x$ac_cv_type_int8_t" = xyes; then : 13711 13712else 13713 13714cat >>confdefs.h <<_ACEOF 13715#define int8_t signed char 13716_ACEOF 13717 13718fi 13719 13720ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13721if test "x$ac_cv_type_int16_t" = xyes; then : 13722 13723else 13724 13725cat >>confdefs.h <<_ACEOF 13726#define int16_t short 13727_ACEOF 13728 13729fi 13730 13731ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13732if test "x$ac_cv_type_int32_t" = xyes; then : 13733 13734else 13735 13736cat >>confdefs.h <<_ACEOF 13737#define int32_t int 13738_ACEOF 13739 13740fi 13741 13742ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 13743if test "x$ac_cv_type_int64_t" = xyes; then : 13744 13745else 13746 13747cat >>confdefs.h <<_ACEOF 13748#define int64_t long long 13749_ACEOF 13750 13751fi 13752 13753ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13754if test "x$ac_cv_type_uint8_t" = xyes; then : 13755 13756else 13757 13758cat >>confdefs.h <<_ACEOF 13759#define uint8_t unsigned char 13760_ACEOF 13761 13762fi 13763 13764ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13765if test "x$ac_cv_type_uint16_t" = xyes; then : 13766 13767else 13768 13769cat >>confdefs.h <<_ACEOF 13770#define uint16_t unsigned short 13771_ACEOF 13772 13773fi 13774 13775ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13776if test "x$ac_cv_type_uint32_t" = xyes; then : 13777 13778else 13779 13780cat >>confdefs.h <<_ACEOF 13781#define uint32_t unsigned int 13782_ACEOF 13783 13784fi 13785 13786ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13787if test "x$ac_cv_type_uint64_t" = xyes; then : 13788 13789else 13790 13791cat >>confdefs.h <<_ACEOF 13792#define uint64_t unsigned long long 13793_ACEOF 13794 13795fi 13796 13797ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13798if test "x$ac_cv_type_size_t" = xyes; then : 13799 13800else 13801 13802cat >>confdefs.h <<_ACEOF 13803#define size_t unsigned int 13804_ACEOF 13805 13806fi 13807 13808ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13809if test "x$ac_cv_type_ssize_t" = xyes; then : 13810 13811else 13812 13813cat >>confdefs.h <<_ACEOF 13814#define ssize_t int 13815_ACEOF 13816 13817fi 13818 13819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13820$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13821if ${ac_cv_type_uid_t+:} false; then : 13822 $as_echo_n "(cached) " >&6 13823else 13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13825/* end confdefs.h. */ 13826#include <sys/types.h> 13827 13828_ACEOF 13829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13830 $EGREP "uid_t" >/dev/null 2>&1; then : 13831 ac_cv_type_uid_t=yes 13832else 13833 ac_cv_type_uid_t=no 13834fi 13835rm -f conftest* 13836 13837fi 13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13839$as_echo "$ac_cv_type_uid_t" >&6; } 13840if test $ac_cv_type_uid_t = no; then 13841 13842$as_echo "#define uid_t int" >>confdefs.h 13843 13844 13845$as_echo "#define gid_t int" >>confdefs.h 13846 13847fi 13848 13849ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13850if test "x$ac_cv_type_pid_t" = xyes; then : 13851 13852else 13853 13854cat >>confdefs.h <<_ACEOF 13855#define pid_t int 13856_ACEOF 13857 13858fi 13859 13860ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13861if test "x$ac_cv_type_off_t" = xyes; then : 13862 13863else 13864 13865cat >>confdefs.h <<_ACEOF 13866#define off_t long int 13867_ACEOF 13868 13869fi 13870 13871ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 13872$ac_includes_default 13873#ifdef HAVE_WINSOCK2_H 13874# include <winsock2.h> 13875#endif 13876 13877" 13878if test "x$ac_cv_type_u_char" = xyes; then : 13879 13880else 13881 13882$as_echo "#define u_char unsigned char" >>confdefs.h 13883 13884fi 13885 13886ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 13887$ac_includes_default 13888#ifdef HAVE_SYS_RESOURCE_H 13889# include <sys/resource.h> 13890#endif 13891 13892" 13893if test "x$ac_cv_type_rlim_t" = xyes; then : 13894 13895else 13896 13897$as_echo "#define rlim_t unsigned long" >>confdefs.h 13898 13899fi 13900 13901 13902ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13903$ac_includes_default 13904#ifdef HAVE_SYS_SOCKET_H 13905# include <sys/socket.h> 13906#endif 13907#ifdef HAVE_WS2TCPIP_H 13908# include <ws2tcpip.h> 13909#endif 13910 13911" 13912if test "x$ac_cv_type_socklen_t" = xyes; then : 13913 13914else 13915 13916$as_echo "#define socklen_t int" >>confdefs.h 13917 13918fi 13919 13920 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 13921$ac_includes_default 13922#ifdef HAVE_SYS_TYPES_H 13923# include <sys/types.h> 13924#endif 13925#ifdef HAVE_NETINET_IN_H 13926# include <netinet/in.h> 13927#endif 13928 13929" 13930if test "x$ac_cv_type_in_addr_t" = xyes; then : 13931 13932else 13933 13934$as_echo "#define in_addr_t uint32_t" >>confdefs.h 13935 13936fi 13937 13938 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 13939$ac_includes_default 13940#ifdef HAVE_SYS_TYPES_H 13941# include <sys/types.h> 13942#endif 13943#ifdef HAVE_NETINET_IN_H 13944# include <netinet/in.h> 13945#endif 13946 13947" 13948if test "x$ac_cv_type_in_port_t" = xyes; then : 13949 13950else 13951 13952$as_echo "#define in_port_t uint16_t" >>confdefs.h 13953 13954fi 13955 13956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 13957$as_echo_n "checking if memcmp compares unsigned... " >&6; } 13958if test "$cross_compiling" = yes; then : 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 13960$as_echo "cross-compile no" >&6; } 13961 13962$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 13963 13964 case " $LIBOBJS " in 13965 *" memcmp.$ac_objext "* ) ;; 13966 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13967 ;; 13968esac 13969 13970 13971else 13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13973/* end confdefs.h. */ 13974 13975#include <stdio.h> 13976#include <stdlib.h> 13977#include <string.h> 13978int main(void) 13979{ 13980 char a = 255, b = 0; 13981 if(memcmp(&a, &b, 1) < 0) 13982 return 1; 13983 return 0; 13984} 13985 13986_ACEOF 13987if ac_fn_c_try_run "$LINENO"; then : 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13989$as_echo "yes" >&6; } 13990else 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13992$as_echo "no" >&6; } 13993 13994$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 13995 13996 case " $LIBOBJS " in 13997 *" memcmp.$ac_objext "* ) ;; 13998 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13999 ;; 14000esac 14001 14002 14003fi 14004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14005 conftest.$ac_objext conftest.beam conftest.$ac_ext 14006fi 14007 14008 14009# The cast to long int works around a bug in the HP C Compiler 14010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14012# This bug is HP SR number 8606223364. 14013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14014$as_echo_n "checking size of time_t... " >&6; } 14015if ${ac_cv_sizeof_time_t+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017else 14018 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14019$ac_includes_default 14020#ifdef TIME_WITH_SYS_TIME 14021# include <sys/time.h> 14022# include <time.h> 14023#else 14024# ifdef HAVE_SYS_TIME_H 14025# include <sys/time.h> 14026# else 14027# include <time.h> 14028# endif 14029#endif 14030 14031"; then : 14032 14033else 14034 if test "$ac_cv_type_time_t" = yes; then 14035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14037as_fn_error 77 "cannot compute sizeof (time_t) 14038See \`config.log' for more details" "$LINENO" 5; } 14039 else 14040 ac_cv_sizeof_time_t=0 14041 fi 14042fi 14043 14044fi 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14046$as_echo "$ac_cv_sizeof_time_t" >&6; } 14047 14048 14049 14050cat >>confdefs.h <<_ACEOF 14051#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14052_ACEOF 14053 14054 14055 14056# add option to disable the evil rpath 14057 14058# Check whether --enable-rpath was given. 14059if test "${enable_rpath+set}" = set; then : 14060 enableval=$enable_rpath; enable_rpath=$enableval 14061else 14062 enable_rpath=yes 14063fi 14064 14065if test "x$enable_rpath" = xno; then 14066 ac_config_commands="$ac_config_commands disable-rpath" 14067 14068fi 14069 14070 14071 14072# check to see if libraries are needed for these functions. 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14074$as_echo_n "checking for library containing inet_pton... " >&6; } 14075if ${ac_cv_search_inet_pton+:} false; then : 14076 $as_echo_n "(cached) " >&6 14077else 14078 ac_func_search_save_LIBS=$LIBS 14079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14080/* end confdefs.h. */ 14081 14082/* Override any GCC internal prototype to avoid an error. 14083 Use char because int might match the return type of a GCC 14084 builtin and then its argument prototype would still apply. */ 14085#ifdef __cplusplus 14086extern "C" 14087#endif 14088char inet_pton (); 14089int 14090main () 14091{ 14092return inet_pton (); 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097for ac_lib in '' nsl; do 14098 if test -z "$ac_lib"; then 14099 ac_res="none required" 14100 else 14101 ac_res=-l$ac_lib 14102 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14103 fi 14104 if ac_fn_c_try_link "$LINENO"; then : 14105 ac_cv_search_inet_pton=$ac_res 14106fi 14107rm -f core conftest.err conftest.$ac_objext \ 14108 conftest$ac_exeext 14109 if ${ac_cv_search_inet_pton+:} false; then : 14110 break 14111fi 14112done 14113if ${ac_cv_search_inet_pton+:} false; then : 14114 14115else 14116 ac_cv_search_inet_pton=no 14117fi 14118rm conftest.$ac_ext 14119LIBS=$ac_func_search_save_LIBS 14120fi 14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14122$as_echo "$ac_cv_search_inet_pton" >&6; } 14123ac_res=$ac_cv_search_inet_pton 14124if test "$ac_res" != no; then : 14125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14126 14127fi 14128 14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14130$as_echo_n "checking for library containing socket... " >&6; } 14131if ${ac_cv_search_socket+:} false; then : 14132 $as_echo_n "(cached) " >&6 14133else 14134 ac_func_search_save_LIBS=$LIBS 14135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14136/* end confdefs.h. */ 14137 14138/* Override any GCC internal prototype to avoid an error. 14139 Use char because int might match the return type of a GCC 14140 builtin and then its argument prototype would still apply. */ 14141#ifdef __cplusplus 14142extern "C" 14143#endif 14144char socket (); 14145int 14146main () 14147{ 14148return socket (); 14149 ; 14150 return 0; 14151} 14152_ACEOF 14153for ac_lib in '' socket; do 14154 if test -z "$ac_lib"; then 14155 ac_res="none required" 14156 else 14157 ac_res=-l$ac_lib 14158 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14159 fi 14160 if ac_fn_c_try_link "$LINENO"; then : 14161 ac_cv_search_socket=$ac_res 14162fi 14163rm -f core conftest.err conftest.$ac_objext \ 14164 conftest$ac_exeext 14165 if ${ac_cv_search_socket+:} false; then : 14166 break 14167fi 14168done 14169if ${ac_cv_search_socket+:} false; then : 14170 14171else 14172 ac_cv_search_socket=no 14173fi 14174rm conftest.$ac_ext 14175LIBS=$ac_func_search_save_LIBS 14176fi 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14178$as_echo "$ac_cv_search_socket" >&6; } 14179ac_res=$ac_cv_search_socket 14180if test "$ac_res" != no; then : 14181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14182 14183fi 14184 14185 14186# check wether strptime also works 14187 14188# check some functions of the OS before linking libs (while still runnable). 14189for ac_header in unistd.h 14190do : 14191 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14192if test "x$ac_cv_header_unistd_h" = xyes; then : 14193 cat >>confdefs.h <<_ACEOF 14194#define HAVE_UNISTD_H 1 14195_ACEOF 14196 14197fi 14198 14199done 14200 14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14202$as_echo_n "checking for working chown... " >&6; } 14203if ${ac_cv_func_chown_works+:} false; then : 14204 $as_echo_n "(cached) " >&6 14205else 14206 if test "$cross_compiling" = yes; then : 14207 ac_cv_func_chown_works=no 14208else 14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14210/* end confdefs.h. */ 14211$ac_includes_default 14212#include <fcntl.h> 14213 14214int 14215main () 14216{ 14217 char *f = "conftest.chown"; 14218 struct stat before, after; 14219 14220 if (creat (f, 0600) < 0) 14221 return 1; 14222 if (stat (f, &before) < 0) 14223 return 1; 14224 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14225 return 1; 14226 if (stat (f, &after) < 0) 14227 return 1; 14228 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14229 14230 ; 14231 return 0; 14232} 14233_ACEOF 14234if ac_fn_c_try_run "$LINENO"; then : 14235 ac_cv_func_chown_works=yes 14236else 14237 ac_cv_func_chown_works=no 14238fi 14239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14240 conftest.$ac_objext conftest.beam conftest.$ac_ext 14241fi 14242 14243rm -f conftest.chown 14244 14245fi 14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14247$as_echo "$ac_cv_func_chown_works" >&6; } 14248if test $ac_cv_func_chown_works = yes; then 14249 14250$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 14251 14252fi 14253 14254for ac_header in vfork.h 14255do : 14256 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14257if test "x$ac_cv_header_vfork_h" = xyes; then : 14258 cat >>confdefs.h <<_ACEOF 14259#define HAVE_VFORK_H 1 14260_ACEOF 14261 14262fi 14263 14264done 14265 14266for ac_func in fork vfork 14267do : 14268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14269ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14270if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14271 cat >>confdefs.h <<_ACEOF 14272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14273_ACEOF 14274 14275fi 14276done 14277 14278if test "x$ac_cv_func_fork" = xyes; then 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14280$as_echo_n "checking for working fork... " >&6; } 14281if ${ac_cv_func_fork_works+:} false; then : 14282 $as_echo_n "(cached) " >&6 14283else 14284 if test "$cross_compiling" = yes; then : 14285 ac_cv_func_fork_works=cross 14286else 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289$ac_includes_default 14290int 14291main () 14292{ 14293 14294 /* By Ruediger Kuhlmann. */ 14295 return fork () < 0; 14296 14297 ; 14298 return 0; 14299} 14300_ACEOF 14301if ac_fn_c_try_run "$LINENO"; then : 14302 ac_cv_func_fork_works=yes 14303else 14304 ac_cv_func_fork_works=no 14305fi 14306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14307 conftest.$ac_objext conftest.beam conftest.$ac_ext 14308fi 14309 14310fi 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14312$as_echo "$ac_cv_func_fork_works" >&6; } 14313 14314else 14315 ac_cv_func_fork_works=$ac_cv_func_fork 14316fi 14317if test "x$ac_cv_func_fork_works" = xcross; then 14318 case $host in 14319 *-*-amigaos* | *-*-msdosdjgpp*) 14320 # Override, as these systems have only a dummy fork() stub 14321 ac_cv_func_fork_works=no 14322 ;; 14323 *) 14324 ac_cv_func_fork_works=yes 14325 ;; 14326 esac 14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14328$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14329fi 14330ac_cv_func_vfork_works=$ac_cv_func_vfork 14331if test "x$ac_cv_func_vfork" = xyes; then 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14333$as_echo_n "checking for working vfork... " >&6; } 14334if ${ac_cv_func_vfork_works+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336else 14337 if test "$cross_compiling" = yes; then : 14338 ac_cv_func_vfork_works=cross 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342/* Thanks to Paul Eggert for this test. */ 14343$ac_includes_default 14344#include <sys/wait.h> 14345#ifdef HAVE_VFORK_H 14346# include <vfork.h> 14347#endif 14348/* On some sparc systems, changes by the child to local and incoming 14349 argument registers are propagated back to the parent. The compiler 14350 is told about this with #include <vfork.h>, but some compilers 14351 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14352 static variable whose address is put into a register that is 14353 clobbered by the vfork. */ 14354static void 14355#ifdef __cplusplus 14356sparc_address_test (int arg) 14357# else 14358sparc_address_test (arg) int arg; 14359#endif 14360{ 14361 static pid_t child; 14362 if (!child) { 14363 child = vfork (); 14364 if (child < 0) { 14365 perror ("vfork"); 14366 _exit(2); 14367 } 14368 if (!child) { 14369 arg = getpid(); 14370 write(-1, "", 0); 14371 _exit (arg); 14372 } 14373 } 14374} 14375 14376int 14377main () 14378{ 14379 pid_t parent = getpid (); 14380 pid_t child; 14381 14382 sparc_address_test (0); 14383 14384 child = vfork (); 14385 14386 if (child == 0) { 14387 /* Here is another test for sparc vfork register problems. This 14388 test uses lots of local variables, at least as many local 14389 variables as main has allocated so far including compiler 14390 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14391 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14392 reuse the register of parent for one of the local variables, 14393 since it will think that parent can't possibly be used any more 14394 in this routine. Assigning to the local variable will thus 14395 munge parent in the parent process. */ 14396 pid_t 14397 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14398 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14399 /* Convince the compiler that p..p7 are live; otherwise, it might 14400 use the same hardware register for all 8 local variables. */ 14401 if (p != p1 || p != p2 || p != p3 || p != p4 14402 || p != p5 || p != p6 || p != p7) 14403 _exit(1); 14404 14405 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14406 from child file descriptors. If the child closes a descriptor 14407 before it execs or exits, this munges the parent's descriptor 14408 as well. Test for this by closing stdout in the child. */ 14409 _exit(close(fileno(stdout)) != 0); 14410 } else { 14411 int status; 14412 struct stat st; 14413 14414 while (wait(&status) != child) 14415 ; 14416 return ( 14417 /* Was there some problem with vforking? */ 14418 child < 0 14419 14420 /* Did the child fail? (This shouldn't happen.) */ 14421 || status 14422 14423 /* Did the vfork/compiler bug occur? */ 14424 || parent != getpid() 14425 14426 /* Did the file descriptor bug occur? */ 14427 || fstat(fileno(stdout), &st) != 0 14428 ); 14429 } 14430} 14431_ACEOF 14432if ac_fn_c_try_run "$LINENO"; then : 14433 ac_cv_func_vfork_works=yes 14434else 14435 ac_cv_func_vfork_works=no 14436fi 14437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14438 conftest.$ac_objext conftest.beam conftest.$ac_ext 14439fi 14440 14441fi 14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14443$as_echo "$ac_cv_func_vfork_works" >&6; } 14444 14445fi; 14446if test "x$ac_cv_func_fork_works" = xcross; then 14447 ac_cv_func_vfork_works=$ac_cv_func_vfork 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14449$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14450fi 14451 14452if test "x$ac_cv_func_vfork_works" = xyes; then 14453 14454$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14455 14456else 14457 14458$as_echo "#define vfork fork" >>confdefs.h 14459 14460fi 14461if test "x$ac_cv_func_fork_works" = xyes; then 14462 14463$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14464 14465fi 14466 14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14468$as_echo_n "checking return type of signal handlers... " >&6; } 14469if ${ac_cv_type_signal+:} false; then : 14470 $as_echo_n "(cached) " >&6 14471else 14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14473/* end confdefs.h. */ 14474#include <sys/types.h> 14475#include <signal.h> 14476 14477int 14478main () 14479{ 14480return *(signal (0, 0)) (0) == 1; 14481 ; 14482 return 0; 14483} 14484_ACEOF 14485if ac_fn_c_try_compile "$LINENO"; then : 14486 ac_cv_type_signal=int 14487else 14488 ac_cv_type_signal=void 14489fi 14490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14491fi 14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14493$as_echo "$ac_cv_type_signal" >&6; } 14494 14495cat >>confdefs.h <<_ACEOF 14496#define RETSIGTYPE $ac_cv_type_signal 14497_ACEOF 14498 14499 14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14501$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14502if ${ac_cv_sys_largefile_source+:} false; then : 14503 $as_echo_n "(cached) " >&6 14504else 14505 while :; do 14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14507/* end confdefs.h. */ 14508#include <sys/types.h> /* for off_t */ 14509 #include <stdio.h> 14510int 14511main () 14512{ 14513int (*fp) (FILE *, off_t, int) = fseeko; 14514 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_c_try_link "$LINENO"; then : 14520 ac_cv_sys_largefile_source=no; break 14521fi 14522rm -f core conftest.err conftest.$ac_objext \ 14523 conftest$ac_exeext conftest.$ac_ext 14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14525/* end confdefs.h. */ 14526#define _LARGEFILE_SOURCE 1 14527#include <sys/types.h> /* for off_t */ 14528 #include <stdio.h> 14529int 14530main () 14531{ 14532int (*fp) (FILE *, off_t, int) = fseeko; 14533 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14534 ; 14535 return 0; 14536} 14537_ACEOF 14538if ac_fn_c_try_link "$LINENO"; then : 14539 ac_cv_sys_largefile_source=1; break 14540fi 14541rm -f core conftest.err conftest.$ac_objext \ 14542 conftest$ac_exeext conftest.$ac_ext 14543 ac_cv_sys_largefile_source=unknown 14544 break 14545done 14546fi 14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14548$as_echo "$ac_cv_sys_largefile_source" >&6; } 14549case $ac_cv_sys_largefile_source in #( 14550 no | unknown) ;; 14551 *) 14552cat >>confdefs.h <<_ACEOF 14553#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14554_ACEOF 14555;; 14556esac 14557rm -rf conftest* 14558 14559# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14560# in glibc 2.1.3, but that breaks too many other things. 14561# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14562if test $ac_cv_sys_largefile_source != unknown; then 14563 14564$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14565 14566fi 14567 14568 14569# Check whether --enable-largefile was given. 14570if test "${enable_largefile+set}" = set; then : 14571 enableval=$enable_largefile; 14572fi 14573 14574if test "$enable_largefile" != no; then 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14577$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14578if ${ac_cv_sys_largefile_CC+:} false; then : 14579 $as_echo_n "(cached) " >&6 14580else 14581 ac_cv_sys_largefile_CC=no 14582 if test "$GCC" != yes; then 14583 ac_save_CC=$CC 14584 while :; do 14585 # IRIX 6.2 and later do not support large files by default, 14586 # so use the C compiler's -n32 option if that helps. 14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14588/* end confdefs.h. */ 14589#include <sys/types.h> 14590 /* Check that off_t can represent 2**63 - 1 correctly. 14591 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14592 since some C++ compilers masquerading as C compilers 14593 incorrectly reject 9223372036854775807. */ 14594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14596 && LARGE_OFF_T % 2147483647 == 1) 14597 ? 1 : -1]; 14598int 14599main () 14600{ 14601 14602 ; 14603 return 0; 14604} 14605_ACEOF 14606 if ac_fn_c_try_compile "$LINENO"; then : 14607 break 14608fi 14609rm -f core conftest.err conftest.$ac_objext 14610 CC="$CC -n32" 14611 if ac_fn_c_try_compile "$LINENO"; then : 14612 ac_cv_sys_largefile_CC=' -n32'; break 14613fi 14614rm -f core conftest.err conftest.$ac_objext 14615 break 14616 done 14617 CC=$ac_save_CC 14618 rm -f conftest.$ac_ext 14619 fi 14620fi 14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14622$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14623 if test "$ac_cv_sys_largefile_CC" != no; then 14624 CC=$CC$ac_cv_sys_largefile_CC 14625 fi 14626 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14628$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14629if ${ac_cv_sys_file_offset_bits+:} false; then : 14630 $as_echo_n "(cached) " >&6 14631else 14632 while :; do 14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635#include <sys/types.h> 14636 /* Check that off_t can represent 2**63 - 1 correctly. 14637 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14638 since some C++ compilers masquerading as C compilers 14639 incorrectly reject 9223372036854775807. */ 14640#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14642 && LARGE_OFF_T % 2147483647 == 1) 14643 ? 1 : -1]; 14644int 14645main () 14646{ 14647 14648 ; 14649 return 0; 14650} 14651_ACEOF 14652if ac_fn_c_try_compile "$LINENO"; then : 14653 ac_cv_sys_file_offset_bits=no; break 14654fi 14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14657/* end confdefs.h. */ 14658#define _FILE_OFFSET_BITS 64 14659#include <sys/types.h> 14660 /* Check that off_t can represent 2**63 - 1 correctly. 14661 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14662 since some C++ compilers masquerading as C compilers 14663 incorrectly reject 9223372036854775807. */ 14664#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14666 && LARGE_OFF_T % 2147483647 == 1) 14667 ? 1 : -1]; 14668int 14669main () 14670{ 14671 14672 ; 14673 return 0; 14674} 14675_ACEOF 14676if ac_fn_c_try_compile "$LINENO"; then : 14677 ac_cv_sys_file_offset_bits=64; break 14678fi 14679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14680 ac_cv_sys_file_offset_bits=unknown 14681 break 14682done 14683fi 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14685$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14686case $ac_cv_sys_file_offset_bits in #( 14687 no | unknown) ;; 14688 *) 14689cat >>confdefs.h <<_ACEOF 14690#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14691_ACEOF 14692;; 14693esac 14694rm -rf conftest* 14695 if test $ac_cv_sys_file_offset_bits = unknown; then 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14697$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14698if ${ac_cv_sys_large_files+:} false; then : 14699 $as_echo_n "(cached) " >&6 14700else 14701 while :; do 14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14703/* end confdefs.h. */ 14704#include <sys/types.h> 14705 /* Check that off_t can represent 2**63 - 1 correctly. 14706 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14707 since some C++ compilers masquerading as C compilers 14708 incorrectly reject 9223372036854775807. */ 14709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14711 && LARGE_OFF_T % 2147483647 == 1) 14712 ? 1 : -1]; 14713int 14714main () 14715{ 14716 14717 ; 14718 return 0; 14719} 14720_ACEOF 14721if ac_fn_c_try_compile "$LINENO"; then : 14722 ac_cv_sys_large_files=no; break 14723fi 14724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14726/* end confdefs.h. */ 14727#define _LARGE_FILES 1 14728#include <sys/types.h> 14729 /* Check that off_t can represent 2**63 - 1 correctly. 14730 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14731 since some C++ compilers masquerading as C compilers 14732 incorrectly reject 9223372036854775807. */ 14733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14735 && LARGE_OFF_T % 2147483647 == 1) 14736 ? 1 : -1]; 14737int 14738main () 14739{ 14740 14741 ; 14742 return 0; 14743} 14744_ACEOF 14745if ac_fn_c_try_compile "$LINENO"; then : 14746 ac_cv_sys_large_files=1; break 14747fi 14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14749 ac_cv_sys_large_files=unknown 14750 break 14751done 14752fi 14753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14754$as_echo "$ac_cv_sys_large_files" >&6; } 14755case $ac_cv_sys_large_files in #( 14756 no | unknown) ;; 14757 *) 14758cat >>confdefs.h <<_ACEOF 14759#define _LARGE_FILES $ac_cv_sys_large_files 14760_ACEOF 14761;; 14762esac 14763rm -rf conftest* 14764 fi 14765 14766 14767fi 14768 14769 14770 14771 14772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 14773$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 14774cache=_D_LARGEFILE_SOURCE_1 14775if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 14776 $as_echo_n "(cached) " >&6 14777else 14778 14779echo ' 14780#include <stdio.h> 14781int test() { 14782 int a = fseeko(stdin, 0, 0); 14783 return a; 14784} 14785' > conftest.c 14786echo 'void f(){}' >>conftest.c 14787if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14788eval "cv_prog_cc_flag_needed_$cache=no" 14789else 14790 14791if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 14792eval "cv_prog_cc_flag_needed_$cache=yes" 14793else 14794eval "cv_prog_cc_flag_needed_$cache=fail" 14795#echo 'Test with flag fails too!' 14796#cat conftest.c 14797#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14798#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14799#exit 1 14800fi 14801 14802fi 14803rm -f conftest conftest.c conftest.o 14804 14805fi 14806 14807if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14809$as_echo "yes" >&6; } 14810: 14811CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 14812else 14813if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14815$as_echo "no" >&6; } 14816#echo 'Test with flag is no!' 14817#cat conftest.c 14818#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14819#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14820#exit 1 14821: 14822 14823else 14824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14825$as_echo "failed" >&6; } 14826: 14827 14828fi 14829fi 14830 14831 14832 14833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 14834$as_echo_n "checking if nonblocking sockets work... " >&6; } 14835if echo $target | grep mingw32 >/dev/null; then 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 14837$as_echo "no (windows)" >&6; } 14838 14839$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14840 14841else 14842if test "$cross_compiling" = yes; then : 14843 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 14845$as_echo "crosscompile(yes)" >&6; } 14846 14847else 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849/* end confdefs.h. */ 14850 14851 14852#include <stdio.h> 14853#include <string.h> 14854#include <stdlib.h> 14855#include <fcntl.h> 14856#include <errno.h> 14857#ifdef HAVE_SYS_TYPES_H 14858#include <sys/types.h> 14859#endif 14860#ifdef HAVE_SYS_SOCKET_H 14861#include <sys/socket.h> 14862#endif 14863#ifdef HAVE_NETINET_IN_H 14864#include <netinet/in.h> 14865#endif 14866#ifdef HAVE_ARPA_INET_H 14867#include <arpa/inet.h> 14868#endif 14869#ifdef HAVE_UNISTD_H 14870#include <unistd.h> 14871#endif 14872#ifdef HAVE_TIME_H 14873#include <time.h> 14874#endif 14875 14876int main(void) 14877{ 14878 int port; 14879 int sfd, cfd; 14880 int num = 10; 14881 int i, p; 14882 struct sockaddr_in a; 14883 /* test if select and nonblocking reads work well together */ 14884 /* open port. 14885 fork child to send 10 messages. 14886 select to read. 14887 then try to nonblocking read the 10 messages 14888 then, nonblocking read must give EAGAIN 14889 */ 14890 14891 port = 12345 + (time(0)%32); 14892 sfd = socket(PF_INET, SOCK_DGRAM, 0); 14893 if(sfd == -1) { 14894 perror("socket"); 14895 return 1; 14896 } 14897 memset(&a, 0, sizeof(a)); 14898 a.sin_family = AF_INET; 14899 a.sin_port = htons(port); 14900 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 14901 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14902 perror("bind"); 14903 return 1; 14904 } 14905 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 14906 perror("fcntl"); 14907 return 1; 14908 } 14909 14910 cfd = socket(PF_INET, SOCK_DGRAM, 0); 14911 if(cfd == -1) { 14912 perror("client socket"); 14913 return 1; 14914 } 14915 a.sin_port = 0; 14916 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14917 perror("client bind"); 14918 return 1; 14919 } 14920 a.sin_port = htons(port); 14921 14922 /* no handler, causes exit in 10 seconds */ 14923 alarm(10); 14924 14925 /* send and receive on the socket */ 14926 if((p=fork()) == 0) { 14927 for(i=0; i<num; i++) { 14928 if(sendto(cfd, &i, sizeof(i), 0, 14929 (struct sockaddr*)&a, sizeof(a)) < 0) { 14930 perror("sendto"); 14931 return 1; 14932 } 14933 } 14934 } else { 14935 /* parent */ 14936 fd_set rset; 14937 int x; 14938 if(p == -1) { 14939 perror("fork"); 14940 return 1; 14941 } 14942 FD_ZERO(&rset); 14943 FD_SET(sfd, &rset); 14944 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 14945 perror("select"); 14946 return 1; 14947 } 14948 i = 0; 14949 while(i < num) { 14950 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 14951 if(errno == EAGAIN) 14952 continue; 14953 perror("recv"); 14954 return 1; 14955 } 14956 i++; 14957 } 14958 /* now we want to get EAGAIN: nonblocking goodness */ 14959 errno = 0; 14960 recv(sfd, &x, sizeof(x), 0); 14961 if(errno != EAGAIN) { 14962 perror("trying to recv again"); 14963 return 1; 14964 } 14965 /* EAGAIN encountered */ 14966 } 14967 14968 close(sfd); 14969 close(cfd); 14970 return 0; 14971} 14972 14973_ACEOF 14974if ac_fn_c_try_run "$LINENO"; then : 14975 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14977$as_echo "yes" >&6; } 14978 14979else 14980 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14982$as_echo "no" >&6; } 14983 14984$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14985 14986 14987fi 14988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14989 conftest.$ac_objext conftest.beam conftest.$ac_ext 14990fi 14991 14992fi 14993 14994 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 14996$as_echo_n "checking whether mkdir has one arg... " >&6; } 14997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14998/* end confdefs.h. */ 14999 15000#include <stdio.h> 15001#include <unistd.h> 15002#ifdef HAVE_WINSOCK2_H 15003#include <winsock2.h> 15004#endif 15005#ifdef HAVE_SYS_STAT_H 15006#include <sys/stat.h> 15007#endif 15008 15009int 15010main () 15011{ 15012 15013 (void)mkdir("directory"); 15014 15015 ; 15016 return 0; 15017} 15018_ACEOF 15019if ac_fn_c_try_compile "$LINENO"; then : 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15021$as_echo "yes" >&6; } 15022 15023$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 15024 15025 15026else 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15028$as_echo "no" >&6; } 15029 15030fi 15031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15032 15033for ac_func in strptime 15034do : 15035 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 15036if test "x$ac_cv_func_strptime" = xyes; then : 15037 cat >>confdefs.h <<_ACEOF 15038#define HAVE_STRPTIME 1 15039_ACEOF 15040 15041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 15042$as_echo_n "checking whether strptime works... " >&6; } 15043if test c${cross_compiling} = cno; then 15044if test "$cross_compiling" = yes; then : 15045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15047as_fn_error $? "cannot run test program while cross compiling 15048See \`config.log' for more details" "$LINENO" 5; } 15049else 15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15051/* end confdefs.h. */ 15052 15053#define _XOPEN_SOURCE 15054#include <time.h> 15055int main(void) { struct tm tm; char *res; 15056res = 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); 15057if (!res) return 2; 15058res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 15059if (!res) return 1; return 0; } 15060 15061_ACEOF 15062if ac_fn_c_try_run "$LINENO"; then : 15063 eval "ac_cv_c_strptime_works=yes" 15064else 15065 eval "ac_cv_c_strptime_works=no" 15066fi 15067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15068 conftest.$ac_objext conftest.beam conftest.$ac_ext 15069fi 15070 15071else 15072eval "ac_cv_c_strptime_works=maybe" 15073fi 15074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 15075$as_echo "$ac_cv_c_strptime_works" >&6; } 15076if test $ac_cv_c_strptime_works = no; then 15077case " $LIBOBJS " in 15078 *" strptime.$ac_objext "* ) ;; 15079 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15080 ;; 15081esac 15082 15083else 15084 15085cat >>confdefs.h <<_ACEOF 15086#define STRPTIME_WORKS 1 15087_ACEOF 15088 15089fi 15090 15091else 15092 case " $LIBOBJS " in 15093 *" strptime.$ac_objext "* ) ;; 15094 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15095 ;; 15096esac 15097 15098fi 15099done 15100 15101 15102# set memory allocation checking if requested 15103# Check whether --enable-alloc-checks was given. 15104if test "${enable_alloc_checks+set}" = set; then : 15105 enableval=$enable_alloc_checks; 15106fi 15107 15108# Check whether --enable-alloc-lite was given. 15109if test "${enable_alloc_lite+set}" = set; then : 15110 enableval=$enable_alloc_lite; 15111fi 15112 15113# Check whether --enable-alloc-nonregional was given. 15114if test "${enable_alloc_nonregional+set}" = set; then : 15115 enableval=$enable_alloc_nonregional; 15116fi 15117 15118if test x_$enable_alloc_nonregional = x_yes; then 15119 15120$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 15121 15122fi 15123if test x_$enable_alloc_checks = x_yes; then 15124 15125$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 15126 15127else 15128 if test x_$enable_alloc_lite = x_yes; then 15129 15130$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 15131 15132 else 15133 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15135$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15136 if test "$cross_compiling" = yes; then : 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 15138$as_echo "no (crosscompile)" >&6; } 15139 case " $LIBOBJS " in 15140 *" malloc.$ac_objext "* ) ;; 15141 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15142 ;; 15143esac 15144 15145 15146cat >>confdefs.h <<_ACEOF 15147#define malloc rpl_malloc_unbound 15148_ACEOF 15149 15150else 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15152/* end confdefs.h. */ 15153#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15154#include <stdlib.h> 15155#else 15156char *malloc (); 15157#endif 15158 15159int 15160main () 15161{ 15162 if(malloc(0) != 0) return 1; 15163 ; 15164 return 0; 15165} 15166 15167_ACEOF 15168if ac_fn_c_try_run "$LINENO"; then : 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15170$as_echo "no" >&6; } 15171 case " $LIBOBJS " in 15172 *" malloc.$ac_objext "* ) ;; 15173 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15174 ;; 15175esac 15176 15177 15178cat >>confdefs.h <<_ACEOF 15179#define malloc rpl_malloc_unbound 15180_ACEOF 15181 15182else 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15184$as_echo "yes" >&6; } 15185 15186$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15187 15188fi 15189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15190 conftest.$ac_objext conftest.beam conftest.$ac_ext 15191fi 15192 15193 15194 fi 15195fi 15196 15197# check windows threads (we use them, not pthreads, on windows). 15198if test "$on_mingw" = "yes"; then 15199# check windows threads 15200 for ac_header in windows.h 15201do : 15202 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15203" 15204if test "x$ac_cv_header_windows_h" = xyes; then : 15205 cat >>confdefs.h <<_ACEOF 15206#define HAVE_WINDOWS_H 1 15207_ACEOF 15208 15209fi 15210 15211done 15212 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 15214$as_echo_n "checking for CreateThread... " >&6; } 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217 15218#ifdef HAVE_WINDOWS_H 15219#include <windows.h> 15220#endif 15221 15222int 15223main () 15224{ 15225 15226 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 15227 15228 ; 15229 return 0; 15230} 15231_ACEOF 15232if ac_fn_c_try_compile "$LINENO"; then : 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15234$as_echo "yes" >&6; } 15235 15236$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 15237 15238 15239else 15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15241$as_echo "no" >&6; } 15242 15243fi 15244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15245 15246else 15247# not on mingw, check thread libraries. 15248 15249# check for thread library. 15250# check this first, so that the pthread lib does not get linked in via 15251# libssl or libpython, and thus distorts the tests, and we end up using 15252# the non-threadsafe C libraries. 15253 15254# Check whether --with-pthreads was given. 15255if test "${with_pthreads+set}" = set; then : 15256 withval=$with_pthreads; 15257else 15258 withval="yes" 15259fi 15260 15261ub_have_pthreads=no 15262if test x_$withval != x_no; then 15263 15264 15265ac_ext=c 15266ac_cpp='$CPP $CPPFLAGS' 15267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15269ac_compiler_gnu=$ac_cv_c_compiler_gnu 15270 15271ax_pthread_ok=no 15272 15273# We used to check for pthread.h first, but this fails if pthread.h 15274# requires special compiler flags (e.g. on True64 or Sequent). 15275# It gets checked for in the link test anyway. 15276 15277# First of all, check if the user has set any of the PTHREAD_LIBS, 15278# etcetera environment variables, and if threads linking works using 15279# them: 15280if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15281 save_CFLAGS="$CFLAGS" 15282 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15283 save_LIBS="$LIBS" 15284 LIBS="$PTHREAD_LIBS $LIBS" 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15286$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15288/* end confdefs.h. */ 15289 15290/* Override any GCC internal prototype to avoid an error. 15291 Use char because int might match the return type of a GCC 15292 builtin and then its argument prototype would still apply. */ 15293#ifdef __cplusplus 15294extern "C" 15295#endif 15296char pthread_join (); 15297int 15298main () 15299{ 15300return pthread_join (); 15301 ; 15302 return 0; 15303} 15304_ACEOF 15305if ac_fn_c_try_link "$LINENO"; then : 15306 ax_pthread_ok=yes 15307fi 15308rm -f core conftest.err conftest.$ac_objext \ 15309 conftest$ac_exeext conftest.$ac_ext 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15311$as_echo "$ax_pthread_ok" >&6; } 15312 if test x"$ax_pthread_ok" = xno; then 15313 PTHREAD_LIBS="" 15314 PTHREAD_CFLAGS="" 15315 fi 15316 LIBS="$save_LIBS" 15317 CFLAGS="$save_CFLAGS" 15318fi 15319 15320# We must check for the threads library under a number of different 15321# names; the ordering is very important because some systems 15322# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15323# libraries is broken (non-POSIX). 15324 15325# Create a list of thread flags to try. Items starting with a "-" are 15326# C compiler flags, and other items are library names, except for "none" 15327# which indicates that we try without any flags at all, and "pthread-config" 15328# which is a program returning the flags for the Pth emulation library. 15329 15330ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15331 15332# The ordering *is* (sometimes) important. Some notes on the 15333# individual items follow: 15334 15335# pthreads: AIX (must check this before -lpthread) 15336# none: in case threads are in libc; should be tried before -Kthread and 15337# other compiler flags to prevent continual compiler warnings 15338# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15339# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15340# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15341# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15342# -pthreads: Solaris/gcc 15343# -mthreads: Mingw32/gcc, Lynx/gcc 15344# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15345# doesn't hurt to check since this sometimes defines pthreads too; 15346# also defines -D_REENTRANT) 15347# ... -mt is also the pthreads flag for HP/aCC 15348# pthread: Linux, etcetera 15349# --thread-safe: KAI C++ 15350# pthread-config: use pthread-config program (for GNU Pth library) 15351 15352case ${host_os} in 15353 solaris*) 15354 15355 # On Solaris (at least, for some versions), libc contains stubbed 15356 # (non-functional) versions of the pthreads routines, so link-based 15357 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15358 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15359 # a function called by this macro, so we could check for that, but 15360 # who knows whether they'll stub that too in a future libc.) So, 15361 # we'll just look for -pthreads and -lpthread first: 15362 15363 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15364 ;; 15365 15366 darwin*) 15367 ax_pthread_flags="-pthread $ax_pthread_flags" 15368 ;; 15369esac 15370 15371if test x"$ax_pthread_ok" = xno; then 15372for flag in $ax_pthread_flags; do 15373 15374 case $flag in 15375 none) 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15377$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15378 ;; 15379 15380 -*) 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15382$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15383 PTHREAD_CFLAGS="$flag" 15384 ;; 15385 15386 pthread-config) 15387 # Extract the first word of "pthread-config", so it can be a program name with args. 15388set dummy pthread-config; ac_word=$2 15389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15390$as_echo_n "checking for $ac_word... " >&6; } 15391if ${ac_cv_prog_ax_pthread_config+:} false; then : 15392 $as_echo_n "(cached) " >&6 15393else 15394 if test -n "$ax_pthread_config"; then 15395 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15396else 15397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15398for as_dir in $PATH 15399do 15400 IFS=$as_save_IFS 15401 test -z "$as_dir" && as_dir=. 15402 for ac_exec_ext in '' $ac_executable_extensions; do 15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15404 ac_cv_prog_ax_pthread_config="yes" 15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15406 break 2 15407 fi 15408done 15409 done 15410IFS=$as_save_IFS 15411 15412 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15413fi 15414fi 15415ax_pthread_config=$ac_cv_prog_ax_pthread_config 15416if test -n "$ax_pthread_config"; then 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15418$as_echo "$ax_pthread_config" >&6; } 15419else 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15421$as_echo "no" >&6; } 15422fi 15423 15424 15425 if test x"$ax_pthread_config" = xno; then continue; fi 15426 PTHREAD_CFLAGS="`pthread-config --cflags`" 15427 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15428 ;; 15429 15430 *) 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15432$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15433 PTHREAD_LIBS="-l$flag" 15434 ;; 15435 esac 15436 15437 save_LIBS="$LIBS" 15438 save_CFLAGS="$CFLAGS" 15439 LIBS="$PTHREAD_LIBS $LIBS" 15440 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15441 15442 # Check for various functions. We must include pthread.h, 15443 # since some functions may be macros. (On the Sequent, we 15444 # need a special flag -Kthread to make this header compile.) 15445 # We check for pthread_join because it is in -lpthread on IRIX 15446 # while pthread_create is in libc. We check for pthread_attr_init 15447 # due to DEC craziness with -lpthreads. We check for 15448 # pthread_cleanup_push because it is one of the few pthread 15449 # functions on Solaris that doesn't have a non-functional libc stub. 15450 # We try pthread_create on general principles. 15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453#include <pthread.h> 15454 static void routine(void *a) { *((int*)a) = 0; } 15455 static void *start_routine(void *a) { return a; } 15456int 15457main () 15458{ 15459pthread_t th; pthread_attr_t attr; 15460 pthread_create(&th, 0, start_routine, 0); 15461 pthread_join(th, 0); 15462 pthread_attr_init(&attr); 15463 pthread_cleanup_push(routine, 0); 15464 pthread_cleanup_pop(0) /* ; */ 15465 ; 15466 return 0; 15467} 15468_ACEOF 15469if ac_fn_c_try_link "$LINENO"; then : 15470 ax_pthread_ok=yes 15471fi 15472rm -f core conftest.err conftest.$ac_objext \ 15473 conftest$ac_exeext conftest.$ac_ext 15474 15475 LIBS="$save_LIBS" 15476 CFLAGS="$save_CFLAGS" 15477 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15479$as_echo "$ax_pthread_ok" >&6; } 15480 if test "x$ax_pthread_ok" = xyes; then 15481 break; 15482 fi 15483 15484 PTHREAD_LIBS="" 15485 PTHREAD_CFLAGS="" 15486done 15487fi 15488 15489# Various other checks: 15490if test "x$ax_pthread_ok" = xyes; then 15491 save_LIBS="$LIBS" 15492 LIBS="$PTHREAD_LIBS $LIBS" 15493 save_CFLAGS="$CFLAGS" 15494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15495 15496 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15498$as_echo_n "checking for joinable pthread attribute... " >&6; } 15499 attr_name=unknown 15500 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15502/* end confdefs.h. */ 15503#include <pthread.h> 15504int 15505main () 15506{ 15507int attr = $attr; return attr /* ; */ 15508 ; 15509 return 0; 15510} 15511_ACEOF 15512if ac_fn_c_try_link "$LINENO"; then : 15513 attr_name=$attr; break 15514fi 15515rm -f core conftest.err conftest.$ac_objext \ 15516 conftest$ac_exeext conftest.$ac_ext 15517 done 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15519$as_echo "$attr_name" >&6; } 15520 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15521 15522cat >>confdefs.h <<_ACEOF 15523#define PTHREAD_CREATE_JOINABLE $attr_name 15524_ACEOF 15525 15526 fi 15527 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15529$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15530 flag=no 15531 case ${host_os} in 15532 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15533 osf* | hpux*) flag="-D_REENTRANT";; 15534 solaris*) 15535 if test "$GCC" = "yes"; then 15536 flag="-D_REENTRANT" 15537 else 15538 flag="-mt -D_REENTRANT" 15539 fi 15540 ;; 15541 esac 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15543$as_echo "${flag}" >&6; } 15544 if test "x$flag" != xno; then 15545 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15546 fi 15547 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15549$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15550if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15551 $as_echo_n "(cached) " >&6 15552else 15553 15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15555/* end confdefs.h. */ 15556 15557 #include <pthread.h> 15558int 15559main () 15560{ 15561int i = PTHREAD_PRIO_INHERIT; 15562 ; 15563 return 0; 15564} 15565_ACEOF 15566if ac_fn_c_try_link "$LINENO"; then : 15567 ax_cv_PTHREAD_PRIO_INHERIT=yes 15568else 15569 ax_cv_PTHREAD_PRIO_INHERIT=no 15570fi 15571rm -f core conftest.err conftest.$ac_objext \ 15572 conftest$ac_exeext conftest.$ac_ext 15573 15574fi 15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15576$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15577 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15578 15579$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15580 15581fi 15582 15583 LIBS="$save_LIBS" 15584 CFLAGS="$save_CFLAGS" 15585 15586 # More AIX lossage: compile with *_r variant 15587 if test "x$GCC" != xyes; then 15588 case $host_os in 15589 aix*) 15590 case "x/$CC" in #( 15591 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15592 #handle absolute path differently from PATH based program lookup 15593 case "x$CC" in #( 15594 x/*) : 15595 if as_fn_executable_p ${CC}_r; then : 15596 PTHREAD_CC="${CC}_r" 15597fi ;; #( 15598 *) : 15599 for ac_prog in ${CC}_r 15600do 15601 # Extract the first word of "$ac_prog", so it can be a program name with args. 15602set dummy $ac_prog; ac_word=$2 15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15604$as_echo_n "checking for $ac_word... " >&6; } 15605if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 if test -n "$PTHREAD_CC"; then 15609 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15610else 15611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15612for as_dir in $PATH 15613do 15614 IFS=$as_save_IFS 15615 test -z "$as_dir" && as_dir=. 15616 for ac_exec_ext in '' $ac_executable_extensions; do 15617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15618 ac_cv_prog_PTHREAD_CC="$ac_prog" 15619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15620 break 2 15621 fi 15622done 15623 done 15624IFS=$as_save_IFS 15625 15626fi 15627fi 15628PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15629if test -n "$PTHREAD_CC"; then 15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15631$as_echo "$PTHREAD_CC" >&6; } 15632else 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15634$as_echo "no" >&6; } 15635fi 15636 15637 15638 test -n "$PTHREAD_CC" && break 15639done 15640test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15641 ;; 15642esac ;; #( 15643 *) : 15644 ;; 15645esac 15646 ;; 15647 esac 15648 fi 15649fi 15650 15651test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15652 15653 15654 15655 15656 15657# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15658if test x"$ax_pthread_ok" = xyes; then 15659 15660 15661$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15662 15663 LIBS="$PTHREAD_LIBS $LIBS" 15664 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15665 CC="$PTHREAD_CC" 15666 ub_have_pthreads=yes 15667 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 15668" 15669if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 15670 15671cat >>confdefs.h <<_ACEOF 15672#define HAVE_PTHREAD_SPINLOCK_T 1 15673_ACEOF 15674 15675 15676fi 15677ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 15678" 15679if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 15680 15681cat >>confdefs.h <<_ACEOF 15682#define HAVE_PTHREAD_RWLOCK_T 1 15683_ACEOF 15684 15685 15686fi 15687 15688 15689 : 15690else 15691 ax_pthread_ok=no 15692 15693fi 15694ac_ext=c 15695ac_cpp='$CPP $CPPFLAGS' 15696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15698ac_compiler_gnu=$ac_cv_c_compiler_gnu 15699 15700 15701fi 15702 15703# check solaris thread library 15704 15705# Check whether --with-solaris-threads was given. 15706if test "${with_solaris_threads+set}" = set; then : 15707 withval=$with_solaris_threads; 15708else 15709 withval="no" 15710fi 15711 15712ub_have_sol_threads=no 15713if test x_$withval != x_no; then 15714 if test x_$ub_have_pthreads != x_no; then 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 15716$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 15717 else 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 15719$as_echo_n "checking for library containing thr_create... " >&6; } 15720if ${ac_cv_search_thr_create+:} false; then : 15721 $as_echo_n "(cached) " >&6 15722else 15723 ac_func_search_save_LIBS=$LIBS 15724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15725/* end confdefs.h. */ 15726 15727/* Override any GCC internal prototype to avoid an error. 15728 Use char because int might match the return type of a GCC 15729 builtin and then its argument prototype would still apply. */ 15730#ifdef __cplusplus 15731extern "C" 15732#endif 15733char thr_create (); 15734int 15735main () 15736{ 15737return thr_create (); 15738 ; 15739 return 0; 15740} 15741_ACEOF 15742for ac_lib in '' thread; do 15743 if test -z "$ac_lib"; then 15744 ac_res="none required" 15745 else 15746 ac_res=-l$ac_lib 15747 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15748 fi 15749 if ac_fn_c_try_link "$LINENO"; then : 15750 ac_cv_search_thr_create=$ac_res 15751fi 15752rm -f core conftest.err conftest.$ac_objext \ 15753 conftest$ac_exeext 15754 if ${ac_cv_search_thr_create+:} false; then : 15755 break 15756fi 15757done 15758if ${ac_cv_search_thr_create+:} false; then : 15759 15760else 15761 ac_cv_search_thr_create=no 15762fi 15763rm conftest.$ac_ext 15764LIBS=$ac_func_search_save_LIBS 15765fi 15766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 15767$as_echo "$ac_cv_search_thr_create" >&6; } 15768ac_res=$ac_cv_search_thr_create 15769if test "$ac_res" != no; then : 15770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15771 15772 15773$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 15774 15775 15776 15777 15778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 15779$as_echo_n "checking whether $CC supports -mt... " >&6; } 15780cache=`echo mt | sed 'y%.=/+-%___p_%'` 15781if eval \${cv_prog_cc_flag_$cache+:} false; then : 15782 $as_echo_n "(cached) " >&6 15783else 15784 15785echo 'void f(void){}' >conftest.c 15786if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 15787eval "cv_prog_cc_flag_$cache=yes" 15788else 15789eval "cv_prog_cc_flag_$cache=no" 15790fi 15791rm -f conftest conftest.o conftest.c 15792 15793fi 15794 15795if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15797$as_echo "yes" >&6; } 15798: 15799CFLAGS="$CFLAGS -mt" 15800else 15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15802$as_echo "no" >&6; } 15803: 15804CFLAGS="$CFLAGS -D_REENTRANT" 15805fi 15806 15807 ub_have_sol_threads=yes 15808 15809else 15810 15811 as_fn_error $? "no solaris threads found." "$LINENO" 5 15812 15813fi 15814 15815 fi 15816fi 15817 15818fi # end of non-mingw check of thread libraries 15819 15820# Check for PyUnbound 15821 15822# Check whether --with-pyunbound was given. 15823if test "${with_pyunbound+set}" = set; then : 15824 withval=$with_pyunbound; 15825else 15826 withval="no" 15827fi 15828 15829 15830ub_test_python=no 15831ub_with_pyunbound=no 15832if test x_$withval != x_no; then 15833 ub_with_pyunbound=yes 15834 ub_test_python=yes 15835fi 15836 15837# Check for Python module 15838 15839# Check whether --with-pythonmodule was given. 15840if test "${with_pythonmodule+set}" = set; then : 15841 withval=$with_pythonmodule; 15842else 15843 withval="no" 15844fi 15845 15846 15847ub_with_pythonmod=no 15848if test x_$withval != x_no; then 15849 ub_with_pythonmod=yes 15850 ub_test_python=yes 15851fi 15852 15853# Check for Python & SWIG only on PyUnbound or PyModule 15854if test x_$ub_test_python != x_no; then 15855 15856 # Check for Python 15857 ub_have_python=no 15858 ac_save_LIBS="$LIBS" 15859 # 15860 # Allow the use of a (user set) custom python version 15861 # 15862 15863 15864 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15865set dummy python$PYTHON_VERSION; ac_word=$2 15866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15867$as_echo_n "checking for $ac_word... " >&6; } 15868if ${ac_cv_path_PYTHON+:} false; then : 15869 $as_echo_n "(cached) " >&6 15870else 15871 case $PYTHON in 15872 [\\/]* | ?:[\\/]*) 15873 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15874 ;; 15875 *) 15876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15877for as_dir in $PATH 15878do 15879 IFS=$as_save_IFS 15880 test -z "$as_dir" && as_dir=. 15881 for ac_exec_ext in '' $ac_executable_extensions; do 15882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15883 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15885 break 2 15886 fi 15887done 15888 done 15889IFS=$as_save_IFS 15890 15891 ;; 15892esac 15893fi 15894PYTHON=$ac_cv_path_PYTHON 15895if test -n "$PYTHON"; then 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15897$as_echo "$PYTHON" >&6; } 15898else 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15900$as_echo "no" >&6; } 15901fi 15902 15903 15904 if test -z "$PYTHON"; then 15905 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15906 PYTHON_VERSION="" 15907 fi 15908 15909 if test -z "$PYTHON_VERSION"; then 15910 PYTHON_VERSION=`$PYTHON -c "import sys, string; \ 15911 print string.split(sys.version)[0]"` 15912 fi 15913 15914 # 15915 # Check for a version of Python >= 2.1.0 15916 # 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 15918$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 15919 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 15920 ver = string.split(sys.version)[0]; \ 15921 print ver >= '2.1.0'"` 15922 if test "$ac_supports_python_ver" != "True"; then 15923 if test -z "$PYTHON_NOVERSIONCHECK"; then 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15925$as_echo "no" >&6; } 15926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15928as_fn_error $? " 15929This version of the AC_PYTHON_DEVEL macro 15930doesn't work properly with versions of Python before 159312.1.0. You may need to re-run configure, setting the 15932variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 15933PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 15934Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 15935to something else than an empty string. 15936 15937See \`config.log' for more details" "$LINENO" 5; } 15938 else 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 15940$as_echo "skip at user request" >&6; } 15941 fi 15942 else 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15944$as_echo "yes" >&6; } 15945 fi 15946 15947 # 15948 # if the macro parameter ``version'' is set, honour it 15949 # 15950 if test -n ""; then 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5 15952$as_echo_n "checking for a version of Python ... " >&6; } 15953 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 15954 ver = string.split(sys.version)[0]; \ 15955 print ver "` 15956 if test "$ac_supports_python_ver" = "True"; then 15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15958$as_echo "yes" >&6; } 15959 else 15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15961$as_echo "no" >&6; } 15962 as_fn_error $? "this package requires Python . 15963If you have it installed, but it isn't the default Python 15964interpreter in your system path, please pass the PYTHON_VERSION 15965variable to configure. See \`\`configure --help'' for reference. 15966" "$LINENO" 5 15967 PYTHON_VERSION="" 15968 fi 15969 fi 15970 15971 # 15972 # Check if you have distutils, else fail 15973 # 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 15975$as_echo_n "checking for the distutils Python package... " >&6; } 15976 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 15977 if test -z "$ac_distutils_result"; then 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15979$as_echo "yes" >&6; } 15980 else 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15982$as_echo "no" >&6; } 15983 as_fn_error $? "cannot import Python module \"distutils\". 15984Please check your Python installation. The error was: 15985$ac_distutils_result" "$LINENO" 5 15986 PYTHON_VERSION="" 15987 fi 15988 15989 # 15990 # Check for Python include path 15991 # 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 15993$as_echo_n "checking for Python include path... " >&6; } 15994 if test -z "$PYTHON_CPPFLAGS"; then 15995 python_path=`$PYTHON -c "import distutils.sysconfig; \ 15996 print distutils.sysconfig.get_python_inc();"` 15997 if test -n "${python_path}"; then 15998 python_path="-I$python_path" 15999 fi 16000 PYTHON_CPPFLAGS=$python_path 16001 fi 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 16003$as_echo "$PYTHON_CPPFLAGS" >&6; } 16004 16005 16006 # 16007 # Check for Python library path 16008 # 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 16010$as_echo_n "checking for Python library path... " >&6; } 16011 if test -z "$PYTHON_LDFLAGS"; then 16012 # (makes two attempts to ensure we've got a version number 16013 # from the interpreter) 16014 py_version=`$PYTHON -c "from distutils.sysconfig import *; \ 16015 from string import join; \ 16016 print join(get_config_vars('VERSION'))"` 16017 if test "$py_version" = "None"; then 16018 if test -n "$PYTHON_VERSION"; then 16019 py_version=$PYTHON_VERSION 16020 else 16021 py_version=`$PYTHON -c "import sys; \ 16022 print sys.version[:3]"` 16023 fi 16024 fi 16025 16026 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 16027 from string import join; \ 16028 print '-L' + get_python_lib(0,1), \ 16029 '-L' + os.path.dirname(get_python_lib(0,1)), \ 16030 '-lpython';"`$py_version 16031 fi 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 16033$as_echo "$PYTHON_LDFLAGS" >&6; } 16034 16035 16036 # 16037 # Check for site packages 16038 # 16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 16040$as_echo_n "checking for Python site-packages path... " >&6; } 16041 if test -z "$PYTHON_SITE_PKG"; then 16042 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 16043 print distutils.sysconfig.get_python_lib(1,0);"` 16044 fi 16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 16046$as_echo "$PYTHON_SITE_PKG" >&6; } 16047 16048 16049 # 16050 # libraries which must be linked in when embedding 16051 # 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 16053$as_echo_n "checking python extra libraries... " >&6; } 16054 if test -z "$PYTHON_EXTRA_LIBS"; then 16055 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 16056 conf = distutils.sysconfig.get_config_var; \ 16057 print conf('LOCALMODLIBS'), conf('LIBS')"` 16058 fi 16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 16060$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 16061 16062 16063 # 16064 # linking flags needed when embedding 16065 # 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 16067$as_echo_n "checking python extra linking flags... " >&6; } 16068 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 16069 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 16070 conf = distutils.sysconfig.get_config_var; \ 16071 print conf('LINKFORSHARED')"` 16072 fi 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 16074$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 16075 16076 16077 # 16078 # final check to see if everything compiles alright 16079 # 16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 16081$as_echo_n "checking consistency of all components of python development environment... " >&6; } 16082 ac_ext=c 16083ac_cpp='$CPP $CPPFLAGS' 16084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16086ac_compiler_gnu=$ac_cv_c_compiler_gnu 16087 16088 # save current global flags 16089 ac_save_LIBS="$LIBS" 16090 ac_save_CPPFLAGS="$CPPFLAGS" 16091 16092 LIBS="$LIBS $PYTHON_LDFLAGS" 16093 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16095/* end confdefs.h. */ 16096 16097 #include <Python.h> 16098 16099int 16100main () 16101{ 16102 16103 Py_Initialize(); 16104 16105 ; 16106 return 0; 16107} 16108_ACEOF 16109if ac_fn_c_try_link "$LINENO"; then : 16110 pythonexists=yes 16111else 16112 pythonexists=no 16113fi 16114rm -f core conftest.err conftest.$ac_objext \ 16115 conftest$ac_exeext conftest.$ac_ext 16116 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 16118$as_echo "$pythonexists" >&6; } 16119 16120 if test ! "$pythonexists" = "yes"; then 16121 as_fn_error $? " 16122 Could not link test program to Python. Maybe the main Python library has been 16123 installed in some non-standard library path. If so, pass it to configure, 16124 via the LDFLAGS environment variable. 16125 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 16126 ============================================================================ 16127 ERROR! 16128 You probably have to install the development version of the Python package 16129 for your distribution. The exact name of this package varies among them. 16130 ============================================================================ 16131 " "$LINENO" 5 16132 PYTHON_VERSION="" 16133 fi 16134 ac_ext=c 16135ac_cpp='$CPP $CPPFLAGS' 16136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16138ac_compiler_gnu=$ac_cv_c_compiler_gnu 16139 16140 # turn back to default flags 16141 CPPFLAGS="$ac_save_CPPFLAGS" 16142 LIBS="$ac_save_LIBS" 16143 16144 # 16145 # all done! 16146 # 16147 16148 if test ! -z "$PYTHON_VERSION"; then 16149 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then 16150 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 16151 fi 16152 16153 # Have Python 16154 16155$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 16156 16157 LIBS="$PYTHON_LDFLAGS $LIBS" 16158 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16159 ub_have_python=yes 16160 16161 # Check for SWIG 16162 ub_have_swig=no 16163 16164 # Extract the first word of "swig", so it can be a program name with args. 16165set dummy swig; ac_word=$2 16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16167$as_echo_n "checking for $ac_word... " >&6; } 16168if ${ac_cv_path_SWIG+:} false; then : 16169 $as_echo_n "(cached) " >&6 16170else 16171 case $SWIG in 16172 [\\/]* | ?:[\\/]*) 16173 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 16174 ;; 16175 *) 16176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16177for as_dir in $PATH 16178do 16179 IFS=$as_save_IFS 16180 test -z "$as_dir" && as_dir=. 16181 for ac_exec_ext in '' $ac_executable_extensions; do 16182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16183 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 16184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16185 break 2 16186 fi 16187done 16188 done 16189IFS=$as_save_IFS 16190 16191 ;; 16192esac 16193fi 16194SWIG=$ac_cv_path_SWIG 16195if test -n "$SWIG"; then 16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 16197$as_echo "$SWIG" >&6; } 16198else 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16200$as_echo "no" >&6; } 16201fi 16202 16203 16204 if test -z "$SWIG" ; then 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 16206$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 16207 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 16208 elif test -n "" ; then 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 16210$as_echo_n "checking for SWIG version... " >&6; } 16211 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'` 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 16213$as_echo "$swig_version" >&6; } 16214 if test -n "$swig_version" ; then 16215 # Calculate the required version number components 16216 required= 16217 required_major=`echo $required | sed 's/[^0-9].*//'` 16218 if test -z "$required_major" ; then 16219 required_major=0 16220 fi 16221 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16222 required_minor=`echo $required | sed 's/[^0-9].*//'` 16223 if test -z "$required_minor" ; then 16224 required_minor=0 16225 fi 16226 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16227 required_patch=`echo $required | sed 's/[^0-9].*//'` 16228 if test -z "$required_patch" ; then 16229 required_patch=0 16230 fi 16231 # Calculate the available version number components 16232 available=$swig_version 16233 available_major=`echo $available | sed 's/[^0-9].*//'` 16234 if test -z "$available_major" ; then 16235 available_major=0 16236 fi 16237 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16238 available_minor=`echo $available | sed 's/[^0-9].*//'` 16239 if test -z "$available_minor" ; then 16240 available_minor=0 16241 fi 16242 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16243 available_patch=`echo $available | sed 's/[^0-9].*//'` 16244 if test -z "$available_patch" ; then 16245 available_patch=0 16246 fi 16247 if test $available_major -ne $required_major \ 16248 -o $available_minor -ne $required_minor \ 16249 -o $available_patch -lt $required_patch ; then 16250 { $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 16251$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 16252 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 16253 else 16254 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 16255$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 16256 SWIG_LIB=`$SWIG -swiglib` 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 16258$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 16259 fi 16260 else 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 16262$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 16263 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 16264 fi 16265 fi 16266 16267 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 16269$as_echo_n "checking SWIG... " >&6; } 16270 if test ! -x "$SWIG"; then 16271 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 16272 else 16273 16274$as_echo "#define HAVE_SWIG 1" >>confdefs.h 16275 16276 swig="$SWIG" 16277 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 16279$as_echo "present" >&6; } 16280 16281 # If have Python & SWIG 16282 # Declare PythonMod 16283 if test x_$ub_with_pythonmod != x_no; then 16284 16285$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 16286 16287 WITH_PYTHONMODULE=yes 16288 16289 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 16290 16291 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 16292 16293 PYTHONMOD_INSTALL=pythonmod-install 16294 16295 PYTHONMOD_UNINSTALL=pythonmod-uninstall 16296 16297 fi 16298 16299 # Declare PyUnbound 16300 if test x_$ub_with_pyunbound != x_no; then 16301 16302$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 16303 16304 WITH_PYUNBOUND=yes 16305 16306 PYUNBOUND_OBJ="libunbound_wrap.lo" 16307 16308 PYUNBOUND_TARGET="_unbound.la" 16309 16310 PYUNBOUND_INSTALL=pyunbound-install 16311 16312 PYUNBOUND_UNINSTALL=pyunbound-uninstall 16313 16314 fi 16315 fi 16316 else 16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 16318$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 16319 ub_with_pyunbound=no 16320 ub_with_pythonmod=no 16321 fi 16322fi 16323 16324if test "`uname`" = "NetBSD"; then 16325 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 16326 16327fi 16328CONFIG_DATE=`date +%Y%m%d` 16329 16330 16331# Checks for libraries. 16332 16333# libnss 16334USE_NSS="no" 16335 16336# Check whether --with-nss was given. 16337if test "${with_nss+set}" = set; then : 16338 withval=$with_nss; 16339 USE_NSS="yes" 16340 16341$as_echo "#define HAVE_NSS 1" >>confdefs.h 16342 16343 if test "$withval" != "" -a "$withval" != "yes"; then 16344 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 16345 LDFLAGS="$LDFLAGS -L$withval/lib" 16346 16347 if test "x$enable_rpath" = xyes; then 16348 if echo "$withval/lib" | grep "^/" >/dev/null; then 16349 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16350 fi 16351 fi 16352 16353 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 16354 else 16355 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 16356 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 16357 fi 16358 LIBS="$LIBS -lnss3 -lnspr4" 16359 16360 16361fi 16362 16363 16364# openssl 16365if test $USE_NSS = "no"; then 16366 16367 16368# Check whether --with-ssl was given. 16369if test "${with_ssl+set}" = set; then : 16370 withval=$with_ssl; 16371 16372else 16373 16374 withval="yes" 16375 16376fi 16377 16378 if test x_$withval = x_no; then 16379 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 16380 fi 16381 16382 withval=$withval 16383 if test x_$withval != x_no; then 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16385$as_echo_n "checking for SSL... " >&6; } 16386 if test x_$withval = x_ -o x_$withval = x_yes; then 16387 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16388 fi 16389 for dir in $withval; do 16390 ssldir="$dir" 16391 if test -f "$dir/include/openssl/ssl.h"; then 16392 found_ssl="yes" 16393 16394cat >>confdefs.h <<_ACEOF 16395#define HAVE_SSL /**/ 16396_ACEOF 16397 16398 if test "$ssldir" != "/usr"; then 16399 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16400 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16401 fi 16402 break; 16403 fi 16404 done 16405 if test x_$found_ssl != x_yes; then 16406 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16407 else 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16409$as_echo "found in $ssldir" >&6; } 16410 HAVE_SSL=yes 16411 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16412 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16413 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16414 16415 if test "x$enable_rpath" = xyes; then 16416 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16417 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16418 fi 16419 fi 16420 16421 fi 16422 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 16424$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 16425 LIBS="$LIBS -lcrypto" 16426 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429 16430int 16431main () 16432{ 16433 16434 int HMAC_CTX_init(void); 16435 (void)HMAC_CTX_init(); 16436 16437 ; 16438 return 0; 16439} 16440_ACEOF 16441if ac_fn_c_try_link "$LINENO"; then : 16442 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16444$as_echo "yes" >&6; } 16445 16446$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16447 16448 16449else 16450 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16452$as_echo "no" >&6; } 16453 # check if -lwsock32 or -lgdi32 are needed. 16454 BAKLIBS="$LIBS" 16455 BAKSSLLIBS="$LIBSSL_LIBS" 16456 LIBS="$LIBS -lgdi32" 16457 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16459$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16461/* end confdefs.h. */ 16462 16463int 16464main () 16465{ 16466 16467 int HMAC_CTX_init(void); 16468 (void)HMAC_CTX_init(); 16469 16470 ; 16471 return 0; 16472} 16473_ACEOF 16474if ac_fn_c_try_link "$LINENO"; then : 16475 16476 16477$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16478 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16480$as_echo "yes" >&6; } 16481 16482else 16483 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16485$as_echo "no" >&6; } 16486 LIBS="$BAKLIBS" 16487 LIBSSL_LIBS="$BAKSSLLIBS" 16488 LIBS="$LIBS -ldl" 16489 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16491$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16493/* end confdefs.h. */ 16494 16495int 16496main () 16497{ 16498 16499 int HMAC_CTX_init(void); 16500 (void)HMAC_CTX_init(); 16501 16502 ; 16503 return 0; 16504} 16505_ACEOF 16506if ac_fn_c_try_link "$LINENO"; then : 16507 16508 16509$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16510 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16512$as_echo "yes" >&6; } 16513 16514else 16515 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16517$as_echo "no" >&6; } 16518 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16519 16520fi 16521rm -f core conftest.err conftest.$ac_objext \ 16522 conftest$ac_exeext conftest.$ac_ext 16523 16524fi 16525rm -f core conftest.err conftest.$ac_objext \ 16526 conftest$ac_exeext conftest.$ac_ext 16527 16528fi 16529rm -f core conftest.err conftest.$ac_objext \ 16530 conftest$ac_exeext conftest.$ac_ext 16531 fi 16532 16533 16534 # openssl engine functionality needs dlopen(). 16535 BAKLIBS="$LIBS" 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16537$as_echo_n "checking for library containing dlopen... " >&6; } 16538if ${ac_cv_search_dlopen+:} false; then : 16539 $as_echo_n "(cached) " >&6 16540else 16541 ac_func_search_save_LIBS=$LIBS 16542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16543/* end confdefs.h. */ 16544 16545/* Override any GCC internal prototype to avoid an error. 16546 Use char because int might match the return type of a GCC 16547 builtin and then its argument prototype would still apply. */ 16548#ifdef __cplusplus 16549extern "C" 16550#endif 16551char dlopen (); 16552int 16553main () 16554{ 16555return dlopen (); 16556 ; 16557 return 0; 16558} 16559_ACEOF 16560for ac_lib in '' dl; do 16561 if test -z "$ac_lib"; then 16562 ac_res="none required" 16563 else 16564 ac_res=-l$ac_lib 16565 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16566 fi 16567 if ac_fn_c_try_link "$LINENO"; then : 16568 ac_cv_search_dlopen=$ac_res 16569fi 16570rm -f core conftest.err conftest.$ac_objext \ 16571 conftest$ac_exeext 16572 if ${ac_cv_search_dlopen+:} false; then : 16573 break 16574fi 16575done 16576if ${ac_cv_search_dlopen+:} false; then : 16577 16578else 16579 ac_cv_search_dlopen=no 16580fi 16581rm conftest.$ac_ext 16582LIBS=$ac_func_search_save_LIBS 16583fi 16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16585$as_echo "$ac_cv_search_dlopen" >&6; } 16586ac_res=$ac_cv_search_dlopen 16587if test "$ac_res" != no; then : 16588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16589 16590fi 16591 16592 if test "$LIBS" != "$BAKLIBS"; then 16593 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16594 fi 16595 fi 16596for ac_header in openssl/ssl.h 16597do : 16598 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16599" 16600if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 16601 cat >>confdefs.h <<_ACEOF 16602#define HAVE_OPENSSL_SSL_H 1 16603_ACEOF 16604 16605fi 16606 16607done 16608 16609for ac_header in openssl/err.h 16610do : 16611 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16612" 16613if test "x$ac_cv_header_openssl_err_h" = xyes; then : 16614 cat >>confdefs.h <<_ACEOF 16615#define HAVE_OPENSSL_ERR_H 1 16616_ACEOF 16617 16618fi 16619 16620done 16621 16622for ac_header in openssl/rand.h 16623do : 16624 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16625" 16626if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 16627 cat >>confdefs.h <<_ACEOF 16628#define HAVE_OPENSSL_RAND_H 1 16629_ACEOF 16630 16631fi 16632 16633done 16634 16635 16636 16637 16638# check if libssl needs libdl 16639BAKLIBS="$LIBS" 16640LIBS="-lssl $LIBS" 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 16642$as_echo_n "checking if libssl needs libdl... " >&6; } 16643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16644/* end confdefs.h. */ 16645 16646/* Override any GCC internal prototype to avoid an error. 16647 Use char because int might match the return type of a GCC 16648 builtin and then its argument prototype would still apply. */ 16649#ifdef __cplusplus 16650extern "C" 16651#endif 16652char SSL_CTX_new (); 16653int 16654main () 16655{ 16656return SSL_CTX_new (); 16657 ; 16658 return 0; 16659} 16660_ACEOF 16661if ac_fn_c_try_link "$LINENO"; then : 16662 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16664$as_echo "no" >&6; } 16665 LIBS="$BAKLIBS" 16666 16667else 16668 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16670$as_echo "yes" >&6; } 16671 LIBS="$BAKLIBS" 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16673$as_echo_n "checking for library containing dlopen... " >&6; } 16674if ${ac_cv_search_dlopen+:} false; then : 16675 $as_echo_n "(cached) " >&6 16676else 16677 ac_func_search_save_LIBS=$LIBS 16678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16679/* end confdefs.h. */ 16680 16681/* Override any GCC internal prototype to avoid an error. 16682 Use char because int might match the return type of a GCC 16683 builtin and then its argument prototype would still apply. */ 16684#ifdef __cplusplus 16685extern "C" 16686#endif 16687char dlopen (); 16688int 16689main () 16690{ 16691return dlopen (); 16692 ; 16693 return 0; 16694} 16695_ACEOF 16696for ac_lib in '' dl; do 16697 if test -z "$ac_lib"; then 16698 ac_res="none required" 16699 else 16700 ac_res=-l$ac_lib 16701 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16702 fi 16703 if ac_fn_c_try_link "$LINENO"; then : 16704 ac_cv_search_dlopen=$ac_res 16705fi 16706rm -f core conftest.err conftest.$ac_objext \ 16707 conftest$ac_exeext 16708 if ${ac_cv_search_dlopen+:} false; then : 16709 break 16710fi 16711done 16712if ${ac_cv_search_dlopen+:} false; then : 16713 16714else 16715 ac_cv_search_dlopen=no 16716fi 16717rm conftest.$ac_ext 16718LIBS=$ac_func_search_save_LIBS 16719fi 16720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16721$as_echo "$ac_cv_search_dlopen" >&6; } 16722ac_res=$ac_cv_search_dlopen 16723if test "$ac_res" != no; then : 16724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16725 16726fi 16727 16728 16729fi 16730rm -f core conftest.err conftest.$ac_objext \ 16731 conftest$ac_exeext conftest.$ac_ext 16732for ac_header in openssl/conf.h 16733do : 16734 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 16735" 16736if test "x$ac_cv_header_openssl_conf_h" = xyes; then : 16737 cat >>confdefs.h <<_ACEOF 16738#define HAVE_OPENSSL_CONF_H 1 16739_ACEOF 16740 16741fi 16742 16743done 16744 16745for ac_header in openssl/engine.h 16746do : 16747 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 16748" 16749if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 16750 cat >>confdefs.h <<_ACEOF 16751#define HAVE_OPENSSL_ENGINE_H 1 16752_ACEOF 16753 16754fi 16755 16756done 16757 16758for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode 16759do : 16760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16761ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16762if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16763 cat >>confdefs.h <<_ACEOF 16764#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16765_ACEOF 16766 16767fi 16768done 16769 16770ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 16771$ac_includes_default 16772#ifdef HAVE_OPENSSL_ERR_H 16773#include <openssl/err.h> 16774#endif 16775 16776#ifdef HAVE_OPENSSL_RAND_H 16777#include <openssl/rand.h> 16778#endif 16779 16780#ifdef HAVE_OPENSSL_CONF_H 16781#include <openssl/conf.h> 16782#endif 16783 16784#ifdef HAVE_OPENSSL_ENGINE_H 16785#include <openssl/engine.h> 16786#endif 16787#include <openssl/ssl.h> 16788#include <openssl/evp.h> 16789 16790" 16791if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 16792 ac_have_decl=1 16793else 16794 ac_have_decl=0 16795fi 16796 16797cat >>confdefs.h <<_ACEOF 16798#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 16799_ACEOF 16800ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 16801$ac_includes_default 16802#ifdef HAVE_OPENSSL_ERR_H 16803#include <openssl/err.h> 16804#endif 16805 16806#ifdef HAVE_OPENSSL_RAND_H 16807#include <openssl/rand.h> 16808#endif 16809 16810#ifdef HAVE_OPENSSL_CONF_H 16811#include <openssl/conf.h> 16812#endif 16813 16814#ifdef HAVE_OPENSSL_ENGINE_H 16815#include <openssl/engine.h> 16816#endif 16817#include <openssl/ssl.h> 16818#include <openssl/evp.h> 16819 16820" 16821if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 16822 ac_have_decl=1 16823else 16824 ac_have_decl=0 16825fi 16826 16827cat >>confdefs.h <<_ACEOF 16828#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 16829_ACEOF 16830 16831fi 16832 16833 16834# Check whether --enable-sha2 was given. 16835if test "${enable_sha2+set}" = set; then : 16836 enableval=$enable_sha2; 16837fi 16838 16839case "$enable_sha2" in 16840 no) 16841 ;; 16842 yes|*) 16843 16844$as_echo "#define USE_SHA2 1" >>confdefs.h 16845 16846 ;; 16847esac 16848 16849# check wether gost also works 16850 16851# Check whether --enable-gost was given. 16852if test "${enable_gost+set}" = set; then : 16853 enableval=$enable_gost; 16854fi 16855 16856use_gost="no" 16857if test $USE_NSS = "no"; then 16858case "$enable_gost" in 16859 no) 16860 ;; 16861 *) 16862 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16863if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 16864 : 16865else 16866 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 16867fi 16868 16869 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16870if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 16871 16872else 16873 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 16874fi 16875 16876 16877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 16878$as_echo_n "checking if GOST works... " >&6; } 16879if test c${cross_compiling} = cno; then 16880BAKCFLAGS="$CFLAGS" 16881if test -n "$ssldir"; then 16882 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 16883fi 16884if test "$cross_compiling" = yes; then : 16885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16887as_fn_error $? "cannot run test program while cross compiling 16888See \`config.log' for more details" "$LINENO" 5; } 16889else 16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16891/* end confdefs.h. */ 16892 16893#include <string.h> 16894#include <openssl/ssl.h> 16895#include <openssl/evp.h> 16896#include <openssl/engine.h> 16897#include <openssl/conf.h> 16898/* routine to load gost (from sldns) */ 16899int load_gost_id(void) 16900{ 16901 static int gost_id = 0; 16902 const EVP_PKEY_ASN1_METHOD* meth; 16903 ENGINE* e; 16904 16905 if(gost_id) return gost_id; 16906 16907 /* see if configuration loaded gost implementation from other engine*/ 16908 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 16909 if(meth) { 16910 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16911 return gost_id; 16912 } 16913 16914 /* see if engine can be loaded already */ 16915 e = ENGINE_by_id("gost"); 16916 if(!e) { 16917 /* load it ourself, in case statically linked */ 16918 ENGINE_load_builtin_engines(); 16919 ENGINE_load_dynamic(); 16920 e = ENGINE_by_id("gost"); 16921 } 16922 if(!e) { 16923 /* no gost engine in openssl */ 16924 return 0; 16925 } 16926 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 16927 ENGINE_finish(e); 16928 ENGINE_free(e); 16929 return 0; 16930 } 16931 16932 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 16933 if(!meth) { 16934 /* algo not found */ 16935 ENGINE_finish(e); 16936 ENGINE_free(e); 16937 return 0; 16938 } 16939 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16940 return gost_id; 16941} 16942int main(void) { 16943 EVP_MD_CTX* ctx; 16944 const EVP_MD* md; 16945 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 16946 const char* str = "Hello world"; 16947 const unsigned char check[] = { 16948 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 16949 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 16950 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 16951 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 16952 }; 16953 OPENSSL_config(NULL); 16954 (void)load_gost_id(); 16955 md = EVP_get_digestbyname("md_gost94"); 16956 if(!md) return 1; 16957 memset(digest, 0, sizeof(digest)); 16958 ctx = EVP_MD_CTX_create(); 16959 if(!ctx) return 2; 16960 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 16961 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 16962 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 16963 /* uncomment to see the hash calculated. 16964 {int i; 16965 for(i=0; i<32; i++) 16966 printf(" %2.2x", (int)digest[i]); 16967 printf("\n");} 16968 */ 16969 if(memcmp(digest, check, sizeof(check)) != 0) 16970 return 6; 16971 return 0; 16972} 16973 16974_ACEOF 16975if ac_fn_c_try_run "$LINENO"; then : 16976 eval "ac_cv_c_gost_works=yes" 16977else 16978 eval "ac_cv_c_gost_works=no" 16979fi 16980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16981 conftest.$ac_objext conftest.beam conftest.$ac_ext 16982fi 16983 16984CFLAGS="$BAKCFLAGS" 16985else 16986eval "ac_cv_c_gost_works=maybe" 16987fi 16988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 16989$as_echo "$ac_cv_c_gost_works" >&6; } 16990 16991 if test "$ac_cv_c_gost_works" != no; then 16992 use_gost="yes" 16993 16994$as_echo "#define USE_GOST 1" >>confdefs.h 16995 16996 fi 16997 ;; 16998esac 16999fi 17000# Check whether --enable-ecdsa was given. 17001if test "${enable_ecdsa+set}" = set; then : 17002 enableval=$enable_ecdsa; 17003fi 17004 17005use_ecdsa="no" 17006case "$enable_ecdsa" in 17007 no) 17008 ;; 17009 *) 17010 if test $USE_NSS = "no"; then 17011 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 17012if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 17013 17014else 17015 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17016fi 17017 17018 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 17019if test "x$ac_cv_func_SHA384_Init" = xyes; then : 17020 17021else 17022 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17023fi 17024 17025 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 17026#include <openssl/evp.h> 17027 17028" 17029if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 17030 ac_have_decl=1 17031else 17032 ac_have_decl=0 17033fi 17034 17035cat >>confdefs.h <<_ACEOF 17036#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 17037_ACEOF 17038if test $ac_have_decl = 1; then : 17039 17040else 17041 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17042fi 17043ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 17044#include <openssl/evp.h> 17045 17046" 17047if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 17048 ac_have_decl=1 17049else 17050 ac_have_decl=0 17051fi 17052 17053cat >>confdefs.h <<_ACEOF 17054#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 17055_ACEOF 17056if test $ac_have_decl = 1; then : 17057 17058else 17059 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17060fi 17061 17062 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 17064$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 17065 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17067$as_echo "no" >&6; } 17068 17069cat >>confdefs.h <<_ACEOF 17070#define USE_ECDSA_EVP_WORKAROUND 1 17071_ACEOF 17072 17073 else 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17075$as_echo "yes" >&6; } 17076 fi 17077 fi 17078 # we now know we have ECDSA and the required curves. 17079 17080cat >>confdefs.h <<_ACEOF 17081#define USE_ECDSA 1 17082_ACEOF 17083 17084 use_ecdsa="yes" 17085 ;; 17086esac 17087 17088# Check whether --enable-event-api was given. 17089if test "${enable_event_api+set}" = set; then : 17090 enableval=$enable_event_api; 17091fi 17092 17093use_unbound_event="no" 17094case "$enable_event_api" in 17095 yes) 17096 use_unbound_event="yes" 17097 ;; 17098 *) 17099 ;; 17100esac 17101 17102# check for libevent 17103 17104# Check whether --with-libevent was given. 17105if test "${with_libevent+set}" = set; then : 17106 withval=$with_libevent; 17107else 17108 withval="no" 17109fi 17110 17111if test x_$withval = x_yes -o x_$withval != x_no; then 17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 17113$as_echo_n "checking for libevent... " >&6; } 17114 if test x_$withval = x_ -o x_$withval = x_yes; then 17115 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17116 fi 17117 for dir in $withval; do 17118 thedir="$dir" 17119 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 17120 found_libevent="yes" 17121 if test "$thedir" != "/usr"; then 17122 CPPFLAGS="$CPPFLAGS -I$thedir/include" 17123 fi 17124 break; 17125 fi 17126 done 17127 if test x_$found_libevent != x_yes; then 17128 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 17129 # libevent source directory 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17131$as_echo "found in $thedir" >&6; } 17132 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 17133 BAK_LDFLAGS_SET="1" 17134 BAK_LDFLAGS="$LDFLAGS" 17135 # remove evdns from linking 17136 mkdir build >/dev/null 2>&1 17137 mkdir build/libevent >/dev/null 2>&1 17138 mkdir build/libevent/.libs >/dev/null 2>&1 17139 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17140 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 17141 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17142 cp $ev_files_o build/libevent 17143 cp $ev_files_lo build/libevent 17144 cp $ev_files_libso build/libevent/.libs 17145 LATE_LDFLAGS="build/libevent/*.lo -lm" 17146 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 17147 else 17148 as_fn_error $? "Cannot find the libevent library in $withval 17149You can restart ./configure --with-libevent=no to use a builtin alternative. 17150Please note that this alternative is not as capable as libevent when using 17151large outgoing port ranges. " "$LINENO" 5 17152 fi 17153 else 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17155$as_echo "found in $thedir" >&6; } 17156 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 17157 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 17158 17159 if test "x$enable_rpath" = xyes; then 17160 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 17161 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 17162 fi 17163 fi 17164 17165 else 17166 if test "$thedir" != "/usr" -a "$thedir" != ""; then 17167 LDFLAGS="$LDFLAGS -L$thedir/lib" 17168 17169 if test "x$enable_rpath" = xyes; then 17170 if echo "$thedir/lib" | grep "^/" >/dev/null; then 17171 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 17172 fi 17173 fi 17174 17175 fi 17176 fi 17177 fi 17178 # check for library used by libevent after 1.3c 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17180$as_echo_n "checking for library containing clock_gettime... " >&6; } 17181if ${ac_cv_search_clock_gettime+:} false; then : 17182 $as_echo_n "(cached) " >&6 17183else 17184 ac_func_search_save_LIBS=$LIBS 17185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17186/* end confdefs.h. */ 17187 17188/* Override any GCC internal prototype to avoid an error. 17189 Use char because int might match the return type of a GCC 17190 builtin and then its argument prototype would still apply. */ 17191#ifdef __cplusplus 17192extern "C" 17193#endif 17194char clock_gettime (); 17195int 17196main () 17197{ 17198return clock_gettime (); 17199 ; 17200 return 0; 17201} 17202_ACEOF 17203for ac_lib in '' rt; do 17204 if test -z "$ac_lib"; then 17205 ac_res="none required" 17206 else 17207 ac_res=-l$ac_lib 17208 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17209 fi 17210 if ac_fn_c_try_link "$LINENO"; then : 17211 ac_cv_search_clock_gettime=$ac_res 17212fi 17213rm -f core conftest.err conftest.$ac_objext \ 17214 conftest$ac_exeext 17215 if ${ac_cv_search_clock_gettime+:} false; then : 17216 break 17217fi 17218done 17219if ${ac_cv_search_clock_gettime+:} false; then : 17220 17221else 17222 ac_cv_search_clock_gettime=no 17223fi 17224rm conftest.$ac_ext 17225LIBS=$ac_func_search_save_LIBS 17226fi 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17228$as_echo "$ac_cv_search_clock_gettime" >&6; } 17229ac_res=$ac_cv_search_clock_gettime 17230if test "$ac_res" != no; then : 17231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17232 17233fi 17234 17235 17236 # is the event.h header libev or libevent? 17237 for ac_header in event.h 17238do : 17239 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 17240" 17241if test "x$ac_cv_header_event_h" = xyes; then : 17242 cat >>confdefs.h <<_ACEOF 17243#define HAVE_EVENT_H 1 17244_ACEOF 17245 17246fi 17247 17248done 17249 17250 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 17251#include <event.h> 17252 17253" 17254if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 17255 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17257$as_echo_n "checking for library containing event_set... " >&6; } 17258if ${ac_cv_search_event_set+:} false; then : 17259 $as_echo_n "(cached) " >&6 17260else 17261 ac_func_search_save_LIBS=$LIBS 17262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17263/* end confdefs.h. */ 17264 17265/* Override any GCC internal prototype to avoid an error. 17266 Use char because int might match the return type of a GCC 17267 builtin and then its argument prototype would still apply. */ 17268#ifdef __cplusplus 17269extern "C" 17270#endif 17271char event_set (); 17272int 17273main () 17274{ 17275return event_set (); 17276 ; 17277 return 0; 17278} 17279_ACEOF 17280for ac_lib in '' ev; do 17281 if test -z "$ac_lib"; then 17282 ac_res="none required" 17283 else 17284 ac_res=-l$ac_lib 17285 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17286 fi 17287 if ac_fn_c_try_link "$LINENO"; then : 17288 ac_cv_search_event_set=$ac_res 17289fi 17290rm -f core conftest.err conftest.$ac_objext \ 17291 conftest$ac_exeext 17292 if ${ac_cv_search_event_set+:} false; then : 17293 break 17294fi 17295done 17296if ${ac_cv_search_event_set+:} false; then : 17297 17298else 17299 ac_cv_search_event_set=no 17300fi 17301rm conftest.$ac_ext 17302LIBS=$ac_func_search_save_LIBS 17303fi 17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17305$as_echo "$ac_cv_search_event_set" >&6; } 17306ac_res=$ac_cv_search_event_set 17307if test "$ac_res" != no; then : 17308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17309 17310fi 17311 17312 17313else 17314 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17316$as_echo_n "checking for library containing event_set... " >&6; } 17317if ${ac_cv_search_event_set+:} false; then : 17318 $as_echo_n "(cached) " >&6 17319else 17320 ac_func_search_save_LIBS=$LIBS 17321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322/* end confdefs.h. */ 17323 17324/* Override any GCC internal prototype to avoid an error. 17325 Use char because int might match the return type of a GCC 17326 builtin and then its argument prototype would still apply. */ 17327#ifdef __cplusplus 17328extern "C" 17329#endif 17330char event_set (); 17331int 17332main () 17333{ 17334return event_set (); 17335 ; 17336 return 0; 17337} 17338_ACEOF 17339for ac_lib in '' event; do 17340 if test -z "$ac_lib"; then 17341 ac_res="none required" 17342 else 17343 ac_res=-l$ac_lib 17344 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17345 fi 17346 if ac_fn_c_try_link "$LINENO"; then : 17347 ac_cv_search_event_set=$ac_res 17348fi 17349rm -f core conftest.err conftest.$ac_objext \ 17350 conftest$ac_exeext 17351 if ${ac_cv_search_event_set+:} false; then : 17352 break 17353fi 17354done 17355if ${ac_cv_search_event_set+:} false; then : 17356 17357else 17358 ac_cv_search_event_set=no 17359fi 17360rm conftest.$ac_ext 17361LIBS=$ac_func_search_save_LIBS 17362fi 17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17364$as_echo "$ac_cv_search_event_set" >&6; } 17365ac_res=$ac_cv_search_event_set 17366if test "$ac_res" != no; then : 17367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17368 17369fi 17370 17371 17372fi 17373 17374 for ac_func in event_base_free 17375do : 17376 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 17377if test "x$ac_cv_func_event_base_free" = xyes; then : 17378 cat >>confdefs.h <<_ACEOF 17379#define HAVE_EVENT_BASE_FREE 1 17380_ACEOF 17381 17382fi 17383done 17384 # only in libevent 1.2 and later 17385 for ac_func in event_base_once 17386do : 17387 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 17388if test "x$ac_cv_func_event_base_once" = xyes; then : 17389 cat >>confdefs.h <<_ACEOF 17390#define HAVE_EVENT_BASE_ONCE 1 17391_ACEOF 17392 17393fi 17394done 17395 # only in libevent 1.4.1 and later 17396 for ac_func in event_base_new 17397do : 17398 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 17399if test "x$ac_cv_func_event_base_new" = xyes; then : 17400 cat >>confdefs.h <<_ACEOF 17401#define HAVE_EVENT_BASE_NEW 1 17402_ACEOF 17403 17404fi 17405done 17406 # only in libevent 1.4.1 and later 17407 for ac_func in event_base_get_method 17408do : 17409 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 17410if test "x$ac_cv_func_event_base_get_method" = xyes; then : 17411 cat >>confdefs.h <<_ACEOF 17412#define HAVE_EVENT_BASE_GET_METHOD 1 17413_ACEOF 17414 17415fi 17416done 17417 # only in libevent 1.4.3 and later 17418 for ac_func in ev_loop 17419do : 17420 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 17421if test "x$ac_cv_func_ev_loop" = xyes; then : 17422 cat >>confdefs.h <<_ACEOF 17423#define HAVE_EV_LOOP 1 17424_ACEOF 17425 17426fi 17427done 17428 # only in libev. (tested on 3.51) 17429 for ac_func in ev_default_loop 17430do : 17431 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 17432if test "x$ac_cv_func_ev_default_loop" = xyes; then : 17433 cat >>confdefs.h <<_ACEOF 17434#define HAVE_EV_DEFAULT_LOOP 1 17435_ACEOF 17436 17437fi 17438done 17439 # only in libev. (tested on 4.00) 17440 if test -n "$BAK_LDFLAGS_SET"; then 17441 LDFLAGS="$BAK_LDFLAGS" 17442 fi 17443 if test "$use_unbound_event" = "yes"; then 17444 UNBOUND_EVENT_INSTALL=unbound-event-install 17445 17446 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 17447 17448 fi 17449else 17450 17451$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 17452 17453fi 17454 17455# check for libexpat 17456 17457# Check whether --with-libexpat was given. 17458if test "${with_libexpat+set}" = set; then : 17459 withval=$with_libexpat; 17460else 17461 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17462fi 17463 17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 17465$as_echo_n "checking for libexpat... " >&6; } 17466found_libexpat="no" 17467for dir in $withval ; do 17468 if test -f "$dir/include/expat.h"; then 17469 found_libexpat="yes" 17470 if test "$dir" != "/usr"; then 17471 CPPFLAGS="$CPPFLAGS -I$dir/include" 17472 LDFLAGS="$LDFLAGS -L$dir/lib" 17473 fi 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 17475$as_echo "found in $dir" >&6; } 17476 break; 17477 fi 17478done 17479if test x_$found_libexpat != x_yes; then 17480 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 17481fi 17482for ac_header in expat.h 17483do : 17484 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 17485" 17486if test "x$ac_cv_header_expat_h" = xyes; then : 17487 cat >>confdefs.h <<_ACEOF 17488#define HAVE_EXPAT_H 1 17489_ACEOF 17490 17491fi 17492 17493done 17494 17495 17496# set static linking if requested 17497 17498staticexe="" 17499# Check whether --enable-static-exe was given. 17500if test "${enable_static_exe+set}" = set; then : 17501 enableval=$enable_static_exe; 17502fi 17503 17504if test x_$enable_static_exe = x_yes; then 17505 staticexe="-static" 17506 if test "$on_mingw" = yes; then 17507 staticexe="-all-static" 17508 # for static crosscompile, include gdi32 and zlib here. 17509 if test "`uname`" = "Linux"; then 17510 LIBS="$LIBS -lgdi32 -lz" 17511 fi 17512 fi 17513fi 17514 17515# set lock checking if requested 17516# Check whether --enable-lock_checks was given. 17517if test "${enable_lock_checks+set}" = set; then : 17518 enableval=$enable_lock_checks; 17519fi 17520 17521if test x_$enable_lock_checks = x_yes; then 17522 17523$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 17524 17525 CHECKLOCK_OBJ="checklocks.lo" 17526 17527fi 17528 17529 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 17531$as_echo_n "checking for getaddrinfo... " >&6; } 17532ac_cv_func_getaddrinfo=no 17533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17534/* end confdefs.h. */ 17535 17536#ifdef __cplusplus 17537extern "C" 17538{ 17539#endif 17540char* getaddrinfo(); 17541char* (*f) () = getaddrinfo; 17542#ifdef __cplusplus 17543} 17544#endif 17545int main() { 17546 ; 17547 return 0; 17548} 17549 17550_ACEOF 17551if ac_fn_c_try_link "$LINENO"; then : 17552 ac_cv_func_getaddrinfo="yes" 17553if test "$ac_cv_header_windows_h" = "yes"; then 17554 17555$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17556 17557 USE_WINSOCK="1" 17558 LIBS="$LIBS -lws2_32" 17559fi 17560 17561else 17562 ORIGLIBS="$LIBS" 17563LIBS="$LIBS -lws2_32" 17564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17565/* end confdefs.h. */ 17566 17567#ifdef HAVE_WS2TCPIP_H 17568#include <ws2tcpip.h> 17569#endif 17570 17571int 17572main () 17573{ 17574 17575 (void)getaddrinfo(NULL, NULL, NULL, NULL); 17576 17577 17578 ; 17579 return 0; 17580} 17581_ACEOF 17582if ac_fn_c_try_link "$LINENO"; then : 17583 17584ac_cv_func_getaddrinfo="yes" 17585 17586$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17587 17588USE_WINSOCK="1" 17589 17590else 17591 17592ac_cv_func_getaddrinfo="no" 17593LIBS="$ORIGLIBS" 17594 17595fi 17596rm -f core conftest.err conftest.$ac_objext \ 17597 conftest$ac_exeext conftest.$ac_ext 17598 17599fi 17600rm -f core conftest.err conftest.$ac_objext \ 17601 conftest$ac_exeext conftest.$ac_ext 17602 17603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 17604$as_echo "$ac_cv_func_getaddrinfo" >&6; } 17605if test $ac_cv_func_getaddrinfo = yes; then 17606 17607$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17608 17609fi 17610 17611if test "$USE_WINSOCK" = 1; then 17612 17613$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 17614 17615 for ac_header in iphlpapi.h 17616do : 17617 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 17618#include <windows.h> 17619 17620" 17621if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 17622 cat >>confdefs.h <<_ACEOF 17623#define HAVE_IPHLPAPI_H 1 17624_ACEOF 17625 17626fi 17627 17628done 17629 17630 if test -n "$ac_tool_prefix"; then 17631 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17632set dummy ${ac_tool_prefix}windres; ac_word=$2 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17634$as_echo_n "checking for $ac_word... " >&6; } 17635if ${ac_cv_prog_WINDRES+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 if test -n "$WINDRES"; then 17639 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 17640else 17641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17642for as_dir in $PATH 17643do 17644 IFS=$as_save_IFS 17645 test -z "$as_dir" && as_dir=. 17646 for ac_exec_ext in '' $ac_executable_extensions; do 17647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17648 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 17649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17650 break 2 17651 fi 17652done 17653 done 17654IFS=$as_save_IFS 17655 17656fi 17657fi 17658WINDRES=$ac_cv_prog_WINDRES 17659if test -n "$WINDRES"; then 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 17661$as_echo "$WINDRES" >&6; } 17662else 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17664$as_echo "no" >&6; } 17665fi 17666 17667 17668fi 17669if test -z "$ac_cv_prog_WINDRES"; then 17670 ac_ct_WINDRES=$WINDRES 17671 # Extract the first word of "windres", so it can be a program name with args. 17672set dummy windres; ac_word=$2 17673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17674$as_echo_n "checking for $ac_word... " >&6; } 17675if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 17676 $as_echo_n "(cached) " >&6 17677else 17678 if test -n "$ac_ct_WINDRES"; then 17679 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 17680else 17681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17682for as_dir in $PATH 17683do 17684 IFS=$as_save_IFS 17685 test -z "$as_dir" && as_dir=. 17686 for ac_exec_ext in '' $ac_executable_extensions; do 17687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17688 ac_cv_prog_ac_ct_WINDRES="windres" 17689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17690 break 2 17691 fi 17692done 17693 done 17694IFS=$as_save_IFS 17695 17696fi 17697fi 17698ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 17699if test -n "$ac_ct_WINDRES"; then 17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 17701$as_echo "$ac_ct_WINDRES" >&6; } 17702else 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17704$as_echo "no" >&6; } 17705fi 17706 17707 if test "x$ac_ct_WINDRES" = x; then 17708 WINDRES="" 17709 else 17710 case $cross_compiling:$ac_tool_warned in 17711yes:) 17712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17714ac_tool_warned=yes ;; 17715esac 17716 WINDRES=$ac_ct_WINDRES 17717 fi 17718else 17719 WINDRES="$ac_cv_prog_WINDRES" 17720fi 17721 17722 LIBS="$LIBS -liphlpapi" 17723 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 17724 17725 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 17726 17727 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 17728 17729 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 17730 17731 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 17732 17733 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 17734 17735 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 17736 17737 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 17738 17739fi 17740if test $ac_cv_func_getaddrinfo = no; then 17741 case " $LIBOBJS " in 17742 *" fake-rfc2553.$ac_objext "* ) ;; 17743 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 17744 ;; 17745esac 17746 17747fi 17748# check after getaddrinfo for its libraries 17749 17750# check ioctlsocket 17751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 17752$as_echo_n "checking for ioctlsocket... " >&6; } 17753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17754/* end confdefs.h. */ 17755 17756#ifdef HAVE_WINSOCK2_H 17757#include <winsock2.h> 17758#endif 17759 17760int 17761main () 17762{ 17763 17764 (void)ioctlsocket(0, 0, NULL); 17765 17766 ; 17767 return 0; 17768} 17769_ACEOF 17770if ac_fn_c_try_link "$LINENO"; then : 17771 17772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17773$as_echo "yes" >&6; } 17774 17775$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 17776 17777 17778else 17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17780$as_echo "no" >&6; } 17781fi 17782rm -f core conftest.err conftest.$ac_objext \ 17783 conftest$ac_exeext conftest.$ac_ext 17784 17785 17786# see if daemon(3) exists, and if it is deprecated. 17787for ac_func in daemon 17788do : 17789 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 17790if test "x$ac_cv_func_daemon" = xyes; then : 17791 cat >>confdefs.h <<_ACEOF 17792#define HAVE_DAEMON 1 17793_ACEOF 17794 17795fi 17796done 17797 17798if test $ac_cv_func_daemon = yes; then 17799 17800 17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 17802$as_echo_n "checking if daemon is deprecated... " >&6; } 17803cache=`echo daemon | sed 'y%.=/+-%___p_%'` 17804if eval \${cv_cc_deprecated_$cache+:} false; then : 17805 $as_echo_n "(cached) " >&6 17806else 17807 17808echo ' 17809#include <stdlib.h> 17810' >conftest.c 17811echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 17812if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 17813eval "cv_cc_deprecated_$cache=no" 17814else 17815eval "cv_cc_deprecated_$cache=yes" 17816fi 17817rm -f conftest conftest.o conftest.c 17818 17819fi 17820 17821if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17823$as_echo "yes" >&6; } 17824 17825cat >>confdefs.h <<_ACEOF 17826#define DEPRECATED_DAEMON 1 17827_ACEOF 17828 17829: 17830 17831else 17832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17833$as_echo "no" >&6; } 17834: 17835 17836fi 17837 17838fi 17839 17840ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 17841$ac_includes_default 17842#if HAVE_SYS_PARAM_H 17843#include <sys/param.h> 17844#endif 17845 17846#ifdef HAVE_SYS_SOCKET_H 17847#include <sys/socket.h> 17848#endif 17849 17850#ifdef HAVE_SYS_UIO_H 17851#include <sys/uio.h> 17852#endif 17853 17854#ifdef HAVE_NETINET_IN_H 17855#include <netinet/in.h> 17856#endif 17857 17858#ifdef HAVE_ARPA_INET_H 17859#include <arpa/inet.h> 17860#endif 17861 17862#ifdef HAVE_WINSOCK2_H 17863#include <winsock2.h> 17864#endif 17865 17866#ifdef HAVE_WS2TCPIP_H 17867#include <ws2tcpip.h> 17868#endif 17869 17870" 17871if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 17872 17873cat >>confdefs.h <<_ACEOF 17874#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 17875_ACEOF 17876 17877 17878fi 17879 17880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 17881$as_echo_n "checking for library containing setusercontext... " >&6; } 17882if ${ac_cv_search_setusercontext+:} false; then : 17883 $as_echo_n "(cached) " >&6 17884else 17885 ac_func_search_save_LIBS=$LIBS 17886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17887/* end confdefs.h. */ 17888 17889/* Override any GCC internal prototype to avoid an error. 17890 Use char because int might match the return type of a GCC 17891 builtin and then its argument prototype would still apply. */ 17892#ifdef __cplusplus 17893extern "C" 17894#endif 17895char setusercontext (); 17896int 17897main () 17898{ 17899return setusercontext (); 17900 ; 17901 return 0; 17902} 17903_ACEOF 17904for ac_lib in '' util; do 17905 if test -z "$ac_lib"; then 17906 ac_res="none required" 17907 else 17908 ac_res=-l$ac_lib 17909 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17910 fi 17911 if ac_fn_c_try_link "$LINENO"; then : 17912 ac_cv_search_setusercontext=$ac_res 17913fi 17914rm -f core conftest.err conftest.$ac_objext \ 17915 conftest$ac_exeext 17916 if ${ac_cv_search_setusercontext+:} false; then : 17917 break 17918fi 17919done 17920if ${ac_cv_search_setusercontext+:} false; then : 17921 17922else 17923 ac_cv_search_setusercontext=no 17924fi 17925rm conftest.$ac_ext 17926LIBS=$ac_func_search_save_LIBS 17927fi 17928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 17929$as_echo "$ac_cv_search_setusercontext" >&6; } 17930ac_res=$ac_cv_search_setusercontext 17931if test "$ac_res" != no; then : 17932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17933 17934fi 17935 17936for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent 17937do : 17938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17940if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17941 cat >>confdefs.h <<_ACEOF 17942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17943_ACEOF 17944 17945fi 17946done 17947 17948for ac_func in setresuid 17949do : 17950 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 17951if test "x$ac_cv_func_setresuid" = xyes; then : 17952 cat >>confdefs.h <<_ACEOF 17953#define HAVE_SETRESUID 1 17954_ACEOF 17955 17956else 17957 for ac_func in setreuid 17958do : 17959 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 17960if test "x$ac_cv_func_setreuid" = xyes; then : 17961 cat >>confdefs.h <<_ACEOF 17962#define HAVE_SETREUID 1 17963_ACEOF 17964 17965fi 17966done 17967 17968fi 17969done 17970 17971for ac_func in setresgid 17972do : 17973 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 17974if test "x$ac_cv_func_setresgid" = xyes; then : 17975 cat >>confdefs.h <<_ACEOF 17976#define HAVE_SETRESGID 1 17977_ACEOF 17978 17979else 17980 for ac_func in setregid 17981do : 17982 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 17983if test "x$ac_cv_func_setregid" = xyes; then : 17984 cat >>confdefs.h <<_ACEOF 17985#define HAVE_SETREGID 1 17986_ACEOF 17987 17988fi 17989done 17990 17991fi 17992done 17993 17994 17995# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 17996if echo $build_os | grep darwin8 > /dev/null; then 17997 17998$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 17999 18000fi 18001ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 18002if test "x$ac_cv_func_inet_aton" = xyes; then : 18003 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 18004 18005else 18006 case " $LIBOBJS " in 18007 *" inet_aton.$ac_objext "* ) ;; 18008 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18009 ;; 18010esac 18011 18012fi 18013 18014 18015ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 18016if test "x$ac_cv_func_inet_pton" = xyes; then : 18017 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 18018 18019else 18020 case " $LIBOBJS " in 18021 *" inet_pton.$ac_objext "* ) ;; 18022 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 18023 ;; 18024esac 18025 18026fi 18027 18028 18029ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 18030if test "x$ac_cv_func_inet_ntop" = xyes; then : 18031 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 18032 18033else 18034 case " $LIBOBJS " in 18035 *" inet_ntop.$ac_objext "* ) ;; 18036 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 18037 ;; 18038esac 18039 18040fi 18041 18042 18043ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18044if test "x$ac_cv_func_snprintf" = xyes; then : 18045 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 18046 18047else 18048 case " $LIBOBJS " in 18049 *" snprintf.$ac_objext "* ) ;; 18050 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18051 ;; 18052esac 18053 18054fi 18055 18056 18057ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18058if test "x$ac_cv_func_strlcat" = xyes; then : 18059 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 18060 18061else 18062 case " $LIBOBJS " in 18063 *" strlcat.$ac_objext "* ) ;; 18064 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 18065 ;; 18066esac 18067 18068fi 18069 18070 18071ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18072if test "x$ac_cv_func_strlcpy" = xyes; then : 18073 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 18074 18075else 18076 case " $LIBOBJS " in 18077 *" strlcpy.$ac_objext "* ) ;; 18078 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 18079 ;; 18080esac 18081 18082fi 18083 18084 18085ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18086if test "x$ac_cv_func_memmove" = xyes; then : 18087 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 18088 18089else 18090 case " $LIBOBJS " in 18091 *" memmove.$ac_objext "* ) ;; 18092 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 18093 ;; 18094esac 18095 18096fi 18097 18098 18099ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18100if test "x$ac_cv_func_gmtime_r" = xyes; then : 18101 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 18102 18103else 18104 case " $LIBOBJS " in 18105 *" gmtime_r.$ac_objext "* ) ;; 18106 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18107 ;; 18108esac 18109 18110fi 18111 18112 18113LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 18114 18115ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 18116if test "x$ac_cv_func_ctime_r" = xyes; then : 18117 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 18118 18119else 18120 case " $LIBOBJS " in 18121 *" ctime_r.$ac_objext "* ) ;; 18122 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 18123 ;; 18124esac 18125 18126fi 18127 18128 18129 18130# Check whether --enable-allsymbols was given. 18131if test "${enable_allsymbols+set}" = set; then : 18132 enableval=$enable_allsymbols; 18133fi 18134 18135case "$enable_allsymbols" in 18136 yes) 18137 COMMON_OBJ_ALL_SYMBOLS="" 18138 UBSYMS="" 18139 EXTRALINK="-L. -L.libs -lunbound" 18140 18141$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 18142 18143 ;; 18144 no|*) 18145 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 18146 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 18147 EXTRALINK="" 18148 ;; 18149esac 18150 18151 18152 18153if test x_$enable_lock_checks = x_yes; then 18154 UBSYMS="-export-symbols clubsyms.def" 18155 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 18156 echo lock_protect >> clubsyms.def 18157 echo lock_unprotect >> clubsyms.def 18158 echo lock_get_mem >> clubsyms.def 18159 echo checklock_start >> clubsyms.def 18160 echo checklock_stop >> clubsyms.def 18161 echo checklock_lock >> clubsyms.def 18162 echo checklock_unlock >> clubsyms.def 18163 echo checklock_init >> clubsyms.def 18164 echo checklock_thrcreate >> clubsyms.def 18165 echo checklock_thrjoin >> clubsyms.def 18166fi 18167 18168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 18169$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 18170# on openBSD, the implicit rule make $< work. 18171# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 18172# gmake works. 18173cat >conftest.make <<EOF 18174all: conftest.lo 18175 18176conftest.lo foo.lo bla.lo: 18177 if test -f "\$<"; then touch \$@; fi 18178 18179.SUFFIXES: .lo 18180.c.lo: 18181 if test -f "\$<"; then touch \$@; fi 18182 18183conftest.lo: conftest.dir/conftest.c 18184EOF 18185mkdir conftest.dir 18186touch conftest.dir/conftest.c 18187rm -f conftest.lo conftest.c 18188${MAKE:-make} -f conftest.make >/dev/null 18189rm -f conftest.make conftest.c conftest.dir/conftest.c 18190rm -rf conftest.dir 18191if test ! -f conftest.lo; then 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18193$as_echo "no" >&6; } 18194 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 18195 SOURCEFILE='`cat .source`' 18196else 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18198$as_echo "yes" >&6; } 18199 SOURCEDETERMINE=':' 18200 SOURCEFILE='$<' 18201fi 18202rm -f conftest.lo 18203 18204 18205 18206# see if we want to build the library or everything 18207ALLTARGET="alltargets" 18208INSTALLTARGET="install-all" 18209 18210# Check whether --with-libunbound-only was given. 18211if test "${with_libunbound_only+set}" = set; then : 18212 withval=$with_libunbound_only; 18213 if test "$withval" = "yes"; then 18214 ALLTARGET="lib" 18215 INSTALLTARGET="install-lib" 18216 fi 18217 18218fi 18219 18220 18221 18222 18223 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 18225$as_echo "$as_me: Stripping extension flags..." >&6;} 18226 18227 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 18228 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 18229 18230$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 18231 18232 fi 18233 18234 18235 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 18236 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 18237 18238$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 18239 18240 fi 18241 18242 18243 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 18244 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 18245 18246$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 18247 18248 fi 18249 18250 18251 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 18252 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 18253 18254$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 18255 18256 fi 18257 18258 18259 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 18260 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 18261 18262$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 18263 18264 fi 18265 18266 18267 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 18268 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 18269 18270$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 18271 18272 fi 18273 18274 18275 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 18276 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 18277 18278$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 18279 18280 fi 18281 18282 18283 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 18284 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 18285 18286$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 18287 18288 fi 18289 18290 18291LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 18292 18293 18294cat >>confdefs.h <<_ACEOF 18295#define MAXSYSLOGMSGLEN 10240 18296_ACEOF 18297 18298 18299 18300 18301ac_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 smallapp/unbound-control-setup.sh" 18302 18303ac_config_headers="$ac_config_headers config.h" 18304 18305cat >confcache <<\_ACEOF 18306# This file is a shell script that caches the results of configure 18307# tests run on this system so they can be shared between configure 18308# scripts and configure runs, see configure's option --config-cache. 18309# It is not useful on other systems. If it contains results you don't 18310# want to keep, you may remove or edit it. 18311# 18312# config.status only pays attention to the cache file if you give it 18313# the --recheck option to rerun configure. 18314# 18315# `ac_cv_env_foo' variables (set or unset) will be overridden when 18316# loading this file, other *unset* `ac_cv_foo' will be assigned the 18317# following values. 18318 18319_ACEOF 18320 18321# The following way of writing the cache mishandles newlines in values, 18322# but we know of no workaround that is simple, portable, and efficient. 18323# So, we kill variables containing newlines. 18324# Ultrix sh set writes to stderr and can't be redirected directly, 18325# and sets the high bit in the cache file unless we assign to the vars. 18326( 18327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18328 eval ac_val=\$$ac_var 18329 case $ac_val in #( 18330 *${as_nl}*) 18331 case $ac_var in #( 18332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18334 esac 18335 case $ac_var in #( 18336 _ | IFS | as_nl) ;; #( 18337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18338 *) { eval $ac_var=; unset $ac_var;} ;; 18339 esac ;; 18340 esac 18341 done 18342 18343 (set) 2>&1 | 18344 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18345 *${as_nl}ac_space=\ *) 18346 # `set' does not quote correctly, so add quotes: double-quote 18347 # substitution turns \\\\ into \\, and sed turns \\ into \. 18348 sed -n \ 18349 "s/'/'\\\\''/g; 18350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18351 ;; #( 18352 *) 18353 # `set' quotes correctly as required by POSIX, so do not add quotes. 18354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18355 ;; 18356 esac | 18357 sort 18358) | 18359 sed ' 18360 /^ac_cv_env_/b end 18361 t clear 18362 :clear 18363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18364 t end 18365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18366 :end' >>confcache 18367if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18368 if test -w "$cache_file"; then 18369 if test "x$cache_file" != "x/dev/null"; then 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18371$as_echo "$as_me: updating cache $cache_file" >&6;} 18372 if test ! -f "$cache_file" || test -h "$cache_file"; then 18373 cat confcache >"$cache_file" 18374 else 18375 case $cache_file in #( 18376 */* | ?:*) 18377 mv -f confcache "$cache_file"$$ && 18378 mv -f "$cache_file"$$ "$cache_file" ;; #( 18379 *) 18380 mv -f confcache "$cache_file" ;; 18381 esac 18382 fi 18383 fi 18384 else 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18386$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18387 fi 18388fi 18389rm -f confcache 18390 18391test "x$prefix" = xNONE && prefix=$ac_default_prefix 18392# Let make expand exec_prefix. 18393test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18394 18395DEFS=-DHAVE_CONFIG_H 18396 18397ac_libobjs= 18398ac_ltlibobjs= 18399U= 18400for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18401 # 1. Remove the extension, and $U if already installed. 18402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18405 # will be set to the directory where LIBOBJS objects are built. 18406 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18407 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18408done 18409LIBOBJS=$ac_libobjs 18410 18411LTLIBOBJS=$ac_ltlibobjs 18412 18413 18414 18415: "${CONFIG_STATUS=./config.status}" 18416ac_write_fail=0 18417ac_clean_files_save=$ac_clean_files 18418ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18421as_write_fail=0 18422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18423#! $SHELL 18424# Generated by $as_me. 18425# Run this file to recreate the current configuration. 18426# Compiler output produced by configure, useful for debugging 18427# configure, is in config.log if it exists. 18428 18429debug=false 18430ac_cs_recheck=false 18431ac_cs_silent=false 18432 18433SHELL=\${CONFIG_SHELL-$SHELL} 18434export SHELL 18435_ASEOF 18436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18437## -------------------- ## 18438## M4sh Initialization. ## 18439## -------------------- ## 18440 18441# Be more Bourne compatible 18442DUALCASE=1; export DUALCASE # for MKS sh 18443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18444 emulate sh 18445 NULLCMD=: 18446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18447 # is contrary to our usage. Disable this feature. 18448 alias -g '${1+"$@"}'='"$@"' 18449 setopt NO_GLOB_SUBST 18450else 18451 case `(set -o) 2>/dev/null` in #( 18452 *posix*) : 18453 set -o posix ;; #( 18454 *) : 18455 ;; 18456esac 18457fi 18458 18459 18460as_nl=' 18461' 18462export as_nl 18463# Printing a long string crashes Solaris 7 /usr/bin/printf. 18464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18467# Prefer a ksh shell builtin over an external printf program on Solaris, 18468# but without wasting forks for bash or zsh. 18469if test -z "$BASH_VERSION$ZSH_VERSION" \ 18470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18471 as_echo='print -r --' 18472 as_echo_n='print -rn --' 18473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18474 as_echo='printf %s\n' 18475 as_echo_n='printf %s' 18476else 18477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18479 as_echo_n='/usr/ucb/echo -n' 18480 else 18481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18482 as_echo_n_body='eval 18483 arg=$1; 18484 case $arg in #( 18485 *"$as_nl"*) 18486 expr "X$arg" : "X\\(.*\\)$as_nl"; 18487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18488 esac; 18489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18490 ' 18491 export as_echo_n_body 18492 as_echo_n='sh -c $as_echo_n_body as_echo' 18493 fi 18494 export as_echo_body 18495 as_echo='sh -c $as_echo_body as_echo' 18496fi 18497 18498# The user is always right. 18499if test "${PATH_SEPARATOR+set}" != set; then 18500 PATH_SEPARATOR=: 18501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18503 PATH_SEPARATOR=';' 18504 } 18505fi 18506 18507 18508# IFS 18509# We need space, tab and new line, in precisely that order. Quoting is 18510# there to prevent editors from complaining about space-tab. 18511# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18512# splitting by setting IFS to empty value.) 18513IFS=" "" $as_nl" 18514 18515# Find who we are. Look in the path if we contain no directory separator. 18516as_myself= 18517case $0 in #(( 18518 *[\\/]* ) as_myself=$0 ;; 18519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18520for as_dir in $PATH 18521do 18522 IFS=$as_save_IFS 18523 test -z "$as_dir" && as_dir=. 18524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18525 done 18526IFS=$as_save_IFS 18527 18528 ;; 18529esac 18530# We did not find ourselves, most probably we were run as `sh COMMAND' 18531# in which case we are not to be found in the path. 18532if test "x$as_myself" = x; then 18533 as_myself=$0 18534fi 18535if test ! -f "$as_myself"; then 18536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18537 exit 1 18538fi 18539 18540# Unset variables that we do not need and which cause bugs (e.g. in 18541# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18542# suppresses any "Segmentation fault" message there. '((' could 18543# trigger a bug in pdksh 5.2.14. 18544for as_var in BASH_ENV ENV MAIL MAILPATH 18545do eval test x\${$as_var+set} = xset \ 18546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18547done 18548PS1='$ ' 18549PS2='> ' 18550PS4='+ ' 18551 18552# NLS nuisances. 18553LC_ALL=C 18554export LC_ALL 18555LANGUAGE=C 18556export LANGUAGE 18557 18558# CDPATH. 18559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18560 18561 18562# as_fn_error STATUS ERROR [LINENO LOG_FD] 18563# ---------------------------------------- 18564# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18565# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18566# script with STATUS, using 1 if that was 0. 18567as_fn_error () 18568{ 18569 as_status=$1; test $as_status -eq 0 && as_status=1 18570 if test "$4"; then 18571 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18573 fi 18574 $as_echo "$as_me: error: $2" >&2 18575 as_fn_exit $as_status 18576} # as_fn_error 18577 18578 18579# as_fn_set_status STATUS 18580# ----------------------- 18581# Set $? to STATUS, without forking. 18582as_fn_set_status () 18583{ 18584 return $1 18585} # as_fn_set_status 18586 18587# as_fn_exit STATUS 18588# ----------------- 18589# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18590as_fn_exit () 18591{ 18592 set +e 18593 as_fn_set_status $1 18594 exit $1 18595} # as_fn_exit 18596 18597# as_fn_unset VAR 18598# --------------- 18599# Portably unset VAR. 18600as_fn_unset () 18601{ 18602 { eval $1=; unset $1;} 18603} 18604as_unset=as_fn_unset 18605# as_fn_append VAR VALUE 18606# ---------------------- 18607# Append the text in VALUE to the end of the definition contained in VAR. Take 18608# advantage of any shell optimizations that allow amortized linear growth over 18609# repeated appends, instead of the typical quadratic growth present in naive 18610# implementations. 18611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18612 eval 'as_fn_append () 18613 { 18614 eval $1+=\$2 18615 }' 18616else 18617 as_fn_append () 18618 { 18619 eval $1=\$$1\$2 18620 } 18621fi # as_fn_append 18622 18623# as_fn_arith ARG... 18624# ------------------ 18625# Perform arithmetic evaluation on the ARGs, and store the result in the 18626# global $as_val. Take advantage of shells that can avoid forks. The arguments 18627# must be portable across $(()) and expr. 18628if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18629 eval 'as_fn_arith () 18630 { 18631 as_val=$(( $* )) 18632 }' 18633else 18634 as_fn_arith () 18635 { 18636 as_val=`expr "$@" || test $? -eq 1` 18637 } 18638fi # as_fn_arith 18639 18640 18641if expr a : '\(a\)' >/dev/null 2>&1 && 18642 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18643 as_expr=expr 18644else 18645 as_expr=false 18646fi 18647 18648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18649 as_basename=basename 18650else 18651 as_basename=false 18652fi 18653 18654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18655 as_dirname=dirname 18656else 18657 as_dirname=false 18658fi 18659 18660as_me=`$as_basename -- "$0" || 18661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18662 X"$0" : 'X\(//\)$' \| \ 18663 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18664$as_echo X/"$0" | 18665 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18666 s//\1/ 18667 q 18668 } 18669 /^X\/\(\/\/\)$/{ 18670 s//\1/ 18671 q 18672 } 18673 /^X\/\(\/\).*/{ 18674 s//\1/ 18675 q 18676 } 18677 s/.*/./; q'` 18678 18679# Avoid depending upon Character Ranges. 18680as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18682as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18683as_cr_digits='0123456789' 18684as_cr_alnum=$as_cr_Letters$as_cr_digits 18685 18686ECHO_C= ECHO_N= ECHO_T= 18687case `echo -n x` in #((((( 18688-n*) 18689 case `echo 'xy\c'` in 18690 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18691 xy) ECHO_C='\c';; 18692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18693 ECHO_T=' ';; 18694 esac;; 18695*) 18696 ECHO_N='-n';; 18697esac 18698 18699rm -f conf$$ conf$$.exe conf$$.file 18700if test -d conf$$.dir; then 18701 rm -f conf$$.dir/conf$$.file 18702else 18703 rm -f conf$$.dir 18704 mkdir conf$$.dir 2>/dev/null 18705fi 18706if (echo >conf$$.file) 2>/dev/null; then 18707 if ln -s conf$$.file conf$$ 2>/dev/null; then 18708 as_ln_s='ln -s' 18709 # ... but there are two gotchas: 18710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18712 # In both cases, we have to default to `cp -pR'. 18713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18714 as_ln_s='cp -pR' 18715 elif ln conf$$.file conf$$ 2>/dev/null; then 18716 as_ln_s=ln 18717 else 18718 as_ln_s='cp -pR' 18719 fi 18720else 18721 as_ln_s='cp -pR' 18722fi 18723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18724rmdir conf$$.dir 2>/dev/null 18725 18726 18727# as_fn_mkdir_p 18728# ------------- 18729# Create "$as_dir" as a directory, including parents if necessary. 18730as_fn_mkdir_p () 18731{ 18732 18733 case $as_dir in #( 18734 -*) as_dir=./$as_dir;; 18735 esac 18736 test -d "$as_dir" || eval $as_mkdir_p || { 18737 as_dirs= 18738 while :; do 18739 case $as_dir in #( 18740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18741 *) as_qdir=$as_dir;; 18742 esac 18743 as_dirs="'$as_qdir' $as_dirs" 18744 as_dir=`$as_dirname -- "$as_dir" || 18745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18746 X"$as_dir" : 'X\(//\)[^/]' \| \ 18747 X"$as_dir" : 'X\(//\)$' \| \ 18748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18749$as_echo X"$as_dir" | 18750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18751 s//\1/ 18752 q 18753 } 18754 /^X\(\/\/\)[^/].*/{ 18755 s//\1/ 18756 q 18757 } 18758 /^X\(\/\/\)$/{ 18759 s//\1/ 18760 q 18761 } 18762 /^X\(\/\).*/{ 18763 s//\1/ 18764 q 18765 } 18766 s/.*/./; q'` 18767 test -d "$as_dir" && break 18768 done 18769 test -z "$as_dirs" || eval "mkdir $as_dirs" 18770 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18771 18772 18773} # as_fn_mkdir_p 18774if mkdir -p . 2>/dev/null; then 18775 as_mkdir_p='mkdir -p "$as_dir"' 18776else 18777 test -d ./-p && rmdir ./-p 18778 as_mkdir_p=false 18779fi 18780 18781 18782# as_fn_executable_p FILE 18783# ----------------------- 18784# Test if FILE is an executable regular file. 18785as_fn_executable_p () 18786{ 18787 test -f "$1" && test -x "$1" 18788} # as_fn_executable_p 18789as_test_x='test -x' 18790as_executable_p=as_fn_executable_p 18791 18792# Sed expression to map a string onto a valid CPP name. 18793as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18794 18795# Sed expression to map a string onto a valid variable name. 18796as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18797 18798 18799exec 6>&1 18800## ----------------------------------- ## 18801## Main body of $CONFIG_STATUS script. ## 18802## ----------------------------------- ## 18803_ASEOF 18804test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18805 18806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18807# Save the log message, to keep $0 and so on meaningful, and to 18808# report actual input values of CONFIG_FILES etc. instead of their 18809# values after options handling. 18810ac_log=" 18811This file was extended by unbound $as_me 1.4.22, which was 18812generated by GNU Autoconf 2.69. Invocation command line was 18813 18814 CONFIG_FILES = $CONFIG_FILES 18815 CONFIG_HEADERS = $CONFIG_HEADERS 18816 CONFIG_LINKS = $CONFIG_LINKS 18817 CONFIG_COMMANDS = $CONFIG_COMMANDS 18818 $ $0 $@ 18819 18820on `(hostname || uname -n) 2>/dev/null | sed 1q` 18821" 18822 18823_ACEOF 18824 18825case $ac_config_files in *" 18826"*) set x $ac_config_files; shift; ac_config_files=$*;; 18827esac 18828 18829case $ac_config_headers in *" 18830"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18831esac 18832 18833 18834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18835# Files that config.status was made for. 18836config_files="$ac_config_files" 18837config_headers="$ac_config_headers" 18838config_commands="$ac_config_commands" 18839 18840_ACEOF 18841 18842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18843ac_cs_usage="\ 18844\`$as_me' instantiates files and other configuration actions 18845from templates according to the current configuration. Unless the files 18846and actions are specified as TAGs, all are instantiated by default. 18847 18848Usage: $0 [OPTION]... [TAG]... 18849 18850 -h, --help print this help, then exit 18851 -V, --version print version number and configuration settings, then exit 18852 --config print configuration, then exit 18853 -q, --quiet, --silent 18854 do not print progress messages 18855 -d, --debug don't remove temporary files 18856 --recheck update $as_me by reconfiguring in the same conditions 18857 --file=FILE[:TEMPLATE] 18858 instantiate the configuration file FILE 18859 --header=FILE[:TEMPLATE] 18860 instantiate the configuration header FILE 18861 18862Configuration files: 18863$config_files 18864 18865Configuration headers: 18866$config_headers 18867 18868Configuration commands: 18869$config_commands 18870 18871Report bugs to <unbound-bugs@nlnetlabs.nl>." 18872 18873_ACEOF 18874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18875ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18876ac_cs_version="\\ 18877unbound config.status 1.4.22 18878configured by $0, generated by GNU Autoconf 2.69, 18879 with options \\"\$ac_cs_config\\" 18880 18881Copyright (C) 2012 Free Software Foundation, Inc. 18882This config.status script is free software; the Free Software Foundation 18883gives unlimited permission to copy, distribute and modify it." 18884 18885ac_pwd='$ac_pwd' 18886srcdir='$srcdir' 18887AWK='$AWK' 18888test -n "\$AWK" || AWK=awk 18889_ACEOF 18890 18891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18892# The default lists apply if the user does not specify any file. 18893ac_need_defaults=: 18894while test $# != 0 18895do 18896 case $1 in 18897 --*=?*) 18898 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18900 ac_shift=: 18901 ;; 18902 --*=) 18903 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18904 ac_optarg= 18905 ac_shift=: 18906 ;; 18907 *) 18908 ac_option=$1 18909 ac_optarg=$2 18910 ac_shift=shift 18911 ;; 18912 esac 18913 18914 case $ac_option in 18915 # Handling of the options. 18916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18917 ac_cs_recheck=: ;; 18918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18919 $as_echo "$ac_cs_version"; exit ;; 18920 --config | --confi | --conf | --con | --co | --c ) 18921 $as_echo "$ac_cs_config"; exit ;; 18922 --debug | --debu | --deb | --de | --d | -d ) 18923 debug=: ;; 18924 --file | --fil | --fi | --f ) 18925 $ac_shift 18926 case $ac_optarg in 18927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18928 '') as_fn_error $? "missing file argument" ;; 18929 esac 18930 as_fn_append CONFIG_FILES " '$ac_optarg'" 18931 ac_need_defaults=false;; 18932 --header | --heade | --head | --hea ) 18933 $ac_shift 18934 case $ac_optarg in 18935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18936 esac 18937 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18938 ac_need_defaults=false;; 18939 --he | --h) 18940 # Conflict between --help and --header 18941 as_fn_error $? "ambiguous option: \`$1' 18942Try \`$0 --help' for more information.";; 18943 --help | --hel | -h ) 18944 $as_echo "$ac_cs_usage"; exit ;; 18945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18946 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18947 ac_cs_silent=: ;; 18948 18949 # This is an error. 18950 -*) as_fn_error $? "unrecognized option: \`$1' 18951Try \`$0 --help' for more information." ;; 18952 18953 *) as_fn_append ac_config_targets " $1" 18954 ac_need_defaults=false ;; 18955 18956 esac 18957 shift 18958done 18959 18960ac_configure_extra_args= 18961 18962if $ac_cs_silent; then 18963 exec 6>/dev/null 18964 ac_configure_extra_args="$ac_configure_extra_args --silent" 18965fi 18966 18967_ACEOF 18968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18969if \$ac_cs_recheck; then 18970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18971 shift 18972 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18973 CONFIG_SHELL='$SHELL' 18974 export CONFIG_SHELL 18975 exec "\$@" 18976fi 18977 18978_ACEOF 18979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18980exec 5>>config.log 18981{ 18982 echo 18983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18984## Running $as_me. ## 18985_ASBOX 18986 $as_echo "$ac_log" 18987} >&5 18988 18989_ACEOF 18990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18991# 18992# INIT-COMMANDS 18993# 18994 18995 18996# The HP-UX ksh and POSIX shell print the target directory to stdout 18997# if CDPATH is set. 18998(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18999 19000sed_quote_subst='$sed_quote_subst' 19001double_quote_subst='$double_quote_subst' 19002delay_variable_subst='$delay_variable_subst' 19003macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19004macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19005enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19006enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19007pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19008enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19009SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19010ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19011PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19012host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19013host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19014host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19015build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19016build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19017build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19018SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19019Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19020GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19021EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19022FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19023LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19024NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19025LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19026max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19027ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19028exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19029lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19030lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19031lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19032lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19033lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19034reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19035reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19036OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19037deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19038file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19039file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19040want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19041DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19042sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19043AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19044AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19045archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19046STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19047RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19048old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19049old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19050old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19051lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19052CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19053CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19054compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19055GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19056lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19057lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19058lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19059lt_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"`' 19060nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19061lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19062objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19063MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19064lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19065lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19066lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19067lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19068lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19069need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19070MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19071DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19072NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19073LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19074OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19075OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19076libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19077shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19078extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19079archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19080enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19081export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19082whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19083compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19084old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19085old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19086archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19087archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19088module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19089module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19090with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19091allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19092no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19093hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19094hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19095hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19096hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19097hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19098hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19099hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19100inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19101link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19102always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19103export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19104exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19105include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19106prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19107postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19108file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19109variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19110need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19111need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19112version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19113runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19114shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19115shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19116libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19117library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19118soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19119install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19120postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19121postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19122finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19123finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19124hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19125sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19126sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19127hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19128enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19129enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19130enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19131old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19132striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19133 19134LTCC='$LTCC' 19135LTCFLAGS='$LTCFLAGS' 19136compiler='$compiler_DEFAULT' 19137 19138# A function that is used when there is no print builtin or printf. 19139func_fallback_echo () 19140{ 19141 eval 'cat <<_LTECHO_EOF 19142\$1 19143_LTECHO_EOF' 19144} 19145 19146# Quote evaled strings. 19147for var in SHELL \ 19148ECHO \ 19149PATH_SEPARATOR \ 19150SED \ 19151GREP \ 19152EGREP \ 19153FGREP \ 19154LD \ 19155NM \ 19156LN_S \ 19157lt_SP2NL \ 19158lt_NL2SP \ 19159reload_flag \ 19160OBJDUMP \ 19161deplibs_check_method \ 19162file_magic_cmd \ 19163file_magic_glob \ 19164want_nocaseglob \ 19165DLLTOOL \ 19166sharedlib_from_linklib_cmd \ 19167AR \ 19168AR_FLAGS \ 19169archiver_list_spec \ 19170STRIP \ 19171RANLIB \ 19172CC \ 19173CFLAGS \ 19174compiler \ 19175lt_cv_sys_global_symbol_pipe \ 19176lt_cv_sys_global_symbol_to_cdecl \ 19177lt_cv_sys_global_symbol_to_c_name_address \ 19178lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19179nm_file_list_spec \ 19180lt_prog_compiler_no_builtin_flag \ 19181lt_prog_compiler_pic \ 19182lt_prog_compiler_wl \ 19183lt_prog_compiler_static \ 19184lt_cv_prog_compiler_c_o \ 19185need_locks \ 19186MANIFEST_TOOL \ 19187DSYMUTIL \ 19188NMEDIT \ 19189LIPO \ 19190OTOOL \ 19191OTOOL64 \ 19192shrext_cmds \ 19193export_dynamic_flag_spec \ 19194whole_archive_flag_spec \ 19195compiler_needs_object \ 19196with_gnu_ld \ 19197allow_undefined_flag \ 19198no_undefined_flag \ 19199hardcode_libdir_flag_spec \ 19200hardcode_libdir_separator \ 19201exclude_expsyms \ 19202include_expsyms \ 19203file_list_spec \ 19204variables_saved_for_relink \ 19205libname_spec \ 19206library_names_spec \ 19207soname_spec \ 19208install_override_mode \ 19209finish_eval \ 19210old_striplib \ 19211striplib; do 19212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19213 *[\\\\\\\`\\"\\\$]*) 19214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19215 ;; 19216 *) 19217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19218 ;; 19219 esac 19220done 19221 19222# Double-quote double-evaled strings. 19223for var in reload_cmds \ 19224old_postinstall_cmds \ 19225old_postuninstall_cmds \ 19226old_archive_cmds \ 19227extract_expsyms_cmds \ 19228old_archive_from_new_cmds \ 19229old_archive_from_expsyms_cmds \ 19230archive_cmds \ 19231archive_expsym_cmds \ 19232module_cmds \ 19233module_expsym_cmds \ 19234export_symbols_cmds \ 19235prelink_cmds \ 19236postlink_cmds \ 19237postinstall_cmds \ 19238postuninstall_cmds \ 19239finish_cmds \ 19240sys_lib_search_path_spec \ 19241sys_lib_dlsearch_path_spec; do 19242 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19243 *[\\\\\\\`\\"\\\$]*) 19244 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19245 ;; 19246 *) 19247 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19248 ;; 19249 esac 19250done 19251 19252ac_aux_dir='$ac_aux_dir' 19253xsi_shell='$xsi_shell' 19254lt_shell_append='$lt_shell_append' 19255 19256# See if we are running on zsh, and set the options which allow our 19257# commands through without removal of \ escapes INIT. 19258if test -n "\${ZSH_VERSION+set}" ; then 19259 setopt NO_GLOB_SUBST 19260fi 19261 19262 19263 PACKAGE='$PACKAGE' 19264 VERSION='$VERSION' 19265 TIMESTAMP='$TIMESTAMP' 19266 RM='$RM' 19267 ofile='$ofile' 19268 19269 19270 19271 19272_ACEOF 19273 19274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19275 19276# Handling of arguments. 19277for ac_config_target in $ac_config_targets 19278do 19279 case $ac_config_target in 19280 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19281 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 19282 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19283 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 19284 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 19285 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 19286 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 19287 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 19288 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 19289 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 19290 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 19291 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19292 19293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19294 esac 19295done 19296 19297 19298# If the user did not use the arguments to specify the items to instantiate, 19299# then the envvar interface is used. Set only those that are not. 19300# We use the long form for the default assignment because of an extremely 19301# bizarre bug on SunOS 4.1.3. 19302if $ac_need_defaults; then 19303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19306fi 19307 19308# Have a temporary directory for convenience. Make it in the build tree 19309# simply because there is no reason against having it here, and in addition, 19310# creating and moving files from /tmp can sometimes cause problems. 19311# Hook for its removal unless debugging. 19312# Note that there is a small window in which the directory will not be cleaned: 19313# after its creation but before its name has been assigned to `$tmp'. 19314$debug || 19315{ 19316 tmp= ac_tmp= 19317 trap 'exit_status=$? 19318 : "${ac_tmp:=$tmp}" 19319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19320' 0 19321 trap 'as_fn_exit 1' 1 2 13 15 19322} 19323# Create a (secure) tmp directory for tmp files. 19324 19325{ 19326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19327 test -d "$tmp" 19328} || 19329{ 19330 tmp=./conf$$-$RANDOM 19331 (umask 077 && mkdir "$tmp") 19332} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19333ac_tmp=$tmp 19334 19335# Set up the scripts for CONFIG_FILES section. 19336# No need to generate them if there are no CONFIG_FILES. 19337# This happens for instance with `./config.status config.h'. 19338if test -n "$CONFIG_FILES"; then 19339 19340 19341ac_cr=`echo X | tr X '\015'` 19342# On cygwin, bash can eat \r inside `` if the user requested igncr. 19343# But we know of no other shell where ac_cr would be empty at this 19344# point, so we can use a bashism as a fallback. 19345if test "x$ac_cr" = x; then 19346 eval ac_cr=\$\'\\r\' 19347fi 19348ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19349if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19350 ac_cs_awk_cr='\\r' 19351else 19352 ac_cs_awk_cr=$ac_cr 19353fi 19354 19355echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19356_ACEOF 19357 19358 19359{ 19360 echo "cat >conf$$subs.awk <<_ACEOF" && 19361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19362 echo "_ACEOF" 19363} >conf$$subs.sh || 19364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19365ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19366ac_delim='%!_!# ' 19367for ac_last_try in false false false false false :; do 19368 . ./conf$$subs.sh || 19369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19370 19371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19372 if test $ac_delim_n = $ac_delim_num; then 19373 break 19374 elif $ac_last_try; then 19375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19376 else 19377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19378 fi 19379done 19380rm -f conf$$subs.sh 19381 19382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19383cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19384_ACEOF 19385sed -n ' 19386h 19387s/^/S["/; s/!.*/"]=/ 19388p 19389g 19390s/^[^!]*!// 19391:repl 19392t repl 19393s/'"$ac_delim"'$// 19394t delim 19395:nl 19396h 19397s/\(.\{148\}\)..*/\1/ 19398t more1 19399s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19400p 19401n 19402b repl 19403:more1 19404s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19405p 19406g 19407s/.\{148\}// 19408t nl 19409:delim 19410h 19411s/\(.\{148\}\)..*/\1/ 19412t more2 19413s/["\\]/\\&/g; s/^/"/; s/$/"/ 19414p 19415b 19416:more2 19417s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19418p 19419g 19420s/.\{148\}// 19421t delim 19422' <conf$$subs.awk | sed ' 19423/^[^""]/{ 19424 N 19425 s/\n// 19426} 19427' >>$CONFIG_STATUS || ac_write_fail=1 19428rm -f conf$$subs.awk 19429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19430_ACAWK 19431cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19432 for (key in S) S_is_set[key] = 1 19433 FS = "" 19434 19435} 19436{ 19437 line = $ 0 19438 nfields = split(line, field, "@") 19439 substed = 0 19440 len = length(field[1]) 19441 for (i = 2; i < nfields; i++) { 19442 key = field[i] 19443 keylen = length(key) 19444 if (S_is_set[key]) { 19445 value = S[key] 19446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19447 len += length(value) + length(field[++i]) 19448 substed = 1 19449 } else 19450 len += 1 + keylen 19451 } 19452 19453 print line 19454} 19455 19456_ACAWK 19457_ACEOF 19458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19459if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19461else 19462 cat 19463fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19465_ACEOF 19466 19467# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19468# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19469# trailing colons and then remove the whole line if VPATH becomes empty 19470# (actually we leave an empty line to preserve line numbers). 19471if test "x$srcdir" = x.; then 19472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19473h 19474s/// 19475s/^/:/ 19476s/[ ]*$/:/ 19477s/:\$(srcdir):/:/g 19478s/:\${srcdir}:/:/g 19479s/:@srcdir@:/:/g 19480s/^:*// 19481s/:*$// 19482x 19483s/\(=[ ]*\).*/\1/ 19484G 19485s/\n// 19486s/^[^=]*=[ ]*$// 19487}' 19488fi 19489 19490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19491fi # test -n "$CONFIG_FILES" 19492 19493# Set up the scripts for CONFIG_HEADERS section. 19494# No need to generate them if there are no CONFIG_HEADERS. 19495# This happens for instance with `./config.status Makefile'. 19496if test -n "$CONFIG_HEADERS"; then 19497cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19498BEGIN { 19499_ACEOF 19500 19501# Transform confdefs.h into an awk script `defines.awk', embedded as 19502# here-document in config.status, that substitutes the proper values into 19503# config.h.in to produce config.h. 19504 19505# Create a delimiter string that does not exist in confdefs.h, to ease 19506# handling of long lines. 19507ac_delim='%!_!# ' 19508for ac_last_try in false false :; do 19509 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19510 if test -z "$ac_tt"; then 19511 break 19512 elif $ac_last_try; then 19513 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19514 else 19515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19516 fi 19517done 19518 19519# For the awk script, D is an array of macro values keyed by name, 19520# likewise P contains macro parameters if any. Preserve backslash 19521# newline sequences. 19522 19523ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19524sed -n ' 19525s/.\{148\}/&'"$ac_delim"'/g 19526t rset 19527:rset 19528s/^[ ]*#[ ]*define[ ][ ]*/ / 19529t def 19530d 19531:def 19532s/\\$// 19533t bsnl 19534s/["\\]/\\&/g 19535s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19536D["\1"]=" \3"/p 19537s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19538d 19539:bsnl 19540s/["\\]/\\&/g 19541s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19542D["\1"]=" \3\\\\\\n"\\/p 19543t cont 19544s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19545t cont 19546d 19547:cont 19548n 19549s/.\{148\}/&'"$ac_delim"'/g 19550t clear 19551:clear 19552s/\\$// 19553t bsnlc 19554s/["\\]/\\&/g; s/^/"/; s/$/"/p 19555d 19556:bsnlc 19557s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19558b cont 19559' <confdefs.h | sed ' 19560s/'"$ac_delim"'/"\\\ 19561"/g' >>$CONFIG_STATUS || ac_write_fail=1 19562 19563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19564 for (key in D) D_is_set[key] = 1 19565 FS = "" 19566} 19567/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19568 line = \$ 0 19569 split(line, arg, " ") 19570 if (arg[1] == "#") { 19571 defundef = arg[2] 19572 mac1 = arg[3] 19573 } else { 19574 defundef = substr(arg[1], 2) 19575 mac1 = arg[2] 19576 } 19577 split(mac1, mac2, "(") #) 19578 macro = mac2[1] 19579 prefix = substr(line, 1, index(line, defundef) - 1) 19580 if (D_is_set[macro]) { 19581 # Preserve the white space surrounding the "#". 19582 print prefix "define", macro P[macro] D[macro] 19583 next 19584 } else { 19585 # Replace #undef with comments. This is necessary, for example, 19586 # in the case of _POSIX_SOURCE, which is predefined and required 19587 # on some systems where configure will not decide to define it. 19588 if (defundef == "undef") { 19589 print "/*", prefix defundef, macro, "*/" 19590 next 19591 } 19592 } 19593} 19594{ print } 19595_ACAWK 19596_ACEOF 19597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19598 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19599fi # test -n "$CONFIG_HEADERS" 19600 19601 19602eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19603shift 19604for ac_tag 19605do 19606 case $ac_tag in 19607 :[FHLC]) ac_mode=$ac_tag; continue;; 19608 esac 19609 case $ac_mode$ac_tag in 19610 :[FHL]*:*);; 19611 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19612 :[FH]-) ac_tag=-:-;; 19613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19614 esac 19615 ac_save_IFS=$IFS 19616 IFS=: 19617 set x $ac_tag 19618 IFS=$ac_save_IFS 19619 shift 19620 ac_file=$1 19621 shift 19622 19623 case $ac_mode in 19624 :L) ac_source=$1;; 19625 :[FH]) 19626 ac_file_inputs= 19627 for ac_f 19628 do 19629 case $ac_f in 19630 -) ac_f="$ac_tmp/stdin";; 19631 *) # Look for the file first in the build tree, then in the source tree 19632 # (if the path is not absolute). The absolute path cannot be DOS-style, 19633 # because $ac_f cannot contain `:'. 19634 test -f "$ac_f" || 19635 case $ac_f in 19636 [\\/$]*) false;; 19637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19638 esac || 19639 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19640 esac 19641 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19642 as_fn_append ac_file_inputs " '$ac_f'" 19643 done 19644 19645 # Let's still pretend it is `configure' which instantiates (i.e., don't 19646 # use $as_me), people would be surprised to read: 19647 # /* config.h. Generated by config.status. */ 19648 configure_input='Generated from '` 19649 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19650 `' by configure.' 19651 if test x"$ac_file" != x-; then 19652 configure_input="$ac_file. $configure_input" 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19654$as_echo "$as_me: creating $ac_file" >&6;} 19655 fi 19656 # Neutralize special characters interpreted by sed in replacement strings. 19657 case $configure_input in #( 19658 *\&* | *\|* | *\\* ) 19659 ac_sed_conf_input=`$as_echo "$configure_input" | 19660 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19661 *) ac_sed_conf_input=$configure_input;; 19662 esac 19663 19664 case $ac_tag in 19665 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19667 esac 19668 ;; 19669 esac 19670 19671 ac_dir=`$as_dirname -- "$ac_file" || 19672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19673 X"$ac_file" : 'X\(//\)[^/]' \| \ 19674 X"$ac_file" : 'X\(//\)$' \| \ 19675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19676$as_echo X"$ac_file" | 19677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19678 s//\1/ 19679 q 19680 } 19681 /^X\(\/\/\)[^/].*/{ 19682 s//\1/ 19683 q 19684 } 19685 /^X\(\/\/\)$/{ 19686 s//\1/ 19687 q 19688 } 19689 /^X\(\/\).*/{ 19690 s//\1/ 19691 q 19692 } 19693 s/.*/./; q'` 19694 as_dir="$ac_dir"; as_fn_mkdir_p 19695 ac_builddir=. 19696 19697case "$ac_dir" in 19698.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19699*) 19700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19701 # A ".." for each directory in $ac_dir_suffix. 19702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19703 case $ac_top_builddir_sub in 19704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19706 esac ;; 19707esac 19708ac_abs_top_builddir=$ac_pwd 19709ac_abs_builddir=$ac_pwd$ac_dir_suffix 19710# for backward compatibility: 19711ac_top_builddir=$ac_top_build_prefix 19712 19713case $srcdir in 19714 .) # We are building in place. 19715 ac_srcdir=. 19716 ac_top_srcdir=$ac_top_builddir_sub 19717 ac_abs_top_srcdir=$ac_pwd ;; 19718 [\\/]* | ?:[\\/]* ) # Absolute name. 19719 ac_srcdir=$srcdir$ac_dir_suffix; 19720 ac_top_srcdir=$srcdir 19721 ac_abs_top_srcdir=$srcdir ;; 19722 *) # Relative name. 19723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19724 ac_top_srcdir=$ac_top_build_prefix$srcdir 19725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19726esac 19727ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19728 19729 19730 case $ac_mode in 19731 :F) 19732 # 19733 # CONFIG_FILE 19734 # 19735 19736_ACEOF 19737 19738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19739# If the template does not know about datarootdir, expand it. 19740# FIXME: This hack should be removed a few years after 2.60. 19741ac_datarootdir_hack=; ac_datarootdir_seen= 19742ac_sed_dataroot=' 19743/datarootdir/ { 19744 p 19745 q 19746} 19747/@datadir@/p 19748/@docdir@/p 19749/@infodir@/p 19750/@localedir@/p 19751/@mandir@/p' 19752case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19753*datarootdir*) ac_datarootdir_seen=yes;; 19754*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19756$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19757_ACEOF 19758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19759 ac_datarootdir_hack=' 19760 s&@datadir@&$datadir&g 19761 s&@docdir@&$docdir&g 19762 s&@infodir@&$infodir&g 19763 s&@localedir@&$localedir&g 19764 s&@mandir@&$mandir&g 19765 s&\\\${datarootdir}&$datarootdir&g' ;; 19766esac 19767_ACEOF 19768 19769# Neutralize VPATH when `$srcdir' = `.'. 19770# Shell code in configure.ac might set extrasub. 19771# FIXME: do we really want to maintain this feature? 19772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19773ac_sed_extra="$ac_vpsub 19774$extrasub 19775_ACEOF 19776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19777:t 19778/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19779s|@configure_input@|$ac_sed_conf_input|;t t 19780s&@top_builddir@&$ac_top_builddir_sub&;t t 19781s&@top_build_prefix@&$ac_top_build_prefix&;t t 19782s&@srcdir@&$ac_srcdir&;t t 19783s&@abs_srcdir@&$ac_abs_srcdir&;t t 19784s&@top_srcdir@&$ac_top_srcdir&;t t 19785s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19786s&@builddir@&$ac_builddir&;t t 19787s&@abs_builddir@&$ac_abs_builddir&;t t 19788s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19789$ac_datarootdir_hack 19790" 19791eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19792 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19793 19794test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19795 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19797 "$ac_tmp/out"`; test -z "$ac_out"; } && 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19799which seems to be undefined. Please make sure it is defined" >&5 19800$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19801which seems to be undefined. Please make sure it is defined" >&2;} 19802 19803 rm -f "$ac_tmp/stdin" 19804 case $ac_file in 19805 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19806 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19807 esac \ 19808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19809 ;; 19810 :H) 19811 # 19812 # CONFIG_HEADER 19813 # 19814 if test x"$ac_file" != x-; then 19815 { 19816 $as_echo "/* $configure_input */" \ 19817 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19818 } >"$ac_tmp/config.h" \ 19819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19820 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19821 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19822$as_echo "$as_me: $ac_file is unchanged" >&6;} 19823 else 19824 rm -f "$ac_file" 19825 mv "$ac_tmp/config.h" "$ac_file" \ 19826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19827 fi 19828 else 19829 $as_echo "/* $configure_input */" \ 19830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19831 || as_fn_error $? "could not create -" "$LINENO" 5 19832 fi 19833 ;; 19834 19835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19836$as_echo "$as_me: executing $ac_file commands" >&6;} 19837 ;; 19838 esac 19839 19840 19841 case $ac_file$ac_mode in 19842 "libtool":C) 19843 19844 # See if we are running on zsh, and set the options which allow our 19845 # commands through without removal of \ escapes. 19846 if test -n "${ZSH_VERSION+set}" ; then 19847 setopt NO_GLOB_SUBST 19848 fi 19849 19850 cfgfile="${ofile}T" 19851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19852 $RM "$cfgfile" 19853 19854 cat <<_LT_EOF >> "$cfgfile" 19855#! $SHELL 19856 19857# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19858# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19860# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19861# 19862# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19863# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19864# Foundation, Inc. 19865# Written by Gordon Matzigkeit, 1996 19866# 19867# This file is part of GNU Libtool. 19868# 19869# GNU Libtool is free software; you can redistribute it and/or 19870# modify it under the terms of the GNU General Public License as 19871# published by the Free Software Foundation; either version 2 of 19872# the License, or (at your option) any later version. 19873# 19874# As a special exception to the GNU General Public License, 19875# if you distribute this file as part of a program or library that 19876# is built using GNU Libtool, you may include this file under the 19877# same distribution terms that you use for the rest of that program. 19878# 19879# GNU Libtool is distributed in the hope that it will be useful, 19880# but WITHOUT ANY WARRANTY; without even the implied warranty of 19881# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19882# GNU General Public License for more details. 19883# 19884# You should have received a copy of the GNU General Public License 19885# along with GNU Libtool; see the file COPYING. If not, a copy 19886# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19887# obtained by writing to the Free Software Foundation, Inc., 19888# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19889 19890 19891# The names of the tagged configurations supported by this script. 19892available_tags="" 19893 19894# ### BEGIN LIBTOOL CONFIG 19895 19896# Which release of libtool.m4 was used? 19897macro_version=$macro_version 19898macro_revision=$macro_revision 19899 19900# Whether or not to build shared libraries. 19901build_libtool_libs=$enable_shared 19902 19903# Whether or not to build static libraries. 19904build_old_libs=$enable_static 19905 19906# What type of objects to build. 19907pic_mode=$pic_mode 19908 19909# Whether or not to optimize for fast installation. 19910fast_install=$enable_fast_install 19911 19912# Shell to use when invoking shell scripts. 19913SHELL=$lt_SHELL 19914 19915# An echo program that protects backslashes. 19916ECHO=$lt_ECHO 19917 19918# The PATH separator for the build system. 19919PATH_SEPARATOR=$lt_PATH_SEPARATOR 19920 19921# The host system. 19922host_alias=$host_alias 19923host=$host 19924host_os=$host_os 19925 19926# The build system. 19927build_alias=$build_alias 19928build=$build 19929build_os=$build_os 19930 19931# A sed program that does not truncate output. 19932SED=$lt_SED 19933 19934# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19935Xsed="\$SED -e 1s/^X//" 19936 19937# A grep program that handles long lines. 19938GREP=$lt_GREP 19939 19940# An ERE matcher. 19941EGREP=$lt_EGREP 19942 19943# A literal string matcher. 19944FGREP=$lt_FGREP 19945 19946# A BSD- or MS-compatible name lister. 19947NM=$lt_NM 19948 19949# Whether we need soft or hard links. 19950LN_S=$lt_LN_S 19951 19952# What is the maximum length of a command? 19953max_cmd_len=$max_cmd_len 19954 19955# Object file suffix (normally "o"). 19956objext=$ac_objext 19957 19958# Executable file suffix (normally ""). 19959exeext=$exeext 19960 19961# whether the shell understands "unset". 19962lt_unset=$lt_unset 19963 19964# turn spaces into newlines. 19965SP2NL=$lt_lt_SP2NL 19966 19967# turn newlines into spaces. 19968NL2SP=$lt_lt_NL2SP 19969 19970# convert \$build file names to \$host format. 19971to_host_file_cmd=$lt_cv_to_host_file_cmd 19972 19973# convert \$build files to toolchain format. 19974to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19975 19976# An object symbol dumper. 19977OBJDUMP=$lt_OBJDUMP 19978 19979# Method to check whether dependent libraries are shared objects. 19980deplibs_check_method=$lt_deplibs_check_method 19981 19982# Command to use when deplibs_check_method = "file_magic". 19983file_magic_cmd=$lt_file_magic_cmd 19984 19985# How to find potential files when deplibs_check_method = "file_magic". 19986file_magic_glob=$lt_file_magic_glob 19987 19988# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19989want_nocaseglob=$lt_want_nocaseglob 19990 19991# DLL creation program. 19992DLLTOOL=$lt_DLLTOOL 19993 19994# Command to associate shared and link libraries. 19995sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19996 19997# The archiver. 19998AR=$lt_AR 19999 20000# Flags to create an archive. 20001AR_FLAGS=$lt_AR_FLAGS 20002 20003# How to feed a file listing to the archiver. 20004archiver_list_spec=$lt_archiver_list_spec 20005 20006# A symbol stripping program. 20007STRIP=$lt_STRIP 20008 20009# Commands used to install an old-style archive. 20010RANLIB=$lt_RANLIB 20011old_postinstall_cmds=$lt_old_postinstall_cmds 20012old_postuninstall_cmds=$lt_old_postuninstall_cmds 20013 20014# Whether to use a lock for old archive extraction. 20015lock_old_archive_extraction=$lock_old_archive_extraction 20016 20017# A C compiler. 20018LTCC=$lt_CC 20019 20020# LTCC compiler flags. 20021LTCFLAGS=$lt_CFLAGS 20022 20023# Take the output of nm and produce a listing of raw symbols and C names. 20024global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20025 20026# Transform the output of nm in a proper C declaration. 20027global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20028 20029# Transform the output of nm in a C name address pair. 20030global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20031 20032# Transform the output of nm in a C name address pair when lib prefix is needed. 20033global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20034 20035# Specify filename containing input files for \$NM. 20036nm_file_list_spec=$lt_nm_file_list_spec 20037 20038# The root where to search for dependent libraries,and in which our libraries should be installed. 20039lt_sysroot=$lt_sysroot 20040 20041# The name of the directory that contains temporary libtool files. 20042objdir=$objdir 20043 20044# Used to examine libraries when file_magic_cmd begins with "file". 20045MAGIC_CMD=$MAGIC_CMD 20046 20047# Must we lock files when doing compilation? 20048need_locks=$lt_need_locks 20049 20050# Manifest tool. 20051MANIFEST_TOOL=$lt_MANIFEST_TOOL 20052 20053# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20054DSYMUTIL=$lt_DSYMUTIL 20055 20056# Tool to change global to local symbols on Mac OS X. 20057NMEDIT=$lt_NMEDIT 20058 20059# Tool to manipulate fat objects and archives on Mac OS X. 20060LIPO=$lt_LIPO 20061 20062# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20063OTOOL=$lt_OTOOL 20064 20065# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20066OTOOL64=$lt_OTOOL64 20067 20068# Old archive suffix (normally "a"). 20069libext=$libext 20070 20071# Shared library suffix (normally ".so"). 20072shrext_cmds=$lt_shrext_cmds 20073 20074# The commands to extract the exported symbol list from a shared archive. 20075extract_expsyms_cmds=$lt_extract_expsyms_cmds 20076 20077# Variables whose values should be saved in libtool wrapper scripts and 20078# restored at link time. 20079variables_saved_for_relink=$lt_variables_saved_for_relink 20080 20081# Do we need the "lib" prefix for modules? 20082need_lib_prefix=$need_lib_prefix 20083 20084# Do we need a version for libraries? 20085need_version=$need_version 20086 20087# Library versioning type. 20088version_type=$version_type 20089 20090# Shared library runtime path variable. 20091runpath_var=$runpath_var 20092 20093# Shared library path variable. 20094shlibpath_var=$shlibpath_var 20095 20096# Is shlibpath searched before the hard-coded library search path? 20097shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20098 20099# Format of library name prefix. 20100libname_spec=$lt_libname_spec 20101 20102# List of archive names. First name is the real one, the rest are links. 20103# The last name is the one that the linker finds with -lNAME 20104library_names_spec=$lt_library_names_spec 20105 20106# The coded name of the library, if different from the real name. 20107soname_spec=$lt_soname_spec 20108 20109# Permission mode override for installation of shared libraries. 20110install_override_mode=$lt_install_override_mode 20111 20112# Command to use after installation of a shared archive. 20113postinstall_cmds=$lt_postinstall_cmds 20114 20115# Command to use after uninstallation of a shared archive. 20116postuninstall_cmds=$lt_postuninstall_cmds 20117 20118# Commands used to finish a libtool library installation in a directory. 20119finish_cmds=$lt_finish_cmds 20120 20121# As "finish_cmds", except a single script fragment to be evaled but 20122# not shown. 20123finish_eval=$lt_finish_eval 20124 20125# Whether we should hardcode library paths into libraries. 20126hardcode_into_libs=$hardcode_into_libs 20127 20128# Compile-time system search path for libraries. 20129sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20130 20131# Run-time system search path for libraries. 20132sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20133 20134# Whether dlopen is supported. 20135dlopen_support=$enable_dlopen 20136 20137# Whether dlopen of programs is supported. 20138dlopen_self=$enable_dlopen_self 20139 20140# Whether dlopen of statically linked programs is supported. 20141dlopen_self_static=$enable_dlopen_self_static 20142 20143# Commands to strip libraries. 20144old_striplib=$lt_old_striplib 20145striplib=$lt_striplib 20146 20147 20148# The linker used to build libraries. 20149LD=$lt_LD 20150 20151# How to create reloadable object files. 20152reload_flag=$lt_reload_flag 20153reload_cmds=$lt_reload_cmds 20154 20155# Commands used to build an old-style archive. 20156old_archive_cmds=$lt_old_archive_cmds 20157 20158# A language specific compiler. 20159CC=$lt_compiler 20160 20161# Is the compiler the GNU compiler? 20162with_gcc=$GCC 20163 20164# Compiler flag to turn off builtin functions. 20165no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20166 20167# Additional compiler flags for building library objects. 20168pic_flag=$lt_lt_prog_compiler_pic 20169 20170# How to pass a linker flag through the compiler. 20171wl=$lt_lt_prog_compiler_wl 20172 20173# Compiler flag to prevent dynamic linking. 20174link_static_flag=$lt_lt_prog_compiler_static 20175 20176# Does compiler simultaneously support -c and -o options? 20177compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20178 20179# Whether or not to add -lc for building shared libraries. 20180build_libtool_need_lc=$archive_cmds_need_lc 20181 20182# Whether or not to disallow shared libs when runtime libs are static. 20183allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20184 20185# Compiler flag to allow reflexive dlopens. 20186export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20187 20188# Compiler flag to generate shared objects directly from archives. 20189whole_archive_flag_spec=$lt_whole_archive_flag_spec 20190 20191# Whether the compiler copes with passing no objects directly. 20192compiler_needs_object=$lt_compiler_needs_object 20193 20194# Create an old-style archive from a shared archive. 20195old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20196 20197# Create a temporary old-style archive to link instead of a shared archive. 20198old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20199 20200# Commands used to build a shared archive. 20201archive_cmds=$lt_archive_cmds 20202archive_expsym_cmds=$lt_archive_expsym_cmds 20203 20204# Commands used to build a loadable module if different from building 20205# a shared archive. 20206module_cmds=$lt_module_cmds 20207module_expsym_cmds=$lt_module_expsym_cmds 20208 20209# Whether we are building with GNU ld or not. 20210with_gnu_ld=$lt_with_gnu_ld 20211 20212# Flag that allows shared libraries with undefined symbols to be built. 20213allow_undefined_flag=$lt_allow_undefined_flag 20214 20215# Flag that enforces no undefined symbols. 20216no_undefined_flag=$lt_no_undefined_flag 20217 20218# Flag to hardcode \$libdir into a binary during linking. 20219# This must work even if \$libdir does not exist 20220hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20221 20222# Whether we need a single "-rpath" flag with a separated argument. 20223hardcode_libdir_separator=$lt_hardcode_libdir_separator 20224 20225# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20226# DIR into the resulting binary. 20227hardcode_direct=$hardcode_direct 20228 20229# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20230# DIR into the resulting binary and the resulting library dependency is 20231# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20232# library is relocated. 20233hardcode_direct_absolute=$hardcode_direct_absolute 20234 20235# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20236# into the resulting binary. 20237hardcode_minus_L=$hardcode_minus_L 20238 20239# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20240# into the resulting binary. 20241hardcode_shlibpath_var=$hardcode_shlibpath_var 20242 20243# Set to "yes" if building a shared library automatically hardcodes DIR 20244# into the library and all subsequent libraries and executables linked 20245# against it. 20246hardcode_automatic=$hardcode_automatic 20247 20248# Set to yes if linker adds runtime paths of dependent libraries 20249# to runtime path list. 20250inherit_rpath=$inherit_rpath 20251 20252# Whether libtool must link a program against all its dependency libraries. 20253link_all_deplibs=$link_all_deplibs 20254 20255# Set to "yes" if exported symbols are required. 20256always_export_symbols=$always_export_symbols 20257 20258# The commands to list exported symbols. 20259export_symbols_cmds=$lt_export_symbols_cmds 20260 20261# Symbols that should not be listed in the preloaded symbols. 20262exclude_expsyms=$lt_exclude_expsyms 20263 20264# Symbols that must always be exported. 20265include_expsyms=$lt_include_expsyms 20266 20267# Commands necessary for linking programs (against libraries) with templates. 20268prelink_cmds=$lt_prelink_cmds 20269 20270# Commands necessary for finishing linking programs. 20271postlink_cmds=$lt_postlink_cmds 20272 20273# Specify filename containing input files. 20274file_list_spec=$lt_file_list_spec 20275 20276# How to hardcode a shared library path into an executable. 20277hardcode_action=$hardcode_action 20278 20279# ### END LIBTOOL CONFIG 20280 20281_LT_EOF 20282 20283 case $host_os in 20284 aix3*) 20285 cat <<\_LT_EOF >> "$cfgfile" 20286# AIX sometimes has problems with the GCC collect2 program. For some 20287# reason, if we set the COLLECT_NAMES environment variable, the problems 20288# vanish in a puff of smoke. 20289if test "X${COLLECT_NAMES+set}" != Xset; then 20290 COLLECT_NAMES= 20291 export COLLECT_NAMES 20292fi 20293_LT_EOF 20294 ;; 20295 esac 20296 20297 20298ltmain="$ac_aux_dir/ltmain.sh" 20299 20300 20301 # We use sed instead of cat because bash on DJGPP gets confused if 20302 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20303 # text mode, it properly converts lines to CR/LF. This bash problem 20304 # is reportedly fixed, but why not run on old versions too? 20305 sed '$q' "$ltmain" >> "$cfgfile" \ 20306 || (rm -f "$cfgfile"; exit 1) 20307 20308 if test x"$xsi_shell" = xyes; then 20309 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20310func_dirname ()\ 20311{\ 20312\ case ${1} in\ 20313\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20314\ * ) func_dirname_result="${3}" ;;\ 20315\ esac\ 20316} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20317 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20319test 0 -eq $? || _lt_function_replace_fail=: 20320 20321 20322 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20323func_basename ()\ 20324{\ 20325\ func_basename_result="${1##*/}"\ 20326} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20327 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20329test 0 -eq $? || _lt_function_replace_fail=: 20330 20331 20332 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20333func_dirname_and_basename ()\ 20334{\ 20335\ case ${1} in\ 20336\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20337\ * ) func_dirname_result="${3}" ;;\ 20338\ esac\ 20339\ func_basename_result="${1##*/}"\ 20340} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20341 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20343test 0 -eq $? || _lt_function_replace_fail=: 20344 20345 20346 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20347func_stripname ()\ 20348{\ 20349\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20350\ # positional parameters, so assign one to ordinary parameter first.\ 20351\ func_stripname_result=${3}\ 20352\ func_stripname_result=${func_stripname_result#"${1}"}\ 20353\ func_stripname_result=${func_stripname_result%"${2}"}\ 20354} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20355 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20357test 0 -eq $? || _lt_function_replace_fail=: 20358 20359 20360 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20361func_split_long_opt ()\ 20362{\ 20363\ func_split_long_opt_name=${1%%=*}\ 20364\ func_split_long_opt_arg=${1#*=}\ 20365} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20366 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20368test 0 -eq $? || _lt_function_replace_fail=: 20369 20370 20371 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20372func_split_short_opt ()\ 20373{\ 20374\ func_split_short_opt_arg=${1#??}\ 20375\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20376} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20377 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20379test 0 -eq $? || _lt_function_replace_fail=: 20380 20381 20382 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20383func_lo2o ()\ 20384{\ 20385\ case ${1} in\ 20386\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20387\ *) func_lo2o_result=${1} ;;\ 20388\ esac\ 20389} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20390 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20392test 0 -eq $? || _lt_function_replace_fail=: 20393 20394 20395 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20396func_xform ()\ 20397{\ 20398 func_xform_result=${1%.*}.lo\ 20399} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20400 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20402test 0 -eq $? || _lt_function_replace_fail=: 20403 20404 20405 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20406func_arith ()\ 20407{\ 20408 func_arith_result=$(( $* ))\ 20409} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20410 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20412test 0 -eq $? || _lt_function_replace_fail=: 20413 20414 20415 sed -e '/^func_len ()$/,/^} # func_len /c\ 20416func_len ()\ 20417{\ 20418 func_len_result=${#1}\ 20419} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20420 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20422test 0 -eq $? || _lt_function_replace_fail=: 20423 20424fi 20425 20426if test x"$lt_shell_append" = xyes; then 20427 sed -e '/^func_append ()$/,/^} # func_append /c\ 20428func_append ()\ 20429{\ 20430 eval "${1}+=\\${2}"\ 20431} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20432 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20434test 0 -eq $? || _lt_function_replace_fail=: 20435 20436 20437 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20438func_append_quoted ()\ 20439{\ 20440\ func_quote_for_eval "${2}"\ 20441\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20442} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20443 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20445test 0 -eq $? || _lt_function_replace_fail=: 20446 20447 20448 # Save a `func_append' function call where possible by direct use of '+=' 20449 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20450 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20452 test 0 -eq $? || _lt_function_replace_fail=: 20453else 20454 # Save a `func_append' function call even when '+=' is not available 20455 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20456 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20458 test 0 -eq $? || _lt_function_replace_fail=: 20459fi 20460 20461if test x"$_lt_function_replace_fail" = x":"; then 20462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20463$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20464fi 20465 20466 20467 mv -f "$cfgfile" "$ofile" || 20468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20469 chmod +x "$ofile" 20470 20471 ;; 20472 "disable-rpath":C) 20473 sed < libtool > libtool-2 \ 20474 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 20475 mv libtool-2 libtool 20476 chmod 755 libtool 20477 libtool="./libtool" 20478 ;; 20479 20480 esac 20481done # for ac_tag 20482 20483 20484as_fn_exit 0 20485_ACEOF 20486ac_clean_files=$ac_clean_files_save 20487 20488test $ac_write_fail = 0 || 20489 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20490 20491 20492# configure is writing to config.log, and then calls config.status. 20493# config.status does its own redirection, appending to config.log. 20494# Unfortunately, on DOS this fails, as config.log is still kept open 20495# by configure, so config.status won't be able to write to it; its 20496# output is simply discarded. So we exec the FD to /dev/null, 20497# effectively closing config.log, so it can be properly (re)opened and 20498# appended to by config.status. When coming back to configure, we 20499# need to make the FD available again. 20500if test "$no_create" != yes; then 20501 ac_cs_success=: 20502 ac_config_status_args= 20503 test "$silent" = yes && 20504 ac_config_status_args="$ac_config_status_args --quiet" 20505 exec 5>/dev/null 20506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20507 exec 5>>config.log 20508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20509 # would make configure fail if this is the last instruction. 20510 $ac_cs_success || as_fn_exit 1 20511fi 20512if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20514$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20515fi 20516 20517