1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for knot 3.1.5. 4# 5# Report bugs to <knot-dns@labs.nic.cz>. 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: knot-dns@labs.nic.cz about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: 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='knot' 592PACKAGE_TARNAME='knot' 593PACKAGE_VERSION='3.1.5' 594PACKAGE_STRING='knot 3.1.5' 595PACKAGE_BUGREPORT='knot-dns@labs.nic.cz' 596PACKAGE_URL='' 597 598ac_unique_file="src/knot" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640HAVE_MAKEINFO_FALSE 641HAVE_MAKEINFO_TRUE 642HAVE_PDFLATEX_FALSE 643HAVE_PDFLATEX_TRUE 644HAVE_SPHINXBUILD_FALSE 645HAVE_SPHINXBUILD_TRUE 646PDFLATEX 647SPHINXBUILD 648OSS_FUZZ_FALSE 649OSS_FUZZ_TRUE 650FUZZER_FALSE 651FUZZER_TRUE 652fuzzer_LDFLAGS 653fuzzer_CFLAGS 654GENHTML 655LCOV 656CODE_COVERAGE_ENABLED 657CODE_COVERAGE_ENABLED_FALSE 658CODE_COVERAGE_ENABLED_TRUE 659HAVE_VISIBILITY 660CFLAG_VISIBILITY 661USE_GNUTLS_MEMSET_FALSE 662USE_GNUTLS_MEMSET_TRUE 663math_LIBS 664dlopen_LIBS 665pthread_LIBS 666cap_ng_LIBS 667cap_ng_CFLAGS 668libmnl_LIBS 669libmnl_CFLAGS 670libnghttp2_LIBS 671libnghttp2_CFLAGS 672libidn_LIBS 673libidn_CFLAGS 674libidn2_LIBS 675libidn2_CFLAGS 676libedit_LIBS 677libedit_CFLAGS 678conf_mapsize 679lmdb_LIBS 680lmdb_CFLAGS 681HAVE_MAXMINDDB_FALSE 682HAVE_MAXMINDDB_TRUE 683libmaxminddb_LIBS 684libmaxminddb_CFLAGS 685HAVE_LIBDNSTAP_FALSE 686HAVE_LIBDNSTAP_TRUE 687HAVE_DNSTAP_FALSE 688HAVE_DNSTAP_TRUE 689DNSTAP_LIBS 690DNSTAP_CFLAGS 691libprotobuf_c_LIBS 692libprotobuf_c_CFLAGS 693libfstrm_LIBS 694libfstrm_CFLAGS 695PROTOC_C 696DOC_MODULES 697STATIC_MODULES_INIT 698STATIC_MODULES_DECLARS 699SHARED_MODULE_whoami_FALSE 700SHARED_MODULE_whoami_TRUE 701STATIC_MODULE_whoami_FALSE 702STATIC_MODULE_whoami_TRUE 703SHARED_MODULE_synthrecord_FALSE 704SHARED_MODULE_synthrecord_TRUE 705STATIC_MODULE_synthrecord_FALSE 706STATIC_MODULE_synthrecord_TRUE 707SHARED_MODULE_stats_FALSE 708SHARED_MODULE_stats_TRUE 709STATIC_MODULE_stats_FALSE 710STATIC_MODULE_stats_TRUE 711SHARED_MODULE_rrl_FALSE 712SHARED_MODULE_rrl_TRUE 713STATIC_MODULE_rrl_FALSE 714STATIC_MODULE_rrl_TRUE 715SHARED_MODULE_queryacl_FALSE 716SHARED_MODULE_queryacl_TRUE 717STATIC_MODULE_queryacl_FALSE 718STATIC_MODULE_queryacl_TRUE 719SHARED_MODULE_probe_FALSE 720SHARED_MODULE_probe_TRUE 721STATIC_MODULE_probe_FALSE 722STATIC_MODULE_probe_TRUE 723SHARED_MODULE_onlinesign_FALSE 724SHARED_MODULE_onlinesign_TRUE 725STATIC_MODULE_onlinesign_FALSE 726STATIC_MODULE_onlinesign_TRUE 727SHARED_MODULE_noudp_FALSE 728SHARED_MODULE_noudp_TRUE 729STATIC_MODULE_noudp_FALSE 730STATIC_MODULE_noudp_TRUE 731SHARED_MODULE_geoip_FALSE 732SHARED_MODULE_geoip_TRUE 733STATIC_MODULE_geoip_FALSE 734STATIC_MODULE_geoip_TRUE 735SHARED_MODULE_dnstap_FALSE 736SHARED_MODULE_dnstap_TRUE 737STATIC_MODULE_dnstap_FALSE 738STATIC_MODULE_dnstap_TRUE 739SHARED_MODULE_dnsproxy_FALSE 740SHARED_MODULE_dnsproxy_TRUE 741STATIC_MODULE_dnsproxy_FALSE 742STATIC_MODULE_dnsproxy_TRUE 743SHARED_MODULE_cookies_FALSE 744SHARED_MODULE_cookies_TRUE 745STATIC_MODULE_cookies_FALSE 746STATIC_MODULE_cookies_TRUE 747liburcu_PKGCONFIG 748liburcu_LIBS 749liburcu_CFLAGS 750malloc_LIBS 751libkqueue_LIBS 752libkqueue_CFLAGS 753systemd_LIBS 754systemd_CFLAGS 755embedded_libbpf_LIBS 756embedded_libbpf_CFLAGS 757ENABLE_XDP_FALSE 758ENABLE_XDP_TRUE 759EMBEDDED_LIBBPF_FALSE 760EMBEDDED_LIBBPF_TRUE 761libelf_LIBS 762libelf_CFLAGS 763libbpf_LIBS 764libbpf_CFLAGS 765ENABLE_PKCS11_FALSE 766ENABLE_PKCS11_TRUE 767gnutls_LIBS 768gnutls_CFLAGS 769FAST_PARSER_FALSE 770FAST_PARSER_TRUE 771HAVE_LIBUTILS_FALSE 772HAVE_LIBUTILS_TRUE 773HAVE_DOCS_FALSE 774HAVE_DOCS_TRUE 775HAVE_UTILS_FALSE 776HAVE_UTILS_TRUE 777HAVE_DAEMON_FALSE 778HAVE_DAEMON_TRUE 779module_dir 780module_instdir 781config_dir 782storage_dir 783run_dir 784pkgconfigdir 785PKG_CONFIG_LIBDIR 786PKG_CONFIG_PATH 787PKG_CONFIG 788LT_SYS_LIBRARY_PATH 789OTOOL64 790OTOOL 791LIPO 792NMEDIT 793DSYMUTIL 794MANIFEST_TOOL 795RANLIB 796DLLTOOL 797OBJDUMP 798LN_S 799NM 800ac_ct_DUMPBIN 801DUMPBIN 802LD 803FGREP 804LIBTOOL 805ac_ct_AR 806AR 807LDFLAG_EXCLUDE_LIBS 808RELEASE_DATE 809SED 810KNOT_VERSION_PATCH 811KNOT_VERSION_MINOR 812KNOT_VERSION_MAJOR 813libzscanner_SONAME 814libzscanner_SOVERSION 815libzscanner_VERSION_INFO 816libdnssec_SONAME 817libdnssec_SOVERSION 818libdnssec_VERSION_INFO 819libknot_SONAME 820libknot_SOVERSION 821libknot_VERSION_INFO 822host_os 823host_vendor 824host_cpu 825host 826build_os 827build_vendor 828build_cpu 829build 830EGREP 831GREP 832CPP 833am__fastdepCC_FALSE 834am__fastdepCC_TRUE 835CCDEPMODE 836am__nodep 837AMDEPBACKSLASH 838AMDEP_FALSE 839AMDEP_TRUE 840am__include 841DEPDIR 842OBJEXT 843EXEEXT 844ac_ct_CC 845CPPFLAGS 846LDFLAGS 847CFLAGS 848CC 849AM_BACKSLASH 850AM_DEFAULT_VERBOSITY 851AM_DEFAULT_V 852AM_V 853am__untar 854am__tar 855AMTAR 856am__leading_dot 857SET_MAKE 858AWK 859mkdir_p 860MKDIR_P 861INSTALL_STRIP_PROGRAM 862STRIP 863install_sh 864MAKEINFO 865AUTOHEADER 866AUTOMAKE 867AUTOCONF 868ACLOCAL 869VERSION 870PACKAGE 871CYGPATH_W 872am__isrc 873INSTALL_DATA 874INSTALL_SCRIPT 875INSTALL_PROGRAM 876target_alias 877host_alias 878build_alias 879LIBS 880ECHO_T 881ECHO_N 882ECHO_C 883DEFS 884mandir 885localedir 886libdir 887psdir 888pdfdir 889dvidir 890htmldir 891infodir 892docdir 893oldincludedir 894includedir 895runstatedir 896localstatedir 897sharedstatedir 898sysconfdir 899datadir 900datarootdir 901libexecdir 902sbindir 903bindir 904program_transform_name 905prefix 906exec_prefix 907PACKAGE_URL 908PACKAGE_BUGREPORT 909PACKAGE_STRING 910PACKAGE_VERSION 911PACKAGE_TARNAME 912PACKAGE_NAME 913PATH_SEPARATOR 914SHELL 915am__quote' 916ac_subst_files='' 917ac_user_opts=' 918enable_option_checking 919enable_silent_rules 920enable_dependency_tracking 921enable_shared 922enable_static 923with_pic 924enable_fast_install 925with_aix_soname 926with_gnu_ld 927with_sysroot 928enable_libtool_lock 929with_pkgconfigdir 930with_rundir 931with_storage 932with_configdir 933with_moduledir 934enable_daemon 935enable_modules 936enable_utilities 937enable_documentation 938enable_fastparser 939enable_recvmmsg 940enable_xdp 941enable_reuseport 942enable_systemd 943with_socket_polling 944with_memory_allocator 945with_urcu 946with_module_cookies 947with_module_dnsproxy 948with_module_dnstap 949with_module_geoip 950with_module_noudp 951with_module_onlinesign 952with_module_probe 953with_module_queryacl 954with_module_rrl 955with_module_stats 956with_module_synthrecord 957with_module_whoami 958enable_dnstap 959enable_maxminddb 960with_lmdb 961with_conf_mapsize 962with_libidn 963with_libnghttp2 964enable_cap_ng 965enable_code_coverage 966with_sanitizer 967with_fuzzer 968with_oss_fuzz 969' 970 ac_precious_vars='build_alias 971host_alias 972target_alias 973CC 974CFLAGS 975LDFLAGS 976LIBS 977CPPFLAGS 978CPP 979LT_SYS_LIBRARY_PATH 980PKG_CONFIG 981PKG_CONFIG_PATH 982PKG_CONFIG_LIBDIR 983gnutls_CFLAGS 984gnutls_LIBS 985libbpf_CFLAGS 986libbpf_LIBS 987libelf_CFLAGS 988libelf_LIBS 989systemd_CFLAGS 990systemd_LIBS 991libkqueue_CFLAGS 992libkqueue_LIBS 993liburcu_CFLAGS 994liburcu_LIBS 995libfstrm_CFLAGS 996libfstrm_LIBS 997libprotobuf_c_CFLAGS 998libprotobuf_c_LIBS 999libmaxminddb_CFLAGS 1000libmaxminddb_LIBS 1001lmdb_CFLAGS 1002lmdb_LIBS 1003libedit_CFLAGS 1004libedit_LIBS 1005libidn2_CFLAGS 1006libidn2_LIBS 1007libidn_CFLAGS 1008libidn_LIBS 1009libnghttp2_CFLAGS 1010libnghttp2_LIBS 1011libmnl_CFLAGS 1012libmnl_LIBS 1013cap_ng_CFLAGS 1014cap_ng_LIBS' 1015 1016 1017# Initialize some variables set by options. 1018ac_init_help= 1019ac_init_version=false 1020ac_unrecognized_opts= 1021ac_unrecognized_sep= 1022# The variables have the same names as the options, with 1023# dashes changed to underlines. 1024cache_file=/dev/null 1025exec_prefix=NONE 1026no_create= 1027no_recursion= 1028prefix=NONE 1029program_prefix=NONE 1030program_suffix=NONE 1031program_transform_name=s,x,x, 1032silent= 1033site= 1034srcdir= 1035verbose= 1036x_includes=NONE 1037x_libraries=NONE 1038 1039# Installation directory options. 1040# These are left unexpanded so users can "make install exec_prefix=/foo" 1041# and all the variables that are supposed to be based on exec_prefix 1042# by default will actually change. 1043# Use braces instead of parens because sh, perl, etc. also accept them. 1044# (The list follows the same order as the GNU Coding Standards.) 1045bindir='${exec_prefix}/bin' 1046sbindir='${exec_prefix}/sbin' 1047libexecdir='${exec_prefix}/libexec' 1048datarootdir='${prefix}/share' 1049datadir='${datarootdir}' 1050sysconfdir='${prefix}/etc' 1051sharedstatedir='${prefix}/com' 1052localstatedir='${prefix}/var' 1053runstatedir='${localstatedir}/run' 1054includedir='${prefix}/include' 1055oldincludedir='/usr/include' 1056docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1057infodir='${datarootdir}/info' 1058htmldir='${docdir}' 1059dvidir='${docdir}' 1060pdfdir='${docdir}' 1061psdir='${docdir}' 1062libdir='${exec_prefix}/lib' 1063localedir='${datarootdir}/locale' 1064mandir='${datarootdir}/man' 1065 1066ac_prev= 1067ac_dashdash= 1068for ac_option 1069do 1070 # If the previous option needs an argument, assign it. 1071 if test -n "$ac_prev"; then 1072 eval $ac_prev=\$ac_option 1073 ac_prev= 1074 continue 1075 fi 1076 1077 case $ac_option in 1078 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1079 *=) ac_optarg= ;; 1080 *) ac_optarg=yes ;; 1081 esac 1082 1083 # Accept the important Cygnus configure options, so we can diagnose typos. 1084 1085 case $ac_dashdash$ac_option in 1086 --) 1087 ac_dashdash=yes ;; 1088 1089 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1090 ac_prev=bindir ;; 1091 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1092 bindir=$ac_optarg ;; 1093 1094 -build | --build | --buil | --bui | --bu) 1095 ac_prev=build_alias ;; 1096 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1097 build_alias=$ac_optarg ;; 1098 1099 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1101 ac_prev=cache_file ;; 1102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1104 cache_file=$ac_optarg ;; 1105 1106 --config-cache | -C) 1107 cache_file=config.cache ;; 1108 1109 -datadir | --datadir | --datadi | --datad) 1110 ac_prev=datadir ;; 1111 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1112 datadir=$ac_optarg ;; 1113 1114 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1115 | --dataroo | --dataro | --datar) 1116 ac_prev=datarootdir ;; 1117 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1118 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1119 datarootdir=$ac_optarg ;; 1120 1121 -disable-* | --disable-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid feature name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"enable_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval enable_$ac_useropt=no ;; 1136 1137 -docdir | --docdir | --docdi | --doc | --do) 1138 ac_prev=docdir ;; 1139 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1140 docdir=$ac_optarg ;; 1141 1142 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1143 ac_prev=dvidir ;; 1144 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1145 dvidir=$ac_optarg ;; 1146 1147 -enable-* | --enable-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid feature name: $ac_useropt" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"enable_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval enable_$ac_useropt=\$ac_optarg ;; 1162 1163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1165 | --exec | --exe | --ex) 1166 ac_prev=exec_prefix ;; 1167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1169 | --exec=* | --exe=* | --ex=*) 1170 exec_prefix=$ac_optarg ;; 1171 1172 -gas | --gas | --ga | --g) 1173 # Obsolete; use --with-gas. 1174 with_gas=yes ;; 1175 1176 -help | --help | --hel | --he | -h) 1177 ac_init_help=long ;; 1178 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1179 ac_init_help=recursive ;; 1180 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1181 ac_init_help=short ;; 1182 1183 -host | --host | --hos | --ho) 1184 ac_prev=host_alias ;; 1185 -host=* | --host=* | --hos=* | --ho=*) 1186 host_alias=$ac_optarg ;; 1187 1188 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1189 ac_prev=htmldir ;; 1190 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1191 | --ht=*) 1192 htmldir=$ac_optarg ;; 1193 1194 -includedir | --includedir | --includedi | --included | --include \ 1195 | --includ | --inclu | --incl | --inc) 1196 ac_prev=includedir ;; 1197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1198 | --includ=* | --inclu=* | --incl=* | --inc=*) 1199 includedir=$ac_optarg ;; 1200 1201 -infodir | --infodir | --infodi | --infod | --info | --inf) 1202 ac_prev=infodir ;; 1203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1204 infodir=$ac_optarg ;; 1205 1206 -libdir | --libdir | --libdi | --libd) 1207 ac_prev=libdir ;; 1208 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1209 libdir=$ac_optarg ;; 1210 1211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1212 | --libexe | --libex | --libe) 1213 ac_prev=libexecdir ;; 1214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1215 | --libexe=* | --libex=* | --libe=*) 1216 libexecdir=$ac_optarg ;; 1217 1218 -localedir | --localedir | --localedi | --localed | --locale) 1219 ac_prev=localedir ;; 1220 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1221 localedir=$ac_optarg ;; 1222 1223 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1224 | --localstate | --localstat | --localsta | --localst | --locals) 1225 ac_prev=localstatedir ;; 1226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1227 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1228 localstatedir=$ac_optarg ;; 1229 1230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1231 ac_prev=mandir ;; 1232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1233 mandir=$ac_optarg ;; 1234 1235 -nfp | --nfp | --nf) 1236 # Obsolete; use --without-fp. 1237 with_fp=no ;; 1238 1239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1240 | --no-cr | --no-c | -n) 1241 no_create=yes ;; 1242 1243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1245 no_recursion=yes ;; 1246 1247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1249 | --oldin | --oldi | --old | --ol | --o) 1250 ac_prev=oldincludedir ;; 1251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1254 oldincludedir=$ac_optarg ;; 1255 1256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1257 ac_prev=prefix ;; 1258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1259 prefix=$ac_optarg ;; 1260 1261 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1262 | --program-pre | --program-pr | --program-p) 1263 ac_prev=program_prefix ;; 1264 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1266 program_prefix=$ac_optarg ;; 1267 1268 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1269 | --program-suf | --program-su | --program-s) 1270 ac_prev=program_suffix ;; 1271 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1273 program_suffix=$ac_optarg ;; 1274 1275 -program-transform-name | --program-transform-name \ 1276 | --program-transform-nam | --program-transform-na \ 1277 | --program-transform-n | --program-transform- \ 1278 | --program-transform | --program-transfor \ 1279 | --program-transfo | --program-transf \ 1280 | --program-trans | --program-tran \ 1281 | --progr-tra | --program-tr | --program-t) 1282 ac_prev=program_transform_name ;; 1283 -program-transform-name=* | --program-transform-name=* \ 1284 | --program-transform-nam=* | --program-transform-na=* \ 1285 | --program-transform-n=* | --program-transform-=* \ 1286 | --program-transform=* | --program-transfor=* \ 1287 | --program-transfo=* | --program-transf=* \ 1288 | --program-trans=* | --program-tran=* \ 1289 | --progr-tra=* | --program-tr=* | --program-t=*) 1290 program_transform_name=$ac_optarg ;; 1291 1292 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1293 ac_prev=pdfdir ;; 1294 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1295 pdfdir=$ac_optarg ;; 1296 1297 -psdir | --psdir | --psdi | --psd | --ps) 1298 ac_prev=psdir ;; 1299 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1300 psdir=$ac_optarg ;; 1301 1302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1303 | -silent | --silent | --silen | --sile | --sil) 1304 silent=yes ;; 1305 1306 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1307 | --runstate | --runstat | --runsta | --runst | --runs \ 1308 | --run | --ru | --r) 1309 ac_prev=runstatedir ;; 1310 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1311 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1312 | --run=* | --ru=* | --r=*) 1313 runstatedir=$ac_optarg ;; 1314 1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1316 ac_prev=sbindir ;; 1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1318 | --sbi=* | --sb=*) 1319 sbindir=$ac_optarg ;; 1320 1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1323 | --sharedst | --shareds | --shared | --share | --shar \ 1324 | --sha | --sh) 1325 ac_prev=sharedstatedir ;; 1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1329 | --sha=* | --sh=*) 1330 sharedstatedir=$ac_optarg ;; 1331 1332 -site | --site | --sit) 1333 ac_prev=site ;; 1334 -site=* | --site=* | --sit=*) 1335 site=$ac_optarg ;; 1336 1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1338 ac_prev=srcdir ;; 1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1340 srcdir=$ac_optarg ;; 1341 1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1343 | --syscon | --sysco | --sysc | --sys | --sy) 1344 ac_prev=sysconfdir ;; 1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1347 sysconfdir=$ac_optarg ;; 1348 1349 -target | --target | --targe | --targ | --tar | --ta | --t) 1350 ac_prev=target_alias ;; 1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1352 target_alias=$ac_optarg ;; 1353 1354 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1355 verbose=yes ;; 1356 1357 -version | --version | --versio | --versi | --vers | -V) 1358 ac_init_version=: ;; 1359 1360 -with-* | --with-*) 1361 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1364 as_fn_error $? "invalid package name: $ac_useropt" 1365 ac_useropt_orig=$ac_useropt 1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1367 case $ac_user_opts in 1368 *" 1369"with_$ac_useropt" 1370"*) ;; 1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1372 ac_unrecognized_sep=', ';; 1373 esac 1374 eval with_$ac_useropt=\$ac_optarg ;; 1375 1376 -without-* | --without-*) 1377 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1378 # Reject names that are not valid shell variable names. 1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1380 as_fn_error $? "invalid package name: $ac_useropt" 1381 ac_useropt_orig=$ac_useropt 1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1383 case $ac_user_opts in 1384 *" 1385"with_$ac_useropt" 1386"*) ;; 1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1388 ac_unrecognized_sep=', ';; 1389 esac 1390 eval with_$ac_useropt=no ;; 1391 1392 --x) 1393 # Obsolete; use --with-x. 1394 with_x=yes ;; 1395 1396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1397 | --x-incl | --x-inc | --x-in | --x-i) 1398 ac_prev=x_includes ;; 1399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1401 x_includes=$ac_optarg ;; 1402 1403 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1405 ac_prev=x_libraries ;; 1406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1408 x_libraries=$ac_optarg ;; 1409 1410 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1411Try \`$0 --help' for more information" 1412 ;; 1413 1414 *=*) 1415 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1416 # Reject names that are not valid shell variable names. 1417 case $ac_envvar in #( 1418 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1419 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1420 esac 1421 eval $ac_envvar=\$ac_optarg 1422 export $ac_envvar ;; 1423 1424 *) 1425 # FIXME: should be removed in autoconf 3.0. 1426 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1427 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1428 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1429 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1430 ;; 1431 1432 esac 1433done 1434 1435if test -n "$ac_prev"; then 1436 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1437 as_fn_error $? "missing argument to $ac_option" 1438fi 1439 1440if test -n "$ac_unrecognized_opts"; then 1441 case $enable_option_checking in 1442 no) ;; 1443 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1444 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1445 esac 1446fi 1447 1448# Check all directory arguments for consistency. 1449for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1450 datadir sysconfdir sharedstatedir localstatedir includedir \ 1451 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1452 libdir localedir mandir runstatedir 1453do 1454 eval ac_val=\$$ac_var 1455 # Remove trailing slashes. 1456 case $ac_val in 1457 */ ) 1458 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1459 eval $ac_var=\$ac_val;; 1460 esac 1461 # Be sure to have absolute directory names. 1462 case $ac_val in 1463 [\\/$]* | ?:[\\/]* ) continue;; 1464 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1465 esac 1466 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1467done 1468 1469# There might be people who depend on the old broken behavior: `$host' 1470# used to hold the argument of --host etc. 1471# FIXME: To remove some day. 1472build=$build_alias 1473host=$host_alias 1474target=$target_alias 1475 1476# FIXME: To remove some day. 1477if test "x$host_alias" != x; then 1478 if test "x$build_alias" = x; then 1479 cross_compiling=maybe 1480 elif test "x$build_alias" != "x$host_alias"; then 1481 cross_compiling=yes 1482 fi 1483fi 1484 1485ac_tool_prefix= 1486test -n "$host_alias" && ac_tool_prefix=$host_alias- 1487 1488test "$silent" = yes && exec 6>/dev/null 1489 1490 1491ac_pwd=`pwd` && test -n "$ac_pwd" && 1492ac_ls_di=`ls -di .` && 1493ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1494 as_fn_error $? "working directory cannot be determined" 1495test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1496 as_fn_error $? "pwd does not report name of working directory" 1497 1498 1499# Find the source files, if location was not specified. 1500if test -z "$srcdir"; then 1501 ac_srcdir_defaulted=yes 1502 # Try the directory containing this script, then the parent directory. 1503 ac_confdir=`$as_dirname -- "$as_myself" || 1504$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1505 X"$as_myself" : 'X\(//\)[^/]' \| \ 1506 X"$as_myself" : 'X\(//\)$' \| \ 1507 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1508$as_echo X"$as_myself" | 1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1510 s//\1/ 1511 q 1512 } 1513 /^X\(\/\/\)[^/].*/{ 1514 s//\1/ 1515 q 1516 } 1517 /^X\(\/\/\)$/{ 1518 s//\1/ 1519 q 1520 } 1521 /^X\(\/\).*/{ 1522 s//\1/ 1523 q 1524 } 1525 s/.*/./; q'` 1526 srcdir=$ac_confdir 1527 if test ! -r "$srcdir/$ac_unique_file"; then 1528 srcdir=.. 1529 fi 1530else 1531 ac_srcdir_defaulted=no 1532fi 1533if test ! -r "$srcdir/$ac_unique_file"; then 1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1535 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1536fi 1537ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1538ac_abs_confdir=`( 1539 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1540 pwd)` 1541# When building in place, set srcdir=. 1542if test "$ac_abs_confdir" = "$ac_pwd"; then 1543 srcdir=. 1544fi 1545# Remove unnecessary trailing slashes from srcdir. 1546# Double slashes in file names in object file debugging info 1547# mess up M-x gdb in Emacs. 1548case $srcdir in 1549*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1550esac 1551for ac_var in $ac_precious_vars; do 1552 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1553 eval ac_env_${ac_var}_value=\$${ac_var} 1554 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1555 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1556done 1557 1558# 1559# Report the --help message. 1560# 1561if test "$ac_init_help" = "long"; then 1562 # Omit some internal or obsolete options to make the list less imposing. 1563 # This message is too long to be a string in the A/UX 3.1 sh. 1564 cat <<_ACEOF 1565\`configure' configures knot 3.1.5 to adapt to many kinds of systems. 1566 1567Usage: $0 [OPTION]... [VAR=VALUE]... 1568 1569To assign environment variables (e.g., CC, CFLAGS...), specify them as 1570VAR=VALUE. See below for descriptions of some of the useful variables. 1571 1572Defaults for the options are specified in brackets. 1573 1574Configuration: 1575 -h, --help display this help and exit 1576 --help=short display options specific to this package 1577 --help=recursive display the short help of all the included packages 1578 -V, --version display version information and exit 1579 -q, --quiet, --silent do not print \`checking ...' messages 1580 --cache-file=FILE cache test results in FILE [disabled] 1581 -C, --config-cache alias for \`--cache-file=config.cache' 1582 -n, --no-create do not create output files 1583 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1584 1585Installation directories: 1586 --prefix=PREFIX install architecture-independent files in PREFIX 1587 [$ac_default_prefix] 1588 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1589 [PREFIX] 1590 1591By default, \`make install' will install all the files in 1592\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1593an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1594for instance \`--prefix=\$HOME'. 1595 1596For better control, use the options below. 1597 1598Fine tuning of the installation directories: 1599 --bindir=DIR user executables [EPREFIX/bin] 1600 --sbindir=DIR system admin executables [EPREFIX/sbin] 1601 --libexecdir=DIR program executables [EPREFIX/libexec] 1602 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1603 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1604 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1605 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1606 --libdir=DIR object code libraries [EPREFIX/lib] 1607 --includedir=DIR C header files [PREFIX/include] 1608 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1609 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1610 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1611 --infodir=DIR info documentation [DATAROOTDIR/info] 1612 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1613 --mandir=DIR man documentation [DATAROOTDIR/man] 1614 --docdir=DIR documentation root [DATAROOTDIR/doc/knot] 1615 --htmldir=DIR html documentation [DOCDIR] 1616 --dvidir=DIR dvi documentation [DOCDIR] 1617 --pdfdir=DIR pdf documentation [DOCDIR] 1618 --psdir=DIR ps documentation [DOCDIR] 1619_ACEOF 1620 1621 cat <<\_ACEOF 1622 1623Program names: 1624 --program-prefix=PREFIX prepend PREFIX to installed program names 1625 --program-suffix=SUFFIX append SUFFIX to installed program names 1626 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1627 1628System types: 1629 --build=BUILD configure for building on BUILD [guessed] 1630 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1631_ACEOF 1632fi 1633 1634if test -n "$ac_init_help"; then 1635 case $ac_init_help in 1636 short | recursive ) echo "Configuration of knot 3.1.5:";; 1637 esac 1638 cat <<\_ACEOF 1639 1640Optional Features: 1641 --disable-option-checking ignore unrecognized --enable/--with options 1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1644 --enable-silent-rules less verbose build output (undo: "make V=1") 1645 --disable-silent-rules verbose build output (undo: "make V=0") 1646 --enable-dependency-tracking 1647 do not reject slow dependency extractors 1648 --disable-dependency-tracking 1649 speeds up one-time build 1650 --enable-shared[=PKGS] build shared libraries [default=yes] 1651 --enable-static[=PKGS] build static libraries [default=yes] 1652 --enable-fast-install[=PKGS] 1653 optimize for fast installation [default=yes] 1654 --disable-libtool-lock avoid locking (might break parallel builds) 1655 --disable-daemon Don't build Knot DNS main daemon 1656 --disable-modules Don't build Knot DNS modules 1657 --disable-utilities Don't build Knot DNS utilities 1658 --disable-documentation Don't build Knot DNS documentation 1659 --disable-fastparser Disable use of fast zone parser 1660 --enable-recvmmsg=auto|yes|no 1661 enable recvmmsg() network API [default=auto] 1662 --enable-xdp=auto|yes|no 1663 enable eXpress Data Path [default=auto] 1664 --enable-reuseport=auto|yes|no 1665 enable SO_REUSEPORT(_LB) support [default=auto] 1666 --enable-systemd=auto|yes|no 1667 enable systemd integration [default=auto] 1668 --enable-dnstap Enable dnstap support for kdig (requires fstrm, 1669 protobuf-c) 1670 --enable-maxminddb=auto|yes|no 1671 enable MaxMind DB [default=auto] 1672 --enable-cap-ng=auto|no enable POSIX capabilities [default=auto] 1673 --enable-code-coverage enable code coverage testing with gcov 1674 1675Optional Packages: 1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1678 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1679 both] 1680 --with-aix-soname=aix|svr4|both 1681 shared library versioning (aka "SONAME") variant to 1682 provide on AIX, [default=aix]. 1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1684 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1685 compiler's sysroot if not specified). 1686 --with-pkgconfigdir pkg-config installation directory 1687 ['${libdir}/pkgconfig'] 1688 --with-rundir=path Path to run-time variable data (pid, sockets...). 1689 [default=LOCALSTATEDIR/run/knot] 1690 --with-storage=path Default storage directory (slave zones, persistent 1691 data). [default=LOCALSTATEDIR/lib/knot] 1692 --with-configdir=path Default directory for configuration. 1693 [default=SYSCONFDIR/knot] 1694 --with-moduledir=path Path to auto-loaded dynamic modules. [default not 1695 set] 1696 --with-socket-polling=auto|poll|epoll|kqueue|libkqueue 1697 Use specific socket polling method [default=auto] 1698 --with-memory-allocator=auto|LIBRARY 1699 Use specific memory allocator for the server (e.g. 1700 jemalloc) [default=auto] 1701 --with-urcu=DIR where to find userspace-rcu library 1702 --with-module-cookies=yes|shared|no 1703 Build 'cookies' module [default="yes"] 1704 --with-module-dnsproxy=yes|shared|no 1705 Build 'dnsproxy' module [default="yes"] 1706 --with-module-dnstap=yes|shared|no 1707 Build 'dnstap' module [default="no"] 1708 --with-module-geoip=yes|shared|no 1709 Build 'geoip' module [default="yes"] 1710 --with-module-noudp=yes|shared|no 1711 Build 'noudp' module [default="yes"] 1712 --with-module-onlinesign=yes|shared|no 1713 Build 'onlinesign' module [default="yes"] 1714 --with-module-probe=yes|shared|no 1715 Build 'probe' module [default="yes"] 1716 --with-module-queryacl=yes|shared|no 1717 Build 'queryacl' module [default="yes"] 1718 --with-module-rrl=yes|shared|no 1719 Build 'rrl' module [default="yes"] 1720 --with-module-stats=yes|shared|no 1721 Build 'stats' module [default="yes"] 1722 --with-module-synthrecord=yes|shared|no 1723 Build 'synthrecord' module [default="yes"] 1724 --with-module-whoami=yes|shared|no 1725 Build 'whoami' module [default="yes"] 1726 --with-lmdb=DIR explicit location where to find LMDB 1727 1728 --with-conf-mapsize=NUM Configuration DB mapsize in MiB 1729 [default=$conf_mapsize_default] 1730 --with-libidn=DIR Support IDN (needs GNU libidn2 or libidn) 1731 --with-libnghttp2=DIR Support DoH (needs libnghttp2) 1732 --with-sanitizer Compile with sanitizer [default=no] 1733 --with-fuzzer Compile with libfuzzer [default=no] 1734 --with-oss-fuzz Link for oss-fuzz environment [default=no] 1735 1736Some influential environment variables: 1737 CC C compiler command 1738 CFLAGS C compiler flags 1739 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1740 nonstandard directory <lib dir> 1741 LIBS libraries to pass to the linker, e.g. -l<library> 1742 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1743 you have headers in a nonstandard directory <include dir> 1744 CPP C preprocessor 1745 LT_SYS_LIBRARY_PATH 1746 User-defined run-time library search path. 1747 PKG_CONFIG path to pkg-config utility 1748 PKG_CONFIG_PATH 1749 directories to add to pkg-config's search path 1750 PKG_CONFIG_LIBDIR 1751 path overriding pkg-config's built-in search path 1752 gnutls_CFLAGS 1753 C compiler flags for gnutls, overriding pkg-config 1754 gnutls_LIBS linker flags for gnutls, overriding pkg-config 1755 libbpf_CFLAGS 1756 C compiler flags for libbpf, overriding pkg-config 1757 libbpf_LIBS linker flags for libbpf, overriding pkg-config 1758 libelf_CFLAGS 1759 C compiler flags for libelf, overriding pkg-config 1760 libelf_LIBS linker flags for libelf, overriding pkg-config 1761 systemd_CFLAGS 1762 C compiler flags for systemd, overriding pkg-config 1763 systemd_LIBS 1764 linker flags for systemd, overriding pkg-config 1765 libkqueue_CFLAGS 1766 C compiler flags for libkqueue, overriding pkg-config 1767 libkqueue_LIBS 1768 linker flags for libkqueue, overriding pkg-config 1769 liburcu_CFLAGS 1770 C compiler flags for liburcu, overriding pkg-config 1771 liburcu_LIBS 1772 linker flags for liburcu, overriding pkg-config 1773 libfstrm_CFLAGS 1774 C compiler flags for libfstrm, overriding pkg-config 1775 libfstrm_LIBS 1776 linker flags for libfstrm, overriding pkg-config 1777 libprotobuf_c_CFLAGS 1778 C compiler flags for libprotobuf_c, overriding pkg-config 1779 libprotobuf_c_LIBS 1780 linker flags for libprotobuf_c, overriding pkg-config 1781 libmaxminddb_CFLAGS 1782 C compiler flags for libmaxminddb, overriding pkg-config 1783 libmaxminddb_LIBS 1784 linker flags for libmaxminddb, overriding pkg-config 1785 lmdb_CFLAGS C compiler flags for lmdb, overriding pkg-config 1786 lmdb_LIBS linker flags for lmdb, overriding pkg-config 1787 libedit_CFLAGS 1788 C compiler flags for libedit, overriding pkg-config 1789 libedit_LIBS 1790 linker flags for libedit, overriding pkg-config 1791 libidn2_CFLAGS 1792 C compiler flags for libidn2, overriding pkg-config 1793 libidn2_LIBS 1794 linker flags for libidn2, overriding pkg-config 1795 libidn_CFLAGS 1796 C compiler flags for libidn, overriding pkg-config 1797 libidn_LIBS linker flags for libidn, overriding pkg-config 1798 libnghttp2_CFLAGS 1799 C compiler flags for libnghttp2, overriding pkg-config 1800 libnghttp2_LIBS 1801 linker flags for libnghttp2, overriding pkg-config 1802 libmnl_CFLAGS 1803 C compiler flags for libmnl, overriding pkg-config 1804 libmnl_LIBS linker flags for libmnl, overriding pkg-config 1805 cap_ng_CFLAGS 1806 C compiler flags for cap_ng, overriding pkg-config 1807 cap_ng_LIBS linker flags for cap_ng, overriding pkg-config 1808 1809Use these variables to override the choices made by `configure' or to help 1810it to find libraries and programs with nonstandard names/locations. 1811 1812Report bugs to <knot-dns@labs.nic.cz>. 1813_ACEOF 1814ac_status=$? 1815fi 1816 1817if test "$ac_init_help" = "recursive"; then 1818 # If there are subdirs, report their specific --help. 1819 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1820 test -d "$ac_dir" || 1821 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1822 continue 1823 ac_builddir=. 1824 1825case "$ac_dir" in 1826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1827*) 1828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1829 # A ".." for each directory in $ac_dir_suffix. 1830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1831 case $ac_top_builddir_sub in 1832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1834 esac ;; 1835esac 1836ac_abs_top_builddir=$ac_pwd 1837ac_abs_builddir=$ac_pwd$ac_dir_suffix 1838# for backward compatibility: 1839ac_top_builddir=$ac_top_build_prefix 1840 1841case $srcdir in 1842 .) # We are building in place. 1843 ac_srcdir=. 1844 ac_top_srcdir=$ac_top_builddir_sub 1845 ac_abs_top_srcdir=$ac_pwd ;; 1846 [\\/]* | ?:[\\/]* ) # Absolute name. 1847 ac_srcdir=$srcdir$ac_dir_suffix; 1848 ac_top_srcdir=$srcdir 1849 ac_abs_top_srcdir=$srcdir ;; 1850 *) # Relative name. 1851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1852 ac_top_srcdir=$ac_top_build_prefix$srcdir 1853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1854esac 1855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1856 1857 cd "$ac_dir" || { ac_status=$?; continue; } 1858 # Check for guested configure. 1859 if test -f "$ac_srcdir/configure.gnu"; then 1860 echo && 1861 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1862 elif test -f "$ac_srcdir/configure"; then 1863 echo && 1864 $SHELL "$ac_srcdir/configure" --help=recursive 1865 else 1866 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1867 fi || ac_status=$? 1868 cd "$ac_pwd" || { ac_status=$?; break; } 1869 done 1870fi 1871 1872test -n "$ac_init_help" && exit $ac_status 1873if $ac_init_version; then 1874 cat <<\_ACEOF 1875knot configure 3.1.5 1876generated by GNU Autoconf 2.69 1877 1878Copyright (C) 2012 Free Software Foundation, Inc. 1879This configure script is free software; the Free Software Foundation 1880gives unlimited permission to copy, distribute and modify it. 1881_ACEOF 1882 exit 1883fi 1884 1885## ------------------------ ## 1886## Autoconf initialization. ## 1887## ------------------------ ## 1888 1889# ac_fn_c_try_compile LINENO 1890# -------------------------- 1891# Try to compile conftest.$ac_ext, and return whether this succeeded. 1892ac_fn_c_try_compile () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 rm -f conftest.$ac_objext 1896 if { { ac_try="$ac_compile" 1897case "(($ac_try" in 1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1899 *) ac_try_echo=$ac_try;; 1900esac 1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1902$as_echo "$ac_try_echo"; } >&5 1903 (eval "$ac_compile") 2>conftest.err 1904 ac_status=$? 1905 if test -s conftest.err; then 1906 grep -v '^ *+' conftest.err >conftest.er1 1907 cat conftest.er1 >&5 1908 mv -f conftest.er1 conftest.err 1909 fi 1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1911 test $ac_status = 0; } && { 1912 test -z "$ac_c_werror_flag" || 1913 test ! -s conftest.err 1914 } && test -s conftest.$ac_objext; then : 1915 ac_retval=0 1916else 1917 $as_echo "$as_me: failed program was:" >&5 1918sed 's/^/| /' conftest.$ac_ext >&5 1919 1920 ac_retval=1 1921fi 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 as_fn_set_status $ac_retval 1924 1925} # ac_fn_c_try_compile 1926 1927# ac_fn_c_try_cpp LINENO 1928# ---------------------- 1929# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1930ac_fn_c_try_cpp () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 if { { ac_try="$ac_cpp conftest.$ac_ext" 1934case "(($ac_try" in 1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1936 *) ac_try_echo=$ac_try;; 1937esac 1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1939$as_echo "$ac_try_echo"; } >&5 1940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1941 ac_status=$? 1942 if test -s conftest.err; then 1943 grep -v '^ *+' conftest.err >conftest.er1 1944 cat conftest.er1 >&5 1945 mv -f conftest.er1 conftest.err 1946 fi 1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1948 test $ac_status = 0; } > conftest.i && { 1949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1950 test ! -s conftest.err 1951 }; then : 1952 ac_retval=0 1953else 1954 $as_echo "$as_me: failed program was:" >&5 1955sed 's/^/| /' conftest.$ac_ext >&5 1956 1957 ac_retval=1 1958fi 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1960 as_fn_set_status $ac_retval 1961 1962} # ac_fn_c_try_cpp 1963 1964# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1965# ------------------------------------------------------- 1966# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1967# the include files in INCLUDES and setting the cache variable VAR 1968# accordingly. 1969ac_fn_c_check_header_mongrel () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 if eval \${$3+:} false; then : 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1974$as_echo_n "checking for $2... " >&6; } 1975if eval \${$3+:} false; then : 1976 $as_echo_n "(cached) " >&6 1977fi 1978eval ac_res=\$$3 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1980$as_echo "$ac_res" >&6; } 1981else 1982 # Is the header compilable? 1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1984$as_echo_n "checking $2 usability... " >&6; } 1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987$4 1988#include <$2> 1989_ACEOF 1990if ac_fn_c_try_compile "$LINENO"; then : 1991 ac_header_compiler=yes 1992else 1993 ac_header_compiler=no 1994fi 1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1997$as_echo "$ac_header_compiler" >&6; } 1998 1999# Is the header present? 2000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2001$as_echo_n "checking $2 presence... " >&6; } 2002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004#include <$2> 2005_ACEOF 2006if ac_fn_c_try_cpp "$LINENO"; then : 2007 ac_header_preproc=yes 2008else 2009 ac_header_preproc=no 2010fi 2011rm -f conftest.err conftest.i conftest.$ac_ext 2012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2013$as_echo "$ac_header_preproc" >&6; } 2014 2015# So? What about this header? 2016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2017 yes:no: ) 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2019$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2021$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2022 ;; 2023 no:yes:* ) 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2025$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2027$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2029$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2031$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2034( $as_echo "## ----------------------------------- ## 2035## Report this to knot-dns@labs.nic.cz ## 2036## ----------------------------------- ##" 2037 ) | sed "s/^/$as_me: WARNING: /" >&2 2038 ;; 2039esac 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2041$as_echo_n "checking for $2... " >&6; } 2042if eval \${$3+:} false; then : 2043 $as_echo_n "(cached) " >&6 2044else 2045 eval "$3=\$ac_header_compiler" 2046fi 2047eval ac_res=\$$3 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2049$as_echo "$ac_res" >&6; } 2050fi 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 2053} # ac_fn_c_check_header_mongrel 2054 2055# ac_fn_c_try_run LINENO 2056# ---------------------- 2057# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2058# that executables *can* be run. 2059ac_fn_c_try_run () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 if { { ac_try="$ac_link" 2063case "(($ac_try" in 2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2065 *) ac_try_echo=$ac_try;; 2066esac 2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2068$as_echo "$ac_try_echo"; } >&5 2069 (eval "$ac_link") 2>&5 2070 ac_status=$? 2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2072 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2073 { { case "(($ac_try" in 2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2075 *) ac_try_echo=$ac_try;; 2076esac 2077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2078$as_echo "$ac_try_echo"; } >&5 2079 (eval "$ac_try") 2>&5 2080 ac_status=$? 2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2082 test $ac_status = 0; }; }; then : 2083 ac_retval=0 2084else 2085 $as_echo "$as_me: program exited with status $ac_status" >&5 2086 $as_echo "$as_me: failed program was:" >&5 2087sed 's/^/| /' conftest.$ac_ext >&5 2088 2089 ac_retval=$ac_status 2090fi 2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 as_fn_set_status $ac_retval 2094 2095} # ac_fn_c_try_run 2096 2097# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2098# ------------------------------------------------------- 2099# Tests whether HEADER exists and can be compiled using the include files in 2100# INCLUDES, setting the cache variable VAR accordingly. 2101ac_fn_c_check_header_compile () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2105$as_echo_n "checking for $2... " >&6; } 2106if eval \${$3+:} false; then : 2107 $as_echo_n "(cached) " >&6 2108else 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112#include <$2> 2113_ACEOF 2114if ac_fn_c_try_compile "$LINENO"; then : 2115 eval "$3=yes" 2116else 2117 eval "$3=no" 2118fi 2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2120fi 2121eval ac_res=\$$3 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2123$as_echo "$ac_res" >&6; } 2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2125 2126} # ac_fn_c_check_header_compile 2127 2128# ac_fn_c_try_link LINENO 2129# ----------------------- 2130# Try to link conftest.$ac_ext, and return whether this succeeded. 2131ac_fn_c_try_link () 2132{ 2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2134 rm -f conftest.$ac_objext conftest$ac_exeext 2135 if { { ac_try="$ac_link" 2136case "(($ac_try" in 2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2138 *) ac_try_echo=$ac_try;; 2139esac 2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2141$as_echo "$ac_try_echo"; } >&5 2142 (eval "$ac_link") 2>conftest.err 2143 ac_status=$? 2144 if test -s conftest.err; then 2145 grep -v '^ *+' conftest.err >conftest.er1 2146 cat conftest.er1 >&5 2147 mv -f conftest.er1 conftest.err 2148 fi 2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2150 test $ac_status = 0; } && { 2151 test -z "$ac_c_werror_flag" || 2152 test ! -s conftest.err 2153 } && test -s conftest$ac_exeext && { 2154 test "$cross_compiling" = yes || 2155 test -x conftest$ac_exeext 2156 }; then : 2157 ac_retval=0 2158else 2159 $as_echo "$as_me: failed program was:" >&5 2160sed 's/^/| /' conftest.$ac_ext >&5 2161 2162 ac_retval=1 2163fi 2164 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2165 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2166 # interfere with the next link command; also delete a directory that is 2167 # left behind by Apple's compiler. We do this before executing the actions. 2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2170 as_fn_set_status $ac_retval 2171 2172} # ac_fn_c_try_link 2173 2174# ac_fn_c_check_func LINENO FUNC VAR 2175# ---------------------------------- 2176# Tests whether FUNC exists, setting the cache variable VAR accordingly 2177ac_fn_c_check_func () 2178{ 2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2181$as_echo_n "checking for $2... " >&6; } 2182if eval \${$3+:} false; then : 2183 $as_echo_n "(cached) " >&6 2184else 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2188 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2189#define $2 innocuous_$2 2190 2191/* System header to define __stub macros and hopefully few prototypes, 2192 which can conflict with char $2 (); below. 2193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2194 <limits.h> exists even on freestanding compilers. */ 2195 2196#ifdef __STDC__ 2197# include <limits.h> 2198#else 2199# include <assert.h> 2200#endif 2201 2202#undef $2 2203 2204/* Override any GCC internal prototype to avoid an error. 2205 Use char because int might match the return type of a GCC 2206 builtin and then its argument prototype would still apply. */ 2207#ifdef __cplusplus 2208extern "C" 2209#endif 2210char $2 (); 2211/* The GNU C library defines this for functions which it implements 2212 to always fail with ENOSYS. Some functions are actually named 2213 something starting with __ and the normal name is an alias. */ 2214#if defined __stub_$2 || defined __stub___$2 2215choke me 2216#endif 2217 2218int 2219main () 2220{ 2221return $2 (); 2222 ; 2223 return 0; 2224} 2225_ACEOF 2226if ac_fn_c_try_link "$LINENO"; then : 2227 eval "$3=yes" 2228else 2229 eval "$3=no" 2230fi 2231rm -f core conftest.err conftest.$ac_objext \ 2232 conftest$ac_exeext conftest.$ac_ext 2233fi 2234eval ac_res=\$$3 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2236$as_echo "$ac_res" >&6; } 2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2238 2239} # ac_fn_c_check_func 2240 2241# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2242# --------------------------------------------- 2243# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2244# accordingly. 2245ac_fn_c_check_decl () 2246{ 2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2248 as_decl_name=`echo $2|sed 's/ *(.*//'` 2249 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2251$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2252if eval \${$3+:} false; then : 2253 $as_echo_n "(cached) " >&6 2254else 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256/* end confdefs.h. */ 2257$4 2258int 2259main () 2260{ 2261#ifndef $as_decl_name 2262#ifdef __cplusplus 2263 (void) $as_decl_use; 2264#else 2265 (void) $as_decl_name; 2266#endif 2267#endif 2268 2269 ; 2270 return 0; 2271} 2272_ACEOF 2273if ac_fn_c_try_compile "$LINENO"; then : 2274 eval "$3=yes" 2275else 2276 eval "$3=no" 2277fi 2278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2279fi 2280eval ac_res=\$$3 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2282$as_echo "$ac_res" >&6; } 2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2284 2285} # ac_fn_c_check_decl 2286cat >config.log <<_ACEOF 2287This file contains any messages produced by compilers while 2288running configure, to aid debugging if configure makes a mistake. 2289 2290It was created by knot $as_me 3.1.5, which was 2291generated by GNU Autoconf 2.69. Invocation command line was 2292 2293 $ $0 $@ 2294 2295_ACEOF 2296exec 5>>config.log 2297{ 2298cat <<_ASUNAME 2299## --------- ## 2300## Platform. ## 2301## --------- ## 2302 2303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2304uname -m = `(uname -m) 2>/dev/null || echo unknown` 2305uname -r = `(uname -r) 2>/dev/null || echo unknown` 2306uname -s = `(uname -s) 2>/dev/null || echo unknown` 2307uname -v = `(uname -v) 2>/dev/null || echo unknown` 2308 2309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2310/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2311 2312/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2313/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2315/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2316/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2317/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2318/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2319 2320_ASUNAME 2321 2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 $as_echo "PATH: $as_dir" 2328 done 2329IFS=$as_save_IFS 2330 2331} >&5 2332 2333cat >&5 <<_ACEOF 2334 2335 2336## ----------- ## 2337## Core tests. ## 2338## ----------- ## 2339 2340_ACEOF 2341 2342 2343# Keep a trace of the command line. 2344# Strip out --no-create and --no-recursion so they do not pile up. 2345# Strip out --silent because we don't want to record it for future runs. 2346# Also quote any args containing shell meta-characters. 2347# Make two passes to allow for proper duplicate-argument suppression. 2348ac_configure_args= 2349ac_configure_args0= 2350ac_configure_args1= 2351ac_must_keep_next=false 2352for ac_pass in 1 2 2353do 2354 for ac_arg 2355 do 2356 case $ac_arg in 2357 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2359 | -silent | --silent | --silen | --sile | --sil) 2360 continue ;; 2361 *\'*) 2362 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2363 esac 2364 case $ac_pass in 2365 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2366 2) 2367 as_fn_append ac_configure_args1 " '$ac_arg'" 2368 if test $ac_must_keep_next = true; then 2369 ac_must_keep_next=false # Got value, back to normal. 2370 else 2371 case $ac_arg in 2372 *=* | --config-cache | -C | -disable-* | --disable-* \ 2373 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2374 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2375 | -with-* | --with-* | -without-* | --without-* | --x) 2376 case "$ac_configure_args0 " in 2377 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2378 esac 2379 ;; 2380 -* ) ac_must_keep_next=true ;; 2381 esac 2382 fi 2383 as_fn_append ac_configure_args " '$ac_arg'" 2384 ;; 2385 esac 2386 done 2387done 2388{ ac_configure_args0=; unset ac_configure_args0;} 2389{ ac_configure_args1=; unset ac_configure_args1;} 2390 2391# When interrupted or exit'd, cleanup temporary files, and complete 2392# config.log. We remove comments because anyway the quotes in there 2393# would cause problems or look ugly. 2394# WARNING: Use '\'' to represent an apostrophe within the trap. 2395# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2396trap 'exit_status=$? 2397 # Save into config.log some information that might help in debugging. 2398 { 2399 echo 2400 2401 $as_echo "## ---------------- ## 2402## Cache variables. ## 2403## ---------------- ##" 2404 echo 2405 # The following way of writing the cache mishandles newlines in values, 2406( 2407 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2408 eval ac_val=\$$ac_var 2409 case $ac_val in #( 2410 *${as_nl}*) 2411 case $ac_var in #( 2412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2413$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2414 esac 2415 case $ac_var in #( 2416 _ | IFS | as_nl) ;; #( 2417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2418 *) { eval $ac_var=; unset $ac_var;} ;; 2419 esac ;; 2420 esac 2421 done 2422 (set) 2>&1 | 2423 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2424 *${as_nl}ac_space=\ *) 2425 sed -n \ 2426 "s/'\''/'\''\\\\'\'''\''/g; 2427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2428 ;; #( 2429 *) 2430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2431 ;; 2432 esac | 2433 sort 2434) 2435 echo 2436 2437 $as_echo "## ----------------- ## 2438## Output variables. ## 2439## ----------------- ##" 2440 echo 2441 for ac_var in $ac_subst_vars 2442 do 2443 eval ac_val=\$$ac_var 2444 case $ac_val in 2445 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2446 esac 2447 $as_echo "$ac_var='\''$ac_val'\''" 2448 done | sort 2449 echo 2450 2451 if test -n "$ac_subst_files"; then 2452 $as_echo "## ------------------- ## 2453## File substitutions. ## 2454## ------------------- ##" 2455 echo 2456 for ac_var in $ac_subst_files 2457 do 2458 eval ac_val=\$$ac_var 2459 case $ac_val in 2460 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2461 esac 2462 $as_echo "$ac_var='\''$ac_val'\''" 2463 done | sort 2464 echo 2465 fi 2466 2467 if test -s confdefs.h; then 2468 $as_echo "## ----------- ## 2469## confdefs.h. ## 2470## ----------- ##" 2471 echo 2472 cat confdefs.h 2473 echo 2474 fi 2475 test "$ac_signal" != 0 && 2476 $as_echo "$as_me: caught signal $ac_signal" 2477 $as_echo "$as_me: exit $exit_status" 2478 } >&5 2479 rm -f core *.core core.conftest.* && 2480 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2481 exit $exit_status 2482' 0 2483for ac_signal in 1 2 13 15; do 2484 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2485done 2486ac_signal=0 2487 2488# confdefs.h avoids OS command line length limits that DEFS can exceed. 2489rm -f -r conftest* confdefs.h 2490 2491$as_echo "/* confdefs.h */" > confdefs.h 2492 2493# Predefined preprocessor variables. 2494 2495cat >>confdefs.h <<_ACEOF 2496#define PACKAGE_NAME "$PACKAGE_NAME" 2497_ACEOF 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2501_ACEOF 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_VERSION "$PACKAGE_VERSION" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_STRING "$PACKAGE_STRING" 2509_ACEOF 2510 2511cat >>confdefs.h <<_ACEOF 2512#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2513_ACEOF 2514 2515cat >>confdefs.h <<_ACEOF 2516#define PACKAGE_URL "$PACKAGE_URL" 2517_ACEOF 2518 2519 2520# Let the site file select an alternate cache file if it wants to. 2521# Prefer an explicitly selected file to automatically selected ones. 2522ac_site_file1=NONE 2523ac_site_file2=NONE 2524if test -n "$CONFIG_SITE"; then 2525 # We do not want a PATH search for config.site. 2526 case $CONFIG_SITE in #(( 2527 -*) ac_site_file1=./$CONFIG_SITE;; 2528 */*) ac_site_file1=$CONFIG_SITE;; 2529 *) ac_site_file1=./$CONFIG_SITE;; 2530 esac 2531elif test "x$prefix" != xNONE; then 2532 ac_site_file1=$prefix/share/config.site 2533 ac_site_file2=$prefix/etc/config.site 2534else 2535 ac_site_file1=$ac_default_prefix/share/config.site 2536 ac_site_file2=$ac_default_prefix/etc/config.site 2537fi 2538for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2539do 2540 test "x$ac_site_file" = xNONE && continue 2541 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2543$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2544 sed 's/^/| /' "$ac_site_file" >&5 2545 . "$ac_site_file" \ 2546 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2548as_fn_error $? "failed to load site script $ac_site_file 2549See \`config.log' for more details" "$LINENO" 5; } 2550 fi 2551done 2552 2553if test -r "$cache_file"; then 2554 # Some versions of bash will fail to source /dev/null (special files 2555 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2556 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2558$as_echo "$as_me: loading cache $cache_file" >&6;} 2559 case $cache_file in 2560 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2561 *) . "./$cache_file";; 2562 esac 2563 fi 2564else 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2566$as_echo "$as_me: creating cache $cache_file" >&6;} 2567 >$cache_file 2568fi 2569 2570as_fn_append ac_header_list " pthread_np.h" 2571as_fn_append ac_header_list " sys/uio.h" 2572as_fn_append ac_header_list " bsd/string.h" 2573# Check that the precious variables saved in the cache have kept the same 2574# value. 2575ac_cache_corrupted=false 2576for ac_var in $ac_precious_vars; do 2577 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2578 eval ac_new_set=\$ac_env_${ac_var}_set 2579 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2580 eval ac_new_val=\$ac_env_${ac_var}_value 2581 case $ac_old_set,$ac_new_set in 2582 set,) 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2584$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2585 ac_cache_corrupted=: ;; 2586 ,set) 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2588$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2589 ac_cache_corrupted=: ;; 2590 ,);; 2591 *) 2592 if test "x$ac_old_val" != "x$ac_new_val"; then 2593 # differences in whitespace do not lead to failure. 2594 ac_old_val_w=`echo x $ac_old_val` 2595 ac_new_val_w=`echo x $ac_new_val` 2596 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2598$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2599 ac_cache_corrupted=: 2600 else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2602$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2603 eval $ac_var=\$ac_old_val 2604 fi 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2606$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2608$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2609 fi;; 2610 esac 2611 # Pass precious variables to config.status. 2612 if test "$ac_new_set" = set; then 2613 case $ac_new_val in 2614 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2615 *) ac_arg=$ac_var=$ac_new_val ;; 2616 esac 2617 case " $ac_configure_args " in 2618 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2619 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2620 esac 2621 fi 2622done 2623if $ac_cache_corrupted; then 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2627$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2628 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2629fi 2630## -------------------- ## 2631## Main body of script. ## 2632## -------------------- ## 2633 2634ac_ext=c 2635ac_cpp='$CPP $CPPFLAGS' 2636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2638ac_compiler_gnu=$ac_cv_c_compiler_gnu 2639 2640 2641am__api_version='1.16' 2642 2643ac_aux_dir= 2644for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2645 if test -f "$ac_dir/install-sh"; then 2646 ac_aux_dir=$ac_dir 2647 ac_install_sh="$ac_aux_dir/install-sh -c" 2648 break 2649 elif test -f "$ac_dir/install.sh"; then 2650 ac_aux_dir=$ac_dir 2651 ac_install_sh="$ac_aux_dir/install.sh -c" 2652 break 2653 elif test -f "$ac_dir/shtool"; then 2654 ac_aux_dir=$ac_dir 2655 ac_install_sh="$ac_aux_dir/shtool install -c" 2656 break 2657 fi 2658done 2659if test -z "$ac_aux_dir"; then 2660 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2661fi 2662 2663# These three variables are undocumented and unsupported, 2664# and are intended to be withdrawn in a future Autoconf release. 2665# They can cause serious problems if a builder's source tree is in a directory 2666# whose full name contains unusual characters. 2667ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2668ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2669ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2670 2671 2672# Find a good install program. We prefer a C program (faster), 2673# so one script is as good as another. But avoid the broken or 2674# incompatible versions: 2675# SysV /etc/install, /usr/sbin/install 2676# SunOS /usr/etc/install 2677# IRIX /sbin/install 2678# AIX /bin/install 2679# AmigaOS /C/install, which installs bootblocks on floppy discs 2680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2681# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2683# OS/2's system install, which has a completely different semantic 2684# ./install, which can be erroneously created by make from ./install.sh. 2685# Reject install programs that cannot install multiple files. 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2687$as_echo_n "checking for a BSD-compatible install... " >&6; } 2688if test -z "$INSTALL"; then 2689if ${ac_cv_path_install+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693for as_dir in $PATH 2694do 2695 IFS=$as_save_IFS 2696 test -z "$as_dir" && as_dir=. 2697 # Account for people who put trailing slashes in PATH elements. 2698case $as_dir/ in #(( 2699 ./ | .// | /[cC]/* | \ 2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2702 /usr/ucb/* ) ;; 2703 *) 2704 # OSF1 and SCO ODT 3.0 have their own names for install. 2705 # Don't use installbsd from OSF since it installs stuff as root 2706 # by default. 2707 for ac_prog in ginstall scoinst install; do 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2710 if test $ac_prog = install && 2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # AIX install. It has an incompatible calling convention. 2713 : 2714 elif test $ac_prog = install && 2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2716 # program-specific install script used by HP pwplus--don't use. 2717 : 2718 else 2719 rm -rf conftest.one conftest.two conftest.dir 2720 echo one > conftest.one 2721 echo two > conftest.two 2722 mkdir conftest.dir 2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2724 test -s conftest.one && test -s conftest.two && 2725 test -s conftest.dir/conftest.one && 2726 test -s conftest.dir/conftest.two 2727 then 2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2729 break 3 2730 fi 2731 fi 2732 fi 2733 done 2734 done 2735 ;; 2736esac 2737 2738 done 2739IFS=$as_save_IFS 2740 2741rm -rf conftest.one conftest.two conftest.dir 2742 2743fi 2744 if test "${ac_cv_path_install+set}" = set; then 2745 INSTALL=$ac_cv_path_install 2746 else 2747 # As a last resort, use the slow shell script. Don't cache a 2748 # value for INSTALL within a source directory, because that will 2749 # break other packages using the cache if that directory is 2750 # removed, or if the value is a relative name. 2751 INSTALL=$ac_install_sh 2752 fi 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2755$as_echo "$INSTALL" >&6; } 2756 2757# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2758# It thinks the first close brace ends the variable substitution. 2759test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2760 2761test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2762 2763test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2764 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2766$as_echo_n "checking whether build environment is sane... " >&6; } 2767# Reject unsafe characters in $srcdir or the absolute working directory 2768# name. Accept space and tab only in the latter. 2769am_lf=' 2770' 2771case `pwd` in 2772 *[\\\"\#\$\&\'\`$am_lf]*) 2773 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2774esac 2775case $srcdir in 2776 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2777 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2778esac 2779 2780# Do 'set' in a subshell so we don't clobber the current shell's 2781# arguments. Must try -L first in case configure is actually a 2782# symlink; some systems play weird games with the mod time of symlinks 2783# (eg FreeBSD returns the mod time of the symlink's containing 2784# directory). 2785if ( 2786 am_has_slept=no 2787 for am_try in 1 2; do 2788 echo "timestamp, slept: $am_has_slept" > conftest.file 2789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2790 if test "$*" = "X"; then 2791 # -L didn't work. 2792 set X `ls -t "$srcdir/configure" conftest.file` 2793 fi 2794 if test "$*" != "X $srcdir/configure conftest.file" \ 2795 && test "$*" != "X conftest.file $srcdir/configure"; then 2796 2797 # If neither matched, then we have a broken ls. This can happen 2798 # if, for instance, CONFIG_SHELL is bash and it inherits a 2799 # broken ls alias from the environment. This has actually 2800 # happened. Such a system could not be considered "sane". 2801 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2802 alias in your environment" "$LINENO" 5 2803 fi 2804 if test "$2" = conftest.file || test $am_try -eq 2; then 2805 break 2806 fi 2807 # Just in case. 2808 sleep 1 2809 am_has_slept=yes 2810 done 2811 test "$2" = conftest.file 2812 ) 2813then 2814 # Ok. 2815 : 2816else 2817 as_fn_error $? "newly created file is older than distributed files! 2818Check your system clock" "$LINENO" 5 2819fi 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2821$as_echo "yes" >&6; } 2822# If we didn't sleep, we still need to ensure time stamps of config.status and 2823# generated files are strictly newer. 2824am_sleep_pid= 2825if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2826 ( sleep 1 ) & 2827 am_sleep_pid=$! 2828fi 2829 2830rm -f conftest.file 2831 2832test "$program_prefix" != NONE && 2833 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2834# Use a double $ so make ignores it. 2835test "$program_suffix" != NONE && 2836 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2837# Double any \ or $. 2838# By default was `s,x,x', remove it if useless. 2839ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2840program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2841 2842# Expand $ac_aux_dir to an absolute path. 2843am_aux_dir=`cd "$ac_aux_dir" && pwd` 2844 2845if test x"${MISSING+set}" != xset; then 2846 MISSING="\${SHELL} '$am_aux_dir/missing'" 2847fi 2848# Use eval to expand $SHELL 2849if eval "$MISSING --is-lightweight"; then 2850 am_missing_run="$MISSING " 2851else 2852 am_missing_run= 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2854$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2855fi 2856 2857if test x"${install_sh+set}" != xset; then 2858 case $am_aux_dir in 2859 *\ * | *\ *) 2860 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2861 *) 2862 install_sh="\${SHELL} $am_aux_dir/install-sh" 2863 esac 2864fi 2865 2866# Installed binaries are usually stripped using 'strip' when the user 2867# run "make install-strip". However 'strip' might not be the right 2868# tool to use in cross-compilation environments, therefore Automake 2869# will honor the 'STRIP' environment variable to overrule this program. 2870if test "$cross_compiling" != no; then 2871 if test -n "$ac_tool_prefix"; then 2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2873set dummy ${ac_tool_prefix}strip; ac_word=$2 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2875$as_echo_n "checking for $ac_word... " >&6; } 2876if ${ac_cv_prog_STRIP+:} false; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 if test -n "$STRIP"; then 2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2881else 2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2883for as_dir in $PATH 2884do 2885 IFS=$as_save_IFS 2886 test -z "$as_dir" && as_dir=. 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2891 break 2 2892 fi 2893done 2894 done 2895IFS=$as_save_IFS 2896 2897fi 2898fi 2899STRIP=$ac_cv_prog_STRIP 2900if test -n "$STRIP"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2902$as_echo "$STRIP" >&6; } 2903else 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2905$as_echo "no" >&6; } 2906fi 2907 2908 2909fi 2910if test -z "$ac_cv_prog_STRIP"; then 2911 ac_ct_STRIP=$STRIP 2912 # Extract the first word of "strip", so it can be a program name with args. 2913set dummy strip; ac_word=$2 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2915$as_echo_n "checking for $ac_word... " >&6; } 2916if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2917 $as_echo_n "(cached) " >&6 2918else 2919 if test -n "$ac_ct_STRIP"; then 2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2929 ac_cv_prog_ac_ct_STRIP="strip" 2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2931 break 2 2932 fi 2933done 2934 done 2935IFS=$as_save_IFS 2936 2937fi 2938fi 2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2940if test -n "$ac_ct_STRIP"; then 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2942$as_echo "$ac_ct_STRIP" >&6; } 2943else 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2945$as_echo "no" >&6; } 2946fi 2947 2948 if test "x$ac_ct_STRIP" = x; then 2949 STRIP=":" 2950 else 2951 case $cross_compiling:$ac_tool_warned in 2952yes:) 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2955ac_tool_warned=yes ;; 2956esac 2957 STRIP=$ac_ct_STRIP 2958 fi 2959else 2960 STRIP="$ac_cv_prog_STRIP" 2961fi 2962 2963fi 2964INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2965 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2967$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2968if test -z "$MKDIR_P"; then 2969 if ${ac_cv_path_mkdir+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_prog in mkdir gmkdir; do 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2980 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2981 'mkdir (GNU coreutils) '* | \ 2982 'mkdir (coreutils) '* | \ 2983 'mkdir (fileutils) '4.1*) 2984 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2985 break 3;; 2986 esac 2987 done 2988 done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993 2994 test -d ./--version && rmdir ./--version 2995 if test "${ac_cv_path_mkdir+set}" = set; then 2996 MKDIR_P="$ac_cv_path_mkdir -p" 2997 else 2998 # As a last resort, use the slow shell script. Don't cache a 2999 # value for MKDIR_P within a source directory, because that will 3000 # break other packages using the cache if that directory is 3001 # removed, or if the value is a relative name. 3002 MKDIR_P="$ac_install_sh -d" 3003 fi 3004fi 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3006$as_echo "$MKDIR_P" >&6; } 3007 3008for ac_prog in gawk mawk nawk awk 3009do 3010 # Extract the first word of "$ac_prog", so it can be a program name with args. 3011set dummy $ac_prog; ac_word=$2 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3013$as_echo_n "checking for $ac_word... " >&6; } 3014if ${ac_cv_prog_AWK+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016else 3017 if test -n "$AWK"; then 3018 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3019else 3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021for as_dir in $PATH 3022do 3023 IFS=$as_save_IFS 3024 test -z "$as_dir" && as_dir=. 3025 for ac_exec_ext in '' $ac_executable_extensions; do 3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3027 ac_cv_prog_AWK="$ac_prog" 3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3029 break 2 3030 fi 3031done 3032 done 3033IFS=$as_save_IFS 3034 3035fi 3036fi 3037AWK=$ac_cv_prog_AWK 3038if test -n "$AWK"; then 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3040$as_echo "$AWK" >&6; } 3041else 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3043$as_echo "no" >&6; } 3044fi 3045 3046 3047 test -n "$AWK" && break 3048done 3049 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3051$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3052set x ${MAKE-make} 3053ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3054if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3055 $as_echo_n "(cached) " >&6 3056else 3057 cat >conftest.make <<\_ACEOF 3058SHELL = /bin/sh 3059all: 3060 @echo '@@@%%%=$(MAKE)=@@@%%%' 3061_ACEOF 3062# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3063case `${MAKE-make} -f conftest.make 2>/dev/null` in 3064 *@@@%%%=?*=@@@%%%*) 3065 eval ac_cv_prog_make_${ac_make}_set=yes;; 3066 *) 3067 eval ac_cv_prog_make_${ac_make}_set=no;; 3068esac 3069rm -f conftest.make 3070fi 3071if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3073$as_echo "yes" >&6; } 3074 SET_MAKE= 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078 SET_MAKE="MAKE=${MAKE-make}" 3079fi 3080 3081rm -rf .tst 2>/dev/null 3082mkdir .tst 2>/dev/null 3083if test -d .tst; then 3084 am__leading_dot=. 3085else 3086 am__leading_dot=_ 3087fi 3088rmdir .tst 2>/dev/null 3089 3090# Check whether --enable-silent-rules was given. 3091if test "${enable_silent_rules+set}" = set; then : 3092 enableval=$enable_silent_rules; 3093fi 3094 3095case $enable_silent_rules in # ((( 3096 yes) AM_DEFAULT_VERBOSITY=0;; 3097 no) AM_DEFAULT_VERBOSITY=1;; 3098 *) AM_DEFAULT_VERBOSITY=1;; 3099esac 3100am_make=${MAKE-make} 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3102$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3103if ${am_cv_make_support_nested_variables+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if $as_echo 'TRUE=$(BAR$(V)) 3107BAR0=false 3108BAR1=true 3109V=1 3110am__doit: 3111 @$(TRUE) 3112.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3113 am_cv_make_support_nested_variables=yes 3114else 3115 am_cv_make_support_nested_variables=no 3116fi 3117fi 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3119$as_echo "$am_cv_make_support_nested_variables" >&6; } 3120if test $am_cv_make_support_nested_variables = yes; then 3121 AM_V='$(V)' 3122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3123else 3124 AM_V=$AM_DEFAULT_VERBOSITY 3125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3126fi 3127AM_BACKSLASH='\' 3128 3129if test "`cd $srcdir && pwd`" != "`pwd`"; then 3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3131 # is not polluted with repeated "-I." 3132 am__isrc=' -I$(srcdir)' 3133 # test to see if srcdir already configured 3134 if test -f $srcdir/config.status; then 3135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3136 fi 3137fi 3138 3139# test whether we have cygpath 3140if test -z "$CYGPATH_W"; then 3141 if (cygpath --version) >/dev/null 2>/dev/null; then 3142 CYGPATH_W='cygpath -w' 3143 else 3144 CYGPATH_W=echo 3145 fi 3146fi 3147 3148 3149# Define the identity of the package. 3150 PACKAGE='knot' 3151 VERSION='3.1.5' 3152 3153 3154cat >>confdefs.h <<_ACEOF 3155#define PACKAGE "$PACKAGE" 3156_ACEOF 3157 3158 3159cat >>confdefs.h <<_ACEOF 3160#define VERSION "$VERSION" 3161_ACEOF 3162 3163# Some tools Automake needs. 3164 3165ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3166 3167 3168AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3169 3170 3171AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3172 3173 3174AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3175 3176 3177MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3178 3179# For better backward compatibility. To be removed once Automake 1.9.x 3180# dies out for good. For more background, see: 3181# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3182# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3183mkdir_p='$(MKDIR_P)' 3184 3185# We need awk for the "check" target (and possibly the TAP driver). The 3186# system "awk" is bad on some platforms. 3187# Always define AMTAR for backward compatibility. Yes, it's still used 3188# in the wild :-( We should find a proper way to deprecate it ... 3189AMTAR='$${TAR-tar}' 3190 3191 3192# We'll loop over all known methods to create a tar archive until one works. 3193_am_tools='gnutar pax cpio none' 3194 3195am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3196 3197 3198 3199 3200 3201 3202# POSIX will say in a future version that running "rm -f" with no argument 3203# is OK; and we want to be able to make that assumption in our Makefile 3204# recipes. So use an aggressive probe to check that the usage we want is 3205# actually supported "in the wild" to an acceptable degree. 3206# See automake bug#10828. 3207# To make any issue more visible, cause the running configure to be aborted 3208# by default if the 'rm' program in use doesn't match our expectations; the 3209# user can still override this though. 3210if rm -f && rm -fr && rm -rf; then : OK; else 3211 cat >&2 <<'END' 3212Oops! 3213 3214Your 'rm' program seems unable to run without file operands specified 3215on the command line, even when the '-f' option is present. This is contrary 3216to the behaviour of most rm programs out there, and not conforming with 3217the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3218 3219Please tell bug-automake@gnu.org about your system, including the value 3220of your $PATH and any error possibly output before this message. This 3221can help us improve future automake versions. 3222 3223END 3224 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3225 echo 'Configuration will proceed anyway, since you have set the' >&2 3226 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3227 echo >&2 3228 else 3229 cat >&2 <<'END' 3230Aborting the configuration process, to ensure you take notice of the issue. 3231 3232You can download and install GNU coreutils to get an 'rm' implementation 3233that behaves properly: <https://www.gnu.org/software/coreutils/>. 3234 3235If you want to complete the configuration process using your problematic 3236'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3237to "yes", and re-run configure. 3238 3239END 3240 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3241 fi 3242fi 3243 3244# Check whether --enable-silent-rules was given. 3245if test "${enable_silent_rules+set}" = set; then : 3246 enableval=$enable_silent_rules; 3247fi 3248 3249case $enable_silent_rules in # ((( 3250 yes) AM_DEFAULT_VERBOSITY=0;; 3251 no) AM_DEFAULT_VERBOSITY=1;; 3252 *) AM_DEFAULT_VERBOSITY=0;; 3253esac 3254am_make=${MAKE-make} 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3256$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3257if ${am_cv_make_support_nested_variables+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if $as_echo 'TRUE=$(BAR$(V)) 3261BAR0=false 3262BAR1=true 3263V=1 3264am__doit: 3265 @$(TRUE) 3266.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3267 am_cv_make_support_nested_variables=yes 3268else 3269 am_cv_make_support_nested_variables=no 3270fi 3271fi 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3273$as_echo "$am_cv_make_support_nested_variables" >&6; } 3274if test $am_cv_make_support_nested_variables = yes; then 3275 AM_V='$(V)' 3276 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3277else 3278 AM_V=$AM_DEFAULT_VERBOSITY 3279 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3280fi 3281AM_BACKSLASH='\' 3282 3283 3284ac_config_headers="$ac_config_headers src/config.h" 3285 3286 3287DEPDIR="${am__leading_dot}deps" 3288 3289ac_config_commands="$ac_config_commands depfiles" 3290 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3292$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3293cat > confinc.mk << 'END' 3294am__doit: 3295 @echo this is the am__doit target >confinc.out 3296.PHONY: am__doit 3297END 3298am__include="#" 3299am__quote= 3300# BSD make does it like this. 3301echo '.include "confinc.mk" # ignored' > confmf.BSD 3302# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3303echo 'include confinc.mk # ignored' > confmf.GNU 3304_am_result=no 3305for s in GNU BSD; do 3306 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3307 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3308 ac_status=$? 3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3310 (exit $ac_status); } 3311 case $?:`cat confinc.out 2>/dev/null` in #( 3312 '0:this is the am__doit target') : 3313 case $s in #( 3314 BSD) : 3315 am__include='.include' am__quote='"' ;; #( 3316 *) : 3317 am__include='include' am__quote='' ;; 3318esac ;; #( 3319 *) : 3320 ;; 3321esac 3322 if test "$am__include" != "#"; then 3323 _am_result="yes ($s style)" 3324 break 3325 fi 3326done 3327rm -f confinc.* confmf.* 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3329$as_echo "${_am_result}" >&6; } 3330 3331# Check whether --enable-dependency-tracking was given. 3332if test "${enable_dependency_tracking+set}" = set; then : 3333 enableval=$enable_dependency_tracking; 3334fi 3335 3336if test "x$enable_dependency_tracking" != xno; then 3337 am_depcomp="$ac_aux_dir/depcomp" 3338 AMDEPBACKSLASH='\' 3339 am__nodep='_no' 3340fi 3341 if test "x$enable_dependency_tracking" != xno; then 3342 AMDEP_TRUE= 3343 AMDEP_FALSE='#' 3344else 3345 AMDEP_TRUE='#' 3346 AMDEP_FALSE= 3347fi 3348 3349 3350ac_ext=c 3351ac_cpp='$CPP $CPPFLAGS' 3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3354ac_compiler_gnu=$ac_cv_c_compiler_gnu 3355if test -n "$ac_tool_prefix"; then 3356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3357set dummy ${ac_tool_prefix}gcc; ac_word=$2 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359$as_echo_n "checking for $ac_word... " >&6; } 3360if ${ac_cv_prog_CC+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 if test -n "$CC"; then 3364 ac_cv_prog_CC="$CC" # Let the user override the test. 3365else 3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381fi 3382fi 3383CC=$ac_cv_prog_CC 3384if test -n "$CC"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3386$as_echo "$CC" >&6; } 3387else 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389$as_echo "no" >&6; } 3390fi 3391 3392 3393fi 3394if test -z "$ac_cv_prog_CC"; then 3395 ac_ct_CC=$CC 3396 # Extract the first word of "gcc", so it can be a program name with args. 3397set dummy gcc; ac_word=$2 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3399$as_echo_n "checking for $ac_word... " >&6; } 3400if ${ac_cv_prog_ac_ct_CC+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 if test -n "$ac_ct_CC"; then 3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3405else 3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407for as_dir in $PATH 3408do 3409 IFS=$as_save_IFS 3410 test -z "$as_dir" && as_dir=. 3411 for ac_exec_ext in '' $ac_executable_extensions; do 3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3413 ac_cv_prog_ac_ct_CC="gcc" 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3415 break 2 3416 fi 3417done 3418 done 3419IFS=$as_save_IFS 3420 3421fi 3422fi 3423ac_ct_CC=$ac_cv_prog_ac_ct_CC 3424if test -n "$ac_ct_CC"; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3426$as_echo "$ac_ct_CC" >&6; } 3427else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429$as_echo "no" >&6; } 3430fi 3431 3432 if test "x$ac_ct_CC" = x; then 3433 CC="" 3434 else 3435 case $cross_compiling:$ac_tool_warned in 3436yes:) 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3439ac_tool_warned=yes ;; 3440esac 3441 CC=$ac_ct_CC 3442 fi 3443else 3444 CC="$ac_cv_prog_CC" 3445fi 3446 3447if test -z "$CC"; then 3448 if test -n "$ac_tool_prefix"; then 3449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3450set dummy ${ac_tool_prefix}cc; ac_word=$2 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3452$as_echo_n "checking for $ac_word... " >&6; } 3453if ${ac_cv_prog_CC+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3466 ac_cv_prog_CC="${ac_tool_prefix}cc" 3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3468 break 2 3469 fi 3470done 3471 done 3472IFS=$as_save_IFS 3473 3474fi 3475fi 3476CC=$ac_cv_prog_CC 3477if test -n "$CC"; then 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3479$as_echo "$CC" >&6; } 3480else 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3482$as_echo "no" >&6; } 3483fi 3484 3485 3486 fi 3487fi 3488if test -z "$CC"; then 3489 # Extract the first word of "cc", so it can be a program name with args. 3490set dummy cc; ac_word=$2 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3492$as_echo_n "checking for $ac_word... " >&6; } 3493if ${ac_cv_prog_CC+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 if test -n "$CC"; then 3497 ac_cv_prog_CC="$CC" # Let the user override the test. 3498else 3499 ac_prog_rejected=no 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 test -z "$as_dir" && as_dir=. 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3508 ac_prog_rejected=yes 3509 continue 3510 fi 3511 ac_cv_prog_CC="cc" 3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519if test $ac_prog_rejected = yes; then 3520 # We found a bogon in the path, so make sure we never use it. 3521 set dummy $ac_cv_prog_CC 3522 shift 3523 if test $# != 0; then 3524 # We chose a different compiler from the bogus one. 3525 # However, it has the same basename, so the bogon will be chosen 3526 # first if we set CC to just the basename; use the full file name. 3527 shift 3528 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3529 fi 3530fi 3531fi 3532fi 3533CC=$ac_cv_prog_CC 3534if test -n "$CC"; then 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3536$as_echo "$CC" >&6; } 3537else 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3539$as_echo "no" >&6; } 3540fi 3541 3542 3543fi 3544if test -z "$CC"; then 3545 if test -n "$ac_tool_prefix"; then 3546 for ac_prog in cl.exe 3547 do 3548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3549set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551$as_echo_n "checking for $ac_word... " >&6; } 3552if ${ac_cv_prog_CC+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -n "$CC"; then 3556 ac_cv_prog_CC="$CC" # Let the user override the test. 3557else 3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3559for as_dir in $PATH 3560do 3561 IFS=$as_save_IFS 3562 test -z "$as_dir" && as_dir=. 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575CC=$ac_cv_prog_CC 3576if test -n "$CC"; then 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578$as_echo "$CC" >&6; } 3579else 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581$as_echo "no" >&6; } 3582fi 3583 3584 3585 test -n "$CC" && break 3586 done 3587fi 3588if test -z "$CC"; then 3589 ac_ct_CC=$CC 3590 for ac_prog in cl.exe 3591do 3592 # Extract the first word of "$ac_prog", so it can be a program name with args. 3593set dummy $ac_prog; ac_word=$2 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595$as_echo_n "checking for $ac_word... " >&6; } 3596if ${ac_cv_prog_ac_ct_CC+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 if test -n "$ac_ct_CC"; then 3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3601else 3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3603for as_dir in $PATH 3604do 3605 IFS=$as_save_IFS 3606 test -z "$as_dir" && as_dir=. 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3609 ac_cv_prog_ac_ct_CC="$ac_prog" 3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3611 break 2 3612 fi 3613done 3614 done 3615IFS=$as_save_IFS 3616 3617fi 3618fi 3619ac_ct_CC=$ac_cv_prog_ac_ct_CC 3620if test -n "$ac_ct_CC"; then 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3622$as_echo "$ac_ct_CC" >&6; } 3623else 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3625$as_echo "no" >&6; } 3626fi 3627 3628 3629 test -n "$ac_ct_CC" && break 3630done 3631 3632 if test "x$ac_ct_CC" = x; then 3633 CC="" 3634 else 3635 case $cross_compiling:$ac_tool_warned in 3636yes:) 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3639ac_tool_warned=yes ;; 3640esac 3641 CC=$ac_ct_CC 3642 fi 3643fi 3644 3645fi 3646 3647 3648test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3650as_fn_error $? "no acceptable C compiler found in \$PATH 3651See \`config.log' for more details" "$LINENO" 5; } 3652 3653# Provide some information about the compiler. 3654$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3655set X $ac_compile 3656ac_compiler=$2 3657for ac_option in --version -v -V -qversion; do 3658 { { ac_try="$ac_compiler $ac_option >&5" 3659case "(($ac_try" in 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *) ac_try_echo=$ac_try;; 3662esac 3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3664$as_echo "$ac_try_echo"; } >&5 3665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3666 ac_status=$? 3667 if test -s conftest.err; then 3668 sed '10a\ 3669... rest of stderr output deleted ... 3670 10q' conftest.err >conftest.er1 3671 cat conftest.er1 >&5 3672 fi 3673 rm -f conftest.er1 conftest.err 3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3675 test $ac_status = 0; } 3676done 3677 3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main () 3683{ 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689ac_clean_files_save=$ac_clean_files 3690ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3691# Try to create an executable without -o first, disregard a.out. 3692# It will help us diagnose broken compilers, and finding out an intuition 3693# of exeext. 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3695$as_echo_n "checking whether the C compiler works... " >&6; } 3696ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3697 3698# The possible output files: 3699ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3700 3701ac_rmfiles= 3702for ac_file in $ac_files 3703do 3704 case $ac_file in 3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3706 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3707 esac 3708done 3709rm -f $ac_rmfiles 3710 3711if { { ac_try="$ac_link_default" 3712case "(($ac_try" in 3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3714 *) ac_try_echo=$ac_try;; 3715esac 3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3717$as_echo "$ac_try_echo"; } >&5 3718 (eval "$ac_link_default") 2>&5 3719 ac_status=$? 3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3721 test $ac_status = 0; }; then : 3722 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3723# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3724# in a Makefile. We should not override ac_cv_exeext if it was cached, 3725# so that the user can short-circuit this test for compilers unknown to 3726# Autoconf. 3727for ac_file in $ac_files '' 3728do 3729 test -f "$ac_file" || continue 3730 case $ac_file in 3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3732 ;; 3733 [ab].out ) 3734 # We found the default executable, but exeext='' is most 3735 # certainly right. 3736 break;; 3737 *.* ) 3738 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3739 then :; else 3740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3741 fi 3742 # We set ac_cv_exeext here because the later test for it is not 3743 # safe: cross compilers may not add the suffix if given an `-o' 3744 # argument, so we may need to know it at that point already. 3745 # Even if this section looks crufty: it has the advantage of 3746 # actually working. 3747 break;; 3748 * ) 3749 break;; 3750 esac 3751done 3752test "$ac_cv_exeext" = no && ac_cv_exeext= 3753 3754else 3755 ac_file='' 3756fi 3757if test -z "$ac_file"; then : 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3759$as_echo "no" >&6; } 3760$as_echo "$as_me: failed program was:" >&5 3761sed 's/^/| /' conftest.$ac_ext >&5 3762 3763{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765as_fn_error 77 "C compiler cannot create executables 3766See \`config.log' for more details" "$LINENO" 5; } 3767else 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3769$as_echo "yes" >&6; } 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3772$as_echo_n "checking for C compiler default output file name... " >&6; } 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3774$as_echo "$ac_file" >&6; } 3775ac_exeext=$ac_cv_exeext 3776 3777rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3778ac_clean_files=$ac_clean_files_save 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3780$as_echo_n "checking for suffix of executables... " >&6; } 3781if { { ac_try="$ac_link" 3782case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3787$as_echo "$ac_try_echo"; } >&5 3788 (eval "$ac_link") 2>&5 3789 ac_status=$? 3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3791 test $ac_status = 0; }; then : 3792 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3793# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3794# work properly (i.e., refer to `conftest.exe'), while it won't with 3795# `rm'. 3796for ac_file in conftest.exe conftest conftest.*; do 3797 test -f "$ac_file" || continue 3798 case $ac_file in 3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3801 break;; 3802 * ) break;; 3803 esac 3804done 3805else 3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3808as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3809See \`config.log' for more details" "$LINENO" 5; } 3810fi 3811rm -f conftest conftest$ac_cv_exeext 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3813$as_echo "$ac_cv_exeext" >&6; } 3814 3815rm -f conftest.$ac_ext 3816EXEEXT=$ac_cv_exeext 3817ac_exeext=$EXEEXT 3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819/* end confdefs.h. */ 3820#include <stdio.h> 3821int 3822main () 3823{ 3824FILE *f = fopen ("conftest.out", "w"); 3825 return ferror (f) || fclose (f) != 0; 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831ac_clean_files="$ac_clean_files conftest.out" 3832# Check that the compiler produces executables we can run. If not, either 3833# the compiler is broken, or we cross compile. 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3835$as_echo_n "checking whether we are cross compiling... " >&6; } 3836if test "$cross_compiling" != yes; then 3837 { { ac_try="$ac_link" 3838case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843$as_echo "$ac_try_echo"; } >&5 3844 (eval "$ac_link") 2>&5 3845 ac_status=$? 3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; } 3848 if { ac_try='./conftest$ac_cv_exeext' 3849 { { case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852esac 3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3854$as_echo "$ac_try_echo"; } >&5 3855 (eval "$ac_try") 2>&5 3856 ac_status=$? 3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3858 test $ac_status = 0; }; }; then 3859 cross_compiling=no 3860 else 3861 if test "$cross_compiling" = maybe; then 3862 cross_compiling=yes 3863 else 3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3866as_fn_error $? "cannot run C compiled programs. 3867If you meant to cross compile, use \`--host'. 3868See \`config.log' for more details" "$LINENO" 5; } 3869 fi 3870 fi 3871fi 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3873$as_echo "$cross_compiling" >&6; } 3874 3875rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3876ac_clean_files=$ac_clean_files_save 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3878$as_echo_n "checking for suffix of object files... " >&6; } 3879if ${ac_cv_objext+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883/* end confdefs.h. */ 3884 3885int 3886main () 3887{ 3888 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893rm -f conftest.o conftest.obj 3894if { { ac_try="$ac_compile" 3895case "(($ac_try" in 3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3897 *) ac_try_echo=$ac_try;; 3898esac 3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3900$as_echo "$ac_try_echo"; } >&5 3901 (eval "$ac_compile") 2>&5 3902 ac_status=$? 3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3904 test $ac_status = 0; }; then : 3905 for ac_file in conftest.o conftest.obj conftest.*; do 3906 test -f "$ac_file" || continue; 3907 case $ac_file in 3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3910 break;; 3911 esac 3912done 3913else 3914 $as_echo "$as_me: failed program was:" >&5 3915sed 's/^/| /' conftest.$ac_ext >&5 3916 3917{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3919as_fn_error $? "cannot compute suffix of object files: cannot compile 3920See \`config.log' for more details" "$LINENO" 5; } 3921fi 3922rm -f conftest.$ac_cv_objext conftest.$ac_ext 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3925$as_echo "$ac_cv_objext" >&6; } 3926OBJEXT=$ac_cv_objext 3927ac_objext=$OBJEXT 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3929$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3930if ${ac_cv_c_compiler_gnu+:} false; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934/* end confdefs.h. */ 3935 3936int 3937main () 3938{ 3939#ifndef __GNUC__ 3940 choke me 3941#endif 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947if ac_fn_c_try_compile "$LINENO"; then : 3948 ac_compiler_gnu=yes 3949else 3950 ac_compiler_gnu=no 3951fi 3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3953ac_cv_c_compiler_gnu=$ac_compiler_gnu 3954 3955fi 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3957$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3958if test $ac_compiler_gnu = yes; then 3959 GCC=yes 3960else 3961 GCC= 3962fi 3963ac_test_CFLAGS=${CFLAGS+set} 3964ac_save_CFLAGS=$CFLAGS 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3966$as_echo_n "checking whether $CC accepts -g... " >&6; } 3967if ${ac_cv_prog_cc_g+:} false; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 ac_save_c_werror_flag=$ac_c_werror_flag 3971 ac_c_werror_flag=yes 3972 ac_cv_prog_cc_g=no 3973 CFLAGS="-g" 3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3975/* end confdefs.h. */ 3976 3977int 3978main () 3979{ 3980 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_cv_prog_cc_g=yes 3987else 3988 CFLAGS="" 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_c_try_compile "$LINENO"; then : 4001 4002else 4003 ac_c_werror_flag=$ac_save_c_werror_flag 4004 CFLAGS="-g" 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007 4008int 4009main () 4010{ 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016if ac_fn_c_try_compile "$LINENO"; then : 4017 ac_cv_prog_cc_g=yes 4018fi 4019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4020fi 4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4022fi 4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4024 ac_c_werror_flag=$ac_save_c_werror_flag 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4027$as_echo "$ac_cv_prog_cc_g" >&6; } 4028if test "$ac_test_CFLAGS" = set; then 4029 CFLAGS=$ac_save_CFLAGS 4030elif test $ac_cv_prog_cc_g = yes; then 4031 if test "$GCC" = yes; then 4032 CFLAGS="-g -O2" 4033 else 4034 CFLAGS="-g" 4035 fi 4036else 4037 if test "$GCC" = yes; then 4038 CFLAGS="-O2" 4039 else 4040 CFLAGS= 4041 fi 4042fi 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4044$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4045if ${ac_cv_prog_cc_c89+:} false; then : 4046 $as_echo_n "(cached) " >&6 4047else 4048 ac_cv_prog_cc_c89=no 4049ac_save_CC=$CC 4050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4051/* end confdefs.h. */ 4052#include <stdarg.h> 4053#include <stdio.h> 4054struct stat; 4055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4056struct buf { int x; }; 4057FILE * (*rcsopen) (struct buf *, struct stat *, int); 4058static char *e (p, i) 4059 char **p; 4060 int i; 4061{ 4062 return p[i]; 4063} 4064static char *f (char * (*g) (char **, int), char **p, ...) 4065{ 4066 char *s; 4067 va_list v; 4068 va_start (v,p); 4069 s = g (p, va_arg (v,int)); 4070 va_end (v); 4071 return s; 4072} 4073 4074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4075 function prototypes and stuff, but not '\xHH' hex character constants. 4076 These don't provoke an error unfortunately, instead are silently treated 4077 as 'x'. The following induces an error, until -std is added to get 4078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4079 array size at least. It's necessary to write '\x00'==0 to get something 4080 that's true only with -std. */ 4081int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4082 4083/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4084 inside strings and character constants. */ 4085#define FOO(x) 'x' 4086int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4087 4088int test (int i, double x); 4089struct s1 {int (*f) (int a);}; 4090struct s2 {int (*f) (double a);}; 4091int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4092int argc; 4093char **argv; 4094int 4095main () 4096{ 4097return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4098 ; 4099 return 0; 4100} 4101_ACEOF 4102for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4104do 4105 CC="$ac_save_CC $ac_arg" 4106 if ac_fn_c_try_compile "$LINENO"; then : 4107 ac_cv_prog_cc_c89=$ac_arg 4108fi 4109rm -f core conftest.err conftest.$ac_objext 4110 test "x$ac_cv_prog_cc_c89" != "xno" && break 4111done 4112rm -f conftest.$ac_ext 4113CC=$ac_save_CC 4114 4115fi 4116# AC_CACHE_VAL 4117case "x$ac_cv_prog_cc_c89" in 4118 x) 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4120$as_echo "none needed" >&6; } ;; 4121 xno) 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4123$as_echo "unsupported" >&6; } ;; 4124 *) 4125 CC="$CC $ac_cv_prog_cc_c89" 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4127$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4128esac 4129if test "x$ac_cv_prog_cc_c89" != xno; then : 4130 4131fi 4132 4133ac_ext=c 4134ac_cpp='$CPP $CPPFLAGS' 4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4137ac_compiler_gnu=$ac_cv_c_compiler_gnu 4138 4139ac_ext=c 4140ac_cpp='$CPP $CPPFLAGS' 4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4143ac_compiler_gnu=$ac_cv_c_compiler_gnu 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4145$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4146if ${am_cv_prog_cc_c_o+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151 4152int 4153main () 4154{ 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160 # Make sure it works both with $CC and with simple cc. 4161 # Following AC_PROG_CC_C_O, we do the test twice because some 4162 # compilers refuse to overwrite an existing .o file with -o, 4163 # though they will create one. 4164 am_cv_prog_cc_c_o=yes 4165 for am_i in 1 2; do 4166 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4167 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); } \ 4171 && test -f conftest2.$ac_objext; then 4172 : OK 4173 else 4174 am_cv_prog_cc_c_o=no 4175 break 4176 fi 4177 done 4178 rm -f core conftest* 4179 unset am_i 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4182$as_echo "$am_cv_prog_cc_c_o" >&6; } 4183if test "$am_cv_prog_cc_c_o" != yes; then 4184 # Losing compiler, so override with the script. 4185 # FIXME: It is wrong to rewrite CC. 4186 # But if we don't then we get into trouble of one sort or another. 4187 # A longer-term fix would be to have automake use am__CC in this case, 4188 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4189 CC="$am_aux_dir/compile $CC" 4190fi 4191ac_ext=c 4192ac_cpp='$CPP $CPPFLAGS' 4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4195ac_compiler_gnu=$ac_cv_c_compiler_gnu 4196 4197 4198depcc="$CC" am_compiler_list= 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4201$as_echo_n "checking dependency style of $depcc... " >&6; } 4202if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4206 # We make a subdir and do the tests there. Otherwise we can end up 4207 # making bogus files that we don't know about and never remove. For 4208 # instance it was reported that on HP-UX the gcc test will end up 4209 # making a dummy file named 'D' -- because '-MD' means "put the output 4210 # in D". 4211 rm -rf conftest.dir 4212 mkdir conftest.dir 4213 # Copy depcomp to subdir because otherwise we won't find it if we're 4214 # using a relative directory. 4215 cp "$am_depcomp" conftest.dir 4216 cd conftest.dir 4217 # We will build objects and dependencies in a subdirectory because 4218 # it helps to detect inapplicable dependency modes. For instance 4219 # both Tru64's cc and ICC support -MD to output dependencies as a 4220 # side effect of compilation, but ICC will put the dependencies in 4221 # the current directory while Tru64 will put them in the object 4222 # directory. 4223 mkdir sub 4224 4225 am_cv_CC_dependencies_compiler_type=none 4226 if test "$am_compiler_list" = ""; then 4227 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4228 fi 4229 am__universal=false 4230 case " $depcc " in #( 4231 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4232 esac 4233 4234 for depmode in $am_compiler_list; do 4235 # Setup a source with many dependencies, because some compilers 4236 # like to wrap large dependency lists on column 80 (with \), and 4237 # we should not choose a depcomp mode which is confused by this. 4238 # 4239 # We need to recreate these files for each test, as the compiler may 4240 # overwrite some of them when testing with obscure command lines. 4241 # This happens at least with the AIX C compiler. 4242 : > sub/conftest.c 4243 for i in 1 2 3 4 5 6; do 4244 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4245 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4246 # Solaris 10 /bin/sh. 4247 echo '/* dummy */' > sub/conftst$i.h 4248 done 4249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4250 4251 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4252 # mode. It turns out that the SunPro C++ compiler does not properly 4253 # handle '-M -o', and we need to detect this. Also, some Intel 4254 # versions had trouble with output in subdirs. 4255 am__obj=sub/conftest.${OBJEXT-o} 4256 am__minus_obj="-o $am__obj" 4257 case $depmode in 4258 gcc) 4259 # This depmode causes a compiler race in universal mode. 4260 test "$am__universal" = false || continue 4261 ;; 4262 nosideeffect) 4263 # After this tag, mechanisms are not by side-effect, so they'll 4264 # only be used when explicitly requested. 4265 if test "x$enable_dependency_tracking" = xyes; then 4266 continue 4267 else 4268 break 4269 fi 4270 ;; 4271 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4272 # This compiler won't grok '-c -o', but also, the minuso test has 4273 # not run yet. These depmodes are late enough in the game, and 4274 # so weak that their functioning should not be impacted. 4275 am__obj=conftest.${OBJEXT-o} 4276 am__minus_obj= 4277 ;; 4278 none) break ;; 4279 esac 4280 if depmode=$depmode \ 4281 source=sub/conftest.c object=$am__obj \ 4282 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4283 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4284 >/dev/null 2>conftest.err && 4285 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4286 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4287 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4288 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4289 # icc doesn't choke on unknown options, it will just issue warnings 4290 # or remarks (even with -Werror). So we grep stderr for any message 4291 # that says an option was ignored or not supported. 4292 # When given -MP, icc 7.0 and 7.1 complain thusly: 4293 # icc: Command line warning: ignoring option '-M'; no argument required 4294 # The diagnosis changed in icc 8.0: 4295 # icc: Command line remark: option '-MP' not supported 4296 if (grep 'ignoring option' conftest.err || 4297 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4298 am_cv_CC_dependencies_compiler_type=$depmode 4299 break 4300 fi 4301 fi 4302 done 4303 4304 cd .. 4305 rm -rf conftest.dir 4306else 4307 am_cv_CC_dependencies_compiler_type=none 4308fi 4309 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4312$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4313CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4314 4315 if 4316 test "x$enable_dependency_tracking" != xno \ 4317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4318 am__fastdepCC_TRUE= 4319 am__fastdepCC_FALSE='#' 4320else 4321 am__fastdepCC_TRUE='#' 4322 am__fastdepCC_FALSE= 4323fi 4324 4325 4326 4327ac_ext=c 4328ac_cpp='$CPP $CPPFLAGS' 4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4331ac_compiler_gnu=$ac_cv_c_compiler_gnu 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4333$as_echo_n "checking how to run the C preprocessor... " >&6; } 4334# On Suns, sometimes $CPP names a directory. 4335if test -n "$CPP" && test -d "$CPP"; then 4336 CPP= 4337fi 4338if test -z "$CPP"; then 4339 if ${ac_cv_prog_CPP+:} false; then : 4340 $as_echo_n "(cached) " >&6 4341else 4342 # Double quotes because CPP needs to be expanded 4343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4344 do 4345 ac_preproc_ok=false 4346for ac_c_preproc_warn_flag in '' yes 4347do 4348 # Use a header file that comes with gcc, so configuring glibc 4349 # with a fresh cross-compiler works. 4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4351 # <limits.h> exists even on freestanding compilers. 4352 # On the NeXT, cc -E runs the code through the compiler's parser, 4353 # not just through cpp. "Syntax error" is here to catch this case. 4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356#ifdef __STDC__ 4357# include <limits.h> 4358#else 4359# include <assert.h> 4360#endif 4361 Syntax error 4362_ACEOF 4363if ac_fn_c_try_cpp "$LINENO"; then : 4364 4365else 4366 # Broken: fails on valid input. 4367continue 4368fi 4369rm -f conftest.err conftest.i conftest.$ac_ext 4370 4371 # OK, works on sane cases. Now check whether nonexistent headers 4372 # can be detected and how. 4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4374/* end confdefs.h. */ 4375#include <ac_nonexistent.h> 4376_ACEOF 4377if ac_fn_c_try_cpp "$LINENO"; then : 4378 # Broken: success on invalid input. 4379continue 4380else 4381 # Passes both tests. 4382ac_preproc_ok=: 4383break 4384fi 4385rm -f conftest.err conftest.i conftest.$ac_ext 4386 4387done 4388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4389rm -f conftest.i conftest.err conftest.$ac_ext 4390if $ac_preproc_ok; then : 4391 break 4392fi 4393 4394 done 4395 ac_cv_prog_CPP=$CPP 4396 4397fi 4398 CPP=$ac_cv_prog_CPP 4399else 4400 ac_cv_prog_CPP=$CPP 4401fi 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4403$as_echo "$CPP" >&6; } 4404ac_preproc_ok=false 4405for ac_c_preproc_warn_flag in '' yes 4406do 4407 # Use a header file that comes with gcc, so configuring glibc 4408 # with a fresh cross-compiler works. 4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4410 # <limits.h> exists even on freestanding compilers. 4411 # On the NeXT, cc -E runs the code through the compiler's parser, 4412 # not just through cpp. "Syntax error" is here to catch this case. 4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4414/* end confdefs.h. */ 4415#ifdef __STDC__ 4416# include <limits.h> 4417#else 4418# include <assert.h> 4419#endif 4420 Syntax error 4421_ACEOF 4422if ac_fn_c_try_cpp "$LINENO"; then : 4423 4424else 4425 # Broken: fails on valid input. 4426continue 4427fi 4428rm -f conftest.err conftest.i conftest.$ac_ext 4429 4430 # OK, works on sane cases. Now check whether nonexistent headers 4431 # can be detected and how. 4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4433/* end confdefs.h. */ 4434#include <ac_nonexistent.h> 4435_ACEOF 4436if ac_fn_c_try_cpp "$LINENO"; then : 4437 # Broken: success on invalid input. 4438continue 4439else 4440 # Passes both tests. 4441ac_preproc_ok=: 4442break 4443fi 4444rm -f conftest.err conftest.i conftest.$ac_ext 4445 4446done 4447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4448rm -f conftest.i conftest.err conftest.$ac_ext 4449if $ac_preproc_ok; then : 4450 4451else 4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4454as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4455See \`config.log' for more details" "$LINENO" 5; } 4456fi 4457 4458ac_ext=c 4459ac_cpp='$CPP $CPPFLAGS' 4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4462ac_compiler_gnu=$ac_cv_c_compiler_gnu 4463 4464 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4466$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4467if ${ac_cv_path_GREP+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 if test -z "$GREP"; then 4471 ac_path_GREP_found=false 4472 # Loop through the user's path and test for each of PROGNAME-LIST 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_prog in grep ggrep; do 4479 for ac_exec_ext in '' $ac_executable_extensions; do 4480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4481 as_fn_executable_p "$ac_path_GREP" || continue 4482# Check for GNU ac_path_GREP and select it if it is found. 4483 # Check for GNU $ac_path_GREP 4484case `"$ac_path_GREP" --version 2>&1` in 4485*GNU*) 4486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4487*) 4488 ac_count=0 4489 $as_echo_n 0123456789 >"conftest.in" 4490 while : 4491 do 4492 cat "conftest.in" "conftest.in" >"conftest.tmp" 4493 mv "conftest.tmp" "conftest.in" 4494 cp "conftest.in" "conftest.nl" 4495 $as_echo 'GREP' >> "conftest.nl" 4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4498 as_fn_arith $ac_count + 1 && ac_count=$as_val 4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4500 # Best one so far, save it but keep looking for a better one 4501 ac_cv_path_GREP="$ac_path_GREP" 4502 ac_path_GREP_max=$ac_count 4503 fi 4504 # 10*(2^10) chars as input seems more than enough 4505 test $ac_count -gt 10 && break 4506 done 4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4508esac 4509 4510 $ac_path_GREP_found && break 3 4511 done 4512 done 4513 done 4514IFS=$as_save_IFS 4515 if test -z "$ac_cv_path_GREP"; then 4516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4517 fi 4518else 4519 ac_cv_path_GREP=$GREP 4520fi 4521 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4524$as_echo "$ac_cv_path_GREP" >&6; } 4525 GREP="$ac_cv_path_GREP" 4526 4527 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4529$as_echo_n "checking for egrep... " >&6; } 4530if ${ac_cv_path_EGREP+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4534 then ac_cv_path_EGREP="$GREP -E" 4535 else 4536 if test -z "$EGREP"; then 4537 ac_path_EGREP_found=false 4538 # Loop through the user's path and test for each of PROGNAME-LIST 4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4541do 4542 IFS=$as_save_IFS 4543 test -z "$as_dir" && as_dir=. 4544 for ac_prog in egrep; do 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4547 as_fn_executable_p "$ac_path_EGREP" || continue 4548# Check for GNU ac_path_EGREP and select it if it is found. 4549 # Check for GNU $ac_path_EGREP 4550case `"$ac_path_EGREP" --version 2>&1` in 4551*GNU*) 4552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4553*) 4554 ac_count=0 4555 $as_echo_n 0123456789 >"conftest.in" 4556 while : 4557 do 4558 cat "conftest.in" "conftest.in" >"conftest.tmp" 4559 mv "conftest.tmp" "conftest.in" 4560 cp "conftest.in" "conftest.nl" 4561 $as_echo 'EGREP' >> "conftest.nl" 4562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4564 as_fn_arith $ac_count + 1 && ac_count=$as_val 4565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4566 # Best one so far, save it but keep looking for a better one 4567 ac_cv_path_EGREP="$ac_path_EGREP" 4568 ac_path_EGREP_max=$ac_count 4569 fi 4570 # 10*(2^10) chars as input seems more than enough 4571 test $ac_count -gt 10 && break 4572 done 4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4574esac 4575 4576 $ac_path_EGREP_found && break 3 4577 done 4578 done 4579 done 4580IFS=$as_save_IFS 4581 if test -z "$ac_cv_path_EGREP"; then 4582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4583 fi 4584else 4585 ac_cv_path_EGREP=$EGREP 4586fi 4587 4588 fi 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4591$as_echo "$ac_cv_path_EGREP" >&6; } 4592 EGREP="$ac_cv_path_EGREP" 4593 4594 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4596$as_echo_n "checking for ANSI C header files... " >&6; } 4597if ${ac_cv_header_stdc+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602#include <stdlib.h> 4603#include <stdarg.h> 4604#include <string.h> 4605#include <float.h> 4606 4607int 4608main () 4609{ 4610 4611 ; 4612 return 0; 4613} 4614_ACEOF 4615if ac_fn_c_try_compile "$LINENO"; then : 4616 ac_cv_header_stdc=yes 4617else 4618 ac_cv_header_stdc=no 4619fi 4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4621 4622if test $ac_cv_header_stdc = yes; then 4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626#include <string.h> 4627 4628_ACEOF 4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4630 $EGREP "memchr" >/dev/null 2>&1; then : 4631 4632else 4633 ac_cv_header_stdc=no 4634fi 4635rm -f conftest* 4636 4637fi 4638 4639if test $ac_cv_header_stdc = yes; then 4640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642/* end confdefs.h. */ 4643#include <stdlib.h> 4644 4645_ACEOF 4646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4647 $EGREP "free" >/dev/null 2>&1; then : 4648 4649else 4650 ac_cv_header_stdc=no 4651fi 4652rm -f conftest* 4653 4654fi 4655 4656if test $ac_cv_header_stdc = yes; then 4657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4658 if test "$cross_compiling" = yes; then : 4659 : 4660else 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663#include <ctype.h> 4664#include <stdlib.h> 4665#if ((' ' & 0x0FF) == 0x020) 4666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4668#else 4669# define ISLOWER(c) \ 4670 (('a' <= (c) && (c) <= 'i') \ 4671 || ('j' <= (c) && (c) <= 'r') \ 4672 || ('s' <= (c) && (c) <= 'z')) 4673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4674#endif 4675 4676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4677int 4678main () 4679{ 4680 int i; 4681 for (i = 0; i < 256; i++) 4682 if (XOR (islower (i), ISLOWER (i)) 4683 || toupper (i) != TOUPPER (i)) 4684 return 2; 4685 return 0; 4686} 4687_ACEOF 4688if ac_fn_c_try_run "$LINENO"; then : 4689 4690else 4691 ac_cv_header_stdc=no 4692fi 4693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4694 conftest.$ac_objext conftest.beam conftest.$ac_ext 4695fi 4696 4697fi 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4700$as_echo "$ac_cv_header_stdc" >&6; } 4701if test $ac_cv_header_stdc = yes; then 4702 4703$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4704 4705fi 4706 4707# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4708for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4709 inttypes.h stdint.h unistd.h 4710do : 4711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4712ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4713" 4714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4715 cat >>confdefs.h <<_ACEOF 4716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4717_ACEOF 4718 4719fi 4720 4721done 4722 4723 4724 4725 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4726if test "x$ac_cv_header_minix_config_h" = xyes; then : 4727 MINIX=yes 4728else 4729 MINIX= 4730fi 4731 4732 4733 if test "$MINIX" = yes; then 4734 4735$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4736 4737 4738$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4739 4740 4741$as_echo "#define _MINIX 1" >>confdefs.h 4742 4743 fi 4744 4745 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4747$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4748if ${ac_cv_safe_to_define___extensions__+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753 4754# define __EXTENSIONS__ 1 4755 $ac_includes_default 4756int 4757main () 4758{ 4759 4760 ; 4761 return 0; 4762} 4763_ACEOF 4764if ac_fn_c_try_compile "$LINENO"; then : 4765 ac_cv_safe_to_define___extensions__=yes 4766else 4767 ac_cv_safe_to_define___extensions__=no 4768fi 4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4770fi 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4772$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4773 test $ac_cv_safe_to_define___extensions__ = yes && 4774 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4775 4776 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4777 4778 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4779 4780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4781 4782 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4783 4784 4785# Make sure we can run config.sub. 4786$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4788 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4790$as_echo_n "checking build system type... " >&6; } 4791if ${ac_cv_build+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 ac_build_alias=$build_alias 4795test "x$ac_build_alias" = x && 4796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4797test "x$ac_build_alias" = x && 4798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4799ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4801 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4804$as_echo "$ac_cv_build" >&6; } 4805case $ac_cv_build in 4806*-*-*) ;; 4807*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4808esac 4809build=$ac_cv_build 4810ac_save_IFS=$IFS; IFS='-' 4811set x $ac_cv_build 4812shift 4813build_cpu=$1 4814build_vendor=$2 4815shift; shift 4816# Remember, the first character of IFS is used to create $*, 4817# except with old shells: 4818build_os=$* 4819IFS=$ac_save_IFS 4820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4821 4822 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4824$as_echo_n "checking host system type... " >&6; } 4825if ${ac_cv_host+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 if test "x$host_alias" = x; then 4829 ac_cv_host=$ac_cv_build 4830else 4831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4833fi 4834 4835fi 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4837$as_echo "$ac_cv_host" >&6; } 4838case $ac_cv_host in 4839*-*-*) ;; 4840*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4841esac 4842host=$ac_cv_host 4843ac_save_IFS=$IFS; IFS='-' 4844set x $ac_cv_host 4845shift 4846host_cpu=$1 4847host_vendor=$2 4848shift; shift 4849# Remember, the first character of IFS is used to create $*, 4850# except with old shells: 4851host_os=$* 4852IFS=$ac_save_IFS 4853case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4854 4855 4856 4857# Update library versions 4858# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html 4859 4860 libknot_VERSION_INFO="-version-info 12:0:0" 4861 4862 libknot_SOVERSION="12" 4863 4864 case $host_os in #( 4865 darwin*) : 4866 libknot_SONAME="libknot.12.dylib" 4867 ;; #( 4868 *) : 4869 libknot_SONAME="libknot.so.12" 4870 4871 ;; #( 4872 *) : 4873 ;; 4874esac 4875 4876 4877 libdnssec_VERSION_INFO="-version-info 8:0:0" 4878 4879 libdnssec_SOVERSION="8" 4880 4881 case $host_os in #( 4882 darwin*) : 4883 libdnssec_SONAME="libdnssec.8.dylib" 4884 ;; #( 4885 *) : 4886 libdnssec_SONAME="libdnssec.so.8" 4887 4888 ;; #( 4889 *) : 4890 ;; 4891esac 4892 4893 4894 libzscanner_VERSION_INFO="-version-info 4:0:0" 4895 4896 libzscanner_SOVERSION="4" 4897 4898 case $host_os in #( 4899 darwin*) : 4900 libzscanner_SONAME="libzscanner.4.dylib" 4901 ;; #( 4902 *) : 4903 libzscanner_SONAME="libzscanner.so.4" 4904 4905 ;; #( 4906 *) : 4907 ;; 4908esac 4909 4910 4911KNOT_VERSION_MAJOR=3 4912 4913KNOT_VERSION_MINOR=1 4914 4915KNOT_VERSION_PATCH=5 4916 4917 4918# Store ./configure parameters and CFLAGS 4919 4920cat >>confdefs.h <<_ACEOF 4921#define CONFIGURE_PARAMS "$*" 4922_ACEOF 4923 4924 4925cat >>confdefs.h <<_ACEOF 4926#define CONFIGURE_CFLAGS "$CFLAGS" 4927_ACEOF 4928 4929 4930ac_config_files="$ac_config_files src/libknot/version.h src/libdnssec/version.h src/libzscanner/version.h" 4931 4932 4933# Automatically update release date based on NEWS 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4935$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4936if ${ac_cv_path_SED+:} false; then : 4937 $as_echo_n "(cached) " >&6 4938else 4939 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4940 for ac_i in 1 2 3 4 5 6 7; do 4941 ac_script="$ac_script$as_nl$ac_script" 4942 done 4943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4944 { ac_script=; unset ac_script;} 4945 if test -z "$SED"; then 4946 ac_path_SED_found=false 4947 # Loop through the user's path and test for each of PROGNAME-LIST 4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949for as_dir in $PATH 4950do 4951 IFS=$as_save_IFS 4952 test -z "$as_dir" && as_dir=. 4953 for ac_prog in sed gsed; do 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4956 as_fn_executable_p "$ac_path_SED" || continue 4957# Check for GNU ac_path_SED and select it if it is found. 4958 # Check for GNU $ac_path_SED 4959case `"$ac_path_SED" --version 2>&1` in 4960*GNU*) 4961 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4962*) 4963 ac_count=0 4964 $as_echo_n 0123456789 >"conftest.in" 4965 while : 4966 do 4967 cat "conftest.in" "conftest.in" >"conftest.tmp" 4968 mv "conftest.tmp" "conftest.in" 4969 cp "conftest.in" "conftest.nl" 4970 $as_echo '' >> "conftest.nl" 4971 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4973 as_fn_arith $ac_count + 1 && ac_count=$as_val 4974 if test $ac_count -gt ${ac_path_SED_max-0}; then 4975 # Best one so far, save it but keep looking for a better one 4976 ac_cv_path_SED="$ac_path_SED" 4977 ac_path_SED_max=$ac_count 4978 fi 4979 # 10*(2^10) chars as input seems more than enough 4980 test $ac_count -gt 10 && break 4981 done 4982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4983esac 4984 4985 $ac_path_SED_found && break 3 4986 done 4987 done 4988 done 4989IFS=$as_save_IFS 4990 if test -z "$ac_cv_path_SED"; then 4991 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4992 fi 4993else 4994 ac_cv_path_SED=$SED 4995fi 4996 4997fi 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4999$as_echo "$ac_cv_path_SED" >&6; } 5000 SED="$ac_cv_path_SED" 5001 rm -f conftest.sed 5002 5003release_date=$($SED -n 's/^Knot DNS .* (\(.*\))/\1/p;q;' ${srcdir}/NEWS) 5004RELEASE_DATE=$release_date 5005 5006 5007# Set compiler compatibility flags 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5009$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5010if ${ac_cv_prog_cc_c99+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 ac_cv_prog_cc_c99=no 5014ac_save_CC=$CC 5015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017#include <stdarg.h> 5018#include <stdbool.h> 5019#include <stdlib.h> 5020#include <wchar.h> 5021#include <stdio.h> 5022 5023// Check varargs macros. These examples are taken from C99 6.10.3.5. 5024#define debug(...) fprintf (stderr, __VA_ARGS__) 5025#define showlist(...) puts (#__VA_ARGS__) 5026#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5027static void 5028test_varargs_macros (void) 5029{ 5030 int x = 1234; 5031 int y = 5678; 5032 debug ("Flag"); 5033 debug ("X = %d\n", x); 5034 showlist (The first, second, and third items.); 5035 report (x>y, "x is %d but y is %d", x, y); 5036} 5037 5038// Check long long types. 5039#define BIG64 18446744073709551615ull 5040#define BIG32 4294967295ul 5041#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5042#if !BIG_OK 5043 your preprocessor is broken; 5044#endif 5045#if BIG_OK 5046#else 5047 your preprocessor is broken; 5048#endif 5049static long long int bignum = -9223372036854775807LL; 5050static unsigned long long int ubignum = BIG64; 5051 5052struct incomplete_array 5053{ 5054 int datasize; 5055 double data[]; 5056}; 5057 5058struct named_init { 5059 int number; 5060 const wchar_t *name; 5061 double average; 5062}; 5063 5064typedef const char *ccp; 5065 5066static inline int 5067test_restrict (ccp restrict text) 5068{ 5069 // See if C++-style comments work. 5070 // Iterate through items via the restricted pointer. 5071 // Also check for declarations in for loops. 5072 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5073 continue; 5074 return 0; 5075} 5076 5077// Check varargs and va_copy. 5078static void 5079test_varargs (const char *format, ...) 5080{ 5081 va_list args; 5082 va_start (args, format); 5083 va_list args_copy; 5084 va_copy (args_copy, args); 5085 5086 const char *str; 5087 int number; 5088 float fnumber; 5089 5090 while (*format) 5091 { 5092 switch (*format++) 5093 { 5094 case 's': // string 5095 str = va_arg (args_copy, const char *); 5096 break; 5097 case 'd': // int 5098 number = va_arg (args_copy, int); 5099 break; 5100 case 'f': // float 5101 fnumber = va_arg (args_copy, double); 5102 break; 5103 default: 5104 break; 5105 } 5106 } 5107 va_end (args_copy); 5108 va_end (args); 5109} 5110 5111int 5112main () 5113{ 5114 5115 // Check bool. 5116 _Bool success = false; 5117 5118 // Check restrict. 5119 if (test_restrict ("String literal") == 0) 5120 success = true; 5121 char *restrict newvar = "Another string"; 5122 5123 // Check varargs. 5124 test_varargs ("s, d' f .", "string", 65, 34.234); 5125 test_varargs_macros (); 5126 5127 // Check flexible array members. 5128 struct incomplete_array *ia = 5129 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5130 ia->datasize = 10; 5131 for (int i = 0; i < ia->datasize; ++i) 5132 ia->data[i] = i * 1.234; 5133 5134 // Check named initializers. 5135 struct named_init ni = { 5136 .number = 34, 5137 .name = L"Test wide string", 5138 .average = 543.34343, 5139 }; 5140 5141 ni.number = 58; 5142 5143 int dynamic_array[ni.number]; 5144 dynamic_array[ni.number - 1] = 543; 5145 5146 // work around unused variable warnings 5147 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5148 || dynamic_array[ni.number - 1] != 543); 5149 5150 ; 5151 return 0; 5152} 5153_ACEOF 5154for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5155do 5156 CC="$ac_save_CC $ac_arg" 5157 if ac_fn_c_try_compile "$LINENO"; then : 5158 ac_cv_prog_cc_c99=$ac_arg 5159fi 5160rm -f core conftest.err conftest.$ac_objext 5161 test "x$ac_cv_prog_cc_c99" != "xno" && break 5162done 5163rm -f conftest.$ac_ext 5164CC=$ac_save_CC 5165 5166fi 5167# AC_CACHE_VAL 5168case "x$ac_cv_prog_cc_c99" in 5169 x) 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5171$as_echo "none needed" >&6; } ;; 5172 xno) 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5174$as_echo "unsupported" >&6; } ;; 5175 *) 5176 CC="$CC $ac_cv_prog_cc_c99" 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5178$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5179esac 5180if test "x$ac_cv_prog_cc_c99" != xno; then : 5181 5182fi 5183 5184 # AC_PROG_CC not supported by CentOS 7 5185 # Needed by CentOS 7 5186ac_c_preproc_warn_flag=yes 5187 5188# Set default CFLAGS 5189CFLAGS="$CFLAGS -Wall -Wshadow -Werror=format-security -Werror=implicit -Werror=attributes -Wstrict-prototypes" 5190 5191as_CACHEVAR=`$as_echo "ax_cv_check_cflags_"-Werror"_"-fpredictive-commoning"" | $as_tr_sh` 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-fpredictive-commoning\"" >&5 5193$as_echo_n "checking whether C compiler accepts \"-fpredictive-commoning\"... " >&6; } 5194if eval \${$as_CACHEVAR+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 5198 ax_check_save_flags=$CFLAGS 5199 CFLAGS="$CFLAGS "-Werror" "-fpredictive-commoning"" 5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201/* end confdefs.h. */ 5202 5203int 5204main () 5205{ 5206 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211if ac_fn_c_try_compile "$LINENO"; then : 5212 eval "$as_CACHEVAR=yes" 5213else 5214 eval "$as_CACHEVAR=no" 5215fi 5216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5217 CFLAGS=$ax_check_save_flags 5218fi 5219eval ac_res=\$$as_CACHEVAR 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5221$as_echo "$ac_res" >&6; } 5222if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 5223 CFLAGS="$CFLAGS -fpredictive-commoning" 5224else 5225 : 5226fi 5227 5228as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_""_"-Wl,--exclude-libs,ALL"" | $as_tr_sh` 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts \"-Wl,--exclude-libs,ALL\"" >&5 5230$as_echo_n "checking whether the linker accepts \"-Wl,--exclude-libs,ALL\"... " >&6; } 5231if eval \${$as_CACHEVAR+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 5235 ax_check_save_flags=$LDFLAGS 5236 LDFLAGS="$LDFLAGS "" "-Wl,--exclude-libs,ALL"" 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239 5240int 5241main () 5242{ 5243 5244 ; 5245 return 0; 5246} 5247_ACEOF 5248if ac_fn_c_try_link "$LINENO"; then : 5249 eval "$as_CACHEVAR=yes" 5250else 5251 eval "$as_CACHEVAR=no" 5252fi 5253rm -f core conftest.err conftest.$ac_objext \ 5254 conftest$ac_exeext conftest.$ac_ext 5255 LDFLAGS=$ax_check_save_flags 5256fi 5257eval ac_res=\$$as_CACHEVAR 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5259$as_echo "$ac_res" >&6; } 5260if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 5261 ldflag_exclude_libs="-Wl,--exclude-libs,ALL" 5262else 5263 ldflag_exclude_libs="" 5264fi 5265 5266LDFLAG_EXCLUDE_LIBS=$ldflag_exclude_libs 5267 5268 5269# Get processor byte ordering 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5271$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5272if ${ac_cv_c_bigendian+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 ac_cv_c_bigendian=unknown 5276 # See if we're dealing with a universal compiler. 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279#ifndef __APPLE_CC__ 5280 not a universal capable compiler 5281 #endif 5282 typedef int dummy; 5283 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 5287 # Check for potential -arch flags. It is not universal unless 5288 # there are at least two -arch flags with different values. 5289 ac_arch= 5290 ac_prev= 5291 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5292 if test -n "$ac_prev"; then 5293 case $ac_word in 5294 i?86 | x86_64 | ppc | ppc64) 5295 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5296 ac_arch=$ac_word 5297 else 5298 ac_cv_c_bigendian=universal 5299 break 5300 fi 5301 ;; 5302 esac 5303 ac_prev= 5304 elif test "x$ac_word" = "x-arch"; then 5305 ac_prev=arch 5306 fi 5307 done 5308fi 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310 if test $ac_cv_c_bigendian = unknown; then 5311 # See if sys/param.h defines the BYTE_ORDER macro. 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313/* end confdefs.h. */ 5314#include <sys/types.h> 5315 #include <sys/param.h> 5316 5317int 5318main () 5319{ 5320#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5321 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5322 && LITTLE_ENDIAN) 5323 bogus endian macros 5324 #endif 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330if ac_fn_c_try_compile "$LINENO"; then : 5331 # It does; now see whether it defined to BIG_ENDIAN or not. 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333/* end confdefs.h. */ 5334#include <sys/types.h> 5335 #include <sys/param.h> 5336 5337int 5338main () 5339{ 5340#if BYTE_ORDER != BIG_ENDIAN 5341 not big endian 5342 #endif 5343 5344 ; 5345 return 0; 5346} 5347_ACEOF 5348if ac_fn_c_try_compile "$LINENO"; then : 5349 ac_cv_c_bigendian=yes 5350else 5351 ac_cv_c_bigendian=no 5352fi 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354fi 5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5356 fi 5357 if test $ac_cv_c_bigendian = unknown; then 5358 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360/* end confdefs.h. */ 5361#include <limits.h> 5362 5363int 5364main () 5365{ 5366#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5367 bogus endian macros 5368 #endif 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374if ac_fn_c_try_compile "$LINENO"; then : 5375 # It does; now see whether it defined to _BIG_ENDIAN or not. 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378#include <limits.h> 5379 5380int 5381main () 5382{ 5383#ifndef _BIG_ENDIAN 5384 not big endian 5385 #endif 5386 5387 ; 5388 return 0; 5389} 5390_ACEOF 5391if ac_fn_c_try_compile "$LINENO"; then : 5392 ac_cv_c_bigendian=yes 5393else 5394 ac_cv_c_bigendian=no 5395fi 5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5397fi 5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5399 fi 5400 if test $ac_cv_c_bigendian = unknown; then 5401 # Compile a test program. 5402 if test "$cross_compiling" = yes; then : 5403 # Try to guess by grepping values from an object file. 5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5405/* end confdefs.h. */ 5406short int ascii_mm[] = 5407 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5408 short int ascii_ii[] = 5409 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5410 int use_ascii (int i) { 5411 return ascii_mm[i] + ascii_ii[i]; 5412 } 5413 short int ebcdic_ii[] = 5414 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5415 short int ebcdic_mm[] = 5416 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5417 int use_ebcdic (int i) { 5418 return ebcdic_mm[i] + ebcdic_ii[i]; 5419 } 5420 extern int foo; 5421 5422int 5423main () 5424{ 5425return use_ascii (foo) == use_ebcdic (foo); 5426 ; 5427 return 0; 5428} 5429_ACEOF 5430if ac_fn_c_try_compile "$LINENO"; then : 5431 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5432 ac_cv_c_bigendian=yes 5433 fi 5434 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5435 if test "$ac_cv_c_bigendian" = unknown; then 5436 ac_cv_c_bigendian=no 5437 else 5438 # finding both strings is unlikely to happen, but who knows? 5439 ac_cv_c_bigendian=unknown 5440 fi 5441 fi 5442fi 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444else 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447$ac_includes_default 5448int 5449main () 5450{ 5451 5452 /* Are we little or big endian? From Harbison&Steele. */ 5453 union 5454 { 5455 long int l; 5456 char c[sizeof (long int)]; 5457 } u; 5458 u.l = 1; 5459 return u.c[sizeof (long int) - 1] == 1; 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_run "$LINENO"; then : 5466 ac_cv_c_bigendian=no 5467else 5468 ac_cv_c_bigendian=yes 5469fi 5470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5471 conftest.$ac_objext conftest.beam conftest.$ac_ext 5472fi 5473 5474 fi 5475fi 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5477$as_echo "$ac_cv_c_bigendian" >&6; } 5478 case $ac_cv_c_bigendian in #( 5479 yes) 5480 endianity=big-endian;; #( 5481 no) 5482 endianity=little-endian ;; #( 5483 universal) 5484 5485$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5486 5487 ;; #( 5488 *) 5489 as_fn_error $? "unknown endianness 5490 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5491 esac 5492 5493if test "$endianity" = "little-endian"; then : 5494 5495 5496$as_echo "#define ENDIANITY_LITTLE 1" >>confdefs.h 5497 5498fi 5499 5500# Check if an archiver is available 5501if test -n "$ac_tool_prefix"; then 5502 for ac_prog in ar lib "link -lib" 5503 do 5504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5505set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507$as_echo_n "checking for $ac_word... " >&6; } 5508if ${ac_cv_prog_AR+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 if test -n "$AR"; then 5512 ac_cv_prog_AR="$AR" # Let the user override the test. 5513else 5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515for as_dir in $PATH 5516do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5521 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525done 5526 done 5527IFS=$as_save_IFS 5528 5529fi 5530fi 5531AR=$ac_cv_prog_AR 5532if test -n "$AR"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5534$as_echo "$AR" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539 5540 5541 test -n "$AR" && break 5542 done 5543fi 5544if test -z "$AR"; then 5545 ac_ct_AR=$AR 5546 for ac_prog in ar lib "link -lib" 5547do 5548 # Extract the first word of "$ac_prog", so it can be a program name with args. 5549set dummy $ac_prog; ac_word=$2 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5551$as_echo_n "checking for $ac_word... " >&6; } 5552if ${ac_cv_prog_ac_ct_AR+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 if test -n "$ac_ct_AR"; then 5556 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5557else 5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5559for as_dir in $PATH 5560do 5561 IFS=$as_save_IFS 5562 test -z "$as_dir" && as_dir=. 5563 for ac_exec_ext in '' $ac_executable_extensions; do 5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5565 ac_cv_prog_ac_ct_AR="$ac_prog" 5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5567 break 2 5568 fi 5569done 5570 done 5571IFS=$as_save_IFS 5572 5573fi 5574fi 5575ac_ct_AR=$ac_cv_prog_ac_ct_AR 5576if test -n "$ac_ct_AR"; then 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5578$as_echo "$ac_ct_AR" >&6; } 5579else 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5581$as_echo "no" >&6; } 5582fi 5583 5584 5585 test -n "$ac_ct_AR" && break 5586done 5587 5588 if test "x$ac_ct_AR" = x; then 5589 AR="false" 5590 else 5591 case $cross_compiling:$ac_tool_warned in 5592yes:) 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5595ac_tool_warned=yes ;; 5596esac 5597 AR=$ac_ct_AR 5598 fi 5599fi 5600 5601: ${AR=ar} 5602 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5604$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5605if ${am_cv_ar_interface+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 ac_ext=c 5609ac_cpp='$CPP $CPPFLAGS' 5610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5612ac_compiler_gnu=$ac_cv_c_compiler_gnu 5613 5614 am_cv_ar_interface=ar 5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616/* end confdefs.h. */ 5617int some_variable = 0; 5618_ACEOF 5619if ac_fn_c_try_compile "$LINENO"; then : 5620 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5622 (eval $am_ar_try) 2>&5 5623 ac_status=$? 5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5625 test $ac_status = 0; } 5626 if test "$ac_status" -eq 0; then 5627 am_cv_ar_interface=ar 5628 else 5629 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5631 (eval $am_ar_try) 2>&5 5632 ac_status=$? 5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5634 test $ac_status = 0; } 5635 if test "$ac_status" -eq 0; then 5636 am_cv_ar_interface=lib 5637 else 5638 am_cv_ar_interface=unknown 5639 fi 5640 fi 5641 rm -f conftest.lib libconftest.a 5642 5643fi 5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5645 ac_ext=c 5646ac_cpp='$CPP $CPPFLAGS' 5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5649ac_compiler_gnu=$ac_cv_c_compiler_gnu 5650 5651fi 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5653$as_echo "$am_cv_ar_interface" >&6; } 5654 5655case $am_cv_ar_interface in 5656ar) 5657 ;; 5658lib) 5659 # Microsoft lib, so override with the ar-lib wrapper script. 5660 # FIXME: It is wrong to rewrite AR. 5661 # But if we don't then we get into trouble of one sort or another. 5662 # A longer-term fix would be to have automake use am__AR in this case, 5663 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5664 # similar. 5665 AR="$am_aux_dir/ar-lib $AR" 5666 ;; 5667unknown) 5668 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5669 ;; 5670esac 5671 5672 5673 5674 5675# Initialize libtool 5676case `pwd` in 5677 *\ * | *\ *) 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5679$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5680esac 5681 5682 5683 5684macro_version='2.4.6' 5685macro_revision='2.4.6' 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699ltmain=$ac_aux_dir/ltmain.sh 5700 5701# Backslashify metacharacters that are still active within 5702# double-quoted strings. 5703sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5704 5705# Same as above, but do not quote variable references. 5706double_quote_subst='s/\(["`\\]\)/\\\1/g' 5707 5708# Sed substitution to delay expansion of an escaped shell variable in a 5709# double_quote_subst'ed string. 5710delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5711 5712# Sed substitution to delay expansion of an escaped single quote. 5713delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5714 5715# Sed substitution to avoid accidental globbing in evaled expressions 5716no_glob_subst='s/\*/\\\*/g' 5717 5718ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5719ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5720ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5721 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5723$as_echo_n "checking how to print strings... " >&6; } 5724# Test print first, because it will be a builtin if present. 5725if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5726 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5727 ECHO='print -r --' 5728elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5729 ECHO='printf %s\n' 5730else 5731 # Use this function as a fallback that always works. 5732 func_fallback_echo () 5733 { 5734 eval 'cat <<_LTECHO_EOF 5735$1 5736_LTECHO_EOF' 5737 } 5738 ECHO='func_fallback_echo' 5739fi 5740 5741# func_echo_all arg... 5742# Invoke $ECHO with all args, space-separated. 5743func_echo_all () 5744{ 5745 $ECHO "" 5746} 5747 5748case $ECHO in 5749 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5750$as_echo "printf" >&6; } ;; 5751 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5752$as_echo "print -r" >&6; } ;; 5753 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5754$as_echo "cat" >&6; } ;; 5755esac 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5771$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5772if ${ac_cv_path_SED+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5776 for ac_i in 1 2 3 4 5 6 7; do 5777 ac_script="$ac_script$as_nl$ac_script" 5778 done 5779 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5780 { ac_script=; unset ac_script;} 5781 if test -z "$SED"; then 5782 ac_path_SED_found=false 5783 # Loop through the user's path and test for each of PROGNAME-LIST 5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH 5786do 5787 IFS=$as_save_IFS 5788 test -z "$as_dir" && as_dir=. 5789 for ac_prog in sed gsed; do 5790 for ac_exec_ext in '' $ac_executable_extensions; do 5791 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5792 as_fn_executable_p "$ac_path_SED" || continue 5793# Check for GNU ac_path_SED and select it if it is found. 5794 # Check for GNU $ac_path_SED 5795case `"$ac_path_SED" --version 2>&1` in 5796*GNU*) 5797 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5798*) 5799 ac_count=0 5800 $as_echo_n 0123456789 >"conftest.in" 5801 while : 5802 do 5803 cat "conftest.in" "conftest.in" >"conftest.tmp" 5804 mv "conftest.tmp" "conftest.in" 5805 cp "conftest.in" "conftest.nl" 5806 $as_echo '' >> "conftest.nl" 5807 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5809 as_fn_arith $ac_count + 1 && ac_count=$as_val 5810 if test $ac_count -gt ${ac_path_SED_max-0}; then 5811 # Best one so far, save it but keep looking for a better one 5812 ac_cv_path_SED="$ac_path_SED" 5813 ac_path_SED_max=$ac_count 5814 fi 5815 # 10*(2^10) chars as input seems more than enough 5816 test $ac_count -gt 10 && break 5817 done 5818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5819esac 5820 5821 $ac_path_SED_found && break 3 5822 done 5823 done 5824 done 5825IFS=$as_save_IFS 5826 if test -z "$ac_cv_path_SED"; then 5827 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5828 fi 5829else 5830 ac_cv_path_SED=$SED 5831fi 5832 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5835$as_echo "$ac_cv_path_SED" >&6; } 5836 SED="$ac_cv_path_SED" 5837 rm -f conftest.sed 5838 5839test -z "$SED" && SED=sed 5840Xsed="$SED -e 1s/^X//" 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5853$as_echo_n "checking for fgrep... " >&6; } 5854if ${ac_cv_path_FGREP+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5858 then ac_cv_path_FGREP="$GREP -F" 5859 else 5860 if test -z "$FGREP"; then 5861 ac_path_FGREP_found=false 5862 # Loop through the user's path and test for each of PROGNAME-LIST 5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5865do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_prog in fgrep; do 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5871 as_fn_executable_p "$ac_path_FGREP" || continue 5872# Check for GNU ac_path_FGREP and select it if it is found. 5873 # Check for GNU $ac_path_FGREP 5874case `"$ac_path_FGREP" --version 2>&1` in 5875*GNU*) 5876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5877*) 5878 ac_count=0 5879 $as_echo_n 0123456789 >"conftest.in" 5880 while : 5881 do 5882 cat "conftest.in" "conftest.in" >"conftest.tmp" 5883 mv "conftest.tmp" "conftest.in" 5884 cp "conftest.in" "conftest.nl" 5885 $as_echo 'FGREP' >> "conftest.nl" 5886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5888 as_fn_arith $ac_count + 1 && ac_count=$as_val 5889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5890 # Best one so far, save it but keep looking for a better one 5891 ac_cv_path_FGREP="$ac_path_FGREP" 5892 ac_path_FGREP_max=$ac_count 5893 fi 5894 # 10*(2^10) chars as input seems more than enough 5895 test $ac_count -gt 10 && break 5896 done 5897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5898esac 5899 5900 $ac_path_FGREP_found && break 3 5901 done 5902 done 5903 done 5904IFS=$as_save_IFS 5905 if test -z "$ac_cv_path_FGREP"; then 5906 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5907 fi 5908else 5909 ac_cv_path_FGREP=$FGREP 5910fi 5911 5912 fi 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5915$as_echo "$ac_cv_path_FGREP" >&6; } 5916 FGREP="$ac_cv_path_FGREP" 5917 5918 5919test -z "$GREP" && GREP=grep 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939# Check whether --with-gnu-ld was given. 5940if test "${with_gnu_ld+set}" = set; then : 5941 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5942else 5943 with_gnu_ld=no 5944fi 5945 5946ac_prog=ld 5947if test yes = "$GCC"; then 5948 # Check if gcc -print-prog-name=ld gives a path. 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5950$as_echo_n "checking for ld used by $CC... " >&6; } 5951 case $host in 5952 *-*-mingw*) 5953 # gcc leaves a trailing carriage return, which upsets mingw 5954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5955 *) 5956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5957 esac 5958 case $ac_prog in 5959 # Accept absolute paths. 5960 [\\/]* | ?:[\\/]*) 5961 re_direlt='/[^/][^/]*/\.\./' 5962 # Canonicalize the pathname of ld 5963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5966 done 5967 test -z "$LD" && LD=$ac_prog 5968 ;; 5969 "") 5970 # If it fails, then pretend we aren't using GCC. 5971 ac_prog=ld 5972 ;; 5973 *) 5974 # If it is relative, then search for the first ld in PATH. 5975 with_gnu_ld=unknown 5976 ;; 5977 esac 5978elif test yes = "$with_gnu_ld"; then 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5980$as_echo_n "checking for GNU ld... " >&6; } 5981else 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5983$as_echo_n "checking for non-GNU ld... " >&6; } 5984fi 5985if ${lt_cv_path_LD+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 if test -z "$LD"; then 5989 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5990 for ac_dir in $PATH; do 5991 IFS=$lt_save_ifs 5992 test -z "$ac_dir" && ac_dir=. 5993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5994 lt_cv_path_LD=$ac_dir/$ac_prog 5995 # Check to see if the program is GNU ld. I'd rather use --version, 5996 # but apparently some variants of GNU ld only accept -v. 5997 # Break only if it was the GNU/non-GNU ld that we prefer. 5998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5999 *GNU* | *'with BFD'*) 6000 test no != "$with_gnu_ld" && break 6001 ;; 6002 *) 6003 test yes != "$with_gnu_ld" && break 6004 ;; 6005 esac 6006 fi 6007 done 6008 IFS=$lt_save_ifs 6009else 6010 lt_cv_path_LD=$LD # Let the user override the test with a path. 6011fi 6012fi 6013 6014LD=$lt_cv_path_LD 6015if test -n "$LD"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6017$as_echo "$LD" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6024$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6025if ${lt_cv_prog_gnu_ld+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6029case `$LD -v 2>&1 </dev/null` in 6030*GNU* | *'with BFD'*) 6031 lt_cv_prog_gnu_ld=yes 6032 ;; 6033*) 6034 lt_cv_prog_gnu_ld=no 6035 ;; 6036esac 6037fi 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6039$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6040with_gnu_ld=$lt_cv_prog_gnu_ld 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6051$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6052if ${lt_cv_path_NM+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$NM"; then 6056 # Let the user override the test. 6057 lt_cv_path_NM=$NM 6058else 6059 lt_nm_to_check=${ac_tool_prefix}nm 6060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6061 lt_nm_to_check="$lt_nm_to_check nm" 6062 fi 6063 for lt_tmp_nm in $lt_nm_to_check; do 6064 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6066 IFS=$lt_save_ifs 6067 test -z "$ac_dir" && ac_dir=. 6068 tmp_nm=$ac_dir/$lt_tmp_nm 6069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6070 # Check to see if the nm accepts a BSD-compat flag. 6071 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6072 # nm: unknown option "B" ignored 6073 # Tru64's nm complains that /dev/null is an invalid object file 6074 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6075 case $build_os in 6076 mingw*) lt_bad_file=conftest.nm/nofile ;; 6077 *) lt_bad_file=/dev/null ;; 6078 esac 6079 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6080 *$lt_bad_file* | *'Invalid file or object type'*) 6081 lt_cv_path_NM="$tmp_nm -B" 6082 break 2 6083 ;; 6084 *) 6085 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6086 */dev/null*) 6087 lt_cv_path_NM="$tmp_nm -p" 6088 break 2 6089 ;; 6090 *) 6091 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6092 continue # so that we can try to find one that supports BSD flags 6093 ;; 6094 esac 6095 ;; 6096 esac 6097 fi 6098 done 6099 IFS=$lt_save_ifs 6100 done 6101 : ${lt_cv_path_NM=no} 6102fi 6103fi 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6105$as_echo "$lt_cv_path_NM" >&6; } 6106if test no != "$lt_cv_path_NM"; then 6107 NM=$lt_cv_path_NM 6108else 6109 # Didn't find any BSD compatible name lister, look for dumpbin. 6110 if test -n "$DUMPBIN"; then : 6111 # Let the user override the test. 6112 else 6113 if test -n "$ac_tool_prefix"; then 6114 for ac_prog in dumpbin "link -dump" 6115 do 6116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6117set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if ${ac_cv_prog_DUMPBIN+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$DUMPBIN"; then 6124 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6133 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138 done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143DUMPBIN=$ac_cv_prog_DUMPBIN 6144if test -n "$DUMPBIN"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6146$as_echo "$DUMPBIN" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153 test -n "$DUMPBIN" && break 6154 done 6155fi 6156if test -z "$DUMPBIN"; then 6157 ac_ct_DUMPBIN=$DUMPBIN 6158 for ac_prog in dumpbin "link -dump" 6159do 6160 # Extract the first word of "$ac_prog", so it can be a program name with args. 6161set dummy $ac_prog; ac_word=$2 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6163$as_echo_n "checking for $ac_word... " >&6; } 6164if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6165 $as_echo_n "(cached) " >&6 6166else 6167 if test -n "$ac_ct_DUMPBIN"; then 6168 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6169else 6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6171for as_dir in $PATH 6172do 6173 IFS=$as_save_IFS 6174 test -z "$as_dir" && as_dir=. 6175 for ac_exec_ext in '' $ac_executable_extensions; do 6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6177 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6179 break 2 6180 fi 6181done 6182 done 6183IFS=$as_save_IFS 6184 6185fi 6186fi 6187ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6188if test -n "$ac_ct_DUMPBIN"; then 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6190$as_echo "$ac_ct_DUMPBIN" >&6; } 6191else 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6193$as_echo "no" >&6; } 6194fi 6195 6196 6197 test -n "$ac_ct_DUMPBIN" && break 6198done 6199 6200 if test "x$ac_ct_DUMPBIN" = x; then 6201 DUMPBIN=":" 6202 else 6203 case $cross_compiling:$ac_tool_warned in 6204yes:) 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6207ac_tool_warned=yes ;; 6208esac 6209 DUMPBIN=$ac_ct_DUMPBIN 6210 fi 6211fi 6212 6213 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6214 *COFF*) 6215 DUMPBIN="$DUMPBIN -symbols -headers" 6216 ;; 6217 *) 6218 DUMPBIN=: 6219 ;; 6220 esac 6221 fi 6222 6223 if test : != "$DUMPBIN"; then 6224 NM=$DUMPBIN 6225 fi 6226fi 6227test -z "$NM" && NM=nm 6228 6229 6230 6231 6232 6233 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6235$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6236if ${lt_cv_nm_interface+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 lt_cv_nm_interface="BSD nm" 6240 echo "int some_variable = 0;" > conftest.$ac_ext 6241 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6242 (eval "$ac_compile" 2>conftest.err) 6243 cat conftest.err >&5 6244 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6246 cat conftest.err >&5 6247 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6248 cat conftest.out >&5 6249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6250 lt_cv_nm_interface="MS dumpbin" 6251 fi 6252 rm -f conftest* 6253fi 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6255$as_echo "$lt_cv_nm_interface" >&6; } 6256 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6258$as_echo_n "checking whether ln -s works... " >&6; } 6259LN_S=$as_ln_s 6260if test "$LN_S" = "ln -s"; then 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6262$as_echo "yes" >&6; } 6263else 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6265$as_echo "no, using $LN_S" >&6; } 6266fi 6267 6268# find the maximum length of command line arguments 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6270$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6271if ${lt_cv_sys_max_cmd_len+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 i=0 6275 teststring=ABCD 6276 6277 case $build_os in 6278 msdosdjgpp*) 6279 # On DJGPP, this test can blow up pretty badly due to problems in libc 6280 # (any single argument exceeding 2000 bytes causes a buffer overrun 6281 # during glob expansion). Even if it were fixed, the result of this 6282 # check would be larger than it should be. 6283 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6284 ;; 6285 6286 gnu*) 6287 # Under GNU Hurd, this test is not required because there is 6288 # no limit to the length of command line arguments. 6289 # Libtool will interpret -1 as no limit whatsoever 6290 lt_cv_sys_max_cmd_len=-1; 6291 ;; 6292 6293 cygwin* | mingw* | cegcc*) 6294 # On Win9x/ME, this test blows up -- it succeeds, but takes 6295 # about 5 minutes as the teststring grows exponentially. 6296 # Worse, since 9x/ME are not pre-emptively multitasking, 6297 # you end up with a "frozen" computer, even though with patience 6298 # the test eventually succeeds (with a max line length of 256k). 6299 # Instead, let's just punt: use the minimum linelength reported by 6300 # all of the supported platforms: 8192 (on NT/2K/XP). 6301 lt_cv_sys_max_cmd_len=8192; 6302 ;; 6303 6304 mint*) 6305 # On MiNT this can take a long time and run out of memory. 6306 lt_cv_sys_max_cmd_len=8192; 6307 ;; 6308 6309 amigaos*) 6310 # On AmigaOS with pdksh, this test takes hours, literally. 6311 # So we just punt and use a minimum line length of 8192. 6312 lt_cv_sys_max_cmd_len=8192; 6313 ;; 6314 6315 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6316 # This has been around since 386BSD, at least. Likely further. 6317 if test -x /sbin/sysctl; then 6318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6319 elif test -x /usr/sbin/sysctl; then 6320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6321 else 6322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6323 fi 6324 # And add a safety zone 6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6327 ;; 6328 6329 interix*) 6330 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6331 lt_cv_sys_max_cmd_len=196608 6332 ;; 6333 6334 os2*) 6335 # The test takes a long time on OS/2. 6336 lt_cv_sys_max_cmd_len=8192 6337 ;; 6338 6339 osf*) 6340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6342 # nice to cause kernel panics so lets avoid the loop below. 6343 # First set a reasonable default. 6344 lt_cv_sys_max_cmd_len=16384 6345 # 6346 if test -x /sbin/sysconfig; then 6347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6348 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6349 esac 6350 fi 6351 ;; 6352 sco3.2v5*) 6353 lt_cv_sys_max_cmd_len=102400 6354 ;; 6355 sysv5* | sco5v6* | sysv4.2uw2*) 6356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6357 if test -n "$kargmax"; then 6358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6359 else 6360 lt_cv_sys_max_cmd_len=32768 6361 fi 6362 ;; 6363 *) 6364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6365 if test -n "$lt_cv_sys_max_cmd_len" && \ 6366 test undefined != "$lt_cv_sys_max_cmd_len"; then 6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6369 else 6370 # Make teststring a little bigger before we do anything with it. 6371 # a 1K string should be a reasonable start. 6372 for i in 1 2 3 4 5 6 7 8; do 6373 teststring=$teststring$teststring 6374 done 6375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6376 # If test is not a shell built-in, we'll probably end up computing a 6377 # maximum length that is only half of the actual maximum length, but 6378 # we can't tell. 6379 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6380 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6381 test 17 != "$i" # 1/2 MB should be enough 6382 do 6383 i=`expr $i + 1` 6384 teststring=$teststring$teststring 6385 done 6386 # Only check the string length outside the loop. 6387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6388 teststring= 6389 # Add a significant safety factor because C++ compilers can tack on 6390 # massive amounts of additional arguments before passing them to the 6391 # linker. It appears as though 1/2 is a usable value. 6392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6393 fi 6394 ;; 6395 esac 6396 6397fi 6398 6399if test -n "$lt_cv_sys_max_cmd_len"; then 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6401$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6402else 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6404$as_echo "none" >&6; } 6405fi 6406max_cmd_len=$lt_cv_sys_max_cmd_len 6407 6408 6409 6410 6411 6412 6413: ${CP="cp -f"} 6414: ${MV="mv -f"} 6415: ${RM="rm -f"} 6416 6417if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6418 lt_unset=unset 6419else 6420 lt_unset=false 6421fi 6422 6423 6424 6425 6426 6427# test EBCDIC or ASCII 6428case `echo X|tr X '\101'` in 6429 A) # ASCII based system 6430 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6431 lt_SP2NL='tr \040 \012' 6432 lt_NL2SP='tr \015\012 \040\040' 6433 ;; 6434 *) # EBCDIC based system 6435 lt_SP2NL='tr \100 \n' 6436 lt_NL2SP='tr \r\n \100\100' 6437 ;; 6438esac 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6449$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6450if ${lt_cv_to_host_file_cmd+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 case $host in 6454 *-*-mingw* ) 6455 case $build in 6456 *-*-mingw* ) # actually msys 6457 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6458 ;; 6459 *-*-cygwin* ) 6460 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6461 ;; 6462 * ) # otherwise, assume *nix 6463 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6464 ;; 6465 esac 6466 ;; 6467 *-*-cygwin* ) 6468 case $build in 6469 *-*-mingw* ) # actually msys 6470 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6471 ;; 6472 *-*-cygwin* ) 6473 lt_cv_to_host_file_cmd=func_convert_file_noop 6474 ;; 6475 * ) # otherwise, assume *nix 6476 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6477 ;; 6478 esac 6479 ;; 6480 * ) # unhandled hosts (and "normal" native builds) 6481 lt_cv_to_host_file_cmd=func_convert_file_noop 6482 ;; 6483esac 6484 6485fi 6486 6487to_host_file_cmd=$lt_cv_to_host_file_cmd 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6489$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6490 6491 6492 6493 6494 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6496$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6497if ${lt_cv_to_tool_file_cmd+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 #assume ordinary cross tools, or native build. 6501lt_cv_to_tool_file_cmd=func_convert_file_noop 6502case $host in 6503 *-*-mingw* ) 6504 case $build in 6505 *-*-mingw* ) # actually msys 6506 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6507 ;; 6508 esac 6509 ;; 6510esac 6511 6512fi 6513 6514to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6516$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6517 6518 6519 6520 6521 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6523$as_echo_n "checking for $LD option to reload object files... " >&6; } 6524if ${lt_cv_ld_reload_flag+:} false; then : 6525 $as_echo_n "(cached) " >&6 6526else 6527 lt_cv_ld_reload_flag='-r' 6528fi 6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6530$as_echo "$lt_cv_ld_reload_flag" >&6; } 6531reload_flag=$lt_cv_ld_reload_flag 6532case $reload_flag in 6533"" | " "*) ;; 6534*) reload_flag=" $reload_flag" ;; 6535esac 6536reload_cmds='$LD$reload_flag -o $output$reload_objs' 6537case $host_os in 6538 cygwin* | mingw* | pw32* | cegcc*) 6539 if test yes != "$GCC"; then 6540 reload_cmds=false 6541 fi 6542 ;; 6543 darwin*) 6544 if test yes = "$GCC"; then 6545 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6546 else 6547 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6548 fi 6549 ;; 6550esac 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560if test -n "$ac_tool_prefix"; then 6561 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6562set dummy ${ac_tool_prefix}objdump; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_OBJDUMP+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$OBJDUMP"; then 6569 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588OBJDUMP=$ac_cv_prog_OBJDUMP 6589if test -n "$OBJDUMP"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6591$as_echo "$OBJDUMP" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_OBJDUMP"; then 6600 ac_ct_OBJDUMP=$OBJDUMP 6601 # Extract the first word of "objdump", so it can be a program name with args. 6602set dummy objdump; ac_word=$2 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604$as_echo_n "checking for $ac_word... " >&6; } 6605if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 if test -n "$ac_ct_OBJDUMP"; then 6609 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6618 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623 done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6629if test -n "$ac_ct_OBJDUMP"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6631$as_echo "$ac_ct_OBJDUMP" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 if test "x$ac_ct_OBJDUMP" = x; then 6638 OBJDUMP="false" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6644ac_tool_warned=yes ;; 6645esac 6646 OBJDUMP=$ac_ct_OBJDUMP 6647 fi 6648else 6649 OBJDUMP="$ac_cv_prog_OBJDUMP" 6650fi 6651 6652test -z "$OBJDUMP" && OBJDUMP=objdump 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6663$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6664if ${lt_cv_deplibs_check_method+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666else 6667 lt_cv_file_magic_cmd='$MAGIC_CMD' 6668lt_cv_file_magic_test_file= 6669lt_cv_deplibs_check_method='unknown' 6670# Need to set the preceding variable on all platforms that support 6671# interlibrary dependencies. 6672# 'none' -- dependencies not supported. 6673# 'unknown' -- same as none, but documents that we really don't know. 6674# 'pass_all' -- all dependencies passed with no checks. 6675# 'test_compile' -- check by making test program. 6676# 'file_magic [[regex]]' -- check by looking for files in library path 6677# that responds to the $file_magic_cmd with a given extended regex. 6678# If you have 'file' or equivalent on your system and you're not sure 6679# whether 'pass_all' will *always* work, you probably want this one. 6680 6681case $host_os in 6682aix[4-9]*) 6683 lt_cv_deplibs_check_method=pass_all 6684 ;; 6685 6686beos*) 6687 lt_cv_deplibs_check_method=pass_all 6688 ;; 6689 6690bsdi[45]*) 6691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6692 lt_cv_file_magic_cmd='/usr/bin/file -L' 6693 lt_cv_file_magic_test_file=/shlib/libc.so 6694 ;; 6695 6696cygwin*) 6697 # func_win32_libid is a shell function defined in ltmain.sh 6698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6699 lt_cv_file_magic_cmd='func_win32_libid' 6700 ;; 6701 6702mingw* | pw32*) 6703 # Base MSYS/MinGW do not provide the 'file' command needed by 6704 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6705 # unless we find 'file', for example because we are cross-compiling. 6706 if ( file / ) >/dev/null 2>&1; then 6707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6708 lt_cv_file_magic_cmd='func_win32_libid' 6709 else 6710 # Keep this pattern in sync with the one in func_win32_libid. 6711 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6712 lt_cv_file_magic_cmd='$OBJDUMP -f' 6713 fi 6714 ;; 6715 6716cegcc*) 6717 # use the weaker test based on 'objdump'. See mingw*. 6718 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6719 lt_cv_file_magic_cmd='$OBJDUMP -f' 6720 ;; 6721 6722darwin* | rhapsody*) 6723 lt_cv_deplibs_check_method=pass_all 6724 ;; 6725 6726freebsd* | dragonfly*) 6727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6728 case $host_cpu in 6729 i*86 ) 6730 # Not sure whether the presence of OpenBSD here was a mistake. 6731 # Let's accept both of them until this is cleared up. 6732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6733 lt_cv_file_magic_cmd=/usr/bin/file 6734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6735 ;; 6736 esac 6737 else 6738 lt_cv_deplibs_check_method=pass_all 6739 fi 6740 ;; 6741 6742haiku*) 6743 lt_cv_deplibs_check_method=pass_all 6744 ;; 6745 6746hpux10.20* | hpux11*) 6747 lt_cv_file_magic_cmd=/usr/bin/file 6748 case $host_cpu in 6749 ia64*) 6750 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6751 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6752 ;; 6753 hppa*64*) 6754 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]' 6755 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6756 ;; 6757 *) 6758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6759 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6760 ;; 6761 esac 6762 ;; 6763 6764interix[3-9]*) 6765 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6767 ;; 6768 6769irix5* | irix6* | nonstopux*) 6770 case $LD in 6771 *-32|*"-32 ") libmagic=32-bit;; 6772 *-n32|*"-n32 ") libmagic=N32;; 6773 *-64|*"-64 ") libmagic=64-bit;; 6774 *) libmagic=never-match;; 6775 esac 6776 lt_cv_deplibs_check_method=pass_all 6777 ;; 6778 6779# This must be glibc/ELF. 6780linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6781 lt_cv_deplibs_check_method=pass_all 6782 ;; 6783 6784netbsd* | netbsdelf*-gnu) 6785 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6787 else 6788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6789 fi 6790 ;; 6791 6792newos6*) 6793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6794 lt_cv_file_magic_cmd=/usr/bin/file 6795 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6796 ;; 6797 6798*nto* | *qnx*) 6799 lt_cv_deplibs_check_method=pass_all 6800 ;; 6801 6802openbsd* | bitrig*) 6803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6805 else 6806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6807 fi 6808 ;; 6809 6810osf3* | osf4* | osf5*) 6811 lt_cv_deplibs_check_method=pass_all 6812 ;; 6813 6814rdos*) 6815 lt_cv_deplibs_check_method=pass_all 6816 ;; 6817 6818solaris*) 6819 lt_cv_deplibs_check_method=pass_all 6820 ;; 6821 6822sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6823 lt_cv_deplibs_check_method=pass_all 6824 ;; 6825 6826sysv4 | sysv4.3*) 6827 case $host_vendor in 6828 motorola) 6829 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]' 6830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6831 ;; 6832 ncr) 6833 lt_cv_deplibs_check_method=pass_all 6834 ;; 6835 sequent) 6836 lt_cv_file_magic_cmd='/bin/file' 6837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6838 ;; 6839 sni) 6840 lt_cv_file_magic_cmd='/bin/file' 6841 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6842 lt_cv_file_magic_test_file=/lib/libc.so 6843 ;; 6844 siemens) 6845 lt_cv_deplibs_check_method=pass_all 6846 ;; 6847 pc) 6848 lt_cv_deplibs_check_method=pass_all 6849 ;; 6850 esac 6851 ;; 6852 6853tpf*) 6854 lt_cv_deplibs_check_method=pass_all 6855 ;; 6856os2*) 6857 lt_cv_deplibs_check_method=pass_all 6858 ;; 6859esac 6860 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6863$as_echo "$lt_cv_deplibs_check_method" >&6; } 6864 6865file_magic_glob= 6866want_nocaseglob=no 6867if test "$build" = "$host"; then 6868 case $host_os in 6869 mingw* | pw32*) 6870 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6871 want_nocaseglob=yes 6872 else 6873 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6874 fi 6875 ;; 6876 esac 6877fi 6878 6879file_magic_cmd=$lt_cv_file_magic_cmd 6880deplibs_check_method=$lt_cv_deplibs_check_method 6881test -z "$deplibs_check_method" && deplibs_check_method=unknown 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904if test -n "$ac_tool_prefix"; then 6905 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6906set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908$as_echo_n "checking for $ac_word... " >&6; } 6909if ${ac_cv_prog_DLLTOOL+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -n "$DLLTOOL"; then 6913 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6922 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927 done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932DLLTOOL=$ac_cv_prog_DLLTOOL 6933if test -n "$DLLTOOL"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6935$as_echo "$DLLTOOL" >&6; } 6936else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940 6941 6942fi 6943if test -z "$ac_cv_prog_DLLTOOL"; then 6944 ac_ct_DLLTOOL=$DLLTOOL 6945 # Extract the first word of "dlltool", so it can be a program name with args. 6946set dummy dlltool; ac_word=$2 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6948$as_echo_n "checking for $ac_word... " >&6; } 6949if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 if test -n "$ac_ct_DLLTOOL"; then 6953 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6954else 6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6956for as_dir in $PATH 6957do 6958 IFS=$as_save_IFS 6959 test -z "$as_dir" && as_dir=. 6960 for ac_exec_ext in '' $ac_executable_extensions; do 6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6962 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6964 break 2 6965 fi 6966done 6967 done 6968IFS=$as_save_IFS 6969 6970fi 6971fi 6972ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6973if test -n "$ac_ct_DLLTOOL"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6975$as_echo "$ac_ct_DLLTOOL" >&6; } 6976else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978$as_echo "no" >&6; } 6979fi 6980 6981 if test "x$ac_ct_DLLTOOL" = x; then 6982 DLLTOOL="false" 6983 else 6984 case $cross_compiling:$ac_tool_warned in 6985yes:) 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6988ac_tool_warned=yes ;; 6989esac 6990 DLLTOOL=$ac_ct_DLLTOOL 6991 fi 6992else 6993 DLLTOOL="$ac_cv_prog_DLLTOOL" 6994fi 6995 6996test -z "$DLLTOOL" && DLLTOOL=dlltool 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7008$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7009if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 lt_cv_sharedlib_from_linklib_cmd='unknown' 7013 7014case $host_os in 7015cygwin* | mingw* | pw32* | cegcc*) 7016 # two different shell functions defined in ltmain.sh; 7017 # decide which one to use based on capabilities of $DLLTOOL 7018 case `$DLLTOOL --help 2>&1` in 7019 *--identify-strict*) 7020 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7021 ;; 7022 *) 7023 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7024 ;; 7025 esac 7026 ;; 7027*) 7028 # fallback: assume linklib IS sharedlib 7029 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7030 ;; 7031esac 7032 7033fi 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7035$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7036sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7037test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7038 7039 7040 7041 7042 7043 7044 7045if test -n "$ac_tool_prefix"; then 7046 for ac_prog in ar 7047 do 7048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7049set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7051$as_echo_n "checking for $ac_word... " >&6; } 7052if ${ac_cv_prog_AR+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 if test -n "$AR"; then 7056 ac_cv_prog_AR="$AR" # Let the user override the test. 7057else 7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059for as_dir in $PATH 7060do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7065 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069done 7070 done 7071IFS=$as_save_IFS 7072 7073fi 7074fi 7075AR=$ac_cv_prog_AR 7076if test -n "$AR"; then 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7078$as_echo "$AR" >&6; } 7079else 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7081$as_echo "no" >&6; } 7082fi 7083 7084 7085 test -n "$AR" && break 7086 done 7087fi 7088if test -z "$AR"; then 7089 ac_ct_AR=$AR 7090 for ac_prog in ar 7091do 7092 # Extract the first word of "$ac_prog", so it can be a program name with args. 7093set dummy $ac_prog; ac_word=$2 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7095$as_echo_n "checking for $ac_word... " >&6; } 7096if ${ac_cv_prog_ac_ct_AR+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 if test -n "$ac_ct_AR"; then 7100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7101else 7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103for as_dir in $PATH 7104do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7109 ac_cv_prog_ac_ct_AR="$ac_prog" 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113done 7114 done 7115IFS=$as_save_IFS 7116 7117fi 7118fi 7119ac_ct_AR=$ac_cv_prog_ac_ct_AR 7120if test -n "$ac_ct_AR"; then 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7122$as_echo "$ac_ct_AR" >&6; } 7123else 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7125$as_echo "no" >&6; } 7126fi 7127 7128 7129 test -n "$ac_ct_AR" && break 7130done 7131 7132 if test "x$ac_ct_AR" = x; then 7133 AR="false" 7134 else 7135 case $cross_compiling:$ac_tool_warned in 7136yes:) 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7139ac_tool_warned=yes ;; 7140esac 7141 AR=$ac_ct_AR 7142 fi 7143fi 7144 7145: ${AR=ar} 7146: ${AR_FLAGS=cr} 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7159$as_echo_n "checking for archiver @FILE support... " >&6; } 7160if ${lt_cv_ar_at_file+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162else 7163 lt_cv_ar_at_file=no 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165/* end confdefs.h. */ 7166 7167int 7168main () 7169{ 7170 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175if ac_fn_c_try_compile "$LINENO"; then : 7176 echo conftest.$ac_objext > conftest.lst 7177 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7179 (eval $lt_ar_try) 2>&5 7180 ac_status=$? 7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7182 test $ac_status = 0; } 7183 if test 0 -eq "$ac_status"; then 7184 # Ensure the archiver fails upon bogus file names. 7185 rm -f conftest.$ac_objext libconftest.a 7186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7187 (eval $lt_ar_try) 2>&5 7188 ac_status=$? 7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7190 test $ac_status = 0; } 7191 if test 0 -ne "$ac_status"; then 7192 lt_cv_ar_at_file=@ 7193 fi 7194 fi 7195 rm -f conftest.* libconftest.a 7196 7197fi 7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7199 7200fi 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7202$as_echo "$lt_cv_ar_at_file" >&6; } 7203 7204if test no = "$lt_cv_ar_at_file"; then 7205 archiver_list_spec= 7206else 7207 archiver_list_spec=$lt_cv_ar_at_file 7208fi 7209 7210 7211 7212 7213 7214 7215 7216if test -n "$ac_tool_prefix"; then 7217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7218set dummy ${ac_tool_prefix}strip; ac_word=$2 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7220$as_echo_n "checking for $ac_word... " >&6; } 7221if ${ac_cv_prog_STRIP+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223else 7224 if test -n "$STRIP"; then 7225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7226else 7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7228for as_dir in $PATH 7229do 7230 IFS=$as_save_IFS 7231 test -z "$as_dir" && as_dir=. 7232 for ac_exec_ext in '' $ac_executable_extensions; do 7233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7234 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7236 break 2 7237 fi 7238done 7239 done 7240IFS=$as_save_IFS 7241 7242fi 7243fi 7244STRIP=$ac_cv_prog_STRIP 7245if test -n "$STRIP"; then 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7247$as_echo "$STRIP" >&6; } 7248else 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7250$as_echo "no" >&6; } 7251fi 7252 7253 7254fi 7255if test -z "$ac_cv_prog_STRIP"; then 7256 ac_ct_STRIP=$STRIP 7257 # Extract the first word of "strip", so it can be a program name with args. 7258set dummy strip; ac_word=$2 7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7260$as_echo_n "checking for $ac_word... " >&6; } 7261if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263else 7264 if test -n "$ac_ct_STRIP"; then 7265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7266else 7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7268for as_dir in $PATH 7269do 7270 IFS=$as_save_IFS 7271 test -z "$as_dir" && as_dir=. 7272 for ac_exec_ext in '' $ac_executable_extensions; do 7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7274 ac_cv_prog_ac_ct_STRIP="strip" 7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7276 break 2 7277 fi 7278done 7279 done 7280IFS=$as_save_IFS 7281 7282fi 7283fi 7284ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7285if test -n "$ac_ct_STRIP"; then 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7287$as_echo "$ac_ct_STRIP" >&6; } 7288else 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7290$as_echo "no" >&6; } 7291fi 7292 7293 if test "x$ac_ct_STRIP" = x; then 7294 STRIP=":" 7295 else 7296 case $cross_compiling:$ac_tool_warned in 7297yes:) 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7300ac_tool_warned=yes ;; 7301esac 7302 STRIP=$ac_ct_STRIP 7303 fi 7304else 7305 STRIP="$ac_cv_prog_STRIP" 7306fi 7307 7308test -z "$STRIP" && STRIP=: 7309 7310 7311 7312 7313 7314 7315if test -n "$ac_tool_prefix"; then 7316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7317set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7319$as_echo_n "checking for $ac_word... " >&6; } 7320if ${ac_cv_prog_RANLIB+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 if test -n "$RANLIB"; then 7324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7325else 7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327for as_dir in $PATH 7328do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7333 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337done 7338 done 7339IFS=$as_save_IFS 7340 7341fi 7342fi 7343RANLIB=$ac_cv_prog_RANLIB 7344if test -n "$RANLIB"; then 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7346$as_echo "$RANLIB" >&6; } 7347else 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7349$as_echo "no" >&6; } 7350fi 7351 7352 7353fi 7354if test -z "$ac_cv_prog_RANLIB"; then 7355 ac_ct_RANLIB=$RANLIB 7356 # Extract the first word of "ranlib", so it can be a program name with args. 7357set dummy ranlib; ac_word=$2 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359$as_echo_n "checking for $ac_word... " >&6; } 7360if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 if test -n "$ac_ct_RANLIB"; then 7364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7365else 7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367for as_dir in $PATH 7368do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7373 ac_cv_prog_ac_ct_RANLIB="ranlib" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377done 7378 done 7379IFS=$as_save_IFS 7380 7381fi 7382fi 7383ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7384if test -n "$ac_ct_RANLIB"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7386$as_echo "$ac_ct_RANLIB" >&6; } 7387else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7389$as_echo "no" >&6; } 7390fi 7391 7392 if test "x$ac_ct_RANLIB" = x; then 7393 RANLIB=":" 7394 else 7395 case $cross_compiling:$ac_tool_warned in 7396yes:) 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7399ac_tool_warned=yes ;; 7400esac 7401 RANLIB=$ac_ct_RANLIB 7402 fi 7403else 7404 RANLIB="$ac_cv_prog_RANLIB" 7405fi 7406 7407test -z "$RANLIB" && RANLIB=: 7408 7409 7410 7411 7412 7413 7414# Determine commands to create old-style static archives. 7415old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7416old_postinstall_cmds='chmod 644 $oldlib' 7417old_postuninstall_cmds= 7418 7419if test -n "$RANLIB"; then 7420 case $host_os in 7421 bitrig* | openbsd*) 7422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7423 ;; 7424 *) 7425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7426 ;; 7427 esac 7428 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7429fi 7430 7431case $host_os in 7432 darwin*) 7433 lock_old_archive_extraction=yes ;; 7434 *) 7435 lock_old_archive_extraction=no ;; 7436esac 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476# If no C compiler was specified, use CC. 7477LTCC=${LTCC-"$CC"} 7478 7479# If no C compiler flags were specified, use CFLAGS. 7480LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7481 7482# Allow CC to be a program name with arguments. 7483compiler=$CC 7484 7485 7486# Check for command to grab the raw symbol name followed by C symbol from nm. 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7488$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7489if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 7493# These are sane defaults that work on at least a few old systems. 7494# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7495 7496# Character class describing NM global symbol codes. 7497symcode='[BCDEGRST]' 7498 7499# Regexp to match symbols that can be accessed directly from C. 7500sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7501 7502# Define system-specific variables. 7503case $host_os in 7504aix*) 7505 symcode='[BCDT]' 7506 ;; 7507cygwin* | mingw* | pw32* | cegcc*) 7508 symcode='[ABCDGISTW]' 7509 ;; 7510hpux*) 7511 if test ia64 = "$host_cpu"; then 7512 symcode='[ABCDEGRST]' 7513 fi 7514 ;; 7515irix* | nonstopux*) 7516 symcode='[BCDEGRST]' 7517 ;; 7518osf*) 7519 symcode='[BCDEGQRST]' 7520 ;; 7521solaris*) 7522 symcode='[BDRT]' 7523 ;; 7524sco3.2v5*) 7525 symcode='[DT]' 7526 ;; 7527sysv4.2uw2*) 7528 symcode='[DT]' 7529 ;; 7530sysv5* | sco5v6* | unixware* | OpenUNIX*) 7531 symcode='[ABDT]' 7532 ;; 7533sysv4) 7534 symcode='[DFNSTU]' 7535 ;; 7536esac 7537 7538# If we're using GNU nm, then use its standard symbol codes. 7539case `$NM -V 2>&1` in 7540*GNU* | *'with BFD'*) 7541 symcode='[ABCDGIRSTW]' ;; 7542esac 7543 7544if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7545 # Gets list of data symbols to import. 7546 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7547 # Adjust the below global symbol transforms to fixup imported variables. 7548 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7549 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7550 lt_c_name_lib_hook="\ 7551 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7552 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7553else 7554 # Disable hooks by default. 7555 lt_cv_sys_global_symbol_to_import= 7556 lt_cdecl_hook= 7557 lt_c_name_hook= 7558 lt_c_name_lib_hook= 7559fi 7560 7561# Transform an extracted symbol line into a proper C declaration. 7562# Some systems (esp. on ia64) link data and code symbols differently, 7563# so use this general approach. 7564lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7565$lt_cdecl_hook\ 7566" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7567" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7568 7569# Transform an extracted symbol line into symbol name and symbol address 7570lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7571$lt_c_name_hook\ 7572" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7573" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7574 7575# Transform an extracted symbol line into symbol name with lib prefix and 7576# symbol address. 7577lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7578$lt_c_name_lib_hook\ 7579" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7580" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7581" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7582 7583# Handle CRLF in mingw tool chain 7584opt_cr= 7585case $build_os in 7586mingw*) 7587 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7588 ;; 7589esac 7590 7591# Try without a prefix underscore, then with it. 7592for ac_symprfx in "" "_"; do 7593 7594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7595 symxfrm="\\1 $ac_symprfx\\2 \\2" 7596 7597 # Write the raw and C identifiers. 7598 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7599 # Fake it for dumpbin and say T for any non-static function, 7600 # D for any global variable and I for any imported variable. 7601 # Also find C++ and __fastcall symbols from MSVC++, 7602 # which start with @ or ?. 7603 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7604" {last_section=section; section=\$ 3};"\ 7605" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7606" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7607" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7608" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7609" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7610" \$ 0!~/External *\|/{next};"\ 7611" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7612" {if(hide[section]) next};"\ 7613" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7614" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7615" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7616" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7617" ' prfx=^$ac_symprfx" 7618 else 7619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7620 fi 7621 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7622 7623 # Check to see that the pipe works correctly. 7624 pipe_works=no 7625 7626 rm -f conftest* 7627 cat > conftest.$ac_ext <<_LT_EOF 7628#ifdef __cplusplus 7629extern "C" { 7630#endif 7631char nm_test_var; 7632void nm_test_func(void); 7633void nm_test_func(void){} 7634#ifdef __cplusplus 7635} 7636#endif 7637int main(){nm_test_var='a';nm_test_func();return(0);} 7638_LT_EOF 7639 7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7641 (eval $ac_compile) 2>&5 7642 ac_status=$? 7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7644 test $ac_status = 0; }; then 7645 # Now try to grab the symbols. 7646 nlist=conftest.nm 7647 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7648 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7649 # Try sorting and uniquifying the output. 7650 if sort "$nlist" | uniq > "$nlist"T; then 7651 mv -f "$nlist"T "$nlist" 7652 else 7653 rm -f "$nlist"T 7654 fi 7655 7656 # Make sure that we snagged all the symbols we need. 7657 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7658 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7659 cat <<_LT_EOF > conftest.$ac_ext 7660/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7661#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7662/* DATA imports from DLLs on WIN32 can't be const, because runtime 7663 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7664# define LT_DLSYM_CONST 7665#elif defined __osf__ 7666/* This system does not cope well with relocations in const data. */ 7667# define LT_DLSYM_CONST 7668#else 7669# define LT_DLSYM_CONST const 7670#endif 7671 7672#ifdef __cplusplus 7673extern "C" { 7674#endif 7675 7676_LT_EOF 7677 # Now generate the symbol file. 7678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7679 7680 cat <<_LT_EOF >> conftest.$ac_ext 7681 7682/* The mapping between symbol names and symbols. */ 7683LT_DLSYM_CONST struct { 7684 const char *name; 7685 void *address; 7686} 7687lt__PROGRAM__LTX_preloaded_symbols[] = 7688{ 7689 { "@PROGRAM@", (void *) 0 }, 7690_LT_EOF 7691 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7692 cat <<\_LT_EOF >> conftest.$ac_ext 7693 {0, (void *) 0} 7694}; 7695 7696/* This works around a problem in FreeBSD linker */ 7697#ifdef FREEBSD_WORKAROUND 7698static const void *lt_preloaded_setup() { 7699 return lt__PROGRAM__LTX_preloaded_symbols; 7700} 7701#endif 7702 7703#ifdef __cplusplus 7704} 7705#endif 7706_LT_EOF 7707 # Now try linking the two files. 7708 mv conftest.$ac_objext conftstm.$ac_objext 7709 lt_globsym_save_LIBS=$LIBS 7710 lt_globsym_save_CFLAGS=$CFLAGS 7711 LIBS=conftstm.$ac_objext 7712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7714 (eval $ac_link) 2>&5 7715 ac_status=$? 7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7717 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7718 pipe_works=yes 7719 fi 7720 LIBS=$lt_globsym_save_LIBS 7721 CFLAGS=$lt_globsym_save_CFLAGS 7722 else 7723 echo "cannot find nm_test_func in $nlist" >&5 7724 fi 7725 else 7726 echo "cannot find nm_test_var in $nlist" >&5 7727 fi 7728 else 7729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7730 fi 7731 else 7732 echo "$progname: failed program was:" >&5 7733 cat conftest.$ac_ext >&5 7734 fi 7735 rm -rf conftest* conftst* 7736 7737 # Do not use the global_symbol_pipe unless it works. 7738 if test yes = "$pipe_works"; then 7739 break 7740 else 7741 lt_cv_sys_global_symbol_pipe= 7742 fi 7743done 7744 7745fi 7746 7747if test -z "$lt_cv_sys_global_symbol_pipe"; then 7748 lt_cv_sys_global_symbol_to_cdecl= 7749fi 7750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7752$as_echo "failed" >&6; } 7753else 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7755$as_echo "ok" >&6; } 7756fi 7757 7758# Response file support. 7759if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7760 nm_file_list_spec='@' 7761elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7762 nm_file_list_spec='@' 7763fi 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7802$as_echo_n "checking for sysroot... " >&6; } 7803 7804# Check whether --with-sysroot was given. 7805if test "${with_sysroot+set}" = set; then : 7806 withval=$with_sysroot; 7807else 7808 with_sysroot=no 7809fi 7810 7811 7812lt_sysroot= 7813case $with_sysroot in #( 7814 yes) 7815 if test yes = "$GCC"; then 7816 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7817 fi 7818 ;; #( 7819 /*) 7820 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7821 ;; #( 7822 no|'') 7823 ;; #( 7824 *) 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7826$as_echo "$with_sysroot" >&6; } 7827 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7828 ;; 7829esac 7830 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7832$as_echo "${lt_sysroot:-no}" >&6; } 7833 7834 7835 7836 7837 7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7839$as_echo_n "checking for a working dd... " >&6; } 7840if ${ac_cv_path_lt_DD+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 printf 0123456789abcdef0123456789abcdef >conftest.i 7844cat conftest.i conftest.i >conftest2.i 7845: ${lt_DD:=$DD} 7846if test -z "$lt_DD"; then 7847 ac_path_lt_DD_found=false 7848 # Loop through the user's path and test for each of PROGNAME-LIST 7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7850for as_dir in $PATH 7851do 7852 IFS=$as_save_IFS 7853 test -z "$as_dir" && as_dir=. 7854 for ac_prog in dd; do 7855 for ac_exec_ext in '' $ac_executable_extensions; do 7856 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7857 as_fn_executable_p "$ac_path_lt_DD" || continue 7858if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7859 cmp -s conftest.i conftest.out \ 7860 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7861fi 7862 $ac_path_lt_DD_found && break 3 7863 done 7864 done 7865 done 7866IFS=$as_save_IFS 7867 if test -z "$ac_cv_path_lt_DD"; then 7868 : 7869 fi 7870else 7871 ac_cv_path_lt_DD=$lt_DD 7872fi 7873 7874rm -f conftest.i conftest2.i conftest.out 7875fi 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7877$as_echo "$ac_cv_path_lt_DD" >&6; } 7878 7879 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7881$as_echo_n "checking how to truncate binary pipes... " >&6; } 7882if ${lt_cv_truncate_bin+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 printf 0123456789abcdef0123456789abcdef >conftest.i 7886cat conftest.i conftest.i >conftest2.i 7887lt_cv_truncate_bin= 7888if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7889 cmp -s conftest.i conftest.out \ 7890 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7891fi 7892rm -f conftest.i conftest2.i conftest.out 7893test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7894fi 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7896$as_echo "$lt_cv_truncate_bin" >&6; } 7897 7898 7899 7900 7901 7902 7903 7904# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7905func_cc_basename () 7906{ 7907 for cc_temp in $*""; do 7908 case $cc_temp in 7909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7911 \-*) ;; 7912 *) break;; 7913 esac 7914 done 7915 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7916} 7917 7918# Check whether --enable-libtool-lock was given. 7919if test "${enable_libtool_lock+set}" = set; then : 7920 enableval=$enable_libtool_lock; 7921fi 7922 7923test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7924 7925# Some flags need to be propagated to the compiler or linker for good 7926# libtool support. 7927case $host in 7928ia64-*-hpux*) 7929 # Find out what ABI is being produced by ac_compile, and set mode 7930 # options accordingly. 7931 echo 'int i;' > conftest.$ac_ext 7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7933 (eval $ac_compile) 2>&5 7934 ac_status=$? 7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7936 test $ac_status = 0; }; then 7937 case `/usr/bin/file conftest.$ac_objext` in 7938 *ELF-32*) 7939 HPUX_IA64_MODE=32 7940 ;; 7941 *ELF-64*) 7942 HPUX_IA64_MODE=64 7943 ;; 7944 esac 7945 fi 7946 rm -rf conftest* 7947 ;; 7948*-*-irix6*) 7949 # Find out what ABI is being produced by ac_compile, and set linker 7950 # options accordingly. 7951 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7953 (eval $ac_compile) 2>&5 7954 ac_status=$? 7955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7956 test $ac_status = 0; }; then 7957 if test yes = "$lt_cv_prog_gnu_ld"; then 7958 case `/usr/bin/file conftest.$ac_objext` in 7959 *32-bit*) 7960 LD="${LD-ld} -melf32bsmip" 7961 ;; 7962 *N32*) 7963 LD="${LD-ld} -melf32bmipn32" 7964 ;; 7965 *64-bit*) 7966 LD="${LD-ld} -melf64bmip" 7967 ;; 7968 esac 7969 else 7970 case `/usr/bin/file conftest.$ac_objext` in 7971 *32-bit*) 7972 LD="${LD-ld} -32" 7973 ;; 7974 *N32*) 7975 LD="${LD-ld} -n32" 7976 ;; 7977 *64-bit*) 7978 LD="${LD-ld} -64" 7979 ;; 7980 esac 7981 fi 7982 fi 7983 rm -rf conftest* 7984 ;; 7985 7986mips64*-*linux*) 7987 # Find out what ABI is being produced by ac_compile, and set linker 7988 # options accordingly. 7989 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7991 (eval $ac_compile) 2>&5 7992 ac_status=$? 7993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7994 test $ac_status = 0; }; then 7995 emul=elf 7996 case `/usr/bin/file conftest.$ac_objext` in 7997 *32-bit*) 7998 emul="${emul}32" 7999 ;; 8000 *64-bit*) 8001 emul="${emul}64" 8002 ;; 8003 esac 8004 case `/usr/bin/file conftest.$ac_objext` in 8005 *MSB*) 8006 emul="${emul}btsmip" 8007 ;; 8008 *LSB*) 8009 emul="${emul}ltsmip" 8010 ;; 8011 esac 8012 case `/usr/bin/file conftest.$ac_objext` in 8013 *N32*) 8014 emul="${emul}n32" 8015 ;; 8016 esac 8017 LD="${LD-ld} -m $emul" 8018 fi 8019 rm -rf conftest* 8020 ;; 8021 8022x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8023s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8024 # Find out what ABI is being produced by ac_compile, and set linker 8025 # options accordingly. Note that the listed cases only cover the 8026 # situations where additional linker options are needed (such as when 8027 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8028 # vice versa); the common cases where no linker options are needed do 8029 # not appear in the list. 8030 echo 'int i;' > conftest.$ac_ext 8031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8032 (eval $ac_compile) 2>&5 8033 ac_status=$? 8034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8035 test $ac_status = 0; }; then 8036 case `/usr/bin/file conftest.o` in 8037 *32-bit*) 8038 case $host in 8039 x86_64-*kfreebsd*-gnu) 8040 LD="${LD-ld} -m elf_i386_fbsd" 8041 ;; 8042 x86_64-*linux*) 8043 case `/usr/bin/file conftest.o` in 8044 *x86-64*) 8045 LD="${LD-ld} -m elf32_x86_64" 8046 ;; 8047 *) 8048 LD="${LD-ld} -m elf_i386" 8049 ;; 8050 esac 8051 ;; 8052 powerpc64le-*linux*) 8053 LD="${LD-ld} -m elf32lppclinux" 8054 ;; 8055 powerpc64-*linux*) 8056 LD="${LD-ld} -m elf32ppclinux" 8057 ;; 8058 s390x-*linux*) 8059 LD="${LD-ld} -m elf_s390" 8060 ;; 8061 sparc64-*linux*) 8062 LD="${LD-ld} -m elf32_sparc" 8063 ;; 8064 esac 8065 ;; 8066 *64-bit*) 8067 case $host in 8068 x86_64-*kfreebsd*-gnu) 8069 LD="${LD-ld} -m elf_x86_64_fbsd" 8070 ;; 8071 x86_64-*linux*) 8072 LD="${LD-ld} -m elf_x86_64" 8073 ;; 8074 powerpcle-*linux*) 8075 LD="${LD-ld} -m elf64lppc" 8076 ;; 8077 powerpc-*linux*) 8078 LD="${LD-ld} -m elf64ppc" 8079 ;; 8080 s390*-*linux*|s390*-*tpf*) 8081 LD="${LD-ld} -m elf64_s390" 8082 ;; 8083 sparc*-*linux*) 8084 LD="${LD-ld} -m elf64_sparc" 8085 ;; 8086 esac 8087 ;; 8088 esac 8089 fi 8090 rm -rf conftest* 8091 ;; 8092 8093*-*-sco3.2v5*) 8094 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8095 SAVE_CFLAGS=$CFLAGS 8096 CFLAGS="$CFLAGS -belf" 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8098$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8099if ${lt_cv_cc_needs_belf+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 ac_ext=c 8103ac_cpp='$CPP $CPPFLAGS' 8104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8106ac_compiler_gnu=$ac_cv_c_compiler_gnu 8107 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_link "$LINENO"; then : 8120 lt_cv_cc_needs_belf=yes 8121else 8122 lt_cv_cc_needs_belf=no 8123fi 8124rm -f core conftest.err conftest.$ac_objext \ 8125 conftest$ac_exeext conftest.$ac_ext 8126 ac_ext=c 8127ac_cpp='$CPP $CPPFLAGS' 8128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8130ac_compiler_gnu=$ac_cv_c_compiler_gnu 8131 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8134$as_echo "$lt_cv_cc_needs_belf" >&6; } 8135 if test yes != "$lt_cv_cc_needs_belf"; then 8136 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8137 CFLAGS=$SAVE_CFLAGS 8138 fi 8139 ;; 8140*-*solaris*) 8141 # Find out what ABI is being produced by ac_compile, and set linker 8142 # options accordingly. 8143 echo 'int i;' > conftest.$ac_ext 8144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8145 (eval $ac_compile) 2>&5 8146 ac_status=$? 8147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8148 test $ac_status = 0; }; then 8149 case `/usr/bin/file conftest.o` in 8150 *64-bit*) 8151 case $lt_cv_prog_gnu_ld in 8152 yes*) 8153 case $host in 8154 i?86-*-solaris*|x86_64-*-solaris*) 8155 LD="${LD-ld} -m elf_x86_64" 8156 ;; 8157 sparc*-*-solaris*) 8158 LD="${LD-ld} -m elf64_sparc" 8159 ;; 8160 esac 8161 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8162 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8163 LD=${LD-ld}_sol2 8164 fi 8165 ;; 8166 *) 8167 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8168 LD="${LD-ld} -64" 8169 fi 8170 ;; 8171 esac 8172 ;; 8173 esac 8174 fi 8175 rm -rf conftest* 8176 ;; 8177esac 8178 8179need_locks=$enable_libtool_lock 8180 8181if test -n "$ac_tool_prefix"; then 8182 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8183set dummy ${ac_tool_prefix}mt; ac_word=$2 8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8185$as_echo_n "checking for $ac_word... " >&6; } 8186if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 if test -n "$MANIFEST_TOOL"; then 8190 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8191else 8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193for as_dir in $PATH 8194do 8195 IFS=$as_save_IFS 8196 test -z "$as_dir" && as_dir=. 8197 for ac_exec_ext in '' $ac_executable_extensions; do 8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8199 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8201 break 2 8202 fi 8203done 8204 done 8205IFS=$as_save_IFS 8206 8207fi 8208fi 8209MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8210if test -n "$MANIFEST_TOOL"; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8212$as_echo "$MANIFEST_TOOL" >&6; } 8213else 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8215$as_echo "no" >&6; } 8216fi 8217 8218 8219fi 8220if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8221 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8222 # Extract the first word of "mt", so it can be a program name with args. 8223set dummy mt; ac_word=$2 8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8225$as_echo_n "checking for $ac_word... " >&6; } 8226if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 if test -n "$ac_ct_MANIFEST_TOOL"; then 8230 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8231else 8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8233for as_dir in $PATH 8234do 8235 IFS=$as_save_IFS 8236 test -z "$as_dir" && as_dir=. 8237 for ac_exec_ext in '' $ac_executable_extensions; do 8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8239 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8241 break 2 8242 fi 8243done 8244 done 8245IFS=$as_save_IFS 8246 8247fi 8248fi 8249ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8250if test -n "$ac_ct_MANIFEST_TOOL"; then 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8252$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8253else 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8255$as_echo "no" >&6; } 8256fi 8257 8258 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8259 MANIFEST_TOOL=":" 8260 else 8261 case $cross_compiling:$ac_tool_warned in 8262yes:) 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8265ac_tool_warned=yes ;; 8266esac 8267 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8268 fi 8269else 8270 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8271fi 8272 8273test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8275$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8276if ${lt_cv_path_mainfest_tool+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 lt_cv_path_mainfest_tool=no 8280 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8281 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8282 cat conftest.err >&5 8283 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8284 lt_cv_path_mainfest_tool=yes 8285 fi 8286 rm -f conftest* 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8289$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8290if test yes != "$lt_cv_path_mainfest_tool"; then 8291 MANIFEST_TOOL=: 8292fi 8293 8294 8295 8296 8297 8298 8299 case $host_os in 8300 rhapsody* | darwin*) 8301 if test -n "$ac_tool_prefix"; then 8302 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8303set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8305$as_echo_n "checking for $ac_word... " >&6; } 8306if ${ac_cv_prog_DSYMUTIL+:} false; then : 8307 $as_echo_n "(cached) " >&6 8308else 8309 if test -n "$DSYMUTIL"; then 8310 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8311else 8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8313for as_dir in $PATH 8314do 8315 IFS=$as_save_IFS 8316 test -z "$as_dir" && as_dir=. 8317 for ac_exec_ext in '' $ac_executable_extensions; do 8318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8319 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8321 break 2 8322 fi 8323done 8324 done 8325IFS=$as_save_IFS 8326 8327fi 8328fi 8329DSYMUTIL=$ac_cv_prog_DSYMUTIL 8330if test -n "$DSYMUTIL"; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8332$as_echo "$DSYMUTIL" >&6; } 8333else 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8335$as_echo "no" >&6; } 8336fi 8337 8338 8339fi 8340if test -z "$ac_cv_prog_DSYMUTIL"; then 8341 ac_ct_DSYMUTIL=$DSYMUTIL 8342 # Extract the first word of "dsymutil", so it can be a program name with args. 8343set dummy dsymutil; ac_word=$2 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8345$as_echo_n "checking for $ac_word... " >&6; } 8346if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348else 8349 if test -n "$ac_ct_DSYMUTIL"; then 8350 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8351else 8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8353for as_dir in $PATH 8354do 8355 IFS=$as_save_IFS 8356 test -z "$as_dir" && as_dir=. 8357 for ac_exec_ext in '' $ac_executable_extensions; do 8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8359 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8361 break 2 8362 fi 8363done 8364 done 8365IFS=$as_save_IFS 8366 8367fi 8368fi 8369ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8370if test -n "$ac_ct_DSYMUTIL"; then 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8372$as_echo "$ac_ct_DSYMUTIL" >&6; } 8373else 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8375$as_echo "no" >&6; } 8376fi 8377 8378 if test "x$ac_ct_DSYMUTIL" = x; then 8379 DSYMUTIL=":" 8380 else 8381 case $cross_compiling:$ac_tool_warned in 8382yes:) 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8385ac_tool_warned=yes ;; 8386esac 8387 DSYMUTIL=$ac_ct_DSYMUTIL 8388 fi 8389else 8390 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8391fi 8392 8393 if test -n "$ac_tool_prefix"; then 8394 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8395set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8397$as_echo_n "checking for $ac_word... " >&6; } 8398if ${ac_cv_prog_NMEDIT+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 if test -n "$NMEDIT"; then 8402 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8403else 8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8405for as_dir in $PATH 8406do 8407 IFS=$as_save_IFS 8408 test -z "$as_dir" && as_dir=. 8409 for ac_exec_ext in '' $ac_executable_extensions; do 8410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8411 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8413 break 2 8414 fi 8415done 8416 done 8417IFS=$as_save_IFS 8418 8419fi 8420fi 8421NMEDIT=$ac_cv_prog_NMEDIT 8422if test -n "$NMEDIT"; then 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8424$as_echo "$NMEDIT" >&6; } 8425else 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8427$as_echo "no" >&6; } 8428fi 8429 8430 8431fi 8432if test -z "$ac_cv_prog_NMEDIT"; then 8433 ac_ct_NMEDIT=$NMEDIT 8434 # Extract the first word of "nmedit", so it can be a program name with args. 8435set dummy nmedit; ac_word=$2 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8437$as_echo_n "checking for $ac_word... " >&6; } 8438if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8439 $as_echo_n "(cached) " >&6 8440else 8441 if test -n "$ac_ct_NMEDIT"; then 8442 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8443else 8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8445for as_dir in $PATH 8446do 8447 IFS=$as_save_IFS 8448 test -z "$as_dir" && as_dir=. 8449 for ac_exec_ext in '' $ac_executable_extensions; do 8450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8451 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8453 break 2 8454 fi 8455done 8456 done 8457IFS=$as_save_IFS 8458 8459fi 8460fi 8461ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8462if test -n "$ac_ct_NMEDIT"; then 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8464$as_echo "$ac_ct_NMEDIT" >&6; } 8465else 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8467$as_echo "no" >&6; } 8468fi 8469 8470 if test "x$ac_ct_NMEDIT" = x; then 8471 NMEDIT=":" 8472 else 8473 case $cross_compiling:$ac_tool_warned in 8474yes:) 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8477ac_tool_warned=yes ;; 8478esac 8479 NMEDIT=$ac_ct_NMEDIT 8480 fi 8481else 8482 NMEDIT="$ac_cv_prog_NMEDIT" 8483fi 8484 8485 if test -n "$ac_tool_prefix"; then 8486 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8487set dummy ${ac_tool_prefix}lipo; ac_word=$2 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8489$as_echo_n "checking for $ac_word... " >&6; } 8490if ${ac_cv_prog_LIPO+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492else 8493 if test -n "$LIPO"; then 8494 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8495else 8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8497for as_dir in $PATH 8498do 8499 IFS=$as_save_IFS 8500 test -z "$as_dir" && as_dir=. 8501 for ac_exec_ext in '' $ac_executable_extensions; do 8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8503 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8505 break 2 8506 fi 8507done 8508 done 8509IFS=$as_save_IFS 8510 8511fi 8512fi 8513LIPO=$ac_cv_prog_LIPO 8514if test -n "$LIPO"; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8516$as_echo "$LIPO" >&6; } 8517else 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8519$as_echo "no" >&6; } 8520fi 8521 8522 8523fi 8524if test -z "$ac_cv_prog_LIPO"; then 8525 ac_ct_LIPO=$LIPO 8526 # Extract the first word of "lipo", so it can be a program name with args. 8527set dummy lipo; ac_word=$2 8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8529$as_echo_n "checking for $ac_word... " >&6; } 8530if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8531 $as_echo_n "(cached) " >&6 8532else 8533 if test -n "$ac_ct_LIPO"; then 8534 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8535else 8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8537for as_dir in $PATH 8538do 8539 IFS=$as_save_IFS 8540 test -z "$as_dir" && as_dir=. 8541 for ac_exec_ext in '' $ac_executable_extensions; do 8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8543 ac_cv_prog_ac_ct_LIPO="lipo" 8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8545 break 2 8546 fi 8547done 8548 done 8549IFS=$as_save_IFS 8550 8551fi 8552fi 8553ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8554if test -n "$ac_ct_LIPO"; then 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8556$as_echo "$ac_ct_LIPO" >&6; } 8557else 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8559$as_echo "no" >&6; } 8560fi 8561 8562 if test "x$ac_ct_LIPO" = x; then 8563 LIPO=":" 8564 else 8565 case $cross_compiling:$ac_tool_warned in 8566yes:) 8567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8569ac_tool_warned=yes ;; 8570esac 8571 LIPO=$ac_ct_LIPO 8572 fi 8573else 8574 LIPO="$ac_cv_prog_LIPO" 8575fi 8576 8577 if test -n "$ac_tool_prefix"; then 8578 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8579set dummy ${ac_tool_prefix}otool; ac_word=$2 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8581$as_echo_n "checking for $ac_word... " >&6; } 8582if ${ac_cv_prog_OTOOL+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 if test -n "$OTOOL"; then 8586 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8587else 8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8589for as_dir in $PATH 8590do 8591 IFS=$as_save_IFS 8592 test -z "$as_dir" && as_dir=. 8593 for ac_exec_ext in '' $ac_executable_extensions; do 8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8595 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8597 break 2 8598 fi 8599done 8600 done 8601IFS=$as_save_IFS 8602 8603fi 8604fi 8605OTOOL=$ac_cv_prog_OTOOL 8606if test -n "$OTOOL"; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8608$as_echo "$OTOOL" >&6; } 8609else 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8611$as_echo "no" >&6; } 8612fi 8613 8614 8615fi 8616if test -z "$ac_cv_prog_OTOOL"; then 8617 ac_ct_OTOOL=$OTOOL 8618 # Extract the first word of "otool", so it can be a program name with args. 8619set dummy otool; ac_word=$2 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8621$as_echo_n "checking for $ac_word... " >&6; } 8622if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 if test -n "$ac_ct_OTOOL"; then 8626 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8627else 8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8629for as_dir in $PATH 8630do 8631 IFS=$as_save_IFS 8632 test -z "$as_dir" && as_dir=. 8633 for ac_exec_ext in '' $ac_executable_extensions; do 8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8635 ac_cv_prog_ac_ct_OTOOL="otool" 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8637 break 2 8638 fi 8639done 8640 done 8641IFS=$as_save_IFS 8642 8643fi 8644fi 8645ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8646if test -n "$ac_ct_OTOOL"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8648$as_echo "$ac_ct_OTOOL" >&6; } 8649else 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651$as_echo "no" >&6; } 8652fi 8653 8654 if test "x$ac_ct_OTOOL" = x; then 8655 OTOOL=":" 8656 else 8657 case $cross_compiling:$ac_tool_warned in 8658yes:) 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8661ac_tool_warned=yes ;; 8662esac 8663 OTOOL=$ac_ct_OTOOL 8664 fi 8665else 8666 OTOOL="$ac_cv_prog_OTOOL" 8667fi 8668 8669 if test -n "$ac_tool_prefix"; then 8670 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8671set dummy ${ac_tool_prefix}otool64; ac_word=$2 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673$as_echo_n "checking for $ac_word... " >&6; } 8674if ${ac_cv_prog_OTOOL64+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 if test -n "$OTOOL64"; then 8678 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8679else 8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8681for as_dir in $PATH 8682do 8683 IFS=$as_save_IFS 8684 test -z "$as_dir" && as_dir=. 8685 for ac_exec_ext in '' $ac_executable_extensions; do 8686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8687 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8689 break 2 8690 fi 8691done 8692 done 8693IFS=$as_save_IFS 8694 8695fi 8696fi 8697OTOOL64=$ac_cv_prog_OTOOL64 8698if test -n "$OTOOL64"; then 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8700$as_echo "$OTOOL64" >&6; } 8701else 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8703$as_echo "no" >&6; } 8704fi 8705 8706 8707fi 8708if test -z "$ac_cv_prog_OTOOL64"; then 8709 ac_ct_OTOOL64=$OTOOL64 8710 # Extract the first word of "otool64", so it can be a program name with args. 8711set dummy otool64; ac_word=$2 8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8713$as_echo_n "checking for $ac_word... " >&6; } 8714if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8715 $as_echo_n "(cached) " >&6 8716else 8717 if test -n "$ac_ct_OTOOL64"; then 8718 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8719else 8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8721for as_dir in $PATH 8722do 8723 IFS=$as_save_IFS 8724 test -z "$as_dir" && as_dir=. 8725 for ac_exec_ext in '' $ac_executable_extensions; do 8726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8727 ac_cv_prog_ac_ct_OTOOL64="otool64" 8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8729 break 2 8730 fi 8731done 8732 done 8733IFS=$as_save_IFS 8734 8735fi 8736fi 8737ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8738if test -n "$ac_ct_OTOOL64"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8740$as_echo "$ac_ct_OTOOL64" >&6; } 8741else 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8743$as_echo "no" >&6; } 8744fi 8745 8746 if test "x$ac_ct_OTOOL64" = x; then 8747 OTOOL64=":" 8748 else 8749 case $cross_compiling:$ac_tool_warned in 8750yes:) 8751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8753ac_tool_warned=yes ;; 8754esac 8755 OTOOL64=$ac_ct_OTOOL64 8756 fi 8757else 8758 OTOOL64="$ac_cv_prog_OTOOL64" 8759fi 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8788$as_echo_n "checking for -single_module linker flag... " >&6; } 8789if ${lt_cv_apple_cc_single_mod+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791else 8792 lt_cv_apple_cc_single_mod=no 8793 if test -z "$LT_MULTI_MODULE"; then 8794 # By default we will add the -single_module flag. You can override 8795 # by either setting the environment variable LT_MULTI_MODULE 8796 # non-empty at configure time, or by adding -multi_module to the 8797 # link flags. 8798 rm -rf libconftest.dylib* 8799 echo "int foo(void){return 1;}" > conftest.c 8800 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8801-dynamiclib -Wl,-single_module conftest.c" >&5 8802 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8803 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8804 _lt_result=$? 8805 # If there is a non-empty error log, and "single_module" 8806 # appears in it, assume the flag caused a linker warning 8807 if test -s conftest.err && $GREP single_module conftest.err; then 8808 cat conftest.err >&5 8809 # Otherwise, if the output was created with a 0 exit code from 8810 # the compiler, it worked. 8811 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8812 lt_cv_apple_cc_single_mod=yes 8813 else 8814 cat conftest.err >&5 8815 fi 8816 rm -rf libconftest.dylib* 8817 rm -f conftest.* 8818 fi 8819fi 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8821$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8822 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8824$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8825if ${lt_cv_ld_exported_symbols_list+:} false; then : 8826 $as_echo_n "(cached) " >&6 8827else 8828 lt_cv_ld_exported_symbols_list=no 8829 save_LDFLAGS=$LDFLAGS 8830 echo "_main" > conftest.sym 8831 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833/* end confdefs.h. */ 8834 8835int 8836main () 8837{ 8838 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843if ac_fn_c_try_link "$LINENO"; then : 8844 lt_cv_ld_exported_symbols_list=yes 8845else 8846 lt_cv_ld_exported_symbols_list=no 8847fi 8848rm -f core conftest.err conftest.$ac_objext \ 8849 conftest$ac_exeext conftest.$ac_ext 8850 LDFLAGS=$save_LDFLAGS 8851 8852fi 8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8854$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8855 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8857$as_echo_n "checking for -force_load linker flag... " >&6; } 8858if ${lt_cv_ld_force_load+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 lt_cv_ld_force_load=no 8862 cat > conftest.c << _LT_EOF 8863int forced_loaded() { return 2;} 8864_LT_EOF 8865 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8866 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8867 echo "$AR cr libconftest.a conftest.o" >&5 8868 $AR cr libconftest.a conftest.o 2>&5 8869 echo "$RANLIB libconftest.a" >&5 8870 $RANLIB libconftest.a 2>&5 8871 cat > conftest.c << _LT_EOF 8872int main() { return 0;} 8873_LT_EOF 8874 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8875 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8876 _lt_result=$? 8877 if test -s conftest.err && $GREP force_load conftest.err; then 8878 cat conftest.err >&5 8879 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8880 lt_cv_ld_force_load=yes 8881 else 8882 cat conftest.err >&5 8883 fi 8884 rm -f conftest.err libconftest.a conftest conftest.c 8885 rm -rf conftest.dSYM 8886 8887fi 8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8889$as_echo "$lt_cv_ld_force_load" >&6; } 8890 case $host_os in 8891 rhapsody* | darwin1.[012]) 8892 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8893 darwin1.*) 8894 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8895 darwin*) # darwin 5.x on 8896 # if running on 10.5 or later, the deployment target defaults 8897 # to the OS version, if on x86, and 10.4, the deployment 8898 # target defaults to 10.4. Don't you love it? 8899 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8900 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 8901 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8902 10.[012][,.]*) 8903 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8904 10.*|11.*) 8905 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8906 esac 8907 ;; 8908 esac 8909 if test yes = "$lt_cv_apple_cc_single_mod"; then 8910 _lt_dar_single_mod='$single_module' 8911 fi 8912 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8913 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8914 else 8915 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8916 fi 8917 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8918 _lt_dsymutil='~$DSYMUTIL $lib || :' 8919 else 8920 _lt_dsymutil= 8921 fi 8922 ;; 8923 esac 8924 8925# func_munge_path_list VARIABLE PATH 8926# ----------------------------------- 8927# VARIABLE is name of variable containing _space_ separated list of 8928# directories to be munged by the contents of PATH, which is string 8929# having a format: 8930# "DIR[:DIR]:" 8931# string "DIR[ DIR]" will be prepended to VARIABLE 8932# ":DIR[:DIR]" 8933# string "DIR[ DIR]" will be appended to VARIABLE 8934# "DIRP[:DIRP]::[DIRA:]DIRA" 8935# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8936# "DIRA[ DIRA]" will be appended to VARIABLE 8937# "DIR[:DIR]" 8938# VARIABLE will be replaced by "DIR[ DIR]" 8939func_munge_path_list () 8940{ 8941 case x$2 in 8942 x) 8943 ;; 8944 *:) 8945 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8946 ;; 8947 x:*) 8948 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8949 ;; 8950 *::*) 8951 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8952 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8953 ;; 8954 *) 8955 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8956 ;; 8957 esac 8958} 8959 8960for ac_header in dlfcn.h 8961do : 8962 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8963" 8964if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8965 cat >>confdefs.h <<_ACEOF 8966#define HAVE_DLFCN_H 1 8967_ACEOF 8968 8969fi 8970 8971done 8972 8973 8974 8975 8976 8977# Set options 8978 8979 8980 8981 enable_dlopen=no 8982 8983 8984 enable_win32_dll=no 8985 8986 8987 # Check whether --enable-shared was given. 8988if test "${enable_shared+set}" = set; then : 8989 enableval=$enable_shared; p=${PACKAGE-default} 8990 case $enableval in 8991 yes) enable_shared=yes ;; 8992 no) enable_shared=no ;; 8993 *) 8994 enable_shared=no 8995 # Look at the argument we got. We use all the common list separators. 8996 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8997 for pkg in $enableval; do 8998 IFS=$lt_save_ifs 8999 if test "X$pkg" = "X$p"; then 9000 enable_shared=yes 9001 fi 9002 done 9003 IFS=$lt_save_ifs 9004 ;; 9005 esac 9006else 9007 enable_shared=yes 9008fi 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 # Check whether --enable-static was given. 9019if test "${enable_static+set}" = set; then : 9020 enableval=$enable_static; p=${PACKAGE-default} 9021 case $enableval in 9022 yes) enable_static=yes ;; 9023 no) enable_static=no ;; 9024 *) 9025 enable_static=no 9026 # Look at the argument we got. We use all the common list separators. 9027 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9028 for pkg in $enableval; do 9029 IFS=$lt_save_ifs 9030 if test "X$pkg" = "X$p"; then 9031 enable_static=yes 9032 fi 9033 done 9034 IFS=$lt_save_ifs 9035 ;; 9036 esac 9037else 9038 enable_static=yes 9039fi 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050# Check whether --with-pic was given. 9051if test "${with_pic+set}" = set; then : 9052 withval=$with_pic; lt_p=${PACKAGE-default} 9053 case $withval in 9054 yes|no) pic_mode=$withval ;; 9055 *) 9056 pic_mode=default 9057 # Look at the argument we got. We use all the common list separators. 9058 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9059 for lt_pkg in $withval; do 9060 IFS=$lt_save_ifs 9061 if test "X$lt_pkg" = "X$lt_p"; then 9062 pic_mode=yes 9063 fi 9064 done 9065 IFS=$lt_save_ifs 9066 ;; 9067 esac 9068else 9069 pic_mode=default 9070fi 9071 9072 9073 9074 9075 9076 9077 9078 9079 # Check whether --enable-fast-install was given. 9080if test "${enable_fast_install+set}" = set; then : 9081 enableval=$enable_fast_install; p=${PACKAGE-default} 9082 case $enableval in 9083 yes) enable_fast_install=yes ;; 9084 no) enable_fast_install=no ;; 9085 *) 9086 enable_fast_install=no 9087 # Look at the argument we got. We use all the common list separators. 9088 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9089 for pkg in $enableval; do 9090 IFS=$lt_save_ifs 9091 if test "X$pkg" = "X$p"; then 9092 enable_fast_install=yes 9093 fi 9094 done 9095 IFS=$lt_save_ifs 9096 ;; 9097 esac 9098else 9099 enable_fast_install=yes 9100fi 9101 9102 9103 9104 9105 9106 9107 9108 9109 shared_archive_member_spec= 9110case $host,$enable_shared in 9111power*-*-aix[5-9]*,yes) 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9113$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9114 9115# Check whether --with-aix-soname was given. 9116if test "${with_aix_soname+set}" = set; then : 9117 withval=$with_aix_soname; case $withval in 9118 aix|svr4|both) 9119 ;; 9120 *) 9121 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9122 ;; 9123 esac 9124 lt_cv_with_aix_soname=$with_aix_soname 9125else 9126 if ${lt_cv_with_aix_soname+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 lt_cv_with_aix_soname=aix 9130fi 9131 9132 with_aix_soname=$lt_cv_with_aix_soname 9133fi 9134 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9136$as_echo "$with_aix_soname" >&6; } 9137 if test aix != "$with_aix_soname"; then 9138 # For the AIX way of multilib, we name the shared archive member 9139 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9140 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9141 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9142 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9143 if test 64 = "${OBJECT_MODE-32}"; then 9144 shared_archive_member_spec=shr_64 9145 else 9146 shared_archive_member_spec=shr 9147 fi 9148 fi 9149 ;; 9150*) 9151 with_aix_soname=aix 9152 ;; 9153esac 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164# This can be used to rebuild libtool when needed 9165LIBTOOL_DEPS=$ltmain 9166 9167# Always use our own libtool. 9168LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199test -z "$LN_S" && LN_S="ln -s" 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214if test -n "${ZSH_VERSION+set}"; then 9215 setopt NO_GLOB_SUBST 9216fi 9217 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9219$as_echo_n "checking for objdir... " >&6; } 9220if ${lt_cv_objdir+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 rm -f .libs 2>/dev/null 9224mkdir .libs 2>/dev/null 9225if test -d .libs; then 9226 lt_cv_objdir=.libs 9227else 9228 # MS-DOS does not allow filenames that begin with a dot. 9229 lt_cv_objdir=_libs 9230fi 9231rmdir .libs 2>/dev/null 9232fi 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9234$as_echo "$lt_cv_objdir" >&6; } 9235objdir=$lt_cv_objdir 9236 9237 9238 9239 9240 9241cat >>confdefs.h <<_ACEOF 9242#define LT_OBJDIR "$lt_cv_objdir/" 9243_ACEOF 9244 9245 9246 9247 9248case $host_os in 9249aix3*) 9250 # AIX sometimes has problems with the GCC collect2 program. For some 9251 # reason, if we set the COLLECT_NAMES environment variable, the problems 9252 # vanish in a puff of smoke. 9253 if test set != "${COLLECT_NAMES+set}"; then 9254 COLLECT_NAMES= 9255 export COLLECT_NAMES 9256 fi 9257 ;; 9258esac 9259 9260# Global variables: 9261ofile=libtool 9262can_build_shared=yes 9263 9264# All known linkers require a '.a' archive for static linking (except MSVC, 9265# which needs '.lib'). 9266libext=a 9267 9268with_gnu_ld=$lt_cv_prog_gnu_ld 9269 9270old_CC=$CC 9271old_CFLAGS=$CFLAGS 9272 9273# Set sane defaults for various variables 9274test -z "$CC" && CC=cc 9275test -z "$LTCC" && LTCC=$CC 9276test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9277test -z "$LD" && LD=ld 9278test -z "$ac_objext" && ac_objext=o 9279 9280func_cc_basename $compiler 9281cc_basename=$func_cc_basename_result 9282 9283 9284# Only perform the check for file, if the check method requires it 9285test -z "$MAGIC_CMD" && MAGIC_CMD=file 9286case $deplibs_check_method in 9287file_magic*) 9288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9290$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9291if ${lt_cv_path_MAGIC_CMD+:} false; then : 9292 $as_echo_n "(cached) " >&6 9293else 9294 case $MAGIC_CMD in 9295[\\/*] | ?:[\\/]*) 9296 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9297 ;; 9298*) 9299 lt_save_MAGIC_CMD=$MAGIC_CMD 9300 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9302 for ac_dir in $ac_dummy; do 9303 IFS=$lt_save_ifs 9304 test -z "$ac_dir" && ac_dir=. 9305 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9306 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9307 if test -n "$file_magic_test_file"; then 9308 case $deplibs_check_method in 9309 "file_magic "*) 9310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9311 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9313 $EGREP "$file_magic_regex" > /dev/null; then 9314 : 9315 else 9316 cat <<_LT_EOF 1>&2 9317 9318*** Warning: the command libtool uses to detect shared libraries, 9319*** $file_magic_cmd, produces output that libtool cannot recognize. 9320*** The result is that libtool may fail to recognize shared libraries 9321*** as such. This will affect the creation of libtool libraries that 9322*** depend on shared libraries, but programs linked with such libtool 9323*** libraries will work regardless of this problem. Nevertheless, you 9324*** may want to report the problem to your system manager and/or to 9325*** bug-libtool@gnu.org 9326 9327_LT_EOF 9328 fi ;; 9329 esac 9330 fi 9331 break 9332 fi 9333 done 9334 IFS=$lt_save_ifs 9335 MAGIC_CMD=$lt_save_MAGIC_CMD 9336 ;; 9337esac 9338fi 9339 9340MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9341if test -n "$MAGIC_CMD"; then 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9343$as_echo "$MAGIC_CMD" >&6; } 9344else 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9346$as_echo "no" >&6; } 9347fi 9348 9349 9350 9351 9352 9353if test -z "$lt_cv_path_MAGIC_CMD"; then 9354 if test -n "$ac_tool_prefix"; then 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9356$as_echo_n "checking for file... " >&6; } 9357if ${lt_cv_path_MAGIC_CMD+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 case $MAGIC_CMD in 9361[\\/*] | ?:[\\/]*) 9362 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9363 ;; 9364*) 9365 lt_save_MAGIC_CMD=$MAGIC_CMD 9366 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9368 for ac_dir in $ac_dummy; do 9369 IFS=$lt_save_ifs 9370 test -z "$ac_dir" && ac_dir=. 9371 if test -f "$ac_dir/file"; then 9372 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9373 if test -n "$file_magic_test_file"; then 9374 case $deplibs_check_method in 9375 "file_magic "*) 9376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9377 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9379 $EGREP "$file_magic_regex" > /dev/null; then 9380 : 9381 else 9382 cat <<_LT_EOF 1>&2 9383 9384*** Warning: the command libtool uses to detect shared libraries, 9385*** $file_magic_cmd, produces output that libtool cannot recognize. 9386*** The result is that libtool may fail to recognize shared libraries 9387*** as such. This will affect the creation of libtool libraries that 9388*** depend on shared libraries, but programs linked with such libtool 9389*** libraries will work regardless of this problem. Nevertheless, you 9390*** may want to report the problem to your system manager and/or to 9391*** bug-libtool@gnu.org 9392 9393_LT_EOF 9394 fi ;; 9395 esac 9396 fi 9397 break 9398 fi 9399 done 9400 IFS=$lt_save_ifs 9401 MAGIC_CMD=$lt_save_MAGIC_CMD 9402 ;; 9403esac 9404fi 9405 9406MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9407if test -n "$MAGIC_CMD"; then 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9409$as_echo "$MAGIC_CMD" >&6; } 9410else 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9412$as_echo "no" >&6; } 9413fi 9414 9415 9416 else 9417 MAGIC_CMD=: 9418 fi 9419fi 9420 9421 fi 9422 ;; 9423esac 9424 9425# Use C for the default configuration in the libtool script 9426 9427lt_save_CC=$CC 9428ac_ext=c 9429ac_cpp='$CPP $CPPFLAGS' 9430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9432ac_compiler_gnu=$ac_cv_c_compiler_gnu 9433 9434 9435# Source file extension for C test sources. 9436ac_ext=c 9437 9438# Object file extension for compiled C test sources. 9439objext=o 9440objext=$objext 9441 9442# Code to be used in simple compile tests 9443lt_simple_compile_test_code="int some_variable = 0;" 9444 9445# Code to be used in simple link tests 9446lt_simple_link_test_code='int main(){return(0);}' 9447 9448 9449 9450 9451 9452 9453 9454# If no C compiler was specified, use CC. 9455LTCC=${LTCC-"$CC"} 9456 9457# If no C compiler flags were specified, use CFLAGS. 9458LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9459 9460# Allow CC to be a program name with arguments. 9461compiler=$CC 9462 9463# Save the default compiler, since it gets overwritten when the other 9464# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9465compiler_DEFAULT=$CC 9466 9467# save warnings/boilerplate of simple test code 9468ac_outfile=conftest.$ac_objext 9469echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9470eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9471_lt_compiler_boilerplate=`cat conftest.err` 9472$RM conftest* 9473 9474ac_outfile=conftest.$ac_objext 9475echo "$lt_simple_link_test_code" >conftest.$ac_ext 9476eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9477_lt_linker_boilerplate=`cat conftest.err` 9478$RM -r conftest* 9479 9480 9481## CAVEAT EMPTOR: 9482## There is no encapsulation within the following macros, do not change 9483## the running order or otherwise move them around unless you know exactly 9484## what you are doing... 9485if test -n "$compiler"; then 9486 9487lt_prog_compiler_no_builtin_flag= 9488 9489if test yes = "$GCC"; then 9490 case $cc_basename in 9491 nvcc*) 9492 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9493 *) 9494 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9495 esac 9496 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9498$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9499if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9500 $as_echo_n "(cached) " >&6 9501else 9502 lt_cv_prog_compiler_rtti_exceptions=no 9503 ac_outfile=conftest.$ac_objext 9504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9505 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9506 # Insert the option either (1) after the last *FLAGS variable, or 9507 # (2) before a word containing "conftest.", or (3) at the end. 9508 # Note that $ac_compile itself does not contain backslashes and begins 9509 # with a dollar sign (not a hyphen), so the echo should work correctly. 9510 # The option is referenced via a variable to avoid confusing sed. 9511 lt_compile=`echo "$ac_compile" | $SED \ 9512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9514 -e 's:$: $lt_compiler_flag:'` 9515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9516 (eval "$lt_compile" 2>conftest.err) 9517 ac_status=$? 9518 cat conftest.err >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9520 if (exit $ac_status) && test -s "$ac_outfile"; then 9521 # The compiler can only warn and ignore the option if not recognized 9522 # So say no if there are warnings other than the usual output. 9523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9526 lt_cv_prog_compiler_rtti_exceptions=yes 9527 fi 9528 fi 9529 $RM conftest* 9530 9531fi 9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9533$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9534 9535if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9536 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9537else 9538 : 9539fi 9540 9541fi 9542 9543 9544 9545 9546 9547 9548 lt_prog_compiler_wl= 9549lt_prog_compiler_pic= 9550lt_prog_compiler_static= 9551 9552 9553 if test yes = "$GCC"; then 9554 lt_prog_compiler_wl='-Wl,' 9555 lt_prog_compiler_static='-static' 9556 9557 case $host_os in 9558 aix*) 9559 # All AIX code is PIC. 9560 if test ia64 = "$host_cpu"; then 9561 # AIX 5 now supports IA64 processor 9562 lt_prog_compiler_static='-Bstatic' 9563 fi 9564 lt_prog_compiler_pic='-fPIC' 9565 ;; 9566 9567 amigaos*) 9568 case $host_cpu in 9569 powerpc) 9570 # see comment about AmigaOS4 .so support 9571 lt_prog_compiler_pic='-fPIC' 9572 ;; 9573 m68k) 9574 # FIXME: we need at least 68020 code to build shared libraries, but 9575 # adding the '-m68020' flag to GCC prevents building anything better, 9576 # like '-m68040'. 9577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9578 ;; 9579 esac 9580 ;; 9581 9582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9583 # PIC is the default for these OSes. 9584 ;; 9585 9586 mingw* | cygwin* | pw32* | os2* | cegcc*) 9587 # This hack is so that the source file can tell whether it is being 9588 # built for inclusion in a dll (and should export symbols for example). 9589 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9590 # (--disable-auto-import) libraries 9591 lt_prog_compiler_pic='-DDLL_EXPORT' 9592 case $host_os in 9593 os2*) 9594 lt_prog_compiler_static='$wl-static' 9595 ;; 9596 esac 9597 ;; 9598 9599 darwin* | rhapsody*) 9600 # PIC is the default on this platform 9601 # Common symbols not allowed in MH_DYLIB files 9602 lt_prog_compiler_pic='-fno-common' 9603 ;; 9604 9605 haiku*) 9606 # PIC is the default for Haiku. 9607 # The "-static" flag exists, but is broken. 9608 lt_prog_compiler_static= 9609 ;; 9610 9611 hpux*) 9612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9614 # sets the default TLS model and affects inlining. 9615 case $host_cpu in 9616 hppa*64*) 9617 # +Z the default 9618 ;; 9619 *) 9620 lt_prog_compiler_pic='-fPIC' 9621 ;; 9622 esac 9623 ;; 9624 9625 interix[3-9]*) 9626 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9627 # Instead, we relocate shared libraries at runtime. 9628 ;; 9629 9630 msdosdjgpp*) 9631 # Just because we use GCC doesn't mean we suddenly get shared libraries 9632 # on systems that don't support them. 9633 lt_prog_compiler_can_build_shared=no 9634 enable_shared=no 9635 ;; 9636 9637 *nto* | *qnx*) 9638 # QNX uses GNU C++, but need to define -shared option too, otherwise 9639 # it will coredump. 9640 lt_prog_compiler_pic='-fPIC -shared' 9641 ;; 9642 9643 sysv4*MP*) 9644 if test -d /usr/nec; then 9645 lt_prog_compiler_pic=-Kconform_pic 9646 fi 9647 ;; 9648 9649 *) 9650 lt_prog_compiler_pic='-fPIC' 9651 ;; 9652 esac 9653 9654 case $cc_basename in 9655 nvcc*) # Cuda Compiler Driver 2.2 9656 lt_prog_compiler_wl='-Xlinker ' 9657 if test -n "$lt_prog_compiler_pic"; then 9658 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9659 fi 9660 ;; 9661 esac 9662 else 9663 # PORTME Check for flag to pass linker flags through the system compiler. 9664 case $host_os in 9665 aix*) 9666 lt_prog_compiler_wl='-Wl,' 9667 if test ia64 = "$host_cpu"; then 9668 # AIX 5 now supports IA64 processor 9669 lt_prog_compiler_static='-Bstatic' 9670 else 9671 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9672 fi 9673 ;; 9674 9675 darwin* | rhapsody*) 9676 # PIC is the default on this platform 9677 # Common symbols not allowed in MH_DYLIB files 9678 lt_prog_compiler_pic='-fno-common' 9679 case $cc_basename in 9680 nagfor*) 9681 # NAG Fortran compiler 9682 lt_prog_compiler_wl='-Wl,-Wl,,' 9683 lt_prog_compiler_pic='-PIC' 9684 lt_prog_compiler_static='-Bstatic' 9685 ;; 9686 esac 9687 ;; 9688 9689 mingw* | cygwin* | pw32* | os2* | cegcc*) 9690 # This hack is so that the source file can tell whether it is being 9691 # built for inclusion in a dll (and should export symbols for example). 9692 lt_prog_compiler_pic='-DDLL_EXPORT' 9693 case $host_os in 9694 os2*) 9695 lt_prog_compiler_static='$wl-static' 9696 ;; 9697 esac 9698 ;; 9699 9700 hpux9* | hpux10* | hpux11*) 9701 lt_prog_compiler_wl='-Wl,' 9702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9703 # not for PA HP-UX. 9704 case $host_cpu in 9705 hppa*64*|ia64*) 9706 # +Z the default 9707 ;; 9708 *) 9709 lt_prog_compiler_pic='+Z' 9710 ;; 9711 esac 9712 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9713 lt_prog_compiler_static='$wl-a ${wl}archive' 9714 ;; 9715 9716 irix5* | irix6* | nonstopux*) 9717 lt_prog_compiler_wl='-Wl,' 9718 # PIC (with -KPIC) is the default. 9719 lt_prog_compiler_static='-non_shared' 9720 ;; 9721 9722 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9723 case $cc_basename in 9724 # old Intel for x86_64, which still supported -KPIC. 9725 ecc*) 9726 lt_prog_compiler_wl='-Wl,' 9727 lt_prog_compiler_pic='-KPIC' 9728 lt_prog_compiler_static='-static' 9729 ;; 9730 # flang / f18. f95 an alias for gfortran or flang on Debian 9731 flang* | f18* | f95*) 9732 lt_prog_compiler_wl='-Wl,' 9733 lt_prog_compiler_pic='-fPIC' 9734 lt_prog_compiler_static='-static' 9735 ;; 9736 # icc used to be incompatible with GCC. 9737 # ICC 10 doesn't accept -KPIC any more. 9738 icc* | ifort*) 9739 lt_prog_compiler_wl='-Wl,' 9740 lt_prog_compiler_pic='-fPIC' 9741 lt_prog_compiler_static='-static' 9742 ;; 9743 # Lahey Fortran 8.1. 9744 lf95*) 9745 lt_prog_compiler_wl='-Wl,' 9746 lt_prog_compiler_pic='--shared' 9747 lt_prog_compiler_static='--static' 9748 ;; 9749 nagfor*) 9750 # NAG Fortran compiler 9751 lt_prog_compiler_wl='-Wl,-Wl,,' 9752 lt_prog_compiler_pic='-PIC' 9753 lt_prog_compiler_static='-Bstatic' 9754 ;; 9755 tcc*) 9756 # Fabrice Bellard et al's Tiny C Compiler 9757 lt_prog_compiler_wl='-Wl,' 9758 lt_prog_compiler_pic='-fPIC' 9759 lt_prog_compiler_static='-static' 9760 ;; 9761 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9762 # Portland Group compilers (*not* the Pentium gcc compiler, 9763 # which looks to be a dead project) 9764 lt_prog_compiler_wl='-Wl,' 9765 lt_prog_compiler_pic='-fpic' 9766 lt_prog_compiler_static='-Bstatic' 9767 ;; 9768 ccc*) 9769 lt_prog_compiler_wl='-Wl,' 9770 # All Alpha code is PIC. 9771 lt_prog_compiler_static='-non_shared' 9772 ;; 9773 xl* | bgxl* | bgf* | mpixl*) 9774 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9775 lt_prog_compiler_wl='-Wl,' 9776 lt_prog_compiler_pic='-qpic' 9777 lt_prog_compiler_static='-qstaticlink' 9778 ;; 9779 *) 9780 case `$CC -V 2>&1 | sed 5q` in 9781 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9782 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9783 lt_prog_compiler_pic='-KPIC' 9784 lt_prog_compiler_static='-Bstatic' 9785 lt_prog_compiler_wl='' 9786 ;; 9787 *Sun\ F* | *Sun*Fortran*) 9788 lt_prog_compiler_pic='-KPIC' 9789 lt_prog_compiler_static='-Bstatic' 9790 lt_prog_compiler_wl='-Qoption ld ' 9791 ;; 9792 *Sun\ C*) 9793 # Sun C 5.9 9794 lt_prog_compiler_pic='-KPIC' 9795 lt_prog_compiler_static='-Bstatic' 9796 lt_prog_compiler_wl='-Wl,' 9797 ;; 9798 *Intel*\ [CF]*Compiler*) 9799 lt_prog_compiler_wl='-Wl,' 9800 lt_prog_compiler_pic='-fPIC' 9801 lt_prog_compiler_static='-static' 9802 ;; 9803 *Portland\ Group*) 9804 lt_prog_compiler_wl='-Wl,' 9805 lt_prog_compiler_pic='-fpic' 9806 lt_prog_compiler_static='-Bstatic' 9807 ;; 9808 esac 9809 ;; 9810 esac 9811 ;; 9812 9813 newsos6) 9814 lt_prog_compiler_pic='-KPIC' 9815 lt_prog_compiler_static='-Bstatic' 9816 ;; 9817 9818 *nto* | *qnx*) 9819 # QNX uses GNU C++, but need to define -shared option too, otherwise 9820 # it will coredump. 9821 lt_prog_compiler_pic='-fPIC -shared' 9822 ;; 9823 9824 osf3* | osf4* | osf5*) 9825 lt_prog_compiler_wl='-Wl,' 9826 # All OSF/1 code is PIC. 9827 lt_prog_compiler_static='-non_shared' 9828 ;; 9829 9830 rdos*) 9831 lt_prog_compiler_static='-non_shared' 9832 ;; 9833 9834 solaris*) 9835 lt_prog_compiler_pic='-KPIC' 9836 lt_prog_compiler_static='-Bstatic' 9837 case $cc_basename in 9838 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9839 lt_prog_compiler_wl='-Qoption ld ';; 9840 *) 9841 lt_prog_compiler_wl='-Wl,';; 9842 esac 9843 ;; 9844 9845 sunos4*) 9846 lt_prog_compiler_wl='-Qoption ld ' 9847 lt_prog_compiler_pic='-PIC' 9848 lt_prog_compiler_static='-Bstatic' 9849 ;; 9850 9851 sysv4 | sysv4.2uw2* | sysv4.3*) 9852 lt_prog_compiler_wl='-Wl,' 9853 lt_prog_compiler_pic='-KPIC' 9854 lt_prog_compiler_static='-Bstatic' 9855 ;; 9856 9857 sysv4*MP*) 9858 if test -d /usr/nec; then 9859 lt_prog_compiler_pic='-Kconform_pic' 9860 lt_prog_compiler_static='-Bstatic' 9861 fi 9862 ;; 9863 9864 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9865 lt_prog_compiler_wl='-Wl,' 9866 lt_prog_compiler_pic='-KPIC' 9867 lt_prog_compiler_static='-Bstatic' 9868 ;; 9869 9870 unicos*) 9871 lt_prog_compiler_wl='-Wl,' 9872 lt_prog_compiler_can_build_shared=no 9873 ;; 9874 9875 uts4*) 9876 lt_prog_compiler_pic='-pic' 9877 lt_prog_compiler_static='-Bstatic' 9878 ;; 9879 9880 *) 9881 lt_prog_compiler_can_build_shared=no 9882 ;; 9883 esac 9884 fi 9885 9886case $host_os in 9887 # For platforms that do not support PIC, -DPIC is meaningless: 9888 *djgpp*) 9889 lt_prog_compiler_pic= 9890 ;; 9891 *) 9892 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9893 ;; 9894esac 9895 9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9897$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9898if ${lt_cv_prog_compiler_pic+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9902fi 9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9904$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9905lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9906 9907# 9908# Check to make sure the PIC flag actually works. 9909# 9910if test -n "$lt_prog_compiler_pic"; then 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9912$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9913if ${lt_cv_prog_compiler_pic_works+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915else 9916 lt_cv_prog_compiler_pic_works=no 9917 ac_outfile=conftest.$ac_objext 9918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9919 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9920 # Insert the option either (1) after the last *FLAGS variable, or 9921 # (2) before a word containing "conftest.", or (3) at the end. 9922 # Note that $ac_compile itself does not contain backslashes and begins 9923 # with a dollar sign (not a hyphen), so the echo should work correctly. 9924 # The option is referenced via a variable to avoid confusing sed. 9925 lt_compile=`echo "$ac_compile" | $SED \ 9926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9928 -e 's:$: $lt_compiler_flag:'` 9929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9930 (eval "$lt_compile" 2>conftest.err) 9931 ac_status=$? 9932 cat conftest.err >&5 9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934 if (exit $ac_status) && test -s "$ac_outfile"; then 9935 # The compiler can only warn and ignore the option if not recognized 9936 # So say no if there are warnings other than the usual output. 9937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9940 lt_cv_prog_compiler_pic_works=yes 9941 fi 9942 fi 9943 $RM conftest* 9944 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9947$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9948 9949if test yes = "$lt_cv_prog_compiler_pic_works"; then 9950 case $lt_prog_compiler_pic in 9951 "" | " "*) ;; 9952 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9953 esac 9954else 9955 lt_prog_compiler_pic= 9956 lt_prog_compiler_can_build_shared=no 9957fi 9958 9959fi 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971# 9972# Check to make sure the static flag actually works. 9973# 9974wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9976$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9977if ${lt_cv_prog_compiler_static_works+:} false; then : 9978 $as_echo_n "(cached) " >&6 9979else 9980 lt_cv_prog_compiler_static_works=no 9981 save_LDFLAGS=$LDFLAGS 9982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9983 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9985 # The linker can only warn and ignore the option if not recognized 9986 # So say no if there are warnings 9987 if test -s conftest.err; then 9988 # Append any errors to the config.log. 9989 cat conftest.err 1>&5 9990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9992 if diff conftest.exp conftest.er2 >/dev/null; then 9993 lt_cv_prog_compiler_static_works=yes 9994 fi 9995 else 9996 lt_cv_prog_compiler_static_works=yes 9997 fi 9998 fi 9999 $RM -r conftest* 10000 LDFLAGS=$save_LDFLAGS 10001 10002fi 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10004$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10005 10006if test yes = "$lt_cv_prog_compiler_static_works"; then 10007 : 10008else 10009 lt_prog_compiler_static= 10010fi 10011 10012 10013 10014 10015 10016 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10020if ${lt_cv_prog_compiler_c_o+:} false; then : 10021 $as_echo_n "(cached) " >&6 10022else 10023 lt_cv_prog_compiler_c_o=no 10024 $RM -r conftest 2>/dev/null 10025 mkdir conftest 10026 cd conftest 10027 mkdir out 10028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10029 10030 lt_compiler_flag="-o out/conftest2.$ac_objext" 10031 # Insert the option either (1) after the last *FLAGS variable, or 10032 # (2) before a word containing "conftest.", or (3) at the end. 10033 # Note that $ac_compile itself does not contain backslashes and begins 10034 # with a dollar sign (not a hyphen), so the echo should work correctly. 10035 lt_compile=`echo "$ac_compile" | $SED \ 10036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10038 -e 's:$: $lt_compiler_flag:'` 10039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10040 (eval "$lt_compile" 2>out/conftest.err) 10041 ac_status=$? 10042 cat out/conftest.err >&5 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10045 then 10046 # The compiler can only warn and ignore the option if not recognized 10047 # So say no if there are warnings 10048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10051 lt_cv_prog_compiler_c_o=yes 10052 fi 10053 fi 10054 chmod u+w . 2>&5 10055 $RM conftest* 10056 # SGI C++ compiler will create directory out/ii_files/ for 10057 # template instantiation 10058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10059 $RM out/* && rmdir out 10060 cd .. 10061 $RM -r conftest 10062 $RM conftest* 10063 10064fi 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10066$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10067 10068 10069 10070 10071 10072 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10074$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10075if ${lt_cv_prog_compiler_c_o+:} false; then : 10076 $as_echo_n "(cached) " >&6 10077else 10078 lt_cv_prog_compiler_c_o=no 10079 $RM -r conftest 2>/dev/null 10080 mkdir conftest 10081 cd conftest 10082 mkdir out 10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10084 10085 lt_compiler_flag="-o out/conftest2.$ac_objext" 10086 # Insert the option either (1) after the last *FLAGS variable, or 10087 # (2) before a word containing "conftest.", or (3) at the end. 10088 # Note that $ac_compile itself does not contain backslashes and begins 10089 # with a dollar sign (not a hyphen), so the echo should work correctly. 10090 lt_compile=`echo "$ac_compile" | $SED \ 10091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10093 -e 's:$: $lt_compiler_flag:'` 10094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10095 (eval "$lt_compile" 2>out/conftest.err) 10096 ac_status=$? 10097 cat out/conftest.err >&5 10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10099 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10100 then 10101 # The compiler can only warn and ignore the option if not recognized 10102 # So say no if there are warnings 10103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10106 lt_cv_prog_compiler_c_o=yes 10107 fi 10108 fi 10109 chmod u+w . 2>&5 10110 $RM conftest* 10111 # SGI C++ compiler will create directory out/ii_files/ for 10112 # template instantiation 10113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10114 $RM out/* && rmdir out 10115 cd .. 10116 $RM -r conftest 10117 $RM conftest* 10118 10119fi 10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10121$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10122 10123 10124 10125 10126hard_links=nottested 10127if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10128 # do not overwrite the value of need_locks provided by the user 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10130$as_echo_n "checking if we can lock with hard links... " >&6; } 10131 hard_links=yes 10132 $RM conftest* 10133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10134 touch conftest.a 10135 ln conftest.a conftest.b 2>&5 || hard_links=no 10136 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10138$as_echo "$hard_links" >&6; } 10139 if test no = "$hard_links"; then 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10141$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10142 need_locks=warn 10143 fi 10144else 10145 need_locks=no 10146fi 10147 10148 10149 10150 10151 10152 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10154$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10155 10156 runpath_var= 10157 allow_undefined_flag= 10158 always_export_symbols=no 10159 archive_cmds= 10160 archive_expsym_cmds= 10161 compiler_needs_object=no 10162 enable_shared_with_static_runtimes=no 10163 export_dynamic_flag_spec= 10164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10165 hardcode_automatic=no 10166 hardcode_direct=no 10167 hardcode_direct_absolute=no 10168 hardcode_libdir_flag_spec= 10169 hardcode_libdir_separator= 10170 hardcode_minus_L=no 10171 hardcode_shlibpath_var=unsupported 10172 inherit_rpath=no 10173 link_all_deplibs=unknown 10174 module_cmds= 10175 module_expsym_cmds= 10176 old_archive_from_new_cmds= 10177 old_archive_from_expsyms_cmds= 10178 thread_safe_flag_spec= 10179 whole_archive_flag_spec= 10180 # include_expsyms should be a list of space-separated symbols to be *always* 10181 # included in the symbol list 10182 include_expsyms= 10183 # exclude_expsyms can be an extended regexp of symbols to exclude 10184 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10185 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10186 # as well as any symbol that contains 'd'. 10187 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10189 # platforms (ab)use it in PIC code, but their linkers get confused if 10190 # the symbol is explicitly referenced. Since portable code cannot 10191 # rely on this symbol name, it's probably fine to never include it in 10192 # preloaded symbol tables. 10193 # Exclude shared library initialization/finalization symbols. 10194 extract_expsyms_cmds= 10195 10196 case $host_os in 10197 cygwin* | mingw* | pw32* | cegcc*) 10198 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10199 # When not using gcc, we currently assume that we are using 10200 # Microsoft Visual C++. 10201 if test yes != "$GCC"; then 10202 with_gnu_ld=no 10203 fi 10204 ;; 10205 interix*) 10206 # we just hope/assume this is gcc and not c89 (= MSVC++) 10207 with_gnu_ld=yes 10208 ;; 10209 openbsd* | bitrig*) 10210 with_gnu_ld=no 10211 ;; 10212 linux* | k*bsd*-gnu | gnu*) 10213 link_all_deplibs=no 10214 ;; 10215 esac 10216 10217 ld_shlibs=yes 10218 10219 # On some targets, GNU ld is compatible enough with the native linker 10220 # that we're better off using the native interface for both. 10221 lt_use_gnu_ld_interface=no 10222 if test yes = "$with_gnu_ld"; then 10223 case $host_os in 10224 aix*) 10225 # The AIX port of GNU ld has always aspired to compatibility 10226 # with the native linker. However, as the warning in the GNU ld 10227 # block says, versions before 2.19.5* couldn't really create working 10228 # shared libraries, regardless of the interface used. 10229 case `$LD -v 2>&1` in 10230 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10231 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10232 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10233 *) 10234 lt_use_gnu_ld_interface=yes 10235 ;; 10236 esac 10237 ;; 10238 *) 10239 lt_use_gnu_ld_interface=yes 10240 ;; 10241 esac 10242 fi 10243 10244 if test yes = "$lt_use_gnu_ld_interface"; then 10245 # If archive_cmds runs LD, not CC, wlarc should be empty 10246 wlarc='$wl' 10247 10248 # Set some defaults for GNU ld with shared library support. These 10249 # are reset later if shared libraries are not supported. Putting them 10250 # here allows them to be overridden if necessary. 10251 runpath_var=LD_RUN_PATH 10252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10253 export_dynamic_flag_spec='$wl--export-dynamic' 10254 # ancient GNU ld didn't support --whole-archive et. al. 10255 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10256 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10257 else 10258 whole_archive_flag_spec= 10259 fi 10260 supports_anon_versioning=no 10261 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10262 *GNU\ gold*) supports_anon_versioning=yes ;; 10263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10266 *\ 2.11.*) ;; # other 2.11 versions 10267 *) supports_anon_versioning=yes ;; 10268 esac 10269 10270 # See if GNU ld supports shared libraries. 10271 case $host_os in 10272 aix[3-9]*) 10273 # On AIX/PPC, the GNU linker is very broken 10274 if test ia64 != "$host_cpu"; then 10275 ld_shlibs=no 10276 cat <<_LT_EOF 1>&2 10277 10278*** Warning: the GNU linker, at least up to release 2.19, is reported 10279*** to be unable to reliably create shared libraries on AIX. 10280*** Therefore, libtool is disabling shared libraries support. If you 10281*** really care for shared libraries, you may want to install binutils 10282*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10283*** You will then need to restart the configuration process. 10284 10285_LT_EOF 10286 fi 10287 ;; 10288 10289 amigaos*) 10290 case $host_cpu in 10291 powerpc) 10292 # see comment about AmigaOS4 .so support 10293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10294 archive_expsym_cmds='' 10295 ;; 10296 m68k) 10297 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)' 10298 hardcode_libdir_flag_spec='-L$libdir' 10299 hardcode_minus_L=yes 10300 ;; 10301 esac 10302 ;; 10303 10304 beos*) 10305 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10306 allow_undefined_flag=unsupported 10307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10308 # support --undefined. This deserves some investigation. FIXME 10309 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10310 else 10311 ld_shlibs=no 10312 fi 10313 ;; 10314 10315 cygwin* | mingw* | pw32* | cegcc*) 10316 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10317 # as there is no search path for DLLs. 10318 hardcode_libdir_flag_spec='-L$libdir' 10319 export_dynamic_flag_spec='$wl--export-all-symbols' 10320 allow_undefined_flag=unsupported 10321 always_export_symbols=no 10322 enable_shared_with_static_runtimes=yes 10323 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' 10324 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10325 10326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10328 # If the export-symbols file already is a .def file, use it as 10329 # is; otherwise, prepend EXPORTS... 10330 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10331 cp $export_symbols $output_objdir/$soname.def; 10332 else 10333 echo EXPORTS > $output_objdir/$soname.def; 10334 cat $export_symbols >> $output_objdir/$soname.def; 10335 fi~ 10336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10337 else 10338 ld_shlibs=no 10339 fi 10340 ;; 10341 10342 haiku*) 10343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10344 link_all_deplibs=yes 10345 ;; 10346 10347 os2*) 10348 hardcode_libdir_flag_spec='-L$libdir' 10349 hardcode_minus_L=yes 10350 allow_undefined_flag=unsupported 10351 shrext_cmds=.dll 10352 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10353 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10354 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10355 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10356 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10357 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10358 emximp -o $lib $output_objdir/$libname.def' 10359 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10360 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10361 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10362 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10363 prefix_cmds="$SED"~ 10364 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10365 prefix_cmds="$prefix_cmds -e 1d"; 10366 fi~ 10367 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10368 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10369 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10370 emximp -o $lib $output_objdir/$libname.def' 10371 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10372 enable_shared_with_static_runtimes=yes 10373 ;; 10374 10375 interix[3-9]*) 10376 hardcode_direct=no 10377 hardcode_shlibpath_var=no 10378 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10379 export_dynamic_flag_spec='$wl-E' 10380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10381 # Instead, shared libraries are loaded at an image base (0x10000000 by 10382 # default) and relocated if they conflict, which is a slow very memory 10383 # consuming and fragmenting process. To avoid this, we pick a random, 10384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10385 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10387 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' 10388 ;; 10389 10390 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10391 tmp_diet=no 10392 if test linux-dietlibc = "$host_os"; then 10393 case $cc_basename in 10394 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10395 esac 10396 fi 10397 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10398 && test no = "$tmp_diet" 10399 then 10400 tmp_addflag=' $pic_flag' 10401 tmp_sharedflag='-shared' 10402 case $cc_basename,$host_cpu in 10403 pgcc*) # Portland Group C compiler 10404 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' 10405 tmp_addflag=' $pic_flag' 10406 ;; 10407 pgf77* | pgf90* | pgf95* | pgfortran*) 10408 # Portland Group f77 and f90 compilers 10409 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' 10410 tmp_addflag=' $pic_flag -Mnomain' ;; 10411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10412 tmp_addflag=' -i_dynamic' ;; 10413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10414 tmp_addflag=' -i_dynamic -nofor_main' ;; 10415 ifc* | ifort*) # Intel Fortran compiler 10416 tmp_addflag=' -nofor_main' ;; 10417 lf95*) # Lahey Fortran 8.1 10418 whole_archive_flag_spec= 10419 tmp_sharedflag='--shared' ;; 10420 nagfor*) # NAGFOR 5.3 10421 tmp_sharedflag='-Wl,-shared' ;; 10422 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10423 tmp_sharedflag='-qmkshrobj' 10424 tmp_addflag= ;; 10425 nvcc*) # Cuda Compiler Driver 2.2 10426 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' 10427 compiler_needs_object=yes 10428 ;; 10429 esac 10430 case `$CC -V 2>&1 | sed 5q` in 10431 *Sun\ C*) # Sun C 5.9 10432 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' 10433 compiler_needs_object=yes 10434 tmp_sharedflag='-G' ;; 10435 *Sun\ F*) # Sun Fortran 8.3 10436 tmp_sharedflag='-G' ;; 10437 esac 10438 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10439 10440 if test yes = "$supports_anon_versioning"; then 10441 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10442 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10443 echo "local: *; };" >> $output_objdir/$libname.ver~ 10444 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10445 fi 10446 10447 case $cc_basename in 10448 tcc*) 10449 export_dynamic_flag_spec='-rdynamic' 10450 ;; 10451 xlf* | bgf* | bgxlf* | mpixlf*) 10452 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10453 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10455 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10456 if test yes = "$supports_anon_versioning"; then 10457 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10459 echo "local: *; };" >> $output_objdir/$libname.ver~ 10460 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10461 fi 10462 ;; 10463 esac 10464 else 10465 ld_shlibs=no 10466 fi 10467 ;; 10468 10469 netbsd* | netbsdelf*-gnu) 10470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10472 wlarc= 10473 else 10474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10476 fi 10477 ;; 10478 10479 solaris*) 10480 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10481 ld_shlibs=no 10482 cat <<_LT_EOF 1>&2 10483 10484*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10485*** create shared libraries on Solaris systems. Therefore, libtool 10486*** is disabling shared libraries support. We urge you to upgrade GNU 10487*** binutils to release 2.9.1 or newer. Another option is to modify 10488*** your PATH or compiler configuration so that the native linker is 10489*** used, and then restart. 10490 10491_LT_EOF 10492 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10494 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10495 else 10496 ld_shlibs=no 10497 fi 10498 ;; 10499 10500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10501 case `$LD -v 2>&1` in 10502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10503 ld_shlibs=no 10504 cat <<_LT_EOF 1>&2 10505 10506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10507*** reliably create shared libraries on SCO systems. Therefore, libtool 10508*** is disabling shared libraries support. We urge you to upgrade GNU 10509*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10510*** your PATH or compiler configuration so that the native linker is 10511*** used, and then restart. 10512 10513_LT_EOF 10514 ;; 10515 *) 10516 # For security reasons, it is highly recommended that you always 10517 # use absolute paths for naming shared libraries, and exclude the 10518 # DT_RUNPATH tag from executables and libraries. But doing so 10519 # requires that you compile everything twice, which is a pain. 10520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10524 else 10525 ld_shlibs=no 10526 fi 10527 ;; 10528 esac 10529 ;; 10530 10531 sunos4*) 10532 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10533 wlarc= 10534 hardcode_direct=yes 10535 hardcode_shlibpath_var=no 10536 ;; 10537 10538 *) 10539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10542 else 10543 ld_shlibs=no 10544 fi 10545 ;; 10546 esac 10547 10548 if test no = "$ld_shlibs"; then 10549 runpath_var= 10550 hardcode_libdir_flag_spec= 10551 export_dynamic_flag_spec= 10552 whole_archive_flag_spec= 10553 fi 10554 else 10555 # PORTME fill in a description of your system's linker (not GNU ld) 10556 case $host_os in 10557 aix3*) 10558 allow_undefined_flag=unsupported 10559 always_export_symbols=yes 10560 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' 10561 # Note: this linker hardcodes the directories in LIBPATH if there 10562 # are no directories specified by -L. 10563 hardcode_minus_L=yes 10564 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10565 # Neither direct hardcoding nor static linking is supported with a 10566 # broken collect2. 10567 hardcode_direct=unsupported 10568 fi 10569 ;; 10570 10571 aix[4-9]*) 10572 if test ia64 = "$host_cpu"; then 10573 # On IA64, the linker does run time linking by default, so we don't 10574 # have to do anything special. 10575 aix_use_runtimelinking=no 10576 exp_sym_flag='-Bexport' 10577 no_entry_flag= 10578 else 10579 # If we're using GNU nm, then we don't want the "-C" option. 10580 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10581 # Without the "-l" option, or with the "-B" option, AIX nm treats 10582 # weak defined symbols like other global defined symbols, whereas 10583 # GNU nm marks them as "W". 10584 # While the 'weak' keyword is ignored in the Export File, we need 10585 # it in the Import File for the 'aix-soname' feature, so we have 10586 # to replace the "-B" option with "-P" for AIX nm. 10587 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10588 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10589 else 10590 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10591 fi 10592 aix_use_runtimelinking=no 10593 10594 # Test if we are trying to use run time linking or normal 10595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10596 # have runtime linking enabled, and use it for executables. 10597 # For shared libraries, we enable/disable runtime linking 10598 # depending on the kind of the shared library created - 10599 # when "with_aix_soname,aix_use_runtimelinking" is: 10600 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10601 # "aix,yes" lib.so shared, rtl:yes, for executables 10602 # lib.a static archive 10603 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10604 # lib.a(lib.so.V) shared, rtl:no, for executables 10605 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10606 # lib.a(lib.so.V) shared, rtl:no 10607 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10608 # lib.a static archive 10609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10610 for ld_flag in $LDFLAGS; do 10611 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10612 aix_use_runtimelinking=yes 10613 break 10614 fi 10615 done 10616 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10617 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10618 # so we don't have lib.a shared libs to link our executables. 10619 # We have to force runtime linking in this case. 10620 aix_use_runtimelinking=yes 10621 LDFLAGS="$LDFLAGS -Wl,-brtl" 10622 fi 10623 ;; 10624 esac 10625 10626 exp_sym_flag='-bexport' 10627 no_entry_flag='-bnoentry' 10628 fi 10629 10630 # When large executables or shared objects are built, AIX ld can 10631 # have problems creating the table of contents. If linking a library 10632 # or program results in "error TOC overflow" add -mminimal-toc to 10633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10635 10636 archive_cmds='' 10637 hardcode_direct=yes 10638 hardcode_direct_absolute=yes 10639 hardcode_libdir_separator=':' 10640 link_all_deplibs=yes 10641 file_list_spec='$wl-f,' 10642 case $with_aix_soname,$aix_use_runtimelinking in 10643 aix,*) ;; # traditional, no import file 10644 svr4,* | *,yes) # use import file 10645 # The Import File defines what to hardcode. 10646 hardcode_direct=no 10647 hardcode_direct_absolute=no 10648 ;; 10649 esac 10650 10651 if test yes = "$GCC"; then 10652 case $host_os in aix4.[012]|aix4.[012].*) 10653 # We only want to do this on AIX 4.2 and lower, the check 10654 # below for broken collect2 doesn't work under 4.3+ 10655 collect2name=`$CC -print-prog-name=collect2` 10656 if test -f "$collect2name" && 10657 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10658 then 10659 # We have reworked collect2 10660 : 10661 else 10662 # We have old collect2 10663 hardcode_direct=unsupported 10664 # It fails to find uninstalled libraries when the uninstalled 10665 # path is not listed in the libpath. Setting hardcode_minus_L 10666 # to unsupported forces relinking 10667 hardcode_minus_L=yes 10668 hardcode_libdir_flag_spec='-L$libdir' 10669 hardcode_libdir_separator= 10670 fi 10671 ;; 10672 esac 10673 shared_flag='-shared' 10674 if test yes = "$aix_use_runtimelinking"; then 10675 shared_flag="$shared_flag "'$wl-G' 10676 fi 10677 # Need to ensure runtime linking is disabled for the traditional 10678 # shared library, or the linker may eventually find shared libraries 10679 # /with/ Import File - we do not want to mix them. 10680 shared_flag_aix='-shared' 10681 shared_flag_svr4='-shared $wl-G' 10682 else 10683 # not using gcc 10684 if test ia64 = "$host_cpu"; then 10685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10686 # chokes on -Wl,-G. The following line is correct: 10687 shared_flag='-G' 10688 else 10689 if test yes = "$aix_use_runtimelinking"; then 10690 shared_flag='$wl-G' 10691 else 10692 shared_flag='$wl-bM:SRE' 10693 fi 10694 shared_flag_aix='$wl-bM:SRE' 10695 shared_flag_svr4='$wl-G' 10696 fi 10697 fi 10698 10699 export_dynamic_flag_spec='$wl-bexpall' 10700 # It seems that -bexpall does not export symbols beginning with 10701 # underscore (_), so it is better to generate a list of symbols to export. 10702 always_export_symbols=yes 10703 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10704 # Warning - without using the other runtime loading flags (-brtl), 10705 # -berok will link without error, but may produce a broken library. 10706 allow_undefined_flag='-berok' 10707 # Determine the default libpath from the value encoded in an 10708 # empty executable. 10709 if test set = "${lt_cv_aix_libpath+set}"; then 10710 aix_libpath=$lt_cv_aix_libpath 10711else 10712 if ${lt_cv_aix_libpath_+:} false; then : 10713 $as_echo_n "(cached) " >&6 10714else 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717 10718int 10719main () 10720{ 10721 10722 ; 10723 return 0; 10724} 10725_ACEOF 10726if ac_fn_c_try_link "$LINENO"; then : 10727 10728 lt_aix_libpath_sed=' 10729 /Import File Strings/,/^$/ { 10730 /^0/ { 10731 s/^0 *\([^ ]*\) *$/\1/ 10732 p 10733 } 10734 }' 10735 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10736 # Check for a 64-bit object if we didn't find anything. 10737 if test -z "$lt_cv_aix_libpath_"; then 10738 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10739 fi 10740fi 10741rm -f core conftest.err conftest.$ac_objext \ 10742 conftest$ac_exeext conftest.$ac_ext 10743 if test -z "$lt_cv_aix_libpath_"; then 10744 lt_cv_aix_libpath_=/usr/lib:/lib 10745 fi 10746 10747fi 10748 10749 aix_libpath=$lt_cv_aix_libpath_ 10750fi 10751 10752 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10753 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10754 else 10755 if test ia64 = "$host_cpu"; then 10756 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10757 allow_undefined_flag="-z nodefs" 10758 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" 10759 else 10760 # Determine the default libpath from the value encoded in an 10761 # empty executable. 10762 if test set = "${lt_cv_aix_libpath+set}"; then 10763 aix_libpath=$lt_cv_aix_libpath 10764else 10765 if ${lt_cv_aix_libpath_+:} false; then : 10766 $as_echo_n "(cached) " >&6 10767else 10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10769/* end confdefs.h. */ 10770 10771int 10772main () 10773{ 10774 10775 ; 10776 return 0; 10777} 10778_ACEOF 10779if ac_fn_c_try_link "$LINENO"; then : 10780 10781 lt_aix_libpath_sed=' 10782 /Import File Strings/,/^$/ { 10783 /^0/ { 10784 s/^0 *\([^ ]*\) *$/\1/ 10785 p 10786 } 10787 }' 10788 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10789 # Check for a 64-bit object if we didn't find anything. 10790 if test -z "$lt_cv_aix_libpath_"; then 10791 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10792 fi 10793fi 10794rm -f core conftest.err conftest.$ac_objext \ 10795 conftest$ac_exeext conftest.$ac_ext 10796 if test -z "$lt_cv_aix_libpath_"; then 10797 lt_cv_aix_libpath_=/usr/lib:/lib 10798 fi 10799 10800fi 10801 10802 aix_libpath=$lt_cv_aix_libpath_ 10803fi 10804 10805 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10806 # Warning - without using the other run time loading flags, 10807 # -berok will link without error, but may produce a broken library. 10808 no_undefined_flag=' $wl-bernotok' 10809 allow_undefined_flag=' $wl-berok' 10810 if test yes = "$with_gnu_ld"; then 10811 # We only use this code for GNU lds that support --whole-archive. 10812 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10813 else 10814 # Exported symbols can be pulled into shared objects from archives 10815 whole_archive_flag_spec='$convenience' 10816 fi 10817 archive_cmds_need_lc=yes 10818 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10819 # -brtl affects multiple linker settings, -berok does not and is overridden later 10820 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10821 if test svr4 != "$with_aix_soname"; then 10822 # This is similar to how AIX traditionally builds its shared libraries. 10823 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10824 fi 10825 if test aix != "$with_aix_soname"; then 10826 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10827 else 10828 # used by -dlpreopen to get the symbols 10829 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10830 fi 10831 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10832 fi 10833 fi 10834 ;; 10835 10836 amigaos*) 10837 case $host_cpu in 10838 powerpc) 10839 # see comment about AmigaOS4 .so support 10840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10841 archive_expsym_cmds='' 10842 ;; 10843 m68k) 10844 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)' 10845 hardcode_libdir_flag_spec='-L$libdir' 10846 hardcode_minus_L=yes 10847 ;; 10848 esac 10849 ;; 10850 10851 bsdi[45]*) 10852 export_dynamic_flag_spec=-rdynamic 10853 ;; 10854 10855 cygwin* | mingw* | pw32* | cegcc*) 10856 # When not using gcc, we currently assume that we are using 10857 # Microsoft Visual C++. 10858 # hardcode_libdir_flag_spec is actually meaningless, as there is 10859 # no search path for DLLs. 10860 case $cc_basename in 10861 cl*) 10862 # Native MSVC 10863 hardcode_libdir_flag_spec=' ' 10864 allow_undefined_flag=unsupported 10865 always_export_symbols=yes 10866 file_list_spec='@' 10867 # Tell ltmain to make .lib files, not .a files. 10868 libext=lib 10869 # Tell ltmain to make .dll files, not .so files. 10870 shrext_cmds=.dll 10871 # FIXME: Setting linknames here is a bad hack. 10872 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10873 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10874 cp "$export_symbols" "$output_objdir/$soname.def"; 10875 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10876 else 10877 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10878 fi~ 10879 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10880 linknames=' 10881 # The linker will not automatically build a static lib if we build a DLL. 10882 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10883 enable_shared_with_static_runtimes=yes 10884 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10886 # Don't use ranlib 10887 old_postinstall_cmds='chmod 644 $oldlib' 10888 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10889 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10890 case $lt_outputfile in 10891 *.exe|*.EXE) ;; 10892 *) 10893 lt_outputfile=$lt_outputfile.exe 10894 lt_tool_outputfile=$lt_tool_outputfile.exe 10895 ;; 10896 esac~ 10897 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10898 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10899 $RM "$lt_outputfile.manifest"; 10900 fi' 10901 ;; 10902 *) 10903 # Assume MSVC wrapper 10904 hardcode_libdir_flag_spec=' ' 10905 allow_undefined_flag=unsupported 10906 # Tell ltmain to make .lib files, not .a files. 10907 libext=lib 10908 # Tell ltmain to make .dll files, not .so files. 10909 shrext_cmds=.dll 10910 # FIXME: Setting linknames here is a bad hack. 10911 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10912 # The linker will automatically build a .lib file if we build a DLL. 10913 old_archive_from_new_cmds='true' 10914 # FIXME: Should let the user specify the lib program. 10915 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10916 enable_shared_with_static_runtimes=yes 10917 ;; 10918 esac 10919 ;; 10920 10921 darwin* | rhapsody*) 10922 10923 10924 archive_cmds_need_lc=no 10925 hardcode_direct=no 10926 hardcode_automatic=yes 10927 hardcode_shlibpath_var=unsupported 10928 if test yes = "$lt_cv_ld_force_load"; then 10929 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\"`' 10930 10931 else 10932 whole_archive_flag_spec='' 10933 fi 10934 link_all_deplibs=yes 10935 allow_undefined_flag=$_lt_dar_allow_undefined 10936 case $cc_basename in 10937 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10938 *) _lt_dar_can_shared=$GCC ;; 10939 esac 10940 if test yes = "$_lt_dar_can_shared"; then 10941 output_verbose_link_cmd=func_echo_all 10942 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10943 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10944 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" 10945 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" 10946 10947 else 10948 ld_shlibs=no 10949 fi 10950 10951 ;; 10952 10953 dgux*) 10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10955 hardcode_libdir_flag_spec='-L$libdir' 10956 hardcode_shlibpath_var=no 10957 ;; 10958 10959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10960 # support. Future versions do this automatically, but an explicit c++rt0.o 10961 # does not break anything, and helps significantly (at the cost of a little 10962 # extra space). 10963 freebsd2.2*) 10964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10965 hardcode_libdir_flag_spec='-R$libdir' 10966 hardcode_direct=yes 10967 hardcode_shlibpath_var=no 10968 ;; 10969 10970 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10971 freebsd2.*) 10972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10973 hardcode_direct=yes 10974 hardcode_minus_L=yes 10975 hardcode_shlibpath_var=no 10976 ;; 10977 10978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10979 freebsd* | dragonfly*) 10980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10981 hardcode_libdir_flag_spec='-R$libdir' 10982 hardcode_direct=yes 10983 hardcode_shlibpath_var=no 10984 ;; 10985 10986 hpux9*) 10987 if test yes = "$GCC"; then 10988 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10989 else 10990 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10991 fi 10992 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10993 hardcode_libdir_separator=: 10994 hardcode_direct=yes 10995 10996 # hardcode_minus_L: Not really in the search PATH, 10997 # but as the default location of the library. 10998 hardcode_minus_L=yes 10999 export_dynamic_flag_spec='$wl-E' 11000 ;; 11001 11002 hpux10*) 11003 if test yes,no = "$GCC,$with_gnu_ld"; then 11004 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11005 else 11006 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11007 fi 11008 if test no = "$with_gnu_ld"; then 11009 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11010 hardcode_libdir_separator=: 11011 hardcode_direct=yes 11012 hardcode_direct_absolute=yes 11013 export_dynamic_flag_spec='$wl-E' 11014 # hardcode_minus_L: Not really in the search PATH, 11015 # but as the default location of the library. 11016 hardcode_minus_L=yes 11017 fi 11018 ;; 11019 11020 hpux11*) 11021 if test yes,no = "$GCC,$with_gnu_ld"; then 11022 case $host_cpu in 11023 hppa*64*) 11024 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11025 ;; 11026 ia64*) 11027 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11028 ;; 11029 *) 11030 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11031 ;; 11032 esac 11033 else 11034 case $host_cpu in 11035 hppa*64*) 11036 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11037 ;; 11038 ia64*) 11039 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11040 ;; 11041 *) 11042 11043 # Older versions of the 11.00 compiler do not understand -b yet 11044 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11046$as_echo_n "checking if $CC understands -b... " >&6; } 11047if ${lt_cv_prog_compiler__b+:} false; then : 11048 $as_echo_n "(cached) " >&6 11049else 11050 lt_cv_prog_compiler__b=no 11051 save_LDFLAGS=$LDFLAGS 11052 LDFLAGS="$LDFLAGS -b" 11053 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11055 # The linker can only warn and ignore the option if not recognized 11056 # So say no if there are warnings 11057 if test -s conftest.err; then 11058 # Append any errors to the config.log. 11059 cat conftest.err 1>&5 11060 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11062 if diff conftest.exp conftest.er2 >/dev/null; then 11063 lt_cv_prog_compiler__b=yes 11064 fi 11065 else 11066 lt_cv_prog_compiler__b=yes 11067 fi 11068 fi 11069 $RM -r conftest* 11070 LDFLAGS=$save_LDFLAGS 11071 11072fi 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11074$as_echo "$lt_cv_prog_compiler__b" >&6; } 11075 11076if test yes = "$lt_cv_prog_compiler__b"; then 11077 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11078else 11079 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11080fi 11081 11082 ;; 11083 esac 11084 fi 11085 if test no = "$with_gnu_ld"; then 11086 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11087 hardcode_libdir_separator=: 11088 11089 case $host_cpu in 11090 hppa*64*|ia64*) 11091 hardcode_direct=no 11092 hardcode_shlibpath_var=no 11093 ;; 11094 *) 11095 hardcode_direct=yes 11096 hardcode_direct_absolute=yes 11097 export_dynamic_flag_spec='$wl-E' 11098 11099 # hardcode_minus_L: Not really in the search PATH, 11100 # but as the default location of the library. 11101 hardcode_minus_L=yes 11102 ;; 11103 esac 11104 fi 11105 ;; 11106 11107 irix5* | irix6* | nonstopux*) 11108 if test yes = "$GCC"; then 11109 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' 11110 # Try to use the -exported_symbol ld option, if it does not 11111 # work, assume that -exports_file does not work either and 11112 # implicitly export all symbols. 11113 # This should be the same for all languages, so no per-tag cache variable. 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11115$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11116if ${lt_cv_irix_exported_symbol+:} false; then : 11117 $as_echo_n "(cached) " >&6 11118else 11119 save_LDFLAGS=$LDFLAGS 11120 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11122/* end confdefs.h. */ 11123int foo (void) { return 0; } 11124_ACEOF 11125if ac_fn_c_try_link "$LINENO"; then : 11126 lt_cv_irix_exported_symbol=yes 11127else 11128 lt_cv_irix_exported_symbol=no 11129fi 11130rm -f core conftest.err conftest.$ac_objext \ 11131 conftest$ac_exeext conftest.$ac_ext 11132 LDFLAGS=$save_LDFLAGS 11133fi 11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11135$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11136 if test yes = "$lt_cv_irix_exported_symbol"; then 11137 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' 11138 fi 11139 link_all_deplibs=no 11140 else 11141 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' 11142 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' 11143 fi 11144 archive_cmds_need_lc='no' 11145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11146 hardcode_libdir_separator=: 11147 inherit_rpath=yes 11148 link_all_deplibs=yes 11149 ;; 11150 11151 linux*) 11152 case $cc_basename in 11153 tcc*) 11154 # Fabrice Bellard et al's Tiny C Compiler 11155 ld_shlibs=yes 11156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11157 ;; 11158 esac 11159 ;; 11160 11161 netbsd* | netbsdelf*-gnu) 11162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11164 else 11165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11166 fi 11167 hardcode_libdir_flag_spec='-R$libdir' 11168 hardcode_direct=yes 11169 hardcode_shlibpath_var=no 11170 ;; 11171 11172 newsos6) 11173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11174 hardcode_direct=yes 11175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11176 hardcode_libdir_separator=: 11177 hardcode_shlibpath_var=no 11178 ;; 11179 11180 *nto* | *qnx*) 11181 ;; 11182 11183 openbsd* | bitrig*) 11184 if test -f /usr/libexec/ld.so; then 11185 hardcode_direct=yes 11186 hardcode_shlibpath_var=no 11187 hardcode_direct_absolute=yes 11188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11191 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11192 export_dynamic_flag_spec='$wl-E' 11193 else 11194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11195 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11196 fi 11197 else 11198 ld_shlibs=no 11199 fi 11200 ;; 11201 11202 os2*) 11203 hardcode_libdir_flag_spec='-L$libdir' 11204 hardcode_minus_L=yes 11205 allow_undefined_flag=unsupported 11206 shrext_cmds=.dll 11207 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11210 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11211 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11213 emximp -o $lib $output_objdir/$libname.def' 11214 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11217 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11218 prefix_cmds="$SED"~ 11219 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11220 prefix_cmds="$prefix_cmds -e 1d"; 11221 fi~ 11222 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11223 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11225 emximp -o $lib $output_objdir/$libname.def' 11226 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11227 enable_shared_with_static_runtimes=yes 11228 ;; 11229 11230 osf3*) 11231 if test yes = "$GCC"; then 11232 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11233 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' 11234 else 11235 allow_undefined_flag=' -expect_unresolved \*' 11236 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' 11237 fi 11238 archive_cmds_need_lc='no' 11239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11240 hardcode_libdir_separator=: 11241 ;; 11242 11243 osf4* | osf5*) # as osf3* with the addition of -msym flag 11244 if test yes = "$GCC"; then 11245 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11246 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' 11247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11248 else 11249 allow_undefined_flag=' -expect_unresolved \*' 11250 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' 11251 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~ 11252 $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' 11253 11254 # Both c and cxx compiler support -rpath directly 11255 hardcode_libdir_flag_spec='-rpath $libdir' 11256 fi 11257 archive_cmds_need_lc='no' 11258 hardcode_libdir_separator=: 11259 ;; 11260 11261 solaris*) 11262 no_undefined_flag=' -z defs' 11263 if test yes = "$GCC"; then 11264 wlarc='$wl' 11265 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11267 $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' 11268 else 11269 case `$CC -V 2>&1` in 11270 *"Compilers 5.0"*) 11271 wlarc='' 11272 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11274 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11275 ;; 11276 *) 11277 wlarc='$wl' 11278 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11280 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11281 ;; 11282 esac 11283 fi 11284 hardcode_libdir_flag_spec='-R$libdir' 11285 hardcode_shlibpath_var=no 11286 case $host_os in 11287 solaris2.[0-5] | solaris2.[0-5].*) ;; 11288 *) 11289 # The compiler driver will combine and reorder linker options, 11290 # but understands '-z linker_flag'. GCC discards it without '$wl', 11291 # but is careful enough not to reorder. 11292 # Supported since Solaris 2.6 (maybe 2.5.1?) 11293 if test yes = "$GCC"; then 11294 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11295 else 11296 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11297 fi 11298 ;; 11299 esac 11300 link_all_deplibs=yes 11301 ;; 11302 11303 sunos4*) 11304 if test sequent = "$host_vendor"; then 11305 # Use $CC to link under sequent, because it throws in some extra .o 11306 # files that make .init and .fini sections work. 11307 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11308 else 11309 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11310 fi 11311 hardcode_libdir_flag_spec='-L$libdir' 11312 hardcode_direct=yes 11313 hardcode_minus_L=yes 11314 hardcode_shlibpath_var=no 11315 ;; 11316 11317 sysv4) 11318 case $host_vendor in 11319 sni) 11320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11321 hardcode_direct=yes # is this really true??? 11322 ;; 11323 siemens) 11324 ## LD is ld it makes a PLAMLIB 11325 ## CC just makes a GrossModule. 11326 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11327 reload_cmds='$CC -r -o $output$reload_objs' 11328 hardcode_direct=no 11329 ;; 11330 motorola) 11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11332 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11333 ;; 11334 esac 11335 runpath_var='LD_RUN_PATH' 11336 hardcode_shlibpath_var=no 11337 ;; 11338 11339 sysv4.3*) 11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11341 hardcode_shlibpath_var=no 11342 export_dynamic_flag_spec='-Bexport' 11343 ;; 11344 11345 sysv4*MP*) 11346 if test -d /usr/nec; then 11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11348 hardcode_shlibpath_var=no 11349 runpath_var=LD_RUN_PATH 11350 hardcode_runpath_var=yes 11351 ld_shlibs=yes 11352 fi 11353 ;; 11354 11355 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11356 no_undefined_flag='$wl-z,text' 11357 archive_cmds_need_lc=no 11358 hardcode_shlibpath_var=no 11359 runpath_var='LD_RUN_PATH' 11360 11361 if test yes = "$GCC"; then 11362 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11363 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11364 else 11365 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11366 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11367 fi 11368 ;; 11369 11370 sysv5* | sco3.2v5* | sco5v6*) 11371 # Note: We CANNOT use -z defs as we might desire, because we do not 11372 # link with -lc, and that would cause any symbols used from libc to 11373 # always be unresolved, which means just about no library would 11374 # ever link correctly. If we're not using GNU ld we use -z text 11375 # though, which does catch some bad symbols but isn't as heavy-handed 11376 # as -z defs. 11377 no_undefined_flag='$wl-z,text' 11378 allow_undefined_flag='$wl-z,nodefs' 11379 archive_cmds_need_lc=no 11380 hardcode_shlibpath_var=no 11381 hardcode_libdir_flag_spec='$wl-R,$libdir' 11382 hardcode_libdir_separator=':' 11383 link_all_deplibs=yes 11384 export_dynamic_flag_spec='$wl-Bexport' 11385 runpath_var='LD_RUN_PATH' 11386 11387 if test yes = "$GCC"; then 11388 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11389 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11390 else 11391 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11392 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11393 fi 11394 ;; 11395 11396 uts4*) 11397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11398 hardcode_libdir_flag_spec='-L$libdir' 11399 hardcode_shlibpath_var=no 11400 ;; 11401 11402 *) 11403 ld_shlibs=no 11404 ;; 11405 esac 11406 11407 if test sni = "$host_vendor"; then 11408 case $host in 11409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11410 export_dynamic_flag_spec='$wl-Blargedynsym' 11411 ;; 11412 esac 11413 fi 11414 fi 11415 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11417$as_echo "$ld_shlibs" >&6; } 11418test no = "$ld_shlibs" && can_build_shared=no 11419 11420with_gnu_ld=$with_gnu_ld 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436# 11437# Do we need to explicitly link libc? 11438# 11439case "x$archive_cmds_need_lc" in 11440x|xyes) 11441 # Assume -lc should be added 11442 archive_cmds_need_lc=yes 11443 11444 if test yes,yes = "$GCC,$enable_shared"; then 11445 case $archive_cmds in 11446 *'~'*) 11447 # FIXME: we may have to deal with multi-command sequences. 11448 ;; 11449 '$CC '*) 11450 # Test whether the compiler implicitly links with -lc since on some 11451 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11452 # to ld, don't add -lc before -lgcc. 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11454$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11455if ${lt_cv_archive_cmds_need_lc+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 $RM conftest* 11459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11460 11461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11462 (eval $ac_compile) 2>&5 11463 ac_status=$? 11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11465 test $ac_status = 0; } 2>conftest.err; then 11466 soname=conftest 11467 lib=conftest 11468 libobjs=conftest.$ac_objext 11469 deplibs= 11470 wl=$lt_prog_compiler_wl 11471 pic_flag=$lt_prog_compiler_pic 11472 compiler_flags=-v 11473 linker_flags=-v 11474 verstring= 11475 output_objdir=. 11476 libname=conftest 11477 lt_save_allow_undefined_flag=$allow_undefined_flag 11478 allow_undefined_flag= 11479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11480 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11481 ac_status=$? 11482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11483 test $ac_status = 0; } 11484 then 11485 lt_cv_archive_cmds_need_lc=no 11486 else 11487 lt_cv_archive_cmds_need_lc=yes 11488 fi 11489 allow_undefined_flag=$lt_save_allow_undefined_flag 11490 else 11491 cat conftest.err 1>&5 11492 fi 11493 $RM conftest* 11494 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11497$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11498 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11499 ;; 11500 esac 11501 fi 11502 ;; 11503esac 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11657$as_echo_n "checking dynamic linker characteristics... " >&6; } 11658 11659if test yes = "$GCC"; then 11660 case $host_os in 11661 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11662 *) lt_awk_arg='/^libraries:/' ;; 11663 esac 11664 case $host_os in 11665 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11666 *) lt_sed_strip_eq='s|=/|/|g' ;; 11667 esac 11668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11669 case $lt_search_path_spec in 11670 *\;*) 11671 # if the path contains ";" then we assume it to be the separator 11672 # otherwise default to the standard path separator (i.e. ":") - it is 11673 # assumed that no part of a normal pathname contains ";" but that should 11674 # okay in the real world where ";" in dirpaths is itself problematic. 11675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11676 ;; 11677 *) 11678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11679 ;; 11680 esac 11681 # Ok, now we have the path, separated by spaces, we can step through it 11682 # and add multilib dir if necessary... 11683 lt_tmp_lt_search_path_spec= 11684 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11685 # ...but if some path component already ends with the multilib dir we assume 11686 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11687 case "$lt_multi_os_dir; $lt_search_path_spec " in 11688 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11689 lt_multi_os_dir= 11690 ;; 11691 esac 11692 for lt_sys_path in $lt_search_path_spec; do 11693 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11694 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11695 elif test -n "$lt_multi_os_dir"; then 11696 test -d "$lt_sys_path" && \ 11697 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11698 fi 11699 done 11700 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11701BEGIN {RS = " "; FS = "/|\n";} { 11702 lt_foo = ""; 11703 lt_count = 0; 11704 for (lt_i = NF; lt_i > 0; lt_i--) { 11705 if ($lt_i != "" && $lt_i != ".") { 11706 if ($lt_i == "..") { 11707 lt_count++; 11708 } else { 11709 if (lt_count == 0) { 11710 lt_foo = "/" $lt_i lt_foo; 11711 } else { 11712 lt_count--; 11713 } 11714 } 11715 } 11716 } 11717 if (lt_foo != "") { lt_freq[lt_foo]++; } 11718 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11719}'` 11720 # AWK program above erroneously prepends '/' to C:/dos/paths 11721 # for these hosts. 11722 case $host_os in 11723 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11724 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11725 esac 11726 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11727else 11728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11729fi 11730library_names_spec= 11731libname_spec='lib$name' 11732soname_spec= 11733shrext_cmds=.so 11734postinstall_cmds= 11735postuninstall_cmds= 11736finish_cmds= 11737finish_eval= 11738shlibpath_var= 11739shlibpath_overrides_runpath=unknown 11740version_type=none 11741dynamic_linker="$host_os ld.so" 11742sys_lib_dlsearch_path_spec="/lib /usr/lib" 11743need_lib_prefix=unknown 11744hardcode_into_libs=no 11745 11746# when you set need_version to no, make sure it does not cause -set_version 11747# flags to be left without arguments 11748need_version=unknown 11749 11750 11751 11752case $host_os in 11753aix3*) 11754 version_type=linux # correct to gnu/linux during the next big refactor 11755 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11756 shlibpath_var=LIBPATH 11757 11758 # AIX 3 has no versioning support, so we append a major version to the name. 11759 soname_spec='$libname$release$shared_ext$major' 11760 ;; 11761 11762aix[4-9]*) 11763 version_type=linux # correct to gnu/linux during the next big refactor 11764 need_lib_prefix=no 11765 need_version=no 11766 hardcode_into_libs=yes 11767 if test ia64 = "$host_cpu"; then 11768 # AIX 5 supports IA64 11769 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11770 shlibpath_var=LD_LIBRARY_PATH 11771 else 11772 # With GCC up to 2.95.x, collect2 would create an import file 11773 # for dependence libraries. The import file would start with 11774 # the line '#! .'. This would cause the generated library to 11775 # depend on '.', always an invalid library. This was fixed in 11776 # development snapshots of GCC prior to 3.0. 11777 case $host_os in 11778 aix4 | aix4.[01] | aix4.[01].*) 11779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11780 echo ' yes ' 11781 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11782 : 11783 else 11784 can_build_shared=no 11785 fi 11786 ;; 11787 esac 11788 # Using Import Files as archive members, it is possible to support 11789 # filename-based versioning of shared library archives on AIX. While 11790 # this would work for both with and without runtime linking, it will 11791 # prevent static linking of such archives. So we do filename-based 11792 # shared library versioning with .so extension only, which is used 11793 # when both runtime linking and shared linking is enabled. 11794 # Unfortunately, runtime linking may impact performance, so we do 11795 # not want this to be the default eventually. Also, we use the 11796 # versioned .so libs for executables only if there is the -brtl 11797 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11798 # To allow for filename-based versioning support, we need to create 11799 # libNAME.so.V as an archive file, containing: 11800 # *) an Import File, referring to the versioned filename of the 11801 # archive as well as the shared archive member, telling the 11802 # bitwidth (32 or 64) of that shared object, and providing the 11803 # list of exported symbols of that shared object, eventually 11804 # decorated with the 'weak' keyword 11805 # *) the shared object with the F_LOADONLY flag set, to really avoid 11806 # it being seen by the linker. 11807 # At run time we better use the real file rather than another symlink, 11808 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11809 11810 case $with_aix_soname,$aix_use_runtimelinking in 11811 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11812 # soname into executable. Probably we can add versioning support to 11813 # collect2, so additional links can be useful in future. 11814 aix,yes) # traditional libtool 11815 dynamic_linker='AIX unversionable lib.so' 11816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11817 # instead of lib<name>.a to let people know that these are not 11818 # typical AIX shared libraries. 11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11820 ;; 11821 aix,no) # traditional AIX only 11822 dynamic_linker='AIX lib.a(lib.so.V)' 11823 # We preserve .a as extension for shared libraries through AIX4.2 11824 # and later when we are not doing run time linking. 11825 library_names_spec='$libname$release.a $libname.a' 11826 soname_spec='$libname$release$shared_ext$major' 11827 ;; 11828 svr4,*) # full svr4 only 11829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11831 # We do not specify a path in Import Files, so LIBPATH fires. 11832 shlibpath_overrides_runpath=yes 11833 ;; 11834 *,yes) # both, prefer svr4 11835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11837 # unpreferred sharedlib libNAME.a needs extra handling 11838 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11839 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11840 # We do not specify a path in Import Files, so LIBPATH fires. 11841 shlibpath_overrides_runpath=yes 11842 ;; 11843 *,no) # both, prefer aix 11844 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11845 library_names_spec='$libname$release.a $libname.a' 11846 soname_spec='$libname$release$shared_ext$major' 11847 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11848 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11849 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11850 ;; 11851 esac 11852 shlibpath_var=LIBPATH 11853 fi 11854 ;; 11855 11856amigaos*) 11857 case $host_cpu in 11858 powerpc) 11859 # Since July 2007 AmigaOS4 officially supports .so libraries. 11860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11862 ;; 11863 m68k) 11864 library_names_spec='$libname.ixlibrary $libname.a' 11865 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11866 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11867 ;; 11868 esac 11869 ;; 11870 11871beos*) 11872 library_names_spec='$libname$shared_ext' 11873 dynamic_linker="$host_os ld.so" 11874 shlibpath_var=LIBRARY_PATH 11875 ;; 11876 11877bsdi[45]*) 11878 version_type=linux # correct to gnu/linux during the next big refactor 11879 need_version=no 11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11881 soname_spec='$libname$release$shared_ext$major' 11882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11883 shlibpath_var=LD_LIBRARY_PATH 11884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11886 # the default ld.so.conf also contains /usr/contrib/lib and 11887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11888 # libtool to hard-code these into programs 11889 ;; 11890 11891cygwin* | mingw* | pw32* | cegcc*) 11892 version_type=windows 11893 shrext_cmds=.dll 11894 need_version=no 11895 need_lib_prefix=no 11896 11897 case $GCC,$cc_basename in 11898 yes,*) 11899 # gcc 11900 library_names_spec='$libname.dll.a' 11901 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11902 postinstall_cmds='base_file=`basename \$file`~ 11903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11904 dldir=$destdir/`dirname \$dlpath`~ 11905 test -d \$dldir || mkdir -p \$dldir~ 11906 $install_prog $dir/$dlname \$dldir/$dlname~ 11907 chmod a+x \$dldir/$dlname~ 11908 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11909 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11910 fi' 11911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11912 dlpath=$dir/\$dldll~ 11913 $RM \$dlpath' 11914 shlibpath_overrides_runpath=yes 11915 11916 case $host_os in 11917 cygwin*) 11918 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11919 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11920 11921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11922 ;; 11923 mingw* | cegcc*) 11924 # MinGW DLLs use traditional 'lib' prefix 11925 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11926 ;; 11927 pw32*) 11928 # pw32 DLLs use 'pw' prefix rather than 'lib' 11929 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11930 ;; 11931 esac 11932 dynamic_linker='Win32 ld.exe' 11933 ;; 11934 11935 *,cl*) 11936 # Native MSVC 11937 libname_spec='$name' 11938 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11939 library_names_spec='$libname.dll.lib' 11940 11941 case $build_os in 11942 mingw*) 11943 sys_lib_search_path_spec= 11944 lt_save_ifs=$IFS 11945 IFS=';' 11946 for lt_path in $LIB 11947 do 11948 IFS=$lt_save_ifs 11949 # Let DOS variable expansion print the short 8.3 style file name. 11950 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11951 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11952 done 11953 IFS=$lt_save_ifs 11954 # Convert to MSYS style. 11955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11956 ;; 11957 cygwin*) 11958 # Convert to unix form, then to dos form, then back to unix form 11959 # but this time dos style (no spaces!) so that the unix form looks 11960 # like /cygdrive/c/PROGRA~1:/cygdr... 11961 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11962 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11963 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11964 ;; 11965 *) 11966 sys_lib_search_path_spec=$LIB 11967 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11968 # It is most probably a Windows format PATH. 11969 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11970 else 11971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11972 fi 11973 # FIXME: find the short name or the path components, as spaces are 11974 # common. (e.g. "Program Files" -> "PROGRA~1") 11975 ;; 11976 esac 11977 11978 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11979 postinstall_cmds='base_file=`basename \$file`~ 11980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11981 dldir=$destdir/`dirname \$dlpath`~ 11982 test -d \$dldir || mkdir -p \$dldir~ 11983 $install_prog $dir/$dlname \$dldir/$dlname' 11984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11985 dlpath=$dir/\$dldll~ 11986 $RM \$dlpath' 11987 shlibpath_overrides_runpath=yes 11988 dynamic_linker='Win32 link.exe' 11989 ;; 11990 11991 *) 11992 # Assume MSVC wrapper 11993 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11994 dynamic_linker='Win32 ld.exe' 11995 ;; 11996 esac 11997 # FIXME: first we should search . and the directory the executable is in 11998 shlibpath_var=PATH 11999 ;; 12000 12001darwin* | rhapsody*) 12002 dynamic_linker="$host_os dyld" 12003 version_type=darwin 12004 need_lib_prefix=no 12005 need_version=no 12006 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12007 soname_spec='$libname$release$major$shared_ext' 12008 shlibpath_overrides_runpath=yes 12009 shlibpath_var=DYLD_LIBRARY_PATH 12010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12011 12012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12014 ;; 12015 12016dgux*) 12017 version_type=linux # correct to gnu/linux during the next big refactor 12018 need_lib_prefix=no 12019 need_version=no 12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12021 soname_spec='$libname$release$shared_ext$major' 12022 shlibpath_var=LD_LIBRARY_PATH 12023 ;; 12024 12025freebsd* | dragonfly*) 12026 # DragonFly does not have aout. When/if they implement a new 12027 # versioning mechanism, adjust this. 12028 if test -x /usr/bin/objformat; then 12029 objformat=`/usr/bin/objformat` 12030 else 12031 case $host_os in 12032 freebsd[23].*) objformat=aout ;; 12033 *) objformat=elf ;; 12034 esac 12035 fi 12036 version_type=freebsd-$objformat 12037 case $version_type in 12038 freebsd-elf*) 12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12040 soname_spec='$libname$release$shared_ext$major' 12041 need_version=no 12042 need_lib_prefix=no 12043 ;; 12044 freebsd-*) 12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12046 need_version=yes 12047 ;; 12048 esac 12049 shlibpath_var=LD_LIBRARY_PATH 12050 case $host_os in 12051 freebsd2.*) 12052 shlibpath_overrides_runpath=yes 12053 ;; 12054 freebsd3.[01]* | freebsdelf3.[01]*) 12055 shlibpath_overrides_runpath=yes 12056 hardcode_into_libs=yes 12057 ;; 12058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12060 shlibpath_overrides_runpath=no 12061 hardcode_into_libs=yes 12062 ;; 12063 *) # from 4.6 on, and DragonFly 12064 shlibpath_overrides_runpath=yes 12065 hardcode_into_libs=yes 12066 ;; 12067 esac 12068 ;; 12069 12070haiku*) 12071 version_type=linux # correct to gnu/linux during the next big refactor 12072 need_lib_prefix=no 12073 need_version=no 12074 dynamic_linker="$host_os runtime_loader" 12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12076 soname_spec='$libname$release$shared_ext$major' 12077 shlibpath_var=LIBRARY_PATH 12078 shlibpath_overrides_runpath=no 12079 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12080 hardcode_into_libs=yes 12081 ;; 12082 12083hpux9* | hpux10* | hpux11*) 12084 # Give a soname corresponding to the major version so that dld.sl refuses to 12085 # link against other versions. 12086 version_type=sunos 12087 need_lib_prefix=no 12088 need_version=no 12089 case $host_cpu in 12090 ia64*) 12091 shrext_cmds='.so' 12092 hardcode_into_libs=yes 12093 dynamic_linker="$host_os dld.so" 12094 shlibpath_var=LD_LIBRARY_PATH 12095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12097 soname_spec='$libname$release$shared_ext$major' 12098 if test 32 = "$HPUX_IA64_MODE"; then 12099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12100 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12101 else 12102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12103 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12104 fi 12105 ;; 12106 hppa*64*) 12107 shrext_cmds='.sl' 12108 hardcode_into_libs=yes 12109 dynamic_linker="$host_os dld.sl" 12110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12113 soname_spec='$libname$release$shared_ext$major' 12114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12116 ;; 12117 *) 12118 shrext_cmds='.sl' 12119 dynamic_linker="$host_os dld.sl" 12120 shlibpath_var=SHLIB_PATH 12121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12123 soname_spec='$libname$release$shared_ext$major' 12124 ;; 12125 esac 12126 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12127 postinstall_cmds='chmod 555 $lib' 12128 # or fails outright, so override atomically: 12129 install_override_mode=555 12130 ;; 12131 12132interix[3-9]*) 12133 version_type=linux # correct to gnu/linux during the next big refactor 12134 need_lib_prefix=no 12135 need_version=no 12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12137 soname_spec='$libname$release$shared_ext$major' 12138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12139 shlibpath_var=LD_LIBRARY_PATH 12140 shlibpath_overrides_runpath=no 12141 hardcode_into_libs=yes 12142 ;; 12143 12144irix5* | irix6* | nonstopux*) 12145 case $host_os in 12146 nonstopux*) version_type=nonstopux ;; 12147 *) 12148 if test yes = "$lt_cv_prog_gnu_ld"; then 12149 version_type=linux # correct to gnu/linux during the next big refactor 12150 else 12151 version_type=irix 12152 fi ;; 12153 esac 12154 need_lib_prefix=no 12155 need_version=no 12156 soname_spec='$libname$release$shared_ext$major' 12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12158 case $host_os in 12159 irix5* | nonstopux*) 12160 libsuff= shlibsuff= 12161 ;; 12162 *) 12163 case $LD in # libtool.m4 will add one of these switches to LD 12164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12165 libsuff= shlibsuff= libmagic=32-bit;; 12166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12167 libsuff=32 shlibsuff=N32 libmagic=N32;; 12168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12169 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12170 *) libsuff= shlibsuff= libmagic=never-match;; 12171 esac 12172 ;; 12173 esac 12174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12175 shlibpath_overrides_runpath=no 12176 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12177 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12178 hardcode_into_libs=yes 12179 ;; 12180 12181# No shared lib support for Linux oldld, aout, or coff. 12182linux*oldld* | linux*aout* | linux*coff*) 12183 dynamic_linker=no 12184 ;; 12185 12186linux*android*) 12187 version_type=none # Android doesn't support versioned libraries. 12188 need_lib_prefix=no 12189 need_version=no 12190 library_names_spec='$libname$release$shared_ext' 12191 soname_spec='$libname$release$shared_ext' 12192 finish_cmds= 12193 shlibpath_var=LD_LIBRARY_PATH 12194 shlibpath_overrides_runpath=yes 12195 12196 # This implies no fast_install, which is unacceptable. 12197 # Some rework will be needed to allow for fast_install 12198 # before this can be enabled. 12199 hardcode_into_libs=yes 12200 12201 dynamic_linker='Android linker' 12202 # Don't embed -rpath directories since the linker doesn't support them. 12203 hardcode_libdir_flag_spec='-L$libdir' 12204 ;; 12205 12206# This must be glibc/ELF. 12207linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12208 version_type=linux # correct to gnu/linux during the next big refactor 12209 need_lib_prefix=no 12210 need_version=no 12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12212 soname_spec='$libname$release$shared_ext$major' 12213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12214 shlibpath_var=LD_LIBRARY_PATH 12215 shlibpath_overrides_runpath=no 12216 12217 # Some binutils ld are patched to set DT_RUNPATH 12218 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 lt_cv_shlibpath_overrides_runpath=no 12222 save_LDFLAGS=$LDFLAGS 12223 save_libdir=$libdir 12224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228 12229int 12230main () 12231{ 12232 12233 ; 12234 return 0; 12235} 12236_ACEOF 12237if ac_fn_c_try_link "$LINENO"; then : 12238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12239 lt_cv_shlibpath_overrides_runpath=yes 12240fi 12241fi 12242rm -f core conftest.err conftest.$ac_objext \ 12243 conftest$ac_exeext conftest.$ac_ext 12244 LDFLAGS=$save_LDFLAGS 12245 libdir=$save_libdir 12246 12247fi 12248 12249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12250 12251 # This implies no fast_install, which is unacceptable. 12252 # Some rework will be needed to allow for fast_install 12253 # before this can be enabled. 12254 hardcode_into_libs=yes 12255 12256 # Ideally, we could use ldconfig to report *all* directores which are 12257 # searched for libraries, however this is still not possible. Aside from not 12258 # being certain /sbin/ldconfig is available, command 12259 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12260 # even though it is searched at run-time. Try to do the best guess by 12261 # appending ld.so.conf contents (and includes) to the search path. 12262 if test -f /etc/ld.so.conf; then 12263 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' ' '` 12264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12265 fi 12266 12267 # We used to test for /lib/ld.so.1 and disable shared libraries on 12268 # powerpc, because MkLinux only supported shared libraries with the 12269 # GNU dynamic linker. Since this was broken with cross compilers, 12270 # most powerpc-linux boxes support dynamic linking these days and 12271 # people can always --disable-shared, the test was removed, and we 12272 # assume the GNU/Linux dynamic linker is in use. 12273 dynamic_linker='GNU/Linux ld.so' 12274 ;; 12275 12276netbsdelf*-gnu) 12277 version_type=linux 12278 need_lib_prefix=no 12279 need_version=no 12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12281 soname_spec='${libname}${release}${shared_ext}$major' 12282 shlibpath_var=LD_LIBRARY_PATH 12283 shlibpath_overrides_runpath=no 12284 hardcode_into_libs=yes 12285 dynamic_linker='NetBSD ld.elf_so' 12286 ;; 12287 12288netbsd*) 12289 version_type=sunos 12290 need_lib_prefix=no 12291 need_version=no 12292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12295 dynamic_linker='NetBSD (a.out) ld.so' 12296 else 12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12298 soname_spec='$libname$release$shared_ext$major' 12299 dynamic_linker='NetBSD ld.elf_so' 12300 fi 12301 shlibpath_var=LD_LIBRARY_PATH 12302 shlibpath_overrides_runpath=yes 12303 hardcode_into_libs=yes 12304 ;; 12305 12306newsos6) 12307 version_type=linux # correct to gnu/linux during the next big refactor 12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12309 shlibpath_var=LD_LIBRARY_PATH 12310 shlibpath_overrides_runpath=yes 12311 ;; 12312 12313*nto* | *qnx*) 12314 version_type=qnx 12315 need_lib_prefix=no 12316 need_version=no 12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12318 soname_spec='$libname$release$shared_ext$major' 12319 shlibpath_var=LD_LIBRARY_PATH 12320 shlibpath_overrides_runpath=no 12321 hardcode_into_libs=yes 12322 dynamic_linker='ldqnx.so' 12323 ;; 12324 12325openbsd* | bitrig*) 12326 version_type=sunos 12327 sys_lib_dlsearch_path_spec=/usr/lib 12328 need_lib_prefix=no 12329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12330 need_version=no 12331 else 12332 need_version=yes 12333 fi 12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12336 shlibpath_var=LD_LIBRARY_PATH 12337 shlibpath_overrides_runpath=yes 12338 ;; 12339 12340os2*) 12341 libname_spec='$name' 12342 version_type=windows 12343 shrext_cmds=.dll 12344 need_version=no 12345 need_lib_prefix=no 12346 # OS/2 can only load a DLL with a base name of 8 characters or less. 12347 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12348 v=$($ECHO $release$versuffix | tr -d .-); 12349 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12350 $ECHO $n$v`$shared_ext' 12351 library_names_spec='${libname}_dll.$libext' 12352 dynamic_linker='OS/2 ld.exe' 12353 shlibpath_var=BEGINLIBPATH 12354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12356 postinstall_cmds='base_file=`basename \$file`~ 12357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12358 dldir=$destdir/`dirname \$dlpath`~ 12359 test -d \$dldir || mkdir -p \$dldir~ 12360 $install_prog $dir/$dlname \$dldir/$dlname~ 12361 chmod a+x \$dldir/$dlname~ 12362 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12363 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12364 fi' 12365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12366 dlpath=$dir/\$dldll~ 12367 $RM \$dlpath' 12368 ;; 12369 12370osf3* | osf4* | osf5*) 12371 version_type=osf 12372 need_lib_prefix=no 12373 need_version=no 12374 soname_spec='$libname$release$shared_ext$major' 12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12376 shlibpath_var=LD_LIBRARY_PATH 12377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12379 ;; 12380 12381rdos*) 12382 dynamic_linker=no 12383 ;; 12384 12385solaris*) 12386 version_type=linux # correct to gnu/linux during the next big refactor 12387 need_lib_prefix=no 12388 need_version=no 12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12390 soname_spec='$libname$release$shared_ext$major' 12391 shlibpath_var=LD_LIBRARY_PATH 12392 shlibpath_overrides_runpath=yes 12393 hardcode_into_libs=yes 12394 # ldd complains unless libraries are executable 12395 postinstall_cmds='chmod +x $lib' 12396 ;; 12397 12398sunos4*) 12399 version_type=sunos 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12402 shlibpath_var=LD_LIBRARY_PATH 12403 shlibpath_overrides_runpath=yes 12404 if test yes = "$with_gnu_ld"; then 12405 need_lib_prefix=no 12406 fi 12407 need_version=yes 12408 ;; 12409 12410sysv4 | sysv4.3*) 12411 version_type=linux # correct to gnu/linux during the next big refactor 12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12413 soname_spec='$libname$release$shared_ext$major' 12414 shlibpath_var=LD_LIBRARY_PATH 12415 case $host_vendor in 12416 sni) 12417 shlibpath_overrides_runpath=no 12418 need_lib_prefix=no 12419 runpath_var=LD_RUN_PATH 12420 ;; 12421 siemens) 12422 need_lib_prefix=no 12423 ;; 12424 motorola) 12425 need_lib_prefix=no 12426 need_version=no 12427 shlibpath_overrides_runpath=no 12428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12429 ;; 12430 esac 12431 ;; 12432 12433sysv4*MP*) 12434 if test -d /usr/nec; then 12435 version_type=linux # correct to gnu/linux during the next big refactor 12436 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12437 soname_spec='$libname$shared_ext.$major' 12438 shlibpath_var=LD_LIBRARY_PATH 12439 fi 12440 ;; 12441 12442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12443 version_type=sco 12444 need_lib_prefix=no 12445 need_version=no 12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12447 soname_spec='$libname$release$shared_ext$major' 12448 shlibpath_var=LD_LIBRARY_PATH 12449 shlibpath_overrides_runpath=yes 12450 hardcode_into_libs=yes 12451 if test yes = "$with_gnu_ld"; then 12452 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12453 else 12454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12455 case $host_os in 12456 sco3.2v5*) 12457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12458 ;; 12459 esac 12460 fi 12461 sys_lib_dlsearch_path_spec='/usr/lib' 12462 ;; 12463 12464tpf*) 12465 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12466 version_type=linux # correct to gnu/linux during the next big refactor 12467 need_lib_prefix=no 12468 need_version=no 12469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12470 shlibpath_var=LD_LIBRARY_PATH 12471 shlibpath_overrides_runpath=no 12472 hardcode_into_libs=yes 12473 ;; 12474 12475uts4*) 12476 version_type=linux # correct to gnu/linux during the next big refactor 12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12478 soname_spec='$libname$release$shared_ext$major' 12479 shlibpath_var=LD_LIBRARY_PATH 12480 ;; 12481 12482*) 12483 dynamic_linker=no 12484 ;; 12485esac 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12487$as_echo "$dynamic_linker" >&6; } 12488test no = "$dynamic_linker" && can_build_shared=no 12489 12490variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12491if test yes = "$GCC"; then 12492 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12493fi 12494 12495if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12496 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12497fi 12498 12499if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12500 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12501fi 12502 12503# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12504configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12505 12506# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12507func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12508 12509# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12510configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12609$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12610hardcode_action= 12611if test -n "$hardcode_libdir_flag_spec" || 12612 test -n "$runpath_var" || 12613 test yes = "$hardcode_automatic"; then 12614 12615 # We can hardcode non-existent directories. 12616 if test no != "$hardcode_direct" && 12617 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12618 # have to relink, otherwise we might link with an installed library 12619 # when we should be linking with a yet-to-be-installed one 12620 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12621 test no != "$hardcode_minus_L"; then 12622 # Linking always hardcodes the temporary library directory. 12623 hardcode_action=relink 12624 else 12625 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12626 hardcode_action=immediate 12627 fi 12628else 12629 # We cannot hardcode anything, or else we can only hardcode existing 12630 # directories. 12631 hardcode_action=unsupported 12632fi 12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12634$as_echo "$hardcode_action" >&6; } 12635 12636if test relink = "$hardcode_action" || 12637 test yes = "$inherit_rpath"; then 12638 # Fast installation is not supported 12639 enable_fast_install=no 12640elif test yes = "$shlibpath_overrides_runpath" || 12641 test no = "$enable_shared"; then 12642 # Fast installation is not necessary 12643 enable_fast_install=needless 12644fi 12645 12646 12647 12648 12649 12650 12651 if test yes != "$enable_dlopen"; then 12652 enable_dlopen=unknown 12653 enable_dlopen_self=unknown 12654 enable_dlopen_self_static=unknown 12655else 12656 lt_cv_dlopen=no 12657 lt_cv_dlopen_libs= 12658 12659 case $host_os in 12660 beos*) 12661 lt_cv_dlopen=load_add_on 12662 lt_cv_dlopen_libs= 12663 lt_cv_dlopen_self=yes 12664 ;; 12665 12666 mingw* | pw32* | cegcc*) 12667 lt_cv_dlopen=LoadLibrary 12668 lt_cv_dlopen_libs= 12669 ;; 12670 12671 cygwin*) 12672 lt_cv_dlopen=dlopen 12673 lt_cv_dlopen_libs= 12674 ;; 12675 12676 darwin*) 12677 # if libdl is installed we need to link against it 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12679$as_echo_n "checking for dlopen in -ldl... " >&6; } 12680if ${ac_cv_lib_dl_dlopen+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 ac_check_lib_save_LIBS=$LIBS 12684LIBS="-ldl $LIBS" 12685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687 12688/* Override any GCC internal prototype to avoid an error. 12689 Use char because int might match the return type of a GCC 12690 builtin and then its argument prototype would still apply. */ 12691#ifdef __cplusplus 12692extern "C" 12693#endif 12694char dlopen (); 12695int 12696main () 12697{ 12698return dlopen (); 12699 ; 12700 return 0; 12701} 12702_ACEOF 12703if ac_fn_c_try_link "$LINENO"; then : 12704 ac_cv_lib_dl_dlopen=yes 12705else 12706 ac_cv_lib_dl_dlopen=no 12707fi 12708rm -f core conftest.err conftest.$ac_objext \ 12709 conftest$ac_exeext conftest.$ac_ext 12710LIBS=$ac_check_lib_save_LIBS 12711fi 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12713$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12714if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12715 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12716else 12717 12718 lt_cv_dlopen=dyld 12719 lt_cv_dlopen_libs= 12720 lt_cv_dlopen_self=yes 12721 12722fi 12723 12724 ;; 12725 12726 tpf*) 12727 # Don't try to run any link tests for TPF. We know it's impossible 12728 # because TPF is a cross-compiler, and we know how we open DSOs. 12729 lt_cv_dlopen=dlopen 12730 lt_cv_dlopen_libs= 12731 lt_cv_dlopen_self=no 12732 ;; 12733 12734 *) 12735 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12736if test "x$ac_cv_func_shl_load" = xyes; then : 12737 lt_cv_dlopen=shl_load 12738else 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12740$as_echo_n "checking for shl_load in -ldld... " >&6; } 12741if ${ac_cv_lib_dld_shl_load+:} false; then : 12742 $as_echo_n "(cached) " >&6 12743else 12744 ac_check_lib_save_LIBS=$LIBS 12745LIBS="-ldld $LIBS" 12746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12747/* end confdefs.h. */ 12748 12749/* Override any GCC internal prototype to avoid an error. 12750 Use char because int might match the return type of a GCC 12751 builtin and then its argument prototype would still apply. */ 12752#ifdef __cplusplus 12753extern "C" 12754#endif 12755char shl_load (); 12756int 12757main () 12758{ 12759return shl_load (); 12760 ; 12761 return 0; 12762} 12763_ACEOF 12764if ac_fn_c_try_link "$LINENO"; then : 12765 ac_cv_lib_dld_shl_load=yes 12766else 12767 ac_cv_lib_dld_shl_load=no 12768fi 12769rm -f core conftest.err conftest.$ac_objext \ 12770 conftest$ac_exeext conftest.$ac_ext 12771LIBS=$ac_check_lib_save_LIBS 12772fi 12773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12774$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12775if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12776 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12777else 12778 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12779if test "x$ac_cv_func_dlopen" = xyes; then : 12780 lt_cv_dlopen=dlopen 12781else 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12783$as_echo_n "checking for dlopen in -ldl... " >&6; } 12784if ${ac_cv_lib_dl_dlopen+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 ac_check_lib_save_LIBS=$LIBS 12788LIBS="-ldl $LIBS" 12789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12790/* end confdefs.h. */ 12791 12792/* Override any GCC internal prototype to avoid an error. 12793 Use char because int might match the return type of a GCC 12794 builtin and then its argument prototype would still apply. */ 12795#ifdef __cplusplus 12796extern "C" 12797#endif 12798char dlopen (); 12799int 12800main () 12801{ 12802return dlopen (); 12803 ; 12804 return 0; 12805} 12806_ACEOF 12807if ac_fn_c_try_link "$LINENO"; then : 12808 ac_cv_lib_dl_dlopen=yes 12809else 12810 ac_cv_lib_dl_dlopen=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814LIBS=$ac_check_lib_save_LIBS 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12817$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12818if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12819 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12820else 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12822$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12823if ${ac_cv_lib_svld_dlopen+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825else 12826 ac_check_lib_save_LIBS=$LIBS 12827LIBS="-lsvld $LIBS" 12828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12829/* end confdefs.h. */ 12830 12831/* Override any GCC internal prototype to avoid an error. 12832 Use char because int might match the return type of a GCC 12833 builtin and then its argument prototype would still apply. */ 12834#ifdef __cplusplus 12835extern "C" 12836#endif 12837char dlopen (); 12838int 12839main () 12840{ 12841return dlopen (); 12842 ; 12843 return 0; 12844} 12845_ACEOF 12846if ac_fn_c_try_link "$LINENO"; then : 12847 ac_cv_lib_svld_dlopen=yes 12848else 12849 ac_cv_lib_svld_dlopen=no 12850fi 12851rm -f core conftest.err conftest.$ac_objext \ 12852 conftest$ac_exeext conftest.$ac_ext 12853LIBS=$ac_check_lib_save_LIBS 12854fi 12855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12856$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12857if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12858 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12859else 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12861$as_echo_n "checking for dld_link in -ldld... " >&6; } 12862if ${ac_cv_lib_dld_dld_link+:} false; then : 12863 $as_echo_n "(cached) " >&6 12864else 12865 ac_check_lib_save_LIBS=$LIBS 12866LIBS="-ldld $LIBS" 12867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12868/* end confdefs.h. */ 12869 12870/* Override any GCC internal prototype to avoid an error. 12871 Use char because int might match the return type of a GCC 12872 builtin and then its argument prototype would still apply. */ 12873#ifdef __cplusplus 12874extern "C" 12875#endif 12876char dld_link (); 12877int 12878main () 12879{ 12880return dld_link (); 12881 ; 12882 return 0; 12883} 12884_ACEOF 12885if ac_fn_c_try_link "$LINENO"; then : 12886 ac_cv_lib_dld_dld_link=yes 12887else 12888 ac_cv_lib_dld_dld_link=no 12889fi 12890rm -f core conftest.err conftest.$ac_objext \ 12891 conftest$ac_exeext conftest.$ac_ext 12892LIBS=$ac_check_lib_save_LIBS 12893fi 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12895$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12896if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12897 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12898fi 12899 12900 12901fi 12902 12903 12904fi 12905 12906 12907fi 12908 12909 12910fi 12911 12912 12913fi 12914 12915 ;; 12916 esac 12917 12918 if test no = "$lt_cv_dlopen"; then 12919 enable_dlopen=no 12920 else 12921 enable_dlopen=yes 12922 fi 12923 12924 case $lt_cv_dlopen in 12925 dlopen) 12926 save_CPPFLAGS=$CPPFLAGS 12927 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12928 12929 save_LDFLAGS=$LDFLAGS 12930 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12931 12932 save_LIBS=$LIBS 12933 LIBS="$lt_cv_dlopen_libs $LIBS" 12934 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12936$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12937if ${lt_cv_dlopen_self+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 if test yes = "$cross_compiling"; then : 12941 lt_cv_dlopen_self=cross 12942else 12943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12944 lt_status=$lt_dlunknown 12945 cat > conftest.$ac_ext <<_LT_EOF 12946#line $LINENO "configure" 12947#include "confdefs.h" 12948 12949#if HAVE_DLFCN_H 12950#include <dlfcn.h> 12951#endif 12952 12953#include <stdio.h> 12954 12955#ifdef RTLD_GLOBAL 12956# define LT_DLGLOBAL RTLD_GLOBAL 12957#else 12958# ifdef DL_GLOBAL 12959# define LT_DLGLOBAL DL_GLOBAL 12960# else 12961# define LT_DLGLOBAL 0 12962# endif 12963#endif 12964 12965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12966 find out it does not work in some platform. */ 12967#ifndef LT_DLLAZY_OR_NOW 12968# ifdef RTLD_LAZY 12969# define LT_DLLAZY_OR_NOW RTLD_LAZY 12970# else 12971# ifdef DL_LAZY 12972# define LT_DLLAZY_OR_NOW DL_LAZY 12973# else 12974# ifdef RTLD_NOW 12975# define LT_DLLAZY_OR_NOW RTLD_NOW 12976# else 12977# ifdef DL_NOW 12978# define LT_DLLAZY_OR_NOW DL_NOW 12979# else 12980# define LT_DLLAZY_OR_NOW 0 12981# endif 12982# endif 12983# endif 12984# endif 12985#endif 12986 12987/* When -fvisibility=hidden is used, assume the code has been annotated 12988 correspondingly for the symbols needed. */ 12989#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12990int fnord () __attribute__((visibility("default"))); 12991#endif 12992 12993int fnord () { return 42; } 12994int main () 12995{ 12996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12997 int status = $lt_dlunknown; 12998 12999 if (self) 13000 { 13001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13002 else 13003 { 13004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13005 else puts (dlerror ()); 13006 } 13007 /* dlclose (self); */ 13008 } 13009 else 13010 puts (dlerror ()); 13011 13012 return status; 13013} 13014_LT_EOF 13015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13016 (eval $ac_link) 2>&5 13017 ac_status=$? 13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13020 (./conftest; exit; ) >&5 2>/dev/null 13021 lt_status=$? 13022 case x$lt_status in 13023 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13024 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13025 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13026 esac 13027 else : 13028 # compilation failed 13029 lt_cv_dlopen_self=no 13030 fi 13031fi 13032rm -fr conftest* 13033 13034 13035fi 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13037$as_echo "$lt_cv_dlopen_self" >&6; } 13038 13039 if test yes = "$lt_cv_dlopen_self"; then 13040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13042$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13043if ${lt_cv_dlopen_self_static+:} false; then : 13044 $as_echo_n "(cached) " >&6 13045else 13046 if test yes = "$cross_compiling"; then : 13047 lt_cv_dlopen_self_static=cross 13048else 13049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13050 lt_status=$lt_dlunknown 13051 cat > conftest.$ac_ext <<_LT_EOF 13052#line $LINENO "configure" 13053#include "confdefs.h" 13054 13055#if HAVE_DLFCN_H 13056#include <dlfcn.h> 13057#endif 13058 13059#include <stdio.h> 13060 13061#ifdef RTLD_GLOBAL 13062# define LT_DLGLOBAL RTLD_GLOBAL 13063#else 13064# ifdef DL_GLOBAL 13065# define LT_DLGLOBAL DL_GLOBAL 13066# else 13067# define LT_DLGLOBAL 0 13068# endif 13069#endif 13070 13071/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13072 find out it does not work in some platform. */ 13073#ifndef LT_DLLAZY_OR_NOW 13074# ifdef RTLD_LAZY 13075# define LT_DLLAZY_OR_NOW RTLD_LAZY 13076# else 13077# ifdef DL_LAZY 13078# define LT_DLLAZY_OR_NOW DL_LAZY 13079# else 13080# ifdef RTLD_NOW 13081# define LT_DLLAZY_OR_NOW RTLD_NOW 13082# else 13083# ifdef DL_NOW 13084# define LT_DLLAZY_OR_NOW DL_NOW 13085# else 13086# define LT_DLLAZY_OR_NOW 0 13087# endif 13088# endif 13089# endif 13090# endif 13091#endif 13092 13093/* When -fvisibility=hidden is used, assume the code has been annotated 13094 correspondingly for the symbols needed. */ 13095#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13096int fnord () __attribute__((visibility("default"))); 13097#endif 13098 13099int fnord () { return 42; } 13100int main () 13101{ 13102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13103 int status = $lt_dlunknown; 13104 13105 if (self) 13106 { 13107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13108 else 13109 { 13110 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13111 else puts (dlerror ()); 13112 } 13113 /* dlclose (self); */ 13114 } 13115 else 13116 puts (dlerror ()); 13117 13118 return status; 13119} 13120_LT_EOF 13121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13122 (eval $ac_link) 2>&5 13123 ac_status=$? 13124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13125 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13126 (./conftest; exit; ) >&5 2>/dev/null 13127 lt_status=$? 13128 case x$lt_status in 13129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13131 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13132 esac 13133 else : 13134 # compilation failed 13135 lt_cv_dlopen_self_static=no 13136 fi 13137fi 13138rm -fr conftest* 13139 13140 13141fi 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13143$as_echo "$lt_cv_dlopen_self_static" >&6; } 13144 fi 13145 13146 CPPFLAGS=$save_CPPFLAGS 13147 LDFLAGS=$save_LDFLAGS 13148 LIBS=$save_LIBS 13149 ;; 13150 esac 13151 13152 case $lt_cv_dlopen_self in 13153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13154 *) enable_dlopen_self=unknown ;; 13155 esac 13156 13157 case $lt_cv_dlopen_self_static in 13158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13159 *) enable_dlopen_self_static=unknown ;; 13160 esac 13161fi 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179striplib= 13180old_striplib= 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13182$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13183if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13185 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13187$as_echo "yes" >&6; } 13188else 13189# FIXME - insert some real tests, host_os isn't really good enough 13190 case $host_os in 13191 darwin*) 13192 if test -n "$STRIP"; then 13193 striplib="$STRIP -x" 13194 old_striplib="$STRIP -S" 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13196$as_echo "yes" >&6; } 13197 else 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13199$as_echo "no" >&6; } 13200 fi 13201 ;; 13202 *) 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13204$as_echo "no" >&6; } 13205 ;; 13206 esac 13207fi 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 # Report what library types will actually be built 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13222$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13224$as_echo "$can_build_shared" >&6; } 13225 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13227$as_echo_n "checking whether to build shared libraries... " >&6; } 13228 test no = "$can_build_shared" && enable_shared=no 13229 13230 # On AIX, shared libraries and static libraries use the same namespace, and 13231 # are all built from PIC. 13232 case $host_os in 13233 aix3*) 13234 test yes = "$enable_shared" && enable_static=no 13235 if test -n "$RANLIB"; then 13236 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13237 postinstall_cmds='$RANLIB $lib' 13238 fi 13239 ;; 13240 13241 aix[4-9]*) 13242 if test ia64 != "$host_cpu"; then 13243 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13244 yes,aix,yes) ;; # shared object as lib.so file only 13245 yes,svr4,*) ;; # shared object as lib.so archive member only 13246 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13247 esac 13248 fi 13249 ;; 13250 esac 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13252$as_echo "$enable_shared" >&6; } 13253 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13255$as_echo_n "checking whether to build static libraries... " >&6; } 13256 # Make sure either enable_shared or enable_static is yes. 13257 test yes = "$enable_shared" || enable_static=yes 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13259$as_echo "$enable_static" >&6; } 13260 13261 13262 13263 13264fi 13265ac_ext=c 13266ac_cpp='$CPP $CPPFLAGS' 13267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13269ac_compiler_gnu=$ac_cv_c_compiler_gnu 13270 13271CC=$lt_save_CC 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 ac_config_commands="$ac_config_commands libtool" 13288 13289 13290 13291 13292# Only expand once: 13293 13294 13295 13296# Use pkg-config 13297 13298 13299 13300 13301 13302 13303 13304if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13305 if test -n "$ac_tool_prefix"; then 13306 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13307set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13309$as_echo_n "checking for $ac_word... " >&6; } 13310if ${ac_cv_path_PKG_CONFIG+:} false; then : 13311 $as_echo_n "(cached) " >&6 13312else 13313 case $PKG_CONFIG in 13314 [\\/]* | ?:[\\/]*) 13315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13316 ;; 13317 *) 13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13319for as_dir in $PATH 13320do 13321 IFS=$as_save_IFS 13322 test -z "$as_dir" && as_dir=. 13323 for ac_exec_ext in '' $ac_executable_extensions; do 13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13327 break 2 13328 fi 13329done 13330 done 13331IFS=$as_save_IFS 13332 13333 ;; 13334esac 13335fi 13336PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13337if test -n "$PKG_CONFIG"; then 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13339$as_echo "$PKG_CONFIG" >&6; } 13340else 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13342$as_echo "no" >&6; } 13343fi 13344 13345 13346fi 13347if test -z "$ac_cv_path_PKG_CONFIG"; then 13348 ac_pt_PKG_CONFIG=$PKG_CONFIG 13349 # Extract the first word of "pkg-config", so it can be a program name with args. 13350set dummy pkg-config; ac_word=$2 13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13352$as_echo_n "checking for $ac_word... " >&6; } 13353if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13354 $as_echo_n "(cached) " >&6 13355else 13356 case $ac_pt_PKG_CONFIG in 13357 [\\/]* | ?:[\\/]*) 13358 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13359 ;; 13360 *) 13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13362for as_dir in $PATH 13363do 13364 IFS=$as_save_IFS 13365 test -z "$as_dir" && as_dir=. 13366 for ac_exec_ext in '' $ac_executable_extensions; do 13367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13368 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13370 break 2 13371 fi 13372done 13373 done 13374IFS=$as_save_IFS 13375 13376 ;; 13377esac 13378fi 13379ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13380if test -n "$ac_pt_PKG_CONFIG"; then 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13382$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13383else 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13385$as_echo "no" >&6; } 13386fi 13387 13388 if test "x$ac_pt_PKG_CONFIG" = x; then 13389 PKG_CONFIG="" 13390 else 13391 case $cross_compiling:$ac_tool_warned in 13392yes:) 13393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13395ac_tool_warned=yes ;; 13396esac 13397 PKG_CONFIG=$ac_pt_PKG_CONFIG 13398 fi 13399else 13400 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13401fi 13402 13403fi 13404if test -n "$PKG_CONFIG"; then 13405 _pkg_min_version=0.9.0 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13407$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13408 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13410$as_echo "yes" >&6; } 13411 else 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13413$as_echo "no" >&6; } 13414 PKG_CONFIG="" 13415 fi 13416fi 13417 13418 13419 13420# Check whether --with-pkgconfigdir was given. 13421if test "${with_pkgconfigdir+set}" = set; then : 13422 withval=$with_pkgconfigdir; 13423else 13424 with_pkgconfigdir='${libdir}/pkgconfig' 13425fi 13426 13427pkgconfigdir=$with_pkgconfigdir 13428 13429 13430 13431 13432ac_config_files="$ac_config_files src/knotd.pc src/libknot.pc src/libdnssec.pc src/libzscanner.pc" 13433 13434 13435# Default directories 13436knot_prefix=$ac_default_prefix 13437if test "$prefix" != NONE; then : 13438 knot_prefix=$prefix 13439fi 13440 13441run_dir="${localstatedir}/run/knot" 13442 13443# Check whether --with-rundir was given. 13444if test "${with_rundir+set}" = set; then : 13445 withval=$with_rundir; run_dir=$withval 13446fi 13447 13448 13449 13450storage_dir="${localstatedir}/lib/knot" 13451 13452# Check whether --with-storage was given. 13453if test "${with_storage+set}" = set; then : 13454 withval=$with_storage; storage_dir=$withval 13455fi 13456 13457 13458 13459config_dir="${sysconfdir}/knot" 13460 13461# Check whether --with-configdir was given. 13462if test "${with_configdir+set}" = set; then : 13463 withval=$with_configdir; config_dir=$withval 13464fi 13465 13466 13467 13468module_dir= 13469module_instdir="${libdir}/knot/modules-${KNOT_VERSION_MAJOR}.${KNOT_VERSION_MINOR}" 13470 13471# Check whether --with-moduledir was given. 13472if test "${with_moduledir+set}" = set; then : 13473 withval=$with_moduledir; module_dir=$withval module_instdir=$module_dir 13474fi 13475 13476 13477 13478 13479# Build Knot DNS daemon 13480# Check whether --enable-daemon was given. 13481if test "${enable_daemon+set}" = set; then : 13482 enableval=$enable_daemon; 13483else 13484 enable_daemon=yes 13485fi 13486 13487 if test "$enable_daemon" = "yes"; then 13488 HAVE_DAEMON_TRUE= 13489 HAVE_DAEMON_FALSE='#' 13490else 13491 HAVE_DAEMON_TRUE='#' 13492 HAVE_DAEMON_FALSE= 13493fi 13494 13495 13496# Build Knot DNS modules 13497# Check whether --enable-modules was given. 13498if test "${enable_modules+set}" = set; then : 13499 enableval=$enable_modules; 13500else 13501 enable_modules=yes 13502fi 13503 13504 13505# Build Knot DNS utilities 13506# Check whether --enable-utilities was given. 13507if test "${enable_utilities+set}" = set; then : 13508 enableval=$enable_utilities; 13509else 13510 enable_utilities=yes 13511fi 13512 13513 if test "$enable_utilities" = "yes"; then 13514 HAVE_UTILS_TRUE= 13515 HAVE_UTILS_FALSE='#' 13516else 13517 HAVE_UTILS_TRUE='#' 13518 HAVE_UTILS_FALSE= 13519fi 13520 13521 13522# Build Knot DNS documentation 13523# Check whether --enable-documentation was given. 13524if test "${enable_documentation+set}" = set; then : 13525 enableval=$enable_documentation; 13526else 13527 enable_documentation=yes 13528fi 13529 13530 if test "$enable_documentation" = "yes"; then 13531 HAVE_DOCS_TRUE= 13532 HAVE_DOCS_FALSE='#' 13533else 13534 HAVE_DOCS_TRUE='#' 13535 HAVE_DOCS_FALSE= 13536fi 13537 13538 13539 if test "$enable_utilities" != "no" -o \ 13540 "$enable_daemon" != "no"; then 13541 HAVE_LIBUTILS_TRUE= 13542 HAVE_LIBUTILS_FALSE='#' 13543else 13544 HAVE_LIBUTILS_TRUE='#' 13545 HAVE_LIBUTILS_FALSE= 13546fi 13547 13548###################### 13549# Generic dependencies 13550###################### 13551 13552# Check whether --enable-fastparser was given. 13553if test "${enable_fastparser+set}" = set; then : 13554 enableval=$enable_fastparser; 13555else 13556 if test -d ".git"; then : 13557 enable_fastparser=no 13558else 13559 enable_fastparser=yes 13560fi 13561 13562fi 13563 13564 if test "$enable_fastparser" = "yes"; then 13565 FAST_PARSER_TRUE= 13566 FAST_PARSER_FALSE='#' 13567else 13568 FAST_PARSER_TRUE='#' 13569 FAST_PARSER_FALSE= 13570fi 13571 13572 13573# GnuTLS crypto backend 13574 13575pkg_failed=no 13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.3" >&5 13577$as_echo_n "checking for gnutls >= 3.3... " >&6; } 13578 13579if test -n "$gnutls_CFLAGS"; then 13580 pkg_cv_gnutls_CFLAGS="$gnutls_CFLAGS" 13581 elif test -n "$PKG_CONFIG"; then 13582 if test -n "$PKG_CONFIG" && \ 13583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3\""; } >&5 13584 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3") 2>&5 13585 ac_status=$? 13586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13587 test $ac_status = 0; }; then 13588 pkg_cv_gnutls_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.3" 2>/dev/null` 13589 test "x$?" != "x0" && pkg_failed=yes 13590else 13591 pkg_failed=yes 13592fi 13593 else 13594 pkg_failed=untried 13595fi 13596if test -n "$gnutls_LIBS"; then 13597 pkg_cv_gnutls_LIBS="$gnutls_LIBS" 13598 elif test -n "$PKG_CONFIG"; then 13599 if test -n "$PKG_CONFIG" && \ 13600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3\""; } >&5 13601 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3") 2>&5 13602 ac_status=$? 13603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13604 test $ac_status = 0; }; then 13605 pkg_cv_gnutls_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.3" 2>/dev/null` 13606 test "x$?" != "x0" && pkg_failed=yes 13607else 13608 pkg_failed=yes 13609fi 13610 else 13611 pkg_failed=untried 13612fi 13613 13614 13615 13616if test $pkg_failed = yes; then 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13618$as_echo "no" >&6; } 13619 13620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13621 _pkg_short_errors_supported=yes 13622else 13623 _pkg_short_errors_supported=no 13624fi 13625 if test $_pkg_short_errors_supported = yes; then 13626 gnutls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.3" 2>&1` 13627 else 13628 gnutls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.3" 2>&1` 13629 fi 13630 # Put the nasty error message in config.log where it belongs 13631 echo "$gnutls_PKG_ERRORS" >&5 13632 13633 as_fn_error $? "Package requirements (gnutls >= 3.3) were not met: 13634 13635$gnutls_PKG_ERRORS 13636 13637Consider adjusting the PKG_CONFIG_PATH environment variable if you 13638installed software in a non-standard prefix. 13639 13640Alternatively, you may set the environment variables gnutls_CFLAGS 13641and gnutls_LIBS to avoid the need to call pkg-config. 13642See the pkg-config man page for more details." "$LINENO" 5 13643elif test $pkg_failed = untried; then 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13645$as_echo "no" >&6; } 13646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13648as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13649is in your PATH or set the PKG_CONFIG environment variable to the full 13650path to pkg-config. 13651 13652Alternatively, you may set the environment variables gnutls_CFLAGS 13653and gnutls_LIBS to avoid the need to call pkg-config. 13654See the pkg-config man page for more details. 13655 13656To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13657See \`config.log' for more details" "$LINENO" 5; } 13658else 13659 gnutls_CFLAGS=$pkg_cv_gnutls_CFLAGS 13660 gnutls_LIBS=$pkg_cv_gnutls_LIBS 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13662$as_echo "yes" >&6; } 13663 13664 save_CFLAGS=$CFLAGS 13665 save_LIBS=$LIBS 13666 CFLAGS="$CFLAGS $gnutls_CFLAGS" 13667 LIBS="$LIBS $gnutls_LIBS" 13668 13669 ac_fn_c_check_func "$LINENO" "gnutls_pkcs11_copy_pubkey" "ac_cv_func_gnutls_pkcs11_copy_pubkey" 13670if test "x$ac_cv_func_gnutls_pkcs11_copy_pubkey" = xyes; then : 13671 enable_pkcs11=yes 13672else 13673 enable_pkcs11=no 13674fi 13675 13676 if test "$enable_pkcs11" = yes; then : 13677 13678$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h 13679 13680fi 13681 13682 ac_fn_c_check_decl "$LINENO" "GNUTLS_PK_EDDSA_ED25519" "ac_cv_have_decl_GNUTLS_PK_EDDSA_ED25519" "#include <gnutls/gnutls.h> 13683" 13684if test "x$ac_cv_have_decl_GNUTLS_PK_EDDSA_ED25519" = xyes; then : 13685 13686$as_echo "#define HAVE_ED25519 1" >>confdefs.h 13687 13688 enable_ed25519=yes 13689else 13690 enable_ed25519=no 13691fi 13692 13693 13694 ac_fn_c_check_decl "$LINENO" "GNUTLS_SIGN_EDDSA_ED448" "ac_cv_have_decl_GNUTLS_SIGN_EDDSA_ED448" "#include <gnutls/gnutls.h> 13695" 13696if test "x$ac_cv_have_decl_GNUTLS_SIGN_EDDSA_ED448" = xyes; then : 13697 13698$as_echo "#define HAVE_ED448 1" >>confdefs.h 13699 13700 enable_ed448=yes 13701else 13702 enable_ed448=no 13703fi 13704 13705 13706 ac_fn_c_check_decl "$LINENO" "GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE" "ac_cv_have_decl_GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE" "#include <gnutls/abstract.h> 13707" 13708if test "x$ac_cv_have_decl_GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE" = xyes; then : 13709 13710$as_echo "#define HAVE_GLNUTLS_REPRODUCIBLE 1" >>confdefs.h 13711 13712 # Ensure the version is at least 3.6.10 13713 ac_fn_c_check_func "$LINENO" "gnutls_aead_cipher_encryptv2" "ac_cv_func_gnutls_aead_cipher_encryptv2" 13714if test "x$ac_cv_func_gnutls_aead_cipher_encryptv2" = xyes; then : 13715 enable_repro_signing=yes 13716else 13717 enable_repro_signing=no 13718fi 13719 13720else 13721 enable_repro_signing=no 13722fi 13723 13724 13725 ac_fn_c_check_func "$LINENO" "gnutls_privkey_sign_data2" "ac_cv_func_gnutls_privkey_sign_data2" 13726if test "x$ac_cv_func_gnutls_privkey_sign_data2" = xyes; then : 13727 13728$as_echo "#define HAVE_SIGN_DATA2 1" >>confdefs.h 13729 13730fi 13731 13732 13733 ac_fn_c_check_func "$LINENO" "gnutls_privkey_export_x509" "ac_cv_func_gnutls_privkey_export_x509" 13734if test "x$ac_cv_func_gnutls_privkey_export_x509" = xyes; then : 13735 13736$as_echo "#define HAVE_EXPORT_X509 1" >>confdefs.h 13737 13738fi 13739 13740 13741 ac_fn_c_check_func "$LINENO" "gnutls_memset" "ac_cv_func_gnutls_memset" 13742if test "x$ac_cv_func_gnutls_memset" = xyes; then : 13743 13744$as_echo "#define HAVE_GNUTLS_MEMSET 1" >>confdefs.h 13745 13746 gnutls_memset=yes 13747else 13748 gnutls_memset=no 13749fi 13750 13751 13752 CFLAGS=$save_CFLAGS 13753 LIBS=$save_LIBS 13754 13755fi 13756 if test "$enable_pkcs11" = "yes"; then 13757 ENABLE_PKCS11_TRUE= 13758 ENABLE_PKCS11_FALSE='#' 13759else 13760 ENABLE_PKCS11_TRUE='#' 13761 ENABLE_PKCS11_FALSE= 13762fi 13763 13764 13765# Check whether --enable-recvmmsg was given. 13766if test "${enable_recvmmsg+set}" = set; then : 13767 enableval=$enable_recvmmsg; 13768else 13769 enable_recvmmsg=auto 13770fi 13771 13772 13773case $enable_recvmmsg in #( 13774 auto|yes) : 13775 13776 ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg" 13777if test "x$ac_cv_func_recvmmsg" = xyes; then : 13778 ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg" 13779if test "x$ac_cv_func_sendmmsg" = xyes; then : 13780 enable_recvmmsg=yes 13781else 13782 enable_recvmmsg=no 13783fi 13784 13785else 13786 enable_recvmmsg=no 13787fi 13788 ;; #( 13789 no) : 13790 ;; #( 13791 *) : 13792 as_fn_error $? "Invalid value of --enable-recvmmsg. 13793 " "$LINENO" 5 ;; #( 13794 *) : 13795 ;; 13796esac 13797 13798if test "$enable_recvmmsg" = yes; then : 13799 13800 13801$as_echo "#define ENABLE_RECVMMSG 1" >>confdefs.h 13802 13803fi 13804 13805# XDP support 13806# Check whether --enable-xdp was given. 13807if test "${enable_xdp+set}" = set; then : 13808 enableval=$enable_xdp; 13809else 13810 enable_xdp=auto 13811fi 13812 13813 13814case $enable_xdp in #( 13815 auto) : 13816 13817pkg_failed=no 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbpf >= 0.0.6" >&5 13819$as_echo_n "checking for libbpf >= 0.0.6... " >&6; } 13820 13821if test -n "$libbpf_CFLAGS"; then 13822 pkg_cv_libbpf_CFLAGS="$libbpf_CFLAGS" 13823 elif test -n "$PKG_CONFIG"; then 13824 if test -n "$PKG_CONFIG" && \ 13825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.0.6\""; } >&5 13826 ($PKG_CONFIG --exists --print-errors "libbpf >= 0.0.6") 2>&5 13827 ac_status=$? 13828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13829 test $ac_status = 0; }; then 13830 pkg_cv_libbpf_CFLAGS=`$PKG_CONFIG --cflags "libbpf >= 0.0.6" 2>/dev/null` 13831 test "x$?" != "x0" && pkg_failed=yes 13832else 13833 pkg_failed=yes 13834fi 13835 else 13836 pkg_failed=untried 13837fi 13838if test -n "$libbpf_LIBS"; then 13839 pkg_cv_libbpf_LIBS="$libbpf_LIBS" 13840 elif test -n "$PKG_CONFIG"; then 13841 if test -n "$PKG_CONFIG" && \ 13842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.0.6\""; } >&5 13843 ($PKG_CONFIG --exists --print-errors "libbpf >= 0.0.6") 2>&5 13844 ac_status=$? 13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13846 test $ac_status = 0; }; then 13847 pkg_cv_libbpf_LIBS=`$PKG_CONFIG --libs "libbpf >= 0.0.6" 2>/dev/null` 13848 test "x$?" != "x0" && pkg_failed=yes 13849else 13850 pkg_failed=yes 13851fi 13852 else 13853 pkg_failed=untried 13854fi 13855 13856 13857 13858if test $pkg_failed = yes; then 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13860$as_echo "no" >&6; } 13861 13862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13863 _pkg_short_errors_supported=yes 13864else 13865 _pkg_short_errors_supported=no 13866fi 13867 if test $_pkg_short_errors_supported = yes; then 13868 libbpf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbpf >= 0.0.6" 2>&1` 13869 else 13870 libbpf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbpf >= 0.0.6" 2>&1` 13871 fi 13872 # Put the nasty error message in config.log where it belongs 13873 echo "$libbpf_PKG_ERRORS" >&5 13874 13875 enable_xdp=no 13876elif test $pkg_failed = untried; then 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13878$as_echo "no" >&6; } 13879 enable_xdp=no 13880else 13881 libbpf_CFLAGS=$pkg_cv_libbpf_CFLAGS 13882 libbpf_LIBS=$pkg_cv_libbpf_LIBS 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13884$as_echo "yes" >&6; } 13885 enable_xdp=yes 13886fi ;; #( 13887 yes) : 13888 13889pkg_failed=no 13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbpf >= 0.0.6" >&5 13891$as_echo_n "checking for libbpf >= 0.0.6... " >&6; } 13892 13893if test -n "$libbpf_CFLAGS"; then 13894 pkg_cv_libbpf_CFLAGS="$libbpf_CFLAGS" 13895 elif test -n "$PKG_CONFIG"; then 13896 if test -n "$PKG_CONFIG" && \ 13897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.0.6\""; } >&5 13898 ($PKG_CONFIG --exists --print-errors "libbpf >= 0.0.6") 2>&5 13899 ac_status=$? 13900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13901 test $ac_status = 0; }; then 13902 pkg_cv_libbpf_CFLAGS=`$PKG_CONFIG --cflags "libbpf >= 0.0.6" 2>/dev/null` 13903 test "x$?" != "x0" && pkg_failed=yes 13904else 13905 pkg_failed=yes 13906fi 13907 else 13908 pkg_failed=untried 13909fi 13910if test -n "$libbpf_LIBS"; then 13911 pkg_cv_libbpf_LIBS="$libbpf_LIBS" 13912 elif test -n "$PKG_CONFIG"; then 13913 if test -n "$PKG_CONFIG" && \ 13914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.0.6\""; } >&5 13915 ($PKG_CONFIG --exists --print-errors "libbpf >= 0.0.6") 2>&5 13916 ac_status=$? 13917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13918 test $ac_status = 0; }; then 13919 pkg_cv_libbpf_LIBS=`$PKG_CONFIG --libs "libbpf >= 0.0.6" 2>/dev/null` 13920 test "x$?" != "x0" && pkg_failed=yes 13921else 13922 pkg_failed=yes 13923fi 13924 else 13925 pkg_failed=untried 13926fi 13927 13928 13929 13930if test $pkg_failed = yes; then 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13932$as_echo "no" >&6; } 13933 13934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13935 _pkg_short_errors_supported=yes 13936else 13937 _pkg_short_errors_supported=no 13938fi 13939 if test $_pkg_short_errors_supported = yes; then 13940 libbpf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbpf >= 0.0.6" 2>&1` 13941 else 13942 libbpf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbpf >= 0.0.6" 2>&1` 13943 fi 13944 # Put the nasty error message in config.log where it belongs 13945 echo "$libbpf_PKG_ERRORS" >&5 13946 13947 13948pkg_failed=no 13949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelf" >&5 13950$as_echo_n "checking for libelf... " >&6; } 13951 13952if test -n "$libelf_CFLAGS"; then 13953 pkg_cv_libelf_CFLAGS="$libelf_CFLAGS" 13954 elif test -n "$PKG_CONFIG"; then 13955 if test -n "$PKG_CONFIG" && \ 13956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 13957 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 13958 ac_status=$? 13959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13960 test $ac_status = 0; }; then 13961 pkg_cv_libelf_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null` 13962 test "x$?" != "x0" && pkg_failed=yes 13963else 13964 pkg_failed=yes 13965fi 13966 else 13967 pkg_failed=untried 13968fi 13969if test -n "$libelf_LIBS"; then 13970 pkg_cv_libelf_LIBS="$libelf_LIBS" 13971 elif test -n "$PKG_CONFIG"; then 13972 if test -n "$PKG_CONFIG" && \ 13973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 13974 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 13975 ac_status=$? 13976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13977 test $ac_status = 0; }; then 13978 pkg_cv_libelf_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null` 13979 test "x$?" != "x0" && pkg_failed=yes 13980else 13981 pkg_failed=yes 13982fi 13983 else 13984 pkg_failed=untried 13985fi 13986 13987 13988 13989if test $pkg_failed = yes; then 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13991$as_echo "no" >&6; } 13992 13993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13994 _pkg_short_errors_supported=yes 13995else 13996 _pkg_short_errors_supported=no 13997fi 13998 if test $_pkg_short_errors_supported = yes; then 13999 libelf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelf" 2>&1` 14000 else 14001 libelf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelf" 2>&1` 14002 fi 14003 # Put the nasty error message in config.log where it belongs 14004 echo "$libelf_PKG_ERRORS" >&5 14005 14006 as_fn_error $? "libelf is required" "$LINENO" 5 14007elif test $pkg_failed = untried; then 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14009$as_echo "no" >&6; } 14010 as_fn_error $? "libelf is required" "$LINENO" 5 14011else 14012 libelf_CFLAGS=$pkg_cv_libelf_CFLAGS 14013 libelf_LIBS=$pkg_cv_libelf_LIBS 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14015$as_echo "yes" >&6; } 14016 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 14017if test "x$ac_cv_func_reallocarray" = xyes; then : 14018 enable_xdp=embedded 14019 embedded_libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf/include -I\$(top_srcdir)/src/contrib/libbpf/include/uapi" 14020 embedded_libbpf_LIBS=$libelf_LIBS 14021 libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf -I\$(top_srcdir)/src/contrib/libbpf/include/uapi" 14022else 14023 enable_xdp=no 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: reallocarray not available" >&5 14025$as_echo "$as_me: WARNING: reallocarray not available" >&2;} 14026fi 14027 14028fi 14029elif test $pkg_failed = untried; then 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14031$as_echo "no" >&6; } 14032 14033pkg_failed=no 14034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelf" >&5 14035$as_echo_n "checking for libelf... " >&6; } 14036 14037if test -n "$libelf_CFLAGS"; then 14038 pkg_cv_libelf_CFLAGS="$libelf_CFLAGS" 14039 elif test -n "$PKG_CONFIG"; then 14040 if test -n "$PKG_CONFIG" && \ 14041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 14042 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 14043 ac_status=$? 14044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14045 test $ac_status = 0; }; then 14046 pkg_cv_libelf_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null` 14047 test "x$?" != "x0" && pkg_failed=yes 14048else 14049 pkg_failed=yes 14050fi 14051 else 14052 pkg_failed=untried 14053fi 14054if test -n "$libelf_LIBS"; then 14055 pkg_cv_libelf_LIBS="$libelf_LIBS" 14056 elif test -n "$PKG_CONFIG"; then 14057 if test -n "$PKG_CONFIG" && \ 14058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 14059 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 14060 ac_status=$? 14061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14062 test $ac_status = 0; }; then 14063 pkg_cv_libelf_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null` 14064 test "x$?" != "x0" && pkg_failed=yes 14065else 14066 pkg_failed=yes 14067fi 14068 else 14069 pkg_failed=untried 14070fi 14071 14072 14073 14074if test $pkg_failed = yes; then 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14076$as_echo "no" >&6; } 14077 14078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14079 _pkg_short_errors_supported=yes 14080else 14081 _pkg_short_errors_supported=no 14082fi 14083 if test $_pkg_short_errors_supported = yes; then 14084 libelf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelf" 2>&1` 14085 else 14086 libelf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelf" 2>&1` 14087 fi 14088 # Put the nasty error message in config.log where it belongs 14089 echo "$libelf_PKG_ERRORS" >&5 14090 14091 as_fn_error $? "libelf is required" "$LINENO" 5 14092elif test $pkg_failed = untried; then 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14094$as_echo "no" >&6; } 14095 as_fn_error $? "libelf is required" "$LINENO" 5 14096else 14097 libelf_CFLAGS=$pkg_cv_libelf_CFLAGS 14098 libelf_LIBS=$pkg_cv_libelf_LIBS 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14100$as_echo "yes" >&6; } 14101 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 14102if test "x$ac_cv_func_reallocarray" = xyes; then : 14103 enable_xdp=embedded 14104 embedded_libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf/include -I\$(top_srcdir)/src/contrib/libbpf/include/uapi" 14105 embedded_libbpf_LIBS=$libelf_LIBS 14106 libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf -I\$(top_srcdir)/src/contrib/libbpf/include/uapi" 14107else 14108 enable_xdp=no 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: reallocarray not available" >&5 14110$as_echo "$as_me: WARNING: reallocarray not available" >&2;} 14111fi 14112 14113fi 14114else 14115 libbpf_CFLAGS=$pkg_cv_libbpf_CFLAGS 14116 libbpf_LIBS=$pkg_cv_libbpf_LIBS 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14118$as_echo "yes" >&6; } 14119 enable_xdp=yes 14120fi ;; #( 14121 no) : 14122 ;; #( 14123 *) : 14124 as_fn_error $? "Invalid value of --enable-xdp." "$LINENO" 5 14125 ;; #( 14126 *) : 14127 ;; 14128esac 14129 if test "$enable_xdp" = "embedded"; then 14130 EMBEDDED_LIBBPF_TRUE= 14131 EMBEDDED_LIBBPF_FALSE='#' 14132else 14133 EMBEDDED_LIBBPF_TRUE='#' 14134 EMBEDDED_LIBBPF_FALSE= 14135fi 14136 14137 if test "$enable_xdp" != "no"; then 14138 ENABLE_XDP_TRUE= 14139 ENABLE_XDP_FALSE='#' 14140else 14141 ENABLE_XDP_TRUE='#' 14142 ENABLE_XDP_FALSE= 14143fi 14144 14145 14146 14147 14148 14149 14150if test "$enable_xdp" != "no"; then : 14151 14152 14153$as_echo "#define ENABLE_XDP 1" >>confdefs.h 14154 14155fi 14156 14157# Reuseport support 14158case $host_os in #( 14159 freebsd*) : 14160 reuseport_opt=SO_REUSEPORT_LB ;; #( 14161 *) : 14162 reuseport_opt=SO_REUSEPORT ;; #( 14163 *) : 14164 ;; 14165esac 14166 14167# Check whether --enable-reuseport was given. 14168if test "${enable_reuseport+set}" = set; then : 14169 enableval=$enable_reuseport; 14170else 14171 enable_reuseport=auto 14172 14173fi 14174 14175 14176case $enable_reuseport in #( 14177 auto) : 14178 14179 case $host_os in #( 14180 freebsd*|linux*) : 14181 as_ac_Symbol=`$as_echo "ac_cv_have_decl_$reuseport_opt" | $as_tr_sh` 14182ac_fn_c_check_decl "$LINENO" "$reuseport_opt" "$as_ac_Symbol" "#include <sys/socket.h> 14183 14184" 14185if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 14186 enable_reuseport=yes 14187else 14188 enable_reuseport=no 14189fi 14190 ;; #( 14191 *) : 14192 enable_reuseport=no 14193 ;; #( 14194 *) : 14195 ;; 14196esac ;; #( 14197 yes) : 14198 as_ac_Symbol=`$as_echo "ac_cv_have_decl_$reuseport_opt" | $as_tr_sh` 14199ac_fn_c_check_decl "$LINENO" "$reuseport_opt" "$as_ac_Symbol" "#include <sys/socket.h> 14200 14201" 14202if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 14203 14204else 14205 as_fn_error $? "SO_REUSEPORT(_LB) not supported." "$LINENO" 5 14206fi 14207 ;; #( 14208 no) : 14209 ;; #( 14210 *) : 14211 as_fn_error $? "Invalid value of --enable-reuseport." "$LINENO" 5 14212 ;; #( 14213 *) : 14214 ;; 14215esac 14216 14217if test "$enable_reuseport" = yes; then : 14218 14219 14220$as_echo "#define ENABLE_REUSEPORT 1" >>confdefs.h 14221 14222fi 14223 14224######################################### 14225# Dependencies needed for Knot DNS daemon 14226######################################### 14227 14228# Systemd integration 14229# Check whether --enable-systemd was given. 14230if test "${enable_systemd+set}" = set; then : 14231 enableval=$enable_systemd; enable_systemd="$enableval" 14232else 14233 enable_systemd=auto 14234fi 14235 14236 14237if test "$enable_daemon" = "yes"; then : 14238 14239 14240if test "$enable_systemd" != "no"; then : 14241 14242 case $enable_systemd in #( 14243 auto) : 14244 14245pkg_failed=no 14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 14247$as_echo_n "checking for libsystemd... " >&6; } 14248 14249if test -n "$systemd_CFLAGS"; then 14250 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14251 elif test -n "$PKG_CONFIG"; then 14252 if test -n "$PKG_CONFIG" && \ 14253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 14254 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 14255 ac_status=$? 14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14257 test $ac_status = 0; }; then 14258 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 14259 test "x$?" != "x0" && pkg_failed=yes 14260else 14261 pkg_failed=yes 14262fi 14263 else 14264 pkg_failed=untried 14265fi 14266if test -n "$systemd_LIBS"; then 14267 pkg_cv_systemd_LIBS="$systemd_LIBS" 14268 elif test -n "$PKG_CONFIG"; then 14269 if test -n "$PKG_CONFIG" && \ 14270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 14271 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 14272 ac_status=$? 14273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14274 test $ac_status = 0; }; then 14275 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 14276 test "x$?" != "x0" && pkg_failed=yes 14277else 14278 pkg_failed=yes 14279fi 14280 else 14281 pkg_failed=untried 14282fi 14283 14284 14285 14286if test $pkg_failed = yes; then 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14288$as_echo "no" >&6; } 14289 14290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14291 _pkg_short_errors_supported=yes 14292else 14293 _pkg_short_errors_supported=no 14294fi 14295 if test $_pkg_short_errors_supported = yes; then 14296 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 14297 else 14298 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 14299 fi 14300 # Put the nasty error message in config.log where it belongs 14301 echo "$systemd_PKG_ERRORS" >&5 14302 14303 14304 14305pkg_failed=no 14306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon libsystemd-journal" >&5 14307$as_echo_n "checking for libsystemd-daemon libsystemd-journal... " >&6; } 14308 14309if test -n "$systemd_CFLAGS"; then 14310 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14311 elif test -n "$PKG_CONFIG"; then 14312 if test -n "$PKG_CONFIG" && \ 14313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14314 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14315 ac_status=$? 14316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14317 test $ac_status = 0; }; then 14318 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14319 test "x$?" != "x0" && pkg_failed=yes 14320else 14321 pkg_failed=yes 14322fi 14323 else 14324 pkg_failed=untried 14325fi 14326if test -n "$systemd_LIBS"; then 14327 pkg_cv_systemd_LIBS="$systemd_LIBS" 14328 elif test -n "$PKG_CONFIG"; then 14329 if test -n "$PKG_CONFIG" && \ 14330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14331 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14332 ac_status=$? 14333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14334 test $ac_status = 0; }; then 14335 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14336 test "x$?" != "x0" && pkg_failed=yes 14337else 14338 pkg_failed=yes 14339fi 14340 else 14341 pkg_failed=untried 14342fi 14343 14344 14345 14346if test $pkg_failed = yes; then 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14348$as_echo "no" >&6; } 14349 14350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14351 _pkg_short_errors_supported=yes 14352else 14353 _pkg_short_errors_supported=no 14354fi 14355 if test $_pkg_short_errors_supported = yes; then 14356 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14357 else 14358 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14359 fi 14360 # Put the nasty error message in config.log where it belongs 14361 echo "$systemd_PKG_ERRORS" >&5 14362 14363 enable_systemd=no 14364elif test $pkg_failed = untried; then 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14366$as_echo "no" >&6; } 14367 enable_systemd=no 14368else 14369 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14370 systemd_LIBS=$pkg_cv_systemd_LIBS 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14372$as_echo "yes" >&6; } 14373 enable_systemd=yes 14374fi 14375elif test $pkg_failed = untried; then 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14377$as_echo "no" >&6; } 14378 14379 14380pkg_failed=no 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon libsystemd-journal" >&5 14382$as_echo_n "checking for libsystemd-daemon libsystemd-journal... " >&6; } 14383 14384if test -n "$systemd_CFLAGS"; then 14385 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14386 elif test -n "$PKG_CONFIG"; then 14387 if test -n "$PKG_CONFIG" && \ 14388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14389 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14390 ac_status=$? 14391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14392 test $ac_status = 0; }; then 14393 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14394 test "x$?" != "x0" && pkg_failed=yes 14395else 14396 pkg_failed=yes 14397fi 14398 else 14399 pkg_failed=untried 14400fi 14401if test -n "$systemd_LIBS"; then 14402 pkg_cv_systemd_LIBS="$systemd_LIBS" 14403 elif test -n "$PKG_CONFIG"; then 14404 if test -n "$PKG_CONFIG" && \ 14405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14406 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14407 ac_status=$? 14408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14409 test $ac_status = 0; }; then 14410 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14411 test "x$?" != "x0" && pkg_failed=yes 14412else 14413 pkg_failed=yes 14414fi 14415 else 14416 pkg_failed=untried 14417fi 14418 14419 14420 14421if test $pkg_failed = yes; then 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14423$as_echo "no" >&6; } 14424 14425if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14426 _pkg_short_errors_supported=yes 14427else 14428 _pkg_short_errors_supported=no 14429fi 14430 if test $_pkg_short_errors_supported = yes; then 14431 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14432 else 14433 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14434 fi 14435 # Put the nasty error message in config.log where it belongs 14436 echo "$systemd_PKG_ERRORS" >&5 14437 14438 enable_systemd=no 14439elif test $pkg_failed = untried; then 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14441$as_echo "no" >&6; } 14442 enable_systemd=no 14443else 14444 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14445 systemd_LIBS=$pkg_cv_systemd_LIBS 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14447$as_echo "yes" >&6; } 14448 enable_systemd=yes 14449fi 14450else 14451 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14452 systemd_LIBS=$pkg_cv_systemd_LIBS 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14454$as_echo "yes" >&6; } 14455 enable_systemd=yes 14456fi ;; #( 14457 yes) : 14458 14459pkg_failed=no 14460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 14461$as_echo_n "checking for libsystemd... " >&6; } 14462 14463if test -n "$systemd_CFLAGS"; then 14464 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14465 elif test -n "$PKG_CONFIG"; then 14466 if test -n "$PKG_CONFIG" && \ 14467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 14468 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 14469 ac_status=$? 14470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14471 test $ac_status = 0; }; then 14472 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 14473 test "x$?" != "x0" && pkg_failed=yes 14474else 14475 pkg_failed=yes 14476fi 14477 else 14478 pkg_failed=untried 14479fi 14480if test -n "$systemd_LIBS"; then 14481 pkg_cv_systemd_LIBS="$systemd_LIBS" 14482 elif test -n "$PKG_CONFIG"; then 14483 if test -n "$PKG_CONFIG" && \ 14484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 14485 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 14486 ac_status=$? 14487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14488 test $ac_status = 0; }; then 14489 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 14490 test "x$?" != "x0" && pkg_failed=yes 14491else 14492 pkg_failed=yes 14493fi 14494 else 14495 pkg_failed=untried 14496fi 14497 14498 14499 14500if test $pkg_failed = yes; then 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14502$as_echo "no" >&6; } 14503 14504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14505 _pkg_short_errors_supported=yes 14506else 14507 _pkg_short_errors_supported=no 14508fi 14509 if test $_pkg_short_errors_supported = yes; then 14510 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 14511 else 14512 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 14513 fi 14514 # Put the nasty error message in config.log where it belongs 14515 echo "$systemd_PKG_ERRORS" >&5 14516 14517 14518 14519pkg_failed=no 14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon libsystemd-journal" >&5 14521$as_echo_n "checking for libsystemd-daemon libsystemd-journal... " >&6; } 14522 14523if test -n "$systemd_CFLAGS"; then 14524 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14525 elif test -n "$PKG_CONFIG"; then 14526 if test -n "$PKG_CONFIG" && \ 14527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14528 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14529 ac_status=$? 14530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14531 test $ac_status = 0; }; then 14532 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14533 test "x$?" != "x0" && pkg_failed=yes 14534else 14535 pkg_failed=yes 14536fi 14537 else 14538 pkg_failed=untried 14539fi 14540if test -n "$systemd_LIBS"; then 14541 pkg_cv_systemd_LIBS="$systemd_LIBS" 14542 elif test -n "$PKG_CONFIG"; then 14543 if test -n "$PKG_CONFIG" && \ 14544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14545 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14546 ac_status=$? 14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14548 test $ac_status = 0; }; then 14549 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14550 test "x$?" != "x0" && pkg_failed=yes 14551else 14552 pkg_failed=yes 14553fi 14554 else 14555 pkg_failed=untried 14556fi 14557 14558 14559 14560if test $pkg_failed = yes; then 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14562$as_echo "no" >&6; } 14563 14564if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14565 _pkg_short_errors_supported=yes 14566else 14567 _pkg_short_errors_supported=no 14568fi 14569 if test $_pkg_short_errors_supported = yes; then 14570 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14571 else 14572 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14573 fi 14574 # Put the nasty error message in config.log where it belongs 14575 echo "$systemd_PKG_ERRORS" >&5 14576 14577 as_fn_error $? "Package requirements (libsystemd-daemon libsystemd-journal) were not met: 14578 14579$systemd_PKG_ERRORS 14580 14581Consider adjusting the PKG_CONFIG_PATH environment variable if you 14582installed software in a non-standard prefix. 14583 14584Alternatively, you may set the environment variables systemd_CFLAGS 14585and systemd_LIBS to avoid the need to call pkg-config. 14586See the pkg-config man page for more details." "$LINENO" 5 14587elif test $pkg_failed = untried; then 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14589$as_echo "no" >&6; } 14590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14592as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14593is in your PATH or set the PKG_CONFIG environment variable to the full 14594path to pkg-config. 14595 14596Alternatively, you may set the environment variables systemd_CFLAGS 14597and systemd_LIBS to avoid the need to call pkg-config. 14598See the pkg-config man page for more details. 14599 14600To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14601See \`config.log' for more details" "$LINENO" 5; } 14602else 14603 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14604 systemd_LIBS=$pkg_cv_systemd_LIBS 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14606$as_echo "yes" >&6; } 14607 14608fi 14609elif test $pkg_failed = untried; then 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14611$as_echo "no" >&6; } 14612 14613 14614pkg_failed=no 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon libsystemd-journal" >&5 14616$as_echo_n "checking for libsystemd-daemon libsystemd-journal... " >&6; } 14617 14618if test -n "$systemd_CFLAGS"; then 14619 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14620 elif test -n "$PKG_CONFIG"; then 14621 if test -n "$PKG_CONFIG" && \ 14622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14623 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14624 ac_status=$? 14625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14626 test $ac_status = 0; }; then 14627 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14628 test "x$?" != "x0" && pkg_failed=yes 14629else 14630 pkg_failed=yes 14631fi 14632 else 14633 pkg_failed=untried 14634fi 14635if test -n "$systemd_LIBS"; then 14636 pkg_cv_systemd_LIBS="$systemd_LIBS" 14637 elif test -n "$PKG_CONFIG"; then 14638 if test -n "$PKG_CONFIG" && \ 14639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon libsystemd-journal\""; } >&5 14640 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon libsystemd-journal") 2>&5 14641 ac_status=$? 14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14643 test $ac_status = 0; }; then 14644 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon libsystemd-journal" 2>/dev/null` 14645 test "x$?" != "x0" && pkg_failed=yes 14646else 14647 pkg_failed=yes 14648fi 14649 else 14650 pkg_failed=untried 14651fi 14652 14653 14654 14655if test $pkg_failed = yes; then 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14657$as_echo "no" >&6; } 14658 14659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14660 _pkg_short_errors_supported=yes 14661else 14662 _pkg_short_errors_supported=no 14663fi 14664 if test $_pkg_short_errors_supported = yes; then 14665 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14666 else 14667 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon libsystemd-journal" 2>&1` 14668 fi 14669 # Put the nasty error message in config.log where it belongs 14670 echo "$systemd_PKG_ERRORS" >&5 14671 14672 as_fn_error $? "Package requirements (libsystemd-daemon libsystemd-journal) were not met: 14673 14674$systemd_PKG_ERRORS 14675 14676Consider adjusting the PKG_CONFIG_PATH environment variable if you 14677installed software in a non-standard prefix. 14678 14679Alternatively, you may set the environment variables systemd_CFLAGS 14680and systemd_LIBS to avoid the need to call pkg-config. 14681See the pkg-config man page for more details." "$LINENO" 5 14682elif test $pkg_failed = untried; then 14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14684$as_echo "no" >&6; } 14685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14687as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14688is in your PATH or set the PKG_CONFIG environment variable to the full 14689path to pkg-config. 14690 14691Alternatively, you may set the environment variables systemd_CFLAGS 14692and systemd_LIBS to avoid the need to call pkg-config. 14693See the pkg-config man page for more details. 14694 14695To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14696See \`config.log' for more details" "$LINENO" 5; } 14697else 14698 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14699 systemd_LIBS=$pkg_cv_systemd_LIBS 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14701$as_echo "yes" >&6; } 14702 14703fi 14704else 14705 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14706 systemd_LIBS=$pkg_cv_systemd_LIBS 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14708$as_echo "yes" >&6; } 14709 14710fi ;; #( 14711 *) : 14712 as_fn_error $? "Invalid value of --enable-systemd." "$LINENO" 5 ;; #( 14713 *) : 14714 ;; 14715esac 14716 14717fi 14718 14719if test "$enable_systemd" = "yes"; then : 14720 14721 14722$as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h 14723 14724fi 14725 14726 14727fi 14728# Socket polling method 14729socket_polling= 14730 14731# Check whether --with-socket-polling was given. 14732if test "${with_socket_polling+set}" = set; then : 14733 withval=$with_socket_polling; socket_polling=$withval 14734else 14735 socket_polling=auto 14736 14737fi 14738 14739 14740case $socket_polling in #( 14741 auto) : 14742 for ac_func in kqueue 14743do : 14744 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14745if test "x$ac_cv_func_kqueue" = xyes; then : 14746 cat >>confdefs.h <<_ACEOF 14747#define HAVE_KQUEUE 1 14748_ACEOF 14749 14750$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 14751 14752 socket_polling=kqueue 14753else 14754 for ac_func in epoll_create 14755do : 14756 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" 14757if test "x$ac_cv_func_epoll_create" = xyes; then : 14758 cat >>confdefs.h <<_ACEOF 14759#define HAVE_EPOLL_CREATE 1 14760_ACEOF 14761 14762$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14763 14764 socket_polling=epoll 14765else 14766 socket_polling=poll 14767fi 14768done 14769 14770fi 14771done 14772 ;; #( 14773 poll) : 14774 socket_polling=poll ;; #( 14775 epoll) : 14776 for ac_func in epoll_create 14777do : 14778 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" 14779if test "x$ac_cv_func_epoll_create" = xyes; then : 14780 cat >>confdefs.h <<_ACEOF 14781#define HAVE_EPOLL_CREATE 1 14782_ACEOF 14783 14784$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14785 14786 socket_polling=epoll 14787else 14788 as_fn_error $? "epoll not available." "$LINENO" 5 14789fi 14790done 14791 ;; #( 14792 kqueue) : 14793 for ac_func in kqueue 14794do : 14795 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14796if test "x$ac_cv_func_kqueue" = xyes; then : 14797 cat >>confdefs.h <<_ACEOF 14798#define HAVE_KQUEUE 1 14799_ACEOF 14800 14801$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 14802 14803 socket_polling=kqueue 14804else 14805 as_fn_error $? "kqueue not available." "$LINENO" 5 14806fi 14807done 14808 ;; #( 14809 libkqueue) : 14810 14811pkg_failed=no 14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libkqueue" >&5 14813$as_echo_n "checking for libkqueue... " >&6; } 14814 14815if test -n "$libkqueue_CFLAGS"; then 14816 pkg_cv_libkqueue_CFLAGS="$libkqueue_CFLAGS" 14817 elif test -n "$PKG_CONFIG"; then 14818 if test -n "$PKG_CONFIG" && \ 14819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libkqueue\""; } >&5 14820 ($PKG_CONFIG --exists --print-errors "libkqueue") 2>&5 14821 ac_status=$? 14822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14823 test $ac_status = 0; }; then 14824 pkg_cv_libkqueue_CFLAGS=`$PKG_CONFIG --cflags "libkqueue" 2>/dev/null` 14825 test "x$?" != "x0" && pkg_failed=yes 14826else 14827 pkg_failed=yes 14828fi 14829 else 14830 pkg_failed=untried 14831fi 14832if test -n "$libkqueue_LIBS"; then 14833 pkg_cv_libkqueue_LIBS="$libkqueue_LIBS" 14834 elif test -n "$PKG_CONFIG"; then 14835 if test -n "$PKG_CONFIG" && \ 14836 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libkqueue\""; } >&5 14837 ($PKG_CONFIG --exists --print-errors "libkqueue") 2>&5 14838 ac_status=$? 14839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14840 test $ac_status = 0; }; then 14841 pkg_cv_libkqueue_LIBS=`$PKG_CONFIG --libs "libkqueue" 2>/dev/null` 14842 test "x$?" != "x0" && pkg_failed=yes 14843else 14844 pkg_failed=yes 14845fi 14846 else 14847 pkg_failed=untried 14848fi 14849 14850 14851 14852if test $pkg_failed = yes; then 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14854$as_echo "no" >&6; } 14855 14856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14857 _pkg_short_errors_supported=yes 14858else 14859 _pkg_short_errors_supported=no 14860fi 14861 if test $_pkg_short_errors_supported = yes; then 14862 libkqueue_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libkqueue" 2>&1` 14863 else 14864 libkqueue_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libkqueue" 2>&1` 14865 fi 14866 # Put the nasty error message in config.log where it belongs 14867 echo "$libkqueue_PKG_ERRORS" >&5 14868 14869 as_fn_error $? "libkqueue not available." "$LINENO" 5 14870elif test $pkg_failed = untried; then 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14872$as_echo "no" >&6; } 14873 as_fn_error $? "libkqueue not available." "$LINENO" 5 14874else 14875 libkqueue_CFLAGS=$pkg_cv_libkqueue_CFLAGS 14876 libkqueue_LIBS=$pkg_cv_libkqueue_LIBS 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14878$as_echo "yes" >&6; } 14879 14880$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 14881 14882 socket_polling=libkqueue 14883fi ;; #( 14884 *) : 14885 as_fn_error $? "Invalid value of --socket-polling." "$LINENO" 5 14886 ;; #( 14887 *) : 14888 ;; 14889esac 14890 14891# Alternative memory allocator 14892malloc_LIBS= 14893 14894# Check whether --with-memory-allocator was given. 14895if test "${with_memory_allocator+set}" = set; then : 14896 withval=$with_memory_allocator; case $withval in #( 14897 auto) : 14898 ;; #( 14899 *) : 14900 malloc_LIBS="-l$withval" 14901 ;; #( 14902 *) : 14903 ;; 14904esac 14905 with_memory_allocator=$withval 14906 14907fi 14908 14909if test "$with_memory_allocator" = ""; then : 14910 with_memory_allocator="auto" 14911fi 14912 14913 14914 14915# Check whether --with-urcu was given. 14916if test "${with_urcu+set}" = set; then : 14917 withval=$with_urcu; 14918fi 14919 14920 14921if test "$enable_daemon" = "yes"; then : 14922 14923 14924if test "$with_urcu" != "no"; then : 14925 14926 14927pkg_failed=no 14928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liburcu" >&5 14929$as_echo_n "checking for liburcu... " >&6; } 14930 14931if test -n "$liburcu_CFLAGS"; then 14932 pkg_cv_liburcu_CFLAGS="$liburcu_CFLAGS" 14933 elif test -n "$PKG_CONFIG"; then 14934 if test -n "$PKG_CONFIG" && \ 14935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liburcu\""; } >&5 14936 ($PKG_CONFIG --exists --print-errors "liburcu") 2>&5 14937 ac_status=$? 14938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14939 test $ac_status = 0; }; then 14940 pkg_cv_liburcu_CFLAGS=`$PKG_CONFIG --cflags "liburcu" 2>/dev/null` 14941 test "x$?" != "x0" && pkg_failed=yes 14942else 14943 pkg_failed=yes 14944fi 14945 else 14946 pkg_failed=untried 14947fi 14948if test -n "$liburcu_LIBS"; then 14949 pkg_cv_liburcu_LIBS="$liburcu_LIBS" 14950 elif test -n "$PKG_CONFIG"; then 14951 if test -n "$PKG_CONFIG" && \ 14952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liburcu\""; } >&5 14953 ($PKG_CONFIG --exists --print-errors "liburcu") 2>&5 14954 ac_status=$? 14955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14956 test $ac_status = 0; }; then 14957 pkg_cv_liburcu_LIBS=`$PKG_CONFIG --libs "liburcu" 2>/dev/null` 14958 test "x$?" != "x0" && pkg_failed=yes 14959else 14960 pkg_failed=yes 14961fi 14962 else 14963 pkg_failed=untried 14964fi 14965 14966 14967 14968if test $pkg_failed = yes; then 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14970$as_echo "no" >&6; } 14971 14972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14973 _pkg_short_errors_supported=yes 14974else 14975 _pkg_short_errors_supported=no 14976fi 14977 if test $_pkg_short_errors_supported = yes; then 14978 liburcu_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liburcu" 2>&1` 14979 else 14980 liburcu_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liburcu" 2>&1` 14981 fi 14982 # Put the nasty error message in config.log where it belongs 14983 echo "$liburcu_PKG_ERRORS" >&5 14984 14985 14986 for try_urcu in "$with_urcu" "" "/usr/local"; do 14987 save_LIBS="$LIBS" 14988 save_CPPFLAGS="$CPPFLAGS" 14989 14990 if test -d "$try_urcu"; then : 14991 14992 liburcu_CFLAGS="-I$try_urcu/include" 14993 liburcu_LIBS="-L$try_urcu/lib" 14994 14995else 14996 14997 liburcu_CFLAGS="" 14998 liburcu_LIBS="" 14999 15000fi 15001 15002 CPPFLAGS="$CPPFLAGS $liburcu_CFLAGS" 15003 LIBS="$LIBS $liburcu_LIBS" 15004 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rcu_set_pointer_sym" >&5 15006$as_echo_n "checking for library containing rcu_set_pointer_sym... " >&6; } 15007if ${ac_cv_search_rcu_set_pointer_sym+:} false; then : 15008 $as_echo_n "(cached) " >&6 15009else 15010 ac_func_search_save_LIBS=$LIBS 15011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012/* end confdefs.h. */ 15013 15014/* Override any GCC internal prototype to avoid an error. 15015 Use char because int might match the return type of a GCC 15016 builtin and then its argument prototype would still apply. */ 15017#ifdef __cplusplus 15018extern "C" 15019#endif 15020char rcu_set_pointer_sym (); 15021int 15022main () 15023{ 15024return rcu_set_pointer_sym (); 15025 ; 15026 return 0; 15027} 15028_ACEOF 15029for ac_lib in '' urcu; do 15030 if test -z "$ac_lib"; then 15031 ac_res="none required" 15032 else 15033 ac_res=-l$ac_lib 15034 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15035 fi 15036 if ac_fn_c_try_link "$LINENO"; then : 15037 ac_cv_search_rcu_set_pointer_sym=$ac_res 15038fi 15039rm -f core conftest.err conftest.$ac_objext \ 15040 conftest$ac_exeext 15041 if ${ac_cv_search_rcu_set_pointer_sym+:} false; then : 15042 break 15043fi 15044done 15045if ${ac_cv_search_rcu_set_pointer_sym+:} false; then : 15046 15047else 15048 ac_cv_search_rcu_set_pointer_sym=no 15049fi 15050rm conftest.$ac_ext 15051LIBS=$ac_func_search_save_LIBS 15052fi 15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rcu_set_pointer_sym" >&5 15054$as_echo "$ac_cv_search_rcu_set_pointer_sym" >&6; } 15055ac_res=$ac_cv_search_rcu_set_pointer_sym 15056if test "$ac_res" != no; then : 15057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15058 15059 with_urcu=yes 15060 liburcu_LIBS="$liburcu_LIBS -lurcu" 15061 15062 15063 break 15064 15065else 15066 15067 CPPFLAGS="$save_CPPFLAGS" 15068 LIBS="$save_LIBS" 15069 with_urcu=no 15070 # do not cache result of AC_SEARCH_LIBS test 15071 unset ac_cv_search_rcu_set_pointer_sym 15072 15073fi 15074 15075 done 15076 CPPFLAGS="$save_CPPFLAGS" 15077 LIBS="$save_LIBS" 15078 15079 if test "$with_urcu" = "no"; then : 15080 15081 as_fn_error $? "liburcu is required" "$LINENO" 5 15082 15083fi 15084 15085elif test $pkg_failed = untried; then 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15087$as_echo "no" >&6; } 15088 15089 for try_urcu in "$with_urcu" "" "/usr/local"; do 15090 save_LIBS="$LIBS" 15091 save_CPPFLAGS="$CPPFLAGS" 15092 15093 if test -d "$try_urcu"; then : 15094 15095 liburcu_CFLAGS="-I$try_urcu/include" 15096 liburcu_LIBS="-L$try_urcu/lib" 15097 15098else 15099 15100 liburcu_CFLAGS="" 15101 liburcu_LIBS="" 15102 15103fi 15104 15105 CPPFLAGS="$CPPFLAGS $liburcu_CFLAGS" 15106 LIBS="$LIBS $liburcu_LIBS" 15107 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rcu_set_pointer_sym" >&5 15109$as_echo_n "checking for library containing rcu_set_pointer_sym... " >&6; } 15110if ${ac_cv_search_rcu_set_pointer_sym+:} false; then : 15111 $as_echo_n "(cached) " >&6 15112else 15113 ac_func_search_save_LIBS=$LIBS 15114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15115/* end confdefs.h. */ 15116 15117/* Override any GCC internal prototype to avoid an error. 15118 Use char because int might match the return type of a GCC 15119 builtin and then its argument prototype would still apply. */ 15120#ifdef __cplusplus 15121extern "C" 15122#endif 15123char rcu_set_pointer_sym (); 15124int 15125main () 15126{ 15127return rcu_set_pointer_sym (); 15128 ; 15129 return 0; 15130} 15131_ACEOF 15132for ac_lib in '' urcu; do 15133 if test -z "$ac_lib"; then 15134 ac_res="none required" 15135 else 15136 ac_res=-l$ac_lib 15137 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15138 fi 15139 if ac_fn_c_try_link "$LINENO"; then : 15140 ac_cv_search_rcu_set_pointer_sym=$ac_res 15141fi 15142rm -f core conftest.err conftest.$ac_objext \ 15143 conftest$ac_exeext 15144 if ${ac_cv_search_rcu_set_pointer_sym+:} false; then : 15145 break 15146fi 15147done 15148if ${ac_cv_search_rcu_set_pointer_sym+:} false; then : 15149 15150else 15151 ac_cv_search_rcu_set_pointer_sym=no 15152fi 15153rm conftest.$ac_ext 15154LIBS=$ac_func_search_save_LIBS 15155fi 15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rcu_set_pointer_sym" >&5 15157$as_echo "$ac_cv_search_rcu_set_pointer_sym" >&6; } 15158ac_res=$ac_cv_search_rcu_set_pointer_sym 15159if test "$ac_res" != no; then : 15160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15161 15162 with_urcu=yes 15163 liburcu_LIBS="$liburcu_LIBS -lurcu" 15164 15165 15166 break 15167 15168else 15169 15170 CPPFLAGS="$save_CPPFLAGS" 15171 LIBS="$save_LIBS" 15172 with_urcu=no 15173 # do not cache result of AC_SEARCH_LIBS test 15174 unset ac_cv_search_rcu_set_pointer_sym 15175 15176fi 15177 15178 done 15179 CPPFLAGS="$save_CPPFLAGS" 15180 LIBS="$save_LIBS" 15181 15182 if test "$with_urcu" = "no"; then : 15183 15184 as_fn_error $? "liburcu is required" "$LINENO" 5 15185 15186fi 15187 15188else 15189 liburcu_CFLAGS=$pkg_cv_liburcu_CFLAGS 15190 liburcu_LIBS=$pkg_cv_liburcu_LIBS 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15192$as_echo "yes" >&6; } 15193 15194 liburcu_PKGCONFIG="liburcu >= 0.4.0" 15195 15196 with_urcu=yes 15197 15198fi 15199 15200fi 15201 15202 15203fi 15204 15205static_modules="" 15206shared_modules="" 15207static_modules_declars="" 15208static_modules_init="" 15209doc_modules="" 15210 15211 15212 15213# Check whether --with-module-cookies was given. 15214if test "${with_module_cookies+set}" = set; then : 15215 withval=$with_module_cookies; module=$withval 15216else 15217 if test "$enable_modules" = "no"; then : 15218 module=no 15219else 15220 module="yes" 15221 15222fi 15223 15224fi 15225 15226 15227 doc_modules="${doc_modules}.. include:: modules/cookies/cookies.rst\n" 15228 15229 STATIC_MODULE_cookies=no 15230 SHARED_MODULE_cookies=no 15231 case $module in #( 15232 yes) : 15233 STATIC_MODULE_cookies=yes 15234 static_modules="${static_modules}cookies " 15235 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_cookies;\n" 15236 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_cookies }," ;; #( 15237 shared) : 15238 SHARED_MODULE_cookies=yes 15239 shared_modules="${shared_modules}cookies " 15240 if test "" = "non-shareable"; then : 15241 as_fn_error $? "Module cookies cannot be shared" "$LINENO" 5 15242fi 15243 if test "$enable_shared" != "yes"; then : 15244 as_fn_error $? "Shared module cookies requires shared libraries" "$LINENO" 5 15245fi ;; #( 15246 no) : 15247 ;; #( 15248 *) : 15249 as_fn_error $? "Invalid value '$module' for --with-module-cookies" "$LINENO" 5 15250 ;; #( 15251 *) : 15252 ;; 15253esac 15254 if test "$STATIC_MODULE_cookies" = "yes"; then 15255 STATIC_MODULE_cookies_TRUE= 15256 STATIC_MODULE_cookies_FALSE='#' 15257else 15258 STATIC_MODULE_cookies_TRUE='#' 15259 STATIC_MODULE_cookies_FALSE= 15260fi 15261 15262 if test "$SHARED_MODULE_cookies" = "yes"; then 15263 SHARED_MODULE_cookies_TRUE= 15264 SHARED_MODULE_cookies_FALSE='#' 15265else 15266 SHARED_MODULE_cookies_TRUE='#' 15267 SHARED_MODULE_cookies_FALSE= 15268fi 15269 15270 15271 15272 15273# Check whether --with-module-dnsproxy was given. 15274if test "${with_module_dnsproxy+set}" = set; then : 15275 withval=$with_module_dnsproxy; module=$withval 15276else 15277 if test "$enable_modules" = "no"; then : 15278 module=no 15279else 15280 module="yes" 15281 15282fi 15283 15284fi 15285 15286 15287 doc_modules="${doc_modules}.. include:: modules/dnsproxy/dnsproxy.rst\n" 15288 15289 STATIC_MODULE_dnsproxy=no 15290 SHARED_MODULE_dnsproxy=no 15291 case $module in #( 15292 yes) : 15293 STATIC_MODULE_dnsproxy=yes 15294 static_modules="${static_modules}dnsproxy " 15295 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_dnsproxy;\n" 15296 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_dnsproxy }," ;; #( 15297 shared) : 15298 SHARED_MODULE_dnsproxy=yes 15299 shared_modules="${shared_modules}dnsproxy " 15300 if test ""non-shareable"" = "non-shareable"; then : 15301 as_fn_error $? "Module dnsproxy cannot be shared" "$LINENO" 5 15302fi 15303 if test "$enable_shared" != "yes"; then : 15304 as_fn_error $? "Shared module dnsproxy requires shared libraries" "$LINENO" 5 15305fi ;; #( 15306 no) : 15307 ;; #( 15308 *) : 15309 as_fn_error $? "Invalid value '$module' for --with-module-dnsproxy" "$LINENO" 5 15310 ;; #( 15311 *) : 15312 ;; 15313esac 15314 if test "$STATIC_MODULE_dnsproxy" = "yes"; then 15315 STATIC_MODULE_dnsproxy_TRUE= 15316 STATIC_MODULE_dnsproxy_FALSE='#' 15317else 15318 STATIC_MODULE_dnsproxy_TRUE='#' 15319 STATIC_MODULE_dnsproxy_FALSE= 15320fi 15321 15322 if test "$SHARED_MODULE_dnsproxy" = "yes"; then 15323 SHARED_MODULE_dnsproxy_TRUE= 15324 SHARED_MODULE_dnsproxy_FALSE='#' 15325else 15326 SHARED_MODULE_dnsproxy_TRUE='#' 15327 SHARED_MODULE_dnsproxy_FALSE= 15328fi 15329 15330 15331 15332 15333# Check whether --with-module-dnstap was given. 15334if test "${with_module_dnstap+set}" = set; then : 15335 withval=$with_module_dnstap; module=$withval 15336else 15337 if test "$enable_modules" = "no"; then : 15338 module=no 15339else 15340 module="no" 15341 15342fi 15343 15344fi 15345 15346 15347 doc_modules="${doc_modules}.. include:: modules/dnstap/dnstap.rst\n" 15348 15349 STATIC_MODULE_dnstap=no 15350 SHARED_MODULE_dnstap=no 15351 case $module in #( 15352 yes) : 15353 STATIC_MODULE_dnstap=yes 15354 static_modules="${static_modules}dnstap " 15355 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_dnstap;\n" 15356 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_dnstap }," ;; #( 15357 shared) : 15358 SHARED_MODULE_dnstap=yes 15359 shared_modules="${shared_modules}dnstap " 15360 if test "" = "non-shareable"; then : 15361 as_fn_error $? "Module dnstap cannot be shared" "$LINENO" 5 15362fi 15363 if test "$enable_shared" != "yes"; then : 15364 as_fn_error $? "Shared module dnstap requires shared libraries" "$LINENO" 5 15365fi ;; #( 15366 no) : 15367 ;; #( 15368 *) : 15369 as_fn_error $? "Invalid value '$module' for --with-module-dnstap" "$LINENO" 5 15370 ;; #( 15371 *) : 15372 ;; 15373esac 15374 if test "$STATIC_MODULE_dnstap" = "yes"; then 15375 STATIC_MODULE_dnstap_TRUE= 15376 STATIC_MODULE_dnstap_FALSE='#' 15377else 15378 STATIC_MODULE_dnstap_TRUE='#' 15379 STATIC_MODULE_dnstap_FALSE= 15380fi 15381 15382 if test "$SHARED_MODULE_dnstap" = "yes"; then 15383 SHARED_MODULE_dnstap_TRUE= 15384 SHARED_MODULE_dnstap_FALSE='#' 15385else 15386 SHARED_MODULE_dnstap_TRUE='#' 15387 SHARED_MODULE_dnstap_FALSE= 15388fi 15389 15390 15391 15392 15393# Check whether --with-module-geoip was given. 15394if test "${with_module_geoip+set}" = set; then : 15395 withval=$with_module_geoip; module=$withval 15396else 15397 if test "$enable_modules" = "no"; then : 15398 module=no 15399else 15400 module="yes" 15401 15402fi 15403 15404fi 15405 15406 15407 doc_modules="${doc_modules}.. include:: modules/geoip/geoip.rst\n" 15408 15409 STATIC_MODULE_geoip=no 15410 SHARED_MODULE_geoip=no 15411 case $module in #( 15412 yes) : 15413 STATIC_MODULE_geoip=yes 15414 static_modules="${static_modules}geoip " 15415 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_geoip;\n" 15416 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_geoip }," ;; #( 15417 shared) : 15418 SHARED_MODULE_geoip=yes 15419 shared_modules="${shared_modules}geoip " 15420 if test "" = "non-shareable"; then : 15421 as_fn_error $? "Module geoip cannot be shared" "$LINENO" 5 15422fi 15423 if test "$enable_shared" != "yes"; then : 15424 as_fn_error $? "Shared module geoip requires shared libraries" "$LINENO" 5 15425fi ;; #( 15426 no) : 15427 ;; #( 15428 *) : 15429 as_fn_error $? "Invalid value '$module' for --with-module-geoip" "$LINENO" 5 15430 ;; #( 15431 *) : 15432 ;; 15433esac 15434 if test "$STATIC_MODULE_geoip" = "yes"; then 15435 STATIC_MODULE_geoip_TRUE= 15436 STATIC_MODULE_geoip_FALSE='#' 15437else 15438 STATIC_MODULE_geoip_TRUE='#' 15439 STATIC_MODULE_geoip_FALSE= 15440fi 15441 15442 if test "$SHARED_MODULE_geoip" = "yes"; then 15443 SHARED_MODULE_geoip_TRUE= 15444 SHARED_MODULE_geoip_FALSE='#' 15445else 15446 SHARED_MODULE_geoip_TRUE='#' 15447 SHARED_MODULE_geoip_FALSE= 15448fi 15449 15450 15451 15452 15453# Check whether --with-module-noudp was given. 15454if test "${with_module_noudp+set}" = set; then : 15455 withval=$with_module_noudp; module=$withval 15456else 15457 if test "$enable_modules" = "no"; then : 15458 module=no 15459else 15460 module="yes" 15461 15462fi 15463 15464fi 15465 15466 15467 doc_modules="${doc_modules}.. include:: modules/noudp/noudp.rst\n" 15468 15469 STATIC_MODULE_noudp=no 15470 SHARED_MODULE_noudp=no 15471 case $module in #( 15472 yes) : 15473 STATIC_MODULE_noudp=yes 15474 static_modules="${static_modules}noudp " 15475 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_noudp;\n" 15476 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_noudp }," ;; #( 15477 shared) : 15478 SHARED_MODULE_noudp=yes 15479 shared_modules="${shared_modules}noudp " 15480 if test "" = "non-shareable"; then : 15481 as_fn_error $? "Module noudp cannot be shared" "$LINENO" 5 15482fi 15483 if test "$enable_shared" != "yes"; then : 15484 as_fn_error $? "Shared module noudp requires shared libraries" "$LINENO" 5 15485fi ;; #( 15486 no) : 15487 ;; #( 15488 *) : 15489 as_fn_error $? "Invalid value '$module' for --with-module-noudp" "$LINENO" 5 15490 ;; #( 15491 *) : 15492 ;; 15493esac 15494 if test "$STATIC_MODULE_noudp" = "yes"; then 15495 STATIC_MODULE_noudp_TRUE= 15496 STATIC_MODULE_noudp_FALSE='#' 15497else 15498 STATIC_MODULE_noudp_TRUE='#' 15499 STATIC_MODULE_noudp_FALSE= 15500fi 15501 15502 if test "$SHARED_MODULE_noudp" = "yes"; then 15503 SHARED_MODULE_noudp_TRUE= 15504 SHARED_MODULE_noudp_FALSE='#' 15505else 15506 SHARED_MODULE_noudp_TRUE='#' 15507 SHARED_MODULE_noudp_FALSE= 15508fi 15509 15510 15511 15512 15513# Check whether --with-module-onlinesign was given. 15514if test "${with_module_onlinesign+set}" = set; then : 15515 withval=$with_module_onlinesign; module=$withval 15516else 15517 if test "$enable_modules" = "no"; then : 15518 module=no 15519else 15520 module="yes" 15521 15522fi 15523 15524fi 15525 15526 15527 doc_modules="${doc_modules}.. include:: modules/onlinesign/onlinesign.rst\n" 15528 15529 STATIC_MODULE_onlinesign=no 15530 SHARED_MODULE_onlinesign=no 15531 case $module in #( 15532 yes) : 15533 STATIC_MODULE_onlinesign=yes 15534 static_modules="${static_modules}onlinesign " 15535 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_onlinesign;\n" 15536 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_onlinesign }," ;; #( 15537 shared) : 15538 SHARED_MODULE_onlinesign=yes 15539 shared_modules="${shared_modules}onlinesign " 15540 if test ""non-shareable"" = "non-shareable"; then : 15541 as_fn_error $? "Module onlinesign cannot be shared" "$LINENO" 5 15542fi 15543 if test "$enable_shared" != "yes"; then : 15544 as_fn_error $? "Shared module onlinesign requires shared libraries" "$LINENO" 5 15545fi ;; #( 15546 no) : 15547 ;; #( 15548 *) : 15549 as_fn_error $? "Invalid value '$module' for --with-module-onlinesign" "$LINENO" 5 15550 ;; #( 15551 *) : 15552 ;; 15553esac 15554 if test "$STATIC_MODULE_onlinesign" = "yes"; then 15555 STATIC_MODULE_onlinesign_TRUE= 15556 STATIC_MODULE_onlinesign_FALSE='#' 15557else 15558 STATIC_MODULE_onlinesign_TRUE='#' 15559 STATIC_MODULE_onlinesign_FALSE= 15560fi 15561 15562 if test "$SHARED_MODULE_onlinesign" = "yes"; then 15563 SHARED_MODULE_onlinesign_TRUE= 15564 SHARED_MODULE_onlinesign_FALSE='#' 15565else 15566 SHARED_MODULE_onlinesign_TRUE='#' 15567 SHARED_MODULE_onlinesign_FALSE= 15568fi 15569 15570 15571 15572 15573# Check whether --with-module-probe was given. 15574if test "${with_module_probe+set}" = set; then : 15575 withval=$with_module_probe; module=$withval 15576else 15577 if test "$enable_modules" = "no"; then : 15578 module=no 15579else 15580 module="yes" 15581 15582fi 15583 15584fi 15585 15586 15587 doc_modules="${doc_modules}.. include:: modules/probe/probe.rst\n" 15588 15589 STATIC_MODULE_probe=no 15590 SHARED_MODULE_probe=no 15591 case $module in #( 15592 yes) : 15593 STATIC_MODULE_probe=yes 15594 static_modules="${static_modules}probe " 15595 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_probe;\n" 15596 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_probe }," ;; #( 15597 shared) : 15598 SHARED_MODULE_probe=yes 15599 shared_modules="${shared_modules}probe " 15600 if test "" = "non-shareable"; then : 15601 as_fn_error $? "Module probe cannot be shared" "$LINENO" 5 15602fi 15603 if test "$enable_shared" != "yes"; then : 15604 as_fn_error $? "Shared module probe requires shared libraries" "$LINENO" 5 15605fi ;; #( 15606 no) : 15607 ;; #( 15608 *) : 15609 as_fn_error $? "Invalid value '$module' for --with-module-probe" "$LINENO" 5 15610 ;; #( 15611 *) : 15612 ;; 15613esac 15614 if test "$STATIC_MODULE_probe" = "yes"; then 15615 STATIC_MODULE_probe_TRUE= 15616 STATIC_MODULE_probe_FALSE='#' 15617else 15618 STATIC_MODULE_probe_TRUE='#' 15619 STATIC_MODULE_probe_FALSE= 15620fi 15621 15622 if test "$SHARED_MODULE_probe" = "yes"; then 15623 SHARED_MODULE_probe_TRUE= 15624 SHARED_MODULE_probe_FALSE='#' 15625else 15626 SHARED_MODULE_probe_TRUE='#' 15627 SHARED_MODULE_probe_FALSE= 15628fi 15629 15630 15631 15632 15633# Check whether --with-module-queryacl was given. 15634if test "${with_module_queryacl+set}" = set; then : 15635 withval=$with_module_queryacl; module=$withval 15636else 15637 if test "$enable_modules" = "no"; then : 15638 module=no 15639else 15640 module="yes" 15641 15642fi 15643 15644fi 15645 15646 15647 doc_modules="${doc_modules}.. include:: modules/queryacl/queryacl.rst\n" 15648 15649 STATIC_MODULE_queryacl=no 15650 SHARED_MODULE_queryacl=no 15651 case $module in #( 15652 yes) : 15653 STATIC_MODULE_queryacl=yes 15654 static_modules="${static_modules}queryacl " 15655 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_queryacl;\n" 15656 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_queryacl }," ;; #( 15657 shared) : 15658 SHARED_MODULE_queryacl=yes 15659 shared_modules="${shared_modules}queryacl " 15660 if test "" = "non-shareable"; then : 15661 as_fn_error $? "Module queryacl cannot be shared" "$LINENO" 5 15662fi 15663 if test "$enable_shared" != "yes"; then : 15664 as_fn_error $? "Shared module queryacl requires shared libraries" "$LINENO" 5 15665fi ;; #( 15666 no) : 15667 ;; #( 15668 *) : 15669 as_fn_error $? "Invalid value '$module' for --with-module-queryacl" "$LINENO" 5 15670 ;; #( 15671 *) : 15672 ;; 15673esac 15674 if test "$STATIC_MODULE_queryacl" = "yes"; then 15675 STATIC_MODULE_queryacl_TRUE= 15676 STATIC_MODULE_queryacl_FALSE='#' 15677else 15678 STATIC_MODULE_queryacl_TRUE='#' 15679 STATIC_MODULE_queryacl_FALSE= 15680fi 15681 15682 if test "$SHARED_MODULE_queryacl" = "yes"; then 15683 SHARED_MODULE_queryacl_TRUE= 15684 SHARED_MODULE_queryacl_FALSE='#' 15685else 15686 SHARED_MODULE_queryacl_TRUE='#' 15687 SHARED_MODULE_queryacl_FALSE= 15688fi 15689 15690 15691 15692 15693# Check whether --with-module-rrl was given. 15694if test "${with_module_rrl+set}" = set; then : 15695 withval=$with_module_rrl; module=$withval 15696else 15697 if test "$enable_modules" = "no"; then : 15698 module=no 15699else 15700 module="yes" 15701 15702fi 15703 15704fi 15705 15706 15707 doc_modules="${doc_modules}.. include:: modules/rrl/rrl.rst\n" 15708 15709 STATIC_MODULE_rrl=no 15710 SHARED_MODULE_rrl=no 15711 case $module in #( 15712 yes) : 15713 STATIC_MODULE_rrl=yes 15714 static_modules="${static_modules}rrl " 15715 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_rrl;\n" 15716 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_rrl }," ;; #( 15717 shared) : 15718 SHARED_MODULE_rrl=yes 15719 shared_modules="${shared_modules}rrl " 15720 if test "" = "non-shareable"; then : 15721 as_fn_error $? "Module rrl cannot be shared" "$LINENO" 5 15722fi 15723 if test "$enable_shared" != "yes"; then : 15724 as_fn_error $? "Shared module rrl requires shared libraries" "$LINENO" 5 15725fi ;; #( 15726 no) : 15727 ;; #( 15728 *) : 15729 as_fn_error $? "Invalid value '$module' for --with-module-rrl" "$LINENO" 5 15730 ;; #( 15731 *) : 15732 ;; 15733esac 15734 if test "$STATIC_MODULE_rrl" = "yes"; then 15735 STATIC_MODULE_rrl_TRUE= 15736 STATIC_MODULE_rrl_FALSE='#' 15737else 15738 STATIC_MODULE_rrl_TRUE='#' 15739 STATIC_MODULE_rrl_FALSE= 15740fi 15741 15742 if test "$SHARED_MODULE_rrl" = "yes"; then 15743 SHARED_MODULE_rrl_TRUE= 15744 SHARED_MODULE_rrl_FALSE='#' 15745else 15746 SHARED_MODULE_rrl_TRUE='#' 15747 SHARED_MODULE_rrl_FALSE= 15748fi 15749 15750 15751 15752 15753# Check whether --with-module-stats was given. 15754if test "${with_module_stats+set}" = set; then : 15755 withval=$with_module_stats; module=$withval 15756else 15757 if test "$enable_modules" = "no"; then : 15758 module=no 15759else 15760 module="yes" 15761 15762fi 15763 15764fi 15765 15766 15767 doc_modules="${doc_modules}.. include:: modules/stats/stats.rst\n" 15768 15769 STATIC_MODULE_stats=no 15770 SHARED_MODULE_stats=no 15771 case $module in #( 15772 yes) : 15773 STATIC_MODULE_stats=yes 15774 static_modules="${static_modules}stats " 15775 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_stats;\n" 15776 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_stats }," ;; #( 15777 shared) : 15778 SHARED_MODULE_stats=yes 15779 shared_modules="${shared_modules}stats " 15780 if test "" = "non-shareable"; then : 15781 as_fn_error $? "Module stats cannot be shared" "$LINENO" 5 15782fi 15783 if test "$enable_shared" != "yes"; then : 15784 as_fn_error $? "Shared module stats requires shared libraries" "$LINENO" 5 15785fi ;; #( 15786 no) : 15787 ;; #( 15788 *) : 15789 as_fn_error $? "Invalid value '$module' for --with-module-stats" "$LINENO" 5 15790 ;; #( 15791 *) : 15792 ;; 15793esac 15794 if test "$STATIC_MODULE_stats" = "yes"; then 15795 STATIC_MODULE_stats_TRUE= 15796 STATIC_MODULE_stats_FALSE='#' 15797else 15798 STATIC_MODULE_stats_TRUE='#' 15799 STATIC_MODULE_stats_FALSE= 15800fi 15801 15802 if test "$SHARED_MODULE_stats" = "yes"; then 15803 SHARED_MODULE_stats_TRUE= 15804 SHARED_MODULE_stats_FALSE='#' 15805else 15806 SHARED_MODULE_stats_TRUE='#' 15807 SHARED_MODULE_stats_FALSE= 15808fi 15809 15810 15811 15812 15813# Check whether --with-module-synthrecord was given. 15814if test "${with_module_synthrecord+set}" = set; then : 15815 withval=$with_module_synthrecord; module=$withval 15816else 15817 if test "$enable_modules" = "no"; then : 15818 module=no 15819else 15820 module="yes" 15821 15822fi 15823 15824fi 15825 15826 15827 doc_modules="${doc_modules}.. include:: modules/synthrecord/synthrecord.rst\n" 15828 15829 STATIC_MODULE_synthrecord=no 15830 SHARED_MODULE_synthrecord=no 15831 case $module in #( 15832 yes) : 15833 STATIC_MODULE_synthrecord=yes 15834 static_modules="${static_modules}synthrecord " 15835 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_synthrecord;\n" 15836 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_synthrecord }," ;; #( 15837 shared) : 15838 SHARED_MODULE_synthrecord=yes 15839 shared_modules="${shared_modules}synthrecord " 15840 if test "" = "non-shareable"; then : 15841 as_fn_error $? "Module synthrecord cannot be shared" "$LINENO" 5 15842fi 15843 if test "$enable_shared" != "yes"; then : 15844 as_fn_error $? "Shared module synthrecord requires shared libraries" "$LINENO" 5 15845fi ;; #( 15846 no) : 15847 ;; #( 15848 *) : 15849 as_fn_error $? "Invalid value '$module' for --with-module-synthrecord" "$LINENO" 5 15850 ;; #( 15851 *) : 15852 ;; 15853esac 15854 if test "$STATIC_MODULE_synthrecord" = "yes"; then 15855 STATIC_MODULE_synthrecord_TRUE= 15856 STATIC_MODULE_synthrecord_FALSE='#' 15857else 15858 STATIC_MODULE_synthrecord_TRUE='#' 15859 STATIC_MODULE_synthrecord_FALSE= 15860fi 15861 15862 if test "$SHARED_MODULE_synthrecord" = "yes"; then 15863 SHARED_MODULE_synthrecord_TRUE= 15864 SHARED_MODULE_synthrecord_FALSE='#' 15865else 15866 SHARED_MODULE_synthrecord_TRUE='#' 15867 SHARED_MODULE_synthrecord_FALSE= 15868fi 15869 15870 15871 15872 15873# Check whether --with-module-whoami was given. 15874if test "${with_module_whoami+set}" = set; then : 15875 withval=$with_module_whoami; module=$withval 15876else 15877 if test "$enable_modules" = "no"; then : 15878 module=no 15879else 15880 module="yes" 15881 15882fi 15883 15884fi 15885 15886 15887 doc_modules="${doc_modules}.. include:: modules/whoami/whoami.rst\n" 15888 15889 STATIC_MODULE_whoami=no 15890 SHARED_MODULE_whoami=no 15891 case $module in #( 15892 yes) : 15893 STATIC_MODULE_whoami=yes 15894 static_modules="${static_modules}whoami " 15895 static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_whoami;\n" 15896 static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_whoami }," ;; #( 15897 shared) : 15898 SHARED_MODULE_whoami=yes 15899 shared_modules="${shared_modules}whoami " 15900 if test "" = "non-shareable"; then : 15901 as_fn_error $? "Module whoami cannot be shared" "$LINENO" 5 15902fi 15903 if test "$enable_shared" != "yes"; then : 15904 as_fn_error $? "Shared module whoami requires shared libraries" "$LINENO" 5 15905fi ;; #( 15906 no) : 15907 ;; #( 15908 *) : 15909 as_fn_error $? "Invalid value '$module' for --with-module-whoami" "$LINENO" 5 15910 ;; #( 15911 *) : 15912 ;; 15913esac 15914 if test "$STATIC_MODULE_whoami" = "yes"; then 15915 STATIC_MODULE_whoami_TRUE= 15916 STATIC_MODULE_whoami_FALSE='#' 15917else 15918 STATIC_MODULE_whoami_TRUE='#' 15919 STATIC_MODULE_whoami_FALSE= 15920fi 15921 15922 if test "$SHARED_MODULE_whoami" = "yes"; then 15923 SHARED_MODULE_whoami_TRUE= 15924 SHARED_MODULE_whoami_FALSE='#' 15925else 15926 SHARED_MODULE_whoami_TRUE='#' 15927 SHARED_MODULE_whoami_FALSE= 15928fi 15929 15930 15931 15932STATIC_MODULES_DECLARS=$(printf "$static_modules_declars") 15933 15934 15935STATIC_MODULES_INIT=$(printf "$static_modules_init") 15936 15937 15938DOC_MODULES=$(printf "$doc_modules") 15939 15940 15941 15942# Check for Dnstap 15943# Check whether --enable-dnstap was given. 15944if test "${enable_dnstap+set}" = set; then : 15945 enableval=$enable_dnstap; 15946else 15947 enable_dnstap=no 15948fi 15949 15950 15951if test "$enable_dnstap" != "no" -o "$STATIC_MODULE_dnstap" != "no" -o "$SHARED_MODULE_dnstap" != "no"; then : 15952 15953 # Extract the first word of "protoc-c", so it can be a program name with args. 15954set dummy protoc-c; ac_word=$2 15955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15956$as_echo_n "checking for $ac_word... " >&6; } 15957if ${ac_cv_path_PROTOC_C+:} false; then : 15958 $as_echo_n "(cached) " >&6 15959else 15960 case $PROTOC_C in 15961 [\\/]* | ?:[\\/]*) 15962 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 15963 ;; 15964 *) 15965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15966for as_dir in $PATH 15967do 15968 IFS=$as_save_IFS 15969 test -z "$as_dir" && as_dir=. 15970 for ac_exec_ext in '' $ac_executable_extensions; do 15971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15972 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 15973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15974 break 2 15975 fi 15976done 15977 done 15978IFS=$as_save_IFS 15979 15980 ;; 15981esac 15982fi 15983PROTOC_C=$ac_cv_path_PROTOC_C 15984if test -n "$PROTOC_C"; then 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 15986$as_echo "$PROTOC_C" >&6; } 15987else 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15989$as_echo "no" >&6; } 15990fi 15991 15992 15993 if test -z "$PROTOC_C"; then : 15994 15995 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 15996 15997fi 15998 15999pkg_failed=no 16000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfstrm" >&5 16001$as_echo_n "checking for libfstrm... " >&6; } 16002 16003if test -n "$libfstrm_CFLAGS"; then 16004 pkg_cv_libfstrm_CFLAGS="$libfstrm_CFLAGS" 16005 elif test -n "$PKG_CONFIG"; then 16006 if test -n "$PKG_CONFIG" && \ 16007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm\""; } >&5 16008 ($PKG_CONFIG --exists --print-errors "libfstrm") 2>&5 16009 ac_status=$? 16010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16011 test $ac_status = 0; }; then 16012 pkg_cv_libfstrm_CFLAGS=`$PKG_CONFIG --cflags "libfstrm" 2>/dev/null` 16013 test "x$?" != "x0" && pkg_failed=yes 16014else 16015 pkg_failed=yes 16016fi 16017 else 16018 pkg_failed=untried 16019fi 16020if test -n "$libfstrm_LIBS"; then 16021 pkg_cv_libfstrm_LIBS="$libfstrm_LIBS" 16022 elif test -n "$PKG_CONFIG"; then 16023 if test -n "$PKG_CONFIG" && \ 16024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm\""; } >&5 16025 ($PKG_CONFIG --exists --print-errors "libfstrm") 2>&5 16026 ac_status=$? 16027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16028 test $ac_status = 0; }; then 16029 pkg_cv_libfstrm_LIBS=`$PKG_CONFIG --libs "libfstrm" 2>/dev/null` 16030 test "x$?" != "x0" && pkg_failed=yes 16031else 16032 pkg_failed=yes 16033fi 16034 else 16035 pkg_failed=untried 16036fi 16037 16038 16039 16040if test $pkg_failed = yes; then 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16042$as_echo "no" >&6; } 16043 16044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16045 _pkg_short_errors_supported=yes 16046else 16047 _pkg_short_errors_supported=no 16048fi 16049 if test $_pkg_short_errors_supported = yes; then 16050 libfstrm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfstrm" 2>&1` 16051 else 16052 libfstrm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfstrm" 2>&1` 16053 fi 16054 # Put the nasty error message in config.log where it belongs 16055 echo "$libfstrm_PKG_ERRORS" >&5 16056 16057 as_fn_error $? "Package requirements (libfstrm) were not met: 16058 16059$libfstrm_PKG_ERRORS 16060 16061Consider adjusting the PKG_CONFIG_PATH environment variable if you 16062installed software in a non-standard prefix. 16063 16064Alternatively, you may set the environment variables libfstrm_CFLAGS 16065and libfstrm_LIBS to avoid the need to call pkg-config. 16066See the pkg-config man page for more details." "$LINENO" 5 16067elif test $pkg_failed = untried; then 16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16069$as_echo "no" >&6; } 16070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16072as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16073is in your PATH or set the PKG_CONFIG environment variable to the full 16074path to pkg-config. 16075 16076Alternatively, you may set the environment variables libfstrm_CFLAGS 16077and libfstrm_LIBS to avoid the need to call pkg-config. 16078See the pkg-config man page for more details. 16079 16080To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16081See \`config.log' for more details" "$LINENO" 5; } 16082else 16083 libfstrm_CFLAGS=$pkg_cv_libfstrm_CFLAGS 16084 libfstrm_LIBS=$pkg_cv_libfstrm_LIBS 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16086$as_echo "yes" >&6; } 16087 16088fi 16089 16090pkg_failed=no 16091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libprotobuf-c >= 1.0.0" >&5 16092$as_echo_n "checking for libprotobuf-c >= 1.0.0... " >&6; } 16093 16094if test -n "$libprotobuf_c_CFLAGS"; then 16095 pkg_cv_libprotobuf_c_CFLAGS="$libprotobuf_c_CFLAGS" 16096 elif test -n "$PKG_CONFIG"; then 16097 if test -n "$PKG_CONFIG" && \ 16098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c >= 1.0.0\""; } >&5 16099 ($PKG_CONFIG --exists --print-errors "libprotobuf-c >= 1.0.0") 2>&5 16100 ac_status=$? 16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16102 test $ac_status = 0; }; then 16103 pkg_cv_libprotobuf_c_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c >= 1.0.0" 2>/dev/null` 16104 test "x$?" != "x0" && pkg_failed=yes 16105else 16106 pkg_failed=yes 16107fi 16108 else 16109 pkg_failed=untried 16110fi 16111if test -n "$libprotobuf_c_LIBS"; then 16112 pkg_cv_libprotobuf_c_LIBS="$libprotobuf_c_LIBS" 16113 elif test -n "$PKG_CONFIG"; then 16114 if test -n "$PKG_CONFIG" && \ 16115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c >= 1.0.0\""; } >&5 16116 ($PKG_CONFIG --exists --print-errors "libprotobuf-c >= 1.0.0") 2>&5 16117 ac_status=$? 16118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16119 test $ac_status = 0; }; then 16120 pkg_cv_libprotobuf_c_LIBS=`$PKG_CONFIG --libs "libprotobuf-c >= 1.0.0" 2>/dev/null` 16121 test "x$?" != "x0" && pkg_failed=yes 16122else 16123 pkg_failed=yes 16124fi 16125 else 16126 pkg_failed=untried 16127fi 16128 16129 16130 16131if test $pkg_failed = yes; then 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16133$as_echo "no" >&6; } 16134 16135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16136 _pkg_short_errors_supported=yes 16137else 16138 _pkg_short_errors_supported=no 16139fi 16140 if test $_pkg_short_errors_supported = yes; then 16141 libprotobuf_c_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c >= 1.0.0" 2>&1` 16142 else 16143 libprotobuf_c_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c >= 1.0.0" 2>&1` 16144 fi 16145 # Put the nasty error message in config.log where it belongs 16146 echo "$libprotobuf_c_PKG_ERRORS" >&5 16147 16148 as_fn_error $? "Package requirements (libprotobuf-c >= 1.0.0) were not met: 16149 16150$libprotobuf_c_PKG_ERRORS 16151 16152Consider adjusting the PKG_CONFIG_PATH environment variable if you 16153installed software in a non-standard prefix. 16154 16155Alternatively, you may set the environment variables libprotobuf_c_CFLAGS 16156and libprotobuf_c_LIBS to avoid the need to call pkg-config. 16157See the pkg-config man page for more details." "$LINENO" 5 16158elif test $pkg_failed = untried; then 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16160$as_echo "no" >&6; } 16161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16163as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16164is in your PATH or set the PKG_CONFIG environment variable to the full 16165path to pkg-config. 16166 16167Alternatively, you may set the environment variables libprotobuf_c_CFLAGS 16168and libprotobuf_c_LIBS to avoid the need to call pkg-config. 16169See the pkg-config man page for more details. 16170 16171To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16172See \`config.log' for more details" "$LINENO" 5; } 16173else 16174 libprotobuf_c_CFLAGS=$pkg_cv_libprotobuf_c_CFLAGS 16175 libprotobuf_c_LIBS=$pkg_cv_libprotobuf_c_LIBS 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16177$as_echo "yes" >&6; } 16178 16179fi 16180 DNSTAP_CFLAGS="$libfstrm_CFLAGS $libprotobuf_c_CFLAGS" 16181 16182 DNSTAP_LIBS="$libfstrm_LIBS $libprotobuf_c_LIBS" 16183 16184 16185fi 16186 16187if test "$enable_dnstap" != "no"; then : 16188 16189 16190$as_echo "#define USE_DNSTAP 1" >>confdefs.h 16191 16192 16193fi 16194 if test "$enable_dnstap" != "no"; then 16195 HAVE_DNSTAP_TRUE= 16196 HAVE_DNSTAP_FALSE='#' 16197else 16198 HAVE_DNSTAP_TRUE='#' 16199 HAVE_DNSTAP_FALSE= 16200fi 16201 16202 16203 if test "$enable_dnstap" != "no" -o \ 16204 "$STATIC_MODULE_dnstap" != "no" -o \ 16205 "$SHARED_MODULE_dnstap" != "no"; then 16206 HAVE_LIBDNSTAP_TRUE= 16207 HAVE_LIBDNSTAP_FALSE='#' 16208else 16209 HAVE_LIBDNSTAP_TRUE='#' 16210 HAVE_LIBDNSTAP_FALSE= 16211fi 16212 16213# MaxMind DB for the GeoIP module 16214# Check whether --enable-maxminddb was given. 16215if test "${enable_maxminddb+set}" = set; then : 16216 enableval=$enable_maxminddb; enable_maxminddb="$enableval" 16217else 16218 enable_maxminddb=auto 16219fi 16220 16221 16222if test "$enable_daemon" = "no"; then : 16223 enable_maxminddb=no 16224fi 16225case $enable_maxminddb in #( 16226 no) : 16227 ;; #( 16228 auto) : 16229 16230pkg_failed=no 16231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 16232$as_echo_n "checking for libmaxminddb... " >&6; } 16233 16234if test -n "$libmaxminddb_CFLAGS"; then 16235 pkg_cv_libmaxminddb_CFLAGS="$libmaxminddb_CFLAGS" 16236 elif test -n "$PKG_CONFIG"; then 16237 if test -n "$PKG_CONFIG" && \ 16238 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 16239 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 16240 ac_status=$? 16241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16242 test $ac_status = 0; }; then 16243 pkg_cv_libmaxminddb_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 16244 test "x$?" != "x0" && pkg_failed=yes 16245else 16246 pkg_failed=yes 16247fi 16248 else 16249 pkg_failed=untried 16250fi 16251if test -n "$libmaxminddb_LIBS"; then 16252 pkg_cv_libmaxminddb_LIBS="$libmaxminddb_LIBS" 16253 elif test -n "$PKG_CONFIG"; then 16254 if test -n "$PKG_CONFIG" && \ 16255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 16256 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 16257 ac_status=$? 16258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16259 test $ac_status = 0; }; then 16260 pkg_cv_libmaxminddb_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 16261 test "x$?" != "x0" && pkg_failed=yes 16262else 16263 pkg_failed=yes 16264fi 16265 else 16266 pkg_failed=untried 16267fi 16268 16269 16270 16271if test $pkg_failed = yes; then 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16273$as_echo "no" >&6; } 16274 16275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16276 _pkg_short_errors_supported=yes 16277else 16278 _pkg_short_errors_supported=no 16279fi 16280 if test $_pkg_short_errors_supported = yes; then 16281 libmaxminddb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 16282 else 16283 libmaxminddb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 16284 fi 16285 # Put the nasty error message in config.log where it belongs 16286 echo "$libmaxminddb_PKG_ERRORS" >&5 16287 16288 enable_maxminddb=no 16289elif test $pkg_failed = untried; then 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16291$as_echo "no" >&6; } 16292 enable_maxminddb=no 16293else 16294 libmaxminddb_CFLAGS=$pkg_cv_libmaxminddb_CFLAGS 16295 libmaxminddb_LIBS=$pkg_cv_libmaxminddb_LIBS 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16297$as_echo "yes" >&6; } 16298 enable_maxminddb=yes 16299fi ;; #( 16300 yes) : 16301 16302pkg_failed=no 16303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 16304$as_echo_n "checking for libmaxminddb... " >&6; } 16305 16306if test -n "$libmaxminddb_CFLAGS"; then 16307 pkg_cv_libmaxminddb_CFLAGS="$libmaxminddb_CFLAGS" 16308 elif test -n "$PKG_CONFIG"; then 16309 if test -n "$PKG_CONFIG" && \ 16310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 16311 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 16312 ac_status=$? 16313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16314 test $ac_status = 0; }; then 16315 pkg_cv_libmaxminddb_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 16316 test "x$?" != "x0" && pkg_failed=yes 16317else 16318 pkg_failed=yes 16319fi 16320 else 16321 pkg_failed=untried 16322fi 16323if test -n "$libmaxminddb_LIBS"; then 16324 pkg_cv_libmaxminddb_LIBS="$libmaxminddb_LIBS" 16325 elif test -n "$PKG_CONFIG"; then 16326 if test -n "$PKG_CONFIG" && \ 16327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 16328 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 16329 ac_status=$? 16330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16331 test $ac_status = 0; }; then 16332 pkg_cv_libmaxminddb_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 16333 test "x$?" != "x0" && pkg_failed=yes 16334else 16335 pkg_failed=yes 16336fi 16337 else 16338 pkg_failed=untried 16339fi 16340 16341 16342 16343if test $pkg_failed = yes; then 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16345$as_echo "no" >&6; } 16346 16347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16348 _pkg_short_errors_supported=yes 16349else 16350 _pkg_short_errors_supported=no 16351fi 16352 if test $_pkg_short_errors_supported = yes; then 16353 libmaxminddb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 16354 else 16355 libmaxminddb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 16356 fi 16357 # Put the nasty error message in config.log where it belongs 16358 echo "$libmaxminddb_PKG_ERRORS" >&5 16359 16360 as_fn_error $? "Package requirements (libmaxminddb) were not met: 16361 16362$libmaxminddb_PKG_ERRORS 16363 16364Consider adjusting the PKG_CONFIG_PATH environment variable if you 16365installed software in a non-standard prefix. 16366 16367Alternatively, you may set the environment variables libmaxminddb_CFLAGS 16368and libmaxminddb_LIBS to avoid the need to call pkg-config. 16369See the pkg-config man page for more details." "$LINENO" 5 16370elif test $pkg_failed = untried; then 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16372$as_echo "no" >&6; } 16373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16375as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16376is in your PATH or set the PKG_CONFIG environment variable to the full 16377path to pkg-config. 16378 16379Alternatively, you may set the environment variables libmaxminddb_CFLAGS 16380and libmaxminddb_LIBS to avoid the need to call pkg-config. 16381See the pkg-config man page for more details. 16382 16383To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16384See \`config.log' for more details" "$LINENO" 5; } 16385else 16386 libmaxminddb_CFLAGS=$pkg_cv_libmaxminddb_CFLAGS 16387 libmaxminddb_LIBS=$pkg_cv_libmaxminddb_LIBS 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16389$as_echo "yes" >&6; } 16390 16391fi ;; #( 16392 *) : 16393 16394 save_CFLAGS="$CFLAGS" 16395 save_LIBS="$LIBS" 16396 if test "$enable_maxminddb" != ""; then : 16397 16398 LIBS="$LIBS -L$enable_maxminddb" 16399 CFLAGS="$CFLAGS -I$enable_maxminddb/include" 16400 16401fi 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5 16403$as_echo_n "checking for library containing MMDB_open... " >&6; } 16404if ${ac_cv_search_MMDB_open+:} false; then : 16405 $as_echo_n "(cached) " >&6 16406else 16407 ac_func_search_save_LIBS=$LIBS 16408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16409/* end confdefs.h. */ 16410 16411/* Override any GCC internal prototype to avoid an error. 16412 Use char because int might match the return type of a GCC 16413 builtin and then its argument prototype would still apply. */ 16414#ifdef __cplusplus 16415extern "C" 16416#endif 16417char MMDB_open (); 16418int 16419main () 16420{ 16421return MMDB_open (); 16422 ; 16423 return 0; 16424} 16425_ACEOF 16426for ac_lib in '' maxminddb; do 16427 if test -z "$ac_lib"; then 16428 ac_res="none required" 16429 else 16430 ac_res=-l$ac_lib 16431 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16432 fi 16433 if ac_fn_c_try_link "$LINENO"; then : 16434 ac_cv_search_MMDB_open=$ac_res 16435fi 16436rm -f core conftest.err conftest.$ac_objext \ 16437 conftest$ac_exeext 16438 if ${ac_cv_search_MMDB_open+:} false; then : 16439 break 16440fi 16441done 16442if ${ac_cv_search_MMDB_open+:} false; then : 16443 16444else 16445 ac_cv_search_MMDB_open=no 16446fi 16447rm conftest.$ac_ext 16448LIBS=$ac_func_search_save_LIBS 16449fi 16450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5 16451$as_echo "$ac_cv_search_MMDB_open" >&6; } 16452ac_res=$ac_cv_search_MMDB_open 16453if test "$ac_res" != no; then : 16454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16455 16456 if test "$enable_maxminddb" != ""; then : 16457 16458 libmaxminddb_CFLAGS="-I$enable_maxminddb/include" 16459 libmaxminddb_LIBS="-L$enable_maxminddb -lmaxminddb" 16460 16461else 16462 16463 libmaxminddb_CFLAGS="" 16464 libmaxminddb_LIBS="$ac_cv_search_MMDB_open" 16465 16466fi 16467 16468else 16469 as_fn_error $? "\"not found in \`$enable_maxminddb'\"" "$LINENO" 5 16470fi 16471 16472 CFLAGS="$save_CFLAGS" 16473 LIBS="$save_LIBS" 16474 16475 16476 enable_maxminddb=yes 16477 ;; #( 16478 *) : 16479 ;; 16480esac 16481 16482if test "$enable_maxminddb" = yes; then : 16483 16484$as_echo "#define HAVE_MAXMINDDB 1" >>confdefs.h 16485 16486fi 16487 if test "$enable_maxminddb" = yes; then 16488 HAVE_MAXMINDDB_TRUE= 16489 HAVE_MAXMINDDB_FALSE='#' 16490else 16491 HAVE_MAXMINDDB_TRUE='#' 16492 HAVE_MAXMINDDB_FALSE= 16493fi 16494 16495 16496 16497# Check whether --with-lmdb was given. 16498if test "${with_lmdb+set}" = set; then : 16499 withval=$with_lmdb; 16500fi 16501 16502 16503pkg_failed=no 16504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb >= 0.9.15" >&5 16505$as_echo_n "checking for lmdb >= 0.9.15... " >&6; } 16506 16507if test -n "$lmdb_CFLAGS"; then 16508 pkg_cv_lmdb_CFLAGS="$lmdb_CFLAGS" 16509 elif test -n "$PKG_CONFIG"; then 16510 if test -n "$PKG_CONFIG" && \ 16511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb >= 0.9.15\""; } >&5 16512 ($PKG_CONFIG --exists --print-errors "lmdb >= 0.9.15") 2>&5 16513 ac_status=$? 16514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16515 test $ac_status = 0; }; then 16516 pkg_cv_lmdb_CFLAGS=`$PKG_CONFIG --cflags "lmdb >= 0.9.15" 2>/dev/null` 16517 test "x$?" != "x0" && pkg_failed=yes 16518else 16519 pkg_failed=yes 16520fi 16521 else 16522 pkg_failed=untried 16523fi 16524if test -n "$lmdb_LIBS"; then 16525 pkg_cv_lmdb_LIBS="$lmdb_LIBS" 16526 elif test -n "$PKG_CONFIG"; then 16527 if test -n "$PKG_CONFIG" && \ 16528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb >= 0.9.15\""; } >&5 16529 ($PKG_CONFIG --exists --print-errors "lmdb >= 0.9.15") 2>&5 16530 ac_status=$? 16531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16532 test $ac_status = 0; }; then 16533 pkg_cv_lmdb_LIBS=`$PKG_CONFIG --libs "lmdb >= 0.9.15" 2>/dev/null` 16534 test "x$?" != "x0" && pkg_failed=yes 16535else 16536 pkg_failed=yes 16537fi 16538 else 16539 pkg_failed=untried 16540fi 16541 16542 16543 16544if test $pkg_failed = yes; then 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16546$as_echo "no" >&6; } 16547 16548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16549 _pkg_short_errors_supported=yes 16550else 16551 _pkg_short_errors_supported=no 16552fi 16553 if test $_pkg_short_errors_supported = yes; then 16554 lmdb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lmdb >= 0.9.15" 2>&1` 16555 else 16556 lmdb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lmdb >= 0.9.15" 2>&1` 16557 fi 16558 # Put the nasty error message in config.log where it belongs 16559 echo "$lmdb_PKG_ERRORS" >&5 16560 16561 16562 save_CPPFLAGS=$CPPFLAGS 16563 save_LIBS=$LIBS 16564 16565 have_lmdb=no 16566 16567 for try_lmdb in "$with_lmdb" "" "/usr/local" "/usr/pkg"; do 16568 if test -d "$try_lmdb"; then : 16569 16570 lmdb_CFLAGS="-I$try_lmdb/include" 16571 lmdb_LIBS="-L$try_lmdb/lib" 16572 16573else 16574 16575 lmdb_CFLAGS="" 16576 lmdb_LIBS="" 16577 16578fi 16579 16580 CPPFLAGS="$save_CPPFLAGS $lmdb_CFLAGS" 16581 LIBS="$save_LIBS $lmdb_LIBS" 16582 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_txn_id" >&5 16584$as_echo_n "checking for library containing mdb_txn_id... " >&6; } 16585if ${ac_cv_search_mdb_txn_id+:} false; then : 16586 $as_echo_n "(cached) " >&6 16587else 16588 ac_func_search_save_LIBS=$LIBS 16589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16590/* end confdefs.h. */ 16591 16592/* Override any GCC internal prototype to avoid an error. 16593 Use char because int might match the return type of a GCC 16594 builtin and then its argument prototype would still apply. */ 16595#ifdef __cplusplus 16596extern "C" 16597#endif 16598char mdb_txn_id (); 16599int 16600main () 16601{ 16602return mdb_txn_id (); 16603 ; 16604 return 0; 16605} 16606_ACEOF 16607for ac_lib in '' lmdb; do 16608 if test -z "$ac_lib"; then 16609 ac_res="none required" 16610 else 16611 ac_res=-l$ac_lib 16612 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16613 fi 16614 if ac_fn_c_try_link "$LINENO"; then : 16615 ac_cv_search_mdb_txn_id=$ac_res 16616fi 16617rm -f core conftest.err conftest.$ac_objext \ 16618 conftest$ac_exeext 16619 if ${ac_cv_search_mdb_txn_id+:} false; then : 16620 break 16621fi 16622done 16623if ${ac_cv_search_mdb_txn_id+:} false; then : 16624 16625else 16626 ac_cv_search_mdb_txn_id=no 16627fi 16628rm conftest.$ac_ext 16629LIBS=$ac_func_search_save_LIBS 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_txn_id" >&5 16632$as_echo "$ac_cv_search_mdb_txn_id" >&6; } 16633ac_res=$ac_cv_search_mdb_txn_id 16634if test "$ac_res" != no; then : 16635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16636 16637 have_lmdb=yes 16638 lmdb_LIBS="$lmdb_LIBS -llmdb" 16639 16640 16641 break 16642 16643fi 16644 16645 16646 # do not cache result of AC_SEARCH_LIBS test 16647 unset ac_cv_search_mdb_txn_id 16648 done 16649 16650 CPPFLAGS="$save_CPPFLAGS" 16651 LIBS="$save_LIBS" 16652 16653 if test "$have_lmdb" = "no"; then : 16654 16655 as_fn_error $? "lmdb library not found" "$LINENO" 5 16656 16657fi 16658 16659elif test $pkg_failed = untried; then 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16661$as_echo "no" >&6; } 16662 16663 save_CPPFLAGS=$CPPFLAGS 16664 save_LIBS=$LIBS 16665 16666 have_lmdb=no 16667 16668 for try_lmdb in "$with_lmdb" "" "/usr/local" "/usr/pkg"; do 16669 if test -d "$try_lmdb"; then : 16670 16671 lmdb_CFLAGS="-I$try_lmdb/include" 16672 lmdb_LIBS="-L$try_lmdb/lib" 16673 16674else 16675 16676 lmdb_CFLAGS="" 16677 lmdb_LIBS="" 16678 16679fi 16680 16681 CPPFLAGS="$save_CPPFLAGS $lmdb_CFLAGS" 16682 LIBS="$save_LIBS $lmdb_LIBS" 16683 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_txn_id" >&5 16685$as_echo_n "checking for library containing mdb_txn_id... " >&6; } 16686if ${ac_cv_search_mdb_txn_id+:} false; then : 16687 $as_echo_n "(cached) " >&6 16688else 16689 ac_func_search_save_LIBS=$LIBS 16690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692 16693/* Override any GCC internal prototype to avoid an error. 16694 Use char because int might match the return type of a GCC 16695 builtin and then its argument prototype would still apply. */ 16696#ifdef __cplusplus 16697extern "C" 16698#endif 16699char mdb_txn_id (); 16700int 16701main () 16702{ 16703return mdb_txn_id (); 16704 ; 16705 return 0; 16706} 16707_ACEOF 16708for ac_lib in '' lmdb; do 16709 if test -z "$ac_lib"; then 16710 ac_res="none required" 16711 else 16712 ac_res=-l$ac_lib 16713 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16714 fi 16715 if ac_fn_c_try_link "$LINENO"; then : 16716 ac_cv_search_mdb_txn_id=$ac_res 16717fi 16718rm -f core conftest.err conftest.$ac_objext \ 16719 conftest$ac_exeext 16720 if ${ac_cv_search_mdb_txn_id+:} false; then : 16721 break 16722fi 16723done 16724if ${ac_cv_search_mdb_txn_id+:} false; then : 16725 16726else 16727 ac_cv_search_mdb_txn_id=no 16728fi 16729rm conftest.$ac_ext 16730LIBS=$ac_func_search_save_LIBS 16731fi 16732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_txn_id" >&5 16733$as_echo "$ac_cv_search_mdb_txn_id" >&6; } 16734ac_res=$ac_cv_search_mdb_txn_id 16735if test "$ac_res" != no; then : 16736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16737 16738 have_lmdb=yes 16739 lmdb_LIBS="$lmdb_LIBS -llmdb" 16740 16741 16742 break 16743 16744fi 16745 16746 16747 # do not cache result of AC_SEARCH_LIBS test 16748 unset ac_cv_search_mdb_txn_id 16749 done 16750 16751 CPPFLAGS="$save_CPPFLAGS" 16752 LIBS="$save_LIBS" 16753 16754 if test "$have_lmdb" = "no"; then : 16755 16756 as_fn_error $? "lmdb library not found" "$LINENO" 5 16757 16758fi 16759 16760else 16761 lmdb_CFLAGS=$pkg_cv_lmdb_CFLAGS 16762 lmdb_LIBS=$pkg_cv_lmdb_LIBS 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16764$as_echo "yes" >&6; } 16765 16766fi 16767 16768# LMDB mapping sizes 16769conf_mapsize_default=500 16770 16771# Check whether --with-conf_mapsize was given. 16772if test "${with_conf_mapsize+set}" = set; then : 16773 withval=$with_conf_mapsize; conf_mapsize=$withval 16774else 16775 conf_mapsize=$conf_mapsize_default 16776fi 16777 16778 16779case $conf_mapsize in #( 16780 yes) : 16781 conf_mapsize=$conf_mapsize_default ;; #( 16782 no) : 16783 as_fn_error $? "conf_mapsize must be a number" "$LINENO" 5 ;; #( 16784 *) : 16785 if test $conf_mapsize != $(( $conf_mapsize + 0 )); then : 16786 as_fn_error $? "conf_mapsize must be an integer number" "$LINENO" 5 16787fi ;; #( 16788 *) : 16789 ;; 16790esac 16791 16792cat >>confdefs.h <<_ACEOF 16793#define CONF_MAPSIZE $conf_mapsize 16794_ACEOF 16795 16796 16797 16798# libedit 16799if test "$enable_daemon" = "yes" -o "$enable_utilities" = "yes"; then : 16800 16801 16802pkg_failed=no 16803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 16804$as_echo_n "checking for libedit... " >&6; } 16805 16806if test -n "$libedit_CFLAGS"; then 16807 pkg_cv_libedit_CFLAGS="$libedit_CFLAGS" 16808 elif test -n "$PKG_CONFIG"; then 16809 if test -n "$PKG_CONFIG" && \ 16810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 16811 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 16812 ac_status=$? 16813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16814 test $ac_status = 0; }; then 16815 pkg_cv_libedit_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 16816 test "x$?" != "x0" && pkg_failed=yes 16817else 16818 pkg_failed=yes 16819fi 16820 else 16821 pkg_failed=untried 16822fi 16823if test -n "$libedit_LIBS"; then 16824 pkg_cv_libedit_LIBS="$libedit_LIBS" 16825 elif test -n "$PKG_CONFIG"; then 16826 if test -n "$PKG_CONFIG" && \ 16827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 16828 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 16829 ac_status=$? 16830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16831 test $ac_status = 0; }; then 16832 pkg_cv_libedit_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 16833 test "x$?" != "x0" && pkg_failed=yes 16834else 16835 pkg_failed=yes 16836fi 16837 else 16838 pkg_failed=untried 16839fi 16840 16841 16842 16843if test $pkg_failed = yes; then 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16845$as_echo "no" >&6; } 16846 16847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16848 _pkg_short_errors_supported=yes 16849else 16850 _pkg_short_errors_supported=no 16851fi 16852 if test $_pkg_short_errors_supported = yes; then 16853 libedit_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 16854 else 16855 libedit_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 16856 fi 16857 # Put the nasty error message in config.log where it belongs 16858 echo "$libedit_PKG_ERRORS" >&5 16859 16860 16861 with_libedit=no 16862 ac_fn_c_check_header_mongrel "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default" 16863if test "x$ac_cv_header_histedit_h" = xyes; then : 16864 16865 # workaround for OpenBSD 16866 case $host_os in #( 16867 openbsd*) : 16868 libedit_deps=-lcurses ;; #( 16869 *) : 16870 libedit_deps= 16871 ;; 16872esac 16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 16874$as_echo_n "checking for el_init in -ledit... " >&6; } 16875if ${ac_cv_lib_edit_el_init+:} false; then : 16876 $as_echo_n "(cached) " >&6 16877else 16878 ac_check_lib_save_LIBS=$LIBS 16879LIBS="-ledit $libedit_deps 16880 $LIBS" 16881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16882/* end confdefs.h. */ 16883 16884/* Override any GCC internal prototype to avoid an error. 16885 Use char because int might match the return type of a GCC 16886 builtin and then its argument prototype would still apply. */ 16887#ifdef __cplusplus 16888extern "C" 16889#endif 16890char el_init (); 16891int 16892main () 16893{ 16894return el_init (); 16895 ; 16896 return 0; 16897} 16898_ACEOF 16899if ac_fn_c_try_link "$LINENO"; then : 16900 ac_cv_lib_edit_el_init=yes 16901else 16902 ac_cv_lib_edit_el_init=no 16903fi 16904rm -f core conftest.err conftest.$ac_objext \ 16905 conftest$ac_exeext conftest.$ac_ext 16906LIBS=$ac_check_lib_save_LIBS 16907fi 16908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 16909$as_echo "$ac_cv_lib_edit_el_init" >&6; } 16910if test "x$ac_cv_lib_edit_el_init" = xyes; then : 16911 16912 with_libedit=yes 16913 libedit_CFLAGS= 16914 libedit_LIBS="-ledit $libedit_deps" 16915 16916fi 16917 16918 16919fi 16920 16921 16922 16923elif test $pkg_failed = untried; then 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16925$as_echo "no" >&6; } 16926 16927 with_libedit=no 16928 ac_fn_c_check_header_mongrel "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default" 16929if test "x$ac_cv_header_histedit_h" = xyes; then : 16930 16931 # workaround for OpenBSD 16932 case $host_os in #( 16933 openbsd*) : 16934 libedit_deps=-lcurses ;; #( 16935 *) : 16936 libedit_deps= 16937 ;; 16938esac 16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 16940$as_echo_n "checking for el_init in -ledit... " >&6; } 16941if ${ac_cv_lib_edit_el_init+:} false; then : 16942 $as_echo_n "(cached) " >&6 16943else 16944 ac_check_lib_save_LIBS=$LIBS 16945LIBS="-ledit $libedit_deps 16946 $LIBS" 16947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16948/* end confdefs.h. */ 16949 16950/* Override any GCC internal prototype to avoid an error. 16951 Use char because int might match the return type of a GCC 16952 builtin and then its argument prototype would still apply. */ 16953#ifdef __cplusplus 16954extern "C" 16955#endif 16956char el_init (); 16957int 16958main () 16959{ 16960return el_init (); 16961 ; 16962 return 0; 16963} 16964_ACEOF 16965if ac_fn_c_try_link "$LINENO"; then : 16966 ac_cv_lib_edit_el_init=yes 16967else 16968 ac_cv_lib_edit_el_init=no 16969fi 16970rm -f core conftest.err conftest.$ac_objext \ 16971 conftest$ac_exeext conftest.$ac_ext 16972LIBS=$ac_check_lib_save_LIBS 16973fi 16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 16975$as_echo "$ac_cv_lib_edit_el_init" >&6; } 16976if test "x$ac_cv_lib_edit_el_init" = xyes; then : 16977 16978 with_libedit=yes 16979 libedit_CFLAGS= 16980 libedit_LIBS="-ledit $libedit_deps" 16981 16982fi 16983 16984 16985fi 16986 16987 16988 16989else 16990 libedit_CFLAGS=$pkg_cv_libedit_CFLAGS 16991 libedit_LIBS=$pkg_cv_libedit_LIBS 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16993$as_echo "yes" >&6; } 16994 with_libedit=yes 16995fi 16996 if test "$with_libedit" != "yes"; then : 16997 16998 as_fn_error $? "libedit not found" "$LINENO" 5 16999 17000fi 17001 17002else 17003 17004 with_libedit=no 17005 libedit_CFLAGS= 17006 libedit_LIBS= 17007 17008fi 17009 17010############################################ 17011# Dependencies needed for Knot DNS utilities 17012############################################ 17013 17014 17015# Check whether --with-libidn was given. 17016if test "${with_libidn+set}" = set; then : 17017 withval=$with_libidn; with_libidn=$withval 17018else 17019 with_libidn=yes 17020 17021fi 17022 17023 17024 17025# Check whether --with-libnghttp2 was given. 17026if test "${with_libnghttp2+set}" = set; then : 17027 withval=$with_libnghttp2; with_libnghttp2=$withval 17028else 17029 with_libnghttp2=yes 17030 17031fi 17032 17033 17034if test "$enable_utilities" = "yes"; then : 17035 17036 if test "$with_libidn" != "no"; then : 17037 17038 17039pkg_failed=no 17040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 >= 2.0.0" >&5 17041$as_echo_n "checking for libidn2 >= 2.0.0... " >&6; } 17042 17043if test -n "$libidn2_CFLAGS"; then 17044 pkg_cv_libidn2_CFLAGS="$libidn2_CFLAGS" 17045 elif test -n "$PKG_CONFIG"; then 17046 if test -n "$PKG_CONFIG" && \ 17047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2 >= 2.0.0\""; } >&5 17048 ($PKG_CONFIG --exists --print-errors "libidn2 >= 2.0.0") 2>&5 17049 ac_status=$? 17050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17051 test $ac_status = 0; }; then 17052 pkg_cv_libidn2_CFLAGS=`$PKG_CONFIG --cflags "libidn2 >= 2.0.0" 2>/dev/null` 17053 test "x$?" != "x0" && pkg_failed=yes 17054else 17055 pkg_failed=yes 17056fi 17057 else 17058 pkg_failed=untried 17059fi 17060if test -n "$libidn2_LIBS"; then 17061 pkg_cv_libidn2_LIBS="$libidn2_LIBS" 17062 elif test -n "$PKG_CONFIG"; then 17063 if test -n "$PKG_CONFIG" && \ 17064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2 >= 2.0.0\""; } >&5 17065 ($PKG_CONFIG --exists --print-errors "libidn2 >= 2.0.0") 2>&5 17066 ac_status=$? 17067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17068 test $ac_status = 0; }; then 17069 pkg_cv_libidn2_LIBS=`$PKG_CONFIG --libs "libidn2 >= 2.0.0" 2>/dev/null` 17070 test "x$?" != "x0" && pkg_failed=yes 17071else 17072 pkg_failed=yes 17073fi 17074 else 17075 pkg_failed=untried 17076fi 17077 17078 17079 17080if test $pkg_failed = yes; then 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17082$as_echo "no" >&6; } 17083 17084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17085 _pkg_short_errors_supported=yes 17086else 17087 _pkg_short_errors_supported=no 17088fi 17089 if test $_pkg_short_errors_supported = yes; then 17090 libidn2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2 >= 2.0.0" 2>&1` 17091 else 17092 libidn2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2 >= 2.0.0" 2>&1` 17093 fi 17094 # Put the nasty error message in config.log where it belongs 17095 echo "$libidn2_PKG_ERRORS" >&5 17096 17097 17098 17099pkg_failed=no 17100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn >= 0.0.0" >&5 17101$as_echo_n "checking for libidn >= 0.0.0... " >&6; } 17102 17103if test -n "$libidn_CFLAGS"; then 17104 pkg_cv_libidn_CFLAGS="$libidn_CFLAGS" 17105 elif test -n "$PKG_CONFIG"; then 17106 if test -n "$PKG_CONFIG" && \ 17107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 17108 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 17109 ac_status=$? 17110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17111 test $ac_status = 0; }; then 17112 pkg_cv_libidn_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null` 17113 test "x$?" != "x0" && pkg_failed=yes 17114else 17115 pkg_failed=yes 17116fi 17117 else 17118 pkg_failed=untried 17119fi 17120if test -n "$libidn_LIBS"; then 17121 pkg_cv_libidn_LIBS="$libidn_LIBS" 17122 elif test -n "$PKG_CONFIG"; then 17123 if test -n "$PKG_CONFIG" && \ 17124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 17125 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 17126 ac_status=$? 17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17128 test $ac_status = 0; }; then 17129 pkg_cv_libidn_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null` 17130 test "x$?" != "x0" && pkg_failed=yes 17131else 17132 pkg_failed=yes 17133fi 17134 else 17135 pkg_failed=untried 17136fi 17137 17138 17139 17140if test $pkg_failed = yes; then 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17142$as_echo "no" >&6; } 17143 17144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17145 _pkg_short_errors_supported=yes 17146else 17147 _pkg_short_errors_supported=no 17148fi 17149 if test $_pkg_short_errors_supported = yes; then 17150 libidn_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 17151 else 17152 libidn_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 17153 fi 17154 # Put the nasty error message in config.log where it belongs 17155 echo "$libidn_PKG_ERRORS" >&5 17156 17157 17158 with_libidn=no 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libidn2 or libidn not found" >&5 17160$as_echo "$as_me: WARNING: libidn2 or libidn not found" >&2;} 17161 17162elif test $pkg_failed = untried; then 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17164$as_echo "no" >&6; } 17165 17166 with_libidn=no 17167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libidn2 or libidn not found" >&5 17168$as_echo "$as_me: WARNING: libidn2 or libidn not found" >&2;} 17169 17170else 17171 libidn_CFLAGS=$pkg_cv_libidn_CFLAGS 17172 libidn_LIBS=$pkg_cv_libidn_LIBS 17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17174$as_echo "yes" >&6; } 17175 17176 with_libidn=libidn 17177 17178$as_echo "#define LIBIDN 1" >>confdefs.h 17179 17180 17181$as_echo "#define LIBIDN_HEADER <idna.h>" >>confdefs.h 17182 17183 17184fi 17185 17186elif test $pkg_failed = untried; then 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17188$as_echo "no" >&6; } 17189 17190 17191pkg_failed=no 17192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn >= 0.0.0" >&5 17193$as_echo_n "checking for libidn >= 0.0.0... " >&6; } 17194 17195if test -n "$libidn_CFLAGS"; then 17196 pkg_cv_libidn_CFLAGS="$libidn_CFLAGS" 17197 elif test -n "$PKG_CONFIG"; then 17198 if test -n "$PKG_CONFIG" && \ 17199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 17200 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 17201 ac_status=$? 17202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17203 test $ac_status = 0; }; then 17204 pkg_cv_libidn_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null` 17205 test "x$?" != "x0" && pkg_failed=yes 17206else 17207 pkg_failed=yes 17208fi 17209 else 17210 pkg_failed=untried 17211fi 17212if test -n "$libidn_LIBS"; then 17213 pkg_cv_libidn_LIBS="$libidn_LIBS" 17214 elif test -n "$PKG_CONFIG"; then 17215 if test -n "$PKG_CONFIG" && \ 17216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 17217 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 17218 ac_status=$? 17219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17220 test $ac_status = 0; }; then 17221 pkg_cv_libidn_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null` 17222 test "x$?" != "x0" && pkg_failed=yes 17223else 17224 pkg_failed=yes 17225fi 17226 else 17227 pkg_failed=untried 17228fi 17229 17230 17231 17232if test $pkg_failed = yes; then 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17234$as_echo "no" >&6; } 17235 17236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17237 _pkg_short_errors_supported=yes 17238else 17239 _pkg_short_errors_supported=no 17240fi 17241 if test $_pkg_short_errors_supported = yes; then 17242 libidn_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 17243 else 17244 libidn_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 17245 fi 17246 # Put the nasty error message in config.log where it belongs 17247 echo "$libidn_PKG_ERRORS" >&5 17248 17249 17250 with_libidn=no 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libidn2 or libidn not found" >&5 17252$as_echo "$as_me: WARNING: libidn2 or libidn not found" >&2;} 17253 17254elif test $pkg_failed = untried; then 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17256$as_echo "no" >&6; } 17257 17258 with_libidn=no 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libidn2 or libidn not found" >&5 17260$as_echo "$as_me: WARNING: libidn2 or libidn not found" >&2;} 17261 17262else 17263 libidn_CFLAGS=$pkg_cv_libidn_CFLAGS 17264 libidn_LIBS=$pkg_cv_libidn_LIBS 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17266$as_echo "yes" >&6; } 17267 17268 with_libidn=libidn 17269 17270$as_echo "#define LIBIDN 1" >>confdefs.h 17271 17272 17273$as_echo "#define LIBIDN_HEADER <idna.h>" >>confdefs.h 17274 17275 17276fi 17277 17278else 17279 libidn2_CFLAGS=$pkg_cv_libidn2_CFLAGS 17280 libidn2_LIBS=$pkg_cv_libidn2_LIBS 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17282$as_echo "yes" >&6; } 17283 17284 with_libidn=libidn2 17285 17286$as_echo "#define LIBIDN 1" >>confdefs.h 17287 17288 17289$as_echo "#define LIBIDN_HEADER <idn2.h>" >>confdefs.h 17290 17291 17292fi 17293 17294fi 17295 17296 if test "$with_libnghttp2" != "no"; then : 17297 17298 17299pkg_failed=no 17300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 17301$as_echo_n "checking for libnghttp2... " >&6; } 17302 17303if test -n "$libnghttp2_CFLAGS"; then 17304 pkg_cv_libnghttp2_CFLAGS="$libnghttp2_CFLAGS" 17305 elif test -n "$PKG_CONFIG"; then 17306 if test -n "$PKG_CONFIG" && \ 17307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2\""; } >&5 17308 ($PKG_CONFIG --exists --print-errors "libnghttp2") 2>&5 17309 ac_status=$? 17310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17311 test $ac_status = 0; }; then 17312 pkg_cv_libnghttp2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2" 2>/dev/null` 17313 test "x$?" != "x0" && pkg_failed=yes 17314else 17315 pkg_failed=yes 17316fi 17317 else 17318 pkg_failed=untried 17319fi 17320if test -n "$libnghttp2_LIBS"; then 17321 pkg_cv_libnghttp2_LIBS="$libnghttp2_LIBS" 17322 elif test -n "$PKG_CONFIG"; then 17323 if test -n "$PKG_CONFIG" && \ 17324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2\""; } >&5 17325 ($PKG_CONFIG --exists --print-errors "libnghttp2") 2>&5 17326 ac_status=$? 17327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17328 test $ac_status = 0; }; then 17329 pkg_cv_libnghttp2_LIBS=`$PKG_CONFIG --libs "libnghttp2" 2>/dev/null` 17330 test "x$?" != "x0" && pkg_failed=yes 17331else 17332 pkg_failed=yes 17333fi 17334 else 17335 pkg_failed=untried 17336fi 17337 17338 17339 17340if test $pkg_failed = yes; then 17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17342$as_echo "no" >&6; } 17343 17344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17345 _pkg_short_errors_supported=yes 17346else 17347 _pkg_short_errors_supported=no 17348fi 17349 if test $_pkg_short_errors_supported = yes; then 17350 libnghttp2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2" 2>&1` 17351 else 17352 libnghttp2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2" 2>&1` 17353 fi 17354 # Put the nasty error message in config.log where it belongs 17355 echo "$libnghttp2_PKG_ERRORS" >&5 17356 17357 17358 with_libnghttp2=no 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnghttp2 not found" >&5 17360$as_echo "$as_me: WARNING: libnghttp2 not found" >&2;} 17361 17362elif test $pkg_failed = untried; then 17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17364$as_echo "no" >&6; } 17365 17366 with_libnghttp2=no 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnghttp2 not found" >&5 17368$as_echo "$as_me: WARNING: libnghttp2 not found" >&2;} 17369 17370else 17371 libnghttp2_CFLAGS=$pkg_cv_libnghttp2_CFLAGS 17372 libnghttp2_LIBS=$pkg_cv_libnghttp2_LIBS 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17374$as_echo "yes" >&6; } 17375 17376 with_libnghttp2=libnghttp2 17377 17378$as_echo "#define LIBNGHTTP2 1" >>confdefs.h 17379 17380 17381fi 17382 17383fi 17384 17385 if test "$enable_xdp" != "no"; then : 17386 17387 17388pkg_failed=no 17389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 17390$as_echo_n "checking for libmnl... " >&6; } 17391 17392if test -n "$libmnl_CFLAGS"; then 17393 pkg_cv_libmnl_CFLAGS="$libmnl_CFLAGS" 17394 elif test -n "$PKG_CONFIG"; then 17395 if test -n "$PKG_CONFIG" && \ 17396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmnl\""; } >&5 17397 ($PKG_CONFIG --exists --print-errors "libmnl") 2>&5 17398 ac_status=$? 17399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17400 test $ac_status = 0; }; then 17401 pkg_cv_libmnl_CFLAGS=`$PKG_CONFIG --cflags "libmnl" 2>/dev/null` 17402 test "x$?" != "x0" && pkg_failed=yes 17403else 17404 pkg_failed=yes 17405fi 17406 else 17407 pkg_failed=untried 17408fi 17409if test -n "$libmnl_LIBS"; then 17410 pkg_cv_libmnl_LIBS="$libmnl_LIBS" 17411 elif test -n "$PKG_CONFIG"; then 17412 if test -n "$PKG_CONFIG" && \ 17413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmnl\""; } >&5 17414 ($PKG_CONFIG --exists --print-errors "libmnl") 2>&5 17415 ac_status=$? 17416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17417 test $ac_status = 0; }; then 17418 pkg_cv_libmnl_LIBS=`$PKG_CONFIG --libs "libmnl" 2>/dev/null` 17419 test "x$?" != "x0" && pkg_failed=yes 17420else 17421 pkg_failed=yes 17422fi 17423 else 17424 pkg_failed=untried 17425fi 17426 17427 17428 17429if test $pkg_failed = yes; then 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17431$as_echo "no" >&6; } 17432 17433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17434 _pkg_short_errors_supported=yes 17435else 17436 _pkg_short_errors_supported=no 17437fi 17438 if test $_pkg_short_errors_supported = yes; then 17439 libmnl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmnl" 2>&1` 17440 else 17441 libmnl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmnl" 2>&1` 17442 fi 17443 # Put the nasty error message in config.log where it belongs 17444 echo "$libmnl_PKG_ERRORS" >&5 17445 17446 17447 as_fn_error $? "libmnl not found" "$LINENO" 5 17448 17449elif test $pkg_failed = untried; then 17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17451$as_echo "no" >&6; } 17452 17453 as_fn_error $? "libmnl not found" "$LINENO" 5 17454 17455else 17456 libmnl_CFLAGS=$pkg_cv_libmnl_CFLAGS 17457 libmnl_LIBS=$pkg_cv_libmnl_LIBS 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17459$as_echo "yes" >&6; } 17460 17461fi 17462 17463fi 17464 17465fi # Knot DNS utilities dependencies 17466 17467# Check whether --enable-cap-ng was given. 17468if test "${enable_cap_ng+set}" = set; then : 17469 enableval=$enable_cap_ng; enable_cap_ng="$enableval" 17470else 17471 enable_cap_ng=auto 17472fi 17473 17474 17475if test "$enable_daemon" = "yes"; then : 17476 17477 17478if test "$enable_cap_ng" != "no"; then : 17479 17480 17481pkg_failed=no 17482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap-ng" >&5 17483$as_echo_n "checking for cap-ng... " >&6; } 17484 17485if test -n "$cap_ng_CFLAGS"; then 17486 pkg_cv_cap_ng_CFLAGS="$cap_ng_CFLAGS" 17487 elif test -n "$PKG_CONFIG"; then 17488 if test -n "$PKG_CONFIG" && \ 17489 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cap-ng\""; } >&5 17490 ($PKG_CONFIG --exists --print-errors "cap-ng") 2>&5 17491 ac_status=$? 17492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17493 test $ac_status = 0; }; then 17494 pkg_cv_cap_ng_CFLAGS=`$PKG_CONFIG --cflags "cap-ng" 2>/dev/null` 17495 test "x$?" != "x0" && pkg_failed=yes 17496else 17497 pkg_failed=yes 17498fi 17499 else 17500 pkg_failed=untried 17501fi 17502if test -n "$cap_ng_LIBS"; then 17503 pkg_cv_cap_ng_LIBS="$cap_ng_LIBS" 17504 elif test -n "$PKG_CONFIG"; then 17505 if test -n "$PKG_CONFIG" && \ 17506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cap-ng\""; } >&5 17507 ($PKG_CONFIG --exists --print-errors "cap-ng") 2>&5 17508 ac_status=$? 17509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17510 test $ac_status = 0; }; then 17511 pkg_cv_cap_ng_LIBS=`$PKG_CONFIG --libs "cap-ng" 2>/dev/null` 17512 test "x$?" != "x0" && pkg_failed=yes 17513else 17514 pkg_failed=yes 17515fi 17516 else 17517 pkg_failed=untried 17518fi 17519 17520 17521 17522if test $pkg_failed = yes; then 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17524$as_echo "no" >&6; } 17525 17526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17527 _pkg_short_errors_supported=yes 17528else 17529 _pkg_short_errors_supported=no 17530fi 17531 if test $_pkg_short_errors_supported = yes; then 17532 cap_ng_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cap-ng" 2>&1` 17533 else 17534 cap_ng_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cap-ng" 2>&1` 17535 fi 17536 # Put the nasty error message in config.log where it belongs 17537 echo "$cap_ng_PKG_ERRORS" >&5 17538 17539 17540 enable_cap_ng=no 17541 ac_fn_c_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" 17542if test "x$ac_cv_header_cap_ng_h" = xyes; then : 17543 17544 save_LIBS="$LIBS" 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing capng_apply" >&5 17546$as_echo_n "checking for library containing capng_apply... " >&6; } 17547if ${ac_cv_search_capng_apply+:} false; then : 17548 $as_echo_n "(cached) " >&6 17549else 17550 ac_func_search_save_LIBS=$LIBS 17551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17552/* end confdefs.h. */ 17553 17554/* Override any GCC internal prototype to avoid an error. 17555 Use char because int might match the return type of a GCC 17556 builtin and then its argument prototype would still apply. */ 17557#ifdef __cplusplus 17558extern "C" 17559#endif 17560char capng_apply (); 17561int 17562main () 17563{ 17564return capng_apply (); 17565 ; 17566 return 0; 17567} 17568_ACEOF 17569for ac_lib in '' cap-ng; do 17570 if test -z "$ac_lib"; then 17571 ac_res="none required" 17572 else 17573 ac_res=-l$ac_lib 17574 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17575 fi 17576 if ac_fn_c_try_link "$LINENO"; then : 17577 ac_cv_search_capng_apply=$ac_res 17578fi 17579rm -f core conftest.err conftest.$ac_objext \ 17580 conftest$ac_exeext 17581 if ${ac_cv_search_capng_apply+:} false; then : 17582 break 17583fi 17584done 17585if ${ac_cv_search_capng_apply+:} false; then : 17586 17587else 17588 ac_cv_search_capng_apply=no 17589fi 17590rm conftest.$ac_ext 17591LIBS=$ac_func_search_save_LIBS 17592fi 17593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_capng_apply" >&5 17594$as_echo "$ac_cv_search_capng_apply" >&6; } 17595ac_res=$ac_cv_search_capng_apply 17596if test "$ac_res" != no; then : 17597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17598 17599 if test "$ac_cv_search_capng_apply" != "none required"; then : 17600 cap_ng_LIBS="$ac_cv_search_capng_apply" 17601else 17602 cap_ng_LIBS= 17603fi 17604 17605 enable_cap_ng=yes 17606 17607fi 17608 17609 LIBS="$save_LIBS" 17610 17611fi 17612 17613 17614 17615elif test $pkg_failed = untried; then 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17617$as_echo "no" >&6; } 17618 17619 enable_cap_ng=no 17620 ac_fn_c_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" 17621if test "x$ac_cv_header_cap_ng_h" = xyes; then : 17622 17623 save_LIBS="$LIBS" 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing capng_apply" >&5 17625$as_echo_n "checking for library containing capng_apply... " >&6; } 17626if ${ac_cv_search_capng_apply+:} false; then : 17627 $as_echo_n "(cached) " >&6 17628else 17629 ac_func_search_save_LIBS=$LIBS 17630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17631/* end confdefs.h. */ 17632 17633/* Override any GCC internal prototype to avoid an error. 17634 Use char because int might match the return type of a GCC 17635 builtin and then its argument prototype would still apply. */ 17636#ifdef __cplusplus 17637extern "C" 17638#endif 17639char capng_apply (); 17640int 17641main () 17642{ 17643return capng_apply (); 17644 ; 17645 return 0; 17646} 17647_ACEOF 17648for ac_lib in '' cap-ng; do 17649 if test -z "$ac_lib"; then 17650 ac_res="none required" 17651 else 17652 ac_res=-l$ac_lib 17653 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17654 fi 17655 if ac_fn_c_try_link "$LINENO"; then : 17656 ac_cv_search_capng_apply=$ac_res 17657fi 17658rm -f core conftest.err conftest.$ac_objext \ 17659 conftest$ac_exeext 17660 if ${ac_cv_search_capng_apply+:} false; then : 17661 break 17662fi 17663done 17664if ${ac_cv_search_capng_apply+:} false; then : 17665 17666else 17667 ac_cv_search_capng_apply=no 17668fi 17669rm conftest.$ac_ext 17670LIBS=$ac_func_search_save_LIBS 17671fi 17672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_capng_apply" >&5 17673$as_echo "$ac_cv_search_capng_apply" >&6; } 17674ac_res=$ac_cv_search_capng_apply 17675if test "$ac_res" != no; then : 17676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17677 17678 if test "$ac_cv_search_capng_apply" != "none required"; then : 17679 cap_ng_LIBS="$ac_cv_search_capng_apply" 17680else 17681 cap_ng_LIBS= 17682fi 17683 17684 enable_cap_ng=yes 17685 17686fi 17687 17688 LIBS="$save_LIBS" 17689 17690fi 17691 17692 17693 17694else 17695 cap_ng_CFLAGS=$pkg_cv_cap_ng_CFLAGS 17696 cap_ng_LIBS=$pkg_cv_cap_ng_LIBS 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17698$as_echo "yes" >&6; } 17699 enable_cap_ng=yes 17700fi 17701 17702else 17703 17704 enable_cap_ng=no 17705 cap_ng_LIBS= 17706 17707fi 17708fi 17709 17710if test "$enable_cap_ng" = yes; then : 17711 17712$as_echo "#define ENABLE_CAP_NG 1" >>confdefs.h 17713 17714 17715fi 17716 17717save_LIBS="$LIBS" 17718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 17719$as_echo_n "checking for library containing pthread_create... " >&6; } 17720if ${ac_cv_search_pthread_create+:} false; then : 17721 $as_echo_n "(cached) " >&6 17722else 17723 ac_func_search_save_LIBS=$LIBS 17724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17725/* end confdefs.h. */ 17726 17727/* Override any GCC internal prototype to avoid an error. 17728 Use char because int might match the return type of a GCC 17729 builtin and then its argument prototype would still apply. */ 17730#ifdef __cplusplus 17731extern "C" 17732#endif 17733char pthread_create (); 17734int 17735main () 17736{ 17737return pthread_create (); 17738 ; 17739 return 0; 17740} 17741_ACEOF 17742for ac_lib in '' pthread; do 17743 if test -z "$ac_lib"; then 17744 ac_res="none required" 17745 else 17746 ac_res=-l$ac_lib 17747 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17748 fi 17749 if ac_fn_c_try_link "$LINENO"; then : 17750 ac_cv_search_pthread_create=$ac_res 17751fi 17752rm -f core conftest.err conftest.$ac_objext \ 17753 conftest$ac_exeext 17754 if ${ac_cv_search_pthread_create+:} false; then : 17755 break 17756fi 17757done 17758if ${ac_cv_search_pthread_create+:} false; then : 17759 17760else 17761 ac_cv_search_pthread_create=no 17762fi 17763rm conftest.$ac_ext 17764LIBS=$ac_func_search_save_LIBS 17765fi 17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 17767$as_echo "$ac_cv_search_pthread_create" >&6; } 17768ac_res=$ac_cv_search_pthread_create 17769if test "$ac_res" != no; then : 17770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17771 17772 if test "$ac_cv_search_pthread_create" != "none required"; then : 17773 pthread_LIBS="$ac_cv_search_pthread_create" 17774else 17775 pthread_LIBS= 17776fi 17777 17778 17779else 17780 17781 as_fn_error $? "pthreads not found" "$LINENO" 5 17782 17783fi 17784 17785LIBS="$save_LIBS" 17786 17787save_LIBS="$LIBS" 17788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 17789$as_echo_n "checking for library containing dlopen... " >&6; } 17790if ${ac_cv_search_dlopen+:} false; then : 17791 $as_echo_n "(cached) " >&6 17792else 17793 ac_func_search_save_LIBS=$LIBS 17794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17795/* end confdefs.h. */ 17796 17797/* Override any GCC internal prototype to avoid an error. 17798 Use char because int might match the return type of a GCC 17799 builtin and then its argument prototype would still apply. */ 17800#ifdef __cplusplus 17801extern "C" 17802#endif 17803char dlopen (); 17804int 17805main () 17806{ 17807return dlopen (); 17808 ; 17809 return 0; 17810} 17811_ACEOF 17812for ac_lib in '' dl; do 17813 if test -z "$ac_lib"; then 17814 ac_res="none required" 17815 else 17816 ac_res=-l$ac_lib 17817 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17818 fi 17819 if ac_fn_c_try_link "$LINENO"; then : 17820 ac_cv_search_dlopen=$ac_res 17821fi 17822rm -f core conftest.err conftest.$ac_objext \ 17823 conftest$ac_exeext 17824 if ${ac_cv_search_dlopen+:} false; then : 17825 break 17826fi 17827done 17828if ${ac_cv_search_dlopen+:} false; then : 17829 17830else 17831 ac_cv_search_dlopen=no 17832fi 17833rm conftest.$ac_ext 17834LIBS=$ac_func_search_save_LIBS 17835fi 17836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 17837$as_echo "$ac_cv_search_dlopen" >&6; } 17838ac_res=$ac_cv_search_dlopen 17839if test "$ac_res" != no; then : 17840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17841 17842 if test "$ac_cv_search_dlopen" != "none required"; then : 17843 dlopen_LIBS="$ac_cv_search_dlopen" 17844else 17845 dlopen_LIBS= 17846fi 17847 17848 17849else 17850 17851 as_fn_error $? "dlopen not found" "$LINENO" 5 17852 17853fi 17854 17855LIBS="$save_LIBS" 17856 17857save_LIBS="$LIBS" 17858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 17859$as_echo_n "checking for library containing pow... " >&6; } 17860if ${ac_cv_search_pow+:} false; then : 17861 $as_echo_n "(cached) " >&6 17862else 17863 ac_func_search_save_LIBS=$LIBS 17864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17865/* end confdefs.h. */ 17866 17867/* Override any GCC internal prototype to avoid an error. 17868 Use char because int might match the return type of a GCC 17869 builtin and then its argument prototype would still apply. */ 17870#ifdef __cplusplus 17871extern "C" 17872#endif 17873char pow (); 17874int 17875main () 17876{ 17877return pow (); 17878 ; 17879 return 0; 17880} 17881_ACEOF 17882for ac_lib in '' m; do 17883 if test -z "$ac_lib"; then 17884 ac_res="none required" 17885 else 17886 ac_res=-l$ac_lib 17887 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17888 fi 17889 if ac_fn_c_try_link "$LINENO"; then : 17890 ac_cv_search_pow=$ac_res 17891fi 17892rm -f core conftest.err conftest.$ac_objext \ 17893 conftest$ac_exeext 17894 if ${ac_cv_search_pow+:} false; then : 17895 break 17896fi 17897done 17898if ${ac_cv_search_pow+:} false; then : 17899 17900else 17901 ac_cv_search_pow=no 17902fi 17903rm conftest.$ac_ext 17904LIBS=$ac_func_search_save_LIBS 17905fi 17906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 17907$as_echo "$ac_cv_search_pow" >&6; } 17908ac_res=$ac_cv_search_pow 17909if test "$ac_res" != no; then : 17910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17911 17912 if test "$ac_cv_search_pow" != "none required"; then : 17913 math_LIBS="$ac_cv_search_pow" 17914else 17915 math_LIBS= 17916fi 17917 17918 17919else 17920 17921 as_fn_error $? "math not found" "$LINENO" 5 17922 17923fi 17924 17925LIBS="$save_LIBS" 17926 17927save_LIBS="$LIBS" 17928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_setaffinity_np" >&5 17929$as_echo_n "checking for library containing pthread_setaffinity_np... " >&6; } 17930if ${ac_cv_search_pthread_setaffinity_np+:} false; then : 17931 $as_echo_n "(cached) " >&6 17932else 17933 ac_func_search_save_LIBS=$LIBS 17934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17935/* end confdefs.h. */ 17936 17937/* Override any GCC internal prototype to avoid an error. 17938 Use char because int might match the return type of a GCC 17939 builtin and then its argument prototype would still apply. */ 17940#ifdef __cplusplus 17941extern "C" 17942#endif 17943char pthread_setaffinity_np (); 17944int 17945main () 17946{ 17947return pthread_setaffinity_np (); 17948 ; 17949 return 0; 17950} 17951_ACEOF 17952for ac_lib in '' pthread; do 17953 if test -z "$ac_lib"; then 17954 ac_res="none required" 17955 else 17956 ac_res=-l$ac_lib 17957 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17958 fi 17959 if ac_fn_c_try_link "$LINENO"; then : 17960 ac_cv_search_pthread_setaffinity_np=$ac_res 17961fi 17962rm -f core conftest.err conftest.$ac_objext \ 17963 conftest$ac_exeext 17964 if ${ac_cv_search_pthread_setaffinity_np+:} false; then : 17965 break 17966fi 17967done 17968if ${ac_cv_search_pthread_setaffinity_np+:} false; then : 17969 17970else 17971 ac_cv_search_pthread_setaffinity_np=no 17972fi 17973rm conftest.$ac_ext 17974LIBS=$ac_func_search_save_LIBS 17975fi 17976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setaffinity_np" >&5 17977$as_echo "$ac_cv_search_pthread_setaffinity_np" >&6; } 17978ac_res=$ac_cv_search_pthread_setaffinity_np 17979if test "$ac_res" != no; then : 17980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17981 17982 17983$as_echo "#define HAVE_PTHREAD_SETAFFINITY_NP 1" >>confdefs.h 17984 17985 17986fi 17987 17988LIBS="$save_LIBS" 17989 17990# Checks for header files. 17991for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 17992do : 17993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17994ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 17995# include <sys/types.h> 17996#endif 17997#ifdef HAVE_NETINET_IN_H 17998# include <netinet/in.h> /* inet_ functions / structs */ 17999#endif 18000#ifdef HAVE_ARPA_NAMESER_H 18001# include <arpa/nameser.h> /* DNS HEADER struct */ 18002#endif 18003#ifdef HAVE_NETDB_H 18004# include <netdb.h> 18005#endif 18006" 18007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18008 cat >>confdefs.h <<_ACEOF 18009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18010_ACEOF 18011 18012fi 18013 18014done 18015 18016 18017 18018 18019 18020 for ac_header in $ac_header_list 18021do : 18022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18023ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18024" 18025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18026 cat >>confdefs.h <<_ACEOF 18027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18028_ACEOF 18029 18030fi 18031 18032done 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042# Checks for optional library functions. 18043for ac_func in accept4 clock_gettime fgetln getline initgroups malloc_trim \ 18044 setgroups strlcat strlcpy sysctlbyname 18045do : 18046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18047ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18048if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18049 cat >>confdefs.h <<_ACEOF 18050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18051_ACEOF 18052 18053fi 18054done 18055 18056 18057# Check for robust memory cleanup implementations. 18058ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 18059if test "x$ac_cv_func_explicit_bzero" = xyes; then : 18060 18061 18062$as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 18063 18064 explicit_bzero=yes 18065else 18066 explicit_bzero=no 18067 18068fi 18069 18070ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" 18071if test "x$ac_cv_func_explicit_memset" = xyes; then : 18072 18073 18074$as_echo "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h 18075 18076 explicit_memset=yes 18077else 18078 explicit_memset=no 18079 18080fi 18081 18082 if test "$explicit_bzero" = "no" -a "$explicit_memset" = "no" -a "$gnutls_memset" = "yes"; then 18083 USE_GNUTLS_MEMSET_TRUE= 18084 USE_GNUTLS_MEMSET_FALSE='#' 18085else 18086 USE_GNUTLS_MEMSET_TRUE='#' 18087 USE_GNUTLS_MEMSET_FALSE= 18088fi 18089 18090 18091# Check for mandatory library functions. 18092ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 18093if test "x$ac_cv_func_vasprintf" = xyes; then : 18094 18095else 18096 18097 as_fn_error $? "vasprintf support in the libc is required" "$LINENO" 5 18098fi 18099 18100 18101# Check for cpu_set_t/cpuset_t compatibility 18102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18103/* end confdefs.h. */ 18104#include <pthread.h> 18105int 18106main () 18107{ 18108cpu_set_t set; CPU_ZERO(&set); 18109 ; 18110 return 0; 18111} 18112_ACEOF 18113if ac_fn_c_try_link "$LINENO"; then : 18114 18115$as_echo "#define HAVE_CPUSET_LINUX 1" >>confdefs.h 18116 18117fi 18118rm -f core conftest.err conftest.$ac_objext \ 18119 conftest$ac_exeext conftest.$ac_ext 18120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122#include <pthread_np.h> 18123int 18124main () 18125{ 18126cpuset_t set; CPU_ZERO(&set); 18127 ; 18128 return 0; 18129} 18130_ACEOF 18131if ac_fn_c_try_link "$LINENO"; then : 18132 18133$as_echo "#define HAVE_CPUSET_BSD 1" >>confdefs.h 18134 18135fi 18136rm -f core conftest.err conftest.$ac_objext \ 18137 conftest$ac_exeext conftest.$ac_ext 18138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18139/* end confdefs.h. */ 18140#include <sched.h> 18141int 18142main () 18143{ 18144cpuset_t* set = cpuset_create(); cpuset_destroy(set); 18145 ; 18146 return 0; 18147} 18148_ACEOF 18149if ac_fn_c_try_link "$LINENO"; then : 18150 18151$as_echo "#define HAVE_CPUSET_NETBSD 1" >>confdefs.h 18152 18153fi 18154rm -f core conftest.err conftest.$ac_objext \ 18155 conftest$ac_exeext conftest.$ac_ext 18156 18157# Check for '__atomic' compiler builtin atomic functions. 18158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18159/* end confdefs.h. */ 18160#include <stdint.h> 18161int 18162main () 18163{ 18164uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED); 18165 ; 18166 return 0; 18167} 18168_ACEOF 18169if ac_fn_c_try_link "$LINENO"; then : 18170 18171$as_echo "#define HAVE_ATOMIC 1" >>confdefs.h 18172 18173 18174fi 18175rm -f core conftest.err conftest.$ac_objext \ 18176 conftest$ac_exeext conftest.$ac_ext 18177 18178# Check for '__sync' compiler builtin atomic functions. 18179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18180/* end confdefs.h. */ 18181#include <stdint.h> 18182int 18183main () 18184{ 18185int val = 0; __sync_add_and_fetch(&val, 1); 18186 ; 18187 return 0; 18188} 18189_ACEOF 18190if ac_fn_c_try_link "$LINENO"; then : 18191 18192$as_echo "#define HAVE_SYNC_ATOMIC 1" >>confdefs.h 18193 18194 18195fi 18196rm -f core conftest.err conftest.$ac_objext \ 18197 conftest$ac_exeext conftest.$ac_ext 18198 18199# Prepare CFLAG_VISIBILITY to be used where needed 18200 18201 18202 CFLAG_VISIBILITY= 18203 HAVE_VISIBILITY=0 18204 if test -n "$GCC"; then 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 18206$as_echo_n "checking whether the -Werror option is usable... " >&6; } 18207 if ${gl_cv_cc_vis_werror+:} false; then : 18208 $as_echo_n "(cached) " >&6 18209else 18210 18211 gl_save_CFLAGS="$CFLAGS" 18212 CFLAGS="$CFLAGS -Werror" 18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18214/* end confdefs.h. */ 18215 18216int 18217main () 18218{ 18219 18220 ; 18221 return 0; 18222} 18223_ACEOF 18224if ac_fn_c_try_compile "$LINENO"; then : 18225 gl_cv_cc_vis_werror=yes 18226else 18227 gl_cv_cc_vis_werror=no 18228fi 18229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18230 CFLAGS="$gl_save_CFLAGS" 18231fi 18232 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 18234$as_echo "$gl_cv_cc_vis_werror" >&6; } 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 18236$as_echo_n "checking for simple visibility declarations... " >&6; } 18237 if ${gl_cv_cc_visibility+:} false; then : 18238 $as_echo_n "(cached) " >&6 18239else 18240 18241 gl_save_CFLAGS="$CFLAGS" 18242 CFLAGS="$CFLAGS -fvisibility=hidden" 18243 if test $gl_cv_cc_vis_werror = yes; then 18244 CFLAGS="$CFLAGS -Werror" 18245 fi 18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18247/* end confdefs.h. */ 18248extern __attribute__((__visibility__("hidden"))) int hiddenvar; 18249 extern __attribute__((__visibility__("default"))) int exportedvar; 18250 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 18251 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 18252 void dummyfunc (void) {} 18253 18254int 18255main () 18256{ 18257 18258 ; 18259 return 0; 18260} 18261_ACEOF 18262if ac_fn_c_try_compile "$LINENO"; then : 18263 gl_cv_cc_visibility=yes 18264else 18265 gl_cv_cc_visibility=no 18266fi 18267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18268 CFLAGS="$gl_save_CFLAGS" 18269fi 18270 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 18272$as_echo "$gl_cv_cc_visibility" >&6; } 18273 if test $gl_cv_cc_visibility = yes; then 18274 CFLAG_VISIBILITY="-fvisibility=hidden" 18275 HAVE_VISIBILITY=1 18276 fi 18277 fi 18278 18279 18280 18281cat >>confdefs.h <<_ACEOF 18282#define HAVE_VISIBILITY $HAVE_VISIBILITY 18283_ACEOF 18284 18285 18286 18287# Add code coverage macro 18288 18289 # Check whether --enable-code-coverage was given. 18290if test "${enable_code_coverage+set}" = set; then : 18291 enableval=$enable_code_coverage; enable_code_coverage=$enableval 18292else 18293 enable_code_coverage=no 18294 18295fi 18296 18297 if test "$enable_code_coverage" = "yes"; then 18298 CODE_COVERAGE_ENABLED_TRUE= 18299 CODE_COVERAGE_ENABLED_FALSE='#' 18300else 18301 CODE_COVERAGE_ENABLED_TRUE='#' 18302 CODE_COVERAGE_ENABLED_FALSE= 18303fi 18304 18305 CODE_COVERAGE_ENABLED=$enable_code_coverage 18306 18307 18308 if test "$enable_code_coverage" = "yes"; then : 18309 18310 # Extract the first word of "lcov", so it can be a program name with args. 18311set dummy lcov; ac_word=$2 18312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18313$as_echo_n "checking for $ac_word... " >&6; } 18314if ${ac_cv_prog_LCOV+:} false; then : 18315 $as_echo_n "(cached) " >&6 18316else 18317 if test -n "$LCOV"; then 18318 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 18319else 18320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18321for as_dir in $PATH 18322do 18323 IFS=$as_save_IFS 18324 test -z "$as_dir" && as_dir=. 18325 for ac_exec_ext in '' $ac_executable_extensions; do 18326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18327 ac_cv_prog_LCOV="lcov" 18328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18329 break 2 18330 fi 18331done 18332 done 18333IFS=$as_save_IFS 18334 18335fi 18336fi 18337LCOV=$ac_cv_prog_LCOV 18338if test -n "$LCOV"; then 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 18340$as_echo "$LCOV" >&6; } 18341else 18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18343$as_echo "no" >&6; } 18344fi 18345 18346 18347 # Extract the first word of "genhtml", so it can be a program name with args. 18348set dummy genhtml; ac_word=$2 18349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18350$as_echo_n "checking for $ac_word... " >&6; } 18351if ${ac_cv_prog_GENHTML+:} false; then : 18352 $as_echo_n "(cached) " >&6 18353else 18354 if test -n "$GENHTML"; then 18355 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 18356else 18357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18358for as_dir in $PATH 18359do 18360 IFS=$as_save_IFS 18361 test -z "$as_dir" && as_dir=. 18362 for ac_exec_ext in '' $ac_executable_extensions; do 18363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18364 ac_cv_prog_GENHTML="genhtml" 18365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18366 break 2 18367 fi 18368done 18369 done 18370IFS=$as_save_IFS 18371 18372fi 18373fi 18374GENHTML=$ac_cv_prog_GENHTML 18375if test -n "$GENHTML"; then 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 18377$as_echo "$GENHTML" >&6; } 18378else 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18380$as_echo "no" >&6; } 18381fi 18382 18383 18384 18385 if test -z "$LCOV"; then : 18386 18387 as_fn_error $? "Could not find lcov" "$LINENO" 5 18388 18389fi 18390 if test -z "$GENHTML"; then : 18391 18392 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 18393 18394fi 18395 18396 18397 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` 18398 18399 18400 CFLAGS="$CFLAGS --coverage" 18401 LDFLAGS="$LDFLAGS --coverage" 18402 18403fi 18404 18405 18406 18407 18408 # Configure options 18409 18410# Check whether --with-sanitizer was given. 18411if test "${with_sanitizer+set}" = set; then : 18412 withval=$with_sanitizer; 18413else 18414 with_sanitizer=no 18415 18416fi 18417 18418 18419# Check whether --with-fuzzer was given. 18420if test "${with_fuzzer+set}" = set; then : 18421 withval=$with_fuzzer; 18422else 18423 with_fuzzer=no 18424 18425fi 18426 18427 18428# Check whether --with-oss-fuzz was given. 18429if test "${with_oss_fuzz+set}" = set; then : 18430 withval=$with_oss_fuzz; 18431else 18432 with_oss_fuzz=no 18433 18434fi 18435 18436 18437 # Default values 18438 if test "$with_sanitizer" = "yes"; then : 18439 with_sanitizer=address,undefined 18440fi 18441 if test "$with_fuzzer" = "yes"; then : 18442 with_fuzzer=fuzzer 18443fi 18444 18445 # Construct output variables 18446 sanitizer_CFLAGS= 18447 fuzzer_CFLAGS= 18448 fuzzer_LDFLAGS= 18449 if test "$with_sanitizer" != "no"; then : 18450 18451 sanitizer_CFLAGS="-fsanitize=${with_sanitizer}" 18452 18453fi 18454 if test "$with_fuzzer" != "no"; then : 18455 18456 fuzzer_CFLAGS="-fsanitize=${with_fuzzer}" 18457 fuzzer_LDFLAGS="-fsanitize=${with_fuzzer}" 18458 18459fi 18460 18461 18462 18463 # Test compiler support 18464 if test -n "$sanitizer_CFLAGS" -o -n "$fuzzer_CFLAGS"; then : 18465 18466 save_CFLAGS="$CFLAGS" 18467 CFLAGS="$CFLAGS $sanitizer_CFLAGS $fuzzer_CFLAGS" 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts '${sanitizer_CFLAGS} ${fuzzer_CFLAGS}'" >&5 18469$as_echo_n "checking whether compiler accepts '${sanitizer_CFLAGS} ${fuzzer_CFLAGS}'... " >&6; } 18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18471/* end confdefs.h. */ 18472 18473int 18474main () 18475{ 18476 18477 ; 18478 return 0; 18479} 18480_ACEOF 18481if ac_fn_c_try_compile "$LINENO"; then : 18482 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18484$as_echo "yes" >&6; } 18485 18486else 18487 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18489$as_echo "no" >&6; } 18490 as_fn_error $? "Options are not supported." "$LINENO" 5 18491 18492fi 18493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18494 CFLAGS="$save_CFLAGS" 18495 18496fi 18497 18498 18499if test -n "$sanitizer_CFLAGS"; then : 18500 CFLAGS="$CFLAGS $sanitizer_CFLAGS" 18501fi 18502 if test "$with_fuzzer" != "no"; then 18503 FUZZER_TRUE= 18504 FUZZER_FALSE='#' 18505else 18506 FUZZER_TRUE='#' 18507 FUZZER_FALSE= 18508fi 18509 18510 if test "$with_oss_fuzz" != "no"; then 18511 OSS_FUZZ_TRUE= 18512 OSS_FUZZ_FALSE='#' 18513else 18514 OSS_FUZZ_TRUE='#' 18515 OSS_FUZZ_FALSE= 18516fi 18517 18518 18519if test "$enable_documentation" = "yes"; then : 18520 18521 18522for ac_prog in sphinx-build sphinx-build-3 18523do 18524 # Extract the first word of "$ac_prog", so it can be a program name with args. 18525set dummy $ac_prog; ac_word=$2 18526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18527$as_echo_n "checking for $ac_word... " >&6; } 18528if ${ac_cv_path_SPHINXBUILD+:} false; then : 18529 $as_echo_n "(cached) " >&6 18530else 18531 case $SPHINXBUILD in 18532 [\\/]* | ?:[\\/]*) 18533 ac_cv_path_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test with a path. 18534 ;; 18535 *) 18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18537for as_dir in $PATH 18538do 18539 IFS=$as_save_IFS 18540 test -z "$as_dir" && as_dir=. 18541 for ac_exec_ext in '' $ac_executable_extensions; do 18542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18543 ac_cv_path_SPHINXBUILD="$as_dir/$ac_word$ac_exec_ext" 18544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18545 break 2 18546 fi 18547done 18548 done 18549IFS=$as_save_IFS 18550 18551 ;; 18552esac 18553fi 18554SPHINXBUILD=$ac_cv_path_SPHINXBUILD 18555if test -n "$SPHINXBUILD"; then 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5 18557$as_echo "$SPHINXBUILD" >&6; } 18558else 18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18560$as_echo "no" >&6; } 18561fi 18562 18563 18564 test -n "$SPHINXBUILD" && break 18565done 18566test -n "$SPHINXBUILD" || SPHINXBUILD="false" 18567 18568if test "$SPHINXBUILD" = "false"; then : 18569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the 'sphinx-build' executable, you will be unable to regenerate documentation." >&5 18570$as_echo "$as_me: WARNING: Could not find the 'sphinx-build' executable, you will be unable to regenerate documentation." >&2;} 18571else 18572 # Extract the first word of "pdflatex", so it can be a program name with args. 18573set dummy pdflatex; ac_word=$2 18574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18575$as_echo_n "checking for $ac_word... " >&6; } 18576if ${ac_cv_path_PDFLATEX+:} false; then : 18577 $as_echo_n "(cached) " >&6 18578else 18579 case $PDFLATEX in 18580 [\\/]* | ?:[\\/]*) 18581 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. 18582 ;; 18583 *) 18584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18585for as_dir in $PATH 18586do 18587 IFS=$as_save_IFS 18588 test -z "$as_dir" && as_dir=. 18589 for ac_exec_ext in '' $ac_executable_extensions; do 18590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18591 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18593 break 2 18594 fi 18595done 18596 done 18597IFS=$as_save_IFS 18598 18599 test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX="false" 18600 ;; 18601esac 18602fi 18603PDFLATEX=$ac_cv_path_PDFLATEX 18604if test -n "$PDFLATEX"; then 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 18606$as_echo "$PDFLATEX" >&6; } 18607else 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18609$as_echo "no" >&6; } 18610fi 18611 18612 18613 if test "$PDFLATEX" = ""; then : 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the 'pdflatex' executable, you will be unable to generate PDF documentation." >&5 18615$as_echo "$as_me: WARNING: Could not find the 'pdflatex' executable, you will be unable to generate PDF documentation." >&2;} 18616fi 18617 # Extract the first word of "makeinfo", so it can be a program name with args. 18618set dummy makeinfo; ac_word=$2 18619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18620$as_echo_n "checking for $ac_word... " >&6; } 18621if ${ac_cv_path_MAKEINFO+:} false; then : 18622 $as_echo_n "(cached) " >&6 18623else 18624 case $MAKEINFO in 18625 [\\/]* | ?:[\\/]*) 18626 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 18627 ;; 18628 *) 18629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18630for as_dir in $PATH 18631do 18632 IFS=$as_save_IFS 18633 test -z "$as_dir" && as_dir=. 18634 for ac_exec_ext in '' $ac_executable_extensions; do 18635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18636 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 18637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18638 break 2 18639 fi 18640done 18641 done 18642IFS=$as_save_IFS 18643 18644 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="false" 18645 ;; 18646esac 18647fi 18648MAKEINFO=$ac_cv_path_MAKEINFO 18649if test -n "$MAKEINFO"; then 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 18651$as_echo "$MAKEINFO" >&6; } 18652else 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18654$as_echo "no" >&6; } 18655fi 18656 18657 18658 if test "$MAKEINFO" = "false"; then : 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the 'makeinfo' executable, you will be unable to generate info documentation." >&5 18660$as_echo "$as_me: WARNING: Could not find the 'makeinfo' executable, you will be unable to generate info documentation." >&2;} 18661fi 18662 18663fi 18664 18665 18666fi 18667 18668 if test "$SPHINXBUILD" != "false"; then 18669 HAVE_SPHINXBUILD_TRUE= 18670 HAVE_SPHINXBUILD_FALSE='#' 18671else 18672 HAVE_SPHINXBUILD_TRUE='#' 18673 HAVE_SPHINXBUILD_FALSE= 18674fi 18675 18676 if test "$PDFLATEX" != "false"; then 18677 HAVE_PDFLATEX_TRUE= 18678 HAVE_PDFLATEX_FALSE='#' 18679else 18680 HAVE_PDFLATEX_TRUE='#' 18681 HAVE_PDFLATEX_FALSE= 18682fi 18683 18684 if test "$MAKEINFO" != "false"; then 18685 HAVE_MAKEINFO_TRUE= 18686 HAVE_MAKEINFO_FALSE='#' 18687else 18688 HAVE_MAKEINFO_TRUE='#' 18689 HAVE_MAKEINFO_FALSE= 18690fi 18691 18692 18693# Strip -fdebug-prefix-map= parameters from flags for better reproducibility of binaries. 18694filtered_cflags=$(echo -n "$CFLAGS" | \ 18695 sed 's/[^[:alnum:]]-f[^[:space:]]*-prefix-map=[^[:space:]]*//g') 18696filtered_cppflags=$(echo -n "$CPPFLAGS" | \ 18697 sed 's/[^[:alnum:]]-f[^[:space:]]*-prefix-map=[^[:space:]]*//g') 18698 18699result_msg_base=" Knot DNS $VERSION 18700 18701 Target: $host_os $host_cpu $endianity 18702 Compiler: ${CC} 18703 CFLAGS: ${filtered_cflags} ${filtered_cppflags} 18704 LIBS: ${LIBS} ${LDFLAGS} 18705 LibURCU: ${liburcu_LIBS} ${liburcu_CFLAGS} 18706 GnuTLS: ${gnutls_LIBS} ${gnutls_CFLAGS} 18707 Libedit: ${libedit_LIBS} ${libedit_CFLAGS} 18708 LMDB: ${lmdb_LIBS} ${lmdb_CFLAGS} 18709 Config: ${conf_mapsize} MiB default mapsize 18710 18711 Prefix: ${knot_prefix} 18712 Run dir: ${run_dir} 18713 Storage dir: ${storage_dir} 18714 Config dir: ${config_dir} 18715 Module dir: ${module_dir} 18716 18717 Static modules: ${static_modules} 18718 Shared modules: ${shared_modules} 18719 18720 Knot DNS libraries: yes 18721 Knot DNS daemon: ${enable_daemon} 18722 Knot DNS utilities: ${enable_utilities} 18723 Knot DNS documentation: ${enable_documentation} 18724 18725 Use recvmmsg: ${enable_recvmmsg} 18726 Use SO_REUSEPORT(_LB): ${enable_reuseport} 18727 XDP support: ${enable_xdp} 18728 Socket polling: ${socket_polling} 18729 Memory allocator: ${with_memory_allocator} 18730 Fast zone parser: ${enable_fastparser} 18731 Utilities with IDN: ${with_libidn} 18732 Utilities with DoH: ${with_libnghttp2} 18733 Utilities with Dnstap: ${enable_dnstap} 18734 MaxMind DB support: ${enable_maxminddb} 18735 Systemd integration: ${enable_systemd} 18736 POSIX capabilities: ${enable_cap_ng} 18737 PKCS #11 support: ${enable_pkcs11} 18738 Ed25519 support: ${enable_ed25519} 18739 Ed448 support: ${enable_ed448} 18740 Reproducible signing: ${enable_repro_signing} 18741 Code coverage: ${enable_code_coverage} 18742 Sanitizer: ${with_sanitizer} 18743 LibFuzzer: ${with_fuzzer} 18744 OSS-Fuzz: ${with_oss_fuzz}" 18745 18746result_msg_esc=$(echo -n "$result_msg_base" | sed '$!s/$/\\n/' | tr -d '\n') 18747 18748 18749cat >>confdefs.h <<_ACEOF 18750#define CONFIGURE_SUMMARY "$result_msg_esc" 18751_ACEOF 18752 18753 18754ac_config_files="$ac_config_files Makefile Doxyfile doc/Makefile tests/Makefile tests-fuzz/Makefile samples/Makefile distro/Makefile python/Makefile python/setup.py python/libknot/__init__.py src/Makefile src/libknot/xdp/Makefile src/knot/modules/static_modules.h" 18755 18756 18757ac_config_files="$ac_config_files doc/modules.rst" 18758 18759 18760cat >confcache <<\_ACEOF 18761# This file is a shell script that caches the results of configure 18762# tests run on this system so they can be shared between configure 18763# scripts and configure runs, see configure's option --config-cache. 18764# It is not useful on other systems. If it contains results you don't 18765# want to keep, you may remove or edit it. 18766# 18767# config.status only pays attention to the cache file if you give it 18768# the --recheck option to rerun configure. 18769# 18770# `ac_cv_env_foo' variables (set or unset) will be overridden when 18771# loading this file, other *unset* `ac_cv_foo' will be assigned the 18772# following values. 18773 18774_ACEOF 18775 18776# The following way of writing the cache mishandles newlines in values, 18777# but we know of no workaround that is simple, portable, and efficient. 18778# So, we kill variables containing newlines. 18779# Ultrix sh set writes to stderr and can't be redirected directly, 18780# and sets the high bit in the cache file unless we assign to the vars. 18781( 18782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18783 eval ac_val=\$$ac_var 18784 case $ac_val in #( 18785 *${as_nl}*) 18786 case $ac_var in #( 18787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18788$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18789 esac 18790 case $ac_var in #( 18791 _ | IFS | as_nl) ;; #( 18792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18793 *) { eval $ac_var=; unset $ac_var;} ;; 18794 esac ;; 18795 esac 18796 done 18797 18798 (set) 2>&1 | 18799 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18800 *${as_nl}ac_space=\ *) 18801 # `set' does not quote correctly, so add quotes: double-quote 18802 # substitution turns \\\\ into \\, and sed turns \\ into \. 18803 sed -n \ 18804 "s/'/'\\\\''/g; 18805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18806 ;; #( 18807 *) 18808 # `set' quotes correctly as required by POSIX, so do not add quotes. 18809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18810 ;; 18811 esac | 18812 sort 18813) | 18814 sed ' 18815 /^ac_cv_env_/b end 18816 t clear 18817 :clear 18818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18819 t end 18820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18821 :end' >>confcache 18822if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18823 if test -w "$cache_file"; then 18824 if test "x$cache_file" != "x/dev/null"; then 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18826$as_echo "$as_me: updating cache $cache_file" >&6;} 18827 if test ! -f "$cache_file" || test -h "$cache_file"; then 18828 cat confcache >"$cache_file" 18829 else 18830 case $cache_file in #( 18831 */* | ?:*) 18832 mv -f confcache "$cache_file"$$ && 18833 mv -f "$cache_file"$$ "$cache_file" ;; #( 18834 *) 18835 mv -f confcache "$cache_file" ;; 18836 esac 18837 fi 18838 fi 18839 else 18840 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18841$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18842 fi 18843fi 18844rm -f confcache 18845 18846test "x$prefix" = xNONE && prefix=$ac_default_prefix 18847# Let make expand exec_prefix. 18848test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18849 18850DEFS=-DHAVE_CONFIG_H 18851 18852ac_libobjs= 18853ac_ltlibobjs= 18854U= 18855for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18856 # 1. Remove the extension, and $U if already installed. 18857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18858 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18860 # will be set to the directory where LIBOBJS objects are built. 18861 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18862 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18863done 18864LIBOBJS=$ac_libobjs 18865 18866LTLIBOBJS=$ac_ltlibobjs 18867 18868 18869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18870$as_echo_n "checking that generated files are newer than configure... " >&6; } 18871 if test -n "$am_sleep_pid"; then 18872 # Hide warnings about reused PIDs. 18873 wait $am_sleep_pid 2>/dev/null 18874 fi 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18876$as_echo "done" >&6; } 18877 if test -n "$EXEEXT"; then 18878 am__EXEEXT_TRUE= 18879 am__EXEEXT_FALSE='#' 18880else 18881 am__EXEEXT_TRUE='#' 18882 am__EXEEXT_FALSE= 18883fi 18884 18885if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18886 as_fn_error $? "conditional \"AMDEP\" was never defined. 18887Usually this means the macro was only invoked conditionally." "$LINENO" 5 18888fi 18889if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18890 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18891Usually this means the macro was only invoked conditionally." "$LINENO" 5 18892fi 18893 18894if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then 18895 as_fn_error $? "conditional \"HAVE_DAEMON\" was never defined. 18896Usually this means the macro was only invoked conditionally." "$LINENO" 5 18897fi 18898if test -z "${HAVE_UTILS_TRUE}" && test -z "${HAVE_UTILS_FALSE}"; then 18899 as_fn_error $? "conditional \"HAVE_UTILS\" was never defined. 18900Usually this means the macro was only invoked conditionally." "$LINENO" 5 18901fi 18902if test -z "${HAVE_DOCS_TRUE}" && test -z "${HAVE_DOCS_FALSE}"; then 18903 as_fn_error $? "conditional \"HAVE_DOCS\" was never defined. 18904Usually this means the macro was only invoked conditionally." "$LINENO" 5 18905fi 18906if test -z "${HAVE_LIBUTILS_TRUE}" && test -z "${HAVE_LIBUTILS_FALSE}"; then 18907 as_fn_error $? "conditional \"HAVE_LIBUTILS\" was never defined. 18908Usually this means the macro was only invoked conditionally." "$LINENO" 5 18909fi 18910if test -z "${FAST_PARSER_TRUE}" && test -z "${FAST_PARSER_FALSE}"; then 18911 as_fn_error $? "conditional \"FAST_PARSER\" was never defined. 18912Usually this means the macro was only invoked conditionally." "$LINENO" 5 18913fi 18914if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then 18915 as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined. 18916Usually this means the macro was only invoked conditionally." "$LINENO" 5 18917fi 18918if test -z "${EMBEDDED_LIBBPF_TRUE}" && test -z "${EMBEDDED_LIBBPF_FALSE}"; then 18919 as_fn_error $? "conditional \"EMBEDDED_LIBBPF\" was never defined. 18920Usually this means the macro was only invoked conditionally." "$LINENO" 5 18921fi 18922if test -z "${ENABLE_XDP_TRUE}" && test -z "${ENABLE_XDP_FALSE}"; then 18923 as_fn_error $? "conditional \"ENABLE_XDP\" was never defined. 18924Usually this means the macro was only invoked conditionally." "$LINENO" 5 18925fi 18926if test -z "${STATIC_MODULE_cookies_TRUE}" && test -z "${STATIC_MODULE_cookies_FALSE}"; then 18927 as_fn_error $? "conditional \"STATIC_MODULE_cookies\" was never defined. 18928Usually this means the macro was only invoked conditionally." "$LINENO" 5 18929fi 18930if test -z "${SHARED_MODULE_cookies_TRUE}" && test -z "${SHARED_MODULE_cookies_FALSE}"; then 18931 as_fn_error $? "conditional \"SHARED_MODULE_cookies\" was never defined. 18932Usually this means the macro was only invoked conditionally." "$LINENO" 5 18933fi 18934if test -z "${STATIC_MODULE_dnsproxy_TRUE}" && test -z "${STATIC_MODULE_dnsproxy_FALSE}"; then 18935 as_fn_error $? "conditional \"STATIC_MODULE_dnsproxy\" was never defined. 18936Usually this means the macro was only invoked conditionally." "$LINENO" 5 18937fi 18938if test -z "${SHARED_MODULE_dnsproxy_TRUE}" && test -z "${SHARED_MODULE_dnsproxy_FALSE}"; then 18939 as_fn_error $? "conditional \"SHARED_MODULE_dnsproxy\" was never defined. 18940Usually this means the macro was only invoked conditionally." "$LINENO" 5 18941fi 18942if test -z "${STATIC_MODULE_dnstap_TRUE}" && test -z "${STATIC_MODULE_dnstap_FALSE}"; then 18943 as_fn_error $? "conditional \"STATIC_MODULE_dnstap\" was never defined. 18944Usually this means the macro was only invoked conditionally." "$LINENO" 5 18945fi 18946if test -z "${SHARED_MODULE_dnstap_TRUE}" && test -z "${SHARED_MODULE_dnstap_FALSE}"; then 18947 as_fn_error $? "conditional \"SHARED_MODULE_dnstap\" was never defined. 18948Usually this means the macro was only invoked conditionally." "$LINENO" 5 18949fi 18950if test -z "${STATIC_MODULE_geoip_TRUE}" && test -z "${STATIC_MODULE_geoip_FALSE}"; then 18951 as_fn_error $? "conditional \"STATIC_MODULE_geoip\" was never defined. 18952Usually this means the macro was only invoked conditionally." "$LINENO" 5 18953fi 18954if test -z "${SHARED_MODULE_geoip_TRUE}" && test -z "${SHARED_MODULE_geoip_FALSE}"; then 18955 as_fn_error $? "conditional \"SHARED_MODULE_geoip\" was never defined. 18956Usually this means the macro was only invoked conditionally." "$LINENO" 5 18957fi 18958if test -z "${STATIC_MODULE_noudp_TRUE}" && test -z "${STATIC_MODULE_noudp_FALSE}"; then 18959 as_fn_error $? "conditional \"STATIC_MODULE_noudp\" was never defined. 18960Usually this means the macro was only invoked conditionally." "$LINENO" 5 18961fi 18962if test -z "${SHARED_MODULE_noudp_TRUE}" && test -z "${SHARED_MODULE_noudp_FALSE}"; then 18963 as_fn_error $? "conditional \"SHARED_MODULE_noudp\" was never defined. 18964Usually this means the macro was only invoked conditionally." "$LINENO" 5 18965fi 18966if test -z "${STATIC_MODULE_onlinesign_TRUE}" && test -z "${STATIC_MODULE_onlinesign_FALSE}"; then 18967 as_fn_error $? "conditional \"STATIC_MODULE_onlinesign\" was never defined. 18968Usually this means the macro was only invoked conditionally." "$LINENO" 5 18969fi 18970if test -z "${SHARED_MODULE_onlinesign_TRUE}" && test -z "${SHARED_MODULE_onlinesign_FALSE}"; then 18971 as_fn_error $? "conditional \"SHARED_MODULE_onlinesign\" was never defined. 18972Usually this means the macro was only invoked conditionally." "$LINENO" 5 18973fi 18974if test -z "${STATIC_MODULE_probe_TRUE}" && test -z "${STATIC_MODULE_probe_FALSE}"; then 18975 as_fn_error $? "conditional \"STATIC_MODULE_probe\" was never defined. 18976Usually this means the macro was only invoked conditionally." "$LINENO" 5 18977fi 18978if test -z "${SHARED_MODULE_probe_TRUE}" && test -z "${SHARED_MODULE_probe_FALSE}"; then 18979 as_fn_error $? "conditional \"SHARED_MODULE_probe\" was never defined. 18980Usually this means the macro was only invoked conditionally." "$LINENO" 5 18981fi 18982if test -z "${STATIC_MODULE_queryacl_TRUE}" && test -z "${STATIC_MODULE_queryacl_FALSE}"; then 18983 as_fn_error $? "conditional \"STATIC_MODULE_queryacl\" was never defined. 18984Usually this means the macro was only invoked conditionally." "$LINENO" 5 18985fi 18986if test -z "${SHARED_MODULE_queryacl_TRUE}" && test -z "${SHARED_MODULE_queryacl_FALSE}"; then 18987 as_fn_error $? "conditional \"SHARED_MODULE_queryacl\" was never defined. 18988Usually this means the macro was only invoked conditionally." "$LINENO" 5 18989fi 18990if test -z "${STATIC_MODULE_rrl_TRUE}" && test -z "${STATIC_MODULE_rrl_FALSE}"; then 18991 as_fn_error $? "conditional \"STATIC_MODULE_rrl\" was never defined. 18992Usually this means the macro was only invoked conditionally." "$LINENO" 5 18993fi 18994if test -z "${SHARED_MODULE_rrl_TRUE}" && test -z "${SHARED_MODULE_rrl_FALSE}"; then 18995 as_fn_error $? "conditional \"SHARED_MODULE_rrl\" was never defined. 18996Usually this means the macro was only invoked conditionally." "$LINENO" 5 18997fi 18998if test -z "${STATIC_MODULE_stats_TRUE}" && test -z "${STATIC_MODULE_stats_FALSE}"; then 18999 as_fn_error $? "conditional \"STATIC_MODULE_stats\" was never defined. 19000Usually this means the macro was only invoked conditionally." "$LINENO" 5 19001fi 19002if test -z "${SHARED_MODULE_stats_TRUE}" && test -z "${SHARED_MODULE_stats_FALSE}"; then 19003 as_fn_error $? "conditional \"SHARED_MODULE_stats\" was never defined. 19004Usually this means the macro was only invoked conditionally." "$LINENO" 5 19005fi 19006if test -z "${STATIC_MODULE_synthrecord_TRUE}" && test -z "${STATIC_MODULE_synthrecord_FALSE}"; then 19007 as_fn_error $? "conditional \"STATIC_MODULE_synthrecord\" was never defined. 19008Usually this means the macro was only invoked conditionally." "$LINENO" 5 19009fi 19010if test -z "${SHARED_MODULE_synthrecord_TRUE}" && test -z "${SHARED_MODULE_synthrecord_FALSE}"; then 19011 as_fn_error $? "conditional \"SHARED_MODULE_synthrecord\" was never defined. 19012Usually this means the macro was only invoked conditionally." "$LINENO" 5 19013fi 19014if test -z "${STATIC_MODULE_whoami_TRUE}" && test -z "${STATIC_MODULE_whoami_FALSE}"; then 19015 as_fn_error $? "conditional \"STATIC_MODULE_whoami\" was never defined. 19016Usually this means the macro was only invoked conditionally." "$LINENO" 5 19017fi 19018if test -z "${SHARED_MODULE_whoami_TRUE}" && test -z "${SHARED_MODULE_whoami_FALSE}"; then 19019 as_fn_error $? "conditional \"SHARED_MODULE_whoami\" was never defined. 19020Usually this means the macro was only invoked conditionally." "$LINENO" 5 19021fi 19022if test -z "${HAVE_DNSTAP_TRUE}" && test -z "${HAVE_DNSTAP_FALSE}"; then 19023 as_fn_error $? "conditional \"HAVE_DNSTAP\" was never defined. 19024Usually this means the macro was only invoked conditionally." "$LINENO" 5 19025fi 19026if test -z "${HAVE_LIBDNSTAP_TRUE}" && test -z "${HAVE_LIBDNSTAP_FALSE}"; then 19027 as_fn_error $? "conditional \"HAVE_LIBDNSTAP\" was never defined. 19028Usually this means the macro was only invoked conditionally." "$LINENO" 5 19029fi 19030if test -z "${HAVE_MAXMINDDB_TRUE}" && test -z "${HAVE_MAXMINDDB_FALSE}"; then 19031 as_fn_error $? "conditional \"HAVE_MAXMINDDB\" was never defined. 19032Usually this means the macro was only invoked conditionally." "$LINENO" 5 19033fi 19034if test -z "${USE_GNUTLS_MEMSET_TRUE}" && test -z "${USE_GNUTLS_MEMSET_FALSE}"; then 19035 as_fn_error $? "conditional \"USE_GNUTLS_MEMSET\" was never defined. 19036Usually this means the macro was only invoked conditionally." "$LINENO" 5 19037fi 19038if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then 19039 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. 19040Usually this means the macro was only invoked conditionally." "$LINENO" 5 19041fi 19042if test -z "${FUZZER_TRUE}" && test -z "${FUZZER_FALSE}"; then 19043 as_fn_error $? "conditional \"FUZZER\" was never defined. 19044Usually this means the macro was only invoked conditionally." "$LINENO" 5 19045fi 19046if test -z "${OSS_FUZZ_TRUE}" && test -z "${OSS_FUZZ_FALSE}"; then 19047 as_fn_error $? "conditional \"OSS_FUZZ\" was never defined. 19048Usually this means the macro was only invoked conditionally." "$LINENO" 5 19049fi 19050if test -z "${HAVE_SPHINXBUILD_TRUE}" && test -z "${HAVE_SPHINXBUILD_FALSE}"; then 19051 as_fn_error $? "conditional \"HAVE_SPHINXBUILD\" was never defined. 19052Usually this means the macro was only invoked conditionally." "$LINENO" 5 19053fi 19054if test -z "${HAVE_PDFLATEX_TRUE}" && test -z "${HAVE_PDFLATEX_FALSE}"; then 19055 as_fn_error $? "conditional \"HAVE_PDFLATEX\" was never defined. 19056Usually this means the macro was only invoked conditionally." "$LINENO" 5 19057fi 19058if test -z "${HAVE_MAKEINFO_TRUE}" && test -z "${HAVE_MAKEINFO_FALSE}"; then 19059 as_fn_error $? "conditional \"HAVE_MAKEINFO\" was never defined. 19060Usually this means the macro was only invoked conditionally." "$LINENO" 5 19061fi 19062 19063: "${CONFIG_STATUS=./config.status}" 19064ac_write_fail=0 19065ac_clean_files_save=$ac_clean_files 19066ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19067{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19068$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19069as_write_fail=0 19070cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19071#! $SHELL 19072# Generated by $as_me. 19073# Run this file to recreate the current configuration. 19074# Compiler output produced by configure, useful for debugging 19075# configure, is in config.log if it exists. 19076 19077debug=false 19078ac_cs_recheck=false 19079ac_cs_silent=false 19080 19081SHELL=\${CONFIG_SHELL-$SHELL} 19082export SHELL 19083_ASEOF 19084cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19085## -------------------- ## 19086## M4sh Initialization. ## 19087## -------------------- ## 19088 19089# Be more Bourne compatible 19090DUALCASE=1; export DUALCASE # for MKS sh 19091if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19092 emulate sh 19093 NULLCMD=: 19094 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19095 # is contrary to our usage. Disable this feature. 19096 alias -g '${1+"$@"}'='"$@"' 19097 setopt NO_GLOB_SUBST 19098else 19099 case `(set -o) 2>/dev/null` in #( 19100 *posix*) : 19101 set -o posix ;; #( 19102 *) : 19103 ;; 19104esac 19105fi 19106 19107 19108as_nl=' 19109' 19110export as_nl 19111# Printing a long string crashes Solaris 7 /usr/bin/printf. 19112as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19113as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19114as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19115# Prefer a ksh shell builtin over an external printf program on Solaris, 19116# but without wasting forks for bash or zsh. 19117if test -z "$BASH_VERSION$ZSH_VERSION" \ 19118 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19119 as_echo='print -r --' 19120 as_echo_n='print -rn --' 19121elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19122 as_echo='printf %s\n' 19123 as_echo_n='printf %s' 19124else 19125 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19126 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19127 as_echo_n='/usr/ucb/echo -n' 19128 else 19129 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19130 as_echo_n_body='eval 19131 arg=$1; 19132 case $arg in #( 19133 *"$as_nl"*) 19134 expr "X$arg" : "X\\(.*\\)$as_nl"; 19135 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19136 esac; 19137 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19138 ' 19139 export as_echo_n_body 19140 as_echo_n='sh -c $as_echo_n_body as_echo' 19141 fi 19142 export as_echo_body 19143 as_echo='sh -c $as_echo_body as_echo' 19144fi 19145 19146# The user is always right. 19147if test "${PATH_SEPARATOR+set}" != set; then 19148 PATH_SEPARATOR=: 19149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19151 PATH_SEPARATOR=';' 19152 } 19153fi 19154 19155 19156# IFS 19157# We need space, tab and new line, in precisely that order. Quoting is 19158# there to prevent editors from complaining about space-tab. 19159# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19160# splitting by setting IFS to empty value.) 19161IFS=" "" $as_nl" 19162 19163# Find who we are. Look in the path if we contain no directory separator. 19164as_myself= 19165case $0 in #(( 19166 *[\\/]* ) as_myself=$0 ;; 19167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19168for as_dir in $PATH 19169do 19170 IFS=$as_save_IFS 19171 test -z "$as_dir" && as_dir=. 19172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19173 done 19174IFS=$as_save_IFS 19175 19176 ;; 19177esac 19178# We did not find ourselves, most probably we were run as `sh COMMAND' 19179# in which case we are not to be found in the path. 19180if test "x$as_myself" = x; then 19181 as_myself=$0 19182fi 19183if test ! -f "$as_myself"; then 19184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19185 exit 1 19186fi 19187 19188# Unset variables that we do not need and which cause bugs (e.g. in 19189# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19190# suppresses any "Segmentation fault" message there. '((' could 19191# trigger a bug in pdksh 5.2.14. 19192for as_var in BASH_ENV ENV MAIL MAILPATH 19193do eval test x\${$as_var+set} = xset \ 19194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19195done 19196PS1='$ ' 19197PS2='> ' 19198PS4='+ ' 19199 19200# NLS nuisances. 19201LC_ALL=C 19202export LC_ALL 19203LANGUAGE=C 19204export LANGUAGE 19205 19206# CDPATH. 19207(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19208 19209 19210# as_fn_error STATUS ERROR [LINENO LOG_FD] 19211# ---------------------------------------- 19212# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19213# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19214# script with STATUS, using 1 if that was 0. 19215as_fn_error () 19216{ 19217 as_status=$1; test $as_status -eq 0 && as_status=1 19218 if test "$4"; then 19219 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19221 fi 19222 $as_echo "$as_me: error: $2" >&2 19223 as_fn_exit $as_status 19224} # as_fn_error 19225 19226 19227# as_fn_set_status STATUS 19228# ----------------------- 19229# Set $? to STATUS, without forking. 19230as_fn_set_status () 19231{ 19232 return $1 19233} # as_fn_set_status 19234 19235# as_fn_exit STATUS 19236# ----------------- 19237# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19238as_fn_exit () 19239{ 19240 set +e 19241 as_fn_set_status $1 19242 exit $1 19243} # as_fn_exit 19244 19245# as_fn_unset VAR 19246# --------------- 19247# Portably unset VAR. 19248as_fn_unset () 19249{ 19250 { eval $1=; unset $1;} 19251} 19252as_unset=as_fn_unset 19253# as_fn_append VAR VALUE 19254# ---------------------- 19255# Append the text in VALUE to the end of the definition contained in VAR. Take 19256# advantage of any shell optimizations that allow amortized linear growth over 19257# repeated appends, instead of the typical quadratic growth present in naive 19258# implementations. 19259if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19260 eval 'as_fn_append () 19261 { 19262 eval $1+=\$2 19263 }' 19264else 19265 as_fn_append () 19266 { 19267 eval $1=\$$1\$2 19268 } 19269fi # as_fn_append 19270 19271# as_fn_arith ARG... 19272# ------------------ 19273# Perform arithmetic evaluation on the ARGs, and store the result in the 19274# global $as_val. Take advantage of shells that can avoid forks. The arguments 19275# must be portable across $(()) and expr. 19276if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19277 eval 'as_fn_arith () 19278 { 19279 as_val=$(( $* )) 19280 }' 19281else 19282 as_fn_arith () 19283 { 19284 as_val=`expr "$@" || test $? -eq 1` 19285 } 19286fi # as_fn_arith 19287 19288 19289if expr a : '\(a\)' >/dev/null 2>&1 && 19290 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19291 as_expr=expr 19292else 19293 as_expr=false 19294fi 19295 19296if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19297 as_basename=basename 19298else 19299 as_basename=false 19300fi 19301 19302if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19303 as_dirname=dirname 19304else 19305 as_dirname=false 19306fi 19307 19308as_me=`$as_basename -- "$0" || 19309$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19310 X"$0" : 'X\(//\)$' \| \ 19311 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19312$as_echo X/"$0" | 19313 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19314 s//\1/ 19315 q 19316 } 19317 /^X\/\(\/\/\)$/{ 19318 s//\1/ 19319 q 19320 } 19321 /^X\/\(\/\).*/{ 19322 s//\1/ 19323 q 19324 } 19325 s/.*/./; q'` 19326 19327# Avoid depending upon Character Ranges. 19328as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19329as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19330as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19331as_cr_digits='0123456789' 19332as_cr_alnum=$as_cr_Letters$as_cr_digits 19333 19334ECHO_C= ECHO_N= ECHO_T= 19335case `echo -n x` in #((((( 19336-n*) 19337 case `echo 'xy\c'` in 19338 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19339 xy) ECHO_C='\c';; 19340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19341 ECHO_T=' ';; 19342 esac;; 19343*) 19344 ECHO_N='-n';; 19345esac 19346 19347rm -f conf$$ conf$$.exe conf$$.file 19348if test -d conf$$.dir; then 19349 rm -f conf$$.dir/conf$$.file 19350else 19351 rm -f conf$$.dir 19352 mkdir conf$$.dir 2>/dev/null 19353fi 19354if (echo >conf$$.file) 2>/dev/null; then 19355 if ln -s conf$$.file conf$$ 2>/dev/null; then 19356 as_ln_s='ln -s' 19357 # ... but there are two gotchas: 19358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19360 # In both cases, we have to default to `cp -pR'. 19361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19362 as_ln_s='cp -pR' 19363 elif ln conf$$.file conf$$ 2>/dev/null; then 19364 as_ln_s=ln 19365 else 19366 as_ln_s='cp -pR' 19367 fi 19368else 19369 as_ln_s='cp -pR' 19370fi 19371rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19372rmdir conf$$.dir 2>/dev/null 19373 19374 19375# as_fn_mkdir_p 19376# ------------- 19377# Create "$as_dir" as a directory, including parents if necessary. 19378as_fn_mkdir_p () 19379{ 19380 19381 case $as_dir in #( 19382 -*) as_dir=./$as_dir;; 19383 esac 19384 test -d "$as_dir" || eval $as_mkdir_p || { 19385 as_dirs= 19386 while :; do 19387 case $as_dir in #( 19388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19389 *) as_qdir=$as_dir;; 19390 esac 19391 as_dirs="'$as_qdir' $as_dirs" 19392 as_dir=`$as_dirname -- "$as_dir" || 19393$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19394 X"$as_dir" : 'X\(//\)[^/]' \| \ 19395 X"$as_dir" : 'X\(//\)$' \| \ 19396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19397$as_echo X"$as_dir" | 19398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19399 s//\1/ 19400 q 19401 } 19402 /^X\(\/\/\)[^/].*/{ 19403 s//\1/ 19404 q 19405 } 19406 /^X\(\/\/\)$/{ 19407 s//\1/ 19408 q 19409 } 19410 /^X\(\/\).*/{ 19411 s//\1/ 19412 q 19413 } 19414 s/.*/./; q'` 19415 test -d "$as_dir" && break 19416 done 19417 test -z "$as_dirs" || eval "mkdir $as_dirs" 19418 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19419 19420 19421} # as_fn_mkdir_p 19422if mkdir -p . 2>/dev/null; then 19423 as_mkdir_p='mkdir -p "$as_dir"' 19424else 19425 test -d ./-p && rmdir ./-p 19426 as_mkdir_p=false 19427fi 19428 19429 19430# as_fn_executable_p FILE 19431# ----------------------- 19432# Test if FILE is an executable regular file. 19433as_fn_executable_p () 19434{ 19435 test -f "$1" && test -x "$1" 19436} # as_fn_executable_p 19437as_test_x='test -x' 19438as_executable_p=as_fn_executable_p 19439 19440# Sed expression to map a string onto a valid CPP name. 19441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19442 19443# Sed expression to map a string onto a valid variable name. 19444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19445 19446 19447exec 6>&1 19448## ----------------------------------- ## 19449## Main body of $CONFIG_STATUS script. ## 19450## ----------------------------------- ## 19451_ASEOF 19452test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19453 19454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19455# Save the log message, to keep $0 and so on meaningful, and to 19456# report actual input values of CONFIG_FILES etc. instead of their 19457# values after options handling. 19458ac_log=" 19459This file was extended by knot $as_me 3.1.5, which was 19460generated by GNU Autoconf 2.69. Invocation command line was 19461 19462 CONFIG_FILES = $CONFIG_FILES 19463 CONFIG_HEADERS = $CONFIG_HEADERS 19464 CONFIG_LINKS = $CONFIG_LINKS 19465 CONFIG_COMMANDS = $CONFIG_COMMANDS 19466 $ $0 $@ 19467 19468on `(hostname || uname -n) 2>/dev/null | sed 1q` 19469" 19470 19471_ACEOF 19472 19473case $ac_config_files in *" 19474"*) set x $ac_config_files; shift; ac_config_files=$*;; 19475esac 19476 19477case $ac_config_headers in *" 19478"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19479esac 19480 19481 19482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19483# Files that config.status was made for. 19484config_files="$ac_config_files" 19485config_headers="$ac_config_headers" 19486config_commands="$ac_config_commands" 19487 19488_ACEOF 19489 19490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19491ac_cs_usage="\ 19492\`$as_me' instantiates files and other configuration actions 19493from templates according to the current configuration. Unless the files 19494and actions are specified as TAGs, all are instantiated by default. 19495 19496Usage: $0 [OPTION]... [TAG]... 19497 19498 -h, --help print this help, then exit 19499 -V, --version print version number and configuration settings, then exit 19500 --config print configuration, then exit 19501 -q, --quiet, --silent 19502 do not print progress messages 19503 -d, --debug don't remove temporary files 19504 --recheck update $as_me by reconfiguring in the same conditions 19505 --file=FILE[:TEMPLATE] 19506 instantiate the configuration file FILE 19507 --header=FILE[:TEMPLATE] 19508 instantiate the configuration header FILE 19509 19510Configuration files: 19511$config_files 19512 19513Configuration headers: 19514$config_headers 19515 19516Configuration commands: 19517$config_commands 19518 19519Report bugs to <knot-dns@labs.nic.cz>." 19520 19521_ACEOF 19522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19523ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19524ac_cs_version="\\ 19525knot config.status 3.1.5 19526configured by $0, generated by GNU Autoconf 2.69, 19527 with options \\"\$ac_cs_config\\" 19528 19529Copyright (C) 2012 Free Software Foundation, Inc. 19530This config.status script is free software; the Free Software Foundation 19531gives unlimited permission to copy, distribute and modify it." 19532 19533ac_pwd='$ac_pwd' 19534srcdir='$srcdir' 19535INSTALL='$INSTALL' 19536MKDIR_P='$MKDIR_P' 19537AWK='$AWK' 19538test -n "\$AWK" || AWK=awk 19539_ACEOF 19540 19541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19542# The default lists apply if the user does not specify any file. 19543ac_need_defaults=: 19544while test $# != 0 19545do 19546 case $1 in 19547 --*=?*) 19548 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19550 ac_shift=: 19551 ;; 19552 --*=) 19553 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19554 ac_optarg= 19555 ac_shift=: 19556 ;; 19557 *) 19558 ac_option=$1 19559 ac_optarg=$2 19560 ac_shift=shift 19561 ;; 19562 esac 19563 19564 case $ac_option in 19565 # Handling of the options. 19566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19567 ac_cs_recheck=: ;; 19568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19569 $as_echo "$ac_cs_version"; exit ;; 19570 --config | --confi | --conf | --con | --co | --c ) 19571 $as_echo "$ac_cs_config"; exit ;; 19572 --debug | --debu | --deb | --de | --d | -d ) 19573 debug=: ;; 19574 --file | --fil | --fi | --f ) 19575 $ac_shift 19576 case $ac_optarg in 19577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19578 '') as_fn_error $? "missing file argument" ;; 19579 esac 19580 as_fn_append CONFIG_FILES " '$ac_optarg'" 19581 ac_need_defaults=false;; 19582 --header | --heade | --head | --hea ) 19583 $ac_shift 19584 case $ac_optarg in 19585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19586 esac 19587 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19588 ac_need_defaults=false;; 19589 --he | --h) 19590 # Conflict between --help and --header 19591 as_fn_error $? "ambiguous option: \`$1' 19592Try \`$0 --help' for more information.";; 19593 --help | --hel | -h ) 19594 $as_echo "$ac_cs_usage"; exit ;; 19595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19596 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19597 ac_cs_silent=: ;; 19598 19599 # This is an error. 19600 -*) as_fn_error $? "unrecognized option: \`$1' 19601Try \`$0 --help' for more information." ;; 19602 19603 *) as_fn_append ac_config_targets " $1" 19604 ac_need_defaults=false ;; 19605 19606 esac 19607 shift 19608done 19609 19610ac_configure_extra_args= 19611 19612if $ac_cs_silent; then 19613 exec 6>/dev/null 19614 ac_configure_extra_args="$ac_configure_extra_args --silent" 19615fi 19616 19617_ACEOF 19618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19619if \$ac_cs_recheck; then 19620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19621 shift 19622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19623 CONFIG_SHELL='$SHELL' 19624 export CONFIG_SHELL 19625 exec "\$@" 19626fi 19627 19628_ACEOF 19629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19630exec 5>>config.log 19631{ 19632 echo 19633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19634## Running $as_me. ## 19635_ASBOX 19636 $as_echo "$ac_log" 19637} >&5 19638 19639_ACEOF 19640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19641# 19642# INIT-COMMANDS 19643# 19644AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19645 19646 19647# The HP-UX ksh and POSIX shell print the target directory to stdout 19648# if CDPATH is set. 19649(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19650 19651sed_quote_subst='$sed_quote_subst' 19652double_quote_subst='$double_quote_subst' 19653delay_variable_subst='$delay_variable_subst' 19654macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19655macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19656enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19657enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19658pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19659enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19660shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19661SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19662ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19663PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19664host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19665host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19666host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19667build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19668build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19669build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19670SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19671Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19672GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19673EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19674FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19675LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19676NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19677LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19678max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19679ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19680exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19681lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19682lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19683lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19684lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19685lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19686reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19687reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19688OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19689deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19690file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19691file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19692want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19693DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19694sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19695AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19696AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19697archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19698STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19699RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19700old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19701old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19702old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19703lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19704CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19705CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19706compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19707GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19708lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19709lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19710lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19711lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19712lt_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"`' 19713lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19714nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19715lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19716lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19717objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19718MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19719lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19720lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19721lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19722lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19723lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19724need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19725MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19726DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19727NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19728LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19729OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19730OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19731libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19732shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19733extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19734archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19735enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19736export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19737whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19738compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19739old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19740old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19741archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19742archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19743module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19744module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19745with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19746allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19747no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19748hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19749hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19750hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19751hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19752hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19753hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19754hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19755inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19756link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19757always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19758export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19759exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19760include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19761prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19762postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19763file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19764variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19765need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19766need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19767version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19768runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19769shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19770shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19771libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19772library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19773soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19774install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19775postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19776postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19777finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19778finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19779hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19780sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19781configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19782configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19783hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19784enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19785enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19786enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19787old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19788striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19789 19790LTCC='$LTCC' 19791LTCFLAGS='$LTCFLAGS' 19792compiler='$compiler_DEFAULT' 19793 19794# A function that is used when there is no print builtin or printf. 19795func_fallback_echo () 19796{ 19797 eval 'cat <<_LTECHO_EOF 19798\$1 19799_LTECHO_EOF' 19800} 19801 19802# Quote evaled strings. 19803for var in SHELL \ 19804ECHO \ 19805PATH_SEPARATOR \ 19806SED \ 19807GREP \ 19808EGREP \ 19809FGREP \ 19810LD \ 19811NM \ 19812LN_S \ 19813lt_SP2NL \ 19814lt_NL2SP \ 19815reload_flag \ 19816OBJDUMP \ 19817deplibs_check_method \ 19818file_magic_cmd \ 19819file_magic_glob \ 19820want_nocaseglob \ 19821DLLTOOL \ 19822sharedlib_from_linklib_cmd \ 19823AR \ 19824AR_FLAGS \ 19825archiver_list_spec \ 19826STRIP \ 19827RANLIB \ 19828CC \ 19829CFLAGS \ 19830compiler \ 19831lt_cv_sys_global_symbol_pipe \ 19832lt_cv_sys_global_symbol_to_cdecl \ 19833lt_cv_sys_global_symbol_to_import \ 19834lt_cv_sys_global_symbol_to_c_name_address \ 19835lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19836lt_cv_nm_interface \ 19837nm_file_list_spec \ 19838lt_cv_truncate_bin \ 19839lt_prog_compiler_no_builtin_flag \ 19840lt_prog_compiler_pic \ 19841lt_prog_compiler_wl \ 19842lt_prog_compiler_static \ 19843lt_cv_prog_compiler_c_o \ 19844need_locks \ 19845MANIFEST_TOOL \ 19846DSYMUTIL \ 19847NMEDIT \ 19848LIPO \ 19849OTOOL \ 19850OTOOL64 \ 19851shrext_cmds \ 19852export_dynamic_flag_spec \ 19853whole_archive_flag_spec \ 19854compiler_needs_object \ 19855with_gnu_ld \ 19856allow_undefined_flag \ 19857no_undefined_flag \ 19858hardcode_libdir_flag_spec \ 19859hardcode_libdir_separator \ 19860exclude_expsyms \ 19861include_expsyms \ 19862file_list_spec \ 19863variables_saved_for_relink \ 19864libname_spec \ 19865library_names_spec \ 19866soname_spec \ 19867install_override_mode \ 19868finish_eval \ 19869old_striplib \ 19870striplib; do 19871 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19872 *[\\\\\\\`\\"\\\$]*) 19873 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19874 ;; 19875 *) 19876 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19877 ;; 19878 esac 19879done 19880 19881# Double-quote double-evaled strings. 19882for var in reload_cmds \ 19883old_postinstall_cmds \ 19884old_postuninstall_cmds \ 19885old_archive_cmds \ 19886extract_expsyms_cmds \ 19887old_archive_from_new_cmds \ 19888old_archive_from_expsyms_cmds \ 19889archive_cmds \ 19890archive_expsym_cmds \ 19891module_cmds \ 19892module_expsym_cmds \ 19893export_symbols_cmds \ 19894prelink_cmds \ 19895postlink_cmds \ 19896postinstall_cmds \ 19897postuninstall_cmds \ 19898finish_cmds \ 19899sys_lib_search_path_spec \ 19900configure_time_dlsearch_path \ 19901configure_time_lt_sys_library_path; do 19902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19903 *[\\\\\\\`\\"\\\$]*) 19904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19905 ;; 19906 *) 19907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19908 ;; 19909 esac 19910done 19911 19912ac_aux_dir='$ac_aux_dir' 19913 19914# See if we are running on zsh, and set the options that allow our 19915# commands through without removal of \ escapes INIT. 19916if test -n "\${ZSH_VERSION+set}"; then 19917 setopt NO_GLOB_SUBST 19918fi 19919 19920 19921 PACKAGE='$PACKAGE' 19922 VERSION='$VERSION' 19923 RM='$RM' 19924 ofile='$ofile' 19925 19926 19927 19928 19929_ACEOF 19930 19931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19932 19933# Handling of arguments. 19934for ac_config_target in $ac_config_targets 19935do 19936 case $ac_config_target in 19937 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 19938 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19939 "src/libknot/version.h") CONFIG_FILES="$CONFIG_FILES src/libknot/version.h" ;; 19940 "src/libdnssec/version.h") CONFIG_FILES="$CONFIG_FILES src/libdnssec/version.h" ;; 19941 "src/libzscanner/version.h") CONFIG_FILES="$CONFIG_FILES src/libzscanner/version.h" ;; 19942 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19943 "src/knotd.pc") CONFIG_FILES="$CONFIG_FILES src/knotd.pc" ;; 19944 "src/libknot.pc") CONFIG_FILES="$CONFIG_FILES src/libknot.pc" ;; 19945 "src/libdnssec.pc") CONFIG_FILES="$CONFIG_FILES src/libdnssec.pc" ;; 19946 "src/libzscanner.pc") CONFIG_FILES="$CONFIG_FILES src/libzscanner.pc" ;; 19947 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19948 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 19949 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19950 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 19951 "tests-fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES tests-fuzz/Makefile" ;; 19952 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; 19953 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;; 19954 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 19955 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;; 19956 "python/libknot/__init__.py") CONFIG_FILES="$CONFIG_FILES python/libknot/__init__.py" ;; 19957 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19958 "src/libknot/xdp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libknot/xdp/Makefile" ;; 19959 "src/knot/modules/static_modules.h") CONFIG_FILES="$CONFIG_FILES src/knot/modules/static_modules.h" ;; 19960 "doc/modules.rst") CONFIG_FILES="$CONFIG_FILES doc/modules.rst" ;; 19961 19962 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19963 esac 19964done 19965 19966 19967# If the user did not use the arguments to specify the items to instantiate, 19968# then the envvar interface is used. Set only those that are not. 19969# We use the long form for the default assignment because of an extremely 19970# bizarre bug on SunOS 4.1.3. 19971if $ac_need_defaults; then 19972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19975fi 19976 19977# Have a temporary directory for convenience. Make it in the build tree 19978# simply because there is no reason against having it here, and in addition, 19979# creating and moving files from /tmp can sometimes cause problems. 19980# Hook for its removal unless debugging. 19981# Note that there is a small window in which the directory will not be cleaned: 19982# after its creation but before its name has been assigned to `$tmp'. 19983$debug || 19984{ 19985 tmp= ac_tmp= 19986 trap 'exit_status=$? 19987 : "${ac_tmp:=$tmp}" 19988 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19989' 0 19990 trap 'as_fn_exit 1' 1 2 13 15 19991} 19992# Create a (secure) tmp directory for tmp files. 19993 19994{ 19995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19996 test -d "$tmp" 19997} || 19998{ 19999 tmp=./conf$$-$RANDOM 20000 (umask 077 && mkdir "$tmp") 20001} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20002ac_tmp=$tmp 20003 20004# Set up the scripts for CONFIG_FILES section. 20005# No need to generate them if there are no CONFIG_FILES. 20006# This happens for instance with `./config.status config.h'. 20007if test -n "$CONFIG_FILES"; then 20008 20009 20010ac_cr=`echo X | tr X '\015'` 20011# On cygwin, bash can eat \r inside `` if the user requested igncr. 20012# But we know of no other shell where ac_cr would be empty at this 20013# point, so we can use a bashism as a fallback. 20014if test "x$ac_cr" = x; then 20015 eval ac_cr=\$\'\\r\' 20016fi 20017ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20018if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20019 ac_cs_awk_cr='\\r' 20020else 20021 ac_cs_awk_cr=$ac_cr 20022fi 20023 20024echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20025_ACEOF 20026 20027 20028{ 20029 echo "cat >conf$$subs.awk <<_ACEOF" && 20030 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20031 echo "_ACEOF" 20032} >conf$$subs.sh || 20033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20034ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20035ac_delim='%!_!# ' 20036for ac_last_try in false false false false false :; do 20037 . ./conf$$subs.sh || 20038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20039 20040 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20041 if test $ac_delim_n = $ac_delim_num; then 20042 break 20043 elif $ac_last_try; then 20044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20045 else 20046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20047 fi 20048done 20049rm -f conf$$subs.sh 20050 20051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20052cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20053_ACEOF 20054sed -n ' 20055h 20056s/^/S["/; s/!.*/"]=/ 20057p 20058g 20059s/^[^!]*!// 20060:repl 20061t repl 20062s/'"$ac_delim"'$// 20063t delim 20064:nl 20065h 20066s/\(.\{148\}\)..*/\1/ 20067t more1 20068s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20069p 20070n 20071b repl 20072:more1 20073s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20074p 20075g 20076s/.\{148\}// 20077t nl 20078:delim 20079h 20080s/\(.\{148\}\)..*/\1/ 20081t more2 20082s/["\\]/\\&/g; s/^/"/; s/$/"/ 20083p 20084b 20085:more2 20086s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20087p 20088g 20089s/.\{148\}// 20090t delim 20091' <conf$$subs.awk | sed ' 20092/^[^""]/{ 20093 N 20094 s/\n// 20095} 20096' >>$CONFIG_STATUS || ac_write_fail=1 20097rm -f conf$$subs.awk 20098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20099_ACAWK 20100cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20101 for (key in S) S_is_set[key] = 1 20102 FS = "" 20103 20104} 20105{ 20106 line = $ 0 20107 nfields = split(line, field, "@") 20108 substed = 0 20109 len = length(field[1]) 20110 for (i = 2; i < nfields; i++) { 20111 key = field[i] 20112 keylen = length(key) 20113 if (S_is_set[key]) { 20114 value = S[key] 20115 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20116 len += length(value) + length(field[++i]) 20117 substed = 1 20118 } else 20119 len += 1 + keylen 20120 } 20121 20122 print line 20123} 20124 20125_ACAWK 20126_ACEOF 20127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20128if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20130else 20131 cat 20132fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20133 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20134_ACEOF 20135 20136# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20137# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20138# trailing colons and then remove the whole line if VPATH becomes empty 20139# (actually we leave an empty line to preserve line numbers). 20140if test "x$srcdir" = x.; then 20141 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20142h 20143s/// 20144s/^/:/ 20145s/[ ]*$/:/ 20146s/:\$(srcdir):/:/g 20147s/:\${srcdir}:/:/g 20148s/:@srcdir@:/:/g 20149s/^:*// 20150s/:*$// 20151x 20152s/\(=[ ]*\).*/\1/ 20153G 20154s/\n// 20155s/^[^=]*=[ ]*$// 20156}' 20157fi 20158 20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20160fi # test -n "$CONFIG_FILES" 20161 20162# Set up the scripts for CONFIG_HEADERS section. 20163# No need to generate them if there are no CONFIG_HEADERS. 20164# This happens for instance with `./config.status Makefile'. 20165if test -n "$CONFIG_HEADERS"; then 20166cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20167BEGIN { 20168_ACEOF 20169 20170# Transform confdefs.h into an awk script `defines.awk', embedded as 20171# here-document in config.status, that substitutes the proper values into 20172# config.h.in to produce config.h. 20173 20174# Create a delimiter string that does not exist in confdefs.h, to ease 20175# handling of long lines. 20176ac_delim='%!_!# ' 20177for ac_last_try in false false :; do 20178 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20179 if test -z "$ac_tt"; then 20180 break 20181 elif $ac_last_try; then 20182 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20183 else 20184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20185 fi 20186done 20187 20188# For the awk script, D is an array of macro values keyed by name, 20189# likewise P contains macro parameters if any. Preserve backslash 20190# newline sequences. 20191 20192ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20193sed -n ' 20194s/.\{148\}/&'"$ac_delim"'/g 20195t rset 20196:rset 20197s/^[ ]*#[ ]*define[ ][ ]*/ / 20198t def 20199d 20200:def 20201s/\\$// 20202t bsnl 20203s/["\\]/\\&/g 20204s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20205D["\1"]=" \3"/p 20206s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20207d 20208:bsnl 20209s/["\\]/\\&/g 20210s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20211D["\1"]=" \3\\\\\\n"\\/p 20212t cont 20213s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20214t cont 20215d 20216:cont 20217n 20218s/.\{148\}/&'"$ac_delim"'/g 20219t clear 20220:clear 20221s/\\$// 20222t bsnlc 20223s/["\\]/\\&/g; s/^/"/; s/$/"/p 20224d 20225:bsnlc 20226s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20227b cont 20228' <confdefs.h | sed ' 20229s/'"$ac_delim"'/"\\\ 20230"/g' >>$CONFIG_STATUS || ac_write_fail=1 20231 20232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20233 for (key in D) D_is_set[key] = 1 20234 FS = "" 20235} 20236/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20237 line = \$ 0 20238 split(line, arg, " ") 20239 if (arg[1] == "#") { 20240 defundef = arg[2] 20241 mac1 = arg[3] 20242 } else { 20243 defundef = substr(arg[1], 2) 20244 mac1 = arg[2] 20245 } 20246 split(mac1, mac2, "(") #) 20247 macro = mac2[1] 20248 prefix = substr(line, 1, index(line, defundef) - 1) 20249 if (D_is_set[macro]) { 20250 # Preserve the white space surrounding the "#". 20251 print prefix "define", macro P[macro] D[macro] 20252 next 20253 } else { 20254 # Replace #undef with comments. This is necessary, for example, 20255 # in the case of _POSIX_SOURCE, which is predefined and required 20256 # on some systems where configure will not decide to define it. 20257 if (defundef == "undef") { 20258 print "/*", prefix defundef, macro, "*/" 20259 next 20260 } 20261 } 20262} 20263{ print } 20264_ACAWK 20265_ACEOF 20266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20267 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20268fi # test -n "$CONFIG_HEADERS" 20269 20270 20271eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20272shift 20273for ac_tag 20274do 20275 case $ac_tag in 20276 :[FHLC]) ac_mode=$ac_tag; continue;; 20277 esac 20278 case $ac_mode$ac_tag in 20279 :[FHL]*:*);; 20280 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20281 :[FH]-) ac_tag=-:-;; 20282 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20283 esac 20284 ac_save_IFS=$IFS 20285 IFS=: 20286 set x $ac_tag 20287 IFS=$ac_save_IFS 20288 shift 20289 ac_file=$1 20290 shift 20291 20292 case $ac_mode in 20293 :L) ac_source=$1;; 20294 :[FH]) 20295 ac_file_inputs= 20296 for ac_f 20297 do 20298 case $ac_f in 20299 -) ac_f="$ac_tmp/stdin";; 20300 *) # Look for the file first in the build tree, then in the source tree 20301 # (if the path is not absolute). The absolute path cannot be DOS-style, 20302 # because $ac_f cannot contain `:'. 20303 test -f "$ac_f" || 20304 case $ac_f in 20305 [\\/$]*) false;; 20306 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20307 esac || 20308 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20309 esac 20310 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20311 as_fn_append ac_file_inputs " '$ac_f'" 20312 done 20313 20314 # Let's still pretend it is `configure' which instantiates (i.e., don't 20315 # use $as_me), people would be surprised to read: 20316 # /* config.h. Generated by config.status. */ 20317 configure_input='Generated from '` 20318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20319 `' by configure.' 20320 if test x"$ac_file" != x-; then 20321 configure_input="$ac_file. $configure_input" 20322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20323$as_echo "$as_me: creating $ac_file" >&6;} 20324 fi 20325 # Neutralize special characters interpreted by sed in replacement strings. 20326 case $configure_input in #( 20327 *\&* | *\|* | *\\* ) 20328 ac_sed_conf_input=`$as_echo "$configure_input" | 20329 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20330 *) ac_sed_conf_input=$configure_input;; 20331 esac 20332 20333 case $ac_tag in 20334 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20336 esac 20337 ;; 20338 esac 20339 20340 ac_dir=`$as_dirname -- "$ac_file" || 20341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20342 X"$ac_file" : 'X\(//\)[^/]' \| \ 20343 X"$ac_file" : 'X\(//\)$' \| \ 20344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20345$as_echo X"$ac_file" | 20346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20347 s//\1/ 20348 q 20349 } 20350 /^X\(\/\/\)[^/].*/{ 20351 s//\1/ 20352 q 20353 } 20354 /^X\(\/\/\)$/{ 20355 s//\1/ 20356 q 20357 } 20358 /^X\(\/\).*/{ 20359 s//\1/ 20360 q 20361 } 20362 s/.*/./; q'` 20363 as_dir="$ac_dir"; as_fn_mkdir_p 20364 ac_builddir=. 20365 20366case "$ac_dir" in 20367.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20368*) 20369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20370 # A ".." for each directory in $ac_dir_suffix. 20371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20372 case $ac_top_builddir_sub in 20373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20375 esac ;; 20376esac 20377ac_abs_top_builddir=$ac_pwd 20378ac_abs_builddir=$ac_pwd$ac_dir_suffix 20379# for backward compatibility: 20380ac_top_builddir=$ac_top_build_prefix 20381 20382case $srcdir in 20383 .) # We are building in place. 20384 ac_srcdir=. 20385 ac_top_srcdir=$ac_top_builddir_sub 20386 ac_abs_top_srcdir=$ac_pwd ;; 20387 [\\/]* | ?:[\\/]* ) # Absolute name. 20388 ac_srcdir=$srcdir$ac_dir_suffix; 20389 ac_top_srcdir=$srcdir 20390 ac_abs_top_srcdir=$srcdir ;; 20391 *) # Relative name. 20392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20393 ac_top_srcdir=$ac_top_build_prefix$srcdir 20394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20395esac 20396ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20397 20398 20399 case $ac_mode in 20400 :F) 20401 # 20402 # CONFIG_FILE 20403 # 20404 20405 case $INSTALL in 20406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20407 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20408 esac 20409 ac_MKDIR_P=$MKDIR_P 20410 case $MKDIR_P in 20411 [\\/$]* | ?:[\\/]* ) ;; 20412 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20413 esac 20414_ACEOF 20415 20416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20417# If the template does not know about datarootdir, expand it. 20418# FIXME: This hack should be removed a few years after 2.60. 20419ac_datarootdir_hack=; ac_datarootdir_seen= 20420ac_sed_dataroot=' 20421/datarootdir/ { 20422 p 20423 q 20424} 20425/@datadir@/p 20426/@docdir@/p 20427/@infodir@/p 20428/@localedir@/p 20429/@mandir@/p' 20430case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20431*datarootdir*) ac_datarootdir_seen=yes;; 20432*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20434$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20435_ACEOF 20436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20437 ac_datarootdir_hack=' 20438 s&@datadir@&$datadir&g 20439 s&@docdir@&$docdir&g 20440 s&@infodir@&$infodir&g 20441 s&@localedir@&$localedir&g 20442 s&@mandir@&$mandir&g 20443 s&\\\${datarootdir}&$datarootdir&g' ;; 20444esac 20445_ACEOF 20446 20447# Neutralize VPATH when `$srcdir' = `.'. 20448# Shell code in configure.ac might set extrasub. 20449# FIXME: do we really want to maintain this feature? 20450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20451ac_sed_extra="$ac_vpsub 20452$extrasub 20453_ACEOF 20454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20455:t 20456/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20457s|@configure_input@|$ac_sed_conf_input|;t t 20458s&@top_builddir@&$ac_top_builddir_sub&;t t 20459s&@top_build_prefix@&$ac_top_build_prefix&;t t 20460s&@srcdir@&$ac_srcdir&;t t 20461s&@abs_srcdir@&$ac_abs_srcdir&;t t 20462s&@top_srcdir@&$ac_top_srcdir&;t t 20463s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20464s&@builddir@&$ac_builddir&;t t 20465s&@abs_builddir@&$ac_abs_builddir&;t t 20466s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20467s&@INSTALL@&$ac_INSTALL&;t t 20468s&@MKDIR_P@&$ac_MKDIR_P&;t t 20469$ac_datarootdir_hack 20470" 20471eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20472 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20473 20474test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20475 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20477 "$ac_tmp/out"`; test -z "$ac_out"; } && 20478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20479which seems to be undefined. Please make sure it is defined" >&5 20480$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20481which seems to be undefined. Please make sure it is defined" >&2;} 20482 20483 rm -f "$ac_tmp/stdin" 20484 case $ac_file in 20485 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20486 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20487 esac \ 20488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20489 ;; 20490 :H) 20491 # 20492 # CONFIG_HEADER 20493 # 20494 if test x"$ac_file" != x-; then 20495 { 20496 $as_echo "/* $configure_input */" \ 20497 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20498 } >"$ac_tmp/config.h" \ 20499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20500 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20502$as_echo "$as_me: $ac_file is unchanged" >&6;} 20503 else 20504 rm -f "$ac_file" 20505 mv "$ac_tmp/config.h" "$ac_file" \ 20506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20507 fi 20508 else 20509 $as_echo "/* $configure_input */" \ 20510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20511 || as_fn_error $? "could not create -" "$LINENO" 5 20512 fi 20513# Compute "$ac_file"'s index in $config_headers. 20514_am_arg="$ac_file" 20515_am_stamp_count=1 20516for _am_header in $config_headers :; do 20517 case $_am_header in 20518 $_am_arg | $_am_arg:* ) 20519 break ;; 20520 * ) 20521 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20522 esac 20523done 20524echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20525$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20526 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20527 X"$_am_arg" : 'X\(//\)$' \| \ 20528 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20529$as_echo X"$_am_arg" | 20530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20531 s//\1/ 20532 q 20533 } 20534 /^X\(\/\/\)[^/].*/{ 20535 s//\1/ 20536 q 20537 } 20538 /^X\(\/\/\)$/{ 20539 s//\1/ 20540 q 20541 } 20542 /^X\(\/\).*/{ 20543 s//\1/ 20544 q 20545 } 20546 s/.*/./; q'`/stamp-h$_am_stamp_count 20547 ;; 20548 20549 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20550$as_echo "$as_me: executing $ac_file commands" >&6;} 20551 ;; 20552 esac 20553 20554 20555 case $ac_file$ac_mode in 20556 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20557 # Older Autoconf quotes --file arguments for eval, but not when files 20558 # are listed without --file. Let's play safe and only enable the eval 20559 # if we detect the quoting. 20560 # TODO: see whether this extra hack can be removed once we start 20561 # requiring Autoconf 2.70 or later. 20562 case $CONFIG_FILES in #( 20563 *\'*) : 20564 eval set x "$CONFIG_FILES" ;; #( 20565 *) : 20566 set x $CONFIG_FILES ;; #( 20567 *) : 20568 ;; 20569esac 20570 shift 20571 # Used to flag and report bootstrapping failures. 20572 am_rc=0 20573 for am_mf 20574 do 20575 # Strip MF so we end up with the name of the file. 20576 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20577 # Check whether this is an Automake generated Makefile which includes 20578 # dependency-tracking related rules and includes. 20579 # Grep'ing the whole file directly is not great: AIX grep has a line 20580 # limit of 2048, but all sed's we know have understand at least 4000. 20581 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20582 || continue 20583 am_dirpart=`$as_dirname -- "$am_mf" || 20584$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20585 X"$am_mf" : 'X\(//\)[^/]' \| \ 20586 X"$am_mf" : 'X\(//\)$' \| \ 20587 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20588$as_echo X"$am_mf" | 20589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20590 s//\1/ 20591 q 20592 } 20593 /^X\(\/\/\)[^/].*/{ 20594 s//\1/ 20595 q 20596 } 20597 /^X\(\/\/\)$/{ 20598 s//\1/ 20599 q 20600 } 20601 /^X\(\/\).*/{ 20602 s//\1/ 20603 q 20604 } 20605 s/.*/./; q'` 20606 am_filepart=`$as_basename -- "$am_mf" || 20607$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20608 X"$am_mf" : 'X\(//\)$' \| \ 20609 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20610$as_echo X/"$am_mf" | 20611 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20612 s//\1/ 20613 q 20614 } 20615 /^X\/\(\/\/\)$/{ 20616 s//\1/ 20617 q 20618 } 20619 /^X\/\(\/\).*/{ 20620 s//\1/ 20621 q 20622 } 20623 s/.*/./; q'` 20624 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20625 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20626 | $MAKE -f - am--depfiles" >&5 20627 (cd "$am_dirpart" \ 20628 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20629 | $MAKE -f - am--depfiles) >&5 2>&5 20630 ac_status=$? 20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20632 (exit $ac_status); } || am_rc=$? 20633 done 20634 if test $am_rc -ne 0; then 20635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20637as_fn_error $? "Something went wrong bootstrapping makefile fragments 20638 for automatic dependency tracking. If GNU make was not used, consider 20639 re-running the configure script with MAKE=\"gmake\" (or whatever is 20640 necessary). You can also try re-running configure with the 20641 '--disable-dependency-tracking' option to at least be able to build 20642 the package (albeit without support for automatic dependency tracking). 20643See \`config.log' for more details" "$LINENO" 5; } 20644 fi 20645 { am_dirpart=; unset am_dirpart;} 20646 { am_filepart=; unset am_filepart;} 20647 { am_mf=; unset am_mf;} 20648 { am_rc=; unset am_rc;} 20649 rm -f conftest-deps.mk 20650} 20651 ;; 20652 "libtool":C) 20653 20654 # See if we are running on zsh, and set the options that allow our 20655 # commands through without removal of \ escapes. 20656 if test -n "${ZSH_VERSION+set}"; then 20657 setopt NO_GLOB_SUBST 20658 fi 20659 20660 cfgfile=${ofile}T 20661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20662 $RM "$cfgfile" 20663 20664 cat <<_LT_EOF >> "$cfgfile" 20665#! $SHELL 20666# Generated automatically by $as_me ($PACKAGE) $VERSION 20667# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20668 20669# Provide generalized library-building support services. 20670# Written by Gordon Matzigkeit, 1996 20671 20672# Copyright (C) 2014 Free Software Foundation, Inc. 20673# This is free software; see the source for copying conditions. There is NO 20674# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20675 20676# GNU Libtool is free software; you can redistribute it and/or modify 20677# it under the terms of the GNU General Public License as published by 20678# the Free Software Foundation; either version 2 of of the License, or 20679# (at your option) any later version. 20680# 20681# As a special exception to the GNU General Public License, if you 20682# distribute this file as part of a program or library that is built 20683# using GNU Libtool, you may include this file under the same 20684# distribution terms that you use for the rest of that program. 20685# 20686# GNU Libtool is distributed in the hope that it will be useful, but 20687# WITHOUT ANY WARRANTY; without even the implied warranty of 20688# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20689# GNU General Public License for more details. 20690# 20691# You should have received a copy of the GNU General Public License 20692# along with this program. If not, see <http://www.gnu.org/licenses/>. 20693 20694 20695# The names of the tagged configurations supported by this script. 20696available_tags='' 20697 20698# Configured defaults for sys_lib_dlsearch_path munging. 20699: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20700 20701# ### BEGIN LIBTOOL CONFIG 20702 20703# Which release of libtool.m4 was used? 20704macro_version=$macro_version 20705macro_revision=$macro_revision 20706 20707# Whether or not to build shared libraries. 20708build_libtool_libs=$enable_shared 20709 20710# Whether or not to build static libraries. 20711build_old_libs=$enable_static 20712 20713# What type of objects to build. 20714pic_mode=$pic_mode 20715 20716# Whether or not to optimize for fast installation. 20717fast_install=$enable_fast_install 20718 20719# Shared archive member basename,for filename based shared library versioning on AIX. 20720shared_archive_member_spec=$shared_archive_member_spec 20721 20722# Shell to use when invoking shell scripts. 20723SHELL=$lt_SHELL 20724 20725# An echo program that protects backslashes. 20726ECHO=$lt_ECHO 20727 20728# The PATH separator for the build system. 20729PATH_SEPARATOR=$lt_PATH_SEPARATOR 20730 20731# The host system. 20732host_alias=$host_alias 20733host=$host 20734host_os=$host_os 20735 20736# The build system. 20737build_alias=$build_alias 20738build=$build 20739build_os=$build_os 20740 20741# A sed program that does not truncate output. 20742SED=$lt_SED 20743 20744# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20745Xsed="\$SED -e 1s/^X//" 20746 20747# A grep program that handles long lines. 20748GREP=$lt_GREP 20749 20750# An ERE matcher. 20751EGREP=$lt_EGREP 20752 20753# A literal string matcher. 20754FGREP=$lt_FGREP 20755 20756# A BSD- or MS-compatible name lister. 20757NM=$lt_NM 20758 20759# Whether we need soft or hard links. 20760LN_S=$lt_LN_S 20761 20762# What is the maximum length of a command? 20763max_cmd_len=$max_cmd_len 20764 20765# Object file suffix (normally "o"). 20766objext=$ac_objext 20767 20768# Executable file suffix (normally ""). 20769exeext=$exeext 20770 20771# whether the shell understands "unset". 20772lt_unset=$lt_unset 20773 20774# turn spaces into newlines. 20775SP2NL=$lt_lt_SP2NL 20776 20777# turn newlines into spaces. 20778NL2SP=$lt_lt_NL2SP 20779 20780# convert \$build file names to \$host format. 20781to_host_file_cmd=$lt_cv_to_host_file_cmd 20782 20783# convert \$build files to toolchain format. 20784to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20785 20786# An object symbol dumper. 20787OBJDUMP=$lt_OBJDUMP 20788 20789# Method to check whether dependent libraries are shared objects. 20790deplibs_check_method=$lt_deplibs_check_method 20791 20792# Command to use when deplibs_check_method = "file_magic". 20793file_magic_cmd=$lt_file_magic_cmd 20794 20795# How to find potential files when deplibs_check_method = "file_magic". 20796file_magic_glob=$lt_file_magic_glob 20797 20798# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20799want_nocaseglob=$lt_want_nocaseglob 20800 20801# DLL creation program. 20802DLLTOOL=$lt_DLLTOOL 20803 20804# Command to associate shared and link libraries. 20805sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20806 20807# The archiver. 20808AR=$lt_AR 20809 20810# Flags to create an archive. 20811AR_FLAGS=$lt_AR_FLAGS 20812 20813# How to feed a file listing to the archiver. 20814archiver_list_spec=$lt_archiver_list_spec 20815 20816# A symbol stripping program. 20817STRIP=$lt_STRIP 20818 20819# Commands used to install an old-style archive. 20820RANLIB=$lt_RANLIB 20821old_postinstall_cmds=$lt_old_postinstall_cmds 20822old_postuninstall_cmds=$lt_old_postuninstall_cmds 20823 20824# Whether to use a lock for old archive extraction. 20825lock_old_archive_extraction=$lock_old_archive_extraction 20826 20827# A C compiler. 20828LTCC=$lt_CC 20829 20830# LTCC compiler flags. 20831LTCFLAGS=$lt_CFLAGS 20832 20833# Take the output of nm and produce a listing of raw symbols and C names. 20834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20835 20836# Transform the output of nm in a proper C declaration. 20837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20838 20839# Transform the output of nm into a list of symbols to manually relocate. 20840global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20841 20842# Transform the output of nm in a C name address pair. 20843global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20844 20845# Transform the output of nm in a C name address pair when lib prefix is needed. 20846global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20847 20848# The name lister interface. 20849nm_interface=$lt_lt_cv_nm_interface 20850 20851# Specify filename containing input files for \$NM. 20852nm_file_list_spec=$lt_nm_file_list_spec 20853 20854# The root where to search for dependent libraries,and where our libraries should be installed. 20855lt_sysroot=$lt_sysroot 20856 20857# Command to truncate a binary pipe. 20858lt_truncate_bin=$lt_lt_cv_truncate_bin 20859 20860# The name of the directory that contains temporary libtool files. 20861objdir=$objdir 20862 20863# Used to examine libraries when file_magic_cmd begins with "file". 20864MAGIC_CMD=$MAGIC_CMD 20865 20866# Must we lock files when doing compilation? 20867need_locks=$lt_need_locks 20868 20869# Manifest tool. 20870MANIFEST_TOOL=$lt_MANIFEST_TOOL 20871 20872# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20873DSYMUTIL=$lt_DSYMUTIL 20874 20875# Tool to change global to local symbols on Mac OS X. 20876NMEDIT=$lt_NMEDIT 20877 20878# Tool to manipulate fat objects and archives on Mac OS X. 20879LIPO=$lt_LIPO 20880 20881# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20882OTOOL=$lt_OTOOL 20883 20884# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20885OTOOL64=$lt_OTOOL64 20886 20887# Old archive suffix (normally "a"). 20888libext=$libext 20889 20890# Shared library suffix (normally ".so"). 20891shrext_cmds=$lt_shrext_cmds 20892 20893# The commands to extract the exported symbol list from a shared archive. 20894extract_expsyms_cmds=$lt_extract_expsyms_cmds 20895 20896# Variables whose values should be saved in libtool wrapper scripts and 20897# restored at link time. 20898variables_saved_for_relink=$lt_variables_saved_for_relink 20899 20900# Do we need the "lib" prefix for modules? 20901need_lib_prefix=$need_lib_prefix 20902 20903# Do we need a version for libraries? 20904need_version=$need_version 20905 20906# Library versioning type. 20907version_type=$version_type 20908 20909# Shared library runtime path variable. 20910runpath_var=$runpath_var 20911 20912# Shared library path variable. 20913shlibpath_var=$shlibpath_var 20914 20915# Is shlibpath searched before the hard-coded library search path? 20916shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20917 20918# Format of library name prefix. 20919libname_spec=$lt_libname_spec 20920 20921# List of archive names. First name is the real one, the rest are links. 20922# The last name is the one that the linker finds with -lNAME 20923library_names_spec=$lt_library_names_spec 20924 20925# The coded name of the library, if different from the real name. 20926soname_spec=$lt_soname_spec 20927 20928# Permission mode override for installation of shared libraries. 20929install_override_mode=$lt_install_override_mode 20930 20931# Command to use after installation of a shared archive. 20932postinstall_cmds=$lt_postinstall_cmds 20933 20934# Command to use after uninstallation of a shared archive. 20935postuninstall_cmds=$lt_postuninstall_cmds 20936 20937# Commands used to finish a libtool library installation in a directory. 20938finish_cmds=$lt_finish_cmds 20939 20940# As "finish_cmds", except a single script fragment to be evaled but 20941# not shown. 20942finish_eval=$lt_finish_eval 20943 20944# Whether we should hardcode library paths into libraries. 20945hardcode_into_libs=$hardcode_into_libs 20946 20947# Compile-time system search path for libraries. 20948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20949 20950# Detected run-time system search path for libraries. 20951sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20952 20953# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20954configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20955 20956# Whether dlopen is supported. 20957dlopen_support=$enable_dlopen 20958 20959# Whether dlopen of programs is supported. 20960dlopen_self=$enable_dlopen_self 20961 20962# Whether dlopen of statically linked programs is supported. 20963dlopen_self_static=$enable_dlopen_self_static 20964 20965# Commands to strip libraries. 20966old_striplib=$lt_old_striplib 20967striplib=$lt_striplib 20968 20969 20970# The linker used to build libraries. 20971LD=$lt_LD 20972 20973# How to create reloadable object files. 20974reload_flag=$lt_reload_flag 20975reload_cmds=$lt_reload_cmds 20976 20977# Commands used to build an old-style archive. 20978old_archive_cmds=$lt_old_archive_cmds 20979 20980# A language specific compiler. 20981CC=$lt_compiler 20982 20983# Is the compiler the GNU compiler? 20984with_gcc=$GCC 20985 20986# Compiler flag to turn off builtin functions. 20987no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20988 20989# Additional compiler flags for building library objects. 20990pic_flag=$lt_lt_prog_compiler_pic 20991 20992# How to pass a linker flag through the compiler. 20993wl=$lt_lt_prog_compiler_wl 20994 20995# Compiler flag to prevent dynamic linking. 20996link_static_flag=$lt_lt_prog_compiler_static 20997 20998# Does compiler simultaneously support -c and -o options? 20999compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21000 21001# Whether or not to add -lc for building shared libraries. 21002build_libtool_need_lc=$archive_cmds_need_lc 21003 21004# Whether or not to disallow shared libs when runtime libs are static. 21005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21006 21007# Compiler flag to allow reflexive dlopens. 21008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21009 21010# Compiler flag to generate shared objects directly from archives. 21011whole_archive_flag_spec=$lt_whole_archive_flag_spec 21012 21013# Whether the compiler copes with passing no objects directly. 21014compiler_needs_object=$lt_compiler_needs_object 21015 21016# Create an old-style archive from a shared archive. 21017old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21018 21019# Create a temporary old-style archive to link instead of a shared archive. 21020old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21021 21022# Commands used to build a shared archive. 21023archive_cmds=$lt_archive_cmds 21024archive_expsym_cmds=$lt_archive_expsym_cmds 21025 21026# Commands used to build a loadable module if different from building 21027# a shared archive. 21028module_cmds=$lt_module_cmds 21029module_expsym_cmds=$lt_module_expsym_cmds 21030 21031# Whether we are building with GNU ld or not. 21032with_gnu_ld=$lt_with_gnu_ld 21033 21034# Flag that allows shared libraries with undefined symbols to be built. 21035allow_undefined_flag=$lt_allow_undefined_flag 21036 21037# Flag that enforces no undefined symbols. 21038no_undefined_flag=$lt_no_undefined_flag 21039 21040# Flag to hardcode \$libdir into a binary during linking. 21041# This must work even if \$libdir does not exist 21042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21043 21044# Whether we need a single "-rpath" flag with a separated argument. 21045hardcode_libdir_separator=$lt_hardcode_libdir_separator 21046 21047# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21048# DIR into the resulting binary. 21049hardcode_direct=$hardcode_direct 21050 21051# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21052# DIR into the resulting binary and the resulting library dependency is 21053# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21054# library is relocated. 21055hardcode_direct_absolute=$hardcode_direct_absolute 21056 21057# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21058# into the resulting binary. 21059hardcode_minus_L=$hardcode_minus_L 21060 21061# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21062# into the resulting binary. 21063hardcode_shlibpath_var=$hardcode_shlibpath_var 21064 21065# Set to "yes" if building a shared library automatically hardcodes DIR 21066# into the library and all subsequent libraries and executables linked 21067# against it. 21068hardcode_automatic=$hardcode_automatic 21069 21070# Set to yes if linker adds runtime paths of dependent libraries 21071# to runtime path list. 21072inherit_rpath=$inherit_rpath 21073 21074# Whether libtool must link a program against all its dependency libraries. 21075link_all_deplibs=$link_all_deplibs 21076 21077# Set to "yes" if exported symbols are required. 21078always_export_symbols=$always_export_symbols 21079 21080# The commands to list exported symbols. 21081export_symbols_cmds=$lt_export_symbols_cmds 21082 21083# Symbols that should not be listed in the preloaded symbols. 21084exclude_expsyms=$lt_exclude_expsyms 21085 21086# Symbols that must always be exported. 21087include_expsyms=$lt_include_expsyms 21088 21089# Commands necessary for linking programs (against libraries) with templates. 21090prelink_cmds=$lt_prelink_cmds 21091 21092# Commands necessary for finishing linking programs. 21093postlink_cmds=$lt_postlink_cmds 21094 21095# Specify filename containing input files. 21096file_list_spec=$lt_file_list_spec 21097 21098# How to hardcode a shared library path into an executable. 21099hardcode_action=$hardcode_action 21100 21101# ### END LIBTOOL CONFIG 21102 21103_LT_EOF 21104 21105 cat <<'_LT_EOF' >> "$cfgfile" 21106 21107# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21108 21109# func_munge_path_list VARIABLE PATH 21110# ----------------------------------- 21111# VARIABLE is name of variable containing _space_ separated list of 21112# directories to be munged by the contents of PATH, which is string 21113# having a format: 21114# "DIR[:DIR]:" 21115# string "DIR[ DIR]" will be prepended to VARIABLE 21116# ":DIR[:DIR]" 21117# string "DIR[ DIR]" will be appended to VARIABLE 21118# "DIRP[:DIRP]::[DIRA:]DIRA" 21119# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21120# "DIRA[ DIRA]" will be appended to VARIABLE 21121# "DIR[:DIR]" 21122# VARIABLE will be replaced by "DIR[ DIR]" 21123func_munge_path_list () 21124{ 21125 case x$2 in 21126 x) 21127 ;; 21128 *:) 21129 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21130 ;; 21131 x:*) 21132 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21133 ;; 21134 *::*) 21135 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21136 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21137 ;; 21138 *) 21139 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21140 ;; 21141 esac 21142} 21143 21144 21145# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21146func_cc_basename () 21147{ 21148 for cc_temp in $*""; do 21149 case $cc_temp in 21150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21152 \-*) ;; 21153 *) break;; 21154 esac 21155 done 21156 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21157} 21158 21159 21160# ### END FUNCTIONS SHARED WITH CONFIGURE 21161 21162_LT_EOF 21163 21164 case $host_os in 21165 aix3*) 21166 cat <<\_LT_EOF >> "$cfgfile" 21167# AIX sometimes has problems with the GCC collect2 program. For some 21168# reason, if we set the COLLECT_NAMES environment variable, the problems 21169# vanish in a puff of smoke. 21170if test set != "${COLLECT_NAMES+set}"; then 21171 COLLECT_NAMES= 21172 export COLLECT_NAMES 21173fi 21174_LT_EOF 21175 ;; 21176 esac 21177 21178 21179ltmain=$ac_aux_dir/ltmain.sh 21180 21181 21182 # We use sed instead of cat because bash on DJGPP gets confused if 21183 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21184 # text mode, it properly converts lines to CR/LF. This bash problem 21185 # is reportedly fixed, but why not run on old versions too? 21186 sed '$q' "$ltmain" >> "$cfgfile" \ 21187 || (rm -f "$cfgfile"; exit 1) 21188 21189 mv -f "$cfgfile" "$ofile" || 21190 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21191 chmod +x "$ofile" 21192 21193 ;; 21194 "doc/modules.rst":F) cp doc/modules.rst "${srcdir}"/doc/modules.rst 2>/dev/null 21195 abs_srcdir=$(cd "${srcdir}" && pwd) 21196 ln -s -f "${abs_srcdir}"/src/knot/modules "${srcdir}"/doc 2>/dev/null ;; 21197 21198 esac 21199done # for ac_tag 21200 21201 21202as_fn_exit 0 21203_ACEOF 21204ac_clean_files=$ac_clean_files_save 21205 21206test $ac_write_fail = 0 || 21207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21208 21209 21210# configure is writing to config.log, and then calls config.status. 21211# config.status does its own redirection, appending to config.log. 21212# Unfortunately, on DOS this fails, as config.log is still kept open 21213# by configure, so config.status won't be able to write to it; its 21214# output is simply discarded. So we exec the FD to /dev/null, 21215# effectively closing config.log, so it can be properly (re)opened and 21216# appended to by config.status. When coming back to configure, we 21217# need to make the FD available again. 21218if test "$no_create" != yes; then 21219 ac_cs_success=: 21220 ac_config_status_args= 21221 test "$silent" = yes && 21222 ac_config_status_args="$ac_config_status_args --quiet" 21223 exec 5>/dev/null 21224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21225 exec 5>>config.log 21226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21227 # would make configure fail if this is the last instruction. 21228 $ac_cs_success || as_fn_exit 1 21229fi 21230if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21232$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21233fi 21234 21235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 21236$result_msg_base 21237" >&5 21238$as_echo " 21239$result_msg_base 21240" >&6; } 21241