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 705libtool 706STRIP 707doxygen 708YFLAGS 709YACC 710LEXLIB 711LEX_OUTPUT_ROOT 712LEX 713debug_enabled 714DEPFLAG 715UNBOUND_USERNAME 716UNBOUND_ROOTCERT_FILE 717UNBOUND_ROOTKEY_FILE 718UNBOUND_PIDFILE 719UNBOUND_SHARE_DIR 720UNBOUND_CHROOT_DIR 721UNBOUND_RUN_DIR 722ub_conf_file 723EGREP 724GREP 725CPP 726OBJEXT 727EXEEXT 728ac_ct_CC 729CPPFLAGS 730LDFLAGS 731CFLAGS 732CC 733target_os 734target_vendor 735target_cpu 736target 737host_os 738host_vendor 739host_cpu 740host 741build_os 742build_vendor 743build_cpu 744build 745LIBUNBOUND_AGE 746LIBUNBOUND_REVISION 747LIBUNBOUND_CURRENT 748UNBOUND_VERSION_MICRO 749UNBOUND_VERSION_MINOR 750UNBOUND_VERSION_MAJOR 751target_alias 752host_alias 753build_alias 754LIBS 755ECHO_T 756ECHO_N 757ECHO_C 758DEFS 759mandir 760localedir 761libdir 762psdir 763pdfdir 764dvidir 765htmldir 766infodir 767docdir 768oldincludedir 769includedir 770localstatedir 771sharedstatedir 772sysconfdir 773datadir 774datarootdir 775libexecdir 776sbindir 777bindir 778program_transform_name 779prefix 780exec_prefix 781PACKAGE_URL 782PACKAGE_BUGREPORT 783PACKAGE_STRING 784PACKAGE_VERSION 785PACKAGE_TARNAME 786PACKAGE_NAME 787PATH_SEPARATOR 788SHELL' 789ac_subst_files='' 790ac_user_opts=' 791enable_option_checking 792with_conf_file 793with_run_dir 794with_chroot_dir 795with_share_dir 796with_pidfile 797with_rootkey_file 798with_rootcert_file 799with_username 800enable_checking 801enable_debug 802enable_flto 803enable_shared 804enable_static 805with_pic 806enable_fast_install 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810enable_rpath 811enable_largefile 812enable_alloc_checks 813enable_alloc_lite 814enable_alloc_nonregional 815with_pthreads 816with_solaris_threads 817with_pyunbound 818with_pythonmodule 819with_nss 820with_ssl 821enable_sha2 822enable_gost 823enable_ecdsa 824enable_event_api 825with_libevent 826with_libexpat 827enable_static_exe 828enable_lock_checks 829enable_allsymbols 830with_libunbound_only 831' 832 ac_precious_vars='build_alias 833host_alias 834target_alias 835CC 836CFLAGS 837LDFLAGS 838LIBS 839CPPFLAGS 840CPP 841YACC 842YFLAGS 843PYTHON_VERSION' 844 845 846# Initialize some variables set by options. 847ac_init_help= 848ac_init_version=false 849ac_unrecognized_opts= 850ac_unrecognized_sep= 851# The variables have the same names as the options, with 852# dashes changed to underlines. 853cache_file=/dev/null 854exec_prefix=NONE 855no_create= 856no_recursion= 857prefix=NONE 858program_prefix=NONE 859program_suffix=NONE 860program_transform_name=s,x,x, 861silent= 862site= 863srcdir= 864verbose= 865x_includes=NONE 866x_libraries=NONE 867 868# Installation directory options. 869# These are left unexpanded so users can "make install exec_prefix=/foo" 870# and all the variables that are supposed to be based on exec_prefix 871# by default will actually change. 872# Use braces instead of parens because sh, perl, etc. also accept them. 873# (The list follows the same order as the GNU Coding Standards.) 874bindir='${exec_prefix}/bin' 875sbindir='${exec_prefix}/sbin' 876libexecdir='${exec_prefix}/libexec' 877datarootdir='${prefix}/share' 878datadir='${datarootdir}' 879sysconfdir='${prefix}/etc' 880sharedstatedir='${prefix}/com' 881localstatedir='${prefix}/var' 882includedir='${prefix}/include' 883oldincludedir='/usr/include' 884docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 885infodir='${datarootdir}/info' 886htmldir='${docdir}' 887dvidir='${docdir}' 888pdfdir='${docdir}' 889psdir='${docdir}' 890libdir='${exec_prefix}/lib' 891localedir='${datarootdir}/locale' 892mandir='${datarootdir}/man' 893 894ac_prev= 895ac_dashdash= 896for ac_option 897do 898 # If the previous option needs an argument, assign it. 899 if test -n "$ac_prev"; then 900 eval $ac_prev=\$ac_option 901 ac_prev= 902 continue 903 fi 904 905 case $ac_option in 906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 907 *=) ac_optarg= ;; 908 *) ac_optarg=yes ;; 909 esac 910 911 # Accept the important Cygnus configure options, so we can diagnose typos. 912 913 case $ac_dashdash$ac_option in 914 --) 915 ac_dashdash=yes ;; 916 917 -bindir | --bindir | --bindi | --bind | --bin | --bi) 918 ac_prev=bindir ;; 919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 920 bindir=$ac_optarg ;; 921 922 -build | --build | --buil | --bui | --bu) 923 ac_prev=build_alias ;; 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 925 build_alias=$ac_optarg ;; 926 927 -cache-file | --cache-file | --cache-fil | --cache-fi \ 928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 929 ac_prev=cache_file ;; 930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 932 cache_file=$ac_optarg ;; 933 934 --config-cache | -C) 935 cache_file=config.cache ;; 936 937 -datadir | --datadir | --datadi | --datad) 938 ac_prev=datadir ;; 939 -datadir=* | --datadir=* | --datadi=* | --datad=*) 940 datadir=$ac_optarg ;; 941 942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 943 | --dataroo | --dataro | --datar) 944 ac_prev=datarootdir ;; 945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 947 datarootdir=$ac_optarg ;; 948 949 -disable-* | --disable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=no ;; 964 965 -docdir | --docdir | --docdi | --doc | --do) 966 ac_prev=docdir ;; 967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 968 docdir=$ac_optarg ;; 969 970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 971 ac_prev=dvidir ;; 972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 973 dvidir=$ac_optarg ;; 974 975 -enable-* | --enable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: $ac_useropt" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984"enable_$ac_useropt" 985"*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=\$ac_optarg ;; 990 991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 993 | --exec | --exe | --ex) 994 ac_prev=exec_prefix ;; 995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 997 | --exec=* | --exe=* | --ex=*) 998 exec_prefix=$ac_optarg ;; 999 1000 -gas | --gas | --ga | --g) 1001 # Obsolete; use --with-gas. 1002 with_gas=yes ;; 1003 1004 -help | --help | --hel | --he | -h) 1005 ac_init_help=long ;; 1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1007 ac_init_help=recursive ;; 1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1009 ac_init_help=short ;; 1010 1011 -host | --host | --hos | --ho) 1012 ac_prev=host_alias ;; 1013 -host=* | --host=* | --hos=* | --ho=*) 1014 host_alias=$ac_optarg ;; 1015 1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1017 ac_prev=htmldir ;; 1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1019 | --ht=*) 1020 htmldir=$ac_optarg ;; 1021 1022 -includedir | --includedir | --includedi | --included | --include \ 1023 | --includ | --inclu | --incl | --inc) 1024 ac_prev=includedir ;; 1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1026 | --includ=* | --inclu=* | --incl=* | --inc=*) 1027 includedir=$ac_optarg ;; 1028 1029 -infodir | --infodir | --infodi | --infod | --info | --inf) 1030 ac_prev=infodir ;; 1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1032 infodir=$ac_optarg ;; 1033 1034 -libdir | --libdir | --libdi | --libd) 1035 ac_prev=libdir ;; 1036 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1037 libdir=$ac_optarg ;; 1038 1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1040 | --libexe | --libex | --libe) 1041 ac_prev=libexecdir ;; 1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1043 | --libexe=* | --libex=* | --libe=*) 1044 libexecdir=$ac_optarg ;; 1045 1046 -localedir | --localedir | --localedi | --localed | --locale) 1047 ac_prev=localedir ;; 1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1049 localedir=$ac_optarg ;; 1050 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1052 | --localstate | --localstat | --localsta | --localst | --locals) 1053 ac_prev=localstatedir ;; 1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1056 localstatedir=$ac_optarg ;; 1057 1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1059 ac_prev=mandir ;; 1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1061 mandir=$ac_optarg ;; 1062 1063 -nfp | --nfp | --nf) 1064 # Obsolete; use --without-fp. 1065 with_fp=no ;; 1066 1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1068 | --no-cr | --no-c | -n) 1069 no_create=yes ;; 1070 1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1073 no_recursion=yes ;; 1074 1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1077 | --oldin | --oldi | --old | --ol | --o) 1078 ac_prev=oldincludedir ;; 1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1082 oldincludedir=$ac_optarg ;; 1083 1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1085 ac_prev=prefix ;; 1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1087 prefix=$ac_optarg ;; 1088 1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1090 | --program-pre | --program-pr | --program-p) 1091 ac_prev=program_prefix ;; 1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1094 program_prefix=$ac_optarg ;; 1095 1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1097 | --program-suf | --program-su | --program-s) 1098 ac_prev=program_suffix ;; 1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1101 program_suffix=$ac_optarg ;; 1102 1103 -program-transform-name | --program-transform-name \ 1104 | --program-transform-nam | --program-transform-na \ 1105 | --program-transform-n | --program-transform- \ 1106 | --program-transform | --program-transfor \ 1107 | --program-transfo | --program-transf \ 1108 | --program-trans | --program-tran \ 1109 | --progr-tra | --program-tr | --program-t) 1110 ac_prev=program_transform_name ;; 1111 -program-transform-name=* | --program-transform-name=* \ 1112 | --program-transform-nam=* | --program-transform-na=* \ 1113 | --program-transform-n=* | --program-transform-=* \ 1114 | --program-transform=* | --program-transfor=* \ 1115 | --program-transfo=* | --program-transf=* \ 1116 | --program-trans=* | --program-tran=* \ 1117 | --progr-tra=* | --program-tr=* | --program-t=*) 1118 program_transform_name=$ac_optarg ;; 1119 1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1121 ac_prev=pdfdir ;; 1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1123 pdfdir=$ac_optarg ;; 1124 1125 -psdir | --psdir | --psdi | --psd | --ps) 1126 ac_prev=psdir ;; 1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1128 psdir=$ac_optarg ;; 1129 1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1131 | -silent | --silent | --silen | --sile | --sil) 1132 silent=yes ;; 1133 1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1135 ac_prev=sbindir ;; 1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1137 | --sbi=* | --sb=*) 1138 sbindir=$ac_optarg ;; 1139 1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1142 | --sharedst | --shareds | --shared | --share | --shar \ 1143 | --sha | --sh) 1144 ac_prev=sharedstatedir ;; 1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1148 | --sha=* | --sh=*) 1149 sharedstatedir=$ac_optarg ;; 1150 1151 -site | --site | --sit) 1152 ac_prev=site ;; 1153 -site=* | --site=* | --sit=*) 1154 site=$ac_optarg ;; 1155 1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1157 ac_prev=srcdir ;; 1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1159 srcdir=$ac_optarg ;; 1160 1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1162 | --syscon | --sysco | --sysc | --sys | --sy) 1163 ac_prev=sysconfdir ;; 1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1166 sysconfdir=$ac_optarg ;; 1167 1168 -target | --target | --targe | --targ | --tar | --ta | --t) 1169 ac_prev=target_alias ;; 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1171 target_alias=$ac_optarg ;; 1172 1173 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1174 verbose=yes ;; 1175 1176 -version | --version | --versio | --versi | --vers | -V) 1177 ac_init_version=: ;; 1178 1179 -with-* | --with-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188"with_$ac_useropt" 1189"*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=\$ac_optarg ;; 1194 1195 -without-* | --without-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=no ;; 1210 1211 --x) 1212 # Obsolete; use --with-x. 1213 with_x=yes ;; 1214 1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1216 | --x-incl | --x-inc | --x-in | --x-i) 1217 ac_prev=x_includes ;; 1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1220 x_includes=$ac_optarg ;; 1221 1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1224 ac_prev=x_libraries ;; 1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1227 x_libraries=$ac_optarg ;; 1228 1229 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1230Try \`$0 --help' for more information" 1231 ;; 1232 1233 *=*) 1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1235 # Reject names that are not valid shell variable names. 1236 case $ac_envvar in #( 1237 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1239 esac 1240 eval $ac_envvar=\$ac_optarg 1241 export $ac_envvar ;; 1242 1243 *) 1244 # FIXME: should be removed in autoconf 3.0. 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1249 ;; 1250 1251 esac 1252done 1253 1254if test -n "$ac_prev"; then 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1256 as_fn_error $? "missing argument to $ac_option" 1257fi 1258 1259if test -n "$ac_unrecognized_opts"; then 1260 case $enable_option_checking in 1261 no) ;; 1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1264 esac 1265fi 1266 1267# Check all directory arguments for consistency. 1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1269 datadir sysconfdir sharedstatedir localstatedir includedir \ 1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1271 libdir localedir mandir 1272do 1273 eval ac_val=\$$ac_var 1274 # Remove trailing slashes. 1275 case $ac_val in 1276 */ ) 1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1278 eval $ac_var=\$ac_val;; 1279 esac 1280 # Be sure to have absolute directory names. 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1286done 1287 1288# There might be people who depend on the old broken behavior: `$host' 1289# used to hold the argument of --host etc. 1290# FIXME: To remove some day. 1291build=$build_alias 1292host=$host_alias 1293target=$target_alias 1294 1295# FIXME: To remove some day. 1296if test "x$host_alias" != x; then 1297 if test "x$build_alias" = x; then 1298 cross_compiling=maybe 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302fi 1303 1304ac_tool_prefix= 1305test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307test "$silent" = yes && exec 6>/dev/null 1308 1309 1310ac_pwd=`pwd` && test -n "$ac_pwd" && 1311ac_ls_di=`ls -di .` && 1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error $? "working directory cannot be determined" 1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error $? "pwd does not report name of working directory" 1316 1317 1318# Find the source files, if location was not specified. 1319if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327$as_echo X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349else 1350 ac_srcdir_defaulted=no 1351fi 1352if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1355fi 1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1359 pwd)` 1360# When building in place, set srcdir=. 1361if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363fi 1364# Remove unnecessary trailing slashes from srcdir. 1365# Double slashes in file names in object file debugging info 1366# mess up M-x gdb in Emacs. 1367case $srcdir in 1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369esac 1370for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375done 1376 1377# 1378# Report the --help message. 1379# 1380if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384\`configure' configures unbound 1.4.22 to adapt to many kinds of systems. 1385 1386Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391Defaults for the options are specified in brackets. 1392 1393Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking ...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410By default, \`make install' will install all the files in 1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413for instance \`--prefix=\$HOME'. 1414 1415For better control, use the options below. 1416 1417Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --libdir=DIR object code libraries [EPREFIX/lib] 1425 --includedir=DIR C header files [PREFIX/include] 1426 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1429 --infodir=DIR info documentation [DATAROOTDIR/info] 1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1431 --mandir=DIR man documentation [DATAROOTDIR/man] 1432 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1433 --htmldir=DIR html documentation [DOCDIR] 1434 --dvidir=DIR dvi documentation [DOCDIR] 1435 --pdfdir=DIR pdf documentation [DOCDIR] 1436 --psdir=DIR ps documentation [DOCDIR] 1437_ACEOF 1438 1439 cat <<\_ACEOF 1440 1441System types: 1442 --build=BUILD configure for building on BUILD [guessed] 1443 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1444 --target=TARGET configure for building compilers for TARGET [HOST] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 case $ac_init_help in 1450 short | recursive ) echo "Configuration of unbound 1.4.22:";; 1451 esac 1452 cat <<\_ACEOF 1453 1454Optional Features: 1455 --disable-option-checking ignore unrecognized --enable/--with options 1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1458 --enable-checking Enable warnings, asserts, makefile-dependencies 1459 --enable-debug same as enable-checking 1460 --disable-flto Disable link-time optimization (gcc specific option) 1461 --enable-shared[=PKGS] build shared libraries [default=yes] 1462 --enable-static[=PKGS] build static libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --disable-rpath disable hardcoded rpath (default=enabled) 1467 --disable-largefile omit support for large files 1468 --enable-alloc-checks enable to memory allocation statistics, for debug 1469 purposes 1470 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1471 purposes 1472 --enable-alloc-nonregional 1473 enable nonregional allocs, slow but exposes regional 1474 allocations to other memory purifiers, for debug 1475 purposes 1476 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1477 --disable-gost Disable GOST support 1478 --disable-ecdsa Disable ECDSA support 1479 --enable-event-api Enable (experimental) libevent-based libunbound API 1480 installed to unbound-event.h 1481 --enable-static-exe enable to compile executables statically against 1482 (event) libs, for debug purposes 1483 --enable-lock-checks enable to check lock and unlock calls, for debug 1484 purposes 1485 --enable-allsymbols export all symbols from libunbound and link binaries 1486 to it, smaller install size but libunbound export 1487 table is polluted by internal symbols 1488 1489Optional Packages: 1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1492 --with-conf-file=path Pathname to the Unbound configuration file 1493 --with-run-dir=path set default directory to chdir to (by default dir 1494 part of cfg file) 1495 --with-chroot-dir=path set default directory to chroot to (by default same 1496 as run-dir) 1497 --with-share-dir=path set default directory with shared data (by default 1498 same as share/unbound) 1499 --with-pidfile=filename set default pathname to unbound pidfile (default 1500 run-dir/unbound.pid) 1501 --with-rootkey-file=filename 1502 set default pathname to root key file (default 1503 run-dir/root.key). This file is read and written. 1504 --with-rootcert-file=filename 1505 set default pathname to root update certificate file 1506 (default run-dir/icannbundle.pem). This file need 1507 not exist if you are content with the builtin. 1508 --with-username=user set default user that unbound changes to (default 1509 user is unbound) 1510 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1511 both] 1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1513 --with-sysroot=DIR Search for dependent libraries within DIR 1514 (or the compiler's sysroot if not specified). 1515 --with-pthreads use pthreads library, or --without-pthreads to 1516 disable threading support. 1517 --with-solaris-threads use solaris native thread library. 1518 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1519 (default=no) 1520 --with-pythonmodule build Python module, or --without-pythonmodule to 1521 disable script engine. (default=no) 1522 --with-nss=path use libnss instead of openssl, installed at path. 1523 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1524 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1525 /usr) 1526 --with-libevent=pathname 1527 use libevent (will check /usr/local /opt/local 1528 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1529 an explicit path). Slower, but allows use of large 1530 outgoing port ranges. 1531 --with-libexpat=path specify explicit path for libexpat. 1532 --with-libunbound-only do not build daemon and tool programs 1533 1534Some influential environment variables: 1535 CC C compiler command 1536 CFLAGS C compiler flags 1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1538 nonstandard directory <lib dir> 1539 LIBS libraries to pass to the linker, e.g. -l<library> 1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1541 you have headers in a nonstandard directory <include dir> 1542 CPP C preprocessor 1543 YACC The `Yet Another Compiler Compiler' implementation to use. 1544 Defaults to the first program found out of: `bison -y', `byacc', 1545 `yacc'. 1546 YFLAGS The list of arguments that will be passed by default to $YACC. 1547 This script will default YFLAGS to the empty string to avoid a 1548 default value of `-d' given by some make applications. 1549 PYTHON_VERSION 1550 The installed Python version to use, for example '2.3'. This 1551 string will be appended to the Python interpreter canonical 1552 name. 1553 1554Use these variables to override the choices made by `configure' or to help 1555it to find libraries and programs with nonstandard names/locations. 1556 1557Report bugs to <unbound-bugs@nlnetlabs.nl>. 1558_ACEOF 1559ac_status=$? 1560fi 1561 1562if test "$ac_init_help" = "recursive"; then 1563 # If there are subdirs, report their specific --help. 1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1565 test -d "$ac_dir" || 1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1567 continue 1568 ac_builddir=. 1569 1570case "$ac_dir" in 1571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1572*) 1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1574 # A ".." for each directory in $ac_dir_suffix. 1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1576 case $ac_top_builddir_sub in 1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1579 esac ;; 1580esac 1581ac_abs_top_builddir=$ac_pwd 1582ac_abs_builddir=$ac_pwd$ac_dir_suffix 1583# for backward compatibility: 1584ac_top_builddir=$ac_top_build_prefix 1585 1586case $srcdir in 1587 .) # We are building in place. 1588 ac_srcdir=. 1589 ac_top_srcdir=$ac_top_builddir_sub 1590 ac_abs_top_srcdir=$ac_pwd ;; 1591 [\\/]* | ?:[\\/]* ) # Absolute name. 1592 ac_srcdir=$srcdir$ac_dir_suffix; 1593 ac_top_srcdir=$srcdir 1594 ac_abs_top_srcdir=$srcdir ;; 1595 *) # Relative name. 1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1597 ac_top_srcdir=$ac_top_build_prefix$srcdir 1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1599esac 1600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1601 1602 cd "$ac_dir" || { ac_status=$?; continue; } 1603 # Check for guested configure. 1604 if test -f "$ac_srcdir/configure.gnu"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1607 elif test -f "$ac_srcdir/configure"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure" --help=recursive 1610 else 1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1612 fi || ac_status=$? 1613 cd "$ac_pwd" || { ac_status=$?; break; } 1614 done 1615fi 1616 1617test -n "$ac_init_help" && exit $ac_status 1618if $ac_init_version; then 1619 cat <<\_ACEOF 1620unbound configure 1.4.22 1621generated by GNU Autoconf 2.69 1622 1623Copyright (C) 2012 Free Software Foundation, Inc. 1624This configure script is free software; the Free Software Foundation 1625gives unlimited permission to copy, distribute and modify it. 1626_ACEOF 1627 exit 1628fi 1629 1630## ------------------------ ## 1631## Autoconf initialization. ## 1632## ------------------------ ## 1633 1634# ac_fn_c_try_compile LINENO 1635# -------------------------- 1636# Try to compile conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext 1641 if { { ac_try="$ac_compile" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_compile") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest.$ac_objext; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1710# ------------------------------------------------------- 1711# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1712# the include files in INCLUDES and setting the cache variable VAR 1713# accordingly. 1714ac_fn_c_check_header_mongrel () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 if eval \${$3+:} false; then : 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1719$as_echo_n "checking for $2... " >&6; } 1720if eval \${$3+:} false; then : 1721 $as_echo_n "(cached) " >&6 1722fi 1723eval ac_res=\$$3 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725$as_echo "$ac_res" >&6; } 1726else 1727 # Is the header compilable? 1728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1729$as_echo_n "checking $2 usability... " >&6; } 1730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733#include <$2> 1734_ACEOF 1735if ac_fn_c_try_compile "$LINENO"; then : 1736 ac_header_compiler=yes 1737else 1738 ac_header_compiler=no 1739fi 1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1742$as_echo "$ac_header_compiler" >&6; } 1743 1744# Is the header present? 1745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1746$as_echo_n "checking $2 presence... " >&6; } 1747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748/* end confdefs.h. */ 1749#include <$2> 1750_ACEOF 1751if ac_fn_c_try_cpp "$LINENO"; then : 1752 ac_header_preproc=yes 1753else 1754 ac_header_preproc=no 1755fi 1756rm -f conftest.err conftest.i conftest.$ac_ext 1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1758$as_echo "$ac_header_preproc" >&6; } 1759 1760# So? What about this header? 1761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1762 yes:no: ) 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1764$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1766$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1767 ;; 1768 no:yes:* ) 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1770$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1772$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1774$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1776$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1778$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1779( $as_echo "## ---------------------------------------- ## 1780## Report this to unbound-bugs@nlnetlabs.nl ## 1781## ---------------------------------------- ##" 1782 ) | sed "s/^/$as_me: WARNING: /" >&2 1783 ;; 1784esac 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786$as_echo_n "checking for $2... " >&6; } 1787if eval \${$3+:} false; then : 1788 $as_echo_n "(cached) " >&6 1789else 1790 eval "$3=\$ac_header_compiler" 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795fi 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_header_mongrel 1799 1800# ac_fn_c_try_run LINENO 1801# ---------------------- 1802# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1803# that executables *can* be run. 1804ac_fn_c_try_run () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 if { { ac_try="$ac_link" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1818 { { case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_try") 2>&5 1825 ac_status=$? 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; }; }; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: program exited with status $ac_status" >&5 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=$ac_status 1835fi 1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 as_fn_set_status $ac_retval 1839 1840} # ac_fn_c_try_run 1841 1842# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1843# ------------------------------------------------------- 1844# Tests whether HEADER exists and can be compiled using the include files in 1845# INCLUDES, setting the cache variable VAR accordingly. 1846ac_fn_c_check_header_compile () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850$as_echo_n "checking for $2... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856$4 1857#include <$2> 1858_ACEOF 1859if ac_fn_c_try_compile "$LINENO"; then : 1860 eval "$3=yes" 1861else 1862 eval "$3=no" 1863fi 1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1865fi 1866eval ac_res=\$$3 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868$as_echo "$ac_res" >&6; } 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 1871} # ac_fn_c_check_header_compile 1872 1873# ac_fn_c_try_link LINENO 1874# ----------------------- 1875# Try to link conftest.$ac_ext, and return whether this succeeded. 1876ac_fn_c_try_link () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 rm -f conftest.$ac_objext conftest$ac_exeext 1880 if { { ac_try="$ac_link" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_link") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } && { 1896 test -z "$ac_c_werror_flag" || 1897 test ! -s conftest.err 1898 } && test -s conftest$ac_exeext && { 1899 test "$cross_compiling" = yes || 1900 test -x conftest$ac_exeext 1901 }; then : 1902 ac_retval=0 1903else 1904 $as_echo "$as_me: failed program was:" >&5 1905sed 's/^/| /' conftest.$ac_ext >&5 1906 1907 ac_retval=1 1908fi 1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1911 # interfere with the next link command; also delete a directory that is 1912 # left behind by Apple's compiler. We do this before executing the actions. 1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_c_try_link 1918 1919# ac_fn_c_check_func LINENO FUNC VAR 1920# ---------------------------------- 1921# Tests whether FUNC exists, setting the cache variable VAR accordingly 1922ac_fn_c_check_func () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1926$as_echo_n "checking for $2... " >&6; } 1927if eval \${$3+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929else 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1934#define $2 innocuous_$2 1935 1936/* System header to define __stub macros and hopefully few prototypes, 1937 which can conflict with char $2 (); below. 1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1939 <limits.h> exists even on freestanding compilers. */ 1940 1941#ifdef __STDC__ 1942# include <limits.h> 1943#else 1944# include <assert.h> 1945#endif 1946 1947#undef $2 1948 1949/* Override any GCC internal prototype to avoid an error. 1950 Use char because int might match the return type of a GCC 1951 builtin and then its argument prototype would still apply. */ 1952#ifdef __cplusplus 1953extern "C" 1954#endif 1955char $2 (); 1956/* The GNU C library defines this for functions which it implements 1957 to always fail with ENOSYS. Some functions are actually named 1958 something starting with __ and the normal name is an alias. */ 1959#if defined __stub_$2 || defined __stub___$2 1960choke me 1961#endif 1962 1963int 1964main () 1965{ 1966return $2 (); 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_link "$LINENO"; then : 1972 eval "$3=yes" 1973else 1974 eval "$3=no" 1975fi 1976rm -f core conftest.err conftest.$ac_objext \ 1977 conftest$ac_exeext conftest.$ac_ext 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_func 1985 1986# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1987# ------------------------------------------- 1988# Tests whether TYPE exists after having included INCLUDES, setting cache 1989# variable VAR accordingly. 1990ac_fn_c_check_type () 1991{ 1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1994$as_echo_n "checking for $2... " >&6; } 1995if eval \${$3+:} false; then : 1996 $as_echo_n "(cached) " >&6 1997else 1998 eval "$3=no" 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002int 2003main () 2004{ 2005if (sizeof ($2)) 2006 return 0; 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018if (sizeof (($2))) 2019 return 0; 2020 ; 2021 return 0; 2022} 2023_ACEOF 2024if ac_fn_c_try_compile "$LINENO"; then : 2025 2026else 2027 eval "$3=yes" 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032fi 2033eval ac_res=\$$3 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2035$as_echo "$ac_res" >&6; } 2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2037 2038} # ac_fn_c_check_type 2039 2040# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2041# -------------------------------------------- 2042# Tries to find the compile-time value of EXPR in a program that includes 2043# INCLUDES, setting VAR accordingly. Returns whether the value could be 2044# computed 2045ac_fn_c_compute_int () 2046{ 2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2048 if test "$cross_compiling" = yes; then 2049 # Depending upon the size, compute the lo and hi bounds. 2050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053int 2054main () 2055{ 2056static int test_array [1 - 2 * !(($2) >= 0)]; 2057test_array [0] = 0; 2058return test_array [0]; 2059 2060 ; 2061 return 0; 2062} 2063_ACEOF 2064if ac_fn_c_try_compile "$LINENO"; then : 2065 ac_lo=0 ac_mid=0 2066 while :; do 2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069$4 2070int 2071main () 2072{ 2073static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2074test_array [0] = 0; 2075return test_array [0]; 2076 2077 ; 2078 return 0; 2079} 2080_ACEOF 2081if ac_fn_c_try_compile "$LINENO"; then : 2082 ac_hi=$ac_mid; break 2083else 2084 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2085 if test $ac_lo -le $ac_mid; then 2086 ac_lo= ac_hi= 2087 break 2088 fi 2089 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2090fi 2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2092 done 2093else 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096$4 2097int 2098main () 2099{ 2100static int test_array [1 - 2 * !(($2) < 0)]; 2101test_array [0] = 0; 2102return test_array [0]; 2103 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO"; then : 2109 ac_hi=-1 ac_mid=-1 2110 while :; do 2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2112/* end confdefs.h. */ 2113$4 2114int 2115main () 2116{ 2117static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2118test_array [0] = 0; 2119return test_array [0]; 2120 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO"; then : 2126 ac_lo=$ac_mid; break 2127else 2128 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2129 if test $ac_mid -le $ac_hi; then 2130 ac_lo= ac_hi= 2131 break 2132 fi 2133 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2134fi 2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2136 done 2137else 2138 ac_lo= ac_hi= 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2141fi 2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2143# Binary search between lo and hi bounds. 2144while test "x$ac_lo" != "x$ac_hi"; do 2145 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$4 2149int 2150main () 2151{ 2152static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2153test_array [0] = 0; 2154return test_array [0]; 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 ac_hi=$ac_mid 2162else 2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166done 2167case $ac_lo in #(( 2168?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2169'') ac_retval=1 ;; 2170esac 2171 else 2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2173/* end confdefs.h. */ 2174$4 2175static long int longval () { return $2; } 2176static unsigned long int ulongval () { return $2; } 2177#include <stdio.h> 2178#include <stdlib.h> 2179int 2180main () 2181{ 2182 2183 FILE *f = fopen ("conftest.val", "w"); 2184 if (! f) 2185 return 1; 2186 if (($2) < 0) 2187 { 2188 long int i = longval (); 2189 if (i != ($2)) 2190 return 1; 2191 fprintf (f, "%ld", i); 2192 } 2193 else 2194 { 2195 unsigned long int i = ulongval (); 2196 if (i != ($2)) 2197 return 1; 2198 fprintf (f, "%lu", i); 2199 } 2200 /* Do not output a trailing newline, as this causes \r\n confusion 2201 on some platforms. */ 2202 return ferror (f) || fclose (f) != 0; 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_c_try_run "$LINENO"; then : 2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2210else 2211 ac_retval=1 2212fi 2213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2214 conftest.$ac_objext conftest.beam conftest.$ac_ext 2215rm -f conftest.val 2216 2217 fi 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 as_fn_set_status $ac_retval 2220 2221} # ac_fn_c_compute_int 2222 2223# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2224# --------------------------------------------- 2225# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2226# accordingly. 2227ac_fn_c_check_decl () 2228{ 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 as_decl_name=`echo $2|sed 's/ *(.*//'` 2231 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2233$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2234if eval \${$3+:} false; then : 2235 $as_echo_n "(cached) " >&6 2236else 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$4 2240int 2241main () 2242{ 2243#ifndef $as_decl_name 2244#ifdef __cplusplus 2245 (void) $as_decl_use; 2246#else 2247 (void) $as_decl_name; 2248#endif 2249#endif 2250 2251 ; 2252 return 0; 2253} 2254_ACEOF 2255if ac_fn_c_try_compile "$LINENO"; then : 2256 eval "$3=yes" 2257else 2258 eval "$3=no" 2259fi 2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2261fi 2262eval ac_res=\$$3 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2264$as_echo "$ac_res" >&6; } 2265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2266 2267} # ac_fn_c_check_decl 2268 2269# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2270# ---------------------------------------------------- 2271# Tries to find if the field MEMBER exists in type AGGR, after including 2272# INCLUDES, setting cache variable VAR accordingly. 2273ac_fn_c_check_member () 2274{ 2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2277$as_echo_n "checking for $2.$3... " >&6; } 2278if eval \${$4+:} false; then : 2279 $as_echo_n "(cached) " >&6 2280else 2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282/* end confdefs.h. */ 2283$5 2284int 2285main () 2286{ 2287static $2 ac_aggr; 2288if (ac_aggr.$3) 2289return 0; 2290 ; 2291 return 0; 2292} 2293_ACEOF 2294if ac_fn_c_try_compile "$LINENO"; then : 2295 eval "$4=yes" 2296else 2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2298/* end confdefs.h. */ 2299$5 2300int 2301main () 2302{ 2303static $2 ac_aggr; 2304if (sizeof ac_aggr.$3) 2305return 0; 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310if ac_fn_c_try_compile "$LINENO"; then : 2311 eval "$4=yes" 2312else 2313 eval "$4=no" 2314fi 2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2316fi 2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318fi 2319eval ac_res=\$$4 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2321$as_echo "$ac_res" >&6; } 2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2323 2324} # ac_fn_c_check_member 2325cat >config.log <<_ACEOF 2326This file contains any messages produced by compilers while 2327running configure, to aid debugging if configure makes a mistake. 2328 2329It was created by unbound $as_me 1.4.22, which was 2330generated by GNU Autoconf 2.69. Invocation command line was 2331 2332 $ $0 $@ 2333 2334_ACEOF 2335exec 5>>config.log 2336{ 2337cat <<_ASUNAME 2338## --------- ## 2339## Platform. ## 2340## --------- ## 2341 2342hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2343uname -m = `(uname -m) 2>/dev/null || echo unknown` 2344uname -r = `(uname -r) 2>/dev/null || echo unknown` 2345uname -s = `(uname -s) 2>/dev/null || echo unknown` 2346uname -v = `(uname -v) 2>/dev/null || echo unknown` 2347 2348/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2349/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2350 2351/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2352/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2353/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2354/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2355/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2356/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2357/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2358 2359_ASUNAME 2360 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 $as_echo "PATH: $as_dir" 2367 done 2368IFS=$as_save_IFS 2369 2370} >&5 2371 2372cat >&5 <<_ACEOF 2373 2374 2375## ----------- ## 2376## Core tests. ## 2377## ----------- ## 2378 2379_ACEOF 2380 2381 2382# Keep a trace of the command line. 2383# Strip out --no-create and --no-recursion so they do not pile up. 2384# Strip out --silent because we don't want to record it for future runs. 2385# Also quote any args containing shell meta-characters. 2386# Make two passes to allow for proper duplicate-argument suppression. 2387ac_configure_args= 2388ac_configure_args0= 2389ac_configure_args1= 2390ac_must_keep_next=false 2391for ac_pass in 1 2 2392do 2393 for ac_arg 2394 do 2395 case $ac_arg in 2396 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2398 | -silent | --silent | --silen | --sile | --sil) 2399 continue ;; 2400 *\'*) 2401 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2402 esac 2403 case $ac_pass in 2404 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2405 2) 2406 as_fn_append ac_configure_args1 " '$ac_arg'" 2407 if test $ac_must_keep_next = true; then 2408 ac_must_keep_next=false # Got value, back to normal. 2409 else 2410 case $ac_arg in 2411 *=* | --config-cache | -C | -disable-* | --disable-* \ 2412 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2413 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2414 | -with-* | --with-* | -without-* | --without-* | --x) 2415 case "$ac_configure_args0 " in 2416 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2417 esac 2418 ;; 2419 -* ) ac_must_keep_next=true ;; 2420 esac 2421 fi 2422 as_fn_append ac_configure_args " '$ac_arg'" 2423 ;; 2424 esac 2425 done 2426done 2427{ ac_configure_args0=; unset ac_configure_args0;} 2428{ ac_configure_args1=; unset ac_configure_args1;} 2429 2430# When interrupted or exit'd, cleanup temporary files, and complete 2431# config.log. We remove comments because anyway the quotes in there 2432# would cause problems or look ugly. 2433# WARNING: Use '\'' to represent an apostrophe within the trap. 2434# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2435trap 'exit_status=$? 2436 # Save into config.log some information that might help in debugging. 2437 { 2438 echo 2439 2440 $as_echo "## ---------------- ## 2441## Cache variables. ## 2442## ---------------- ##" 2443 echo 2444 # The following way of writing the cache mishandles newlines in values, 2445( 2446 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2447 eval ac_val=\$$ac_var 2448 case $ac_val in #( 2449 *${as_nl}*) 2450 case $ac_var in #( 2451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2452$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2453 esac 2454 case $ac_var in #( 2455 _ | IFS | as_nl) ;; #( 2456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2457 *) { eval $ac_var=; unset $ac_var;} ;; 2458 esac ;; 2459 esac 2460 done 2461 (set) 2>&1 | 2462 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2463 *${as_nl}ac_space=\ *) 2464 sed -n \ 2465 "s/'\''/'\''\\\\'\'''\''/g; 2466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2467 ;; #( 2468 *) 2469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2470 ;; 2471 esac | 2472 sort 2473) 2474 echo 2475 2476 $as_echo "## ----------------- ## 2477## Output variables. ## 2478## ----------------- ##" 2479 echo 2480 for ac_var in $ac_subst_vars 2481 do 2482 eval ac_val=\$$ac_var 2483 case $ac_val in 2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2485 esac 2486 $as_echo "$ac_var='\''$ac_val'\''" 2487 done | sort 2488 echo 2489 2490 if test -n "$ac_subst_files"; then 2491 $as_echo "## ------------------- ## 2492## File substitutions. ## 2493## ------------------- ##" 2494 echo 2495 for ac_var in $ac_subst_files 2496 do 2497 eval ac_val=\$$ac_var 2498 case $ac_val in 2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2500 esac 2501 $as_echo "$ac_var='\''$ac_val'\''" 2502 done | sort 2503 echo 2504 fi 2505 2506 if test -s confdefs.h; then 2507 $as_echo "## ----------- ## 2508## confdefs.h. ## 2509## ----------- ##" 2510 echo 2511 cat confdefs.h 2512 echo 2513 fi 2514 test "$ac_signal" != 0 && 2515 $as_echo "$as_me: caught signal $ac_signal" 2516 $as_echo "$as_me: exit $exit_status" 2517 } >&5 2518 rm -f core *.core core.conftest.* && 2519 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2520 exit $exit_status 2521' 0 2522for ac_signal in 1 2 13 15; do 2523 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2524done 2525ac_signal=0 2526 2527# confdefs.h avoids OS command line length limits that DEFS can exceed. 2528rm -f -r conftest* confdefs.h 2529 2530$as_echo "/* confdefs.h */" > confdefs.h 2531 2532# Predefined preprocessor variables. 2533 2534cat >>confdefs.h <<_ACEOF 2535#define PACKAGE_NAME "$PACKAGE_NAME" 2536_ACEOF 2537 2538cat >>confdefs.h <<_ACEOF 2539#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2540_ACEOF 2541 2542cat >>confdefs.h <<_ACEOF 2543#define PACKAGE_VERSION "$PACKAGE_VERSION" 2544_ACEOF 2545 2546cat >>confdefs.h <<_ACEOF 2547#define PACKAGE_STRING "$PACKAGE_STRING" 2548_ACEOF 2549 2550cat >>confdefs.h <<_ACEOF 2551#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2552_ACEOF 2553 2554cat >>confdefs.h <<_ACEOF 2555#define PACKAGE_URL "$PACKAGE_URL" 2556_ACEOF 2557 2558 2559# Let the site file select an alternate cache file if it wants to. 2560# Prefer an explicitly selected file to automatically selected ones. 2561ac_site_file1=NONE 2562ac_site_file2=NONE 2563if test -n "$CONFIG_SITE"; then 2564 # We do not want a PATH search for config.site. 2565 case $CONFIG_SITE in #(( 2566 -*) ac_site_file1=./$CONFIG_SITE;; 2567 */*) ac_site_file1=$CONFIG_SITE;; 2568 *) ac_site_file1=./$CONFIG_SITE;; 2569 esac 2570elif test "x$prefix" != xNONE; then 2571 ac_site_file1=$prefix/share/config.site 2572 ac_site_file2=$prefix/etc/config.site 2573else 2574 ac_site_file1=$ac_default_prefix/share/config.site 2575 ac_site_file2=$ac_default_prefix/etc/config.site 2576fi 2577for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2578do 2579 test "x$ac_site_file" = xNONE && continue 2580 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2582$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2583 sed 's/^/| /' "$ac_site_file" >&5 2584 . "$ac_site_file" \ 2585 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2587as_fn_error $? "failed to load site script $ac_site_file 2588See \`config.log' for more details" "$LINENO" 5; } 2589 fi 2590done 2591 2592if test -r "$cache_file"; then 2593 # Some versions of bash will fail to source /dev/null (special files 2594 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2595 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2597$as_echo "$as_me: loading cache $cache_file" >&6;} 2598 case $cache_file in 2599 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2600 *) . "./$cache_file";; 2601 esac 2602 fi 2603else 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2605$as_echo "$as_me: creating cache $cache_file" >&6;} 2606 >$cache_file 2607fi 2608 2609# Check that the precious variables saved in the cache have kept the same 2610# value. 2611ac_cache_corrupted=false 2612for ac_var in $ac_precious_vars; do 2613 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2614 eval ac_new_set=\$ac_env_${ac_var}_set 2615 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2616 eval ac_new_val=\$ac_env_${ac_var}_value 2617 case $ac_old_set,$ac_new_set in 2618 set,) 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2620$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2621 ac_cache_corrupted=: ;; 2622 ,set) 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2624$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2625 ac_cache_corrupted=: ;; 2626 ,);; 2627 *) 2628 if test "x$ac_old_val" != "x$ac_new_val"; then 2629 # differences in whitespace do not lead to failure. 2630 ac_old_val_w=`echo x $ac_old_val` 2631 ac_new_val_w=`echo x $ac_new_val` 2632 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2634$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2635 ac_cache_corrupted=: 2636 else 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2638$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2639 eval $ac_var=\$ac_old_val 2640 fi 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2642$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2644$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2645 fi;; 2646 esac 2647 # Pass precious variables to config.status. 2648 if test "$ac_new_set" = set; then 2649 case $ac_new_val in 2650 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2651 *) ac_arg=$ac_var=$ac_new_val ;; 2652 esac 2653 case " $ac_configure_args " in 2654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2655 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2656 esac 2657 fi 2658done 2659if $ac_cache_corrupted; then 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2663$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2664 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2665fi 2666## -------------------- ## 2667## Main body of script. ## 2668## -------------------- ## 2669 2670ac_ext=c 2671ac_cpp='$CPP $CPPFLAGS' 2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2674ac_compiler_gnu=$ac_cv_c_compiler_gnu 2675 2676 2677UNBOUND_VERSION_MAJOR=1 2678 2679UNBOUND_VERSION_MINOR=4 2680 2681UNBOUND_VERSION_MICRO=22 2682 2683 2684LIBUNBOUND_CURRENT=4 2685LIBUNBOUND_REVISION=1 2686LIBUNBOUND_AGE=2 2687# 1.0.0 had 0:12:0 2688# 1.0.1 had 0:13:0 2689# 1.0.2 had 0:14:0 2690# 1.1.0 had 0:15:0 2691# 1.1.1 had 0:16:0 2692# 1.2.0 had 0:17:0 2693# 1.2.1 had 0:18:0 2694# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2695# 1.3.1 had 1:1:0 2696# 1.3.2 had 1:2:0 2697# 1.3.3 had 1:3:0 2698# 1.3.4 had 1:4:0 2699# 1.4.0-snapshots had 1:5:0 2700# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2701# 1.4.1 had 2:1:0 2702# 1.4.2 had 2:2:0 2703# 1.4.3 had 2:3:0 2704# 1.4.4 had 2:4:0 2705# 1.4.5 had 2:5:0 2706# 1.4.6 had 2:6:0 2707# 1.4.7 had 2:7:0 2708# 1.4.8 had 2:8:0 2709# 1.4.9 had 2:9:0 2710# 1.4.10 had 2:10:0 2711# 1.4.11 had 2:11:0 2712# 1.4.12 had 2:12:0 2713# 1.4.13 had 2:13:0 2714# and 1.4.13p1 and 1.4.13.p2 2715# 1.4.14 had 2:14:0 2716# 1.4.15 had 3:0:1 # adds ub_version() 2717# 1.4.16 had 3:1:1 2718# 1.4.17 had 3:2:1 2719# 1.4.18 had 3:3:1 2720# 1.4.19 had 3:4:1 2721# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2722# 1.4.21 had 4:1:2 2723 2724# Current -- the number of the binary API that we're implementing 2725# Revision -- which iteration of the implementation of the binary 2726# API are we supplying? 2727# Age -- How many previous binary API versions do we also 2728# support? 2729# 2730# If we release a new version that does not change the binary API, 2731# increment Revision. 2732# 2733# If we release a new version that changes the binary API, but does 2734# not break programs compiled against the old binary API, increment 2735# Current and Age. Set Revision to 0, since this is the first 2736# implementation of the new API. 2737# 2738# Otherwise, we're changing the binary API and breaking bakward 2739# compatibility with old binaries. Increment Current. Set Age to 0, 2740# since we're backward compatible with no previous APIs. Set Revision 2741# to 0 too. 2742 2743 2744 2745 2746pretty_cmdline() { 2747 cmdline="" 2748 while test -n "$1"; do 2749 cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'" 2750 shift 2751 done 2752} 2753pretty_cmdline $@ 2754 2755cat >>confdefs.h <<_ACEOF 2756#define CONFIGURE_BUILD_WITH "$cmdline" 2757_ACEOF 2758 2759ac_aux_dir= 2760for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2761 if test -f "$ac_dir/install-sh"; then 2762 ac_aux_dir=$ac_dir 2763 ac_install_sh="$ac_aux_dir/install-sh -c" 2764 break 2765 elif test -f "$ac_dir/install.sh"; then 2766 ac_aux_dir=$ac_dir 2767 ac_install_sh="$ac_aux_dir/install.sh -c" 2768 break 2769 elif test -f "$ac_dir/shtool"; then 2770 ac_aux_dir=$ac_dir 2771 ac_install_sh="$ac_aux_dir/shtool install -c" 2772 break 2773 fi 2774done 2775if test -z "$ac_aux_dir"; then 2776 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2777fi 2778 2779# These three variables are undocumented and unsupported, 2780# and are intended to be withdrawn in a future Autoconf release. 2781# They can cause serious problems if a builder's source tree is in a directory 2782# whose full name contains unusual characters. 2783ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2784ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2785ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2786 2787 2788# Make sure we can run config.sub. 2789$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2790 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2791 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2793$as_echo_n "checking build system type... " >&6; } 2794if ${ac_cv_build+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 ac_build_alias=$build_alias 2798test "x$ac_build_alias" = x && 2799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2800test "x$ac_build_alias" = x && 2801 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2802ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2804 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2807$as_echo "$ac_cv_build" >&6; } 2808case $ac_cv_build in 2809*-*-*) ;; 2810*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2811esac 2812build=$ac_cv_build 2813ac_save_IFS=$IFS; IFS='-' 2814set x $ac_cv_build 2815shift 2816build_cpu=$1 2817build_vendor=$2 2818shift; shift 2819# Remember, the first character of IFS is used to create $*, 2820# except with old shells: 2821build_os=$* 2822IFS=$ac_save_IFS 2823case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2824 2825 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2827$as_echo_n "checking host system type... " >&6; } 2828if ${ac_cv_host+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test "x$host_alias" = x; then 2832 ac_cv_host=$ac_cv_build 2833else 2834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2836fi 2837 2838fi 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2840$as_echo "$ac_cv_host" >&6; } 2841case $ac_cv_host in 2842*-*-*) ;; 2843*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2844esac 2845host=$ac_cv_host 2846ac_save_IFS=$IFS; IFS='-' 2847set x $ac_cv_host 2848shift 2849host_cpu=$1 2850host_vendor=$2 2851shift; shift 2852# Remember, the first character of IFS is used to create $*, 2853# except with old shells: 2854host_os=$* 2855IFS=$ac_save_IFS 2856case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2857 2858 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2860$as_echo_n "checking target system type... " >&6; } 2861if ${ac_cv_target+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 if test "x$target_alias" = x; then 2865 ac_cv_target=$ac_cv_host 2866else 2867 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2868 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2869fi 2870 2871fi 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2873$as_echo "$ac_cv_target" >&6; } 2874case $ac_cv_target in 2875*-*-*) ;; 2876*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2877esac 2878target=$ac_cv_target 2879ac_save_IFS=$IFS; IFS='-' 2880set x $ac_cv_target 2881shift 2882target_cpu=$1 2883target_vendor=$2 2884shift; shift 2885# Remember, the first character of IFS is used to create $*, 2886# except with old shells: 2887target_os=$* 2888IFS=$ac_save_IFS 2889case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2890 2891 2892# The aliases save the names the user supplied, while $host etc. 2893# will get canonicalized. 2894test -n "$target_alias" && 2895 test "$program_prefix$program_suffix$program_transform_name" = \ 2896 NONENONEs,x,x, && 2897 program_prefix=${target_alias}- 2898 2899cat >>confdefs.h <<_ACEOF 2900#define CONFIGURE_TARGET "$target" 2901_ACEOF 2902 2903 2904cat >>confdefs.h <<_ACEOF 2905#define CONFIGURE_DATE "`date`" 2906_ACEOF 2907 2908 2909CFLAGS="$CFLAGS" 2910ac_ext=c 2911ac_cpp='$CPP $CPPFLAGS' 2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2914ac_compiler_gnu=$ac_cv_c_compiler_gnu 2915if test -n "$ac_tool_prefix"; then 2916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2917set dummy ${ac_tool_prefix}gcc; ac_word=$2 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if ${ac_cv_prog_CC+:} false; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$CC"; then 2924 ac_cv_prog_CC="$CC" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2933 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943CC=$ac_cv_prog_CC 2944if test -n "$CC"; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2946$as_echo "$CC" >&6; } 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 2953fi 2954if test -z "$ac_cv_prog_CC"; then 2955 ac_ct_CC=$CC 2956 # Extract the first word of "gcc", so it can be a program name with args. 2957set dummy gcc; ac_word=$2 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2959$as_echo_n "checking for $ac_word... " >&6; } 2960if ${ac_cv_prog_ac_ct_CC+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 if test -n "$ac_ct_CC"; then 2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2965else 2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2967for as_dir in $PATH 2968do 2969 IFS=$as_save_IFS 2970 test -z "$as_dir" && as_dir=. 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2973 ac_cv_prog_ac_ct_CC="gcc" 2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978 done 2979IFS=$as_save_IFS 2980 2981fi 2982fi 2983ac_ct_CC=$ac_cv_prog_ac_ct_CC 2984if test -n "$ac_ct_CC"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2986$as_echo "$ac_ct_CC" >&6; } 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990fi 2991 2992 if test "x$ac_ct_CC" = x; then 2993 CC="" 2994 else 2995 case $cross_compiling:$ac_tool_warned in 2996yes:) 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2999ac_tool_warned=yes ;; 3000esac 3001 CC=$ac_ct_CC 3002 fi 3003else 3004 CC="$ac_cv_prog_CC" 3005fi 3006 3007if test -z "$CC"; then 3008 if test -n "$ac_tool_prefix"; then 3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3010set dummy ${ac_tool_prefix}cc; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$CC"; then 3017 ac_cv_prog_CC="$CC" # Let the user override the test. 3018else 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_CC="${ac_tool_prefix}cc" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036CC=$ac_cv_prog_CC 3037if test -n "$CC"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3039$as_echo "$CC" >&6; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 3046 fi 3047fi 3048if test -z "$CC"; then 3049 # Extract the first word of "cc", so it can be a program name with args. 3050set dummy cc; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if ${ac_cv_prog_CC+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$CC"; then 3057 ac_cv_prog_CC="$CC" # Let the user override the test. 3058else 3059 ac_prog_rejected=no 3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061for as_dir in $PATH 3062do 3063 IFS=$as_save_IFS 3064 test -z "$as_dir" && as_dir=. 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3068 ac_prog_rejected=yes 3069 continue 3070 fi 3071 ac_cv_prog_CC="cc" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079if test $ac_prog_rejected = yes; then 3080 # We found a bogon in the path, so make sure we never use it. 3081 set dummy $ac_cv_prog_CC 3082 shift 3083 if test $# != 0; then 3084 # We chose a different compiler from the bogus one. 3085 # However, it has the same basename, so the bogon will be chosen 3086 # first if we set CC to just the basename; use the full file name. 3087 shift 3088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3089 fi 3090fi 3091fi 3092fi 3093CC=$ac_cv_prog_CC 3094if test -n "$CC"; then 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3096$as_echo "$CC" >&6; } 3097else 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099$as_echo "no" >&6; } 3100fi 3101 3102 3103fi 3104if test -z "$CC"; then 3105 if test -n "$ac_tool_prefix"; then 3106 for ac_prog in cl.exe 3107 do 3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3111$as_echo_n "checking for $ac_word... " >&6; } 3112if ${ac_cv_prog_CC+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if test -n "$CC"; then 3116 ac_cv_prog_CC="$CC" # Let the user override the test. 3117else 3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3119for as_dir in $PATH 3120do 3121 IFS=$as_save_IFS 3122 test -z "$as_dir" && as_dir=. 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3127 break 2 3128 fi 3129done 3130 done 3131IFS=$as_save_IFS 3132 3133fi 3134fi 3135CC=$ac_cv_prog_CC 3136if test -n "$CC"; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3138$as_echo "$CC" >&6; } 3139else 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141$as_echo "no" >&6; } 3142fi 3143 3144 3145 test -n "$CC" && break 3146 done 3147fi 3148if test -z "$CC"; then 3149 ac_ct_CC=$CC 3150 for ac_prog in cl.exe 3151do 3152 # Extract the first word of "$ac_prog", so it can be a program name with args. 3153set dummy $ac_prog; ac_word=$2 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3155$as_echo_n "checking for $ac_word... " >&6; } 3156if ${ac_cv_prog_ac_ct_CC+:} false; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 if test -n "$ac_ct_CC"; then 3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3161else 3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3163for as_dir in $PATH 3164do 3165 IFS=$as_save_IFS 3166 test -z "$as_dir" && as_dir=. 3167 for ac_exec_ext in '' $ac_executable_extensions; do 3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3169 ac_cv_prog_ac_ct_CC="$ac_prog" 3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3171 break 2 3172 fi 3173done 3174 done 3175IFS=$as_save_IFS 3176 3177fi 3178fi 3179ac_ct_CC=$ac_cv_prog_ac_ct_CC 3180if test -n "$ac_ct_CC"; then 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3182$as_echo "$ac_ct_CC" >&6; } 3183else 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185$as_echo "no" >&6; } 3186fi 3187 3188 3189 test -n "$ac_ct_CC" && break 3190done 3191 3192 if test "x$ac_ct_CC" = x; then 3193 CC="" 3194 else 3195 case $cross_compiling:$ac_tool_warned in 3196yes:) 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3199ac_tool_warned=yes ;; 3200esac 3201 CC=$ac_ct_CC 3202 fi 3203fi 3204 3205fi 3206 3207 3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error $? "no acceptable C compiler found in \$PATH 3211See \`config.log' for more details" "$LINENO" 5; } 3212 3213# Provide some information about the compiler. 3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3215set X $ac_compile 3216ac_compiler=$2 3217for ac_option in --version -v -V -qversion; do 3218 { { ac_try="$ac_compiler $ac_option >&5" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3224$as_echo "$ac_try_echo"; } >&5 3225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3226 ac_status=$? 3227 if test -s conftest.err; then 3228 sed '10a\ 3229... rest of stderr output deleted ... 3230 10q' conftest.err >conftest.er1 3231 cat conftest.er1 >&5 3232 fi 3233 rm -f conftest.er1 conftest.err 3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3235 test $ac_status = 0; } 3236done 3237 3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3239/* end confdefs.h. */ 3240 3241int 3242main () 3243{ 3244 3245 ; 3246 return 0; 3247} 3248_ACEOF 3249ac_clean_files_save=$ac_clean_files 3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3251# Try to create an executable without -o first, disregard a.out. 3252# It will help us diagnose broken compilers, and finding out an intuition 3253# of exeext. 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3255$as_echo_n "checking whether the C compiler works... " >&6; } 3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3257 3258# The possible output files: 3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3260 3261ac_rmfiles= 3262for ac_file in $ac_files 3263do 3264 case $ac_file in 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3266 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3267 esac 3268done 3269rm -f $ac_rmfiles 3270 3271if { { ac_try="$ac_link_default" 3272case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3277$as_echo "$ac_try_echo"; } >&5 3278 (eval "$ac_link_default") 2>&5 3279 ac_status=$? 3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3281 test $ac_status = 0; }; then : 3282 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3284# in a Makefile. We should not override ac_cv_exeext if it was cached, 3285# so that the user can short-circuit this test for compilers unknown to 3286# Autoconf. 3287for ac_file in $ac_files '' 3288do 3289 test -f "$ac_file" || continue 3290 case $ac_file in 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3292 ;; 3293 [ab].out ) 3294 # We found the default executable, but exeext='' is most 3295 # certainly right. 3296 break;; 3297 *.* ) 3298 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3299 then :; else 3300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3301 fi 3302 # We set ac_cv_exeext here because the later test for it is not 3303 # safe: cross compilers may not add the suffix if given an `-o' 3304 # argument, so we may need to know it at that point already. 3305 # Even if this section looks crufty: it has the advantage of 3306 # actually working. 3307 break;; 3308 * ) 3309 break;; 3310 esac 3311done 3312test "$ac_cv_exeext" = no && ac_cv_exeext= 3313 3314else 3315 ac_file='' 3316fi 3317if test -z "$ac_file"; then : 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319$as_echo "no" >&6; } 3320$as_echo "$as_me: failed program was:" >&5 3321sed 's/^/| /' conftest.$ac_ext >&5 3322 3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325as_fn_error 77 "C compiler cannot create executables 3326See \`config.log' for more details" "$LINENO" 5; } 3327else 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3329$as_echo "yes" >&6; } 3330fi 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3332$as_echo_n "checking for C compiler default output file name... " >&6; } 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3334$as_echo "$ac_file" >&6; } 3335ac_exeext=$ac_cv_exeext 3336 3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3338ac_clean_files=$ac_clean_files_save 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3340$as_echo_n "checking for suffix of executables... " >&6; } 3341if { { ac_try="$ac_link" 3342case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345esac 3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3347$as_echo "$ac_try_echo"; } >&5 3348 (eval "$ac_link") 2>&5 3349 ac_status=$? 3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3351 test $ac_status = 0; }; then : 3352 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3353# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3354# work properly (i.e., refer to `conftest.exe'), while it won't with 3355# `rm'. 3356for ac_file in conftest.exe conftest conftest.*; do 3357 test -f "$ac_file" || continue 3358 case $ac_file in 3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3361 break;; 3362 * ) break;; 3363 esac 3364done 3365else 3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3368as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3369See \`config.log' for more details" "$LINENO" 5; } 3370fi 3371rm -f conftest conftest$ac_cv_exeext 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3373$as_echo "$ac_cv_exeext" >&6; } 3374 3375rm -f conftest.$ac_ext 3376EXEEXT=$ac_cv_exeext 3377ac_exeext=$EXEEXT 3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380#include <stdio.h> 3381int 3382main () 3383{ 3384FILE *f = fopen ("conftest.out", "w"); 3385 return ferror (f) || fclose (f) != 0; 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391ac_clean_files="$ac_clean_files conftest.out" 3392# Check that the compiler produces executables we can run. If not, either 3393# the compiler is broken, or we cross compile. 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3395$as_echo_n "checking whether we are cross compiling... " >&6; } 3396if test "$cross_compiling" != yes; then 3397 { { ac_try="$ac_link" 3398case "(($ac_try" in 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400 *) ac_try_echo=$ac_try;; 3401esac 3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3403$as_echo "$ac_try_echo"; } >&5 3404 (eval "$ac_link") 2>&5 3405 ac_status=$? 3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3407 test $ac_status = 0; } 3408 if { ac_try='./conftest$ac_cv_exeext' 3409 { { case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_try") 2>&5 3416 ac_status=$? 3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3418 test $ac_status = 0; }; }; then 3419 cross_compiling=no 3420 else 3421 if test "$cross_compiling" = maybe; then 3422 cross_compiling=yes 3423 else 3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3426as_fn_error $? "cannot run C compiled programs. 3427If you meant to cross compile, use \`--host'. 3428See \`config.log' for more details" "$LINENO" 5; } 3429 fi 3430 fi 3431fi 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3433$as_echo "$cross_compiling" >&6; } 3434 3435rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3436ac_clean_files=$ac_clean_files_save 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3438$as_echo_n "checking for suffix of object files... " >&6; } 3439if ${ac_cv_objext+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441else 3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444 3445int 3446main () 3447{ 3448 3449 ; 3450 return 0; 3451} 3452_ACEOF 3453rm -f conftest.o conftest.obj 3454if { { ac_try="$ac_compile" 3455case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458esac 3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3460$as_echo "$ac_try_echo"; } >&5 3461 (eval "$ac_compile") 2>&5 3462 ac_status=$? 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3464 test $ac_status = 0; }; then : 3465 for ac_file in conftest.o conftest.obj conftest.*; do 3466 test -f "$ac_file" || continue; 3467 case $ac_file in 3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3470 break;; 3471 esac 3472done 3473else 3474 $as_echo "$as_me: failed program was:" >&5 3475sed 's/^/| /' conftest.$ac_ext >&5 3476 3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3479as_fn_error $? "cannot compute suffix of object files: cannot compile 3480See \`config.log' for more details" "$LINENO" 5; } 3481fi 3482rm -f conftest.$ac_cv_objext conftest.$ac_ext 3483fi 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3485$as_echo "$ac_cv_objext" >&6; } 3486OBJEXT=$ac_cv_objext 3487ac_objext=$OBJEXT 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3489$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3490if ${ac_cv_c_compiler_gnu+:} false; then : 3491 $as_echo_n "(cached) " >&6 3492else 3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3494/* end confdefs.h. */ 3495 3496int 3497main () 3498{ 3499#ifndef __GNUC__ 3500 choke me 3501#endif 3502 3503 ; 3504 return 0; 3505} 3506_ACEOF 3507if ac_fn_c_try_compile "$LINENO"; then : 3508 ac_compiler_gnu=yes 3509else 3510 ac_compiler_gnu=no 3511fi 3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3513ac_cv_c_compiler_gnu=$ac_compiler_gnu 3514 3515fi 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3517$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3518if test $ac_compiler_gnu = yes; then 3519 GCC=yes 3520else 3521 GCC= 3522fi 3523ac_test_CFLAGS=${CFLAGS+set} 3524ac_save_CFLAGS=$CFLAGS 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3526$as_echo_n "checking whether $CC accepts -g... " >&6; } 3527if ${ac_cv_prog_cc_g+:} false; then : 3528 $as_echo_n "(cached) " >&6 3529else 3530 ac_save_c_werror_flag=$ac_c_werror_flag 3531 ac_c_werror_flag=yes 3532 ac_cv_prog_cc_g=no 3533 CFLAGS="-g" 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536 3537int 3538main () 3539{ 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545if ac_fn_c_try_compile "$LINENO"; then : 3546 ac_cv_prog_cc_g=yes 3547else 3548 CFLAGS="" 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551 3552int 3553main () 3554{ 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560if ac_fn_c_try_compile "$LINENO"; then : 3561 3562else 3563 ac_c_werror_flag=$ac_save_c_werror_flag 3564 CFLAGS="-g" 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567 3568int 3569main () 3570{ 3571 3572 ; 3573 return 0; 3574} 3575_ACEOF 3576if ac_fn_c_try_compile "$LINENO"; then : 3577 ac_cv_prog_cc_g=yes 3578fi 3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3580fi 3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3582fi 3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3584 ac_c_werror_flag=$ac_save_c_werror_flag 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3587$as_echo "$ac_cv_prog_cc_g" >&6; } 3588if test "$ac_test_CFLAGS" = set; then 3589 CFLAGS=$ac_save_CFLAGS 3590elif test $ac_cv_prog_cc_g = yes; then 3591 if test "$GCC" = yes; then 3592 CFLAGS="-g -O2" 3593 else 3594 CFLAGS="-g" 3595 fi 3596else 3597 if test "$GCC" = yes; then 3598 CFLAGS="-O2" 3599 else 3600 CFLAGS= 3601 fi 3602fi 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3605if ${ac_cv_prog_cc_c89+:} false; then : 3606 $as_echo_n "(cached) " >&6 3607else 3608 ac_cv_prog_cc_c89=no 3609ac_save_CC=$CC 3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612#include <stdarg.h> 3613#include <stdio.h> 3614struct stat; 3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3616struct buf { int x; }; 3617FILE * (*rcsopen) (struct buf *, struct stat *, int); 3618static char *e (p, i) 3619 char **p; 3620 int i; 3621{ 3622 return p[i]; 3623} 3624static char *f (char * (*g) (char **, int), char **p, ...) 3625{ 3626 char *s; 3627 va_list v; 3628 va_start (v,p); 3629 s = g (p, va_arg (v,int)); 3630 va_end (v); 3631 return s; 3632} 3633 3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3635 function prototypes and stuff, but not '\xHH' hex character constants. 3636 These don't provoke an error unfortunately, instead are silently treated 3637 as 'x'. The following induces an error, until -std is added to get 3638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3639 array size at least. It's necessary to write '\x00'==0 to get something 3640 that's true only with -std. */ 3641int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3642 3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3644 inside strings and character constants. */ 3645#define FOO(x) 'x' 3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3647 3648int test (int i, double x); 3649struct s1 {int (*f) (int a);}; 3650struct s2 {int (*f) (double a);}; 3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3652int argc; 3653char **argv; 3654int 3655main () 3656{ 3657return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3658 ; 3659 return 0; 3660} 3661_ACEOF 3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3663 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3664do 3665 CC="$ac_save_CC $ac_arg" 3666 if ac_fn_c_try_compile "$LINENO"; then : 3667 ac_cv_prog_cc_c89=$ac_arg 3668fi 3669rm -f core conftest.err conftest.$ac_objext 3670 test "x$ac_cv_prog_cc_c89" != "xno" && break 3671done 3672rm -f conftest.$ac_ext 3673CC=$ac_save_CC 3674 3675fi 3676# AC_CACHE_VAL 3677case "x$ac_cv_prog_cc_c89" in 3678 x) 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3680$as_echo "none needed" >&6; } ;; 3681 xno) 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3683$as_echo "unsupported" >&6; } ;; 3684 *) 3685 CC="$CC $ac_cv_prog_cc_c89" 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3688esac 3689if test "x$ac_cv_prog_cc_c89" != xno; then : 3690 3691fi 3692 3693ac_ext=c 3694ac_cpp='$CPP $CPPFLAGS' 3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3697ac_compiler_gnu=$ac_cv_c_compiler_gnu 3698 3699 3700ac_ext=c 3701ac_cpp='$CPP $CPPFLAGS' 3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3704ac_compiler_gnu=$ac_cv_c_compiler_gnu 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3706$as_echo_n "checking how to run the C preprocessor... " >&6; } 3707# On Suns, sometimes $CPP names a directory. 3708if test -n "$CPP" && test -d "$CPP"; then 3709 CPP= 3710fi 3711if test -z "$CPP"; then 3712 if ${ac_cv_prog_CPP+:} false; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 # Double quotes because CPP needs to be expanded 3716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3717 do 3718 ac_preproc_ok=false 3719for ac_c_preproc_warn_flag in '' yes 3720do 3721 # Use a header file that comes with gcc, so configuring glibc 3722 # with a fresh cross-compiler works. 3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3724 # <limits.h> exists even on freestanding compilers. 3725 # On the NeXT, cc -E runs the code through the compiler's parser, 3726 # not just through cpp. "Syntax error" is here to catch this case. 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729#ifdef __STDC__ 3730# include <limits.h> 3731#else 3732# include <assert.h> 3733#endif 3734 Syntax error 3735_ACEOF 3736if ac_fn_c_try_cpp "$LINENO"; then : 3737 3738else 3739 # Broken: fails on valid input. 3740continue 3741fi 3742rm -f conftest.err conftest.i conftest.$ac_ext 3743 3744 # OK, works on sane cases. Now check whether nonexistent headers 3745 # can be detected and how. 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748#include <ac_nonexistent.h> 3749_ACEOF 3750if ac_fn_c_try_cpp "$LINENO"; then : 3751 # Broken: success on invalid input. 3752continue 3753else 3754 # Passes both tests. 3755ac_preproc_ok=: 3756break 3757fi 3758rm -f conftest.err conftest.i conftest.$ac_ext 3759 3760done 3761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3762rm -f conftest.i conftest.err conftest.$ac_ext 3763if $ac_preproc_ok; then : 3764 break 3765fi 3766 3767 done 3768 ac_cv_prog_CPP=$CPP 3769 3770fi 3771 CPP=$ac_cv_prog_CPP 3772else 3773 ac_cv_prog_CPP=$CPP 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3776$as_echo "$CPP" >&6; } 3777ac_preproc_ok=false 3778for ac_c_preproc_warn_flag in '' yes 3779do 3780 # Use a header file that comes with gcc, so configuring glibc 3781 # with a fresh cross-compiler works. 3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3783 # <limits.h> exists even on freestanding compilers. 3784 # On the NeXT, cc -E runs the code through the compiler's parser, 3785 # not just through cpp. "Syntax error" is here to catch this case. 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#ifdef __STDC__ 3789# include <limits.h> 3790#else 3791# include <assert.h> 3792#endif 3793 Syntax error 3794_ACEOF 3795if ac_fn_c_try_cpp "$LINENO"; then : 3796 3797else 3798 # Broken: fails on valid input. 3799continue 3800fi 3801rm -f conftest.err conftest.i conftest.$ac_ext 3802 3803 # OK, works on sane cases. Now check whether nonexistent headers 3804 # can be detected and how. 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807#include <ac_nonexistent.h> 3808_ACEOF 3809if ac_fn_c_try_cpp "$LINENO"; then : 3810 # Broken: success on invalid input. 3811continue 3812else 3813 # Passes both tests. 3814ac_preproc_ok=: 3815break 3816fi 3817rm -f conftest.err conftest.i conftest.$ac_ext 3818 3819done 3820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3821rm -f conftest.i conftest.err conftest.$ac_ext 3822if $ac_preproc_ok; then : 3823 3824else 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3828See \`config.log' for more details" "$LINENO" 5; } 3829fi 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3839$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3840if ${ac_cv_path_GREP+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 if test -z "$GREP"; then 3844 ac_path_GREP_found=false 3845 # Loop through the user's path and test for each of PROGNAME-LIST 3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_prog in grep ggrep; do 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3854 as_fn_executable_p "$ac_path_GREP" || continue 3855# Check for GNU ac_path_GREP and select it if it is found. 3856 # Check for GNU $ac_path_GREP 3857case `"$ac_path_GREP" --version 2>&1` in 3858*GNU*) 3859 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3860*) 3861 ac_count=0 3862 $as_echo_n 0123456789 >"conftest.in" 3863 while : 3864 do 3865 cat "conftest.in" "conftest.in" >"conftest.tmp" 3866 mv "conftest.tmp" "conftest.in" 3867 cp "conftest.in" "conftest.nl" 3868 $as_echo 'GREP' >> "conftest.nl" 3869 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3871 as_fn_arith $ac_count + 1 && ac_count=$as_val 3872 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3873 # Best one so far, save it but keep looking for a better one 3874 ac_cv_path_GREP="$ac_path_GREP" 3875 ac_path_GREP_max=$ac_count 3876 fi 3877 # 10*(2^10) chars as input seems more than enough 3878 test $ac_count -gt 10 && break 3879 done 3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3881esac 3882 3883 $ac_path_GREP_found && break 3 3884 done 3885 done 3886 done 3887IFS=$as_save_IFS 3888 if test -z "$ac_cv_path_GREP"; then 3889 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3890 fi 3891else 3892 ac_cv_path_GREP=$GREP 3893fi 3894 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3897$as_echo "$ac_cv_path_GREP" >&6; } 3898 GREP="$ac_cv_path_GREP" 3899 3900 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3902$as_echo_n "checking for egrep... " >&6; } 3903if ${ac_cv_path_EGREP+:} false; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3907 then ac_cv_path_EGREP="$GREP -E" 3908 else 3909 if test -z "$EGREP"; then 3910 ac_path_EGREP_found=false 3911 # Loop through the user's path and test for each of PROGNAME-LIST 3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3914do 3915 IFS=$as_save_IFS 3916 test -z "$as_dir" && as_dir=. 3917 for ac_prog in egrep; do 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3920 as_fn_executable_p "$ac_path_EGREP" || continue 3921# Check for GNU ac_path_EGREP and select it if it is found. 3922 # Check for GNU $ac_path_EGREP 3923case `"$ac_path_EGREP" --version 2>&1` in 3924*GNU*) 3925 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3926*) 3927 ac_count=0 3928 $as_echo_n 0123456789 >"conftest.in" 3929 while : 3930 do 3931 cat "conftest.in" "conftest.in" >"conftest.tmp" 3932 mv "conftest.tmp" "conftest.in" 3933 cp "conftest.in" "conftest.nl" 3934 $as_echo 'EGREP' >> "conftest.nl" 3935 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3937 as_fn_arith $ac_count + 1 && ac_count=$as_val 3938 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3939 # Best one so far, save it but keep looking for a better one 3940 ac_cv_path_EGREP="$ac_path_EGREP" 3941 ac_path_EGREP_max=$ac_count 3942 fi 3943 # 10*(2^10) chars as input seems more than enough 3944 test $ac_count -gt 10 && break 3945 done 3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3947esac 3948 3949 $ac_path_EGREP_found && break 3 3950 done 3951 done 3952 done 3953IFS=$as_save_IFS 3954 if test -z "$ac_cv_path_EGREP"; then 3955 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3956 fi 3957else 3958 ac_cv_path_EGREP=$EGREP 3959fi 3960 3961 fi 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3964$as_echo "$ac_cv_path_EGREP" >&6; } 3965 EGREP="$ac_cv_path_EGREP" 3966 3967 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3969$as_echo_n "checking for ANSI C header files... " >&6; } 3970if ${ac_cv_header_stdc+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975#include <stdlib.h> 3976#include <stdarg.h> 3977#include <string.h> 3978#include <float.h> 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 ac_cv_header_stdc=yes 3990else 3991 ac_cv_header_stdc=no 3992fi 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3994 3995if test $ac_cv_header_stdc = yes; then 3996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999#include <string.h> 4000 4001_ACEOF 4002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4003 $EGREP "memchr" >/dev/null 2>&1; then : 4004 4005else 4006 ac_cv_header_stdc=no 4007fi 4008rm -f conftest* 4009 4010fi 4011 4012if test $ac_cv_header_stdc = yes; then 4013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016#include <stdlib.h> 4017 4018_ACEOF 4019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4020 $EGREP "free" >/dev/null 2>&1; then : 4021 4022else 4023 ac_cv_header_stdc=no 4024fi 4025rm -f conftest* 4026 4027fi 4028 4029if test $ac_cv_header_stdc = yes; then 4030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4031 if test "$cross_compiling" = yes; then : 4032 : 4033else 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <ctype.h> 4037#include <stdlib.h> 4038#if ((' ' & 0x0FF) == 0x020) 4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4041#else 4042# define ISLOWER(c) \ 4043 (('a' <= (c) && (c) <= 'i') \ 4044 || ('j' <= (c) && (c) <= 'r') \ 4045 || ('s' <= (c) && (c) <= 'z')) 4046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4047#endif 4048 4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4050int 4051main () 4052{ 4053 int i; 4054 for (i = 0; i < 256; i++) 4055 if (XOR (islower (i), ISLOWER (i)) 4056 || toupper (i) != TOUPPER (i)) 4057 return 2; 4058 return 0; 4059} 4060_ACEOF 4061if ac_fn_c_try_run "$LINENO"; then : 4062 4063else 4064 ac_cv_header_stdc=no 4065fi 4066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4067 conftest.$ac_objext conftest.beam conftest.$ac_ext 4068fi 4069 4070fi 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4073$as_echo "$ac_cv_header_stdc" >&6; } 4074if test $ac_cv_header_stdc = yes; then 4075 4076$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4077 4078fi 4079 4080# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4081for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4082 inttypes.h stdint.h unistd.h 4083do : 4084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4085ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4086" 4087if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4088 cat >>confdefs.h <<_ACEOF 4089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4090_ACEOF 4091 4092fi 4093 4094done 4095 4096 4097 4098 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4099if test "x$ac_cv_header_minix_config_h" = xyes; then : 4100 MINIX=yes 4101else 4102 MINIX= 4103fi 4104 4105 4106 if test "$MINIX" = yes; then 4107 4108$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4109 4110 4111$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4112 4113 4114$as_echo "#define _MINIX 1" >>confdefs.h 4115 4116 fi 4117 4118 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4120$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4121if ${ac_cv_safe_to_define___extensions__+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125/* end confdefs.h. */ 4126 4127# define __EXTENSIONS__ 1 4128 $ac_includes_default 4129int 4130main () 4131{ 4132 4133 ; 4134 return 0; 4135} 4136_ACEOF 4137if ac_fn_c_try_compile "$LINENO"; then : 4138 ac_cv_safe_to_define___extensions__=yes 4139else 4140 ac_cv_safe_to_define___extensions__=no 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4145$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4146 test $ac_cv_safe_to_define___extensions__ = yes && 4147 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4148 4149 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4150 4151 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4152 4153 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4154 4155 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4156 4157 4158 4159if test "$ac_cv_header_minix_config_h" = "yes"; then 4160 4161$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4162 4163fi 4164 4165case "$prefix" in 4166 NONE) 4167 prefix="/usr/local" 4168 ;; 4169esac 4170 4171# are we on MinGW? 4172if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4173else 4174 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" 4175 else on_mingw="no"; fi 4176fi 4177 4178# 4179# Determine configuration file 4180# the eval is to evaluate shell expansion twice 4181if test $on_mingw = "no"; then 4182 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4183else 4184 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4185fi 4186 4187# Check whether --with-conf_file was given. 4188if test "${with_conf_file+set}" = set; then : 4189 withval=$with_conf_file; ub_conf_file="$withval" 4190fi 4191 4192 4193hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4194 4195 4196cat >>confdefs.h <<_ACEOF 4197#define CONFIGFILE "$hdr_config" 4198_ACEOF 4199 4200 4201# Determine run, chroot directory and pidfile locations 4202 4203# Check whether --with-run-dir was given. 4204if test "${with_run_dir+set}" = set; then : 4205 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4206else 4207 if test $on_mingw = no; then 4208 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4209else 4210 UNBOUND_RUN_DIR="" 4211fi 4212 4213fi 4214 4215 4216hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4217 4218 4219cat >>confdefs.h <<_ACEOF 4220#define RUN_DIR "$hdr_run" 4221_ACEOF 4222 4223 4224 4225# Check whether --with-chroot-dir was given. 4226if test "${with_chroot_dir+set}" = set; then : 4227 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4228else 4229 if test $on_mingw = no; then 4230 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4231else 4232 UNBOUND_CHROOT_DIR="" 4233fi 4234 4235fi 4236 4237 4238hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4239 4240 4241cat >>confdefs.h <<_ACEOF 4242#define CHROOT_DIR "$hdr_chroot" 4243_ACEOF 4244 4245 4246 4247# Check whether --with-share-dir was given. 4248if test "${with_share_dir+set}" = set; then : 4249 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4250else 4251 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4252fi 4253 4254 4255 4256cat >>confdefs.h <<_ACEOF 4257#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4258_ACEOF 4259 4260 4261 4262# Check whether --with-pidfile was given. 4263if test "${with_pidfile+set}" = set; then : 4264 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4265else 4266 if test $on_mingw = no; then 4267 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4268else 4269 UNBOUND_PIDFILE="" 4270fi 4271 4272fi 4273 4274 4275hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4276 4277 4278cat >>confdefs.h <<_ACEOF 4279#define PIDFILE "$hdr_pid" 4280_ACEOF 4281 4282 4283 4284# Check whether --with-rootkey-file was given. 4285if test "${with_rootkey_file+set}" = set; then : 4286 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4287else 4288 if test $on_mingw = no; then 4289 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4290else 4291 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4292fi 4293 4294fi 4295 4296 4297hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4298 4299 4300cat >>confdefs.h <<_ACEOF 4301#define ROOT_ANCHOR_FILE "$hdr_rkey" 4302_ACEOF 4303 4304 4305 4306# Check whether --with-rootcert-file was given. 4307if test "${with_rootcert_file+set}" = set; then : 4308 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4309else 4310 if test $on_mingw = no; then 4311 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4312else 4313 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4314fi 4315 4316fi 4317 4318 4319hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4320 4321 4322cat >>confdefs.h <<_ACEOF 4323#define ROOT_CERT_FILE "$hdr_rpem" 4324_ACEOF 4325 4326 4327 4328# Check whether --with-username was given. 4329if test "${with_username+set}" = set; then : 4330 withval=$with_username; UNBOUND_USERNAME="$withval" 4331else 4332 UNBOUND_USERNAME="unbound" 4333fi 4334 4335 4336 4337cat >>confdefs.h <<_ACEOF 4338#define UB_USERNAME "$UNBOUND_USERNAME" 4339_ACEOF 4340 4341 4342 4343$as_echo "#define WINVER 0x0502" >>confdefs.h 4344 4345wnvs=`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/' ` 4346 4347 4348cat >>confdefs.h <<_ACEOF 4349#define RSRC_PACKAGE_VERSION $wnvs 4350_ACEOF 4351 4352 4353# Checks for typedefs, structures, and compiler characteristics. 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4355$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4356if ${ac_cv_c_const+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360/* end confdefs.h. */ 4361 4362int 4363main () 4364{ 4365 4366#ifndef __cplusplus 4367 /* Ultrix mips cc rejects this sort of thing. */ 4368 typedef int charset[2]; 4369 const charset cs = { 0, 0 }; 4370 /* SunOS 4.1.1 cc rejects this. */ 4371 char const *const *pcpcc; 4372 char **ppc; 4373 /* NEC SVR4.0.2 mips cc rejects this. */ 4374 struct point {int x, y;}; 4375 static struct point const zero = {0,0}; 4376 /* AIX XL C 1.02.0.0 rejects this. 4377 It does not let you subtract one const X* pointer from another in 4378 an arm of an if-expression whose if-part is not a constant 4379 expression */ 4380 const char *g = "string"; 4381 pcpcc = &g + (g ? g-g : 0); 4382 /* HPUX 7.0 cc rejects these. */ 4383 ++pcpcc; 4384 ppc = (char**) pcpcc; 4385 pcpcc = (char const *const *) ppc; 4386 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4387 char tx; 4388 char *t = &tx; 4389 char const *s = 0 ? (char *) 0 : (char const *) 0; 4390 4391 *t++ = 0; 4392 if (s) return 0; 4393 } 4394 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4395 int x[] = {25, 17}; 4396 const int *foo = &x[0]; 4397 ++foo; 4398 } 4399 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4400 typedef const int *iptr; 4401 iptr p = 0; 4402 ++p; 4403 } 4404 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4405 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4406 struct s { int j; const int *ap[3]; } bx; 4407 struct s *b = &bx; b->j = 5; 4408 } 4409 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4410 const int foo = 10; 4411 if (!foo) return 0; 4412 } 4413 return !cs[0] && !zero.x; 4414#endif 4415 4416 ; 4417 return 0; 4418} 4419_ACEOF 4420if ac_fn_c_try_compile "$LINENO"; then : 4421 ac_cv_c_const=yes 4422else 4423 ac_cv_c_const=no 4424fi 4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4428$as_echo "$ac_cv_c_const" >&6; } 4429if test $ac_cv_c_const = no; then 4430 4431$as_echo "#define const /**/" >>confdefs.h 4432 4433fi 4434 4435ac_ext=c 4436ac_cpp='$CPP $CPPFLAGS' 4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4439ac_compiler_gnu=$ac_cv_c_compiler_gnu 4440 4441# allow user to override the -g -O2 flags. 4442if test "x$CFLAGS" = "x" ; then 4443 4444 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4446$as_echo_n "checking whether $CC supports -g... " >&6; } 4447cache=`echo g | sed 'y%.=/+-%___p_%'` 4448if eval \${cv_prog_cc_flag_$cache+:} false; then : 4449 $as_echo_n "(cached) " >&6 4450else 4451 4452echo 'void f(void){}' >conftest.c 4453if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4454eval "cv_prog_cc_flag_$cache=yes" 4455else 4456eval "cv_prog_cc_flag_$cache=no" 4457fi 4458rm -f conftest conftest.o conftest.c 4459 4460fi 4461 4462if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4464$as_echo "yes" >&6; } 4465: 4466CFLAGS="$CFLAGS -g" 4467else 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4469$as_echo "no" >&6; } 4470: 4471 4472fi 4473 4474 4475 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4477$as_echo_n "checking whether $CC supports -O2... " >&6; } 4478cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4479if eval \${cv_prog_cc_flag_$cache+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 4483echo 'void f(void){}' >conftest.c 4484if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4485eval "cv_prog_cc_flag_$cache=yes" 4486else 4487eval "cv_prog_cc_flag_$cache=no" 4488fi 4489rm -f conftest conftest.o conftest.c 4490 4491fi 4492 4493if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4495$as_echo "yes" >&6; } 4496: 4497CFLAGS="$CFLAGS -O2" 4498else 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4500$as_echo "no" >&6; } 4501: 4502 4503fi 4504 4505fi 4506ac_ext=c 4507ac_cpp='$CPP $CPPFLAGS' 4508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4510ac_compiler_gnu=$ac_cv_c_compiler_gnu 4511if test -n "$ac_tool_prefix"; then 4512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4513set dummy ${ac_tool_prefix}gcc; ac_word=$2 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4515$as_echo_n "checking for $ac_word... " >&6; } 4516if ${ac_cv_prog_CC+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 if test -n "$CC"; then 4520 ac_cv_prog_CC="$CC" # Let the user override the test. 4521else 4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4523for as_dir in $PATH 4524do 4525 IFS=$as_save_IFS 4526 test -z "$as_dir" && as_dir=. 4527 for ac_exec_ext in '' $ac_executable_extensions; do 4528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4529 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4531 break 2 4532 fi 4533done 4534 done 4535IFS=$as_save_IFS 4536 4537fi 4538fi 4539CC=$ac_cv_prog_CC 4540if test -n "$CC"; then 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4542$as_echo "$CC" >&6; } 4543else 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4545$as_echo "no" >&6; } 4546fi 4547 4548 4549fi 4550if test -z "$ac_cv_prog_CC"; then 4551 ac_ct_CC=$CC 4552 # Extract the first word of "gcc", so it can be a program name with args. 4553set dummy gcc; ac_word=$2 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4555$as_echo_n "checking for $ac_word... " >&6; } 4556if ${ac_cv_prog_ac_ct_CC+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test -n "$ac_ct_CC"; then 4560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4561else 4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4569 ac_cv_prog_ac_ct_CC="gcc" 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574 done 4575IFS=$as_save_IFS 4576 4577fi 4578fi 4579ac_ct_CC=$ac_cv_prog_ac_ct_CC 4580if test -n "$ac_ct_CC"; then 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4582$as_echo "$ac_ct_CC" >&6; } 4583else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586fi 4587 4588 if test "x$ac_ct_CC" = x; then 4589 CC="" 4590 else 4591 case $cross_compiling:$ac_tool_warned in 4592yes:) 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4595ac_tool_warned=yes ;; 4596esac 4597 CC=$ac_ct_CC 4598 fi 4599else 4600 CC="$ac_cv_prog_CC" 4601fi 4602 4603if test -z "$CC"; then 4604 if test -n "$ac_tool_prefix"; then 4605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4606set dummy ${ac_tool_prefix}cc; ac_word=$2 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4608$as_echo_n "checking for $ac_word... " >&6; } 4609if ${ac_cv_prog_CC+:} false; then : 4610 $as_echo_n "(cached) " >&6 4611else 4612 if test -n "$CC"; then 4613 ac_cv_prog_CC="$CC" # Let the user override the test. 4614else 4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4616for as_dir in $PATH 4617do 4618 IFS=$as_save_IFS 4619 test -z "$as_dir" && as_dir=. 4620 for ac_exec_ext in '' $ac_executable_extensions; do 4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4622 ac_cv_prog_CC="${ac_tool_prefix}cc" 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4624 break 2 4625 fi 4626done 4627 done 4628IFS=$as_save_IFS 4629 4630fi 4631fi 4632CC=$ac_cv_prog_CC 4633if test -n "$CC"; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4635$as_echo "$CC" >&6; } 4636else 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4638$as_echo "no" >&6; } 4639fi 4640 4641 4642 fi 4643fi 4644if test -z "$CC"; then 4645 # Extract the first word of "cc", so it can be a program name with args. 4646set dummy cc; ac_word=$2 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4648$as_echo_n "checking for $ac_word... " >&6; } 4649if ${ac_cv_prog_CC+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if test -n "$CC"; then 4653 ac_cv_prog_CC="$CC" # Let the user override the test. 4654else 4655 ac_prog_rejected=no 4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4657for as_dir in $PATH 4658do 4659 IFS=$as_save_IFS 4660 test -z "$as_dir" && as_dir=. 4661 for ac_exec_ext in '' $ac_executable_extensions; do 4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4664 ac_prog_rejected=yes 4665 continue 4666 fi 4667 ac_cv_prog_CC="cc" 4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4669 break 2 4670 fi 4671done 4672 done 4673IFS=$as_save_IFS 4674 4675if test $ac_prog_rejected = yes; then 4676 # We found a bogon in the path, so make sure we never use it. 4677 set dummy $ac_cv_prog_CC 4678 shift 4679 if test $# != 0; then 4680 # We chose a different compiler from the bogus one. 4681 # However, it has the same basename, so the bogon will be chosen 4682 # first if we set CC to just the basename; use the full file name. 4683 shift 4684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4685 fi 4686fi 4687fi 4688fi 4689CC=$ac_cv_prog_CC 4690if test -n "$CC"; then 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4692$as_echo "$CC" >&6; } 4693else 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695$as_echo "no" >&6; } 4696fi 4697 4698 4699fi 4700if test -z "$CC"; then 4701 if test -n "$ac_tool_prefix"; then 4702 for ac_prog in cl.exe 4703 do 4704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4705set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4707$as_echo_n "checking for $ac_word... " >&6; } 4708if ${ac_cv_prog_CC+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 if test -n "$CC"; then 4712 ac_cv_prog_CC="$CC" # Let the user override the test. 4713else 4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_exec_ext in '' $ac_executable_extensions; do 4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4723 break 2 4724 fi 4725done 4726 done 4727IFS=$as_save_IFS 4728 4729fi 4730fi 4731CC=$ac_cv_prog_CC 4732if test -n "$CC"; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4734$as_echo "$CC" >&6; } 4735else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737$as_echo "no" >&6; } 4738fi 4739 4740 4741 test -n "$CC" && break 4742 done 4743fi 4744if test -z "$CC"; then 4745 ac_ct_CC=$CC 4746 for ac_prog in cl.exe 4747do 4748 # Extract the first word of "$ac_prog", so it can be a program name with args. 4749set dummy $ac_prog; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if ${ac_cv_prog_ac_ct_CC+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -n "$ac_ct_CC"; then 4756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4757else 4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4765 ac_cv_prog_ac_ct_CC="$ac_prog" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775ac_ct_CC=$ac_cv_prog_ac_ct_CC 4776if test -n "$ac_ct_CC"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4778$as_echo "$ac_ct_CC" >&6; } 4779else 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782fi 4783 4784 4785 test -n "$ac_ct_CC" && break 4786done 4787 4788 if test "x$ac_ct_CC" = x; then 4789 CC="" 4790 else 4791 case $cross_compiling:$ac_tool_warned in 4792yes:) 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4795ac_tool_warned=yes ;; 4796esac 4797 CC=$ac_ct_CC 4798 fi 4799fi 4800 4801fi 4802 4803 4804test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4806as_fn_error $? "no acceptable C compiler found in \$PATH 4807See \`config.log' for more details" "$LINENO" 5; } 4808 4809# Provide some information about the compiler. 4810$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4811set X $ac_compile 4812ac_compiler=$2 4813for ac_option in --version -v -V -qversion; do 4814 { { ac_try="$ac_compiler $ac_option >&5" 4815case "(($ac_try" in 4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4817 *) ac_try_echo=$ac_try;; 4818esac 4819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4820$as_echo "$ac_try_echo"; } >&5 4821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4822 ac_status=$? 4823 if test -s conftest.err; then 4824 sed '10a\ 4825... rest of stderr output deleted ... 4826 10q' conftest.err >conftest.er1 4827 cat conftest.er1 >&5 4828 fi 4829 rm -f conftest.er1 conftest.err 4830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4831 test $ac_status = 0; } 4832done 4833 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4835$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4836if ${ac_cv_c_compiler_gnu+:} false; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841 4842int 4843main () 4844{ 4845#ifndef __GNUC__ 4846 choke me 4847#endif 4848 4849 ; 4850 return 0; 4851} 4852_ACEOF 4853if ac_fn_c_try_compile "$LINENO"; then : 4854 ac_compiler_gnu=yes 4855else 4856 ac_compiler_gnu=no 4857fi 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4859ac_cv_c_compiler_gnu=$ac_compiler_gnu 4860 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4863$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4864if test $ac_compiler_gnu = yes; then 4865 GCC=yes 4866else 4867 GCC= 4868fi 4869ac_test_CFLAGS=${CFLAGS+set} 4870ac_save_CFLAGS=$CFLAGS 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4872$as_echo_n "checking whether $CC accepts -g... " >&6; } 4873if ${ac_cv_prog_cc_g+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 ac_save_c_werror_flag=$ac_c_werror_flag 4877 ac_c_werror_flag=yes 4878 ac_cv_prog_cc_g=no 4879 CFLAGS="-g" 4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4881/* end confdefs.h. */ 4882 4883int 4884main () 4885{ 4886 4887 ; 4888 return 0; 4889} 4890_ACEOF 4891if ac_fn_c_try_compile "$LINENO"; then : 4892 ac_cv_prog_cc_g=yes 4893else 4894 CFLAGS="" 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897 4898int 4899main () 4900{ 4901 4902 ; 4903 return 0; 4904} 4905_ACEOF 4906if ac_fn_c_try_compile "$LINENO"; then : 4907 4908else 4909 ac_c_werror_flag=$ac_save_c_werror_flag 4910 CFLAGS="-g" 4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912/* end confdefs.h. */ 4913 4914int 4915main () 4916{ 4917 4918 ; 4919 return 0; 4920} 4921_ACEOF 4922if ac_fn_c_try_compile "$LINENO"; then : 4923 ac_cv_prog_cc_g=yes 4924fi 4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4926fi 4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4928fi 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4930 ac_c_werror_flag=$ac_save_c_werror_flag 4931fi 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4933$as_echo "$ac_cv_prog_cc_g" >&6; } 4934if test "$ac_test_CFLAGS" = set; then 4935 CFLAGS=$ac_save_CFLAGS 4936elif test $ac_cv_prog_cc_g = yes; then 4937 if test "$GCC" = yes; then 4938 CFLAGS="-g -O2" 4939 else 4940 CFLAGS="-g" 4941 fi 4942else 4943 if test "$GCC" = yes; then 4944 CFLAGS="-O2" 4945 else 4946 CFLAGS= 4947 fi 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4950$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4951if ${ac_cv_prog_cc_c89+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 ac_cv_prog_cc_c89=no 4955ac_save_CC=$CC 4956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958#include <stdarg.h> 4959#include <stdio.h> 4960struct stat; 4961/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4962struct buf { int x; }; 4963FILE * (*rcsopen) (struct buf *, struct stat *, int); 4964static char *e (p, i) 4965 char **p; 4966 int i; 4967{ 4968 return p[i]; 4969} 4970static char *f (char * (*g) (char **, int), char **p, ...) 4971{ 4972 char *s; 4973 va_list v; 4974 va_start (v,p); 4975 s = g (p, va_arg (v,int)); 4976 va_end (v); 4977 return s; 4978} 4979 4980/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4981 function prototypes and stuff, but not '\xHH' hex character constants. 4982 These don't provoke an error unfortunately, instead are silently treated 4983 as 'x'. The following induces an error, until -std is added to get 4984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4985 array size at least. It's necessary to write '\x00'==0 to get something 4986 that's true only with -std. */ 4987int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4988 4989/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4990 inside strings and character constants. */ 4991#define FOO(x) 'x' 4992int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4993 4994int test (int i, double x); 4995struct s1 {int (*f) (int a);}; 4996struct s2 {int (*f) (double a);}; 4997int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4998int argc; 4999char **argv; 5000int 5001main () 5002{ 5003return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5004 ; 5005 return 0; 5006} 5007_ACEOF 5008for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5010do 5011 CC="$ac_save_CC $ac_arg" 5012 if ac_fn_c_try_compile "$LINENO"; then : 5013 ac_cv_prog_cc_c89=$ac_arg 5014fi 5015rm -f core conftest.err conftest.$ac_objext 5016 test "x$ac_cv_prog_cc_c89" != "xno" && break 5017done 5018rm -f conftest.$ac_ext 5019CC=$ac_save_CC 5020 5021fi 5022# AC_CACHE_VAL 5023case "x$ac_cv_prog_cc_c89" in 5024 x) 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5026$as_echo "none needed" >&6; } ;; 5027 xno) 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5029$as_echo "unsupported" >&6; } ;; 5030 *) 5031 CC="$CC $ac_cv_prog_cc_c89" 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5033$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5034esac 5035if test "x$ac_cv_prog_cc_c89" != xno; then : 5036 5037fi 5038 5039ac_ext=c 5040ac_cpp='$CPP $CPPFLAGS' 5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5043ac_compiler_gnu=$ac_cv_c_compiler_gnu 5044 5045 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5047$as_echo_n "checking $CC dependency flag... " >&6; } 5048echo 'void f(){}' >conftest.c 5049if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5050 DEPFLAG="-MM" 5051else 5052 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5053 DEPFLAG="-xM1" 5054 else 5055 DEPFLAG="-MM" # dunno do something 5056 fi 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5059$as_echo "$DEPFLAG" >&6; } 5060rm -f conftest.c 5061 5062 5063 5064 5065 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5067$as_echo_n "checking whether $CC supports -Werror... " >&6; } 5068cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5069if eval \${cv_prog_cc_flag_$cache+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 5073echo 'void f(void){}' >conftest.c 5074if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5075eval "cv_prog_cc_flag_$cache=yes" 5076else 5077eval "cv_prog_cc_flag_$cache=no" 5078fi 5079rm -f conftest conftest.o conftest.c 5080 5081fi 5082 5083if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5085$as_echo "yes" >&6; } 5086: 5087ERRFLAG="-Werror" 5088else 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5090$as_echo "no" >&6; } 5091: 5092ERRFLAG="-errwarn" 5093fi 5094 5095 5096 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5098$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5099cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5100if eval \${cv_prog_cc_flag_$cache+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 5104echo 'void f(void){}' >conftest.c 5105if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5106eval "cv_prog_cc_flag_$cache=yes" 5107else 5108eval "cv_prog_cc_flag_$cache=no" 5109fi 5110rm -f conftest conftest.o conftest.c 5111 5112fi 5113 5114if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5116$as_echo "yes" >&6; } 5117: 5118ERRFLAG="$ERRFLAG -Wall" 5119else 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5121$as_echo "no" >&6; } 5122: 5123ERRFLAG="$ERRFLAG -errfmt" 5124fi 5125 5126 5127 5128 5129 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5131$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5132cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5133if eval \${cv_prog_cc_flag_$cache+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 5137echo 'void f(void){}' >conftest.c 5138if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5139eval "cv_prog_cc_flag_$cache=yes" 5140else 5141eval "cv_prog_cc_flag_$cache=no" 5142fi 5143rm -f conftest conftest.o conftest.c 5144 5145fi 5146 5147if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5149$as_echo "yes" >&6; } 5150: 5151C99FLAG="-std=c99" 5152else 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5154$as_echo "no" >&6; } 5155: 5156 5157fi 5158 5159 5160 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5162$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5163cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5164if eval \${cv_prog_cc_flag_$cache+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 5168echo 'void f(void){}' >conftest.c 5169if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5170eval "cv_prog_cc_flag_$cache=yes" 5171else 5172eval "cv_prog_cc_flag_$cache=no" 5173fi 5174rm -f conftest conftest.o conftest.c 5175 5176fi 5177 5178if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5180$as_echo "yes" >&6; } 5181: 5182C99FLAG="-xc99" 5183else 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5185$as_echo "no" >&6; } 5186: 5187 5188fi 5189 5190 5191for ac_header in getopt.h time.h 5192do : 5193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5194ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5195" 5196if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5197 cat >>confdefs.h <<_ACEOF 5198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5199_ACEOF 5200 5201fi 5202 5203done 5204 5205 5206 5207 5208 5209{ $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 5210$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; } 5211cache=`$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` 5212if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 5216echo ' 5217#include "confdefs.h" 5218#include <stdlib.h> 5219#include <ctype.h> 5220#include <sys/time.h> 5221#ifdef HAVE_TIME_H 5222#include <time.h> 5223#endif 5224#include <unistd.h> 5225#include <netdb.h> 5226#ifdef HAVE_GETOPT_H 5227#include <getopt.h> 5228#endif 5229 5230int test() { 5231 int a; 5232 char **opts = NULL; 5233 struct timeval tv; 5234 char *t; 5235 time_t time = 0; 5236 char *buf = NULL; 5237 const char* str = NULL; 5238 struct msghdr msg; 5239 msg.msg_control = 0; 5240 t = ctime_r(&time, buf); 5241 tv.tv_usec = 10; 5242 srandom(32); 5243 a = getopt(2, opts, "a"); 5244 a = isascii(32); 5245 str = gai_strerror(0); 5246 if(str && t && tv.tv_usec && msg.msg_control) 5247 a = 0; 5248 return a; 5249} 5250' > conftest.c 5251echo 'void f(){}' >>conftest.c 5252if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5253eval "cv_prog_cc_flag_needed_$cache=no" 5254else 5255 5256if 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 5257eval "cv_prog_cc_flag_needed_$cache=yes" 5258else 5259eval "cv_prog_cc_flag_needed_$cache=fail" 5260#echo 'Test with flag fails too!' 5261#cat conftest.c 5262#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" 5263#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` 5264#exit 1 5265fi 5266 5267fi 5268rm -f conftest conftest.c conftest.o 5269 5270fi 5271 5272if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5274$as_echo "yes" >&6; } 5275: 5276CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5277else 5278if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281#echo 'Test with flag is no!' 5282#cat conftest.c 5283#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" 5284#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` 5285#exit 1 5286: 5287 5288else 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5290$as_echo "failed" >&6; } 5291: 5292 5293fi 5294fi 5295 5296 5297 5298 5299 5300{ $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 5301$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; } 5302cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5303if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 5307echo ' 5308#include "confdefs.h" 5309#include <stdlib.h> 5310#include <ctype.h> 5311#include <sys/time.h> 5312#ifdef HAVE_TIME_H 5313#include <time.h> 5314#endif 5315#include <unistd.h> 5316#include <netdb.h> 5317#ifdef HAVE_GETOPT_H 5318#include <getopt.h> 5319#endif 5320 5321int test() { 5322 int a; 5323 char **opts = NULL; 5324 struct timeval tv; 5325 char *t; 5326 time_t time = 0; 5327 char *buf = NULL; 5328 const char* str = NULL; 5329 struct msghdr msg; 5330 msg.msg_control = 0; 5331 t = ctime_r(&time, buf); 5332 tv.tv_usec = 10; 5333 srandom(32); 5334 a = getopt(2, opts, "a"); 5335 a = isascii(32); 5336 str = gai_strerror(0); 5337 if(str && t && tv.tv_usec && msg.msg_control) 5338 a = 0; 5339 return a; 5340} 5341' > conftest.c 5342echo 'void f(){}' >>conftest.c 5343if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5344eval "cv_prog_cc_flag_needed_$cache=no" 5345else 5346 5347if 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 5348eval "cv_prog_cc_flag_needed_$cache=yes" 5349else 5350eval "cv_prog_cc_flag_needed_$cache=fail" 5351#echo 'Test with flag fails too!' 5352#cat conftest.c 5353#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" 5354#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` 5355#exit 1 5356fi 5357 5358fi 5359rm -f conftest conftest.c conftest.o 5360 5361fi 5362 5363if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5365$as_echo "yes" >&6; } 5366: 5367CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5368else 5369if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5371$as_echo "no" >&6; } 5372#echo 'Test with flag is no!' 5373#cat conftest.c 5374#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" 5375#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` 5376#exit 1 5377: 5378 5379else 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5381$as_echo "failed" >&6; } 5382: 5383 5384fi 5385fi 5386 5387 5388 5389 5390 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5392$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5393cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5394if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 5398echo ' 5399#include <stdbool.h> 5400#include <ctype.h> 5401int test() { 5402 int a = 0; 5403 return a; 5404} 5405' > conftest.c 5406echo 'void f(){}' >>conftest.c 5407if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5408eval "cv_prog_cc_flag_needed_$cache=no" 5409else 5410 5411if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5412eval "cv_prog_cc_flag_needed_$cache=yes" 5413else 5414eval "cv_prog_cc_flag_needed_$cache=fail" 5415#echo 'Test with flag fails too!' 5416#cat conftest.c 5417#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5418#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5419#exit 1 5420fi 5421 5422fi 5423rm -f conftest conftest.c conftest.o 5424 5425fi 5426 5427if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5429$as_echo "yes" >&6; } 5430: 5431CFLAGS="$CFLAGS $C99FLAG" 5432else 5433if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436#echo 'Test with flag is no!' 5437#cat conftest.c 5438#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5439#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5440#exit 1 5441: 5442 5443else 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5445$as_echo "failed" >&6; } 5446: 5447 5448fi 5449fi 5450 5451 5452 5453 5454 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5456$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5457cache=_D_BSD_SOURCE 5458if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 5462echo ' 5463#include <ctype.h> 5464 5465int test() { 5466 int a; 5467 a = isascii(32); 5468 return a; 5469} 5470' > conftest.c 5471echo 'void f(){}' >>conftest.c 5472if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5473eval "cv_prog_cc_flag_needed_$cache=no" 5474else 5475 5476if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5477eval "cv_prog_cc_flag_needed_$cache=yes" 5478else 5479eval "cv_prog_cc_flag_needed_$cache=fail" 5480#echo 'Test with flag fails too!' 5481#cat conftest.c 5482#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5483#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5484#exit 1 5485fi 5486 5487fi 5488rm -f conftest conftest.c conftest.o 5489 5490fi 5491 5492if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5494$as_echo "yes" >&6; } 5495: 5496CFLAGS="$CFLAGS -D_BSD_SOURCE" 5497else 5498if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5500$as_echo "no" >&6; } 5501#echo 'Test with flag is no!' 5502#cat conftest.c 5503#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5504#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5505#exit 1 5506: 5507 5508else 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5510$as_echo "failed" >&6; } 5511: 5512 5513fi 5514fi 5515 5516 5517 5518 5519 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5521$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5522cache=_D_GNU_SOURCE 5523if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 5527echo ' 5528#include <netinet/in.h> 5529 5530int test() { 5531 struct in6_pktinfo inf; 5532 int a = (int)sizeof(inf); 5533 return a; 5534} 5535' > conftest.c 5536echo 'void f(){}' >>conftest.c 5537if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5538eval "cv_prog_cc_flag_needed_$cache=no" 5539else 5540 5541if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5542eval "cv_prog_cc_flag_needed_$cache=yes" 5543else 5544eval "cv_prog_cc_flag_needed_$cache=fail" 5545#echo 'Test with flag fails too!' 5546#cat conftest.c 5547#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5548#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5549#exit 1 5550fi 5551 5552fi 5553rm -f conftest conftest.c conftest.o 5554 5555fi 5556 5557if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5559$as_echo "yes" >&6; } 5560: 5561CFLAGS="$CFLAGS -D_GNU_SOURCE" 5562else 5563if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5565$as_echo "no" >&6; } 5566#echo 'Test with flag is no!' 5567#cat conftest.c 5568#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5569#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5570#exit 1 5571: 5572 5573else 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5575$as_echo "failed" >&6; } 5576: 5577 5578fi 5579fi 5580 5581 5582# check again for GNU_SOURCE for setresgid. May fail if setresgid 5583# is not available at all. -D_FRSRESGID is to make this check unique. 5584# otherwise we would get the previous cached result. 5585 5586 5587 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5589$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5590cache=_D_GNU_SOURCE__D_FRSRESGID 5591if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 5595echo ' 5596#include <unistd.h> 5597 5598int test() { 5599 int a = setresgid(0,0,0); 5600 a = setresuid(0,0,0); 5601 return a; 5602} 5603' > conftest.c 5604echo 'void f(){}' >>conftest.c 5605if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5606eval "cv_prog_cc_flag_needed_$cache=no" 5607else 5608 5609if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5610eval "cv_prog_cc_flag_needed_$cache=yes" 5611else 5612eval "cv_prog_cc_flag_needed_$cache=fail" 5613#echo 'Test with flag fails too!' 5614#cat conftest.c 5615#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5616#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5617#exit 1 5618fi 5619 5620fi 5621rm -f conftest conftest.c conftest.o 5622 5623fi 5624 5625if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5627$as_echo "yes" >&6; } 5628: 5629CFLAGS="$CFLAGS -D_GNU_SOURCE" 5630else 5631if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633$as_echo "no" >&6; } 5634#echo 'Test with flag is no!' 5635#cat conftest.c 5636#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5637#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5638#exit 1 5639: 5640 5641else 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5643$as_echo "failed" >&6; } 5644: 5645 5646fi 5647fi 5648 5649 5650 5651 5652 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5654$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5655cache=_D_POSIX_C_SOURCE_200112 5656if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 5660echo ' 5661#include "confdefs.h" 5662#ifdef HAVE_TIME_H 5663#include <time.h> 5664#endif 5665#include <netdb.h> 5666 5667int test() { 5668 int a = 0; 5669 char *t; 5670 time_t time = 0; 5671 char *buf = NULL; 5672 const char* str = NULL; 5673 t = ctime_r(&time, buf); 5674 str = gai_strerror(0); 5675 if(t && str) 5676 a = 0; 5677 return a; 5678} 5679' > conftest.c 5680echo 'void f(){}' >>conftest.c 5681if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5682eval "cv_prog_cc_flag_needed_$cache=no" 5683else 5684 5685if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5686eval "cv_prog_cc_flag_needed_$cache=yes" 5687else 5688eval "cv_prog_cc_flag_needed_$cache=fail" 5689#echo 'Test with flag fails too!' 5690#cat conftest.c 5691#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5692#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5693#exit 1 5694fi 5695 5696fi 5697rm -f conftest conftest.c conftest.o 5698 5699fi 5700 5701if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5703$as_echo "yes" >&6; } 5704: 5705CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5706else 5707if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5709$as_echo "no" >&6; } 5710#echo 'Test with flag is no!' 5711#cat conftest.c 5712#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5713#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5714#exit 1 5715: 5716 5717else 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5719$as_echo "failed" >&6; } 5720: 5721 5722fi 5723fi 5724 5725 5726 5727 5728 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5730$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5731cache=_D__EXTENSIONS__ 5732if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 5736echo ' 5737#include "confdefs.h" 5738#include <stdlib.h> 5739#include <ctype.h> 5740#include <sys/time.h> 5741#ifdef HAVE_TIME_H 5742#include <time.h> 5743#endif 5744#include <unistd.h> 5745#ifdef HAVE_GETOPT_H 5746#include <getopt.h> 5747#endif 5748 5749int test() { 5750 int a; 5751 char **opts = NULL; 5752 struct timeval tv; 5753 tv.tv_usec = 10; 5754 srandom(32); 5755 a = getopt(2, opts, "a"); 5756 a = isascii(32); 5757 if(tv.tv_usec) 5758 a = 0; 5759 return a; 5760} 5761' > conftest.c 5762echo 'void f(){}' >>conftest.c 5763if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5764eval "cv_prog_cc_flag_needed_$cache=no" 5765else 5766 5767if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5768eval "cv_prog_cc_flag_needed_$cache=yes" 5769else 5770eval "cv_prog_cc_flag_needed_$cache=fail" 5771#echo 'Test with flag fails too!' 5772#cat conftest.c 5773#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5774#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5775#exit 1 5776fi 5777 5778fi 5779rm -f conftest conftest.c conftest.o 5780 5781fi 5782 5783if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5785$as_echo "yes" >&6; } 5786: 5787CFLAGS="$CFLAGS -D__EXTENSIONS__" 5788else 5789if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791$as_echo "no" >&6; } 5792#echo 'Test with flag is no!' 5793#cat conftest.c 5794#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5795#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5796#exit 1 5797: 5798 5799else 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5801$as_echo "failed" >&6; } 5802: 5803 5804fi 5805fi 5806 5807 5808 5809 5810# debug mode flags warnings 5811# Check whether --enable-checking was given. 5812if test "${enable_checking+set}" = set; then : 5813 enableval=$enable_checking; 5814fi 5815 5816# Check whether --enable-debug was given. 5817if test "${enable_debug+set}" = set; then : 5818 enableval=$enable_debug; 5819fi 5820 5821if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5822else debug_enabled="$enable_checking"; fi 5823 5824case "$debug_enabled" in 5825 yes) 5826 5827 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5829$as_echo_n "checking whether $CC supports -W... " >&6; } 5830cache=`echo W | sed 'y%.=/+-%___p_%'` 5831if eval \${cv_prog_cc_flag_$cache+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 5835echo 'void f(void){}' >conftest.c 5836if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5837eval "cv_prog_cc_flag_$cache=yes" 5838else 5839eval "cv_prog_cc_flag_$cache=no" 5840fi 5841rm -f conftest conftest.o conftest.c 5842 5843fi 5844 5845if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5847$as_echo "yes" >&6; } 5848: 5849CFLAGS="$CFLAGS -W" 5850else 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853: 5854 5855fi 5856 5857 5858 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5860$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5861cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5862if eval \${cv_prog_cc_flag_$cache+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 5866echo 'void f(void){}' >conftest.c 5867if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5868eval "cv_prog_cc_flag_$cache=yes" 5869else 5870eval "cv_prog_cc_flag_$cache=no" 5871fi 5872rm -f conftest conftest.o conftest.c 5873 5874fi 5875 5876if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5878$as_echo "yes" >&6; } 5879: 5880CFLAGS="$CFLAGS -Wall" 5881else 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884: 5885 5886fi 5887 5888 5889 5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5891$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5892cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5893if eval \${cv_prog_cc_flag_$cache+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 5897echo 'void f(void){}' >conftest.c 5898if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5899eval "cv_prog_cc_flag_$cache=yes" 5900else 5901eval "cv_prog_cc_flag_$cache=no" 5902fi 5903rm -f conftest conftest.o conftest.c 5904 5905fi 5906 5907if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5909$as_echo "yes" >&6; } 5910: 5911CFLAGS="$CFLAGS -Wextra" 5912else 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5914$as_echo "no" >&6; } 5915: 5916 5917fi 5918 5919 5920 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5922$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5923cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5924if eval \${cv_prog_cc_flag_$cache+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 5928echo 'void f(void){}' >conftest.c 5929if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5930eval "cv_prog_cc_flag_$cache=yes" 5931else 5932eval "cv_prog_cc_flag_$cache=no" 5933fi 5934rm -f conftest conftest.o conftest.c 5935 5936fi 5937 5938if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5940$as_echo "yes" >&6; } 5941: 5942CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5943else 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5945$as_echo "no" >&6; } 5946: 5947 5948fi 5949 5950 5951$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5952 5953 ;; 5954 no|*) 5955 # nothing to do. 5956 ;; 5957esac 5958 5959 # Check whether --enable-flto was given. 5960if test "${enable_flto+set}" = set; then : 5961 enableval=$enable_flto; 5962fi 5963 5964 if test "x$enable_flto" != "xno"; then : 5965 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5967$as_echo_n "checking if $CC supports -flto... " >&6; } 5968 BAKCFLAGS="$CFLAGS" 5969 CFLAGS="$CFLAGS -flto" 5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972 5973int 5974main () 5975{ 5976 5977 ; 5978 return 0; 5979} 5980_ACEOF 5981if ac_fn_c_try_link "$LINENO"; then : 5982 5983 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5984 CFLAGS="$BAKCFLAGS" 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986$as_echo "no" >&6; } 5987 else 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5989$as_echo "yes" >&6; } 5990 fi 5991 rm -f conftest conftest.c conftest.o 5992 5993else 5994 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995$as_echo "no" >&6; } 5996fi 5997rm -f core conftest.err conftest.$ac_objext \ 5998 conftest$ac_exeext conftest.$ac_ext 5999 6000fi 6001 6002 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6004$as_echo_n "checking for inline... " >&6; } 6005if ${ac_cv_c_inline+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 ac_cv_c_inline=no 6009for ac_kw in inline __inline__ __inline; do 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6011/* end confdefs.h. */ 6012#ifndef __cplusplus 6013typedef int foo_t; 6014static $ac_kw foo_t static_foo () {return 0; } 6015$ac_kw foo_t foo () {return 0; } 6016#endif 6017 6018_ACEOF 6019if ac_fn_c_try_compile "$LINENO"; then : 6020 ac_cv_c_inline=$ac_kw 6021fi 6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6023 test "$ac_cv_c_inline" != no && break 6024done 6025 6026fi 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6028$as_echo "$ac_cv_c_inline" >&6; } 6029 6030case $ac_cv_c_inline in 6031 inline | yes) ;; 6032 *) 6033 case $ac_cv_c_inline in 6034 no) ac_val=;; 6035 *) ac_val=$ac_cv_c_inline;; 6036 esac 6037 cat >>confdefs.h <<_ACEOF 6038#ifndef __cplusplus 6039#define inline $ac_val 6040#endif 6041_ACEOF 6042 ;; 6043esac 6044 6045 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6047$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6048if ${ac_cv_c_format_attribute+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 ac_cv_c_format_attribute=no 6052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054#include <stdio.h> 6055void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6056void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6057 6058int 6059main () 6060{ 6061 6062 f ("%s", "str"); 6063 6064 ; 6065 return 0; 6066} 6067_ACEOF 6068if ac_fn_c_try_compile "$LINENO"; then : 6069 ac_cv_c_format_attribute="yes" 6070else 6071 ac_cv_c_format_attribute="no" 6072fi 6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6074 6075fi 6076 6077 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6079$as_echo "$ac_cv_c_format_attribute" >&6; } 6080if test $ac_cv_c_format_attribute = yes; then 6081 6082$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6083 6084fi 6085 6086 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6088$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6089if ${ac_cv_c_unused_attribute+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 ac_cv_c_unused_attribute=no 6093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6094/* end confdefs.h. */ 6095#include <stdio.h> 6096void f (char *u __attribute__((unused))); 6097 6098int 6099main () 6100{ 6101 6102 f ("x"); 6103 6104 ; 6105 return 0; 6106} 6107_ACEOF 6108if ac_fn_c_try_compile "$LINENO"; then : 6109 ac_cv_c_unused_attribute="yes" 6110else 6111 ac_cv_c_unused_attribute="no" 6112fi 6113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6114 6115fi 6116 6117 6118 6119 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6121$as_echo "$ac_cv_c_unused_attribute" >&6; } 6122if test $ac_cv_c_unused_attribute = yes; then 6123 6124$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6125 6126fi 6127 6128 6129if test "$srcdir" != "."; then 6130 CPPFLAGS="$CPPFLAGS -I$srcdir" 6131fi 6132 6133 6134 6135for ac_prog in flex lex 6136do 6137 # Extract the first word of "$ac_prog", so it can be a program name with args. 6138set dummy $ac_prog; ac_word=$2 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6140$as_echo_n "checking for $ac_word... " >&6; } 6141if ${ac_cv_prog_LEX+:} false; then : 6142 $as_echo_n "(cached) " >&6 6143else 6144 if test -n "$LEX"; then 6145 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6146else 6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6148for as_dir in $PATH 6149do 6150 IFS=$as_save_IFS 6151 test -z "$as_dir" && as_dir=. 6152 for ac_exec_ext in '' $ac_executable_extensions; do 6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6154 ac_cv_prog_LEX="$ac_prog" 6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6156 break 2 6157 fi 6158done 6159 done 6160IFS=$as_save_IFS 6161 6162fi 6163fi 6164LEX=$ac_cv_prog_LEX 6165if test -n "$LEX"; then 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6167$as_echo "$LEX" >&6; } 6168else 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6170$as_echo "no" >&6; } 6171fi 6172 6173 6174 test -n "$LEX" && break 6175done 6176test -n "$LEX" || LEX=":" 6177 6178if test "x$LEX" != "x:"; then 6179 cat >conftest.l <<_ACEOF 6180%% 6181a { ECHO; } 6182b { REJECT; } 6183c { yymore (); } 6184d { yyless (1); } 6185e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6186 yyless ((input () != 0)); } 6187f { unput (yytext[0]); } 6188. { BEGIN INITIAL; } 6189%% 6190#ifdef YYTEXT_POINTER 6191extern char *yytext; 6192#endif 6193int 6194main (void) 6195{ 6196 return ! yylex () + ! yywrap (); 6197} 6198_ACEOF 6199{ { ac_try="$LEX conftest.l" 6200case "(($ac_try" in 6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6202 *) ac_try_echo=$ac_try;; 6203esac 6204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6205$as_echo "$ac_try_echo"; } >&5 6206 (eval "$LEX conftest.l") 2>&5 6207 ac_status=$? 6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6209 test $ac_status = 0; } 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6211$as_echo_n "checking lex output file root... " >&6; } 6212if ${ac_cv_prog_lex_root+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 6216if test -f lex.yy.c; then 6217 ac_cv_prog_lex_root=lex.yy 6218elif test -f lexyy.c; then 6219 ac_cv_prog_lex_root=lexyy 6220else 6221 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6222fi 6223fi 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6225$as_echo "$ac_cv_prog_lex_root" >&6; } 6226LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6227 6228if test -z "${LEXLIB+set}"; then 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6230$as_echo_n "checking lex library... " >&6; } 6231if ${ac_cv_lib_lex+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 6235 ac_save_LIBS=$LIBS 6236 ac_cv_lib_lex='none needed' 6237 for ac_lib in '' -lfl -ll; do 6238 LIBS="$ac_lib $ac_save_LIBS" 6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6240/* end confdefs.h. */ 6241`cat $LEX_OUTPUT_ROOT.c` 6242_ACEOF 6243if ac_fn_c_try_link "$LINENO"; then : 6244 ac_cv_lib_lex=$ac_lib 6245fi 6246rm -f core conftest.err conftest.$ac_objext \ 6247 conftest$ac_exeext conftest.$ac_ext 6248 test "$ac_cv_lib_lex" != 'none needed' && break 6249 done 6250 LIBS=$ac_save_LIBS 6251 6252fi 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6254$as_echo "$ac_cv_lib_lex" >&6; } 6255 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6256fi 6257 6258 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6260$as_echo_n "checking whether yytext is a pointer... " >&6; } 6261if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 # POSIX says lex can declare yytext either as a pointer or an array; the 6265# default is implementation-dependent. Figure out which it is, since 6266# not all implementations provide the %pointer and %array declarations. 6267ac_cv_prog_lex_yytext_pointer=no 6268ac_save_LIBS=$LIBS 6269LIBS="$LEXLIB $ac_save_LIBS" 6270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6271/* end confdefs.h. */ 6272 6273 #define YYTEXT_POINTER 1 6274`cat $LEX_OUTPUT_ROOT.c` 6275_ACEOF 6276if ac_fn_c_try_link "$LINENO"; then : 6277 ac_cv_prog_lex_yytext_pointer=yes 6278fi 6279rm -f core conftest.err conftest.$ac_objext \ 6280 conftest$ac_exeext conftest.$ac_ext 6281LIBS=$ac_save_LIBS 6282 6283fi 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6285$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6286if test $ac_cv_prog_lex_yytext_pointer = yes; then 6287 6288$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6289 6290fi 6291rm -f conftest.l $LEX_OUTPUT_ROOT.c 6292 6293fi 6294 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6296$as_echo_n "checking for yylex_destroy... " >&6; } 6297 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6298 6299$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6300 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6302$as_echo "yes" >&6; } 6303 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6304$as_echo "no" >&6; }; fi 6305 6306for ac_prog in 'bison -y' byacc 6307do 6308 # Extract the first word of "$ac_prog", so it can be a program name with args. 6309set dummy $ac_prog; ac_word=$2 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6311$as_echo_n "checking for $ac_word... " >&6; } 6312if ${ac_cv_prog_YACC+:} false; then : 6313 $as_echo_n "(cached) " >&6 6314else 6315 if test -n "$YACC"; then 6316 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6317else 6318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6319for as_dir in $PATH 6320do 6321 IFS=$as_save_IFS 6322 test -z "$as_dir" && as_dir=. 6323 for ac_exec_ext in '' $ac_executable_extensions; do 6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6325 ac_cv_prog_YACC="$ac_prog" 6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6327 break 2 6328 fi 6329done 6330 done 6331IFS=$as_save_IFS 6332 6333fi 6334fi 6335YACC=$ac_cv_prog_YACC 6336if test -n "$YACC"; then 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6338$as_echo "$YACC" >&6; } 6339else 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6341$as_echo "no" >&6; } 6342fi 6343 6344 6345 test -n "$YACC" && break 6346done 6347test -n "$YACC" || YACC="yacc" 6348 6349# Extract the first word of "doxygen", so it can be a program name with args. 6350set dummy doxygen; ac_word=$2 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6352$as_echo_n "checking for $ac_word... " >&6; } 6353if ${ac_cv_prog_doxygen+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 if test -n "$doxygen"; then 6357 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6358else 6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 test -z "$as_dir" && as_dir=. 6364 for ac_exec_ext in '' $ac_executable_extensions; do 6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6366 ac_cv_prog_doxygen="doxygen" 6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6368 break 2 6369 fi 6370done 6371 done 6372IFS=$as_save_IFS 6373 6374fi 6375fi 6376doxygen=$ac_cv_prog_doxygen 6377if test -n "$doxygen"; then 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6379$as_echo "$doxygen" >&6; } 6380else 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6382$as_echo "no" >&6; } 6383fi 6384 6385 6386if test -n "$ac_tool_prefix"; then 6387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6388set dummy ${ac_tool_prefix}strip; ac_word=$2 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6390$as_echo_n "checking for $ac_word... " >&6; } 6391if ${ac_cv_prog_STRIP+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 if test -n "$STRIP"; then 6395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6396else 6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398for as_dir in $PATH 6399do 6400 IFS=$as_save_IFS 6401 test -z "$as_dir" && as_dir=. 6402 for ac_exec_ext in '' $ac_executable_extensions; do 6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6404 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6406 break 2 6407 fi 6408done 6409 done 6410IFS=$as_save_IFS 6411 6412fi 6413fi 6414STRIP=$ac_cv_prog_STRIP 6415if test -n "$STRIP"; then 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6417$as_echo "$STRIP" >&6; } 6418else 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420$as_echo "no" >&6; } 6421fi 6422 6423 6424fi 6425if test -z "$ac_cv_prog_STRIP"; then 6426 ac_ct_STRIP=$STRIP 6427 # Extract the first word of "strip", so it can be a program name with args. 6428set dummy strip; ac_word=$2 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6430$as_echo_n "checking for $ac_word... " >&6; } 6431if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 if test -n "$ac_ct_STRIP"; then 6435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6444 ac_cv_prog_ac_ct_STRIP="strip" 6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448done 6449 done 6450IFS=$as_save_IFS 6451 6452fi 6453fi 6454ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6455if test -n "$ac_ct_STRIP"; then 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6457$as_echo "$ac_ct_STRIP" >&6; } 6458else 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6460$as_echo "no" >&6; } 6461fi 6462 6463 if test "x$ac_ct_STRIP" = x; then 6464 STRIP="" 6465 else 6466 case $cross_compiling:$ac_tool_warned in 6467yes:) 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6470ac_tool_warned=yes ;; 6471esac 6472 STRIP=$ac_ct_STRIP 6473 fi 6474else 6475 STRIP="$ac_cv_prog_STRIP" 6476fi 6477 6478 6479# skip these tests, we do not need them. 6480 6481 6482 6483 6484 6485 6486 6487 6488# always use ./libtool unless override from commandline (libtool=mylibtool) 6489if test -z "$libtool"; then 6490 libtool="./libtool" 6491fi 6492 6493# avoid libtool max commandline length test on systems that fork slowly. 6494 6495if echo "$host_os" | grep "sunos4" >/dev/null; then 6496 lt_cv_sys_max_cmd_len=32750; 6497fi 6498if test -n "$ac_tool_prefix"; then 6499 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6500set dummy ${ac_tool_prefix}ar; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_path_AR+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 case $AR in 6507 [\\/]* | ?:[\\/]*) 6508 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6509 ;; 6510 *) 6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6512for as_dir in $PATH 6513do 6514 IFS=$as_save_IFS 6515 test -z "$as_dir" && as_dir=. 6516 for ac_exec_ext in '' $ac_executable_extensions; do 6517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6518 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6520 break 2 6521 fi 6522done 6523 done 6524IFS=$as_save_IFS 6525 6526 ;; 6527esac 6528fi 6529AR=$ac_cv_path_AR 6530if test -n "$AR"; then 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6532$as_echo "$AR" >&6; } 6533else 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6535$as_echo "no" >&6; } 6536fi 6537 6538 6539fi 6540if test -z "$ac_cv_path_AR"; then 6541 ac_pt_AR=$AR 6542 # Extract the first word of "ar", so it can be a program name with args. 6543set dummy ar; ac_word=$2 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6545$as_echo_n "checking for $ac_word... " >&6; } 6546if ${ac_cv_path_ac_pt_AR+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 case $ac_pt_AR in 6550 [\\/]* | ?:[\\/]*) 6551 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6552 ;; 6553 *) 6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566 done 6567IFS=$as_save_IFS 6568 6569 ;; 6570esac 6571fi 6572ac_pt_AR=$ac_cv_path_ac_pt_AR 6573if test -n "$ac_pt_AR"; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6575$as_echo "$ac_pt_AR" >&6; } 6576else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578$as_echo "no" >&6; } 6579fi 6580 6581 if test "x$ac_pt_AR" = x; then 6582 AR="false" 6583 else 6584 case $cross_compiling:$ac_tool_warned in 6585yes:) 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6588ac_tool_warned=yes ;; 6589esac 6590 AR=$ac_pt_AR 6591 fi 6592else 6593 AR="$ac_cv_path_AR" 6594fi 6595 6596if test $AR = false; then 6597 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6598fi 6599 6600case `pwd` in 6601 *\ * | *\ *) 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6603$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6604esac 6605 6606 6607 6608macro_version='2.4.2' 6609macro_revision='1.3337' 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623ltmain="$ac_aux_dir/ltmain.sh" 6624 6625# Backslashify metacharacters that are still active within 6626# double-quoted strings. 6627sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6628 6629# Same as above, but do not quote variable references. 6630double_quote_subst='s/\(["`\\]\)/\\\1/g' 6631 6632# Sed substitution to delay expansion of an escaped shell variable in a 6633# double_quote_subst'ed string. 6634delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6635 6636# Sed substitution to delay expansion of an escaped single quote. 6637delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6638 6639# Sed substitution to avoid accidental globbing in evaled expressions 6640no_glob_subst='s/\*/\\\*/g' 6641 6642ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6643ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6644ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6645 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6647$as_echo_n "checking how to print strings... " >&6; } 6648# Test print first, because it will be a builtin if present. 6649if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6650 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6651 ECHO='print -r --' 6652elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6653 ECHO='printf %s\n' 6654else 6655 # Use this function as a fallback that always works. 6656 func_fallback_echo () 6657 { 6658 eval 'cat <<_LTECHO_EOF 6659$1 6660_LTECHO_EOF' 6661 } 6662 ECHO='func_fallback_echo' 6663fi 6664 6665# func_echo_all arg... 6666# Invoke $ECHO with all args, space-separated. 6667func_echo_all () 6668{ 6669 $ECHO "" 6670} 6671 6672case "$ECHO" in 6673 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6674$as_echo "printf" >&6; } ;; 6675 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6676$as_echo "print -r" >&6; } ;; 6677 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6678$as_echo "cat" >&6; } ;; 6679esac 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6695$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6696if ${ac_cv_path_SED+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6700 for ac_i in 1 2 3 4 5 6 7; do 6701 ac_script="$ac_script$as_nl$ac_script" 6702 done 6703 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6704 { ac_script=; unset ac_script;} 6705 if test -z "$SED"; then 6706 ac_path_SED_found=false 6707 # Loop through the user's path and test for each of PROGNAME-LIST 6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_prog in sed gsed; do 6714 for ac_exec_ext in '' $ac_executable_extensions; do 6715 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6716 as_fn_executable_p "$ac_path_SED" || continue 6717# Check for GNU ac_path_SED and select it if it is found. 6718 # Check for GNU $ac_path_SED 6719case `"$ac_path_SED" --version 2>&1` in 6720*GNU*) 6721 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6722*) 6723 ac_count=0 6724 $as_echo_n 0123456789 >"conftest.in" 6725 while : 6726 do 6727 cat "conftest.in" "conftest.in" >"conftest.tmp" 6728 mv "conftest.tmp" "conftest.in" 6729 cp "conftest.in" "conftest.nl" 6730 $as_echo '' >> "conftest.nl" 6731 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6733 as_fn_arith $ac_count + 1 && ac_count=$as_val 6734 if test $ac_count -gt ${ac_path_SED_max-0}; then 6735 # Best one so far, save it but keep looking for a better one 6736 ac_cv_path_SED="$ac_path_SED" 6737 ac_path_SED_max=$ac_count 6738 fi 6739 # 10*(2^10) chars as input seems more than enough 6740 test $ac_count -gt 10 && break 6741 done 6742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6743esac 6744 6745 $ac_path_SED_found && break 3 6746 done 6747 done 6748 done 6749IFS=$as_save_IFS 6750 if test -z "$ac_cv_path_SED"; then 6751 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6752 fi 6753else 6754 ac_cv_path_SED=$SED 6755fi 6756 6757fi 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6759$as_echo "$ac_cv_path_SED" >&6; } 6760 SED="$ac_cv_path_SED" 6761 rm -f conftest.sed 6762 6763test -z "$SED" && SED=sed 6764Xsed="$SED -e 1s/^X//" 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6777$as_echo_n "checking for fgrep... " >&6; } 6778if ${ac_cv_path_FGREP+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6782 then ac_cv_path_FGREP="$GREP -F" 6783 else 6784 if test -z "$FGREP"; then 6785 ac_path_FGREP_found=false 6786 # Loop through the user's path and test for each of PROGNAME-LIST 6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6789do 6790 IFS=$as_save_IFS 6791 test -z "$as_dir" && as_dir=. 6792 for ac_prog in fgrep; do 6793 for ac_exec_ext in '' $ac_executable_extensions; do 6794 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6795 as_fn_executable_p "$ac_path_FGREP" || continue 6796# Check for GNU ac_path_FGREP and select it if it is found. 6797 # Check for GNU $ac_path_FGREP 6798case `"$ac_path_FGREP" --version 2>&1` in 6799*GNU*) 6800 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6801*) 6802 ac_count=0 6803 $as_echo_n 0123456789 >"conftest.in" 6804 while : 6805 do 6806 cat "conftest.in" "conftest.in" >"conftest.tmp" 6807 mv "conftest.tmp" "conftest.in" 6808 cp "conftest.in" "conftest.nl" 6809 $as_echo 'FGREP' >> "conftest.nl" 6810 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6812 as_fn_arith $ac_count + 1 && ac_count=$as_val 6813 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6814 # Best one so far, save it but keep looking for a better one 6815 ac_cv_path_FGREP="$ac_path_FGREP" 6816 ac_path_FGREP_max=$ac_count 6817 fi 6818 # 10*(2^10) chars as input seems more than enough 6819 test $ac_count -gt 10 && break 6820 done 6821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6822esac 6823 6824 $ac_path_FGREP_found && break 3 6825 done 6826 done 6827 done 6828IFS=$as_save_IFS 6829 if test -z "$ac_cv_path_FGREP"; then 6830 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6831 fi 6832else 6833 ac_cv_path_FGREP=$FGREP 6834fi 6835 6836 fi 6837fi 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6839$as_echo "$ac_cv_path_FGREP" >&6; } 6840 FGREP="$ac_cv_path_FGREP" 6841 6842 6843test -z "$GREP" && GREP=grep 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863# Check whether --with-gnu-ld was given. 6864if test "${with_gnu_ld+set}" = set; then : 6865 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6866else 6867 with_gnu_ld=no 6868fi 6869 6870ac_prog=ld 6871if test "$GCC" = yes; then 6872 # Check if gcc -print-prog-name=ld gives a path. 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6874$as_echo_n "checking for ld used by $CC... " >&6; } 6875 case $host in 6876 *-*-mingw*) 6877 # gcc leaves a trailing carriage return which upsets mingw 6878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6879 *) 6880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6881 esac 6882 case $ac_prog in 6883 # Accept absolute paths. 6884 [\\/]* | ?:[\\/]*) 6885 re_direlt='/[^/][^/]*/\.\./' 6886 # Canonicalize the pathname of ld 6887 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6888 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6889 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6890 done 6891 test -z "$LD" && LD="$ac_prog" 6892 ;; 6893 "") 6894 # If it fails, then pretend we aren't using GCC. 6895 ac_prog=ld 6896 ;; 6897 *) 6898 # If it is relative, then search for the first ld in PATH. 6899 with_gnu_ld=unknown 6900 ;; 6901 esac 6902elif test "$with_gnu_ld" = yes; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6904$as_echo_n "checking for GNU ld... " >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6907$as_echo_n "checking for non-GNU ld... " >&6; } 6908fi 6909if ${lt_cv_path_LD+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -z "$LD"; then 6913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6914 for ac_dir in $PATH; do 6915 IFS="$lt_save_ifs" 6916 test -z "$ac_dir" && ac_dir=. 6917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6918 lt_cv_path_LD="$ac_dir/$ac_prog" 6919 # Check to see if the program is GNU ld. I'd rather use --version, 6920 # but apparently some variants of GNU ld only accept -v. 6921 # Break only if it was the GNU/non-GNU ld that we prefer. 6922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6923 *GNU* | *'with BFD'*) 6924 test "$with_gnu_ld" != no && break 6925 ;; 6926 *) 6927 test "$with_gnu_ld" != yes && break 6928 ;; 6929 esac 6930 fi 6931 done 6932 IFS="$lt_save_ifs" 6933else 6934 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6935fi 6936fi 6937 6938LD="$lt_cv_path_LD" 6939if test -n "$LD"; then 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6941$as_echo "$LD" >&6; } 6942else 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6944$as_echo "no" >&6; } 6945fi 6946test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6948$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6949if ${lt_cv_prog_gnu_ld+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6953case `$LD -v 2>&1 </dev/null` in 6954*GNU* | *'with BFD'*) 6955 lt_cv_prog_gnu_ld=yes 6956 ;; 6957*) 6958 lt_cv_prog_gnu_ld=no 6959 ;; 6960esac 6961fi 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6963$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6964with_gnu_ld=$lt_cv_prog_gnu_ld 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6975$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6976if ${lt_cv_path_NM+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 if test -n "$NM"; then 6980 # Let the user override the test. 6981 lt_cv_path_NM="$NM" 6982else 6983 lt_nm_to_check="${ac_tool_prefix}nm" 6984 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6985 lt_nm_to_check="$lt_nm_to_check nm" 6986 fi 6987 for lt_tmp_nm in $lt_nm_to_check; do 6988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6989 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6990 IFS="$lt_save_ifs" 6991 test -z "$ac_dir" && ac_dir=. 6992 tmp_nm="$ac_dir/$lt_tmp_nm" 6993 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6994 # Check to see if the nm accepts a BSD-compat flag. 6995 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6996 # nm: unknown option "B" ignored 6997 # Tru64's nm complains that /dev/null is an invalid object file 6998 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6999 */dev/null* | *'Invalid file or object type'*) 7000 lt_cv_path_NM="$tmp_nm -B" 7001 break 7002 ;; 7003 *) 7004 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7005 */dev/null*) 7006 lt_cv_path_NM="$tmp_nm -p" 7007 break 7008 ;; 7009 *) 7010 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7011 continue # so that we can try to find one that supports BSD flags 7012 ;; 7013 esac 7014 ;; 7015 esac 7016 fi 7017 done 7018 IFS="$lt_save_ifs" 7019 done 7020 : ${lt_cv_path_NM=no} 7021fi 7022fi 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7024$as_echo "$lt_cv_path_NM" >&6; } 7025if test "$lt_cv_path_NM" != "no"; then 7026 NM="$lt_cv_path_NM" 7027else 7028 # Didn't find any BSD compatible name lister, look for dumpbin. 7029 if test -n "$DUMPBIN"; then : 7030 # Let the user override the test. 7031 else 7032 if test -n "$ac_tool_prefix"; then 7033 for ac_prog in dumpbin "link -dump" 7034 do 7035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7036set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038$as_echo_n "checking for $ac_word... " >&6; } 7039if ${ac_cv_prog_DUMPBIN+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 if test -n "$DUMPBIN"; then 7043 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7044else 7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046for as_dir in $PATH 7047do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7052 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056done 7057 done 7058IFS=$as_save_IFS 7059 7060fi 7061fi 7062DUMPBIN=$ac_cv_prog_DUMPBIN 7063if test -n "$DUMPBIN"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7065$as_echo "$DUMPBIN" >&6; } 7066else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068$as_echo "no" >&6; } 7069fi 7070 7071 7072 test -n "$DUMPBIN" && break 7073 done 7074fi 7075if test -z "$DUMPBIN"; then 7076 ac_ct_DUMPBIN=$DUMPBIN 7077 for ac_prog in dumpbin "link -dump" 7078do 7079 # Extract the first word of "$ac_prog", so it can be a program name with args. 7080set dummy $ac_prog; ac_word=$2 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7082$as_echo_n "checking for $ac_word... " >&6; } 7083if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 if test -n "$ac_ct_DUMPBIN"; then 7087 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7088else 7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7090for as_dir in $PATH 7091do 7092 IFS=$as_save_IFS 7093 test -z "$as_dir" && as_dir=. 7094 for ac_exec_ext in '' $ac_executable_extensions; do 7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7096 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7098 break 2 7099 fi 7100done 7101 done 7102IFS=$as_save_IFS 7103 7104fi 7105fi 7106ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7107if test -n "$ac_ct_DUMPBIN"; then 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7109$as_echo "$ac_ct_DUMPBIN" >&6; } 7110else 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7112$as_echo "no" >&6; } 7113fi 7114 7115 7116 test -n "$ac_ct_DUMPBIN" && break 7117done 7118 7119 if test "x$ac_ct_DUMPBIN" = x; then 7120 DUMPBIN=":" 7121 else 7122 case $cross_compiling:$ac_tool_warned in 7123yes:) 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7126ac_tool_warned=yes ;; 7127esac 7128 DUMPBIN=$ac_ct_DUMPBIN 7129 fi 7130fi 7131 7132 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7133 *COFF*) 7134 DUMPBIN="$DUMPBIN -symbols" 7135 ;; 7136 *) 7137 DUMPBIN=: 7138 ;; 7139 esac 7140 fi 7141 7142 if test "$DUMPBIN" != ":"; then 7143 NM="$DUMPBIN" 7144 fi 7145fi 7146test -z "$NM" && NM=nm 7147 7148 7149 7150 7151 7152 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7154$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7155if ${lt_cv_nm_interface+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 lt_cv_nm_interface="BSD nm" 7159 echo "int some_variable = 0;" > conftest.$ac_ext 7160 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7161 (eval "$ac_compile" 2>conftest.err) 7162 cat conftest.err >&5 7163 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7164 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7165 cat conftest.err >&5 7166 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7167 cat conftest.out >&5 7168 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7169 lt_cv_nm_interface="MS dumpbin" 7170 fi 7171 rm -f conftest* 7172fi 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7174$as_echo "$lt_cv_nm_interface" >&6; } 7175 7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7177$as_echo_n "checking whether ln -s works... " >&6; } 7178LN_S=$as_ln_s 7179if test "$LN_S" = "ln -s"; then 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7181$as_echo "yes" >&6; } 7182else 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7184$as_echo "no, using $LN_S" >&6; } 7185fi 7186 7187# find the maximum length of command line arguments 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7189$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7190if ${lt_cv_sys_max_cmd_len+:} false; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 i=0 7194 teststring="ABCD" 7195 7196 case $build_os in 7197 msdosdjgpp*) 7198 # On DJGPP, this test can blow up pretty badly due to problems in libc 7199 # (any single argument exceeding 2000 bytes causes a buffer overrun 7200 # during glob expansion). Even if it were fixed, the result of this 7201 # check would be larger than it should be. 7202 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7203 ;; 7204 7205 gnu*) 7206 # Under GNU Hurd, this test is not required because there is 7207 # no limit to the length of command line arguments. 7208 # Libtool will interpret -1 as no limit whatsoever 7209 lt_cv_sys_max_cmd_len=-1; 7210 ;; 7211 7212 cygwin* | mingw* | cegcc*) 7213 # On Win9x/ME, this test blows up -- it succeeds, but takes 7214 # about 5 minutes as the teststring grows exponentially. 7215 # Worse, since 9x/ME are not pre-emptively multitasking, 7216 # you end up with a "frozen" computer, even though with patience 7217 # the test eventually succeeds (with a max line length of 256k). 7218 # Instead, let's just punt: use the minimum linelength reported by 7219 # all of the supported platforms: 8192 (on NT/2K/XP). 7220 lt_cv_sys_max_cmd_len=8192; 7221 ;; 7222 7223 mint*) 7224 # On MiNT this can take a long time and run out of memory. 7225 lt_cv_sys_max_cmd_len=8192; 7226 ;; 7227 7228 amigaos*) 7229 # On AmigaOS with pdksh, this test takes hours, literally. 7230 # So we just punt and use a minimum line length of 8192. 7231 lt_cv_sys_max_cmd_len=8192; 7232 ;; 7233 7234 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7235 # This has been around since 386BSD, at least. Likely further. 7236 if test -x /sbin/sysctl; then 7237 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7238 elif test -x /usr/sbin/sysctl; then 7239 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7240 else 7241 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7242 fi 7243 # And add a safety zone 7244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7246 ;; 7247 7248 interix*) 7249 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7250 lt_cv_sys_max_cmd_len=196608 7251 ;; 7252 7253 os2*) 7254 # The test takes a long time on OS/2. 7255 lt_cv_sys_max_cmd_len=8192 7256 ;; 7257 7258 osf*) 7259 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7260 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7261 # nice to cause kernel panics so lets avoid the loop below. 7262 # First set a reasonable default. 7263 lt_cv_sys_max_cmd_len=16384 7264 # 7265 if test -x /sbin/sysconfig; then 7266 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7267 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7268 esac 7269 fi 7270 ;; 7271 sco3.2v5*) 7272 lt_cv_sys_max_cmd_len=102400 7273 ;; 7274 sysv5* | sco5v6* | sysv4.2uw2*) 7275 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7276 if test -n "$kargmax"; then 7277 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7278 else 7279 lt_cv_sys_max_cmd_len=32768 7280 fi 7281 ;; 7282 *) 7283 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7284 if test -n "$lt_cv_sys_max_cmd_len"; then 7285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7287 else 7288 # Make teststring a little bigger before we do anything with it. 7289 # a 1K string should be a reasonable start. 7290 for i in 1 2 3 4 5 6 7 8 ; do 7291 teststring=$teststring$teststring 7292 done 7293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7294 # If test is not a shell built-in, we'll probably end up computing a 7295 # maximum length that is only half of the actual maximum length, but 7296 # we can't tell. 7297 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7298 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7299 test $i != 17 # 1/2 MB should be enough 7300 do 7301 i=`expr $i + 1` 7302 teststring=$teststring$teststring 7303 done 7304 # Only check the string length outside the loop. 7305 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7306 teststring= 7307 # Add a significant safety factor because C++ compilers can tack on 7308 # massive amounts of additional arguments before passing them to the 7309 # linker. It appears as though 1/2 is a usable value. 7310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7311 fi 7312 ;; 7313 esac 7314 7315fi 7316 7317if test -n $lt_cv_sys_max_cmd_len ; then 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7319$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7320else 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7322$as_echo "none" >&6; } 7323fi 7324max_cmd_len=$lt_cv_sys_max_cmd_len 7325 7326 7327 7328 7329 7330 7331: ${CP="cp -f"} 7332: ${MV="mv -f"} 7333: ${RM="rm -f"} 7334 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7336$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7337# Try some XSI features 7338xsi_shell=no 7339( _lt_dummy="a/b/c" 7340 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7341 = c,a/b,b/c, \ 7342 && eval 'test $(( 1 + 1 )) -eq 2 \ 7343 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7344 && xsi_shell=yes 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7346$as_echo "$xsi_shell" >&6; } 7347 7348 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7350$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7351lt_shell_append=no 7352( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7353 >/dev/null 2>&1 \ 7354 && lt_shell_append=yes 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7356$as_echo "$lt_shell_append" >&6; } 7357 7358 7359if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7360 lt_unset=unset 7361else 7362 lt_unset=false 7363fi 7364 7365 7366 7367 7368 7369# test EBCDIC or ASCII 7370case `echo X|tr X '\101'` in 7371 A) # ASCII based system 7372 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7373 lt_SP2NL='tr \040 \012' 7374 lt_NL2SP='tr \015\012 \040\040' 7375 ;; 7376 *) # EBCDIC based system 7377 lt_SP2NL='tr \100 \n' 7378 lt_NL2SP='tr \r\n \100\100' 7379 ;; 7380esac 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7391$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7392if ${lt_cv_to_host_file_cmd+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 case $host in 7396 *-*-mingw* ) 7397 case $build in 7398 *-*-mingw* ) # actually msys 7399 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7400 ;; 7401 *-*-cygwin* ) 7402 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7403 ;; 7404 * ) # otherwise, assume *nix 7405 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7406 ;; 7407 esac 7408 ;; 7409 *-*-cygwin* ) 7410 case $build in 7411 *-*-mingw* ) # actually msys 7412 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7413 ;; 7414 *-*-cygwin* ) 7415 lt_cv_to_host_file_cmd=func_convert_file_noop 7416 ;; 7417 * ) # otherwise, assume *nix 7418 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7419 ;; 7420 esac 7421 ;; 7422 * ) # unhandled hosts (and "normal" native builds) 7423 lt_cv_to_host_file_cmd=func_convert_file_noop 7424 ;; 7425esac 7426 7427fi 7428 7429to_host_file_cmd=$lt_cv_to_host_file_cmd 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7431$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7432 7433 7434 7435 7436 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7438$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7439if ${lt_cv_to_tool_file_cmd+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 #assume ordinary cross tools, or native build. 7443lt_cv_to_tool_file_cmd=func_convert_file_noop 7444case $host in 7445 *-*-mingw* ) 7446 case $build in 7447 *-*-mingw* ) # actually msys 7448 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7449 ;; 7450 esac 7451 ;; 7452esac 7453 7454fi 7455 7456to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7458$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7459 7460 7461 7462 7463 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7465$as_echo_n "checking for $LD option to reload object files... " >&6; } 7466if ${lt_cv_ld_reload_flag+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 lt_cv_ld_reload_flag='-r' 7470fi 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7472$as_echo "$lt_cv_ld_reload_flag" >&6; } 7473reload_flag=$lt_cv_ld_reload_flag 7474case $reload_flag in 7475"" | " "*) ;; 7476*) reload_flag=" $reload_flag" ;; 7477esac 7478reload_cmds='$LD$reload_flag -o $output$reload_objs' 7479case $host_os in 7480 cygwin* | mingw* | pw32* | cegcc*) 7481 if test "$GCC" != yes; then 7482 reload_cmds=false 7483 fi 7484 ;; 7485 darwin*) 7486 if test "$GCC" = yes; then 7487 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7488 else 7489 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7490 fi 7491 ;; 7492esac 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502if test -n "$ac_tool_prefix"; then 7503 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7504set dummy ${ac_tool_prefix}objdump; ac_word=$2 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7506$as_echo_n "checking for $ac_word... " >&6; } 7507if ${ac_cv_prog_OBJDUMP+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 if test -n "$OBJDUMP"; then 7511 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7512else 7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7514for as_dir in $PATH 7515do 7516 IFS=$as_save_IFS 7517 test -z "$as_dir" && as_dir=. 7518 for ac_exec_ext in '' $ac_executable_extensions; do 7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7520 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7522 break 2 7523 fi 7524done 7525 done 7526IFS=$as_save_IFS 7527 7528fi 7529fi 7530OBJDUMP=$ac_cv_prog_OBJDUMP 7531if test -n "$OBJDUMP"; then 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7533$as_echo "$OBJDUMP" >&6; } 7534else 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536$as_echo "no" >&6; } 7537fi 7538 7539 7540fi 7541if test -z "$ac_cv_prog_OBJDUMP"; then 7542 ac_ct_OBJDUMP=$OBJDUMP 7543 # Extract the first word of "objdump", so it can be a program name with args. 7544set dummy objdump; ac_word=$2 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7546$as_echo_n "checking for $ac_word... " >&6; } 7547if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 if test -n "$ac_ct_OBJDUMP"; then 7551 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7552else 7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7554for as_dir in $PATH 7555do 7556 IFS=$as_save_IFS 7557 test -z "$as_dir" && as_dir=. 7558 for ac_exec_ext in '' $ac_executable_extensions; do 7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7560 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7562 break 2 7563 fi 7564done 7565 done 7566IFS=$as_save_IFS 7567 7568fi 7569fi 7570ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7571if test -n "$ac_ct_OBJDUMP"; then 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7573$as_echo "$ac_ct_OBJDUMP" >&6; } 7574else 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7576$as_echo "no" >&6; } 7577fi 7578 7579 if test "x$ac_ct_OBJDUMP" = x; then 7580 OBJDUMP="false" 7581 else 7582 case $cross_compiling:$ac_tool_warned in 7583yes:) 7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7586ac_tool_warned=yes ;; 7587esac 7588 OBJDUMP=$ac_ct_OBJDUMP 7589 fi 7590else 7591 OBJDUMP="$ac_cv_prog_OBJDUMP" 7592fi 7593 7594test -z "$OBJDUMP" && OBJDUMP=objdump 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7605$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7606if ${lt_cv_deplibs_check_method+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 lt_cv_file_magic_cmd='$MAGIC_CMD' 7610lt_cv_file_magic_test_file= 7611lt_cv_deplibs_check_method='unknown' 7612# Need to set the preceding variable on all platforms that support 7613# interlibrary dependencies. 7614# 'none' -- dependencies not supported. 7615# `unknown' -- same as none, but documents that we really don't know. 7616# 'pass_all' -- all dependencies passed with no checks. 7617# 'test_compile' -- check by making test program. 7618# 'file_magic [[regex]]' -- check by looking for files in library path 7619# which responds to the $file_magic_cmd with a given extended regex. 7620# If you have `file' or equivalent on your system and you're not sure 7621# whether `pass_all' will *always* work, you probably want this one. 7622 7623case $host_os in 7624aix[4-9]*) 7625 lt_cv_deplibs_check_method=pass_all 7626 ;; 7627 7628beos*) 7629 lt_cv_deplibs_check_method=pass_all 7630 ;; 7631 7632bsdi[45]*) 7633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7634 lt_cv_file_magic_cmd='/usr/bin/file -L' 7635 lt_cv_file_magic_test_file=/shlib/libc.so 7636 ;; 7637 7638cygwin*) 7639 # func_win32_libid is a shell function defined in ltmain.sh 7640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7641 lt_cv_file_magic_cmd='func_win32_libid' 7642 ;; 7643 7644mingw* | pw32*) 7645 # Base MSYS/MinGW do not provide the 'file' command needed by 7646 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7647 # unless we find 'file', for example because we are cross-compiling. 7648 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7649 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7650 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7651 lt_cv_file_magic_cmd='func_win32_libid' 7652 else 7653 # Keep this pattern in sync with the one in func_win32_libid. 7654 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7655 lt_cv_file_magic_cmd='$OBJDUMP -f' 7656 fi 7657 ;; 7658 7659cegcc*) 7660 # use the weaker test based on 'objdump'. See mingw*. 7661 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7662 lt_cv_file_magic_cmd='$OBJDUMP -f' 7663 ;; 7664 7665darwin* | rhapsody*) 7666 lt_cv_deplibs_check_method=pass_all 7667 ;; 7668 7669freebsd* | dragonfly*) 7670 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7671 case $host_cpu in 7672 i*86 ) 7673 # Not sure whether the presence of OpenBSD here was a mistake. 7674 # Let's accept both of them until this is cleared up. 7675 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7676 lt_cv_file_magic_cmd=/usr/bin/file 7677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7678 ;; 7679 esac 7680 else 7681 lt_cv_deplibs_check_method=pass_all 7682 fi 7683 ;; 7684 7685gnu*) 7686 lt_cv_deplibs_check_method=pass_all 7687 ;; 7688 7689haiku*) 7690 lt_cv_deplibs_check_method=pass_all 7691 ;; 7692 7693hpux10.20* | hpux11*) 7694 lt_cv_file_magic_cmd=/usr/bin/file 7695 case $host_cpu in 7696 ia64*) 7697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7698 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7699 ;; 7700 hppa*64*) 7701 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]' 7702 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7703 ;; 7704 *) 7705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7706 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7707 ;; 7708 esac 7709 ;; 7710 7711interix[3-9]*) 7712 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7714 ;; 7715 7716irix5* | irix6* | nonstopux*) 7717 case $LD in 7718 *-32|*"-32 ") libmagic=32-bit;; 7719 *-n32|*"-n32 ") libmagic=N32;; 7720 *-64|*"-64 ") libmagic=64-bit;; 7721 *) libmagic=never-match;; 7722 esac 7723 lt_cv_deplibs_check_method=pass_all 7724 ;; 7725 7726# This must be glibc/ELF. 7727linux* | k*bsd*-gnu | kopensolaris*-gnu) 7728 lt_cv_deplibs_check_method=pass_all 7729 ;; 7730 7731netbsd*) 7732 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7734 else 7735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7736 fi 7737 ;; 7738 7739newos6*) 7740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7741 lt_cv_file_magic_cmd=/usr/bin/file 7742 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7743 ;; 7744 7745*nto* | *qnx*) 7746 lt_cv_deplibs_check_method=pass_all 7747 ;; 7748 7749openbsd*) 7750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7752 else 7753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7754 fi 7755 ;; 7756 7757osf3* | osf4* | osf5*) 7758 lt_cv_deplibs_check_method=pass_all 7759 ;; 7760 7761rdos*) 7762 lt_cv_deplibs_check_method=pass_all 7763 ;; 7764 7765solaris*) 7766 lt_cv_deplibs_check_method=pass_all 7767 ;; 7768 7769sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7770 lt_cv_deplibs_check_method=pass_all 7771 ;; 7772 7773sysv4 | sysv4.3*) 7774 case $host_vendor in 7775 motorola) 7776 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]' 7777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7778 ;; 7779 ncr) 7780 lt_cv_deplibs_check_method=pass_all 7781 ;; 7782 sequent) 7783 lt_cv_file_magic_cmd='/bin/file' 7784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7785 ;; 7786 sni) 7787 lt_cv_file_magic_cmd='/bin/file' 7788 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7789 lt_cv_file_magic_test_file=/lib/libc.so 7790 ;; 7791 siemens) 7792 lt_cv_deplibs_check_method=pass_all 7793 ;; 7794 pc) 7795 lt_cv_deplibs_check_method=pass_all 7796 ;; 7797 esac 7798 ;; 7799 7800tpf*) 7801 lt_cv_deplibs_check_method=pass_all 7802 ;; 7803esac 7804 7805fi 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7807$as_echo "$lt_cv_deplibs_check_method" >&6; } 7808 7809file_magic_glob= 7810want_nocaseglob=no 7811if test "$build" = "$host"; then 7812 case $host_os in 7813 mingw* | pw32*) 7814 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7815 want_nocaseglob=yes 7816 else 7817 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7818 fi 7819 ;; 7820 esac 7821fi 7822 7823file_magic_cmd=$lt_cv_file_magic_cmd 7824deplibs_check_method=$lt_cv_deplibs_check_method 7825test -z "$deplibs_check_method" && deplibs_check_method=unknown 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848if test -n "$ac_tool_prefix"; then 7849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7850set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7852$as_echo_n "checking for $ac_word... " >&6; } 7853if ${ac_cv_prog_DLLTOOL+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 if test -n "$DLLTOOL"; then 7857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876DLLTOOL=$ac_cv_prog_DLLTOOL 7877if test -n "$DLLTOOL"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7879$as_echo "$DLLTOOL" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883fi 7884 7885 7886fi 7887if test -z "$ac_cv_prog_DLLTOOL"; then 7888 ac_ct_DLLTOOL=$DLLTOOL 7889 # Extract the first word of "dlltool", so it can be a program name with args. 7890set dummy dlltool; ac_word=$2 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7892$as_echo_n "checking for $ac_word... " >&6; } 7893if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 if test -n "$ac_ct_DLLTOOL"; then 7897 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7898else 7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7900for as_dir in $PATH 7901do 7902 IFS=$as_save_IFS 7903 test -z "$as_dir" && as_dir=. 7904 for ac_exec_ext in '' $ac_executable_extensions; do 7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7906 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7908 break 2 7909 fi 7910done 7911 done 7912IFS=$as_save_IFS 7913 7914fi 7915fi 7916ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7917if test -n "$ac_ct_DLLTOOL"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7919$as_echo "$ac_ct_DLLTOOL" >&6; } 7920else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922$as_echo "no" >&6; } 7923fi 7924 7925 if test "x$ac_ct_DLLTOOL" = x; then 7926 DLLTOOL="false" 7927 else 7928 case $cross_compiling:$ac_tool_warned in 7929yes:) 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7932ac_tool_warned=yes ;; 7933esac 7934 DLLTOOL=$ac_ct_DLLTOOL 7935 fi 7936else 7937 DLLTOOL="$ac_cv_prog_DLLTOOL" 7938fi 7939 7940test -z "$DLLTOOL" && DLLTOOL=dlltool 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7952$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7953if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 lt_cv_sharedlib_from_linklib_cmd='unknown' 7957 7958case $host_os in 7959cygwin* | mingw* | pw32* | cegcc*) 7960 # two different shell functions defined in ltmain.sh 7961 # decide which to use based on capabilities of $DLLTOOL 7962 case `$DLLTOOL --help 2>&1` in 7963 *--identify-strict*) 7964 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7965 ;; 7966 *) 7967 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7968 ;; 7969 esac 7970 ;; 7971*) 7972 # fallback: assume linklib IS sharedlib 7973 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7974 ;; 7975esac 7976 7977fi 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7979$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7980sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7981test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7982 7983 7984 7985 7986 7987 7988 7989if test -n "$ac_tool_prefix"; then 7990 for ac_prog in ar 7991 do 7992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7993set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7995$as_echo_n "checking for $ac_word... " >&6; } 7996if ${ac_cv_prog_AR+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 if test -n "$AR"; then 8000 ac_cv_prog_AR="$AR" # Let the user override the test. 8001else 8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8003for as_dir in $PATH 8004do 8005 IFS=$as_save_IFS 8006 test -z "$as_dir" && as_dir=. 8007 for ac_exec_ext in '' $ac_executable_extensions; do 8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8009 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8011 break 2 8012 fi 8013done 8014 done 8015IFS=$as_save_IFS 8016 8017fi 8018fi 8019AR=$ac_cv_prog_AR 8020if test -n "$AR"; then 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8022$as_echo "$AR" >&6; } 8023else 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8025$as_echo "no" >&6; } 8026fi 8027 8028 8029 test -n "$AR" && break 8030 done 8031fi 8032if test -z "$AR"; then 8033 ac_ct_AR=$AR 8034 for ac_prog in ar 8035do 8036 # Extract the first word of "$ac_prog", so it can be a program name with args. 8037set dummy $ac_prog; ac_word=$2 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039$as_echo_n "checking for $ac_word... " >&6; } 8040if ${ac_cv_prog_ac_ct_AR+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 if test -n "$ac_ct_AR"; then 8044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8045else 8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8047for as_dir in $PATH 8048do 8049 IFS=$as_save_IFS 8050 test -z "$as_dir" && as_dir=. 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_ac_ct_AR="$ac_prog" 8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058 done 8059IFS=$as_save_IFS 8060 8061fi 8062fi 8063ac_ct_AR=$ac_cv_prog_ac_ct_AR 8064if test -n "$ac_ct_AR"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8066$as_echo "$ac_ct_AR" >&6; } 8067else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069$as_echo "no" >&6; } 8070fi 8071 8072 8073 test -n "$ac_ct_AR" && break 8074done 8075 8076 if test "x$ac_ct_AR" = x; then 8077 AR="false" 8078 else 8079 case $cross_compiling:$ac_tool_warned in 8080yes:) 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8083ac_tool_warned=yes ;; 8084esac 8085 AR=$ac_ct_AR 8086 fi 8087fi 8088 8089: ${AR=ar} 8090: ${AR_FLAGS=cru} 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8103$as_echo_n "checking for archiver @FILE support... " >&6; } 8104if ${lt_cv_ar_at_file+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106else 8107 lt_cv_ar_at_file=no 8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110 8111int 8112main () 8113{ 8114 8115 ; 8116 return 0; 8117} 8118_ACEOF 8119if ac_fn_c_try_compile "$LINENO"; then : 8120 echo conftest.$ac_objext > conftest.lst 8121 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8123 (eval $lt_ar_try) 2>&5 8124 ac_status=$? 8125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8126 test $ac_status = 0; } 8127 if test "$ac_status" -eq 0; then 8128 # Ensure the archiver fails upon bogus file names. 8129 rm -f conftest.$ac_objext libconftest.a 8130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8131 (eval $lt_ar_try) 2>&5 8132 ac_status=$? 8133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8134 test $ac_status = 0; } 8135 if test "$ac_status" -ne 0; then 8136 lt_cv_ar_at_file=@ 8137 fi 8138 fi 8139 rm -f conftest.* libconftest.a 8140 8141fi 8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143 8144fi 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8146$as_echo "$lt_cv_ar_at_file" >&6; } 8147 8148if test "x$lt_cv_ar_at_file" = xno; then 8149 archiver_list_spec= 8150else 8151 archiver_list_spec=$lt_cv_ar_at_file 8152fi 8153 8154 8155 8156 8157 8158 8159 8160if test -n "$ac_tool_prefix"; then 8161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8162set dummy ${ac_tool_prefix}strip; ac_word=$2 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8164$as_echo_n "checking for $ac_word... " >&6; } 8165if ${ac_cv_prog_STRIP+:} false; then : 8166 $as_echo_n "(cached) " >&6 8167else 8168 if test -n "$STRIP"; then 8169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8170else 8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8172for as_dir in $PATH 8173do 8174 IFS=$as_save_IFS 8175 test -z "$as_dir" && as_dir=. 8176 for ac_exec_ext in '' $ac_executable_extensions; do 8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8178 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8180 break 2 8181 fi 8182done 8183 done 8184IFS=$as_save_IFS 8185 8186fi 8187fi 8188STRIP=$ac_cv_prog_STRIP 8189if test -n "$STRIP"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8191$as_echo "$STRIP" >&6; } 8192else 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8194$as_echo "no" >&6; } 8195fi 8196 8197 8198fi 8199if test -z "$ac_cv_prog_STRIP"; then 8200 ac_ct_STRIP=$STRIP 8201 # Extract the first word of "strip", so it can be a program name with args. 8202set dummy strip; ac_word=$2 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8204$as_echo_n "checking for $ac_word... " >&6; } 8205if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 if test -n "$ac_ct_STRIP"; then 8209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8210else 8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8212for as_dir in $PATH 8213do 8214 IFS=$as_save_IFS 8215 test -z "$as_dir" && as_dir=. 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_ac_ct_STRIP="strip" 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8229if test -n "$ac_ct_STRIP"; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8231$as_echo "$ac_ct_STRIP" >&6; } 8232else 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234$as_echo "no" >&6; } 8235fi 8236 8237 if test "x$ac_ct_STRIP" = x; then 8238 STRIP=":" 8239 else 8240 case $cross_compiling:$ac_tool_warned in 8241yes:) 8242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8244ac_tool_warned=yes ;; 8245esac 8246 STRIP=$ac_ct_STRIP 8247 fi 8248else 8249 STRIP="$ac_cv_prog_STRIP" 8250fi 8251 8252test -z "$STRIP" && STRIP=: 8253 8254 8255 8256 8257 8258 8259if test -n "$ac_tool_prefix"; then 8260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8261set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8263$as_echo_n "checking for $ac_word... " >&6; } 8264if ${ac_cv_prog_RANLIB+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 if test -n "$RANLIB"; then 8268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8269else 8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8271for as_dir in $PATH 8272do 8273 IFS=$as_save_IFS 8274 test -z "$as_dir" && as_dir=. 8275 for ac_exec_ext in '' $ac_executable_extensions; do 8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8279 break 2 8280 fi 8281done 8282 done 8283IFS=$as_save_IFS 8284 8285fi 8286fi 8287RANLIB=$ac_cv_prog_RANLIB 8288if test -n "$RANLIB"; then 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8290$as_echo "$RANLIB" >&6; } 8291else 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8293$as_echo "no" >&6; } 8294fi 8295 8296 8297fi 8298if test -z "$ac_cv_prog_RANLIB"; then 8299 ac_ct_RANLIB=$RANLIB 8300 # Extract the first word of "ranlib", so it can be a program name with args. 8301set dummy ranlib; ac_word=$2 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8303$as_echo_n "checking for $ac_word... " >&6; } 8304if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 if test -n "$ac_ct_RANLIB"; then 8308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8309else 8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8311for as_dir in $PATH 8312do 8313 IFS=$as_save_IFS 8314 test -z "$as_dir" && as_dir=. 8315 for ac_exec_ext in '' $ac_executable_extensions; do 8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8317 ac_cv_prog_ac_ct_RANLIB="ranlib" 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8319 break 2 8320 fi 8321done 8322 done 8323IFS=$as_save_IFS 8324 8325fi 8326fi 8327ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8328if test -n "$ac_ct_RANLIB"; then 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8330$as_echo "$ac_ct_RANLIB" >&6; } 8331else 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8333$as_echo "no" >&6; } 8334fi 8335 8336 if test "x$ac_ct_RANLIB" = x; then 8337 RANLIB=":" 8338 else 8339 case $cross_compiling:$ac_tool_warned in 8340yes:) 8341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8343ac_tool_warned=yes ;; 8344esac 8345 RANLIB=$ac_ct_RANLIB 8346 fi 8347else 8348 RANLIB="$ac_cv_prog_RANLIB" 8349fi 8350 8351test -z "$RANLIB" && RANLIB=: 8352 8353 8354 8355 8356 8357 8358# Determine commands to create old-style static archives. 8359old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8360old_postinstall_cmds='chmod 644 $oldlib' 8361old_postuninstall_cmds= 8362 8363if test -n "$RANLIB"; then 8364 case $host_os in 8365 openbsd*) 8366 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8367 ;; 8368 *) 8369 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8370 ;; 8371 esac 8372 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8373fi 8374 8375case $host_os in 8376 darwin*) 8377 lock_old_archive_extraction=yes ;; 8378 *) 8379 lock_old_archive_extraction=no ;; 8380esac 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402for ac_prog in gawk mawk nawk awk 8403do 8404 # Extract the first word of "$ac_prog", so it can be a program name with args. 8405set dummy $ac_prog; ac_word=$2 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8407$as_echo_n "checking for $ac_word... " >&6; } 8408if ${ac_cv_prog_AWK+:} false; then : 8409 $as_echo_n "(cached) " >&6 8410else 8411 if test -n "$AWK"; then 8412 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8413else 8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8415for as_dir in $PATH 8416do 8417 IFS=$as_save_IFS 8418 test -z "$as_dir" && as_dir=. 8419 for ac_exec_ext in '' $ac_executable_extensions; do 8420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8421 ac_cv_prog_AWK="$ac_prog" 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8423 break 2 8424 fi 8425done 8426 done 8427IFS=$as_save_IFS 8428 8429fi 8430fi 8431AWK=$ac_cv_prog_AWK 8432if test -n "$AWK"; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8434$as_echo "$AWK" >&6; } 8435else 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8437$as_echo "no" >&6; } 8438fi 8439 8440 8441 test -n "$AWK" && break 8442done 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462# If no C compiler was specified, use CC. 8463LTCC=${LTCC-"$CC"} 8464 8465# If no C compiler flags were specified, use CFLAGS. 8466LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8467 8468# Allow CC to be a program name with arguments. 8469compiler=$CC 8470 8471 8472# Check for command to grab the raw symbol name followed by C symbol from nm. 8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8474$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8475if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477else 8478 8479# These are sane defaults that work on at least a few old systems. 8480# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8481 8482# Character class describing NM global symbol codes. 8483symcode='[BCDEGRST]' 8484 8485# Regexp to match symbols that can be accessed directly from C. 8486sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8487 8488# Define system-specific variables. 8489case $host_os in 8490aix*) 8491 symcode='[BCDT]' 8492 ;; 8493cygwin* | mingw* | pw32* | cegcc*) 8494 symcode='[ABCDGISTW]' 8495 ;; 8496hpux*) 8497 if test "$host_cpu" = ia64; then 8498 symcode='[ABCDEGRST]' 8499 fi 8500 ;; 8501irix* | nonstopux*) 8502 symcode='[BCDEGRST]' 8503 ;; 8504osf*) 8505 symcode='[BCDEGQRST]' 8506 ;; 8507solaris*) 8508 symcode='[BDRT]' 8509 ;; 8510sco3.2v5*) 8511 symcode='[DT]' 8512 ;; 8513sysv4.2uw2*) 8514 symcode='[DT]' 8515 ;; 8516sysv5* | sco5v6* | unixware* | OpenUNIX*) 8517 symcode='[ABDT]' 8518 ;; 8519sysv4) 8520 symcode='[DFNSTU]' 8521 ;; 8522esac 8523 8524# If we're using GNU nm, then use its standard symbol codes. 8525case `$NM -V 2>&1` in 8526*GNU* | *'with BFD'*) 8527 symcode='[ABCDGIRSTW]' ;; 8528esac 8529 8530# Transform an extracted symbol line into a proper C declaration. 8531# Some systems (esp. on ia64) link data and code symbols differently, 8532# so use this general approach. 8533lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8534 8535# Transform an extracted symbol line into symbol name and symbol address 8536lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8537lt_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'" 8538 8539# Handle CRLF in mingw tool chain 8540opt_cr= 8541case $build_os in 8542mingw*) 8543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8544 ;; 8545esac 8546 8547# Try without a prefix underscore, then with it. 8548for ac_symprfx in "" "_"; do 8549 8550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8551 symxfrm="\\1 $ac_symprfx\\2 \\2" 8552 8553 # Write the raw and C identifiers. 8554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8555 # Fake it for dumpbin and say T for any non-static function 8556 # and D for any global variable. 8557 # Also find C++ and __fastcall symbols from MSVC++, 8558 # which start with @ or ?. 8559 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8560" {last_section=section; section=\$ 3};"\ 8561" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8562" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8563" \$ 0!~/External *\|/{next};"\ 8564" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8565" {if(hide[section]) next};"\ 8566" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8567" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8568" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8569" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8570" ' prfx=^$ac_symprfx" 8571 else 8572 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8573 fi 8574 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8575 8576 # Check to see that the pipe works correctly. 8577 pipe_works=no 8578 8579 rm -f conftest* 8580 cat > conftest.$ac_ext <<_LT_EOF 8581#ifdef __cplusplus 8582extern "C" { 8583#endif 8584char nm_test_var; 8585void nm_test_func(void); 8586void nm_test_func(void){} 8587#ifdef __cplusplus 8588} 8589#endif 8590int main(){nm_test_var='a';nm_test_func();return(0);} 8591_LT_EOF 8592 8593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8594 (eval $ac_compile) 2>&5 8595 ac_status=$? 8596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8597 test $ac_status = 0; }; then 8598 # Now try to grab the symbols. 8599 nlist=conftest.nm 8600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8601 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8602 ac_status=$? 8603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8604 test $ac_status = 0; } && test -s "$nlist"; then 8605 # Try sorting and uniquifying the output. 8606 if sort "$nlist" | uniq > "$nlist"T; then 8607 mv -f "$nlist"T "$nlist" 8608 else 8609 rm -f "$nlist"T 8610 fi 8611 8612 # Make sure that we snagged all the symbols we need. 8613 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8614 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8615 cat <<_LT_EOF > conftest.$ac_ext 8616/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8617#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8618/* DATA imports from DLLs on WIN32 con't be const, because runtime 8619 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8620# define LT_DLSYM_CONST 8621#elif defined(__osf__) 8622/* This system does not cope well with relocations in const data. */ 8623# define LT_DLSYM_CONST 8624#else 8625# define LT_DLSYM_CONST const 8626#endif 8627 8628#ifdef __cplusplus 8629extern "C" { 8630#endif 8631 8632_LT_EOF 8633 # Now generate the symbol file. 8634 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8635 8636 cat <<_LT_EOF >> conftest.$ac_ext 8637 8638/* The mapping between symbol names and symbols. */ 8639LT_DLSYM_CONST struct { 8640 const char *name; 8641 void *address; 8642} 8643lt__PROGRAM__LTX_preloaded_symbols[] = 8644{ 8645 { "@PROGRAM@", (void *) 0 }, 8646_LT_EOF 8647 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8648 cat <<\_LT_EOF >> conftest.$ac_ext 8649 {0, (void *) 0} 8650}; 8651 8652/* This works around a problem in FreeBSD linker */ 8653#ifdef FREEBSD_WORKAROUND 8654static const void *lt_preloaded_setup() { 8655 return lt__PROGRAM__LTX_preloaded_symbols; 8656} 8657#endif 8658 8659#ifdef __cplusplus 8660} 8661#endif 8662_LT_EOF 8663 # Now try linking the two files. 8664 mv conftest.$ac_objext conftstm.$ac_objext 8665 lt_globsym_save_LIBS=$LIBS 8666 lt_globsym_save_CFLAGS=$CFLAGS 8667 LIBS="conftstm.$ac_objext" 8668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8670 (eval $ac_link) 2>&5 8671 ac_status=$? 8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8673 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8674 pipe_works=yes 8675 fi 8676 LIBS=$lt_globsym_save_LIBS 8677 CFLAGS=$lt_globsym_save_CFLAGS 8678 else 8679 echo "cannot find nm_test_func in $nlist" >&5 8680 fi 8681 else 8682 echo "cannot find nm_test_var in $nlist" >&5 8683 fi 8684 else 8685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8686 fi 8687 else 8688 echo "$progname: failed program was:" >&5 8689 cat conftest.$ac_ext >&5 8690 fi 8691 rm -rf conftest* conftst* 8692 8693 # Do not use the global_symbol_pipe unless it works. 8694 if test "$pipe_works" = yes; then 8695 break 8696 else 8697 lt_cv_sys_global_symbol_pipe= 8698 fi 8699done 8700 8701fi 8702 8703if test -z "$lt_cv_sys_global_symbol_pipe"; then 8704 lt_cv_sys_global_symbol_to_cdecl= 8705fi 8706if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8708$as_echo "failed" >&6; } 8709else 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8711$as_echo "ok" >&6; } 8712fi 8713 8714# Response file support. 8715if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8716 nm_file_list_spec='@' 8717elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8718 nm_file_list_spec='@' 8719fi 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8748$as_echo_n "checking for sysroot... " >&6; } 8749 8750# Check whether --with-sysroot was given. 8751if test "${with_sysroot+set}" = set; then : 8752 withval=$with_sysroot; 8753else 8754 with_sysroot=no 8755fi 8756 8757 8758lt_sysroot= 8759case ${with_sysroot} in #( 8760 yes) 8761 if test "$GCC" = yes; then 8762 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8763 fi 8764 ;; #( 8765 /*) 8766 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8767 ;; #( 8768 no|'') 8769 ;; #( 8770 *) 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8772$as_echo "${with_sysroot}" >&6; } 8773 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8774 ;; 8775esac 8776 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8778$as_echo "${lt_sysroot:-no}" >&6; } 8779 8780 8781 8782 8783 8784# Check whether --enable-libtool-lock was given. 8785if test "${enable_libtool_lock+set}" = set; then : 8786 enableval=$enable_libtool_lock; 8787fi 8788 8789test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8790 8791# Some flags need to be propagated to the compiler or linker for good 8792# libtool support. 8793case $host in 8794ia64-*-hpux*) 8795 # Find out which ABI we are using. 8796 echo 'int i;' > conftest.$ac_ext 8797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8798 (eval $ac_compile) 2>&5 8799 ac_status=$? 8800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8801 test $ac_status = 0; }; then 8802 case `/usr/bin/file conftest.$ac_objext` in 8803 *ELF-32*) 8804 HPUX_IA64_MODE="32" 8805 ;; 8806 *ELF-64*) 8807 HPUX_IA64_MODE="64" 8808 ;; 8809 esac 8810 fi 8811 rm -rf conftest* 8812 ;; 8813*-*-irix6*) 8814 # Find out which ABI we are using. 8815 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8817 (eval $ac_compile) 2>&5 8818 ac_status=$? 8819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8820 test $ac_status = 0; }; then 8821 if test "$lt_cv_prog_gnu_ld" = yes; then 8822 case `/usr/bin/file conftest.$ac_objext` in 8823 *32-bit*) 8824 LD="${LD-ld} -melf32bsmip" 8825 ;; 8826 *N32*) 8827 LD="${LD-ld} -melf32bmipn32" 8828 ;; 8829 *64-bit*) 8830 LD="${LD-ld} -melf64bmip" 8831 ;; 8832 esac 8833 else 8834 case `/usr/bin/file conftest.$ac_objext` in 8835 *32-bit*) 8836 LD="${LD-ld} -32" 8837 ;; 8838 *N32*) 8839 LD="${LD-ld} -n32" 8840 ;; 8841 *64-bit*) 8842 LD="${LD-ld} -64" 8843 ;; 8844 esac 8845 fi 8846 fi 8847 rm -rf conftest* 8848 ;; 8849 8850x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8851s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8852 # Find out which ABI we are using. 8853 echo 'int i;' > conftest.$ac_ext 8854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8855 (eval $ac_compile) 2>&5 8856 ac_status=$? 8857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8858 test $ac_status = 0; }; then 8859 case `/usr/bin/file conftest.o` in 8860 *32-bit*) 8861 case $host in 8862 x86_64-*kfreebsd*-gnu) 8863 LD="${LD-ld} -m elf_i386_fbsd" 8864 ;; 8865 x86_64-*linux*) 8866 LD="${LD-ld} -m elf_i386" 8867 ;; 8868 ppc64-*linux*|powerpc64-*linux*) 8869 LD="${LD-ld} -m elf32ppclinux" 8870 ;; 8871 s390x-*linux*) 8872 LD="${LD-ld} -m elf_s390" 8873 ;; 8874 sparc64-*linux*) 8875 LD="${LD-ld} -m elf32_sparc" 8876 ;; 8877 esac 8878 ;; 8879 *64-bit*) 8880 case $host in 8881 x86_64-*kfreebsd*-gnu) 8882 LD="${LD-ld} -m elf_x86_64_fbsd" 8883 ;; 8884 x86_64-*linux*) 8885 LD="${LD-ld} -m elf_x86_64" 8886 ;; 8887 ppc*-*linux*|powerpc*-*linux*) 8888 LD="${LD-ld} -m elf64ppc" 8889 ;; 8890 s390*-*linux*|s390*-*tpf*) 8891 LD="${LD-ld} -m elf64_s390" 8892 ;; 8893 sparc*-*linux*) 8894 LD="${LD-ld} -m elf64_sparc" 8895 ;; 8896 esac 8897 ;; 8898 esac 8899 fi 8900 rm -rf conftest* 8901 ;; 8902 8903*-*-sco3.2v5*) 8904 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8905 SAVE_CFLAGS="$CFLAGS" 8906 CFLAGS="$CFLAGS -belf" 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8908$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8909if ${lt_cv_cc_needs_belf+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 ac_ext=c 8913ac_cpp='$CPP $CPPFLAGS' 8914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8916ac_compiler_gnu=$ac_cv_c_compiler_gnu 8917 8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920 8921int 8922main () 8923{ 8924 8925 ; 8926 return 0; 8927} 8928_ACEOF 8929if ac_fn_c_try_link "$LINENO"; then : 8930 lt_cv_cc_needs_belf=yes 8931else 8932 lt_cv_cc_needs_belf=no 8933fi 8934rm -f core conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936 ac_ext=c 8937ac_cpp='$CPP $CPPFLAGS' 8938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8940ac_compiler_gnu=$ac_cv_c_compiler_gnu 8941 8942fi 8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8944$as_echo "$lt_cv_cc_needs_belf" >&6; } 8945 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8946 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8947 CFLAGS="$SAVE_CFLAGS" 8948 fi 8949 ;; 8950*-*solaris*) 8951 # Find out which ABI we are using. 8952 echo 'int i;' > conftest.$ac_ext 8953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8954 (eval $ac_compile) 2>&5 8955 ac_status=$? 8956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8957 test $ac_status = 0; }; then 8958 case `/usr/bin/file conftest.o` in 8959 *64-bit*) 8960 case $lt_cv_prog_gnu_ld in 8961 yes*) 8962 case $host in 8963 i?86-*-solaris*) 8964 LD="${LD-ld} -m elf_x86_64" 8965 ;; 8966 sparc*-*-solaris*) 8967 LD="${LD-ld} -m elf64_sparc" 8968 ;; 8969 esac 8970 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8971 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8972 LD="${LD-ld}_sol2" 8973 fi 8974 ;; 8975 *) 8976 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8977 LD="${LD-ld} -64" 8978 fi 8979 ;; 8980 esac 8981 ;; 8982 esac 8983 fi 8984 rm -rf conftest* 8985 ;; 8986esac 8987 8988need_locks="$enable_libtool_lock" 8989 8990if test -n "$ac_tool_prefix"; then 8991 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8992set dummy ${ac_tool_prefix}mt; ac_word=$2 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8994$as_echo_n "checking for $ac_word... " >&6; } 8995if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8996 $as_echo_n "(cached) " >&6 8997else 8998 if test -n "$MANIFEST_TOOL"; then 8999 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9000else 9001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9002for as_dir in $PATH 9003do 9004 IFS=$as_save_IFS 9005 test -z "$as_dir" && as_dir=. 9006 for ac_exec_ext in '' $ac_executable_extensions; do 9007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9008 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9010 break 2 9011 fi 9012done 9013 done 9014IFS=$as_save_IFS 9015 9016fi 9017fi 9018MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9019if test -n "$MANIFEST_TOOL"; then 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9021$as_echo "$MANIFEST_TOOL" >&6; } 9022else 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9024$as_echo "no" >&6; } 9025fi 9026 9027 9028fi 9029if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9030 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9031 # Extract the first word of "mt", so it can be a program name with args. 9032set dummy mt; ac_word=$2 9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9034$as_echo_n "checking for $ac_word... " >&6; } 9035if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 if test -n "$ac_ct_MANIFEST_TOOL"; then 9039 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9040else 9041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9042for as_dir in $PATH 9043do 9044 IFS=$as_save_IFS 9045 test -z "$as_dir" && as_dir=. 9046 for ac_exec_ext in '' $ac_executable_extensions; do 9047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9048 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9050 break 2 9051 fi 9052done 9053 done 9054IFS=$as_save_IFS 9055 9056fi 9057fi 9058ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9059if test -n "$ac_ct_MANIFEST_TOOL"; then 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9061$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9062else 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9064$as_echo "no" >&6; } 9065fi 9066 9067 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9068 MANIFEST_TOOL=":" 9069 else 9070 case $cross_compiling:$ac_tool_warned in 9071yes:) 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9074ac_tool_warned=yes ;; 9075esac 9076 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9077 fi 9078else 9079 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9080fi 9081 9082test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9084$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9085if ${lt_cv_path_mainfest_tool+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087else 9088 lt_cv_path_mainfest_tool=no 9089 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9090 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9091 cat conftest.err >&5 9092 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9093 lt_cv_path_mainfest_tool=yes 9094 fi 9095 rm -f conftest* 9096fi 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9098$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9099if test "x$lt_cv_path_mainfest_tool" != xyes; then 9100 MANIFEST_TOOL=: 9101fi 9102 9103 9104 9105 9106 9107 9108 case $host_os in 9109 rhapsody* | darwin*) 9110 if test -n "$ac_tool_prefix"; then 9111 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9112set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9114$as_echo_n "checking for $ac_word... " >&6; } 9115if ${ac_cv_prog_DSYMUTIL+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 if test -n "$DSYMUTIL"; then 9119 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9120else 9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9122for as_dir in $PATH 9123do 9124 IFS=$as_save_IFS 9125 test -z "$as_dir" && as_dir=. 9126 for ac_exec_ext in '' $ac_executable_extensions; do 9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9128 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9130 break 2 9131 fi 9132done 9133 done 9134IFS=$as_save_IFS 9135 9136fi 9137fi 9138DSYMUTIL=$ac_cv_prog_DSYMUTIL 9139if test -n "$DSYMUTIL"; then 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9141$as_echo "$DSYMUTIL" >&6; } 9142else 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9144$as_echo "no" >&6; } 9145fi 9146 9147 9148fi 9149if test -z "$ac_cv_prog_DSYMUTIL"; then 9150 ac_ct_DSYMUTIL=$DSYMUTIL 9151 # Extract the first word of "dsymutil", so it can be a program name with args. 9152set dummy dsymutil; ac_word=$2 9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9154$as_echo_n "checking for $ac_word... " >&6; } 9155if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9156 $as_echo_n "(cached) " >&6 9157else 9158 if test -n "$ac_ct_DSYMUTIL"; then 9159 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9160else 9161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9162for as_dir in $PATH 9163do 9164 IFS=$as_save_IFS 9165 test -z "$as_dir" && as_dir=. 9166 for ac_exec_ext in '' $ac_executable_extensions; do 9167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9168 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9170 break 2 9171 fi 9172done 9173 done 9174IFS=$as_save_IFS 9175 9176fi 9177fi 9178ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9179if test -n "$ac_ct_DSYMUTIL"; then 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9181$as_echo "$ac_ct_DSYMUTIL" >&6; } 9182else 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9184$as_echo "no" >&6; } 9185fi 9186 9187 if test "x$ac_ct_DSYMUTIL" = x; then 9188 DSYMUTIL=":" 9189 else 9190 case $cross_compiling:$ac_tool_warned in 9191yes:) 9192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9194ac_tool_warned=yes ;; 9195esac 9196 DSYMUTIL=$ac_ct_DSYMUTIL 9197 fi 9198else 9199 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9200fi 9201 9202 if test -n "$ac_tool_prefix"; then 9203 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9204set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9206$as_echo_n "checking for $ac_word... " >&6; } 9207if ${ac_cv_prog_NMEDIT+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 if test -n "$NMEDIT"; then 9211 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9212else 9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9214for as_dir in $PATH 9215do 9216 IFS=$as_save_IFS 9217 test -z "$as_dir" && as_dir=. 9218 for ac_exec_ext in '' $ac_executable_extensions; do 9219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9220 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9222 break 2 9223 fi 9224done 9225 done 9226IFS=$as_save_IFS 9227 9228fi 9229fi 9230NMEDIT=$ac_cv_prog_NMEDIT 9231if test -n "$NMEDIT"; then 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9233$as_echo "$NMEDIT" >&6; } 9234else 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9236$as_echo "no" >&6; } 9237fi 9238 9239 9240fi 9241if test -z "$ac_cv_prog_NMEDIT"; then 9242 ac_ct_NMEDIT=$NMEDIT 9243 # Extract the first word of "nmedit", so it can be a program name with args. 9244set dummy nmedit; ac_word=$2 9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9246$as_echo_n "checking for $ac_word... " >&6; } 9247if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 if test -n "$ac_ct_NMEDIT"; then 9251 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9252else 9253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9254for as_dir in $PATH 9255do 9256 IFS=$as_save_IFS 9257 test -z "$as_dir" && as_dir=. 9258 for ac_exec_ext in '' $ac_executable_extensions; do 9259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9260 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9262 break 2 9263 fi 9264done 9265 done 9266IFS=$as_save_IFS 9267 9268fi 9269fi 9270ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9271if test -n "$ac_ct_NMEDIT"; then 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9273$as_echo "$ac_ct_NMEDIT" >&6; } 9274else 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9276$as_echo "no" >&6; } 9277fi 9278 9279 if test "x$ac_ct_NMEDIT" = x; then 9280 NMEDIT=":" 9281 else 9282 case $cross_compiling:$ac_tool_warned in 9283yes:) 9284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9286ac_tool_warned=yes ;; 9287esac 9288 NMEDIT=$ac_ct_NMEDIT 9289 fi 9290else 9291 NMEDIT="$ac_cv_prog_NMEDIT" 9292fi 9293 9294 if test -n "$ac_tool_prefix"; then 9295 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9296set dummy ${ac_tool_prefix}lipo; ac_word=$2 9297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9298$as_echo_n "checking for $ac_word... " >&6; } 9299if ${ac_cv_prog_LIPO+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301else 9302 if test -n "$LIPO"; then 9303 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9304else 9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9306for as_dir in $PATH 9307do 9308 IFS=$as_save_IFS 9309 test -z "$as_dir" && as_dir=. 9310 for ac_exec_ext in '' $ac_executable_extensions; do 9311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9312 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9314 break 2 9315 fi 9316done 9317 done 9318IFS=$as_save_IFS 9319 9320fi 9321fi 9322LIPO=$ac_cv_prog_LIPO 9323if test -n "$LIPO"; then 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9325$as_echo "$LIPO" >&6; } 9326else 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9328$as_echo "no" >&6; } 9329fi 9330 9331 9332fi 9333if test -z "$ac_cv_prog_LIPO"; then 9334 ac_ct_LIPO=$LIPO 9335 # Extract the first word of "lipo", so it can be a program name with args. 9336set dummy lipo; ac_word=$2 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9338$as_echo_n "checking for $ac_word... " >&6; } 9339if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 if test -n "$ac_ct_LIPO"; then 9343 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9344else 9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9346for as_dir in $PATH 9347do 9348 IFS=$as_save_IFS 9349 test -z "$as_dir" && as_dir=. 9350 for ac_exec_ext in '' $ac_executable_extensions; do 9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9352 ac_cv_prog_ac_ct_LIPO="lipo" 9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9354 break 2 9355 fi 9356done 9357 done 9358IFS=$as_save_IFS 9359 9360fi 9361fi 9362ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9363if test -n "$ac_ct_LIPO"; then 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9365$as_echo "$ac_ct_LIPO" >&6; } 9366else 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9368$as_echo "no" >&6; } 9369fi 9370 9371 if test "x$ac_ct_LIPO" = x; then 9372 LIPO=":" 9373 else 9374 case $cross_compiling:$ac_tool_warned in 9375yes:) 9376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9378ac_tool_warned=yes ;; 9379esac 9380 LIPO=$ac_ct_LIPO 9381 fi 9382else 9383 LIPO="$ac_cv_prog_LIPO" 9384fi 9385 9386 if test -n "$ac_tool_prefix"; then 9387 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9388set dummy ${ac_tool_prefix}otool; ac_word=$2 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9390$as_echo_n "checking for $ac_word... " >&6; } 9391if ${ac_cv_prog_OTOOL+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 if test -n "$OTOOL"; then 9395 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9396else 9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9398for as_dir in $PATH 9399do 9400 IFS=$as_save_IFS 9401 test -z "$as_dir" && as_dir=. 9402 for ac_exec_ext in '' $ac_executable_extensions; do 9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9404 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9406 break 2 9407 fi 9408done 9409 done 9410IFS=$as_save_IFS 9411 9412fi 9413fi 9414OTOOL=$ac_cv_prog_OTOOL 9415if test -n "$OTOOL"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9417$as_echo "$OTOOL" >&6; } 9418else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420$as_echo "no" >&6; } 9421fi 9422 9423 9424fi 9425if test -z "$ac_cv_prog_OTOOL"; then 9426 ac_ct_OTOOL=$OTOOL 9427 # Extract the first word of "otool", so it can be a program name with args. 9428set dummy otool; ac_word=$2 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9430$as_echo_n "checking for $ac_word... " >&6; } 9431if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 if test -n "$ac_ct_OTOOL"; then 9435 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9436else 9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9438for as_dir in $PATH 9439do 9440 IFS=$as_save_IFS 9441 test -z "$as_dir" && as_dir=. 9442 for ac_exec_ext in '' $ac_executable_extensions; do 9443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9444 ac_cv_prog_ac_ct_OTOOL="otool" 9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9446 break 2 9447 fi 9448done 9449 done 9450IFS=$as_save_IFS 9451 9452fi 9453fi 9454ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9455if test -n "$ac_ct_OTOOL"; then 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9457$as_echo "$ac_ct_OTOOL" >&6; } 9458else 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9460$as_echo "no" >&6; } 9461fi 9462 9463 if test "x$ac_ct_OTOOL" = x; then 9464 OTOOL=":" 9465 else 9466 case $cross_compiling:$ac_tool_warned in 9467yes:) 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9470ac_tool_warned=yes ;; 9471esac 9472 OTOOL=$ac_ct_OTOOL 9473 fi 9474else 9475 OTOOL="$ac_cv_prog_OTOOL" 9476fi 9477 9478 if test -n "$ac_tool_prefix"; then 9479 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9480set dummy ${ac_tool_prefix}otool64; ac_word=$2 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9482$as_echo_n "checking for $ac_word... " >&6; } 9483if ${ac_cv_prog_OTOOL64+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485else 9486 if test -n "$OTOOL64"; then 9487 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9488else 9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9490for as_dir in $PATH 9491do 9492 IFS=$as_save_IFS 9493 test -z "$as_dir" && as_dir=. 9494 for ac_exec_ext in '' $ac_executable_extensions; do 9495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9496 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9498 break 2 9499 fi 9500done 9501 done 9502IFS=$as_save_IFS 9503 9504fi 9505fi 9506OTOOL64=$ac_cv_prog_OTOOL64 9507if test -n "$OTOOL64"; then 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9509$as_echo "$OTOOL64" >&6; } 9510else 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9512$as_echo "no" >&6; } 9513fi 9514 9515 9516fi 9517if test -z "$ac_cv_prog_OTOOL64"; then 9518 ac_ct_OTOOL64=$OTOOL64 9519 # Extract the first word of "otool64", so it can be a program name with args. 9520set dummy otool64; ac_word=$2 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9522$as_echo_n "checking for $ac_word... " >&6; } 9523if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 if test -n "$ac_ct_OTOOL64"; then 9527 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9528else 9529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9530for as_dir in $PATH 9531do 9532 IFS=$as_save_IFS 9533 test -z "$as_dir" && as_dir=. 9534 for ac_exec_ext in '' $ac_executable_extensions; do 9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9536 ac_cv_prog_ac_ct_OTOOL64="otool64" 9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9538 break 2 9539 fi 9540done 9541 done 9542IFS=$as_save_IFS 9543 9544fi 9545fi 9546ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9547if test -n "$ac_ct_OTOOL64"; then 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9549$as_echo "$ac_ct_OTOOL64" >&6; } 9550else 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9552$as_echo "no" >&6; } 9553fi 9554 9555 if test "x$ac_ct_OTOOL64" = x; then 9556 OTOOL64=":" 9557 else 9558 case $cross_compiling:$ac_tool_warned in 9559yes:) 9560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9562ac_tool_warned=yes ;; 9563esac 9564 OTOOL64=$ac_ct_OTOOL64 9565 fi 9566else 9567 OTOOL64="$ac_cv_prog_OTOOL64" 9568fi 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9597$as_echo_n "checking for -single_module linker flag... " >&6; } 9598if ${lt_cv_apple_cc_single_mod+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 lt_cv_apple_cc_single_mod=no 9602 if test -z "${LT_MULTI_MODULE}"; then 9603 # By default we will add the -single_module flag. You can override 9604 # by either setting the environment variable LT_MULTI_MODULE 9605 # non-empty at configure time, or by adding -multi_module to the 9606 # link flags. 9607 rm -rf libconftest.dylib* 9608 echo "int foo(void){return 1;}" > conftest.c 9609 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9610-dynamiclib -Wl,-single_module conftest.c" >&5 9611 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9612 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9613 _lt_result=$? 9614 # If there is a non-empty error log, and "single_module" 9615 # appears in it, assume the flag caused a linker warning 9616 if test -s conftest.err && $GREP single_module conftest.err; then 9617 cat conftest.err >&5 9618 # Otherwise, if the output was created with a 0 exit code from 9619 # the compiler, it worked. 9620 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9621 lt_cv_apple_cc_single_mod=yes 9622 else 9623 cat conftest.err >&5 9624 fi 9625 rm -rf libconftest.dylib* 9626 rm -f conftest.* 9627 fi 9628fi 9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9630$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9631 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9633$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9634if ${lt_cv_ld_exported_symbols_list+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636else 9637 lt_cv_ld_exported_symbols_list=no 9638 save_LDFLAGS=$LDFLAGS 9639 echo "_main" > conftest.sym 9640 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643 9644int 9645main () 9646{ 9647 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO"; then : 9653 lt_cv_ld_exported_symbols_list=yes 9654else 9655 lt_cv_ld_exported_symbols_list=no 9656fi 9657rm -f core conftest.err conftest.$ac_objext \ 9658 conftest$ac_exeext conftest.$ac_ext 9659 LDFLAGS="$save_LDFLAGS" 9660 9661fi 9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9663$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9664 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9666$as_echo_n "checking for -force_load linker flag... " >&6; } 9667if ${lt_cv_ld_force_load+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 lt_cv_ld_force_load=no 9671 cat > conftest.c << _LT_EOF 9672int forced_loaded() { return 2;} 9673_LT_EOF 9674 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9675 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9676 echo "$AR cru libconftest.a conftest.o" >&5 9677 $AR cru libconftest.a conftest.o 2>&5 9678 echo "$RANLIB libconftest.a" >&5 9679 $RANLIB libconftest.a 2>&5 9680 cat > conftest.c << _LT_EOF 9681int main() { return 0;} 9682_LT_EOF 9683 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9684 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9685 _lt_result=$? 9686 if test -s conftest.err && $GREP force_load conftest.err; then 9687 cat conftest.err >&5 9688 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9689 lt_cv_ld_force_load=yes 9690 else 9691 cat conftest.err >&5 9692 fi 9693 rm -f conftest.err libconftest.a conftest conftest.c 9694 rm -rf conftest.dSYM 9695 9696fi 9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9698$as_echo "$lt_cv_ld_force_load" >&6; } 9699 case $host_os in 9700 rhapsody* | darwin1.[012]) 9701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9702 darwin1.*) 9703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9704 darwin*) # darwin 5.x on 9705 # if running on 10.5 or later, the deployment target defaults 9706 # to the OS version, if on x86, and 10.4, the deployment 9707 # target defaults to 10.4. Don't you love it? 9708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9709 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9711 10.[012]*) 9712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9713 10.*) 9714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9715 esac 9716 ;; 9717 esac 9718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9719 _lt_dar_single_mod='$single_module' 9720 fi 9721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9723 else 9724 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9725 fi 9726 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9727 _lt_dsymutil='~$DSYMUTIL $lib || :' 9728 else 9729 _lt_dsymutil= 9730 fi 9731 ;; 9732 esac 9733 9734for ac_header in dlfcn.h 9735do : 9736 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9737" 9738if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9739 cat >>confdefs.h <<_ACEOF 9740#define HAVE_DLFCN_H 1 9741_ACEOF 9742 9743fi 9744 9745done 9746 9747 9748 9749 9750 9751 9752 9753# Set options 9754 9755 9756 9757 enable_dlopen=no 9758 9759 9760 enable_win32_dll=no 9761 9762 9763 # Check whether --enable-shared was given. 9764if test "${enable_shared+set}" = set; then : 9765 enableval=$enable_shared; p=${PACKAGE-default} 9766 case $enableval in 9767 yes) enable_shared=yes ;; 9768 no) enable_shared=no ;; 9769 *) 9770 enable_shared=no 9771 # Look at the argument we got. We use all the common list separators. 9772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9773 for pkg in $enableval; do 9774 IFS="$lt_save_ifs" 9775 if test "X$pkg" = "X$p"; then 9776 enable_shared=yes 9777 fi 9778 done 9779 IFS="$lt_save_ifs" 9780 ;; 9781 esac 9782else 9783 enable_shared=yes 9784fi 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 # Check whether --enable-static was given. 9795if test "${enable_static+set}" = set; then : 9796 enableval=$enable_static; p=${PACKAGE-default} 9797 case $enableval in 9798 yes) enable_static=yes ;; 9799 no) enable_static=no ;; 9800 *) 9801 enable_static=no 9802 # Look at the argument we got. We use all the common list separators. 9803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9804 for pkg in $enableval; do 9805 IFS="$lt_save_ifs" 9806 if test "X$pkg" = "X$p"; then 9807 enable_static=yes 9808 fi 9809 done 9810 IFS="$lt_save_ifs" 9811 ;; 9812 esac 9813else 9814 enable_static=yes 9815fi 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826# Check whether --with-pic was given. 9827if test "${with_pic+set}" = set; then : 9828 withval=$with_pic; lt_p=${PACKAGE-default} 9829 case $withval in 9830 yes|no) pic_mode=$withval ;; 9831 *) 9832 pic_mode=default 9833 # Look at the argument we got. We use all the common list separators. 9834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9835 for lt_pkg in $withval; do 9836 IFS="$lt_save_ifs" 9837 if test "X$lt_pkg" = "X$lt_p"; then 9838 pic_mode=yes 9839 fi 9840 done 9841 IFS="$lt_save_ifs" 9842 ;; 9843 esac 9844else 9845 pic_mode=default 9846fi 9847 9848 9849test -z "$pic_mode" && pic_mode=default 9850 9851 9852 9853 9854 9855 9856 9857 # Check whether --enable-fast-install was given. 9858if test "${enable_fast_install+set}" = set; then : 9859 enableval=$enable_fast_install; p=${PACKAGE-default} 9860 case $enableval in 9861 yes) enable_fast_install=yes ;; 9862 no) enable_fast_install=no ;; 9863 *) 9864 enable_fast_install=no 9865 # Look at the argument we got. We use all the common list separators. 9866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9867 for pkg in $enableval; do 9868 IFS="$lt_save_ifs" 9869 if test "X$pkg" = "X$p"; then 9870 enable_fast_install=yes 9871 fi 9872 done 9873 IFS="$lt_save_ifs" 9874 ;; 9875 esac 9876else 9877 enable_fast_install=yes 9878fi 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890# This can be used to rebuild libtool when needed 9891LIBTOOL_DEPS="$ltmain" 9892 9893# Always use our own libtool. 9894LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925test -z "$LN_S" && LN_S="ln -s" 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940if test -n "${ZSH_VERSION+set}" ; then 9941 setopt NO_GLOB_SUBST 9942fi 9943 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9945$as_echo_n "checking for objdir... " >&6; } 9946if ${lt_cv_objdir+:} false; then : 9947 $as_echo_n "(cached) " >&6 9948else 9949 rm -f .libs 2>/dev/null 9950mkdir .libs 2>/dev/null 9951if test -d .libs; then 9952 lt_cv_objdir=.libs 9953else 9954 # MS-DOS does not allow filenames that begin with a dot. 9955 lt_cv_objdir=_libs 9956fi 9957rmdir .libs 2>/dev/null 9958fi 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9960$as_echo "$lt_cv_objdir" >&6; } 9961objdir=$lt_cv_objdir 9962 9963 9964 9965 9966 9967cat >>confdefs.h <<_ACEOF 9968#define LT_OBJDIR "$lt_cv_objdir/" 9969_ACEOF 9970 9971 9972 9973 9974case $host_os in 9975aix3*) 9976 # AIX sometimes has problems with the GCC collect2 program. For some 9977 # reason, if we set the COLLECT_NAMES environment variable, the problems 9978 # vanish in a puff of smoke. 9979 if test "X${COLLECT_NAMES+set}" != Xset; then 9980 COLLECT_NAMES= 9981 export COLLECT_NAMES 9982 fi 9983 ;; 9984esac 9985 9986# Global variables: 9987ofile=libtool 9988can_build_shared=yes 9989 9990# All known linkers require a `.a' archive for static linking (except MSVC, 9991# which needs '.lib'). 9992libext=a 9993 9994with_gnu_ld="$lt_cv_prog_gnu_ld" 9995 9996old_CC="$CC" 9997old_CFLAGS="$CFLAGS" 9998 9999# Set sane defaults for various variables 10000test -z "$CC" && CC=cc 10001test -z "$LTCC" && LTCC=$CC 10002test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10003test -z "$LD" && LD=ld 10004test -z "$ac_objext" && ac_objext=o 10005 10006for cc_temp in $compiler""; do 10007 case $cc_temp in 10008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10010 \-*) ;; 10011 *) break;; 10012 esac 10013done 10014cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10015 10016 10017# Only perform the check for file, if the check method requires it 10018test -z "$MAGIC_CMD" && MAGIC_CMD=file 10019case $deplibs_check_method in 10020file_magic*) 10021 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10023$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10024if ${lt_cv_path_MAGIC_CMD+:} false; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 case $MAGIC_CMD in 10028[\\/*] | ?:[\\/]*) 10029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10030 ;; 10031*) 10032 lt_save_MAGIC_CMD="$MAGIC_CMD" 10033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10034 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10035 for ac_dir in $ac_dummy; do 10036 IFS="$lt_save_ifs" 10037 test -z "$ac_dir" && ac_dir=. 10038 if test -f $ac_dir/${ac_tool_prefix}file; then 10039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10040 if test -n "$file_magic_test_file"; then 10041 case $deplibs_check_method in 10042 "file_magic "*) 10043 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10046 $EGREP "$file_magic_regex" > /dev/null; then 10047 : 10048 else 10049 cat <<_LT_EOF 1>&2 10050 10051*** Warning: the command libtool uses to detect shared libraries, 10052*** $file_magic_cmd, produces output that libtool cannot recognize. 10053*** The result is that libtool may fail to recognize shared libraries 10054*** as such. This will affect the creation of libtool libraries that 10055*** depend on shared libraries, but programs linked with such libtool 10056*** libraries will work regardless of this problem. Nevertheless, you 10057*** may want to report the problem to your system manager and/or to 10058*** bug-libtool@gnu.org 10059 10060_LT_EOF 10061 fi ;; 10062 esac 10063 fi 10064 break 10065 fi 10066 done 10067 IFS="$lt_save_ifs" 10068 MAGIC_CMD="$lt_save_MAGIC_CMD" 10069 ;; 10070esac 10071fi 10072 10073MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10074if test -n "$MAGIC_CMD"; then 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10076$as_echo "$MAGIC_CMD" >&6; } 10077else 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10079$as_echo "no" >&6; } 10080fi 10081 10082 10083 10084 10085 10086if test -z "$lt_cv_path_MAGIC_CMD"; then 10087 if test -n "$ac_tool_prefix"; then 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10089$as_echo_n "checking for file... " >&6; } 10090if ${lt_cv_path_MAGIC_CMD+:} false; then : 10091 $as_echo_n "(cached) " >&6 10092else 10093 case $MAGIC_CMD in 10094[\\/*] | ?:[\\/]*) 10095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10096 ;; 10097*) 10098 lt_save_MAGIC_CMD="$MAGIC_CMD" 10099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10101 for ac_dir in $ac_dummy; do 10102 IFS="$lt_save_ifs" 10103 test -z "$ac_dir" && ac_dir=. 10104 if test -f $ac_dir/file; then 10105 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10106 if test -n "$file_magic_test_file"; then 10107 case $deplibs_check_method in 10108 "file_magic "*) 10109 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10112 $EGREP "$file_magic_regex" > /dev/null; then 10113 : 10114 else 10115 cat <<_LT_EOF 1>&2 10116 10117*** Warning: the command libtool uses to detect shared libraries, 10118*** $file_magic_cmd, produces output that libtool cannot recognize. 10119*** The result is that libtool may fail to recognize shared libraries 10120*** as such. This will affect the creation of libtool libraries that 10121*** depend on shared libraries, but programs linked with such libtool 10122*** libraries will work regardless of this problem. Nevertheless, you 10123*** may want to report the problem to your system manager and/or to 10124*** bug-libtool@gnu.org 10125 10126_LT_EOF 10127 fi ;; 10128 esac 10129 fi 10130 break 10131 fi 10132 done 10133 IFS="$lt_save_ifs" 10134 MAGIC_CMD="$lt_save_MAGIC_CMD" 10135 ;; 10136esac 10137fi 10138 10139MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10140if test -n "$MAGIC_CMD"; then 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10142$as_echo "$MAGIC_CMD" >&6; } 10143else 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10145$as_echo "no" >&6; } 10146fi 10147 10148 10149 else 10150 MAGIC_CMD=: 10151 fi 10152fi 10153 10154 fi 10155 ;; 10156esac 10157 10158# Use C for the default configuration in the libtool script 10159 10160lt_save_CC="$CC" 10161ac_ext=c 10162ac_cpp='$CPP $CPPFLAGS' 10163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10165ac_compiler_gnu=$ac_cv_c_compiler_gnu 10166 10167 10168# Source file extension for C test sources. 10169ac_ext=c 10170 10171# Object file extension for compiled C test sources. 10172objext=o 10173objext=$objext 10174 10175# Code to be used in simple compile tests 10176lt_simple_compile_test_code="int some_variable = 0;" 10177 10178# Code to be used in simple link tests 10179lt_simple_link_test_code='int main(){return(0);}' 10180 10181 10182 10183 10184 10185 10186 10187# If no C compiler was specified, use CC. 10188LTCC=${LTCC-"$CC"} 10189 10190# If no C compiler flags were specified, use CFLAGS. 10191LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10192 10193# Allow CC to be a program name with arguments. 10194compiler=$CC 10195 10196# Save the default compiler, since it gets overwritten when the other 10197# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10198compiler_DEFAULT=$CC 10199 10200# save warnings/boilerplate of simple test code 10201ac_outfile=conftest.$ac_objext 10202echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10204_lt_compiler_boilerplate=`cat conftest.err` 10205$RM conftest* 10206 10207ac_outfile=conftest.$ac_objext 10208echo "$lt_simple_link_test_code" >conftest.$ac_ext 10209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10210_lt_linker_boilerplate=`cat conftest.err` 10211$RM -r conftest* 10212 10213 10214if test -n "$compiler"; then 10215 10216lt_prog_compiler_no_builtin_flag= 10217 10218if test "$GCC" = yes; then 10219 case $cc_basename in 10220 nvcc*) 10221 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10222 *) 10223 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10224 esac 10225 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10227$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10228if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10229 $as_echo_n "(cached) " >&6 10230else 10231 lt_cv_prog_compiler_rtti_exceptions=no 10232 ac_outfile=conftest.$ac_objext 10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10234 lt_compiler_flag="-fno-rtti -fno-exceptions" 10235 # Insert the option either (1) after the last *FLAGS variable, or 10236 # (2) before a word containing "conftest.", or (3) at the end. 10237 # Note that $ac_compile itself does not contain backslashes and begins 10238 # with a dollar sign (not a hyphen), so the echo should work correctly. 10239 # The option is referenced via a variable to avoid confusing sed. 10240 lt_compile=`echo "$ac_compile" | $SED \ 10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10243 -e 's:$: $lt_compiler_flag:'` 10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10245 (eval "$lt_compile" 2>conftest.err) 10246 ac_status=$? 10247 cat conftest.err >&5 10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10249 if (exit $ac_status) && test -s "$ac_outfile"; then 10250 # The compiler can only warn and ignore the option if not recognized 10251 # So say no if there are warnings other than the usual output. 10252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10255 lt_cv_prog_compiler_rtti_exceptions=yes 10256 fi 10257 fi 10258 $RM conftest* 10259 10260fi 10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10262$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10263 10264if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10265 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10266else 10267 : 10268fi 10269 10270fi 10271 10272 10273 10274 10275 10276 10277 lt_prog_compiler_wl= 10278lt_prog_compiler_pic= 10279lt_prog_compiler_static= 10280 10281 10282 if test "$GCC" = yes; then 10283 lt_prog_compiler_wl='-Wl,' 10284 lt_prog_compiler_static='-static' 10285 10286 case $host_os in 10287 aix*) 10288 # All AIX code is PIC. 10289 if test "$host_cpu" = ia64; then 10290 # AIX 5 now supports IA64 processor 10291 lt_prog_compiler_static='-Bstatic' 10292 fi 10293 ;; 10294 10295 amigaos*) 10296 case $host_cpu in 10297 powerpc) 10298 # see comment about AmigaOS4 .so support 10299 lt_prog_compiler_pic='-fPIC' 10300 ;; 10301 m68k) 10302 # FIXME: we need at least 68020 code to build shared libraries, but 10303 # adding the `-m68020' flag to GCC prevents building anything better, 10304 # like `-m68040'. 10305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10306 ;; 10307 esac 10308 ;; 10309 10310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10311 # PIC is the default for these OSes. 10312 ;; 10313 10314 mingw* | cygwin* | pw32* | os2* | cegcc*) 10315 # This hack is so that the source file can tell whether it is being 10316 # built for inclusion in a dll (and should export symbols for example). 10317 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10318 # (--disable-auto-import) libraries 10319 lt_prog_compiler_pic='-DDLL_EXPORT' 10320 ;; 10321 10322 darwin* | rhapsody*) 10323 # PIC is the default on this platform 10324 # Common symbols not allowed in MH_DYLIB files 10325 lt_prog_compiler_pic='-fno-common' 10326 ;; 10327 10328 haiku*) 10329 # PIC is the default for Haiku. 10330 # The "-static" flag exists, but is broken. 10331 lt_prog_compiler_static= 10332 ;; 10333 10334 hpux*) 10335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10337 # sets the default TLS model and affects inlining. 10338 case $host_cpu in 10339 hppa*64*) 10340 # +Z the default 10341 ;; 10342 *) 10343 lt_prog_compiler_pic='-fPIC' 10344 ;; 10345 esac 10346 ;; 10347 10348 interix[3-9]*) 10349 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10350 # Instead, we relocate shared libraries at runtime. 10351 ;; 10352 10353 msdosdjgpp*) 10354 # Just because we use GCC doesn't mean we suddenly get shared libraries 10355 # on systems that don't support them. 10356 lt_prog_compiler_can_build_shared=no 10357 enable_shared=no 10358 ;; 10359 10360 *nto* | *qnx*) 10361 # QNX uses GNU C++, but need to define -shared option too, otherwise 10362 # it will coredump. 10363 lt_prog_compiler_pic='-fPIC -shared' 10364 ;; 10365 10366 sysv4*MP*) 10367 if test -d /usr/nec; then 10368 lt_prog_compiler_pic=-Kconform_pic 10369 fi 10370 ;; 10371 10372 *) 10373 lt_prog_compiler_pic='-fPIC' 10374 ;; 10375 esac 10376 10377 case $cc_basename in 10378 nvcc*) # Cuda Compiler Driver 2.2 10379 lt_prog_compiler_wl='-Xlinker ' 10380 if test -n "$lt_prog_compiler_pic"; then 10381 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10382 fi 10383 ;; 10384 esac 10385 else 10386 # PORTME Check for flag to pass linker flags through the system compiler. 10387 case $host_os in 10388 aix*) 10389 lt_prog_compiler_wl='-Wl,' 10390 if test "$host_cpu" = ia64; then 10391 # AIX 5 now supports IA64 processor 10392 lt_prog_compiler_static='-Bstatic' 10393 else 10394 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10395 fi 10396 ;; 10397 10398 mingw* | cygwin* | pw32* | os2* | cegcc*) 10399 # This hack is so that the source file can tell whether it is being 10400 # built for inclusion in a dll (and should export symbols for example). 10401 lt_prog_compiler_pic='-DDLL_EXPORT' 10402 ;; 10403 10404 hpux9* | hpux10* | hpux11*) 10405 lt_prog_compiler_wl='-Wl,' 10406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10407 # not for PA HP-UX. 10408 case $host_cpu in 10409 hppa*64*|ia64*) 10410 # +Z the default 10411 ;; 10412 *) 10413 lt_prog_compiler_pic='+Z' 10414 ;; 10415 esac 10416 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10417 lt_prog_compiler_static='${wl}-a ${wl}archive' 10418 ;; 10419 10420 irix5* | irix6* | nonstopux*) 10421 lt_prog_compiler_wl='-Wl,' 10422 # PIC (with -KPIC) is the default. 10423 lt_prog_compiler_static='-non_shared' 10424 ;; 10425 10426 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10427 case $cc_basename in 10428 # old Intel for x86_64 which still supported -KPIC. 10429 ecc*) 10430 lt_prog_compiler_wl='-Wl,' 10431 lt_prog_compiler_pic='-KPIC' 10432 lt_prog_compiler_static='-static' 10433 ;; 10434 # icc used to be incompatible with GCC. 10435 # ICC 10 doesn't accept -KPIC any more. 10436 icc* | ifort*) 10437 lt_prog_compiler_wl='-Wl,' 10438 lt_prog_compiler_pic='-fPIC' 10439 lt_prog_compiler_static='-static' 10440 ;; 10441 # Lahey Fortran 8.1. 10442 lf95*) 10443 lt_prog_compiler_wl='-Wl,' 10444 lt_prog_compiler_pic='--shared' 10445 lt_prog_compiler_static='--static' 10446 ;; 10447 nagfor*) 10448 # NAG Fortran compiler 10449 lt_prog_compiler_wl='-Wl,-Wl,,' 10450 lt_prog_compiler_pic='-PIC' 10451 lt_prog_compiler_static='-Bstatic' 10452 ;; 10453 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10454 # Portland Group compilers (*not* the Pentium gcc compiler, 10455 # which looks to be a dead project) 10456 lt_prog_compiler_wl='-Wl,' 10457 lt_prog_compiler_pic='-fpic' 10458 lt_prog_compiler_static='-Bstatic' 10459 ;; 10460 ccc*) 10461 lt_prog_compiler_wl='-Wl,' 10462 # All Alpha code is PIC. 10463 lt_prog_compiler_static='-non_shared' 10464 ;; 10465 xl* | bgxl* | bgf* | mpixl*) 10466 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10467 lt_prog_compiler_wl='-Wl,' 10468 lt_prog_compiler_pic='-qpic' 10469 lt_prog_compiler_static='-qstaticlink' 10470 ;; 10471 *) 10472 case `$CC -V 2>&1 | sed 5q` in 10473 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10474 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10475 lt_prog_compiler_pic='-KPIC' 10476 lt_prog_compiler_static='-Bstatic' 10477 lt_prog_compiler_wl='' 10478 ;; 10479 *Sun\ F* | *Sun*Fortran*) 10480 lt_prog_compiler_pic='-KPIC' 10481 lt_prog_compiler_static='-Bstatic' 10482 lt_prog_compiler_wl='-Qoption ld ' 10483 ;; 10484 *Sun\ C*) 10485 # Sun C 5.9 10486 lt_prog_compiler_pic='-KPIC' 10487 lt_prog_compiler_static='-Bstatic' 10488 lt_prog_compiler_wl='-Wl,' 10489 ;; 10490 *Intel*\ [CF]*Compiler*) 10491 lt_prog_compiler_wl='-Wl,' 10492 lt_prog_compiler_pic='-fPIC' 10493 lt_prog_compiler_static='-static' 10494 ;; 10495 *Portland\ Group*) 10496 lt_prog_compiler_wl='-Wl,' 10497 lt_prog_compiler_pic='-fpic' 10498 lt_prog_compiler_static='-Bstatic' 10499 ;; 10500 esac 10501 ;; 10502 esac 10503 ;; 10504 10505 newsos6) 10506 lt_prog_compiler_pic='-KPIC' 10507 lt_prog_compiler_static='-Bstatic' 10508 ;; 10509 10510 *nto* | *qnx*) 10511 # QNX uses GNU C++, but need to define -shared option too, otherwise 10512 # it will coredump. 10513 lt_prog_compiler_pic='-fPIC -shared' 10514 ;; 10515 10516 osf3* | osf4* | osf5*) 10517 lt_prog_compiler_wl='-Wl,' 10518 # All OSF/1 code is PIC. 10519 lt_prog_compiler_static='-non_shared' 10520 ;; 10521 10522 rdos*) 10523 lt_prog_compiler_static='-non_shared' 10524 ;; 10525 10526 solaris*) 10527 lt_prog_compiler_pic='-KPIC' 10528 lt_prog_compiler_static='-Bstatic' 10529 case $cc_basename in 10530 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10531 lt_prog_compiler_wl='-Qoption ld ';; 10532 *) 10533 lt_prog_compiler_wl='-Wl,';; 10534 esac 10535 ;; 10536 10537 sunos4*) 10538 lt_prog_compiler_wl='-Qoption ld ' 10539 lt_prog_compiler_pic='-PIC' 10540 lt_prog_compiler_static='-Bstatic' 10541 ;; 10542 10543 sysv4 | sysv4.2uw2* | sysv4.3*) 10544 lt_prog_compiler_wl='-Wl,' 10545 lt_prog_compiler_pic='-KPIC' 10546 lt_prog_compiler_static='-Bstatic' 10547 ;; 10548 10549 sysv4*MP*) 10550 if test -d /usr/nec ;then 10551 lt_prog_compiler_pic='-Kconform_pic' 10552 lt_prog_compiler_static='-Bstatic' 10553 fi 10554 ;; 10555 10556 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10557 lt_prog_compiler_wl='-Wl,' 10558 lt_prog_compiler_pic='-KPIC' 10559 lt_prog_compiler_static='-Bstatic' 10560 ;; 10561 10562 unicos*) 10563 lt_prog_compiler_wl='-Wl,' 10564 lt_prog_compiler_can_build_shared=no 10565 ;; 10566 10567 uts4*) 10568 lt_prog_compiler_pic='-pic' 10569 lt_prog_compiler_static='-Bstatic' 10570 ;; 10571 10572 *) 10573 lt_prog_compiler_can_build_shared=no 10574 ;; 10575 esac 10576 fi 10577 10578case $host_os in 10579 # For platforms which do not support PIC, -DPIC is meaningless: 10580 *djgpp*) 10581 lt_prog_compiler_pic= 10582 ;; 10583 *) 10584 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10585 ;; 10586esac 10587 10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10589$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10590if ${lt_cv_prog_compiler_pic+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10594fi 10595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10596$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10597lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10598 10599# 10600# Check to make sure the PIC flag actually works. 10601# 10602if test -n "$lt_prog_compiler_pic"; then 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10604$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10605if ${lt_cv_prog_compiler_pic_works+:} false; then : 10606 $as_echo_n "(cached) " >&6 10607else 10608 lt_cv_prog_compiler_pic_works=no 10609 ac_outfile=conftest.$ac_objext 10610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10611 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10612 # Insert the option either (1) after the last *FLAGS variable, or 10613 # (2) before a word containing "conftest.", or (3) at the end. 10614 # Note that $ac_compile itself does not contain backslashes and begins 10615 # with a dollar sign (not a hyphen), so the echo should work correctly. 10616 # The option is referenced via a variable to avoid confusing sed. 10617 lt_compile=`echo "$ac_compile" | $SED \ 10618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10620 -e 's:$: $lt_compiler_flag:'` 10621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10622 (eval "$lt_compile" 2>conftest.err) 10623 ac_status=$? 10624 cat conftest.err >&5 10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10626 if (exit $ac_status) && test -s "$ac_outfile"; then 10627 # The compiler can only warn and ignore the option if not recognized 10628 # So say no if there are warnings other than the usual output. 10629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10632 lt_cv_prog_compiler_pic_works=yes 10633 fi 10634 fi 10635 $RM conftest* 10636 10637fi 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10639$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10640 10641if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10642 case $lt_prog_compiler_pic in 10643 "" | " "*) ;; 10644 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10645 esac 10646else 10647 lt_prog_compiler_pic= 10648 lt_prog_compiler_can_build_shared=no 10649fi 10650 10651fi 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663# 10664# Check to make sure the static flag actually works. 10665# 10666wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10668$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10669if ${lt_cv_prog_compiler_static_works+:} false; then : 10670 $as_echo_n "(cached) " >&6 10671else 10672 lt_cv_prog_compiler_static_works=no 10673 save_LDFLAGS="$LDFLAGS" 10674 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10675 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10677 # The linker can only warn and ignore the option if not recognized 10678 # So say no if there are warnings 10679 if test -s conftest.err; then 10680 # Append any errors to the config.log. 10681 cat conftest.err 1>&5 10682 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10684 if diff conftest.exp conftest.er2 >/dev/null; then 10685 lt_cv_prog_compiler_static_works=yes 10686 fi 10687 else 10688 lt_cv_prog_compiler_static_works=yes 10689 fi 10690 fi 10691 $RM -r conftest* 10692 LDFLAGS="$save_LDFLAGS" 10693 10694fi 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10696$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10697 10698if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10699 : 10700else 10701 lt_prog_compiler_static= 10702fi 10703 10704 10705 10706 10707 10708 10709 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10712if ${lt_cv_prog_compiler_c_o+:} false; then : 10713 $as_echo_n "(cached) " >&6 10714else 10715 lt_cv_prog_compiler_c_o=no 10716 $RM -r conftest 2>/dev/null 10717 mkdir conftest 10718 cd conftest 10719 mkdir out 10720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10721 10722 lt_compiler_flag="-o out/conftest2.$ac_objext" 10723 # Insert the option either (1) after the last *FLAGS variable, or 10724 # (2) before a word containing "conftest.", or (3) at the end. 10725 # Note that $ac_compile itself does not contain backslashes and begins 10726 # with a dollar sign (not a hyphen), so the echo should work correctly. 10727 lt_compile=`echo "$ac_compile" | $SED \ 10728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10730 -e 's:$: $lt_compiler_flag:'` 10731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10732 (eval "$lt_compile" 2>out/conftest.err) 10733 ac_status=$? 10734 cat out/conftest.err >&5 10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10736 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10737 then 10738 # The compiler can only warn and ignore the option if not recognized 10739 # So say no if there are warnings 10740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10743 lt_cv_prog_compiler_c_o=yes 10744 fi 10745 fi 10746 chmod u+w . 2>&5 10747 $RM conftest* 10748 # SGI C++ compiler will create directory out/ii_files/ for 10749 # template instantiation 10750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10751 $RM out/* && rmdir out 10752 cd .. 10753 $RM -r conftest 10754 $RM conftest* 10755 10756fi 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10758$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10759 10760 10761 10762 10763 10764 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10767if ${lt_cv_prog_compiler_c_o+:} false; then : 10768 $as_echo_n "(cached) " >&6 10769else 10770 lt_cv_prog_compiler_c_o=no 10771 $RM -r conftest 2>/dev/null 10772 mkdir conftest 10773 cd conftest 10774 mkdir out 10775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10776 10777 lt_compiler_flag="-o out/conftest2.$ac_objext" 10778 # Insert the option either (1) after the last *FLAGS variable, or 10779 # (2) before a word containing "conftest.", or (3) at the end. 10780 # Note that $ac_compile itself does not contain backslashes and begins 10781 # with a dollar sign (not a hyphen), so the echo should work correctly. 10782 lt_compile=`echo "$ac_compile" | $SED \ 10783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10785 -e 's:$: $lt_compiler_flag:'` 10786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10787 (eval "$lt_compile" 2>out/conftest.err) 10788 ac_status=$? 10789 cat out/conftest.err >&5 10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10791 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10792 then 10793 # The compiler can only warn and ignore the option if not recognized 10794 # So say no if there are warnings 10795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10798 lt_cv_prog_compiler_c_o=yes 10799 fi 10800 fi 10801 chmod u+w . 2>&5 10802 $RM conftest* 10803 # SGI C++ compiler will create directory out/ii_files/ for 10804 # template instantiation 10805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10806 $RM out/* && rmdir out 10807 cd .. 10808 $RM -r conftest 10809 $RM conftest* 10810 10811fi 10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10813$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10814 10815 10816 10817 10818hard_links="nottested" 10819if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10820 # do not overwrite the value of need_locks provided by the user 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10822$as_echo_n "checking if we can lock with hard links... " >&6; } 10823 hard_links=yes 10824 $RM conftest* 10825 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10826 touch conftest.a 10827 ln conftest.a conftest.b 2>&5 || hard_links=no 10828 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10830$as_echo "$hard_links" >&6; } 10831 if test "$hard_links" = no; then 10832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10833$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10834 need_locks=warn 10835 fi 10836else 10837 need_locks=no 10838fi 10839 10840 10841 10842 10843 10844 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10846$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10847 10848 runpath_var= 10849 allow_undefined_flag= 10850 always_export_symbols=no 10851 archive_cmds= 10852 archive_expsym_cmds= 10853 compiler_needs_object=no 10854 enable_shared_with_static_runtimes=no 10855 export_dynamic_flag_spec= 10856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10857 hardcode_automatic=no 10858 hardcode_direct=no 10859 hardcode_direct_absolute=no 10860 hardcode_libdir_flag_spec= 10861 hardcode_libdir_separator= 10862 hardcode_minus_L=no 10863 hardcode_shlibpath_var=unsupported 10864 inherit_rpath=no 10865 link_all_deplibs=unknown 10866 module_cmds= 10867 module_expsym_cmds= 10868 old_archive_from_new_cmds= 10869 old_archive_from_expsyms_cmds= 10870 thread_safe_flag_spec= 10871 whole_archive_flag_spec= 10872 # include_expsyms should be a list of space-separated symbols to be *always* 10873 # included in the symbol list 10874 include_expsyms= 10875 # exclude_expsyms can be an extended regexp of symbols to exclude 10876 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10877 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10878 # as well as any symbol that contains `d'. 10879 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10880 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10881 # platforms (ab)use it in PIC code, but their linkers get confused if 10882 # the symbol is explicitly referenced. Since portable code cannot 10883 # rely on this symbol name, it's probably fine to never include it in 10884 # preloaded symbol tables. 10885 # Exclude shared library initialization/finalization symbols. 10886 extract_expsyms_cmds= 10887 10888 case $host_os in 10889 cygwin* | mingw* | pw32* | cegcc*) 10890 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10891 # When not using gcc, we currently assume that we are using 10892 # Microsoft Visual C++. 10893 if test "$GCC" != yes; then 10894 with_gnu_ld=no 10895 fi 10896 ;; 10897 interix*) 10898 # we just hope/assume this is gcc and not c89 (= MSVC++) 10899 with_gnu_ld=yes 10900 ;; 10901 openbsd*) 10902 with_gnu_ld=no 10903 ;; 10904 esac 10905 10906 ld_shlibs=yes 10907 10908 # On some targets, GNU ld is compatible enough with the native linker 10909 # that we're better off using the native interface for both. 10910 lt_use_gnu_ld_interface=no 10911 if test "$with_gnu_ld" = yes; then 10912 case $host_os in 10913 aix*) 10914 # The AIX port of GNU ld has always aspired to compatibility 10915 # with the native linker. However, as the warning in the GNU ld 10916 # block says, versions before 2.19.5* couldn't really create working 10917 # shared libraries, regardless of the interface used. 10918 case `$LD -v 2>&1` in 10919 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10920 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10921 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10922 *) 10923 lt_use_gnu_ld_interface=yes 10924 ;; 10925 esac 10926 ;; 10927 *) 10928 lt_use_gnu_ld_interface=yes 10929 ;; 10930 esac 10931 fi 10932 10933 if test "$lt_use_gnu_ld_interface" = yes; then 10934 # If archive_cmds runs LD, not CC, wlarc should be empty 10935 wlarc='${wl}' 10936 10937 # Set some defaults for GNU ld with shared library support. These 10938 # are reset later if shared libraries are not supported. Putting them 10939 # here allows them to be overridden if necessary. 10940 runpath_var=LD_RUN_PATH 10941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10942 export_dynamic_flag_spec='${wl}--export-dynamic' 10943 # ancient GNU ld didn't support --whole-archive et. al. 10944 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10945 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10946 else 10947 whole_archive_flag_spec= 10948 fi 10949 supports_anon_versioning=no 10950 case `$LD -v 2>&1` in 10951 *GNU\ gold*) supports_anon_versioning=yes ;; 10952 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10953 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10954 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10955 *\ 2.11.*) ;; # other 2.11 versions 10956 *) supports_anon_versioning=yes ;; 10957 esac 10958 10959 # See if GNU ld supports shared libraries. 10960 case $host_os in 10961 aix[3-9]*) 10962 # On AIX/PPC, the GNU linker is very broken 10963 if test "$host_cpu" != ia64; then 10964 ld_shlibs=no 10965 cat <<_LT_EOF 1>&2 10966 10967*** Warning: the GNU linker, at least up to release 2.19, is reported 10968*** to be unable to reliably create shared libraries on AIX. 10969*** Therefore, libtool is disabling shared libraries support. If you 10970*** really care for shared libraries, you may want to install binutils 10971*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10972*** You will then need to restart the configuration process. 10973 10974_LT_EOF 10975 fi 10976 ;; 10977 10978 amigaos*) 10979 case $host_cpu in 10980 powerpc) 10981 # see comment about AmigaOS4 .so support 10982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10983 archive_expsym_cmds='' 10984 ;; 10985 m68k) 10986 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)' 10987 hardcode_libdir_flag_spec='-L$libdir' 10988 hardcode_minus_L=yes 10989 ;; 10990 esac 10991 ;; 10992 10993 beos*) 10994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10995 allow_undefined_flag=unsupported 10996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10997 # support --undefined. This deserves some investigation. FIXME 10998 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10999 else 11000 ld_shlibs=no 11001 fi 11002 ;; 11003 11004 cygwin* | mingw* | pw32* | cegcc*) 11005 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11006 # as there is no search path for DLLs. 11007 hardcode_libdir_flag_spec='-L$libdir' 11008 export_dynamic_flag_spec='${wl}--export-all-symbols' 11009 allow_undefined_flag=unsupported 11010 always_export_symbols=no 11011 enable_shared_with_static_runtimes=yes 11012 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' 11013 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11014 11015 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11017 # If the export-symbols file already is a .def file (1st line 11018 # is EXPORTS), use it as is; otherwise, prepend... 11019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11020 cp $export_symbols $output_objdir/$soname.def; 11021 else 11022 echo EXPORTS > $output_objdir/$soname.def; 11023 cat $export_symbols >> $output_objdir/$soname.def; 11024 fi~ 11025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11026 else 11027 ld_shlibs=no 11028 fi 11029 ;; 11030 11031 haiku*) 11032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11033 link_all_deplibs=yes 11034 ;; 11035 11036 interix[3-9]*) 11037 hardcode_direct=no 11038 hardcode_shlibpath_var=no 11039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11040 export_dynamic_flag_spec='${wl}-E' 11041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11042 # Instead, shared libraries are loaded at an image base (0x10000000 by 11043 # default) and relocated if they conflict, which is a slow very memory 11044 # consuming and fragmenting process. To avoid this, we pick a random, 11045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11046 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11048 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' 11049 ;; 11050 11051 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11052 tmp_diet=no 11053 if test "$host_os" = linux-dietlibc; then 11054 case $cc_basename in 11055 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11056 esac 11057 fi 11058 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11059 && test "$tmp_diet" = no 11060 then 11061 tmp_addflag=' $pic_flag' 11062 tmp_sharedflag='-shared' 11063 case $cc_basename,$host_cpu in 11064 pgcc*) # Portland Group C compiler 11065 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' 11066 tmp_addflag=' $pic_flag' 11067 ;; 11068 pgf77* | pgf90* | pgf95* | pgfortran*) 11069 # Portland Group f77 and f90 compilers 11070 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' 11071 tmp_addflag=' $pic_flag -Mnomain' ;; 11072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11073 tmp_addflag=' -i_dynamic' ;; 11074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11075 tmp_addflag=' -i_dynamic -nofor_main' ;; 11076 ifc* | ifort*) # Intel Fortran compiler 11077 tmp_addflag=' -nofor_main' ;; 11078 lf95*) # Lahey Fortran 8.1 11079 whole_archive_flag_spec= 11080 tmp_sharedflag='--shared' ;; 11081 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11082 tmp_sharedflag='-qmkshrobj' 11083 tmp_addflag= ;; 11084 nvcc*) # Cuda Compiler Driver 2.2 11085 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' 11086 compiler_needs_object=yes 11087 ;; 11088 esac 11089 case `$CC -V 2>&1 | sed 5q` in 11090 *Sun\ C*) # Sun C 5.9 11091 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' 11092 compiler_needs_object=yes 11093 tmp_sharedflag='-G' ;; 11094 *Sun\ F*) # Sun Fortran 8.3 11095 tmp_sharedflag='-G' ;; 11096 esac 11097 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11098 11099 if test "x$supports_anon_versioning" = xyes; then 11100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11102 echo "local: *; };" >> $output_objdir/$libname.ver~ 11103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11104 fi 11105 11106 case $cc_basename in 11107 xlf* | bgf* | bgxlf* | mpixlf*) 11108 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11109 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11111 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11112 if test "x$supports_anon_versioning" = xyes; then 11113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11115 echo "local: *; };" >> $output_objdir/$libname.ver~ 11116 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11117 fi 11118 ;; 11119 esac 11120 else 11121 ld_shlibs=no 11122 fi 11123 ;; 11124 11125 netbsd*) 11126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11128 wlarc= 11129 else 11130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11131 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11132 fi 11133 ;; 11134 11135 solaris*) 11136 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11137 ld_shlibs=no 11138 cat <<_LT_EOF 1>&2 11139 11140*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11141*** create shared libraries on Solaris systems. Therefore, libtool 11142*** is disabling shared libraries support. We urge you to upgrade GNU 11143*** binutils to release 2.9.1 or newer. Another option is to modify 11144*** your PATH or compiler configuration so that the native linker is 11145*** used, and then restart. 11146 11147_LT_EOF 11148 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11150 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11151 else 11152 ld_shlibs=no 11153 fi 11154 ;; 11155 11156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11157 case `$LD -v 2>&1` in 11158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11159 ld_shlibs=no 11160 cat <<_LT_EOF 1>&2 11161 11162*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11163*** reliably create shared libraries on SCO systems. Therefore, libtool 11164*** is disabling shared libraries support. We urge you to upgrade GNU 11165*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11166*** your PATH or compiler configuration so that the native linker is 11167*** used, and then restart. 11168 11169_LT_EOF 11170 ;; 11171 *) 11172 # For security reasons, it is highly recommended that you always 11173 # use absolute paths for naming shared libraries, and exclude the 11174 # DT_RUNPATH tag from executables and libraries. But doing so 11175 # requires that you compile everything twice, which is a pain. 11176 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11180 else 11181 ld_shlibs=no 11182 fi 11183 ;; 11184 esac 11185 ;; 11186 11187 sunos4*) 11188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11189 wlarc= 11190 hardcode_direct=yes 11191 hardcode_shlibpath_var=no 11192 ;; 11193 11194 *) 11195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11196 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11197 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11198 else 11199 ld_shlibs=no 11200 fi 11201 ;; 11202 esac 11203 11204 if test "$ld_shlibs" = no; then 11205 runpath_var= 11206 hardcode_libdir_flag_spec= 11207 export_dynamic_flag_spec= 11208 whole_archive_flag_spec= 11209 fi 11210 else 11211 # PORTME fill in a description of your system's linker (not GNU ld) 11212 case $host_os in 11213 aix3*) 11214 allow_undefined_flag=unsupported 11215 always_export_symbols=yes 11216 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' 11217 # Note: this linker hardcodes the directories in LIBPATH if there 11218 # are no directories specified by -L. 11219 hardcode_minus_L=yes 11220 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11221 # Neither direct hardcoding nor static linking is supported with a 11222 # broken collect2. 11223 hardcode_direct=unsupported 11224 fi 11225 ;; 11226 11227 aix[4-9]*) 11228 if test "$host_cpu" = ia64; then 11229 # On IA64, the linker does run time linking by default, so we don't 11230 # have to do anything special. 11231 aix_use_runtimelinking=no 11232 exp_sym_flag='-Bexport' 11233 no_entry_flag="" 11234 else 11235 # If we're using GNU nm, then we don't want the "-C" option. 11236 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11237 # Also, AIX nm treats weak defined symbols like other global 11238 # defined symbols, whereas GNU nm marks them as "W". 11239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11240 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' 11241 else 11242 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' 11243 fi 11244 aix_use_runtimelinking=no 11245 11246 # Test if we are trying to use run time linking or normal 11247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11248 # need to do runtime linking. 11249 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11250 for ld_flag in $LDFLAGS; do 11251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11252 aix_use_runtimelinking=yes 11253 break 11254 fi 11255 done 11256 ;; 11257 esac 11258 11259 exp_sym_flag='-bexport' 11260 no_entry_flag='-bnoentry' 11261 fi 11262 11263 # When large executables or shared objects are built, AIX ld can 11264 # have problems creating the table of contents. If linking a library 11265 # or program results in "error TOC overflow" add -mminimal-toc to 11266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11268 11269 archive_cmds='' 11270 hardcode_direct=yes 11271 hardcode_direct_absolute=yes 11272 hardcode_libdir_separator=':' 11273 link_all_deplibs=yes 11274 file_list_spec='${wl}-f,' 11275 11276 if test "$GCC" = yes; then 11277 case $host_os in aix4.[012]|aix4.[012].*) 11278 # We only want to do this on AIX 4.2 and lower, the check 11279 # below for broken collect2 doesn't work under 4.3+ 11280 collect2name=`${CC} -print-prog-name=collect2` 11281 if test -f "$collect2name" && 11282 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11283 then 11284 # We have reworked collect2 11285 : 11286 else 11287 # We have old collect2 11288 hardcode_direct=unsupported 11289 # It fails to find uninstalled libraries when the uninstalled 11290 # path is not listed in the libpath. Setting hardcode_minus_L 11291 # to unsupported forces relinking 11292 hardcode_minus_L=yes 11293 hardcode_libdir_flag_spec='-L$libdir' 11294 hardcode_libdir_separator= 11295 fi 11296 ;; 11297 esac 11298 shared_flag='-shared' 11299 if test "$aix_use_runtimelinking" = yes; then 11300 shared_flag="$shared_flag "'${wl}-G' 11301 fi 11302 else 11303 # not using gcc 11304 if test "$host_cpu" = ia64; then 11305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11306 # chokes on -Wl,-G. The following line is correct: 11307 shared_flag='-G' 11308 else 11309 if test "$aix_use_runtimelinking" = yes; then 11310 shared_flag='${wl}-G' 11311 else 11312 shared_flag='${wl}-bM:SRE' 11313 fi 11314 fi 11315 fi 11316 11317 export_dynamic_flag_spec='${wl}-bexpall' 11318 # It seems that -bexpall does not export symbols beginning with 11319 # underscore (_), so it is better to generate a list of symbols to export. 11320 always_export_symbols=yes 11321 if test "$aix_use_runtimelinking" = yes; then 11322 # Warning - without using the other runtime loading flags (-brtl), 11323 # -berok will link without error, but may produce a broken library. 11324 allow_undefined_flag='-berok' 11325 # Determine the default libpath from the value encoded in an 11326 # empty executable. 11327 if test "${lt_cv_aix_libpath+set}" = set; then 11328 aix_libpath=$lt_cv_aix_libpath 11329else 11330 if ${lt_cv_aix_libpath_+:} false; then : 11331 $as_echo_n "(cached) " >&6 11332else 11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11334/* end confdefs.h. */ 11335 11336int 11337main () 11338{ 11339 11340 ; 11341 return 0; 11342} 11343_ACEOF 11344if ac_fn_c_try_link "$LINENO"; then : 11345 11346 lt_aix_libpath_sed=' 11347 /Import File Strings/,/^$/ { 11348 /^0/ { 11349 s/^0 *\([^ ]*\) *$/\1/ 11350 p 11351 } 11352 }' 11353 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11354 # Check for a 64-bit object if we didn't find anything. 11355 if test -z "$lt_cv_aix_libpath_"; then 11356 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11357 fi 11358fi 11359rm -f core conftest.err conftest.$ac_objext \ 11360 conftest$ac_exeext conftest.$ac_ext 11361 if test -z "$lt_cv_aix_libpath_"; then 11362 lt_cv_aix_libpath_="/usr/lib:/lib" 11363 fi 11364 11365fi 11366 11367 aix_libpath=$lt_cv_aix_libpath_ 11368fi 11369 11370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11371 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" 11372 else 11373 if test "$host_cpu" = ia64; then 11374 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11375 allow_undefined_flag="-z nodefs" 11376 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" 11377 else 11378 # Determine the default libpath from the value encoded in an 11379 # empty executable. 11380 if test "${lt_cv_aix_libpath+set}" = set; then 11381 aix_libpath=$lt_cv_aix_libpath 11382else 11383 if ${lt_cv_aix_libpath_+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385else 11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11387/* end confdefs.h. */ 11388 11389int 11390main () 11391{ 11392 11393 ; 11394 return 0; 11395} 11396_ACEOF 11397if ac_fn_c_try_link "$LINENO"; then : 11398 11399 lt_aix_libpath_sed=' 11400 /Import File Strings/,/^$/ { 11401 /^0/ { 11402 s/^0 *\([^ ]*\) *$/\1/ 11403 p 11404 } 11405 }' 11406 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11407 # Check for a 64-bit object if we didn't find anything. 11408 if test -z "$lt_cv_aix_libpath_"; then 11409 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11410 fi 11411fi 11412rm -f core conftest.err conftest.$ac_objext \ 11413 conftest$ac_exeext conftest.$ac_ext 11414 if test -z "$lt_cv_aix_libpath_"; then 11415 lt_cv_aix_libpath_="/usr/lib:/lib" 11416 fi 11417 11418fi 11419 11420 aix_libpath=$lt_cv_aix_libpath_ 11421fi 11422 11423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11424 # Warning - without using the other run time loading flags, 11425 # -berok will link without error, but may produce a broken library. 11426 no_undefined_flag=' ${wl}-bernotok' 11427 allow_undefined_flag=' ${wl}-berok' 11428 if test "$with_gnu_ld" = yes; then 11429 # We only use this code for GNU lds that support --whole-archive. 11430 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11431 else 11432 # Exported symbols can be pulled into shared objects from archives 11433 whole_archive_flag_spec='$convenience' 11434 fi 11435 archive_cmds_need_lc=yes 11436 # This is similar to how AIX traditionally builds its shared libraries. 11437 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' 11438 fi 11439 fi 11440 ;; 11441 11442 amigaos*) 11443 case $host_cpu in 11444 powerpc) 11445 # see comment about AmigaOS4 .so support 11446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11447 archive_expsym_cmds='' 11448 ;; 11449 m68k) 11450 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)' 11451 hardcode_libdir_flag_spec='-L$libdir' 11452 hardcode_minus_L=yes 11453 ;; 11454 esac 11455 ;; 11456 11457 bsdi[45]*) 11458 export_dynamic_flag_spec=-rdynamic 11459 ;; 11460 11461 cygwin* | mingw* | pw32* | cegcc*) 11462 # When not using gcc, we currently assume that we are using 11463 # Microsoft Visual C++. 11464 # hardcode_libdir_flag_spec is actually meaningless, as there is 11465 # no search path for DLLs. 11466 case $cc_basename in 11467 cl*) 11468 # Native MSVC 11469 hardcode_libdir_flag_spec=' ' 11470 allow_undefined_flag=unsupported 11471 always_export_symbols=yes 11472 file_list_spec='@' 11473 # Tell ltmain to make .lib files, not .a files. 11474 libext=lib 11475 # Tell ltmain to make .dll files, not .so files. 11476 shrext_cmds=".dll" 11477 # FIXME: Setting linknames here is a bad hack. 11478 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11479 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11480 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11481 else 11482 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11483 fi~ 11484 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11485 linknames=' 11486 # The linker will not automatically build a static lib if we build a DLL. 11487 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11488 enable_shared_with_static_runtimes=yes 11489 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11491 # Don't use ranlib 11492 old_postinstall_cmds='chmod 644 $oldlib' 11493 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11494 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11495 case $lt_outputfile in 11496 *.exe|*.EXE) ;; 11497 *) 11498 lt_outputfile="$lt_outputfile.exe" 11499 lt_tool_outputfile="$lt_tool_outputfile.exe" 11500 ;; 11501 esac~ 11502 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11503 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11504 $RM "$lt_outputfile.manifest"; 11505 fi' 11506 ;; 11507 *) 11508 # Assume MSVC wrapper 11509 hardcode_libdir_flag_spec=' ' 11510 allow_undefined_flag=unsupported 11511 # Tell ltmain to make .lib files, not .a files. 11512 libext=lib 11513 # Tell ltmain to make .dll files, not .so files. 11514 shrext_cmds=".dll" 11515 # FIXME: Setting linknames here is a bad hack. 11516 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11517 # The linker will automatically build a .lib file if we build a DLL. 11518 old_archive_from_new_cmds='true' 11519 # FIXME: Should let the user specify the lib program. 11520 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11521 enable_shared_with_static_runtimes=yes 11522 ;; 11523 esac 11524 ;; 11525 11526 darwin* | rhapsody*) 11527 11528 11529 archive_cmds_need_lc=no 11530 hardcode_direct=no 11531 hardcode_automatic=yes 11532 hardcode_shlibpath_var=unsupported 11533 if test "$lt_cv_ld_force_load" = "yes"; then 11534 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\"`' 11535 11536 else 11537 whole_archive_flag_spec='' 11538 fi 11539 link_all_deplibs=yes 11540 allow_undefined_flag="$_lt_dar_allow_undefined" 11541 case $cc_basename in 11542 ifort*) _lt_dar_can_shared=yes ;; 11543 *) _lt_dar_can_shared=$GCC ;; 11544 esac 11545 if test "$_lt_dar_can_shared" = "yes"; then 11546 output_verbose_link_cmd=func_echo_all 11547 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11548 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11549 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}" 11550 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}" 11551 11552 else 11553 ld_shlibs=no 11554 fi 11555 11556 ;; 11557 11558 dgux*) 11559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11560 hardcode_libdir_flag_spec='-L$libdir' 11561 hardcode_shlibpath_var=no 11562 ;; 11563 11564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11565 # support. Future versions do this automatically, but an explicit c++rt0.o 11566 # does not break anything, and helps significantly (at the cost of a little 11567 # extra space). 11568 freebsd2.2*) 11569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11570 hardcode_libdir_flag_spec='-R$libdir' 11571 hardcode_direct=yes 11572 hardcode_shlibpath_var=no 11573 ;; 11574 11575 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11576 freebsd2.*) 11577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11578 hardcode_direct=yes 11579 hardcode_minus_L=yes 11580 hardcode_shlibpath_var=no 11581 ;; 11582 11583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11584 freebsd* | dragonfly*) 11585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11586 hardcode_libdir_flag_spec='-R$libdir' 11587 hardcode_direct=yes 11588 hardcode_shlibpath_var=no 11589 ;; 11590 11591 hpux9*) 11592 if test "$GCC" = yes; then 11593 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' 11594 else 11595 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' 11596 fi 11597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11598 hardcode_libdir_separator=: 11599 hardcode_direct=yes 11600 11601 # hardcode_minus_L: Not really in the search PATH, 11602 # but as the default location of the library. 11603 hardcode_minus_L=yes 11604 export_dynamic_flag_spec='${wl}-E' 11605 ;; 11606 11607 hpux10*) 11608 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11610 else 11611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11612 fi 11613 if test "$with_gnu_ld" = no; then 11614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11615 hardcode_libdir_separator=: 11616 hardcode_direct=yes 11617 hardcode_direct_absolute=yes 11618 export_dynamic_flag_spec='${wl}-E' 11619 # hardcode_minus_L: Not really in the search PATH, 11620 # but as the default location of the library. 11621 hardcode_minus_L=yes 11622 fi 11623 ;; 11624 11625 hpux11*) 11626 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11627 case $host_cpu in 11628 hppa*64*) 11629 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11630 ;; 11631 ia64*) 11632 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11633 ;; 11634 *) 11635 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11636 ;; 11637 esac 11638 else 11639 case $host_cpu in 11640 hppa*64*) 11641 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11642 ;; 11643 ia64*) 11644 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11645 ;; 11646 *) 11647 11648 # Older versions of the 11.00 compiler do not understand -b yet 11649 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11651$as_echo_n "checking if $CC understands -b... " >&6; } 11652if ${lt_cv_prog_compiler__b+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654else 11655 lt_cv_prog_compiler__b=no 11656 save_LDFLAGS="$LDFLAGS" 11657 LDFLAGS="$LDFLAGS -b" 11658 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11660 # The linker can only warn and ignore the option if not recognized 11661 # So say no if there are warnings 11662 if test -s conftest.err; then 11663 # Append any errors to the config.log. 11664 cat conftest.err 1>&5 11665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11667 if diff conftest.exp conftest.er2 >/dev/null; then 11668 lt_cv_prog_compiler__b=yes 11669 fi 11670 else 11671 lt_cv_prog_compiler__b=yes 11672 fi 11673 fi 11674 $RM -r conftest* 11675 LDFLAGS="$save_LDFLAGS" 11676 11677fi 11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11679$as_echo "$lt_cv_prog_compiler__b" >&6; } 11680 11681if test x"$lt_cv_prog_compiler__b" = xyes; then 11682 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11683else 11684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11685fi 11686 11687 ;; 11688 esac 11689 fi 11690 if test "$with_gnu_ld" = no; then 11691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11692 hardcode_libdir_separator=: 11693 11694 case $host_cpu in 11695 hppa*64*|ia64*) 11696 hardcode_direct=no 11697 hardcode_shlibpath_var=no 11698 ;; 11699 *) 11700 hardcode_direct=yes 11701 hardcode_direct_absolute=yes 11702 export_dynamic_flag_spec='${wl}-E' 11703 11704 # hardcode_minus_L: Not really in the search PATH, 11705 # but as the default location of the library. 11706 hardcode_minus_L=yes 11707 ;; 11708 esac 11709 fi 11710 ;; 11711 11712 irix5* | irix6* | nonstopux*) 11713 if test "$GCC" = yes; then 11714 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' 11715 # Try to use the -exported_symbol ld option, if it does not 11716 # work, assume that -exports_file does not work either and 11717 # implicitly export all symbols. 11718 # This should be the same for all languages, so no per-tag cache variable. 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11720$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11721if ${lt_cv_irix_exported_symbol+:} false; then : 11722 $as_echo_n "(cached) " >&6 11723else 11724 save_LDFLAGS="$LDFLAGS" 11725 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11727/* end confdefs.h. */ 11728int foo (void) { return 0; } 11729_ACEOF 11730if ac_fn_c_try_link "$LINENO"; then : 11731 lt_cv_irix_exported_symbol=yes 11732else 11733 lt_cv_irix_exported_symbol=no 11734fi 11735rm -f core conftest.err conftest.$ac_objext \ 11736 conftest$ac_exeext conftest.$ac_ext 11737 LDFLAGS="$save_LDFLAGS" 11738fi 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11740$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11741 if test "$lt_cv_irix_exported_symbol" = yes; then 11742 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' 11743 fi 11744 else 11745 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' 11746 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' 11747 fi 11748 archive_cmds_need_lc='no' 11749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11750 hardcode_libdir_separator=: 11751 inherit_rpath=yes 11752 link_all_deplibs=yes 11753 ;; 11754 11755 netbsd*) 11756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11758 else 11759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11760 fi 11761 hardcode_libdir_flag_spec='-R$libdir' 11762 hardcode_direct=yes 11763 hardcode_shlibpath_var=no 11764 ;; 11765 11766 newsos6) 11767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11768 hardcode_direct=yes 11769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11770 hardcode_libdir_separator=: 11771 hardcode_shlibpath_var=no 11772 ;; 11773 11774 *nto* | *qnx*) 11775 ;; 11776 11777 openbsd*) 11778 if test -f /usr/libexec/ld.so; then 11779 hardcode_direct=yes 11780 hardcode_shlibpath_var=no 11781 hardcode_direct_absolute=yes 11782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11786 export_dynamic_flag_spec='${wl}-E' 11787 else 11788 case $host_os in 11789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11791 hardcode_libdir_flag_spec='-R$libdir' 11792 ;; 11793 *) 11794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11796 ;; 11797 esac 11798 fi 11799 else 11800 ld_shlibs=no 11801 fi 11802 ;; 11803 11804 os2*) 11805 hardcode_libdir_flag_spec='-L$libdir' 11806 hardcode_minus_L=yes 11807 allow_undefined_flag=unsupported 11808 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' 11809 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11810 ;; 11811 11812 osf3*) 11813 if test "$GCC" = yes; then 11814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11815 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' 11816 else 11817 allow_undefined_flag=' -expect_unresolved \*' 11818 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' 11819 fi 11820 archive_cmds_need_lc='no' 11821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11822 hardcode_libdir_separator=: 11823 ;; 11824 11825 osf4* | osf5*) # as osf3* with the addition of -msym flag 11826 if test "$GCC" = yes; then 11827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11828 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' 11829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11830 else 11831 allow_undefined_flag=' -expect_unresolved \*' 11832 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' 11833 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~ 11834 $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' 11835 11836 # Both c and cxx compiler support -rpath directly 11837 hardcode_libdir_flag_spec='-rpath $libdir' 11838 fi 11839 archive_cmds_need_lc='no' 11840 hardcode_libdir_separator=: 11841 ;; 11842 11843 solaris*) 11844 no_undefined_flag=' -z defs' 11845 if test "$GCC" = yes; then 11846 wlarc='${wl}' 11847 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11849 $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' 11850 else 11851 case `$CC -V 2>&1` in 11852 *"Compilers 5.0"*) 11853 wlarc='' 11854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11857 ;; 11858 *) 11859 wlarc='${wl}' 11860 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11862 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11863 ;; 11864 esac 11865 fi 11866 hardcode_libdir_flag_spec='-R$libdir' 11867 hardcode_shlibpath_var=no 11868 case $host_os in 11869 solaris2.[0-5] | solaris2.[0-5].*) ;; 11870 *) 11871 # The compiler driver will combine and reorder linker options, 11872 # but understands `-z linker_flag'. GCC discards it without `$wl', 11873 # but is careful enough not to reorder. 11874 # Supported since Solaris 2.6 (maybe 2.5.1?) 11875 if test "$GCC" = yes; then 11876 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11877 else 11878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11879 fi 11880 ;; 11881 esac 11882 link_all_deplibs=yes 11883 ;; 11884 11885 sunos4*) 11886 if test "x$host_vendor" = xsequent; then 11887 # Use $CC to link under sequent, because it throws in some extra .o 11888 # files that make .init and .fini sections work. 11889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11890 else 11891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11892 fi 11893 hardcode_libdir_flag_spec='-L$libdir' 11894 hardcode_direct=yes 11895 hardcode_minus_L=yes 11896 hardcode_shlibpath_var=no 11897 ;; 11898 11899 sysv4) 11900 case $host_vendor in 11901 sni) 11902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11903 hardcode_direct=yes # is this really true??? 11904 ;; 11905 siemens) 11906 ## LD is ld it makes a PLAMLIB 11907 ## CC just makes a GrossModule. 11908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11909 reload_cmds='$CC -r -o $output$reload_objs' 11910 hardcode_direct=no 11911 ;; 11912 motorola) 11913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11915 ;; 11916 esac 11917 runpath_var='LD_RUN_PATH' 11918 hardcode_shlibpath_var=no 11919 ;; 11920 11921 sysv4.3*) 11922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11923 hardcode_shlibpath_var=no 11924 export_dynamic_flag_spec='-Bexport' 11925 ;; 11926 11927 sysv4*MP*) 11928 if test -d /usr/nec; then 11929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11930 hardcode_shlibpath_var=no 11931 runpath_var=LD_RUN_PATH 11932 hardcode_runpath_var=yes 11933 ld_shlibs=yes 11934 fi 11935 ;; 11936 11937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11938 no_undefined_flag='${wl}-z,text' 11939 archive_cmds_need_lc=no 11940 hardcode_shlibpath_var=no 11941 runpath_var='LD_RUN_PATH' 11942 11943 if test "$GCC" = yes; then 11944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11946 else 11947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11949 fi 11950 ;; 11951 11952 sysv5* | sco3.2v5* | sco5v6*) 11953 # Note: We can NOT use -z defs as we might desire, because we do not 11954 # link with -lc, and that would cause any symbols used from libc to 11955 # always be unresolved, which means just about no library would 11956 # ever link correctly. If we're not using GNU ld we use -z text 11957 # though, which does catch some bad symbols but isn't as heavy-handed 11958 # as -z defs. 11959 no_undefined_flag='${wl}-z,text' 11960 allow_undefined_flag='${wl}-z,nodefs' 11961 archive_cmds_need_lc=no 11962 hardcode_shlibpath_var=no 11963 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11964 hardcode_libdir_separator=':' 11965 link_all_deplibs=yes 11966 export_dynamic_flag_spec='${wl}-Bexport' 11967 runpath_var='LD_RUN_PATH' 11968 11969 if test "$GCC" = yes; then 11970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11972 else 11973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11975 fi 11976 ;; 11977 11978 uts4*) 11979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11980 hardcode_libdir_flag_spec='-L$libdir' 11981 hardcode_shlibpath_var=no 11982 ;; 11983 11984 *) 11985 ld_shlibs=no 11986 ;; 11987 esac 11988 11989 if test x$host_vendor = xsni; then 11990 case $host in 11991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11992 export_dynamic_flag_spec='${wl}-Blargedynsym' 11993 ;; 11994 esac 11995 fi 11996 fi 11997 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11999$as_echo "$ld_shlibs" >&6; } 12000test "$ld_shlibs" = no && can_build_shared=no 12001 12002with_gnu_ld=$with_gnu_ld 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018# 12019# Do we need to explicitly link libc? 12020# 12021case "x$archive_cmds_need_lc" in 12022x|xyes) 12023 # Assume -lc should be added 12024 archive_cmds_need_lc=yes 12025 12026 if test "$enable_shared" = yes && test "$GCC" = yes; then 12027 case $archive_cmds in 12028 *'~'*) 12029 # FIXME: we may have to deal with multi-command sequences. 12030 ;; 12031 '$CC '*) 12032 # Test whether the compiler implicitly links with -lc since on some 12033 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12034 # to ld, don't add -lc before -lgcc. 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12036$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12037if ${lt_cv_archive_cmds_need_lc+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039else 12040 $RM conftest* 12041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12042 12043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12044 (eval $ac_compile) 2>&5 12045 ac_status=$? 12046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12047 test $ac_status = 0; } 2>conftest.err; then 12048 soname=conftest 12049 lib=conftest 12050 libobjs=conftest.$ac_objext 12051 deplibs= 12052 wl=$lt_prog_compiler_wl 12053 pic_flag=$lt_prog_compiler_pic 12054 compiler_flags=-v 12055 linker_flags=-v 12056 verstring= 12057 output_objdir=. 12058 libname=conftest 12059 lt_save_allow_undefined_flag=$allow_undefined_flag 12060 allow_undefined_flag= 12061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12062 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12063 ac_status=$? 12064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12065 test $ac_status = 0; } 12066 then 12067 lt_cv_archive_cmds_need_lc=no 12068 else 12069 lt_cv_archive_cmds_need_lc=yes 12070 fi 12071 allow_undefined_flag=$lt_save_allow_undefined_flag 12072 else 12073 cat conftest.err 1>&5 12074 fi 12075 $RM conftest* 12076 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12079$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12080 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12081 ;; 12082 esac 12083 fi 12084 ;; 12085esac 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 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12239$as_echo_n "checking dynamic linker characteristics... " >&6; } 12240 12241if test "$GCC" = yes; then 12242 case $host_os in 12243 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12244 *) lt_awk_arg="/^libraries:/" ;; 12245 esac 12246 case $host_os in 12247 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12248 *) lt_sed_strip_eq="s,=/,/,g" ;; 12249 esac 12250 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12251 case $lt_search_path_spec in 12252 *\;*) 12253 # if the path contains ";" then we assume it to be the separator 12254 # otherwise default to the standard path separator (i.e. ":") - it is 12255 # assumed that no part of a normal pathname contains ";" but that should 12256 # okay in the real world where ";" in dirpaths is itself problematic. 12257 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12258 ;; 12259 *) 12260 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12261 ;; 12262 esac 12263 # Ok, now we have the path, separated by spaces, we can step through it 12264 # and add multilib dir if necessary. 12265 lt_tmp_lt_search_path_spec= 12266 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12267 for lt_sys_path in $lt_search_path_spec; do 12268 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12270 else 12271 test -d "$lt_sys_path" && \ 12272 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12273 fi 12274 done 12275 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12276BEGIN {RS=" "; FS="/|\n";} { 12277 lt_foo=""; 12278 lt_count=0; 12279 for (lt_i = NF; lt_i > 0; lt_i--) { 12280 if ($lt_i != "" && $lt_i != ".") { 12281 if ($lt_i == "..") { 12282 lt_count++; 12283 } else { 12284 if (lt_count == 0) { 12285 lt_foo="/" $lt_i lt_foo; 12286 } else { 12287 lt_count--; 12288 } 12289 } 12290 } 12291 } 12292 if (lt_foo != "") { lt_freq[lt_foo]++; } 12293 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12294}'` 12295 # AWK program above erroneously prepends '/' to C:/dos/paths 12296 # for these hosts. 12297 case $host_os in 12298 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12299 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12300 esac 12301 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12302else 12303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12304fi 12305library_names_spec= 12306libname_spec='lib$name' 12307soname_spec= 12308shrext_cmds=".so" 12309postinstall_cmds= 12310postuninstall_cmds= 12311finish_cmds= 12312finish_eval= 12313shlibpath_var= 12314shlibpath_overrides_runpath=unknown 12315version_type=none 12316dynamic_linker="$host_os ld.so" 12317sys_lib_dlsearch_path_spec="/lib /usr/lib" 12318need_lib_prefix=unknown 12319hardcode_into_libs=no 12320 12321# when you set need_version to no, make sure it does not cause -set_version 12322# flags to be left without arguments 12323need_version=unknown 12324 12325case $host_os in 12326aix3*) 12327 version_type=linux # correct to gnu/linux during the next big refactor 12328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12329 shlibpath_var=LIBPATH 12330 12331 # AIX 3 has no versioning support, so we append a major version to the name. 12332 soname_spec='${libname}${release}${shared_ext}$major' 12333 ;; 12334 12335aix[4-9]*) 12336 version_type=linux # correct to gnu/linux during the next big refactor 12337 need_lib_prefix=no 12338 need_version=no 12339 hardcode_into_libs=yes 12340 if test "$host_cpu" = ia64; then 12341 # AIX 5 supports IA64 12342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12343 shlibpath_var=LD_LIBRARY_PATH 12344 else 12345 # With GCC up to 2.95.x, collect2 would create an import file 12346 # for dependence libraries. The import file would start with 12347 # the line `#! .'. This would cause the generated library to 12348 # depend on `.', always an invalid library. This was fixed in 12349 # development snapshots of GCC prior to 3.0. 12350 case $host_os in 12351 aix4 | aix4.[01] | aix4.[01].*) 12352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12353 echo ' yes ' 12354 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12355 : 12356 else 12357 can_build_shared=no 12358 fi 12359 ;; 12360 esac 12361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12362 # soname into executable. Probably we can add versioning support to 12363 # collect2, so additional links can be useful in future. 12364 if test "$aix_use_runtimelinking" = yes; then 12365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12366 # instead of lib<name>.a to let people know that these are not 12367 # typical AIX shared libraries. 12368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12369 else 12370 # We preserve .a as extension for shared libraries through AIX4.2 12371 # and later when we are not doing run time linking. 12372 library_names_spec='${libname}${release}.a $libname.a' 12373 soname_spec='${libname}${release}${shared_ext}$major' 12374 fi 12375 shlibpath_var=LIBPATH 12376 fi 12377 ;; 12378 12379amigaos*) 12380 case $host_cpu in 12381 powerpc) 12382 # Since July 2007 AmigaOS4 officially supports .so libraries. 12383 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12385 ;; 12386 m68k) 12387 library_names_spec='$libname.ixlibrary $libname.a' 12388 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12389 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' 12390 ;; 12391 esac 12392 ;; 12393 12394beos*) 12395 library_names_spec='${libname}${shared_ext}' 12396 dynamic_linker="$host_os ld.so" 12397 shlibpath_var=LIBRARY_PATH 12398 ;; 12399 12400bsdi[45]*) 12401 version_type=linux # correct to gnu/linux during the next big refactor 12402 need_version=no 12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12404 soname_spec='${libname}${release}${shared_ext}$major' 12405 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12406 shlibpath_var=LD_LIBRARY_PATH 12407 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12408 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12409 # the default ld.so.conf also contains /usr/contrib/lib and 12410 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12411 # libtool to hard-code these into programs 12412 ;; 12413 12414cygwin* | mingw* | pw32* | cegcc*) 12415 version_type=windows 12416 shrext_cmds=".dll" 12417 need_version=no 12418 need_lib_prefix=no 12419 12420 case $GCC,$cc_basename in 12421 yes,*) 12422 # gcc 12423 library_names_spec='$libname.dll.a' 12424 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12425 postinstall_cmds='base_file=`basename \${file}`~ 12426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12427 dldir=$destdir/`dirname \$dlpath`~ 12428 test -d \$dldir || mkdir -p \$dldir~ 12429 $install_prog $dir/$dlname \$dldir/$dlname~ 12430 chmod a+x \$dldir/$dlname~ 12431 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12432 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12433 fi' 12434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12435 dlpath=$dir/\$dldll~ 12436 $RM \$dlpath' 12437 shlibpath_overrides_runpath=yes 12438 12439 case $host_os in 12440 cygwin*) 12441 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12443 12444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12445 ;; 12446 mingw* | cegcc*) 12447 # MinGW DLLs use traditional 'lib' prefix 12448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12449 ;; 12450 pw32*) 12451 # pw32 DLLs use 'pw' prefix rather than 'lib' 12452 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12453 ;; 12454 esac 12455 dynamic_linker='Win32 ld.exe' 12456 ;; 12457 12458 *,cl*) 12459 # Native MSVC 12460 libname_spec='$name' 12461 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12462 library_names_spec='${libname}.dll.lib' 12463 12464 case $build_os in 12465 mingw*) 12466 sys_lib_search_path_spec= 12467 lt_save_ifs=$IFS 12468 IFS=';' 12469 for lt_path in $LIB 12470 do 12471 IFS=$lt_save_ifs 12472 # Let DOS variable expansion print the short 8.3 style file name. 12473 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12474 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12475 done 12476 IFS=$lt_save_ifs 12477 # Convert to MSYS style. 12478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12479 ;; 12480 cygwin*) 12481 # Convert to unix form, then to dos form, then back to unix form 12482 # but this time dos style (no spaces!) so that the unix form looks 12483 # like /cygdrive/c/PROGRA~1:/cygdr... 12484 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12485 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12486 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12487 ;; 12488 *) 12489 sys_lib_search_path_spec="$LIB" 12490 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12491 # It is most probably a Windows format PATH. 12492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12493 else 12494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12495 fi 12496 # FIXME: find the short name or the path components, as spaces are 12497 # common. (e.g. "Program Files" -> "PROGRA~1") 12498 ;; 12499 esac 12500 12501 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12502 postinstall_cmds='base_file=`basename \${file}`~ 12503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12504 dldir=$destdir/`dirname \$dlpath`~ 12505 test -d \$dldir || mkdir -p \$dldir~ 12506 $install_prog $dir/$dlname \$dldir/$dlname' 12507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12508 dlpath=$dir/\$dldll~ 12509 $RM \$dlpath' 12510 shlibpath_overrides_runpath=yes 12511 dynamic_linker='Win32 link.exe' 12512 ;; 12513 12514 *) 12515 # Assume MSVC wrapper 12516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12517 dynamic_linker='Win32 ld.exe' 12518 ;; 12519 esac 12520 # FIXME: first we should search . and the directory the executable is in 12521 shlibpath_var=PATH 12522 ;; 12523 12524darwin* | rhapsody*) 12525 dynamic_linker="$host_os dyld" 12526 version_type=darwin 12527 need_lib_prefix=no 12528 need_version=no 12529 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12530 soname_spec='${libname}${release}${major}$shared_ext' 12531 shlibpath_overrides_runpath=yes 12532 shlibpath_var=DYLD_LIBRARY_PATH 12533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12534 12535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12537 ;; 12538 12539dgux*) 12540 version_type=linux # correct to gnu/linux during the next big refactor 12541 need_lib_prefix=no 12542 need_version=no 12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12544 soname_spec='${libname}${release}${shared_ext}$major' 12545 shlibpath_var=LD_LIBRARY_PATH 12546 ;; 12547 12548freebsd* | dragonfly*) 12549 # DragonFly does not have aout. When/if they implement a new 12550 # versioning mechanism, adjust this. 12551 if test -x /usr/bin/objformat; then 12552 objformat=`/usr/bin/objformat` 12553 else 12554 case $host_os in 12555 freebsd[23].*) objformat=aout ;; 12556 *) objformat=elf ;; 12557 esac 12558 fi 12559 version_type=freebsd-$objformat 12560 case $version_type in 12561 freebsd-elf*) 12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12563 need_version=no 12564 need_lib_prefix=no 12565 ;; 12566 freebsd-*) 12567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12568 need_version=yes 12569 ;; 12570 esac 12571 shlibpath_var=LD_LIBRARY_PATH 12572 case $host_os in 12573 freebsd2.*) 12574 shlibpath_overrides_runpath=yes 12575 ;; 12576 freebsd3.[01]* | freebsdelf3.[01]*) 12577 shlibpath_overrides_runpath=yes 12578 hardcode_into_libs=yes 12579 ;; 12580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12582 shlibpath_overrides_runpath=no 12583 hardcode_into_libs=yes 12584 ;; 12585 *) # from 4.6 on, and DragonFly 12586 shlibpath_overrides_runpath=yes 12587 hardcode_into_libs=yes 12588 ;; 12589 esac 12590 ;; 12591 12592gnu*) 12593 version_type=linux # correct to gnu/linux during the next big refactor 12594 need_lib_prefix=no 12595 need_version=no 12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12597 soname_spec='${libname}${release}${shared_ext}$major' 12598 shlibpath_var=LD_LIBRARY_PATH 12599 shlibpath_overrides_runpath=no 12600 hardcode_into_libs=yes 12601 ;; 12602 12603haiku*) 12604 version_type=linux # correct to gnu/linux during the next big refactor 12605 need_lib_prefix=no 12606 need_version=no 12607 dynamic_linker="$host_os runtime_loader" 12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12609 soname_spec='${libname}${release}${shared_ext}$major' 12610 shlibpath_var=LIBRARY_PATH 12611 shlibpath_overrides_runpath=yes 12612 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12613 hardcode_into_libs=yes 12614 ;; 12615 12616hpux9* | hpux10* | hpux11*) 12617 # Give a soname corresponding to the major version so that dld.sl refuses to 12618 # link against other versions. 12619 version_type=sunos 12620 need_lib_prefix=no 12621 need_version=no 12622 case $host_cpu in 12623 ia64*) 12624 shrext_cmds='.so' 12625 hardcode_into_libs=yes 12626 dynamic_linker="$host_os dld.so" 12627 shlibpath_var=LD_LIBRARY_PATH 12628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12630 soname_spec='${libname}${release}${shared_ext}$major' 12631 if test "X$HPUX_IA64_MODE" = X32; then 12632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12633 else 12634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12635 fi 12636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12637 ;; 12638 hppa*64*) 12639 shrext_cmds='.sl' 12640 hardcode_into_libs=yes 12641 dynamic_linker="$host_os dld.sl" 12642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12645 soname_spec='${libname}${release}${shared_ext}$major' 12646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12648 ;; 12649 *) 12650 shrext_cmds='.sl' 12651 dynamic_linker="$host_os dld.sl" 12652 shlibpath_var=SHLIB_PATH 12653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12655 soname_spec='${libname}${release}${shared_ext}$major' 12656 ;; 12657 esac 12658 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12659 postinstall_cmds='chmod 555 $lib' 12660 # or fails outright, so override atomically: 12661 install_override_mode=555 12662 ;; 12663 12664interix[3-9]*) 12665 version_type=linux # correct to gnu/linux during the next big refactor 12666 need_lib_prefix=no 12667 need_version=no 12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12669 soname_spec='${libname}${release}${shared_ext}$major' 12670 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12671 shlibpath_var=LD_LIBRARY_PATH 12672 shlibpath_overrides_runpath=no 12673 hardcode_into_libs=yes 12674 ;; 12675 12676irix5* | irix6* | nonstopux*) 12677 case $host_os in 12678 nonstopux*) version_type=nonstopux ;; 12679 *) 12680 if test "$lt_cv_prog_gnu_ld" = yes; then 12681 version_type=linux # correct to gnu/linux during the next big refactor 12682 else 12683 version_type=irix 12684 fi ;; 12685 esac 12686 need_lib_prefix=no 12687 need_version=no 12688 soname_spec='${libname}${release}${shared_ext}$major' 12689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12690 case $host_os in 12691 irix5* | nonstopux*) 12692 libsuff= shlibsuff= 12693 ;; 12694 *) 12695 case $LD in # libtool.m4 will add one of these switches to LD 12696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12697 libsuff= shlibsuff= libmagic=32-bit;; 12698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12699 libsuff=32 shlibsuff=N32 libmagic=N32;; 12700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12701 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12702 *) libsuff= shlibsuff= libmagic=never-match;; 12703 esac 12704 ;; 12705 esac 12706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12707 shlibpath_overrides_runpath=no 12708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12710 hardcode_into_libs=yes 12711 ;; 12712 12713# No shared lib support for Linux oldld, aout, or coff. 12714linux*oldld* | linux*aout* | linux*coff*) 12715 dynamic_linker=no 12716 ;; 12717 12718# This must be glibc/ELF. 12719linux* | k*bsd*-gnu | kopensolaris*-gnu) 12720 version_type=linux # correct to gnu/linux during the next big refactor 12721 need_lib_prefix=no 12722 need_version=no 12723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12724 soname_spec='${libname}${release}${shared_ext}$major' 12725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12726 shlibpath_var=LD_LIBRARY_PATH 12727 shlibpath_overrides_runpath=no 12728 12729 # Some binutils ld are patched to set DT_RUNPATH 12730 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 lt_cv_shlibpath_overrides_runpath=no 12734 save_LDFLAGS=$LDFLAGS 12735 save_libdir=$libdir 12736 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12737 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12739/* end confdefs.h. */ 12740 12741int 12742main () 12743{ 12744 12745 ; 12746 return 0; 12747} 12748_ACEOF 12749if ac_fn_c_try_link "$LINENO"; then : 12750 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12751 lt_cv_shlibpath_overrides_runpath=yes 12752fi 12753fi 12754rm -f core conftest.err conftest.$ac_objext \ 12755 conftest$ac_exeext conftest.$ac_ext 12756 LDFLAGS=$save_LDFLAGS 12757 libdir=$save_libdir 12758 12759fi 12760 12761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12762 12763 # This implies no fast_install, which is unacceptable. 12764 # Some rework will be needed to allow for fast_install 12765 # before this can be enabled. 12766 hardcode_into_libs=yes 12767 12768 # Add ABI-specific directories to the system library path. 12769 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12770 12771 # Append ld.so.conf contents to the search path 12772 if test -f /etc/ld.so.conf; then 12773 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' ' '` 12774 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12775 12776 fi 12777 12778 # We used to test for /lib/ld.so.1 and disable shared libraries on 12779 # powerpc, because MkLinux only supported shared libraries with the 12780 # GNU dynamic linker. Since this was broken with cross compilers, 12781 # most powerpc-linux boxes support dynamic linking these days and 12782 # people can always --disable-shared, the test was removed, and we 12783 # assume the GNU/Linux dynamic linker is in use. 12784 dynamic_linker='GNU/Linux ld.so' 12785 ;; 12786 12787netbsd*) 12788 version_type=sunos 12789 need_lib_prefix=no 12790 need_version=no 12791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12794 dynamic_linker='NetBSD (a.out) ld.so' 12795 else 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12797 soname_spec='${libname}${release}${shared_ext}$major' 12798 dynamic_linker='NetBSD ld.elf_so' 12799 fi 12800 shlibpath_var=LD_LIBRARY_PATH 12801 shlibpath_overrides_runpath=yes 12802 hardcode_into_libs=yes 12803 ;; 12804 12805newsos6) 12806 version_type=linux # correct to gnu/linux during the next big refactor 12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12808 shlibpath_var=LD_LIBRARY_PATH 12809 shlibpath_overrides_runpath=yes 12810 ;; 12811 12812*nto* | *qnx*) 12813 version_type=qnx 12814 need_lib_prefix=no 12815 need_version=no 12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12817 soname_spec='${libname}${release}${shared_ext}$major' 12818 shlibpath_var=LD_LIBRARY_PATH 12819 shlibpath_overrides_runpath=no 12820 hardcode_into_libs=yes 12821 dynamic_linker='ldqnx.so' 12822 ;; 12823 12824openbsd*) 12825 version_type=sunos 12826 sys_lib_dlsearch_path_spec="/usr/lib" 12827 need_lib_prefix=no 12828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12829 case $host_os in 12830 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12831 *) need_version=no ;; 12832 esac 12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12835 shlibpath_var=LD_LIBRARY_PATH 12836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12837 case $host_os in 12838 openbsd2.[89] | openbsd2.[89].*) 12839 shlibpath_overrides_runpath=no 12840 ;; 12841 *) 12842 shlibpath_overrides_runpath=yes 12843 ;; 12844 esac 12845 else 12846 shlibpath_overrides_runpath=yes 12847 fi 12848 ;; 12849 12850os2*) 12851 libname_spec='$name' 12852 shrext_cmds=".dll" 12853 need_lib_prefix=no 12854 library_names_spec='$libname${shared_ext} $libname.a' 12855 dynamic_linker='OS/2 ld.exe' 12856 shlibpath_var=LIBPATH 12857 ;; 12858 12859osf3* | osf4* | osf5*) 12860 version_type=osf 12861 need_lib_prefix=no 12862 need_version=no 12863 soname_spec='${libname}${release}${shared_ext}$major' 12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12865 shlibpath_var=LD_LIBRARY_PATH 12866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12868 ;; 12869 12870rdos*) 12871 dynamic_linker=no 12872 ;; 12873 12874solaris*) 12875 version_type=linux # correct to gnu/linux during the next big refactor 12876 need_lib_prefix=no 12877 need_version=no 12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12879 soname_spec='${libname}${release}${shared_ext}$major' 12880 shlibpath_var=LD_LIBRARY_PATH 12881 shlibpath_overrides_runpath=yes 12882 hardcode_into_libs=yes 12883 # ldd complains unless libraries are executable 12884 postinstall_cmds='chmod +x $lib' 12885 ;; 12886 12887sunos4*) 12888 version_type=sunos 12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12891 shlibpath_var=LD_LIBRARY_PATH 12892 shlibpath_overrides_runpath=yes 12893 if test "$with_gnu_ld" = yes; then 12894 need_lib_prefix=no 12895 fi 12896 need_version=yes 12897 ;; 12898 12899sysv4 | sysv4.3*) 12900 version_type=linux # correct to gnu/linux during the next big refactor 12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12902 soname_spec='${libname}${release}${shared_ext}$major' 12903 shlibpath_var=LD_LIBRARY_PATH 12904 case $host_vendor in 12905 sni) 12906 shlibpath_overrides_runpath=no 12907 need_lib_prefix=no 12908 runpath_var=LD_RUN_PATH 12909 ;; 12910 siemens) 12911 need_lib_prefix=no 12912 ;; 12913 motorola) 12914 need_lib_prefix=no 12915 need_version=no 12916 shlibpath_overrides_runpath=no 12917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12918 ;; 12919 esac 12920 ;; 12921 12922sysv4*MP*) 12923 if test -d /usr/nec ;then 12924 version_type=linux # correct to gnu/linux during the next big refactor 12925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12926 soname_spec='$libname${shared_ext}.$major' 12927 shlibpath_var=LD_LIBRARY_PATH 12928 fi 12929 ;; 12930 12931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12932 version_type=freebsd-elf 12933 need_lib_prefix=no 12934 need_version=no 12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12936 soname_spec='${libname}${release}${shared_ext}$major' 12937 shlibpath_var=LD_LIBRARY_PATH 12938 shlibpath_overrides_runpath=yes 12939 hardcode_into_libs=yes 12940 if test "$with_gnu_ld" = yes; then 12941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12942 else 12943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12944 case $host_os in 12945 sco3.2v5*) 12946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12947 ;; 12948 esac 12949 fi 12950 sys_lib_dlsearch_path_spec='/usr/lib' 12951 ;; 12952 12953tpf*) 12954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12955 version_type=linux # correct to gnu/linux during the next big refactor 12956 need_lib_prefix=no 12957 need_version=no 12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12959 shlibpath_var=LD_LIBRARY_PATH 12960 shlibpath_overrides_runpath=no 12961 hardcode_into_libs=yes 12962 ;; 12963 12964uts4*) 12965 version_type=linux # correct to gnu/linux during the next big refactor 12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12967 soname_spec='${libname}${release}${shared_ext}$major' 12968 shlibpath_var=LD_LIBRARY_PATH 12969 ;; 12970 12971*) 12972 dynamic_linker=no 12973 ;; 12974esac 12975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12976$as_echo "$dynamic_linker" >&6; } 12977test "$dynamic_linker" = no && can_build_shared=no 12978 12979variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12980if test "$GCC" = yes; then 12981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12982fi 12983 12984if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12986fi 12987if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12988 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12989fi 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 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13083$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13084hardcode_action= 13085if test -n "$hardcode_libdir_flag_spec" || 13086 test -n "$runpath_var" || 13087 test "X$hardcode_automatic" = "Xyes" ; then 13088 13089 # We can hardcode non-existent directories. 13090 if test "$hardcode_direct" != no && 13091 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13092 # have to relink, otherwise we might link with an installed library 13093 # when we should be linking with a yet-to-be-installed one 13094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13095 test "$hardcode_minus_L" != no; then 13096 # Linking always hardcodes the temporary library directory. 13097 hardcode_action=relink 13098 else 13099 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13100 hardcode_action=immediate 13101 fi 13102else 13103 # We cannot hardcode anything, or else we can only hardcode existing 13104 # directories. 13105 hardcode_action=unsupported 13106fi 13107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13108$as_echo "$hardcode_action" >&6; } 13109 13110if test "$hardcode_action" = relink || 13111 test "$inherit_rpath" = yes; then 13112 # Fast installation is not supported 13113 enable_fast_install=no 13114elif test "$shlibpath_overrides_runpath" = yes || 13115 test "$enable_shared" = no; then 13116 # Fast installation is not necessary 13117 enable_fast_install=needless 13118fi 13119 13120 13121 13122 13123 13124 13125 if test "x$enable_dlopen" != xyes; then 13126 enable_dlopen=unknown 13127 enable_dlopen_self=unknown 13128 enable_dlopen_self_static=unknown 13129else 13130 lt_cv_dlopen=no 13131 lt_cv_dlopen_libs= 13132 13133 case $host_os in 13134 beos*) 13135 lt_cv_dlopen="load_add_on" 13136 lt_cv_dlopen_libs= 13137 lt_cv_dlopen_self=yes 13138 ;; 13139 13140 mingw* | pw32* | cegcc*) 13141 lt_cv_dlopen="LoadLibrary" 13142 lt_cv_dlopen_libs= 13143 ;; 13144 13145 cygwin*) 13146 lt_cv_dlopen="dlopen" 13147 lt_cv_dlopen_libs= 13148 ;; 13149 13150 darwin*) 13151 # if libdl is installed we need to link against it 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13153$as_echo_n "checking for dlopen in -ldl... " >&6; } 13154if ${ac_cv_lib_dl_dlopen+:} false; then : 13155 $as_echo_n "(cached) " >&6 13156else 13157 ac_check_lib_save_LIBS=$LIBS 13158LIBS="-ldl $LIBS" 13159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161 13162/* Override any GCC internal prototype to avoid an error. 13163 Use char because int might match the return type of a GCC 13164 builtin and then its argument prototype would still apply. */ 13165#ifdef __cplusplus 13166extern "C" 13167#endif 13168char dlopen (); 13169int 13170main () 13171{ 13172return dlopen (); 13173 ; 13174 return 0; 13175} 13176_ACEOF 13177if ac_fn_c_try_link "$LINENO"; then : 13178 ac_cv_lib_dl_dlopen=yes 13179else 13180 ac_cv_lib_dl_dlopen=no 13181fi 13182rm -f core conftest.err conftest.$ac_objext \ 13183 conftest$ac_exeext conftest.$ac_ext 13184LIBS=$ac_check_lib_save_LIBS 13185fi 13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13187$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13188if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13190else 13191 13192 lt_cv_dlopen="dyld" 13193 lt_cv_dlopen_libs= 13194 lt_cv_dlopen_self=yes 13195 13196fi 13197 13198 ;; 13199 13200 *) 13201 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13202if test "x$ac_cv_func_shl_load" = xyes; then : 13203 lt_cv_dlopen="shl_load" 13204else 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13206$as_echo_n "checking for shl_load in -ldld... " >&6; } 13207if ${ac_cv_lib_dld_shl_load+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 ac_check_lib_save_LIBS=$LIBS 13211LIBS="-ldld $LIBS" 13212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13213/* end confdefs.h. */ 13214 13215/* Override any GCC internal prototype to avoid an error. 13216 Use char because int might match the return type of a GCC 13217 builtin and then its argument prototype would still apply. */ 13218#ifdef __cplusplus 13219extern "C" 13220#endif 13221char shl_load (); 13222int 13223main () 13224{ 13225return shl_load (); 13226 ; 13227 return 0; 13228} 13229_ACEOF 13230if ac_fn_c_try_link "$LINENO"; then : 13231 ac_cv_lib_dld_shl_load=yes 13232else 13233 ac_cv_lib_dld_shl_load=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext \ 13236 conftest$ac_exeext conftest.$ac_ext 13237LIBS=$ac_check_lib_save_LIBS 13238fi 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13240$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13241if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13242 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13243else 13244 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13245if test "x$ac_cv_func_dlopen" = xyes; then : 13246 lt_cv_dlopen="dlopen" 13247else 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13249$as_echo_n "checking for dlopen in -ldl... " >&6; } 13250if ${ac_cv_lib_dl_dlopen+:} false; then : 13251 $as_echo_n "(cached) " >&6 13252else 13253 ac_check_lib_save_LIBS=$LIBS 13254LIBS="-ldl $LIBS" 13255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257 13258/* Override any GCC internal prototype to avoid an error. 13259 Use char because int might match the return type of a GCC 13260 builtin and then its argument prototype would still apply. */ 13261#ifdef __cplusplus 13262extern "C" 13263#endif 13264char dlopen (); 13265int 13266main () 13267{ 13268return dlopen (); 13269 ; 13270 return 0; 13271} 13272_ACEOF 13273if ac_fn_c_try_link "$LINENO"; then : 13274 ac_cv_lib_dl_dlopen=yes 13275else 13276 ac_cv_lib_dl_dlopen=no 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280LIBS=$ac_check_lib_save_LIBS 13281fi 13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13283$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13284if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13286else 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13288$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13289if ${ac_cv_lib_svld_dlopen+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 ac_check_lib_save_LIBS=$LIBS 13293LIBS="-lsvld $LIBS" 13294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296 13297/* Override any GCC internal prototype to avoid an error. 13298 Use char because int might match the return type of a GCC 13299 builtin and then its argument prototype would still apply. */ 13300#ifdef __cplusplus 13301extern "C" 13302#endif 13303char dlopen (); 13304int 13305main () 13306{ 13307return dlopen (); 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_c_try_link "$LINENO"; then : 13313 ac_cv_lib_svld_dlopen=yes 13314else 13315 ac_cv_lib_svld_dlopen=no 13316fi 13317rm -f core conftest.err conftest.$ac_objext \ 13318 conftest$ac_exeext conftest.$ac_ext 13319LIBS=$ac_check_lib_save_LIBS 13320fi 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13322$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13323if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13325else 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13327$as_echo_n "checking for dld_link in -ldld... " >&6; } 13328if ${ac_cv_lib_dld_dld_link+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 ac_check_lib_save_LIBS=$LIBS 13332LIBS="-ldld $LIBS" 13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335 13336/* Override any GCC internal prototype to avoid an error. 13337 Use char because int might match the return type of a GCC 13338 builtin and then its argument prototype would still apply. */ 13339#ifdef __cplusplus 13340extern "C" 13341#endif 13342char dld_link (); 13343int 13344main () 13345{ 13346return dld_link (); 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351if ac_fn_c_try_link "$LINENO"; then : 13352 ac_cv_lib_dld_dld_link=yes 13353else 13354 ac_cv_lib_dld_dld_link=no 13355fi 13356rm -f core conftest.err conftest.$ac_objext \ 13357 conftest$ac_exeext conftest.$ac_ext 13358LIBS=$ac_check_lib_save_LIBS 13359fi 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13361$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13362if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13363 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13364fi 13365 13366 13367fi 13368 13369 13370fi 13371 13372 13373fi 13374 13375 13376fi 13377 13378 13379fi 13380 13381 ;; 13382 esac 13383 13384 if test "x$lt_cv_dlopen" != xno; then 13385 enable_dlopen=yes 13386 else 13387 enable_dlopen=no 13388 fi 13389 13390 case $lt_cv_dlopen in 13391 dlopen) 13392 save_CPPFLAGS="$CPPFLAGS" 13393 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13394 13395 save_LDFLAGS="$LDFLAGS" 13396 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13397 13398 save_LIBS="$LIBS" 13399 LIBS="$lt_cv_dlopen_libs $LIBS" 13400 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13402$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13403if ${lt_cv_dlopen_self+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405else 13406 if test "$cross_compiling" = yes; then : 13407 lt_cv_dlopen_self=cross 13408else 13409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13410 lt_status=$lt_dlunknown 13411 cat > conftest.$ac_ext <<_LT_EOF 13412#line $LINENO "configure" 13413#include "confdefs.h" 13414 13415#if HAVE_DLFCN_H 13416#include <dlfcn.h> 13417#endif 13418 13419#include <stdio.h> 13420 13421#ifdef RTLD_GLOBAL 13422# define LT_DLGLOBAL RTLD_GLOBAL 13423#else 13424# ifdef DL_GLOBAL 13425# define LT_DLGLOBAL DL_GLOBAL 13426# else 13427# define LT_DLGLOBAL 0 13428# endif 13429#endif 13430 13431/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13432 find out it does not work in some platform. */ 13433#ifndef LT_DLLAZY_OR_NOW 13434# ifdef RTLD_LAZY 13435# define LT_DLLAZY_OR_NOW RTLD_LAZY 13436# else 13437# ifdef DL_LAZY 13438# define LT_DLLAZY_OR_NOW DL_LAZY 13439# else 13440# ifdef RTLD_NOW 13441# define LT_DLLAZY_OR_NOW RTLD_NOW 13442# else 13443# ifdef DL_NOW 13444# define LT_DLLAZY_OR_NOW DL_NOW 13445# else 13446# define LT_DLLAZY_OR_NOW 0 13447# endif 13448# endif 13449# endif 13450# endif 13451#endif 13452 13453/* When -fvisbility=hidden is used, assume the code has been annotated 13454 correspondingly for the symbols needed. */ 13455#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13456int fnord () __attribute__((visibility("default"))); 13457#endif 13458 13459int fnord () { return 42; } 13460int main () 13461{ 13462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13463 int status = $lt_dlunknown; 13464 13465 if (self) 13466 { 13467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13468 else 13469 { 13470 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13471 else puts (dlerror ()); 13472 } 13473 /* dlclose (self); */ 13474 } 13475 else 13476 puts (dlerror ()); 13477 13478 return status; 13479} 13480_LT_EOF 13481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13482 (eval $ac_link) 2>&5 13483 ac_status=$? 13484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13485 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13486 (./conftest; exit; ) >&5 2>/dev/null 13487 lt_status=$? 13488 case x$lt_status in 13489 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13490 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13491 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13492 esac 13493 else : 13494 # compilation failed 13495 lt_cv_dlopen_self=no 13496 fi 13497fi 13498rm -fr conftest* 13499 13500 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13503$as_echo "$lt_cv_dlopen_self" >&6; } 13504 13505 if test "x$lt_cv_dlopen_self" = xyes; then 13506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13508$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13509if ${lt_cv_dlopen_self_static+:} false; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 if test "$cross_compiling" = yes; then : 13513 lt_cv_dlopen_self_static=cross 13514else 13515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13516 lt_status=$lt_dlunknown 13517 cat > conftest.$ac_ext <<_LT_EOF 13518#line $LINENO "configure" 13519#include "confdefs.h" 13520 13521#if HAVE_DLFCN_H 13522#include <dlfcn.h> 13523#endif 13524 13525#include <stdio.h> 13526 13527#ifdef RTLD_GLOBAL 13528# define LT_DLGLOBAL RTLD_GLOBAL 13529#else 13530# ifdef DL_GLOBAL 13531# define LT_DLGLOBAL DL_GLOBAL 13532# else 13533# define LT_DLGLOBAL 0 13534# endif 13535#endif 13536 13537/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13538 find out it does not work in some platform. */ 13539#ifndef LT_DLLAZY_OR_NOW 13540# ifdef RTLD_LAZY 13541# define LT_DLLAZY_OR_NOW RTLD_LAZY 13542# else 13543# ifdef DL_LAZY 13544# define LT_DLLAZY_OR_NOW DL_LAZY 13545# else 13546# ifdef RTLD_NOW 13547# define LT_DLLAZY_OR_NOW RTLD_NOW 13548# else 13549# ifdef DL_NOW 13550# define LT_DLLAZY_OR_NOW DL_NOW 13551# else 13552# define LT_DLLAZY_OR_NOW 0 13553# endif 13554# endif 13555# endif 13556# endif 13557#endif 13558 13559/* When -fvisbility=hidden is used, assume the code has been annotated 13560 correspondingly for the symbols needed. */ 13561#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13562int fnord () __attribute__((visibility("default"))); 13563#endif 13564 13565int fnord () { return 42; } 13566int main () 13567{ 13568 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13569 int status = $lt_dlunknown; 13570 13571 if (self) 13572 { 13573 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13574 else 13575 { 13576 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13577 else puts (dlerror ()); 13578 } 13579 /* dlclose (self); */ 13580 } 13581 else 13582 puts (dlerror ()); 13583 13584 return status; 13585} 13586_LT_EOF 13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13588 (eval $ac_link) 2>&5 13589 ac_status=$? 13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13591 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13592 (./conftest; exit; ) >&5 2>/dev/null 13593 lt_status=$? 13594 case x$lt_status in 13595 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13596 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13597 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13598 esac 13599 else : 13600 # compilation failed 13601 lt_cv_dlopen_self_static=no 13602 fi 13603fi 13604rm -fr conftest* 13605 13606 13607fi 13608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13609$as_echo "$lt_cv_dlopen_self_static" >&6; } 13610 fi 13611 13612 CPPFLAGS="$save_CPPFLAGS" 13613 LDFLAGS="$save_LDFLAGS" 13614 LIBS="$save_LIBS" 13615 ;; 13616 esac 13617 13618 case $lt_cv_dlopen_self in 13619 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13620 *) enable_dlopen_self=unknown ;; 13621 esac 13622 13623 case $lt_cv_dlopen_self_static in 13624 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13625 *) enable_dlopen_self_static=unknown ;; 13626 esac 13627fi 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645striplib= 13646old_striplib= 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13648$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13649if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13650 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13651 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13653$as_echo "yes" >&6; } 13654else 13655# FIXME - insert some real tests, host_os isn't really good enough 13656 case $host_os in 13657 darwin*) 13658 if test -n "$STRIP" ; then 13659 striplib="$STRIP -x" 13660 old_striplib="$STRIP -S" 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13662$as_echo "yes" >&6; } 13663 else 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13665$as_echo "no" >&6; } 13666 fi 13667 ;; 13668 *) 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13670$as_echo "no" >&6; } 13671 ;; 13672 esac 13673fi 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 # Report which library types will actually be built 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13688$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13690$as_echo "$can_build_shared" >&6; } 13691 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13693$as_echo_n "checking whether to build shared libraries... " >&6; } 13694 test "$can_build_shared" = "no" && enable_shared=no 13695 13696 # On AIX, shared libraries and static libraries use the same namespace, and 13697 # are all built from PIC. 13698 case $host_os in 13699 aix3*) 13700 test "$enable_shared" = yes && enable_static=no 13701 if test -n "$RANLIB"; then 13702 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13703 postinstall_cmds='$RANLIB $lib' 13704 fi 13705 ;; 13706 13707 aix[4-9]*) 13708 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13709 test "$enable_shared" = yes && enable_static=no 13710 fi 13711 ;; 13712 esac 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13714$as_echo "$enable_shared" >&6; } 13715 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13717$as_echo_n "checking whether to build static libraries... " >&6; } 13718 # Make sure either enable_shared or enable_static is yes. 13719 test "$enable_shared" = yes || enable_static=yes 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13721$as_echo "$enable_static" >&6; } 13722 13723 13724 13725 13726fi 13727ac_ext=c 13728ac_cpp='$CPP $CPPFLAGS' 13729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13731ac_compiler_gnu=$ac_cv_c_compiler_gnu 13732 13733CC="$lt_save_CC" 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 ac_config_commands="$ac_config_commands libtool" 13750 13751 13752 13753 13754# Only expand once: 13755 13756 13757 13758 13759# Checks for header files. 13760for 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 13761do : 13762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13764" 13765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13766 cat >>confdefs.h <<_ACEOF 13767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13768_ACEOF 13769 13770fi 13771 13772done 13773 13774 13775# check for types. 13776# Using own tests for int64* because autoconf builtin only give 32bit. 13777ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13778if test "x$ac_cv_type_int8_t" = xyes; then : 13779 13780else 13781 13782cat >>confdefs.h <<_ACEOF 13783#define int8_t signed char 13784_ACEOF 13785 13786fi 13787 13788ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13789if test "x$ac_cv_type_int16_t" = xyes; then : 13790 13791else 13792 13793cat >>confdefs.h <<_ACEOF 13794#define int16_t short 13795_ACEOF 13796 13797fi 13798 13799ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13800if test "x$ac_cv_type_int32_t" = xyes; then : 13801 13802else 13803 13804cat >>confdefs.h <<_ACEOF 13805#define int32_t int 13806_ACEOF 13807 13808fi 13809 13810ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 13811if test "x$ac_cv_type_int64_t" = xyes; then : 13812 13813else 13814 13815cat >>confdefs.h <<_ACEOF 13816#define int64_t long long 13817_ACEOF 13818 13819fi 13820 13821ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13822if test "x$ac_cv_type_uint8_t" = xyes; then : 13823 13824else 13825 13826cat >>confdefs.h <<_ACEOF 13827#define uint8_t unsigned char 13828_ACEOF 13829 13830fi 13831 13832ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13833if test "x$ac_cv_type_uint16_t" = xyes; then : 13834 13835else 13836 13837cat >>confdefs.h <<_ACEOF 13838#define uint16_t unsigned short 13839_ACEOF 13840 13841fi 13842 13843ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13844if test "x$ac_cv_type_uint32_t" = xyes; then : 13845 13846else 13847 13848cat >>confdefs.h <<_ACEOF 13849#define uint32_t unsigned int 13850_ACEOF 13851 13852fi 13853 13854ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13855if test "x$ac_cv_type_uint64_t" = xyes; then : 13856 13857else 13858 13859cat >>confdefs.h <<_ACEOF 13860#define uint64_t unsigned long long 13861_ACEOF 13862 13863fi 13864 13865ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13866if test "x$ac_cv_type_size_t" = xyes; then : 13867 13868else 13869 13870cat >>confdefs.h <<_ACEOF 13871#define size_t unsigned int 13872_ACEOF 13873 13874fi 13875 13876ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13877if test "x$ac_cv_type_ssize_t" = xyes; then : 13878 13879else 13880 13881cat >>confdefs.h <<_ACEOF 13882#define ssize_t int 13883_ACEOF 13884 13885fi 13886 13887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13888$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13889if ${ac_cv_type_uid_t+:} false; then : 13890 $as_echo_n "(cached) " >&6 13891else 13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13893/* end confdefs.h. */ 13894#include <sys/types.h> 13895 13896_ACEOF 13897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13898 $EGREP "uid_t" >/dev/null 2>&1; then : 13899 ac_cv_type_uid_t=yes 13900else 13901 ac_cv_type_uid_t=no 13902fi 13903rm -f conftest* 13904 13905fi 13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13907$as_echo "$ac_cv_type_uid_t" >&6; } 13908if test $ac_cv_type_uid_t = no; then 13909 13910$as_echo "#define uid_t int" >>confdefs.h 13911 13912 13913$as_echo "#define gid_t int" >>confdefs.h 13914 13915fi 13916 13917ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13918if test "x$ac_cv_type_pid_t" = xyes; then : 13919 13920else 13921 13922cat >>confdefs.h <<_ACEOF 13923#define pid_t int 13924_ACEOF 13925 13926fi 13927 13928ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13929if test "x$ac_cv_type_off_t" = xyes; then : 13930 13931else 13932 13933cat >>confdefs.h <<_ACEOF 13934#define off_t long int 13935_ACEOF 13936 13937fi 13938 13939ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 13940$ac_includes_default 13941#ifdef HAVE_WINSOCK2_H 13942# include <winsock2.h> 13943#endif 13944 13945" 13946if test "x$ac_cv_type_u_char" = xyes; then : 13947 13948else 13949 13950$as_echo "#define u_char unsigned char" >>confdefs.h 13951 13952fi 13953 13954ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 13955$ac_includes_default 13956#ifdef HAVE_SYS_RESOURCE_H 13957# include <sys/resource.h> 13958#endif 13959 13960" 13961if test "x$ac_cv_type_rlim_t" = xyes; then : 13962 13963else 13964 13965$as_echo "#define rlim_t unsigned long" >>confdefs.h 13966 13967fi 13968 13969 13970ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13971$ac_includes_default 13972#ifdef HAVE_SYS_SOCKET_H 13973# include <sys/socket.h> 13974#endif 13975#ifdef HAVE_WS2TCPIP_H 13976# include <ws2tcpip.h> 13977#endif 13978 13979" 13980if test "x$ac_cv_type_socklen_t" = xyes; then : 13981 13982else 13983 13984$as_echo "#define socklen_t int" >>confdefs.h 13985 13986fi 13987 13988 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 13989$ac_includes_default 13990#ifdef HAVE_SYS_TYPES_H 13991# include <sys/types.h> 13992#endif 13993#ifdef HAVE_NETINET_IN_H 13994# include <netinet/in.h> 13995#endif 13996 13997" 13998if test "x$ac_cv_type_in_addr_t" = xyes; then : 13999 14000else 14001 14002$as_echo "#define in_addr_t uint32_t" >>confdefs.h 14003 14004fi 14005 14006 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 14007$ac_includes_default 14008#ifdef HAVE_SYS_TYPES_H 14009# include <sys/types.h> 14010#endif 14011#ifdef HAVE_NETINET_IN_H 14012# include <netinet/in.h> 14013#endif 14014 14015" 14016if test "x$ac_cv_type_in_port_t" = xyes; then : 14017 14018else 14019 14020$as_echo "#define in_port_t uint16_t" >>confdefs.h 14021 14022fi 14023 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 14025$as_echo_n "checking if memcmp compares unsigned... " >&6; } 14026if test "$cross_compiling" = yes; then : 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 14028$as_echo "cross-compile no" >&6; } 14029 14030$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14031 14032 case " $LIBOBJS " in 14033 *" memcmp.$ac_objext "* ) ;; 14034 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14035 ;; 14036esac 14037 14038 14039else 14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042 14043#include <stdio.h> 14044#include <stdlib.h> 14045#include <string.h> 14046int main(void) 14047{ 14048 char a = 255, b = 0; 14049 if(memcmp(&a, &b, 1) < 0) 14050 return 1; 14051 return 0; 14052} 14053 14054_ACEOF 14055if ac_fn_c_try_run "$LINENO"; then : 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14057$as_echo "yes" >&6; } 14058else 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14060$as_echo "no" >&6; } 14061 14062$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14063 14064 case " $LIBOBJS " in 14065 *" memcmp.$ac_objext "* ) ;; 14066 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14067 ;; 14068esac 14069 14070 14071fi 14072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14073 conftest.$ac_objext conftest.beam conftest.$ac_ext 14074fi 14075 14076 14077# The cast to long int works around a bug in the HP C Compiler 14078# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14079# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14080# This bug is HP SR number 8606223364. 14081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14082$as_echo_n "checking size of time_t... " >&6; } 14083if ${ac_cv_sizeof_time_t+:} false; then : 14084 $as_echo_n "(cached) " >&6 14085else 14086 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14087$ac_includes_default 14088#ifdef TIME_WITH_SYS_TIME 14089# include <sys/time.h> 14090# include <time.h> 14091#else 14092# ifdef HAVE_SYS_TIME_H 14093# include <sys/time.h> 14094# else 14095# include <time.h> 14096# endif 14097#endif 14098 14099"; then : 14100 14101else 14102 if test "$ac_cv_type_time_t" = yes; then 14103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14105as_fn_error 77 "cannot compute sizeof (time_t) 14106See \`config.log' for more details" "$LINENO" 5; } 14107 else 14108 ac_cv_sizeof_time_t=0 14109 fi 14110fi 14111 14112fi 14113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14114$as_echo "$ac_cv_sizeof_time_t" >&6; } 14115 14116 14117 14118cat >>confdefs.h <<_ACEOF 14119#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14120_ACEOF 14121 14122 14123 14124# add option to disable the evil rpath 14125 14126# Check whether --enable-rpath was given. 14127if test "${enable_rpath+set}" = set; then : 14128 enableval=$enable_rpath; enable_rpath=$enableval 14129else 14130 enable_rpath=yes 14131fi 14132 14133if test "x$enable_rpath" = xno; then 14134 ac_config_commands="$ac_config_commands disable-rpath" 14135 14136fi 14137 14138 14139 14140# check to see if libraries are needed for these functions. 14141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14142$as_echo_n "checking for library containing inet_pton... " >&6; } 14143if ${ac_cv_search_inet_pton+:} false; then : 14144 $as_echo_n "(cached) " >&6 14145else 14146 ac_func_search_save_LIBS=$LIBS 14147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148/* end confdefs.h. */ 14149 14150/* Override any GCC internal prototype to avoid an error. 14151 Use char because int might match the return type of a GCC 14152 builtin and then its argument prototype would still apply. */ 14153#ifdef __cplusplus 14154extern "C" 14155#endif 14156char inet_pton (); 14157int 14158main () 14159{ 14160return inet_pton (); 14161 ; 14162 return 0; 14163} 14164_ACEOF 14165for ac_lib in '' nsl; do 14166 if test -z "$ac_lib"; then 14167 ac_res="none required" 14168 else 14169 ac_res=-l$ac_lib 14170 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14171 fi 14172 if ac_fn_c_try_link "$LINENO"; then : 14173 ac_cv_search_inet_pton=$ac_res 14174fi 14175rm -f core conftest.err conftest.$ac_objext \ 14176 conftest$ac_exeext 14177 if ${ac_cv_search_inet_pton+:} false; then : 14178 break 14179fi 14180done 14181if ${ac_cv_search_inet_pton+:} false; then : 14182 14183else 14184 ac_cv_search_inet_pton=no 14185fi 14186rm conftest.$ac_ext 14187LIBS=$ac_func_search_save_LIBS 14188fi 14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14190$as_echo "$ac_cv_search_inet_pton" >&6; } 14191ac_res=$ac_cv_search_inet_pton 14192if test "$ac_res" != no; then : 14193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14194 14195fi 14196 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14198$as_echo_n "checking for library containing socket... " >&6; } 14199if ${ac_cv_search_socket+:} false; then : 14200 $as_echo_n "(cached) " >&6 14201else 14202 ac_func_search_save_LIBS=$LIBS 14203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205 14206/* Override any GCC internal prototype to avoid an error. 14207 Use char because int might match the return type of a GCC 14208 builtin and then its argument prototype would still apply. */ 14209#ifdef __cplusplus 14210extern "C" 14211#endif 14212char socket (); 14213int 14214main () 14215{ 14216return socket (); 14217 ; 14218 return 0; 14219} 14220_ACEOF 14221for ac_lib in '' socket; do 14222 if test -z "$ac_lib"; then 14223 ac_res="none required" 14224 else 14225 ac_res=-l$ac_lib 14226 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14227 fi 14228 if ac_fn_c_try_link "$LINENO"; then : 14229 ac_cv_search_socket=$ac_res 14230fi 14231rm -f core conftest.err conftest.$ac_objext \ 14232 conftest$ac_exeext 14233 if ${ac_cv_search_socket+:} false; then : 14234 break 14235fi 14236done 14237if ${ac_cv_search_socket+:} false; then : 14238 14239else 14240 ac_cv_search_socket=no 14241fi 14242rm conftest.$ac_ext 14243LIBS=$ac_func_search_save_LIBS 14244fi 14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14246$as_echo "$ac_cv_search_socket" >&6; } 14247ac_res=$ac_cv_search_socket 14248if test "$ac_res" != no; then : 14249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14250 14251fi 14252 14253 14254# check wether strptime also works 14255 14256# check some functions of the OS before linking libs (while still runnable). 14257for ac_header in unistd.h 14258do : 14259 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14260if test "x$ac_cv_header_unistd_h" = xyes; then : 14261 cat >>confdefs.h <<_ACEOF 14262#define HAVE_UNISTD_H 1 14263_ACEOF 14264 14265fi 14266 14267done 14268 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14270$as_echo_n "checking for working chown... " >&6; } 14271if ${ac_cv_func_chown_works+:} false; then : 14272 $as_echo_n "(cached) " >&6 14273else 14274 if test "$cross_compiling" = yes; then : 14275 ac_cv_func_chown_works=no 14276else 14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14278/* end confdefs.h. */ 14279$ac_includes_default 14280#include <fcntl.h> 14281 14282int 14283main () 14284{ 14285 char *f = "conftest.chown"; 14286 struct stat before, after; 14287 14288 if (creat (f, 0600) < 0) 14289 return 1; 14290 if (stat (f, &before) < 0) 14291 return 1; 14292 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14293 return 1; 14294 if (stat (f, &after) < 0) 14295 return 1; 14296 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14297 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302if ac_fn_c_try_run "$LINENO"; then : 14303 ac_cv_func_chown_works=yes 14304else 14305 ac_cv_func_chown_works=no 14306fi 14307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14308 conftest.$ac_objext conftest.beam conftest.$ac_ext 14309fi 14310 14311rm -f conftest.chown 14312 14313fi 14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14315$as_echo "$ac_cv_func_chown_works" >&6; } 14316if test $ac_cv_func_chown_works = yes; then 14317 14318$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 14319 14320fi 14321 14322for ac_header in vfork.h 14323do : 14324 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14325if test "x$ac_cv_header_vfork_h" = xyes; then : 14326 cat >>confdefs.h <<_ACEOF 14327#define HAVE_VFORK_H 1 14328_ACEOF 14329 14330fi 14331 14332done 14333 14334for ac_func in fork vfork 14335do : 14336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14337ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14338if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14339 cat >>confdefs.h <<_ACEOF 14340#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14341_ACEOF 14342 14343fi 14344done 14345 14346if test "x$ac_cv_func_fork" = xyes; then 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14348$as_echo_n "checking for working fork... " >&6; } 14349if ${ac_cv_func_fork_works+:} false; then : 14350 $as_echo_n "(cached) " >&6 14351else 14352 if test "$cross_compiling" = yes; then : 14353 ac_cv_func_fork_works=cross 14354else 14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14356/* end confdefs.h. */ 14357$ac_includes_default 14358int 14359main () 14360{ 14361 14362 /* By Ruediger Kuhlmann. */ 14363 return fork () < 0; 14364 14365 ; 14366 return 0; 14367} 14368_ACEOF 14369if ac_fn_c_try_run "$LINENO"; then : 14370 ac_cv_func_fork_works=yes 14371else 14372 ac_cv_func_fork_works=no 14373fi 14374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14375 conftest.$ac_objext conftest.beam conftest.$ac_ext 14376fi 14377 14378fi 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14380$as_echo "$ac_cv_func_fork_works" >&6; } 14381 14382else 14383 ac_cv_func_fork_works=$ac_cv_func_fork 14384fi 14385if test "x$ac_cv_func_fork_works" = xcross; then 14386 case $host in 14387 *-*-amigaos* | *-*-msdosdjgpp*) 14388 # Override, as these systems have only a dummy fork() stub 14389 ac_cv_func_fork_works=no 14390 ;; 14391 *) 14392 ac_cv_func_fork_works=yes 14393 ;; 14394 esac 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14396$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14397fi 14398ac_cv_func_vfork_works=$ac_cv_func_vfork 14399if test "x$ac_cv_func_vfork" = xyes; then 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14401$as_echo_n "checking for working vfork... " >&6; } 14402if ${ac_cv_func_vfork_works+:} false; then : 14403 $as_echo_n "(cached) " >&6 14404else 14405 if test "$cross_compiling" = yes; then : 14406 ac_cv_func_vfork_works=cross 14407else 14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14409/* end confdefs.h. */ 14410/* Thanks to Paul Eggert for this test. */ 14411$ac_includes_default 14412#include <sys/wait.h> 14413#ifdef HAVE_VFORK_H 14414# include <vfork.h> 14415#endif 14416/* On some sparc systems, changes by the child to local and incoming 14417 argument registers are propagated back to the parent. The compiler 14418 is told about this with #include <vfork.h>, but some compilers 14419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14420 static variable whose address is put into a register that is 14421 clobbered by the vfork. */ 14422static void 14423#ifdef __cplusplus 14424sparc_address_test (int arg) 14425# else 14426sparc_address_test (arg) int arg; 14427#endif 14428{ 14429 static pid_t child; 14430 if (!child) { 14431 child = vfork (); 14432 if (child < 0) { 14433 perror ("vfork"); 14434 _exit(2); 14435 } 14436 if (!child) { 14437 arg = getpid(); 14438 write(-1, "", 0); 14439 _exit (arg); 14440 } 14441 } 14442} 14443 14444int 14445main () 14446{ 14447 pid_t parent = getpid (); 14448 pid_t child; 14449 14450 sparc_address_test (0); 14451 14452 child = vfork (); 14453 14454 if (child == 0) { 14455 /* Here is another test for sparc vfork register problems. This 14456 test uses lots of local variables, at least as many local 14457 variables as main has allocated so far including compiler 14458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14460 reuse the register of parent for one of the local variables, 14461 since it will think that parent can't possibly be used any more 14462 in this routine. Assigning to the local variable will thus 14463 munge parent in the parent process. */ 14464 pid_t 14465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14467 /* Convince the compiler that p..p7 are live; otherwise, it might 14468 use the same hardware register for all 8 local variables. */ 14469 if (p != p1 || p != p2 || p != p3 || p != p4 14470 || p != p5 || p != p6 || p != p7) 14471 _exit(1); 14472 14473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14474 from child file descriptors. If the child closes a descriptor 14475 before it execs or exits, this munges the parent's descriptor 14476 as well. Test for this by closing stdout in the child. */ 14477 _exit(close(fileno(stdout)) != 0); 14478 } else { 14479 int status; 14480 struct stat st; 14481 14482 while (wait(&status) != child) 14483 ; 14484 return ( 14485 /* Was there some problem with vforking? */ 14486 child < 0 14487 14488 /* Did the child fail? (This shouldn't happen.) */ 14489 || status 14490 14491 /* Did the vfork/compiler bug occur? */ 14492 || parent != getpid() 14493 14494 /* Did the file descriptor bug occur? */ 14495 || fstat(fileno(stdout), &st) != 0 14496 ); 14497 } 14498} 14499_ACEOF 14500if ac_fn_c_try_run "$LINENO"; then : 14501 ac_cv_func_vfork_works=yes 14502else 14503 ac_cv_func_vfork_works=no 14504fi 14505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14506 conftest.$ac_objext conftest.beam conftest.$ac_ext 14507fi 14508 14509fi 14510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14511$as_echo "$ac_cv_func_vfork_works" >&6; } 14512 14513fi; 14514if test "x$ac_cv_func_fork_works" = xcross; then 14515 ac_cv_func_vfork_works=$ac_cv_func_vfork 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14517$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14518fi 14519 14520if test "x$ac_cv_func_vfork_works" = xyes; then 14521 14522$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14523 14524else 14525 14526$as_echo "#define vfork fork" >>confdefs.h 14527 14528fi 14529if test "x$ac_cv_func_fork_works" = xyes; then 14530 14531$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14532 14533fi 14534 14535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14536$as_echo_n "checking return type of signal handlers... " >&6; } 14537if ${ac_cv_type_signal+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542#include <sys/types.h> 14543#include <signal.h> 14544 14545int 14546main () 14547{ 14548return *(signal (0, 0)) (0) == 1; 14549 ; 14550 return 0; 14551} 14552_ACEOF 14553if ac_fn_c_try_compile "$LINENO"; then : 14554 ac_cv_type_signal=int 14555else 14556 ac_cv_type_signal=void 14557fi 14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14559fi 14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14561$as_echo "$ac_cv_type_signal" >&6; } 14562 14563cat >>confdefs.h <<_ACEOF 14564#define RETSIGTYPE $ac_cv_type_signal 14565_ACEOF 14566 14567 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14569$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14570if ${ac_cv_sys_largefile_source+:} false; then : 14571 $as_echo_n "(cached) " >&6 14572else 14573 while :; do 14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14575/* end confdefs.h. */ 14576#include <sys/types.h> /* for off_t */ 14577 #include <stdio.h> 14578int 14579main () 14580{ 14581int (*fp) (FILE *, off_t, int) = fseeko; 14582 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO"; then : 14588 ac_cv_sys_largefile_source=no; break 14589fi 14590rm -f core conftest.err conftest.$ac_objext \ 14591 conftest$ac_exeext conftest.$ac_ext 14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14593/* end confdefs.h. */ 14594#define _LARGEFILE_SOURCE 1 14595#include <sys/types.h> /* for off_t */ 14596 #include <stdio.h> 14597int 14598main () 14599{ 14600int (*fp) (FILE *, off_t, int) = fseeko; 14601 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14602 ; 14603 return 0; 14604} 14605_ACEOF 14606if ac_fn_c_try_link "$LINENO"; then : 14607 ac_cv_sys_largefile_source=1; break 14608fi 14609rm -f core conftest.err conftest.$ac_objext \ 14610 conftest$ac_exeext conftest.$ac_ext 14611 ac_cv_sys_largefile_source=unknown 14612 break 14613done 14614fi 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14616$as_echo "$ac_cv_sys_largefile_source" >&6; } 14617case $ac_cv_sys_largefile_source in #( 14618 no | unknown) ;; 14619 *) 14620cat >>confdefs.h <<_ACEOF 14621#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14622_ACEOF 14623;; 14624esac 14625rm -rf conftest* 14626 14627# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14628# in glibc 2.1.3, but that breaks too many other things. 14629# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14630if test $ac_cv_sys_largefile_source != unknown; then 14631 14632$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14633 14634fi 14635 14636 14637# Check whether --enable-largefile was given. 14638if test "${enable_largefile+set}" = set; then : 14639 enableval=$enable_largefile; 14640fi 14641 14642if test "$enable_largefile" != no; then 14643 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14645$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14646if ${ac_cv_sys_largefile_CC+:} false; then : 14647 $as_echo_n "(cached) " >&6 14648else 14649 ac_cv_sys_largefile_CC=no 14650 if test "$GCC" != yes; then 14651 ac_save_CC=$CC 14652 while :; do 14653 # IRIX 6.2 and later do not support large files by default, 14654 # so use the C compiler's -n32 option if that helps. 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657#include <sys/types.h> 14658 /* Check that off_t can represent 2**63 - 1 correctly. 14659 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14660 since some C++ compilers masquerading as C compilers 14661 incorrectly reject 9223372036854775807. */ 14662#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14664 && LARGE_OFF_T % 2147483647 == 1) 14665 ? 1 : -1]; 14666int 14667main () 14668{ 14669 14670 ; 14671 return 0; 14672} 14673_ACEOF 14674 if ac_fn_c_try_compile "$LINENO"; then : 14675 break 14676fi 14677rm -f core conftest.err conftest.$ac_objext 14678 CC="$CC -n32" 14679 if ac_fn_c_try_compile "$LINENO"; then : 14680 ac_cv_sys_largefile_CC=' -n32'; break 14681fi 14682rm -f core conftest.err conftest.$ac_objext 14683 break 14684 done 14685 CC=$ac_save_CC 14686 rm -f conftest.$ac_ext 14687 fi 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14690$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14691 if test "$ac_cv_sys_largefile_CC" != no; then 14692 CC=$CC$ac_cv_sys_largefile_CC 14693 fi 14694 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14696$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14697if ${ac_cv_sys_file_offset_bits+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 while :; do 14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14702/* end confdefs.h. */ 14703#include <sys/types.h> 14704 /* Check that off_t can represent 2**63 - 1 correctly. 14705 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14706 since some C++ compilers masquerading as C compilers 14707 incorrectly reject 9223372036854775807. */ 14708#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14710 && LARGE_OFF_T % 2147483647 == 1) 14711 ? 1 : -1]; 14712int 14713main () 14714{ 14715 14716 ; 14717 return 0; 14718} 14719_ACEOF 14720if ac_fn_c_try_compile "$LINENO"; then : 14721 ac_cv_sys_file_offset_bits=no; break 14722fi 14723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726#define _FILE_OFFSET_BITS 64 14727#include <sys/types.h> 14728 /* Check that off_t can represent 2**63 - 1 correctly. 14729 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14730 since some C++ compilers masquerading as C compilers 14731 incorrectly reject 9223372036854775807. */ 14732#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14734 && LARGE_OFF_T % 2147483647 == 1) 14735 ? 1 : -1]; 14736int 14737main () 14738{ 14739 14740 ; 14741 return 0; 14742} 14743_ACEOF 14744if ac_fn_c_try_compile "$LINENO"; then : 14745 ac_cv_sys_file_offset_bits=64; break 14746fi 14747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14748 ac_cv_sys_file_offset_bits=unknown 14749 break 14750done 14751fi 14752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14753$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14754case $ac_cv_sys_file_offset_bits in #( 14755 no | unknown) ;; 14756 *) 14757cat >>confdefs.h <<_ACEOF 14758#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14759_ACEOF 14760;; 14761esac 14762rm -rf conftest* 14763 if test $ac_cv_sys_file_offset_bits = unknown; then 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14765$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14766if ${ac_cv_sys_large_files+:} false; then : 14767 $as_echo_n "(cached) " >&6 14768else 14769 while :; do 14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14771/* end confdefs.h. */ 14772#include <sys/types.h> 14773 /* Check that off_t can represent 2**63 - 1 correctly. 14774 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14775 since some C++ compilers masquerading as C compilers 14776 incorrectly reject 9223372036854775807. */ 14777#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14779 && LARGE_OFF_T % 2147483647 == 1) 14780 ? 1 : -1]; 14781int 14782main () 14783{ 14784 14785 ; 14786 return 0; 14787} 14788_ACEOF 14789if ac_fn_c_try_compile "$LINENO"; then : 14790 ac_cv_sys_large_files=no; break 14791fi 14792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14794/* end confdefs.h. */ 14795#define _LARGE_FILES 1 14796#include <sys/types.h> 14797 /* Check that off_t can represent 2**63 - 1 correctly. 14798 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14799 since some C++ compilers masquerading as C compilers 14800 incorrectly reject 9223372036854775807. */ 14801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14803 && LARGE_OFF_T % 2147483647 == 1) 14804 ? 1 : -1]; 14805int 14806main () 14807{ 14808 14809 ; 14810 return 0; 14811} 14812_ACEOF 14813if ac_fn_c_try_compile "$LINENO"; then : 14814 ac_cv_sys_large_files=1; break 14815fi 14816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14817 ac_cv_sys_large_files=unknown 14818 break 14819done 14820fi 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14822$as_echo "$ac_cv_sys_large_files" >&6; } 14823case $ac_cv_sys_large_files in #( 14824 no | unknown) ;; 14825 *) 14826cat >>confdefs.h <<_ACEOF 14827#define _LARGE_FILES $ac_cv_sys_large_files 14828_ACEOF 14829;; 14830esac 14831rm -rf conftest* 14832 fi 14833 14834 14835fi 14836 14837 14838 14839 14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 14841$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 14842cache=_D_LARGEFILE_SOURCE_1 14843if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 14844 $as_echo_n "(cached) " >&6 14845else 14846 14847echo ' 14848#include <stdio.h> 14849int test() { 14850 int a = fseeko(stdin, 0, 0); 14851 return a; 14852} 14853' > conftest.c 14854echo 'void f(){}' >>conftest.c 14855if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14856eval "cv_prog_cc_flag_needed_$cache=no" 14857else 14858 14859if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 14860eval "cv_prog_cc_flag_needed_$cache=yes" 14861else 14862eval "cv_prog_cc_flag_needed_$cache=fail" 14863#echo 'Test with flag fails too!' 14864#cat conftest.c 14865#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14866#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14867#exit 1 14868fi 14869 14870fi 14871rm -f conftest conftest.c conftest.o 14872 14873fi 14874 14875if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14877$as_echo "yes" >&6; } 14878: 14879CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 14880else 14881if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14883$as_echo "no" >&6; } 14884#echo 'Test with flag is no!' 14885#cat conftest.c 14886#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14887#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14888#exit 1 14889: 14890 14891else 14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14893$as_echo "failed" >&6; } 14894: 14895 14896fi 14897fi 14898 14899 14900 14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 14902$as_echo_n "checking if nonblocking sockets work... " >&6; } 14903if echo $target | grep mingw32 >/dev/null; then 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 14905$as_echo "no (windows)" >&6; } 14906 14907$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14908 14909else 14910if test "$cross_compiling" = yes; then : 14911 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 14913$as_echo "crosscompile(yes)" >&6; } 14914 14915else 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918 14919 14920#include <stdio.h> 14921#include <string.h> 14922#include <stdlib.h> 14923#include <fcntl.h> 14924#include <errno.h> 14925#ifdef HAVE_SYS_TYPES_H 14926#include <sys/types.h> 14927#endif 14928#ifdef HAVE_SYS_SOCKET_H 14929#include <sys/socket.h> 14930#endif 14931#ifdef HAVE_NETINET_IN_H 14932#include <netinet/in.h> 14933#endif 14934#ifdef HAVE_ARPA_INET_H 14935#include <arpa/inet.h> 14936#endif 14937#ifdef HAVE_UNISTD_H 14938#include <unistd.h> 14939#endif 14940#ifdef HAVE_TIME_H 14941#include <time.h> 14942#endif 14943 14944int main(void) 14945{ 14946 int port; 14947 int sfd, cfd; 14948 int num = 10; 14949 int i, p; 14950 struct sockaddr_in a; 14951 /* test if select and nonblocking reads work well together */ 14952 /* open port. 14953 fork child to send 10 messages. 14954 select to read. 14955 then try to nonblocking read the 10 messages 14956 then, nonblocking read must give EAGAIN 14957 */ 14958 14959 port = 12345 + (time(0)%32); 14960 sfd = socket(PF_INET, SOCK_DGRAM, 0); 14961 if(sfd == -1) { 14962 perror("socket"); 14963 return 1; 14964 } 14965 memset(&a, 0, sizeof(a)); 14966 a.sin_family = AF_INET; 14967 a.sin_port = htons(port); 14968 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 14969 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14970 perror("bind"); 14971 return 1; 14972 } 14973 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 14974 perror("fcntl"); 14975 return 1; 14976 } 14977 14978 cfd = socket(PF_INET, SOCK_DGRAM, 0); 14979 if(cfd == -1) { 14980 perror("client socket"); 14981 return 1; 14982 } 14983 a.sin_port = 0; 14984 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14985 perror("client bind"); 14986 return 1; 14987 } 14988 a.sin_port = htons(port); 14989 14990 /* no handler, causes exit in 10 seconds */ 14991 alarm(10); 14992 14993 /* send and receive on the socket */ 14994 if((p=fork()) == 0) { 14995 for(i=0; i<num; i++) { 14996 if(sendto(cfd, &i, sizeof(i), 0, 14997 (struct sockaddr*)&a, sizeof(a)) < 0) { 14998 perror("sendto"); 14999 return 1; 15000 } 15001 } 15002 } else { 15003 /* parent */ 15004 fd_set rset; 15005 int x; 15006 if(p == -1) { 15007 perror("fork"); 15008 return 1; 15009 } 15010 FD_ZERO(&rset); 15011 FD_SET(sfd, &rset); 15012 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 15013 perror("select"); 15014 return 1; 15015 } 15016 i = 0; 15017 while(i < num) { 15018 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 15019 if(errno == EAGAIN) 15020 continue; 15021 perror("recv"); 15022 return 1; 15023 } 15024 i++; 15025 } 15026 /* now we want to get EAGAIN: nonblocking goodness */ 15027 errno = 0; 15028 recv(sfd, &x, sizeof(x), 0); 15029 if(errno != EAGAIN) { 15030 perror("trying to recv again"); 15031 return 1; 15032 } 15033 /* EAGAIN encountered */ 15034 } 15035 15036 close(sfd); 15037 close(cfd); 15038 return 0; 15039} 15040 15041_ACEOF 15042if ac_fn_c_try_run "$LINENO"; then : 15043 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15045$as_echo "yes" >&6; } 15046 15047else 15048 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15050$as_echo "no" >&6; } 15051 15052$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15053 15054 15055fi 15056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15057 conftest.$ac_objext conftest.beam conftest.$ac_ext 15058fi 15059 15060fi 15061 15062 15063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 15064$as_echo_n "checking whether mkdir has one arg... " >&6; } 15065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066/* end confdefs.h. */ 15067 15068#include <stdio.h> 15069#include <unistd.h> 15070#ifdef HAVE_WINSOCK2_H 15071#include <winsock2.h> 15072#endif 15073#ifdef HAVE_SYS_STAT_H 15074#include <sys/stat.h> 15075#endif 15076 15077int 15078main () 15079{ 15080 15081 (void)mkdir("directory"); 15082 15083 ; 15084 return 0; 15085} 15086_ACEOF 15087if ac_fn_c_try_compile "$LINENO"; then : 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15089$as_echo "yes" >&6; } 15090 15091$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 15092 15093 15094else 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15096$as_echo "no" >&6; } 15097 15098fi 15099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15100 15101for ac_func in strptime 15102do : 15103 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 15104if test "x$ac_cv_func_strptime" = xyes; then : 15105 cat >>confdefs.h <<_ACEOF 15106#define HAVE_STRPTIME 1 15107_ACEOF 15108 15109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 15110$as_echo_n "checking whether strptime works... " >&6; } 15111if test c${cross_compiling} = cno; then 15112if test "$cross_compiling" = yes; then : 15113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15115as_fn_error $? "cannot run test program while cross compiling 15116See \`config.log' for more details" "$LINENO" 5; } 15117else 15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15119/* end confdefs.h. */ 15120 15121#define _XOPEN_SOURCE 15122#include <time.h> 15123int main(void) { struct tm tm; char *res; 15124res = 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); 15125if (!res) return 2; 15126res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 15127if (!res) return 1; return 0; } 15128 15129_ACEOF 15130if ac_fn_c_try_run "$LINENO"; then : 15131 eval "ac_cv_c_strptime_works=yes" 15132else 15133 eval "ac_cv_c_strptime_works=no" 15134fi 15135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15136 conftest.$ac_objext conftest.beam conftest.$ac_ext 15137fi 15138 15139else 15140eval "ac_cv_c_strptime_works=maybe" 15141fi 15142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 15143$as_echo "$ac_cv_c_strptime_works" >&6; } 15144if test $ac_cv_c_strptime_works = no; then 15145case " $LIBOBJS " in 15146 *" strptime.$ac_objext "* ) ;; 15147 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15148 ;; 15149esac 15150 15151else 15152 15153cat >>confdefs.h <<_ACEOF 15154#define STRPTIME_WORKS 1 15155_ACEOF 15156 15157fi 15158 15159else 15160 case " $LIBOBJS " in 15161 *" strptime.$ac_objext "* ) ;; 15162 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15163 ;; 15164esac 15165 15166fi 15167done 15168 15169 15170# set memory allocation checking if requested 15171# Check whether --enable-alloc-checks was given. 15172if test "${enable_alloc_checks+set}" = set; then : 15173 enableval=$enable_alloc_checks; 15174fi 15175 15176# Check whether --enable-alloc-lite was given. 15177if test "${enable_alloc_lite+set}" = set; then : 15178 enableval=$enable_alloc_lite; 15179fi 15180 15181# Check whether --enable-alloc-nonregional was given. 15182if test "${enable_alloc_nonregional+set}" = set; then : 15183 enableval=$enable_alloc_nonregional; 15184fi 15185 15186if test x_$enable_alloc_nonregional = x_yes; then 15187 15188$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 15189 15190fi 15191if test x_$enable_alloc_checks = x_yes; then 15192 15193$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 15194 15195else 15196 if test x_$enable_alloc_lite = x_yes; then 15197 15198$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 15199 15200 else 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15203$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15204 if test "$cross_compiling" = yes; then : 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 15206$as_echo "no (crosscompile)" >&6; } 15207 case " $LIBOBJS " in 15208 *" malloc.$ac_objext "* ) ;; 15209 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15210 ;; 15211esac 15212 15213 15214cat >>confdefs.h <<_ACEOF 15215#define malloc rpl_malloc_unbound 15216_ACEOF 15217 15218else 15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15220/* end confdefs.h. */ 15221#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15222#include <stdlib.h> 15223#else 15224char *malloc (); 15225#endif 15226 15227int 15228main () 15229{ 15230 if(malloc(0) != 0) return 1; 15231 ; 15232 return 0; 15233} 15234 15235_ACEOF 15236if ac_fn_c_try_run "$LINENO"; then : 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15238$as_echo "no" >&6; } 15239 case " $LIBOBJS " in 15240 *" malloc.$ac_objext "* ) ;; 15241 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15242 ;; 15243esac 15244 15245 15246cat >>confdefs.h <<_ACEOF 15247#define malloc rpl_malloc_unbound 15248_ACEOF 15249 15250else 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15252$as_echo "yes" >&6; } 15253 15254$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15255 15256fi 15257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15258 conftest.$ac_objext conftest.beam conftest.$ac_ext 15259fi 15260 15261 15262 fi 15263fi 15264 15265# check windows threads (we use them, not pthreads, on windows). 15266if test "$on_mingw" = "yes"; then 15267# check windows threads 15268 for ac_header in windows.h 15269do : 15270 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15271" 15272if test "x$ac_cv_header_windows_h" = xyes; then : 15273 cat >>confdefs.h <<_ACEOF 15274#define HAVE_WINDOWS_H 1 15275_ACEOF 15276 15277fi 15278 15279done 15280 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 15282$as_echo_n "checking for CreateThread... " >&6; } 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285 15286#ifdef HAVE_WINDOWS_H 15287#include <windows.h> 15288#endif 15289 15290int 15291main () 15292{ 15293 15294 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 15295 15296 ; 15297 return 0; 15298} 15299_ACEOF 15300if ac_fn_c_try_compile "$LINENO"; then : 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15302$as_echo "yes" >&6; } 15303 15304$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 15305 15306 15307else 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15309$as_echo "no" >&6; } 15310 15311fi 15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15313 15314else 15315# not on mingw, check thread libraries. 15316 15317# check for thread library. 15318# check this first, so that the pthread lib does not get linked in via 15319# libssl or libpython, and thus distorts the tests, and we end up using 15320# the non-threadsafe C libraries. 15321 15322# Check whether --with-pthreads was given. 15323if test "${with_pthreads+set}" = set; then : 15324 withval=$with_pthreads; 15325else 15326 withval="yes" 15327fi 15328 15329ub_have_pthreads=no 15330if test x_$withval != x_no; then 15331 15332 15333ac_ext=c 15334ac_cpp='$CPP $CPPFLAGS' 15335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15337ac_compiler_gnu=$ac_cv_c_compiler_gnu 15338 15339ax_pthread_ok=no 15340 15341# We used to check for pthread.h first, but this fails if pthread.h 15342# requires special compiler flags (e.g. on True64 or Sequent). 15343# It gets checked for in the link test anyway. 15344 15345# First of all, check if the user has set any of the PTHREAD_LIBS, 15346# etcetera environment variables, and if threads linking works using 15347# them: 15348if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15349 save_CFLAGS="$CFLAGS" 15350 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15351 save_LIBS="$LIBS" 15352 LIBS="$PTHREAD_LIBS $LIBS" 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15354$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15356/* end confdefs.h. */ 15357 15358/* Override any GCC internal prototype to avoid an error. 15359 Use char because int might match the return type of a GCC 15360 builtin and then its argument prototype would still apply. */ 15361#ifdef __cplusplus 15362extern "C" 15363#endif 15364char pthread_join (); 15365int 15366main () 15367{ 15368return pthread_join (); 15369 ; 15370 return 0; 15371} 15372_ACEOF 15373if ac_fn_c_try_link "$LINENO"; then : 15374 ax_pthread_ok=yes 15375fi 15376rm -f core conftest.err conftest.$ac_objext \ 15377 conftest$ac_exeext conftest.$ac_ext 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15379$as_echo "$ax_pthread_ok" >&6; } 15380 if test x"$ax_pthread_ok" = xno; then 15381 PTHREAD_LIBS="" 15382 PTHREAD_CFLAGS="" 15383 fi 15384 LIBS="$save_LIBS" 15385 CFLAGS="$save_CFLAGS" 15386fi 15387 15388# We must check for the threads library under a number of different 15389# names; the ordering is very important because some systems 15390# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15391# libraries is broken (non-POSIX). 15392 15393# Create a list of thread flags to try. Items starting with a "-" are 15394# C compiler flags, and other items are library names, except for "none" 15395# which indicates that we try without any flags at all, and "pthread-config" 15396# which is a program returning the flags for the Pth emulation library. 15397 15398ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15399 15400# The ordering *is* (sometimes) important. Some notes on the 15401# individual items follow: 15402 15403# pthreads: AIX (must check this before -lpthread) 15404# none: in case threads are in libc; should be tried before -Kthread and 15405# other compiler flags to prevent continual compiler warnings 15406# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15407# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15408# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15409# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15410# -pthreads: Solaris/gcc 15411# -mthreads: Mingw32/gcc, Lynx/gcc 15412# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15413# doesn't hurt to check since this sometimes defines pthreads too; 15414# also defines -D_REENTRANT) 15415# ... -mt is also the pthreads flag for HP/aCC 15416# pthread: Linux, etcetera 15417# --thread-safe: KAI C++ 15418# pthread-config: use pthread-config program (for GNU Pth library) 15419 15420case ${host_os} in 15421 solaris*) 15422 15423 # On Solaris (at least, for some versions), libc contains stubbed 15424 # (non-functional) versions of the pthreads routines, so link-based 15425 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15426 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15427 # a function called by this macro, so we could check for that, but 15428 # who knows whether they'll stub that too in a future libc.) So, 15429 # we'll just look for -pthreads and -lpthread first: 15430 15431 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15432 ;; 15433 15434 darwin*) 15435 ax_pthread_flags="-pthread $ax_pthread_flags" 15436 ;; 15437esac 15438 15439if test x"$ax_pthread_ok" = xno; then 15440for flag in $ax_pthread_flags; do 15441 15442 case $flag in 15443 none) 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15445$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15446 ;; 15447 15448 -*) 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15450$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15451 PTHREAD_CFLAGS="$flag" 15452 ;; 15453 15454 pthread-config) 15455 # Extract the first word of "pthread-config", so it can be a program name with args. 15456set dummy pthread-config; ac_word=$2 15457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15458$as_echo_n "checking for $ac_word... " >&6; } 15459if ${ac_cv_prog_ax_pthread_config+:} false; then : 15460 $as_echo_n "(cached) " >&6 15461else 15462 if test -n "$ax_pthread_config"; then 15463 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15464else 15465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15466for as_dir in $PATH 15467do 15468 IFS=$as_save_IFS 15469 test -z "$as_dir" && as_dir=. 15470 for ac_exec_ext in '' $ac_executable_extensions; do 15471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15472 ac_cv_prog_ax_pthread_config="yes" 15473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15474 break 2 15475 fi 15476done 15477 done 15478IFS=$as_save_IFS 15479 15480 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15481fi 15482fi 15483ax_pthread_config=$ac_cv_prog_ax_pthread_config 15484if test -n "$ax_pthread_config"; then 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15486$as_echo "$ax_pthread_config" >&6; } 15487else 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15489$as_echo "no" >&6; } 15490fi 15491 15492 15493 if test x"$ax_pthread_config" = xno; then continue; fi 15494 PTHREAD_CFLAGS="`pthread-config --cflags`" 15495 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15496 ;; 15497 15498 *) 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15500$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15501 PTHREAD_LIBS="-l$flag" 15502 ;; 15503 esac 15504 15505 save_LIBS="$LIBS" 15506 save_CFLAGS="$CFLAGS" 15507 LIBS="$PTHREAD_LIBS $LIBS" 15508 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15509 15510 # Check for various functions. We must include pthread.h, 15511 # since some functions may be macros. (On the Sequent, we 15512 # need a special flag -Kthread to make this header compile.) 15513 # We check for pthread_join because it is in -lpthread on IRIX 15514 # while pthread_create is in libc. We check for pthread_attr_init 15515 # due to DEC craziness with -lpthreads. We check for 15516 # pthread_cleanup_push because it is one of the few pthread 15517 # functions on Solaris that doesn't have a non-functional libc stub. 15518 # We try pthread_create on general principles. 15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520/* end confdefs.h. */ 15521#include <pthread.h> 15522 static void routine(void *a) { *((int*)a) = 0; } 15523 static void *start_routine(void *a) { return a; } 15524int 15525main () 15526{ 15527pthread_t th; pthread_attr_t attr; 15528 pthread_create(&th, 0, start_routine, 0); 15529 pthread_join(th, 0); 15530 pthread_attr_init(&attr); 15531 pthread_cleanup_push(routine, 0); 15532 pthread_cleanup_pop(0) /* ; */ 15533 ; 15534 return 0; 15535} 15536_ACEOF 15537if ac_fn_c_try_link "$LINENO"; then : 15538 ax_pthread_ok=yes 15539fi 15540rm -f core conftest.err conftest.$ac_objext \ 15541 conftest$ac_exeext conftest.$ac_ext 15542 15543 LIBS="$save_LIBS" 15544 CFLAGS="$save_CFLAGS" 15545 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15547$as_echo "$ax_pthread_ok" >&6; } 15548 if test "x$ax_pthread_ok" = xyes; then 15549 break; 15550 fi 15551 15552 PTHREAD_LIBS="" 15553 PTHREAD_CFLAGS="" 15554done 15555fi 15556 15557# Various other checks: 15558if test "x$ax_pthread_ok" = xyes; then 15559 save_LIBS="$LIBS" 15560 LIBS="$PTHREAD_LIBS $LIBS" 15561 save_CFLAGS="$CFLAGS" 15562 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15563 15564 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15566$as_echo_n "checking for joinable pthread attribute... " >&6; } 15567 attr_name=unknown 15568 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571#include <pthread.h> 15572int 15573main () 15574{ 15575int attr = $attr; return attr /* ; */ 15576 ; 15577 return 0; 15578} 15579_ACEOF 15580if ac_fn_c_try_link "$LINENO"; then : 15581 attr_name=$attr; break 15582fi 15583rm -f core conftest.err conftest.$ac_objext \ 15584 conftest$ac_exeext conftest.$ac_ext 15585 done 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15587$as_echo "$attr_name" >&6; } 15588 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15589 15590cat >>confdefs.h <<_ACEOF 15591#define PTHREAD_CREATE_JOINABLE $attr_name 15592_ACEOF 15593 15594 fi 15595 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15597$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15598 flag=no 15599 case ${host_os} in 15600 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15601 osf* | hpux*) flag="-D_REENTRANT";; 15602 solaris*) 15603 if test "$GCC" = "yes"; then 15604 flag="-D_REENTRANT" 15605 else 15606 flag="-mt -D_REENTRANT" 15607 fi 15608 ;; 15609 esac 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15611$as_echo "${flag}" >&6; } 15612 if test "x$flag" != xno; then 15613 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15614 fi 15615 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15617$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15618if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620else 15621 15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15623/* end confdefs.h. */ 15624 15625 #include <pthread.h> 15626int 15627main () 15628{ 15629int i = PTHREAD_PRIO_INHERIT; 15630 ; 15631 return 0; 15632} 15633_ACEOF 15634if ac_fn_c_try_link "$LINENO"; then : 15635 ax_cv_PTHREAD_PRIO_INHERIT=yes 15636else 15637 ax_cv_PTHREAD_PRIO_INHERIT=no 15638fi 15639rm -f core conftest.err conftest.$ac_objext \ 15640 conftest$ac_exeext conftest.$ac_ext 15641 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15644$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15645 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15646 15647$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15648 15649fi 15650 15651 LIBS="$save_LIBS" 15652 CFLAGS="$save_CFLAGS" 15653 15654 # More AIX lossage: compile with *_r variant 15655 if test "x$GCC" != xyes; then 15656 case $host_os in 15657 aix*) 15658 case "x/$CC" in #( 15659 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15660 #handle absolute path differently from PATH based program lookup 15661 case "x$CC" in #( 15662 x/*) : 15663 if as_fn_executable_p ${CC}_r; then : 15664 PTHREAD_CC="${CC}_r" 15665fi ;; #( 15666 *) : 15667 for ac_prog in ${CC}_r 15668do 15669 # Extract the first word of "$ac_prog", so it can be a program name with args. 15670set dummy $ac_prog; ac_word=$2 15671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15672$as_echo_n "checking for $ac_word... " >&6; } 15673if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 if test -n "$PTHREAD_CC"; then 15677 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15678else 15679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15680for as_dir in $PATH 15681do 15682 IFS=$as_save_IFS 15683 test -z "$as_dir" && as_dir=. 15684 for ac_exec_ext in '' $ac_executable_extensions; do 15685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15686 ac_cv_prog_PTHREAD_CC="$ac_prog" 15687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15688 break 2 15689 fi 15690done 15691 done 15692IFS=$as_save_IFS 15693 15694fi 15695fi 15696PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15697if test -n "$PTHREAD_CC"; then 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15699$as_echo "$PTHREAD_CC" >&6; } 15700else 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15702$as_echo "no" >&6; } 15703fi 15704 15705 15706 test -n "$PTHREAD_CC" && break 15707done 15708test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15709 ;; 15710esac ;; #( 15711 *) : 15712 ;; 15713esac 15714 ;; 15715 esac 15716 fi 15717fi 15718 15719test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15720 15721 15722 15723 15724 15725# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15726if test x"$ax_pthread_ok" = xyes; then 15727 15728 15729$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15730 15731 LIBS="$PTHREAD_LIBS $LIBS" 15732 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15733 CC="$PTHREAD_CC" 15734 ub_have_pthreads=yes 15735 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 15736" 15737if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 15738 15739cat >>confdefs.h <<_ACEOF 15740#define HAVE_PTHREAD_SPINLOCK_T 1 15741_ACEOF 15742 15743 15744fi 15745ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 15746" 15747if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 15748 15749cat >>confdefs.h <<_ACEOF 15750#define HAVE_PTHREAD_RWLOCK_T 1 15751_ACEOF 15752 15753 15754fi 15755 15756 15757 : 15758else 15759 ax_pthread_ok=no 15760 15761fi 15762ac_ext=c 15763ac_cpp='$CPP $CPPFLAGS' 15764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15766ac_compiler_gnu=$ac_cv_c_compiler_gnu 15767 15768 15769fi 15770 15771# check solaris thread library 15772 15773# Check whether --with-solaris-threads was given. 15774if test "${with_solaris_threads+set}" = set; then : 15775 withval=$with_solaris_threads; 15776else 15777 withval="no" 15778fi 15779 15780ub_have_sol_threads=no 15781if test x_$withval != x_no; then 15782 if test x_$ub_have_pthreads != x_no; then 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 15784$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 15785 else 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 15787$as_echo_n "checking for library containing thr_create... " >&6; } 15788if ${ac_cv_search_thr_create+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 ac_func_search_save_LIBS=$LIBS 15792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15793/* end confdefs.h. */ 15794 15795/* Override any GCC internal prototype to avoid an error. 15796 Use char because int might match the return type of a GCC 15797 builtin and then its argument prototype would still apply. */ 15798#ifdef __cplusplus 15799extern "C" 15800#endif 15801char thr_create (); 15802int 15803main () 15804{ 15805return thr_create (); 15806 ; 15807 return 0; 15808} 15809_ACEOF 15810for ac_lib in '' thread; do 15811 if test -z "$ac_lib"; then 15812 ac_res="none required" 15813 else 15814 ac_res=-l$ac_lib 15815 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15816 fi 15817 if ac_fn_c_try_link "$LINENO"; then : 15818 ac_cv_search_thr_create=$ac_res 15819fi 15820rm -f core conftest.err conftest.$ac_objext \ 15821 conftest$ac_exeext 15822 if ${ac_cv_search_thr_create+:} false; then : 15823 break 15824fi 15825done 15826if ${ac_cv_search_thr_create+:} false; then : 15827 15828else 15829 ac_cv_search_thr_create=no 15830fi 15831rm conftest.$ac_ext 15832LIBS=$ac_func_search_save_LIBS 15833fi 15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 15835$as_echo "$ac_cv_search_thr_create" >&6; } 15836ac_res=$ac_cv_search_thr_create 15837if test "$ac_res" != no; then : 15838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15839 15840 15841$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 15842 15843 15844 15845 15846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 15847$as_echo_n "checking whether $CC supports -mt... " >&6; } 15848cache=`echo mt | sed 'y%.=/+-%___p_%'` 15849if eval \${cv_prog_cc_flag_$cache+:} false; then : 15850 $as_echo_n "(cached) " >&6 15851else 15852 15853echo 'void f(void){}' >conftest.c 15854if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 15855eval "cv_prog_cc_flag_$cache=yes" 15856else 15857eval "cv_prog_cc_flag_$cache=no" 15858fi 15859rm -f conftest conftest.o conftest.c 15860 15861fi 15862 15863if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15865$as_echo "yes" >&6; } 15866: 15867CFLAGS="$CFLAGS -mt" 15868else 15869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15870$as_echo "no" >&6; } 15871: 15872CFLAGS="$CFLAGS -D_REENTRANT" 15873fi 15874 15875 ub_have_sol_threads=yes 15876 15877else 15878 15879 as_fn_error $? "no solaris threads found." "$LINENO" 5 15880 15881fi 15882 15883 fi 15884fi 15885 15886fi # end of non-mingw check of thread libraries 15887 15888# Check for PyUnbound 15889 15890# Check whether --with-pyunbound was given. 15891if test "${with_pyunbound+set}" = set; then : 15892 withval=$with_pyunbound; 15893else 15894 withval="no" 15895fi 15896 15897 15898ub_test_python=no 15899ub_with_pyunbound=no 15900if test x_$withval != x_no; then 15901 ub_with_pyunbound=yes 15902 ub_test_python=yes 15903fi 15904 15905# Check for Python module 15906 15907# Check whether --with-pythonmodule was given. 15908if test "${with_pythonmodule+set}" = set; then : 15909 withval=$with_pythonmodule; 15910else 15911 withval="no" 15912fi 15913 15914 15915ub_with_pythonmod=no 15916if test x_$withval != x_no; then 15917 ub_with_pythonmod=yes 15918 ub_test_python=yes 15919fi 15920 15921# Check for Python & SWIG only on PyUnbound or PyModule 15922if test x_$ub_test_python != x_no; then 15923 15924 # Check for Python 15925 ub_have_python=no 15926 ac_save_LIBS="$LIBS" 15927 # 15928 # Allow the use of a (user set) custom python version 15929 # 15930 15931 15932 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15933set dummy python$PYTHON_VERSION; ac_word=$2 15934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15935$as_echo_n "checking for $ac_word... " >&6; } 15936if ${ac_cv_path_PYTHON+:} false; then : 15937 $as_echo_n "(cached) " >&6 15938else 15939 case $PYTHON in 15940 [\\/]* | ?:[\\/]*) 15941 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15942 ;; 15943 *) 15944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15945for as_dir in $PATH 15946do 15947 IFS=$as_save_IFS 15948 test -z "$as_dir" && as_dir=. 15949 for ac_exec_ext in '' $ac_executable_extensions; do 15950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15951 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15953 break 2 15954 fi 15955done 15956 done 15957IFS=$as_save_IFS 15958 15959 ;; 15960esac 15961fi 15962PYTHON=$ac_cv_path_PYTHON 15963if test -n "$PYTHON"; then 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15965$as_echo "$PYTHON" >&6; } 15966else 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15968$as_echo "no" >&6; } 15969fi 15970 15971 15972 if test -z "$PYTHON"; then 15973 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15974 PYTHON_VERSION="" 15975 fi 15976 15977 if test -z "$PYTHON_VERSION"; then 15978 PYTHON_VERSION=`$PYTHON -c "import sys, string; \ 15979 print string.split(sys.version)[0]"` 15980 fi 15981 15982 # 15983 # Check for a version of Python >= 2.1.0 15984 # 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 15986$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 15987 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 15988 ver = string.split(sys.version)[0]; \ 15989 print ver >= '2.1.0'"` 15990 if test "$ac_supports_python_ver" != "True"; then 15991 if test -z "$PYTHON_NOVERSIONCHECK"; then 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15993$as_echo "no" >&6; } 15994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15996as_fn_error $? " 15997This version of the AC_PYTHON_DEVEL macro 15998doesn't work properly with versions of Python before 159992.1.0. You may need to re-run configure, setting the 16000variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 16001PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 16002Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 16003to something else than an empty string. 16004 16005See \`config.log' for more details" "$LINENO" 5; } 16006 else 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 16008$as_echo "skip at user request" >&6; } 16009 fi 16010 else 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16012$as_echo "yes" >&6; } 16013 fi 16014 16015 # 16016 # if the macro parameter ``version'' is set, honour it 16017 # 16018 if test -n ""; then 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5 16020$as_echo_n "checking for a version of Python ... " >&6; } 16021 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 16022 ver = string.split(sys.version)[0]; \ 16023 print ver "` 16024 if test "$ac_supports_python_ver" = "True"; then 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16026$as_echo "yes" >&6; } 16027 else 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16029$as_echo "no" >&6; } 16030 as_fn_error $? "this package requires Python . 16031If you have it installed, but it isn't the default Python 16032interpreter in your system path, please pass the PYTHON_VERSION 16033variable to configure. See \`\`configure --help'' for reference. 16034" "$LINENO" 5 16035 PYTHON_VERSION="" 16036 fi 16037 fi 16038 16039 # 16040 # Check if you have distutils, else fail 16041 # 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 16043$as_echo_n "checking for the distutils Python package... " >&6; } 16044 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 16045 if test -z "$ac_distutils_result"; then 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16047$as_echo "yes" >&6; } 16048 else 16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16050$as_echo "no" >&6; } 16051 as_fn_error $? "cannot import Python module \"distutils\". 16052Please check your Python installation. The error was: 16053$ac_distutils_result" "$LINENO" 5 16054 PYTHON_VERSION="" 16055 fi 16056 16057 # 16058 # Check for Python include path 16059 # 16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 16061$as_echo_n "checking for Python include path... " >&6; } 16062 if test -z "$PYTHON_CPPFLAGS"; then 16063 python_path=`$PYTHON -c "import distutils.sysconfig; \ 16064 print distutils.sysconfig.get_python_inc();"` 16065 if test -n "${python_path}"; then 16066 python_path="-I$python_path" 16067 fi 16068 PYTHON_CPPFLAGS=$python_path 16069 fi 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 16071$as_echo "$PYTHON_CPPFLAGS" >&6; } 16072 16073 16074 # 16075 # Check for Python library path 16076 # 16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 16078$as_echo_n "checking for Python library path... " >&6; } 16079 if test -z "$PYTHON_LDFLAGS"; then 16080 # (makes two attempts to ensure we've got a version number 16081 # from the interpreter) 16082 py_version=`$PYTHON -c "from distutils.sysconfig import *; \ 16083 from string import join; \ 16084 print join(get_config_vars('VERSION'))"` 16085 if test "$py_version" = "None"; then 16086 if test -n "$PYTHON_VERSION"; then 16087 py_version=$PYTHON_VERSION 16088 else 16089 py_version=`$PYTHON -c "import sys; \ 16090 print sys.version[:3]"` 16091 fi 16092 fi 16093 16094 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 16095 from string import join; \ 16096 print '-L' + get_python_lib(0,1), \ 16097 '-L' + os.path.dirname(get_python_lib(0,1)), \ 16098 '-lpython';"`$py_version 16099 fi 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 16101$as_echo "$PYTHON_LDFLAGS" >&6; } 16102 16103 16104 # 16105 # Check for site packages 16106 # 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 16108$as_echo_n "checking for Python site-packages path... " >&6; } 16109 if test -z "$PYTHON_SITE_PKG"; then 16110 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 16111 print distutils.sysconfig.get_python_lib(1,0);"` 16112 fi 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 16114$as_echo "$PYTHON_SITE_PKG" >&6; } 16115 16116 16117 # 16118 # libraries which must be linked in when embedding 16119 # 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 16121$as_echo_n "checking python extra libraries... " >&6; } 16122 if test -z "$PYTHON_EXTRA_LIBS"; then 16123 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 16124 conf = distutils.sysconfig.get_config_var; \ 16125 print conf('LOCALMODLIBS'), conf('LIBS')"` 16126 fi 16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 16128$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 16129 16130 16131 # 16132 # linking flags needed when embedding 16133 # 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 16135$as_echo_n "checking python extra linking flags... " >&6; } 16136 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 16137 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 16138 conf = distutils.sysconfig.get_config_var; \ 16139 print conf('LINKFORSHARED')"` 16140 fi 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 16142$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 16143 16144 16145 # 16146 # final check to see if everything compiles alright 16147 # 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 16149$as_echo_n "checking consistency of all components of python development environment... " >&6; } 16150 ac_ext=c 16151ac_cpp='$CPP $CPPFLAGS' 16152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16154ac_compiler_gnu=$ac_cv_c_compiler_gnu 16155 16156 # save current global flags 16157 ac_save_LIBS="$LIBS" 16158 ac_save_CPPFLAGS="$CPPFLAGS" 16159 16160 LIBS="$LIBS $PYTHON_LDFLAGS" 16161 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16163/* end confdefs.h. */ 16164 16165 #include <Python.h> 16166 16167int 16168main () 16169{ 16170 16171 Py_Initialize(); 16172 16173 ; 16174 return 0; 16175} 16176_ACEOF 16177if ac_fn_c_try_link "$LINENO"; then : 16178 pythonexists=yes 16179else 16180 pythonexists=no 16181fi 16182rm -f core conftest.err conftest.$ac_objext \ 16183 conftest$ac_exeext conftest.$ac_ext 16184 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 16186$as_echo "$pythonexists" >&6; } 16187 16188 if test ! "$pythonexists" = "yes"; then 16189 as_fn_error $? " 16190 Could not link test program to Python. Maybe the main Python library has been 16191 installed in some non-standard library path. If so, pass it to configure, 16192 via the LDFLAGS environment variable. 16193 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 16194 ============================================================================ 16195 ERROR! 16196 You probably have to install the development version of the Python package 16197 for your distribution. The exact name of this package varies among them. 16198 ============================================================================ 16199 " "$LINENO" 5 16200 PYTHON_VERSION="" 16201 fi 16202 ac_ext=c 16203ac_cpp='$CPP $CPPFLAGS' 16204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16206ac_compiler_gnu=$ac_cv_c_compiler_gnu 16207 16208 # turn back to default flags 16209 CPPFLAGS="$ac_save_CPPFLAGS" 16210 LIBS="$ac_save_LIBS" 16211 16212 # 16213 # all done! 16214 # 16215 16216 if test ! -z "$PYTHON_VERSION"; then 16217 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then 16218 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 16219 fi 16220 16221 # Have Python 16222 16223$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 16224 16225 LIBS="$PYTHON_LDFLAGS $LIBS" 16226 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16227 ub_have_python=yes 16228 16229 # Check for SWIG 16230 ub_have_swig=no 16231 16232 # Extract the first word of "swig", so it can be a program name with args. 16233set dummy swig; ac_word=$2 16234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16235$as_echo_n "checking for $ac_word... " >&6; } 16236if ${ac_cv_path_SWIG+:} false; then : 16237 $as_echo_n "(cached) " >&6 16238else 16239 case $SWIG in 16240 [\\/]* | ?:[\\/]*) 16241 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 16242 ;; 16243 *) 16244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16245for as_dir in $PATH 16246do 16247 IFS=$as_save_IFS 16248 test -z "$as_dir" && as_dir=. 16249 for ac_exec_ext in '' $ac_executable_extensions; do 16250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16251 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 16252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16253 break 2 16254 fi 16255done 16256 done 16257IFS=$as_save_IFS 16258 16259 ;; 16260esac 16261fi 16262SWIG=$ac_cv_path_SWIG 16263if test -n "$SWIG"; then 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 16265$as_echo "$SWIG" >&6; } 16266else 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16268$as_echo "no" >&6; } 16269fi 16270 16271 16272 if test -z "$SWIG" ; then 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 16274$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 16275 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 16276 elif test -n "" ; then 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 16278$as_echo_n "checking for SWIG version... " >&6; } 16279 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'` 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 16281$as_echo "$swig_version" >&6; } 16282 if test -n "$swig_version" ; then 16283 # Calculate the required version number components 16284 required= 16285 required_major=`echo $required | sed 's/[^0-9].*//'` 16286 if test -z "$required_major" ; then 16287 required_major=0 16288 fi 16289 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16290 required_minor=`echo $required | sed 's/[^0-9].*//'` 16291 if test -z "$required_minor" ; then 16292 required_minor=0 16293 fi 16294 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16295 required_patch=`echo $required | sed 's/[^0-9].*//'` 16296 if test -z "$required_patch" ; then 16297 required_patch=0 16298 fi 16299 # Calculate the available version number components 16300 available=$swig_version 16301 available_major=`echo $available | sed 's/[^0-9].*//'` 16302 if test -z "$available_major" ; then 16303 available_major=0 16304 fi 16305 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16306 available_minor=`echo $available | sed 's/[^0-9].*//'` 16307 if test -z "$available_minor" ; then 16308 available_minor=0 16309 fi 16310 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16311 available_patch=`echo $available | sed 's/[^0-9].*//'` 16312 if test -z "$available_patch" ; then 16313 available_patch=0 16314 fi 16315 if test $available_major -ne $required_major \ 16316 -o $available_minor -ne $required_minor \ 16317 -o $available_patch -lt $required_patch ; then 16318 { $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 16319$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 16320 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 16321 else 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 16323$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 16324 SWIG_LIB=`$SWIG -swiglib` 16325 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 16326$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 16327 fi 16328 else 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 16330$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 16331 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 16332 fi 16333 fi 16334 16335 16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 16337$as_echo_n "checking SWIG... " >&6; } 16338 if test ! -x "$SWIG"; then 16339 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 16340 else 16341 16342$as_echo "#define HAVE_SWIG 1" >>confdefs.h 16343 16344 swig="$SWIG" 16345 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 16347$as_echo "present" >&6; } 16348 16349 # If have Python & SWIG 16350 # Declare PythonMod 16351 if test x_$ub_with_pythonmod != x_no; then 16352 16353$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 16354 16355 WITH_PYTHONMODULE=yes 16356 16357 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 16358 16359 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 16360 16361 PYTHONMOD_INSTALL=pythonmod-install 16362 16363 PYTHONMOD_UNINSTALL=pythonmod-uninstall 16364 16365 fi 16366 16367 # Declare PyUnbound 16368 if test x_$ub_with_pyunbound != x_no; then 16369 16370$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 16371 16372 WITH_PYUNBOUND=yes 16373 16374 PYUNBOUND_OBJ="libunbound_wrap.lo" 16375 16376 PYUNBOUND_TARGET="_unbound.la" 16377 16378 PYUNBOUND_INSTALL=pyunbound-install 16379 16380 PYUNBOUND_UNINSTALL=pyunbound-uninstall 16381 16382 fi 16383 fi 16384 else 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 16386$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 16387 ub_with_pyunbound=no 16388 ub_with_pythonmod=no 16389 fi 16390fi 16391 16392if test "`uname`" = "NetBSD"; then 16393 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 16394 16395fi 16396CONFIG_DATE=`date +%Y%m%d` 16397 16398 16399# Checks for libraries. 16400 16401# libnss 16402USE_NSS="no" 16403 16404# Check whether --with-nss was given. 16405if test "${with_nss+set}" = set; then : 16406 withval=$with_nss; 16407 USE_NSS="yes" 16408 16409$as_echo "#define HAVE_NSS 1" >>confdefs.h 16410 16411 if test "$withval" != "" -a "$withval" != "yes"; then 16412 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 16413 LDFLAGS="$LDFLAGS -L$withval/lib" 16414 16415 if test "x$enable_rpath" = xyes; then 16416 if echo "$withval/lib" | grep "^/" >/dev/null; then 16417 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16418 fi 16419 fi 16420 16421 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 16422 else 16423 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 16424 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 16425 fi 16426 LIBS="$LIBS -lnss3 -lnspr4" 16427 16428 16429fi 16430 16431 16432# openssl 16433if test $USE_NSS = "no"; then 16434 16435 16436# Check whether --with-ssl was given. 16437if test "${with_ssl+set}" = set; then : 16438 withval=$with_ssl; 16439 16440else 16441 16442 withval="yes" 16443 16444fi 16445 16446 if test x_$withval = x_no; then 16447 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 16448 fi 16449 16450 withval=$withval 16451 if test x_$withval != x_no; then 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16453$as_echo_n "checking for SSL... " >&6; } 16454 if test x_$withval = x_ -o x_$withval = x_yes; then 16455 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16456 fi 16457 for dir in $withval; do 16458 ssldir="$dir" 16459 if test -f "$dir/include/openssl/ssl.h"; then 16460 found_ssl="yes" 16461 16462cat >>confdefs.h <<_ACEOF 16463#define HAVE_SSL /**/ 16464_ACEOF 16465 16466 if test "$ssldir" != "/usr"; then 16467 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16468 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16469 fi 16470 break; 16471 fi 16472 done 16473 if test x_$found_ssl != x_yes; then 16474 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16475 else 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16477$as_echo "found in $ssldir" >&6; } 16478 HAVE_SSL=yes 16479 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16480 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16481 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16482 16483 if test "x$enable_rpath" = xyes; then 16484 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16485 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16486 fi 16487 fi 16488 16489 fi 16490 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 16492$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 16493 LIBS="$LIBS -lcrypto" 16494 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16496/* end confdefs.h. */ 16497 16498int 16499main () 16500{ 16501 16502 int HMAC_CTX_init(void); 16503 (void)HMAC_CTX_init(); 16504 16505 ; 16506 return 0; 16507} 16508_ACEOF 16509if ac_fn_c_try_link "$LINENO"; then : 16510 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16512$as_echo "yes" >&6; } 16513 16514$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16515 16516 16517else 16518 16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16520$as_echo "no" >&6; } 16521 # check if -lwsock32 or -lgdi32 are needed. 16522 BAKLIBS="$LIBS" 16523 BAKSSLLIBS="$LIBSSL_LIBS" 16524 LIBS="$LIBS -lgdi32" 16525 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16527$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16529/* end confdefs.h. */ 16530 16531int 16532main () 16533{ 16534 16535 int HMAC_CTX_init(void); 16536 (void)HMAC_CTX_init(); 16537 16538 ; 16539 return 0; 16540} 16541_ACEOF 16542if ac_fn_c_try_link "$LINENO"; then : 16543 16544 16545$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16546 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16548$as_echo "yes" >&6; } 16549 16550else 16551 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16553$as_echo "no" >&6; } 16554 LIBS="$BAKLIBS" 16555 LIBSSL_LIBS="$BAKSSLLIBS" 16556 LIBS="$LIBS -ldl" 16557 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16559$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562 16563int 16564main () 16565{ 16566 16567 int HMAC_CTX_init(void); 16568 (void)HMAC_CTX_init(); 16569 16570 ; 16571 return 0; 16572} 16573_ACEOF 16574if ac_fn_c_try_link "$LINENO"; then : 16575 16576 16577$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16578 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16580$as_echo "yes" >&6; } 16581 16582else 16583 16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16585$as_echo "no" >&6; } 16586 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16587 16588fi 16589rm -f core conftest.err conftest.$ac_objext \ 16590 conftest$ac_exeext conftest.$ac_ext 16591 16592fi 16593rm -f core conftest.err conftest.$ac_objext \ 16594 conftest$ac_exeext conftest.$ac_ext 16595 16596fi 16597rm -f core conftest.err conftest.$ac_objext \ 16598 conftest$ac_exeext conftest.$ac_ext 16599 fi 16600 16601 16602 # openssl engine functionality needs dlopen(). 16603 BAKLIBS="$LIBS" 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16605$as_echo_n "checking for library containing dlopen... " >&6; } 16606if ${ac_cv_search_dlopen+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 ac_func_search_save_LIBS=$LIBS 16610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16611/* end confdefs.h. */ 16612 16613/* Override any GCC internal prototype to avoid an error. 16614 Use char because int might match the return type of a GCC 16615 builtin and then its argument prototype would still apply. */ 16616#ifdef __cplusplus 16617extern "C" 16618#endif 16619char dlopen (); 16620int 16621main () 16622{ 16623return dlopen (); 16624 ; 16625 return 0; 16626} 16627_ACEOF 16628for ac_lib in '' dl; do 16629 if test -z "$ac_lib"; then 16630 ac_res="none required" 16631 else 16632 ac_res=-l$ac_lib 16633 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16634 fi 16635 if ac_fn_c_try_link "$LINENO"; then : 16636 ac_cv_search_dlopen=$ac_res 16637fi 16638rm -f core conftest.err conftest.$ac_objext \ 16639 conftest$ac_exeext 16640 if ${ac_cv_search_dlopen+:} false; then : 16641 break 16642fi 16643done 16644if ${ac_cv_search_dlopen+:} false; then : 16645 16646else 16647 ac_cv_search_dlopen=no 16648fi 16649rm conftest.$ac_ext 16650LIBS=$ac_func_search_save_LIBS 16651fi 16652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16653$as_echo "$ac_cv_search_dlopen" >&6; } 16654ac_res=$ac_cv_search_dlopen 16655if test "$ac_res" != no; then : 16656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16657 16658fi 16659 16660 if test "$LIBS" != "$BAKLIBS"; then 16661 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16662 fi 16663 fi 16664for ac_header in openssl/ssl.h 16665do : 16666 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16667" 16668if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 16669 cat >>confdefs.h <<_ACEOF 16670#define HAVE_OPENSSL_SSL_H 1 16671_ACEOF 16672 16673fi 16674 16675done 16676 16677for ac_header in openssl/err.h 16678do : 16679 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16680" 16681if test "x$ac_cv_header_openssl_err_h" = xyes; then : 16682 cat >>confdefs.h <<_ACEOF 16683#define HAVE_OPENSSL_ERR_H 1 16684_ACEOF 16685 16686fi 16687 16688done 16689 16690for ac_header in openssl/rand.h 16691do : 16692 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16693" 16694if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 16695 cat >>confdefs.h <<_ACEOF 16696#define HAVE_OPENSSL_RAND_H 1 16697_ACEOF 16698 16699fi 16700 16701done 16702 16703 16704 16705 16706# check if libssl needs libdl 16707BAKLIBS="$LIBS" 16708LIBS="-lssl $LIBS" 16709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 16710$as_echo_n "checking if libssl needs libdl... " >&6; } 16711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16712/* end confdefs.h. */ 16713 16714/* Override any GCC internal prototype to avoid an error. 16715 Use char because int might match the return type of a GCC 16716 builtin and then its argument prototype would still apply. */ 16717#ifdef __cplusplus 16718extern "C" 16719#endif 16720char SSL_CTX_new (); 16721int 16722main () 16723{ 16724return SSL_CTX_new (); 16725 ; 16726 return 0; 16727} 16728_ACEOF 16729if ac_fn_c_try_link "$LINENO"; then : 16730 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16732$as_echo "no" >&6; } 16733 LIBS="$BAKLIBS" 16734 16735else 16736 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16738$as_echo "yes" >&6; } 16739 LIBS="$BAKLIBS" 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16741$as_echo_n "checking for library containing dlopen... " >&6; } 16742if ${ac_cv_search_dlopen+:} false; then : 16743 $as_echo_n "(cached) " >&6 16744else 16745 ac_func_search_save_LIBS=$LIBS 16746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748 16749/* Override any GCC internal prototype to avoid an error. 16750 Use char because int might match the return type of a GCC 16751 builtin and then its argument prototype would still apply. */ 16752#ifdef __cplusplus 16753extern "C" 16754#endif 16755char dlopen (); 16756int 16757main () 16758{ 16759return dlopen (); 16760 ; 16761 return 0; 16762} 16763_ACEOF 16764for ac_lib in '' dl; do 16765 if test -z "$ac_lib"; then 16766 ac_res="none required" 16767 else 16768 ac_res=-l$ac_lib 16769 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16770 fi 16771 if ac_fn_c_try_link "$LINENO"; then : 16772 ac_cv_search_dlopen=$ac_res 16773fi 16774rm -f core conftest.err conftest.$ac_objext \ 16775 conftest$ac_exeext 16776 if ${ac_cv_search_dlopen+:} false; then : 16777 break 16778fi 16779done 16780if ${ac_cv_search_dlopen+:} false; then : 16781 16782else 16783 ac_cv_search_dlopen=no 16784fi 16785rm conftest.$ac_ext 16786LIBS=$ac_func_search_save_LIBS 16787fi 16788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16789$as_echo "$ac_cv_search_dlopen" >&6; } 16790ac_res=$ac_cv_search_dlopen 16791if test "$ac_res" != no; then : 16792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16793 16794fi 16795 16796 16797fi 16798rm -f core conftest.err conftest.$ac_objext \ 16799 conftest$ac_exeext conftest.$ac_ext 16800for ac_header in openssl/conf.h 16801do : 16802 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 16803" 16804if test "x$ac_cv_header_openssl_conf_h" = xyes; then : 16805 cat >>confdefs.h <<_ACEOF 16806#define HAVE_OPENSSL_CONF_H 1 16807_ACEOF 16808 16809fi 16810 16811done 16812 16813for ac_header in openssl/engine.h 16814do : 16815 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 16816" 16817if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 16818 cat >>confdefs.h <<_ACEOF 16819#define HAVE_OPENSSL_ENGINE_H 1 16820_ACEOF 16821 16822fi 16823 16824done 16825 16826for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode 16827do : 16828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16829ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16830if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16831 cat >>confdefs.h <<_ACEOF 16832#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16833_ACEOF 16834 16835fi 16836done 16837 16838ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 16839$ac_includes_default 16840#ifdef HAVE_OPENSSL_ERR_H 16841#include <openssl/err.h> 16842#endif 16843 16844#ifdef HAVE_OPENSSL_RAND_H 16845#include <openssl/rand.h> 16846#endif 16847 16848#ifdef HAVE_OPENSSL_CONF_H 16849#include <openssl/conf.h> 16850#endif 16851 16852#ifdef HAVE_OPENSSL_ENGINE_H 16853#include <openssl/engine.h> 16854#endif 16855#include <openssl/ssl.h> 16856#include <openssl/evp.h> 16857 16858" 16859if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 16860 ac_have_decl=1 16861else 16862 ac_have_decl=0 16863fi 16864 16865cat >>confdefs.h <<_ACEOF 16866#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 16867_ACEOF 16868ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 16869$ac_includes_default 16870#ifdef HAVE_OPENSSL_ERR_H 16871#include <openssl/err.h> 16872#endif 16873 16874#ifdef HAVE_OPENSSL_RAND_H 16875#include <openssl/rand.h> 16876#endif 16877 16878#ifdef HAVE_OPENSSL_CONF_H 16879#include <openssl/conf.h> 16880#endif 16881 16882#ifdef HAVE_OPENSSL_ENGINE_H 16883#include <openssl/engine.h> 16884#endif 16885#include <openssl/ssl.h> 16886#include <openssl/evp.h> 16887 16888" 16889if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 16890 ac_have_decl=1 16891else 16892 ac_have_decl=0 16893fi 16894 16895cat >>confdefs.h <<_ACEOF 16896#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 16897_ACEOF 16898 16899fi 16900 16901 16902# Check whether --enable-sha2 was given. 16903if test "${enable_sha2+set}" = set; then : 16904 enableval=$enable_sha2; 16905fi 16906 16907case "$enable_sha2" in 16908 no) 16909 ;; 16910 yes|*) 16911 16912$as_echo "#define USE_SHA2 1" >>confdefs.h 16913 16914 ;; 16915esac 16916 16917# check wether gost also works 16918 16919# Check whether --enable-gost was given. 16920if test "${enable_gost+set}" = set; then : 16921 enableval=$enable_gost; 16922fi 16923 16924use_gost="no" 16925if test $USE_NSS = "no"; then 16926case "$enable_gost" in 16927 no) 16928 ;; 16929 *) 16930 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16931if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 16932 : 16933else 16934 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 16935fi 16936 16937 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16938if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 16939 16940else 16941 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 16942fi 16943 16944 16945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 16946$as_echo_n "checking if GOST works... " >&6; } 16947if test c${cross_compiling} = cno; then 16948BAKCFLAGS="$CFLAGS" 16949if test -n "$ssldir"; then 16950 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 16951fi 16952if test "$cross_compiling" = yes; then : 16953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16955as_fn_error $? "cannot run test program while cross compiling 16956See \`config.log' for more details" "$LINENO" 5; } 16957else 16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16959/* end confdefs.h. */ 16960 16961#include <string.h> 16962#include <openssl/ssl.h> 16963#include <openssl/evp.h> 16964#include <openssl/engine.h> 16965#include <openssl/conf.h> 16966/* routine to load gost (from sldns) */ 16967int load_gost_id(void) 16968{ 16969 static int gost_id = 0; 16970 const EVP_PKEY_ASN1_METHOD* meth; 16971 ENGINE* e; 16972 16973 if(gost_id) return gost_id; 16974 16975 /* see if configuration loaded gost implementation from other engine*/ 16976 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 16977 if(meth) { 16978 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16979 return gost_id; 16980 } 16981 16982 /* see if engine can be loaded already */ 16983 e = ENGINE_by_id("gost"); 16984 if(!e) { 16985 /* load it ourself, in case statically linked */ 16986 ENGINE_load_builtin_engines(); 16987 ENGINE_load_dynamic(); 16988 e = ENGINE_by_id("gost"); 16989 } 16990 if(!e) { 16991 /* no gost engine in openssl */ 16992 return 0; 16993 } 16994 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 16995 ENGINE_finish(e); 16996 ENGINE_free(e); 16997 return 0; 16998 } 16999 17000 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 17001 if(!meth) { 17002 /* algo not found */ 17003 ENGINE_finish(e); 17004 ENGINE_free(e); 17005 return 0; 17006 } 17007 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 17008 return gost_id; 17009} 17010int main(void) { 17011 EVP_MD_CTX* ctx; 17012 const EVP_MD* md; 17013 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 17014 const char* str = "Hello world"; 17015 const unsigned char check[] = { 17016 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 17017 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 17018 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 17019 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 17020 }; 17021 OPENSSL_config(NULL); 17022 (void)load_gost_id(); 17023 md = EVP_get_digestbyname("md_gost94"); 17024 if(!md) return 1; 17025 memset(digest, 0, sizeof(digest)); 17026 ctx = EVP_MD_CTX_create(); 17027 if(!ctx) return 2; 17028 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 17029 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 17030 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 17031 /* uncomment to see the hash calculated. 17032 {int i; 17033 for(i=0; i<32; i++) 17034 printf(" %2.2x", (int)digest[i]); 17035 printf("\n");} 17036 */ 17037 if(memcmp(digest, check, sizeof(check)) != 0) 17038 return 6; 17039 return 0; 17040} 17041 17042_ACEOF 17043if ac_fn_c_try_run "$LINENO"; then : 17044 eval "ac_cv_c_gost_works=yes" 17045else 17046 eval "ac_cv_c_gost_works=no" 17047fi 17048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17049 conftest.$ac_objext conftest.beam conftest.$ac_ext 17050fi 17051 17052CFLAGS="$BAKCFLAGS" 17053else 17054eval "ac_cv_c_gost_works=maybe" 17055fi 17056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 17057$as_echo "$ac_cv_c_gost_works" >&6; } 17058 17059 if test "$ac_cv_c_gost_works" != no; then 17060 use_gost="yes" 17061 17062$as_echo "#define USE_GOST 1" >>confdefs.h 17063 17064 fi 17065 ;; 17066esac 17067fi 17068# Check whether --enable-ecdsa was given. 17069if test "${enable_ecdsa+set}" = set; then : 17070 enableval=$enable_ecdsa; 17071fi 17072 17073use_ecdsa="no" 17074case "$enable_ecdsa" in 17075 no) 17076 ;; 17077 *) 17078 if test $USE_NSS = "no"; then 17079 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 17080if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 17081 17082else 17083 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17084fi 17085 17086 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 17087if test "x$ac_cv_func_SHA384_Init" = xyes; then : 17088 17089else 17090 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17091fi 17092 17093 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 17094#include <openssl/evp.h> 17095 17096" 17097if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 17098 ac_have_decl=1 17099else 17100 ac_have_decl=0 17101fi 17102 17103cat >>confdefs.h <<_ACEOF 17104#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 17105_ACEOF 17106if test $ac_have_decl = 1; then : 17107 17108else 17109 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17110fi 17111ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 17112#include <openssl/evp.h> 17113 17114" 17115if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 17116 ac_have_decl=1 17117else 17118 ac_have_decl=0 17119fi 17120 17121cat >>confdefs.h <<_ACEOF 17122#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 17123_ACEOF 17124if test $ac_have_decl = 1; then : 17125 17126else 17127 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17128fi 17129 17130 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 17132$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 17133 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17135$as_echo "no" >&6; } 17136 17137cat >>confdefs.h <<_ACEOF 17138#define USE_ECDSA_EVP_WORKAROUND 1 17139_ACEOF 17140 17141 else 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17143$as_echo "yes" >&6; } 17144 fi 17145 fi 17146 # we now know we have ECDSA and the required curves. 17147 17148cat >>confdefs.h <<_ACEOF 17149#define USE_ECDSA 1 17150_ACEOF 17151 17152 use_ecdsa="yes" 17153 ;; 17154esac 17155 17156# Check whether --enable-event-api was given. 17157if test "${enable_event_api+set}" = set; then : 17158 enableval=$enable_event_api; 17159fi 17160 17161use_unbound_event="no" 17162case "$enable_event_api" in 17163 yes) 17164 use_unbound_event="yes" 17165 ;; 17166 *) 17167 ;; 17168esac 17169 17170# check for libevent 17171 17172# Check whether --with-libevent was given. 17173if test "${with_libevent+set}" = set; then : 17174 withval=$with_libevent; 17175else 17176 withval="no" 17177fi 17178 17179if test x_$withval = x_yes -o x_$withval != x_no; then 17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 17181$as_echo_n "checking for libevent... " >&6; } 17182 if test x_$withval = x_ -o x_$withval = x_yes; then 17183 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17184 fi 17185 for dir in $withval; do 17186 thedir="$dir" 17187 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 17188 found_libevent="yes" 17189 if test "$thedir" != "/usr"; then 17190 CPPFLAGS="$CPPFLAGS -I$thedir/include" 17191 fi 17192 break; 17193 fi 17194 done 17195 if test x_$found_libevent != x_yes; then 17196 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 17197 # libevent source directory 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17199$as_echo "found in $thedir" >&6; } 17200 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 17201 BAK_LDFLAGS_SET="1" 17202 BAK_LDFLAGS="$LDFLAGS" 17203 # remove evdns from linking 17204 mkdir build >/dev/null 2>&1 17205 mkdir build/libevent >/dev/null 2>&1 17206 mkdir build/libevent/.libs >/dev/null 2>&1 17207 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17208 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 17209 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17210 cp $ev_files_o build/libevent 17211 cp $ev_files_lo build/libevent 17212 cp $ev_files_libso build/libevent/.libs 17213 LATE_LDFLAGS="build/libevent/*.lo -lm" 17214 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 17215 else 17216 as_fn_error $? "Cannot find the libevent library in $withval 17217You can restart ./configure --with-libevent=no to use a builtin alternative. 17218Please note that this alternative is not as capable as libevent when using 17219large outgoing port ranges. " "$LINENO" 5 17220 fi 17221 else 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17223$as_echo "found in $thedir" >&6; } 17224 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 17225 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 17226 17227 if test "x$enable_rpath" = xyes; then 17228 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 17229 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 17230 fi 17231 fi 17232 17233 else 17234 if test "$thedir" != "/usr" -a "$thedir" != ""; then 17235 LDFLAGS="$LDFLAGS -L$thedir/lib" 17236 17237 if test "x$enable_rpath" = xyes; then 17238 if echo "$thedir/lib" | grep "^/" >/dev/null; then 17239 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 17240 fi 17241 fi 17242 17243 fi 17244 fi 17245 fi 17246 # check for library used by libevent after 1.3c 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17248$as_echo_n "checking for library containing clock_gettime... " >&6; } 17249if ${ac_cv_search_clock_gettime+:} false; then : 17250 $as_echo_n "(cached) " >&6 17251else 17252 ac_func_search_save_LIBS=$LIBS 17253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17254/* end confdefs.h. */ 17255 17256/* Override any GCC internal prototype to avoid an error. 17257 Use char because int might match the return type of a GCC 17258 builtin and then its argument prototype would still apply. */ 17259#ifdef __cplusplus 17260extern "C" 17261#endif 17262char clock_gettime (); 17263int 17264main () 17265{ 17266return clock_gettime (); 17267 ; 17268 return 0; 17269} 17270_ACEOF 17271for ac_lib in '' rt; do 17272 if test -z "$ac_lib"; then 17273 ac_res="none required" 17274 else 17275 ac_res=-l$ac_lib 17276 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17277 fi 17278 if ac_fn_c_try_link "$LINENO"; then : 17279 ac_cv_search_clock_gettime=$ac_res 17280fi 17281rm -f core conftest.err conftest.$ac_objext \ 17282 conftest$ac_exeext 17283 if ${ac_cv_search_clock_gettime+:} false; then : 17284 break 17285fi 17286done 17287if ${ac_cv_search_clock_gettime+:} false; then : 17288 17289else 17290 ac_cv_search_clock_gettime=no 17291fi 17292rm conftest.$ac_ext 17293LIBS=$ac_func_search_save_LIBS 17294fi 17295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17296$as_echo "$ac_cv_search_clock_gettime" >&6; } 17297ac_res=$ac_cv_search_clock_gettime 17298if test "$ac_res" != no; then : 17299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17300 17301fi 17302 17303 17304 # is the event.h header libev or libevent? 17305 for ac_header in event.h 17306do : 17307 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 17308" 17309if test "x$ac_cv_header_event_h" = xyes; then : 17310 cat >>confdefs.h <<_ACEOF 17311#define HAVE_EVENT_H 1 17312_ACEOF 17313 17314fi 17315 17316done 17317 17318 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 17319#include <event.h> 17320 17321" 17322if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 17323 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17325$as_echo_n "checking for library containing event_set... " >&6; } 17326if ${ac_cv_search_event_set+:} false; then : 17327 $as_echo_n "(cached) " >&6 17328else 17329 ac_func_search_save_LIBS=$LIBS 17330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17331/* end confdefs.h. */ 17332 17333/* Override any GCC internal prototype to avoid an error. 17334 Use char because int might match the return type of a GCC 17335 builtin and then its argument prototype would still apply. */ 17336#ifdef __cplusplus 17337extern "C" 17338#endif 17339char event_set (); 17340int 17341main () 17342{ 17343return event_set (); 17344 ; 17345 return 0; 17346} 17347_ACEOF 17348for ac_lib in '' ev; do 17349 if test -z "$ac_lib"; then 17350 ac_res="none required" 17351 else 17352 ac_res=-l$ac_lib 17353 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17354 fi 17355 if ac_fn_c_try_link "$LINENO"; then : 17356 ac_cv_search_event_set=$ac_res 17357fi 17358rm -f core conftest.err conftest.$ac_objext \ 17359 conftest$ac_exeext 17360 if ${ac_cv_search_event_set+:} false; then : 17361 break 17362fi 17363done 17364if ${ac_cv_search_event_set+:} false; then : 17365 17366else 17367 ac_cv_search_event_set=no 17368fi 17369rm conftest.$ac_ext 17370LIBS=$ac_func_search_save_LIBS 17371fi 17372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17373$as_echo "$ac_cv_search_event_set" >&6; } 17374ac_res=$ac_cv_search_event_set 17375if test "$ac_res" != no; then : 17376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17377 17378fi 17379 17380 17381else 17382 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17384$as_echo_n "checking for library containing event_set... " >&6; } 17385if ${ac_cv_search_event_set+:} false; then : 17386 $as_echo_n "(cached) " >&6 17387else 17388 ac_func_search_save_LIBS=$LIBS 17389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17390/* end confdefs.h. */ 17391 17392/* Override any GCC internal prototype to avoid an error. 17393 Use char because int might match the return type of a GCC 17394 builtin and then its argument prototype would still apply. */ 17395#ifdef __cplusplus 17396extern "C" 17397#endif 17398char event_set (); 17399int 17400main () 17401{ 17402return event_set (); 17403 ; 17404 return 0; 17405} 17406_ACEOF 17407for ac_lib in '' event; do 17408 if test -z "$ac_lib"; then 17409 ac_res="none required" 17410 else 17411 ac_res=-l$ac_lib 17412 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17413 fi 17414 if ac_fn_c_try_link "$LINENO"; then : 17415 ac_cv_search_event_set=$ac_res 17416fi 17417rm -f core conftest.err conftest.$ac_objext \ 17418 conftest$ac_exeext 17419 if ${ac_cv_search_event_set+:} false; then : 17420 break 17421fi 17422done 17423if ${ac_cv_search_event_set+:} false; then : 17424 17425else 17426 ac_cv_search_event_set=no 17427fi 17428rm conftest.$ac_ext 17429LIBS=$ac_func_search_save_LIBS 17430fi 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17432$as_echo "$ac_cv_search_event_set" >&6; } 17433ac_res=$ac_cv_search_event_set 17434if test "$ac_res" != no; then : 17435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17436 17437fi 17438 17439 17440fi 17441 17442 for ac_func in event_base_free 17443do : 17444 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 17445if test "x$ac_cv_func_event_base_free" = xyes; then : 17446 cat >>confdefs.h <<_ACEOF 17447#define HAVE_EVENT_BASE_FREE 1 17448_ACEOF 17449 17450fi 17451done 17452 # only in libevent 1.2 and later 17453 for ac_func in event_base_once 17454do : 17455 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 17456if test "x$ac_cv_func_event_base_once" = xyes; then : 17457 cat >>confdefs.h <<_ACEOF 17458#define HAVE_EVENT_BASE_ONCE 1 17459_ACEOF 17460 17461fi 17462done 17463 # only in libevent 1.4.1 and later 17464 for ac_func in event_base_new 17465do : 17466 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 17467if test "x$ac_cv_func_event_base_new" = xyes; then : 17468 cat >>confdefs.h <<_ACEOF 17469#define HAVE_EVENT_BASE_NEW 1 17470_ACEOF 17471 17472fi 17473done 17474 # only in libevent 1.4.1 and later 17475 for ac_func in event_base_get_method 17476do : 17477 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 17478if test "x$ac_cv_func_event_base_get_method" = xyes; then : 17479 cat >>confdefs.h <<_ACEOF 17480#define HAVE_EVENT_BASE_GET_METHOD 1 17481_ACEOF 17482 17483fi 17484done 17485 # only in libevent 1.4.3 and later 17486 for ac_func in ev_loop 17487do : 17488 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 17489if test "x$ac_cv_func_ev_loop" = xyes; then : 17490 cat >>confdefs.h <<_ACEOF 17491#define HAVE_EV_LOOP 1 17492_ACEOF 17493 17494fi 17495done 17496 # only in libev. (tested on 3.51) 17497 for ac_func in ev_default_loop 17498do : 17499 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 17500if test "x$ac_cv_func_ev_default_loop" = xyes; then : 17501 cat >>confdefs.h <<_ACEOF 17502#define HAVE_EV_DEFAULT_LOOP 1 17503_ACEOF 17504 17505fi 17506done 17507 # only in libev. (tested on 4.00) 17508 if test -n "$BAK_LDFLAGS_SET"; then 17509 LDFLAGS="$BAK_LDFLAGS" 17510 fi 17511 if test "$use_unbound_event" = "yes"; then 17512 UNBOUND_EVENT_INSTALL=unbound-event-install 17513 17514 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 17515 17516 fi 17517else 17518 17519$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 17520 17521fi 17522 17523# check for libexpat 17524 17525# Check whether --with-libexpat was given. 17526if test "${with_libexpat+set}" = set; then : 17527 withval=$with_libexpat; 17528else 17529 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17530fi 17531 17532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 17533$as_echo_n "checking for libexpat... " >&6; } 17534found_libexpat="no" 17535for dir in $withval ; do 17536 if test -f "$dir/include/expat.h"; then 17537 found_libexpat="yes" 17538 if test "$dir" != "/usr"; then 17539 CPPFLAGS="$CPPFLAGS -I$dir/include" 17540 LDFLAGS="$LDFLAGS -L$dir/lib" 17541 fi 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 17543$as_echo "found in $dir" >&6; } 17544 break; 17545 fi 17546done 17547if test x_$found_libexpat != x_yes; then 17548 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 17549fi 17550for ac_header in expat.h 17551do : 17552 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 17553" 17554if test "x$ac_cv_header_expat_h" = xyes; then : 17555 cat >>confdefs.h <<_ACEOF 17556#define HAVE_EXPAT_H 1 17557_ACEOF 17558 17559fi 17560 17561done 17562 17563 17564# set static linking if requested 17565 17566staticexe="" 17567# Check whether --enable-static-exe was given. 17568if test "${enable_static_exe+set}" = set; then : 17569 enableval=$enable_static_exe; 17570fi 17571 17572if test x_$enable_static_exe = x_yes; then 17573 staticexe="-static" 17574 if test "$on_mingw" = yes; then 17575 staticexe="-all-static" 17576 # for static crosscompile, include gdi32 and zlib here. 17577 if test "`uname`" = "Linux"; then 17578 LIBS="$LIBS -lgdi32 -lz" 17579 fi 17580 fi 17581fi 17582 17583# set lock checking if requested 17584# Check whether --enable-lock_checks was given. 17585if test "${enable_lock_checks+set}" = set; then : 17586 enableval=$enable_lock_checks; 17587fi 17588 17589if test x_$enable_lock_checks = x_yes; then 17590 17591$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 17592 17593 CHECKLOCK_OBJ="checklocks.lo" 17594 17595fi 17596 17597 17598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 17599$as_echo_n "checking for getaddrinfo... " >&6; } 17600ac_cv_func_getaddrinfo=no 17601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17602/* end confdefs.h. */ 17603 17604#ifdef __cplusplus 17605extern "C" 17606{ 17607#endif 17608char* getaddrinfo(); 17609char* (*f) () = getaddrinfo; 17610#ifdef __cplusplus 17611} 17612#endif 17613int main() { 17614 ; 17615 return 0; 17616} 17617 17618_ACEOF 17619if ac_fn_c_try_link "$LINENO"; then : 17620 ac_cv_func_getaddrinfo="yes" 17621if test "$ac_cv_header_windows_h" = "yes"; then 17622 17623$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17624 17625 USE_WINSOCK="1" 17626 LIBS="$LIBS -lws2_32" 17627fi 17628 17629else 17630 ORIGLIBS="$LIBS" 17631LIBS="$LIBS -lws2_32" 17632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17633/* end confdefs.h. */ 17634 17635#ifdef HAVE_WS2TCPIP_H 17636#include <ws2tcpip.h> 17637#endif 17638 17639int 17640main () 17641{ 17642 17643 (void)getaddrinfo(NULL, NULL, NULL, NULL); 17644 17645 17646 ; 17647 return 0; 17648} 17649_ACEOF 17650if ac_fn_c_try_link "$LINENO"; then : 17651 17652ac_cv_func_getaddrinfo="yes" 17653 17654$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17655 17656USE_WINSOCK="1" 17657 17658else 17659 17660ac_cv_func_getaddrinfo="no" 17661LIBS="$ORIGLIBS" 17662 17663fi 17664rm -f core conftest.err conftest.$ac_objext \ 17665 conftest$ac_exeext conftest.$ac_ext 17666 17667fi 17668rm -f core conftest.err conftest.$ac_objext \ 17669 conftest$ac_exeext conftest.$ac_ext 17670 17671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 17672$as_echo "$ac_cv_func_getaddrinfo" >&6; } 17673if test $ac_cv_func_getaddrinfo = yes; then 17674 17675$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17676 17677fi 17678 17679if test "$USE_WINSOCK" = 1; then 17680 17681$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 17682 17683 for ac_header in iphlpapi.h 17684do : 17685 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 17686#include <windows.h> 17687 17688" 17689if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 17690 cat >>confdefs.h <<_ACEOF 17691#define HAVE_IPHLPAPI_H 1 17692_ACEOF 17693 17694fi 17695 17696done 17697 17698 if test -n "$ac_tool_prefix"; then 17699 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17700set dummy ${ac_tool_prefix}windres; ac_word=$2 17701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17702$as_echo_n "checking for $ac_word... " >&6; } 17703if ${ac_cv_prog_WINDRES+:} false; then : 17704 $as_echo_n "(cached) " >&6 17705else 17706 if test -n "$WINDRES"; then 17707 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 17708else 17709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17710for as_dir in $PATH 17711do 17712 IFS=$as_save_IFS 17713 test -z "$as_dir" && as_dir=. 17714 for ac_exec_ext in '' $ac_executable_extensions; do 17715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17716 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 17717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17718 break 2 17719 fi 17720done 17721 done 17722IFS=$as_save_IFS 17723 17724fi 17725fi 17726WINDRES=$ac_cv_prog_WINDRES 17727if test -n "$WINDRES"; then 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 17729$as_echo "$WINDRES" >&6; } 17730else 17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17732$as_echo "no" >&6; } 17733fi 17734 17735 17736fi 17737if test -z "$ac_cv_prog_WINDRES"; then 17738 ac_ct_WINDRES=$WINDRES 17739 # Extract the first word of "windres", so it can be a program name with args. 17740set dummy windres; ac_word=$2 17741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17742$as_echo_n "checking for $ac_word... " >&6; } 17743if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 17744 $as_echo_n "(cached) " >&6 17745else 17746 if test -n "$ac_ct_WINDRES"; then 17747 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 17748else 17749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17750for as_dir in $PATH 17751do 17752 IFS=$as_save_IFS 17753 test -z "$as_dir" && as_dir=. 17754 for ac_exec_ext in '' $ac_executable_extensions; do 17755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17756 ac_cv_prog_ac_ct_WINDRES="windres" 17757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17758 break 2 17759 fi 17760done 17761 done 17762IFS=$as_save_IFS 17763 17764fi 17765fi 17766ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 17767if test -n "$ac_ct_WINDRES"; then 17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 17769$as_echo "$ac_ct_WINDRES" >&6; } 17770else 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17772$as_echo "no" >&6; } 17773fi 17774 17775 if test "x$ac_ct_WINDRES" = x; then 17776 WINDRES="" 17777 else 17778 case $cross_compiling:$ac_tool_warned in 17779yes:) 17780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17782ac_tool_warned=yes ;; 17783esac 17784 WINDRES=$ac_ct_WINDRES 17785 fi 17786else 17787 WINDRES="$ac_cv_prog_WINDRES" 17788fi 17789 17790 LIBS="$LIBS -liphlpapi" 17791 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 17792 17793 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 17794 17795 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 17796 17797 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 17798 17799 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 17800 17801 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 17802 17803 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 17804 17805 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 17806 17807fi 17808if test $ac_cv_func_getaddrinfo = no; then 17809 case " $LIBOBJS " in 17810 *" fake-rfc2553.$ac_objext "* ) ;; 17811 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 17812 ;; 17813esac 17814 17815fi 17816# check after getaddrinfo for its libraries 17817 17818# check ioctlsocket 17819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 17820$as_echo_n "checking for ioctlsocket... " >&6; } 17821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17822/* end confdefs.h. */ 17823 17824#ifdef HAVE_WINSOCK2_H 17825#include <winsock2.h> 17826#endif 17827 17828int 17829main () 17830{ 17831 17832 (void)ioctlsocket(0, 0, NULL); 17833 17834 ; 17835 return 0; 17836} 17837_ACEOF 17838if ac_fn_c_try_link "$LINENO"; then : 17839 17840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17841$as_echo "yes" >&6; } 17842 17843$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 17844 17845 17846else 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17848$as_echo "no" >&6; } 17849fi 17850rm -f core conftest.err conftest.$ac_objext \ 17851 conftest$ac_exeext conftest.$ac_ext 17852 17853 17854# see if daemon(3) exists, and if it is deprecated. 17855for ac_func in daemon 17856do : 17857 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 17858if test "x$ac_cv_func_daemon" = xyes; then : 17859 cat >>confdefs.h <<_ACEOF 17860#define HAVE_DAEMON 1 17861_ACEOF 17862 17863fi 17864done 17865 17866if test $ac_cv_func_daemon = yes; then 17867 17868 17869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 17870$as_echo_n "checking if daemon is deprecated... " >&6; } 17871cache=`echo daemon | sed 'y%.=/+-%___p_%'` 17872if eval \${cv_cc_deprecated_$cache+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874else 17875 17876echo ' 17877#include <stdlib.h> 17878' >conftest.c 17879echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 17880if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 17881eval "cv_cc_deprecated_$cache=no" 17882else 17883eval "cv_cc_deprecated_$cache=yes" 17884fi 17885rm -f conftest conftest.o conftest.c 17886 17887fi 17888 17889if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 17890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17891$as_echo "yes" >&6; } 17892 17893cat >>confdefs.h <<_ACEOF 17894#define DEPRECATED_DAEMON 1 17895_ACEOF 17896 17897: 17898 17899else 17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17901$as_echo "no" >&6; } 17902: 17903 17904fi 17905 17906fi 17907 17908ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 17909$ac_includes_default 17910#if HAVE_SYS_PARAM_H 17911#include <sys/param.h> 17912#endif 17913 17914#ifdef HAVE_SYS_SOCKET_H 17915#include <sys/socket.h> 17916#endif 17917 17918#ifdef HAVE_SYS_UIO_H 17919#include <sys/uio.h> 17920#endif 17921 17922#ifdef HAVE_NETINET_IN_H 17923#include <netinet/in.h> 17924#endif 17925 17926#ifdef HAVE_ARPA_INET_H 17927#include <arpa/inet.h> 17928#endif 17929 17930#ifdef HAVE_WINSOCK2_H 17931#include <winsock2.h> 17932#endif 17933 17934#ifdef HAVE_WS2TCPIP_H 17935#include <ws2tcpip.h> 17936#endif 17937 17938" 17939if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 17940 17941cat >>confdefs.h <<_ACEOF 17942#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 17943_ACEOF 17944 17945 17946fi 17947 17948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 17949$as_echo_n "checking for library containing setusercontext... " >&6; } 17950if ${ac_cv_search_setusercontext+:} false; then : 17951 $as_echo_n "(cached) " >&6 17952else 17953 ac_func_search_save_LIBS=$LIBS 17954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17955/* end confdefs.h. */ 17956 17957/* Override any GCC internal prototype to avoid an error. 17958 Use char because int might match the return type of a GCC 17959 builtin and then its argument prototype would still apply. */ 17960#ifdef __cplusplus 17961extern "C" 17962#endif 17963char setusercontext (); 17964int 17965main () 17966{ 17967return setusercontext (); 17968 ; 17969 return 0; 17970} 17971_ACEOF 17972for ac_lib in '' util; do 17973 if test -z "$ac_lib"; then 17974 ac_res="none required" 17975 else 17976 ac_res=-l$ac_lib 17977 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17978 fi 17979 if ac_fn_c_try_link "$LINENO"; then : 17980 ac_cv_search_setusercontext=$ac_res 17981fi 17982rm -f core conftest.err conftest.$ac_objext \ 17983 conftest$ac_exeext 17984 if ${ac_cv_search_setusercontext+:} false; then : 17985 break 17986fi 17987done 17988if ${ac_cv_search_setusercontext+:} false; then : 17989 17990else 17991 ac_cv_search_setusercontext=no 17992fi 17993rm conftest.$ac_ext 17994LIBS=$ac_func_search_save_LIBS 17995fi 17996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 17997$as_echo "$ac_cv_search_setusercontext" >&6; } 17998ac_res=$ac_cv_search_setusercontext 17999if test "$ac_res" != no; then : 18000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18001 18002fi 18003 18004for 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 18005do : 18006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18007ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18008if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18009 cat >>confdefs.h <<_ACEOF 18010#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18011_ACEOF 18012 18013fi 18014done 18015 18016for ac_func in setresuid 18017do : 18018 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 18019if test "x$ac_cv_func_setresuid" = xyes; then : 18020 cat >>confdefs.h <<_ACEOF 18021#define HAVE_SETRESUID 1 18022_ACEOF 18023 18024else 18025 for ac_func in setreuid 18026do : 18027 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 18028if test "x$ac_cv_func_setreuid" = xyes; then : 18029 cat >>confdefs.h <<_ACEOF 18030#define HAVE_SETREUID 1 18031_ACEOF 18032 18033fi 18034done 18035 18036fi 18037done 18038 18039for ac_func in setresgid 18040do : 18041 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 18042if test "x$ac_cv_func_setresgid" = xyes; then : 18043 cat >>confdefs.h <<_ACEOF 18044#define HAVE_SETRESGID 1 18045_ACEOF 18046 18047else 18048 for ac_func in setregid 18049do : 18050 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 18051if test "x$ac_cv_func_setregid" = xyes; then : 18052 cat >>confdefs.h <<_ACEOF 18053#define HAVE_SETREGID 1 18054_ACEOF 18055 18056fi 18057done 18058 18059fi 18060done 18061 18062 18063# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 18064if echo $build_os | grep darwin8 > /dev/null; then 18065 18066$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 18067 18068fi 18069ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 18070if test "x$ac_cv_func_inet_aton" = xyes; then : 18071 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 18072 18073else 18074 case " $LIBOBJS " in 18075 *" inet_aton.$ac_objext "* ) ;; 18076 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18077 ;; 18078esac 18079 18080fi 18081 18082 18083ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 18084if test "x$ac_cv_func_inet_pton" = xyes; then : 18085 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 18086 18087else 18088 case " $LIBOBJS " in 18089 *" inet_pton.$ac_objext "* ) ;; 18090 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 18091 ;; 18092esac 18093 18094fi 18095 18096 18097ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 18098if test "x$ac_cv_func_inet_ntop" = xyes; then : 18099 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 18100 18101else 18102 case " $LIBOBJS " in 18103 *" inet_ntop.$ac_objext "* ) ;; 18104 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 18105 ;; 18106esac 18107 18108fi 18109 18110 18111ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18112if test "x$ac_cv_func_snprintf" = xyes; then : 18113 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 18114 18115else 18116 case " $LIBOBJS " in 18117 *" snprintf.$ac_objext "* ) ;; 18118 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18119 ;; 18120esac 18121 18122fi 18123 18124 18125ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18126if test "x$ac_cv_func_strlcat" = xyes; then : 18127 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 18128 18129else 18130 case " $LIBOBJS " in 18131 *" strlcat.$ac_objext "* ) ;; 18132 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 18133 ;; 18134esac 18135 18136fi 18137 18138 18139ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18140if test "x$ac_cv_func_strlcpy" = xyes; then : 18141 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 18142 18143else 18144 case " $LIBOBJS " in 18145 *" strlcpy.$ac_objext "* ) ;; 18146 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 18147 ;; 18148esac 18149 18150fi 18151 18152 18153ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18154if test "x$ac_cv_func_memmove" = xyes; then : 18155 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 18156 18157else 18158 case " $LIBOBJS " in 18159 *" memmove.$ac_objext "* ) ;; 18160 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 18161 ;; 18162esac 18163 18164fi 18165 18166 18167ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18168if test "x$ac_cv_func_gmtime_r" = xyes; then : 18169 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 18170 18171else 18172 case " $LIBOBJS " in 18173 *" gmtime_r.$ac_objext "* ) ;; 18174 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18175 ;; 18176esac 18177 18178fi 18179 18180 18181LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 18182 18183ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 18184if test "x$ac_cv_func_ctime_r" = xyes; then : 18185 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 18186 18187else 18188 case " $LIBOBJS " in 18189 *" ctime_r.$ac_objext "* ) ;; 18190 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 18191 ;; 18192esac 18193 18194fi 18195 18196 18197 18198# Check whether --enable-allsymbols was given. 18199if test "${enable_allsymbols+set}" = set; then : 18200 enableval=$enable_allsymbols; 18201fi 18202 18203case "$enable_allsymbols" in 18204 yes) 18205 COMMON_OBJ_ALL_SYMBOLS="" 18206 UBSYMS="" 18207 EXTRALINK="-L. -L.libs -lunbound" 18208 18209$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 18210 18211 ;; 18212 no|*) 18213 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 18214 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 18215 EXTRALINK="" 18216 ;; 18217esac 18218 18219 18220 18221if test x_$enable_lock_checks = x_yes; then 18222 UBSYMS="-export-symbols clubsyms.def" 18223 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 18224 echo lock_protect >> clubsyms.def 18225 echo lock_unprotect >> clubsyms.def 18226 echo lock_get_mem >> clubsyms.def 18227 echo checklock_start >> clubsyms.def 18228 echo checklock_stop >> clubsyms.def 18229 echo checklock_lock >> clubsyms.def 18230 echo checklock_unlock >> clubsyms.def 18231 echo checklock_init >> clubsyms.def 18232 echo checklock_thrcreate >> clubsyms.def 18233 echo checklock_thrjoin >> clubsyms.def 18234fi 18235 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 18237$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 18238# on openBSD, the implicit rule make $< work. 18239# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 18240# gmake works. 18241cat >conftest.make <<EOF 18242all: conftest.lo 18243 18244conftest.lo foo.lo bla.lo: 18245 if test -f "\$<"; then touch \$@; fi 18246 18247.SUFFIXES: .lo 18248.c.lo: 18249 if test -f "\$<"; then touch \$@; fi 18250 18251conftest.lo: conftest.dir/conftest.c 18252EOF 18253mkdir conftest.dir 18254touch conftest.dir/conftest.c 18255rm -f conftest.lo conftest.c 18256${MAKE:-make} -f conftest.make >/dev/null 18257rm -f conftest.make conftest.c conftest.dir/conftest.c 18258rm -rf conftest.dir 18259if test ! -f conftest.lo; then 18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18261$as_echo "no" >&6; } 18262 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 18263 SOURCEFILE='`cat .source`' 18264else 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18266$as_echo "yes" >&6; } 18267 SOURCEDETERMINE=':' 18268 SOURCEFILE='$<' 18269fi 18270rm -f conftest.lo 18271 18272 18273 18274# see if we want to build the library or everything 18275ALLTARGET="alltargets" 18276INSTALLTARGET="install-all" 18277 18278# Check whether --with-libunbound-only was given. 18279if test "${with_libunbound_only+set}" = set; then : 18280 withval=$with_libunbound_only; 18281 if test "$withval" = "yes"; then 18282 ALLTARGET="lib" 18283 INSTALLTARGET="install-lib" 18284 fi 18285 18286fi 18287 18288 18289 18290 18291 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 18293$as_echo "$as_me: Stripping extension flags..." >&6;} 18294 18295 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 18296 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 18297 18298$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 18299 18300 fi 18301 18302 18303 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 18304 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 18305 18306$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 18307 18308 fi 18309 18310 18311 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 18312 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 18313 18314$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 18315 18316 fi 18317 18318 18319 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 18320 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 18321 18322$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 18323 18324 fi 18325 18326 18327 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 18328 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 18329 18330$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 18331 18332 fi 18333 18334 18335 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 18336 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 18337 18338$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 18339 18340 fi 18341 18342 18343 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 18344 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 18345 18346$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 18347 18348 fi 18349 18350 18351 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 18352 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 18353 18354$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 18355 18356 fi 18357 18358 18359LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 18360 18361 18362cat >>confdefs.h <<_ACEOF 18363#define MAXSYSLOGMSGLEN 10240 18364_ACEOF 18365 18366 18367 18368 18369ac_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" 18370 18371ac_config_headers="$ac_config_headers config.h" 18372 18373cat >confcache <<\_ACEOF 18374# This file is a shell script that caches the results of configure 18375# tests run on this system so they can be shared between configure 18376# scripts and configure runs, see configure's option --config-cache. 18377# It is not useful on other systems. If it contains results you don't 18378# want to keep, you may remove or edit it. 18379# 18380# config.status only pays attention to the cache file if you give it 18381# the --recheck option to rerun configure. 18382# 18383# `ac_cv_env_foo' variables (set or unset) will be overridden when 18384# loading this file, other *unset* `ac_cv_foo' will be assigned the 18385# following values. 18386 18387_ACEOF 18388 18389# The following way of writing the cache mishandles newlines in values, 18390# but we know of no workaround that is simple, portable, and efficient. 18391# So, we kill variables containing newlines. 18392# Ultrix sh set writes to stderr and can't be redirected directly, 18393# and sets the high bit in the cache file unless we assign to the vars. 18394( 18395 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18396 eval ac_val=\$$ac_var 18397 case $ac_val in #( 18398 *${as_nl}*) 18399 case $ac_var in #( 18400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18401$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18402 esac 18403 case $ac_var in #( 18404 _ | IFS | as_nl) ;; #( 18405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18406 *) { eval $ac_var=; unset $ac_var;} ;; 18407 esac ;; 18408 esac 18409 done 18410 18411 (set) 2>&1 | 18412 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18413 *${as_nl}ac_space=\ *) 18414 # `set' does not quote correctly, so add quotes: double-quote 18415 # substitution turns \\\\ into \\, and sed turns \\ into \. 18416 sed -n \ 18417 "s/'/'\\\\''/g; 18418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18419 ;; #( 18420 *) 18421 # `set' quotes correctly as required by POSIX, so do not add quotes. 18422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18423 ;; 18424 esac | 18425 sort 18426) | 18427 sed ' 18428 /^ac_cv_env_/b end 18429 t clear 18430 :clear 18431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18432 t end 18433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18434 :end' >>confcache 18435if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18436 if test -w "$cache_file"; then 18437 if test "x$cache_file" != "x/dev/null"; then 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18439$as_echo "$as_me: updating cache $cache_file" >&6;} 18440 if test ! -f "$cache_file" || test -h "$cache_file"; then 18441 cat confcache >"$cache_file" 18442 else 18443 case $cache_file in #( 18444 */* | ?:*) 18445 mv -f confcache "$cache_file"$$ && 18446 mv -f "$cache_file"$$ "$cache_file" ;; #( 18447 *) 18448 mv -f confcache "$cache_file" ;; 18449 esac 18450 fi 18451 fi 18452 else 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18454$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18455 fi 18456fi 18457rm -f confcache 18458 18459test "x$prefix" = xNONE && prefix=$ac_default_prefix 18460# Let make expand exec_prefix. 18461test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18462 18463DEFS=-DHAVE_CONFIG_H 18464 18465ac_libobjs= 18466ac_ltlibobjs= 18467U= 18468for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18469 # 1. Remove the extension, and $U if already installed. 18470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18471 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18473 # will be set to the directory where LIBOBJS objects are built. 18474 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18475 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18476done 18477LIBOBJS=$ac_libobjs 18478 18479LTLIBOBJS=$ac_ltlibobjs 18480 18481 18482 18483: "${CONFIG_STATUS=./config.status}" 18484ac_write_fail=0 18485ac_clean_files_save=$ac_clean_files 18486ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18487{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18488$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18489as_write_fail=0 18490cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18491#! $SHELL 18492# Generated by $as_me. 18493# Run this file to recreate the current configuration. 18494# Compiler output produced by configure, useful for debugging 18495# configure, is in config.log if it exists. 18496 18497debug=false 18498ac_cs_recheck=false 18499ac_cs_silent=false 18500 18501SHELL=\${CONFIG_SHELL-$SHELL} 18502export SHELL 18503_ASEOF 18504cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18505## -------------------- ## 18506## M4sh Initialization. ## 18507## -------------------- ## 18508 18509# Be more Bourne compatible 18510DUALCASE=1; export DUALCASE # for MKS sh 18511if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18512 emulate sh 18513 NULLCMD=: 18514 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18515 # is contrary to our usage. Disable this feature. 18516 alias -g '${1+"$@"}'='"$@"' 18517 setopt NO_GLOB_SUBST 18518else 18519 case `(set -o) 2>/dev/null` in #( 18520 *posix*) : 18521 set -o posix ;; #( 18522 *) : 18523 ;; 18524esac 18525fi 18526 18527 18528as_nl=' 18529' 18530export as_nl 18531# Printing a long string crashes Solaris 7 /usr/bin/printf. 18532as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18534as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18535# Prefer a ksh shell builtin over an external printf program on Solaris, 18536# but without wasting forks for bash or zsh. 18537if test -z "$BASH_VERSION$ZSH_VERSION" \ 18538 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18539 as_echo='print -r --' 18540 as_echo_n='print -rn --' 18541elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18542 as_echo='printf %s\n' 18543 as_echo_n='printf %s' 18544else 18545 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18546 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18547 as_echo_n='/usr/ucb/echo -n' 18548 else 18549 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18550 as_echo_n_body='eval 18551 arg=$1; 18552 case $arg in #( 18553 *"$as_nl"*) 18554 expr "X$arg" : "X\\(.*\\)$as_nl"; 18555 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18556 esac; 18557 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18558 ' 18559 export as_echo_n_body 18560 as_echo_n='sh -c $as_echo_n_body as_echo' 18561 fi 18562 export as_echo_body 18563 as_echo='sh -c $as_echo_body as_echo' 18564fi 18565 18566# The user is always right. 18567if test "${PATH_SEPARATOR+set}" != set; then 18568 PATH_SEPARATOR=: 18569 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18570 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18571 PATH_SEPARATOR=';' 18572 } 18573fi 18574 18575 18576# IFS 18577# We need space, tab and new line, in precisely that order. Quoting is 18578# there to prevent editors from complaining about space-tab. 18579# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18580# splitting by setting IFS to empty value.) 18581IFS=" "" $as_nl" 18582 18583# Find who we are. Look in the path if we contain no directory separator. 18584as_myself= 18585case $0 in #(( 18586 *[\\/]* ) as_myself=$0 ;; 18587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18588for as_dir in $PATH 18589do 18590 IFS=$as_save_IFS 18591 test -z "$as_dir" && as_dir=. 18592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18593 done 18594IFS=$as_save_IFS 18595 18596 ;; 18597esac 18598# We did not find ourselves, most probably we were run as `sh COMMAND' 18599# in which case we are not to be found in the path. 18600if test "x$as_myself" = x; then 18601 as_myself=$0 18602fi 18603if test ! -f "$as_myself"; then 18604 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18605 exit 1 18606fi 18607 18608# Unset variables that we do not need and which cause bugs (e.g. in 18609# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18610# suppresses any "Segmentation fault" message there. '((' could 18611# trigger a bug in pdksh 5.2.14. 18612for as_var in BASH_ENV ENV MAIL MAILPATH 18613do eval test x\${$as_var+set} = xset \ 18614 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18615done 18616PS1='$ ' 18617PS2='> ' 18618PS4='+ ' 18619 18620# NLS nuisances. 18621LC_ALL=C 18622export LC_ALL 18623LANGUAGE=C 18624export LANGUAGE 18625 18626# CDPATH. 18627(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18628 18629 18630# as_fn_error STATUS ERROR [LINENO LOG_FD] 18631# ---------------------------------------- 18632# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18633# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18634# script with STATUS, using 1 if that was 0. 18635as_fn_error () 18636{ 18637 as_status=$1; test $as_status -eq 0 && as_status=1 18638 if test "$4"; then 18639 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18640 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18641 fi 18642 $as_echo "$as_me: error: $2" >&2 18643 as_fn_exit $as_status 18644} # as_fn_error 18645 18646 18647# as_fn_set_status STATUS 18648# ----------------------- 18649# Set $? to STATUS, without forking. 18650as_fn_set_status () 18651{ 18652 return $1 18653} # as_fn_set_status 18654 18655# as_fn_exit STATUS 18656# ----------------- 18657# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18658as_fn_exit () 18659{ 18660 set +e 18661 as_fn_set_status $1 18662 exit $1 18663} # as_fn_exit 18664 18665# as_fn_unset VAR 18666# --------------- 18667# Portably unset VAR. 18668as_fn_unset () 18669{ 18670 { eval $1=; unset $1;} 18671} 18672as_unset=as_fn_unset 18673# as_fn_append VAR VALUE 18674# ---------------------- 18675# Append the text in VALUE to the end of the definition contained in VAR. Take 18676# advantage of any shell optimizations that allow amortized linear growth over 18677# repeated appends, instead of the typical quadratic growth present in naive 18678# implementations. 18679if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18680 eval 'as_fn_append () 18681 { 18682 eval $1+=\$2 18683 }' 18684else 18685 as_fn_append () 18686 { 18687 eval $1=\$$1\$2 18688 } 18689fi # as_fn_append 18690 18691# as_fn_arith ARG... 18692# ------------------ 18693# Perform arithmetic evaluation on the ARGs, and store the result in the 18694# global $as_val. Take advantage of shells that can avoid forks. The arguments 18695# must be portable across $(()) and expr. 18696if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18697 eval 'as_fn_arith () 18698 { 18699 as_val=$(( $* )) 18700 }' 18701else 18702 as_fn_arith () 18703 { 18704 as_val=`expr "$@" || test $? -eq 1` 18705 } 18706fi # as_fn_arith 18707 18708 18709if expr a : '\(a\)' >/dev/null 2>&1 && 18710 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18711 as_expr=expr 18712else 18713 as_expr=false 18714fi 18715 18716if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18717 as_basename=basename 18718else 18719 as_basename=false 18720fi 18721 18722if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18723 as_dirname=dirname 18724else 18725 as_dirname=false 18726fi 18727 18728as_me=`$as_basename -- "$0" || 18729$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18730 X"$0" : 'X\(//\)$' \| \ 18731 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18732$as_echo X/"$0" | 18733 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18734 s//\1/ 18735 q 18736 } 18737 /^X\/\(\/\/\)$/{ 18738 s//\1/ 18739 q 18740 } 18741 /^X\/\(\/\).*/{ 18742 s//\1/ 18743 q 18744 } 18745 s/.*/./; q'` 18746 18747# Avoid depending upon Character Ranges. 18748as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18749as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18750as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18751as_cr_digits='0123456789' 18752as_cr_alnum=$as_cr_Letters$as_cr_digits 18753 18754ECHO_C= ECHO_N= ECHO_T= 18755case `echo -n x` in #((((( 18756-n*) 18757 case `echo 'xy\c'` in 18758 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18759 xy) ECHO_C='\c';; 18760 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18761 ECHO_T=' ';; 18762 esac;; 18763*) 18764 ECHO_N='-n';; 18765esac 18766 18767rm -f conf$$ conf$$.exe conf$$.file 18768if test -d conf$$.dir; then 18769 rm -f conf$$.dir/conf$$.file 18770else 18771 rm -f conf$$.dir 18772 mkdir conf$$.dir 2>/dev/null 18773fi 18774if (echo >conf$$.file) 2>/dev/null; then 18775 if ln -s conf$$.file conf$$ 2>/dev/null; then 18776 as_ln_s='ln -s' 18777 # ... but there are two gotchas: 18778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18780 # In both cases, we have to default to `cp -pR'. 18781 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18782 as_ln_s='cp -pR' 18783 elif ln conf$$.file conf$$ 2>/dev/null; then 18784 as_ln_s=ln 18785 else 18786 as_ln_s='cp -pR' 18787 fi 18788else 18789 as_ln_s='cp -pR' 18790fi 18791rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18792rmdir conf$$.dir 2>/dev/null 18793 18794 18795# as_fn_mkdir_p 18796# ------------- 18797# Create "$as_dir" as a directory, including parents if necessary. 18798as_fn_mkdir_p () 18799{ 18800 18801 case $as_dir in #( 18802 -*) as_dir=./$as_dir;; 18803 esac 18804 test -d "$as_dir" || eval $as_mkdir_p || { 18805 as_dirs= 18806 while :; do 18807 case $as_dir in #( 18808 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18809 *) as_qdir=$as_dir;; 18810 esac 18811 as_dirs="'$as_qdir' $as_dirs" 18812 as_dir=`$as_dirname -- "$as_dir" || 18813$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18814 X"$as_dir" : 'X\(//\)[^/]' \| \ 18815 X"$as_dir" : 'X\(//\)$' \| \ 18816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18817$as_echo X"$as_dir" | 18818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18819 s//\1/ 18820 q 18821 } 18822 /^X\(\/\/\)[^/].*/{ 18823 s//\1/ 18824 q 18825 } 18826 /^X\(\/\/\)$/{ 18827 s//\1/ 18828 q 18829 } 18830 /^X\(\/\).*/{ 18831 s//\1/ 18832 q 18833 } 18834 s/.*/./; q'` 18835 test -d "$as_dir" && break 18836 done 18837 test -z "$as_dirs" || eval "mkdir $as_dirs" 18838 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18839 18840 18841} # as_fn_mkdir_p 18842if mkdir -p . 2>/dev/null; then 18843 as_mkdir_p='mkdir -p "$as_dir"' 18844else 18845 test -d ./-p && rmdir ./-p 18846 as_mkdir_p=false 18847fi 18848 18849 18850# as_fn_executable_p FILE 18851# ----------------------- 18852# Test if FILE is an executable regular file. 18853as_fn_executable_p () 18854{ 18855 test -f "$1" && test -x "$1" 18856} # as_fn_executable_p 18857as_test_x='test -x' 18858as_executable_p=as_fn_executable_p 18859 18860# Sed expression to map a string onto a valid CPP name. 18861as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18862 18863# Sed expression to map a string onto a valid variable name. 18864as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18865 18866 18867exec 6>&1 18868## ----------------------------------- ## 18869## Main body of $CONFIG_STATUS script. ## 18870## ----------------------------------- ## 18871_ASEOF 18872test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18873 18874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18875# Save the log message, to keep $0 and so on meaningful, and to 18876# report actual input values of CONFIG_FILES etc. instead of their 18877# values after options handling. 18878ac_log=" 18879This file was extended by unbound $as_me 1.4.22, which was 18880generated by GNU Autoconf 2.69. Invocation command line was 18881 18882 CONFIG_FILES = $CONFIG_FILES 18883 CONFIG_HEADERS = $CONFIG_HEADERS 18884 CONFIG_LINKS = $CONFIG_LINKS 18885 CONFIG_COMMANDS = $CONFIG_COMMANDS 18886 $ $0 $@ 18887 18888on `(hostname || uname -n) 2>/dev/null | sed 1q` 18889" 18890 18891_ACEOF 18892 18893case $ac_config_files in *" 18894"*) set x $ac_config_files; shift; ac_config_files=$*;; 18895esac 18896 18897case $ac_config_headers in *" 18898"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18899esac 18900 18901 18902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18903# Files that config.status was made for. 18904config_files="$ac_config_files" 18905config_headers="$ac_config_headers" 18906config_commands="$ac_config_commands" 18907 18908_ACEOF 18909 18910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18911ac_cs_usage="\ 18912\`$as_me' instantiates files and other configuration actions 18913from templates according to the current configuration. Unless the files 18914and actions are specified as TAGs, all are instantiated by default. 18915 18916Usage: $0 [OPTION]... [TAG]... 18917 18918 -h, --help print this help, then exit 18919 -V, --version print version number and configuration settings, then exit 18920 --config print configuration, then exit 18921 -q, --quiet, --silent 18922 do not print progress messages 18923 -d, --debug don't remove temporary files 18924 --recheck update $as_me by reconfiguring in the same conditions 18925 --file=FILE[:TEMPLATE] 18926 instantiate the configuration file FILE 18927 --header=FILE[:TEMPLATE] 18928 instantiate the configuration header FILE 18929 18930Configuration files: 18931$config_files 18932 18933Configuration headers: 18934$config_headers 18935 18936Configuration commands: 18937$config_commands 18938 18939Report bugs to <unbound-bugs@nlnetlabs.nl>." 18940 18941_ACEOF 18942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18943ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18944ac_cs_version="\\ 18945unbound config.status 1.4.22 18946configured by $0, generated by GNU Autoconf 2.69, 18947 with options \\"\$ac_cs_config\\" 18948 18949Copyright (C) 2012 Free Software Foundation, Inc. 18950This config.status script is free software; the Free Software Foundation 18951gives unlimited permission to copy, distribute and modify it." 18952 18953ac_pwd='$ac_pwd' 18954srcdir='$srcdir' 18955AWK='$AWK' 18956test -n "\$AWK" || AWK=awk 18957_ACEOF 18958 18959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18960# The default lists apply if the user does not specify any file. 18961ac_need_defaults=: 18962while test $# != 0 18963do 18964 case $1 in 18965 --*=?*) 18966 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18968 ac_shift=: 18969 ;; 18970 --*=) 18971 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18972 ac_optarg= 18973 ac_shift=: 18974 ;; 18975 *) 18976 ac_option=$1 18977 ac_optarg=$2 18978 ac_shift=shift 18979 ;; 18980 esac 18981 18982 case $ac_option in 18983 # Handling of the options. 18984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18985 ac_cs_recheck=: ;; 18986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18987 $as_echo "$ac_cs_version"; exit ;; 18988 --config | --confi | --conf | --con | --co | --c ) 18989 $as_echo "$ac_cs_config"; exit ;; 18990 --debug | --debu | --deb | --de | --d | -d ) 18991 debug=: ;; 18992 --file | --fil | --fi | --f ) 18993 $ac_shift 18994 case $ac_optarg in 18995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18996 '') as_fn_error $? "missing file argument" ;; 18997 esac 18998 as_fn_append CONFIG_FILES " '$ac_optarg'" 18999 ac_need_defaults=false;; 19000 --header | --heade | --head | --hea ) 19001 $ac_shift 19002 case $ac_optarg in 19003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19004 esac 19005 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19006 ac_need_defaults=false;; 19007 --he | --h) 19008 # Conflict between --help and --header 19009 as_fn_error $? "ambiguous option: \`$1' 19010Try \`$0 --help' for more information.";; 19011 --help | --hel | -h ) 19012 $as_echo "$ac_cs_usage"; exit ;; 19013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19014 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19015 ac_cs_silent=: ;; 19016 19017 # This is an error. 19018 -*) as_fn_error $? "unrecognized option: \`$1' 19019Try \`$0 --help' for more information." ;; 19020 19021 *) as_fn_append ac_config_targets " $1" 19022 ac_need_defaults=false ;; 19023 19024 esac 19025 shift 19026done 19027 19028ac_configure_extra_args= 19029 19030if $ac_cs_silent; then 19031 exec 6>/dev/null 19032 ac_configure_extra_args="$ac_configure_extra_args --silent" 19033fi 19034 19035_ACEOF 19036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19037if \$ac_cs_recheck; then 19038 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19039 shift 19040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19041 CONFIG_SHELL='$SHELL' 19042 export CONFIG_SHELL 19043 exec "\$@" 19044fi 19045 19046_ACEOF 19047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19048exec 5>>config.log 19049{ 19050 echo 19051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19052## Running $as_me. ## 19053_ASBOX 19054 $as_echo "$ac_log" 19055} >&5 19056 19057_ACEOF 19058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19059# 19060# INIT-COMMANDS 19061# 19062 19063 19064# The HP-UX ksh and POSIX shell print the target directory to stdout 19065# if CDPATH is set. 19066(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19067 19068sed_quote_subst='$sed_quote_subst' 19069double_quote_subst='$double_quote_subst' 19070delay_variable_subst='$delay_variable_subst' 19071macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19072macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19073enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19074enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19075pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19076enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19077SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19078ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19079PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19080host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19081host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19082host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19083build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19084build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19085build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19086SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19087Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19088GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19089EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19090FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19091LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19092NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19093LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19094max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19095ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19096exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19097lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19098lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19099lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19100lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19101lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19102reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19103reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19104OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19105deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19106file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19107file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19108want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19109DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19110sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19111AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19112AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19113archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19114STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19115RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19116old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19117old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19118old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19119lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19120CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19121CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19122compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19123GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19124lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19125lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19126lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19127lt_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"`' 19128nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19129lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19130objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19131MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19132lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19133lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19134lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19135lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19136lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19137need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19138MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19139DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19140NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19141LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19142OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19143OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19144libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19145shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19146extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19147archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19148enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19149export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19150whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19151compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19152old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19153old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19154archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19155archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19156module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19157module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19158with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19159allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19160no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19161hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19162hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19163hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19164hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19165hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19166hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19167hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19168inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19169link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19170always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19171export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19172exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19173include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19174prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19175postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19176file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19177variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19178need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19179need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19180version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19181runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19182shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19183shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19184libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19185library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19186soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19187install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19188postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19189postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19190finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19191finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19192hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19193sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19194sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19195hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19196enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19197enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19198enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19199old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19200striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19201 19202LTCC='$LTCC' 19203LTCFLAGS='$LTCFLAGS' 19204compiler='$compiler_DEFAULT' 19205 19206# A function that is used when there is no print builtin or printf. 19207func_fallback_echo () 19208{ 19209 eval 'cat <<_LTECHO_EOF 19210\$1 19211_LTECHO_EOF' 19212} 19213 19214# Quote evaled strings. 19215for var in SHELL \ 19216ECHO \ 19217PATH_SEPARATOR \ 19218SED \ 19219GREP \ 19220EGREP \ 19221FGREP \ 19222LD \ 19223NM \ 19224LN_S \ 19225lt_SP2NL \ 19226lt_NL2SP \ 19227reload_flag \ 19228OBJDUMP \ 19229deplibs_check_method \ 19230file_magic_cmd \ 19231file_magic_glob \ 19232want_nocaseglob \ 19233DLLTOOL \ 19234sharedlib_from_linklib_cmd \ 19235AR \ 19236AR_FLAGS \ 19237archiver_list_spec \ 19238STRIP \ 19239RANLIB \ 19240CC \ 19241CFLAGS \ 19242compiler \ 19243lt_cv_sys_global_symbol_pipe \ 19244lt_cv_sys_global_symbol_to_cdecl \ 19245lt_cv_sys_global_symbol_to_c_name_address \ 19246lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19247nm_file_list_spec \ 19248lt_prog_compiler_no_builtin_flag \ 19249lt_prog_compiler_pic \ 19250lt_prog_compiler_wl \ 19251lt_prog_compiler_static \ 19252lt_cv_prog_compiler_c_o \ 19253need_locks \ 19254MANIFEST_TOOL \ 19255DSYMUTIL \ 19256NMEDIT \ 19257LIPO \ 19258OTOOL \ 19259OTOOL64 \ 19260shrext_cmds \ 19261export_dynamic_flag_spec \ 19262whole_archive_flag_spec \ 19263compiler_needs_object \ 19264with_gnu_ld \ 19265allow_undefined_flag \ 19266no_undefined_flag \ 19267hardcode_libdir_flag_spec \ 19268hardcode_libdir_separator \ 19269exclude_expsyms \ 19270include_expsyms \ 19271file_list_spec \ 19272variables_saved_for_relink \ 19273libname_spec \ 19274library_names_spec \ 19275soname_spec \ 19276install_override_mode \ 19277finish_eval \ 19278old_striplib \ 19279striplib; do 19280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19281 *[\\\\\\\`\\"\\\$]*) 19282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19283 ;; 19284 *) 19285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19286 ;; 19287 esac 19288done 19289 19290# Double-quote double-evaled strings. 19291for var in reload_cmds \ 19292old_postinstall_cmds \ 19293old_postuninstall_cmds \ 19294old_archive_cmds \ 19295extract_expsyms_cmds \ 19296old_archive_from_new_cmds \ 19297old_archive_from_expsyms_cmds \ 19298archive_cmds \ 19299archive_expsym_cmds \ 19300module_cmds \ 19301module_expsym_cmds \ 19302export_symbols_cmds \ 19303prelink_cmds \ 19304postlink_cmds \ 19305postinstall_cmds \ 19306postuninstall_cmds \ 19307finish_cmds \ 19308sys_lib_search_path_spec \ 19309sys_lib_dlsearch_path_spec; do 19310 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19311 *[\\\\\\\`\\"\\\$]*) 19312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19313 ;; 19314 *) 19315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19316 ;; 19317 esac 19318done 19319 19320ac_aux_dir='$ac_aux_dir' 19321xsi_shell='$xsi_shell' 19322lt_shell_append='$lt_shell_append' 19323 19324# See if we are running on zsh, and set the options which allow our 19325# commands through without removal of \ escapes INIT. 19326if test -n "\${ZSH_VERSION+set}" ; then 19327 setopt NO_GLOB_SUBST 19328fi 19329 19330 19331 PACKAGE='$PACKAGE' 19332 VERSION='$VERSION' 19333 TIMESTAMP='$TIMESTAMP' 19334 RM='$RM' 19335 ofile='$ofile' 19336 19337 19338 19339 19340_ACEOF 19341 19342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19343 19344# Handling of arguments. 19345for ac_config_target in $ac_config_targets 19346do 19347 case $ac_config_target in 19348 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19349 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 19350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19351 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 19352 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 19353 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 19354 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 19355 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 19356 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 19357 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 19358 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19359 19360 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19361 esac 19362done 19363 19364 19365# If the user did not use the arguments to specify the items to instantiate, 19366# then the envvar interface is used. Set only those that are not. 19367# We use the long form for the default assignment because of an extremely 19368# bizarre bug on SunOS 4.1.3. 19369if $ac_need_defaults; then 19370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19371 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19373fi 19374 19375# Have a temporary directory for convenience. Make it in the build tree 19376# simply because there is no reason against having it here, and in addition, 19377# creating and moving files from /tmp can sometimes cause problems. 19378# Hook for its removal unless debugging. 19379# Note that there is a small window in which the directory will not be cleaned: 19380# after its creation but before its name has been assigned to `$tmp'. 19381$debug || 19382{ 19383 tmp= ac_tmp= 19384 trap 'exit_status=$? 19385 : "${ac_tmp:=$tmp}" 19386 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19387' 0 19388 trap 'as_fn_exit 1' 1 2 13 15 19389} 19390# Create a (secure) tmp directory for tmp files. 19391 19392{ 19393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19394 test -d "$tmp" 19395} || 19396{ 19397 tmp=./conf$$-$RANDOM 19398 (umask 077 && mkdir "$tmp") 19399} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19400ac_tmp=$tmp 19401 19402# Set up the scripts for CONFIG_FILES section. 19403# No need to generate them if there are no CONFIG_FILES. 19404# This happens for instance with `./config.status config.h'. 19405if test -n "$CONFIG_FILES"; then 19406 19407 19408ac_cr=`echo X | tr X '\015'` 19409# On cygwin, bash can eat \r inside `` if the user requested igncr. 19410# But we know of no other shell where ac_cr would be empty at this 19411# point, so we can use a bashism as a fallback. 19412if test "x$ac_cr" = x; then 19413 eval ac_cr=\$\'\\r\' 19414fi 19415ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19416if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19417 ac_cs_awk_cr='\\r' 19418else 19419 ac_cs_awk_cr=$ac_cr 19420fi 19421 19422echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19423_ACEOF 19424 19425 19426{ 19427 echo "cat >conf$$subs.awk <<_ACEOF" && 19428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19429 echo "_ACEOF" 19430} >conf$$subs.sh || 19431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19432ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19433ac_delim='%!_!# ' 19434for ac_last_try in false false false false false :; do 19435 . ./conf$$subs.sh || 19436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19437 19438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19439 if test $ac_delim_n = $ac_delim_num; then 19440 break 19441 elif $ac_last_try; then 19442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19443 else 19444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19445 fi 19446done 19447rm -f conf$$subs.sh 19448 19449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19450cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19451_ACEOF 19452sed -n ' 19453h 19454s/^/S["/; s/!.*/"]=/ 19455p 19456g 19457s/^[^!]*!// 19458:repl 19459t repl 19460s/'"$ac_delim"'$// 19461t delim 19462:nl 19463h 19464s/\(.\{148\}\)..*/\1/ 19465t more1 19466s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19467p 19468n 19469b repl 19470:more1 19471s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19472p 19473g 19474s/.\{148\}// 19475t nl 19476:delim 19477h 19478s/\(.\{148\}\)..*/\1/ 19479t more2 19480s/["\\]/\\&/g; s/^/"/; s/$/"/ 19481p 19482b 19483:more2 19484s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19485p 19486g 19487s/.\{148\}// 19488t delim 19489' <conf$$subs.awk | sed ' 19490/^[^""]/{ 19491 N 19492 s/\n// 19493} 19494' >>$CONFIG_STATUS || ac_write_fail=1 19495rm -f conf$$subs.awk 19496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19497_ACAWK 19498cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19499 for (key in S) S_is_set[key] = 1 19500 FS = "" 19501 19502} 19503{ 19504 line = $ 0 19505 nfields = split(line, field, "@") 19506 substed = 0 19507 len = length(field[1]) 19508 for (i = 2; i < nfields; i++) { 19509 key = field[i] 19510 keylen = length(key) 19511 if (S_is_set[key]) { 19512 value = S[key] 19513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19514 len += length(value) + length(field[++i]) 19515 substed = 1 19516 } else 19517 len += 1 + keylen 19518 } 19519 19520 print line 19521} 19522 19523_ACAWK 19524_ACEOF 19525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19526if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19527 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19528else 19529 cat 19530fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19531 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19532_ACEOF 19533 19534# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19535# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19536# trailing colons and then remove the whole line if VPATH becomes empty 19537# (actually we leave an empty line to preserve line numbers). 19538if test "x$srcdir" = x.; then 19539 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19540h 19541s/// 19542s/^/:/ 19543s/[ ]*$/:/ 19544s/:\$(srcdir):/:/g 19545s/:\${srcdir}:/:/g 19546s/:@srcdir@:/:/g 19547s/^:*// 19548s/:*$// 19549x 19550s/\(=[ ]*\).*/\1/ 19551G 19552s/\n// 19553s/^[^=]*=[ ]*$// 19554}' 19555fi 19556 19557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19558fi # test -n "$CONFIG_FILES" 19559 19560# Set up the scripts for CONFIG_HEADERS section. 19561# No need to generate them if there are no CONFIG_HEADERS. 19562# This happens for instance with `./config.status Makefile'. 19563if test -n "$CONFIG_HEADERS"; then 19564cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19565BEGIN { 19566_ACEOF 19567 19568# Transform confdefs.h into an awk script `defines.awk', embedded as 19569# here-document in config.status, that substitutes the proper values into 19570# config.h.in to produce config.h. 19571 19572# Create a delimiter string that does not exist in confdefs.h, to ease 19573# handling of long lines. 19574ac_delim='%!_!# ' 19575for ac_last_try in false false :; do 19576 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19577 if test -z "$ac_tt"; then 19578 break 19579 elif $ac_last_try; then 19580 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19581 else 19582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19583 fi 19584done 19585 19586# For the awk script, D is an array of macro values keyed by name, 19587# likewise P contains macro parameters if any. Preserve backslash 19588# newline sequences. 19589 19590ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19591sed -n ' 19592s/.\{148\}/&'"$ac_delim"'/g 19593t rset 19594:rset 19595s/^[ ]*#[ ]*define[ ][ ]*/ / 19596t def 19597d 19598:def 19599s/\\$// 19600t bsnl 19601s/["\\]/\\&/g 19602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19603D["\1"]=" \3"/p 19604s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19605d 19606:bsnl 19607s/["\\]/\\&/g 19608s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19609D["\1"]=" \3\\\\\\n"\\/p 19610t cont 19611s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19612t cont 19613d 19614:cont 19615n 19616s/.\{148\}/&'"$ac_delim"'/g 19617t clear 19618:clear 19619s/\\$// 19620t bsnlc 19621s/["\\]/\\&/g; s/^/"/; s/$/"/p 19622d 19623:bsnlc 19624s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19625b cont 19626' <confdefs.h | sed ' 19627s/'"$ac_delim"'/"\\\ 19628"/g' >>$CONFIG_STATUS || ac_write_fail=1 19629 19630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19631 for (key in D) D_is_set[key] = 1 19632 FS = "" 19633} 19634/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19635 line = \$ 0 19636 split(line, arg, " ") 19637 if (arg[1] == "#") { 19638 defundef = arg[2] 19639 mac1 = arg[3] 19640 } else { 19641 defundef = substr(arg[1], 2) 19642 mac1 = arg[2] 19643 } 19644 split(mac1, mac2, "(") #) 19645 macro = mac2[1] 19646 prefix = substr(line, 1, index(line, defundef) - 1) 19647 if (D_is_set[macro]) { 19648 # Preserve the white space surrounding the "#". 19649 print prefix "define", macro P[macro] D[macro] 19650 next 19651 } else { 19652 # Replace #undef with comments. This is necessary, for example, 19653 # in the case of _POSIX_SOURCE, which is predefined and required 19654 # on some systems where configure will not decide to define it. 19655 if (defundef == "undef") { 19656 print "/*", prefix defundef, macro, "*/" 19657 next 19658 } 19659 } 19660} 19661{ print } 19662_ACAWK 19663_ACEOF 19664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19665 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19666fi # test -n "$CONFIG_HEADERS" 19667 19668 19669eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19670shift 19671for ac_tag 19672do 19673 case $ac_tag in 19674 :[FHLC]) ac_mode=$ac_tag; continue;; 19675 esac 19676 case $ac_mode$ac_tag in 19677 :[FHL]*:*);; 19678 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19679 :[FH]-) ac_tag=-:-;; 19680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19681 esac 19682 ac_save_IFS=$IFS 19683 IFS=: 19684 set x $ac_tag 19685 IFS=$ac_save_IFS 19686 shift 19687 ac_file=$1 19688 shift 19689 19690 case $ac_mode in 19691 :L) ac_source=$1;; 19692 :[FH]) 19693 ac_file_inputs= 19694 for ac_f 19695 do 19696 case $ac_f in 19697 -) ac_f="$ac_tmp/stdin";; 19698 *) # Look for the file first in the build tree, then in the source tree 19699 # (if the path is not absolute). The absolute path cannot be DOS-style, 19700 # because $ac_f cannot contain `:'. 19701 test -f "$ac_f" || 19702 case $ac_f in 19703 [\\/$]*) false;; 19704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19705 esac || 19706 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19707 esac 19708 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19709 as_fn_append ac_file_inputs " '$ac_f'" 19710 done 19711 19712 # Let's still pretend it is `configure' which instantiates (i.e., don't 19713 # use $as_me), people would be surprised to read: 19714 # /* config.h. Generated by config.status. */ 19715 configure_input='Generated from '` 19716 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19717 `' by configure.' 19718 if test x"$ac_file" != x-; then 19719 configure_input="$ac_file. $configure_input" 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19721$as_echo "$as_me: creating $ac_file" >&6;} 19722 fi 19723 # Neutralize special characters interpreted by sed in replacement strings. 19724 case $configure_input in #( 19725 *\&* | *\|* | *\\* ) 19726 ac_sed_conf_input=`$as_echo "$configure_input" | 19727 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19728 *) ac_sed_conf_input=$configure_input;; 19729 esac 19730 19731 case $ac_tag in 19732 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19734 esac 19735 ;; 19736 esac 19737 19738 ac_dir=`$as_dirname -- "$ac_file" || 19739$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19740 X"$ac_file" : 'X\(//\)[^/]' \| \ 19741 X"$ac_file" : 'X\(//\)$' \| \ 19742 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19743$as_echo X"$ac_file" | 19744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19745 s//\1/ 19746 q 19747 } 19748 /^X\(\/\/\)[^/].*/{ 19749 s//\1/ 19750 q 19751 } 19752 /^X\(\/\/\)$/{ 19753 s//\1/ 19754 q 19755 } 19756 /^X\(\/\).*/{ 19757 s//\1/ 19758 q 19759 } 19760 s/.*/./; q'` 19761 as_dir="$ac_dir"; as_fn_mkdir_p 19762 ac_builddir=. 19763 19764case "$ac_dir" in 19765.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19766*) 19767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19768 # A ".." for each directory in $ac_dir_suffix. 19769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19770 case $ac_top_builddir_sub in 19771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19773 esac ;; 19774esac 19775ac_abs_top_builddir=$ac_pwd 19776ac_abs_builddir=$ac_pwd$ac_dir_suffix 19777# for backward compatibility: 19778ac_top_builddir=$ac_top_build_prefix 19779 19780case $srcdir in 19781 .) # We are building in place. 19782 ac_srcdir=. 19783 ac_top_srcdir=$ac_top_builddir_sub 19784 ac_abs_top_srcdir=$ac_pwd ;; 19785 [\\/]* | ?:[\\/]* ) # Absolute name. 19786 ac_srcdir=$srcdir$ac_dir_suffix; 19787 ac_top_srcdir=$srcdir 19788 ac_abs_top_srcdir=$srcdir ;; 19789 *) # Relative name. 19790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19791 ac_top_srcdir=$ac_top_build_prefix$srcdir 19792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19793esac 19794ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19795 19796 19797 case $ac_mode in 19798 :F) 19799 # 19800 # CONFIG_FILE 19801 # 19802 19803_ACEOF 19804 19805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19806# If the template does not know about datarootdir, expand it. 19807# FIXME: This hack should be removed a few years after 2.60. 19808ac_datarootdir_hack=; ac_datarootdir_seen= 19809ac_sed_dataroot=' 19810/datarootdir/ { 19811 p 19812 q 19813} 19814/@datadir@/p 19815/@docdir@/p 19816/@infodir@/p 19817/@localedir@/p 19818/@mandir@/p' 19819case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19820*datarootdir*) ac_datarootdir_seen=yes;; 19821*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19823$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19824_ACEOF 19825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19826 ac_datarootdir_hack=' 19827 s&@datadir@&$datadir&g 19828 s&@docdir@&$docdir&g 19829 s&@infodir@&$infodir&g 19830 s&@localedir@&$localedir&g 19831 s&@mandir@&$mandir&g 19832 s&\\\${datarootdir}&$datarootdir&g' ;; 19833esac 19834_ACEOF 19835 19836# Neutralize VPATH when `$srcdir' = `.'. 19837# Shell code in configure.ac might set extrasub. 19838# FIXME: do we really want to maintain this feature? 19839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19840ac_sed_extra="$ac_vpsub 19841$extrasub 19842_ACEOF 19843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19844:t 19845/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19846s|@configure_input@|$ac_sed_conf_input|;t t 19847s&@top_builddir@&$ac_top_builddir_sub&;t t 19848s&@top_build_prefix@&$ac_top_build_prefix&;t t 19849s&@srcdir@&$ac_srcdir&;t t 19850s&@abs_srcdir@&$ac_abs_srcdir&;t t 19851s&@top_srcdir@&$ac_top_srcdir&;t t 19852s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19853s&@builddir@&$ac_builddir&;t t 19854s&@abs_builddir@&$ac_abs_builddir&;t t 19855s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19856$ac_datarootdir_hack 19857" 19858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19859 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19860 19861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19862 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19864 "$ac_tmp/out"`; test -z "$ac_out"; } && 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19866which seems to be undefined. Please make sure it is defined" >&5 19867$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19868which seems to be undefined. Please make sure it is defined" >&2;} 19869 19870 rm -f "$ac_tmp/stdin" 19871 case $ac_file in 19872 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19873 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19874 esac \ 19875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19876 ;; 19877 :H) 19878 # 19879 # CONFIG_HEADER 19880 # 19881 if test x"$ac_file" != x-; then 19882 { 19883 $as_echo "/* $configure_input */" \ 19884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19885 } >"$ac_tmp/config.h" \ 19886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19887 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19889$as_echo "$as_me: $ac_file is unchanged" >&6;} 19890 else 19891 rm -f "$ac_file" 19892 mv "$ac_tmp/config.h" "$ac_file" \ 19893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19894 fi 19895 else 19896 $as_echo "/* $configure_input */" \ 19897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19898 || as_fn_error $? "could not create -" "$LINENO" 5 19899 fi 19900 ;; 19901 19902 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19903$as_echo "$as_me: executing $ac_file commands" >&6;} 19904 ;; 19905 esac 19906 19907 19908 case $ac_file$ac_mode in 19909 "libtool":C) 19910 19911 # See if we are running on zsh, and set the options which allow our 19912 # commands through without removal of \ escapes. 19913 if test -n "${ZSH_VERSION+set}" ; then 19914 setopt NO_GLOB_SUBST 19915 fi 19916 19917 cfgfile="${ofile}T" 19918 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19919 $RM "$cfgfile" 19920 19921 cat <<_LT_EOF >> "$cfgfile" 19922#! $SHELL 19923 19924# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19925# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19926# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19927# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19928# 19929# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19930# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19931# Foundation, Inc. 19932# Written by Gordon Matzigkeit, 1996 19933# 19934# This file is part of GNU Libtool. 19935# 19936# GNU Libtool is free software; you can redistribute it and/or 19937# modify it under the terms of the GNU General Public License as 19938# published by the Free Software Foundation; either version 2 of 19939# the License, or (at your option) any later version. 19940# 19941# As a special exception to the GNU General Public License, 19942# if you distribute this file as part of a program or library that 19943# is built using GNU Libtool, you may include this file under the 19944# same distribution terms that you use for the rest of that program. 19945# 19946# GNU Libtool is distributed in the hope that it will be useful, 19947# but WITHOUT ANY WARRANTY; without even the implied warranty of 19948# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19949# GNU General Public License for more details. 19950# 19951# You should have received a copy of the GNU General Public License 19952# along with GNU Libtool; see the file COPYING. If not, a copy 19953# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19954# obtained by writing to the Free Software Foundation, Inc., 19955# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19956 19957 19958# The names of the tagged configurations supported by this script. 19959available_tags="" 19960 19961# ### BEGIN LIBTOOL CONFIG 19962 19963# Which release of libtool.m4 was used? 19964macro_version=$macro_version 19965macro_revision=$macro_revision 19966 19967# Whether or not to build shared libraries. 19968build_libtool_libs=$enable_shared 19969 19970# Whether or not to build static libraries. 19971build_old_libs=$enable_static 19972 19973# What type of objects to build. 19974pic_mode=$pic_mode 19975 19976# Whether or not to optimize for fast installation. 19977fast_install=$enable_fast_install 19978 19979# Shell to use when invoking shell scripts. 19980SHELL=$lt_SHELL 19981 19982# An echo program that protects backslashes. 19983ECHO=$lt_ECHO 19984 19985# The PATH separator for the build system. 19986PATH_SEPARATOR=$lt_PATH_SEPARATOR 19987 19988# The host system. 19989host_alias=$host_alias 19990host=$host 19991host_os=$host_os 19992 19993# The build system. 19994build_alias=$build_alias 19995build=$build 19996build_os=$build_os 19997 19998# A sed program that does not truncate output. 19999SED=$lt_SED 20000 20001# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20002Xsed="\$SED -e 1s/^X//" 20003 20004# A grep program that handles long lines. 20005GREP=$lt_GREP 20006 20007# An ERE matcher. 20008EGREP=$lt_EGREP 20009 20010# A literal string matcher. 20011FGREP=$lt_FGREP 20012 20013# A BSD- or MS-compatible name lister. 20014NM=$lt_NM 20015 20016# Whether we need soft or hard links. 20017LN_S=$lt_LN_S 20018 20019# What is the maximum length of a command? 20020max_cmd_len=$max_cmd_len 20021 20022# Object file suffix (normally "o"). 20023objext=$ac_objext 20024 20025# Executable file suffix (normally ""). 20026exeext=$exeext 20027 20028# whether the shell understands "unset". 20029lt_unset=$lt_unset 20030 20031# turn spaces into newlines. 20032SP2NL=$lt_lt_SP2NL 20033 20034# turn newlines into spaces. 20035NL2SP=$lt_lt_NL2SP 20036 20037# convert \$build file names to \$host format. 20038to_host_file_cmd=$lt_cv_to_host_file_cmd 20039 20040# convert \$build files to toolchain format. 20041to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20042 20043# An object symbol dumper. 20044OBJDUMP=$lt_OBJDUMP 20045 20046# Method to check whether dependent libraries are shared objects. 20047deplibs_check_method=$lt_deplibs_check_method 20048 20049# Command to use when deplibs_check_method = "file_magic". 20050file_magic_cmd=$lt_file_magic_cmd 20051 20052# How to find potential files when deplibs_check_method = "file_magic". 20053file_magic_glob=$lt_file_magic_glob 20054 20055# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20056want_nocaseglob=$lt_want_nocaseglob 20057 20058# DLL creation program. 20059DLLTOOL=$lt_DLLTOOL 20060 20061# Command to associate shared and link libraries. 20062sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20063 20064# The archiver. 20065AR=$lt_AR 20066 20067# Flags to create an archive. 20068AR_FLAGS=$lt_AR_FLAGS 20069 20070# How to feed a file listing to the archiver. 20071archiver_list_spec=$lt_archiver_list_spec 20072 20073# A symbol stripping program. 20074STRIP=$lt_STRIP 20075 20076# Commands used to install an old-style archive. 20077RANLIB=$lt_RANLIB 20078old_postinstall_cmds=$lt_old_postinstall_cmds 20079old_postuninstall_cmds=$lt_old_postuninstall_cmds 20080 20081# Whether to use a lock for old archive extraction. 20082lock_old_archive_extraction=$lock_old_archive_extraction 20083 20084# A C compiler. 20085LTCC=$lt_CC 20086 20087# LTCC compiler flags. 20088LTCFLAGS=$lt_CFLAGS 20089 20090# Take the output of nm and produce a listing of raw symbols and C names. 20091global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20092 20093# Transform the output of nm in a proper C declaration. 20094global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20095 20096# Transform the output of nm in a C name address pair. 20097global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20098 20099# Transform the output of nm in a C name address pair when lib prefix is needed. 20100global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20101 20102# Specify filename containing input files for \$NM. 20103nm_file_list_spec=$lt_nm_file_list_spec 20104 20105# The root where to search for dependent libraries,and in which our libraries should be installed. 20106lt_sysroot=$lt_sysroot 20107 20108# The name of the directory that contains temporary libtool files. 20109objdir=$objdir 20110 20111# Used to examine libraries when file_magic_cmd begins with "file". 20112MAGIC_CMD=$MAGIC_CMD 20113 20114# Must we lock files when doing compilation? 20115need_locks=$lt_need_locks 20116 20117# Manifest tool. 20118MANIFEST_TOOL=$lt_MANIFEST_TOOL 20119 20120# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20121DSYMUTIL=$lt_DSYMUTIL 20122 20123# Tool to change global to local symbols on Mac OS X. 20124NMEDIT=$lt_NMEDIT 20125 20126# Tool to manipulate fat objects and archives on Mac OS X. 20127LIPO=$lt_LIPO 20128 20129# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20130OTOOL=$lt_OTOOL 20131 20132# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20133OTOOL64=$lt_OTOOL64 20134 20135# Old archive suffix (normally "a"). 20136libext=$libext 20137 20138# Shared library suffix (normally ".so"). 20139shrext_cmds=$lt_shrext_cmds 20140 20141# The commands to extract the exported symbol list from a shared archive. 20142extract_expsyms_cmds=$lt_extract_expsyms_cmds 20143 20144# Variables whose values should be saved in libtool wrapper scripts and 20145# restored at link time. 20146variables_saved_for_relink=$lt_variables_saved_for_relink 20147 20148# Do we need the "lib" prefix for modules? 20149need_lib_prefix=$need_lib_prefix 20150 20151# Do we need a version for libraries? 20152need_version=$need_version 20153 20154# Library versioning type. 20155version_type=$version_type 20156 20157# Shared library runtime path variable. 20158runpath_var=$runpath_var 20159 20160# Shared library path variable. 20161shlibpath_var=$shlibpath_var 20162 20163# Is shlibpath searched before the hard-coded library search path? 20164shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20165 20166# Format of library name prefix. 20167libname_spec=$lt_libname_spec 20168 20169# List of archive names. First name is the real one, the rest are links. 20170# The last name is the one that the linker finds with -lNAME 20171library_names_spec=$lt_library_names_spec 20172 20173# The coded name of the library, if different from the real name. 20174soname_spec=$lt_soname_spec 20175 20176# Permission mode override for installation of shared libraries. 20177install_override_mode=$lt_install_override_mode 20178 20179# Command to use after installation of a shared archive. 20180postinstall_cmds=$lt_postinstall_cmds 20181 20182# Command to use after uninstallation of a shared archive. 20183postuninstall_cmds=$lt_postuninstall_cmds 20184 20185# Commands used to finish a libtool library installation in a directory. 20186finish_cmds=$lt_finish_cmds 20187 20188# As "finish_cmds", except a single script fragment to be evaled but 20189# not shown. 20190finish_eval=$lt_finish_eval 20191 20192# Whether we should hardcode library paths into libraries. 20193hardcode_into_libs=$hardcode_into_libs 20194 20195# Compile-time system search path for libraries. 20196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20197 20198# Run-time system search path for libraries. 20199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20200 20201# Whether dlopen is supported. 20202dlopen_support=$enable_dlopen 20203 20204# Whether dlopen of programs is supported. 20205dlopen_self=$enable_dlopen_self 20206 20207# Whether dlopen of statically linked programs is supported. 20208dlopen_self_static=$enable_dlopen_self_static 20209 20210# Commands to strip libraries. 20211old_striplib=$lt_old_striplib 20212striplib=$lt_striplib 20213 20214 20215# The linker used to build libraries. 20216LD=$lt_LD 20217 20218# How to create reloadable object files. 20219reload_flag=$lt_reload_flag 20220reload_cmds=$lt_reload_cmds 20221 20222# Commands used to build an old-style archive. 20223old_archive_cmds=$lt_old_archive_cmds 20224 20225# A language specific compiler. 20226CC=$lt_compiler 20227 20228# Is the compiler the GNU compiler? 20229with_gcc=$GCC 20230 20231# Compiler flag to turn off builtin functions. 20232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20233 20234# Additional compiler flags for building library objects. 20235pic_flag=$lt_lt_prog_compiler_pic 20236 20237# How to pass a linker flag through the compiler. 20238wl=$lt_lt_prog_compiler_wl 20239 20240# Compiler flag to prevent dynamic linking. 20241link_static_flag=$lt_lt_prog_compiler_static 20242 20243# Does compiler simultaneously support -c and -o options? 20244compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20245 20246# Whether or not to add -lc for building shared libraries. 20247build_libtool_need_lc=$archive_cmds_need_lc 20248 20249# Whether or not to disallow shared libs when runtime libs are static. 20250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20251 20252# Compiler flag to allow reflexive dlopens. 20253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20254 20255# Compiler flag to generate shared objects directly from archives. 20256whole_archive_flag_spec=$lt_whole_archive_flag_spec 20257 20258# Whether the compiler copes with passing no objects directly. 20259compiler_needs_object=$lt_compiler_needs_object 20260 20261# Create an old-style archive from a shared archive. 20262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20263 20264# Create a temporary old-style archive to link instead of a shared archive. 20265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20266 20267# Commands used to build a shared archive. 20268archive_cmds=$lt_archive_cmds 20269archive_expsym_cmds=$lt_archive_expsym_cmds 20270 20271# Commands used to build a loadable module if different from building 20272# a shared archive. 20273module_cmds=$lt_module_cmds 20274module_expsym_cmds=$lt_module_expsym_cmds 20275 20276# Whether we are building with GNU ld or not. 20277with_gnu_ld=$lt_with_gnu_ld 20278 20279# Flag that allows shared libraries with undefined symbols to be built. 20280allow_undefined_flag=$lt_allow_undefined_flag 20281 20282# Flag that enforces no undefined symbols. 20283no_undefined_flag=$lt_no_undefined_flag 20284 20285# Flag to hardcode \$libdir into a binary during linking. 20286# This must work even if \$libdir does not exist 20287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20288 20289# Whether we need a single "-rpath" flag with a separated argument. 20290hardcode_libdir_separator=$lt_hardcode_libdir_separator 20291 20292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20293# DIR into the resulting binary. 20294hardcode_direct=$hardcode_direct 20295 20296# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20297# DIR into the resulting binary and the resulting library dependency is 20298# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20299# library is relocated. 20300hardcode_direct_absolute=$hardcode_direct_absolute 20301 20302# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20303# into the resulting binary. 20304hardcode_minus_L=$hardcode_minus_L 20305 20306# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20307# into the resulting binary. 20308hardcode_shlibpath_var=$hardcode_shlibpath_var 20309 20310# Set to "yes" if building a shared library automatically hardcodes DIR 20311# into the library and all subsequent libraries and executables linked 20312# against it. 20313hardcode_automatic=$hardcode_automatic 20314 20315# Set to yes if linker adds runtime paths of dependent libraries 20316# to runtime path list. 20317inherit_rpath=$inherit_rpath 20318 20319# Whether libtool must link a program against all its dependency libraries. 20320link_all_deplibs=$link_all_deplibs 20321 20322# Set to "yes" if exported symbols are required. 20323always_export_symbols=$always_export_symbols 20324 20325# The commands to list exported symbols. 20326export_symbols_cmds=$lt_export_symbols_cmds 20327 20328# Symbols that should not be listed in the preloaded symbols. 20329exclude_expsyms=$lt_exclude_expsyms 20330 20331# Symbols that must always be exported. 20332include_expsyms=$lt_include_expsyms 20333 20334# Commands necessary for linking programs (against libraries) with templates. 20335prelink_cmds=$lt_prelink_cmds 20336 20337# Commands necessary for finishing linking programs. 20338postlink_cmds=$lt_postlink_cmds 20339 20340# Specify filename containing input files. 20341file_list_spec=$lt_file_list_spec 20342 20343# How to hardcode a shared library path into an executable. 20344hardcode_action=$hardcode_action 20345 20346# ### END LIBTOOL CONFIG 20347 20348_LT_EOF 20349 20350 case $host_os in 20351 aix3*) 20352 cat <<\_LT_EOF >> "$cfgfile" 20353# AIX sometimes has problems with the GCC collect2 program. For some 20354# reason, if we set the COLLECT_NAMES environment variable, the problems 20355# vanish in a puff of smoke. 20356if test "X${COLLECT_NAMES+set}" != Xset; then 20357 COLLECT_NAMES= 20358 export COLLECT_NAMES 20359fi 20360_LT_EOF 20361 ;; 20362 esac 20363 20364 20365ltmain="$ac_aux_dir/ltmain.sh" 20366 20367 20368 # We use sed instead of cat because bash on DJGPP gets confused if 20369 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20370 # text mode, it properly converts lines to CR/LF. This bash problem 20371 # is reportedly fixed, but why not run on old versions too? 20372 sed '$q' "$ltmain" >> "$cfgfile" \ 20373 || (rm -f "$cfgfile"; exit 1) 20374 20375 if test x"$xsi_shell" = xyes; then 20376 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20377func_dirname ()\ 20378{\ 20379\ case ${1} in\ 20380\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20381\ * ) func_dirname_result="${3}" ;;\ 20382\ esac\ 20383} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20384 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20386test 0 -eq $? || _lt_function_replace_fail=: 20387 20388 20389 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20390func_basename ()\ 20391{\ 20392\ func_basename_result="${1##*/}"\ 20393} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20394 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20396test 0 -eq $? || _lt_function_replace_fail=: 20397 20398 20399 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20400func_dirname_and_basename ()\ 20401{\ 20402\ case ${1} in\ 20403\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20404\ * ) func_dirname_result="${3}" ;;\ 20405\ esac\ 20406\ func_basename_result="${1##*/}"\ 20407} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20408 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20410test 0 -eq $? || _lt_function_replace_fail=: 20411 20412 20413 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20414func_stripname ()\ 20415{\ 20416\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20417\ # positional parameters, so assign one to ordinary parameter first.\ 20418\ func_stripname_result=${3}\ 20419\ func_stripname_result=${func_stripname_result#"${1}"}\ 20420\ func_stripname_result=${func_stripname_result%"${2}"}\ 20421} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20422 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20424test 0 -eq $? || _lt_function_replace_fail=: 20425 20426 20427 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20428func_split_long_opt ()\ 20429{\ 20430\ func_split_long_opt_name=${1%%=*}\ 20431\ func_split_long_opt_arg=${1#*=}\ 20432} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20433 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20435test 0 -eq $? || _lt_function_replace_fail=: 20436 20437 20438 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20439func_split_short_opt ()\ 20440{\ 20441\ func_split_short_opt_arg=${1#??}\ 20442\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20443} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20444 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20446test 0 -eq $? || _lt_function_replace_fail=: 20447 20448 20449 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20450func_lo2o ()\ 20451{\ 20452\ case ${1} in\ 20453\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20454\ *) func_lo2o_result=${1} ;;\ 20455\ esac\ 20456} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20457 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20459test 0 -eq $? || _lt_function_replace_fail=: 20460 20461 20462 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20463func_xform ()\ 20464{\ 20465 func_xform_result=${1%.*}.lo\ 20466} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20467 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20469test 0 -eq $? || _lt_function_replace_fail=: 20470 20471 20472 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20473func_arith ()\ 20474{\ 20475 func_arith_result=$(( $* ))\ 20476} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20477 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20479test 0 -eq $? || _lt_function_replace_fail=: 20480 20481 20482 sed -e '/^func_len ()$/,/^} # func_len /c\ 20483func_len ()\ 20484{\ 20485 func_len_result=${#1}\ 20486} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20487 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20489test 0 -eq $? || _lt_function_replace_fail=: 20490 20491fi 20492 20493if test x"$lt_shell_append" = xyes; then 20494 sed -e '/^func_append ()$/,/^} # func_append /c\ 20495func_append ()\ 20496{\ 20497 eval "${1}+=\\${2}"\ 20498} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20499 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20501test 0 -eq $? || _lt_function_replace_fail=: 20502 20503 20504 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20505func_append_quoted ()\ 20506{\ 20507\ func_quote_for_eval "${2}"\ 20508\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20509} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20510 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20512test 0 -eq $? || _lt_function_replace_fail=: 20513 20514 20515 # Save a `func_append' function call where possible by direct use of '+=' 20516 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20517 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20518 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20519 test 0 -eq $? || _lt_function_replace_fail=: 20520else 20521 # Save a `func_append' function call even when '+=' is not available 20522 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20523 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20525 test 0 -eq $? || _lt_function_replace_fail=: 20526fi 20527 20528if test x"$_lt_function_replace_fail" = x":"; then 20529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20530$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20531fi 20532 20533 20534 mv -f "$cfgfile" "$ofile" || 20535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20536 chmod +x "$ofile" 20537 20538 ;; 20539 "disable-rpath":C) 20540 sed < libtool > libtool-2 \ 20541 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 20542 mv libtool-2 libtool 20543 chmod 755 libtool 20544 libtool="./libtool" 20545 ;; 20546 20547 esac 20548done # for ac_tag 20549 20550 20551as_fn_exit 0 20552_ACEOF 20553ac_clean_files=$ac_clean_files_save 20554 20555test $ac_write_fail = 0 || 20556 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20557 20558 20559# configure is writing to config.log, and then calls config.status. 20560# config.status does its own redirection, appending to config.log. 20561# Unfortunately, on DOS this fails, as config.log is still kept open 20562# by configure, so config.status won't be able to write to it; its 20563# output is simply discarded. So we exec the FD to /dev/null, 20564# effectively closing config.log, so it can be properly (re)opened and 20565# appended to by config.status. When coming back to configure, we 20566# need to make the FD available again. 20567if test "$no_create" != yes; then 20568 ac_cs_success=: 20569 ac_config_status_args= 20570 test "$silent" = yes && 20571 ac_config_status_args="$ac_config_status_args --quiet" 20572 exec 5>/dev/null 20573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20574 exec 5>>config.log 20575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20576 # would make configure fail if this is the last instruction. 20577 $ac_cs_success || as_fn_exit 1 20578fi 20579if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20581$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20582fi 20583 20584