1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for ldns 1.6.16. 4# 5# Report bugs to <libdns@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: libdns@nlnetlabs.nl about your system, including any 251$0: error possibly output before this message. Then install 252$0: a modern shell, or manually run the script under such a 253$0: shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='ldns' 572PACKAGE_TARNAME='libdns' 573PACKAGE_VERSION='1.6.16' 574PACKAGE_STRING='ldns 1.6.16' 575PACKAGE_BUGREPORT='libdns@nlnetlabs.nl' 576PACKAGE_URL='' 577 578ac_unique_file="packet.c" 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='LTLIBOBJS 616CONFIG_FILES 617ldns_build_config_have_attr_unused 618ldns_build_config_have_attr_format 619ldns_build_config_have_ssl 620DEFAULT_CAPATH 621DEFAULT_CAFILE 622LDNS_TRUST_ANCHOR_FILE 623WINDRES 624LIBOBJS 625ldns_build_config_have_socklen_t 626LIBPCAP_LIBS 627include_unistd_h 628include_systypes_h 629include_inttypes_h 630ldns_build_config_have_inttypes_h 631include_sys_socket_h 632LIBSSL_SSL_LIBS 633LIBSSL_LIBS 634LIBSSL_LDFLAGS 635LIBSSL_CPPFLAGS 636RUNTIME_PATH 637HAVE_SSL 638OTOOL64 639OTOOL 640LIPO 641NMEDIT 642DSYMUTIL 643MANIFEST_TOOL 644AWK 645RANLIB 646STRIP 647ac_ct_AR 648DLLTOOL 649OBJDUMP 650LN_S 651NM 652ac_ct_DUMPBIN 653DUMPBIN 654LD 655FGREP 656SED 657LIBTOOL 658AR 659libtool 660PYLDNSXUNINST 661PYLDNSXINST 662PYLDNSUNINST 663PYLDNSINST 664PYLDNSX 665PYTHON_X_CFLAGS 666swig 667PYLDNS 668SWIG_LIB 669SWIG 670SWIGPY3 671PYTHON_EXTRA_LDFLAGS 672PYTHON_EXTRA_LIBS 673PYTHON_SITE_PKG 674PYTHON_LDFLAGS 675PYTHON_CPPFLAGS 676PYTHON 677PYTHON_VERSION 678UNINSTALL_CONFIG_MANPAGE 679UNINSTALL_CONFIG 680INSTALL_CONFIG_MANPAGE 681INSTALL_CONFIG 682LINT_EXAMPLES 683CLEAN_EXAMPLES 684UNINSTALL_EXAMPLES 685INSTALL_EXAMPLES 686EXAMPLES 687LINT_DRILL 688CLEAN_DRILL 689UNINSTALL_DRILL 690INSTALL_DRILL 691DRILL 692doxygen 693LINTFLAGS 694host_os 695host_vendor 696host_cpu 697host 698build_os 699build_vendor 700build_cpu 701build 702SET_MAKE 703DEPFLAG 704EGREP 705GREP 706CPP 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714LDNS_VERSION_MICRO 715LDNS_VERSION_MINOR 716LDNS_VERSION_MAJOR 717LIBTOOL_VERSION_INFO 718target_alias 719host_alias 720build_alias 721LIBS 722ECHO_T 723ECHO_N 724ECHO_C 725DEFS 726mandir 727localedir 728libdir 729psdir 730pdfdir 731dvidir 732htmldir 733infodir 734docdir 735oldincludedir 736includedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_URL 749PACKAGE_BUGREPORT 750PACKAGE_STRING 751PACKAGE_VERSION 752PACKAGE_TARNAME 753PACKAGE_NAME 754PATH_SEPARATOR 755SHELL' 756ac_subst_files='' 757ac_user_opts=' 758enable_option_checking 759with_drill 760with_examples 761enable_ldns_config 762with_pyldns 763with_pyldnsx 764enable_shared 765enable_static 766with_pic 767enable_fast_install 768with_gnu_ld 769with_sysroot 770enable_libtool_lock 771with_ssl 772enable_sha2 773enable_gost 774enable_ecdsa 775enable_rpath 776with_trust_anchor 777with_ca_file 778with_ca_path 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788CPP 789PYTHON_VERSION' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828includedir='${prefix}/include' 829oldincludedir='/usr/include' 830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 831infodir='${datarootdir}/info' 832htmldir='${docdir}' 833dvidir='${docdir}' 834pdfdir='${docdir}' 835psdir='${docdir}' 836libdir='${exec_prefix}/lib' 837localedir='${datarootdir}/locale' 838mandir='${datarootdir}/man' 839 840ac_prev= 841ac_dashdash= 842for ac_option 843do 844 # If the previous option needs an argument, assign it. 845 if test -n "$ac_prev"; then 846 eval $ac_prev=\$ac_option 847 ac_prev= 848 continue 849 fi 850 851 case $ac_option in 852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 853 *=) ac_optarg= ;; 854 *) ac_optarg=yes ;; 855 esac 856 857 # Accept the important Cygnus configure options, so we can diagnose typos. 858 859 case $ac_dashdash$ac_option in 860 --) 861 ac_dashdash=yes ;; 862 863 -bindir | --bindir | --bindi | --bind | --bin | --bi) 864 ac_prev=bindir ;; 865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 866 bindir=$ac_optarg ;; 867 868 -build | --build | --buil | --bui | --bu) 869 ac_prev=build_alias ;; 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 871 build_alias=$ac_optarg ;; 872 873 -cache-file | --cache-file | --cache-fil | --cache-fi \ 874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 875 ac_prev=cache_file ;; 876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 878 cache_file=$ac_optarg ;; 879 880 --config-cache | -C) 881 cache_file=config.cache ;; 882 883 -datadir | --datadir | --datadi | --datad) 884 ac_prev=datadir ;; 885 -datadir=* | --datadir=* | --datadi=* | --datad=*) 886 datadir=$ac_optarg ;; 887 888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 889 | --dataroo | --dataro | --datar) 890 ac_prev=datarootdir ;; 891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 893 datarootdir=$ac_optarg ;; 894 895 -disable-* | --disable-*) 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 897 # Reject names that are not valid shell variable names. 898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 899 as_fn_error $? "invalid feature name: $ac_useropt" 900 ac_useropt_orig=$ac_useropt 901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 902 case $ac_user_opts in 903 *" 904"enable_$ac_useropt" 905"*) ;; 906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 907 ac_unrecognized_sep=', ';; 908 esac 909 eval enable_$ac_useropt=no ;; 910 911 -docdir | --docdir | --docdi | --doc | --do) 912 ac_prev=docdir ;; 913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 914 docdir=$ac_optarg ;; 915 916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 917 ac_prev=dvidir ;; 918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 919 dvidir=$ac_optarg ;; 920 921 -enable-* | --enable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=\$ac_optarg ;; 936 937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 939 | --exec | --exe | --ex) 940 ac_prev=exec_prefix ;; 941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 943 | --exec=* | --exe=* | --ex=*) 944 exec_prefix=$ac_optarg ;; 945 946 -gas | --gas | --ga | --g) 947 # Obsolete; use --with-gas. 948 with_gas=yes ;; 949 950 -help | --help | --hel | --he | -h) 951 ac_init_help=long ;; 952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 953 ac_init_help=recursive ;; 954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 955 ac_init_help=short ;; 956 957 -host | --host | --hos | --ho) 958 ac_prev=host_alias ;; 959 -host=* | --host=* | --hos=* | --ho=*) 960 host_alias=$ac_optarg ;; 961 962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 963 ac_prev=htmldir ;; 964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 965 | --ht=*) 966 htmldir=$ac_optarg ;; 967 968 -includedir | --includedir | --includedi | --included | --include \ 969 | --includ | --inclu | --incl | --inc) 970 ac_prev=includedir ;; 971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 972 | --includ=* | --inclu=* | --incl=* | --inc=*) 973 includedir=$ac_optarg ;; 974 975 -infodir | --infodir | --infodi | --infod | --info | --inf) 976 ac_prev=infodir ;; 977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 978 infodir=$ac_optarg ;; 979 980 -libdir | --libdir | --libdi | --libd) 981 ac_prev=libdir ;; 982 -libdir=* | --libdir=* | --libdi=* | --libd=*) 983 libdir=$ac_optarg ;; 984 985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 986 | --libexe | --libex | --libe) 987 ac_prev=libexecdir ;; 988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 989 | --libexe=* | --libex=* | --libe=*) 990 libexecdir=$ac_optarg ;; 991 992 -localedir | --localedir | --localedi | --localed | --locale) 993 ac_prev=localedir ;; 994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 995 localedir=$ac_optarg ;; 996 997 -localstatedir | --localstatedir | --localstatedi | --localstated \ 998 | --localstate | --localstat | --localsta | --localst | --locals) 999 ac_prev=localstatedir ;; 1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1002 localstatedir=$ac_optarg ;; 1003 1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1005 ac_prev=mandir ;; 1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1007 mandir=$ac_optarg ;; 1008 1009 -nfp | --nfp | --nf) 1010 # Obsolete; use --without-fp. 1011 with_fp=no ;; 1012 1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1014 | --no-cr | --no-c | -n) 1015 no_create=yes ;; 1016 1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1019 no_recursion=yes ;; 1020 1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1023 | --oldin | --oldi | --old | --ol | --o) 1024 ac_prev=oldincludedir ;; 1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1028 oldincludedir=$ac_optarg ;; 1029 1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1031 ac_prev=prefix ;; 1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1033 prefix=$ac_optarg ;; 1034 1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1036 | --program-pre | --program-pr | --program-p) 1037 ac_prev=program_prefix ;; 1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1040 program_prefix=$ac_optarg ;; 1041 1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1043 | --program-suf | --program-su | --program-s) 1044 ac_prev=program_suffix ;; 1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1047 program_suffix=$ac_optarg ;; 1048 1049 -program-transform-name | --program-transform-name \ 1050 | --program-transform-nam | --program-transform-na \ 1051 | --program-transform-n | --program-transform- \ 1052 | --program-transform | --program-transfor \ 1053 | --program-transfo | --program-transf \ 1054 | --program-trans | --program-tran \ 1055 | --progr-tra | --program-tr | --program-t) 1056 ac_prev=program_transform_name ;; 1057 -program-transform-name=* | --program-transform-name=* \ 1058 | --program-transform-nam=* | --program-transform-na=* \ 1059 | --program-transform-n=* | --program-transform-=* \ 1060 | --program-transform=* | --program-transfor=* \ 1061 | --program-transfo=* | --program-transf=* \ 1062 | --program-trans=* | --program-tran=* \ 1063 | --progr-tra=* | --program-tr=* | --program-t=*) 1064 program_transform_name=$ac_optarg ;; 1065 1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1067 ac_prev=pdfdir ;; 1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1069 pdfdir=$ac_optarg ;; 1070 1071 -psdir | --psdir | --psdi | --psd | --ps) 1072 ac_prev=psdir ;; 1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1074 psdir=$ac_optarg ;; 1075 1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1077 | -silent | --silent | --silen | --sile | --sil) 1078 silent=yes ;; 1079 1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1081 ac_prev=sbindir ;; 1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1083 | --sbi=* | --sb=*) 1084 sbindir=$ac_optarg ;; 1085 1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1088 | --sharedst | --shareds | --shared | --share | --shar \ 1089 | --sha | --sh) 1090 ac_prev=sharedstatedir ;; 1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1094 | --sha=* | --sh=*) 1095 sharedstatedir=$ac_optarg ;; 1096 1097 -site | --site | --sit) 1098 ac_prev=site ;; 1099 -site=* | --site=* | --sit=*) 1100 site=$ac_optarg ;; 1101 1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1103 ac_prev=srcdir ;; 1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1105 srcdir=$ac_optarg ;; 1106 1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1108 | --syscon | --sysco | --sysc | --sys | --sy) 1109 ac_prev=sysconfdir ;; 1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1112 sysconfdir=$ac_optarg ;; 1113 1114 -target | --target | --targe | --targ | --tar | --ta | --t) 1115 ac_prev=target_alias ;; 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1117 target_alias=$ac_optarg ;; 1118 1119 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1120 verbose=yes ;; 1121 1122 -version | --version | --versio | --versi | --vers | -V) 1123 ac_init_version=: ;; 1124 1125 -with-* | --with-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=no ;; 1156 1157 --x) 1158 # Obsolete; use --with-x. 1159 with_x=yes ;; 1160 1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1162 | --x-incl | --x-inc | --x-in | --x-i) 1163 ac_prev=x_includes ;; 1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1166 x_includes=$ac_optarg ;; 1167 1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1170 ac_prev=x_libraries ;; 1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1173 x_libraries=$ac_optarg ;; 1174 1175 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1176Try \`$0 --help' for more information" 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 case $ac_envvar in #( 1183 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1185 esac 1186 eval $ac_envvar=\$ac_optarg 1187 export $ac_envvar ;; 1188 1189 *) 1190 # FIXME: should be removed in autoconf 3.0. 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1195 ;; 1196 1197 esac 1198done 1199 1200if test -n "$ac_prev"; then 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1202 as_fn_error $? "missing argument to $ac_option" 1203fi 1204 1205if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1210 esac 1211fi 1212 1213# Check all directory arguments for consistency. 1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir 1218do 1219 eval ac_val=\$$ac_var 1220 # Remove trailing slashes. 1221 case $ac_val in 1222 */ ) 1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1224 eval $ac_var=\$ac_val;; 1225 esac 1226 # Be sure to have absolute directory names. 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1232done 1233 1234# There might be people who depend on the old broken behavior: `$host' 1235# used to hold the argument of --host etc. 1236# FIXME: To remove some day. 1237build=$build_alias 1238host=$host_alias 1239target=$target_alias 1240 1241# FIXME: To remove some day. 1242if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1246 If a cross compiler is detected then cross compile mode will be used" >&2 1247 elif test "x$build_alias" != "x$host_alias"; then 1248 cross_compiling=yes 1249 fi 1250fi 1251 1252ac_tool_prefix= 1253test -n "$host_alias" && ac_tool_prefix=$host_alias- 1254 1255test "$silent" = yes && exec 6>/dev/null 1256 1257 1258ac_pwd=`pwd` && test -n "$ac_pwd" && 1259ac_ls_di=`ls -di .` && 1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261 as_fn_error $? "working directory cannot be determined" 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1263 as_fn_error $? "pwd does not report name of working directory" 1264 1265 1266# Find the source files, if location was not specified. 1267if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$as_myself" || 1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$as_myself" : 'X\(//\)[^/]' \| \ 1273 X"$as_myself" : 'X\(//\)$' \| \ 1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1275$as_echo X"$as_myself" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297else 1298 ac_srcdir_defaulted=no 1299fi 1300if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1303fi 1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1305ac_abs_confdir=`( 1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1307 pwd)` 1308# When building in place, set srcdir=. 1309if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311fi 1312# Remove unnecessary trailing slashes from srcdir. 1313# Double slashes in file names in object file debugging info 1314# mess up M-x gdb in Emacs. 1315case $srcdir in 1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317esac 1318for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323done 1324 1325# 1326# Report the --help message. 1327# 1328if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332\`configure' configures ldns 1.6.16 to adapt to many kinds of systems. 1333 1334Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339Defaults for the options are specified in brackets. 1340 1341Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking ...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358By default, \`make install' will install all the files in 1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361for instance \`--prefix=\$HOME'. 1362 1363For better control, use the options below. 1364 1365Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385_ACEOF 1386 1387 cat <<\_ACEOF 1388 1389System types: 1390 --build=BUILD configure for building on BUILD [guessed] 1391 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1392_ACEOF 1393fi 1394 1395if test -n "$ac_init_help"; then 1396 case $ac_init_help in 1397 short | recursive ) echo "Configuration of ldns 1.6.16:";; 1398 esac 1399 cat <<\_ACEOF 1400 1401Optional Features: 1402 --disable-option-checking ignore unrecognized --enable/--with options 1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1405 --disable-ldns-config disable installation of ldns-config (default=enabled) 1406 --enable-shared[=PKGS] build shared libraries [default=yes] 1407 --enable-static[=PKGS] build static libraries [default=yes] 1408 --enable-fast-install[=PKGS] 1409 optimize for fast installation [default=yes] 1410 --disable-libtool-lock avoid locking (might break parallel builds) 1411 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1412 --disable-gost Disable GOST support 1413 --disable-ecdsa Disable ECDSA support 1414 --disable-rpath disable hardcoded rpath (default=enabled) 1415 1416Optional Packages: 1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1419 --with-drill Also build drill. 1420 --with-examples Also build examples. 1421 --with-pyldns generate python library, or --without-pyldns to 1422 disable Python support. 1423 --without-pyldnsx Do not install the ldnsx python module, or 1424 --with-pyldnsx to install it. 1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1426 both] 1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1428 --with-sysroot=DIR Search for dependent libraries within DIR 1429 (or the compiler's sysroot if not specified). 1430 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1431 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1432 /usr) 1433 --with-trust-anchor=KEYFILE 1434 Default location of the trust anchor file for drill 1435 and ldns-dane. [default=SYSCONFDIR/unbound/root.key] 1436 --with-ca-file=CAFILE File containing CA certificates for ldns-dane 1437 --with-ca-path=CAPATH Directory containing CA certificate files for 1438 ldns-dane 1439 1440Some influential environment variables: 1441 CC C compiler command 1442 CFLAGS C compiler flags 1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1444 nonstandard directory <lib dir> 1445 LIBS libraries to pass to the linker, e.g. -l<library> 1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 CPP C preprocessor 1449 PYTHON_VERSION 1450 The installed Python version to use, for example '2.3'. This 1451 string will be appended to the Python interpreter canonical 1452 name. 1453 1454Use these variables to override the choices made by `configure' or to help 1455it to find libraries and programs with nonstandard names/locations. 1456 1457Report bugs to <libdns@nlnetlabs.nl>. 1458_ACEOF 1459ac_status=$? 1460fi 1461 1462if test "$ac_init_help" = "recursive"; then 1463 # If there are subdirs, report their specific --help. 1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1465 test -d "$ac_dir" || 1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1467 continue 1468 ac_builddir=. 1469 1470case "$ac_dir" in 1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1472*) 1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1474 # A ".." for each directory in $ac_dir_suffix. 1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1476 case $ac_top_builddir_sub in 1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1479 esac ;; 1480esac 1481ac_abs_top_builddir=$ac_pwd 1482ac_abs_builddir=$ac_pwd$ac_dir_suffix 1483# for backward compatibility: 1484ac_top_builddir=$ac_top_build_prefix 1485 1486case $srcdir in 1487 .) # We are building in place. 1488 ac_srcdir=. 1489 ac_top_srcdir=$ac_top_builddir_sub 1490 ac_abs_top_srcdir=$ac_pwd ;; 1491 [\\/]* | ?:[\\/]* ) # Absolute name. 1492 ac_srcdir=$srcdir$ac_dir_suffix; 1493 ac_top_srcdir=$srcdir 1494 ac_abs_top_srcdir=$srcdir ;; 1495 *) # Relative name. 1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1497 ac_top_srcdir=$ac_top_build_prefix$srcdir 1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1499esac 1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1501 1502 cd "$ac_dir" || { ac_status=$?; continue; } 1503 # Check for guested configure. 1504 if test -f "$ac_srcdir/configure.gnu"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1507 elif test -f "$ac_srcdir/configure"; then 1508 echo && 1509 $SHELL "$ac_srcdir/configure" --help=recursive 1510 else 1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1512 fi || ac_status=$? 1513 cd "$ac_pwd" || { ac_status=$?; break; } 1514 done 1515fi 1516 1517test -n "$ac_init_help" && exit $ac_status 1518if $ac_init_version; then 1519 cat <<\_ACEOF 1520ldns configure 1.6.16 1521generated by GNU Autoconf 2.68 1522 1523Copyright (C) 2010 Free Software Foundation, Inc. 1524This configure script is free software; the Free Software Foundation 1525gives unlimited permission to copy, distribute and modify it. 1526_ACEOF 1527 exit 1528fi 1529 1530## ------------------------ ## 1531## Autoconf initialization. ## 1532## ------------------------ ## 1533 1534# ac_fn_c_try_compile LINENO 1535# -------------------------- 1536# Try to compile conftest.$ac_ext, and return whether this succeeded. 1537ac_fn_c_try_compile () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 rm -f conftest.$ac_objext 1541 if { { ac_try="$ac_compile" 1542case "(($ac_try" in 1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1544 *) ac_try_echo=$ac_try;; 1545esac 1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1547$as_echo "$ac_try_echo"; } >&5 1548 (eval "$ac_compile") 2>conftest.err 1549 ac_status=$? 1550 if test -s conftest.err; then 1551 grep -v '^ *+' conftest.err >conftest.er1 1552 cat conftest.er1 >&5 1553 mv -f conftest.er1 conftest.err 1554 fi 1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1556 test $ac_status = 0; } && { 1557 test -z "$ac_c_werror_flag" || 1558 test ! -s conftest.err 1559 } && test -s conftest.$ac_objext; then : 1560 ac_retval=0 1561else 1562 $as_echo "$as_me: failed program was:" >&5 1563sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 1566fi 1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1568 as_fn_set_status $ac_retval 1569 1570} # ac_fn_c_try_compile 1571 1572# ac_fn_c_try_cpp LINENO 1573# ---------------------- 1574# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_cpp () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 if { { ac_try="$ac_cpp conftest.$ac_ext" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } > conftest.i && { 1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 }; then : 1597 ac_retval=0 1598else 1599 $as_echo "$as_me: failed program was:" >&5 1600sed 's/^/| /' conftest.$ac_ext >&5 1601 1602 ac_retval=1 1603fi 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_c_try_cpp 1608 1609# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1610# ------------------------------------------------------- 1611# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1612# the include files in INCLUDES and setting the cache variable VAR 1613# accordingly. 1614ac_fn_c_check_header_mongrel () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 if eval \${$3+:} false; then : 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1619$as_echo_n "checking for $2... " >&6; } 1620if eval \${$3+:} false; then : 1621 $as_echo_n "(cached) " >&6 1622fi 1623eval ac_res=\$$3 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1625$as_echo "$ac_res" >&6; } 1626else 1627 # Is the header compilable? 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1629$as_echo_n "checking $2 usability... " >&6; } 1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1631/* end confdefs.h. */ 1632$4 1633#include <$2> 1634_ACEOF 1635if ac_fn_c_try_compile "$LINENO"; then : 1636 ac_header_compiler=yes 1637else 1638 ac_header_compiler=no 1639fi 1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1642$as_echo "$ac_header_compiler" >&6; } 1643 1644# Is the header present? 1645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1646$as_echo_n "checking $2 presence... " >&6; } 1647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1648/* end confdefs.h. */ 1649#include <$2> 1650_ACEOF 1651if ac_fn_c_try_cpp "$LINENO"; then : 1652 ac_header_preproc=yes 1653else 1654 ac_header_preproc=no 1655fi 1656rm -f conftest.err conftest.i conftest.$ac_ext 1657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1658$as_echo "$ac_header_preproc" >&6; } 1659 1660# So? What about this header? 1661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1662 yes:no: ) 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1664$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1666$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1667 ;; 1668 no:yes:* ) 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1670$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1672$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1674$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1676$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1678$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1679( $as_echo "## ---------------------------------- ## 1680## Report this to libdns@nlnetlabs.nl ## 1681## ---------------------------------- ##" 1682 ) | sed "s/^/$as_me: WARNING: /" >&2 1683 ;; 1684esac 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1686$as_echo_n "checking for $2... " >&6; } 1687if eval \${$3+:} false; then : 1688 $as_echo_n "(cached) " >&6 1689else 1690 eval "$3=\$ac_header_compiler" 1691fi 1692eval ac_res=\$$3 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1694$as_echo "$ac_res" >&6; } 1695fi 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 1698} # ac_fn_c_check_header_mongrel 1699 1700# ac_fn_c_try_run LINENO 1701# ---------------------- 1702# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1703# that executables *can* be run. 1704ac_fn_c_try_run () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 if { { ac_try="$ac_link" 1708case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_link") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1718 { { case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_try") 2>&5 1725 ac_status=$? 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; }; }; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: program exited with status $ac_status" >&5 1731 $as_echo "$as_me: failed program was:" >&5 1732sed 's/^/| /' conftest.$ac_ext >&5 1733 1734 ac_retval=$ac_status 1735fi 1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_run 1741 1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists and can be compiled using the include files in 1745# INCLUDES, setting the cache variable VAR accordingly. 1746ac_fn_c_check_header_compile () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750$as_echo_n "checking for $2... " >&6; } 1751if eval \${$3+:} false; then : 1752 $as_echo_n "(cached) " >&6 1753else 1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755/* end confdefs.h. */ 1756$4 1757#include <$2> 1758_ACEOF 1759if ac_fn_c_try_compile "$LINENO"; then : 1760 eval "$3=yes" 1761else 1762 eval "$3=no" 1763fi 1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1765fi 1766eval ac_res=\$$3 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1768$as_echo "$ac_res" >&6; } 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 1771} # ac_fn_c_check_header_compile 1772 1773# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1774# ------------------------------------------- 1775# Tests whether TYPE exists after having included INCLUDES, setting cache 1776# variable VAR accordingly. 1777ac_fn_c_check_type () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1781$as_echo_n "checking for $2... " >&6; } 1782if eval \${$3+:} false; then : 1783 $as_echo_n "(cached) " >&6 1784else 1785 eval "$3=no" 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787/* end confdefs.h. */ 1788$4 1789int 1790main () 1791{ 1792if (sizeof ($2)) 1793 return 0; 1794 ; 1795 return 0; 1796} 1797_ACEOF 1798if ac_fn_c_try_compile "$LINENO"; then : 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802int 1803main () 1804{ 1805if (sizeof (($2))) 1806 return 0; 1807 ; 1808 return 0; 1809} 1810_ACEOF 1811if ac_fn_c_try_compile "$LINENO"; then : 1812 1813else 1814 eval "$3=yes" 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1817fi 1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 1825} # ac_fn_c_check_type 1826 1827# ac_fn_c_try_link LINENO 1828# ----------------------- 1829# Try to link conftest.$ac_ext, and return whether this succeeded. 1830ac_fn_c_try_link () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 rm -f conftest.$ac_objext conftest$ac_exeext 1834 if { { ac_try="$ac_link" 1835case "(($ac_try" in 1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1837 *) ac_try_echo=$ac_try;; 1838esac 1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1840$as_echo "$ac_try_echo"; } >&5 1841 (eval "$ac_link") 2>conftest.err 1842 ac_status=$? 1843 if test -s conftest.err; then 1844 grep -v '^ *+' conftest.err >conftest.er1 1845 cat conftest.er1 >&5 1846 mv -f conftest.er1 conftest.err 1847 fi 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; } && { 1850 test -z "$ac_c_werror_flag" || 1851 test ! -s conftest.err 1852 } && test -s conftest$ac_exeext && { 1853 test "$cross_compiling" = yes || 1854 $as_test_x conftest$ac_exeext 1855 }; then : 1856 ac_retval=0 1857else 1858 $as_echo "$as_me: failed program was:" >&5 1859sed 's/^/| /' conftest.$ac_ext >&5 1860 1861 ac_retval=1 1862fi 1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1865 # interfere with the next link command; also delete a directory that is 1866 # left behind by Apple's compiler. We do this before executing the actions. 1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 as_fn_set_status $ac_retval 1870 1871} # ac_fn_c_try_link 1872 1873# ac_fn_c_check_func LINENO FUNC VAR 1874# ---------------------------------- 1875# Tests whether FUNC exists, setting the cache variable VAR accordingly 1876ac_fn_c_check_func () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1888#define $2 innocuous_$2 1889 1890/* System header to define __stub macros and hopefully few prototypes, 1891 which can conflict with char $2 (); below. 1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1893 <limits.h> exists even on freestanding compilers. */ 1894 1895#ifdef __STDC__ 1896# include <limits.h> 1897#else 1898# include <assert.h> 1899#endif 1900 1901#undef $2 1902 1903/* Override any GCC internal prototype to avoid an error. 1904 Use char because int might match the return type of a GCC 1905 builtin and then its argument prototype would still apply. */ 1906#ifdef __cplusplus 1907extern "C" 1908#endif 1909char $2 (); 1910/* The GNU C library defines this for functions which it implements 1911 to always fail with ENOSYS. Some functions are actually named 1912 something starting with __ and the normal name is an alias. */ 1913#if defined __stub_$2 || defined __stub___$2 1914choke me 1915#endif 1916 1917int 1918main () 1919{ 1920return $2 (); 1921 ; 1922 return 0; 1923} 1924_ACEOF 1925if ac_fn_c_try_link "$LINENO"; then : 1926 eval "$3=yes" 1927else 1928 eval "$3=no" 1929fi 1930rm -f core conftest.err conftest.$ac_objext \ 1931 conftest$ac_exeext conftest.$ac_ext 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1937 1938} # ac_fn_c_check_func 1939 1940# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1941# --------------------------------------------- 1942# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1943# accordingly. 1944ac_fn_c_check_decl () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 as_decl_name=`echo $2|sed 's/ *(.*//'` 1948 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1950$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1951if eval \${$3+:} false; then : 1952 $as_echo_n "(cached) " >&6 1953else 1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956$4 1957int 1958main () 1959{ 1960#ifndef $as_decl_name 1961#ifdef __cplusplus 1962 (void) $as_decl_use; 1963#else 1964 (void) $as_decl_name; 1965#endif 1966#endif 1967 1968 ; 1969 return 0; 1970} 1971_ACEOF 1972if ac_fn_c_try_compile "$LINENO"; then : 1973 eval "$3=yes" 1974else 1975 eval "$3=no" 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_decl 1985 1986# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1987# -------------------------------------------- 1988# Tries to find the compile-time value of EXPR in a program that includes 1989# INCLUDES, setting VAR accordingly. Returns whether the value could be 1990# computed 1991ac_fn_c_compute_int () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 if test "$cross_compiling" = yes; then 1995 # Depending upon the size, compute the lo and hi bounds. 1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002static int test_array [1 - 2 * !(($2) >= 0)]; 2003test_array [0] = 0 2004 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO"; then : 2010 ac_lo=0 ac_mid=0 2011 while :; do 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2019test_array [0] = 0 2020 2021 ; 2022 return 0; 2023} 2024_ACEOF 2025if ac_fn_c_try_compile "$LINENO"; then : 2026 ac_hi=$ac_mid; break 2027else 2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2029 if test $ac_lo -le $ac_mid; then 2030 ac_lo= ac_hi= 2031 break 2032 fi 2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2036 done 2037else 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044static int test_array [1 - 2 * !(($2) < 0)]; 2045test_array [0] = 0 2046 2047 ; 2048 return 0; 2049} 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 ac_hi=-1 ac_mid=-1 2053 while :; do 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057int 2058main () 2059{ 2060static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2061test_array [0] = 0 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 ac_lo=$ac_mid; break 2069else 2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2071 if test $ac_mid -le $ac_hi; then 2072 ac_lo= ac_hi= 2073 break 2074 fi 2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078 done 2079else 2080 ac_lo= ac_hi= 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085# Binary search between lo and hi bounds. 2086while test "x$ac_lo" != "x$ac_hi"; do 2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091int 2092main () 2093{ 2094static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2095test_array [0] = 0 2096 2097 ; 2098 return 0; 2099} 2100_ACEOF 2101if ac_fn_c_try_compile "$LINENO"; then : 2102 ac_hi=$ac_mid 2103else 2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107done 2108case $ac_lo in #(( 2109?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2110'') ac_retval=1 ;; 2111esac 2112 else 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$4 2116static long int longval () { return $2; } 2117static unsigned long int ulongval () { return $2; } 2118#include <stdio.h> 2119#include <stdlib.h> 2120int 2121main () 2122{ 2123 2124 FILE *f = fopen ("conftest.val", "w"); 2125 if (! f) 2126 return 1; 2127 if (($2) < 0) 2128 { 2129 long int i = longval (); 2130 if (i != ($2)) 2131 return 1; 2132 fprintf (f, "%ld", i); 2133 } 2134 else 2135 { 2136 unsigned long int i = ulongval (); 2137 if (i != ($2)) 2138 return 1; 2139 fprintf (f, "%lu", i); 2140 } 2141 /* Do not output a trailing newline, as this causes \r\n confusion 2142 on some platforms. */ 2143 return ferror (f) || fclose (f) != 0; 2144 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_run "$LINENO"; then : 2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2151else 2152 ac_retval=1 2153fi 2154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2155 conftest.$ac_objext conftest.beam conftest.$ac_ext 2156rm -f conftest.val 2157 2158 fi 2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2160 as_fn_set_status $ac_retval 2161 2162} # ac_fn_c_compute_int 2163 2164# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2165# ---------------------------------------------------- 2166# Tries to find if the field MEMBER exists in type AGGR, after including 2167# INCLUDES, setting cache variable VAR accordingly. 2168ac_fn_c_check_member () 2169{ 2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2172$as_echo_n "checking for $2.$3... " >&6; } 2173if eval \${$4+:} false; then : 2174 $as_echo_n "(cached) " >&6 2175else 2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2177/* end confdefs.h. */ 2178$5 2179int 2180main () 2181{ 2182static $2 ac_aggr; 2183if (ac_aggr.$3) 2184return 0; 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 eval "$4=yes" 2191else 2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2193/* end confdefs.h. */ 2194$5 2195int 2196main () 2197{ 2198static $2 ac_aggr; 2199if (sizeof ac_aggr.$3) 2200return 0; 2201 ; 2202 return 0; 2203} 2204_ACEOF 2205if ac_fn_c_try_compile "$LINENO"; then : 2206 eval "$4=yes" 2207else 2208 eval "$4=no" 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211fi 2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2213fi 2214eval ac_res=\$$4 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2216$as_echo "$ac_res" >&6; } 2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2218 2219} # ac_fn_c_check_member 2220cat >config.log <<_ACEOF 2221This file contains any messages produced by compilers while 2222running configure, to aid debugging if configure makes a mistake. 2223 2224It was created by ldns $as_me 1.6.16, which was 2225generated by GNU Autoconf 2.68. Invocation command line was 2226 2227 $ $0 $@ 2228 2229_ACEOF 2230exec 5>>config.log 2231{ 2232cat <<_ASUNAME 2233## --------- ## 2234## Platform. ## 2235## --------- ## 2236 2237hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2238uname -m = `(uname -m) 2>/dev/null || echo unknown` 2239uname -r = `(uname -r) 2>/dev/null || echo unknown` 2240uname -s = `(uname -s) 2>/dev/null || echo unknown` 2241uname -v = `(uname -v) 2>/dev/null || echo unknown` 2242 2243/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2244/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2245 2246/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2247/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2248/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2249/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2250/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2251/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2252/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2253 2254_ASUNAME 2255 2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2257for as_dir in $PATH 2258do 2259 IFS=$as_save_IFS 2260 test -z "$as_dir" && as_dir=. 2261 $as_echo "PATH: $as_dir" 2262 done 2263IFS=$as_save_IFS 2264 2265} >&5 2266 2267cat >&5 <<_ACEOF 2268 2269 2270## ----------- ## 2271## Core tests. ## 2272## ----------- ## 2273 2274_ACEOF 2275 2276 2277# Keep a trace of the command line. 2278# Strip out --no-create and --no-recursion so they do not pile up. 2279# Strip out --silent because we don't want to record it for future runs. 2280# Also quote any args containing shell meta-characters. 2281# Make two passes to allow for proper duplicate-argument suppression. 2282ac_configure_args= 2283ac_configure_args0= 2284ac_configure_args1= 2285ac_must_keep_next=false 2286for ac_pass in 1 2 2287do 2288 for ac_arg 2289 do 2290 case $ac_arg in 2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2293 | -silent | --silent | --silen | --sile | --sil) 2294 continue ;; 2295 *\'*) 2296 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 esac 2298 case $ac_pass in 2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2300 2) 2301 as_fn_append ac_configure_args1 " '$ac_arg'" 2302 if test $ac_must_keep_next = true; then 2303 ac_must_keep_next=false # Got value, back to normal. 2304 else 2305 case $ac_arg in 2306 *=* | --config-cache | -C | -disable-* | --disable-* \ 2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2309 | -with-* | --with-* | -without-* | --without-* | --x) 2310 case "$ac_configure_args0 " in 2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2312 esac 2313 ;; 2314 -* ) ac_must_keep_next=true ;; 2315 esac 2316 fi 2317 as_fn_append ac_configure_args " '$ac_arg'" 2318 ;; 2319 esac 2320 done 2321done 2322{ ac_configure_args0=; unset ac_configure_args0;} 2323{ ac_configure_args1=; unset ac_configure_args1;} 2324 2325# When interrupted or exit'd, cleanup temporary files, and complete 2326# config.log. We remove comments because anyway the quotes in there 2327# would cause problems or look ugly. 2328# WARNING: Use '\'' to represent an apostrophe within the trap. 2329# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2330trap 'exit_status=$? 2331 # Save into config.log some information that might help in debugging. 2332 { 2333 echo 2334 2335 $as_echo "## ---------------- ## 2336## Cache variables. ## 2337## ---------------- ##" 2338 echo 2339 # The following way of writing the cache mishandles newlines in values, 2340( 2341 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2342 eval ac_val=\$$ac_var 2343 case $ac_val in #( 2344 *${as_nl}*) 2345 case $ac_var in #( 2346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2348 esac 2349 case $ac_var in #( 2350 _ | IFS | as_nl) ;; #( 2351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2352 *) { eval $ac_var=; unset $ac_var;} ;; 2353 esac ;; 2354 esac 2355 done 2356 (set) 2>&1 | 2357 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2358 *${as_nl}ac_space=\ *) 2359 sed -n \ 2360 "s/'\''/'\''\\\\'\'''\''/g; 2361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2362 ;; #( 2363 *) 2364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2365 ;; 2366 esac | 2367 sort 2368) 2369 echo 2370 2371 $as_echo "## ----------------- ## 2372## Output variables. ## 2373## ----------------- ##" 2374 echo 2375 for ac_var in $ac_subst_vars 2376 do 2377 eval ac_val=\$$ac_var 2378 case $ac_val in 2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2380 esac 2381 $as_echo "$ac_var='\''$ac_val'\''" 2382 done | sort 2383 echo 2384 2385 if test -n "$ac_subst_files"; then 2386 $as_echo "## ------------------- ## 2387## File substitutions. ## 2388## ------------------- ##" 2389 echo 2390 for ac_var in $ac_subst_files 2391 do 2392 eval ac_val=\$$ac_var 2393 case $ac_val in 2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2395 esac 2396 $as_echo "$ac_var='\''$ac_val'\''" 2397 done | sort 2398 echo 2399 fi 2400 2401 if test -s confdefs.h; then 2402 $as_echo "## ----------- ## 2403## confdefs.h. ## 2404## ----------- ##" 2405 echo 2406 cat confdefs.h 2407 echo 2408 fi 2409 test "$ac_signal" != 0 && 2410 $as_echo "$as_me: caught signal $ac_signal" 2411 $as_echo "$as_me: exit $exit_status" 2412 } >&5 2413 rm -f core *.core core.conftest.* && 2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2415 exit $exit_status 2416' 0 2417for ac_signal in 1 2 13 15; do 2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2419done 2420ac_signal=0 2421 2422# confdefs.h avoids OS command line length limits that DEFS can exceed. 2423rm -f -r conftest* confdefs.h 2424 2425$as_echo "/* confdefs.h */" > confdefs.h 2426 2427# Predefined preprocessor variables. 2428 2429cat >>confdefs.h <<_ACEOF 2430#define PACKAGE_NAME "$PACKAGE_NAME" 2431_ACEOF 2432 2433cat >>confdefs.h <<_ACEOF 2434#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2435_ACEOF 2436 2437cat >>confdefs.h <<_ACEOF 2438#define PACKAGE_VERSION "$PACKAGE_VERSION" 2439_ACEOF 2440 2441cat >>confdefs.h <<_ACEOF 2442#define PACKAGE_STRING "$PACKAGE_STRING" 2443_ACEOF 2444 2445cat >>confdefs.h <<_ACEOF 2446#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2447_ACEOF 2448 2449cat >>confdefs.h <<_ACEOF 2450#define PACKAGE_URL "$PACKAGE_URL" 2451_ACEOF 2452 2453 2454# Let the site file select an alternate cache file if it wants to. 2455# Prefer an explicitly selected file to automatically selected ones. 2456ac_site_file1=NONE 2457ac_site_file2=NONE 2458if test -n "$CONFIG_SITE"; then 2459 # We do not want a PATH search for config.site. 2460 case $CONFIG_SITE in #(( 2461 -*) ac_site_file1=./$CONFIG_SITE;; 2462 */*) ac_site_file1=$CONFIG_SITE;; 2463 *) ac_site_file1=./$CONFIG_SITE;; 2464 esac 2465elif test "x$prefix" != xNONE; then 2466 ac_site_file1=$prefix/share/config.site 2467 ac_site_file2=$prefix/etc/config.site 2468else 2469 ac_site_file1=$ac_default_prefix/share/config.site 2470 ac_site_file2=$ac_default_prefix/etc/config.site 2471fi 2472for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2473do 2474 test "x$ac_site_file" = xNONE && continue 2475 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2477$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2478 sed 's/^/| /' "$ac_site_file" >&5 2479 . "$ac_site_file" \ 2480 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2482as_fn_error $? "failed to load site script $ac_site_file 2483See \`config.log' for more details" "$LINENO" 5; } 2484 fi 2485done 2486 2487if test -r "$cache_file"; then 2488 # Some versions of bash will fail to source /dev/null (special files 2489 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2490 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2492$as_echo "$as_me: loading cache $cache_file" >&6;} 2493 case $cache_file in 2494 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2495 *) . "./$cache_file";; 2496 esac 2497 fi 2498else 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2500$as_echo "$as_me: creating cache $cache_file" >&6;} 2501 >$cache_file 2502fi 2503 2504# Check that the precious variables saved in the cache have kept the same 2505# value. 2506ac_cache_corrupted=false 2507for ac_var in $ac_precious_vars; do 2508 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2509 eval ac_new_set=\$ac_env_${ac_var}_set 2510 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2511 eval ac_new_val=\$ac_env_${ac_var}_value 2512 case $ac_old_set,$ac_new_set in 2513 set,) 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2515$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2516 ac_cache_corrupted=: ;; 2517 ,set) 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2519$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2520 ac_cache_corrupted=: ;; 2521 ,);; 2522 *) 2523 if test "x$ac_old_val" != "x$ac_new_val"; then 2524 # differences in whitespace do not lead to failure. 2525 ac_old_val_w=`echo x $ac_old_val` 2526 ac_new_val_w=`echo x $ac_new_val` 2527 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2529$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2530 ac_cache_corrupted=: 2531 else 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2533$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2534 eval $ac_var=\$ac_old_val 2535 fi 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2537$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2539$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2540 fi;; 2541 esac 2542 # Pass precious variables to config.status. 2543 if test "$ac_new_set" = set; then 2544 case $ac_new_val in 2545 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2546 *) ac_arg=$ac_var=$ac_new_val ;; 2547 esac 2548 case " $ac_configure_args " in 2549 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2550 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2551 esac 2552 fi 2553done 2554if $ac_cache_corrupted; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2558$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2559 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2560fi 2561## -------------------- ## 2562## Main body of script. ## 2563## -------------------- ## 2564 2565ac_ext=c 2566ac_cpp='$CPP $CPPFLAGS' 2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2569ac_compiler_gnu=$ac_cv_c_compiler_gnu 2570 2571 2572 2573# needed to build correct soname 2574LIBTOOL_VERSION_INFO=1:6:16 2575 2576LDNS_VERSION_MAJOR=1 2577 2578LDNS_VERSION_MINOR=6 2579 2580LDNS_VERSION_MICRO=16 2581 2582 2583OURCPPFLAGS='' 2584CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} 2585CFLAGS="$CFLAGS" 2586 2587ac_ext=c 2588ac_cpp='$CPP $CPPFLAGS' 2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2591ac_compiler_gnu=$ac_cv_c_compiler_gnu 2592if test -n "$ac_tool_prefix"; then 2593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2594set dummy ${ac_tool_prefix}gcc; ac_word=$2 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2596$as_echo_n "checking for $ac_word... " >&6; } 2597if ${ac_cv_prog_CC+:} false; then : 2598 $as_echo_n "(cached) " >&6 2599else 2600 if test -n "$CC"; then 2601 ac_cv_prog_CC="$CC" # Let the user override the test. 2602else 2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2604for as_dir in $PATH 2605do 2606 IFS=$as_save_IFS 2607 test -z "$as_dir" && as_dir=. 2608 for ac_exec_ext in '' $ac_executable_extensions; do 2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2610 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2612 break 2 2613 fi 2614done 2615 done 2616IFS=$as_save_IFS 2617 2618fi 2619fi 2620CC=$ac_cv_prog_CC 2621if test -n "$CC"; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2623$as_echo "$CC" >&6; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2626$as_echo "no" >&6; } 2627fi 2628 2629 2630fi 2631if test -z "$ac_cv_prog_CC"; then 2632 ac_ct_CC=$CC 2633 # Extract the first word of "gcc", so it can be a program name with args. 2634set dummy gcc; ac_word=$2 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2636$as_echo_n "checking for $ac_word... " >&6; } 2637if ${ac_cv_prog_ac_ct_CC+:} false; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 if test -n "$ac_ct_CC"; then 2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2642else 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2650 ac_cv_prog_ac_ct_CC="gcc" 2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2652 break 2 2653 fi 2654done 2655 done 2656IFS=$as_save_IFS 2657 2658fi 2659fi 2660ac_ct_CC=$ac_cv_prog_ac_ct_CC 2661if test -n "$ac_ct_CC"; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2663$as_echo "$ac_ct_CC" >&6; } 2664else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666$as_echo "no" >&6; } 2667fi 2668 2669 if test "x$ac_ct_CC" = x; then 2670 CC="" 2671 else 2672 case $cross_compiling:$ac_tool_warned in 2673yes:) 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2676ac_tool_warned=yes ;; 2677esac 2678 CC=$ac_ct_CC 2679 fi 2680else 2681 CC="$ac_cv_prog_CC" 2682fi 2683 2684if test -z "$CC"; then 2685 if test -n "$ac_tool_prefix"; then 2686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2687set dummy ${ac_tool_prefix}cc; ac_word=$2 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2689$as_echo_n "checking for $ac_word... " >&6; } 2690if ${ac_cv_prog_CC+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if test -n "$CC"; then 2694 ac_cv_prog_CC="$CC" # Let the user override the test. 2695else 2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2703 ac_cv_prog_CC="${ac_tool_prefix}cc" 2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708 done 2709IFS=$as_save_IFS 2710 2711fi 2712fi 2713CC=$ac_cv_prog_CC 2714if test -n "$CC"; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2716$as_echo "$CC" >&6; } 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720fi 2721 2722 2723 fi 2724fi 2725if test -z "$CC"; then 2726 # Extract the first word of "cc", so it can be a program name with args. 2727set dummy cc; ac_word=$2 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2729$as_echo_n "checking for $ac_word... " >&6; } 2730if ${ac_cv_prog_CC+:} false; then : 2731 $as_echo_n "(cached) " >&6 2732else 2733 if test -n "$CC"; then 2734 ac_cv_prog_CC="$CC" # Let the user override the test. 2735else 2736 ac_prog_rejected=no 2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2738for as_dir in $PATH 2739do 2740 IFS=$as_save_IFS 2741 test -z "$as_dir" && as_dir=. 2742 for ac_exec_ext in '' $ac_executable_extensions; do 2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2745 ac_prog_rejected=yes 2746 continue 2747 fi 2748 ac_cv_prog_CC="cc" 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756if test $ac_prog_rejected = yes; then 2757 # We found a bogon in the path, so make sure we never use it. 2758 set dummy $ac_cv_prog_CC 2759 shift 2760 if test $# != 0; then 2761 # We chose a different compiler from the bogus one. 2762 # However, it has the same basename, so the bogon will be chosen 2763 # first if we set CC to just the basename; use the full file name. 2764 shift 2765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2766 fi 2767fi 2768fi 2769fi 2770CC=$ac_cv_prog_CC 2771if test -n "$CC"; then 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2773$as_echo "$CC" >&6; } 2774else 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2776$as_echo "no" >&6; } 2777fi 2778 2779 2780fi 2781if test -z "$CC"; then 2782 if test -n "$ac_tool_prefix"; then 2783 for ac_prog in cl.exe 2784 do 2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788$as_echo_n "checking for $ac_word... " >&6; } 2789if ${ac_cv_prog_CC+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791else 2792 if test -n "$CC"; then 2793 ac_cv_prog_CC="$CC" # Let the user override the test. 2794else 2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2796for as_dir in $PATH 2797do 2798 IFS=$as_save_IFS 2799 test -z "$as_dir" && as_dir=. 2800 for ac_exec_ext in '' $ac_executable_extensions; do 2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2804 break 2 2805 fi 2806done 2807 done 2808IFS=$as_save_IFS 2809 2810fi 2811fi 2812CC=$ac_cv_prog_CC 2813if test -n "$CC"; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2815$as_echo "$CC" >&6; } 2816else 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2818$as_echo "no" >&6; } 2819fi 2820 2821 2822 test -n "$CC" && break 2823 done 2824fi 2825if test -z "$CC"; then 2826 ac_ct_CC=$CC 2827 for ac_prog in cl.exe 2828do 2829 # Extract the first word of "$ac_prog", so it can be a program name with args. 2830set dummy $ac_prog; ac_word=$2 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if ${ac_cv_prog_ac_ct_CC+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$ac_ct_CC"; then 2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2838else 2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2840for as_dir in $PATH 2841do 2842 IFS=$as_save_IFS 2843 test -z "$as_dir" && as_dir=. 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2846 ac_cv_prog_ac_ct_CC="$ac_prog" 2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856ac_ct_CC=$ac_cv_prog_ac_ct_CC 2857if test -n "$ac_ct_CC"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2859$as_echo "$ac_ct_CC" >&6; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 2866 test -n "$ac_ct_CC" && break 2867done 2868 2869 if test "x$ac_ct_CC" = x; then 2870 CC="" 2871 else 2872 case $cross_compiling:$ac_tool_warned in 2873yes:) 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2876ac_tool_warned=yes ;; 2877esac 2878 CC=$ac_ct_CC 2879 fi 2880fi 2881 2882fi 2883 2884 2885test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2887as_fn_error $? "no acceptable C compiler found in \$PATH 2888See \`config.log' for more details" "$LINENO" 5; } 2889 2890# Provide some information about the compiler. 2891$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2892set X $ac_compile 2893ac_compiler=$2 2894for ac_option in --version -v -V -qversion; do 2895 { { ac_try="$ac_compiler $ac_option >&5" 2896case "(($ac_try" in 2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2898 *) ac_try_echo=$ac_try;; 2899esac 2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2901$as_echo "$ac_try_echo"; } >&5 2902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2903 ac_status=$? 2904 if test -s conftest.err; then 2905 sed '10a\ 2906... rest of stderr output deleted ... 2907 10q' conftest.err >conftest.er1 2908 cat conftest.er1 >&5 2909 fi 2910 rm -f conftest.er1 conftest.err 2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2912 test $ac_status = 0; } 2913done 2914 2915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2916/* end confdefs.h. */ 2917 2918int 2919main () 2920{ 2921 2922 ; 2923 return 0; 2924} 2925_ACEOF 2926ac_clean_files_save=$ac_clean_files 2927ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2928# Try to create an executable without -o first, disregard a.out. 2929# It will help us diagnose broken compilers, and finding out an intuition 2930# of exeext. 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2932$as_echo_n "checking whether the C compiler works... " >&6; } 2933ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2934 2935# The possible output files: 2936ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2937 2938ac_rmfiles= 2939for ac_file in $ac_files 2940do 2941 case $ac_file in 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2944 esac 2945done 2946rm -f $ac_rmfiles 2947 2948if { { ac_try="$ac_link_default" 2949case "(($ac_try" in 2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2951 *) ac_try_echo=$ac_try;; 2952esac 2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2954$as_echo "$ac_try_echo"; } >&5 2955 (eval "$ac_link_default") 2>&5 2956 ac_status=$? 2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2958 test $ac_status = 0; }; then : 2959 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2960# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2961# in a Makefile. We should not override ac_cv_exeext if it was cached, 2962# so that the user can short-circuit this test for compilers unknown to 2963# Autoconf. 2964for ac_file in $ac_files '' 2965do 2966 test -f "$ac_file" || continue 2967 case $ac_file in 2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2969 ;; 2970 [ab].out ) 2971 # We found the default executable, but exeext='' is most 2972 # certainly right. 2973 break;; 2974 *.* ) 2975 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2976 then :; else 2977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2978 fi 2979 # We set ac_cv_exeext here because the later test for it is not 2980 # safe: cross compilers may not add the suffix if given an `-o' 2981 # argument, so we may need to know it at that point already. 2982 # Even if this section looks crufty: it has the advantage of 2983 # actually working. 2984 break;; 2985 * ) 2986 break;; 2987 esac 2988done 2989test "$ac_cv_exeext" = no && ac_cv_exeext= 2990 2991else 2992 ac_file='' 2993fi 2994if test -z "$ac_file"; then : 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996$as_echo "no" >&6; } 2997$as_echo "$as_me: failed program was:" >&5 2998sed 's/^/| /' conftest.$ac_ext >&5 2999 3000{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3002as_fn_error 77 "C compiler cannot create executables 3003See \`config.log' for more details" "$LINENO" 5; } 3004else 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3006$as_echo "yes" >&6; } 3007fi 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3009$as_echo_n "checking for C compiler default output file name... " >&6; } 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3011$as_echo "$ac_file" >&6; } 3012ac_exeext=$ac_cv_exeext 3013 3014rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3015ac_clean_files=$ac_clean_files_save 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3017$as_echo_n "checking for suffix of executables... " >&6; } 3018if { { ac_try="$ac_link" 3019case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3024$as_echo "$ac_try_echo"; } >&5 3025 (eval "$ac_link") 2>&5 3026 ac_status=$? 3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3028 test $ac_status = 0; }; then : 3029 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3030# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3031# work properly (i.e., refer to `conftest.exe'), while it won't with 3032# `rm'. 3033for ac_file in conftest.exe conftest conftest.*; do 3034 test -f "$ac_file" || continue 3035 case $ac_file in 3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3038 break;; 3039 * ) break;; 3040 esac 3041done 3042else 3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3045as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3046See \`config.log' for more details" "$LINENO" 5; } 3047fi 3048rm -f conftest conftest$ac_cv_exeext 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3050$as_echo "$ac_cv_exeext" >&6; } 3051 3052rm -f conftest.$ac_ext 3053EXEEXT=$ac_cv_exeext 3054ac_exeext=$EXEEXT 3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3056/* end confdefs.h. */ 3057#include <stdio.h> 3058int 3059main () 3060{ 3061FILE *f = fopen ("conftest.out", "w"); 3062 return ferror (f) || fclose (f) != 0; 3063 3064 ; 3065 return 0; 3066} 3067_ACEOF 3068ac_clean_files="$ac_clean_files conftest.out" 3069# Check that the compiler produces executables we can run. If not, either 3070# the compiler is broken, or we cross compile. 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3072$as_echo_n "checking whether we are cross compiling... " >&6; } 3073if test "$cross_compiling" != yes; then 3074 { { ac_try="$ac_link" 3075case "(($ac_try" in 3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3077 *) ac_try_echo=$ac_try;; 3078esac 3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3080$as_echo "$ac_try_echo"; } >&5 3081 (eval "$ac_link") 2>&5 3082 ac_status=$? 3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3084 test $ac_status = 0; } 3085 if { ac_try='./conftest$ac_cv_exeext' 3086 { { case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3091$as_echo "$ac_try_echo"; } >&5 3092 (eval "$ac_try") 2>&5 3093 ac_status=$? 3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3095 test $ac_status = 0; }; }; then 3096 cross_compiling=no 3097 else 3098 if test "$cross_compiling" = maybe; then 3099 cross_compiling=yes 3100 else 3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3103as_fn_error $? "cannot run C compiled programs. 3104If you meant to cross compile, use \`--host'. 3105See \`config.log' for more details" "$LINENO" 5; } 3106 fi 3107 fi 3108fi 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3110$as_echo "$cross_compiling" >&6; } 3111 3112rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3113ac_clean_files=$ac_clean_files_save 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3115$as_echo_n "checking for suffix of object files... " >&6; } 3116if ${ac_cv_objext+:} false; then : 3117 $as_echo_n "(cached) " >&6 3118else 3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3120/* end confdefs.h. */ 3121 3122int 3123main () 3124{ 3125 3126 ; 3127 return 0; 3128} 3129_ACEOF 3130rm -f conftest.o conftest.obj 3131if { { ac_try="$ac_compile" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3137$as_echo "$ac_try_echo"; } >&5 3138 (eval "$ac_compile") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3141 test $ac_status = 0; }; then : 3142 for ac_file in conftest.o conftest.obj conftest.*; do 3143 test -f "$ac_file" || continue; 3144 case $ac_file in 3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3147 break;; 3148 esac 3149done 3150else 3151 $as_echo "$as_me: failed program was:" >&5 3152sed 's/^/| /' conftest.$ac_ext >&5 3153 3154{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3156as_fn_error $? "cannot compute suffix of object files: cannot compile 3157See \`config.log' for more details" "$LINENO" 5; } 3158fi 3159rm -f conftest.$ac_cv_objext conftest.$ac_ext 3160fi 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3162$as_echo "$ac_cv_objext" >&6; } 3163OBJEXT=$ac_cv_objext 3164ac_objext=$OBJEXT 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3166$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3167if ${ac_cv_c_compiler_gnu+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3171/* end confdefs.h. */ 3172 3173int 3174main () 3175{ 3176#ifndef __GNUC__ 3177 choke me 3178#endif 3179 3180 ; 3181 return 0; 3182} 3183_ACEOF 3184if ac_fn_c_try_compile "$LINENO"; then : 3185 ac_compiler_gnu=yes 3186else 3187 ac_compiler_gnu=no 3188fi 3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3190ac_cv_c_compiler_gnu=$ac_compiler_gnu 3191 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3194$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3195if test $ac_compiler_gnu = yes; then 3196 GCC=yes 3197else 3198 GCC= 3199fi 3200ac_test_CFLAGS=${CFLAGS+set} 3201ac_save_CFLAGS=$CFLAGS 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3203$as_echo_n "checking whether $CC accepts -g... " >&6; } 3204if ${ac_cv_prog_cc_g+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 ac_save_c_werror_flag=$ac_c_werror_flag 3208 ac_c_werror_flag=yes 3209 ac_cv_prog_cc_g=no 3210 CFLAGS="-g" 3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212/* end confdefs.h. */ 3213 3214int 3215main () 3216{ 3217 3218 ; 3219 return 0; 3220} 3221_ACEOF 3222if ac_fn_c_try_compile "$LINENO"; then : 3223 ac_cv_prog_cc_g=yes 3224else 3225 CFLAGS="" 3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3227/* end confdefs.h. */ 3228 3229int 3230main () 3231{ 3232 3233 ; 3234 return 0; 3235} 3236_ACEOF 3237if ac_fn_c_try_compile "$LINENO"; then : 3238 3239else 3240 ac_c_werror_flag=$ac_save_c_werror_flag 3241 CFLAGS="-g" 3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253if ac_fn_c_try_compile "$LINENO"; then : 3254 ac_cv_prog_cc_g=yes 3255fi 3256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3257fi 3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3259fi 3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3261 ac_c_werror_flag=$ac_save_c_werror_flag 3262fi 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3264$as_echo "$ac_cv_prog_cc_g" >&6; } 3265if test "$ac_test_CFLAGS" = set; then 3266 CFLAGS=$ac_save_CFLAGS 3267elif test $ac_cv_prog_cc_g = yes; then 3268 if test "$GCC" = yes; then 3269 CFLAGS="-g -O2" 3270 else 3271 CFLAGS="-g" 3272 fi 3273else 3274 if test "$GCC" = yes; then 3275 CFLAGS="-O2" 3276 else 3277 CFLAGS= 3278 fi 3279fi 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3281$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3282if ${ac_cv_prog_cc_c89+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 ac_cv_prog_cc_c89=no 3286ac_save_CC=$CC 3287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3288/* end confdefs.h. */ 3289#include <stdarg.h> 3290#include <stdio.h> 3291#include <sys/types.h> 3292#include <sys/stat.h> 3293/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3294struct buf { int x; }; 3295FILE * (*rcsopen) (struct buf *, struct stat *, int); 3296static char *e (p, i) 3297 char **p; 3298 int i; 3299{ 3300 return p[i]; 3301} 3302static char *f (char * (*g) (char **, int), char **p, ...) 3303{ 3304 char *s; 3305 va_list v; 3306 va_start (v,p); 3307 s = g (p, va_arg (v,int)); 3308 va_end (v); 3309 return s; 3310} 3311 3312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3313 function prototypes and stuff, but not '\xHH' hex character constants. 3314 These don't provoke an error unfortunately, instead are silently treated 3315 as 'x'. The following induces an error, until -std is added to get 3316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3317 array size at least. It's necessary to write '\x00'==0 to get something 3318 that's true only with -std. */ 3319int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3320 3321/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3322 inside strings and character constants. */ 3323#define FOO(x) 'x' 3324int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3325 3326int test (int i, double x); 3327struct s1 {int (*f) (int a);}; 3328struct s2 {int (*f) (double a);}; 3329int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3330int argc; 3331char **argv; 3332int 3333main () 3334{ 3335return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3341 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3342do 3343 CC="$ac_save_CC $ac_arg" 3344 if ac_fn_c_try_compile "$LINENO"; then : 3345 ac_cv_prog_cc_c89=$ac_arg 3346fi 3347rm -f core conftest.err conftest.$ac_objext 3348 test "x$ac_cv_prog_cc_c89" != "xno" && break 3349done 3350rm -f conftest.$ac_ext 3351CC=$ac_save_CC 3352 3353fi 3354# AC_CACHE_VAL 3355case "x$ac_cv_prog_cc_c89" in 3356 x) 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3358$as_echo "none needed" >&6; } ;; 3359 xno) 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3361$as_echo "unsupported" >&6; } ;; 3362 *) 3363 CC="$CC $ac_cv_prog_cc_c89" 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3365$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3366esac 3367if test "x$ac_cv_prog_cc_c89" != xno; then : 3368 3369fi 3370 3371ac_ext=c 3372ac_cpp='$CPP $CPPFLAGS' 3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3375ac_compiler_gnu=$ac_cv_c_compiler_gnu 3376 3377 3378ac_ext=c 3379ac_cpp='$CPP $CPPFLAGS' 3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3382ac_compiler_gnu=$ac_cv_c_compiler_gnu 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3384$as_echo_n "checking how to run the C preprocessor... " >&6; } 3385# On Suns, sometimes $CPP names a directory. 3386if test -n "$CPP" && test -d "$CPP"; then 3387 CPP= 3388fi 3389if test -z "$CPP"; then 3390 if ${ac_cv_prog_CPP+:} false; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 # Double quotes because CPP needs to be expanded 3394 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3395 do 3396 ac_preproc_ok=false 3397for ac_c_preproc_warn_flag in '' yes 3398do 3399 # Use a header file that comes with gcc, so configuring glibc 3400 # with a fresh cross-compiler works. 3401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3402 # <limits.h> exists even on freestanding compilers. 3403 # On the NeXT, cc -E runs the code through the compiler's parser, 3404 # not just through cpp. "Syntax error" is here to catch this case. 3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3406/* end confdefs.h. */ 3407#ifdef __STDC__ 3408# include <limits.h> 3409#else 3410# include <assert.h> 3411#endif 3412 Syntax error 3413_ACEOF 3414if ac_fn_c_try_cpp "$LINENO"; then : 3415 3416else 3417 # Broken: fails on valid input. 3418continue 3419fi 3420rm -f conftest.err conftest.i conftest.$ac_ext 3421 3422 # OK, works on sane cases. Now check whether nonexistent headers 3423 # can be detected and how. 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3425/* end confdefs.h. */ 3426#include <ac_nonexistent.h> 3427_ACEOF 3428if ac_fn_c_try_cpp "$LINENO"; then : 3429 # Broken: success on invalid input. 3430continue 3431else 3432 # Passes both tests. 3433ac_preproc_ok=: 3434break 3435fi 3436rm -f conftest.err conftest.i conftest.$ac_ext 3437 3438done 3439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3440rm -f conftest.i conftest.err conftest.$ac_ext 3441if $ac_preproc_ok; then : 3442 break 3443fi 3444 3445 done 3446 ac_cv_prog_CPP=$CPP 3447 3448fi 3449 CPP=$ac_cv_prog_CPP 3450else 3451 ac_cv_prog_CPP=$CPP 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3454$as_echo "$CPP" >&6; } 3455ac_preproc_ok=false 3456for ac_c_preproc_warn_flag in '' yes 3457do 3458 # Use a header file that comes with gcc, so configuring glibc 3459 # with a fresh cross-compiler works. 3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3461 # <limits.h> exists even on freestanding compilers. 3462 # On the NeXT, cc -E runs the code through the compiler's parser, 3463 # not just through cpp. "Syntax error" is here to catch this case. 3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466#ifdef __STDC__ 3467# include <limits.h> 3468#else 3469# include <assert.h> 3470#endif 3471 Syntax error 3472_ACEOF 3473if ac_fn_c_try_cpp "$LINENO"; then : 3474 3475else 3476 # Broken: fails on valid input. 3477continue 3478fi 3479rm -f conftest.err conftest.i conftest.$ac_ext 3480 3481 # OK, works on sane cases. Now check whether nonexistent headers 3482 # can be detected and how. 3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <ac_nonexistent.h> 3486_ACEOF 3487if ac_fn_c_try_cpp "$LINENO"; then : 3488 # Broken: success on invalid input. 3489continue 3490else 3491 # Passes both tests. 3492ac_preproc_ok=: 3493break 3494fi 3495rm -f conftest.err conftest.i conftest.$ac_ext 3496 3497done 3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3499rm -f conftest.i conftest.err conftest.$ac_ext 3500if $ac_preproc_ok; then : 3501 3502else 3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3505as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3506See \`config.log' for more details" "$LINENO" 5; } 3507fi 3508 3509ac_ext=c 3510ac_cpp='$CPP $CPPFLAGS' 3511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3513ac_compiler_gnu=$ac_cv_c_compiler_gnu 3514 3515 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3517$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3518if ${ac_cv_path_GREP+:} false; then : 3519 $as_echo_n "(cached) " >&6 3520else 3521 if test -z "$GREP"; then 3522 ac_path_GREP_found=false 3523 # Loop through the user's path and test for each of PROGNAME-LIST 3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3526do 3527 IFS=$as_save_IFS 3528 test -z "$as_dir" && as_dir=. 3529 for ac_prog in grep ggrep; do 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3533# Check for GNU ac_path_GREP and select it if it is found. 3534 # Check for GNU $ac_path_GREP 3535case `"$ac_path_GREP" --version 2>&1` in 3536*GNU*) 3537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3538*) 3539 ac_count=0 3540 $as_echo_n 0123456789 >"conftest.in" 3541 while : 3542 do 3543 cat "conftest.in" "conftest.in" >"conftest.tmp" 3544 mv "conftest.tmp" "conftest.in" 3545 cp "conftest.in" "conftest.nl" 3546 $as_echo 'GREP' >> "conftest.nl" 3547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3549 as_fn_arith $ac_count + 1 && ac_count=$as_val 3550 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3551 # Best one so far, save it but keep looking for a better one 3552 ac_cv_path_GREP="$ac_path_GREP" 3553 ac_path_GREP_max=$ac_count 3554 fi 3555 # 10*(2^10) chars as input seems more than enough 3556 test $ac_count -gt 10 && break 3557 done 3558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3559esac 3560 3561 $ac_path_GREP_found && break 3 3562 done 3563 done 3564 done 3565IFS=$as_save_IFS 3566 if test -z "$ac_cv_path_GREP"; then 3567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3568 fi 3569else 3570 ac_cv_path_GREP=$GREP 3571fi 3572 3573fi 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3575$as_echo "$ac_cv_path_GREP" >&6; } 3576 GREP="$ac_cv_path_GREP" 3577 3578 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3580$as_echo_n "checking for egrep... " >&6; } 3581if ${ac_cv_path_EGREP+:} false; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3585 then ac_cv_path_EGREP="$GREP -E" 3586 else 3587 if test -z "$EGREP"; then 3588 ac_path_EGREP_found=false 3589 # Loop through the user's path and test for each of PROGNAME-LIST 3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 for ac_prog in egrep; do 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3599# Check for GNU ac_path_EGREP and select it if it is found. 3600 # Check for GNU $ac_path_EGREP 3601case `"$ac_path_EGREP" --version 2>&1` in 3602*GNU*) 3603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3604*) 3605 ac_count=0 3606 $as_echo_n 0123456789 >"conftest.in" 3607 while : 3608 do 3609 cat "conftest.in" "conftest.in" >"conftest.tmp" 3610 mv "conftest.tmp" "conftest.in" 3611 cp "conftest.in" "conftest.nl" 3612 $as_echo 'EGREP' >> "conftest.nl" 3613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3615 as_fn_arith $ac_count + 1 && ac_count=$as_val 3616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3617 # Best one so far, save it but keep looking for a better one 3618 ac_cv_path_EGREP="$ac_path_EGREP" 3619 ac_path_EGREP_max=$ac_count 3620 fi 3621 # 10*(2^10) chars as input seems more than enough 3622 test $ac_count -gt 10 && break 3623 done 3624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3625esac 3626 3627 $ac_path_EGREP_found && break 3 3628 done 3629 done 3630 done 3631IFS=$as_save_IFS 3632 if test -z "$ac_cv_path_EGREP"; then 3633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3634 fi 3635else 3636 ac_cv_path_EGREP=$EGREP 3637fi 3638 3639 fi 3640fi 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3642$as_echo "$ac_cv_path_EGREP" >&6; } 3643 EGREP="$ac_cv_path_EGREP" 3644 3645 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3647$as_echo_n "checking for ANSI C header files... " >&6; } 3648if ${ac_cv_header_stdc+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650else 3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3652/* end confdefs.h. */ 3653#include <stdlib.h> 3654#include <stdarg.h> 3655#include <string.h> 3656#include <float.h> 3657 3658int 3659main () 3660{ 3661 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666if ac_fn_c_try_compile "$LINENO"; then : 3667 ac_cv_header_stdc=yes 3668else 3669 ac_cv_header_stdc=no 3670fi 3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3672 3673if test $ac_cv_header_stdc = yes; then 3674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677#include <string.h> 3678 3679_ACEOF 3680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3681 $EGREP "memchr" >/dev/null 2>&1; then : 3682 3683else 3684 ac_cv_header_stdc=no 3685fi 3686rm -f conftest* 3687 3688fi 3689 3690if test $ac_cv_header_stdc = yes; then 3691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694#include <stdlib.h> 3695 3696_ACEOF 3697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3698 $EGREP "free" >/dev/null 2>&1; then : 3699 3700else 3701 ac_cv_header_stdc=no 3702fi 3703rm -f conftest* 3704 3705fi 3706 3707if test $ac_cv_header_stdc = yes; then 3708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3709 if test "$cross_compiling" = yes; then : 3710 : 3711else 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714#include <ctype.h> 3715#include <stdlib.h> 3716#if ((' ' & 0x0FF) == 0x020) 3717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3719#else 3720# define ISLOWER(c) \ 3721 (('a' <= (c) && (c) <= 'i') \ 3722 || ('j' <= (c) && (c) <= 'r') \ 3723 || ('s' <= (c) && (c) <= 'z')) 3724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3725#endif 3726 3727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3728int 3729main () 3730{ 3731 int i; 3732 for (i = 0; i < 256; i++) 3733 if (XOR (islower (i), ISLOWER (i)) 3734 || toupper (i) != TOUPPER (i)) 3735 return 2; 3736 return 0; 3737} 3738_ACEOF 3739if ac_fn_c_try_run "$LINENO"; then : 3740 3741else 3742 ac_cv_header_stdc=no 3743fi 3744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3745 conftest.$ac_objext conftest.beam conftest.$ac_ext 3746fi 3747 3748fi 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3751$as_echo "$ac_cv_header_stdc" >&6; } 3752if test $ac_cv_header_stdc = yes; then 3753 3754$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3755 3756fi 3757 3758# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3760 inttypes.h stdint.h unistd.h 3761do : 3762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3764" 3765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3766 cat >>confdefs.h <<_ACEOF 3767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3768_ACEOF 3769 3770fi 3771 3772done 3773 3774 3775 3776 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3777if test "x$ac_cv_header_minix_config_h" = xyes; then : 3778 MINIX=yes 3779else 3780 MINIX= 3781fi 3782 3783 3784 if test "$MINIX" = yes; then 3785 3786$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3787 3788 3789$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3790 3791 3792$as_echo "#define _MINIX 1" >>confdefs.h 3793 3794 fi 3795 3796 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3798$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3799if ${ac_cv_safe_to_define___extensions__+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805# define __EXTENSIONS__ 1 3806 $ac_includes_default 3807int 3808main () 3809{ 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815if ac_fn_c_try_compile "$LINENO"; then : 3816 ac_cv_safe_to_define___extensions__=yes 3817else 3818 ac_cv_safe_to_define___extensions__=no 3819fi 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3823$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3824 test $ac_cv_safe_to_define___extensions__ = yes && 3825 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3826 3827 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3828 3829 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3830 3831 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3832 3833 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3834 3835 3836 3837# Checks for programs. 3838ac_ext=c 3839ac_cpp='$CPP $CPPFLAGS' 3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3842ac_compiler_gnu=$ac_cv_c_compiler_gnu 3843if test -n "$ac_tool_prefix"; then 3844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3845set dummy ${ac_tool_prefix}gcc; ac_word=$2 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3847$as_echo_n "checking for $ac_word... " >&6; } 3848if ${ac_cv_prog_CC+:} false; then : 3849 $as_echo_n "(cached) " >&6 3850else 3851 if test -n "$CC"; then 3852 ac_cv_prog_CC="$CC" # Let the user override the test. 3853else 3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3855for as_dir in $PATH 3856do 3857 IFS=$as_save_IFS 3858 test -z "$as_dir" && as_dir=. 3859 for ac_exec_ext in '' $ac_executable_extensions; do 3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3861 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3863 break 2 3864 fi 3865done 3866 done 3867IFS=$as_save_IFS 3868 3869fi 3870fi 3871CC=$ac_cv_prog_CC 3872if test -n "$CC"; then 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3874$as_echo "$CC" >&6; } 3875else 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3877$as_echo "no" >&6; } 3878fi 3879 3880 3881fi 3882if test -z "$ac_cv_prog_CC"; then 3883 ac_ct_CC=$CC 3884 # Extract the first word of "gcc", so it can be a program name with args. 3885set dummy gcc; ac_word=$2 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3887$as_echo_n "checking for $ac_word... " >&6; } 3888if ${ac_cv_prog_ac_ct_CC+:} false; then : 3889 $as_echo_n "(cached) " >&6 3890else 3891 if test -n "$ac_ct_CC"; then 3892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3893else 3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895for as_dir in $PATH 3896do 3897 IFS=$as_save_IFS 3898 test -z "$as_dir" && as_dir=. 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3901 ac_cv_prog_ac_ct_CC="gcc" 3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905done 3906 done 3907IFS=$as_save_IFS 3908 3909fi 3910fi 3911ac_ct_CC=$ac_cv_prog_ac_ct_CC 3912if test -n "$ac_ct_CC"; then 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3914$as_echo "$ac_ct_CC" >&6; } 3915else 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3917$as_echo "no" >&6; } 3918fi 3919 3920 if test "x$ac_ct_CC" = x; then 3921 CC="" 3922 else 3923 case $cross_compiling:$ac_tool_warned in 3924yes:) 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3927ac_tool_warned=yes ;; 3928esac 3929 CC=$ac_ct_CC 3930 fi 3931else 3932 CC="$ac_cv_prog_CC" 3933fi 3934 3935if test -z "$CC"; then 3936 if test -n "$ac_tool_prefix"; then 3937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3938set dummy ${ac_tool_prefix}cc; ac_word=$2 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3940$as_echo_n "checking for $ac_word... " >&6; } 3941if ${ac_cv_prog_CC+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 if test -n "$CC"; then 3945 ac_cv_prog_CC="$CC" # Let the user override the test. 3946else 3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3948for as_dir in $PATH 3949do 3950 IFS=$as_save_IFS 3951 test -z "$as_dir" && as_dir=. 3952 for ac_exec_ext in '' $ac_executable_extensions; do 3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3954 ac_cv_prog_CC="${ac_tool_prefix}cc" 3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3956 break 2 3957 fi 3958done 3959 done 3960IFS=$as_save_IFS 3961 3962fi 3963fi 3964CC=$ac_cv_prog_CC 3965if test -n "$CC"; then 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3967$as_echo "$CC" >&6; } 3968else 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3970$as_echo "no" >&6; } 3971fi 3972 3973 3974 fi 3975fi 3976if test -z "$CC"; then 3977 # Extract the first word of "cc", so it can be a program name with args. 3978set dummy cc; ac_word=$2 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3980$as_echo_n "checking for $ac_word... " >&6; } 3981if ${ac_cv_prog_CC+:} false; then : 3982 $as_echo_n "(cached) " >&6 3983else 3984 if test -n "$CC"; then 3985 ac_cv_prog_CC="$CC" # Let the user override the test. 3986else 3987 ac_prog_rejected=no 3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989for as_dir in $PATH 3990do 3991 IFS=$as_save_IFS 3992 test -z "$as_dir" && as_dir=. 3993 for ac_exec_ext in '' $ac_executable_extensions; do 3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3996 ac_prog_rejected=yes 3997 continue 3998 fi 3999 ac_cv_prog_CC="cc" 4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4001 break 2 4002 fi 4003done 4004 done 4005IFS=$as_save_IFS 4006 4007if test $ac_prog_rejected = yes; then 4008 # We found a bogon in the path, so make sure we never use it. 4009 set dummy $ac_cv_prog_CC 4010 shift 4011 if test $# != 0; then 4012 # We chose a different compiler from the bogus one. 4013 # However, it has the same basename, so the bogon will be chosen 4014 # first if we set CC to just the basename; use the full file name. 4015 shift 4016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4017 fi 4018fi 4019fi 4020fi 4021CC=$ac_cv_prog_CC 4022if test -n "$CC"; then 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4024$as_echo "$CC" >&6; } 4025else 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4027$as_echo "no" >&6; } 4028fi 4029 4030 4031fi 4032if test -z "$CC"; then 4033 if test -n "$ac_tool_prefix"; then 4034 for ac_prog in cl.exe 4035 do 4036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4039$as_echo_n "checking for $ac_word... " >&6; } 4040if ${ac_cv_prog_CC+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 if test -n "$CC"; then 4044 ac_cv_prog_CC="$CC" # Let the user override the test. 4045else 4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4047for as_dir in $PATH 4048do 4049 IFS=$as_save_IFS 4050 test -z "$as_dir" && as_dir=. 4051 for ac_exec_ext in '' $ac_executable_extensions; do 4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4055 break 2 4056 fi 4057done 4058 done 4059IFS=$as_save_IFS 4060 4061fi 4062fi 4063CC=$ac_cv_prog_CC 4064if test -n "$CC"; then 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4066$as_echo "$CC" >&6; } 4067else 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069$as_echo "no" >&6; } 4070fi 4071 4072 4073 test -n "$CC" && break 4074 done 4075fi 4076if test -z "$CC"; then 4077 ac_ct_CC=$CC 4078 for ac_prog in cl.exe 4079do 4080 # Extract the first word of "$ac_prog", so it can be a program name with args. 4081set dummy $ac_prog; ac_word=$2 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4083$as_echo_n "checking for $ac_word... " >&6; } 4084if ${ac_cv_prog_ac_ct_CC+:} false; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 if test -n "$ac_ct_CC"; then 4088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4089else 4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091for as_dir in $PATH 4092do 4093 IFS=$as_save_IFS 4094 test -z "$as_dir" && as_dir=. 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4097 ac_cv_prog_ac_ct_CC="$ac_prog" 4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4099 break 2 4100 fi 4101done 4102 done 4103IFS=$as_save_IFS 4104 4105fi 4106fi 4107ac_ct_CC=$ac_cv_prog_ac_ct_CC 4108if test -n "$ac_ct_CC"; then 4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4110$as_echo "$ac_ct_CC" >&6; } 4111else 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4113$as_echo "no" >&6; } 4114fi 4115 4116 4117 test -n "$ac_ct_CC" && break 4118done 4119 4120 if test "x$ac_ct_CC" = x; then 4121 CC="" 4122 else 4123 case $cross_compiling:$ac_tool_warned in 4124yes:) 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4127ac_tool_warned=yes ;; 4128esac 4129 CC=$ac_ct_CC 4130 fi 4131fi 4132 4133fi 4134 4135 4136test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4138as_fn_error $? "no acceptable C compiler found in \$PATH 4139See \`config.log' for more details" "$LINENO" 5; } 4140 4141# Provide some information about the compiler. 4142$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4143set X $ac_compile 4144ac_compiler=$2 4145for ac_option in --version -v -V -qversion; do 4146 { { ac_try="$ac_compiler $ac_option >&5" 4147case "(($ac_try" in 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4149 *) ac_try_echo=$ac_try;; 4150esac 4151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4152$as_echo "$ac_try_echo"; } >&5 4153 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4154 ac_status=$? 4155 if test -s conftest.err; then 4156 sed '10a\ 4157... rest of stderr output deleted ... 4158 10q' conftest.err >conftest.er1 4159 cat conftest.er1 >&5 4160 fi 4161 rm -f conftest.er1 conftest.err 4162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4163 test $ac_status = 0; } 4164done 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4167$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4168if ${ac_cv_c_compiler_gnu+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173 4174int 4175main () 4176{ 4177#ifndef __GNUC__ 4178 choke me 4179#endif 4180 4181 ; 4182 return 0; 4183} 4184_ACEOF 4185if ac_fn_c_try_compile "$LINENO"; then : 4186 ac_compiler_gnu=yes 4187else 4188 ac_compiler_gnu=no 4189fi 4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4191ac_cv_c_compiler_gnu=$ac_compiler_gnu 4192 4193fi 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4195$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4196if test $ac_compiler_gnu = yes; then 4197 GCC=yes 4198else 4199 GCC= 4200fi 4201ac_test_CFLAGS=${CFLAGS+set} 4202ac_save_CFLAGS=$CFLAGS 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4204$as_echo_n "checking whether $CC accepts -g... " >&6; } 4205if ${ac_cv_prog_cc_g+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 ac_save_c_werror_flag=$ac_c_werror_flag 4209 ac_c_werror_flag=yes 4210 ac_cv_prog_cc_g=no 4211 CFLAGS="-g" 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214 4215int 4216main () 4217{ 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223if ac_fn_c_try_compile "$LINENO"; then : 4224 ac_cv_prog_cc_g=yes 4225else 4226 CFLAGS="" 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229 4230int 4231main () 4232{ 4233 4234 ; 4235 return 0; 4236} 4237_ACEOF 4238if ac_fn_c_try_compile "$LINENO"; then : 4239 4240else 4241 ac_c_werror_flag=$ac_save_c_werror_flag 4242 CFLAGS="-g" 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245 4246int 4247main () 4248{ 4249 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_prog_cc_g=yes 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4258fi 4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4260fi 4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4262 ac_c_werror_flag=$ac_save_c_werror_flag 4263fi 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4265$as_echo "$ac_cv_prog_cc_g" >&6; } 4266if test "$ac_test_CFLAGS" = set; then 4267 CFLAGS=$ac_save_CFLAGS 4268elif test $ac_cv_prog_cc_g = yes; then 4269 if test "$GCC" = yes; then 4270 CFLAGS="-g -O2" 4271 else 4272 CFLAGS="-g" 4273 fi 4274else 4275 if test "$GCC" = yes; then 4276 CFLAGS="-O2" 4277 else 4278 CFLAGS= 4279 fi 4280fi 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4282$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4283if ${ac_cv_prog_cc_c89+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285else 4286 ac_cv_prog_cc_c89=no 4287ac_save_CC=$CC 4288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <stdarg.h> 4291#include <stdio.h> 4292#include <sys/types.h> 4293#include <sys/stat.h> 4294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4295struct buf { int x; }; 4296FILE * (*rcsopen) (struct buf *, struct stat *, int); 4297static char *e (p, i) 4298 char **p; 4299 int i; 4300{ 4301 return p[i]; 4302} 4303static char *f (char * (*g) (char **, int), char **p, ...) 4304{ 4305 char *s; 4306 va_list v; 4307 va_start (v,p); 4308 s = g (p, va_arg (v,int)); 4309 va_end (v); 4310 return s; 4311} 4312 4313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4314 function prototypes and stuff, but not '\xHH' hex character constants. 4315 These don't provoke an error unfortunately, instead are silently treated 4316 as 'x'. The following induces an error, until -std is added to get 4317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4318 array size at least. It's necessary to write '\x00'==0 to get something 4319 that's true only with -std. */ 4320int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4321 4322/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4323 inside strings and character constants. */ 4324#define FOO(x) 'x' 4325int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4326 4327int test (int i, double x); 4328struct s1 {int (*f) (int a);}; 4329struct s2 {int (*f) (double a);}; 4330int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4331int argc; 4332char **argv; 4333int 4334main () 4335{ 4336return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4337 ; 4338 return 0; 4339} 4340_ACEOF 4341for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4342 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4343do 4344 CC="$ac_save_CC $ac_arg" 4345 if ac_fn_c_try_compile "$LINENO"; then : 4346 ac_cv_prog_cc_c89=$ac_arg 4347fi 4348rm -f core conftest.err conftest.$ac_objext 4349 test "x$ac_cv_prog_cc_c89" != "xno" && break 4350done 4351rm -f conftest.$ac_ext 4352CC=$ac_save_CC 4353 4354fi 4355# AC_CACHE_VAL 4356case "x$ac_cv_prog_cc_c89" in 4357 x) 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4359$as_echo "none needed" >&6; } ;; 4360 xno) 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4362$as_echo "unsupported" >&6; } ;; 4363 *) 4364 CC="$CC $ac_cv_prog_cc_c89" 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4366$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4367esac 4368if test "x$ac_cv_prog_cc_c89" != xno; then : 4369 4370fi 4371 4372ac_ext=c 4373ac_cpp='$CPP $CPPFLAGS' 4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4376ac_compiler_gnu=$ac_cv_c_compiler_gnu 4377 4378 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4380$as_echo_n "checking $CC dependency flag... " >&6; } 4381echo 'void f(){}' >conftest.c 4382if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4383 DEPFLAG="-MM" 4384else 4385 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4386 DEPFLAG="-xM1" 4387 else 4388 DEPFLAG="-MM" # dunno do something 4389 fi 4390fi 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4392$as_echo "$DEPFLAG" >&6; } 4393rm -f conftest.c 4394 4395 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4397$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4398set x ${MAKE-make} 4399ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4400if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 cat >conftest.make <<\_ACEOF 4404SHELL = /bin/sh 4405all: 4406 @echo '@@@%%%=$(MAKE)=@@@%%%' 4407_ACEOF 4408# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4409case `${MAKE-make} -f conftest.make 2>/dev/null` in 4410 *@@@%%%=?*=@@@%%%*) 4411 eval ac_cv_prog_make_${ac_make}_set=yes;; 4412 *) 4413 eval ac_cv_prog_make_${ac_make}_set=no;; 4414esac 4415rm -f conftest.make 4416fi 4417if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4419$as_echo "yes" >&6; } 4420 SET_MAKE= 4421else 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4423$as_echo "no" >&6; } 4424 SET_MAKE="MAKE=${MAKE-make}" 4425fi 4426 4427 4428# Extra (sp)lint flags for NetBSD 4429ac_aux_dir= 4430for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4431 if test -f "$ac_dir/install-sh"; then 4432 ac_aux_dir=$ac_dir 4433 ac_install_sh="$ac_aux_dir/install-sh -c" 4434 break 4435 elif test -f "$ac_dir/install.sh"; then 4436 ac_aux_dir=$ac_dir 4437 ac_install_sh="$ac_aux_dir/install.sh -c" 4438 break 4439 elif test -f "$ac_dir/shtool"; then 4440 ac_aux_dir=$ac_dir 4441 ac_install_sh="$ac_aux_dir/shtool install -c" 4442 break 4443 fi 4444done 4445if test -z "$ac_aux_dir"; then 4446 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4447fi 4448 4449# These three variables are undocumented and unsupported, 4450# and are intended to be withdrawn in a future Autoconf release. 4451# They can cause serious problems if a builder's source tree is in a directory 4452# whose full name contains unusual characters. 4453ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4454ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4455ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4456 4457 4458# Make sure we can run config.sub. 4459$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4460 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4461 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4463$as_echo_n "checking build system type... " >&6; } 4464if ${ac_cv_build+:} false; then : 4465 $as_echo_n "(cached) " >&6 4466else 4467 ac_build_alias=$build_alias 4468test "x$ac_build_alias" = x && 4469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4470test "x$ac_build_alias" = x && 4471 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4472ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4474 4475fi 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4477$as_echo "$ac_cv_build" >&6; } 4478case $ac_cv_build in 4479*-*-*) ;; 4480*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4481esac 4482build=$ac_cv_build 4483ac_save_IFS=$IFS; IFS='-' 4484set x $ac_cv_build 4485shift 4486build_cpu=$1 4487build_vendor=$2 4488shift; shift 4489# Remember, the first character of IFS is used to create $*, 4490# except with old shells: 4491build_os=$* 4492IFS=$ac_save_IFS 4493case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4494 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4497$as_echo_n "checking host system type... " >&6; } 4498if ${ac_cv_host+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 if test "x$host_alias" = x; then 4502 ac_cv_host=$ac_cv_build 4503else 4504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4506fi 4507 4508fi 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4510$as_echo "$ac_cv_host" >&6; } 4511case $ac_cv_host in 4512*-*-*) ;; 4513*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4514esac 4515host=$ac_cv_host 4516ac_save_IFS=$IFS; IFS='-' 4517set x $ac_cv_host 4518shift 4519host_cpu=$1 4520host_vendor=$2 4521shift; shift 4522# Remember, the first character of IFS is used to create $*, 4523# except with old shells: 4524host_os=$* 4525IFS=$ac_save_IFS 4526case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4527 4528 4529case "$host_os" in 4530 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS" 4531 ;; 4532 *) LINTFLAGS="$LINTFLAGS" 4533 ;; 4534esac 4535 4536 4537 4538$as_echo "#define WINVER 0x0502" >>confdefs.h 4539 4540 4541 4542 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4544$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4545cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4546if eval \${cv_prog_cc_flag_$cache+:} false; then : 4547 $as_echo_n "(cached) " >&6 4548else 4549 4550echo 'void f(){}' >conftest.c 4551if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4552eval "cv_prog_cc_flag_$cache=yes" 4553else 4554eval "cv_prog_cc_flag_$cache=no" 4555fi 4556rm -f conftest conftest.o conftest.c 4557 4558fi 4559 4560if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4562$as_echo "yes" >&6; } 4563: 4564C99FLAG="-std=c99" 4565else 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4567$as_echo "no" >&6; } 4568: 4569 4570fi 4571 4572 4573 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 4575$as_echo_n "checking whether $CC supports -xc99... " >&6; } 4576cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 4577if eval \${cv_prog_cc_flag_$cache+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 4581echo 'void f(){}' >conftest.c 4582if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 4583eval "cv_prog_cc_flag_$cache=yes" 4584else 4585eval "cv_prog_cc_flag_$cache=no" 4586fi 4587rm -f conftest conftest.o conftest.c 4588 4589fi 4590 4591if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4593$as_echo "yes" >&6; } 4594: 4595C99FLAG="-xc99" 4596else 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4598$as_echo "no" >&6; } 4599: 4600 4601fi 4602 4603 4604# routine to copy files 4605# argument 1 is a list of files (relative to the source dir) 4606# argument 2 is a destination directory (relative to the current 4607# working directory 4608 4609 4610# copy all .h files in the dir at argument 1 4611# (relative to source) to the dir at argument 2 4612# (relative to current dir) 4613 4614 4615# Checks for typedefs, structures, and compiler characteristics. 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4617$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4618if ${ac_cv_c_const+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4622/* end confdefs.h. */ 4623 4624int 4625main () 4626{ 4627/* FIXME: Include the comments suggested by Paul. */ 4628#ifndef __cplusplus 4629 /* Ultrix mips cc rejects this. */ 4630 typedef int charset[2]; 4631 const charset cs; 4632 /* SunOS 4.1.1 cc rejects this. */ 4633 char const *const *pcpcc; 4634 char **ppc; 4635 /* NEC SVR4.0.2 mips cc rejects this. */ 4636 struct point {int x, y;}; 4637 static struct point const zero = {0,0}; 4638 /* AIX XL C 1.02.0.0 rejects this. 4639 It does not let you subtract one const X* pointer from another in 4640 an arm of an if-expression whose if-part is not a constant 4641 expression */ 4642 const char *g = "string"; 4643 pcpcc = &g + (g ? g-g : 0); 4644 /* HPUX 7.0 cc rejects these. */ 4645 ++pcpcc; 4646 ppc = (char**) pcpcc; 4647 pcpcc = (char const *const *) ppc; 4648 { /* SCO 3.2v4 cc rejects this. */ 4649 char *t; 4650 char const *s = 0 ? (char *) 0 : (char const *) 0; 4651 4652 *t++ = 0; 4653 if (s) return 0; 4654 } 4655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4656 int x[] = {25, 17}; 4657 const int *foo = &x[0]; 4658 ++foo; 4659 } 4660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4661 typedef const int *iptr; 4662 iptr p = 0; 4663 ++p; 4664 } 4665 { /* AIX XL C 1.02.0.0 rejects this saying 4666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4667 struct s { int j; const int *ap[3]; }; 4668 struct s *b; b->j = 5; 4669 } 4670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4671 const int foo = 10; 4672 if (!foo) return 0; 4673 } 4674 return !cs[0] && !zero.x; 4675#endif 4676 4677 ; 4678 return 0; 4679} 4680_ACEOF 4681if ac_fn_c_try_compile "$LINENO"; then : 4682 ac_cv_c_const=yes 4683else 4684 ac_cv_c_const=no 4685fi 4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4687fi 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4689$as_echo "$ac_cv_c_const" >&6; } 4690if test $ac_cv_c_const = no; then 4691 4692$as_echo "#define const /**/" >>confdefs.h 4693 4694fi 4695 4696ac_ext=c 4697ac_cpp='$CPP $CPPFLAGS' 4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4700ac_compiler_gnu=$ac_cv_c_compiler_gnu 4701 4702if test "x$CFLAGS" = "x" ; then 4703 4704 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4706$as_echo_n "checking whether $CC supports -g... " >&6; } 4707cache=`echo g | sed 'y%.=/+-%___p_%'` 4708if eval \${cv_prog_cc_flag_$cache+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 4712echo 'void f(){}' >conftest.c 4713if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4714eval "cv_prog_cc_flag_$cache=yes" 4715else 4716eval "cv_prog_cc_flag_$cache=no" 4717fi 4718rm -f conftest conftest.o conftest.c 4719 4720fi 4721 4722if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4724$as_echo "yes" >&6; } 4725: 4726CFLAGS="-g" 4727else 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4729$as_echo "no" >&6; } 4730: 4731 4732fi 4733 4734 4735 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4737$as_echo_n "checking whether $CC supports -O2... " >&6; } 4738cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4739if eval \${cv_prog_cc_flag_$cache+:} false; then : 4740 $as_echo_n "(cached) " >&6 4741else 4742 4743echo 'void f(){}' >conftest.c 4744if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4745eval "cv_prog_cc_flag_$cache=yes" 4746else 4747eval "cv_prog_cc_flag_$cache=no" 4748fi 4749rm -f conftest conftest.o conftest.c 4750 4751fi 4752 4753if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4755$as_echo "yes" >&6; } 4756: 4757CFLAGS="-O2 $CFLAGS" 4758else 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4760$as_echo "no" >&6; } 4761: 4762 4763fi 4764 4765fi 4766 4767 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4769$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4770cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4771if eval \${cv_prog_cc_flag_$cache+:} false; then : 4772 $as_echo_n "(cached) " >&6 4773else 4774 4775echo 'void f(){}' >conftest.c 4776if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4777eval "cv_prog_cc_flag_$cache=yes" 4778else 4779eval "cv_prog_cc_flag_$cache=no" 4780fi 4781rm -f conftest conftest.o conftest.c 4782 4783fi 4784 4785if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4787$as_echo "yes" >&6; } 4788: 4789CFLAGS="-Wall $CFLAGS" 4790else 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4792$as_echo "no" >&6; } 4793: 4794 4795fi 4796 4797 4798 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 4800$as_echo_n "checking whether $CC supports -W... " >&6; } 4801cache=`echo W | sed 'y%.=/+-%___p_%'` 4802if eval \${cv_prog_cc_flag_$cache+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 4806echo 'void f(){}' >conftest.c 4807if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 4808eval "cv_prog_cc_flag_$cache=yes" 4809else 4810eval "cv_prog_cc_flag_$cache=no" 4811fi 4812rm -f conftest conftest.o conftest.c 4813 4814fi 4815 4816if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4818$as_echo "yes" >&6; } 4819: 4820CFLAGS="-W $CFLAGS" 4821else 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4823$as_echo "no" >&6; } 4824: 4825 4826fi 4827 4828 4829 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5 4831$as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; } 4832cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'` 4833if eval \${cv_prog_cc_flag_$cache+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 4837echo 'void f(){}' >conftest.c 4838if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then 4839eval "cv_prog_cc_flag_$cache=yes" 4840else 4841eval "cv_prog_cc_flag_$cache=no" 4842fi 4843rm -f conftest conftest.o conftest.c 4844 4845fi 4846 4847if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4849$as_echo "yes" >&6; } 4850: 4851CFLAGS="-Wwrite-strings $CFLAGS" 4852else 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855: 4856 4857fi 4858 4859 4860 4861for ac_header in getopt.h time.h 4862do : 4863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4864ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4865" 4866if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4867 cat >>confdefs.h <<_ACEOF 4868#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4869_ACEOF 4870 4871fi 4872 4873done 4874 4875 4876# MinGW32 tests 4877for ac_header in winsock2.h ws2tcpip.h 4878do : 4879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4880ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4881" 4882if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4883 cat >>confdefs.h <<_ACEOF 4884#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4885_ACEOF 4886 4887fi 4888 4889done 4890 4891# end mingw32 tests 4892 4893 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4897$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4898cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4899if eval \${cv_prog_cc_flag_$cache+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 4903echo 'void f(){}' >conftest.c 4904if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4905eval "cv_prog_cc_flag_$cache=yes" 4906else 4907eval "cv_prog_cc_flag_$cache=no" 4908fi 4909rm -f conftest conftest.o conftest.c 4910 4911fi 4912 4913if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4915$as_echo "yes" >&6; } 4916: 4917ERRFLAG="-Werror" 4918else 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4920$as_echo "no" >&6; } 4921: 4922ERRFLAG="-errwarn" 4923fi 4924 4925 4926 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4928$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4929cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4930if eval \${cv_prog_cc_flag_$cache+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 4934echo 'void f(){}' >conftest.c 4935if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4936eval "cv_prog_cc_flag_$cache=yes" 4937else 4938eval "cv_prog_cc_flag_$cache=no" 4939fi 4940rm -f conftest conftest.o conftest.c 4941 4942fi 4943 4944if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4946$as_echo "yes" >&6; } 4947: 4948ERRFLAG="$ERRFLAG -Wall" 4949else 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4951$as_echo "no" >&6; } 4952: 4953ERRFLAG="$ERRFLAG -errfmt" 4954fi 4955 4956 4957 4958 4959 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4961$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4962cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4963if eval \${cv_prog_cc_flag_$cache+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965else 4966 4967echo 'void f(){}' >conftest.c 4968if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4969eval "cv_prog_cc_flag_$cache=yes" 4970else 4971eval "cv_prog_cc_flag_$cache=no" 4972fi 4973rm -f conftest conftest.o conftest.c 4974 4975fi 4976 4977if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4979$as_echo "yes" >&6; } 4980: 4981C99FLAG="-std=c99" 4982else 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4984$as_echo "no" >&6; } 4985: 4986 4987fi 4988 4989 4990 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 4992$as_echo_n "checking whether $CC supports -xc99... " >&6; } 4993cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 4994if eval \${cv_prog_cc_flag_$cache+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 4998echo 'void f(){}' >conftest.c 4999if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5000eval "cv_prog_cc_flag_$cache=yes" 5001else 5002eval "cv_prog_cc_flag_$cache=no" 5003fi 5004rm -f conftest conftest.o conftest.c 5005 5006fi 5007 5008if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5010$as_echo "yes" >&6; } 5011: 5012C99FLAG="-xc99" 5013else 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5015$as_echo "no" >&6; } 5016: 5017 5018fi 5019 5020 5021for ac_header in getopt.h time.h 5022do : 5023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5025" 5026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5027 cat >>confdefs.h <<_ACEOF 5028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5029_ACEOF 5030 5031fi 5032 5033done 5034 5035 5036 5037 5038 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5040$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5041cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5042if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 5046echo ' 5047#include "confdefs.h" 5048#include <stdlib.h> 5049#include <ctype.h> 5050#include <sys/time.h> 5051#ifdef HAVE_TIME_H 5052#include <time.h> 5053#endif 5054#include <unistd.h> 5055#include <netdb.h> 5056#ifdef HAVE_GETOPT_H 5057#include <getopt.h> 5058#endif 5059 5060int test() { 5061 int a; 5062 char **opts = NULL; 5063 struct timeval tv; 5064 char *t; 5065 time_t time = 0; 5066 char *buf = NULL; 5067 const char* str = NULL; 5068 struct msghdr msg; 5069 msg.msg_control = 0; 5070 t = ctime_r(&time, buf); 5071 tv.tv_usec = 10; 5072 srandom(32); 5073 a = getopt(2, opts, "a"); 5074 a = isascii(32); 5075 str = gai_strerror(0); 5076 if(str && t && tv.tv_usec && msg.msg_control) 5077 a = 0; 5078 return a; 5079} 5080' > conftest.c 5081echo 'void f(){}' >>conftest.c 5082if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5083eval "cv_prog_cc_flag_needed_$cache=no" 5084else 5085 5086if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5087eval "cv_prog_cc_flag_needed_$cache=yes" 5088else 5089eval "cv_prog_cc_flag_needed_$cache=fail" 5090#echo 'Test with flag fails too!' 5091#cat conftest.c 5092#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5093#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5094#exit 1 5095fi 5096 5097fi 5098rm -f conftest conftest.c conftest.o 5099 5100fi 5101 5102if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5104$as_echo "yes" >&6; } 5105: 5106CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5107else 5108if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110$as_echo "no" >&6; } 5111#echo 'Test with flag is no!' 5112#cat conftest.c 5113#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5114#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5115#exit 1 5116: 5117 5118else 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5120$as_echo "failed" >&6; } 5121: 5122 5123fi 5124fi 5125 5126 5127 5128 5129 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5131$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5132cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5133if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 5137echo ' 5138#include "confdefs.h" 5139#include <stdlib.h> 5140#include <ctype.h> 5141#include <sys/time.h> 5142#ifdef HAVE_TIME_H 5143#include <time.h> 5144#endif 5145#include <unistd.h> 5146#include <netdb.h> 5147#ifdef HAVE_GETOPT_H 5148#include <getopt.h> 5149#endif 5150 5151int test() { 5152 int a; 5153 char **opts = NULL; 5154 struct timeval tv; 5155 char *t; 5156 time_t time = 0; 5157 char *buf = NULL; 5158 const char* str = NULL; 5159 struct msghdr msg; 5160 msg.msg_control = 0; 5161 t = ctime_r(&time, buf); 5162 tv.tv_usec = 10; 5163 srandom(32); 5164 a = getopt(2, opts, "a"); 5165 a = isascii(32); 5166 str = gai_strerror(0); 5167 if(str && t && tv.tv_usec && msg.msg_control) 5168 a = 0; 5169 return a; 5170} 5171' > conftest.c 5172echo 'void f(){}' >>conftest.c 5173if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5174eval "cv_prog_cc_flag_needed_$cache=no" 5175else 5176 5177if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5178eval "cv_prog_cc_flag_needed_$cache=yes" 5179else 5180eval "cv_prog_cc_flag_needed_$cache=fail" 5181#echo 'Test with flag fails too!' 5182#cat conftest.c 5183#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5184#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5185#exit 1 5186fi 5187 5188fi 5189rm -f conftest conftest.c conftest.o 5190 5191fi 5192 5193if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5195$as_echo "yes" >&6; } 5196: 5197CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5198else 5199if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201$as_echo "no" >&6; } 5202#echo 'Test with flag is no!' 5203#cat conftest.c 5204#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5205#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5206#exit 1 5207: 5208 5209else 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5211$as_echo "failed" >&6; } 5212: 5213 5214fi 5215fi 5216 5217 5218 5219 5220 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5222$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5223cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5224if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 5228echo ' 5229#include <stdbool.h> 5230#include <ctype.h> 5231int test() { 5232 int a = 0; 5233 return a; 5234} 5235' > conftest.c 5236echo 'void f(){}' >>conftest.c 5237if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5238eval "cv_prog_cc_flag_needed_$cache=no" 5239else 5240 5241if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5242eval "cv_prog_cc_flag_needed_$cache=yes" 5243else 5244eval "cv_prog_cc_flag_needed_$cache=fail" 5245#echo 'Test with flag fails too!' 5246#cat conftest.c 5247#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5248#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5249#exit 1 5250fi 5251 5252fi 5253rm -f conftest conftest.c conftest.o 5254 5255fi 5256 5257if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5259$as_echo "yes" >&6; } 5260: 5261CFLAGS="$CFLAGS $C99FLAG" 5262else 5263if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265$as_echo "no" >&6; } 5266#echo 'Test with flag is no!' 5267#cat conftest.c 5268#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5269#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5270#exit 1 5271: 5272 5273else 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5275$as_echo "failed" >&6; } 5276: 5277 5278fi 5279fi 5280 5281 5282 5283 5284 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5286$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5287cache=_D_BSD_SOURCE 5288if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 5292echo ' 5293#include <ctype.h> 5294 5295int test() { 5296 int a; 5297 a = isascii(32); 5298 return a; 5299} 5300' > conftest.c 5301echo 'void f(){}' >>conftest.c 5302if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5303eval "cv_prog_cc_flag_needed_$cache=no" 5304else 5305 5306if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5307eval "cv_prog_cc_flag_needed_$cache=yes" 5308else 5309eval "cv_prog_cc_flag_needed_$cache=fail" 5310#echo 'Test with flag fails too!' 5311#cat conftest.c 5312#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5313#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5314#exit 1 5315fi 5316 5317fi 5318rm -f conftest conftest.c conftest.o 5319 5320fi 5321 5322if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5324$as_echo "yes" >&6; } 5325: 5326CFLAGS="$CFLAGS -D_BSD_SOURCE" 5327else 5328if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5330$as_echo "no" >&6; } 5331#echo 'Test with flag is no!' 5332#cat conftest.c 5333#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5334#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5335#exit 1 5336: 5337 5338else 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5340$as_echo "failed" >&6; } 5341: 5342 5343fi 5344fi 5345 5346 5347 5348 5349 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5351$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5352cache=_D_GNU_SOURCE 5353if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 5357echo ' 5358#include <netinet/in.h> 5359 5360int test() { 5361 struct in6_pktinfo inf; 5362 int a = (int)sizeof(inf); 5363 return a; 5364} 5365' > conftest.c 5366echo 'void f(){}' >>conftest.c 5367if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5368eval "cv_prog_cc_flag_needed_$cache=no" 5369else 5370 5371if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5372eval "cv_prog_cc_flag_needed_$cache=yes" 5373else 5374eval "cv_prog_cc_flag_needed_$cache=fail" 5375#echo 'Test with flag fails too!' 5376#cat conftest.c 5377#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5378#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5379#exit 1 5380fi 5381 5382fi 5383rm -f conftest conftest.c conftest.o 5384 5385fi 5386 5387if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5389$as_echo "yes" >&6; } 5390: 5391CFLAGS="$CFLAGS -D_GNU_SOURCE" 5392else 5393if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5395$as_echo "no" >&6; } 5396#echo 'Test with flag is no!' 5397#cat conftest.c 5398#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5399#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5400#exit 1 5401: 5402 5403else 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5405$as_echo "failed" >&6; } 5406: 5407 5408fi 5409fi 5410 5411 5412# check again for GNU_SOURCE for setresgid. May fail if setresgid 5413# is not available at all. -D_FRSRESGID is to make this check unique. 5414# otherwise we would get the previous cached result. 5415 5416 5417 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5419$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5420cache=_D_GNU_SOURCE__D_FRSRESGID 5421if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 5425echo ' 5426#include <unistd.h> 5427 5428int test() { 5429 int a = setresgid(0,0,0); 5430 a = setresuid(0,0,0); 5431 return a; 5432} 5433' > conftest.c 5434echo 'void f(){}' >>conftest.c 5435if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5436eval "cv_prog_cc_flag_needed_$cache=no" 5437else 5438 5439if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5440eval "cv_prog_cc_flag_needed_$cache=yes" 5441else 5442eval "cv_prog_cc_flag_needed_$cache=fail" 5443#echo 'Test with flag fails too!' 5444#cat conftest.c 5445#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5446#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5447#exit 1 5448fi 5449 5450fi 5451rm -f conftest conftest.c conftest.o 5452 5453fi 5454 5455if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5457$as_echo "yes" >&6; } 5458: 5459CFLAGS="$CFLAGS -D_GNU_SOURCE" 5460else 5461if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5463$as_echo "no" >&6; } 5464#echo 'Test with flag is no!' 5465#cat conftest.c 5466#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5467#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5468#exit 1 5469: 5470 5471else 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5473$as_echo "failed" >&6; } 5474: 5475 5476fi 5477fi 5478 5479 5480 5481 5482 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5484$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5485cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh` 5486if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488else 5489 5490echo ' 5491#include "confdefs.h" 5492#ifdef HAVE_TIME_H 5493#include <time.h> 5494#endif 5495#include <netdb.h> 5496 5497int test() { 5498 int a = 0; 5499 char *t; 5500 time_t time = 0; 5501 char *buf = NULL; 5502 const char* str = NULL; 5503 t = ctime_r(&time, buf); 5504 str = gai_strerror(0); 5505 if(t && str) 5506 a = 0; 5507 return a; 5508} 5509' > conftest.c 5510echo 'void f(){}' >>conftest.c 5511if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5512eval "cv_prog_cc_flag_needed_$cache=no" 5513else 5514 5515if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5516eval "cv_prog_cc_flag_needed_$cache=yes" 5517else 5518eval "cv_prog_cc_flag_needed_$cache=fail" 5519#echo 'Test with flag fails too!' 5520#cat conftest.c 5521#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5522#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5523#exit 1 5524fi 5525 5526fi 5527rm -f conftest conftest.c conftest.o 5528 5529fi 5530 5531if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5533$as_echo "yes" >&6; } 5534: 5535CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5536else 5537if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5539$as_echo "no" >&6; } 5540#echo 'Test with flag is no!' 5541#cat conftest.c 5542#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5543#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5544#exit 1 5545: 5546 5547else 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5549$as_echo "failed" >&6; } 5550: 5551 5552fi 5553fi 5554 5555 5556 5557 5558 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5560$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5561cache=_D__EXTENSIONS__ 5562if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 5566echo ' 5567#include "confdefs.h" 5568#include <stdlib.h> 5569#include <ctype.h> 5570#include <sys/time.h> 5571#ifdef HAVE_TIME_H 5572#include <time.h> 5573#endif 5574#include <unistd.h> 5575#ifdef HAVE_GETOPT_H 5576#include <getopt.h> 5577#endif 5578 5579int test() { 5580 int a; 5581 char **opts = NULL; 5582 struct timeval tv; 5583 tv.tv_usec = 10; 5584 srandom(32); 5585 a = getopt(2, opts, "a"); 5586 a = isascii(32); 5587 if(tv.tv_usec) 5588 a = 0; 5589 return a; 5590} 5591' > conftest.c 5592echo 'void f(){}' >>conftest.c 5593if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5594eval "cv_prog_cc_flag_needed_$cache=no" 5595else 5596 5597if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5598eval "cv_prog_cc_flag_needed_$cache=yes" 5599else 5600eval "cv_prog_cc_flag_needed_$cache=fail" 5601#echo 'Test with flag fails too!' 5602#cat conftest.c 5603#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5604#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5605#exit 1 5606fi 5607 5608fi 5609rm -f conftest conftest.c conftest.o 5610 5611fi 5612 5613if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5615$as_echo "yes" >&6; } 5616: 5617CFLAGS="$CFLAGS -D__EXTENSIONS__" 5618else 5619if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621$as_echo "no" >&6; } 5622#echo 'Test with flag is no!' 5623#cat conftest.c 5624#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5625#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5626#exit 1 5627: 5628 5629else 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5631$as_echo "failed" >&6; } 5632: 5633 5634fi 5635fi 5636 5637 5638 5639 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5641$as_echo_n "checking for inline... " >&6; } 5642if ${ac_cv_c_inline+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 ac_cv_c_inline=no 5646for ac_kw in inline __inline__ __inline; do 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649#ifndef __cplusplus 5650typedef int foo_t; 5651static $ac_kw foo_t static_foo () {return 0; } 5652$ac_kw foo_t foo () {return 0; } 5653#endif 5654 5655_ACEOF 5656if ac_fn_c_try_compile "$LINENO"; then : 5657 ac_cv_c_inline=$ac_kw 5658fi 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5660 test "$ac_cv_c_inline" != no && break 5661done 5662 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5665$as_echo "$ac_cv_c_inline" >&6; } 5666 5667case $ac_cv_c_inline in 5668 inline | yes) ;; 5669 *) 5670 case $ac_cv_c_inline in 5671 no) ac_val=;; 5672 *) ac_val=$ac_cv_c_inline;; 5673 esac 5674 cat >>confdefs.h <<_ACEOF 5675#ifndef __cplusplus 5676#define inline $ac_val 5677#endif 5678_ACEOF 5679 ;; 5680esac 5681 5682ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 5683if test "x$ac_cv_type_int8_t" = xyes; then : 5684 5685else 5686 5687cat >>confdefs.h <<_ACEOF 5688#define int8_t char 5689_ACEOF 5690 5691fi 5692 5693ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 5694if test "x$ac_cv_type_int16_t" = xyes; then : 5695 5696else 5697 5698cat >>confdefs.h <<_ACEOF 5699#define int16_t short 5700_ACEOF 5701 5702fi 5703 5704ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 5705if test "x$ac_cv_type_int32_t" = xyes; then : 5706 5707else 5708 5709cat >>confdefs.h <<_ACEOF 5710#define int32_t int 5711_ACEOF 5712 5713fi 5714 5715ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 5716if test "x$ac_cv_type_int64_t" = xyes; then : 5717 5718else 5719 5720cat >>confdefs.h <<_ACEOF 5721#define int64_t long long 5722_ACEOF 5723 5724fi 5725 5726ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 5727if test "x$ac_cv_type_uint8_t" = xyes; then : 5728 5729else 5730 5731cat >>confdefs.h <<_ACEOF 5732#define uint8_t unsigned char 5733_ACEOF 5734 5735fi 5736 5737ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 5738if test "x$ac_cv_type_uint16_t" = xyes; then : 5739 5740else 5741 5742cat >>confdefs.h <<_ACEOF 5743#define uint16_t unsigned short 5744_ACEOF 5745 5746fi 5747 5748ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 5749if test "x$ac_cv_type_uint32_t" = xyes; then : 5750 5751else 5752 5753cat >>confdefs.h <<_ACEOF 5754#define uint32_t unsigned int 5755_ACEOF 5756 5757fi 5758 5759ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 5760if test "x$ac_cv_type_uint64_t" = xyes; then : 5761 5762else 5763 5764cat >>confdefs.h <<_ACEOF 5765#define uint64_t unsigned long long 5766_ACEOF 5767 5768fi 5769 5770 5771# my own checks 5772# Extract the first word of "doxygen", so it can be a program name with args. 5773set dummy doxygen; ac_word=$2 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5775$as_echo_n "checking for $ac_word... " >&6; } 5776if ${ac_cv_prog_doxygen+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 if test -n "$doxygen"; then 5780 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 5781else 5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783for as_dir in $PATH 5784do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5789 ac_cv_prog_doxygen="doxygen" 5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793done 5794 done 5795IFS=$as_save_IFS 5796 5797fi 5798fi 5799doxygen=$ac_cv_prog_doxygen 5800if test -n "$doxygen"; then 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 5802$as_echo "$doxygen" >&6; } 5803else 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5805$as_echo "no" >&6; } 5806fi 5807 5808 5809 5810# check to see if libraries are needed for these functions. 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5812$as_echo_n "checking for library containing socket... " >&6; } 5813if ${ac_cv_search_socket+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 ac_func_search_save_LIBS=$LIBS 5817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819 5820/* Override any GCC internal prototype to avoid an error. 5821 Use char because int might match the return type of a GCC 5822 builtin and then its argument prototype would still apply. */ 5823#ifdef __cplusplus 5824extern "C" 5825#endif 5826char socket (); 5827int 5828main () 5829{ 5830return socket (); 5831 ; 5832 return 0; 5833} 5834_ACEOF 5835for ac_lib in '' socket; do 5836 if test -z "$ac_lib"; then 5837 ac_res="none required" 5838 else 5839 ac_res=-l$ac_lib 5840 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5841 fi 5842 if ac_fn_c_try_link "$LINENO"; then : 5843 ac_cv_search_socket=$ac_res 5844fi 5845rm -f core conftest.err conftest.$ac_objext \ 5846 conftest$ac_exeext 5847 if ${ac_cv_search_socket+:} false; then : 5848 break 5849fi 5850done 5851if ${ac_cv_search_socket+:} false; then : 5852 5853else 5854 ac_cv_search_socket=no 5855fi 5856rm conftest.$ac_ext 5857LIBS=$ac_func_search_save_LIBS 5858fi 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5860$as_echo "$ac_cv_search_socket" >&6; } 5861ac_res=$ac_cv_search_socket 5862if test "$ac_res" != no; then : 5863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5864 5865fi 5866 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 5868$as_echo_n "checking for library containing inet_pton... " >&6; } 5869if ${ac_cv_search_inet_pton+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 ac_func_search_save_LIBS=$LIBS 5873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875 5876/* Override any GCC internal prototype to avoid an error. 5877 Use char because int might match the return type of a GCC 5878 builtin and then its argument prototype would still apply. */ 5879#ifdef __cplusplus 5880extern "C" 5881#endif 5882char inet_pton (); 5883int 5884main () 5885{ 5886return inet_pton (); 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891for ac_lib in '' nsl; do 5892 if test -z "$ac_lib"; then 5893 ac_res="none required" 5894 else 5895 ac_res=-l$ac_lib 5896 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5897 fi 5898 if ac_fn_c_try_link "$LINENO"; then : 5899 ac_cv_search_inet_pton=$ac_res 5900fi 5901rm -f core conftest.err conftest.$ac_objext \ 5902 conftest$ac_exeext 5903 if ${ac_cv_search_inet_pton+:} false; then : 5904 break 5905fi 5906done 5907if ${ac_cv_search_inet_pton+:} false; then : 5908 5909else 5910 ac_cv_search_inet_pton=no 5911fi 5912rm conftest.$ac_ext 5913LIBS=$ac_func_search_save_LIBS 5914fi 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 5916$as_echo "$ac_cv_search_inet_pton" >&6; } 5917ac_res=$ac_cv_search_inet_pton 5918if test "$ac_res" != no; then : 5919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5920 5921fi 5922 5923 5924 5925 5926# Check whether --with-drill was given. 5927if test "${with_drill+set}" = set; then : 5928 withval=$with_drill; 5929else 5930 with_drill="no" 5931fi 5932 5933if test x_$with_drill != x_no ; then 5934 DRILL=drill 5935 5936 INSTALL_DRILL=install-drill 5937 5938 UNINSTALL_DRILL=uninstall-drill 5939 5940 CLEAN_DRILL=clean-drill 5941 5942 LINT_DRILL=lint-drill 5943 5944 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then 5945 as_fn_error $? " 5946A config.h was detected in the drill subdirectory. 5947This does not work with the --with-drill option. 5948Please remove the config.h from the drill subdirectory 5949or do not use the --with-drill option." "$LINENO" 5 5950 fi 5951 DRILL_CONFIG=" drill/drill.1" 5952else 5953 DRILL="" 5954 5955 INSTALL_DRILL="" 5956 5957 UNINSTALL_DRILL="" 5958 5959 CLEAN_DRILL="" 5960 5961 LINT_DRILL="" 5962 5963 DRILL_CONFIG="" 5964fi 5965 5966 5967 5968# Check whether --with-examples was given. 5969if test "${with_examples+set}" = set; then : 5970 withval=$with_examples; 5971else 5972 with_examples="no" 5973fi 5974 5975if test x_$with_examples != x_no ; then 5976 EXAMPLES=examples 5977 5978 INSTALL_EXAMPLES=install-examples 5979 5980 UNINSTALL_EXAMPLES=uninstall-examples 5981 5982 CLEAN_EXAMPLES=clean-examples 5983 5984 LINT_EXAMPLES=lint-examples 5985 5986 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then 5987 as_fn_error $? " 5988A config.h was detected in the examples subdirectory. 5989This does not work with the --with-examples option. 5990Please remove the config.h from the examples subdirectory 5991or do not use the --with-examples option." "$LINENO" 5 5992 fi 5993 EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1" 5994else 5995 EXAMPLES="" 5996 5997 INSTALL_EXAMPLES="" 5998 5999 UNINSTALL_EXAMPLES="" 6000 6001 CLEAN_EXAMPLES="" 6002 6003 LINT_EXAMPLES="" 6004 6005 EXAMPLES_CONFIG="" 6006fi 6007 6008# add option to disable installation of ldns-config script 6009# Check whether --enable-ldns-config was given. 6010if test "${enable_ldns_config+set}" = set; then : 6011 enableval=$enable_ldns_config; enable_ldns_config=$enableval 6012else 6013 enable_ldns_config=yes 6014fi 6015 6016if test "x$enable_ldns_config" = xyes; then 6017 INSTALL_CONFIG=install-config 6018 6019 INSTALL_CONFIG_MANPAGE=install-config-manpage 6020 6021 UNINSTALL_CONFIG=uninstall-config 6022 6023 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage 6024 6025else 6026 INSTALL_CONFIG="" 6027 6028 INSTALL_CONFIG_MANPAGE="" 6029 6030 UNINSTALL_CONFIG="" 6031 6032 UNINSTALL_CONFIG_MANPAGE="" 6033 6034fi 6035 6036# check for python 6037PYTHON_X_CFLAGS="" 6038ldns_with_pyldns=no 6039ldns_with_pyldnsx=no 6040 6041# Check whether --with-pyldns was given. 6042if test "${with_pyldns+set}" = set; then : 6043 withval=$with_pyldns; 6044else 6045 withval="no" 6046fi 6047 6048ldns_have_python=no 6049if test x_$withval != x_no; then 6050 # =========================================================================== 6051# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html 6052# =========================================================================== 6053# 6054# SYNOPSIS 6055# 6056# AX_PYTHON_DEVEL([version]) 6057# 6058# DESCRIPTION 6059# 6060# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it 6061# in your configure.ac. 6062# 6063# This macro checks for Python and tries to get the include path to 6064# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS) 6065# output variables. It also exports $(PYTHON_EXTRA_LIBS) and 6066# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. 6067# 6068# You can search for some particular version of Python by passing a 6069# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please 6070# note that you *have* to pass also an operator along with the version to 6071# match, and pay special attention to the single quotes surrounding the 6072# version number. Don't use "PYTHON_VERSION" for this: that environment 6073# variable is declared as precious and thus reserved for the end-user. 6074# 6075# This macro should work for all versions of Python >= 2.1.0. As an end 6076# user, you can disable the check for the python version by setting the 6077# PYTHON_NOVERSIONCHECK environment variable to something else than the 6078# empty string. 6079# 6080# If you need to use this macro for an older Python version, please 6081# contact the authors. We're always open for feedback. 6082# 6083# LICENSE 6084# 6085# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de> 6086# Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca> 6087# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net> 6088# Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za> 6089# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org> 6090# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org> 6091# 6092# This program is free software: you can redistribute it and/or modify it 6093# under the terms of the GNU General Public License as published by the 6094# Free Software Foundation, either version 3 of the License, or (at your 6095# option) any later version. 6096# 6097# This program is distributed in the hope that it will be useful, but 6098# WITHOUT ANY WARRANTY; without even the implied warranty of 6099# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 6100# Public License for more details. 6101# 6102# You should have received a copy of the GNU General Public License along 6103# with this program. If not, see <http://www.gnu.org/licenses/>. 6104# 6105# As a special exception, the respective Autoconf Macro's copyright owner 6106# gives unlimited permission to copy, distribute and modify the configure 6107# scripts that are the output of Autoconf when processing the Macro. You 6108# need not follow the terms of the GNU General Public License when using 6109# or distributing such scripts, even though portions of the text of the 6110# Macro appear in them. The GNU General Public License (GPL) does govern 6111# all other use of the material that constitutes the Autoconf Macro. 6112# 6113# This special exception to the GPL applies to versions of the Autoconf 6114# Macro released by the Autoconf Archive. When you make and distribute a 6115# modified version of the Autoconf Macro, you may extend this special 6116# exception to the GPL to apply to your modified version as well. 6117 6118#serial 8 6119 6120# This is what autoupdate's m4 run will expand. It fires 6121# the warning (with _au_warn_XXX), outputs it into the 6122# updated configure.ac (with AC_DIAGNOSE), and then outputs 6123# the replacement expansion. 6124 6125 6126# This is an auxiliary macro that is also run when 6127# autoupdate runs m4. It simply calls m4_warning, but 6128# we need a wrapper so that each warning is emitted only 6129# once. We break the quoting in m4_warning's argument in 6130# order to expand this macro's arguments, not AU_DEFUN's. 6131 6132 6133# Finally, this is the expansion that is picked up by 6134# autoconf. It tells the user to run autoupdate, and 6135# then outputs the replacement expansion. We do not care 6136# about autoupdate's warning because that contains 6137# information on what to do *after* running autoupdate. 6138 6139 6140 6141 ac_save_LIBS="$LIBS" 6142 6143 # 6144 # Allow the use of a (user set) custom python version 6145 # 6146 6147 6148 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 6149set dummy python$PYTHON_VERSION; ac_word=$2 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6151$as_echo_n "checking for $ac_word... " >&6; } 6152if ${ac_cv_path_PYTHON+:} false; then : 6153 $as_echo_n "(cached) " >&6 6154else 6155 case $PYTHON in 6156 [\\/]* | ?:[\\/]*) 6157 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 6158 ;; 6159 *) 6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6161for as_dir in $PATH 6162do 6163 IFS=$as_save_IFS 6164 test -z "$as_dir" && as_dir=. 6165 for ac_exec_ext in '' $ac_executable_extensions; do 6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6167 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6169 break 2 6170 fi 6171done 6172 done 6173IFS=$as_save_IFS 6174 6175 ;; 6176esac 6177fi 6178PYTHON=$ac_cv_path_PYTHON 6179if test -n "$PYTHON"; then 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 6181$as_echo "$PYTHON" >&6; } 6182else 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6184$as_echo "no" >&6; } 6185fi 6186 6187 6188 if test -z "$PYTHON"; then 6189 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 6190 PYTHON_VERSION="" 6191 fi 6192 6193 # 6194 # Check for a version of Python >= 2.1.0 6195 # 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 6197$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 6198 ac_supports_python_ver=`$PYTHON -c "import sys; \ 6199 ver = sys.version.split ()[0]; \ 6200 print (ver >= '2.1.0')"` 6201 if test "$ac_supports_python_ver" != "True"; then 6202 if test -z "$PYTHON_NOVERSIONCHECK"; then 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6204$as_echo "no" >&6; } 6205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6207as_fn_error $? " 6208This version of the AC_PYTHON_DEVEL macro 6209doesn't work properly with versions of Python before 62102.1.0. You may need to re-run configure, setting the 6211variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 6212PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 6213Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 6214to something else than an empty string. 6215 6216See \`config.log' for more details" "$LINENO" 5; } 6217 else 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 6219$as_echo "skip at user request" >&6; } 6220 fi 6221 else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6223$as_echo "yes" >&6; } 6224 fi 6225 6226 # 6227 # if the macro parameter ``version'' is set, honour it 6228 # 6229 if test -n ">= '2.4.0'"; then 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5 6231$as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; } 6232 ac_supports_python_ver=`$PYTHON -c "import sys; \ 6233 ver = sys.version.split ()[0]; \ 6234 print (ver >= '2.4.0')"` 6235 if test "$ac_supports_python_ver" = "True"; then 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6237$as_echo "yes" >&6; } 6238 else 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6240$as_echo "no" >&6; } 6241 as_fn_error $? "this package requires Python >= '2.4.0'. 6242If you have it installed, but it isn't the default Python 6243interpreter in your system path, please pass the PYTHON_VERSION 6244variable to configure. See \`\`configure --help'' for reference. 6245" "$LINENO" 5 6246 PYTHON_VERSION="" 6247 fi 6248 fi 6249 6250 # 6251 # Check if you have distutils, else fail 6252 # 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 6254$as_echo_n "checking for the distutils Python package... " >&6; } 6255 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 6256 if test -z "$ac_distutils_result"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6258$as_echo "yes" >&6; } 6259 else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261$as_echo "no" >&6; } 6262 as_fn_error $? "cannot import Python module \"distutils\". 6263Please check your Python installation. The error was: 6264$ac_distutils_result" "$LINENO" 5 6265 PYTHON_VERSION="" 6266 fi 6267 6268 # 6269 # Check for Python include path 6270 # 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 6272$as_echo_n "checking for Python include path... " >&6; } 6273 if test -z "$PYTHON_CPPFLAGS"; then 6274 python_path=`$PYTHON -c "import distutils.sysconfig; \ 6275 print (distutils.sysconfig.get_python_inc ());"` 6276 if test -n "${python_path}"; then 6277 python_path="-I$python_path" 6278 fi 6279 PYTHON_CPPFLAGS=$python_path 6280 fi 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 6282$as_echo "$PYTHON_CPPFLAGS" >&6; } 6283 6284 6285 # 6286 # Check for Python library path 6287 # 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 6289$as_echo_n "checking for Python library path... " >&6; } 6290 if test -z "$PYTHON_LDFLAGS"; then 6291 # (makes two attempts to ensure we've got a version number 6292 # from the interpreter) 6293 ac_python_version=`cat<<EOD | $PYTHON - 6294 6295# join all versioning strings, on some systems 6296# major/minor numbers could be in different list elements 6297from distutils.sysconfig import * 6298ret = '' 6299for e in get_config_vars ('VERSION'): 6300 if (e != None): 6301 ret += e 6302print (ret) 6303EOD 6304` 6305 6306 if test -z "$ac_python_version"; then 6307 if test -n "$PYTHON_VERSION"; then 6308 ac_python_version=$PYTHON_VERSION 6309 else 6310 ac_python_version=`$PYTHON -c "import sys; \ 6311 print (sys.version[:3])"` 6312 fi 6313 fi 6314 6315 # Make the versioning information available to the compiler 6316 6317cat >>confdefs.h <<_ACEOF 6318#define HAVE_PYTHON "$ac_python_version" 6319_ACEOF 6320 6321 6322 # First, the library directory: 6323 ac_python_libdir=`cat<<EOD | $PYTHON - 6324 6325# There should be only one 6326import distutils.sysconfig 6327for e in distutils.sysconfig.get_config_vars ('LIBDIR'): 6328 if e != None: 6329 print (e) 6330 break 6331EOD 6332` 6333 6334 # Before checking for libpythonX.Y, we need to know 6335 # the extension the OS we're on uses for libraries 6336 # (we take the first one, if there's more than one fix me!): 6337 ac_python_soext=`$PYTHON -c \ 6338 "import distutils.sysconfig; \ 6339 print (distutils.sysconfig.get_config_vars('SO')[0])"` 6340 6341 # Now, for the library: 6342 ac_python_soname=`$PYTHON -c \ 6343 "import distutils.sysconfig; \ 6344 print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"` 6345 6346 # Strip away extension from the end to canonicalize its name: 6347 ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"` 6348 6349 # This small piece shamelessly adapted from PostgreSQL python macro; 6350 # credits goes to momjian, I think. I'd like to put the right name 6351 # in the credits, if someone can point me in the right direction... ? 6352 # 6353 if test -n "$ac_python_libdir" -a -n "$ac_python_library" \ 6354 -a x"$ac_python_library" != x"$ac_python_soname" 6355 then 6356 # use the official shared library 6357 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 6358 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 6359 else 6360 # old way: use libpython from python_configdir 6361 ac_python_libdir=`$PYTHON -c \ 6362 "from distutils.sysconfig import get_python_lib as f; \ 6363 import os; \ 6364 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 6365 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 6366 fi 6367 6368 if test -z "PYTHON_LDFLAGS"; then 6369 as_fn_error $? " 6370 Cannot determine location of your Python DSO. Please check it was installed with 6371 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 6372 " "$LINENO" 5 6373 fi 6374 fi 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 6376$as_echo "$PYTHON_LDFLAGS" >&6; } 6377 6378 6379 # 6380 # Check for site packages 6381 # 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 6383$as_echo_n "checking for Python site-packages path... " >&6; } 6384 if test -z "$PYTHON_SITE_PKG"; then 6385 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 6386 print (distutils.sysconfig.get_python_lib(1,0));"` 6387 fi 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 6389$as_echo "$PYTHON_SITE_PKG" >&6; } 6390 6391 6392 # 6393 # libraries which must be linked in when embedding 6394 # 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 6396$as_echo_n "checking python extra libraries... " >&6; } 6397 if test -z "$PYTHON_EXTRA_LIBS"; then 6398 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 6399 conf = distutils.sysconfig.get_config_var; \ 6400 print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"` 6401 fi 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 6403$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 6404 6405 6406 # 6407 # linking flags needed when embedding 6408 # 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 6410$as_echo_n "checking python extra linking flags... " >&6; } 6411 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 6412 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 6413 conf = distutils.sysconfig.get_config_var; \ 6414 print (conf('LINKFORSHARED'))"` 6415 fi 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 6417$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 6418 6419 6420 # 6421 # final check to see if everything compiles alright 6422 # 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 6424$as_echo_n "checking consistency of all components of python development environment... " >&6; } 6425 # save current global flags 6426 ac_save_LIBS="$LIBS" 6427 ac_save_CPPFLAGS="$CPPFLAGS" 6428 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 6429 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 6430 ac_ext=c 6431ac_cpp='$CPP $CPPFLAGS' 6432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6434ac_compiler_gnu=$ac_cv_c_compiler_gnu 6435 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438 6439 #include <Python.h> 6440int 6441main () 6442{ 6443Py_Initialize(); 6444 ; 6445 return 0; 6446} 6447 6448_ACEOF 6449if ac_fn_c_try_link "$LINENO"; then : 6450 pythonexists=yes 6451else 6452 pythonexists=no 6453fi 6454rm -f core conftest.err conftest.$ac_objext \ 6455 conftest$ac_exeext conftest.$ac_ext 6456 ac_ext=c 6457ac_cpp='$CPP $CPPFLAGS' 6458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6460ac_compiler_gnu=$ac_cv_c_compiler_gnu 6461 6462 # turn back to default flags 6463 CPPFLAGS="$ac_save_CPPFLAGS" 6464 LIBS="$ac_save_LIBS" 6465 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 6467$as_echo "$pythonexists" >&6; } 6468 6469 if test ! "x$pythonexists" = "xyes"; then 6470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6472as_fn_error $? " 6473 Could not link test program to Python. Maybe the main Python library has been 6474 installed in some non-standard library path. If so, pass it to configure, 6475 via the LDFLAGS environment variable. 6476 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 6477 ============================================================================ 6478 ERROR! 6479 You probably have to install the development version of the Python package 6480 for your distribution. The exact name of this package varies among them. 6481 ============================================================================ 6482 6483See \`config.log' for more details" "$LINENO" 5; } 6484 PYTHON_VERSION="" 6485 fi 6486 6487 # 6488 # all done! 6489 # 6490 6491 if test ! -z "$ac_python_version"; then 6492 ldns_have_python=yes 6493 fi 6494 6495 # pass additional Python 3 option to SWIG 6496 if test `$PYTHON -c "import sys; \ 6497 ver = sys.version.split()[0]; \ 6498 print(ver >= '3')"` = "True"; then 6499 SWIGPY3="-py3 -DPY3" 6500 6501 fi 6502 6503 # check for SWIG 6504 if test x_$ldns_have_python != x_no; then 6505 # =========================================================================== 6506# http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html 6507# =========================================================================== 6508# 6509# SYNOPSIS 6510# 6511# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) 6512# 6513# DESCRIPTION 6514# 6515# This macro searches for a SWIG installation on your system. If found, 6516# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is 6517# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. 6518# 6519# You can use the optional first argument to check if the version of the 6520# available SWIG is greater than or equal to the value of the argument. It 6521# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only 6522# the first N is mandatory.) If the version argument is given (e.g. 6523# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number 6524# or higher. 6525# 6526# As usual, action-if-found is executed if SWIG is found, otherwise 6527# action-if-not-found is executed. 6528# 6529# In configure.in, use as: 6530# 6531# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) 6532# AX_SWIG_ENABLE_CXX 6533# AX_SWIG_MULTI_MODULE_SUPPORT 6534# AX_SWIG_PYTHON 6535# 6536# LICENSE 6537# 6538# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> 6539# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> 6540# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> 6541# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> 6542# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com> 6543# 6544# This program is free software; you can redistribute it and/or modify it 6545# under the terms of the GNU General Public License as published by the 6546# Free Software Foundation; either version 2 of the License, or (at your 6547# option) any later version. 6548# 6549# This program is distributed in the hope that it will be useful, but 6550# WITHOUT ANY WARRANTY; without even the implied warranty of 6551# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 6552# Public License for more details. 6553# 6554# You should have received a copy of the GNU General Public License along 6555# with this program. If not, see <http://www.gnu.org/licenses/>. 6556# 6557# As a special exception, the respective Autoconf Macro's copyright owner 6558# gives unlimited permission to copy, distribute and modify the configure 6559# scripts that are the output of Autoconf when processing the Macro. You 6560# need not follow the terms of the GNU General Public License when using 6561# or distributing such scripts, even though portions of the text of the 6562# Macro appear in them. The GNU General Public License (GPL) does govern 6563# all other use of the material that constitutes the Autoconf Macro. 6564# 6565# This special exception to the GPL applies to versions of the Autoconf 6566# Macro released by the Autoconf Archive. When you make and distribute a 6567# modified version of the Autoconf Macro, you may extend this special 6568# exception to the GPL to apply to your modified version as well. 6569 6570#serial 8 6571 6572 6573 6574 6575 # check for >=SWIG-2.0.4 if Python 3.2 used 6576 if test `$PYTHON -c "import sys; \ 6577 ver = sys.version.split()[0]; \ 6578 print(ver >= '3.2')"` = "True"; then 6579 6580 # Ubuntu has swig 2.0 as /usr/bin/swig2.0 6581 for ac_prog in swig2.0 swig 6582do 6583 # Extract the first word of "$ac_prog", so it can be a program name with args. 6584set dummy $ac_prog; ac_word=$2 6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586$as_echo_n "checking for $ac_word... " >&6; } 6587if ${ac_cv_path_SWIG+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589else 6590 case $SWIG in 6591 [\\/]* | ?:[\\/]*) 6592 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 6593 ;; 6594 *) 6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6596for as_dir in $PATH 6597do 6598 IFS=$as_save_IFS 6599 test -z "$as_dir" && as_dir=. 6600 for ac_exec_ext in '' $ac_executable_extensions; do 6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6602 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6604 break 2 6605 fi 6606done 6607 done 6608IFS=$as_save_IFS 6609 6610 ;; 6611esac 6612fi 6613SWIG=$ac_cv_path_SWIG 6614if test -n "$SWIG"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 6616$as_echo "$SWIG" >&6; } 6617else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619$as_echo "no" >&6; } 6620fi 6621 6622 6623 test -n "$SWIG" && break 6624done 6625 6626 if test -z "$SWIG" ; then 6627 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 6628 elif test -n "2.0.4" ; then 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 6630$as_echo_n "checking SWIG version... " >&6; } 6631 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 6633$as_echo "$swig_version" >&6; } 6634 if test -n "$swig_version" ; then 6635 # Calculate the required version number components 6636 required=2.0.4 6637 required_major=`echo $required | sed 's/[^0-9].*//'` 6638 if test -z "$required_major" ; then 6639 required_major=0 6640 fi 6641 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6642 required_minor=`echo $required | sed 's/[^0-9].*//'` 6643 if test -z "$required_minor" ; then 6644 required_minor=0 6645 fi 6646 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6647 required_patch=`echo $required | sed 's/[^0-9].*//'` 6648 if test -z "$required_patch" ; then 6649 required_patch=0 6650 fi 6651 # Calculate the available version number components 6652 available=$swig_version 6653 available_major=`echo $available | sed 's/[^0-9].*//'` 6654 if test -z "$available_major" ; then 6655 available_major=0 6656 fi 6657 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6658 available_minor=`echo $available | sed 's/[^0-9].*//'` 6659 if test -z "$available_minor" ; then 6660 available_minor=0 6661 fi 6662 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6663 available_patch=`echo $available | sed 's/[^0-9].*//'` 6664 if test -z "$available_patch" ; then 6665 available_patch=0 6666 fi 6667 # Convert the version tuple into a single number for easier comparison. 6668 # Using base 100 should be safe since SWIG internally uses BCD values 6669 # to encode its version number. 6670 required_swig_vernum=`expr $required_major \* 10000 \ 6671 \+ $required_minor \* 100 \+ $required_patch` 6672 available_swig_vernum=`expr $available_major \* 10000 \ 6673 \+ $available_minor \* 100 \+ $available_patch` 6674 6675 if test $available_swig_vernum -lt $required_swig_vernum; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5 6677$as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;} 6678 SWIG='' 6679 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 6680 else 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 6682$as_echo_n "checking for SWIG library... " >&6; } 6683 SWIG_LIB=`$SWIG -swiglib` 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 6685$as_echo "$SWIG_LIB" >&6; } 6686 6687 fi 6688 else 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 6690$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 6691 SWIG='' 6692 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 6693 fi 6694 fi 6695 6696 6697 else 6698 6699 # Ubuntu has swig 2.0 as /usr/bin/swig2.0 6700 for ac_prog in swig2.0 swig 6701do 6702 # Extract the first word of "$ac_prog", so it can be a program name with args. 6703set dummy $ac_prog; ac_word=$2 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6705$as_echo_n "checking for $ac_word... " >&6; } 6706if ${ac_cv_path_SWIG+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 case $SWIG in 6710 [\\/]* | ?:[\\/]*) 6711 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 6712 ;; 6713 *) 6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 test -z "$as_dir" && as_dir=. 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6721 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726 done 6727IFS=$as_save_IFS 6728 6729 ;; 6730esac 6731fi 6732SWIG=$ac_cv_path_SWIG 6733if test -n "$SWIG"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 6735$as_echo "$SWIG" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 6742 test -n "$SWIG" && break 6743done 6744 6745 if test -z "$SWIG" ; then 6746 : 6747 elif test -n "" ; then 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 6749$as_echo_n "checking SWIG version... " >&6; } 6750 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 6752$as_echo "$swig_version" >&6; } 6753 if test -n "$swig_version" ; then 6754 # Calculate the required version number components 6755 required= 6756 required_major=`echo $required | sed 's/[^0-9].*//'` 6757 if test -z "$required_major" ; then 6758 required_major=0 6759 fi 6760 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6761 required_minor=`echo $required | sed 's/[^0-9].*//'` 6762 if test -z "$required_minor" ; then 6763 required_minor=0 6764 fi 6765 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6766 required_patch=`echo $required | sed 's/[^0-9].*//'` 6767 if test -z "$required_patch" ; then 6768 required_patch=0 6769 fi 6770 # Calculate the available version number components 6771 available=$swig_version 6772 available_major=`echo $available | sed 's/[^0-9].*//'` 6773 if test -z "$available_major" ; then 6774 available_major=0 6775 fi 6776 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6777 available_minor=`echo $available | sed 's/[^0-9].*//'` 6778 if test -z "$available_minor" ; then 6779 available_minor=0 6780 fi 6781 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6782 available_patch=`echo $available | sed 's/[^0-9].*//'` 6783 if test -z "$available_patch" ; then 6784 available_patch=0 6785 fi 6786 # Convert the version tuple into a single number for easier comparison. 6787 # Using base 100 should be safe since SWIG internally uses BCD values 6788 # to encode its version number. 6789 required_swig_vernum=`expr $required_major \* 10000 \ 6790 \+ $required_minor \* 100 \+ $required_patch` 6791 available_swig_vernum=`expr $available_major \* 10000 \ 6792 \+ $available_minor \* 100 \+ $available_patch` 6793 6794 if test $available_swig_vernum -lt $required_swig_vernum; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 6796$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 6797 SWIG='' 6798 6799 else 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 6801$as_echo_n "checking for SWIG library... " >&6; } 6802 SWIG_LIB=`$SWIG -swiglib` 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 6804$as_echo "$SWIG_LIB" >&6; } 6805 6806 fi 6807 else 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 6809$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 6810 SWIG='' 6811 6812 fi 6813 fi 6814 6815 6816 fi 6817 6818 if test ! -x "$SWIG"; then 6819 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5 6820 else 6821 6822$as_echo "#define HAVE_SWIG 1" >>confdefs.h 6823 6824 PYLDNS="pyldns" 6825 6826 swig="$SWIG" 6827 6828 ldns_with_pyldns=yes 6829 fi 6830 else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5 6832$as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # ' 6833 fi 6834 6835 # xtra cflags for pyldns 6836 if test x_$ldns_have_python != x_no; then 6837 6838 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 6840$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; } 6841cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 6842if eval \${cv_prog_cc_flag_$cache+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 6846echo 'void f(){}' >conftest.c 6847if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 6848eval "cv_prog_cc_flag_$cache=yes" 6849else 6850eval "cv_prog_cc_flag_$cache=no" 6851fi 6852rm -f conftest conftest.o conftest.c 6853 6854fi 6855 6856if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6858$as_echo "yes" >&6; } 6859: 6860PYTHON_X_CFLAGS="-fno-strict-aliasing" 6861else 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6863$as_echo "no" >&6; } 6864: 6865 6866fi 6867 6868 6869 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5 6871$as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; } 6872cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'` 6873if eval \${cv_prog_cc_flag_$cache+:} false; then : 6874 $as_echo_n "(cached) " >&6 6875else 6876 6877echo 'void f(){}' >conftest.c 6878if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then 6879eval "cv_prog_cc_flag_$cache=yes" 6880else 6881eval "cv_prog_cc_flag_$cache=no" 6882fi 6883rm -f conftest conftest.o conftest.c 6884 6885fi 6886 6887if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6889$as_echo "yes" >&6; } 6890: 6891PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS" 6892else 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895: 6896 6897fi 6898 6899 6900 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5 6902$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; } 6903cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'` 6904if eval \${cv_prog_cc_flag_$cache+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 6908echo 'void f(){}' >conftest.c 6909if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then 6910eval "cv_prog_cc_flag_$cache=yes" 6911else 6912eval "cv_prog_cc_flag_$cache=no" 6913fi 6914rm -f conftest conftest.o conftest.c 6915 6916fi 6917 6918if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6920$as_echo "yes" >&6; } 6921: 6922PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS" 6923else 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925$as_echo "no" >&6; } 6926: 6927 6928fi 6929 6930 6931 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5 6933$as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; } 6934cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'` 6935if eval \${cv_prog_cc_flag_$cache+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 6939echo 'void f(){}' >conftest.c 6940if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then 6941eval "cv_prog_cc_flag_$cache=yes" 6942else 6943eval "cv_prog_cc_flag_$cache=no" 6944fi 6945rm -f conftest conftest.o conftest.c 6946 6947fi 6948 6949if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6951$as_echo "yes" >&6; } 6952: 6953PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS" 6954else 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6956$as_echo "no" >&6; } 6957: 6958 6959fi 6960 6961 fi 6962fi 6963 6964 6965# Check for pyldnsx 6966 6967# Check whether --with-pyldnsx was given. 6968if test "${with_pyldnsx+set}" = set; then : 6969 withval=$with_pyldnsx; 6970else 6971 withval="with_pyldns" 6972fi 6973 6974if test x_$withval != x_no; then 6975 if test x_$ldns_with_pyldns != x_no; then 6976 PYLDNSX="pyldnsx" 6977 6978 ldns_with_pyldnsx=yes 6979 else 6980 if test x_$withval != x_with_pyldns; then 6981 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5 6982 fi 6983 fi 6984fi 6985 6986if test x_$ldns_with_pyldns != x_no; then 6987 PYLDNSINST="install-pyldns" 6988 PYLDNSUNINST="uninstall-pyldns" 6989 6990else 6991 PYLDNSINST="" 6992 PYLDNSUNINST="" 6993 6994fi 6995if test x_$ldns_with_pyldnsx != x_no; then 6996 PYLDNSXINST="install-pyldnsx" 6997 PYLDNSXUNINST="uninstall-pyldnsx" 6998 6999else 7000 PYLDNSXINST="" 7001 PYLDNSXUNINST="" 7002 7003fi 7004 7005# Use libtool 7006 7007# skip these tests, we do not need them. 7008 7009 7010 7011 7012 7013 7014 7015 7016# always use ./libtool unless override from commandline (libtool=mylibtool) 7017if test -z "$libtool"; then 7018 libtool="./libtool" 7019fi 7020 7021# avoid libtool max commandline length test on systems that fork slowly. 7022 7023if echo "$host_os" | grep "sunos4" >/dev/null; then 7024 lt_cv_sys_max_cmd_len=32750; 7025fi 7026if test -n "$ac_tool_prefix"; then 7027 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7028set dummy ${ac_tool_prefix}ar; ac_word=$2 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030$as_echo_n "checking for $ac_word... " >&6; } 7031if ${ac_cv_path_AR+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 case $AR in 7035 [\\/]* | ?:[\\/]*) 7036 ac_cv_path_AR="$AR" # Let the user override the test with a path. 7037 ;; 7038 *) 7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7046 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051 done 7052IFS=$as_save_IFS 7053 7054 ;; 7055esac 7056fi 7057AR=$ac_cv_path_AR 7058if test -n "$AR"; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7060$as_echo "$AR" >&6; } 7061else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063$as_echo "no" >&6; } 7064fi 7065 7066 7067fi 7068if test -z "$ac_cv_path_AR"; then 7069 ac_pt_AR=$AR 7070 # Extract the first word of "ar", so it can be a program name with args. 7071set dummy ar; ac_word=$2 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7073$as_echo_n "checking for $ac_word... " >&6; } 7074if ${ac_cv_path_ac_pt_AR+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076else 7077 case $ac_pt_AR in 7078 [\\/]* | ?:[\\/]*) 7079 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 7080 ;; 7081 *) 7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7083for as_dir in $PATH 7084do 7085 IFS=$as_save_IFS 7086 test -z "$as_dir" && as_dir=. 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7089 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093done 7094 done 7095IFS=$as_save_IFS 7096 7097 ;; 7098esac 7099fi 7100ac_pt_AR=$ac_cv_path_ac_pt_AR 7101if test -n "$ac_pt_AR"; then 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 7103$as_echo "$ac_pt_AR" >&6; } 7104else 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7106$as_echo "no" >&6; } 7107fi 7108 7109 if test "x$ac_pt_AR" = x; then 7110 AR="false" 7111 else 7112 case $cross_compiling:$ac_tool_warned in 7113yes:) 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7116ac_tool_warned=yes ;; 7117esac 7118 AR=$ac_pt_AR 7119 fi 7120else 7121 AR="$ac_cv_path_AR" 7122fi 7123 7124if test $AR = false; then 7125 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 7126fi 7127 7128case `pwd` in 7129 *\ * | *\ *) 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7131$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7132esac 7133 7134 7135 7136macro_version='2.4.2' 7137macro_revision='1.3337' 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151ltmain="$ac_aux_dir/ltmain.sh" 7152 7153# Backslashify metacharacters that are still active within 7154# double-quoted strings. 7155sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7156 7157# Same as above, but do not quote variable references. 7158double_quote_subst='s/\(["`\\]\)/\\\1/g' 7159 7160# Sed substitution to delay expansion of an escaped shell variable in a 7161# double_quote_subst'ed string. 7162delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7163 7164# Sed substitution to delay expansion of an escaped single quote. 7165delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7166 7167# Sed substitution to avoid accidental globbing in evaled expressions 7168no_glob_subst='s/\*/\\\*/g' 7169 7170ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7171ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7172ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7173 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7175$as_echo_n "checking how to print strings... " >&6; } 7176# Test print first, because it will be a builtin if present. 7177if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7178 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7179 ECHO='print -r --' 7180elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7181 ECHO='printf %s\n' 7182else 7183 # Use this function as a fallback that always works. 7184 func_fallback_echo () 7185 { 7186 eval 'cat <<_LTECHO_EOF 7187$1 7188_LTECHO_EOF' 7189 } 7190 ECHO='func_fallback_echo' 7191fi 7192 7193# func_echo_all arg... 7194# Invoke $ECHO with all args, space-separated. 7195func_echo_all () 7196{ 7197 $ECHO "" 7198} 7199 7200case "$ECHO" in 7201 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7202$as_echo "printf" >&6; } ;; 7203 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7204$as_echo "print -r" >&6; } ;; 7205 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7206$as_echo "cat" >&6; } ;; 7207esac 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7223$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7224if ${ac_cv_path_SED+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7228 for ac_i in 1 2 3 4 5 6 7; do 7229 ac_script="$ac_script$as_nl$ac_script" 7230 done 7231 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7232 { ac_script=; unset ac_script;} 7233 if test -z "$SED"; then 7234 ac_path_SED_found=false 7235 # Loop through the user's path and test for each of PROGNAME-LIST 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_prog in sed gsed; do 7242 for ac_exec_ext in '' $ac_executable_extensions; do 7243 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7244 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 7245# Check for GNU ac_path_SED and select it if it is found. 7246 # Check for GNU $ac_path_SED 7247case `"$ac_path_SED" --version 2>&1` in 7248*GNU*) 7249 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7250*) 7251 ac_count=0 7252 $as_echo_n 0123456789 >"conftest.in" 7253 while : 7254 do 7255 cat "conftest.in" "conftest.in" >"conftest.tmp" 7256 mv "conftest.tmp" "conftest.in" 7257 cp "conftest.in" "conftest.nl" 7258 $as_echo '' >> "conftest.nl" 7259 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7261 as_fn_arith $ac_count + 1 && ac_count=$as_val 7262 if test $ac_count -gt ${ac_path_SED_max-0}; then 7263 # Best one so far, save it but keep looking for a better one 7264 ac_cv_path_SED="$ac_path_SED" 7265 ac_path_SED_max=$ac_count 7266 fi 7267 # 10*(2^10) chars as input seems more than enough 7268 test $ac_count -gt 10 && break 7269 done 7270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7271esac 7272 7273 $ac_path_SED_found && break 3 7274 done 7275 done 7276 done 7277IFS=$as_save_IFS 7278 if test -z "$ac_cv_path_SED"; then 7279 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7280 fi 7281else 7282 ac_cv_path_SED=$SED 7283fi 7284 7285fi 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7287$as_echo "$ac_cv_path_SED" >&6; } 7288 SED="$ac_cv_path_SED" 7289 rm -f conftest.sed 7290 7291test -z "$SED" && SED=sed 7292Xsed="$SED -e 1s/^X//" 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7305$as_echo_n "checking for fgrep... " >&6; } 7306if ${ac_cv_path_FGREP+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7310 then ac_cv_path_FGREP="$GREP -F" 7311 else 7312 if test -z "$FGREP"; then 7313 ac_path_FGREP_found=false 7314 # Loop through the user's path and test for each of PROGNAME-LIST 7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7317do 7318 IFS=$as_save_IFS 7319 test -z "$as_dir" && as_dir=. 7320 for ac_prog in fgrep; do 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7323 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 7324# Check for GNU ac_path_FGREP and select it if it is found. 7325 # Check for GNU $ac_path_FGREP 7326case `"$ac_path_FGREP" --version 2>&1` in 7327*GNU*) 7328 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7329*) 7330 ac_count=0 7331 $as_echo_n 0123456789 >"conftest.in" 7332 while : 7333 do 7334 cat "conftest.in" "conftest.in" >"conftest.tmp" 7335 mv "conftest.tmp" "conftest.in" 7336 cp "conftest.in" "conftest.nl" 7337 $as_echo 'FGREP' >> "conftest.nl" 7338 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7340 as_fn_arith $ac_count + 1 && ac_count=$as_val 7341 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7342 # Best one so far, save it but keep looking for a better one 7343 ac_cv_path_FGREP="$ac_path_FGREP" 7344 ac_path_FGREP_max=$ac_count 7345 fi 7346 # 10*(2^10) chars as input seems more than enough 7347 test $ac_count -gt 10 && break 7348 done 7349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7350esac 7351 7352 $ac_path_FGREP_found && break 3 7353 done 7354 done 7355 done 7356IFS=$as_save_IFS 7357 if test -z "$ac_cv_path_FGREP"; then 7358 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7359 fi 7360else 7361 ac_cv_path_FGREP=$FGREP 7362fi 7363 7364 fi 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7367$as_echo "$ac_cv_path_FGREP" >&6; } 7368 FGREP="$ac_cv_path_FGREP" 7369 7370 7371test -z "$GREP" && GREP=grep 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391# Check whether --with-gnu-ld was given. 7392if test "${with_gnu_ld+set}" = set; then : 7393 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7394else 7395 with_gnu_ld=no 7396fi 7397 7398ac_prog=ld 7399if test "$GCC" = yes; then 7400 # Check if gcc -print-prog-name=ld gives a path. 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7402$as_echo_n "checking for ld used by $CC... " >&6; } 7403 case $host in 7404 *-*-mingw*) 7405 # gcc leaves a trailing carriage return which upsets mingw 7406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7407 *) 7408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7409 esac 7410 case $ac_prog in 7411 # Accept absolute paths. 7412 [\\/]* | ?:[\\/]*) 7413 re_direlt='/[^/][^/]*/\.\./' 7414 # Canonicalize the pathname of ld 7415 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7416 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7417 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7418 done 7419 test -z "$LD" && LD="$ac_prog" 7420 ;; 7421 "") 7422 # If it fails, then pretend we aren't using GCC. 7423 ac_prog=ld 7424 ;; 7425 *) 7426 # If it is relative, then search for the first ld in PATH. 7427 with_gnu_ld=unknown 7428 ;; 7429 esac 7430elif test "$with_gnu_ld" = yes; then 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7432$as_echo_n "checking for GNU ld... " >&6; } 7433else 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7435$as_echo_n "checking for non-GNU ld... " >&6; } 7436fi 7437if ${lt_cv_path_LD+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 if test -z "$LD"; then 7441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7442 for ac_dir in $PATH; do 7443 IFS="$lt_save_ifs" 7444 test -z "$ac_dir" && ac_dir=. 7445 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7446 lt_cv_path_LD="$ac_dir/$ac_prog" 7447 # Check to see if the program is GNU ld. I'd rather use --version, 7448 # but apparently some variants of GNU ld only accept -v. 7449 # Break only if it was the GNU/non-GNU ld that we prefer. 7450 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7451 *GNU* | *'with BFD'*) 7452 test "$with_gnu_ld" != no && break 7453 ;; 7454 *) 7455 test "$with_gnu_ld" != yes && break 7456 ;; 7457 esac 7458 fi 7459 done 7460 IFS="$lt_save_ifs" 7461else 7462 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7463fi 7464fi 7465 7466LD="$lt_cv_path_LD" 7467if test -n "$LD"; then 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7469$as_echo "$LD" >&6; } 7470else 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7472$as_echo "no" >&6; } 7473fi 7474test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7476$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7477if ${lt_cv_prog_gnu_ld+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7481case `$LD -v 2>&1 </dev/null` in 7482*GNU* | *'with BFD'*) 7483 lt_cv_prog_gnu_ld=yes 7484 ;; 7485*) 7486 lt_cv_prog_gnu_ld=no 7487 ;; 7488esac 7489fi 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7491$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7492with_gnu_ld=$lt_cv_prog_gnu_ld 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7503$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7504if ${lt_cv_path_NM+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 if test -n "$NM"; then 7508 # Let the user override the test. 7509 lt_cv_path_NM="$NM" 7510else 7511 lt_nm_to_check="${ac_tool_prefix}nm" 7512 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7513 lt_nm_to_check="$lt_nm_to_check nm" 7514 fi 7515 for lt_tmp_nm in $lt_nm_to_check; do 7516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7517 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7518 IFS="$lt_save_ifs" 7519 test -z "$ac_dir" && ac_dir=. 7520 tmp_nm="$ac_dir/$lt_tmp_nm" 7521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7522 # Check to see if the nm accepts a BSD-compat flag. 7523 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7524 # nm: unknown option "B" ignored 7525 # Tru64's nm complains that /dev/null is an invalid object file 7526 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7527 */dev/null* | *'Invalid file or object type'*) 7528 lt_cv_path_NM="$tmp_nm -B" 7529 break 7530 ;; 7531 *) 7532 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7533 */dev/null*) 7534 lt_cv_path_NM="$tmp_nm -p" 7535 break 7536 ;; 7537 *) 7538 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7539 continue # so that we can try to find one that supports BSD flags 7540 ;; 7541 esac 7542 ;; 7543 esac 7544 fi 7545 done 7546 IFS="$lt_save_ifs" 7547 done 7548 : ${lt_cv_path_NM=no} 7549fi 7550fi 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7552$as_echo "$lt_cv_path_NM" >&6; } 7553if test "$lt_cv_path_NM" != "no"; then 7554 NM="$lt_cv_path_NM" 7555else 7556 # Didn't find any BSD compatible name lister, look for dumpbin. 7557 if test -n "$DUMPBIN"; then : 7558 # Let the user override the test. 7559 else 7560 if test -n "$ac_tool_prefix"; then 7561 for ac_prog in dumpbin "link -dump" 7562 do 7563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7564set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566$as_echo_n "checking for $ac_word... " >&6; } 7567if ${ac_cv_prog_DUMPBIN+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 if test -n "$DUMPBIN"; then 7571 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7580 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584done 7585 done 7586IFS=$as_save_IFS 7587 7588fi 7589fi 7590DUMPBIN=$ac_cv_prog_DUMPBIN 7591if test -n "$DUMPBIN"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7593$as_echo "$DUMPBIN" >&6; } 7594else 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7596$as_echo "no" >&6; } 7597fi 7598 7599 7600 test -n "$DUMPBIN" && break 7601 done 7602fi 7603if test -z "$DUMPBIN"; then 7604 ac_ct_DUMPBIN=$DUMPBIN 7605 for ac_prog in dumpbin "link -dump" 7606do 7607 # Extract the first word of "$ac_prog", so it can be a program name with args. 7608set dummy $ac_prog; ac_word=$2 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7610$as_echo_n "checking for $ac_word... " >&6; } 7611if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 if test -n "$ac_ct_DUMPBIN"; then 7615 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7616else 7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7618for as_dir in $PATH 7619do 7620 IFS=$as_save_IFS 7621 test -z "$as_dir" && as_dir=. 7622 for ac_exec_ext in '' $ac_executable_extensions; do 7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7624 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7626 break 2 7627 fi 7628done 7629 done 7630IFS=$as_save_IFS 7631 7632fi 7633fi 7634ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7635if test -n "$ac_ct_DUMPBIN"; then 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7637$as_echo "$ac_ct_DUMPBIN" >&6; } 7638else 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7640$as_echo "no" >&6; } 7641fi 7642 7643 7644 test -n "$ac_ct_DUMPBIN" && break 7645done 7646 7647 if test "x$ac_ct_DUMPBIN" = x; then 7648 DUMPBIN=":" 7649 else 7650 case $cross_compiling:$ac_tool_warned in 7651yes:) 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7654ac_tool_warned=yes ;; 7655esac 7656 DUMPBIN=$ac_ct_DUMPBIN 7657 fi 7658fi 7659 7660 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7661 *COFF*) 7662 DUMPBIN="$DUMPBIN -symbols" 7663 ;; 7664 *) 7665 DUMPBIN=: 7666 ;; 7667 esac 7668 fi 7669 7670 if test "$DUMPBIN" != ":"; then 7671 NM="$DUMPBIN" 7672 fi 7673fi 7674test -z "$NM" && NM=nm 7675 7676 7677 7678 7679 7680 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7682$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7683if ${lt_cv_nm_interface+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 lt_cv_nm_interface="BSD nm" 7687 echo "int some_variable = 0;" > conftest.$ac_ext 7688 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7689 (eval "$ac_compile" 2>conftest.err) 7690 cat conftest.err >&5 7691 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7692 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7693 cat conftest.err >&5 7694 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7695 cat conftest.out >&5 7696 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7697 lt_cv_nm_interface="MS dumpbin" 7698 fi 7699 rm -f conftest* 7700fi 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7702$as_echo "$lt_cv_nm_interface" >&6; } 7703 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7705$as_echo_n "checking whether ln -s works... " >&6; } 7706LN_S=$as_ln_s 7707if test "$LN_S" = "ln -s"; then 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7709$as_echo "yes" >&6; } 7710else 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7712$as_echo "no, using $LN_S" >&6; } 7713fi 7714 7715# find the maximum length of command line arguments 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7717$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7718if ${lt_cv_sys_max_cmd_len+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 i=0 7722 teststring="ABCD" 7723 7724 case $build_os in 7725 msdosdjgpp*) 7726 # On DJGPP, this test can blow up pretty badly due to problems in libc 7727 # (any single argument exceeding 2000 bytes causes a buffer overrun 7728 # during glob expansion). Even if it were fixed, the result of this 7729 # check would be larger than it should be. 7730 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7731 ;; 7732 7733 gnu*) 7734 # Under GNU Hurd, this test is not required because there is 7735 # no limit to the length of command line arguments. 7736 # Libtool will interpret -1 as no limit whatsoever 7737 lt_cv_sys_max_cmd_len=-1; 7738 ;; 7739 7740 cygwin* | mingw* | cegcc*) 7741 # On Win9x/ME, this test blows up -- it succeeds, but takes 7742 # about 5 minutes as the teststring grows exponentially. 7743 # Worse, since 9x/ME are not pre-emptively multitasking, 7744 # you end up with a "frozen" computer, even though with patience 7745 # the test eventually succeeds (with a max line length of 256k). 7746 # Instead, let's just punt: use the minimum linelength reported by 7747 # all of the supported platforms: 8192 (on NT/2K/XP). 7748 lt_cv_sys_max_cmd_len=8192; 7749 ;; 7750 7751 mint*) 7752 # On MiNT this can take a long time and run out of memory. 7753 lt_cv_sys_max_cmd_len=8192; 7754 ;; 7755 7756 amigaos*) 7757 # On AmigaOS with pdksh, this test takes hours, literally. 7758 # So we just punt and use a minimum line length of 8192. 7759 lt_cv_sys_max_cmd_len=8192; 7760 ;; 7761 7762 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7763 # This has been around since 386BSD, at least. Likely further. 7764 if test -x /sbin/sysctl; then 7765 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7766 elif test -x /usr/sbin/sysctl; then 7767 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7768 else 7769 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7770 fi 7771 # And add a safety zone 7772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7774 ;; 7775 7776 interix*) 7777 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7778 lt_cv_sys_max_cmd_len=196608 7779 ;; 7780 7781 os2*) 7782 # The test takes a long time on OS/2. 7783 lt_cv_sys_max_cmd_len=8192 7784 ;; 7785 7786 osf*) 7787 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7788 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7789 # nice to cause kernel panics so lets avoid the loop below. 7790 # First set a reasonable default. 7791 lt_cv_sys_max_cmd_len=16384 7792 # 7793 if test -x /sbin/sysconfig; then 7794 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7795 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7796 esac 7797 fi 7798 ;; 7799 sco3.2v5*) 7800 lt_cv_sys_max_cmd_len=102400 7801 ;; 7802 sysv5* | sco5v6* | sysv4.2uw2*) 7803 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7804 if test -n "$kargmax"; then 7805 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7806 else 7807 lt_cv_sys_max_cmd_len=32768 7808 fi 7809 ;; 7810 *) 7811 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7812 if test -n "$lt_cv_sys_max_cmd_len"; then 7813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7815 else 7816 # Make teststring a little bigger before we do anything with it. 7817 # a 1K string should be a reasonable start. 7818 for i in 1 2 3 4 5 6 7 8 ; do 7819 teststring=$teststring$teststring 7820 done 7821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7822 # If test is not a shell built-in, we'll probably end up computing a 7823 # maximum length that is only half of the actual maximum length, but 7824 # we can't tell. 7825 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7826 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7827 test $i != 17 # 1/2 MB should be enough 7828 do 7829 i=`expr $i + 1` 7830 teststring=$teststring$teststring 7831 done 7832 # Only check the string length outside the loop. 7833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7834 teststring= 7835 # Add a significant safety factor because C++ compilers can tack on 7836 # massive amounts of additional arguments before passing them to the 7837 # linker. It appears as though 1/2 is a usable value. 7838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7839 fi 7840 ;; 7841 esac 7842 7843fi 7844 7845if test -n $lt_cv_sys_max_cmd_len ; then 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7847$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7848else 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7850$as_echo "none" >&6; } 7851fi 7852max_cmd_len=$lt_cv_sys_max_cmd_len 7853 7854 7855 7856 7857 7858 7859: ${CP="cp -f"} 7860: ${MV="mv -f"} 7861: ${RM="rm -f"} 7862 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7864$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7865# Try some XSI features 7866xsi_shell=no 7867( _lt_dummy="a/b/c" 7868 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7869 = c,a/b,b/c, \ 7870 && eval 'test $(( 1 + 1 )) -eq 2 \ 7871 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7872 && xsi_shell=yes 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7874$as_echo "$xsi_shell" >&6; } 7875 7876 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7878$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7879lt_shell_append=no 7880( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7881 >/dev/null 2>&1 \ 7882 && lt_shell_append=yes 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7884$as_echo "$lt_shell_append" >&6; } 7885 7886 7887if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7888 lt_unset=unset 7889else 7890 lt_unset=false 7891fi 7892 7893 7894 7895 7896 7897# test EBCDIC or ASCII 7898case `echo X|tr X '\101'` in 7899 A) # ASCII based system 7900 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7901 lt_SP2NL='tr \040 \012' 7902 lt_NL2SP='tr \015\012 \040\040' 7903 ;; 7904 *) # EBCDIC based system 7905 lt_SP2NL='tr \100 \n' 7906 lt_NL2SP='tr \r\n \100\100' 7907 ;; 7908esac 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7919$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7920if ${lt_cv_to_host_file_cmd+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 case $host in 7924 *-*-mingw* ) 7925 case $build in 7926 *-*-mingw* ) # actually msys 7927 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7928 ;; 7929 *-*-cygwin* ) 7930 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7931 ;; 7932 * ) # otherwise, assume *nix 7933 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7934 ;; 7935 esac 7936 ;; 7937 *-*-cygwin* ) 7938 case $build in 7939 *-*-mingw* ) # actually msys 7940 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7941 ;; 7942 *-*-cygwin* ) 7943 lt_cv_to_host_file_cmd=func_convert_file_noop 7944 ;; 7945 * ) # otherwise, assume *nix 7946 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7947 ;; 7948 esac 7949 ;; 7950 * ) # unhandled hosts (and "normal" native builds) 7951 lt_cv_to_host_file_cmd=func_convert_file_noop 7952 ;; 7953esac 7954 7955fi 7956 7957to_host_file_cmd=$lt_cv_to_host_file_cmd 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7959$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7960 7961 7962 7963 7964 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7966$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7967if ${lt_cv_to_tool_file_cmd+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 #assume ordinary cross tools, or native build. 7971lt_cv_to_tool_file_cmd=func_convert_file_noop 7972case $host in 7973 *-*-mingw* ) 7974 case $build in 7975 *-*-mingw* ) # actually msys 7976 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7977 ;; 7978 esac 7979 ;; 7980esac 7981 7982fi 7983 7984to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7986$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7987 7988 7989 7990 7991 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7993$as_echo_n "checking for $LD option to reload object files... " >&6; } 7994if ${lt_cv_ld_reload_flag+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 lt_cv_ld_reload_flag='-r' 7998fi 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8000$as_echo "$lt_cv_ld_reload_flag" >&6; } 8001reload_flag=$lt_cv_ld_reload_flag 8002case $reload_flag in 8003"" | " "*) ;; 8004*) reload_flag=" $reload_flag" ;; 8005esac 8006reload_cmds='$LD$reload_flag -o $output$reload_objs' 8007case $host_os in 8008 cygwin* | mingw* | pw32* | cegcc*) 8009 if test "$GCC" != yes; then 8010 reload_cmds=false 8011 fi 8012 ;; 8013 darwin*) 8014 if test "$GCC" = yes; then 8015 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8016 else 8017 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8018 fi 8019 ;; 8020esac 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030if test -n "$ac_tool_prefix"; then 8031 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8032set dummy ${ac_tool_prefix}objdump; ac_word=$2 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8034$as_echo_n "checking for $ac_word... " >&6; } 8035if ${ac_cv_prog_OBJDUMP+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 if test -n "$OBJDUMP"; then 8039 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8040else 8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8042for as_dir in $PATH 8043do 8044 IFS=$as_save_IFS 8045 test -z "$as_dir" && as_dir=. 8046 for ac_exec_ext in '' $ac_executable_extensions; do 8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8048 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8050 break 2 8051 fi 8052done 8053 done 8054IFS=$as_save_IFS 8055 8056fi 8057fi 8058OBJDUMP=$ac_cv_prog_OBJDUMP 8059if test -n "$OBJDUMP"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8061$as_echo "$OBJDUMP" >&6; } 8062else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064$as_echo "no" >&6; } 8065fi 8066 8067 8068fi 8069if test -z "$ac_cv_prog_OBJDUMP"; then 8070 ac_ct_OBJDUMP=$OBJDUMP 8071 # Extract the first word of "objdump", so it can be a program name with args. 8072set dummy objdump; ac_word=$2 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8074$as_echo_n "checking for $ac_word... " >&6; } 8075if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 if test -n "$ac_ct_OBJDUMP"; then 8079 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8080else 8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8082for as_dir in $PATH 8083do 8084 IFS=$as_save_IFS 8085 test -z "$as_dir" && as_dir=. 8086 for ac_exec_ext in '' $ac_executable_extensions; do 8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8088 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8090 break 2 8091 fi 8092done 8093 done 8094IFS=$as_save_IFS 8095 8096fi 8097fi 8098ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8099if test -n "$ac_ct_OBJDUMP"; then 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8101$as_echo "$ac_ct_OBJDUMP" >&6; } 8102else 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8104$as_echo "no" >&6; } 8105fi 8106 8107 if test "x$ac_ct_OBJDUMP" = x; then 8108 OBJDUMP="false" 8109 else 8110 case $cross_compiling:$ac_tool_warned in 8111yes:) 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8114ac_tool_warned=yes ;; 8115esac 8116 OBJDUMP=$ac_ct_OBJDUMP 8117 fi 8118else 8119 OBJDUMP="$ac_cv_prog_OBJDUMP" 8120fi 8121 8122test -z "$OBJDUMP" && OBJDUMP=objdump 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8133$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8134if ${lt_cv_deplibs_check_method+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 lt_cv_file_magic_cmd='$MAGIC_CMD' 8138lt_cv_file_magic_test_file= 8139lt_cv_deplibs_check_method='unknown' 8140# Need to set the preceding variable on all platforms that support 8141# interlibrary dependencies. 8142# 'none' -- dependencies not supported. 8143# `unknown' -- same as none, but documents that we really don't know. 8144# 'pass_all' -- all dependencies passed with no checks. 8145# 'test_compile' -- check by making test program. 8146# 'file_magic [[regex]]' -- check by looking for files in library path 8147# which responds to the $file_magic_cmd with a given extended regex. 8148# If you have `file' or equivalent on your system and you're not sure 8149# whether `pass_all' will *always* work, you probably want this one. 8150 8151case $host_os in 8152aix[4-9]*) 8153 lt_cv_deplibs_check_method=pass_all 8154 ;; 8155 8156beos*) 8157 lt_cv_deplibs_check_method=pass_all 8158 ;; 8159 8160bsdi[45]*) 8161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8162 lt_cv_file_magic_cmd='/usr/bin/file -L' 8163 lt_cv_file_magic_test_file=/shlib/libc.so 8164 ;; 8165 8166cygwin*) 8167 # func_win32_libid is a shell function defined in ltmain.sh 8168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8169 lt_cv_file_magic_cmd='func_win32_libid' 8170 ;; 8171 8172mingw* | pw32*) 8173 # Base MSYS/MinGW do not provide the 'file' command needed by 8174 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8175 # unless we find 'file', for example because we are cross-compiling. 8176 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8177 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8179 lt_cv_file_magic_cmd='func_win32_libid' 8180 else 8181 # Keep this pattern in sync with the one in func_win32_libid. 8182 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8183 lt_cv_file_magic_cmd='$OBJDUMP -f' 8184 fi 8185 ;; 8186 8187cegcc*) 8188 # use the weaker test based on 'objdump'. See mingw*. 8189 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8190 lt_cv_file_magic_cmd='$OBJDUMP -f' 8191 ;; 8192 8193darwin* | rhapsody*) 8194 lt_cv_deplibs_check_method=pass_all 8195 ;; 8196 8197freebsd* | dragonfly*) 8198 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8199 case $host_cpu in 8200 i*86 ) 8201 # Not sure whether the presence of OpenBSD here was a mistake. 8202 # Let's accept both of them until this is cleared up. 8203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8204 lt_cv_file_magic_cmd=/usr/bin/file 8205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8206 ;; 8207 esac 8208 else 8209 lt_cv_deplibs_check_method=pass_all 8210 fi 8211 ;; 8212 8213gnu*) 8214 lt_cv_deplibs_check_method=pass_all 8215 ;; 8216 8217haiku*) 8218 lt_cv_deplibs_check_method=pass_all 8219 ;; 8220 8221hpux10.20* | hpux11*) 8222 lt_cv_file_magic_cmd=/usr/bin/file 8223 case $host_cpu in 8224 ia64*) 8225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8227 ;; 8228 hppa*64*) 8229 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]' 8230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8231 ;; 8232 *) 8233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8234 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8235 ;; 8236 esac 8237 ;; 8238 8239interix[3-9]*) 8240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8242 ;; 8243 8244irix5* | irix6* | nonstopux*) 8245 case $LD in 8246 *-32|*"-32 ") libmagic=32-bit;; 8247 *-n32|*"-n32 ") libmagic=N32;; 8248 *-64|*"-64 ") libmagic=64-bit;; 8249 *) libmagic=never-match;; 8250 esac 8251 lt_cv_deplibs_check_method=pass_all 8252 ;; 8253 8254# This must be glibc/ELF. 8255linux* | k*bsd*-gnu | kopensolaris*-gnu) 8256 lt_cv_deplibs_check_method=pass_all 8257 ;; 8258 8259netbsd* | netbsdelf*-gnu) 8260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8262 else 8263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8264 fi 8265 ;; 8266 8267newos6*) 8268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8269 lt_cv_file_magic_cmd=/usr/bin/file 8270 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8271 ;; 8272 8273*nto* | *qnx*) 8274 lt_cv_deplibs_check_method=pass_all 8275 ;; 8276 8277openbsd*) 8278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8280 else 8281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8282 fi 8283 ;; 8284 8285osf3* | osf4* | osf5*) 8286 lt_cv_deplibs_check_method=pass_all 8287 ;; 8288 8289rdos*) 8290 lt_cv_deplibs_check_method=pass_all 8291 ;; 8292 8293solaris*) 8294 lt_cv_deplibs_check_method=pass_all 8295 ;; 8296 8297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8298 lt_cv_deplibs_check_method=pass_all 8299 ;; 8300 8301sysv4 | sysv4.3*) 8302 case $host_vendor in 8303 motorola) 8304 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]' 8305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8306 ;; 8307 ncr) 8308 lt_cv_deplibs_check_method=pass_all 8309 ;; 8310 sequent) 8311 lt_cv_file_magic_cmd='/bin/file' 8312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8313 ;; 8314 sni) 8315 lt_cv_file_magic_cmd='/bin/file' 8316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8317 lt_cv_file_magic_test_file=/lib/libc.so 8318 ;; 8319 siemens) 8320 lt_cv_deplibs_check_method=pass_all 8321 ;; 8322 pc) 8323 lt_cv_deplibs_check_method=pass_all 8324 ;; 8325 esac 8326 ;; 8327 8328tpf*) 8329 lt_cv_deplibs_check_method=pass_all 8330 ;; 8331esac 8332 8333fi 8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8335$as_echo "$lt_cv_deplibs_check_method" >&6; } 8336 8337file_magic_glob= 8338want_nocaseglob=no 8339if test "$build" = "$host"; then 8340 case $host_os in 8341 mingw* | pw32*) 8342 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8343 want_nocaseglob=yes 8344 else 8345 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8346 fi 8347 ;; 8348 esac 8349fi 8350 8351file_magic_cmd=$lt_cv_file_magic_cmd 8352deplibs_check_method=$lt_cv_deplibs_check_method 8353test -z "$deplibs_check_method" && deplibs_check_method=unknown 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376if test -n "$ac_tool_prefix"; then 8377 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8378set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8380$as_echo_n "checking for $ac_word... " >&6; } 8381if ${ac_cv_prog_DLLTOOL+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 if test -n "$DLLTOOL"; then 8385 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8386else 8387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8388for as_dir in $PATH 8389do 8390 IFS=$as_save_IFS 8391 test -z "$as_dir" && as_dir=. 8392 for ac_exec_ext in '' $ac_executable_extensions; do 8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8394 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8396 break 2 8397 fi 8398done 8399 done 8400IFS=$as_save_IFS 8401 8402fi 8403fi 8404DLLTOOL=$ac_cv_prog_DLLTOOL 8405if test -n "$DLLTOOL"; then 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8407$as_echo "$DLLTOOL" >&6; } 8408else 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8410$as_echo "no" >&6; } 8411fi 8412 8413 8414fi 8415if test -z "$ac_cv_prog_DLLTOOL"; then 8416 ac_ct_DLLTOOL=$DLLTOOL 8417 # Extract the first word of "dlltool", so it can be a program name with args. 8418set dummy dlltool; ac_word=$2 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8420$as_echo_n "checking for $ac_word... " >&6; } 8421if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8422 $as_echo_n "(cached) " >&6 8423else 8424 if test -n "$ac_ct_DLLTOOL"; then 8425 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8426else 8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8428for as_dir in $PATH 8429do 8430 IFS=$as_save_IFS 8431 test -z "$as_dir" && as_dir=. 8432 for ac_exec_ext in '' $ac_executable_extensions; do 8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8434 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8436 break 2 8437 fi 8438done 8439 done 8440IFS=$as_save_IFS 8441 8442fi 8443fi 8444ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8445if test -n "$ac_ct_DLLTOOL"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8447$as_echo "$ac_ct_DLLTOOL" >&6; } 8448else 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450$as_echo "no" >&6; } 8451fi 8452 8453 if test "x$ac_ct_DLLTOOL" = x; then 8454 DLLTOOL="false" 8455 else 8456 case $cross_compiling:$ac_tool_warned in 8457yes:) 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8460ac_tool_warned=yes ;; 8461esac 8462 DLLTOOL=$ac_ct_DLLTOOL 8463 fi 8464else 8465 DLLTOOL="$ac_cv_prog_DLLTOOL" 8466fi 8467 8468test -z "$DLLTOOL" && DLLTOOL=dlltool 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8480$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8481if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 lt_cv_sharedlib_from_linklib_cmd='unknown' 8485 8486case $host_os in 8487cygwin* | mingw* | pw32* | cegcc*) 8488 # two different shell functions defined in ltmain.sh 8489 # decide which to use based on capabilities of $DLLTOOL 8490 case `$DLLTOOL --help 2>&1` in 8491 *--identify-strict*) 8492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8493 ;; 8494 *) 8495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8496 ;; 8497 esac 8498 ;; 8499*) 8500 # fallback: assume linklib IS sharedlib 8501 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8502 ;; 8503esac 8504 8505fi 8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8507$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8508sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8509test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8510 8511 8512 8513 8514 8515 8516 8517if test -n "$ac_tool_prefix"; then 8518 for ac_prog in ar 8519 do 8520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8521set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8523$as_echo_n "checking for $ac_word... " >&6; } 8524if ${ac_cv_prog_AR+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 if test -n "$AR"; then 8528 ac_cv_prog_AR="$AR" # Let the user override the test. 8529else 8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8531for as_dir in $PATH 8532do 8533 IFS=$as_save_IFS 8534 test -z "$as_dir" && as_dir=. 8535 for ac_exec_ext in '' $ac_executable_extensions; do 8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8537 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8539 break 2 8540 fi 8541done 8542 done 8543IFS=$as_save_IFS 8544 8545fi 8546fi 8547AR=$ac_cv_prog_AR 8548if test -n "$AR"; then 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8550$as_echo "$AR" >&6; } 8551else 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8553$as_echo "no" >&6; } 8554fi 8555 8556 8557 test -n "$AR" && break 8558 done 8559fi 8560if test -z "$AR"; then 8561 ac_ct_AR=$AR 8562 for ac_prog in ar 8563do 8564 # Extract the first word of "$ac_prog", so it can be a program name with args. 8565set dummy $ac_prog; ac_word=$2 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8567$as_echo_n "checking for $ac_word... " >&6; } 8568if ${ac_cv_prog_ac_ct_AR+:} false; then : 8569 $as_echo_n "(cached) " >&6 8570else 8571 if test -n "$ac_ct_AR"; then 8572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8573else 8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8575for as_dir in $PATH 8576do 8577 IFS=$as_save_IFS 8578 test -z "$as_dir" && as_dir=. 8579 for ac_exec_ext in '' $ac_executable_extensions; do 8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8581 ac_cv_prog_ac_ct_AR="$ac_prog" 8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8583 break 2 8584 fi 8585done 8586 done 8587IFS=$as_save_IFS 8588 8589fi 8590fi 8591ac_ct_AR=$ac_cv_prog_ac_ct_AR 8592if test -n "$ac_ct_AR"; then 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8594$as_echo "$ac_ct_AR" >&6; } 8595else 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8597$as_echo "no" >&6; } 8598fi 8599 8600 8601 test -n "$ac_ct_AR" && break 8602done 8603 8604 if test "x$ac_ct_AR" = x; then 8605 AR="false" 8606 else 8607 case $cross_compiling:$ac_tool_warned in 8608yes:) 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8611ac_tool_warned=yes ;; 8612esac 8613 AR=$ac_ct_AR 8614 fi 8615fi 8616 8617: ${AR=ar} 8618: ${AR_FLAGS=cru} 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8631$as_echo_n "checking for archiver @FILE support... " >&6; } 8632if ${lt_cv_ar_at_file+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 lt_cv_ar_at_file=no 8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637/* end confdefs.h. */ 8638 8639int 8640main () 8641{ 8642 8643 ; 8644 return 0; 8645} 8646_ACEOF 8647if ac_fn_c_try_compile "$LINENO"; then : 8648 echo conftest.$ac_objext > conftest.lst 8649 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8651 (eval $lt_ar_try) 2>&5 8652 ac_status=$? 8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8654 test $ac_status = 0; } 8655 if test "$ac_status" -eq 0; then 8656 # Ensure the archiver fails upon bogus file names. 8657 rm -f conftest.$ac_objext libconftest.a 8658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8659 (eval $lt_ar_try) 2>&5 8660 ac_status=$? 8661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8662 test $ac_status = 0; } 8663 if test "$ac_status" -ne 0; then 8664 lt_cv_ar_at_file=@ 8665 fi 8666 fi 8667 rm -f conftest.* libconftest.a 8668 8669fi 8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8671 8672fi 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8674$as_echo "$lt_cv_ar_at_file" >&6; } 8675 8676if test "x$lt_cv_ar_at_file" = xno; then 8677 archiver_list_spec= 8678else 8679 archiver_list_spec=$lt_cv_ar_at_file 8680fi 8681 8682 8683 8684 8685 8686 8687 8688if test -n "$ac_tool_prefix"; then 8689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8690set dummy ${ac_tool_prefix}strip; ac_word=$2 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8692$as_echo_n "checking for $ac_word... " >&6; } 8693if ${ac_cv_prog_STRIP+:} false; then : 8694 $as_echo_n "(cached) " >&6 8695else 8696 if test -n "$STRIP"; then 8697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8698else 8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8700for as_dir in $PATH 8701do 8702 IFS=$as_save_IFS 8703 test -z "$as_dir" && as_dir=. 8704 for ac_exec_ext in '' $ac_executable_extensions; do 8705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8706 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8708 break 2 8709 fi 8710done 8711 done 8712IFS=$as_save_IFS 8713 8714fi 8715fi 8716STRIP=$ac_cv_prog_STRIP 8717if test -n "$STRIP"; then 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8719$as_echo "$STRIP" >&6; } 8720else 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8722$as_echo "no" >&6; } 8723fi 8724 8725 8726fi 8727if test -z "$ac_cv_prog_STRIP"; then 8728 ac_ct_STRIP=$STRIP 8729 # Extract the first word of "strip", so it can be a program name with args. 8730set dummy strip; ac_word=$2 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8732$as_echo_n "checking for $ac_word... " >&6; } 8733if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8734 $as_echo_n "(cached) " >&6 8735else 8736 if test -n "$ac_ct_STRIP"; then 8737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8738else 8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8740for as_dir in $PATH 8741do 8742 IFS=$as_save_IFS 8743 test -z "$as_dir" && as_dir=. 8744 for ac_exec_ext in '' $ac_executable_extensions; do 8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8746 ac_cv_prog_ac_ct_STRIP="strip" 8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8748 break 2 8749 fi 8750done 8751 done 8752IFS=$as_save_IFS 8753 8754fi 8755fi 8756ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8757if test -n "$ac_ct_STRIP"; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8759$as_echo "$ac_ct_STRIP" >&6; } 8760else 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8762$as_echo "no" >&6; } 8763fi 8764 8765 if test "x$ac_ct_STRIP" = x; then 8766 STRIP=":" 8767 else 8768 case $cross_compiling:$ac_tool_warned in 8769yes:) 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8772ac_tool_warned=yes ;; 8773esac 8774 STRIP=$ac_ct_STRIP 8775 fi 8776else 8777 STRIP="$ac_cv_prog_STRIP" 8778fi 8779 8780test -z "$STRIP" && STRIP=: 8781 8782 8783 8784 8785 8786 8787if test -n "$ac_tool_prefix"; then 8788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8789set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8791$as_echo_n "checking for $ac_word... " >&6; } 8792if ${ac_cv_prog_RANLIB+:} false; then : 8793 $as_echo_n "(cached) " >&6 8794else 8795 if test -n "$RANLIB"; then 8796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8797else 8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8799for as_dir in $PATH 8800do 8801 IFS=$as_save_IFS 8802 test -z "$as_dir" && as_dir=. 8803 for ac_exec_ext in '' $ac_executable_extensions; do 8804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8807 break 2 8808 fi 8809done 8810 done 8811IFS=$as_save_IFS 8812 8813fi 8814fi 8815RANLIB=$ac_cv_prog_RANLIB 8816if test -n "$RANLIB"; then 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8818$as_echo "$RANLIB" >&6; } 8819else 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8821$as_echo "no" >&6; } 8822fi 8823 8824 8825fi 8826if test -z "$ac_cv_prog_RANLIB"; then 8827 ac_ct_RANLIB=$RANLIB 8828 # Extract the first word of "ranlib", so it can be a program name with args. 8829set dummy ranlib; ac_word=$2 8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8831$as_echo_n "checking for $ac_word... " >&6; } 8832if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 if test -n "$ac_ct_RANLIB"; then 8836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8837else 8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8839for as_dir in $PATH 8840do 8841 IFS=$as_save_IFS 8842 test -z "$as_dir" && as_dir=. 8843 for ac_exec_ext in '' $ac_executable_extensions; do 8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8845 ac_cv_prog_ac_ct_RANLIB="ranlib" 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8847 break 2 8848 fi 8849done 8850 done 8851IFS=$as_save_IFS 8852 8853fi 8854fi 8855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8856if test -n "$ac_ct_RANLIB"; then 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8858$as_echo "$ac_ct_RANLIB" >&6; } 8859else 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8861$as_echo "no" >&6; } 8862fi 8863 8864 if test "x$ac_ct_RANLIB" = x; then 8865 RANLIB=":" 8866 else 8867 case $cross_compiling:$ac_tool_warned in 8868yes:) 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8871ac_tool_warned=yes ;; 8872esac 8873 RANLIB=$ac_ct_RANLIB 8874 fi 8875else 8876 RANLIB="$ac_cv_prog_RANLIB" 8877fi 8878 8879test -z "$RANLIB" && RANLIB=: 8880 8881 8882 8883 8884 8885 8886# Determine commands to create old-style static archives. 8887old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8888old_postinstall_cmds='chmod 644 $oldlib' 8889old_postuninstall_cmds= 8890 8891if test -n "$RANLIB"; then 8892 case $host_os in 8893 openbsd*) 8894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8895 ;; 8896 *) 8897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8898 ;; 8899 esac 8900 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8901fi 8902 8903case $host_os in 8904 darwin*) 8905 lock_old_archive_extraction=yes ;; 8906 *) 8907 lock_old_archive_extraction=no ;; 8908esac 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930for ac_prog in gawk mawk nawk awk 8931do 8932 # Extract the first word of "$ac_prog", so it can be a program name with args. 8933set dummy $ac_prog; ac_word=$2 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8935$as_echo_n "checking for $ac_word... " >&6; } 8936if ${ac_cv_prog_AWK+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 if test -n "$AWK"; then 8940 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8941else 8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8943for as_dir in $PATH 8944do 8945 IFS=$as_save_IFS 8946 test -z "$as_dir" && as_dir=. 8947 for ac_exec_ext in '' $ac_executable_extensions; do 8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8949 ac_cv_prog_AWK="$ac_prog" 8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8951 break 2 8952 fi 8953done 8954 done 8955IFS=$as_save_IFS 8956 8957fi 8958fi 8959AWK=$ac_cv_prog_AWK 8960if test -n "$AWK"; then 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8962$as_echo "$AWK" >&6; } 8963else 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8965$as_echo "no" >&6; } 8966fi 8967 8968 8969 test -n "$AWK" && break 8970done 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990# If no C compiler was specified, use CC. 8991LTCC=${LTCC-"$CC"} 8992 8993# If no C compiler flags were specified, use CFLAGS. 8994LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8995 8996# Allow CC to be a program name with arguments. 8997compiler=$CC 8998 8999 9000# Check for command to grab the raw symbol name followed by C symbol from nm. 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9002$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9003if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 9007# These are sane defaults that work on at least a few old systems. 9008# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9009 9010# Character class describing NM global symbol codes. 9011symcode='[BCDEGRST]' 9012 9013# Regexp to match symbols that can be accessed directly from C. 9014sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9015 9016# Define system-specific variables. 9017case $host_os in 9018aix*) 9019 symcode='[BCDT]' 9020 ;; 9021cygwin* | mingw* | pw32* | cegcc*) 9022 symcode='[ABCDGISTW]' 9023 ;; 9024hpux*) 9025 if test "$host_cpu" = ia64; then 9026 symcode='[ABCDEGRST]' 9027 fi 9028 ;; 9029irix* | nonstopux*) 9030 symcode='[BCDEGRST]' 9031 ;; 9032osf*) 9033 symcode='[BCDEGQRST]' 9034 ;; 9035solaris*) 9036 symcode='[BDRT]' 9037 ;; 9038sco3.2v5*) 9039 symcode='[DT]' 9040 ;; 9041sysv4.2uw2*) 9042 symcode='[DT]' 9043 ;; 9044sysv5* | sco5v6* | unixware* | OpenUNIX*) 9045 symcode='[ABDT]' 9046 ;; 9047sysv4) 9048 symcode='[DFNSTU]' 9049 ;; 9050esac 9051 9052# If we're using GNU nm, then use its standard symbol codes. 9053case `$NM -V 2>&1` in 9054*GNU* | *'with BFD'*) 9055 symcode='[ABCDGIRSTW]' ;; 9056esac 9057 9058# Transform an extracted symbol line into a proper C declaration. 9059# Some systems (esp. on ia64) link data and code symbols differently, 9060# so use this general approach. 9061lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9062 9063# Transform an extracted symbol line into symbol name and symbol address 9064lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9065lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9066 9067# Handle CRLF in mingw tool chain 9068opt_cr= 9069case $build_os in 9070mingw*) 9071 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9072 ;; 9073esac 9074 9075# Try without a prefix underscore, then with it. 9076for ac_symprfx in "" "_"; do 9077 9078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9079 symxfrm="\\1 $ac_symprfx\\2 \\2" 9080 9081 # Write the raw and C identifiers. 9082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9083 # Fake it for dumpbin and say T for any non-static function 9084 # and D for any global variable. 9085 # Also find C++ and __fastcall symbols from MSVC++, 9086 # which start with @ or ?. 9087 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9088" {last_section=section; section=\$ 3};"\ 9089" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9090" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9091" \$ 0!~/External *\|/{next};"\ 9092" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9093" {if(hide[section]) next};"\ 9094" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9095" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9096" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9097" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9098" ' prfx=^$ac_symprfx" 9099 else 9100 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9101 fi 9102 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9103 9104 # Check to see that the pipe works correctly. 9105 pipe_works=no 9106 9107 rm -f conftest* 9108 cat > conftest.$ac_ext <<_LT_EOF 9109#ifdef __cplusplus 9110extern "C" { 9111#endif 9112char nm_test_var; 9113void nm_test_func(void); 9114void nm_test_func(void){} 9115#ifdef __cplusplus 9116} 9117#endif 9118int main(){nm_test_var='a';nm_test_func();return(0);} 9119_LT_EOF 9120 9121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9122 (eval $ac_compile) 2>&5 9123 ac_status=$? 9124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9125 test $ac_status = 0; }; then 9126 # Now try to grab the symbols. 9127 nlist=conftest.nm 9128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9129 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9130 ac_status=$? 9131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9132 test $ac_status = 0; } && test -s "$nlist"; then 9133 # Try sorting and uniquifying the output. 9134 if sort "$nlist" | uniq > "$nlist"T; then 9135 mv -f "$nlist"T "$nlist" 9136 else 9137 rm -f "$nlist"T 9138 fi 9139 9140 # Make sure that we snagged all the symbols we need. 9141 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9142 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9143 cat <<_LT_EOF > conftest.$ac_ext 9144/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9145#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9146/* DATA imports from DLLs on WIN32 con't be const, because runtime 9147 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9148# define LT_DLSYM_CONST 9149#elif defined(__osf__) 9150/* This system does not cope well with relocations in const data. */ 9151# define LT_DLSYM_CONST 9152#else 9153# define LT_DLSYM_CONST const 9154#endif 9155 9156#ifdef __cplusplus 9157extern "C" { 9158#endif 9159 9160_LT_EOF 9161 # Now generate the symbol file. 9162 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9163 9164 cat <<_LT_EOF >> conftest.$ac_ext 9165 9166/* The mapping between symbol names and symbols. */ 9167LT_DLSYM_CONST struct { 9168 const char *name; 9169 void *address; 9170} 9171lt__PROGRAM__LTX_preloaded_symbols[] = 9172{ 9173 { "@PROGRAM@", (void *) 0 }, 9174_LT_EOF 9175 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9176 cat <<\_LT_EOF >> conftest.$ac_ext 9177 {0, (void *) 0} 9178}; 9179 9180/* This works around a problem in FreeBSD linker */ 9181#ifdef FREEBSD_WORKAROUND 9182static const void *lt_preloaded_setup() { 9183 return lt__PROGRAM__LTX_preloaded_symbols; 9184} 9185#endif 9186 9187#ifdef __cplusplus 9188} 9189#endif 9190_LT_EOF 9191 # Now try linking the two files. 9192 mv conftest.$ac_objext conftstm.$ac_objext 9193 lt_globsym_save_LIBS=$LIBS 9194 lt_globsym_save_CFLAGS=$CFLAGS 9195 LIBS="conftstm.$ac_objext" 9196 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9198 (eval $ac_link) 2>&5 9199 ac_status=$? 9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9201 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9202 pipe_works=yes 9203 fi 9204 LIBS=$lt_globsym_save_LIBS 9205 CFLAGS=$lt_globsym_save_CFLAGS 9206 else 9207 echo "cannot find nm_test_func in $nlist" >&5 9208 fi 9209 else 9210 echo "cannot find nm_test_var in $nlist" >&5 9211 fi 9212 else 9213 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9214 fi 9215 else 9216 echo "$progname: failed program was:" >&5 9217 cat conftest.$ac_ext >&5 9218 fi 9219 rm -rf conftest* conftst* 9220 9221 # Do not use the global_symbol_pipe unless it works. 9222 if test "$pipe_works" = yes; then 9223 break 9224 else 9225 lt_cv_sys_global_symbol_pipe= 9226 fi 9227done 9228 9229fi 9230 9231if test -z "$lt_cv_sys_global_symbol_pipe"; then 9232 lt_cv_sys_global_symbol_to_cdecl= 9233fi 9234if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9236$as_echo "failed" >&6; } 9237else 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9239$as_echo "ok" >&6; } 9240fi 9241 9242# Response file support. 9243if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9244 nm_file_list_spec='@' 9245elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9246 nm_file_list_spec='@' 9247fi 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9276$as_echo_n "checking for sysroot... " >&6; } 9277 9278# Check whether --with-sysroot was given. 9279if test "${with_sysroot+set}" = set; then : 9280 withval=$with_sysroot; 9281else 9282 with_sysroot=no 9283fi 9284 9285 9286lt_sysroot= 9287case ${with_sysroot} in #( 9288 yes) 9289 if test "$GCC" = yes; then 9290 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9291 fi 9292 ;; #( 9293 /*) 9294 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9295 ;; #( 9296 no|'') 9297 ;; #( 9298 *) 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9300$as_echo "${with_sysroot}" >&6; } 9301 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9302 ;; 9303esac 9304 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9306$as_echo "${lt_sysroot:-no}" >&6; } 9307 9308 9309 9310 9311 9312# Check whether --enable-libtool-lock was given. 9313if test "${enable_libtool_lock+set}" = set; then : 9314 enableval=$enable_libtool_lock; 9315fi 9316 9317test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9318 9319# Some flags need to be propagated to the compiler or linker for good 9320# libtool support. 9321case $host in 9322ia64-*-hpux*) 9323 # Find out which ABI we are using. 9324 echo 'int i;' > conftest.$ac_ext 9325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9326 (eval $ac_compile) 2>&5 9327 ac_status=$? 9328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9329 test $ac_status = 0; }; then 9330 case `/usr/bin/file conftest.$ac_objext` in 9331 *ELF-32*) 9332 HPUX_IA64_MODE="32" 9333 ;; 9334 *ELF-64*) 9335 HPUX_IA64_MODE="64" 9336 ;; 9337 esac 9338 fi 9339 rm -rf conftest* 9340 ;; 9341*-*-irix6*) 9342 # Find out which ABI we are using. 9343 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9345 (eval $ac_compile) 2>&5 9346 ac_status=$? 9347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9348 test $ac_status = 0; }; then 9349 if test "$lt_cv_prog_gnu_ld" = yes; then 9350 case `/usr/bin/file conftest.$ac_objext` in 9351 *32-bit*) 9352 LD="${LD-ld} -melf32bsmip" 9353 ;; 9354 *N32*) 9355 LD="${LD-ld} -melf32bmipn32" 9356 ;; 9357 *64-bit*) 9358 LD="${LD-ld} -melf64bmip" 9359 ;; 9360 esac 9361 else 9362 case `/usr/bin/file conftest.$ac_objext` in 9363 *32-bit*) 9364 LD="${LD-ld} -32" 9365 ;; 9366 *N32*) 9367 LD="${LD-ld} -n32" 9368 ;; 9369 *64-bit*) 9370 LD="${LD-ld} -64" 9371 ;; 9372 esac 9373 fi 9374 fi 9375 rm -rf conftest* 9376 ;; 9377 9378x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9379s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9380 # Find out which ABI we are using. 9381 echo 'int i;' > conftest.$ac_ext 9382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9383 (eval $ac_compile) 2>&5 9384 ac_status=$? 9385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9386 test $ac_status = 0; }; then 9387 case `/usr/bin/file conftest.o` in 9388 *32-bit*) 9389 case $host in 9390 x86_64-*kfreebsd*-gnu) 9391 LD="${LD-ld} -m elf_i386_fbsd" 9392 ;; 9393 x86_64-*linux*) 9394 LD="${LD-ld} -m elf_i386" 9395 ;; 9396 ppc64-*linux*|powerpc64-*linux*) 9397 LD="${LD-ld} -m elf32ppclinux" 9398 ;; 9399 s390x-*linux*) 9400 LD="${LD-ld} -m elf_s390" 9401 ;; 9402 sparc64-*linux*) 9403 LD="${LD-ld} -m elf32_sparc" 9404 ;; 9405 esac 9406 ;; 9407 *64-bit*) 9408 case $host in 9409 x86_64-*kfreebsd*-gnu) 9410 LD="${LD-ld} -m elf_x86_64_fbsd" 9411 ;; 9412 x86_64-*linux*) 9413 LD="${LD-ld} -m elf_x86_64" 9414 ;; 9415 ppc*-*linux*|powerpc*-*linux*) 9416 LD="${LD-ld} -m elf64ppc" 9417 ;; 9418 s390*-*linux*|s390*-*tpf*) 9419 LD="${LD-ld} -m elf64_s390" 9420 ;; 9421 sparc*-*linux*) 9422 LD="${LD-ld} -m elf64_sparc" 9423 ;; 9424 esac 9425 ;; 9426 esac 9427 fi 9428 rm -rf conftest* 9429 ;; 9430 9431*-*-sco3.2v5*) 9432 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9433 SAVE_CFLAGS="$CFLAGS" 9434 CFLAGS="$CFLAGS -belf" 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9436$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9437if ${lt_cv_cc_needs_belf+:} false; then : 9438 $as_echo_n "(cached) " >&6 9439else 9440 ac_ext=c 9441ac_cpp='$CPP $CPPFLAGS' 9442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9444ac_compiler_gnu=$ac_cv_c_compiler_gnu 9445 9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448 9449int 9450main () 9451{ 9452 9453 ; 9454 return 0; 9455} 9456_ACEOF 9457if ac_fn_c_try_link "$LINENO"; then : 9458 lt_cv_cc_needs_belf=yes 9459else 9460 lt_cv_cc_needs_belf=no 9461fi 9462rm -f core conftest.err conftest.$ac_objext \ 9463 conftest$ac_exeext conftest.$ac_ext 9464 ac_ext=c 9465ac_cpp='$CPP $CPPFLAGS' 9466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9468ac_compiler_gnu=$ac_cv_c_compiler_gnu 9469 9470fi 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9472$as_echo "$lt_cv_cc_needs_belf" >&6; } 9473 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9475 CFLAGS="$SAVE_CFLAGS" 9476 fi 9477 ;; 9478*-*solaris*) 9479 # Find out which ABI we are using. 9480 echo 'int i;' > conftest.$ac_ext 9481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9482 (eval $ac_compile) 2>&5 9483 ac_status=$? 9484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9485 test $ac_status = 0; }; then 9486 case `/usr/bin/file conftest.o` in 9487 *64-bit*) 9488 case $lt_cv_prog_gnu_ld in 9489 yes*) 9490 case $host in 9491 i?86-*-solaris*) 9492 LD="${LD-ld} -m elf_x86_64" 9493 ;; 9494 sparc*-*-solaris*) 9495 LD="${LD-ld} -m elf64_sparc" 9496 ;; 9497 esac 9498 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9499 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9500 LD="${LD-ld}_sol2" 9501 fi 9502 ;; 9503 *) 9504 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9505 LD="${LD-ld} -64" 9506 fi 9507 ;; 9508 esac 9509 ;; 9510 esac 9511 fi 9512 rm -rf conftest* 9513 ;; 9514esac 9515 9516need_locks="$enable_libtool_lock" 9517 9518if test -n "$ac_tool_prefix"; then 9519 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9520set dummy ${ac_tool_prefix}mt; ac_word=$2 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9522$as_echo_n "checking for $ac_word... " >&6; } 9523if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 if test -n "$MANIFEST_TOOL"; then 9527 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9528else 9529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9530for as_dir in $PATH 9531do 9532 IFS=$as_save_IFS 9533 test -z "$as_dir" && as_dir=. 9534 for ac_exec_ext in '' $ac_executable_extensions; do 9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9536 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9538 break 2 9539 fi 9540done 9541 done 9542IFS=$as_save_IFS 9543 9544fi 9545fi 9546MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9547if test -n "$MANIFEST_TOOL"; then 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9549$as_echo "$MANIFEST_TOOL" >&6; } 9550else 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9552$as_echo "no" >&6; } 9553fi 9554 9555 9556fi 9557if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9558 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9559 # Extract the first word of "mt", so it can be a program name with args. 9560set dummy mt; ac_word=$2 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9562$as_echo_n "checking for $ac_word... " >&6; } 9563if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9564 $as_echo_n "(cached) " >&6 9565else 9566 if test -n "$ac_ct_MANIFEST_TOOL"; then 9567 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9568else 9569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9570for as_dir in $PATH 9571do 9572 IFS=$as_save_IFS 9573 test -z "$as_dir" && as_dir=. 9574 for ac_exec_ext in '' $ac_executable_extensions; do 9575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9576 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9578 break 2 9579 fi 9580done 9581 done 9582IFS=$as_save_IFS 9583 9584fi 9585fi 9586ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9587if test -n "$ac_ct_MANIFEST_TOOL"; then 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9589$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9590else 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9592$as_echo "no" >&6; } 9593fi 9594 9595 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9596 MANIFEST_TOOL=":" 9597 else 9598 case $cross_compiling:$ac_tool_warned in 9599yes:) 9600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9602ac_tool_warned=yes ;; 9603esac 9604 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9605 fi 9606else 9607 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9608fi 9609 9610test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9612$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9613if ${lt_cv_path_mainfest_tool+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 lt_cv_path_mainfest_tool=no 9617 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9618 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9619 cat conftest.err >&5 9620 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9621 lt_cv_path_mainfest_tool=yes 9622 fi 9623 rm -f conftest* 9624fi 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9626$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9627if test "x$lt_cv_path_mainfest_tool" != xyes; then 9628 MANIFEST_TOOL=: 9629fi 9630 9631 9632 9633 9634 9635 9636 case $host_os in 9637 rhapsody* | darwin*) 9638 if test -n "$ac_tool_prefix"; then 9639 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9640set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9642$as_echo_n "checking for $ac_word... " >&6; } 9643if ${ac_cv_prog_DSYMUTIL+:} false; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 if test -n "$DSYMUTIL"; then 9647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9648else 9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9650for as_dir in $PATH 9651do 9652 IFS=$as_save_IFS 9653 test -z "$as_dir" && as_dir=. 9654 for ac_exec_ext in '' $ac_executable_extensions; do 9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9658 break 2 9659 fi 9660done 9661 done 9662IFS=$as_save_IFS 9663 9664fi 9665fi 9666DSYMUTIL=$ac_cv_prog_DSYMUTIL 9667if test -n "$DSYMUTIL"; then 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9669$as_echo "$DSYMUTIL" >&6; } 9670else 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9672$as_echo "no" >&6; } 9673fi 9674 9675 9676fi 9677if test -z "$ac_cv_prog_DSYMUTIL"; then 9678 ac_ct_DSYMUTIL=$DSYMUTIL 9679 # Extract the first word of "dsymutil", so it can be a program name with args. 9680set dummy dsymutil; ac_word=$2 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9682$as_echo_n "checking for $ac_word... " >&6; } 9683if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 if test -n "$ac_ct_DSYMUTIL"; then 9687 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9688else 9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9690for as_dir in $PATH 9691do 9692 IFS=$as_save_IFS 9693 test -z "$as_dir" && as_dir=. 9694 for ac_exec_ext in '' $ac_executable_extensions; do 9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9698 break 2 9699 fi 9700done 9701 done 9702IFS=$as_save_IFS 9703 9704fi 9705fi 9706ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9707if test -n "$ac_ct_DSYMUTIL"; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9709$as_echo "$ac_ct_DSYMUTIL" >&6; } 9710else 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9712$as_echo "no" >&6; } 9713fi 9714 9715 if test "x$ac_ct_DSYMUTIL" = x; then 9716 DSYMUTIL=":" 9717 else 9718 case $cross_compiling:$ac_tool_warned in 9719yes:) 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9722ac_tool_warned=yes ;; 9723esac 9724 DSYMUTIL=$ac_ct_DSYMUTIL 9725 fi 9726else 9727 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9728fi 9729 9730 if test -n "$ac_tool_prefix"; then 9731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9732set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9734$as_echo_n "checking for $ac_word... " >&6; } 9735if ${ac_cv_prog_NMEDIT+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 if test -n "$NMEDIT"; then 9739 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9740else 9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9742for as_dir in $PATH 9743do 9744 IFS=$as_save_IFS 9745 test -z "$as_dir" && as_dir=. 9746 for ac_exec_ext in '' $ac_executable_extensions; do 9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9750 break 2 9751 fi 9752done 9753 done 9754IFS=$as_save_IFS 9755 9756fi 9757fi 9758NMEDIT=$ac_cv_prog_NMEDIT 9759if test -n "$NMEDIT"; then 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9761$as_echo "$NMEDIT" >&6; } 9762else 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9764$as_echo "no" >&6; } 9765fi 9766 9767 9768fi 9769if test -z "$ac_cv_prog_NMEDIT"; then 9770 ac_ct_NMEDIT=$NMEDIT 9771 # Extract the first word of "nmedit", so it can be a program name with args. 9772set dummy nmedit; ac_word=$2 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9774$as_echo_n "checking for $ac_word... " >&6; } 9775if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9776 $as_echo_n "(cached) " >&6 9777else 9778 if test -n "$ac_ct_NMEDIT"; then 9779 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9780else 9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9782for as_dir in $PATH 9783do 9784 IFS=$as_save_IFS 9785 test -z "$as_dir" && as_dir=. 9786 for ac_exec_ext in '' $ac_executable_extensions; do 9787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9788 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9790 break 2 9791 fi 9792done 9793 done 9794IFS=$as_save_IFS 9795 9796fi 9797fi 9798ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9799if test -n "$ac_ct_NMEDIT"; then 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9801$as_echo "$ac_ct_NMEDIT" >&6; } 9802else 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804$as_echo "no" >&6; } 9805fi 9806 9807 if test "x$ac_ct_NMEDIT" = x; then 9808 NMEDIT=":" 9809 else 9810 case $cross_compiling:$ac_tool_warned in 9811yes:) 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9814ac_tool_warned=yes ;; 9815esac 9816 NMEDIT=$ac_ct_NMEDIT 9817 fi 9818else 9819 NMEDIT="$ac_cv_prog_NMEDIT" 9820fi 9821 9822 if test -n "$ac_tool_prefix"; then 9823 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9824set dummy ${ac_tool_prefix}lipo; ac_word=$2 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9826$as_echo_n "checking for $ac_word... " >&6; } 9827if ${ac_cv_prog_LIPO+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829else 9830 if test -n "$LIPO"; then 9831 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9832else 9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9834for as_dir in $PATH 9835do 9836 IFS=$as_save_IFS 9837 test -z "$as_dir" && as_dir=. 9838 for ac_exec_ext in '' $ac_executable_extensions; do 9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9840 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9842 break 2 9843 fi 9844done 9845 done 9846IFS=$as_save_IFS 9847 9848fi 9849fi 9850LIPO=$ac_cv_prog_LIPO 9851if test -n "$LIPO"; then 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9853$as_echo "$LIPO" >&6; } 9854else 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9856$as_echo "no" >&6; } 9857fi 9858 9859 9860fi 9861if test -z "$ac_cv_prog_LIPO"; then 9862 ac_ct_LIPO=$LIPO 9863 # Extract the first word of "lipo", so it can be a program name with args. 9864set dummy lipo; ac_word=$2 9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9866$as_echo_n "checking for $ac_word... " >&6; } 9867if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 if test -n "$ac_ct_LIPO"; then 9871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9872else 9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9874for as_dir in $PATH 9875do 9876 IFS=$as_save_IFS 9877 test -z "$as_dir" && as_dir=. 9878 for ac_exec_ext in '' $ac_executable_extensions; do 9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9880 ac_cv_prog_ac_ct_LIPO="lipo" 9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9882 break 2 9883 fi 9884done 9885 done 9886IFS=$as_save_IFS 9887 9888fi 9889fi 9890ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9891if test -n "$ac_ct_LIPO"; then 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9893$as_echo "$ac_ct_LIPO" >&6; } 9894else 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9896$as_echo "no" >&6; } 9897fi 9898 9899 if test "x$ac_ct_LIPO" = x; then 9900 LIPO=":" 9901 else 9902 case $cross_compiling:$ac_tool_warned in 9903yes:) 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9906ac_tool_warned=yes ;; 9907esac 9908 LIPO=$ac_ct_LIPO 9909 fi 9910else 9911 LIPO="$ac_cv_prog_LIPO" 9912fi 9913 9914 if test -n "$ac_tool_prefix"; then 9915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9916set dummy ${ac_tool_prefix}otool; ac_word=$2 9917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9918$as_echo_n "checking for $ac_word... " >&6; } 9919if ${ac_cv_prog_OTOOL+:} false; then : 9920 $as_echo_n "(cached) " >&6 9921else 9922 if test -n "$OTOOL"; then 9923 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9924else 9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9926for as_dir in $PATH 9927do 9928 IFS=$as_save_IFS 9929 test -z "$as_dir" && as_dir=. 9930 for ac_exec_ext in '' $ac_executable_extensions; do 9931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9932 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9934 break 2 9935 fi 9936done 9937 done 9938IFS=$as_save_IFS 9939 9940fi 9941fi 9942OTOOL=$ac_cv_prog_OTOOL 9943if test -n "$OTOOL"; then 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9945$as_echo "$OTOOL" >&6; } 9946else 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9948$as_echo "no" >&6; } 9949fi 9950 9951 9952fi 9953if test -z "$ac_cv_prog_OTOOL"; then 9954 ac_ct_OTOOL=$OTOOL 9955 # Extract the first word of "otool", so it can be a program name with args. 9956set dummy otool; ac_word=$2 9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9958$as_echo_n "checking for $ac_word... " >&6; } 9959if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 if test -n "$ac_ct_OTOOL"; then 9963 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9964else 9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9966for as_dir in $PATH 9967do 9968 IFS=$as_save_IFS 9969 test -z "$as_dir" && as_dir=. 9970 for ac_exec_ext in '' $ac_executable_extensions; do 9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9972 ac_cv_prog_ac_ct_OTOOL="otool" 9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9974 break 2 9975 fi 9976done 9977 done 9978IFS=$as_save_IFS 9979 9980fi 9981fi 9982ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9983if test -n "$ac_ct_OTOOL"; then 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9985$as_echo "$ac_ct_OTOOL" >&6; } 9986else 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9988$as_echo "no" >&6; } 9989fi 9990 9991 if test "x$ac_ct_OTOOL" = x; then 9992 OTOOL=":" 9993 else 9994 case $cross_compiling:$ac_tool_warned in 9995yes:) 9996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9998ac_tool_warned=yes ;; 9999esac 10000 OTOOL=$ac_ct_OTOOL 10001 fi 10002else 10003 OTOOL="$ac_cv_prog_OTOOL" 10004fi 10005 10006 if test -n "$ac_tool_prefix"; then 10007 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10008set dummy ${ac_tool_prefix}otool64; ac_word=$2 10009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10010$as_echo_n "checking for $ac_word... " >&6; } 10011if ${ac_cv_prog_OTOOL64+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 if test -n "$OTOOL64"; then 10015 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10016else 10017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10018for as_dir in $PATH 10019do 10020 IFS=$as_save_IFS 10021 test -z "$as_dir" && as_dir=. 10022 for ac_exec_ext in '' $ac_executable_extensions; do 10023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10024 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10026 break 2 10027 fi 10028done 10029 done 10030IFS=$as_save_IFS 10031 10032fi 10033fi 10034OTOOL64=$ac_cv_prog_OTOOL64 10035if test -n "$OTOOL64"; then 10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10037$as_echo "$OTOOL64" >&6; } 10038else 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10040$as_echo "no" >&6; } 10041fi 10042 10043 10044fi 10045if test -z "$ac_cv_prog_OTOOL64"; then 10046 ac_ct_OTOOL64=$OTOOL64 10047 # Extract the first word of "otool64", so it can be a program name with args. 10048set dummy otool64; ac_word=$2 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10050$as_echo_n "checking for $ac_word... " >&6; } 10051if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10052 $as_echo_n "(cached) " >&6 10053else 10054 if test -n "$ac_ct_OTOOL64"; then 10055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10056else 10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10058for as_dir in $PATH 10059do 10060 IFS=$as_save_IFS 10061 test -z "$as_dir" && as_dir=. 10062 for ac_exec_ext in '' $ac_executable_extensions; do 10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10064 ac_cv_prog_ac_ct_OTOOL64="otool64" 10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10066 break 2 10067 fi 10068done 10069 done 10070IFS=$as_save_IFS 10071 10072fi 10073fi 10074ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10075if test -n "$ac_ct_OTOOL64"; then 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10077$as_echo "$ac_ct_OTOOL64" >&6; } 10078else 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10080$as_echo "no" >&6; } 10081fi 10082 10083 if test "x$ac_ct_OTOOL64" = x; then 10084 OTOOL64=":" 10085 else 10086 case $cross_compiling:$ac_tool_warned in 10087yes:) 10088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10090ac_tool_warned=yes ;; 10091esac 10092 OTOOL64=$ac_ct_OTOOL64 10093 fi 10094else 10095 OTOOL64="$ac_cv_prog_OTOOL64" 10096fi 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10125$as_echo_n "checking for -single_module linker flag... " >&6; } 10126if ${lt_cv_apple_cc_single_mod+:} false; then : 10127 $as_echo_n "(cached) " >&6 10128else 10129 lt_cv_apple_cc_single_mod=no 10130 if test -z "${LT_MULTI_MODULE}"; then 10131 # By default we will add the -single_module flag. You can override 10132 # by either setting the environment variable LT_MULTI_MODULE 10133 # non-empty at configure time, or by adding -multi_module to the 10134 # link flags. 10135 rm -rf libconftest.dylib* 10136 echo "int foo(void){return 1;}" > conftest.c 10137 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10138-dynamiclib -Wl,-single_module conftest.c" >&5 10139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10140 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10141 _lt_result=$? 10142 # If there is a non-empty error log, and "single_module" 10143 # appears in it, assume the flag caused a linker warning 10144 if test -s conftest.err && $GREP single_module conftest.err; then 10145 cat conftest.err >&5 10146 # Otherwise, if the output was created with a 0 exit code from 10147 # the compiler, it worked. 10148 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 10149 lt_cv_apple_cc_single_mod=yes 10150 else 10151 cat conftest.err >&5 10152 fi 10153 rm -rf libconftest.dylib* 10154 rm -f conftest.* 10155 fi 10156fi 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10158$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10159 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10161$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10162if ${lt_cv_ld_exported_symbols_list+:} false; then : 10163 $as_echo_n "(cached) " >&6 10164else 10165 lt_cv_ld_exported_symbols_list=no 10166 save_LDFLAGS=$LDFLAGS 10167 echo "_main" > conftest.sym 10168 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171 10172int 10173main () 10174{ 10175 10176 ; 10177 return 0; 10178} 10179_ACEOF 10180if ac_fn_c_try_link "$LINENO"; then : 10181 lt_cv_ld_exported_symbols_list=yes 10182else 10183 lt_cv_ld_exported_symbols_list=no 10184fi 10185rm -f core conftest.err conftest.$ac_objext \ 10186 conftest$ac_exeext conftest.$ac_ext 10187 LDFLAGS="$save_LDFLAGS" 10188 10189fi 10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10191$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10192 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10194$as_echo_n "checking for -force_load linker flag... " >&6; } 10195if ${lt_cv_ld_force_load+:} false; then : 10196 $as_echo_n "(cached) " >&6 10197else 10198 lt_cv_ld_force_load=no 10199 cat > conftest.c << _LT_EOF 10200int forced_loaded() { return 2;} 10201_LT_EOF 10202 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10203 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10204 echo "$AR cru libconftest.a conftest.o" >&5 10205 $AR cru libconftest.a conftest.o 2>&5 10206 echo "$RANLIB libconftest.a" >&5 10207 $RANLIB libconftest.a 2>&5 10208 cat > conftest.c << _LT_EOF 10209int main() { return 0;} 10210_LT_EOF 10211 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10212 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10213 _lt_result=$? 10214 if test -s conftest.err && $GREP force_load conftest.err; then 10215 cat conftest.err >&5 10216 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 10217 lt_cv_ld_force_load=yes 10218 else 10219 cat conftest.err >&5 10220 fi 10221 rm -f conftest.err libconftest.a conftest conftest.c 10222 rm -rf conftest.dSYM 10223 10224fi 10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10226$as_echo "$lt_cv_ld_force_load" >&6; } 10227 case $host_os in 10228 rhapsody* | darwin1.[012]) 10229 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10230 darwin1.*) 10231 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10232 darwin*) # darwin 5.x on 10233 # if running on 10.5 or later, the deployment target defaults 10234 # to the OS version, if on x86, and 10.4, the deployment 10235 # target defaults to 10.4. Don't you love it? 10236 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10237 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10238 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10239 10.[012]*) 10240 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10241 10.*) 10242 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10243 esac 10244 ;; 10245 esac 10246 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10247 _lt_dar_single_mod='$single_module' 10248 fi 10249 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10250 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10251 else 10252 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10253 fi 10254 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10255 _lt_dsymutil='~$DSYMUTIL $lib || :' 10256 else 10257 _lt_dsymutil= 10258 fi 10259 ;; 10260 esac 10261 10262for ac_header in dlfcn.h 10263do : 10264 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10265" 10266if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10267 cat >>confdefs.h <<_ACEOF 10268#define HAVE_DLFCN_H 1 10269_ACEOF 10270 10271fi 10272 10273done 10274 10275 10276 10277 10278 10279 10280 10281# Set options 10282 10283 10284 10285 enable_dlopen=no 10286 10287 10288 enable_win32_dll=no 10289 10290 10291 # Check whether --enable-shared was given. 10292if test "${enable_shared+set}" = set; then : 10293 enableval=$enable_shared; p=${PACKAGE-default} 10294 case $enableval in 10295 yes) enable_shared=yes ;; 10296 no) enable_shared=no ;; 10297 *) 10298 enable_shared=no 10299 # Look at the argument we got. We use all the common list separators. 10300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10301 for pkg in $enableval; do 10302 IFS="$lt_save_ifs" 10303 if test "X$pkg" = "X$p"; then 10304 enable_shared=yes 10305 fi 10306 done 10307 IFS="$lt_save_ifs" 10308 ;; 10309 esac 10310else 10311 enable_shared=yes 10312fi 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 # Check whether --enable-static was given. 10323if test "${enable_static+set}" = set; then : 10324 enableval=$enable_static; p=${PACKAGE-default} 10325 case $enableval in 10326 yes) enable_static=yes ;; 10327 no) enable_static=no ;; 10328 *) 10329 enable_static=no 10330 # Look at the argument we got. We use all the common list separators. 10331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10332 for pkg in $enableval; do 10333 IFS="$lt_save_ifs" 10334 if test "X$pkg" = "X$p"; then 10335 enable_static=yes 10336 fi 10337 done 10338 IFS="$lt_save_ifs" 10339 ;; 10340 esac 10341else 10342 enable_static=yes 10343fi 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354# Check whether --with-pic was given. 10355if test "${with_pic+set}" = set; then : 10356 withval=$with_pic; lt_p=${PACKAGE-default} 10357 case $withval in 10358 yes|no) pic_mode=$withval ;; 10359 *) 10360 pic_mode=default 10361 # Look at the argument we got. We use all the common list separators. 10362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10363 for lt_pkg in $withval; do 10364 IFS="$lt_save_ifs" 10365 if test "X$lt_pkg" = "X$lt_p"; then 10366 pic_mode=yes 10367 fi 10368 done 10369 IFS="$lt_save_ifs" 10370 ;; 10371 esac 10372else 10373 pic_mode=default 10374fi 10375 10376 10377test -z "$pic_mode" && pic_mode=default 10378 10379 10380 10381 10382 10383 10384 10385 # Check whether --enable-fast-install was given. 10386if test "${enable_fast_install+set}" = set; then : 10387 enableval=$enable_fast_install; p=${PACKAGE-default} 10388 case $enableval in 10389 yes) enable_fast_install=yes ;; 10390 no) enable_fast_install=no ;; 10391 *) 10392 enable_fast_install=no 10393 # Look at the argument we got. We use all the common list separators. 10394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10395 for pkg in $enableval; do 10396 IFS="$lt_save_ifs" 10397 if test "X$pkg" = "X$p"; then 10398 enable_fast_install=yes 10399 fi 10400 done 10401 IFS="$lt_save_ifs" 10402 ;; 10403 esac 10404else 10405 enable_fast_install=yes 10406fi 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418# This can be used to rebuild libtool when needed 10419LIBTOOL_DEPS="$ltmain" 10420 10421# Always use our own libtool. 10422LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453test -z "$LN_S" && LN_S="ln -s" 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468if test -n "${ZSH_VERSION+set}" ; then 10469 setopt NO_GLOB_SUBST 10470fi 10471 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10473$as_echo_n "checking for objdir... " >&6; } 10474if ${lt_cv_objdir+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 rm -f .libs 2>/dev/null 10478mkdir .libs 2>/dev/null 10479if test -d .libs; then 10480 lt_cv_objdir=.libs 10481else 10482 # MS-DOS does not allow filenames that begin with a dot. 10483 lt_cv_objdir=_libs 10484fi 10485rmdir .libs 2>/dev/null 10486fi 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10488$as_echo "$lt_cv_objdir" >&6; } 10489objdir=$lt_cv_objdir 10490 10491 10492 10493 10494 10495cat >>confdefs.h <<_ACEOF 10496#define LT_OBJDIR "$lt_cv_objdir/" 10497_ACEOF 10498 10499 10500 10501 10502case $host_os in 10503aix3*) 10504 # AIX sometimes has problems with the GCC collect2 program. For some 10505 # reason, if we set the COLLECT_NAMES environment variable, the problems 10506 # vanish in a puff of smoke. 10507 if test "X${COLLECT_NAMES+set}" != Xset; then 10508 COLLECT_NAMES= 10509 export COLLECT_NAMES 10510 fi 10511 ;; 10512esac 10513 10514# Global variables: 10515ofile=libtool 10516can_build_shared=yes 10517 10518# All known linkers require a `.a' archive for static linking (except MSVC, 10519# which needs '.lib'). 10520libext=a 10521 10522with_gnu_ld="$lt_cv_prog_gnu_ld" 10523 10524old_CC="$CC" 10525old_CFLAGS="$CFLAGS" 10526 10527# Set sane defaults for various variables 10528test -z "$CC" && CC=cc 10529test -z "$LTCC" && LTCC=$CC 10530test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10531test -z "$LD" && LD=ld 10532test -z "$ac_objext" && ac_objext=o 10533 10534for cc_temp in $compiler""; do 10535 case $cc_temp in 10536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10538 \-*) ;; 10539 *) break;; 10540 esac 10541done 10542cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10543 10544 10545# Only perform the check for file, if the check method requires it 10546test -z "$MAGIC_CMD" && MAGIC_CMD=file 10547case $deplibs_check_method in 10548file_magic*) 10549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10551$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10552if ${lt_cv_path_MAGIC_CMD+:} false; then : 10553 $as_echo_n "(cached) " >&6 10554else 10555 case $MAGIC_CMD in 10556[\\/*] | ?:[\\/]*) 10557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10558 ;; 10559*) 10560 lt_save_MAGIC_CMD="$MAGIC_CMD" 10561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10563 for ac_dir in $ac_dummy; do 10564 IFS="$lt_save_ifs" 10565 test -z "$ac_dir" && ac_dir=. 10566 if test -f $ac_dir/${ac_tool_prefix}file; then 10567 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10568 if test -n "$file_magic_test_file"; then 10569 case $deplibs_check_method in 10570 "file_magic "*) 10571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10574 $EGREP "$file_magic_regex" > /dev/null; then 10575 : 10576 else 10577 cat <<_LT_EOF 1>&2 10578 10579*** Warning: the command libtool uses to detect shared libraries, 10580*** $file_magic_cmd, produces output that libtool cannot recognize. 10581*** The result is that libtool may fail to recognize shared libraries 10582*** as such. This will affect the creation of libtool libraries that 10583*** depend on shared libraries, but programs linked with such libtool 10584*** libraries will work regardless of this problem. Nevertheless, you 10585*** may want to report the problem to your system manager and/or to 10586*** bug-libtool@gnu.org 10587 10588_LT_EOF 10589 fi ;; 10590 esac 10591 fi 10592 break 10593 fi 10594 done 10595 IFS="$lt_save_ifs" 10596 MAGIC_CMD="$lt_save_MAGIC_CMD" 10597 ;; 10598esac 10599fi 10600 10601MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10602if test -n "$MAGIC_CMD"; then 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10604$as_echo "$MAGIC_CMD" >&6; } 10605else 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10607$as_echo "no" >&6; } 10608fi 10609 10610 10611 10612 10613 10614if test -z "$lt_cv_path_MAGIC_CMD"; then 10615 if test -n "$ac_tool_prefix"; then 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10617$as_echo_n "checking for file... " >&6; } 10618if ${lt_cv_path_MAGIC_CMD+:} false; then : 10619 $as_echo_n "(cached) " >&6 10620else 10621 case $MAGIC_CMD in 10622[\\/*] | ?:[\\/]*) 10623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10624 ;; 10625*) 10626 lt_save_MAGIC_CMD="$MAGIC_CMD" 10627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10629 for ac_dir in $ac_dummy; do 10630 IFS="$lt_save_ifs" 10631 test -z "$ac_dir" && ac_dir=. 10632 if test -f $ac_dir/file; then 10633 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10634 if test -n "$file_magic_test_file"; then 10635 case $deplibs_check_method in 10636 "file_magic "*) 10637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10640 $EGREP "$file_magic_regex" > /dev/null; then 10641 : 10642 else 10643 cat <<_LT_EOF 1>&2 10644 10645*** Warning: the command libtool uses to detect shared libraries, 10646*** $file_magic_cmd, produces output that libtool cannot recognize. 10647*** The result is that libtool may fail to recognize shared libraries 10648*** as such. This will affect the creation of libtool libraries that 10649*** depend on shared libraries, but programs linked with such libtool 10650*** libraries will work regardless of this problem. Nevertheless, you 10651*** may want to report the problem to your system manager and/or to 10652*** bug-libtool@gnu.org 10653 10654_LT_EOF 10655 fi ;; 10656 esac 10657 fi 10658 break 10659 fi 10660 done 10661 IFS="$lt_save_ifs" 10662 MAGIC_CMD="$lt_save_MAGIC_CMD" 10663 ;; 10664esac 10665fi 10666 10667MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10668if test -n "$MAGIC_CMD"; then 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10670$as_echo "$MAGIC_CMD" >&6; } 10671else 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10673$as_echo "no" >&6; } 10674fi 10675 10676 10677 else 10678 MAGIC_CMD=: 10679 fi 10680fi 10681 10682 fi 10683 ;; 10684esac 10685 10686# Use C for the default configuration in the libtool script 10687 10688lt_save_CC="$CC" 10689ac_ext=c 10690ac_cpp='$CPP $CPPFLAGS' 10691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10693ac_compiler_gnu=$ac_cv_c_compiler_gnu 10694 10695 10696# Source file extension for C test sources. 10697ac_ext=c 10698 10699# Object file extension for compiled C test sources. 10700objext=o 10701objext=$objext 10702 10703# Code to be used in simple compile tests 10704lt_simple_compile_test_code="int some_variable = 0;" 10705 10706# Code to be used in simple link tests 10707lt_simple_link_test_code='int main(){return(0);}' 10708 10709 10710 10711 10712 10713 10714 10715# If no C compiler was specified, use CC. 10716LTCC=${LTCC-"$CC"} 10717 10718# If no C compiler flags were specified, use CFLAGS. 10719LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10720 10721# Allow CC to be a program name with arguments. 10722compiler=$CC 10723 10724# Save the default compiler, since it gets overwritten when the other 10725# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10726compiler_DEFAULT=$CC 10727 10728# save warnings/boilerplate of simple test code 10729ac_outfile=conftest.$ac_objext 10730echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10731eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10732_lt_compiler_boilerplate=`cat conftest.err` 10733$RM conftest* 10734 10735ac_outfile=conftest.$ac_objext 10736echo "$lt_simple_link_test_code" >conftest.$ac_ext 10737eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10738_lt_linker_boilerplate=`cat conftest.err` 10739$RM -r conftest* 10740 10741 10742if test -n "$compiler"; then 10743 10744lt_prog_compiler_no_builtin_flag= 10745 10746if test "$GCC" = yes; then 10747 case $cc_basename in 10748 nvcc*) 10749 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10750 *) 10751 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10752 esac 10753 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10755$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10756if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 lt_cv_prog_compiler_rtti_exceptions=no 10760 ac_outfile=conftest.$ac_objext 10761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10762 lt_compiler_flag="-fno-rtti -fno-exceptions" 10763 # Insert the option either (1) after the last *FLAGS variable, or 10764 # (2) before a word containing "conftest.", or (3) at the end. 10765 # Note that $ac_compile itself does not contain backslashes and begins 10766 # with a dollar sign (not a hyphen), so the echo should work correctly. 10767 # The option is referenced via a variable to avoid confusing sed. 10768 lt_compile=`echo "$ac_compile" | $SED \ 10769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10771 -e 's:$: $lt_compiler_flag:'` 10772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10773 (eval "$lt_compile" 2>conftest.err) 10774 ac_status=$? 10775 cat conftest.err >&5 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 if (exit $ac_status) && test -s "$ac_outfile"; then 10778 # The compiler can only warn and ignore the option if not recognized 10779 # So say no if there are warnings other than the usual output. 10780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10783 lt_cv_prog_compiler_rtti_exceptions=yes 10784 fi 10785 fi 10786 $RM conftest* 10787 10788fi 10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10790$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10791 10792if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10793 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10794else 10795 : 10796fi 10797 10798fi 10799 10800 10801 10802 10803 10804 10805 lt_prog_compiler_wl= 10806lt_prog_compiler_pic= 10807lt_prog_compiler_static= 10808 10809 10810 if test "$GCC" = yes; then 10811 lt_prog_compiler_wl='-Wl,' 10812 lt_prog_compiler_static='-static' 10813 10814 case $host_os in 10815 aix*) 10816 # All AIX code is PIC. 10817 if test "$host_cpu" = ia64; then 10818 # AIX 5 now supports IA64 processor 10819 lt_prog_compiler_static='-Bstatic' 10820 fi 10821 ;; 10822 10823 amigaos*) 10824 case $host_cpu in 10825 powerpc) 10826 # see comment about AmigaOS4 .so support 10827 lt_prog_compiler_pic='-fPIC' 10828 ;; 10829 m68k) 10830 # FIXME: we need at least 68020 code to build shared libraries, but 10831 # adding the `-m68020' flag to GCC prevents building anything better, 10832 # like `-m68040'. 10833 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10834 ;; 10835 esac 10836 ;; 10837 10838 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10839 # PIC is the default for these OSes. 10840 ;; 10841 10842 mingw* | cygwin* | pw32* | os2* | cegcc*) 10843 # This hack is so that the source file can tell whether it is being 10844 # built for inclusion in a dll (and should export symbols for example). 10845 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10846 # (--disable-auto-import) libraries 10847 lt_prog_compiler_pic='-DDLL_EXPORT' 10848 ;; 10849 10850 darwin* | rhapsody*) 10851 # PIC is the default on this platform 10852 # Common symbols not allowed in MH_DYLIB files 10853 lt_prog_compiler_pic='-fno-common' 10854 ;; 10855 10856 haiku*) 10857 # PIC is the default for Haiku. 10858 # The "-static" flag exists, but is broken. 10859 lt_prog_compiler_static= 10860 ;; 10861 10862 hpux*) 10863 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10864 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10865 # sets the default TLS model and affects inlining. 10866 case $host_cpu in 10867 hppa*64*) 10868 # +Z the default 10869 ;; 10870 *) 10871 lt_prog_compiler_pic='-fPIC' 10872 ;; 10873 esac 10874 ;; 10875 10876 interix[3-9]*) 10877 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10878 # Instead, we relocate shared libraries at runtime. 10879 ;; 10880 10881 msdosdjgpp*) 10882 # Just because we use GCC doesn't mean we suddenly get shared libraries 10883 # on systems that don't support them. 10884 lt_prog_compiler_can_build_shared=no 10885 enable_shared=no 10886 ;; 10887 10888 *nto* | *qnx*) 10889 # QNX uses GNU C++, but need to define -shared option too, otherwise 10890 # it will coredump. 10891 lt_prog_compiler_pic='-fPIC -shared' 10892 ;; 10893 10894 sysv4*MP*) 10895 if test -d /usr/nec; then 10896 lt_prog_compiler_pic=-Kconform_pic 10897 fi 10898 ;; 10899 10900 *) 10901 lt_prog_compiler_pic='-fPIC' 10902 ;; 10903 esac 10904 10905 case $cc_basename in 10906 nvcc*) # Cuda Compiler Driver 2.2 10907 lt_prog_compiler_wl='-Xlinker ' 10908 if test -n "$lt_prog_compiler_pic"; then 10909 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10910 fi 10911 ;; 10912 esac 10913 else 10914 # PORTME Check for flag to pass linker flags through the system compiler. 10915 case $host_os in 10916 aix*) 10917 lt_prog_compiler_wl='-Wl,' 10918 if test "$host_cpu" = ia64; then 10919 # AIX 5 now supports IA64 processor 10920 lt_prog_compiler_static='-Bstatic' 10921 else 10922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10923 fi 10924 ;; 10925 10926 mingw* | cygwin* | pw32* | os2* | cegcc*) 10927 # This hack is so that the source file can tell whether it is being 10928 # built for inclusion in a dll (and should export symbols for example). 10929 lt_prog_compiler_pic='-DDLL_EXPORT' 10930 ;; 10931 10932 hpux9* | hpux10* | hpux11*) 10933 lt_prog_compiler_wl='-Wl,' 10934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10935 # not for PA HP-UX. 10936 case $host_cpu in 10937 hppa*64*|ia64*) 10938 # +Z the default 10939 ;; 10940 *) 10941 lt_prog_compiler_pic='+Z' 10942 ;; 10943 esac 10944 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10945 lt_prog_compiler_static='${wl}-a ${wl}archive' 10946 ;; 10947 10948 irix5* | irix6* | nonstopux*) 10949 lt_prog_compiler_wl='-Wl,' 10950 # PIC (with -KPIC) is the default. 10951 lt_prog_compiler_static='-non_shared' 10952 ;; 10953 10954 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10955 case $cc_basename in 10956 # old Intel for x86_64 which still supported -KPIC. 10957 ecc*) 10958 lt_prog_compiler_wl='-Wl,' 10959 lt_prog_compiler_pic='-KPIC' 10960 lt_prog_compiler_static='-static' 10961 ;; 10962 # icc used to be incompatible with GCC. 10963 # ICC 10 doesn't accept -KPIC any more. 10964 icc* | ifort*) 10965 lt_prog_compiler_wl='-Wl,' 10966 lt_prog_compiler_pic='-fPIC' 10967 lt_prog_compiler_static='-static' 10968 ;; 10969 # Lahey Fortran 8.1. 10970 lf95*) 10971 lt_prog_compiler_wl='-Wl,' 10972 lt_prog_compiler_pic='--shared' 10973 lt_prog_compiler_static='--static' 10974 ;; 10975 nagfor*) 10976 # NAG Fortran compiler 10977 lt_prog_compiler_wl='-Wl,-Wl,,' 10978 lt_prog_compiler_pic='-PIC' 10979 lt_prog_compiler_static='-Bstatic' 10980 ;; 10981 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10982 # Portland Group compilers (*not* the Pentium gcc compiler, 10983 # which looks to be a dead project) 10984 lt_prog_compiler_wl='-Wl,' 10985 lt_prog_compiler_pic='-fpic' 10986 lt_prog_compiler_static='-Bstatic' 10987 ;; 10988 ccc*) 10989 lt_prog_compiler_wl='-Wl,' 10990 # All Alpha code is PIC. 10991 lt_prog_compiler_static='-non_shared' 10992 ;; 10993 xl* | bgxl* | bgf* | mpixl*) 10994 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10995 lt_prog_compiler_wl='-Wl,' 10996 lt_prog_compiler_pic='-qpic' 10997 lt_prog_compiler_static='-qstaticlink' 10998 ;; 10999 *) 11000 case `$CC -V 2>&1 | sed 5q` in 11001 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11002 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11003 lt_prog_compiler_pic='-KPIC' 11004 lt_prog_compiler_static='-Bstatic' 11005 lt_prog_compiler_wl='' 11006 ;; 11007 *Sun\ F* | *Sun*Fortran*) 11008 lt_prog_compiler_pic='-KPIC' 11009 lt_prog_compiler_static='-Bstatic' 11010 lt_prog_compiler_wl='-Qoption ld ' 11011 ;; 11012 *Sun\ C*) 11013 # Sun C 5.9 11014 lt_prog_compiler_pic='-KPIC' 11015 lt_prog_compiler_static='-Bstatic' 11016 lt_prog_compiler_wl='-Wl,' 11017 ;; 11018 *Intel*\ [CF]*Compiler*) 11019 lt_prog_compiler_wl='-Wl,' 11020 lt_prog_compiler_pic='-fPIC' 11021 lt_prog_compiler_static='-static' 11022 ;; 11023 *Portland\ Group*) 11024 lt_prog_compiler_wl='-Wl,' 11025 lt_prog_compiler_pic='-fpic' 11026 lt_prog_compiler_static='-Bstatic' 11027 ;; 11028 esac 11029 ;; 11030 esac 11031 ;; 11032 11033 newsos6) 11034 lt_prog_compiler_pic='-KPIC' 11035 lt_prog_compiler_static='-Bstatic' 11036 ;; 11037 11038 *nto* | *qnx*) 11039 # QNX uses GNU C++, but need to define -shared option too, otherwise 11040 # it will coredump. 11041 lt_prog_compiler_pic='-fPIC -shared' 11042 ;; 11043 11044 osf3* | osf4* | osf5*) 11045 lt_prog_compiler_wl='-Wl,' 11046 # All OSF/1 code is PIC. 11047 lt_prog_compiler_static='-non_shared' 11048 ;; 11049 11050 rdos*) 11051 lt_prog_compiler_static='-non_shared' 11052 ;; 11053 11054 solaris*) 11055 lt_prog_compiler_pic='-KPIC' 11056 lt_prog_compiler_static='-Bstatic' 11057 case $cc_basename in 11058 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11059 lt_prog_compiler_wl='-Qoption ld ';; 11060 *) 11061 lt_prog_compiler_wl='-Wl,';; 11062 esac 11063 ;; 11064 11065 sunos4*) 11066 lt_prog_compiler_wl='-Qoption ld ' 11067 lt_prog_compiler_pic='-PIC' 11068 lt_prog_compiler_static='-Bstatic' 11069 ;; 11070 11071 sysv4 | sysv4.2uw2* | sysv4.3*) 11072 lt_prog_compiler_wl='-Wl,' 11073 lt_prog_compiler_pic='-KPIC' 11074 lt_prog_compiler_static='-Bstatic' 11075 ;; 11076 11077 sysv4*MP*) 11078 if test -d /usr/nec ;then 11079 lt_prog_compiler_pic='-Kconform_pic' 11080 lt_prog_compiler_static='-Bstatic' 11081 fi 11082 ;; 11083 11084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11085 lt_prog_compiler_wl='-Wl,' 11086 lt_prog_compiler_pic='-KPIC' 11087 lt_prog_compiler_static='-Bstatic' 11088 ;; 11089 11090 unicos*) 11091 lt_prog_compiler_wl='-Wl,' 11092 lt_prog_compiler_can_build_shared=no 11093 ;; 11094 11095 uts4*) 11096 lt_prog_compiler_pic='-pic' 11097 lt_prog_compiler_static='-Bstatic' 11098 ;; 11099 11100 *) 11101 lt_prog_compiler_can_build_shared=no 11102 ;; 11103 esac 11104 fi 11105 11106case $host_os in 11107 # For platforms which do not support PIC, -DPIC is meaningless: 11108 *djgpp*) 11109 lt_prog_compiler_pic= 11110 ;; 11111 *) 11112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11113 ;; 11114esac 11115 11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11117$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11118if ${lt_cv_prog_compiler_pic+:} false; then : 11119 $as_echo_n "(cached) " >&6 11120else 11121 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11124$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11125lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11126 11127# 11128# Check to make sure the PIC flag actually works. 11129# 11130if test -n "$lt_prog_compiler_pic"; then 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11132$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11133if ${lt_cv_prog_compiler_pic_works+:} false; then : 11134 $as_echo_n "(cached) " >&6 11135else 11136 lt_cv_prog_compiler_pic_works=no 11137 ac_outfile=conftest.$ac_objext 11138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11140 # Insert the option either (1) after the last *FLAGS variable, or 11141 # (2) before a word containing "conftest.", or (3) at the end. 11142 # Note that $ac_compile itself does not contain backslashes and begins 11143 # with a dollar sign (not a hyphen), so the echo should work correctly. 11144 # The option is referenced via a variable to avoid confusing sed. 11145 lt_compile=`echo "$ac_compile" | $SED \ 11146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11148 -e 's:$: $lt_compiler_flag:'` 11149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11150 (eval "$lt_compile" 2>conftest.err) 11151 ac_status=$? 11152 cat conftest.err >&5 11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11154 if (exit $ac_status) && test -s "$ac_outfile"; then 11155 # The compiler can only warn and ignore the option if not recognized 11156 # So say no if there are warnings other than the usual output. 11157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11160 lt_cv_prog_compiler_pic_works=yes 11161 fi 11162 fi 11163 $RM conftest* 11164 11165fi 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11167$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11168 11169if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11170 case $lt_prog_compiler_pic in 11171 "" | " "*) ;; 11172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11173 esac 11174else 11175 lt_prog_compiler_pic= 11176 lt_prog_compiler_can_build_shared=no 11177fi 11178 11179fi 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191# 11192# Check to make sure the static flag actually works. 11193# 11194wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11196$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11197if ${lt_cv_prog_compiler_static_works+:} false; then : 11198 $as_echo_n "(cached) " >&6 11199else 11200 lt_cv_prog_compiler_static_works=no 11201 save_LDFLAGS="$LDFLAGS" 11202 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11203 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11205 # The linker can only warn and ignore the option if not recognized 11206 # So say no if there are warnings 11207 if test -s conftest.err; then 11208 # Append any errors to the config.log. 11209 cat conftest.err 1>&5 11210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11212 if diff conftest.exp conftest.er2 >/dev/null; then 11213 lt_cv_prog_compiler_static_works=yes 11214 fi 11215 else 11216 lt_cv_prog_compiler_static_works=yes 11217 fi 11218 fi 11219 $RM -r conftest* 11220 LDFLAGS="$save_LDFLAGS" 11221 11222fi 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11224$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11225 11226if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11227 : 11228else 11229 lt_prog_compiler_static= 11230fi 11231 11232 11233 11234 11235 11236 11237 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11239$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11240if ${lt_cv_prog_compiler_c_o+:} false; then : 11241 $as_echo_n "(cached) " >&6 11242else 11243 lt_cv_prog_compiler_c_o=no 11244 $RM -r conftest 2>/dev/null 11245 mkdir conftest 11246 cd conftest 11247 mkdir out 11248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11249 11250 lt_compiler_flag="-o out/conftest2.$ac_objext" 11251 # Insert the option either (1) after the last *FLAGS variable, or 11252 # (2) before a word containing "conftest.", or (3) at the end. 11253 # Note that $ac_compile itself does not contain backslashes and begins 11254 # with a dollar sign (not a hyphen), so the echo should work correctly. 11255 lt_compile=`echo "$ac_compile" | $SED \ 11256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11258 -e 's:$: $lt_compiler_flag:'` 11259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11260 (eval "$lt_compile" 2>out/conftest.err) 11261 ac_status=$? 11262 cat out/conftest.err >&5 11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11264 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11265 then 11266 # The compiler can only warn and ignore the option if not recognized 11267 # So say no if there are warnings 11268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11271 lt_cv_prog_compiler_c_o=yes 11272 fi 11273 fi 11274 chmod u+w . 2>&5 11275 $RM conftest* 11276 # SGI C++ compiler will create directory out/ii_files/ for 11277 # template instantiation 11278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11279 $RM out/* && rmdir out 11280 cd .. 11281 $RM -r conftest 11282 $RM conftest* 11283 11284fi 11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11286$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11287 11288 11289 11290 11291 11292 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11294$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11295if ${lt_cv_prog_compiler_c_o+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 lt_cv_prog_compiler_c_o=no 11299 $RM -r conftest 2>/dev/null 11300 mkdir conftest 11301 cd conftest 11302 mkdir out 11303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11304 11305 lt_compiler_flag="-o out/conftest2.$ac_objext" 11306 # Insert the option either (1) after the last *FLAGS variable, or 11307 # (2) before a word containing "conftest.", or (3) at the end. 11308 # Note that $ac_compile itself does not contain backslashes and begins 11309 # with a dollar sign (not a hyphen), so the echo should work correctly. 11310 lt_compile=`echo "$ac_compile" | $SED \ 11311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11313 -e 's:$: $lt_compiler_flag:'` 11314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11315 (eval "$lt_compile" 2>out/conftest.err) 11316 ac_status=$? 11317 cat out/conftest.err >&5 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11320 then 11321 # The compiler can only warn and ignore the option if not recognized 11322 # So say no if there are warnings 11323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11326 lt_cv_prog_compiler_c_o=yes 11327 fi 11328 fi 11329 chmod u+w . 2>&5 11330 $RM conftest* 11331 # SGI C++ compiler will create directory out/ii_files/ for 11332 # template instantiation 11333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11334 $RM out/* && rmdir out 11335 cd .. 11336 $RM -r conftest 11337 $RM conftest* 11338 11339fi 11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11341$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11342 11343 11344 11345 11346hard_links="nottested" 11347if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11348 # do not overwrite the value of need_locks provided by the user 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11350$as_echo_n "checking if we can lock with hard links... " >&6; } 11351 hard_links=yes 11352 $RM conftest* 11353 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11354 touch conftest.a 11355 ln conftest.a conftest.b 2>&5 || hard_links=no 11356 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11358$as_echo "$hard_links" >&6; } 11359 if test "$hard_links" = no; then 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11361$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11362 need_locks=warn 11363 fi 11364else 11365 need_locks=no 11366fi 11367 11368 11369 11370 11371 11372 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11374$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11375 11376 runpath_var= 11377 allow_undefined_flag= 11378 always_export_symbols=no 11379 archive_cmds= 11380 archive_expsym_cmds= 11381 compiler_needs_object=no 11382 enable_shared_with_static_runtimes=no 11383 export_dynamic_flag_spec= 11384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11385 hardcode_automatic=no 11386 hardcode_direct=no 11387 hardcode_direct_absolute=no 11388 hardcode_libdir_flag_spec= 11389 hardcode_libdir_separator= 11390 hardcode_minus_L=no 11391 hardcode_shlibpath_var=unsupported 11392 inherit_rpath=no 11393 link_all_deplibs=unknown 11394 module_cmds= 11395 module_expsym_cmds= 11396 old_archive_from_new_cmds= 11397 old_archive_from_expsyms_cmds= 11398 thread_safe_flag_spec= 11399 whole_archive_flag_spec= 11400 # include_expsyms should be a list of space-separated symbols to be *always* 11401 # included in the symbol list 11402 include_expsyms= 11403 # exclude_expsyms can be an extended regexp of symbols to exclude 11404 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11406 # as well as any symbol that contains `d'. 11407 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11409 # platforms (ab)use it in PIC code, but their linkers get confused if 11410 # the symbol is explicitly referenced. Since portable code cannot 11411 # rely on this symbol name, it's probably fine to never include it in 11412 # preloaded symbol tables. 11413 # Exclude shared library initialization/finalization symbols. 11414 extract_expsyms_cmds= 11415 11416 case $host_os in 11417 cygwin* | mingw* | pw32* | cegcc*) 11418 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11419 # When not using gcc, we currently assume that we are using 11420 # Microsoft Visual C++. 11421 if test "$GCC" != yes; then 11422 with_gnu_ld=no 11423 fi 11424 ;; 11425 interix*) 11426 # we just hope/assume this is gcc and not c89 (= MSVC++) 11427 with_gnu_ld=yes 11428 ;; 11429 openbsd*) 11430 with_gnu_ld=no 11431 ;; 11432 linux* | k*bsd*-gnu | gnu*) 11433 link_all_deplibs=no 11434 ;; 11435 esac 11436 11437 ld_shlibs=yes 11438 11439 # On some targets, GNU ld is compatible enough with the native linker 11440 # that we're better off using the native interface for both. 11441 lt_use_gnu_ld_interface=no 11442 if test "$with_gnu_ld" = yes; then 11443 case $host_os in 11444 aix*) 11445 # The AIX port of GNU ld has always aspired to compatibility 11446 # with the native linker. However, as the warning in the GNU ld 11447 # block says, versions before 2.19.5* couldn't really create working 11448 # shared libraries, regardless of the interface used. 11449 case `$LD -v 2>&1` in 11450 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11451 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11452 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11453 *) 11454 lt_use_gnu_ld_interface=yes 11455 ;; 11456 esac 11457 ;; 11458 *) 11459 lt_use_gnu_ld_interface=yes 11460 ;; 11461 esac 11462 fi 11463 11464 if test "$lt_use_gnu_ld_interface" = yes; then 11465 # If archive_cmds runs LD, not CC, wlarc should be empty 11466 wlarc='${wl}' 11467 11468 # Set some defaults for GNU ld with shared library support. These 11469 # are reset later if shared libraries are not supported. Putting them 11470 # here allows them to be overridden if necessary. 11471 runpath_var=LD_RUN_PATH 11472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11473 export_dynamic_flag_spec='${wl}--export-dynamic' 11474 # ancient GNU ld didn't support --whole-archive et. al. 11475 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11476 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11477 else 11478 whole_archive_flag_spec= 11479 fi 11480 supports_anon_versioning=no 11481 case `$LD -v 2>&1` in 11482 *GNU\ gold*) supports_anon_versioning=yes ;; 11483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11486 *\ 2.11.*) ;; # other 2.11 versions 11487 *) supports_anon_versioning=yes ;; 11488 esac 11489 11490 # See if GNU ld supports shared libraries. 11491 case $host_os in 11492 aix[3-9]*) 11493 # On AIX/PPC, the GNU linker is very broken 11494 if test "$host_cpu" != ia64; then 11495 ld_shlibs=no 11496 cat <<_LT_EOF 1>&2 11497 11498*** Warning: the GNU linker, at least up to release 2.19, is reported 11499*** to be unable to reliably create shared libraries on AIX. 11500*** Therefore, libtool is disabling shared libraries support. If you 11501*** really care for shared libraries, you may want to install binutils 11502*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11503*** You will then need to restart the configuration process. 11504 11505_LT_EOF 11506 fi 11507 ;; 11508 11509 amigaos*) 11510 case $host_cpu in 11511 powerpc) 11512 # see comment about AmigaOS4 .so support 11513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11514 archive_expsym_cmds='' 11515 ;; 11516 m68k) 11517 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)' 11518 hardcode_libdir_flag_spec='-L$libdir' 11519 hardcode_minus_L=yes 11520 ;; 11521 esac 11522 ;; 11523 11524 beos*) 11525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11526 allow_undefined_flag=unsupported 11527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11528 # support --undefined. This deserves some investigation. FIXME 11529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11530 else 11531 ld_shlibs=no 11532 fi 11533 ;; 11534 11535 cygwin* | mingw* | pw32* | cegcc*) 11536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11537 # as there is no search path for DLLs. 11538 hardcode_libdir_flag_spec='-L$libdir' 11539 export_dynamic_flag_spec='${wl}--export-all-symbols' 11540 allow_undefined_flag=unsupported 11541 always_export_symbols=no 11542 enable_shared_with_static_runtimes=yes 11543 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' 11544 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11545 11546 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11548 # If the export-symbols file already is a .def file (1st line 11549 # is EXPORTS), use it as is; otherwise, prepend... 11550 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11551 cp $export_symbols $output_objdir/$soname.def; 11552 else 11553 echo EXPORTS > $output_objdir/$soname.def; 11554 cat $export_symbols >> $output_objdir/$soname.def; 11555 fi~ 11556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11557 else 11558 ld_shlibs=no 11559 fi 11560 ;; 11561 11562 haiku*) 11563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11564 link_all_deplibs=yes 11565 ;; 11566 11567 interix[3-9]*) 11568 hardcode_direct=no 11569 hardcode_shlibpath_var=no 11570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11571 export_dynamic_flag_spec='${wl}-E' 11572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11573 # Instead, shared libraries are loaded at an image base (0x10000000 by 11574 # default) and relocated if they conflict, which is a slow very memory 11575 # consuming and fragmenting process. To avoid this, we pick a random, 11576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11577 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11579 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' 11580 ;; 11581 11582 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11583 tmp_diet=no 11584 if test "$host_os" = linux-dietlibc; then 11585 case $cc_basename in 11586 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11587 esac 11588 fi 11589 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11590 && test "$tmp_diet" = no 11591 then 11592 tmp_addflag=' $pic_flag' 11593 tmp_sharedflag='-shared' 11594 case $cc_basename,$host_cpu in 11595 pgcc*) # Portland Group C compiler 11596 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' 11597 tmp_addflag=' $pic_flag' 11598 ;; 11599 pgf77* | pgf90* | pgf95* | pgfortran*) 11600 # Portland Group f77 and f90 compilers 11601 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' 11602 tmp_addflag=' $pic_flag -Mnomain' ;; 11603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11604 tmp_addflag=' -i_dynamic' ;; 11605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11606 tmp_addflag=' -i_dynamic -nofor_main' ;; 11607 ifc* | ifort*) # Intel Fortran compiler 11608 tmp_addflag=' -nofor_main' ;; 11609 lf95*) # Lahey Fortran 8.1 11610 whole_archive_flag_spec= 11611 tmp_sharedflag='--shared' ;; 11612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11613 tmp_sharedflag='-qmkshrobj' 11614 tmp_addflag= ;; 11615 nvcc*) # Cuda Compiler Driver 2.2 11616 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' 11617 compiler_needs_object=yes 11618 ;; 11619 esac 11620 case `$CC -V 2>&1 | sed 5q` in 11621 *Sun\ C*) # Sun C 5.9 11622 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' 11623 compiler_needs_object=yes 11624 tmp_sharedflag='-G' ;; 11625 *Sun\ F*) # Sun Fortran 8.3 11626 tmp_sharedflag='-G' ;; 11627 esac 11628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11629 11630 if test "x$supports_anon_versioning" = xyes; then 11631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11633 echo "local: *; };" >> $output_objdir/$libname.ver~ 11634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11635 fi 11636 11637 case $cc_basename in 11638 xlf* | bgf* | bgxlf* | mpixlf*) 11639 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11640 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11642 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11643 if test "x$supports_anon_versioning" = xyes; then 11644 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11646 echo "local: *; };" >> $output_objdir/$libname.ver~ 11647 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11648 fi 11649 ;; 11650 esac 11651 else 11652 ld_shlibs=no 11653 fi 11654 ;; 11655 11656 netbsd* | netbsdelf*-gnu) 11657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11658 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11659 wlarc= 11660 else 11661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11662 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11663 fi 11664 ;; 11665 11666 solaris*) 11667 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11668 ld_shlibs=no 11669 cat <<_LT_EOF 1>&2 11670 11671*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11672*** create shared libraries on Solaris systems. Therefore, libtool 11673*** is disabling shared libraries support. We urge you to upgrade GNU 11674*** binutils to release 2.9.1 or newer. Another option is to modify 11675*** your PATH or compiler configuration so that the native linker is 11676*** used, and then restart. 11677 11678_LT_EOF 11679 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11682 else 11683 ld_shlibs=no 11684 fi 11685 ;; 11686 11687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11688 case `$LD -v 2>&1` in 11689 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11690 ld_shlibs=no 11691 cat <<_LT_EOF 1>&2 11692 11693*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11694*** reliably create shared libraries on SCO systems. Therefore, libtool 11695*** is disabling shared libraries support. We urge you to upgrade GNU 11696*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11697*** your PATH or compiler configuration so that the native linker is 11698*** used, and then restart. 11699 11700_LT_EOF 11701 ;; 11702 *) 11703 # For security reasons, it is highly recommended that you always 11704 # use absolute paths for naming shared libraries, and exclude the 11705 # DT_RUNPATH tag from executables and libraries. But doing so 11706 # requires that you compile everything twice, which is a pain. 11707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11711 else 11712 ld_shlibs=no 11713 fi 11714 ;; 11715 esac 11716 ;; 11717 11718 sunos4*) 11719 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11720 wlarc= 11721 hardcode_direct=yes 11722 hardcode_shlibpath_var=no 11723 ;; 11724 11725 *) 11726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11728 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11729 else 11730 ld_shlibs=no 11731 fi 11732 ;; 11733 esac 11734 11735 if test "$ld_shlibs" = no; then 11736 runpath_var= 11737 hardcode_libdir_flag_spec= 11738 export_dynamic_flag_spec= 11739 whole_archive_flag_spec= 11740 fi 11741 else 11742 # PORTME fill in a description of your system's linker (not GNU ld) 11743 case $host_os in 11744 aix3*) 11745 allow_undefined_flag=unsupported 11746 always_export_symbols=yes 11747 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' 11748 # Note: this linker hardcodes the directories in LIBPATH if there 11749 # are no directories specified by -L. 11750 hardcode_minus_L=yes 11751 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11752 # Neither direct hardcoding nor static linking is supported with a 11753 # broken collect2. 11754 hardcode_direct=unsupported 11755 fi 11756 ;; 11757 11758 aix[4-9]*) 11759 if test "$host_cpu" = ia64; then 11760 # On IA64, the linker does run time linking by default, so we don't 11761 # have to do anything special. 11762 aix_use_runtimelinking=no 11763 exp_sym_flag='-Bexport' 11764 no_entry_flag="" 11765 else 11766 # If we're using GNU nm, then we don't want the "-C" option. 11767 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11768 # Also, AIX nm treats weak defined symbols like other global 11769 # defined symbols, whereas GNU nm marks them as "W". 11770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11771 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11772 else 11773 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11774 fi 11775 aix_use_runtimelinking=no 11776 11777 # Test if we are trying to use run time linking or normal 11778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11779 # need to do runtime linking. 11780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11781 for ld_flag in $LDFLAGS; do 11782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11783 aix_use_runtimelinking=yes 11784 break 11785 fi 11786 done 11787 ;; 11788 esac 11789 11790 exp_sym_flag='-bexport' 11791 no_entry_flag='-bnoentry' 11792 fi 11793 11794 # When large executables or shared objects are built, AIX ld can 11795 # have problems creating the table of contents. If linking a library 11796 # or program results in "error TOC overflow" add -mminimal-toc to 11797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11799 11800 archive_cmds='' 11801 hardcode_direct=yes 11802 hardcode_direct_absolute=yes 11803 hardcode_libdir_separator=':' 11804 link_all_deplibs=yes 11805 file_list_spec='${wl}-f,' 11806 11807 if test "$GCC" = yes; then 11808 case $host_os in aix4.[012]|aix4.[012].*) 11809 # We only want to do this on AIX 4.2 and lower, the check 11810 # below for broken collect2 doesn't work under 4.3+ 11811 collect2name=`${CC} -print-prog-name=collect2` 11812 if test -f "$collect2name" && 11813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11814 then 11815 # We have reworked collect2 11816 : 11817 else 11818 # We have old collect2 11819 hardcode_direct=unsupported 11820 # It fails to find uninstalled libraries when the uninstalled 11821 # path is not listed in the libpath. Setting hardcode_minus_L 11822 # to unsupported forces relinking 11823 hardcode_minus_L=yes 11824 hardcode_libdir_flag_spec='-L$libdir' 11825 hardcode_libdir_separator= 11826 fi 11827 ;; 11828 esac 11829 shared_flag='-shared' 11830 if test "$aix_use_runtimelinking" = yes; then 11831 shared_flag="$shared_flag "'${wl}-G' 11832 fi 11833 link_all_deplibs=no 11834 else 11835 # not using gcc 11836 if test "$host_cpu" = ia64; then 11837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11838 # chokes on -Wl,-G. The following line is correct: 11839 shared_flag='-G' 11840 else 11841 if test "$aix_use_runtimelinking" = yes; then 11842 shared_flag='${wl}-G' 11843 else 11844 shared_flag='${wl}-bM:SRE' 11845 fi 11846 fi 11847 fi 11848 11849 export_dynamic_flag_spec='${wl}-bexpall' 11850 # It seems that -bexpall does not export symbols beginning with 11851 # underscore (_), so it is better to generate a list of symbols to export. 11852 always_export_symbols=yes 11853 if test "$aix_use_runtimelinking" = yes; then 11854 # Warning - without using the other runtime loading flags (-brtl), 11855 # -berok will link without error, but may produce a broken library. 11856 allow_undefined_flag='-berok' 11857 # Determine the default libpath from the value encoded in an 11858 # empty executable. 11859 if test "${lt_cv_aix_libpath+set}" = set; then 11860 aix_libpath=$lt_cv_aix_libpath 11861else 11862 if ${lt_cv_aix_libpath_+:} false; then : 11863 $as_echo_n "(cached) " >&6 11864else 11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11866/* end confdefs.h. */ 11867 11868int 11869main () 11870{ 11871 11872 ; 11873 return 0; 11874} 11875_ACEOF 11876if ac_fn_c_try_link "$LINENO"; then : 11877 11878 lt_aix_libpath_sed=' 11879 /Import File Strings/,/^$/ { 11880 /^0/ { 11881 s/^0 *\([^ ]*\) *$/\1/ 11882 p 11883 } 11884 }' 11885 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11886 # Check for a 64-bit object if we didn't find anything. 11887 if test -z "$lt_cv_aix_libpath_"; then 11888 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11889 fi 11890fi 11891rm -f core conftest.err conftest.$ac_objext \ 11892 conftest$ac_exeext conftest.$ac_ext 11893 if test -z "$lt_cv_aix_libpath_"; then 11894 lt_cv_aix_libpath_="/usr/lib:/lib" 11895 fi 11896 11897fi 11898 11899 aix_libpath=$lt_cv_aix_libpath_ 11900fi 11901 11902 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11903 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11904 else 11905 if test "$host_cpu" = ia64; then 11906 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11907 allow_undefined_flag="-z nodefs" 11908 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" 11909 else 11910 # Determine the default libpath from the value encoded in an 11911 # empty executable. 11912 if test "${lt_cv_aix_libpath+set}" = set; then 11913 aix_libpath=$lt_cv_aix_libpath 11914else 11915 if ${lt_cv_aix_libpath_+:} false; then : 11916 $as_echo_n "(cached) " >&6 11917else 11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11919/* end confdefs.h. */ 11920 11921int 11922main () 11923{ 11924 11925 ; 11926 return 0; 11927} 11928_ACEOF 11929if ac_fn_c_try_link "$LINENO"; then : 11930 11931 lt_aix_libpath_sed=' 11932 /Import File Strings/,/^$/ { 11933 /^0/ { 11934 s/^0 *\([^ ]*\) *$/\1/ 11935 p 11936 } 11937 }' 11938 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11939 # Check for a 64-bit object if we didn't find anything. 11940 if test -z "$lt_cv_aix_libpath_"; then 11941 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11942 fi 11943fi 11944rm -f core conftest.err conftest.$ac_objext \ 11945 conftest$ac_exeext conftest.$ac_ext 11946 if test -z "$lt_cv_aix_libpath_"; then 11947 lt_cv_aix_libpath_="/usr/lib:/lib" 11948 fi 11949 11950fi 11951 11952 aix_libpath=$lt_cv_aix_libpath_ 11953fi 11954 11955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11956 # Warning - without using the other run time loading flags, 11957 # -berok will link without error, but may produce a broken library. 11958 no_undefined_flag=' ${wl}-bernotok' 11959 allow_undefined_flag=' ${wl}-berok' 11960 if test "$with_gnu_ld" = yes; then 11961 # We only use this code for GNU lds that support --whole-archive. 11962 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11963 else 11964 # Exported symbols can be pulled into shared objects from archives 11965 whole_archive_flag_spec='$convenience' 11966 fi 11967 archive_cmds_need_lc=yes 11968 # This is similar to how AIX traditionally builds its shared libraries. 11969 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11970 fi 11971 fi 11972 ;; 11973 11974 amigaos*) 11975 case $host_cpu in 11976 powerpc) 11977 # see comment about AmigaOS4 .so support 11978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11979 archive_expsym_cmds='' 11980 ;; 11981 m68k) 11982 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)' 11983 hardcode_libdir_flag_spec='-L$libdir' 11984 hardcode_minus_L=yes 11985 ;; 11986 esac 11987 ;; 11988 11989 bsdi[45]*) 11990 export_dynamic_flag_spec=-rdynamic 11991 ;; 11992 11993 cygwin* | mingw* | pw32* | cegcc*) 11994 # When not using gcc, we currently assume that we are using 11995 # Microsoft Visual C++. 11996 # hardcode_libdir_flag_spec is actually meaningless, as there is 11997 # no search path for DLLs. 11998 case $cc_basename in 11999 cl*) 12000 # Native MSVC 12001 hardcode_libdir_flag_spec=' ' 12002 allow_undefined_flag=unsupported 12003 always_export_symbols=yes 12004 file_list_spec='@' 12005 # Tell ltmain to make .lib files, not .a files. 12006 libext=lib 12007 # Tell ltmain to make .dll files, not .so files. 12008 shrext_cmds=".dll" 12009 # FIXME: Setting linknames here is a bad hack. 12010 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12011 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12012 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12013 else 12014 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12015 fi~ 12016 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12017 linknames=' 12018 # The linker will not automatically build a static lib if we build a DLL. 12019 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12020 enable_shared_with_static_runtimes=yes 12021 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12023 # Don't use ranlib 12024 old_postinstall_cmds='chmod 644 $oldlib' 12025 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12026 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12027 case $lt_outputfile in 12028 *.exe|*.EXE) ;; 12029 *) 12030 lt_outputfile="$lt_outputfile.exe" 12031 lt_tool_outputfile="$lt_tool_outputfile.exe" 12032 ;; 12033 esac~ 12034 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12035 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12036 $RM "$lt_outputfile.manifest"; 12037 fi' 12038 ;; 12039 *) 12040 # Assume MSVC wrapper 12041 hardcode_libdir_flag_spec=' ' 12042 allow_undefined_flag=unsupported 12043 # Tell ltmain to make .lib files, not .a files. 12044 libext=lib 12045 # Tell ltmain to make .dll files, not .so files. 12046 shrext_cmds=".dll" 12047 # FIXME: Setting linknames here is a bad hack. 12048 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12049 # The linker will automatically build a .lib file if we build a DLL. 12050 old_archive_from_new_cmds='true' 12051 # FIXME: Should let the user specify the lib program. 12052 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12053 enable_shared_with_static_runtimes=yes 12054 ;; 12055 esac 12056 ;; 12057 12058 darwin* | rhapsody*) 12059 12060 12061 archive_cmds_need_lc=no 12062 hardcode_direct=no 12063 hardcode_automatic=yes 12064 hardcode_shlibpath_var=unsupported 12065 if test "$lt_cv_ld_force_load" = "yes"; then 12066 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\"`' 12067 12068 else 12069 whole_archive_flag_spec='' 12070 fi 12071 link_all_deplibs=yes 12072 allow_undefined_flag="$_lt_dar_allow_undefined" 12073 case $cc_basename in 12074 ifort*) _lt_dar_can_shared=yes ;; 12075 *) _lt_dar_can_shared=$GCC ;; 12076 esac 12077 if test "$_lt_dar_can_shared" = "yes"; then 12078 output_verbose_link_cmd=func_echo_all 12079 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12080 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12081 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}" 12082 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}" 12083 12084 else 12085 ld_shlibs=no 12086 fi 12087 12088 ;; 12089 12090 dgux*) 12091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12092 hardcode_libdir_flag_spec='-L$libdir' 12093 hardcode_shlibpath_var=no 12094 ;; 12095 12096 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12097 # support. Future versions do this automatically, but an explicit c++rt0.o 12098 # does not break anything, and helps significantly (at the cost of a little 12099 # extra space). 12100 freebsd2.2*) 12101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12102 hardcode_libdir_flag_spec='-R$libdir' 12103 hardcode_direct=yes 12104 hardcode_shlibpath_var=no 12105 ;; 12106 12107 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12108 freebsd2.*) 12109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12110 hardcode_direct=yes 12111 hardcode_minus_L=yes 12112 hardcode_shlibpath_var=no 12113 ;; 12114 12115 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12116 freebsd* | dragonfly*) 12117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12118 hardcode_libdir_flag_spec='-R$libdir' 12119 hardcode_direct=yes 12120 hardcode_shlibpath_var=no 12121 ;; 12122 12123 hpux9*) 12124 if test "$GCC" = yes; then 12125 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12126 else 12127 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12128 fi 12129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12130 hardcode_libdir_separator=: 12131 hardcode_direct=yes 12132 12133 # hardcode_minus_L: Not really in the search PATH, 12134 # but as the default location of the library. 12135 hardcode_minus_L=yes 12136 export_dynamic_flag_spec='${wl}-E' 12137 ;; 12138 12139 hpux10*) 12140 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12141 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12142 else 12143 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12144 fi 12145 if test "$with_gnu_ld" = no; then 12146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12147 hardcode_libdir_separator=: 12148 hardcode_direct=yes 12149 hardcode_direct_absolute=yes 12150 export_dynamic_flag_spec='${wl}-E' 12151 # hardcode_minus_L: Not really in the search PATH, 12152 # but as the default location of the library. 12153 hardcode_minus_L=yes 12154 fi 12155 ;; 12156 12157 hpux11*) 12158 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12159 case $host_cpu in 12160 hppa*64*) 12161 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12162 ;; 12163 ia64*) 12164 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12165 ;; 12166 *) 12167 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12168 ;; 12169 esac 12170 else 12171 case $host_cpu in 12172 hppa*64*) 12173 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12174 ;; 12175 ia64*) 12176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12177 ;; 12178 *) 12179 12180 # Older versions of the 11.00 compiler do not understand -b yet 12181 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12183$as_echo_n "checking if $CC understands -b... " >&6; } 12184if ${lt_cv_prog_compiler__b+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 lt_cv_prog_compiler__b=no 12188 save_LDFLAGS="$LDFLAGS" 12189 LDFLAGS="$LDFLAGS -b" 12190 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12192 # The linker can only warn and ignore the option if not recognized 12193 # So say no if there are warnings 12194 if test -s conftest.err; then 12195 # Append any errors to the config.log. 12196 cat conftest.err 1>&5 12197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12199 if diff conftest.exp conftest.er2 >/dev/null; then 12200 lt_cv_prog_compiler__b=yes 12201 fi 12202 else 12203 lt_cv_prog_compiler__b=yes 12204 fi 12205 fi 12206 $RM -r conftest* 12207 LDFLAGS="$save_LDFLAGS" 12208 12209fi 12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12211$as_echo "$lt_cv_prog_compiler__b" >&6; } 12212 12213if test x"$lt_cv_prog_compiler__b" = xyes; then 12214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12215else 12216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12217fi 12218 12219 ;; 12220 esac 12221 fi 12222 if test "$with_gnu_ld" = no; then 12223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12224 hardcode_libdir_separator=: 12225 12226 case $host_cpu in 12227 hppa*64*|ia64*) 12228 hardcode_direct=no 12229 hardcode_shlibpath_var=no 12230 ;; 12231 *) 12232 hardcode_direct=yes 12233 hardcode_direct_absolute=yes 12234 export_dynamic_flag_spec='${wl}-E' 12235 12236 # hardcode_minus_L: Not really in the search PATH, 12237 # but as the default location of the library. 12238 hardcode_minus_L=yes 12239 ;; 12240 esac 12241 fi 12242 ;; 12243 12244 irix5* | irix6* | nonstopux*) 12245 if test "$GCC" = yes; then 12246 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' 12247 # Try to use the -exported_symbol ld option, if it does not 12248 # work, assume that -exports_file does not work either and 12249 # implicitly export all symbols. 12250 # This should be the same for all languages, so no per-tag cache variable. 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12252$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12253if ${lt_cv_irix_exported_symbol+:} false; then : 12254 $as_echo_n "(cached) " >&6 12255else 12256 save_LDFLAGS="$LDFLAGS" 12257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12259/* end confdefs.h. */ 12260int foo (void) { return 0; } 12261_ACEOF 12262if ac_fn_c_try_link "$LINENO"; then : 12263 lt_cv_irix_exported_symbol=yes 12264else 12265 lt_cv_irix_exported_symbol=no 12266fi 12267rm -f core conftest.err conftest.$ac_objext \ 12268 conftest$ac_exeext conftest.$ac_ext 12269 LDFLAGS="$save_LDFLAGS" 12270fi 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12272$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12273 if test "$lt_cv_irix_exported_symbol" = yes; then 12274 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' 12275 fi 12276 else 12277 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' 12278 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' 12279 fi 12280 archive_cmds_need_lc='no' 12281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12282 hardcode_libdir_separator=: 12283 inherit_rpath=yes 12284 link_all_deplibs=yes 12285 ;; 12286 12287 netbsd* | netbsdelf*-gnu) 12288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12290 else 12291 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12292 fi 12293 hardcode_libdir_flag_spec='-R$libdir' 12294 hardcode_direct=yes 12295 hardcode_shlibpath_var=no 12296 ;; 12297 12298 newsos6) 12299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12300 hardcode_direct=yes 12301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12302 hardcode_libdir_separator=: 12303 hardcode_shlibpath_var=no 12304 ;; 12305 12306 *nto* | *qnx*) 12307 ;; 12308 12309 openbsd*) 12310 if test -f /usr/libexec/ld.so; then 12311 hardcode_direct=yes 12312 hardcode_shlibpath_var=no 12313 hardcode_direct_absolute=yes 12314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12316 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12318 export_dynamic_flag_spec='${wl}-E' 12319 else 12320 case $host_os in 12321 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12323 hardcode_libdir_flag_spec='-R$libdir' 12324 ;; 12325 *) 12326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12328 ;; 12329 esac 12330 fi 12331 else 12332 ld_shlibs=no 12333 fi 12334 ;; 12335 12336 os2*) 12337 hardcode_libdir_flag_spec='-L$libdir' 12338 hardcode_minus_L=yes 12339 allow_undefined_flag=unsupported 12340 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12341 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12342 ;; 12343 12344 osf3*) 12345 if test "$GCC" = yes; then 12346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12347 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' 12348 else 12349 allow_undefined_flag=' -expect_unresolved \*' 12350 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' 12351 fi 12352 archive_cmds_need_lc='no' 12353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12354 hardcode_libdir_separator=: 12355 ;; 12356 12357 osf4* | osf5*) # as osf3* with the addition of -msym flag 12358 if test "$GCC" = yes; then 12359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12360 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' 12361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12362 else 12363 allow_undefined_flag=' -expect_unresolved \*' 12364 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' 12365 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~ 12366 $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' 12367 12368 # Both c and cxx compiler support -rpath directly 12369 hardcode_libdir_flag_spec='-rpath $libdir' 12370 fi 12371 archive_cmds_need_lc='no' 12372 hardcode_libdir_separator=: 12373 ;; 12374 12375 solaris*) 12376 no_undefined_flag=' -z defs' 12377 if test "$GCC" = yes; then 12378 wlarc='${wl}' 12379 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12381 $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' 12382 else 12383 case `$CC -V 2>&1` in 12384 *"Compilers 5.0"*) 12385 wlarc='' 12386 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12389 ;; 12390 *) 12391 wlarc='${wl}' 12392 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12394 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12395 ;; 12396 esac 12397 fi 12398 hardcode_libdir_flag_spec='-R$libdir' 12399 hardcode_shlibpath_var=no 12400 case $host_os in 12401 solaris2.[0-5] | solaris2.[0-5].*) ;; 12402 *) 12403 # The compiler driver will combine and reorder linker options, 12404 # but understands `-z linker_flag'. GCC discards it without `$wl', 12405 # but is careful enough not to reorder. 12406 # Supported since Solaris 2.6 (maybe 2.5.1?) 12407 if test "$GCC" = yes; then 12408 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12409 else 12410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12411 fi 12412 ;; 12413 esac 12414 link_all_deplibs=yes 12415 ;; 12416 12417 sunos4*) 12418 if test "x$host_vendor" = xsequent; then 12419 # Use $CC to link under sequent, because it throws in some extra .o 12420 # files that make .init and .fini sections work. 12421 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12422 else 12423 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12424 fi 12425 hardcode_libdir_flag_spec='-L$libdir' 12426 hardcode_direct=yes 12427 hardcode_minus_L=yes 12428 hardcode_shlibpath_var=no 12429 ;; 12430 12431 sysv4) 12432 case $host_vendor in 12433 sni) 12434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12435 hardcode_direct=yes # is this really true??? 12436 ;; 12437 siemens) 12438 ## LD is ld it makes a PLAMLIB 12439 ## CC just makes a GrossModule. 12440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12441 reload_cmds='$CC -r -o $output$reload_objs' 12442 hardcode_direct=no 12443 ;; 12444 motorola) 12445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12446 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12447 ;; 12448 esac 12449 runpath_var='LD_RUN_PATH' 12450 hardcode_shlibpath_var=no 12451 ;; 12452 12453 sysv4.3*) 12454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12455 hardcode_shlibpath_var=no 12456 export_dynamic_flag_spec='-Bexport' 12457 ;; 12458 12459 sysv4*MP*) 12460 if test -d /usr/nec; then 12461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12462 hardcode_shlibpath_var=no 12463 runpath_var=LD_RUN_PATH 12464 hardcode_runpath_var=yes 12465 ld_shlibs=yes 12466 fi 12467 ;; 12468 12469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12470 no_undefined_flag='${wl}-z,text' 12471 archive_cmds_need_lc=no 12472 hardcode_shlibpath_var=no 12473 runpath_var='LD_RUN_PATH' 12474 12475 if test "$GCC" = yes; then 12476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12478 else 12479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12481 fi 12482 ;; 12483 12484 sysv5* | sco3.2v5* | sco5v6*) 12485 # Note: We can NOT use -z defs as we might desire, because we do not 12486 # link with -lc, and that would cause any symbols used from libc to 12487 # always be unresolved, which means just about no library would 12488 # ever link correctly. If we're not using GNU ld we use -z text 12489 # though, which does catch some bad symbols but isn't as heavy-handed 12490 # as -z defs. 12491 no_undefined_flag='${wl}-z,text' 12492 allow_undefined_flag='${wl}-z,nodefs' 12493 archive_cmds_need_lc=no 12494 hardcode_shlibpath_var=no 12495 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12496 hardcode_libdir_separator=':' 12497 link_all_deplibs=yes 12498 export_dynamic_flag_spec='${wl}-Bexport' 12499 runpath_var='LD_RUN_PATH' 12500 12501 if test "$GCC" = yes; then 12502 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12503 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12504 else 12505 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12506 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12507 fi 12508 ;; 12509 12510 uts4*) 12511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12512 hardcode_libdir_flag_spec='-L$libdir' 12513 hardcode_shlibpath_var=no 12514 ;; 12515 12516 *) 12517 ld_shlibs=no 12518 ;; 12519 esac 12520 12521 if test x$host_vendor = xsni; then 12522 case $host in 12523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12524 export_dynamic_flag_spec='${wl}-Blargedynsym' 12525 ;; 12526 esac 12527 fi 12528 fi 12529 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12531$as_echo "$ld_shlibs" >&6; } 12532test "$ld_shlibs" = no && can_build_shared=no 12533 12534with_gnu_ld=$with_gnu_ld 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550# 12551# Do we need to explicitly link libc? 12552# 12553case "x$archive_cmds_need_lc" in 12554x|xyes) 12555 # Assume -lc should be added 12556 archive_cmds_need_lc=yes 12557 12558 if test "$enable_shared" = yes && test "$GCC" = yes; then 12559 case $archive_cmds in 12560 *'~'*) 12561 # FIXME: we may have to deal with multi-command sequences. 12562 ;; 12563 '$CC '*) 12564 # Test whether the compiler implicitly links with -lc since on some 12565 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12566 # to ld, don't add -lc before -lgcc. 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12568$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12569if ${lt_cv_archive_cmds_need_lc+:} false; then : 12570 $as_echo_n "(cached) " >&6 12571else 12572 $RM conftest* 12573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12574 12575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12576 (eval $ac_compile) 2>&5 12577 ac_status=$? 12578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12579 test $ac_status = 0; } 2>conftest.err; then 12580 soname=conftest 12581 lib=conftest 12582 libobjs=conftest.$ac_objext 12583 deplibs= 12584 wl=$lt_prog_compiler_wl 12585 pic_flag=$lt_prog_compiler_pic 12586 compiler_flags=-v 12587 linker_flags=-v 12588 verstring= 12589 output_objdir=. 12590 libname=conftest 12591 lt_save_allow_undefined_flag=$allow_undefined_flag 12592 allow_undefined_flag= 12593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12594 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12595 ac_status=$? 12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12597 test $ac_status = 0; } 12598 then 12599 lt_cv_archive_cmds_need_lc=no 12600 else 12601 lt_cv_archive_cmds_need_lc=yes 12602 fi 12603 allow_undefined_flag=$lt_save_allow_undefined_flag 12604 else 12605 cat conftest.err 1>&5 12606 fi 12607 $RM conftest* 12608 12609fi 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12611$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12612 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12613 ;; 12614 esac 12615 fi 12616 ;; 12617esac 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12771$as_echo_n "checking dynamic linker characteristics... " >&6; } 12772 12773if test "$GCC" = yes; then 12774 case $host_os in 12775 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12776 *) lt_awk_arg="/^libraries:/" ;; 12777 esac 12778 case $host_os in 12779 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12780 *) lt_sed_strip_eq="s,=/,/,g" ;; 12781 esac 12782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12783 case $lt_search_path_spec in 12784 *\;*) 12785 # if the path contains ";" then we assume it to be the separator 12786 # otherwise default to the standard path separator (i.e. ":") - it is 12787 # assumed that no part of a normal pathname contains ";" but that should 12788 # okay in the real world where ";" in dirpaths is itself problematic. 12789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12790 ;; 12791 *) 12792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12793 ;; 12794 esac 12795 # Ok, now we have the path, separated by spaces, we can step through it 12796 # and add multilib dir if necessary. 12797 lt_tmp_lt_search_path_spec= 12798 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12799 for lt_sys_path in $lt_search_path_spec; do 12800 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12802 else 12803 test -d "$lt_sys_path" && \ 12804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12805 fi 12806 done 12807 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12808BEGIN {RS=" "; FS="/|\n";} { 12809 lt_foo=""; 12810 lt_count=0; 12811 for (lt_i = NF; lt_i > 0; lt_i--) { 12812 if ($lt_i != "" && $lt_i != ".") { 12813 if ($lt_i == "..") { 12814 lt_count++; 12815 } else { 12816 if (lt_count == 0) { 12817 lt_foo="/" $lt_i lt_foo; 12818 } else { 12819 lt_count--; 12820 } 12821 } 12822 } 12823 } 12824 if (lt_foo != "") { lt_freq[lt_foo]++; } 12825 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12826}'` 12827 # AWK program above erroneously prepends '/' to C:/dos/paths 12828 # for these hosts. 12829 case $host_os in 12830 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12831 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12832 esac 12833 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12834else 12835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12836fi 12837library_names_spec= 12838libname_spec='lib$name' 12839soname_spec= 12840shrext_cmds=".so" 12841postinstall_cmds= 12842postuninstall_cmds= 12843finish_cmds= 12844finish_eval= 12845shlibpath_var= 12846shlibpath_overrides_runpath=unknown 12847version_type=none 12848dynamic_linker="$host_os ld.so" 12849sys_lib_dlsearch_path_spec="/lib /usr/lib" 12850need_lib_prefix=unknown 12851hardcode_into_libs=no 12852 12853# when you set need_version to no, make sure it does not cause -set_version 12854# flags to be left without arguments 12855need_version=unknown 12856 12857case $host_os in 12858aix3*) 12859 version_type=linux # correct to gnu/linux during the next big refactor 12860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12861 shlibpath_var=LIBPATH 12862 12863 # AIX 3 has no versioning support, so we append a major version to the name. 12864 soname_spec='${libname}${release}${shared_ext}$major' 12865 ;; 12866 12867aix[4-9]*) 12868 version_type=linux # correct to gnu/linux during the next big refactor 12869 need_lib_prefix=no 12870 need_version=no 12871 hardcode_into_libs=yes 12872 if test "$host_cpu" = ia64; then 12873 # AIX 5 supports IA64 12874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12875 shlibpath_var=LD_LIBRARY_PATH 12876 else 12877 # With GCC up to 2.95.x, collect2 would create an import file 12878 # for dependence libraries. The import file would start with 12879 # the line `#! .'. This would cause the generated library to 12880 # depend on `.', always an invalid library. This was fixed in 12881 # development snapshots of GCC prior to 3.0. 12882 case $host_os in 12883 aix4 | aix4.[01] | aix4.[01].*) 12884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12885 echo ' yes ' 12886 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12887 : 12888 else 12889 can_build_shared=no 12890 fi 12891 ;; 12892 esac 12893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12894 # soname into executable. Probably we can add versioning support to 12895 # collect2, so additional links can be useful in future. 12896 if test "$aix_use_runtimelinking" = yes; then 12897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12898 # instead of lib<name>.a to let people know that these are not 12899 # typical AIX shared libraries. 12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12901 else 12902 # We preserve .a as extension for shared libraries through AIX4.2 12903 # and later when we are not doing run time linking. 12904 library_names_spec='${libname}${release}.a $libname.a' 12905 soname_spec='${libname}${release}${shared_ext}$major' 12906 fi 12907 shlibpath_var=LIBPATH 12908 fi 12909 ;; 12910 12911amigaos*) 12912 case $host_cpu in 12913 powerpc) 12914 # Since July 2007 AmigaOS4 officially supports .so libraries. 12915 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12917 ;; 12918 m68k) 12919 library_names_spec='$libname.ixlibrary $libname.a' 12920 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12921 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12922 ;; 12923 esac 12924 ;; 12925 12926beos*) 12927 library_names_spec='${libname}${shared_ext}' 12928 dynamic_linker="$host_os ld.so" 12929 shlibpath_var=LIBRARY_PATH 12930 ;; 12931 12932bsdi[45]*) 12933 version_type=linux # correct to gnu/linux during the next big refactor 12934 need_version=no 12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12936 soname_spec='${libname}${release}${shared_ext}$major' 12937 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12938 shlibpath_var=LD_LIBRARY_PATH 12939 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12940 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12941 # the default ld.so.conf also contains /usr/contrib/lib and 12942 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12943 # libtool to hard-code these into programs 12944 ;; 12945 12946cygwin* | mingw* | pw32* | cegcc*) 12947 version_type=windows 12948 shrext_cmds=".dll" 12949 need_version=no 12950 need_lib_prefix=no 12951 12952 case $GCC,$cc_basename in 12953 yes,*) 12954 # gcc 12955 library_names_spec='$libname.dll.a' 12956 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12957 postinstall_cmds='base_file=`basename \${file}`~ 12958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12959 dldir=$destdir/`dirname \$dlpath`~ 12960 test -d \$dldir || mkdir -p \$dldir~ 12961 $install_prog $dir/$dlname \$dldir/$dlname~ 12962 chmod a+x \$dldir/$dlname~ 12963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12965 fi' 12966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12967 dlpath=$dir/\$dldll~ 12968 $RM \$dlpath' 12969 shlibpath_overrides_runpath=yes 12970 12971 case $host_os in 12972 cygwin*) 12973 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12974 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12975 12976 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12977 ;; 12978 mingw* | cegcc*) 12979 # MinGW DLLs use traditional 'lib' prefix 12980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12981 ;; 12982 pw32*) 12983 # pw32 DLLs use 'pw' prefix rather than 'lib' 12984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12985 ;; 12986 esac 12987 dynamic_linker='Win32 ld.exe' 12988 ;; 12989 12990 *,cl*) 12991 # Native MSVC 12992 libname_spec='$name' 12993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12994 library_names_spec='${libname}.dll.lib' 12995 12996 case $build_os in 12997 mingw*) 12998 sys_lib_search_path_spec= 12999 lt_save_ifs=$IFS 13000 IFS=';' 13001 for lt_path in $LIB 13002 do 13003 IFS=$lt_save_ifs 13004 # Let DOS variable expansion print the short 8.3 style file name. 13005 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13006 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13007 done 13008 IFS=$lt_save_ifs 13009 # Convert to MSYS style. 13010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13011 ;; 13012 cygwin*) 13013 # Convert to unix form, then to dos form, then back to unix form 13014 # but this time dos style (no spaces!) so that the unix form looks 13015 # like /cygdrive/c/PROGRA~1:/cygdr... 13016 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13017 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13018 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13019 ;; 13020 *) 13021 sys_lib_search_path_spec="$LIB" 13022 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13023 # It is most probably a Windows format PATH. 13024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13025 else 13026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13027 fi 13028 # FIXME: find the short name or the path components, as spaces are 13029 # common. (e.g. "Program Files" -> "PROGRA~1") 13030 ;; 13031 esac 13032 13033 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13034 postinstall_cmds='base_file=`basename \${file}`~ 13035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13036 dldir=$destdir/`dirname \$dlpath`~ 13037 test -d \$dldir || mkdir -p \$dldir~ 13038 $install_prog $dir/$dlname \$dldir/$dlname' 13039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13040 dlpath=$dir/\$dldll~ 13041 $RM \$dlpath' 13042 shlibpath_overrides_runpath=yes 13043 dynamic_linker='Win32 link.exe' 13044 ;; 13045 13046 *) 13047 # Assume MSVC wrapper 13048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13049 dynamic_linker='Win32 ld.exe' 13050 ;; 13051 esac 13052 # FIXME: first we should search . and the directory the executable is in 13053 shlibpath_var=PATH 13054 ;; 13055 13056darwin* | rhapsody*) 13057 dynamic_linker="$host_os dyld" 13058 version_type=darwin 13059 need_lib_prefix=no 13060 need_version=no 13061 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13062 soname_spec='${libname}${release}${major}$shared_ext' 13063 shlibpath_overrides_runpath=yes 13064 shlibpath_var=DYLD_LIBRARY_PATH 13065 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13066 13067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13069 ;; 13070 13071dgux*) 13072 version_type=linux # correct to gnu/linux during the next big refactor 13073 need_lib_prefix=no 13074 need_version=no 13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13076 soname_spec='${libname}${release}${shared_ext}$major' 13077 shlibpath_var=LD_LIBRARY_PATH 13078 ;; 13079 13080freebsd* | dragonfly*) 13081 # DragonFly does not have aout. When/if they implement a new 13082 # versioning mechanism, adjust this. 13083 if test -x /usr/bin/objformat; then 13084 objformat=`/usr/bin/objformat` 13085 else 13086 case $host_os in 13087 freebsd[23].*) objformat=aout ;; 13088 *) objformat=elf ;; 13089 esac 13090 fi 13091 version_type=freebsd-$objformat 13092 case $version_type in 13093 freebsd-elf*) 13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13095 need_version=no 13096 need_lib_prefix=no 13097 ;; 13098 freebsd-*) 13099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13100 need_version=yes 13101 ;; 13102 esac 13103 shlibpath_var=LD_LIBRARY_PATH 13104 case $host_os in 13105 freebsd2.*) 13106 shlibpath_overrides_runpath=yes 13107 ;; 13108 freebsd3.[01]* | freebsdelf3.[01]*) 13109 shlibpath_overrides_runpath=yes 13110 hardcode_into_libs=yes 13111 ;; 13112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13114 shlibpath_overrides_runpath=no 13115 hardcode_into_libs=yes 13116 ;; 13117 *) # from 4.6 on, and DragonFly 13118 shlibpath_overrides_runpath=yes 13119 hardcode_into_libs=yes 13120 ;; 13121 esac 13122 ;; 13123 13124gnu*) 13125 version_type=linux # correct to gnu/linux during the next big refactor 13126 need_lib_prefix=no 13127 need_version=no 13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13129 soname_spec='${libname}${release}${shared_ext}$major' 13130 shlibpath_var=LD_LIBRARY_PATH 13131 shlibpath_overrides_runpath=no 13132 hardcode_into_libs=yes 13133 ;; 13134 13135haiku*) 13136 version_type=linux # correct to gnu/linux during the next big refactor 13137 need_lib_prefix=no 13138 need_version=no 13139 dynamic_linker="$host_os runtime_loader" 13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13141 soname_spec='${libname}${release}${shared_ext}$major' 13142 shlibpath_var=LIBRARY_PATH 13143 shlibpath_overrides_runpath=yes 13144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13145 hardcode_into_libs=yes 13146 ;; 13147 13148hpux9* | hpux10* | hpux11*) 13149 # Give a soname corresponding to the major version so that dld.sl refuses to 13150 # link against other versions. 13151 version_type=sunos 13152 need_lib_prefix=no 13153 need_version=no 13154 case $host_cpu in 13155 ia64*) 13156 shrext_cmds='.so' 13157 hardcode_into_libs=yes 13158 dynamic_linker="$host_os dld.so" 13159 shlibpath_var=LD_LIBRARY_PATH 13160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13162 soname_spec='${libname}${release}${shared_ext}$major' 13163 if test "X$HPUX_IA64_MODE" = X32; then 13164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13165 else 13166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13167 fi 13168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13169 ;; 13170 hppa*64*) 13171 shrext_cmds='.sl' 13172 hardcode_into_libs=yes 13173 dynamic_linker="$host_os dld.sl" 13174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13177 soname_spec='${libname}${release}${shared_ext}$major' 13178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13180 ;; 13181 *) 13182 shrext_cmds='.sl' 13183 dynamic_linker="$host_os dld.sl" 13184 shlibpath_var=SHLIB_PATH 13185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13187 soname_spec='${libname}${release}${shared_ext}$major' 13188 ;; 13189 esac 13190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13191 postinstall_cmds='chmod 555 $lib' 13192 # or fails outright, so override atomically: 13193 install_override_mode=555 13194 ;; 13195 13196interix[3-9]*) 13197 version_type=linux # correct to gnu/linux during the next big refactor 13198 need_lib_prefix=no 13199 need_version=no 13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13201 soname_spec='${libname}${release}${shared_ext}$major' 13202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13203 shlibpath_var=LD_LIBRARY_PATH 13204 shlibpath_overrides_runpath=no 13205 hardcode_into_libs=yes 13206 ;; 13207 13208irix5* | irix6* | nonstopux*) 13209 case $host_os in 13210 nonstopux*) version_type=nonstopux ;; 13211 *) 13212 if test "$lt_cv_prog_gnu_ld" = yes; then 13213 version_type=linux # correct to gnu/linux during the next big refactor 13214 else 13215 version_type=irix 13216 fi ;; 13217 esac 13218 need_lib_prefix=no 13219 need_version=no 13220 soname_spec='${libname}${release}${shared_ext}$major' 13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13222 case $host_os in 13223 irix5* | nonstopux*) 13224 libsuff= shlibsuff= 13225 ;; 13226 *) 13227 case $LD in # libtool.m4 will add one of these switches to LD 13228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13229 libsuff= shlibsuff= libmagic=32-bit;; 13230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13231 libsuff=32 shlibsuff=N32 libmagic=N32;; 13232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13233 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13234 *) libsuff= shlibsuff= libmagic=never-match;; 13235 esac 13236 ;; 13237 esac 13238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13239 shlibpath_overrides_runpath=no 13240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13242 hardcode_into_libs=yes 13243 ;; 13244 13245# No shared lib support for Linux oldld, aout, or coff. 13246linux*oldld* | linux*aout* | linux*coff*) 13247 dynamic_linker=no 13248 ;; 13249 13250# This must be glibc/ELF. 13251linux* | k*bsd*-gnu | kopensolaris*-gnu) 13252 version_type=linux # correct to gnu/linux during the next big refactor 13253 need_lib_prefix=no 13254 need_version=no 13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13256 soname_spec='${libname}${release}${shared_ext}$major' 13257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13258 shlibpath_var=LD_LIBRARY_PATH 13259 shlibpath_overrides_runpath=no 13260 13261 # Some binutils ld are patched to set DT_RUNPATH 13262 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 lt_cv_shlibpath_overrides_runpath=no 13266 save_LDFLAGS=$LDFLAGS 13267 save_libdir=$libdir 13268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13271/* end confdefs.h. */ 13272 13273int 13274main () 13275{ 13276 13277 ; 13278 return 0; 13279} 13280_ACEOF 13281if ac_fn_c_try_link "$LINENO"; then : 13282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13283 lt_cv_shlibpath_overrides_runpath=yes 13284fi 13285fi 13286rm -f core conftest.err conftest.$ac_objext \ 13287 conftest$ac_exeext conftest.$ac_ext 13288 LDFLAGS=$save_LDFLAGS 13289 libdir=$save_libdir 13290 13291fi 13292 13293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13294 13295 # This implies no fast_install, which is unacceptable. 13296 # Some rework will be needed to allow for fast_install 13297 # before this can be enabled. 13298 hardcode_into_libs=yes 13299 13300 # Append ld.so.conf contents to the search path 13301 if test -f /etc/ld.so.conf; then 13302 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' ' '` 13303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13304 fi 13305 13306 # We used to test for /lib/ld.so.1 and disable shared libraries on 13307 # powerpc, because MkLinux only supported shared libraries with the 13308 # GNU dynamic linker. Since this was broken with cross compilers, 13309 # most powerpc-linux boxes support dynamic linking these days and 13310 # people can always --disable-shared, the test was removed, and we 13311 # assume the GNU/Linux dynamic linker is in use. 13312 dynamic_linker='GNU/Linux ld.so' 13313 ;; 13314 13315netbsdelf*-gnu) 13316 version_type=linux 13317 need_lib_prefix=no 13318 need_version=no 13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13320 soname_spec='${libname}${release}${shared_ext}$major' 13321 shlibpath_var=LD_LIBRARY_PATH 13322 shlibpath_overrides_runpath=no 13323 hardcode_into_libs=yes 13324 dynamic_linker='NetBSD ld.elf_so' 13325 ;; 13326 13327netbsd*) 13328 version_type=sunos 13329 need_lib_prefix=no 13330 need_version=no 13331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13334 dynamic_linker='NetBSD (a.out) ld.so' 13335 else 13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13337 soname_spec='${libname}${release}${shared_ext}$major' 13338 dynamic_linker='NetBSD ld.elf_so' 13339 fi 13340 shlibpath_var=LD_LIBRARY_PATH 13341 shlibpath_overrides_runpath=yes 13342 hardcode_into_libs=yes 13343 ;; 13344 13345newsos6) 13346 version_type=linux # correct to gnu/linux during the next big refactor 13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13348 shlibpath_var=LD_LIBRARY_PATH 13349 shlibpath_overrides_runpath=yes 13350 ;; 13351 13352*nto* | *qnx*) 13353 version_type=qnx 13354 need_lib_prefix=no 13355 need_version=no 13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13357 soname_spec='${libname}${release}${shared_ext}$major' 13358 shlibpath_var=LD_LIBRARY_PATH 13359 shlibpath_overrides_runpath=no 13360 hardcode_into_libs=yes 13361 dynamic_linker='ldqnx.so' 13362 ;; 13363 13364openbsd*) 13365 version_type=sunos 13366 sys_lib_dlsearch_path_spec="/usr/lib" 13367 need_lib_prefix=no 13368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13369 case $host_os in 13370 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13371 *) need_version=no ;; 13372 esac 13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13375 shlibpath_var=LD_LIBRARY_PATH 13376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13377 case $host_os in 13378 openbsd2.[89] | openbsd2.[89].*) 13379 shlibpath_overrides_runpath=no 13380 ;; 13381 *) 13382 shlibpath_overrides_runpath=yes 13383 ;; 13384 esac 13385 else 13386 shlibpath_overrides_runpath=yes 13387 fi 13388 ;; 13389 13390os2*) 13391 libname_spec='$name' 13392 shrext_cmds=".dll" 13393 need_lib_prefix=no 13394 library_names_spec='$libname${shared_ext} $libname.a' 13395 dynamic_linker='OS/2 ld.exe' 13396 shlibpath_var=LIBPATH 13397 ;; 13398 13399osf3* | osf4* | osf5*) 13400 version_type=osf 13401 need_lib_prefix=no 13402 need_version=no 13403 soname_spec='${libname}${release}${shared_ext}$major' 13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13405 shlibpath_var=LD_LIBRARY_PATH 13406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13408 ;; 13409 13410rdos*) 13411 dynamic_linker=no 13412 ;; 13413 13414solaris*) 13415 version_type=linux # correct to gnu/linux during the next big refactor 13416 need_lib_prefix=no 13417 need_version=no 13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13419 soname_spec='${libname}${release}${shared_ext}$major' 13420 shlibpath_var=LD_LIBRARY_PATH 13421 shlibpath_overrides_runpath=yes 13422 hardcode_into_libs=yes 13423 # ldd complains unless libraries are executable 13424 postinstall_cmds='chmod +x $lib' 13425 ;; 13426 13427sunos4*) 13428 version_type=sunos 13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13431 shlibpath_var=LD_LIBRARY_PATH 13432 shlibpath_overrides_runpath=yes 13433 if test "$with_gnu_ld" = yes; then 13434 need_lib_prefix=no 13435 fi 13436 need_version=yes 13437 ;; 13438 13439sysv4 | sysv4.3*) 13440 version_type=linux # correct to gnu/linux during the next big refactor 13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13442 soname_spec='${libname}${release}${shared_ext}$major' 13443 shlibpath_var=LD_LIBRARY_PATH 13444 case $host_vendor in 13445 sni) 13446 shlibpath_overrides_runpath=no 13447 need_lib_prefix=no 13448 runpath_var=LD_RUN_PATH 13449 ;; 13450 siemens) 13451 need_lib_prefix=no 13452 ;; 13453 motorola) 13454 need_lib_prefix=no 13455 need_version=no 13456 shlibpath_overrides_runpath=no 13457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13458 ;; 13459 esac 13460 ;; 13461 13462sysv4*MP*) 13463 if test -d /usr/nec ;then 13464 version_type=linux # correct to gnu/linux during the next big refactor 13465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13466 soname_spec='$libname${shared_ext}.$major' 13467 shlibpath_var=LD_LIBRARY_PATH 13468 fi 13469 ;; 13470 13471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13472 version_type=freebsd-elf 13473 need_lib_prefix=no 13474 need_version=no 13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13476 soname_spec='${libname}${release}${shared_ext}$major' 13477 shlibpath_var=LD_LIBRARY_PATH 13478 shlibpath_overrides_runpath=yes 13479 hardcode_into_libs=yes 13480 if test "$with_gnu_ld" = yes; then 13481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13482 else 13483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13484 case $host_os in 13485 sco3.2v5*) 13486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13487 ;; 13488 esac 13489 fi 13490 sys_lib_dlsearch_path_spec='/usr/lib' 13491 ;; 13492 13493tpf*) 13494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13495 version_type=linux # correct to gnu/linux during the next big refactor 13496 need_lib_prefix=no 13497 need_version=no 13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13499 shlibpath_var=LD_LIBRARY_PATH 13500 shlibpath_overrides_runpath=no 13501 hardcode_into_libs=yes 13502 ;; 13503 13504uts4*) 13505 version_type=linux # correct to gnu/linux during the next big refactor 13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13507 soname_spec='${libname}${release}${shared_ext}$major' 13508 shlibpath_var=LD_LIBRARY_PATH 13509 ;; 13510 13511*) 13512 dynamic_linker=no 13513 ;; 13514esac 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13516$as_echo "$dynamic_linker" >&6; } 13517test "$dynamic_linker" = no && can_build_shared=no 13518 13519variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13520if test "$GCC" = yes; then 13521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13522fi 13523 13524if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13526fi 13527if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13529fi 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13623$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13624hardcode_action= 13625if test -n "$hardcode_libdir_flag_spec" || 13626 test -n "$runpath_var" || 13627 test "X$hardcode_automatic" = "Xyes" ; then 13628 13629 # We can hardcode non-existent directories. 13630 if test "$hardcode_direct" != no && 13631 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13632 # have to relink, otherwise we might link with an installed library 13633 # when we should be linking with a yet-to-be-installed one 13634 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13635 test "$hardcode_minus_L" != no; then 13636 # Linking always hardcodes the temporary library directory. 13637 hardcode_action=relink 13638 else 13639 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13640 hardcode_action=immediate 13641 fi 13642else 13643 # We cannot hardcode anything, or else we can only hardcode existing 13644 # directories. 13645 hardcode_action=unsupported 13646fi 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13648$as_echo "$hardcode_action" >&6; } 13649 13650if test "$hardcode_action" = relink || 13651 test "$inherit_rpath" = yes; then 13652 # Fast installation is not supported 13653 enable_fast_install=no 13654elif test "$shlibpath_overrides_runpath" = yes || 13655 test "$enable_shared" = no; then 13656 # Fast installation is not necessary 13657 enable_fast_install=needless 13658fi 13659 13660 13661 13662 13663 13664 13665 if test "x$enable_dlopen" != xyes; then 13666 enable_dlopen=unknown 13667 enable_dlopen_self=unknown 13668 enable_dlopen_self_static=unknown 13669else 13670 lt_cv_dlopen=no 13671 lt_cv_dlopen_libs= 13672 13673 case $host_os in 13674 beos*) 13675 lt_cv_dlopen="load_add_on" 13676 lt_cv_dlopen_libs= 13677 lt_cv_dlopen_self=yes 13678 ;; 13679 13680 mingw* | pw32* | cegcc*) 13681 lt_cv_dlopen="LoadLibrary" 13682 lt_cv_dlopen_libs= 13683 ;; 13684 13685 cygwin*) 13686 lt_cv_dlopen="dlopen" 13687 lt_cv_dlopen_libs= 13688 ;; 13689 13690 darwin*) 13691 # if libdl is installed we need to link against it 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13693$as_echo_n "checking for dlopen in -ldl... " >&6; } 13694if ${ac_cv_lib_dl_dlopen+:} false; then : 13695 $as_echo_n "(cached) " >&6 13696else 13697 ac_check_lib_save_LIBS=$LIBS 13698LIBS="-ldl $LIBS" 13699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701 13702/* Override any GCC internal prototype to avoid an error. 13703 Use char because int might match the return type of a GCC 13704 builtin and then its argument prototype would still apply. */ 13705#ifdef __cplusplus 13706extern "C" 13707#endif 13708char dlopen (); 13709int 13710main () 13711{ 13712return dlopen (); 13713 ; 13714 return 0; 13715} 13716_ACEOF 13717if ac_fn_c_try_link "$LINENO"; then : 13718 ac_cv_lib_dl_dlopen=yes 13719else 13720 ac_cv_lib_dl_dlopen=no 13721fi 13722rm -f core conftest.err conftest.$ac_objext \ 13723 conftest$ac_exeext conftest.$ac_ext 13724LIBS=$ac_check_lib_save_LIBS 13725fi 13726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13727$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13728if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13730else 13731 13732 lt_cv_dlopen="dyld" 13733 lt_cv_dlopen_libs= 13734 lt_cv_dlopen_self=yes 13735 13736fi 13737 13738 ;; 13739 13740 *) 13741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13742if test "x$ac_cv_func_shl_load" = xyes; then : 13743 lt_cv_dlopen="shl_load" 13744else 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13746$as_echo_n "checking for shl_load in -ldld... " >&6; } 13747if ${ac_cv_lib_dld_shl_load+:} false; then : 13748 $as_echo_n "(cached) " >&6 13749else 13750 ac_check_lib_save_LIBS=$LIBS 13751LIBS="-ldld $LIBS" 13752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13753/* end confdefs.h. */ 13754 13755/* Override any GCC internal prototype to avoid an error. 13756 Use char because int might match the return type of a GCC 13757 builtin and then its argument prototype would still apply. */ 13758#ifdef __cplusplus 13759extern "C" 13760#endif 13761char shl_load (); 13762int 13763main () 13764{ 13765return shl_load (); 13766 ; 13767 return 0; 13768} 13769_ACEOF 13770if ac_fn_c_try_link "$LINENO"; then : 13771 ac_cv_lib_dld_shl_load=yes 13772else 13773 ac_cv_lib_dld_shl_load=no 13774fi 13775rm -f core conftest.err conftest.$ac_objext \ 13776 conftest$ac_exeext conftest.$ac_ext 13777LIBS=$ac_check_lib_save_LIBS 13778fi 13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13780$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13781if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13783else 13784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13785if test "x$ac_cv_func_dlopen" = xyes; then : 13786 lt_cv_dlopen="dlopen" 13787else 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13789$as_echo_n "checking for dlopen in -ldl... " >&6; } 13790if ${ac_cv_lib_dl_dlopen+:} false; then : 13791 $as_echo_n "(cached) " >&6 13792else 13793 ac_check_lib_save_LIBS=$LIBS 13794LIBS="-ldl $LIBS" 13795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13796/* end confdefs.h. */ 13797 13798/* Override any GCC internal prototype to avoid an error. 13799 Use char because int might match the return type of a GCC 13800 builtin and then its argument prototype would still apply. */ 13801#ifdef __cplusplus 13802extern "C" 13803#endif 13804char dlopen (); 13805int 13806main () 13807{ 13808return dlopen (); 13809 ; 13810 return 0; 13811} 13812_ACEOF 13813if ac_fn_c_try_link "$LINENO"; then : 13814 ac_cv_lib_dl_dlopen=yes 13815else 13816 ac_cv_lib_dl_dlopen=no 13817fi 13818rm -f core conftest.err conftest.$ac_objext \ 13819 conftest$ac_exeext conftest.$ac_ext 13820LIBS=$ac_check_lib_save_LIBS 13821fi 13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13823$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13824if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13826else 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13828$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13829if ${ac_cv_lib_svld_dlopen+:} false; then : 13830 $as_echo_n "(cached) " >&6 13831else 13832 ac_check_lib_save_LIBS=$LIBS 13833LIBS="-lsvld $LIBS" 13834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13835/* end confdefs.h. */ 13836 13837/* Override any GCC internal prototype to avoid an error. 13838 Use char because int might match the return type of a GCC 13839 builtin and then its argument prototype would still apply. */ 13840#ifdef __cplusplus 13841extern "C" 13842#endif 13843char dlopen (); 13844int 13845main () 13846{ 13847return dlopen (); 13848 ; 13849 return 0; 13850} 13851_ACEOF 13852if ac_fn_c_try_link "$LINENO"; then : 13853 ac_cv_lib_svld_dlopen=yes 13854else 13855 ac_cv_lib_svld_dlopen=no 13856fi 13857rm -f core conftest.err conftest.$ac_objext \ 13858 conftest$ac_exeext conftest.$ac_ext 13859LIBS=$ac_check_lib_save_LIBS 13860fi 13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13862$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13863if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13865else 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13867$as_echo_n "checking for dld_link in -ldld... " >&6; } 13868if ${ac_cv_lib_dld_dld_link+:} false; then : 13869 $as_echo_n "(cached) " >&6 13870else 13871 ac_check_lib_save_LIBS=$LIBS 13872LIBS="-ldld $LIBS" 13873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13874/* end confdefs.h. */ 13875 13876/* Override any GCC internal prototype to avoid an error. 13877 Use char because int might match the return type of a GCC 13878 builtin and then its argument prototype would still apply. */ 13879#ifdef __cplusplus 13880extern "C" 13881#endif 13882char dld_link (); 13883int 13884main () 13885{ 13886return dld_link (); 13887 ; 13888 return 0; 13889} 13890_ACEOF 13891if ac_fn_c_try_link "$LINENO"; then : 13892 ac_cv_lib_dld_dld_link=yes 13893else 13894 ac_cv_lib_dld_dld_link=no 13895fi 13896rm -f core conftest.err conftest.$ac_objext \ 13897 conftest$ac_exeext conftest.$ac_ext 13898LIBS=$ac_check_lib_save_LIBS 13899fi 13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13901$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13902if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13903 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13904fi 13905 13906 13907fi 13908 13909 13910fi 13911 13912 13913fi 13914 13915 13916fi 13917 13918 13919fi 13920 13921 ;; 13922 esac 13923 13924 if test "x$lt_cv_dlopen" != xno; then 13925 enable_dlopen=yes 13926 else 13927 enable_dlopen=no 13928 fi 13929 13930 case $lt_cv_dlopen in 13931 dlopen) 13932 save_CPPFLAGS="$CPPFLAGS" 13933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13934 13935 save_LDFLAGS="$LDFLAGS" 13936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13937 13938 save_LIBS="$LIBS" 13939 LIBS="$lt_cv_dlopen_libs $LIBS" 13940 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13942$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13943if ${lt_cv_dlopen_self+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 if test "$cross_compiling" = yes; then : 13947 lt_cv_dlopen_self=cross 13948else 13949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13950 lt_status=$lt_dlunknown 13951 cat > conftest.$ac_ext <<_LT_EOF 13952#line $LINENO "configure" 13953#include "confdefs.h" 13954 13955#if HAVE_DLFCN_H 13956#include <dlfcn.h> 13957#endif 13958 13959#include <stdio.h> 13960 13961#ifdef RTLD_GLOBAL 13962# define LT_DLGLOBAL RTLD_GLOBAL 13963#else 13964# ifdef DL_GLOBAL 13965# define LT_DLGLOBAL DL_GLOBAL 13966# else 13967# define LT_DLGLOBAL 0 13968# endif 13969#endif 13970 13971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13972 find out it does not work in some platform. */ 13973#ifndef LT_DLLAZY_OR_NOW 13974# ifdef RTLD_LAZY 13975# define LT_DLLAZY_OR_NOW RTLD_LAZY 13976# else 13977# ifdef DL_LAZY 13978# define LT_DLLAZY_OR_NOW DL_LAZY 13979# else 13980# ifdef RTLD_NOW 13981# define LT_DLLAZY_OR_NOW RTLD_NOW 13982# else 13983# ifdef DL_NOW 13984# define LT_DLLAZY_OR_NOW DL_NOW 13985# else 13986# define LT_DLLAZY_OR_NOW 0 13987# endif 13988# endif 13989# endif 13990# endif 13991#endif 13992 13993/* When -fvisbility=hidden is used, assume the code has been annotated 13994 correspondingly for the symbols needed. */ 13995#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13996int fnord () __attribute__((visibility("default"))); 13997#endif 13998 13999int fnord () { return 42; } 14000int main () 14001{ 14002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14003 int status = $lt_dlunknown; 14004 14005 if (self) 14006 { 14007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14008 else 14009 { 14010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14011 else puts (dlerror ()); 14012 } 14013 /* dlclose (self); */ 14014 } 14015 else 14016 puts (dlerror ()); 14017 14018 return status; 14019} 14020_LT_EOF 14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14022 (eval $ac_link) 2>&5 14023 ac_status=$? 14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14026 (./conftest; exit; ) >&5 2>/dev/null 14027 lt_status=$? 14028 case x$lt_status in 14029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14032 esac 14033 else : 14034 # compilation failed 14035 lt_cv_dlopen_self=no 14036 fi 14037fi 14038rm -fr conftest* 14039 14040 14041fi 14042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14043$as_echo "$lt_cv_dlopen_self" >&6; } 14044 14045 if test "x$lt_cv_dlopen_self" = xyes; then 14046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14048$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14049if ${lt_cv_dlopen_self_static+:} false; then : 14050 $as_echo_n "(cached) " >&6 14051else 14052 if test "$cross_compiling" = yes; then : 14053 lt_cv_dlopen_self_static=cross 14054else 14055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14056 lt_status=$lt_dlunknown 14057 cat > conftest.$ac_ext <<_LT_EOF 14058#line $LINENO "configure" 14059#include "confdefs.h" 14060 14061#if HAVE_DLFCN_H 14062#include <dlfcn.h> 14063#endif 14064 14065#include <stdio.h> 14066 14067#ifdef RTLD_GLOBAL 14068# define LT_DLGLOBAL RTLD_GLOBAL 14069#else 14070# ifdef DL_GLOBAL 14071# define LT_DLGLOBAL DL_GLOBAL 14072# else 14073# define LT_DLGLOBAL 0 14074# endif 14075#endif 14076 14077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14078 find out it does not work in some platform. */ 14079#ifndef LT_DLLAZY_OR_NOW 14080# ifdef RTLD_LAZY 14081# define LT_DLLAZY_OR_NOW RTLD_LAZY 14082# else 14083# ifdef DL_LAZY 14084# define LT_DLLAZY_OR_NOW DL_LAZY 14085# else 14086# ifdef RTLD_NOW 14087# define LT_DLLAZY_OR_NOW RTLD_NOW 14088# else 14089# ifdef DL_NOW 14090# define LT_DLLAZY_OR_NOW DL_NOW 14091# else 14092# define LT_DLLAZY_OR_NOW 0 14093# endif 14094# endif 14095# endif 14096# endif 14097#endif 14098 14099/* When -fvisbility=hidden is used, assume the code has been annotated 14100 correspondingly for the symbols needed. */ 14101#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14102int fnord () __attribute__((visibility("default"))); 14103#endif 14104 14105int fnord () { return 42; } 14106int main () 14107{ 14108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14109 int status = $lt_dlunknown; 14110 14111 if (self) 14112 { 14113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14114 else 14115 { 14116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14117 else puts (dlerror ()); 14118 } 14119 /* dlclose (self); */ 14120 } 14121 else 14122 puts (dlerror ()); 14123 14124 return status; 14125} 14126_LT_EOF 14127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14128 (eval $ac_link) 2>&5 14129 ac_status=$? 14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14132 (./conftest; exit; ) >&5 2>/dev/null 14133 lt_status=$? 14134 case x$lt_status in 14135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14138 esac 14139 else : 14140 # compilation failed 14141 lt_cv_dlopen_self_static=no 14142 fi 14143fi 14144rm -fr conftest* 14145 14146 14147fi 14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14149$as_echo "$lt_cv_dlopen_self_static" >&6; } 14150 fi 14151 14152 CPPFLAGS="$save_CPPFLAGS" 14153 LDFLAGS="$save_LDFLAGS" 14154 LIBS="$save_LIBS" 14155 ;; 14156 esac 14157 14158 case $lt_cv_dlopen_self in 14159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14160 *) enable_dlopen_self=unknown ;; 14161 esac 14162 14163 case $lt_cv_dlopen_self_static in 14164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14165 *) enable_dlopen_self_static=unknown ;; 14166 esac 14167fi 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185striplib= 14186old_striplib= 14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14188$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14189if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14191 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14193$as_echo "yes" >&6; } 14194else 14195# FIXME - insert some real tests, host_os isn't really good enough 14196 case $host_os in 14197 darwin*) 14198 if test -n "$STRIP" ; then 14199 striplib="$STRIP -x" 14200 old_striplib="$STRIP -S" 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14202$as_echo "yes" >&6; } 14203 else 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14205$as_echo "no" >&6; } 14206 fi 14207 ;; 14208 *) 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14210$as_echo "no" >&6; } 14211 ;; 14212 esac 14213fi 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 # Report which library types will actually be built 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14228$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14230$as_echo "$can_build_shared" >&6; } 14231 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14233$as_echo_n "checking whether to build shared libraries... " >&6; } 14234 test "$can_build_shared" = "no" && enable_shared=no 14235 14236 # On AIX, shared libraries and static libraries use the same namespace, and 14237 # are all built from PIC. 14238 case $host_os in 14239 aix3*) 14240 test "$enable_shared" = yes && enable_static=no 14241 if test -n "$RANLIB"; then 14242 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14243 postinstall_cmds='$RANLIB $lib' 14244 fi 14245 ;; 14246 14247 aix[4-9]*) 14248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14249 test "$enable_shared" = yes && enable_static=no 14250 fi 14251 ;; 14252 esac 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14254$as_echo "$enable_shared" >&6; } 14255 14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14257$as_echo_n "checking whether to build static libraries... " >&6; } 14258 # Make sure either enable_shared or enable_static is yes. 14259 test "$enable_shared" = yes || enable_static=yes 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14261$as_echo "$enable_static" >&6; } 14262 14263 14264 14265 14266fi 14267ac_ext=c 14268ac_cpp='$CPP $CPPFLAGS' 14269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14271ac_compiler_gnu=$ac_cv_c_compiler_gnu 14272 14273CC="$lt_save_CC" 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 ac_config_commands="$ac_config_commands libtool" 14290 14291 14292 14293 14294# Only expand once: 14295 14296 14297 14298 14299tmp_CPPFLAGS=$CPPFLAGS 14300tmp_LDFLAGS=$LDFLAGS 14301tmp_LIBS=$LIBS 14302 14303 14304 14305# Check whether --with-ssl was given. 14306if test "${with_ssl+set}" = set; then : 14307 withval=$with_ssl; 14308 14309else 14310 14311 withval="yes" 14312 14313fi 14314 14315 14316 withval=$withval 14317 if test x_$withval != x_no; then 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 14319$as_echo_n "checking for SSL... " >&6; } 14320 if test x_$withval = x_ -o x_$withval = x_yes; then 14321 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 14322 fi 14323 for dir in $withval; do 14324 ssldir="$dir" 14325 if test -f "$dir/include/openssl/ssl.h"; then 14326 found_ssl="yes" 14327 14328cat >>confdefs.h <<_ACEOF 14329#define HAVE_SSL /**/ 14330_ACEOF 14331 14332 if test "$ssldir" != "/usr"; then 14333 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 14334 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 14335 fi 14336 break; 14337 fi 14338 done 14339 if test x_$found_ssl != x_yes; then 14340 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 14341 else 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 14343$as_echo "found in $ssldir" >&6; } 14344 HAVE_SSL=yes 14345 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 14346 LDFLAGS="$LDFLAGS -L$ssldir/lib" 14347 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 14348 14349 if test "x$enable_rpath" = xyes; then 14350 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 14351 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 14352 fi 14353 fi 14354 14355 fi 14356 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 14358$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 14359 LIBS="$LIBS -lcrypto" 14360 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14362/* end confdefs.h. */ 14363 14364int 14365main () 14366{ 14367 14368 int HMAC_CTX_init(void); 14369 (void)HMAC_CTX_init(); 14370 14371 ; 14372 return 0; 14373} 14374_ACEOF 14375if ac_fn_c_try_link "$LINENO"; then : 14376 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14378$as_echo "yes" >&6; } 14379 14380$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14381 14382 14383else 14384 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14386$as_echo "no" >&6; } 14387 # check if -lwsock32 or -lgdi32 are needed. 14388 BAKLIBS="$LIBS" 14389 BAKSSLLIBS="$LIBSSL_LIBS" 14390 LIBS="$LIBS -lgdi32" 14391 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 14393$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396 14397int 14398main () 14399{ 14400 14401 int HMAC_CTX_init(void); 14402 (void)HMAC_CTX_init(); 14403 14404 ; 14405 return 0; 14406} 14407_ACEOF 14408if ac_fn_c_try_link "$LINENO"; then : 14409 14410 14411$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14412 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14414$as_echo "yes" >&6; } 14415 14416else 14417 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14419$as_echo "no" >&6; } 14420 LIBS="$BAKLIBS" 14421 LIBSSL_LIBS="$BAKSSLLIBS" 14422 LIBS="$LIBS -ldl" 14423 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 14425$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14427/* end confdefs.h. */ 14428 14429int 14430main () 14431{ 14432 14433 int HMAC_CTX_init(void); 14434 (void)HMAC_CTX_init(); 14435 14436 ; 14437 return 0; 14438} 14439_ACEOF 14440if ac_fn_c_try_link "$LINENO"; then : 14441 14442 14443$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14444 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14446$as_echo "yes" >&6; } 14447 14448else 14449 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14451$as_echo "no" >&6; } 14452 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 14453 14454fi 14455rm -f core conftest.err conftest.$ac_objext \ 14456 conftest$ac_exeext conftest.$ac_ext 14457 14458fi 14459rm -f core conftest.err conftest.$ac_objext \ 14460 conftest$ac_exeext conftest.$ac_ext 14461 14462fi 14463rm -f core conftest.err conftest.$ac_objext \ 14464 conftest$ac_exeext conftest.$ac_ext 14465 fi 14466 14467 14468 # openssl engine functionality needs dlopen(). 14469 BAKLIBS="$LIBS" 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14471$as_echo_n "checking for library containing dlopen... " >&6; } 14472if ${ac_cv_search_dlopen+:} false; then : 14473 $as_echo_n "(cached) " >&6 14474else 14475 ac_func_search_save_LIBS=$LIBS 14476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14477/* end confdefs.h. */ 14478 14479/* Override any GCC internal prototype to avoid an error. 14480 Use char because int might match the return type of a GCC 14481 builtin and then its argument prototype would still apply. */ 14482#ifdef __cplusplus 14483extern "C" 14484#endif 14485char dlopen (); 14486int 14487main () 14488{ 14489return dlopen (); 14490 ; 14491 return 0; 14492} 14493_ACEOF 14494for ac_lib in '' dl; do 14495 if test -z "$ac_lib"; then 14496 ac_res="none required" 14497 else 14498 ac_res=-l$ac_lib 14499 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14500 fi 14501 if ac_fn_c_try_link "$LINENO"; then : 14502 ac_cv_search_dlopen=$ac_res 14503fi 14504rm -f core conftest.err conftest.$ac_objext \ 14505 conftest$ac_exeext 14506 if ${ac_cv_search_dlopen+:} false; then : 14507 break 14508fi 14509done 14510if ${ac_cv_search_dlopen+:} false; then : 14511 14512else 14513 ac_cv_search_dlopen=no 14514fi 14515rm conftest.$ac_ext 14516LIBS=$ac_func_search_save_LIBS 14517fi 14518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14519$as_echo "$ac_cv_search_dlopen" >&6; } 14520ac_res=$ac_cv_search_dlopen 14521if test "$ac_res" != no; then : 14522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14523 14524fi 14525 14526 if test "$LIBS" != "$BAKLIBS"; then 14527 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 14528 fi 14529 fi 14530for ac_header in openssl/ssl.h 14531do : 14532 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 14533" 14534if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 14535 cat >>confdefs.h <<_ACEOF 14536#define HAVE_OPENSSL_SSL_H 1 14537_ACEOF 14538 14539fi 14540 14541done 14542 14543for ac_header in openssl/err.h 14544do : 14545 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 14546" 14547if test "x$ac_cv_header_openssl_err_h" = xyes; then : 14548 cat >>confdefs.h <<_ACEOF 14549#define HAVE_OPENSSL_ERR_H 1 14550_ACEOF 14551 14552fi 14553 14554done 14555 14556for ac_header in openssl/rand.h 14557do : 14558 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 14559" 14560if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 14561 cat >>confdefs.h <<_ACEOF 14562#define HAVE_OPENSSL_RAND_H 1 14563_ACEOF 14564 14565fi 14566 14567done 14568 14569 14570 14571 14572for ac_func in EVP_sha256 14573do : 14574 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 14575if test "x$ac_cv_func_EVP_sha256" = xyes; then : 14576 cat >>confdefs.h <<_ACEOF 14577#define HAVE_EVP_SHA256 1 14578_ACEOF 14579 14580fi 14581done 14582 14583 14584# for macosx, see if glibtool exists and use that 14585# BSD's need to know the version... 14586#AC_CHECK_PROG(glibtool, glibtool, [glibtool], ) 14587#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool]) 14588 14589# Check whether --enable-sha2 was given. 14590if test "${enable_sha2+set}" = set; then : 14591 enableval=$enable_sha2; 14592fi 14593 14594case "$enable_sha2" in 14595 no) 14596 ;; 14597 yes|*) 14598 if test "x$HAVE_SSL" != "xyes"; then 14599 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5 14600 fi 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5 14602$as_echo_n "checking for SHA256 and SHA512... " >&6; } 14603 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init" 14604if test "x$ac_cv_func_SHA256_Init" = xyes; then : 14605 14606else 14607 14608 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5 14609 14610fi 14611 14612 14613cat >>confdefs.h <<_ACEOF 14614#define USE_SHA2 1 14615_ACEOF 14616 14617 ;; 14618esac 14619 14620# Check whether --enable-gost was given. 14621if test "${enable_gost+set}" = set; then : 14622 enableval=$enable_gost; 14623fi 14624 14625case "$enable_gost" in 14626 no) 14627 ;; 14628 *) if test "x$HAVE_SSL" != "xyes"; then 14629 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5 14630 fi 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5 14632$as_echo_n "checking for GOST... " >&6; } 14633 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 14634if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 14635 14636else 14637 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5 14638fi 14639 14640 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 14641if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 14642 14643else 14644 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5 14645fi 14646 14647 14648cat >>confdefs.h <<_ACEOF 14649#define USE_GOST 1 14650_ACEOF 14651 14652 ;; 14653esac 14654 14655# Check whether --enable-ecdsa was given. 14656if test "${enable_ecdsa+set}" = set; then : 14657 enableval=$enable_ecdsa; 14658fi 14659 14660case "$enable_ecdsa" in 14661 no) 14662 ;; 14663 *) if test "x$HAVE_SSL" != "xyes"; then 14664 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5 14665 fi 14666 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 14667if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 14668 14669else 14670 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14671fi 14672 14673 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 14674if test "x$ac_cv_func_SHA384_Init" = xyes; then : 14675 14676else 14677 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14678fi 14679 14680 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 14681#include <openssl/evp.h> 14682 14683" 14684if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 14685 ac_have_decl=1 14686else 14687 ac_have_decl=0 14688fi 14689 14690cat >>confdefs.h <<_ACEOF 14691#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 14692_ACEOF 14693if test $ac_have_decl = 1; then : 14694 14695else 14696 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14697fi 14698ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 14699#include <openssl/evp.h> 14700 14701" 14702if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 14703 ac_have_decl=1 14704else 14705 ac_have_decl=0 14706fi 14707 14708cat >>confdefs.h <<_ACEOF 14709#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 14710_ACEOF 14711if test $ac_have_decl = 1; then : 14712 14713else 14714 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14715fi 14716 14717 # we now know we have ECDSA and the required curves. 14718 14719cat >>confdefs.h <<_ACEOF 14720#define USE_ECDSA 1 14721_ACEOF 14722 14723 ;; 14724esac 14725 14726 14727 14728 14729if test "x$HAVE_SSL" = "xyes"; then 14730LIBSSL_SSL_LIBS="$LIBSSL_LIBS -lssl" 14731 14732fi 14733CPPFLAGS=$tmp_CPPFLAGS 14734LDFLAGS=$tmp_LDFLAGS 14735LIBS=$tmp_LIBS 14736 14737 14738# add option to disable the evil rpath 14739 14740# Check whether --enable-rpath was given. 14741if test "${enable_rpath+set}" = set; then : 14742 enableval=$enable_rpath; enable_rpath=$enableval 14743else 14744 enable_rpath=yes 14745fi 14746 14747if test "x$enable_rpath" = xno; then 14748 ac_config_commands="$ac_config_commands disable-rpath" 14749 14750fi 14751 14752 14753#AC_RUN_IFELSE([AC_LANG_SOURCE( 14754#[ 14755#int main() 14756#{ 14757#short one = 1; 14758#char *cp = (char*)&one; 14759#if ( *cp == 0 ) 14760#return(0); 14761#else 14762#return(1); 14763#} 14764#])], [],[ 14765#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian]) 14766#],[]) 14767 14768# should define WORDS_BIGENDIAN if the system is big-endian 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14770$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14771if ${ac_cv_c_bigendian+:} false; then : 14772 $as_echo_n "(cached) " >&6 14773else 14774 ac_cv_c_bigendian=unknown 14775 # See if we're dealing with a universal compiler. 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778#ifndef __APPLE_CC__ 14779 not a universal capable compiler 14780 #endif 14781 typedef int dummy; 14782 14783_ACEOF 14784if ac_fn_c_try_compile "$LINENO"; then : 14785 14786 # Check for potential -arch flags. It is not universal unless 14787 # there are at least two -arch flags with different values. 14788 ac_arch= 14789 ac_prev= 14790 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14791 if test -n "$ac_prev"; then 14792 case $ac_word in 14793 i?86 | x86_64 | ppc | ppc64) 14794 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14795 ac_arch=$ac_word 14796 else 14797 ac_cv_c_bigendian=universal 14798 break 14799 fi 14800 ;; 14801 esac 14802 ac_prev= 14803 elif test "x$ac_word" = "x-arch"; then 14804 ac_prev=arch 14805 fi 14806 done 14807fi 14808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14809 if test $ac_cv_c_bigendian = unknown; then 14810 # See if sys/param.h defines the BYTE_ORDER macro. 14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812/* end confdefs.h. */ 14813#include <sys/types.h> 14814 #include <sys/param.h> 14815 14816int 14817main () 14818{ 14819#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14820 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14821 && LITTLE_ENDIAN) 14822 bogus endian macros 14823 #endif 14824 14825 ; 14826 return 0; 14827} 14828_ACEOF 14829if ac_fn_c_try_compile "$LINENO"; then : 14830 # It does; now see whether it defined to BIG_ENDIAN or not. 14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14832/* end confdefs.h. */ 14833#include <sys/types.h> 14834 #include <sys/param.h> 14835 14836int 14837main () 14838{ 14839#if BYTE_ORDER != BIG_ENDIAN 14840 not big endian 14841 #endif 14842 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_compile "$LINENO"; then : 14848 ac_cv_c_bigendian=yes 14849else 14850 ac_cv_c_bigendian=no 14851fi 14852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14853fi 14854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14855 fi 14856 if test $ac_cv_c_bigendian = unknown; then 14857 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14859/* end confdefs.h. */ 14860#include <limits.h> 14861 14862int 14863main () 14864{ 14865#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14866 bogus endian macros 14867 #endif 14868 14869 ; 14870 return 0; 14871} 14872_ACEOF 14873if ac_fn_c_try_compile "$LINENO"; then : 14874 # It does; now see whether it defined to _BIG_ENDIAN or not. 14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14876/* end confdefs.h. */ 14877#include <limits.h> 14878 14879int 14880main () 14881{ 14882#ifndef _BIG_ENDIAN 14883 not big endian 14884 #endif 14885 14886 ; 14887 return 0; 14888} 14889_ACEOF 14890if ac_fn_c_try_compile "$LINENO"; then : 14891 ac_cv_c_bigendian=yes 14892else 14893 ac_cv_c_bigendian=no 14894fi 14895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14896fi 14897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14898 fi 14899 if test $ac_cv_c_bigendian = unknown; then 14900 # Compile a test program. 14901 if test "$cross_compiling" = yes; then : 14902 # Try to guess by grepping values from an object file. 14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14904/* end confdefs.h. */ 14905short int ascii_mm[] = 14906 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14907 short int ascii_ii[] = 14908 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14909 int use_ascii (int i) { 14910 return ascii_mm[i] + ascii_ii[i]; 14911 } 14912 short int ebcdic_ii[] = 14913 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14914 short int ebcdic_mm[] = 14915 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14916 int use_ebcdic (int i) { 14917 return ebcdic_mm[i] + ebcdic_ii[i]; 14918 } 14919 extern int foo; 14920 14921int 14922main () 14923{ 14924return use_ascii (foo) == use_ebcdic (foo); 14925 ; 14926 return 0; 14927} 14928_ACEOF 14929if ac_fn_c_try_compile "$LINENO"; then : 14930 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14931 ac_cv_c_bigendian=yes 14932 fi 14933 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14934 if test "$ac_cv_c_bigendian" = unknown; then 14935 ac_cv_c_bigendian=no 14936 else 14937 # finding both strings is unlikely to happen, but who knows? 14938 ac_cv_c_bigendian=unknown 14939 fi 14940 fi 14941fi 14942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14943else 14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946$ac_includes_default 14947int 14948main () 14949{ 14950 14951 /* Are we little or big endian? From Harbison&Steele. */ 14952 union 14953 { 14954 long int l; 14955 char c[sizeof (long int)]; 14956 } u; 14957 u.l = 1; 14958 return u.c[sizeof (long int) - 1] == 1; 14959 14960 ; 14961 return 0; 14962} 14963_ACEOF 14964if ac_fn_c_try_run "$LINENO"; then : 14965 ac_cv_c_bigendian=no 14966else 14967 ac_cv_c_bigendian=yes 14968fi 14969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14970 conftest.$ac_objext conftest.beam conftest.$ac_ext 14971fi 14972 14973 fi 14974fi 14975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14976$as_echo "$ac_cv_c_bigendian" >&6; } 14977 case $ac_cv_c_bigendian in #( 14978 yes) 14979 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14980;; #( 14981 no) 14982 ;; #( 14983 universal) 14984 14985$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14986 14987 ;; #( 14988 *) 14989 as_fn_error $? "unknown endianness 14990 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14991 esac 14992 14993 14994# Checks for header files. 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14996$as_echo_n "checking for ANSI C header files... " >&6; } 14997if ${ac_cv_header_stdc+:} false; then : 14998 $as_echo_n "(cached) " >&6 14999else 15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15001/* end confdefs.h. */ 15002#include <stdlib.h> 15003#include <stdarg.h> 15004#include <string.h> 15005#include <float.h> 15006 15007int 15008main () 15009{ 15010 15011 ; 15012 return 0; 15013} 15014_ACEOF 15015if ac_fn_c_try_compile "$LINENO"; then : 15016 ac_cv_header_stdc=yes 15017else 15018 ac_cv_header_stdc=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15021 15022if test $ac_cv_header_stdc = yes; then 15023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15025/* end confdefs.h. */ 15026#include <string.h> 15027 15028_ACEOF 15029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15030 $EGREP "memchr" >/dev/null 2>&1; then : 15031 15032else 15033 ac_cv_header_stdc=no 15034fi 15035rm -f conftest* 15036 15037fi 15038 15039if test $ac_cv_header_stdc = yes; then 15040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15042/* end confdefs.h. */ 15043#include <stdlib.h> 15044 15045_ACEOF 15046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15047 $EGREP "free" >/dev/null 2>&1; then : 15048 15049else 15050 ac_cv_header_stdc=no 15051fi 15052rm -f conftest* 15053 15054fi 15055 15056if test $ac_cv_header_stdc = yes; then 15057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15058 if test "$cross_compiling" = yes; then : 15059 : 15060else 15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063#include <ctype.h> 15064#include <stdlib.h> 15065#if ((' ' & 0x0FF) == 0x020) 15066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15068#else 15069# define ISLOWER(c) \ 15070 (('a' <= (c) && (c) <= 'i') \ 15071 || ('j' <= (c) && (c) <= 'r') \ 15072 || ('s' <= (c) && (c) <= 'z')) 15073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15074#endif 15075 15076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15077int 15078main () 15079{ 15080 int i; 15081 for (i = 0; i < 256; i++) 15082 if (XOR (islower (i), ISLOWER (i)) 15083 || toupper (i) != TOUPPER (i)) 15084 return 2; 15085 return 0; 15086} 15087_ACEOF 15088if ac_fn_c_try_run "$LINENO"; then : 15089 15090else 15091 ac_cv_header_stdc=no 15092fi 15093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15094 conftest.$ac_objext conftest.beam conftest.$ac_ext 15095fi 15096 15097fi 15098fi 15099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15100$as_echo "$ac_cv_header_stdc" >&6; } 15101if test $ac_cv_header_stdc = yes; then 15102 15103$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15104 15105fi 15106 15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 15108$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 15109if ${ac_cv_header_stdbool_h+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111else 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114 15115#include <stdbool.h> 15116#ifndef bool 15117 "error: bool is not defined" 15118#endif 15119#ifndef false 15120 "error: false is not defined" 15121#endif 15122#if false 15123 "error: false is not 0" 15124#endif 15125#ifndef true 15126 "error: true is not defined" 15127#endif 15128#if true != 1 15129 "error: true is not 1" 15130#endif 15131#ifndef __bool_true_false_are_defined 15132 "error: __bool_true_false_are_defined is not defined" 15133#endif 15134 15135 struct s { _Bool s: 1; _Bool t; } s; 15136 15137 char a[true == 1 ? 1 : -1]; 15138 char b[false == 0 ? 1 : -1]; 15139 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 15140 char d[(bool) 0.5 == true ? 1 : -1]; 15141 /* See body of main program for 'e'. */ 15142 char f[(_Bool) 0.0 == false ? 1 : -1]; 15143 char g[true]; 15144 char h[sizeof (_Bool)]; 15145 char i[sizeof s.t]; 15146 enum { j = false, k = true, l = false * true, m = true * 256 }; 15147 /* The following fails for 15148 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 15149 _Bool n[m]; 15150 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 15151 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 15152 /* Catch a bug in an HP-UX C compiler. See 15153 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 15154 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 15155 */ 15156 _Bool q = true; 15157 _Bool *pq = &q; 15158 15159int 15160main () 15161{ 15162 15163 bool e = &s; 15164 *pq |= q; 15165 *pq |= ! q; 15166 /* Refer to every declared value, to avoid compiler optimizations. */ 15167 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 15168 + !m + !n + !o + !p + !q + !pq); 15169 15170 ; 15171 return 0; 15172} 15173_ACEOF 15174if ac_fn_c_try_compile "$LINENO"; then : 15175 ac_cv_header_stdbool_h=yes 15176else 15177 ac_cv_header_stdbool_h=no 15178fi 15179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15180fi 15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 15182$as_echo "$ac_cv_header_stdbool_h" >&6; } 15183ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 15184if test "x$ac_cv_type__Bool" = xyes; then : 15185 15186cat >>confdefs.h <<_ACEOF 15187#define HAVE__BOOL 1 15188_ACEOF 15189 15190 15191fi 15192 15193if test $ac_cv_header_stdbool_h = yes; then 15194 15195$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 15196 15197fi 15198 15199#AC_HEADER_SYS_WAIT 15200#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h]) 15201# do the very minimum - we can always extend this 15202for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h 15203do : 15204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15205ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15206" 15207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15208 cat >>confdefs.h <<_ACEOF 15209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15210_ACEOF 15211 15212fi 15213 15214done 15215 15216for ac_header in sys/param.h sys/mount.h 15217do : 15218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15219ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15220 15221 #if HAVE_SYS_PARAM_H 15222 # include <sys/param.h> 15223 #endif 15224 15225 15226" 15227if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15228 cat >>confdefs.h <<_ACEOF 15229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15230_ACEOF 15231 15232fi 15233 15234done 15235 15236ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 15237 15238 #if HAVE_SYS_PARAM_H 15239 # include <sys/param.h> 15240 #endif 15241 15242 15243" 15244if test "x$ac_cv_header_sys_socket_h" = xyes; then : 15245 15246include_sys_socket_h='#include <sys/socket.h>' 15247 15248$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 15249 15250 15251else 15252 15253include_sys_socket_h='' 15254 15255fi 15256 15257 15258 15259ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default 15260 15261" 15262if test "x$ac_cv_header_inttypes_h" = xyes; then : 15263 15264include_inttypes_h='#include <inttypes.h>' 15265 15266$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 15267 15268ldns_build_config_have_inttypes_h=1 15269 15270 15271else 15272 15273include_inttypes_h='' 15274ldns_build_config_have_inttypes_h=0 15275 15276 15277fi 15278 15279 15280 15281ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default 15282 15283" 15284if test "x$ac_cv_header_sys_types_h" = xyes; then : 15285 15286include_systypes_h='#include <sys/types.h>' 15287 15288$as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 15289 15290 15291else 15292 15293include_systypes_h='' 15294 15295fi 15296 15297 15298 15299ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 15300 15301" 15302if test "x$ac_cv_header_unistd_h" = xyes; then : 15303 15304include_unistd_h='#include <unistd.h>' 15305 15306$as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h 15307 15308 15309else 15310 15311include_unistd_h='' 15312 15313fi 15314 15315 15316 15317 15318# The cast to long int works around a bug in the HP C Compiler 15319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15321# This bug is HP SR number 8606223364. 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15323$as_echo_n "checking size of time_t... " >&6; } 15324if ${ac_cv_sizeof_time_t+:} false; then : 15325 $as_echo_n "(cached) " >&6 15326else 15327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15328$ac_includes_default 15329#ifdef TIME_WITH_SYS_TIME 15330# include <sys/time.h> 15331# include <time.h> 15332#else 15333# ifdef HAVE_SYS_TIME_H 15334# include <sys/time.h> 15335# else 15336# include <time.h> 15337# endif 15338#endif 15339 15340"; then : 15341 15342else 15343 if test "$ac_cv_type_time_t" = yes; then 15344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15346as_fn_error 77 "cannot compute sizeof (time_t) 15347See \`config.log' for more details" "$LINENO" 5; } 15348 else 15349 ac_cv_sizeof_time_t=0 15350 fi 15351fi 15352 15353fi 15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15355$as_echo "$ac_cv_sizeof_time_t" >&6; } 15356 15357 15358 15359cat >>confdefs.h <<_ACEOF 15360#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15361_ACEOF 15362 15363 15364 15365if test x_$with_examples != x_no; then 15366for ac_header in pcap.h 15367do : 15368 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" 15369if test "x$ac_cv_header_pcap_h" = xyes; then : 15370 cat >>confdefs.h <<_ACEOF 15371#define HAVE_PCAP_H 1 15372_ACEOF 15373 15374else 15375 $ac_includes_default 15376fi 15377 15378done 15379 15380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5 15381$as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; } 15382if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then : 15383 $as_echo_n "(cached) " >&6 15384else 15385 ac_check_lib_save_LIBS=$LIBS 15386LIBS="-lpcap $LIBS" 15387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389 15390/* Override any GCC internal prototype to avoid an error. 15391 Use char because int might match the return type of a GCC 15392 builtin and then its argument prototype would still apply. */ 15393#ifdef __cplusplus 15394extern "C" 15395#endif 15396char pcap_open_offline (); 15397int 15398main () 15399{ 15400return pcap_open_offline (); 15401 ; 15402 return 0; 15403} 15404_ACEOF 15405if ac_fn_c_try_link "$LINENO"; then : 15406 ac_cv_lib_pcap_pcap_open_offline=yes 15407else 15408 ac_cv_lib_pcap_pcap_open_offline=no 15409fi 15410rm -f core conftest.err conftest.$ac_objext \ 15411 conftest$ac_exeext conftest.$ac_ext 15412LIBS=$ac_check_lib_save_LIBS 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5 15415$as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; } 15416if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then : 15417 15418 15419$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h 15420 LIBPCAP_LIBS=-lpcap 15421 15422 15423else 15424 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5 15426$as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;} 15427 15428 15429fi 15430 15431for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/igmp.h netinet/if_ether.h netinet/ip6.h net/ethernet.h netinet/ip_compat.h 15432do : 15433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15434ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 15435$ac_includes_default 15436#ifdef HAVE_NETINET_IN_SYSTM_H 15437#include <netinet/in_systm.h> 15438#endif 15439#ifdef HAVE_NETINET_IN_H 15440#include <netinet/in.h> 15441#endif 15442#ifdef HAVE_SYS_SOCKET_H 15443#include <sys/socket.h> 15444#endif 15445#ifdef HAVE_NET_IF_H 15446#include <net/if.h> 15447#endif 15448" 15449if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15450 cat >>confdefs.h <<_ACEOF 15451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15452_ACEOF 15453 15454fi 15455 15456done 15457 15458fi 15459 15460 15461ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15462$ac_includes_default 15463#ifdef HAVE_SYS_SOCKET_H 15464# include <sys/socket.h> 15465#endif 15466#ifdef HAVE_WS2TCPIP_H 15467# include <ws2tcpip.h> 15468#endif 15469 15470" 15471if test "x$ac_cv_type_socklen_t" = xyes; then : 15472 15473else 15474 15475$as_echo "#define socklen_t int" >>confdefs.h 15476 15477fi 15478 15479if test "x$ac_cv_type_socklen_t" = xyes; then 15480 ldns_build_config_have_socklen_t=1 15481 15482else 15483 ldns_build_config_have_socklen_t=0 15484 15485fi 15486ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15487if test "x$ac_cv_type_size_t" = xyes; then : 15488 15489else 15490 15491cat >>confdefs.h <<_ACEOF 15492#define size_t unsigned int 15493_ACEOF 15494 15495fi 15496 15497ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15498if test "x$ac_cv_type_ssize_t" = xyes; then : 15499 15500else 15501 15502cat >>confdefs.h <<_ACEOF 15503#define ssize_t int 15504_ACEOF 15505 15506fi 15507 15508 15509 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 15510if test "x$ac_cv_type_intptr_t" = xyes; then : 15511 15512$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 15513 15514else 15515 for ac_type in 'int' 'long int' 'long long int'; do 15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15517/* end confdefs.h. */ 15518$ac_includes_default 15519int 15520main () 15521{ 15522static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15523test_array [0] = 0 15524 15525 ; 15526 return 0; 15527} 15528_ACEOF 15529if ac_fn_c_try_compile "$LINENO"; then : 15530 15531cat >>confdefs.h <<_ACEOF 15532#define intptr_t $ac_type 15533_ACEOF 15534 15535 ac_type= 15536fi 15537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15538 test -z "$ac_type" && break 15539 done 15540fi 15541 15542 15543ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 15544#if HAVE_SYS_TYPES_H 15545# include <sys/types.h> 15546#endif 15547#if HAVE_NETINET_IN_H 15548# include <netinet/in.h> 15549#endif 15550" 15551if test "x$ac_cv_type_in_addr_t" = xyes; then : 15552 15553else 15554 15555$as_echo "#define in_addr_t uint32_t" >>confdefs.h 15556 15557fi 15558 15559ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 15560#if HAVE_SYS_TYPES_H 15561# include <sys/types.h> 15562#endif 15563#if HAVE_NETINET_IN_H 15564# include <netinet/in.h> 15565#endif 15566" 15567if test "x$ac_cv_type_in_port_t" = xyes; then : 15568 15569else 15570 15571$as_echo "#define in_port_t uint16_t" >>confdefs.h 15572 15573fi 15574 15575ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 15576#ifdef HAVE_NETINET_IN_H 15577#include <netinet/in.h> 15578#endif 15579#ifdef HAVE_SYS_SOCKET_H 15580#include <sys/socket.h> 15581#endif 15582#ifdef HAVE_NETDB_H 15583#include <netdb.h> 15584#endif 15585#ifdef HAVE_ARPA_INET_H 15586#include <arpa/inet.h> 15587#endif 15588 15589" 15590if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 15591 15592else 15593 15594 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 15595#ifdef HAVE_NETINET_IN_H 15596#include <netinet/in.h> 15597#endif 15598#ifdef HAVE_SYS_SOCKET_H 15599#include <sys/socket.h> 15600#endif 15601#ifdef HAVE_NETDB_H 15602#include <netdb.h> 15603#endif 15604#ifdef HAVE_ARPA_INET_H 15605#include <arpa/inet.h> 15606#endif 15607 15608" 15609if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 15610 15611 15612$as_echo "#define ss_family __ss_family" >>confdefs.h 15613 15614 15615fi 15616 15617 15618fi 15619 15620 15621for ac_header in stdlib.h 15622do : 15623 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15624if test "x$ac_cv_header_stdlib_h" = xyes; then : 15625 cat >>confdefs.h <<_ACEOF 15626#define HAVE_STDLIB_H 1 15627_ACEOF 15628 15629fi 15630 15631done 15632 15633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15634$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15635if ${ac_cv_func_malloc_0_nonnull+:} false; then : 15636 $as_echo_n "(cached) " >&6 15637else 15638 if test "$cross_compiling" = yes; then : 15639 ac_cv_func_malloc_0_nonnull=no 15640else 15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15642/* end confdefs.h. */ 15643#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15644# include <stdlib.h> 15645#else 15646char *malloc (); 15647#endif 15648 15649int 15650main () 15651{ 15652return ! malloc (0); 15653 ; 15654 return 0; 15655} 15656_ACEOF 15657if ac_fn_c_try_run "$LINENO"; then : 15658 ac_cv_func_malloc_0_nonnull=yes 15659else 15660 ac_cv_func_malloc_0_nonnull=no 15661fi 15662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15663 conftest.$ac_objext conftest.beam conftest.$ac_ext 15664fi 15665 15666fi 15667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 15668$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 15669if test $ac_cv_func_malloc_0_nonnull = yes; then : 15670 15671$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15672 15673else 15674 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 15675 15676 case " $LIBOBJS " in 15677 *" malloc.$ac_objext "* ) ;; 15678 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15679 ;; 15680esac 15681 15682 15683$as_echo "#define malloc rpl_malloc" >>confdefs.h 15684 15685fi 15686 15687 15688for ac_header in stdlib.h 15689do : 15690 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15691if test "x$ac_cv_header_stdlib_h" = xyes; then : 15692 cat >>confdefs.h <<_ACEOF 15693#define HAVE_STDLIB_H 1 15694_ACEOF 15695 15696fi 15697 15698done 15699 15700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 15701$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 15702if ${ac_cv_func_realloc_0_nonnull+:} false; then : 15703 $as_echo_n "(cached) " >&6 15704else 15705 if test "$cross_compiling" = yes; then : 15706 ac_cv_func_realloc_0_nonnull=no 15707else 15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15709/* end confdefs.h. */ 15710#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15711# include <stdlib.h> 15712#else 15713char *realloc (); 15714#endif 15715 15716int 15717main () 15718{ 15719return ! realloc (0, 0); 15720 ; 15721 return 0; 15722} 15723_ACEOF 15724if ac_fn_c_try_run "$LINENO"; then : 15725 ac_cv_func_realloc_0_nonnull=yes 15726else 15727 ac_cv_func_realloc_0_nonnull=no 15728fi 15729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15730 conftest.$ac_objext conftest.beam conftest.$ac_ext 15731fi 15732 15733fi 15734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 15735$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 15736if test $ac_cv_func_realloc_0_nonnull = yes; then : 15737 15738$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 15739 15740else 15741 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 15742 15743 case " $LIBOBJS " in 15744 *" realloc.$ac_objext "* ) ;; 15745 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 15746 ;; 15747esac 15748 15749 15750$as_echo "#define realloc rpl_realloc" >>confdefs.h 15751 15752fi 15753 15754 15755 15756ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 15757if test "x$ac_cv_func_b64_pton" = xyes; then : 15758 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h 15759 15760else 15761 case " $LIBOBJS " in 15762 *" b64_pton.$ac_objext "* ) ;; 15763 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 15764 ;; 15765esac 15766 15767fi 15768 15769 15770ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 15771if test "x$ac_cv_func_b64_ntop" = xyes; then : 15772 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h 15773 15774else 15775 case " $LIBOBJS " in 15776 *" b64_ntop.$ac_objext "* ) ;; 15777 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 15778 ;; 15779esac 15780 15781fi 15782 15783 15784ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton" 15785if test "x$ac_cv_func_b32_pton" = xyes; then : 15786 $as_echo "#define HAVE_B32_PTON 1" >>confdefs.h 15787 15788else 15789 case " $LIBOBJS " in 15790 *" b32_pton.$ac_objext "* ) ;; 15791 *) LIBOBJS="$LIBOBJS b32_pton.$ac_objext" 15792 ;; 15793esac 15794 15795fi 15796 15797 15798ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop" 15799if test "x$ac_cv_func_b32_ntop" = xyes; then : 15800 $as_echo "#define HAVE_B32_NTOP 1" >>confdefs.h 15801 15802else 15803 case " $LIBOBJS " in 15804 *" b32_ntop.$ac_objext "* ) ;; 15805 *) LIBOBJS="$LIBOBJS b32_ntop.$ac_objext" 15806 ;; 15807esac 15808 15809fi 15810 15811 15812ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 15813if test "x$ac_cv_func_calloc" = xyes; then : 15814 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h 15815 15816else 15817 case " $LIBOBJS " in 15818 *" calloc.$ac_objext "* ) ;; 15819 *) LIBOBJS="$LIBOBJS calloc.$ac_objext" 15820 ;; 15821esac 15822 15823fi 15824 15825 15826ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 15827if test "x$ac_cv_func_timegm" = xyes; then : 15828 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h 15829 15830else 15831 case " $LIBOBJS " in 15832 *" timegm.$ac_objext "* ) ;; 15833 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 15834 ;; 15835esac 15836 15837fi 15838 15839 15840ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 15841if test "x$ac_cv_func_gmtime_r" = xyes; then : 15842 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 15843 15844else 15845 case " $LIBOBJS " in 15846 *" gmtime_r.$ac_objext "* ) ;; 15847 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 15848 ;; 15849esac 15850 15851fi 15852 15853 15854ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 15855if test "x$ac_cv_func_ctime_r" = xyes; then : 15856 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 15857 15858else 15859 case " $LIBOBJS " in 15860 *" ctime_r.$ac_objext "* ) ;; 15861 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 15862 ;; 15863esac 15864 15865fi 15866 15867 15868ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 15869if test "x$ac_cv_func_localtime_r" = xyes; then : 15870 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 15871 15872else 15873 case " $LIBOBJS " in 15874 *" localtime_r.$ac_objext "* ) ;; 15875 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 15876 ;; 15877esac 15878 15879fi 15880 15881 15882ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 15883if test "x$ac_cv_func_isblank" = xyes; then : 15884 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 15885 15886else 15887 case " $LIBOBJS " in 15888 *" isblank.$ac_objext "* ) ;; 15889 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 15890 ;; 15891esac 15892 15893fi 15894 15895 15896ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 15897if test "x$ac_cv_func_isascii" = xyes; then : 15898 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h 15899 15900else 15901 case " $LIBOBJS " in 15902 *" isascii.$ac_objext "* ) ;; 15903 *) LIBOBJS="$LIBOBJS isascii.$ac_objext" 15904 ;; 15905esac 15906 15907fi 15908 15909 15910ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 15911if test "x$ac_cv_func_inet_aton" = xyes; then : 15912 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 15913 15914else 15915 case " $LIBOBJS " in 15916 *" inet_aton.$ac_objext "* ) ;; 15917 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 15918 ;; 15919esac 15920 15921fi 15922 15923 15924ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 15925if test "x$ac_cv_func_inet_pton" = xyes; then : 15926 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 15927 15928else 15929 case " $LIBOBJS " in 15930 *" inet_pton.$ac_objext "* ) ;; 15931 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 15932 ;; 15933esac 15934 15935fi 15936 15937 15938ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 15939if test "x$ac_cv_func_inet_ntop" = xyes; then : 15940 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 15941 15942else 15943 case " $LIBOBJS " in 15944 *" inet_ntop.$ac_objext "* ) ;; 15945 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 15946 ;; 15947esac 15948 15949fi 15950 15951 15952ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 15953if test "x$ac_cv_func_snprintf" = xyes; then : 15954 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 15955 15956else 15957 case " $LIBOBJS " in 15958 *" snprintf.$ac_objext "* ) ;; 15959 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 15960 ;; 15961esac 15962 15963fi 15964 15965 15966ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15967if test "x$ac_cv_func_strlcpy" = xyes; then : 15968 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 15969 15970else 15971 case " $LIBOBJS " in 15972 *" strlcpy.$ac_objext "* ) ;; 15973 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15974 ;; 15975esac 15976 15977fi 15978 15979 15980ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 15981if test "x$ac_cv_func_memmove" = xyes; then : 15982 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 15983 15984else 15985 case " $LIBOBJS " in 15986 *" memmove.$ac_objext "* ) ;; 15987 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 15988 ;; 15989esac 15990 15991fi 15992 15993 15994ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15995if test "x$ac_cv_type_pid_t" = xyes; then : 15996 15997else 15998 15999cat >>confdefs.h <<_ACEOF 16000#define pid_t int 16001_ACEOF 16002 16003fi 16004 16005for ac_header in vfork.h 16006do : 16007 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 16008if test "x$ac_cv_header_vfork_h" = xyes; then : 16009 cat >>confdefs.h <<_ACEOF 16010#define HAVE_VFORK_H 1 16011_ACEOF 16012 16013fi 16014 16015done 16016 16017for ac_func in fork vfork 16018do : 16019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16020ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16021if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16022 cat >>confdefs.h <<_ACEOF 16023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16024_ACEOF 16025 16026fi 16027done 16028 16029if test "x$ac_cv_func_fork" = xyes; then 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 16031$as_echo_n "checking for working fork... " >&6; } 16032if ${ac_cv_func_fork_works+:} false; then : 16033 $as_echo_n "(cached) " >&6 16034else 16035 if test "$cross_compiling" = yes; then : 16036 ac_cv_func_fork_works=cross 16037else 16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16039/* end confdefs.h. */ 16040$ac_includes_default 16041int 16042main () 16043{ 16044 16045 /* By Ruediger Kuhlmann. */ 16046 return fork () < 0; 16047 16048 ; 16049 return 0; 16050} 16051_ACEOF 16052if ac_fn_c_try_run "$LINENO"; then : 16053 ac_cv_func_fork_works=yes 16054else 16055 ac_cv_func_fork_works=no 16056fi 16057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16058 conftest.$ac_objext conftest.beam conftest.$ac_ext 16059fi 16060 16061fi 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 16063$as_echo "$ac_cv_func_fork_works" >&6; } 16064 16065else 16066 ac_cv_func_fork_works=$ac_cv_func_fork 16067fi 16068if test "x$ac_cv_func_fork_works" = xcross; then 16069 case $host in 16070 *-*-amigaos* | *-*-msdosdjgpp*) 16071 # Override, as these systems have only a dummy fork() stub 16072 ac_cv_func_fork_works=no 16073 ;; 16074 *) 16075 ac_cv_func_fork_works=yes 16076 ;; 16077 esac 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 16079$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 16080fi 16081ac_cv_func_vfork_works=$ac_cv_func_vfork 16082if test "x$ac_cv_func_vfork" = xyes; then 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 16084$as_echo_n "checking for working vfork... " >&6; } 16085if ${ac_cv_func_vfork_works+:} false; then : 16086 $as_echo_n "(cached) " >&6 16087else 16088 if test "$cross_compiling" = yes; then : 16089 ac_cv_func_vfork_works=cross 16090else 16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16092/* end confdefs.h. */ 16093/* Thanks to Paul Eggert for this test. */ 16094$ac_includes_default 16095#include <sys/wait.h> 16096#ifdef HAVE_VFORK_H 16097# include <vfork.h> 16098#endif 16099/* On some sparc systems, changes by the child to local and incoming 16100 argument registers are propagated back to the parent. The compiler 16101 is told about this with #include <vfork.h>, but some compilers 16102 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 16103 static variable whose address is put into a register that is 16104 clobbered by the vfork. */ 16105static void 16106#ifdef __cplusplus 16107sparc_address_test (int arg) 16108# else 16109sparc_address_test (arg) int arg; 16110#endif 16111{ 16112 static pid_t child; 16113 if (!child) { 16114 child = vfork (); 16115 if (child < 0) { 16116 perror ("vfork"); 16117 _exit(2); 16118 } 16119 if (!child) { 16120 arg = getpid(); 16121 write(-1, "", 0); 16122 _exit (arg); 16123 } 16124 } 16125} 16126 16127int 16128main () 16129{ 16130 pid_t parent = getpid (); 16131 pid_t child; 16132 16133 sparc_address_test (0); 16134 16135 child = vfork (); 16136 16137 if (child == 0) { 16138 /* Here is another test for sparc vfork register problems. This 16139 test uses lots of local variables, at least as many local 16140 variables as main has allocated so far including compiler 16141 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 16142 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 16143 reuse the register of parent for one of the local variables, 16144 since it will think that parent can't possibly be used any more 16145 in this routine. Assigning to the local variable will thus 16146 munge parent in the parent process. */ 16147 pid_t 16148 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 16149 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 16150 /* Convince the compiler that p..p7 are live; otherwise, it might 16151 use the same hardware register for all 8 local variables. */ 16152 if (p != p1 || p != p2 || p != p3 || p != p4 16153 || p != p5 || p != p6 || p != p7) 16154 _exit(1); 16155 16156 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 16157 from child file descriptors. If the child closes a descriptor 16158 before it execs or exits, this munges the parent's descriptor 16159 as well. Test for this by closing stdout in the child. */ 16160 _exit(close(fileno(stdout)) != 0); 16161 } else { 16162 int status; 16163 struct stat st; 16164 16165 while (wait(&status) != child) 16166 ; 16167 return ( 16168 /* Was there some problem with vforking? */ 16169 child < 0 16170 16171 /* Did the child fail? (This shouldn't happen.) */ 16172 || status 16173 16174 /* Did the vfork/compiler bug occur? */ 16175 || parent != getpid() 16176 16177 /* Did the file descriptor bug occur? */ 16178 || fstat(fileno(stdout), &st) != 0 16179 ); 16180 } 16181} 16182_ACEOF 16183if ac_fn_c_try_run "$LINENO"; then : 16184 ac_cv_func_vfork_works=yes 16185else 16186 ac_cv_func_vfork_works=no 16187fi 16188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16189 conftest.$ac_objext conftest.beam conftest.$ac_ext 16190fi 16191 16192fi 16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 16194$as_echo "$ac_cv_func_vfork_works" >&6; } 16195 16196fi; 16197if test "x$ac_cv_func_fork_works" = xcross; then 16198 ac_cv_func_vfork_works=$ac_cv_func_vfork 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 16200$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 16201fi 16202 16203if test "x$ac_cv_func_vfork_works" = xyes; then 16204 16205$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 16206 16207else 16208 16209$as_echo "#define vfork fork" >>confdefs.h 16210 16211fi 16212if test "x$ac_cv_func_fork_works" = xyes; then 16213 16214$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 16215 16216fi 16217 16218for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset 16219do : 16220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16221ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16222if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16223 cat >>confdefs.h <<_ACEOF 16224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16225_ACEOF 16226 16227fi 16228done 16229 16230 16231 16232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 16233$as_echo_n "checking for getaddrinfo... " >&6; } 16234ac_cv_func_getaddrinfo=no 16235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16236/* end confdefs.h. */ 16237 16238#ifdef __cplusplus 16239extern "C" 16240{ 16241#endif 16242char* getaddrinfo(); 16243char* (*f) () = getaddrinfo; 16244#ifdef __cplusplus 16245} 16246#endif 16247int main() { 16248 ; 16249 return 0; 16250} 16251 16252_ACEOF 16253if ac_fn_c_try_link "$LINENO"; then : 16254 ac_cv_func_getaddrinfo="yes" 16255if test "$ac_cv_header_windows_h" = "yes"; then 16256 16257$as_echo "#define USE_WINSOCK 1" >>confdefs.h 16258 16259 USE_WINSOCK="1" 16260 LIBS="$LIBS -lws2_32" 16261fi 16262 16263else 16264 ORIGLIBS="$LIBS" 16265LIBS="$LIBS -lws2_32" 16266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268 16269#ifdef HAVE_WS2TCPIP_H 16270#include <ws2tcpip.h> 16271#endif 16272 16273int 16274main () 16275{ 16276 16277 (void)getaddrinfo(NULL, NULL, NULL, NULL); 16278 16279 16280 ; 16281 return 0; 16282} 16283_ACEOF 16284if ac_fn_c_try_link "$LINENO"; then : 16285 16286ac_cv_func_getaddrinfo="yes" 16287 16288$as_echo "#define USE_WINSOCK 1" >>confdefs.h 16289 16290USE_WINSOCK="1" 16291 16292else 16293 16294ac_cv_func_getaddrinfo="no" 16295LIBS="$ORIGLIBS" 16296 16297fi 16298rm -f core conftest.err conftest.$ac_objext \ 16299 conftest$ac_exeext conftest.$ac_ext 16300 16301fi 16302rm -f core conftest.err conftest.$ac_objext \ 16303 conftest$ac_exeext conftest.$ac_ext 16304 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 16306$as_echo "$ac_cv_func_getaddrinfo" >&6; } 16307if test $ac_cv_func_getaddrinfo = yes; then 16308 16309$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 16310 16311fi 16312 16313if test $ac_cv_func_getaddrinfo = no; then 16314 case " $LIBOBJS " in 16315 *" fake-rfc2553.$ac_objext "* ) ;; 16316 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 16317 ;; 16318esac 16319 16320fi 16321if test "$USE_WINSOCK" = 1; then 16322 if test -n "$ac_tool_prefix"; then 16323 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 16324set dummy ${ac_tool_prefix}windres; ac_word=$2 16325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16326$as_echo_n "checking for $ac_word... " >&6; } 16327if ${ac_cv_prog_WINDRES+:} false; then : 16328 $as_echo_n "(cached) " >&6 16329else 16330 if test -n "$WINDRES"; then 16331 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 16332else 16333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16334for as_dir in $PATH 16335do 16336 IFS=$as_save_IFS 16337 test -z "$as_dir" && as_dir=. 16338 for ac_exec_ext in '' $ac_executable_extensions; do 16339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16340 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 16341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16342 break 2 16343 fi 16344done 16345 done 16346IFS=$as_save_IFS 16347 16348fi 16349fi 16350WINDRES=$ac_cv_prog_WINDRES 16351if test -n "$WINDRES"; then 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 16353$as_echo "$WINDRES" >&6; } 16354else 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16356$as_echo "no" >&6; } 16357fi 16358 16359 16360fi 16361if test -z "$ac_cv_prog_WINDRES"; then 16362 ac_ct_WINDRES=$WINDRES 16363 # Extract the first word of "windres", so it can be a program name with args. 16364set dummy windres; ac_word=$2 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16366$as_echo_n "checking for $ac_word... " >&6; } 16367if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 16368 $as_echo_n "(cached) " >&6 16369else 16370 if test -n "$ac_ct_WINDRES"; then 16371 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 16372else 16373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16374for as_dir in $PATH 16375do 16376 IFS=$as_save_IFS 16377 test -z "$as_dir" && as_dir=. 16378 for ac_exec_ext in '' $ac_executable_extensions; do 16379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16380 ac_cv_prog_ac_ct_WINDRES="windres" 16381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16382 break 2 16383 fi 16384done 16385 done 16386IFS=$as_save_IFS 16387 16388fi 16389fi 16390ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 16391if test -n "$ac_ct_WINDRES"; then 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 16393$as_echo "$ac_ct_WINDRES" >&6; } 16394else 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16396$as_echo "no" >&6; } 16397fi 16398 16399 if test "x$ac_ct_WINDRES" = x; then 16400 WINDRES="" 16401 else 16402 case $cross_compiling:$ac_tool_warned in 16403yes:) 16404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16406ac_tool_warned=yes ;; 16407esac 16408 WINDRES=$ac_ct_WINDRES 16409 fi 16410else 16411 WINDRES="$ac_cv_prog_WINDRES" 16412fi 16413 16414fi 16415 16416# check ioctlsocket 16417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 16418$as_echo_n "checking for ioctlsocket... " >&6; } 16419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421 16422#ifdef HAVE_WINSOCK2_H 16423#include <winsock2.h> 16424#endif 16425 16426int 16427main () 16428{ 16429 16430 (void)ioctlsocket(0, 0, NULL); 16431 16432 ; 16433 return 0; 16434} 16435_ACEOF 16436if ac_fn_c_try_link "$LINENO"; then : 16437 16438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16439$as_echo "yes" >&6; } 16440 16441$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 16442 16443 16444else 16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16446$as_echo "no" >&6; } 16447fi 16448rm -f core conftest.err conftest.$ac_objext \ 16449 conftest$ac_exeext conftest.$ac_ext 16450 16451 16452#AC_SEARCH_LIBS(RSA_new, [crypto]) 16453 16454 16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 16456$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 16457if ${ac_cv_c_format_attribute+:} false; then : 16458 $as_echo_n "(cached) " >&6 16459else 16460 ac_cv_c_format_attribute=no 16461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463#include <stdio.h> 16464void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 16465void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 16466 16467int 16468main () 16469{ 16470 16471 f ("%s", "str"); 16472 16473 ; 16474 return 0; 16475} 16476_ACEOF 16477if ac_fn_c_try_compile "$LINENO"; then : 16478 ac_cv_c_format_attribute="yes" 16479else 16480 ac_cv_c_format_attribute="no" 16481fi 16482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16483 16484fi 16485 16486 16487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 16488$as_echo "$ac_cv_c_format_attribute" >&6; } 16489if test $ac_cv_c_format_attribute = yes; then 16490 16491$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 16492 16493fi 16494 16495 16496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 16497$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 16498if ${ac_cv_c_unused_attribute+:} false; then : 16499 $as_echo_n "(cached) " >&6 16500else 16501 ac_cv_c_unused_attribute=no 16502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504#include <stdio.h> 16505void f (char *u __attribute__((unused))); 16506 16507int 16508main () 16509{ 16510 16511 f ("x"); 16512 16513 ; 16514 return 0; 16515} 16516_ACEOF 16517if ac_fn_c_try_compile "$LINENO"; then : 16518 ac_cv_c_unused_attribute="yes" 16519else 16520 ac_cv_c_unused_attribute="no" 16521fi 16522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16523 16524fi 16525 16526 16527 16528 16529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 16530$as_echo "$ac_cv_c_unused_attribute" >&6; } 16531if test $ac_cv_c_unused_attribute = yes; then 16532 16533$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 16534 16535fi 16536 16537 16538# check OSX deployment target which is needed 16539if echo $build_os | grep darwin > /dev/null; then 16540 export MACOSX_DEPLOYMENT_TARGET="10.4" 16541fi 16542 16543 16544$as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h 16545 16546 16547 16548# Check whether --with-trust-anchor was given. 16549if test "${with_trust_anchor+set}" = set; then : 16550 withval=$with_trust_anchor; 16551 LDNS_TRUST_ANCHOR_FILE="$withval" 16552 16553else 16554 16555 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then 16556 if test "x$sysconfdir" = 'x${prefix}/etc' ; then 16557 if test "x$prefix" = 'xNONE' ; then 16558 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key" 16559 else 16560 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key" 16561 fi 16562 else 16563 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key" 16564 fi 16565 fi 16566 16567fi 16568 16569 16570cat >>confdefs.h <<_ACEOF 16571#define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE" 16572_ACEOF 16573 16574 16575{ $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5 16576$as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;} 16577 16578 16579# Check whether --with-ca-file was given. 16580if test "${with_ca_file+set}" = set; then : 16581 withval=$with_ca_file; 16582 16583$as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h 16584 16585 16586cat >>confdefs.h <<_ACEOF 16587#define LDNS_DANE_CA_FILE "$withval" 16588_ACEOF 16589 16590 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5 16591$as_echo "$as_me: Using CAfile: $withval" >&6;} 16592 DEFAULT_CAFILE="Default is $withval" 16593 16594 16595else 16596 16597 16598$as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h 16599 16600 16601 16602fi 16603 16604 16605 16606# Check whether --with-ca-path was given. 16607if test "${with_ca_path+set}" = set; then : 16608 withval=$with_ca_path; 16609 16610$as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h 16611 16612 16613cat >>confdefs.h <<_ACEOF 16614#define LDNS_DANE_CA_PATH "$withval" 16615_ACEOF 16616 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5 16618$as_echo "$as_me: Using CApath: $withval" >&6;} 16619 DEFAULT_CAPATH="Default is $withval" 16620 16621 16622else 16623 16624 16625$as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h 16626 16627 16628 16629fi 16630 16631 16632 16633 16634 16635 16636if test "x$HAVE_SSL" = "xyes"; then 16637 ldns_build_config_have_ssl=1 16638 16639else 16640 ldns_build_config_have_ssl=0 16641 16642fi 16643if test "x$ac_cv_c_format_attribute" = "xyes"; then 16644 ldns_build_config_have_attr_format=1 16645 16646else 16647 ldns_build_config_have_attr_format=0 16648 16649fi 16650if test "x$ac_cv_c_unused_attribute" = "xyes"; then 16651 ldns_build_config_have_attr_unused=1 16652 16653else 16654 ldns_build_config_have_attr_unused=0 16655 16656fi 16657 16658CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG" 16659 16660ac_config_files="$ac_config_files $CONFIG_FILES" 16661 16662 16663ac_config_headers="$ac_config_headers ldns/config.h" 16664 16665cat >confcache <<\_ACEOF 16666# This file is a shell script that caches the results of configure 16667# tests run on this system so they can be shared between configure 16668# scripts and configure runs, see configure's option --config-cache. 16669# It is not useful on other systems. If it contains results you don't 16670# want to keep, you may remove or edit it. 16671# 16672# config.status only pays attention to the cache file if you give it 16673# the --recheck option to rerun configure. 16674# 16675# `ac_cv_env_foo' variables (set or unset) will be overridden when 16676# loading this file, other *unset* `ac_cv_foo' will be assigned the 16677# following values. 16678 16679_ACEOF 16680 16681# The following way of writing the cache mishandles newlines in values, 16682# but we know of no workaround that is simple, portable, and efficient. 16683# So, we kill variables containing newlines. 16684# Ultrix sh set writes to stderr and can't be redirected directly, 16685# and sets the high bit in the cache file unless we assign to the vars. 16686( 16687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16688 eval ac_val=\$$ac_var 16689 case $ac_val in #( 16690 *${as_nl}*) 16691 case $ac_var in #( 16692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16694 esac 16695 case $ac_var in #( 16696 _ | IFS | as_nl) ;; #( 16697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16698 *) { eval $ac_var=; unset $ac_var;} ;; 16699 esac ;; 16700 esac 16701 done 16702 16703 (set) 2>&1 | 16704 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16705 *${as_nl}ac_space=\ *) 16706 # `set' does not quote correctly, so add quotes: double-quote 16707 # substitution turns \\\\ into \\, and sed turns \\ into \. 16708 sed -n \ 16709 "s/'/'\\\\''/g; 16710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16711 ;; #( 16712 *) 16713 # `set' quotes correctly as required by POSIX, so do not add quotes. 16714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16715 ;; 16716 esac | 16717 sort 16718) | 16719 sed ' 16720 /^ac_cv_env_/b end 16721 t clear 16722 :clear 16723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16724 t end 16725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16726 :end' >>confcache 16727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16728 if test -w "$cache_file"; then 16729 if test "x$cache_file" != "x/dev/null"; then 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16731$as_echo "$as_me: updating cache $cache_file" >&6;} 16732 if test ! -f "$cache_file" || test -h "$cache_file"; then 16733 cat confcache >"$cache_file" 16734 else 16735 case $cache_file in #( 16736 */* | ?:*) 16737 mv -f confcache "$cache_file"$$ && 16738 mv -f "$cache_file"$$ "$cache_file" ;; #( 16739 *) 16740 mv -f confcache "$cache_file" ;; 16741 esac 16742 fi 16743 fi 16744 else 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16746$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16747 fi 16748fi 16749rm -f confcache 16750 16751test "x$prefix" = xNONE && prefix=$ac_default_prefix 16752# Let make expand exec_prefix. 16753test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16754 16755DEFS=-DHAVE_CONFIG_H 16756 16757ac_libobjs= 16758ac_ltlibobjs= 16759U= 16760for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16761 # 1. Remove the extension, and $U if already installed. 16762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16765 # will be set to the directory where LIBOBJS objects are built. 16766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16768done 16769LIBOBJS=$ac_libobjs 16770 16771LTLIBOBJS=$ac_ltlibobjs 16772 16773 16774 16775 16776: "${CONFIG_STATUS=./config.status}" 16777ac_write_fail=0 16778ac_clean_files_save=$ac_clean_files 16779ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16780{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16781$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16782as_write_fail=0 16783cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16784#! $SHELL 16785# Generated by $as_me. 16786# Run this file to recreate the current configuration. 16787# Compiler output produced by configure, useful for debugging 16788# configure, is in config.log if it exists. 16789 16790debug=false 16791ac_cs_recheck=false 16792ac_cs_silent=false 16793 16794SHELL=\${CONFIG_SHELL-$SHELL} 16795export SHELL 16796_ASEOF 16797cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16798## -------------------- ## 16799## M4sh Initialization. ## 16800## -------------------- ## 16801 16802# Be more Bourne compatible 16803DUALCASE=1; export DUALCASE # for MKS sh 16804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16805 emulate sh 16806 NULLCMD=: 16807 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16808 # is contrary to our usage. Disable this feature. 16809 alias -g '${1+"$@"}'='"$@"' 16810 setopt NO_GLOB_SUBST 16811else 16812 case `(set -o) 2>/dev/null` in #( 16813 *posix*) : 16814 set -o posix ;; #( 16815 *) : 16816 ;; 16817esac 16818fi 16819 16820 16821as_nl=' 16822' 16823export as_nl 16824# Printing a long string crashes Solaris 7 /usr/bin/printf. 16825as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16828# Prefer a ksh shell builtin over an external printf program on Solaris, 16829# but without wasting forks for bash or zsh. 16830if test -z "$BASH_VERSION$ZSH_VERSION" \ 16831 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16832 as_echo='print -r --' 16833 as_echo_n='print -rn --' 16834elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16835 as_echo='printf %s\n' 16836 as_echo_n='printf %s' 16837else 16838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16840 as_echo_n='/usr/ucb/echo -n' 16841 else 16842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16843 as_echo_n_body='eval 16844 arg=$1; 16845 case $arg in #( 16846 *"$as_nl"*) 16847 expr "X$arg" : "X\\(.*\\)$as_nl"; 16848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16849 esac; 16850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16851 ' 16852 export as_echo_n_body 16853 as_echo_n='sh -c $as_echo_n_body as_echo' 16854 fi 16855 export as_echo_body 16856 as_echo='sh -c $as_echo_body as_echo' 16857fi 16858 16859# The user is always right. 16860if test "${PATH_SEPARATOR+set}" != set; then 16861 PATH_SEPARATOR=: 16862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16864 PATH_SEPARATOR=';' 16865 } 16866fi 16867 16868 16869# IFS 16870# We need space, tab and new line, in precisely that order. Quoting is 16871# there to prevent editors from complaining about space-tab. 16872# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16873# splitting by setting IFS to empty value.) 16874IFS=" "" $as_nl" 16875 16876# Find who we are. Look in the path if we contain no directory separator. 16877as_myself= 16878case $0 in #(( 16879 *[\\/]* ) as_myself=$0 ;; 16880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16881for as_dir in $PATH 16882do 16883 IFS=$as_save_IFS 16884 test -z "$as_dir" && as_dir=. 16885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16886 done 16887IFS=$as_save_IFS 16888 16889 ;; 16890esac 16891# We did not find ourselves, most probably we were run as `sh COMMAND' 16892# in which case we are not to be found in the path. 16893if test "x$as_myself" = x; then 16894 as_myself=$0 16895fi 16896if test ! -f "$as_myself"; then 16897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16898 exit 1 16899fi 16900 16901# Unset variables that we do not need and which cause bugs (e.g. in 16902# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16903# suppresses any "Segmentation fault" message there. '((' could 16904# trigger a bug in pdksh 5.2.14. 16905for as_var in BASH_ENV ENV MAIL MAILPATH 16906do eval test x\${$as_var+set} = xset \ 16907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16908done 16909PS1='$ ' 16910PS2='> ' 16911PS4='+ ' 16912 16913# NLS nuisances. 16914LC_ALL=C 16915export LC_ALL 16916LANGUAGE=C 16917export LANGUAGE 16918 16919# CDPATH. 16920(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16921 16922 16923# as_fn_error STATUS ERROR [LINENO LOG_FD] 16924# ---------------------------------------- 16925# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16926# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16927# script with STATUS, using 1 if that was 0. 16928as_fn_error () 16929{ 16930 as_status=$1; test $as_status -eq 0 && as_status=1 16931 if test "$4"; then 16932 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16934 fi 16935 $as_echo "$as_me: error: $2" >&2 16936 as_fn_exit $as_status 16937} # as_fn_error 16938 16939 16940# as_fn_set_status STATUS 16941# ----------------------- 16942# Set $? to STATUS, without forking. 16943as_fn_set_status () 16944{ 16945 return $1 16946} # as_fn_set_status 16947 16948# as_fn_exit STATUS 16949# ----------------- 16950# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16951as_fn_exit () 16952{ 16953 set +e 16954 as_fn_set_status $1 16955 exit $1 16956} # as_fn_exit 16957 16958# as_fn_unset VAR 16959# --------------- 16960# Portably unset VAR. 16961as_fn_unset () 16962{ 16963 { eval $1=; unset $1;} 16964} 16965as_unset=as_fn_unset 16966# as_fn_append VAR VALUE 16967# ---------------------- 16968# Append the text in VALUE to the end of the definition contained in VAR. Take 16969# advantage of any shell optimizations that allow amortized linear growth over 16970# repeated appends, instead of the typical quadratic growth present in naive 16971# implementations. 16972if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16973 eval 'as_fn_append () 16974 { 16975 eval $1+=\$2 16976 }' 16977else 16978 as_fn_append () 16979 { 16980 eval $1=\$$1\$2 16981 } 16982fi # as_fn_append 16983 16984# as_fn_arith ARG... 16985# ------------------ 16986# Perform arithmetic evaluation on the ARGs, and store the result in the 16987# global $as_val. Take advantage of shells that can avoid forks. The arguments 16988# must be portable across $(()) and expr. 16989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16990 eval 'as_fn_arith () 16991 { 16992 as_val=$(( $* )) 16993 }' 16994else 16995 as_fn_arith () 16996 { 16997 as_val=`expr "$@" || test $? -eq 1` 16998 } 16999fi # as_fn_arith 17000 17001 17002if expr a : '\(a\)' >/dev/null 2>&1 && 17003 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17004 as_expr=expr 17005else 17006 as_expr=false 17007fi 17008 17009if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17010 as_basename=basename 17011else 17012 as_basename=false 17013fi 17014 17015if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17016 as_dirname=dirname 17017else 17018 as_dirname=false 17019fi 17020 17021as_me=`$as_basename -- "$0" || 17022$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17023 X"$0" : 'X\(//\)$' \| \ 17024 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17025$as_echo X/"$0" | 17026 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17027 s//\1/ 17028 q 17029 } 17030 /^X\/\(\/\/\)$/{ 17031 s//\1/ 17032 q 17033 } 17034 /^X\/\(\/\).*/{ 17035 s//\1/ 17036 q 17037 } 17038 s/.*/./; q'` 17039 17040# Avoid depending upon Character Ranges. 17041as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17042as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17043as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17044as_cr_digits='0123456789' 17045as_cr_alnum=$as_cr_Letters$as_cr_digits 17046 17047ECHO_C= ECHO_N= ECHO_T= 17048case `echo -n x` in #((((( 17049-n*) 17050 case `echo 'xy\c'` in 17051 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17052 xy) ECHO_C='\c';; 17053 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17054 ECHO_T=' ';; 17055 esac;; 17056*) 17057 ECHO_N='-n';; 17058esac 17059 17060rm -f conf$$ conf$$.exe conf$$.file 17061if test -d conf$$.dir; then 17062 rm -f conf$$.dir/conf$$.file 17063else 17064 rm -f conf$$.dir 17065 mkdir conf$$.dir 2>/dev/null 17066fi 17067if (echo >conf$$.file) 2>/dev/null; then 17068 if ln -s conf$$.file conf$$ 2>/dev/null; then 17069 as_ln_s='ln -s' 17070 # ... but there are two gotchas: 17071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17073 # In both cases, we have to default to `cp -p'. 17074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17075 as_ln_s='cp -p' 17076 elif ln conf$$.file conf$$ 2>/dev/null; then 17077 as_ln_s=ln 17078 else 17079 as_ln_s='cp -p' 17080 fi 17081else 17082 as_ln_s='cp -p' 17083fi 17084rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17085rmdir conf$$.dir 2>/dev/null 17086 17087 17088# as_fn_mkdir_p 17089# ------------- 17090# Create "$as_dir" as a directory, including parents if necessary. 17091as_fn_mkdir_p () 17092{ 17093 17094 case $as_dir in #( 17095 -*) as_dir=./$as_dir;; 17096 esac 17097 test -d "$as_dir" || eval $as_mkdir_p || { 17098 as_dirs= 17099 while :; do 17100 case $as_dir in #( 17101 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17102 *) as_qdir=$as_dir;; 17103 esac 17104 as_dirs="'$as_qdir' $as_dirs" 17105 as_dir=`$as_dirname -- "$as_dir" || 17106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17107 X"$as_dir" : 'X\(//\)[^/]' \| \ 17108 X"$as_dir" : 'X\(//\)$' \| \ 17109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17110$as_echo X"$as_dir" | 17111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17112 s//\1/ 17113 q 17114 } 17115 /^X\(\/\/\)[^/].*/{ 17116 s//\1/ 17117 q 17118 } 17119 /^X\(\/\/\)$/{ 17120 s//\1/ 17121 q 17122 } 17123 /^X\(\/\).*/{ 17124 s//\1/ 17125 q 17126 } 17127 s/.*/./; q'` 17128 test -d "$as_dir" && break 17129 done 17130 test -z "$as_dirs" || eval "mkdir $as_dirs" 17131 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17132 17133 17134} # as_fn_mkdir_p 17135if mkdir -p . 2>/dev/null; then 17136 as_mkdir_p='mkdir -p "$as_dir"' 17137else 17138 test -d ./-p && rmdir ./-p 17139 as_mkdir_p=false 17140fi 17141 17142if test -x / >/dev/null 2>&1; then 17143 as_test_x='test -x' 17144else 17145 if ls -dL / >/dev/null 2>&1; then 17146 as_ls_L_option=L 17147 else 17148 as_ls_L_option= 17149 fi 17150 as_test_x=' 17151 eval sh -c '\'' 17152 if test -d "$1"; then 17153 test -d "$1/."; 17154 else 17155 case $1 in #( 17156 -*)set "./$1";; 17157 esac; 17158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17159 ???[sx]*):;;*)false;;esac;fi 17160 '\'' sh 17161 ' 17162fi 17163as_executable_p=$as_test_x 17164 17165# Sed expression to map a string onto a valid CPP name. 17166as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17167 17168# Sed expression to map a string onto a valid variable name. 17169as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17170 17171 17172exec 6>&1 17173## ----------------------------------- ## 17174## Main body of $CONFIG_STATUS script. ## 17175## ----------------------------------- ## 17176_ASEOF 17177test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17178 17179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17180# Save the log message, to keep $0 and so on meaningful, and to 17181# report actual input values of CONFIG_FILES etc. instead of their 17182# values after options handling. 17183ac_log=" 17184This file was extended by ldns $as_me 1.6.16, which was 17185generated by GNU Autoconf 2.68. Invocation command line was 17186 17187 CONFIG_FILES = $CONFIG_FILES 17188 CONFIG_HEADERS = $CONFIG_HEADERS 17189 CONFIG_LINKS = $CONFIG_LINKS 17190 CONFIG_COMMANDS = $CONFIG_COMMANDS 17191 $ $0 $@ 17192 17193on `(hostname || uname -n) 2>/dev/null | sed 1q` 17194" 17195 17196_ACEOF 17197 17198case $ac_config_files in *" 17199"*) set x $ac_config_files; shift; ac_config_files=$*;; 17200esac 17201 17202case $ac_config_headers in *" 17203"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17204esac 17205 17206 17207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17208# Files that config.status was made for. 17209config_files="$ac_config_files" 17210config_headers="$ac_config_headers" 17211config_commands="$ac_config_commands" 17212 17213_ACEOF 17214 17215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17216ac_cs_usage="\ 17217\`$as_me' instantiates files and other configuration actions 17218from templates according to the current configuration. Unless the files 17219and actions are specified as TAGs, all are instantiated by default. 17220 17221Usage: $0 [OPTION]... [TAG]... 17222 17223 -h, --help print this help, then exit 17224 -V, --version print version number and configuration settings, then exit 17225 --config print configuration, then exit 17226 -q, --quiet, --silent 17227 do not print progress messages 17228 -d, --debug don't remove temporary files 17229 --recheck update $as_me by reconfiguring in the same conditions 17230 --file=FILE[:TEMPLATE] 17231 instantiate the configuration file FILE 17232 --header=FILE[:TEMPLATE] 17233 instantiate the configuration header FILE 17234 17235Configuration files: 17236$config_files 17237 17238Configuration headers: 17239$config_headers 17240 17241Configuration commands: 17242$config_commands 17243 17244Report bugs to <libdns@nlnetlabs.nl>." 17245 17246_ACEOF 17247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17248ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17249ac_cs_version="\\ 17250ldns config.status 1.6.16 17251configured by $0, generated by GNU Autoconf 2.68, 17252 with options \\"\$ac_cs_config\\" 17253 17254Copyright (C) 2010 Free Software Foundation, Inc. 17255This config.status script is free software; the Free Software Foundation 17256gives unlimited permission to copy, distribute and modify it." 17257 17258ac_pwd='$ac_pwd' 17259srcdir='$srcdir' 17260AWK='$AWK' 17261test -n "\$AWK" || AWK=awk 17262_ACEOF 17263 17264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17265# The default lists apply if the user does not specify any file. 17266ac_need_defaults=: 17267while test $# != 0 17268do 17269 case $1 in 17270 --*=?*) 17271 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17273 ac_shift=: 17274 ;; 17275 --*=) 17276 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17277 ac_optarg= 17278 ac_shift=: 17279 ;; 17280 *) 17281 ac_option=$1 17282 ac_optarg=$2 17283 ac_shift=shift 17284 ;; 17285 esac 17286 17287 case $ac_option in 17288 # Handling of the options. 17289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17290 ac_cs_recheck=: ;; 17291 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17292 $as_echo "$ac_cs_version"; exit ;; 17293 --config | --confi | --conf | --con | --co | --c ) 17294 $as_echo "$ac_cs_config"; exit ;; 17295 --debug | --debu | --deb | --de | --d | -d ) 17296 debug=: ;; 17297 --file | --fil | --fi | --f ) 17298 $ac_shift 17299 case $ac_optarg in 17300 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17301 '') as_fn_error $? "missing file argument" ;; 17302 esac 17303 as_fn_append CONFIG_FILES " '$ac_optarg'" 17304 ac_need_defaults=false;; 17305 --header | --heade | --head | --hea ) 17306 $ac_shift 17307 case $ac_optarg in 17308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17309 esac 17310 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17311 ac_need_defaults=false;; 17312 --he | --h) 17313 # Conflict between --help and --header 17314 as_fn_error $? "ambiguous option: \`$1' 17315Try \`$0 --help' for more information.";; 17316 --help | --hel | -h ) 17317 $as_echo "$ac_cs_usage"; exit ;; 17318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17319 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17320 ac_cs_silent=: ;; 17321 17322 # This is an error. 17323 -*) as_fn_error $? "unrecognized option: \`$1' 17324Try \`$0 --help' for more information." ;; 17325 17326 *) as_fn_append ac_config_targets " $1" 17327 ac_need_defaults=false ;; 17328 17329 esac 17330 shift 17331done 17332 17333ac_configure_extra_args= 17334 17335if $ac_cs_silent; then 17336 exec 6>/dev/null 17337 ac_configure_extra_args="$ac_configure_extra_args --silent" 17338fi 17339 17340_ACEOF 17341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17342if \$ac_cs_recheck; then 17343 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17344 shift 17345 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17346 CONFIG_SHELL='$SHELL' 17347 export CONFIG_SHELL 17348 exec "\$@" 17349fi 17350 17351_ACEOF 17352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17353exec 5>>config.log 17354{ 17355 echo 17356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17357## Running $as_me. ## 17358_ASBOX 17359 $as_echo "$ac_log" 17360} >&5 17361 17362_ACEOF 17363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17364# 17365# INIT-COMMANDS 17366# 17367 17368 17369# The HP-UX ksh and POSIX shell print the target directory to stdout 17370# if CDPATH is set. 17371(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17372 17373sed_quote_subst='$sed_quote_subst' 17374double_quote_subst='$double_quote_subst' 17375delay_variable_subst='$delay_variable_subst' 17376macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17377macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17378enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17379enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17380pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17381enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17382SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17383ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17384PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17385host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17386host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17387host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17388build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17389build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17390build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17391SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17392Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17393GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17394EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17395FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17396LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17397NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17398LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17399max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17400ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17401exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17402lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17403lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17404lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17405lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17406lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17407reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17408reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17409OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17410deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17411file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17412file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17413want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17414DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17415sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17416AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17417AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17418archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17419STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17420RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17421old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17422old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17423old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17424lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17425CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17426CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17427compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17428GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17429lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17430lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17431lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17432lt_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"`' 17433nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17434lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17435objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17436MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17437lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17438lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17439lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17440lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17441lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17442need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17443MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17444DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17445NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17446LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17447OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17448OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17449libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17450shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17451extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17452archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17453enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17454export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17455whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17456compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17457old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17458old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17459archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17460archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17461module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17462module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17463with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17464allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17465no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17466hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17467hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17468hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17469hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17470hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17471hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17472hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17473inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17474link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17475always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17476export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17477exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17478include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17479prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17480postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17481file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17482variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17483need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17484need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17485version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17486runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17487shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17488shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17489libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17490library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17491soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17492install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17493postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17494postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17495finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17496finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17497hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17498sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17499sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17500hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17501enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17502enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17503enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17504old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17505striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17506 17507LTCC='$LTCC' 17508LTCFLAGS='$LTCFLAGS' 17509compiler='$compiler_DEFAULT' 17510 17511# A function that is used when there is no print builtin or printf. 17512func_fallback_echo () 17513{ 17514 eval 'cat <<_LTECHO_EOF 17515\$1 17516_LTECHO_EOF' 17517} 17518 17519# Quote evaled strings. 17520for var in SHELL \ 17521ECHO \ 17522PATH_SEPARATOR \ 17523SED \ 17524GREP \ 17525EGREP \ 17526FGREP \ 17527LD \ 17528NM \ 17529LN_S \ 17530lt_SP2NL \ 17531lt_NL2SP \ 17532reload_flag \ 17533OBJDUMP \ 17534deplibs_check_method \ 17535file_magic_cmd \ 17536file_magic_glob \ 17537want_nocaseglob \ 17538DLLTOOL \ 17539sharedlib_from_linklib_cmd \ 17540AR \ 17541AR_FLAGS \ 17542archiver_list_spec \ 17543STRIP \ 17544RANLIB \ 17545CC \ 17546CFLAGS \ 17547compiler \ 17548lt_cv_sys_global_symbol_pipe \ 17549lt_cv_sys_global_symbol_to_cdecl \ 17550lt_cv_sys_global_symbol_to_c_name_address \ 17551lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17552nm_file_list_spec \ 17553lt_prog_compiler_no_builtin_flag \ 17554lt_prog_compiler_pic \ 17555lt_prog_compiler_wl \ 17556lt_prog_compiler_static \ 17557lt_cv_prog_compiler_c_o \ 17558need_locks \ 17559MANIFEST_TOOL \ 17560DSYMUTIL \ 17561NMEDIT \ 17562LIPO \ 17563OTOOL \ 17564OTOOL64 \ 17565shrext_cmds \ 17566export_dynamic_flag_spec \ 17567whole_archive_flag_spec \ 17568compiler_needs_object \ 17569with_gnu_ld \ 17570allow_undefined_flag \ 17571no_undefined_flag \ 17572hardcode_libdir_flag_spec \ 17573hardcode_libdir_separator \ 17574exclude_expsyms \ 17575include_expsyms \ 17576file_list_spec \ 17577variables_saved_for_relink \ 17578libname_spec \ 17579library_names_spec \ 17580soname_spec \ 17581install_override_mode \ 17582finish_eval \ 17583old_striplib \ 17584striplib; do 17585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17586 *[\\\\\\\`\\"\\\$]*) 17587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17588 ;; 17589 *) 17590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17591 ;; 17592 esac 17593done 17594 17595# Double-quote double-evaled strings. 17596for var in reload_cmds \ 17597old_postinstall_cmds \ 17598old_postuninstall_cmds \ 17599old_archive_cmds \ 17600extract_expsyms_cmds \ 17601old_archive_from_new_cmds \ 17602old_archive_from_expsyms_cmds \ 17603archive_cmds \ 17604archive_expsym_cmds \ 17605module_cmds \ 17606module_expsym_cmds \ 17607export_symbols_cmds \ 17608prelink_cmds \ 17609postlink_cmds \ 17610postinstall_cmds \ 17611postuninstall_cmds \ 17612finish_cmds \ 17613sys_lib_search_path_spec \ 17614sys_lib_dlsearch_path_spec; do 17615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17616 *[\\\\\\\`\\"\\\$]*) 17617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17618 ;; 17619 *) 17620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17621 ;; 17622 esac 17623done 17624 17625ac_aux_dir='$ac_aux_dir' 17626xsi_shell='$xsi_shell' 17627lt_shell_append='$lt_shell_append' 17628 17629# See if we are running on zsh, and set the options which allow our 17630# commands through without removal of \ escapes INIT. 17631if test -n "\${ZSH_VERSION+set}" ; then 17632 setopt NO_GLOB_SUBST 17633fi 17634 17635 17636 PACKAGE='$PACKAGE' 17637 VERSION='$VERSION' 17638 TIMESTAMP='$TIMESTAMP' 17639 RM='$RM' 17640 ofile='$ofile' 17641 17642 17643 17644 17645_ACEOF 17646 17647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17648 17649# Handling of arguments. 17650for ac_config_target in $ac_config_targets 17651do 17652 case $ac_config_target in 17653 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17654 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 17655 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;; 17656 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;; 17657 17658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17659 esac 17660done 17661 17662 17663# If the user did not use the arguments to specify the items to instantiate, 17664# then the envvar interface is used. Set only those that are not. 17665# We use the long form for the default assignment because of an extremely 17666# bizarre bug on SunOS 4.1.3. 17667if $ac_need_defaults; then 17668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17671fi 17672 17673# Have a temporary directory for convenience. Make it in the build tree 17674# simply because there is no reason against having it here, and in addition, 17675# creating and moving files from /tmp can sometimes cause problems. 17676# Hook for its removal unless debugging. 17677# Note that there is a small window in which the directory will not be cleaned: 17678# after its creation but before its name has been assigned to `$tmp'. 17679$debug || 17680{ 17681 tmp= ac_tmp= 17682 trap 'exit_status=$? 17683 : "${ac_tmp:=$tmp}" 17684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17685' 0 17686 trap 'as_fn_exit 1' 1 2 13 15 17687} 17688# Create a (secure) tmp directory for tmp files. 17689 17690{ 17691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17692 test -d "$tmp" 17693} || 17694{ 17695 tmp=./conf$$-$RANDOM 17696 (umask 077 && mkdir "$tmp") 17697} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17698ac_tmp=$tmp 17699 17700# Set up the scripts for CONFIG_FILES section. 17701# No need to generate them if there are no CONFIG_FILES. 17702# This happens for instance with `./config.status config.h'. 17703if test -n "$CONFIG_FILES"; then 17704 17705 17706ac_cr=`echo X | tr X '\015'` 17707# On cygwin, bash can eat \r inside `` if the user requested igncr. 17708# But we know of no other shell where ac_cr would be empty at this 17709# point, so we can use a bashism as a fallback. 17710if test "x$ac_cr" = x; then 17711 eval ac_cr=\$\'\\r\' 17712fi 17713ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17714if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17715 ac_cs_awk_cr='\\r' 17716else 17717 ac_cs_awk_cr=$ac_cr 17718fi 17719 17720echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17721_ACEOF 17722 17723 17724{ 17725 echo "cat >conf$$subs.awk <<_ACEOF" && 17726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17727 echo "_ACEOF" 17728} >conf$$subs.sh || 17729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17730ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17731ac_delim='%!_!# ' 17732for ac_last_try in false false false false false :; do 17733 . ./conf$$subs.sh || 17734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17735 17736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17737 if test $ac_delim_n = $ac_delim_num; then 17738 break 17739 elif $ac_last_try; then 17740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17741 else 17742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17743 fi 17744done 17745rm -f conf$$subs.sh 17746 17747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17748cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17749_ACEOF 17750sed -n ' 17751h 17752s/^/S["/; s/!.*/"]=/ 17753p 17754g 17755s/^[^!]*!// 17756:repl 17757t repl 17758s/'"$ac_delim"'$// 17759t delim 17760:nl 17761h 17762s/\(.\{148\}\)..*/\1/ 17763t more1 17764s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17765p 17766n 17767b repl 17768:more1 17769s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17770p 17771g 17772s/.\{148\}// 17773t nl 17774:delim 17775h 17776s/\(.\{148\}\)..*/\1/ 17777t more2 17778s/["\\]/\\&/g; s/^/"/; s/$/"/ 17779p 17780b 17781:more2 17782s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17783p 17784g 17785s/.\{148\}// 17786t delim 17787' <conf$$subs.awk | sed ' 17788/^[^""]/{ 17789 N 17790 s/\n// 17791} 17792' >>$CONFIG_STATUS || ac_write_fail=1 17793rm -f conf$$subs.awk 17794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17795_ACAWK 17796cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17797 for (key in S) S_is_set[key] = 1 17798 FS = "" 17799 17800} 17801{ 17802 line = $ 0 17803 nfields = split(line, field, "@") 17804 substed = 0 17805 len = length(field[1]) 17806 for (i = 2; i < nfields; i++) { 17807 key = field[i] 17808 keylen = length(key) 17809 if (S_is_set[key]) { 17810 value = S[key] 17811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17812 len += length(value) + length(field[++i]) 17813 substed = 1 17814 } else 17815 len += 1 + keylen 17816 } 17817 17818 print line 17819} 17820 17821_ACAWK 17822_ACEOF 17823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17824if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17826else 17827 cat 17828fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17830_ACEOF 17831 17832# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17833# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17834# trailing colons and then remove the whole line if VPATH becomes empty 17835# (actually we leave an empty line to preserve line numbers). 17836if test "x$srcdir" = x.; then 17837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17838h 17839s/// 17840s/^/:/ 17841s/[ ]*$/:/ 17842s/:\$(srcdir):/:/g 17843s/:\${srcdir}:/:/g 17844s/:@srcdir@:/:/g 17845s/^:*// 17846s/:*$// 17847x 17848s/\(=[ ]*\).*/\1/ 17849G 17850s/\n// 17851s/^[^=]*=[ ]*$// 17852}' 17853fi 17854 17855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17856fi # test -n "$CONFIG_FILES" 17857 17858# Set up the scripts for CONFIG_HEADERS section. 17859# No need to generate them if there are no CONFIG_HEADERS. 17860# This happens for instance with `./config.status Makefile'. 17861if test -n "$CONFIG_HEADERS"; then 17862cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17863BEGIN { 17864_ACEOF 17865 17866# Transform confdefs.h into an awk script `defines.awk', embedded as 17867# here-document in config.status, that substitutes the proper values into 17868# config.h.in to produce config.h. 17869 17870# Create a delimiter string that does not exist in confdefs.h, to ease 17871# handling of long lines. 17872ac_delim='%!_!# ' 17873for ac_last_try in false false :; do 17874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17875 if test -z "$ac_tt"; then 17876 break 17877 elif $ac_last_try; then 17878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17879 else 17880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17881 fi 17882done 17883 17884# For the awk script, D is an array of macro values keyed by name, 17885# likewise P contains macro parameters if any. Preserve backslash 17886# newline sequences. 17887 17888ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17889sed -n ' 17890s/.\{148\}/&'"$ac_delim"'/g 17891t rset 17892:rset 17893s/^[ ]*#[ ]*define[ ][ ]*/ / 17894t def 17895d 17896:def 17897s/\\$// 17898t bsnl 17899s/["\\]/\\&/g 17900s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17901D["\1"]=" \3"/p 17902s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17903d 17904:bsnl 17905s/["\\]/\\&/g 17906s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17907D["\1"]=" \3\\\\\\n"\\/p 17908t cont 17909s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17910t cont 17911d 17912:cont 17913n 17914s/.\{148\}/&'"$ac_delim"'/g 17915t clear 17916:clear 17917s/\\$// 17918t bsnlc 17919s/["\\]/\\&/g; s/^/"/; s/$/"/p 17920d 17921:bsnlc 17922s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17923b cont 17924' <confdefs.h | sed ' 17925s/'"$ac_delim"'/"\\\ 17926"/g' >>$CONFIG_STATUS || ac_write_fail=1 17927 17928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17929 for (key in D) D_is_set[key] = 1 17930 FS = "" 17931} 17932/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17933 line = \$ 0 17934 split(line, arg, " ") 17935 if (arg[1] == "#") { 17936 defundef = arg[2] 17937 mac1 = arg[3] 17938 } else { 17939 defundef = substr(arg[1], 2) 17940 mac1 = arg[2] 17941 } 17942 split(mac1, mac2, "(") #) 17943 macro = mac2[1] 17944 prefix = substr(line, 1, index(line, defundef) - 1) 17945 if (D_is_set[macro]) { 17946 # Preserve the white space surrounding the "#". 17947 print prefix "define", macro P[macro] D[macro] 17948 next 17949 } else { 17950 # Replace #undef with comments. This is necessary, for example, 17951 # in the case of _POSIX_SOURCE, which is predefined and required 17952 # on some systems where configure will not decide to define it. 17953 if (defundef == "undef") { 17954 print "/*", prefix defundef, macro, "*/" 17955 next 17956 } 17957 } 17958} 17959{ print } 17960_ACAWK 17961_ACEOF 17962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17964fi # test -n "$CONFIG_HEADERS" 17965 17966 17967eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17968shift 17969for ac_tag 17970do 17971 case $ac_tag in 17972 :[FHLC]) ac_mode=$ac_tag; continue;; 17973 esac 17974 case $ac_mode$ac_tag in 17975 :[FHL]*:*);; 17976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17977 :[FH]-) ac_tag=-:-;; 17978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17979 esac 17980 ac_save_IFS=$IFS 17981 IFS=: 17982 set x $ac_tag 17983 IFS=$ac_save_IFS 17984 shift 17985 ac_file=$1 17986 shift 17987 17988 case $ac_mode in 17989 :L) ac_source=$1;; 17990 :[FH]) 17991 ac_file_inputs= 17992 for ac_f 17993 do 17994 case $ac_f in 17995 -) ac_f="$ac_tmp/stdin";; 17996 *) # Look for the file first in the build tree, then in the source tree 17997 # (if the path is not absolute). The absolute path cannot be DOS-style, 17998 # because $ac_f cannot contain `:'. 17999 test -f "$ac_f" || 18000 case $ac_f in 18001 [\\/$]*) false;; 18002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18003 esac || 18004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18005 esac 18006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18007 as_fn_append ac_file_inputs " '$ac_f'" 18008 done 18009 18010 # Let's still pretend it is `configure' which instantiates (i.e., don't 18011 # use $as_me), people would be surprised to read: 18012 # /* config.h. Generated by config.status. */ 18013 configure_input='Generated from '` 18014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18015 `' by configure.' 18016 if test x"$ac_file" != x-; then 18017 configure_input="$ac_file. $configure_input" 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18019$as_echo "$as_me: creating $ac_file" >&6;} 18020 fi 18021 # Neutralize special characters interpreted by sed in replacement strings. 18022 case $configure_input in #( 18023 *\&* | *\|* | *\\* ) 18024 ac_sed_conf_input=`$as_echo "$configure_input" | 18025 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18026 *) ac_sed_conf_input=$configure_input;; 18027 esac 18028 18029 case $ac_tag in 18030 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18032 esac 18033 ;; 18034 esac 18035 18036 ac_dir=`$as_dirname -- "$ac_file" || 18037$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18038 X"$ac_file" : 'X\(//\)[^/]' \| \ 18039 X"$ac_file" : 'X\(//\)$' \| \ 18040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18041$as_echo X"$ac_file" | 18042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18043 s//\1/ 18044 q 18045 } 18046 /^X\(\/\/\)[^/].*/{ 18047 s//\1/ 18048 q 18049 } 18050 /^X\(\/\/\)$/{ 18051 s//\1/ 18052 q 18053 } 18054 /^X\(\/\).*/{ 18055 s//\1/ 18056 q 18057 } 18058 s/.*/./; q'` 18059 as_dir="$ac_dir"; as_fn_mkdir_p 18060 ac_builddir=. 18061 18062case "$ac_dir" in 18063.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18064*) 18065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18066 # A ".." for each directory in $ac_dir_suffix. 18067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18068 case $ac_top_builddir_sub in 18069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18071 esac ;; 18072esac 18073ac_abs_top_builddir=$ac_pwd 18074ac_abs_builddir=$ac_pwd$ac_dir_suffix 18075# for backward compatibility: 18076ac_top_builddir=$ac_top_build_prefix 18077 18078case $srcdir in 18079 .) # We are building in place. 18080 ac_srcdir=. 18081 ac_top_srcdir=$ac_top_builddir_sub 18082 ac_abs_top_srcdir=$ac_pwd ;; 18083 [\\/]* | ?:[\\/]* ) # Absolute name. 18084 ac_srcdir=$srcdir$ac_dir_suffix; 18085 ac_top_srcdir=$srcdir 18086 ac_abs_top_srcdir=$srcdir ;; 18087 *) # Relative name. 18088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18089 ac_top_srcdir=$ac_top_build_prefix$srcdir 18090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18091esac 18092ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18093 18094 18095 case $ac_mode in 18096 :F) 18097 # 18098 # CONFIG_FILE 18099 # 18100 18101_ACEOF 18102 18103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18104# If the template does not know about datarootdir, expand it. 18105# FIXME: This hack should be removed a few years after 2.60. 18106ac_datarootdir_hack=; ac_datarootdir_seen= 18107ac_sed_dataroot=' 18108/datarootdir/ { 18109 p 18110 q 18111} 18112/@datadir@/p 18113/@docdir@/p 18114/@infodir@/p 18115/@localedir@/p 18116/@mandir@/p' 18117case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18118*datarootdir*) ac_datarootdir_seen=yes;; 18119*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18121$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18122_ACEOF 18123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18124 ac_datarootdir_hack=' 18125 s&@datadir@&$datadir&g 18126 s&@docdir@&$docdir&g 18127 s&@infodir@&$infodir&g 18128 s&@localedir@&$localedir&g 18129 s&@mandir@&$mandir&g 18130 s&\\\${datarootdir}&$datarootdir&g' ;; 18131esac 18132_ACEOF 18133 18134# Neutralize VPATH when `$srcdir' = `.'. 18135# Shell code in configure.ac might set extrasub. 18136# FIXME: do we really want to maintain this feature? 18137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18138ac_sed_extra="$ac_vpsub 18139$extrasub 18140_ACEOF 18141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18142:t 18143/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18144s|@configure_input@|$ac_sed_conf_input|;t t 18145s&@top_builddir@&$ac_top_builddir_sub&;t t 18146s&@top_build_prefix@&$ac_top_build_prefix&;t t 18147s&@srcdir@&$ac_srcdir&;t t 18148s&@abs_srcdir@&$ac_abs_srcdir&;t t 18149s&@top_srcdir@&$ac_top_srcdir&;t t 18150s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18151s&@builddir@&$ac_builddir&;t t 18152s&@abs_builddir@&$ac_abs_builddir&;t t 18153s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18154$ac_datarootdir_hack 18155" 18156eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18158 18159test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18162 "$ac_tmp/out"`; test -z "$ac_out"; } && 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18164which seems to be undefined. Please make sure it is defined" >&5 18165$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18166which seems to be undefined. Please make sure it is defined" >&2;} 18167 18168 rm -f "$ac_tmp/stdin" 18169 case $ac_file in 18170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18172 esac \ 18173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18174 ;; 18175 :H) 18176 # 18177 # CONFIG_HEADER 18178 # 18179 if test x"$ac_file" != x-; then 18180 { 18181 $as_echo "/* $configure_input */" \ 18182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18183 } >"$ac_tmp/config.h" \ 18184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18185 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18187$as_echo "$as_me: $ac_file is unchanged" >&6;} 18188 else 18189 rm -f "$ac_file" 18190 mv "$ac_tmp/config.h" "$ac_file" \ 18191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18192 fi 18193 else 18194 $as_echo "/* $configure_input */" \ 18195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18196 || as_fn_error $? "could not create -" "$LINENO" 5 18197 fi 18198 ;; 18199 18200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18201$as_echo "$as_me: executing $ac_file commands" >&6;} 18202 ;; 18203 esac 18204 18205 18206 case $ac_file$ac_mode in 18207 "libtool":C) 18208 18209 # See if we are running on zsh, and set the options which allow our 18210 # commands through without removal of \ escapes. 18211 if test -n "${ZSH_VERSION+set}" ; then 18212 setopt NO_GLOB_SUBST 18213 fi 18214 18215 cfgfile="${ofile}T" 18216 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18217 $RM "$cfgfile" 18218 18219 cat <<_LT_EOF >> "$cfgfile" 18220#! $SHELL 18221 18222# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18223# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18224# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18225# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18226# 18227# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18228# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18229# Foundation, Inc. 18230# Written by Gordon Matzigkeit, 1996 18231# 18232# This file is part of GNU Libtool. 18233# 18234# GNU Libtool is free software; you can redistribute it and/or 18235# modify it under the terms of the GNU General Public License as 18236# published by the Free Software Foundation; either version 2 of 18237# the License, or (at your option) any later version. 18238# 18239# As a special exception to the GNU General Public License, 18240# if you distribute this file as part of a program or library that 18241# is built using GNU Libtool, you may include this file under the 18242# same distribution terms that you use for the rest of that program. 18243# 18244# GNU Libtool is distributed in the hope that it will be useful, 18245# but WITHOUT ANY WARRANTY; without even the implied warranty of 18246# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18247# GNU General Public License for more details. 18248# 18249# You should have received a copy of the GNU General Public License 18250# along with GNU Libtool; see the file COPYING. If not, a copy 18251# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18252# obtained by writing to the Free Software Foundation, Inc., 18253# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18254 18255 18256# The names of the tagged configurations supported by this script. 18257available_tags="" 18258 18259# ### BEGIN LIBTOOL CONFIG 18260 18261# Which release of libtool.m4 was used? 18262macro_version=$macro_version 18263macro_revision=$macro_revision 18264 18265# Whether or not to build shared libraries. 18266build_libtool_libs=$enable_shared 18267 18268# Whether or not to build static libraries. 18269build_old_libs=$enable_static 18270 18271# What type of objects to build. 18272pic_mode=$pic_mode 18273 18274# Whether or not to optimize for fast installation. 18275fast_install=$enable_fast_install 18276 18277# Shell to use when invoking shell scripts. 18278SHELL=$lt_SHELL 18279 18280# An echo program that protects backslashes. 18281ECHO=$lt_ECHO 18282 18283# The PATH separator for the build system. 18284PATH_SEPARATOR=$lt_PATH_SEPARATOR 18285 18286# The host system. 18287host_alias=$host_alias 18288host=$host 18289host_os=$host_os 18290 18291# The build system. 18292build_alias=$build_alias 18293build=$build 18294build_os=$build_os 18295 18296# A sed program that does not truncate output. 18297SED=$lt_SED 18298 18299# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18300Xsed="\$SED -e 1s/^X//" 18301 18302# A grep program that handles long lines. 18303GREP=$lt_GREP 18304 18305# An ERE matcher. 18306EGREP=$lt_EGREP 18307 18308# A literal string matcher. 18309FGREP=$lt_FGREP 18310 18311# A BSD- or MS-compatible name lister. 18312NM=$lt_NM 18313 18314# Whether we need soft or hard links. 18315LN_S=$lt_LN_S 18316 18317# What is the maximum length of a command? 18318max_cmd_len=$max_cmd_len 18319 18320# Object file suffix (normally "o"). 18321objext=$ac_objext 18322 18323# Executable file suffix (normally ""). 18324exeext=$exeext 18325 18326# whether the shell understands "unset". 18327lt_unset=$lt_unset 18328 18329# turn spaces into newlines. 18330SP2NL=$lt_lt_SP2NL 18331 18332# turn newlines into spaces. 18333NL2SP=$lt_lt_NL2SP 18334 18335# convert \$build file names to \$host format. 18336to_host_file_cmd=$lt_cv_to_host_file_cmd 18337 18338# convert \$build files to toolchain format. 18339to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18340 18341# An object symbol dumper. 18342OBJDUMP=$lt_OBJDUMP 18343 18344# Method to check whether dependent libraries are shared objects. 18345deplibs_check_method=$lt_deplibs_check_method 18346 18347# Command to use when deplibs_check_method = "file_magic". 18348file_magic_cmd=$lt_file_magic_cmd 18349 18350# How to find potential files when deplibs_check_method = "file_magic". 18351file_magic_glob=$lt_file_magic_glob 18352 18353# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18354want_nocaseglob=$lt_want_nocaseglob 18355 18356# DLL creation program. 18357DLLTOOL=$lt_DLLTOOL 18358 18359# Command to associate shared and link libraries. 18360sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18361 18362# The archiver. 18363AR=$lt_AR 18364 18365# Flags to create an archive. 18366AR_FLAGS=$lt_AR_FLAGS 18367 18368# How to feed a file listing to the archiver. 18369archiver_list_spec=$lt_archiver_list_spec 18370 18371# A symbol stripping program. 18372STRIP=$lt_STRIP 18373 18374# Commands used to install an old-style archive. 18375RANLIB=$lt_RANLIB 18376old_postinstall_cmds=$lt_old_postinstall_cmds 18377old_postuninstall_cmds=$lt_old_postuninstall_cmds 18378 18379# Whether to use a lock for old archive extraction. 18380lock_old_archive_extraction=$lock_old_archive_extraction 18381 18382# A C compiler. 18383LTCC=$lt_CC 18384 18385# LTCC compiler flags. 18386LTCFLAGS=$lt_CFLAGS 18387 18388# Take the output of nm and produce a listing of raw symbols and C names. 18389global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18390 18391# Transform the output of nm in a proper C declaration. 18392global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18393 18394# Transform the output of nm in a C name address pair. 18395global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18396 18397# Transform the output of nm in a C name address pair when lib prefix is needed. 18398global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18399 18400# Specify filename containing input files for \$NM. 18401nm_file_list_spec=$lt_nm_file_list_spec 18402 18403# The root where to search for dependent libraries,and in which our libraries should be installed. 18404lt_sysroot=$lt_sysroot 18405 18406# The name of the directory that contains temporary libtool files. 18407objdir=$objdir 18408 18409# Used to examine libraries when file_magic_cmd begins with "file". 18410MAGIC_CMD=$MAGIC_CMD 18411 18412# Must we lock files when doing compilation? 18413need_locks=$lt_need_locks 18414 18415# Manifest tool. 18416MANIFEST_TOOL=$lt_MANIFEST_TOOL 18417 18418# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18419DSYMUTIL=$lt_DSYMUTIL 18420 18421# Tool to change global to local symbols on Mac OS X. 18422NMEDIT=$lt_NMEDIT 18423 18424# Tool to manipulate fat objects and archives on Mac OS X. 18425LIPO=$lt_LIPO 18426 18427# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18428OTOOL=$lt_OTOOL 18429 18430# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18431OTOOL64=$lt_OTOOL64 18432 18433# Old archive suffix (normally "a"). 18434libext=$libext 18435 18436# Shared library suffix (normally ".so"). 18437shrext_cmds=$lt_shrext_cmds 18438 18439# The commands to extract the exported symbol list from a shared archive. 18440extract_expsyms_cmds=$lt_extract_expsyms_cmds 18441 18442# Variables whose values should be saved in libtool wrapper scripts and 18443# restored at link time. 18444variables_saved_for_relink=$lt_variables_saved_for_relink 18445 18446# Do we need the "lib" prefix for modules? 18447need_lib_prefix=$need_lib_prefix 18448 18449# Do we need a version for libraries? 18450need_version=$need_version 18451 18452# Library versioning type. 18453version_type=$version_type 18454 18455# Shared library runtime path variable. 18456runpath_var=$runpath_var 18457 18458# Shared library path variable. 18459shlibpath_var=$shlibpath_var 18460 18461# Is shlibpath searched before the hard-coded library search path? 18462shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18463 18464# Format of library name prefix. 18465libname_spec=$lt_libname_spec 18466 18467# List of archive names. First name is the real one, the rest are links. 18468# The last name is the one that the linker finds with -lNAME 18469library_names_spec=$lt_library_names_spec 18470 18471# The coded name of the library, if different from the real name. 18472soname_spec=$lt_soname_spec 18473 18474# Permission mode override for installation of shared libraries. 18475install_override_mode=$lt_install_override_mode 18476 18477# Command to use after installation of a shared archive. 18478postinstall_cmds=$lt_postinstall_cmds 18479 18480# Command to use after uninstallation of a shared archive. 18481postuninstall_cmds=$lt_postuninstall_cmds 18482 18483# Commands used to finish a libtool library installation in a directory. 18484finish_cmds=$lt_finish_cmds 18485 18486# As "finish_cmds", except a single script fragment to be evaled but 18487# not shown. 18488finish_eval=$lt_finish_eval 18489 18490# Whether we should hardcode library paths into libraries. 18491hardcode_into_libs=$hardcode_into_libs 18492 18493# Compile-time system search path for libraries. 18494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18495 18496# Run-time system search path for libraries. 18497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18498 18499# Whether dlopen is supported. 18500dlopen_support=$enable_dlopen 18501 18502# Whether dlopen of programs is supported. 18503dlopen_self=$enable_dlopen_self 18504 18505# Whether dlopen of statically linked programs is supported. 18506dlopen_self_static=$enable_dlopen_self_static 18507 18508# Commands to strip libraries. 18509old_striplib=$lt_old_striplib 18510striplib=$lt_striplib 18511 18512 18513# The linker used to build libraries. 18514LD=$lt_LD 18515 18516# How to create reloadable object files. 18517reload_flag=$lt_reload_flag 18518reload_cmds=$lt_reload_cmds 18519 18520# Commands used to build an old-style archive. 18521old_archive_cmds=$lt_old_archive_cmds 18522 18523# A language specific compiler. 18524CC=$lt_compiler 18525 18526# Is the compiler the GNU compiler? 18527with_gcc=$GCC 18528 18529# Compiler flag to turn off builtin functions. 18530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18531 18532# Additional compiler flags for building library objects. 18533pic_flag=$lt_lt_prog_compiler_pic 18534 18535# How to pass a linker flag through the compiler. 18536wl=$lt_lt_prog_compiler_wl 18537 18538# Compiler flag to prevent dynamic linking. 18539link_static_flag=$lt_lt_prog_compiler_static 18540 18541# Does compiler simultaneously support -c and -o options? 18542compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18543 18544# Whether or not to add -lc for building shared libraries. 18545build_libtool_need_lc=$archive_cmds_need_lc 18546 18547# Whether or not to disallow shared libs when runtime libs are static. 18548allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18549 18550# Compiler flag to allow reflexive dlopens. 18551export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18552 18553# Compiler flag to generate shared objects directly from archives. 18554whole_archive_flag_spec=$lt_whole_archive_flag_spec 18555 18556# Whether the compiler copes with passing no objects directly. 18557compiler_needs_object=$lt_compiler_needs_object 18558 18559# Create an old-style archive from a shared archive. 18560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18561 18562# Create a temporary old-style archive to link instead of a shared archive. 18563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18564 18565# Commands used to build a shared archive. 18566archive_cmds=$lt_archive_cmds 18567archive_expsym_cmds=$lt_archive_expsym_cmds 18568 18569# Commands used to build a loadable module if different from building 18570# a shared archive. 18571module_cmds=$lt_module_cmds 18572module_expsym_cmds=$lt_module_expsym_cmds 18573 18574# Whether we are building with GNU ld or not. 18575with_gnu_ld=$lt_with_gnu_ld 18576 18577# Flag that allows shared libraries with undefined symbols to be built. 18578allow_undefined_flag=$lt_allow_undefined_flag 18579 18580# Flag that enforces no undefined symbols. 18581no_undefined_flag=$lt_no_undefined_flag 18582 18583# Flag to hardcode \$libdir into a binary during linking. 18584# This must work even if \$libdir does not exist 18585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18586 18587# Whether we need a single "-rpath" flag with a separated argument. 18588hardcode_libdir_separator=$lt_hardcode_libdir_separator 18589 18590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18591# DIR into the resulting binary. 18592hardcode_direct=$hardcode_direct 18593 18594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18595# DIR into the resulting binary and the resulting library dependency is 18596# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18597# library is relocated. 18598hardcode_direct_absolute=$hardcode_direct_absolute 18599 18600# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18601# into the resulting binary. 18602hardcode_minus_L=$hardcode_minus_L 18603 18604# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18605# into the resulting binary. 18606hardcode_shlibpath_var=$hardcode_shlibpath_var 18607 18608# Set to "yes" if building a shared library automatically hardcodes DIR 18609# into the library and all subsequent libraries and executables linked 18610# against it. 18611hardcode_automatic=$hardcode_automatic 18612 18613# Set to yes if linker adds runtime paths of dependent libraries 18614# to runtime path list. 18615inherit_rpath=$inherit_rpath 18616 18617# Whether libtool must link a program against all its dependency libraries. 18618link_all_deplibs=$link_all_deplibs 18619 18620# Set to "yes" if exported symbols are required. 18621always_export_symbols=$always_export_symbols 18622 18623# The commands to list exported symbols. 18624export_symbols_cmds=$lt_export_symbols_cmds 18625 18626# Symbols that should not be listed in the preloaded symbols. 18627exclude_expsyms=$lt_exclude_expsyms 18628 18629# Symbols that must always be exported. 18630include_expsyms=$lt_include_expsyms 18631 18632# Commands necessary for linking programs (against libraries) with templates. 18633prelink_cmds=$lt_prelink_cmds 18634 18635# Commands necessary for finishing linking programs. 18636postlink_cmds=$lt_postlink_cmds 18637 18638# Specify filename containing input files. 18639file_list_spec=$lt_file_list_spec 18640 18641# How to hardcode a shared library path into an executable. 18642hardcode_action=$hardcode_action 18643 18644# ### END LIBTOOL CONFIG 18645 18646_LT_EOF 18647 18648 case $host_os in 18649 aix3*) 18650 cat <<\_LT_EOF >> "$cfgfile" 18651# AIX sometimes has problems with the GCC collect2 program. For some 18652# reason, if we set the COLLECT_NAMES environment variable, the problems 18653# vanish in a puff of smoke. 18654if test "X${COLLECT_NAMES+set}" != Xset; then 18655 COLLECT_NAMES= 18656 export COLLECT_NAMES 18657fi 18658_LT_EOF 18659 ;; 18660 esac 18661 18662 18663ltmain="$ac_aux_dir/ltmain.sh" 18664 18665 18666 # We use sed instead of cat because bash on DJGPP gets confused if 18667 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18668 # text mode, it properly converts lines to CR/LF. This bash problem 18669 # is reportedly fixed, but why not run on old versions too? 18670 sed '$q' "$ltmain" >> "$cfgfile" \ 18671 || (rm -f "$cfgfile"; exit 1) 18672 18673 if test x"$xsi_shell" = xyes; then 18674 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18675func_dirname ()\ 18676{\ 18677\ case ${1} in\ 18678\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18679\ * ) func_dirname_result="${3}" ;;\ 18680\ esac\ 18681} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18682 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18684test 0 -eq $? || _lt_function_replace_fail=: 18685 18686 18687 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18688func_basename ()\ 18689{\ 18690\ func_basename_result="${1##*/}"\ 18691} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18692 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18694test 0 -eq $? || _lt_function_replace_fail=: 18695 18696 18697 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18698func_dirname_and_basename ()\ 18699{\ 18700\ case ${1} in\ 18701\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18702\ * ) func_dirname_result="${3}" ;;\ 18703\ esac\ 18704\ func_basename_result="${1##*/}"\ 18705} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18706 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18708test 0 -eq $? || _lt_function_replace_fail=: 18709 18710 18711 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18712func_stripname ()\ 18713{\ 18714\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18715\ # positional parameters, so assign one to ordinary parameter first.\ 18716\ func_stripname_result=${3}\ 18717\ func_stripname_result=${func_stripname_result#"${1}"}\ 18718\ func_stripname_result=${func_stripname_result%"${2}"}\ 18719} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18720 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18722test 0 -eq $? || _lt_function_replace_fail=: 18723 18724 18725 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18726func_split_long_opt ()\ 18727{\ 18728\ func_split_long_opt_name=${1%%=*}\ 18729\ func_split_long_opt_arg=${1#*=}\ 18730} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18731 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18733test 0 -eq $? || _lt_function_replace_fail=: 18734 18735 18736 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18737func_split_short_opt ()\ 18738{\ 18739\ func_split_short_opt_arg=${1#??}\ 18740\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18741} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18742 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18744test 0 -eq $? || _lt_function_replace_fail=: 18745 18746 18747 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18748func_lo2o ()\ 18749{\ 18750\ case ${1} in\ 18751\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18752\ *) func_lo2o_result=${1} ;;\ 18753\ esac\ 18754} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18755 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18757test 0 -eq $? || _lt_function_replace_fail=: 18758 18759 18760 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18761func_xform ()\ 18762{\ 18763 func_xform_result=${1%.*}.lo\ 18764} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18765 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18767test 0 -eq $? || _lt_function_replace_fail=: 18768 18769 18770 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18771func_arith ()\ 18772{\ 18773 func_arith_result=$(( $* ))\ 18774} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18775 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18777test 0 -eq $? || _lt_function_replace_fail=: 18778 18779 18780 sed -e '/^func_len ()$/,/^} # func_len /c\ 18781func_len ()\ 18782{\ 18783 func_len_result=${#1}\ 18784} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18785 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18787test 0 -eq $? || _lt_function_replace_fail=: 18788 18789fi 18790 18791if test x"$lt_shell_append" = xyes; then 18792 sed -e '/^func_append ()$/,/^} # func_append /c\ 18793func_append ()\ 18794{\ 18795 eval "${1}+=\\${2}"\ 18796} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18797 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18799test 0 -eq $? || _lt_function_replace_fail=: 18800 18801 18802 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18803func_append_quoted ()\ 18804{\ 18805\ func_quote_for_eval "${2}"\ 18806\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18807} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18808 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18810test 0 -eq $? || _lt_function_replace_fail=: 18811 18812 18813 # Save a `func_append' function call where possible by direct use of '+=' 18814 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18815 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18817 test 0 -eq $? || _lt_function_replace_fail=: 18818else 18819 # Save a `func_append' function call even when '+=' is not available 18820 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18821 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18823 test 0 -eq $? || _lt_function_replace_fail=: 18824fi 18825 18826if test x"$_lt_function_replace_fail" = x":"; then 18827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18828$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18829fi 18830 18831 18832 mv -f "$cfgfile" "$ofile" || 18833 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18834 chmod +x "$ofile" 18835 18836 ;; 18837 "disable-rpath":C) 18838 sed < libtool > libtool-2 \ 18839 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 18840 mv libtool-2 libtool 18841 chmod 755 libtool 18842 libtool="./libtool" 18843 ;; 18844 18845 esac 18846done # for ac_tag 18847 18848 18849as_fn_exit 0 18850_ACEOF 18851ac_clean_files=$ac_clean_files_save 18852 18853test $ac_write_fail = 0 || 18854 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18855 18856 18857# configure is writing to config.log, and then calls config.status. 18858# config.status does its own redirection, appending to config.log. 18859# Unfortunately, on DOS this fails, as config.log is still kept open 18860# by configure, so config.status won't be able to write to it; its 18861# output is simply discarded. So we exec the FD to /dev/null, 18862# effectively closing config.log, so it can be properly (re)opened and 18863# appended to by config.status. When coming back to configure, we 18864# need to make the FD available again. 18865if test "$no_create" != yes; then 18866 ac_cs_success=: 18867 ac_config_status_args= 18868 test "$silent" = yes && 18869 ac_config_status_args="$ac_config_status_args --quiet" 18870 exec 5>/dev/null 18871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18872 exec 5>>config.log 18873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18874 # would make configure fail if this is the last instruction. 18875 $ac_cs_success || as_fn_exit 1 18876fi 18877if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18879$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18880fi 18881 18882 18883echo "copying header files" 18884 18885for file in $srcdir/ldns//*.h; do 18886 sh $srcdir/install-sh -m 644 $file ldns/ 18887done 18888 18889 18890 18891 18892 18893