1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for ldns 1.6.13. 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.13' 574PACKAGE_STRING='ldns 1.6.13' 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 616ldns_build_config_have_attr_unused 617ldns_build_config_have_attr_format 618ldns_build_config_have_ssl 619WINDRES 620LIBOBJS 621LIBPCAP_LIBS 622include_unistd_h 623include_systypes_h 624include_inttypes_h 625ldns_build_config_have_inttypes_h 626include_sys_socket_h 627LIBSSL_LIBS 628LIBSSL_LDFLAGS 629LIBSSL_CPPFLAGS 630RUNTIME_PATH 631HAVE_SSL 632OTOOL64 633OTOOL 634LIPO 635NMEDIT 636DSYMUTIL 637MANIFEST_TOOL 638AWK 639RANLIB 640STRIP 641ac_ct_AR 642DLLTOOL 643OBJDUMP 644LN_S 645NM 646ac_ct_DUMPBIN 647DUMPBIN 648LD 649FGREP 650SED 651LIBTOOL 652AR 653libtool 654PYLDNSXUNINST 655PYLDNSXINST 656PYLDNSUNINST 657PYLDNSINST 658PYLDNSX 659PYTHON_X_CFLAGS 660swig 661PYLDNS 662SWIG_LIB 663SWIG 664SWIGPY3 665PYTHON_EXTRA_LDFLAGS 666PYTHON_EXTRA_LIBS 667PYTHON_SITE_PKG 668PYTHON_LDFLAGS 669PYTHON_CPPFLAGS 670PYTHON 671PYTHON_VERSION 672UNINSTALL_CONFIG_MANPAGE 673UNINSTALL_CONFIG 674INSTALL_CONFIG_MANPAGE 675INSTALL_CONFIG 676LINT_EXAMPLES 677CLEAN_EXAMPLES 678UNINSTALL_EXAMPLES 679INSTALL_EXAMPLES 680EXAMPLES 681LINT_DRILL 682CLEAN_DRILL 683UNINSTALL_DRILL 684INSTALL_DRILL 685DRILL 686doxygen 687LINTFLAGS 688host_os 689host_vendor 690host_cpu 691host 692build_os 693build_vendor 694build_cpu 695build 696SET_MAKE 697DEPFLAG 698EGREP 699GREP 700CPP 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708LDNS_VERSION_MICRO 709LDNS_VERSION_MINOR 710LDNS_VERSION_MAJOR 711LIBTOOL_VERSION_INFO 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753with_drill 754with_examples 755enable_ldns_config 756with_pyldns 757with_pyldnsx 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762with_gnu_ld 763with_sysroot 764enable_libtool_lock 765with_ssl 766enable_sha2 767enable_gost 768enable_ecdsa 769enable_rpath 770' 771 ac_precious_vars='build_alias 772host_alias 773target_alias 774CC 775CFLAGS 776LDFLAGS 777LIBS 778CPPFLAGS 779CPP 780PYTHON_VERSION' 781 782 783# Initialize some variables set by options. 784ac_init_help= 785ac_init_version=false 786ac_unrecognized_opts= 787ac_unrecognized_sep= 788# The variables have the same names as the options, with 789# dashes changed to underlines. 790cache_file=/dev/null 791exec_prefix=NONE 792no_create= 793no_recursion= 794prefix=NONE 795program_prefix=NONE 796program_suffix=NONE 797program_transform_name=s,x,x, 798silent= 799site= 800srcdir= 801verbose= 802x_includes=NONE 803x_libraries=NONE 804 805# Installation directory options. 806# These are left unexpanded so users can "make install exec_prefix=/foo" 807# and all the variables that are supposed to be based on exec_prefix 808# by default will actually change. 809# Use braces instead of parens because sh, perl, etc. also accept them. 810# (The list follows the same order as the GNU Coding Standards.) 811bindir='${exec_prefix}/bin' 812sbindir='${exec_prefix}/sbin' 813libexecdir='${exec_prefix}/libexec' 814datarootdir='${prefix}/share' 815datadir='${datarootdir}' 816sysconfdir='${prefix}/etc' 817sharedstatedir='${prefix}/com' 818localstatedir='${prefix}/var' 819includedir='${prefix}/include' 820oldincludedir='/usr/include' 821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 822infodir='${datarootdir}/info' 823htmldir='${docdir}' 824dvidir='${docdir}' 825pdfdir='${docdir}' 826psdir='${docdir}' 827libdir='${exec_prefix}/lib' 828localedir='${datarootdir}/locale' 829mandir='${datarootdir}/man' 830 831ac_prev= 832ac_dashdash= 833for ac_option 834do 835 # If the previous option needs an argument, assign it. 836 if test -n "$ac_prev"; then 837 eval $ac_prev=\$ac_option 838 ac_prev= 839 continue 840 fi 841 842 case $ac_option in 843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 844 *=) ac_optarg= ;; 845 *) ac_optarg=yes ;; 846 esac 847 848 # Accept the important Cygnus configure options, so we can diagnose typos. 849 850 case $ac_dashdash$ac_option in 851 --) 852 ac_dashdash=yes ;; 853 854 -bindir | --bindir | --bindi | --bind | --bin | --bi) 855 ac_prev=bindir ;; 856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 857 bindir=$ac_optarg ;; 858 859 -build | --build | --buil | --bui | --bu) 860 ac_prev=build_alias ;; 861 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 862 build_alias=$ac_optarg ;; 863 864 -cache-file | --cache-file | --cache-fil | --cache-fi \ 865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 866 ac_prev=cache_file ;; 867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 869 cache_file=$ac_optarg ;; 870 871 --config-cache | -C) 872 cache_file=config.cache ;; 873 874 -datadir | --datadir | --datadi | --datad) 875 ac_prev=datadir ;; 876 -datadir=* | --datadir=* | --datadi=* | --datad=*) 877 datadir=$ac_optarg ;; 878 879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 880 | --dataroo | --dataro | --datar) 881 ac_prev=datarootdir ;; 882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 884 datarootdir=$ac_optarg ;; 885 886 -disable-* | --disable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: $ac_useropt" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=no ;; 901 902 -docdir | --docdir | --docdi | --doc | --do) 903 ac_prev=docdir ;; 904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 905 docdir=$ac_optarg ;; 906 907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 908 ac_prev=dvidir ;; 909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 910 dvidir=$ac_optarg ;; 911 912 -enable-* | --enable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=\$ac_optarg ;; 927 928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 930 | --exec | --exe | --ex) 931 ac_prev=exec_prefix ;; 932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 934 | --exec=* | --exe=* | --ex=*) 935 exec_prefix=$ac_optarg ;; 936 937 -gas | --gas | --ga | --g) 938 # Obsolete; use --with-gas. 939 with_gas=yes ;; 940 941 -help | --help | --hel | --he | -h) 942 ac_init_help=long ;; 943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 944 ac_init_help=recursive ;; 945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 946 ac_init_help=short ;; 947 948 -host | --host | --hos | --ho) 949 ac_prev=host_alias ;; 950 -host=* | --host=* | --hos=* | --ho=*) 951 host_alias=$ac_optarg ;; 952 953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 954 ac_prev=htmldir ;; 955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 956 | --ht=*) 957 htmldir=$ac_optarg ;; 958 959 -includedir | --includedir | --includedi | --included | --include \ 960 | --includ | --inclu | --incl | --inc) 961 ac_prev=includedir ;; 962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 963 | --includ=* | --inclu=* | --incl=* | --inc=*) 964 includedir=$ac_optarg ;; 965 966 -infodir | --infodir | --infodi | --infod | --info | --inf) 967 ac_prev=infodir ;; 968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 969 infodir=$ac_optarg ;; 970 971 -libdir | --libdir | --libdi | --libd) 972 ac_prev=libdir ;; 973 -libdir=* | --libdir=* | --libdi=* | --libd=*) 974 libdir=$ac_optarg ;; 975 976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 977 | --libexe | --libex | --libe) 978 ac_prev=libexecdir ;; 979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 980 | --libexe=* | --libex=* | --libe=*) 981 libexecdir=$ac_optarg ;; 982 983 -localedir | --localedir | --localedi | --localed | --locale) 984 ac_prev=localedir ;; 985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 986 localedir=$ac_optarg ;; 987 988 -localstatedir | --localstatedir | --localstatedi | --localstated \ 989 | --localstate | --localstat | --localsta | --localst | --locals) 990 ac_prev=localstatedir ;; 991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 993 localstatedir=$ac_optarg ;; 994 995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 996 ac_prev=mandir ;; 997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 998 mandir=$ac_optarg ;; 999 1000 -nfp | --nfp | --nf) 1001 # Obsolete; use --without-fp. 1002 with_fp=no ;; 1003 1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1005 | --no-cr | --no-c | -n) 1006 no_create=yes ;; 1007 1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1010 no_recursion=yes ;; 1011 1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1014 | --oldin | --oldi | --old | --ol | --o) 1015 ac_prev=oldincludedir ;; 1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1019 oldincludedir=$ac_optarg ;; 1020 1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1022 ac_prev=prefix ;; 1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1024 prefix=$ac_optarg ;; 1025 1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1027 | --program-pre | --program-pr | --program-p) 1028 ac_prev=program_prefix ;; 1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1031 program_prefix=$ac_optarg ;; 1032 1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1034 | --program-suf | --program-su | --program-s) 1035 ac_prev=program_suffix ;; 1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1038 program_suffix=$ac_optarg ;; 1039 1040 -program-transform-name | --program-transform-name \ 1041 | --program-transform-nam | --program-transform-na \ 1042 | --program-transform-n | --program-transform- \ 1043 | --program-transform | --program-transfor \ 1044 | --program-transfo | --program-transf \ 1045 | --program-trans | --program-tran \ 1046 | --progr-tra | --program-tr | --program-t) 1047 ac_prev=program_transform_name ;; 1048 -program-transform-name=* | --program-transform-name=* \ 1049 | --program-transform-nam=* | --program-transform-na=* \ 1050 | --program-transform-n=* | --program-transform-=* \ 1051 | --program-transform=* | --program-transfor=* \ 1052 | --program-transfo=* | --program-transf=* \ 1053 | --program-trans=* | --program-tran=* \ 1054 | --progr-tra=* | --program-tr=* | --program-t=*) 1055 program_transform_name=$ac_optarg ;; 1056 1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1058 ac_prev=pdfdir ;; 1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1060 pdfdir=$ac_optarg ;; 1061 1062 -psdir | --psdir | --psdi | --psd | --ps) 1063 ac_prev=psdir ;; 1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1065 psdir=$ac_optarg ;; 1066 1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1068 | -silent | --silent | --silen | --sile | --sil) 1069 silent=yes ;; 1070 1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1072 ac_prev=sbindir ;; 1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1074 | --sbi=* | --sb=*) 1075 sbindir=$ac_optarg ;; 1076 1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1079 | --sharedst | --shareds | --shared | --share | --shar \ 1080 | --sha | --sh) 1081 ac_prev=sharedstatedir ;; 1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1085 | --sha=* | --sh=*) 1086 sharedstatedir=$ac_optarg ;; 1087 1088 -site | --site | --sit) 1089 ac_prev=site ;; 1090 -site=* | --site=* | --sit=*) 1091 site=$ac_optarg ;; 1092 1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1094 ac_prev=srcdir ;; 1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1096 srcdir=$ac_optarg ;; 1097 1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1099 | --syscon | --sysco | --sysc | --sys | --sy) 1100 ac_prev=sysconfdir ;; 1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1103 sysconfdir=$ac_optarg ;; 1104 1105 -target | --target | --targe | --targ | --tar | --ta | --t) 1106 ac_prev=target_alias ;; 1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1108 target_alias=$ac_optarg ;; 1109 1110 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1111 verbose=yes ;; 1112 1113 -version | --version | --versio | --versi | --vers | -V) 1114 ac_init_version=: ;; 1115 1116 -with-* | --with-*) 1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1118 # Reject names that are not valid shell variable names. 1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1120 as_fn_error $? "invalid package name: $ac_useropt" 1121 ac_useropt_orig=$ac_useropt 1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1123 case $ac_user_opts in 1124 *" 1125"with_$ac_useropt" 1126"*) ;; 1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1128 ac_unrecognized_sep=', ';; 1129 esac 1130 eval with_$ac_useropt=\$ac_optarg ;; 1131 1132 -without-* | --without-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=no ;; 1147 1148 --x) 1149 # Obsolete; use --with-x. 1150 with_x=yes ;; 1151 1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1153 | --x-incl | --x-inc | --x-in | --x-i) 1154 ac_prev=x_includes ;; 1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1157 x_includes=$ac_optarg ;; 1158 1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1161 ac_prev=x_libraries ;; 1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1164 x_libraries=$ac_optarg ;; 1165 1166 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1167Try \`$0 --help' for more information" 1168 ;; 1169 1170 *=*) 1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1172 # Reject names that are not valid shell variable names. 1173 case $ac_envvar in #( 1174 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1176 esac 1177 eval $ac_envvar=\$ac_optarg 1178 export $ac_envvar ;; 1179 1180 *) 1181 # FIXME: should be removed in autoconf 3.0. 1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1186 ;; 1187 1188 esac 1189done 1190 1191if test -n "$ac_prev"; then 1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1193 as_fn_error $? "missing argument to $ac_option" 1194fi 1195 1196if test -n "$ac_unrecognized_opts"; then 1197 case $enable_option_checking in 1198 no) ;; 1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1201 esac 1202fi 1203 1204# Check all directory arguments for consistency. 1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1206 datadir sysconfdir sharedstatedir localstatedir includedir \ 1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1208 libdir localedir mandir 1209do 1210 eval ac_val=\$$ac_var 1211 # Remove trailing slashes. 1212 case $ac_val in 1213 */ ) 1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1215 eval $ac_var=\$ac_val;; 1216 esac 1217 # Be sure to have absolute directory names. 1218 case $ac_val in 1219 [\\/$]* | ?:[\\/]* ) continue;; 1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1221 esac 1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1223done 1224 1225# There might be people who depend on the old broken behavior: `$host' 1226# used to hold the argument of --host etc. 1227# FIXME: To remove some day. 1228build=$build_alias 1229host=$host_alias 1230target=$target_alias 1231 1232# FIXME: To remove some day. 1233if test "x$host_alias" != x; then 1234 if test "x$build_alias" = x; then 1235 cross_compiling=maybe 1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1237 If a cross compiler is detected then cross compile mode will be used" >&2 1238 elif test "x$build_alias" != "x$host_alias"; then 1239 cross_compiling=yes 1240 fi 1241fi 1242 1243ac_tool_prefix= 1244test -n "$host_alias" && ac_tool_prefix=$host_alias- 1245 1246test "$silent" = yes && exec 6>/dev/null 1247 1248 1249ac_pwd=`pwd` && test -n "$ac_pwd" && 1250ac_ls_di=`ls -di .` && 1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1252 as_fn_error $? "working directory cannot be determined" 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 as_fn_error $? "pwd does not report name of working directory" 1255 1256 1257# Find the source files, if location was not specified. 1258if test -z "$srcdir"; then 1259 ac_srcdir_defaulted=yes 1260 # Try the directory containing this script, then the parent directory. 1261 ac_confdir=`$as_dirname -- "$as_myself" || 1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1263 X"$as_myself" : 'X\(//\)[^/]' \| \ 1264 X"$as_myself" : 'X\(//\)$' \| \ 1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1266$as_echo X"$as_myself" | 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)[^/].*/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\).*/{ 1280 s//\1/ 1281 q 1282 } 1283 s/.*/./; q'` 1284 srcdir=$ac_confdir 1285 if test ! -r "$srcdir/$ac_unique_file"; then 1286 srcdir=.. 1287 fi 1288else 1289 ac_srcdir_defaulted=no 1290fi 1291if test ! -r "$srcdir/$ac_unique_file"; then 1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1294fi 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1296ac_abs_confdir=`( 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1298 pwd)` 1299# When building in place, set srcdir=. 1300if test "$ac_abs_confdir" = "$ac_pwd"; then 1301 srcdir=. 1302fi 1303# Remove unnecessary trailing slashes from srcdir. 1304# Double slashes in file names in object file debugging info 1305# mess up M-x gdb in Emacs. 1306case $srcdir in 1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1308esac 1309for ac_var in $ac_precious_vars; do 1310 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_env_${ac_var}_value=\$${ac_var} 1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1314done 1315 1316# 1317# Report the --help message. 1318# 1319if test "$ac_init_help" = "long"; then 1320 # Omit some internal or obsolete options to make the list less imposing. 1321 # This message is too long to be a string in the A/UX 3.1 sh. 1322 cat <<_ACEOF 1323\`configure' configures ldns 1.6.13 to adapt to many kinds of systems. 1324 1325Usage: $0 [OPTION]... [VAR=VALUE]... 1326 1327To assign environment variables (e.g., CC, CFLAGS...), specify them as 1328VAR=VALUE. See below for descriptions of some of the useful variables. 1329 1330Defaults for the options are specified in brackets. 1331 1332Configuration: 1333 -h, --help display this help and exit 1334 --help=short display options specific to this package 1335 --help=recursive display the short help of all the included packages 1336 -V, --version display version information and exit 1337 -q, --quiet, --silent do not print \`checking ...' messages 1338 --cache-file=FILE cache test results in FILE [disabled] 1339 -C, --config-cache alias for \`--cache-file=config.cache' 1340 -n, --no-create do not create output files 1341 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1342 1343Installation directories: 1344 --prefix=PREFIX install architecture-independent files in PREFIX 1345 [$ac_default_prefix] 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1347 [PREFIX] 1348 1349By default, \`make install' will install all the files in 1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1351an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1352for instance \`--prefix=\$HOME'. 1353 1354For better control, use the options below. 1355 1356Fine tuning of the installation directories: 1357 --bindir=DIR user executables [EPREFIX/bin] 1358 --sbindir=DIR system admin executables [EPREFIX/sbin] 1359 --libexecdir=DIR program executables [EPREFIX/libexec] 1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1363 --libdir=DIR object code libraries [EPREFIX/lib] 1364 --includedir=DIR C header files [PREFIX/include] 1365 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1368 --infodir=DIR info documentation [DATAROOTDIR/info] 1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1370 --mandir=DIR man documentation [DATAROOTDIR/man] 1371 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns] 1372 --htmldir=DIR html documentation [DOCDIR] 1373 --dvidir=DIR dvi documentation [DOCDIR] 1374 --pdfdir=DIR pdf documentation [DOCDIR] 1375 --psdir=DIR ps documentation [DOCDIR] 1376_ACEOF 1377 1378 cat <<\_ACEOF 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of ldns 1.6.13:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --disable-ldns-config disable installation of ldns-config (default=enabled) 1397 --enable-shared[=PKGS] build shared libraries [default=yes] 1398 --enable-static[=PKGS] build static libraries [default=yes] 1399 --enable-fast-install[=PKGS] 1400 optimize for fast installation [default=yes] 1401 --disable-libtool-lock avoid locking (might break parallel builds) 1402 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1403 --disable-gost Disable GOST support 1404 --disable-ecdsa Disable ECDSA support 1405 --disable-rpath disable hardcoded rpath (default=enabled) 1406 1407Optional Packages: 1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1410 --with-drill Also build drill. 1411 --with-examples Also build examples. 1412 --with-pyldns generate python library, or --without-pyldns to 1413 disable Python support. 1414 --without-pyldnsx Do not install the ldnsx python module, or 1415 --with-pyldnsx to install it. 1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1417 both] 1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1419 --with-sysroot=DIR Search for dependent libraries within DIR 1420 (or the compiler's sysroot if not specified). 1421 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1422 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1423 /usr) 1424 1425Some influential environment variables: 1426 CC C compiler command 1427 CFLAGS C compiler flags 1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1429 nonstandard directory <lib dir> 1430 LIBS libraries to pass to the linker, e.g. -l<library> 1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1432 you have headers in a nonstandard directory <include dir> 1433 CPP C preprocessor 1434 PYTHON_VERSION 1435 The installed Python version to use, for example '2.3'. This 1436 string will be appended to the Python interpreter canonical 1437 name. 1438 1439Use these variables to override the choices made by `configure' or to help 1440it to find libraries and programs with nonstandard names/locations. 1441 1442Report bugs to <libdns@nlnetlabs.nl>. 1443_ACEOF 1444ac_status=$? 1445fi 1446 1447if test "$ac_init_help" = "recursive"; then 1448 # If there are subdirs, report their specific --help. 1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1450 test -d "$ac_dir" || 1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1452 continue 1453 ac_builddir=. 1454 1455case "$ac_dir" in 1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1457*) 1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1459 # A ".." for each directory in $ac_dir_suffix. 1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1461 case $ac_top_builddir_sub in 1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1464 esac ;; 1465esac 1466ac_abs_top_builddir=$ac_pwd 1467ac_abs_builddir=$ac_pwd$ac_dir_suffix 1468# for backward compatibility: 1469ac_top_builddir=$ac_top_build_prefix 1470 1471case $srcdir in 1472 .) # We are building in place. 1473 ac_srcdir=. 1474 ac_top_srcdir=$ac_top_builddir_sub 1475 ac_abs_top_srcdir=$ac_pwd ;; 1476 [\\/]* | ?:[\\/]* ) # Absolute name. 1477 ac_srcdir=$srcdir$ac_dir_suffix; 1478 ac_top_srcdir=$srcdir 1479 ac_abs_top_srcdir=$srcdir ;; 1480 *) # Relative name. 1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1482 ac_top_srcdir=$ac_top_build_prefix$srcdir 1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1484esac 1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1486 1487 cd "$ac_dir" || { ac_status=$?; continue; } 1488 # Check for guested configure. 1489 if test -f "$ac_srcdir/configure.gnu"; then 1490 echo && 1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1492 elif test -f "$ac_srcdir/configure"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure" --help=recursive 1495 else 1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1497 fi || ac_status=$? 1498 cd "$ac_pwd" || { ac_status=$?; break; } 1499 done 1500fi 1501 1502test -n "$ac_init_help" && exit $ac_status 1503if $ac_init_version; then 1504 cat <<\_ACEOF 1505ldns configure 1.6.13 1506generated by GNU Autoconf 2.68 1507 1508Copyright (C) 2010 Free Software Foundation, Inc. 1509This configure script is free software; the Free Software Foundation 1510gives unlimited permission to copy, distribute and modify it. 1511_ACEOF 1512 exit 1513fi 1514 1515## ------------------------ ## 1516## Autoconf initialization. ## 1517## ------------------------ ## 1518 1519# ac_fn_c_try_compile LINENO 1520# -------------------------- 1521# Try to compile conftest.$ac_ext, and return whether this succeeded. 1522ac_fn_c_try_compile () 1523{ 1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525 rm -f conftest.$ac_objext 1526 if { { ac_try="$ac_compile" 1527case "(($ac_try" in 1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1529 *) ac_try_echo=$ac_try;; 1530esac 1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1532$as_echo "$ac_try_echo"; } >&5 1533 (eval "$ac_compile") 2>conftest.err 1534 ac_status=$? 1535 if test -s conftest.err; then 1536 grep -v '^ *+' conftest.err >conftest.er1 1537 cat conftest.er1 >&5 1538 mv -f conftest.er1 conftest.err 1539 fi 1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1541 test $ac_status = 0; } && { 1542 test -z "$ac_c_werror_flag" || 1543 test ! -s conftest.err 1544 } && test -s conftest.$ac_objext; then : 1545 ac_retval=0 1546else 1547 $as_echo "$as_me: failed program was:" >&5 1548sed 's/^/| /' conftest.$ac_ext >&5 1549 1550 ac_retval=1 1551fi 1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1553 as_fn_set_status $ac_retval 1554 1555} # ac_fn_c_try_compile 1556 1557# ac_fn_c_try_cpp LINENO 1558# ---------------------- 1559# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_cpp () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if { { ac_try="$ac_cpp conftest.$ac_ext" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } > conftest.i && { 1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 }; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_cpp 1593 1594# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1595# ------------------------------------------------------- 1596# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1597# the include files in INCLUDES and setting the cache variable VAR 1598# accordingly. 1599ac_fn_c_check_header_mongrel () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 if eval \${$3+:} false; then : 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1604$as_echo_n "checking for $2... " >&6; } 1605if eval \${$3+:} false; then : 1606 $as_echo_n "(cached) " >&6 1607fi 1608eval ac_res=\$$3 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1610$as_echo "$ac_res" >&6; } 1611else 1612 # Is the header compilable? 1613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1614$as_echo_n "checking $2 usability... " >&6; } 1615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1616/* end confdefs.h. */ 1617$4 1618#include <$2> 1619_ACEOF 1620if ac_fn_c_try_compile "$LINENO"; then : 1621 ac_header_compiler=yes 1622else 1623 ac_header_compiler=no 1624fi 1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1627$as_echo "$ac_header_compiler" >&6; } 1628 1629# Is the header present? 1630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1631$as_echo_n "checking $2 presence... " >&6; } 1632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1633/* end confdefs.h. */ 1634#include <$2> 1635_ACEOF 1636if ac_fn_c_try_cpp "$LINENO"; then : 1637 ac_header_preproc=yes 1638else 1639 ac_header_preproc=no 1640fi 1641rm -f conftest.err conftest.i conftest.$ac_ext 1642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1643$as_echo "$ac_header_preproc" >&6; } 1644 1645# So? What about this header? 1646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1647 yes:no: ) 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1649$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1651$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1652 ;; 1653 no:yes:* ) 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1655$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1657$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1659$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1661$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1663$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1664( $as_echo "## ---------------------------------- ## 1665## Report this to libdns@nlnetlabs.nl ## 1666## ---------------------------------- ##" 1667 ) | sed "s/^/$as_me: WARNING: /" >&2 1668 ;; 1669esac 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 eval "$3=\$ac_header_compiler" 1676fi 1677eval ac_res=\$$3 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679$as_echo "$ac_res" >&6; } 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_c_check_header_mongrel 1684 1685# ac_fn_c_try_run LINENO 1686# ---------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1688# that executables *can* be run. 1689ac_fn_c_try_run () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>&5 1700 ac_status=$? 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1703 { { case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_try") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; }; }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: program exited with status $ac_status" >&5 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=$ac_status 1720fi 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_run 1726 1727# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1728# ------------------------------------------------------- 1729# Tests whether HEADER exists and can be compiled using the include files in 1730# INCLUDES, setting the cache variable VAR accordingly. 1731ac_fn_c_check_header_compile () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735$as_echo_n "checking for $2... " >&6; } 1736if eval \${$3+:} false; then : 1737 $as_echo_n "(cached) " >&6 1738else 1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741$4 1742#include <$2> 1743_ACEOF 1744if ac_fn_c_try_compile "$LINENO"; then : 1745 eval "$3=yes" 1746else 1747 eval "$3=no" 1748fi 1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1750fi 1751eval ac_res=\$$3 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1753$as_echo "$ac_res" >&6; } 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 1756} # ac_fn_c_check_header_compile 1757 1758# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1759# ------------------------------------------- 1760# Tests whether TYPE exists after having included INCLUDES, setting cache 1761# variable VAR accordingly. 1762ac_fn_c_check_type () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766$as_echo_n "checking for $2... " >&6; } 1767if eval \${$3+:} false; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 eval "$3=no" 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774int 1775main () 1776{ 1777if (sizeof ($2)) 1778 return 0; 1779 ; 1780 return 0; 1781} 1782_ACEOF 1783if ac_fn_c_try_compile "$LINENO"; then : 1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1785/* end confdefs.h. */ 1786$4 1787int 1788main () 1789{ 1790if (sizeof (($2))) 1791 return 0; 1792 ; 1793 return 0; 1794} 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO"; then : 1797 1798else 1799 eval "$3=yes" 1800fi 1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1802fi 1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1804fi 1805eval ac_res=\$$3 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1807$as_echo "$ac_res" >&6; } 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 1810} # ac_fn_c_check_type 1811 1812# ac_fn_c_try_link LINENO 1813# ----------------------- 1814# Try to link conftest.$ac_ext, and return whether this succeeded. 1815ac_fn_c_try_link () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 rm -f conftest.$ac_objext conftest$ac_exeext 1819 if { { ac_try="$ac_link" 1820case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823esac 1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825$as_echo "$ac_try_echo"; } >&5 1826 (eval "$ac_link") 2>conftest.err 1827 ac_status=$? 1828 if test -s conftest.err; then 1829 grep -v '^ *+' conftest.err >conftest.er1 1830 cat conftest.er1 >&5 1831 mv -f conftest.er1 conftest.err 1832 fi 1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; } && { 1835 test -z "$ac_c_werror_flag" || 1836 test ! -s conftest.err 1837 } && test -s conftest$ac_exeext && { 1838 test "$cross_compiling" = yes || 1839 $as_test_x conftest$ac_exeext 1840 }; then : 1841 ac_retval=0 1842else 1843 $as_echo "$as_me: failed program was:" >&5 1844sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847fi 1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1850 # interfere with the next link command; also delete a directory that is 1851 # left behind by Apple's compiler. We do this before executing the actions. 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 as_fn_set_status $ac_retval 1855 1856} # ac_fn_c_try_link 1857 1858# ac_fn_c_check_func LINENO FUNC VAR 1859# ---------------------------------- 1860# Tests whether FUNC exists, setting the cache variable VAR accordingly 1861ac_fn_c_check_func () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865$as_echo_n "checking for $2... " >&6; } 1866if eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868else 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870/* end confdefs.h. */ 1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873#define $2 innocuous_$2 1874 1875/* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. 1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1878 <limits.h> exists even on freestanding compilers. */ 1879 1880#ifdef __STDC__ 1881# include <limits.h> 1882#else 1883# include <assert.h> 1884#endif 1885 1886#undef $2 1887 1888/* Override any GCC internal prototype to avoid an error. 1889 Use char because int might match the return type of a GCC 1890 builtin and then its argument prototype would still apply. */ 1891#ifdef __cplusplus 1892extern "C" 1893#endif 1894char $2 (); 1895/* The GNU C library defines this for functions which it implements 1896 to always fail with ENOSYS. Some functions are actually named 1897 something starting with __ and the normal name is an alias. */ 1898#if defined __stub_$2 || defined __stub___$2 1899choke me 1900#endif 1901 1902int 1903main () 1904{ 1905return $2 (); 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_link "$LINENO"; then : 1911 eval "$3=yes" 1912else 1913 eval "$3=no" 1914fi 1915rm -f core conftest.err conftest.$ac_objext \ 1916 conftest$ac_exeext conftest.$ac_ext 1917fi 1918eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920$as_echo "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_func 1924 1925# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1926# --------------------------------------------- 1927# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1928# accordingly. 1929ac_fn_c_check_decl () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1935$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1936if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942int 1943main () 1944{ 1945#ifndef $as_decl_name 1946#ifdef __cplusplus 1947 (void) $as_decl_use; 1948#else 1949 (void) $as_decl_name; 1950#endif 1951#endif 1952 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 eval "$3=yes" 1959else 1960 eval "$3=no" 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963fi 1964eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966$as_echo "$ac_res" >&6; } 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 1969} # ac_fn_c_check_decl 1970 1971# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1972# -------------------------------------------- 1973# Tries to find the compile-time value of EXPR in a program that includes 1974# INCLUDES, setting VAR accordingly. Returns whether the value could be 1975# computed 1976ac_fn_c_compute_int () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 if test "$cross_compiling" = yes; then 1980 # Depending upon the size, compute the lo and hi bounds. 1981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983$4 1984int 1985main () 1986{ 1987static int test_array [1 - 2 * !(($2) >= 0)]; 1988test_array [0] = 0 1989 1990 ; 1991 return 0; 1992} 1993_ACEOF 1994if ac_fn_c_try_compile "$LINENO"; then : 1995 ac_lo=0 ac_mid=0 1996 while :; do 1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999$4 2000int 2001main () 2002{ 2003static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2004test_array [0] = 0 2005 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO"; then : 2011 ac_hi=$ac_mid; break 2012else 2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2014 if test $ac_lo -le $ac_mid; then 2015 ac_lo= ac_hi= 2016 break 2017 fi 2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021 done 2022else 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main () 2028{ 2029static int test_array [1 - 2 * !(($2) < 0)]; 2030test_array [0] = 0 2031 2032 ; 2033 return 0; 2034} 2035_ACEOF 2036if ac_fn_c_try_compile "$LINENO"; then : 2037 ac_hi=-1 ac_mid=-1 2038 while :; do 2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2040/* end confdefs.h. */ 2041$4 2042int 2043main () 2044{ 2045static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2046test_array [0] = 0 2047 2048 ; 2049 return 0; 2050} 2051_ACEOF 2052if ac_fn_c_try_compile "$LINENO"; then : 2053 ac_lo=$ac_mid; break 2054else 2055 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2056 if test $ac_mid -le $ac_hi; then 2057 ac_lo= ac_hi= 2058 break 2059 fi 2060 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2061fi 2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2063 done 2064else 2065 ac_lo= ac_hi= 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2068fi 2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2070# Binary search between lo and hi bounds. 2071while test "x$ac_lo" != "x$ac_hi"; do 2072 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2074/* end confdefs.h. */ 2075$4 2076int 2077main () 2078{ 2079static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2080test_array [0] = 0 2081 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_c_try_compile "$LINENO"; then : 2087 ac_hi=$ac_mid 2088else 2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2090fi 2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2092done 2093case $ac_lo in #(( 2094?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2095'') ac_retval=1 ;; 2096esac 2097 else 2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2099/* end confdefs.h. */ 2100$4 2101static long int longval () { return $2; } 2102static unsigned long int ulongval () { return $2; } 2103#include <stdio.h> 2104#include <stdlib.h> 2105int 2106main () 2107{ 2108 2109 FILE *f = fopen ("conftest.val", "w"); 2110 if (! f) 2111 return 1; 2112 if (($2) < 0) 2113 { 2114 long int i = longval (); 2115 if (i != ($2)) 2116 return 1; 2117 fprintf (f, "%ld", i); 2118 } 2119 else 2120 { 2121 unsigned long int i = ulongval (); 2122 if (i != ($2)) 2123 return 1; 2124 fprintf (f, "%lu", i); 2125 } 2126 /* Do not output a trailing newline, as this causes \r\n confusion 2127 on some platforms. */ 2128 return ferror (f) || fclose (f) != 0; 2129 2130 ; 2131 return 0; 2132} 2133_ACEOF 2134if ac_fn_c_try_run "$LINENO"; then : 2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2136else 2137 ac_retval=1 2138fi 2139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2140 conftest.$ac_objext conftest.beam conftest.$ac_ext 2141rm -f conftest.val 2142 2143 fi 2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2145 as_fn_set_status $ac_retval 2146 2147} # ac_fn_c_compute_int 2148 2149# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2150# ---------------------------------------------------- 2151# Tries to find if the field MEMBER exists in type AGGR, after including 2152# INCLUDES, setting cache variable VAR accordingly. 2153ac_fn_c_check_member () 2154{ 2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2157$as_echo_n "checking for $2.$3... " >&6; } 2158if eval \${$4+:} false; then : 2159 $as_echo_n "(cached) " >&6 2160else 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$5 2164int 2165main () 2166{ 2167static $2 ac_aggr; 2168if (ac_aggr.$3) 2169return 0; 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_compile "$LINENO"; then : 2175 eval "$4=yes" 2176else 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178/* end confdefs.h. */ 2179$5 2180int 2181main () 2182{ 2183static $2 ac_aggr; 2184if (sizeof ac_aggr.$3) 2185return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 eval "$4=yes" 2192else 2193 eval "$4=no" 2194fi 2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2198fi 2199eval ac_res=\$$4 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2201$as_echo "$ac_res" >&6; } 2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2203 2204} # ac_fn_c_check_member 2205cat >config.log <<_ACEOF 2206This file contains any messages produced by compilers while 2207running configure, to aid debugging if configure makes a mistake. 2208 2209It was created by ldns $as_me 1.6.13, which was 2210generated by GNU Autoconf 2.68. Invocation command line was 2211 2212 $ $0 $@ 2213 2214_ACEOF 2215exec 5>>config.log 2216{ 2217cat <<_ASUNAME 2218## --------- ## 2219## Platform. ## 2220## --------- ## 2221 2222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2223uname -m = `(uname -m) 2>/dev/null || echo unknown` 2224uname -r = `(uname -r) 2>/dev/null || echo unknown` 2225uname -s = `(uname -s) 2>/dev/null || echo unknown` 2226uname -v = `(uname -v) 2>/dev/null || echo unknown` 2227 2228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2230 2231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2234/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2238 2239_ASUNAME 2240 2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2242for as_dir in $PATH 2243do 2244 IFS=$as_save_IFS 2245 test -z "$as_dir" && as_dir=. 2246 $as_echo "PATH: $as_dir" 2247 done 2248IFS=$as_save_IFS 2249 2250} >&5 2251 2252cat >&5 <<_ACEOF 2253 2254 2255## ----------- ## 2256## Core tests. ## 2257## ----------- ## 2258 2259_ACEOF 2260 2261 2262# Keep a trace of the command line. 2263# Strip out --no-create and --no-recursion so they do not pile up. 2264# Strip out --silent because we don't want to record it for future runs. 2265# Also quote any args containing shell meta-characters. 2266# Make two passes to allow for proper duplicate-argument suppression. 2267ac_configure_args= 2268ac_configure_args0= 2269ac_configure_args1= 2270ac_must_keep_next=false 2271for ac_pass in 1 2 2272do 2273 for ac_arg 2274 do 2275 case $ac_arg in 2276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2278 | -silent | --silent | --silen | --sile | --sil) 2279 continue ;; 2280 *\'*) 2281 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2282 esac 2283 case $ac_pass in 2284 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2285 2) 2286 as_fn_append ac_configure_args1 " '$ac_arg'" 2287 if test $ac_must_keep_next = true; then 2288 ac_must_keep_next=false # Got value, back to normal. 2289 else 2290 case $ac_arg in 2291 *=* | --config-cache | -C | -disable-* | --disable-* \ 2292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2294 | -with-* | --with-* | -without-* | --without-* | --x) 2295 case "$ac_configure_args0 " in 2296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2297 esac 2298 ;; 2299 -* ) ac_must_keep_next=true ;; 2300 esac 2301 fi 2302 as_fn_append ac_configure_args " '$ac_arg'" 2303 ;; 2304 esac 2305 done 2306done 2307{ ac_configure_args0=; unset ac_configure_args0;} 2308{ ac_configure_args1=; unset ac_configure_args1;} 2309 2310# When interrupted or exit'd, cleanup temporary files, and complete 2311# config.log. We remove comments because anyway the quotes in there 2312# would cause problems or look ugly. 2313# WARNING: Use '\'' to represent an apostrophe within the trap. 2314# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2315trap 'exit_status=$? 2316 # Save into config.log some information that might help in debugging. 2317 { 2318 echo 2319 2320 $as_echo "## ---------------- ## 2321## Cache variables. ## 2322## ---------------- ##" 2323 echo 2324 # The following way of writing the cache mishandles newlines in values, 2325( 2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2327 eval ac_val=\$$ac_var 2328 case $ac_val in #( 2329 *${as_nl}*) 2330 case $ac_var in #( 2331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2332$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2333 esac 2334 case $ac_var in #( 2335 _ | IFS | as_nl) ;; #( 2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2337 *) { eval $ac_var=; unset $ac_var;} ;; 2338 esac ;; 2339 esac 2340 done 2341 (set) 2>&1 | 2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2343 *${as_nl}ac_space=\ *) 2344 sed -n \ 2345 "s/'\''/'\''\\\\'\'''\''/g; 2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2347 ;; #( 2348 *) 2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2350 ;; 2351 esac | 2352 sort 2353) 2354 echo 2355 2356 $as_echo "## ----------------- ## 2357## Output variables. ## 2358## ----------------- ##" 2359 echo 2360 for ac_var in $ac_subst_vars 2361 do 2362 eval ac_val=\$$ac_var 2363 case $ac_val in 2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2365 esac 2366 $as_echo "$ac_var='\''$ac_val'\''" 2367 done | sort 2368 echo 2369 2370 if test -n "$ac_subst_files"; then 2371 $as_echo "## ------------------- ## 2372## File substitutions. ## 2373## ------------------- ##" 2374 echo 2375 for ac_var in $ac_subst_files 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 fi 2385 2386 if test -s confdefs.h; then 2387 $as_echo "## ----------- ## 2388## confdefs.h. ## 2389## ----------- ##" 2390 echo 2391 cat confdefs.h 2392 echo 2393 fi 2394 test "$ac_signal" != 0 && 2395 $as_echo "$as_me: caught signal $ac_signal" 2396 $as_echo "$as_me: exit $exit_status" 2397 } >&5 2398 rm -f core *.core core.conftest.* && 2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2400 exit $exit_status 2401' 0 2402for ac_signal in 1 2 13 15; do 2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2404done 2405ac_signal=0 2406 2407# confdefs.h avoids OS command line length limits that DEFS can exceed. 2408rm -f -r conftest* confdefs.h 2409 2410$as_echo "/* confdefs.h */" > confdefs.h 2411 2412# Predefined preprocessor variables. 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_NAME "$PACKAGE_NAME" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2420_ACEOF 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_VERSION "$PACKAGE_VERSION" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_STRING "$PACKAGE_STRING" 2428_ACEOF 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_URL "$PACKAGE_URL" 2436_ACEOF 2437 2438 2439# Let the site file select an alternate cache file if it wants to. 2440# Prefer an explicitly selected file to automatically selected ones. 2441ac_site_file1=NONE 2442ac_site_file2=NONE 2443if test -n "$CONFIG_SITE"; then 2444 # We do not want a PATH search for config.site. 2445 case $CONFIG_SITE in #(( 2446 -*) ac_site_file1=./$CONFIG_SITE;; 2447 */*) ac_site_file1=$CONFIG_SITE;; 2448 *) ac_site_file1=./$CONFIG_SITE;; 2449 esac 2450elif test "x$prefix" != xNONE; then 2451 ac_site_file1=$prefix/share/config.site 2452 ac_site_file2=$prefix/etc/config.site 2453else 2454 ac_site_file1=$ac_default_prefix/share/config.site 2455 ac_site_file2=$ac_default_prefix/etc/config.site 2456fi 2457for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2458do 2459 test "x$ac_site_file" = xNONE && continue 2460 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2462$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2463 sed 's/^/| /' "$ac_site_file" >&5 2464 . "$ac_site_file" \ 2465 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2467as_fn_error $? "failed to load site script $ac_site_file 2468See \`config.log' for more details" "$LINENO" 5; } 2469 fi 2470done 2471 2472if test -r "$cache_file"; then 2473 # Some versions of bash will fail to source /dev/null (special files 2474 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2475 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2477$as_echo "$as_me: loading cache $cache_file" >&6;} 2478 case $cache_file in 2479 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2480 *) . "./$cache_file";; 2481 esac 2482 fi 2483else 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2485$as_echo "$as_me: creating cache $cache_file" >&6;} 2486 >$cache_file 2487fi 2488 2489# Check that the precious variables saved in the cache have kept the same 2490# value. 2491ac_cache_corrupted=false 2492for ac_var in $ac_precious_vars; do 2493 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2494 eval ac_new_set=\$ac_env_${ac_var}_set 2495 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2496 eval ac_new_val=\$ac_env_${ac_var}_value 2497 case $ac_old_set,$ac_new_set in 2498 set,) 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2500$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2501 ac_cache_corrupted=: ;; 2502 ,set) 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2504$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2505 ac_cache_corrupted=: ;; 2506 ,);; 2507 *) 2508 if test "x$ac_old_val" != "x$ac_new_val"; then 2509 # differences in whitespace do not lead to failure. 2510 ac_old_val_w=`echo x $ac_old_val` 2511 ac_new_val_w=`echo x $ac_new_val` 2512 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2514$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2515 ac_cache_corrupted=: 2516 else 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2518$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2519 eval $ac_var=\$ac_old_val 2520 fi 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2522$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2524$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2525 fi;; 2526 esac 2527 # Pass precious variables to config.status. 2528 if test "$ac_new_set" = set; then 2529 case $ac_new_val in 2530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2531 *) ac_arg=$ac_var=$ac_new_val ;; 2532 esac 2533 case " $ac_configure_args " in 2534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2535 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2536 esac 2537 fi 2538done 2539if $ac_cache_corrupted; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2543$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2545fi 2546## -------------------- ## 2547## Main body of script. ## 2548## -------------------- ## 2549 2550ac_ext=c 2551ac_cpp='$CPP $CPPFLAGS' 2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2554ac_compiler_gnu=$ac_cv_c_compiler_gnu 2555 2556 2557 2558# needed to build correct soname 2559LIBTOOL_VERSION_INFO=1:6:13 2560 2561LDNS_VERSION_MAJOR=1 2562 2563LDNS_VERSION_MINOR=6 2564 2565LDNS_VERSION_MICRO=13 2566 2567 2568OURCPPFLAGS='' 2569CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} 2570CFLAGS="$CFLAGS" 2571 2572ac_ext=c 2573ac_cpp='$CPP $CPPFLAGS' 2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2576ac_compiler_gnu=$ac_cv_c_compiler_gnu 2577if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}gcc; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if ${ac_cv_prog_CC+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$CC"; then 2586 ac_cv_prog_CC="$CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2608$as_echo "$CC" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615fi 2616if test -z "$ac_cv_prog_CC"; then 2617 ac_ct_CC=$CC 2618 # Extract the first word of "gcc", so it can be a program name with args. 2619set dummy gcc; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_ac_ct_CC+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$ac_ct_CC"; then 2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_ac_ct_CC="gcc" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645ac_ct_CC=$ac_cv_prog_ac_ct_CC 2646if test -n "$ac_ct_CC"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2648$as_echo "$ac_ct_CC" >&6; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 if test "x$ac_ct_CC" = x; then 2655 CC="" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658yes:) 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661ac_tool_warned=yes ;; 2662esac 2663 CC=$ac_ct_CC 2664 fi 2665else 2666 CC="$ac_cv_prog_CC" 2667fi 2668 2669if test -z "$CC"; then 2670 if test -n "$ac_tool_prefix"; then 2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2672set dummy ${ac_tool_prefix}cc; ac_word=$2 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if ${ac_cv_prog_CC+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$CC"; then 2679 ac_cv_prog_CC="$CC" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2688 ac_cv_prog_CC="${ac_tool_prefix}cc" 2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693 done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698CC=$ac_cv_prog_CC 2699if test -n "$CC"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2701$as_echo "$CC" >&6; } 2702else 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704$as_echo "no" >&6; } 2705fi 2706 2707 2708 fi 2709fi 2710if test -z "$CC"; then 2711 # Extract the first word of "cc", so it can be a program name with args. 2712set dummy cc; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if ${ac_cv_prog_CC+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$CC"; then 2719 ac_cv_prog_CC="$CC" # Let the user override the test. 2720else 2721 ac_prog_rejected=no 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2730 ac_prog_rejected=yes 2731 continue 2732 fi 2733 ac_cv_prog_CC="cc" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741if test $ac_prog_rejected = yes; then 2742 # We found a bogon in the path, so make sure we never use it. 2743 set dummy $ac_cv_prog_CC 2744 shift 2745 if test $# != 0; then 2746 # We chose a different compiler from the bogus one. 2747 # However, it has the same basename, so the bogon will be chosen 2748 # first if we set CC to just the basename; use the full file name. 2749 shift 2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2751 fi 2752fi 2753fi 2754fi 2755CC=$ac_cv_prog_CC 2756if test -n "$CC"; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2758$as_echo "$CC" >&6; } 2759else 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2761$as_echo "no" >&6; } 2762fi 2763 2764 2765fi 2766if test -z "$CC"; then 2767 if test -n "$ac_tool_prefix"; then 2768 for ac_prog in cl.exe 2769 do 2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if ${ac_cv_prog_CC+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2800$as_echo "$CC" >&6; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 test -n "$CC" && break 2808 done 2809fi 2810if test -z "$CC"; then 2811 ac_ct_CC=$CC 2812 for ac_prog in cl.exe 2813do 2814 # Extract the first word of "$ac_prog", so it can be a program name with args. 2815set dummy $ac_prog; ac_word=$2 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817$as_echo_n "checking for $ac_word... " >&6; } 2818if ${ac_cv_prog_ac_ct_CC+:} false; then : 2819 $as_echo_n "(cached) " >&6 2820else 2821 if test -n "$ac_ct_CC"; then 2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2823else 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2831 ac_cv_prog_ac_ct_CC="$ac_prog" 2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839fi 2840fi 2841ac_ct_CC=$ac_cv_prog_ac_ct_CC 2842if test -n "$ac_ct_CC"; then 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2844$as_echo "$ac_ct_CC" >&6; } 2845else 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2847$as_echo "no" >&6; } 2848fi 2849 2850 2851 test -n "$ac_ct_CC" && break 2852done 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858yes:) 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2861ac_tool_warned=yes ;; 2862esac 2863 CC=$ac_ct_CC 2864 fi 2865fi 2866 2867fi 2868 2869 2870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2872as_fn_error $? "no acceptable C compiler found in \$PATH 2873See \`config.log' for more details" "$LINENO" 5; } 2874 2875# Provide some information about the compiler. 2876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2877set X $ac_compile 2878ac_compiler=$2 2879for ac_option in --version -v -V -qversion; do 2880 { { ac_try="$ac_compiler $ac_option >&5" 2881case "(($ac_try" in 2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2883 *) ac_try_echo=$ac_try;; 2884esac 2885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2886$as_echo "$ac_try_echo"; } >&5 2887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2888 ac_status=$? 2889 if test -s conftest.err; then 2890 sed '10a\ 2891... rest of stderr output deleted ... 2892 10q' conftest.err >conftest.er1 2893 cat conftest.er1 >&5 2894 fi 2895 rm -f conftest.er1 conftest.err 2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2897 test $ac_status = 0; } 2898done 2899 2900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2901/* end confdefs.h. */ 2902 2903int 2904main () 2905{ 2906 2907 ; 2908 return 0; 2909} 2910_ACEOF 2911ac_clean_files_save=$ac_clean_files 2912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2913# Try to create an executable without -o first, disregard a.out. 2914# It will help us diagnose broken compilers, and finding out an intuition 2915# of exeext. 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2917$as_echo_n "checking whether the C compiler works... " >&6; } 2918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2919 2920# The possible output files: 2921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2922 2923ac_rmfiles= 2924for ac_file in $ac_files 2925do 2926 case $ac_file in 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2929 esac 2930done 2931rm -f $ac_rmfiles 2932 2933if { { ac_try="$ac_link_default" 2934case "(($ac_try" in 2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2936 *) ac_try_echo=$ac_try;; 2937esac 2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2939$as_echo "$ac_try_echo"; } >&5 2940 (eval "$ac_link_default") 2>&5 2941 ac_status=$? 2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2943 test $ac_status = 0; }; then : 2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2946# in a Makefile. We should not override ac_cv_exeext if it was cached, 2947# so that the user can short-circuit this test for compilers unknown to 2948# Autoconf. 2949for ac_file in $ac_files '' 2950do 2951 test -f "$ac_file" || continue 2952 case $ac_file in 2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2954 ;; 2955 [ab].out ) 2956 # We found the default executable, but exeext='' is most 2957 # certainly right. 2958 break;; 2959 *.* ) 2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2961 then :; else 2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2963 fi 2964 # We set ac_cv_exeext here because the later test for it is not 2965 # safe: cross compilers may not add the suffix if given an `-o' 2966 # argument, so we may need to know it at that point already. 2967 # Even if this section looks crufty: it has the advantage of 2968 # actually working. 2969 break;; 2970 * ) 2971 break;; 2972 esac 2973done 2974test "$ac_cv_exeext" = no && ac_cv_exeext= 2975 2976else 2977 ac_file='' 2978fi 2979if test -z "$ac_file"; then : 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982$as_echo "$as_me: failed program was:" >&5 2983sed 's/^/| /' conftest.$ac_ext >&5 2984 2985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2987as_fn_error 77 "C compiler cannot create executables 2988See \`config.log' for more details" "$LINENO" 5; } 2989else 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2991$as_echo "yes" >&6; } 2992fi 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2994$as_echo_n "checking for C compiler default output file name... " >&6; } 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2996$as_echo "$ac_file" >&6; } 2997ac_exeext=$ac_cv_exeext 2998 2999rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3000ac_clean_files=$ac_clean_files_save 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3002$as_echo_n "checking for suffix of executables... " >&6; } 3003if { { ac_try="$ac_link" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3009$as_echo "$ac_try_echo"; } >&5 3010 (eval "$ac_link") 2>&5 3011 ac_status=$? 3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3013 test $ac_status = 0; }; then : 3014 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3016# work properly (i.e., refer to `conftest.exe'), while it won't with 3017# `rm'. 3018for ac_file in conftest.exe conftest conftest.*; do 3019 test -f "$ac_file" || continue 3020 case $ac_file in 3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3023 break;; 3024 * ) break;; 3025 esac 3026done 3027else 3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3030as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3031See \`config.log' for more details" "$LINENO" 5; } 3032fi 3033rm -f conftest conftest$ac_cv_exeext 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3035$as_echo "$ac_cv_exeext" >&6; } 3036 3037rm -f conftest.$ac_ext 3038EXEEXT=$ac_cv_exeext 3039ac_exeext=$EXEEXT 3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3041/* end confdefs.h. */ 3042#include <stdio.h> 3043int 3044main () 3045{ 3046FILE *f = fopen ("conftest.out", "w"); 3047 return ferror (f) || fclose (f) != 0; 3048 3049 ; 3050 return 0; 3051} 3052_ACEOF 3053ac_clean_files="$ac_clean_files conftest.out" 3054# Check that the compiler produces executables we can run. If not, either 3055# the compiler is broken, or we cross compile. 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3057$as_echo_n "checking whether we are cross compiling... " >&6; } 3058if test "$cross_compiling" != yes; then 3059 { { ac_try="$ac_link" 3060case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3065$as_echo "$ac_try_echo"; } >&5 3066 (eval "$ac_link") 2>&5 3067 ac_status=$? 3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3069 test $ac_status = 0; } 3070 if { ac_try='./conftest$ac_cv_exeext' 3071 { { case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3076$as_echo "$ac_try_echo"; } >&5 3077 (eval "$ac_try") 2>&5 3078 ac_status=$? 3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3080 test $ac_status = 0; }; }; then 3081 cross_compiling=no 3082 else 3083 if test "$cross_compiling" = maybe; then 3084 cross_compiling=yes 3085 else 3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3088as_fn_error $? "cannot run C compiled programs. 3089If you meant to cross compile, use \`--host'. 3090See \`config.log' for more details" "$LINENO" 5; } 3091 fi 3092 fi 3093fi 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3095$as_echo "$cross_compiling" >&6; } 3096 3097rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3098ac_clean_files=$ac_clean_files_save 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3100$as_echo_n "checking for suffix of object files... " >&6; } 3101if ${ac_cv_objext+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3105/* end confdefs.h. */ 3106 3107int 3108main () 3109{ 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115rm -f conftest.o conftest.obj 3116if { { ac_try="$ac_compile" 3117case "(($ac_try" in 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3119 *) ac_try_echo=$ac_try;; 3120esac 3121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3122$as_echo "$ac_try_echo"; } >&5 3123 (eval "$ac_compile") 2>&5 3124 ac_status=$? 3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3126 test $ac_status = 0; }; then : 3127 for ac_file in conftest.o conftest.obj conftest.*; do 3128 test -f "$ac_file" || continue; 3129 case $ac_file in 3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3132 break;; 3133 esac 3134done 3135else 3136 $as_echo "$as_me: failed program was:" >&5 3137sed 's/^/| /' conftest.$ac_ext >&5 3138 3139{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3141as_fn_error $? "cannot compute suffix of object files: cannot compile 3142See \`config.log' for more details" "$LINENO" 5; } 3143fi 3144rm -f conftest.$ac_cv_objext conftest.$ac_ext 3145fi 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3147$as_echo "$ac_cv_objext" >&6; } 3148OBJEXT=$ac_cv_objext 3149ac_objext=$OBJEXT 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3152if ${ac_cv_c_compiler_gnu+:} false; then : 3153 $as_echo_n "(cached) " >&6 3154else 3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3156/* end confdefs.h. */ 3157 3158int 3159main () 3160{ 3161#ifndef __GNUC__ 3162 choke me 3163#endif 3164 3165 ; 3166 return 0; 3167} 3168_ACEOF 3169if ac_fn_c_try_compile "$LINENO"; then : 3170 ac_compiler_gnu=yes 3171else 3172 ac_compiler_gnu=no 3173fi 3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3175ac_cv_c_compiler_gnu=$ac_compiler_gnu 3176 3177fi 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3179$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3180if test $ac_compiler_gnu = yes; then 3181 GCC=yes 3182else 3183 GCC= 3184fi 3185ac_test_CFLAGS=${CFLAGS+set} 3186ac_save_CFLAGS=$CFLAGS 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3188$as_echo_n "checking whether $CC accepts -g... " >&6; } 3189if ${ac_cv_prog_cc_g+:} false; then : 3190 $as_echo_n "(cached) " >&6 3191else 3192 ac_save_c_werror_flag=$ac_c_werror_flag 3193 ac_c_werror_flag=yes 3194 ac_cv_prog_cc_g=no 3195 CFLAGS="-g" 3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207if ac_fn_c_try_compile "$LINENO"; then : 3208 ac_cv_prog_cc_g=yes 3209else 3210 CFLAGS="" 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 3224else 3225 ac_c_werror_flag=$ac_save_c_werror_flag 3226 CFLAGS="-g" 3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3228/* end confdefs.h. */ 3229 3230int 3231main () 3232{ 3233 3234 ; 3235 return 0; 3236} 3237_ACEOF 3238if ac_fn_c_try_compile "$LINENO"; then : 3239 ac_cv_prog_cc_g=yes 3240fi 3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3242fi 3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3244fi 3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3246 ac_c_werror_flag=$ac_save_c_werror_flag 3247fi 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3249$as_echo "$ac_cv_prog_cc_g" >&6; } 3250if test "$ac_test_CFLAGS" = set; then 3251 CFLAGS=$ac_save_CFLAGS 3252elif test $ac_cv_prog_cc_g = yes; then 3253 if test "$GCC" = yes; then 3254 CFLAGS="-g -O2" 3255 else 3256 CFLAGS="-g" 3257 fi 3258else 3259 if test "$GCC" = yes; then 3260 CFLAGS="-O2" 3261 else 3262 CFLAGS= 3263 fi 3264fi 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3267if ${ac_cv_prog_cc_c89+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 ac_cv_prog_cc_c89=no 3271ac_save_CC=$CC 3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273/* end confdefs.h. */ 3274#include <stdarg.h> 3275#include <stdio.h> 3276#include <sys/types.h> 3277#include <sys/stat.h> 3278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3279struct buf { int x; }; 3280FILE * (*rcsopen) (struct buf *, struct stat *, int); 3281static char *e (p, i) 3282 char **p; 3283 int i; 3284{ 3285 return p[i]; 3286} 3287static char *f (char * (*g) (char **, int), char **p, ...) 3288{ 3289 char *s; 3290 va_list v; 3291 va_start (v,p); 3292 s = g (p, va_arg (v,int)); 3293 va_end (v); 3294 return s; 3295} 3296 3297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3298 function prototypes and stuff, but not '\xHH' hex character constants. 3299 These don't provoke an error unfortunately, instead are silently treated 3300 as 'x'. The following induces an error, until -std is added to get 3301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3302 array size at least. It's necessary to write '\x00'==0 to get something 3303 that's true only with -std. */ 3304int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3305 3306/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3307 inside strings and character constants. */ 3308#define FOO(x) 'x' 3309int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3310 3311int test (int i, double x); 3312struct s1 {int (*f) (int a);}; 3313struct s2 {int (*f) (double a);}; 3314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3315int argc; 3316char **argv; 3317int 3318main () 3319{ 3320return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3327do 3328 CC="$ac_save_CC $ac_arg" 3329 if ac_fn_c_try_compile "$LINENO"; then : 3330 ac_cv_prog_cc_c89=$ac_arg 3331fi 3332rm -f core conftest.err conftest.$ac_objext 3333 test "x$ac_cv_prog_cc_c89" != "xno" && break 3334done 3335rm -f conftest.$ac_ext 3336CC=$ac_save_CC 3337 3338fi 3339# AC_CACHE_VAL 3340case "x$ac_cv_prog_cc_c89" in 3341 x) 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3343$as_echo "none needed" >&6; } ;; 3344 xno) 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3346$as_echo "unsupported" >&6; } ;; 3347 *) 3348 CC="$CC $ac_cv_prog_cc_c89" 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3350$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3351esac 3352if test "x$ac_cv_prog_cc_c89" != xno; then : 3353 3354fi 3355 3356ac_ext=c 3357ac_cpp='$CPP $CPPFLAGS' 3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3360ac_compiler_gnu=$ac_cv_c_compiler_gnu 3361 3362 3363ac_ext=c 3364ac_cpp='$CPP $CPPFLAGS' 3365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3367ac_compiler_gnu=$ac_cv_c_compiler_gnu 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3369$as_echo_n "checking how to run the C preprocessor... " >&6; } 3370# On Suns, sometimes $CPP names a directory. 3371if test -n "$CPP" && test -d "$CPP"; then 3372 CPP= 3373fi 3374if test -z "$CPP"; then 3375 if ${ac_cv_prog_CPP+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 # Double quotes because CPP needs to be expanded 3379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3380 do 3381 ac_preproc_ok=false 3382for ac_c_preproc_warn_flag in '' yes 3383do 3384 # Use a header file that comes with gcc, so configuring glibc 3385 # with a fresh cross-compiler works. 3386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3387 # <limits.h> exists even on freestanding compilers. 3388 # On the NeXT, cc -E runs the code through the compiler's parser, 3389 # not just through cpp. "Syntax error" is here to catch this case. 3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3391/* end confdefs.h. */ 3392#ifdef __STDC__ 3393# include <limits.h> 3394#else 3395# include <assert.h> 3396#endif 3397 Syntax error 3398_ACEOF 3399if ac_fn_c_try_cpp "$LINENO"; then : 3400 3401else 3402 # Broken: fails on valid input. 3403continue 3404fi 3405rm -f conftest.err conftest.i conftest.$ac_ext 3406 3407 # OK, works on sane cases. Now check whether nonexistent headers 3408 # can be detected and how. 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411#include <ac_nonexistent.h> 3412_ACEOF 3413if ac_fn_c_try_cpp "$LINENO"; then : 3414 # Broken: success on invalid input. 3415continue 3416else 3417 # Passes both tests. 3418ac_preproc_ok=: 3419break 3420fi 3421rm -f conftest.err conftest.i conftest.$ac_ext 3422 3423done 3424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3425rm -f conftest.i conftest.err conftest.$ac_ext 3426if $ac_preproc_ok; then : 3427 break 3428fi 3429 3430 done 3431 ac_cv_prog_CPP=$CPP 3432 3433fi 3434 CPP=$ac_cv_prog_CPP 3435else 3436 ac_cv_prog_CPP=$CPP 3437fi 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3439$as_echo "$CPP" >&6; } 3440ac_preproc_ok=false 3441for ac_c_preproc_warn_flag in '' yes 3442do 3443 # Use a header file that comes with gcc, so configuring glibc 3444 # with a fresh cross-compiler works. 3445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3446 # <limits.h> exists even on freestanding compilers. 3447 # On the NeXT, cc -E runs the code through the compiler's parser, 3448 # not just through cpp. "Syntax error" is here to catch this case. 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451#ifdef __STDC__ 3452# include <limits.h> 3453#else 3454# include <assert.h> 3455#endif 3456 Syntax error 3457_ACEOF 3458if ac_fn_c_try_cpp "$LINENO"; then : 3459 3460else 3461 # Broken: fails on valid input. 3462continue 3463fi 3464rm -f conftest.err conftest.i conftest.$ac_ext 3465 3466 # OK, works on sane cases. Now check whether nonexistent headers 3467 # can be detected and how. 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470#include <ac_nonexistent.h> 3471_ACEOF 3472if ac_fn_c_try_cpp "$LINENO"; then : 3473 # Broken: success on invalid input. 3474continue 3475else 3476 # Passes both tests. 3477ac_preproc_ok=: 3478break 3479fi 3480rm -f conftest.err conftest.i conftest.$ac_ext 3481 3482done 3483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3484rm -f conftest.i conftest.err conftest.$ac_ext 3485if $ac_preproc_ok; then : 3486 3487else 3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3490as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3491See \`config.log' for more details" "$LINENO" 5; } 3492fi 3493 3494ac_ext=c 3495ac_cpp='$CPP $CPPFLAGS' 3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3498ac_compiler_gnu=$ac_cv_c_compiler_gnu 3499 3500 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3502$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3503if ${ac_cv_path_GREP+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 if test -z "$GREP"; then 3507 ac_path_GREP_found=false 3508 # Loop through the user's path and test for each of PROGNAME-LIST 3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3511do 3512 IFS=$as_save_IFS 3513 test -z "$as_dir" && as_dir=. 3514 for ac_prog in grep ggrep; do 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3518# Check for GNU ac_path_GREP and select it if it is found. 3519 # Check for GNU $ac_path_GREP 3520case `"$ac_path_GREP" --version 2>&1` in 3521*GNU*) 3522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3523*) 3524 ac_count=0 3525 $as_echo_n 0123456789 >"conftest.in" 3526 while : 3527 do 3528 cat "conftest.in" "conftest.in" >"conftest.tmp" 3529 mv "conftest.tmp" "conftest.in" 3530 cp "conftest.in" "conftest.nl" 3531 $as_echo 'GREP' >> "conftest.nl" 3532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3534 as_fn_arith $ac_count + 1 && ac_count=$as_val 3535 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3536 # Best one so far, save it but keep looking for a better one 3537 ac_cv_path_GREP="$ac_path_GREP" 3538 ac_path_GREP_max=$ac_count 3539 fi 3540 # 10*(2^10) chars as input seems more than enough 3541 test $ac_count -gt 10 && break 3542 done 3543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3544esac 3545 3546 $ac_path_GREP_found && break 3 3547 done 3548 done 3549 done 3550IFS=$as_save_IFS 3551 if test -z "$ac_cv_path_GREP"; then 3552 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3553 fi 3554else 3555 ac_cv_path_GREP=$GREP 3556fi 3557 3558fi 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3560$as_echo "$ac_cv_path_GREP" >&6; } 3561 GREP="$ac_cv_path_GREP" 3562 3563 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3565$as_echo_n "checking for egrep... " >&6; } 3566if ${ac_cv_path_EGREP+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3570 then ac_cv_path_EGREP="$GREP -E" 3571 else 3572 if test -z "$EGREP"; then 3573 ac_path_EGREP_found=false 3574 # Loop through the user's path and test for each of PROGNAME-LIST 3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3577do 3578 IFS=$as_save_IFS 3579 test -z "$as_dir" && as_dir=. 3580 for ac_prog in egrep; do 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3583 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3584# Check for GNU ac_path_EGREP and select it if it is found. 3585 # Check for GNU $ac_path_EGREP 3586case `"$ac_path_EGREP" --version 2>&1` in 3587*GNU*) 3588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3589*) 3590 ac_count=0 3591 $as_echo_n 0123456789 >"conftest.in" 3592 while : 3593 do 3594 cat "conftest.in" "conftest.in" >"conftest.tmp" 3595 mv "conftest.tmp" "conftest.in" 3596 cp "conftest.in" "conftest.nl" 3597 $as_echo 'EGREP' >> "conftest.nl" 3598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3600 as_fn_arith $ac_count + 1 && ac_count=$as_val 3601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3602 # Best one so far, save it but keep looking for a better one 3603 ac_cv_path_EGREP="$ac_path_EGREP" 3604 ac_path_EGREP_max=$ac_count 3605 fi 3606 # 10*(2^10) chars as input seems more than enough 3607 test $ac_count -gt 10 && break 3608 done 3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3610esac 3611 3612 $ac_path_EGREP_found && break 3 3613 done 3614 done 3615 done 3616IFS=$as_save_IFS 3617 if test -z "$ac_cv_path_EGREP"; then 3618 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3619 fi 3620else 3621 ac_cv_path_EGREP=$EGREP 3622fi 3623 3624 fi 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3627$as_echo "$ac_cv_path_EGREP" >&6; } 3628 EGREP="$ac_cv_path_EGREP" 3629 3630 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3632$as_echo_n "checking for ANSI C header files... " >&6; } 3633if ${ac_cv_header_stdc+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638#include <stdlib.h> 3639#include <stdarg.h> 3640#include <string.h> 3641#include <float.h> 3642 3643int 3644main () 3645{ 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651if ac_fn_c_try_compile "$LINENO"; then : 3652 ac_cv_header_stdc=yes 3653else 3654 ac_cv_header_stdc=no 3655fi 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657 3658if test $ac_cv_header_stdc = yes; then 3659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#include <string.h> 3663 3664_ACEOF 3665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3666 $EGREP "memchr" >/dev/null 2>&1; then : 3667 3668else 3669 ac_cv_header_stdc=no 3670fi 3671rm -f conftest* 3672 3673fi 3674 3675if test $ac_cv_header_stdc = yes; then 3676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679#include <stdlib.h> 3680 3681_ACEOF 3682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3683 $EGREP "free" >/dev/null 2>&1; then : 3684 3685else 3686 ac_cv_header_stdc=no 3687fi 3688rm -f conftest* 3689 3690fi 3691 3692if test $ac_cv_header_stdc = yes; then 3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3694 if test "$cross_compiling" = yes; then : 3695 : 3696else 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699#include <ctype.h> 3700#include <stdlib.h> 3701#if ((' ' & 0x0FF) == 0x020) 3702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3704#else 3705# define ISLOWER(c) \ 3706 (('a' <= (c) && (c) <= 'i') \ 3707 || ('j' <= (c) && (c) <= 'r') \ 3708 || ('s' <= (c) && (c) <= 'z')) 3709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3710#endif 3711 3712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3713int 3714main () 3715{ 3716 int i; 3717 for (i = 0; i < 256; i++) 3718 if (XOR (islower (i), ISLOWER (i)) 3719 || toupper (i) != TOUPPER (i)) 3720 return 2; 3721 return 0; 3722} 3723_ACEOF 3724if ac_fn_c_try_run "$LINENO"; then : 3725 3726else 3727 ac_cv_header_stdc=no 3728fi 3729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3730 conftest.$ac_objext conftest.beam conftest.$ac_ext 3731fi 3732 3733fi 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3736$as_echo "$ac_cv_header_stdc" >&6; } 3737if test $ac_cv_header_stdc = yes; then 3738 3739$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3740 3741fi 3742 3743# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3745 inttypes.h stdint.h unistd.h 3746do : 3747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3749" 3750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3751 cat >>confdefs.h <<_ACEOF 3752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3753_ACEOF 3754 3755fi 3756 3757done 3758 3759 3760 3761 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3762if test "x$ac_cv_header_minix_config_h" = xyes; then : 3763 MINIX=yes 3764else 3765 MINIX= 3766fi 3767 3768 3769 if test "$MINIX" = yes; then 3770 3771$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3772 3773 3774$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3775 3776 3777$as_echo "#define _MINIX 1" >>confdefs.h 3778 3779 fi 3780 3781 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3783$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3784if ${ac_cv_safe_to_define___extensions__+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786else 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788/* end confdefs.h. */ 3789 3790# define __EXTENSIONS__ 1 3791 $ac_includes_default 3792int 3793main () 3794{ 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO"; then : 3801 ac_cv_safe_to_define___extensions__=yes 3802else 3803 ac_cv_safe_to_define___extensions__=no 3804fi 3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3806fi 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3808$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3809 test $ac_cv_safe_to_define___extensions__ = yes && 3810 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3811 3812 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3813 3814 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3815 3816 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3817 3818 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3819 3820 3821 3822# Checks for programs. 3823ac_ext=c 3824ac_cpp='$CPP $CPPFLAGS' 3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3827ac_compiler_gnu=$ac_cv_c_compiler_gnu 3828if test -n "$ac_tool_prefix"; then 3829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3830set dummy ${ac_tool_prefix}gcc; ac_word=$2 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3832$as_echo_n "checking for $ac_word... " >&6; } 3833if ${ac_cv_prog_CC+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 if test -n "$CC"; then 3837 ac_cv_prog_CC="$CC" # Let the user override the test. 3838else 3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840for as_dir in $PATH 3841do 3842 IFS=$as_save_IFS 3843 test -z "$as_dir" && as_dir=. 3844 for ac_exec_ext in '' $ac_executable_extensions; do 3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3846 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3848 break 2 3849 fi 3850done 3851 done 3852IFS=$as_save_IFS 3853 3854fi 3855fi 3856CC=$ac_cv_prog_CC 3857if test -n "$CC"; then 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3859$as_echo "$CC" >&6; } 3860else 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3862$as_echo "no" >&6; } 3863fi 3864 3865 3866fi 3867if test -z "$ac_cv_prog_CC"; then 3868 ac_ct_CC=$CC 3869 # Extract the first word of "gcc", so it can be a program name with args. 3870set dummy gcc; ac_word=$2 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3872$as_echo_n "checking for $ac_word... " >&6; } 3873if ${ac_cv_prog_ac_ct_CC+:} false; then : 3874 $as_echo_n "(cached) " >&6 3875else 3876 if test -n "$ac_ct_CC"; then 3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3878else 3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880for as_dir in $PATH 3881do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for ac_exec_ext in '' $ac_executable_extensions; do 3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3886 ac_cv_prog_ac_ct_CC="gcc" 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3888 break 2 3889 fi 3890done 3891 done 3892IFS=$as_save_IFS 3893 3894fi 3895fi 3896ac_ct_CC=$ac_cv_prog_ac_ct_CC 3897if test -n "$ac_ct_CC"; then 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3899$as_echo "$ac_ct_CC" >&6; } 3900else 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3902$as_echo "no" >&6; } 3903fi 3904 3905 if test "x$ac_ct_CC" = x; then 3906 CC="" 3907 else 3908 case $cross_compiling:$ac_tool_warned in 3909yes:) 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3912ac_tool_warned=yes ;; 3913esac 3914 CC=$ac_ct_CC 3915 fi 3916else 3917 CC="$ac_cv_prog_CC" 3918fi 3919 3920if test -z "$CC"; then 3921 if test -n "$ac_tool_prefix"; then 3922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3923set dummy ${ac_tool_prefix}cc; ac_word=$2 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3925$as_echo_n "checking for $ac_word... " >&6; } 3926if ${ac_cv_prog_CC+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 if test -n "$CC"; then 3930 ac_cv_prog_CC="$CC" # Let the user override the test. 3931else 3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3939 ac_cv_prog_CC="${ac_tool_prefix}cc" 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943done 3944 done 3945IFS=$as_save_IFS 3946 3947fi 3948fi 3949CC=$ac_cv_prog_CC 3950if test -n "$CC"; then 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3952$as_echo "$CC" >&6; } 3953else 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955$as_echo "no" >&6; } 3956fi 3957 3958 3959 fi 3960fi 3961if test -z "$CC"; then 3962 # Extract the first word of "cc", so it can be a program name with args. 3963set dummy cc; ac_word=$2 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3965$as_echo_n "checking for $ac_word... " >&6; } 3966if ${ac_cv_prog_CC+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968else 3969 if test -n "$CC"; then 3970 ac_cv_prog_CC="$CC" # Let the user override the test. 3971else 3972 ac_prog_rejected=no 3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974for as_dir in $PATH 3975do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3981 ac_prog_rejected=yes 3982 continue 3983 fi 3984 ac_cv_prog_CC="cc" 3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3986 break 2 3987 fi 3988done 3989 done 3990IFS=$as_save_IFS 3991 3992if test $ac_prog_rejected = yes; then 3993 # We found a bogon in the path, so make sure we never use it. 3994 set dummy $ac_cv_prog_CC 3995 shift 3996 if test $# != 0; then 3997 # We chose a different compiler from the bogus one. 3998 # However, it has the same basename, so the bogon will be chosen 3999 # first if we set CC to just the basename; use the full file name. 4000 shift 4001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4002 fi 4003fi 4004fi 4005fi 4006CC=$ac_cv_prog_CC 4007if test -n "$CC"; then 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4009$as_echo "$CC" >&6; } 4010else 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4012$as_echo "no" >&6; } 4013fi 4014 4015 4016fi 4017if test -z "$CC"; then 4018 if test -n "$ac_tool_prefix"; then 4019 for ac_prog in cl.exe 4020 do 4021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4022set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4024$as_echo_n "checking for $ac_word... " >&6; } 4025if ${ac_cv_prog_CC+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 if test -n "$CC"; then 4029 ac_cv_prog_CC="$CC" # Let the user override the test. 4030else 4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042done 4043 done 4044IFS=$as_save_IFS 4045 4046fi 4047fi 4048CC=$ac_cv_prog_CC 4049if test -n "$CC"; then 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4051$as_echo "$CC" >&6; } 4052else 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054$as_echo "no" >&6; } 4055fi 4056 4057 4058 test -n "$CC" && break 4059 done 4060fi 4061if test -z "$CC"; then 4062 ac_ct_CC=$CC 4063 for ac_prog in cl.exe 4064do 4065 # Extract the first word of "$ac_prog", so it can be a program name with args. 4066set dummy $ac_prog; ac_word=$2 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068$as_echo_n "checking for $ac_word... " >&6; } 4069if ${ac_cv_prog_ac_ct_CC+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 if test -n "$ac_ct_CC"; then 4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4074else 4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076for as_dir in $PATH 4077do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4082 ac_cv_prog_ac_ct_CC="$ac_prog" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086done 4087 done 4088IFS=$as_save_IFS 4089 4090fi 4091fi 4092ac_ct_CC=$ac_cv_prog_ac_ct_CC 4093if test -n "$ac_ct_CC"; then 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4095$as_echo "$ac_ct_CC" >&6; } 4096else 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098$as_echo "no" >&6; } 4099fi 4100 4101 4102 test -n "$ac_ct_CC" && break 4103done 4104 4105 if test "x$ac_ct_CC" = x; then 4106 CC="" 4107 else 4108 case $cross_compiling:$ac_tool_warned in 4109yes:) 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4112ac_tool_warned=yes ;; 4113esac 4114 CC=$ac_ct_CC 4115 fi 4116fi 4117 4118fi 4119 4120 4121test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4123as_fn_error $? "no acceptable C compiler found in \$PATH 4124See \`config.log' for more details" "$LINENO" 5; } 4125 4126# Provide some information about the compiler. 4127$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4128set X $ac_compile 4129ac_compiler=$2 4130for ac_option in --version -v -V -qversion; do 4131 { { ac_try="$ac_compiler $ac_option >&5" 4132case "(($ac_try" in 4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4134 *) ac_try_echo=$ac_try;; 4135esac 4136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4137$as_echo "$ac_try_echo"; } >&5 4138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4139 ac_status=$? 4140 if test -s conftest.err; then 4141 sed '10a\ 4142... rest of stderr output deleted ... 4143 10q' conftest.err >conftest.er1 4144 cat conftest.er1 >&5 4145 fi 4146 rm -f conftest.er1 conftest.err 4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4148 test $ac_status = 0; } 4149done 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4152$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4153if ${ac_cv_c_compiler_gnu+:} false; then : 4154 $as_echo_n "(cached) " >&6 4155else 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main () 4161{ 4162#ifndef __GNUC__ 4163 choke me 4164#endif 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170if ac_fn_c_try_compile "$LINENO"; then : 4171 ac_compiler_gnu=yes 4172else 4173 ac_compiler_gnu=no 4174fi 4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4176ac_cv_c_compiler_gnu=$ac_compiler_gnu 4177 4178fi 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4180$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4181if test $ac_compiler_gnu = yes; then 4182 GCC=yes 4183else 4184 GCC= 4185fi 4186ac_test_CFLAGS=${CFLAGS+set} 4187ac_save_CFLAGS=$CFLAGS 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4189$as_echo_n "checking whether $CC accepts -g... " >&6; } 4190if ${ac_cv_prog_cc_g+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 ac_save_c_werror_flag=$ac_c_werror_flag 4194 ac_c_werror_flag=yes 4195 ac_cv_prog_cc_g=no 4196 CFLAGS="-g" 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199 4200int 4201main () 4202{ 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208if ac_fn_c_try_compile "$LINENO"; then : 4209 ac_cv_prog_cc_g=yes 4210else 4211 CFLAGS="" 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 4225else 4226 ac_c_werror_flag=$ac_save_c_werror_flag 4227 CFLAGS="-g" 4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4229/* end confdefs.h. */ 4230 4231int 4232main () 4233{ 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239if ac_fn_c_try_compile "$LINENO"; then : 4240 ac_cv_prog_cc_g=yes 4241fi 4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245fi 4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4247 ac_c_werror_flag=$ac_save_c_werror_flag 4248fi 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4250$as_echo "$ac_cv_prog_cc_g" >&6; } 4251if test "$ac_test_CFLAGS" = set; then 4252 CFLAGS=$ac_save_CFLAGS 4253elif test $ac_cv_prog_cc_g = yes; then 4254 if test "$GCC" = yes; then 4255 CFLAGS="-g -O2" 4256 else 4257 CFLAGS="-g" 4258 fi 4259else 4260 if test "$GCC" = yes; then 4261 CFLAGS="-O2" 4262 else 4263 CFLAGS= 4264 fi 4265fi 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4267$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4268if ${ac_cv_prog_cc_c89+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 ac_cv_prog_cc_c89=no 4272ac_save_CC=$CC 4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275#include <stdarg.h> 4276#include <stdio.h> 4277#include <sys/types.h> 4278#include <sys/stat.h> 4279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4280struct buf { int x; }; 4281FILE * (*rcsopen) (struct buf *, struct stat *, int); 4282static char *e (p, i) 4283 char **p; 4284 int i; 4285{ 4286 return p[i]; 4287} 4288static char *f (char * (*g) (char **, int), char **p, ...) 4289{ 4290 char *s; 4291 va_list v; 4292 va_start (v,p); 4293 s = g (p, va_arg (v,int)); 4294 va_end (v); 4295 return s; 4296} 4297 4298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4299 function prototypes and stuff, but not '\xHH' hex character constants. 4300 These don't provoke an error unfortunately, instead are silently treated 4301 as 'x'. The following induces an error, until -std is added to get 4302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4303 array size at least. It's necessary to write '\x00'==0 to get something 4304 that's true only with -std. */ 4305int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4306 4307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4308 inside strings and character constants. */ 4309#define FOO(x) 'x' 4310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4311 4312int test (int i, double x); 4313struct s1 {int (*f) (int a);}; 4314struct s2 {int (*f) (double a);}; 4315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4316int argc; 4317char **argv; 4318int 4319main () 4320{ 4321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4322 ; 4323 return 0; 4324} 4325_ACEOF 4326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4328do 4329 CC="$ac_save_CC $ac_arg" 4330 if ac_fn_c_try_compile "$LINENO"; then : 4331 ac_cv_prog_cc_c89=$ac_arg 4332fi 4333rm -f core conftest.err conftest.$ac_objext 4334 test "x$ac_cv_prog_cc_c89" != "xno" && break 4335done 4336rm -f conftest.$ac_ext 4337CC=$ac_save_CC 4338 4339fi 4340# AC_CACHE_VAL 4341case "x$ac_cv_prog_cc_c89" in 4342 x) 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4344$as_echo "none needed" >&6; } ;; 4345 xno) 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4347$as_echo "unsupported" >&6; } ;; 4348 *) 4349 CC="$CC $ac_cv_prog_cc_c89" 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4352esac 4353if test "x$ac_cv_prog_cc_c89" != xno; then : 4354 4355fi 4356 4357ac_ext=c 4358ac_cpp='$CPP $CPPFLAGS' 4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4361ac_compiler_gnu=$ac_cv_c_compiler_gnu 4362 4363 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4365$as_echo_n "checking $CC dependency flag... " >&6; } 4366echo 'void f(){}' >conftest.c 4367if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4368 DEPFLAG="-MM" 4369else 4370 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4371 DEPFLAG="-xM1" 4372 else 4373 DEPFLAG="-MM" # dunno do something 4374 fi 4375fi 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4377$as_echo "$DEPFLAG" >&6; } 4378rm -f conftest.c 4379 4380 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4382$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4383set x ${MAKE-make} 4384ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4385if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 cat >conftest.make <<\_ACEOF 4389SHELL = /bin/sh 4390all: 4391 @echo '@@@%%%=$(MAKE)=@@@%%%' 4392_ACEOF 4393# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4394case `${MAKE-make} -f conftest.make 2>/dev/null` in 4395 *@@@%%%=?*=@@@%%%*) 4396 eval ac_cv_prog_make_${ac_make}_set=yes;; 4397 *) 4398 eval ac_cv_prog_make_${ac_make}_set=no;; 4399esac 4400rm -f conftest.make 4401fi 4402if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4404$as_echo "yes" >&6; } 4405 SET_MAKE= 4406else 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4408$as_echo "no" >&6; } 4409 SET_MAKE="MAKE=${MAKE-make}" 4410fi 4411 4412 4413# Extra (sp)lint flags for NetBSD 4414ac_aux_dir= 4415for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4416 if test -f "$ac_dir/install-sh"; then 4417 ac_aux_dir=$ac_dir 4418 ac_install_sh="$ac_aux_dir/install-sh -c" 4419 break 4420 elif test -f "$ac_dir/install.sh"; then 4421 ac_aux_dir=$ac_dir 4422 ac_install_sh="$ac_aux_dir/install.sh -c" 4423 break 4424 elif test -f "$ac_dir/shtool"; then 4425 ac_aux_dir=$ac_dir 4426 ac_install_sh="$ac_aux_dir/shtool install -c" 4427 break 4428 fi 4429done 4430if test -z "$ac_aux_dir"; then 4431 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4432fi 4433 4434# These three variables are undocumented and unsupported, 4435# and are intended to be withdrawn in a future Autoconf release. 4436# They can cause serious problems if a builder's source tree is in a directory 4437# whose full name contains unusual characters. 4438ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4439ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4440ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4441 4442 4443# Make sure we can run config.sub. 4444$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4445 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4446 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4448$as_echo_n "checking build system type... " >&6; } 4449if ${ac_cv_build+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 ac_build_alias=$build_alias 4453test "x$ac_build_alias" = x && 4454 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4455test "x$ac_build_alias" = x && 4456 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4457ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4459 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4462$as_echo "$ac_cv_build" >&6; } 4463case $ac_cv_build in 4464*-*-*) ;; 4465*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4466esac 4467build=$ac_cv_build 4468ac_save_IFS=$IFS; IFS='-' 4469set x $ac_cv_build 4470shift 4471build_cpu=$1 4472build_vendor=$2 4473shift; shift 4474# Remember, the first character of IFS is used to create $*, 4475# except with old shells: 4476build_os=$* 4477IFS=$ac_save_IFS 4478case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4479 4480 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4482$as_echo_n "checking host system type... " >&6; } 4483if ${ac_cv_host+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485else 4486 if test "x$host_alias" = x; then 4487 ac_cv_host=$ac_cv_build 4488else 4489 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4491fi 4492 4493fi 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4495$as_echo "$ac_cv_host" >&6; } 4496case $ac_cv_host in 4497*-*-*) ;; 4498*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4499esac 4500host=$ac_cv_host 4501ac_save_IFS=$IFS; IFS='-' 4502set x $ac_cv_host 4503shift 4504host_cpu=$1 4505host_vendor=$2 4506shift; shift 4507# Remember, the first character of IFS is used to create $*, 4508# except with old shells: 4509host_os=$* 4510IFS=$ac_save_IFS 4511case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4512 4513 4514case "$host_os" in 4515 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS" 4516 ;; 4517 *) LINTFLAGS="$LINTFLAGS" 4518 ;; 4519esac 4520 4521 4522 4523$as_echo "#define WINVER 0x0502" >>confdefs.h 4524 4525 4526 4527 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4529$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4530cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4531if eval \${cv_prog_cc_flag_$cache+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 4535echo 'void f(){}' >conftest.c 4536if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4537eval "cv_prog_cc_flag_$cache=yes" 4538else 4539eval "cv_prog_cc_flag_$cache=no" 4540fi 4541rm -f conftest conftest.o conftest.c 4542 4543fi 4544 4545if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4547$as_echo "yes" >&6; } 4548: 4549C99FLAG="-std=c99" 4550else 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4552$as_echo "no" >&6; } 4553: 4554 4555fi 4556 4557 4558 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 4560$as_echo_n "checking whether $CC supports -xc99... " >&6; } 4561cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 4562if eval \${cv_prog_cc_flag_$cache+:} false; then : 4563 $as_echo_n "(cached) " >&6 4564else 4565 4566echo 'void f(){}' >conftest.c 4567if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 4568eval "cv_prog_cc_flag_$cache=yes" 4569else 4570eval "cv_prog_cc_flag_$cache=no" 4571fi 4572rm -f conftest conftest.o conftest.c 4573 4574fi 4575 4576if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4578$as_echo "yes" >&6; } 4579: 4580C99FLAG="-xc99" 4581else 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4583$as_echo "no" >&6; } 4584: 4585 4586fi 4587 4588 4589# routine to copy files 4590# argument 1 is a list of files (relative to the source dir) 4591# argument 2 is a destination directory (relative to the current 4592# working directory 4593 4594 4595# copy all .h files in the dir at argument 1 4596# (relative to source) to the dir at argument 2 4597# (relative to current dir) 4598 4599 4600# Checks for typedefs, structures, and compiler characteristics. 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4602$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4603if ${ac_cv_c_const+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4607/* end confdefs.h. */ 4608 4609int 4610main () 4611{ 4612/* FIXME: Include the comments suggested by Paul. */ 4613#ifndef __cplusplus 4614 /* Ultrix mips cc rejects this. */ 4615 typedef int charset[2]; 4616 const charset cs; 4617 /* SunOS 4.1.1 cc rejects this. */ 4618 char const *const *pcpcc; 4619 char **ppc; 4620 /* NEC SVR4.0.2 mips cc rejects this. */ 4621 struct point {int x, y;}; 4622 static struct point const zero = {0,0}; 4623 /* AIX XL C 1.02.0.0 rejects this. 4624 It does not let you subtract one const X* pointer from another in 4625 an arm of an if-expression whose if-part is not a constant 4626 expression */ 4627 const char *g = "string"; 4628 pcpcc = &g + (g ? g-g : 0); 4629 /* HPUX 7.0 cc rejects these. */ 4630 ++pcpcc; 4631 ppc = (char**) pcpcc; 4632 pcpcc = (char const *const *) ppc; 4633 { /* SCO 3.2v4 cc rejects this. */ 4634 char *t; 4635 char const *s = 0 ? (char *) 0 : (char const *) 0; 4636 4637 *t++ = 0; 4638 if (s) return 0; 4639 } 4640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4641 int x[] = {25, 17}; 4642 const int *foo = &x[0]; 4643 ++foo; 4644 } 4645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4646 typedef const int *iptr; 4647 iptr p = 0; 4648 ++p; 4649 } 4650 { /* AIX XL C 1.02.0.0 rejects this saying 4651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4652 struct s { int j; const int *ap[3]; }; 4653 struct s *b; b->j = 5; 4654 } 4655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4656 const int foo = 10; 4657 if (!foo) return 0; 4658 } 4659 return !cs[0] && !zero.x; 4660#endif 4661 4662 ; 4663 return 0; 4664} 4665_ACEOF 4666if ac_fn_c_try_compile "$LINENO"; then : 4667 ac_cv_c_const=yes 4668else 4669 ac_cv_c_const=no 4670fi 4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4674$as_echo "$ac_cv_c_const" >&6; } 4675if test $ac_cv_c_const = no; then 4676 4677$as_echo "#define const /**/" >>confdefs.h 4678 4679fi 4680 4681ac_ext=c 4682ac_cpp='$CPP $CPPFLAGS' 4683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4685ac_compiler_gnu=$ac_cv_c_compiler_gnu 4686 4687 4688 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4690$as_echo_n "checking whether $CC supports -g... " >&6; } 4691cache=`echo g | sed 'y%.=/+-%___p_%'` 4692if eval \${cv_prog_cc_flag_$cache+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 4696echo 'void f(){}' >conftest.c 4697if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4698eval "cv_prog_cc_flag_$cache=yes" 4699else 4700eval "cv_prog_cc_flag_$cache=no" 4701fi 4702rm -f conftest conftest.o conftest.c 4703 4704fi 4705 4706if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4708$as_echo "yes" >&6; } 4709: 4710CFLAGS="-g $CFLAGS" 4711else 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4713$as_echo "no" >&6; } 4714: 4715 4716fi 4717 4718 4719 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4721$as_echo_n "checking whether $CC supports -O2... " >&6; } 4722cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4723if eval \${cv_prog_cc_flag_$cache+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 4727echo 'void f(){}' >conftest.c 4728if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4729eval "cv_prog_cc_flag_$cache=yes" 4730else 4731eval "cv_prog_cc_flag_$cache=no" 4732fi 4733rm -f conftest conftest.o conftest.c 4734 4735fi 4736 4737if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4739$as_echo "yes" >&6; } 4740: 4741CFLAGS="-O2 $CFLAGS" 4742else 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4744$as_echo "no" >&6; } 4745: 4746 4747fi 4748 4749 4750 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4752$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4753cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4754if eval \${cv_prog_cc_flag_$cache+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 4758echo 'void f(){}' >conftest.c 4759if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4760eval "cv_prog_cc_flag_$cache=yes" 4761else 4762eval "cv_prog_cc_flag_$cache=no" 4763fi 4764rm -f conftest conftest.o conftest.c 4765 4766fi 4767 4768if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4770$as_echo "yes" >&6; } 4771: 4772CFLAGS="-Wall $CFLAGS" 4773else 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4775$as_echo "no" >&6; } 4776: 4777 4778fi 4779 4780 4781 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 4783$as_echo_n "checking whether $CC supports -W... " >&6; } 4784cache=`echo W | sed 'y%.=/+-%___p_%'` 4785if eval \${cv_prog_cc_flag_$cache+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 4789echo 'void f(){}' >conftest.c 4790if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 4791eval "cv_prog_cc_flag_$cache=yes" 4792else 4793eval "cv_prog_cc_flag_$cache=no" 4794fi 4795rm -f conftest conftest.o conftest.c 4796 4797fi 4798 4799if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4801$as_echo "yes" >&6; } 4802: 4803CFLAGS="-W $CFLAGS" 4804else 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4806$as_echo "no" >&6; } 4807: 4808 4809fi 4810 4811 4812 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5 4814$as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; } 4815cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'` 4816if eval \${cv_prog_cc_flag_$cache+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 4820echo 'void f(){}' >conftest.c 4821if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then 4822eval "cv_prog_cc_flag_$cache=yes" 4823else 4824eval "cv_prog_cc_flag_$cache=no" 4825fi 4826rm -f conftest conftest.o conftest.c 4827 4828fi 4829 4830if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4832$as_echo "yes" >&6; } 4833: 4834CFLAGS="-Wwrite-strings $CFLAGS" 4835else 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4837$as_echo "no" >&6; } 4838: 4839 4840fi 4841 4842 4843 4844for ac_header in getopt.h time.h 4845do : 4846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4848" 4849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4850 cat >>confdefs.h <<_ACEOF 4851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4852_ACEOF 4853 4854fi 4855 4856done 4857 4858 4859# MinGW32 tests 4860for ac_header in winsock2.h ws2tcpip.h 4861do : 4862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4863ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4864" 4865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4866 cat >>confdefs.h <<_ACEOF 4867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4868_ACEOF 4869 4870fi 4871 4872done 4873 4874# end mingw32 tests 4875 4876 4877 4878 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4880$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4881cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4882if eval \${cv_prog_cc_flag_$cache+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 4886echo 'void f(){}' >conftest.c 4887if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4888eval "cv_prog_cc_flag_$cache=yes" 4889else 4890eval "cv_prog_cc_flag_$cache=no" 4891fi 4892rm -f conftest conftest.o conftest.c 4893 4894fi 4895 4896if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4898$as_echo "yes" >&6; } 4899: 4900ERRFLAG="-Werror" 4901else 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4903$as_echo "no" >&6; } 4904: 4905ERRFLAG="-errwarn" 4906fi 4907 4908 4909 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4911$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4912cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4913if eval \${cv_prog_cc_flag_$cache+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 4917echo 'void f(){}' >conftest.c 4918if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4919eval "cv_prog_cc_flag_$cache=yes" 4920else 4921eval "cv_prog_cc_flag_$cache=no" 4922fi 4923rm -f conftest conftest.o conftest.c 4924 4925fi 4926 4927if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4929$as_echo "yes" >&6; } 4930: 4931ERRFLAG="$ERRFLAG -Wall" 4932else 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4934$as_echo "no" >&6; } 4935: 4936ERRFLAG="$ERRFLAG -errfmt" 4937fi 4938 4939 4940 4941 4942 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4944$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4945cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4946if eval \${cv_prog_cc_flag_$cache+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 4950echo 'void f(){}' >conftest.c 4951if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4952eval "cv_prog_cc_flag_$cache=yes" 4953else 4954eval "cv_prog_cc_flag_$cache=no" 4955fi 4956rm -f conftest conftest.o conftest.c 4957 4958fi 4959 4960if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4962$as_echo "yes" >&6; } 4963: 4964C99FLAG="-std=c99" 4965else 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4967$as_echo "no" >&6; } 4968: 4969 4970fi 4971 4972 4973 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 4975$as_echo_n "checking whether $CC supports -xc99... " >&6; } 4976cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 4977if eval \${cv_prog_cc_flag_$cache+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 4981echo 'void f(){}' >conftest.c 4982if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 4983eval "cv_prog_cc_flag_$cache=yes" 4984else 4985eval "cv_prog_cc_flag_$cache=no" 4986fi 4987rm -f conftest conftest.o conftest.c 4988 4989fi 4990 4991if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4993$as_echo "yes" >&6; } 4994: 4995C99FLAG="-xc99" 4996else 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4998$as_echo "no" >&6; } 4999: 5000 5001fi 5002 5003 5004for ac_header in getopt.h time.h 5005do : 5006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5007ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5008" 5009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5010 cat >>confdefs.h <<_ACEOF 5011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5012_ACEOF 5013 5014fi 5015 5016done 5017 5018 5019 5020 5021 5022{ $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 5023$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; } 5024cache=`$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` 5025if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 5029echo ' 5030#include "confdefs.h" 5031#include <stdlib.h> 5032#include <ctype.h> 5033#include <sys/time.h> 5034#ifdef HAVE_TIME_H 5035#include <time.h> 5036#endif 5037#include <unistd.h> 5038#include <netdb.h> 5039#ifdef HAVE_GETOPT_H 5040#include <getopt.h> 5041#endif 5042 5043int test() { 5044 int a; 5045 char **opts = NULL; 5046 struct timeval tv; 5047 char *t; 5048 time_t time = 0; 5049 char *buf = NULL; 5050 const char* str = NULL; 5051 struct msghdr msg; 5052 msg.msg_control = 0; 5053 t = ctime_r(&time, buf); 5054 tv.tv_usec = 10; 5055 srandom(32); 5056 a = getopt(2, opts, "a"); 5057 a = isascii(32); 5058 str = gai_strerror(0); 5059 if(str && t && tv.tv_usec && msg.msg_control) 5060 a = 0; 5061 return a; 5062} 5063' > conftest.c 5064echo 'void f(){}' >>conftest.c 5065if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5066eval "cv_prog_cc_flag_needed_$cache=no" 5067else 5068 5069if 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 5070eval "cv_prog_cc_flag_needed_$cache=yes" 5071else 5072eval "cv_prog_cc_flag_needed_$cache=fail" 5073#echo 'Test with flag fails too!' 5074#cat conftest.c 5075#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" 5076#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` 5077#exit 1 5078fi 5079 5080fi 5081rm -f conftest conftest.c conftest.o 5082 5083fi 5084 5085if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5087$as_echo "yes" >&6; } 5088: 5089CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5090else 5091if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5093$as_echo "no" >&6; } 5094#echo 'Test with flag is no!' 5095#cat conftest.c 5096#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" 5097#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` 5098#exit 1 5099: 5100 5101else 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5103$as_echo "failed" >&6; } 5104: 5105 5106fi 5107fi 5108 5109 5110 5111 5112 5113{ $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 5114$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; } 5115cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5116if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 5120echo ' 5121#include "confdefs.h" 5122#include <stdlib.h> 5123#include <ctype.h> 5124#include <sys/time.h> 5125#ifdef HAVE_TIME_H 5126#include <time.h> 5127#endif 5128#include <unistd.h> 5129#include <netdb.h> 5130#ifdef HAVE_GETOPT_H 5131#include <getopt.h> 5132#endif 5133 5134int test() { 5135 int a; 5136 char **opts = NULL; 5137 struct timeval tv; 5138 char *t; 5139 time_t time = 0; 5140 char *buf = NULL; 5141 const char* str = NULL; 5142 struct msghdr msg; 5143 msg.msg_control = 0; 5144 t = ctime_r(&time, buf); 5145 tv.tv_usec = 10; 5146 srandom(32); 5147 a = getopt(2, opts, "a"); 5148 a = isascii(32); 5149 str = gai_strerror(0); 5150 if(str && t && tv.tv_usec && msg.msg_control) 5151 a = 0; 5152 return a; 5153} 5154' > conftest.c 5155echo 'void f(){}' >>conftest.c 5156if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5157eval "cv_prog_cc_flag_needed_$cache=no" 5158else 5159 5160if 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 5161eval "cv_prog_cc_flag_needed_$cache=yes" 5162else 5163eval "cv_prog_cc_flag_needed_$cache=fail" 5164#echo 'Test with flag fails too!' 5165#cat conftest.c 5166#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" 5167#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` 5168#exit 1 5169fi 5170 5171fi 5172rm -f conftest conftest.c conftest.o 5173 5174fi 5175 5176if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5178$as_echo "yes" >&6; } 5179: 5180CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5181else 5182if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5184$as_echo "no" >&6; } 5185#echo 'Test with flag is no!' 5186#cat conftest.c 5187#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" 5188#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` 5189#exit 1 5190: 5191 5192else 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5194$as_echo "failed" >&6; } 5195: 5196 5197fi 5198fi 5199 5200 5201 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5205$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5206cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5207if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 5211echo ' 5212#include <stdbool.h> 5213#include <ctype.h> 5214int test() { 5215 int a = 0; 5216 return a; 5217} 5218' > conftest.c 5219echo 'void f(){}' >>conftest.c 5220if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5221eval "cv_prog_cc_flag_needed_$cache=no" 5222else 5223 5224if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5225eval "cv_prog_cc_flag_needed_$cache=yes" 5226else 5227eval "cv_prog_cc_flag_needed_$cache=fail" 5228#echo 'Test with flag fails too!' 5229#cat conftest.c 5230#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5231#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5232#exit 1 5233fi 5234 5235fi 5236rm -f conftest conftest.c conftest.o 5237 5238fi 5239 5240if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5242$as_echo "yes" >&6; } 5243: 5244CFLAGS="$CFLAGS $C99FLAG" 5245else 5246if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5248$as_echo "no" >&6; } 5249#echo 'Test with flag is no!' 5250#cat conftest.c 5251#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5252#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5253#exit 1 5254: 5255 5256else 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5258$as_echo "failed" >&6; } 5259: 5260 5261fi 5262fi 5263 5264 5265 5266 5267 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5269$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5270cache=_D_BSD_SOURCE 5271if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 5275echo ' 5276#include <ctype.h> 5277 5278int test() { 5279 int a; 5280 a = isascii(32); 5281 return a; 5282} 5283' > conftest.c 5284echo 'void f(){}' >>conftest.c 5285if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5286eval "cv_prog_cc_flag_needed_$cache=no" 5287else 5288 5289if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5290eval "cv_prog_cc_flag_needed_$cache=yes" 5291else 5292eval "cv_prog_cc_flag_needed_$cache=fail" 5293#echo 'Test with flag fails too!' 5294#cat conftest.c 5295#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5296#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5297#exit 1 5298fi 5299 5300fi 5301rm -f conftest conftest.c conftest.o 5302 5303fi 5304 5305if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5307$as_echo "yes" >&6; } 5308: 5309CFLAGS="$CFLAGS -D_BSD_SOURCE" 5310else 5311if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5313$as_echo "no" >&6; } 5314#echo 'Test with flag is no!' 5315#cat conftest.c 5316#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5317#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5318#exit 1 5319: 5320 5321else 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5323$as_echo "failed" >&6; } 5324: 5325 5326fi 5327fi 5328 5329 5330 5331 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5334$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5335cache=_D_GNU_SOURCE 5336if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 5340echo ' 5341#include <netinet/in.h> 5342 5343int test() { 5344 struct in6_pktinfo inf; 5345 int a = (int)sizeof(inf); 5346 return a; 5347} 5348' > conftest.c 5349echo 'void f(){}' >>conftest.c 5350if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5351eval "cv_prog_cc_flag_needed_$cache=no" 5352else 5353 5354if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5355eval "cv_prog_cc_flag_needed_$cache=yes" 5356else 5357eval "cv_prog_cc_flag_needed_$cache=fail" 5358#echo 'Test with flag fails too!' 5359#cat conftest.c 5360#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5361#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5362#exit 1 5363fi 5364 5365fi 5366rm -f conftest conftest.c conftest.o 5367 5368fi 5369 5370if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5372$as_echo "yes" >&6; } 5373: 5374CFLAGS="$CFLAGS -D_GNU_SOURCE" 5375else 5376if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379#echo 'Test with flag is no!' 5380#cat conftest.c 5381#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5382#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5383#exit 1 5384: 5385 5386else 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5388$as_echo "failed" >&6; } 5389: 5390 5391fi 5392fi 5393 5394 5395# check again for GNU_SOURCE for setresgid. May fail if setresgid 5396# is not available at all. -D_FRSRESGID is to make this check unique. 5397# otherwise we would get the previous cached result. 5398 5399 5400 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5402$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5403cache=_D_GNU_SOURCE__D_FRSRESGID 5404if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 5408echo ' 5409#include <unistd.h> 5410 5411int test() { 5412 int a = setresgid(0,0,0); 5413 a = setresuid(0,0,0); 5414 return a; 5415} 5416' > conftest.c 5417echo 'void f(){}' >>conftest.c 5418if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5419eval "cv_prog_cc_flag_needed_$cache=no" 5420else 5421 5422if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5423eval "cv_prog_cc_flag_needed_$cache=yes" 5424else 5425eval "cv_prog_cc_flag_needed_$cache=fail" 5426#echo 'Test with flag fails too!' 5427#cat conftest.c 5428#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5429#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5430#exit 1 5431fi 5432 5433fi 5434rm -f conftest conftest.c conftest.o 5435 5436fi 5437 5438if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5440$as_echo "yes" >&6; } 5441: 5442CFLAGS="$CFLAGS -D_GNU_SOURCE" 5443else 5444if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5446$as_echo "no" >&6; } 5447#echo 'Test with flag is no!' 5448#cat conftest.c 5449#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5450#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5451#exit 1 5452: 5453 5454else 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5456$as_echo "failed" >&6; } 5457: 5458 5459fi 5460fi 5461 5462 5463 5464 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5467$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5468cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh` 5469if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 5473echo ' 5474#include "confdefs.h" 5475#ifdef HAVE_TIME_H 5476#include <time.h> 5477#endif 5478#include <netdb.h> 5479 5480int test() { 5481 int a = 0; 5482 char *t; 5483 time_t time = 0; 5484 char *buf = NULL; 5485 const char* str = NULL; 5486 t = ctime_r(&time, buf); 5487 str = gai_strerror(0); 5488 if(t && str) 5489 a = 0; 5490 return a; 5491} 5492' > conftest.c 5493echo 'void f(){}' >>conftest.c 5494if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5495eval "cv_prog_cc_flag_needed_$cache=no" 5496else 5497 5498if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5499eval "cv_prog_cc_flag_needed_$cache=yes" 5500else 5501eval "cv_prog_cc_flag_needed_$cache=fail" 5502#echo 'Test with flag fails too!' 5503#cat conftest.c 5504#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5505#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5506#exit 1 5507fi 5508 5509fi 5510rm -f conftest conftest.c conftest.o 5511 5512fi 5513 5514if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5516$as_echo "yes" >&6; } 5517: 5518CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5519else 5520if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523#echo 'Test with flag is no!' 5524#cat conftest.c 5525#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5526#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5527#exit 1 5528: 5529 5530else 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5532$as_echo "failed" >&6; } 5533: 5534 5535fi 5536fi 5537 5538 5539 5540 5541 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5543$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5544cache=_D__EXTENSIONS__ 5545if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547else 5548 5549echo ' 5550#include "confdefs.h" 5551#include <stdlib.h> 5552#include <ctype.h> 5553#include <sys/time.h> 5554#ifdef HAVE_TIME_H 5555#include <time.h> 5556#endif 5557#include <unistd.h> 5558#ifdef HAVE_GETOPT_H 5559#include <getopt.h> 5560#endif 5561 5562int test() { 5563 int a; 5564 char **opts = NULL; 5565 struct timeval tv; 5566 tv.tv_usec = 10; 5567 srandom(32); 5568 a = getopt(2, opts, "a"); 5569 a = isascii(32); 5570 if(tv.tv_usec) 5571 a = 0; 5572 return a; 5573} 5574' > conftest.c 5575echo 'void f(){}' >>conftest.c 5576if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5577eval "cv_prog_cc_flag_needed_$cache=no" 5578else 5579 5580if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5581eval "cv_prog_cc_flag_needed_$cache=yes" 5582else 5583eval "cv_prog_cc_flag_needed_$cache=fail" 5584#echo 'Test with flag fails too!' 5585#cat conftest.c 5586#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5587#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5588#exit 1 5589fi 5590 5591fi 5592rm -f conftest conftest.c conftest.o 5593 5594fi 5595 5596if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5598$as_echo "yes" >&6; } 5599: 5600CFLAGS="$CFLAGS -D__EXTENSIONS__" 5601else 5602if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5604$as_echo "no" >&6; } 5605#echo 'Test with flag is no!' 5606#cat conftest.c 5607#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5608#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5609#exit 1 5610: 5611 5612else 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5614$as_echo "failed" >&6; } 5615: 5616 5617fi 5618fi 5619 5620 5621 5622 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5624$as_echo_n "checking for inline... " >&6; } 5625if ${ac_cv_c_inline+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 ac_cv_c_inline=no 5629for ac_kw in inline __inline__ __inline; do 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632#ifndef __cplusplus 5633typedef int foo_t; 5634static $ac_kw foo_t static_foo () {return 0; } 5635$ac_kw foo_t foo () {return 0; } 5636#endif 5637 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO"; then : 5640 ac_cv_c_inline=$ac_kw 5641fi 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5643 test "$ac_cv_c_inline" != no && break 5644done 5645 5646fi 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5648$as_echo "$ac_cv_c_inline" >&6; } 5649 5650case $ac_cv_c_inline in 5651 inline | yes) ;; 5652 *) 5653 case $ac_cv_c_inline in 5654 no) ac_val=;; 5655 *) ac_val=$ac_cv_c_inline;; 5656 esac 5657 cat >>confdefs.h <<_ACEOF 5658#ifndef __cplusplus 5659#define inline $ac_val 5660#endif 5661_ACEOF 5662 ;; 5663esac 5664 5665ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 5666if test "x$ac_cv_type_int8_t" = xyes; then : 5667 5668else 5669 5670cat >>confdefs.h <<_ACEOF 5671#define int8_t char 5672_ACEOF 5673 5674fi 5675 5676ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 5677if test "x$ac_cv_type_int16_t" = xyes; then : 5678 5679else 5680 5681cat >>confdefs.h <<_ACEOF 5682#define int16_t short 5683_ACEOF 5684 5685fi 5686 5687ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 5688if test "x$ac_cv_type_int32_t" = xyes; then : 5689 5690else 5691 5692cat >>confdefs.h <<_ACEOF 5693#define int32_t int 5694_ACEOF 5695 5696fi 5697 5698ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 5699if test "x$ac_cv_type_int64_t" = xyes; then : 5700 5701else 5702 5703cat >>confdefs.h <<_ACEOF 5704#define int64_t long long 5705_ACEOF 5706 5707fi 5708 5709ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 5710if test "x$ac_cv_type_uint8_t" = xyes; then : 5711 5712else 5713 5714cat >>confdefs.h <<_ACEOF 5715#define uint8_t unsigned char 5716_ACEOF 5717 5718fi 5719 5720ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 5721if test "x$ac_cv_type_uint16_t" = xyes; then : 5722 5723else 5724 5725cat >>confdefs.h <<_ACEOF 5726#define uint16_t unsigned short 5727_ACEOF 5728 5729fi 5730 5731ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 5732if test "x$ac_cv_type_uint32_t" = xyes; then : 5733 5734else 5735 5736cat >>confdefs.h <<_ACEOF 5737#define uint32_t unsigned int 5738_ACEOF 5739 5740fi 5741 5742ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 5743if test "x$ac_cv_type_uint64_t" = xyes; then : 5744 5745else 5746 5747cat >>confdefs.h <<_ACEOF 5748#define uint64_t unsigned long long 5749_ACEOF 5750 5751fi 5752 5753 5754# my own checks 5755# Extract the first word of "doxygen", so it can be a program name with args. 5756set dummy doxygen; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_doxygen+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$doxygen"; then 5763 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5772 ac_cv_prog_doxygen="doxygen" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782doxygen=$ac_cv_prog_doxygen 5783if test -n "$doxygen"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 5785$as_echo "$doxygen" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792 5793# check to see if libraries are needed for these functions. 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5795$as_echo_n "checking for library containing socket... " >&6; } 5796if ${ac_cv_search_socket+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 ac_func_search_save_LIBS=$LIBS 5800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5801/* end confdefs.h. */ 5802 5803/* Override any GCC internal prototype to avoid an error. 5804 Use char because int might match the return type of a GCC 5805 builtin and then its argument prototype would still apply. */ 5806#ifdef __cplusplus 5807extern "C" 5808#endif 5809char socket (); 5810int 5811main () 5812{ 5813return socket (); 5814 ; 5815 return 0; 5816} 5817_ACEOF 5818for ac_lib in '' socket; do 5819 if test -z "$ac_lib"; then 5820 ac_res="none required" 5821 else 5822 ac_res=-l$ac_lib 5823 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5824 fi 5825 if ac_fn_c_try_link "$LINENO"; then : 5826 ac_cv_search_socket=$ac_res 5827fi 5828rm -f core conftest.err conftest.$ac_objext \ 5829 conftest$ac_exeext 5830 if ${ac_cv_search_socket+:} false; then : 5831 break 5832fi 5833done 5834if ${ac_cv_search_socket+:} false; then : 5835 5836else 5837 ac_cv_search_socket=no 5838fi 5839rm conftest.$ac_ext 5840LIBS=$ac_func_search_save_LIBS 5841fi 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5843$as_echo "$ac_cv_search_socket" >&6; } 5844ac_res=$ac_cv_search_socket 5845if test "$ac_res" != no; then : 5846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5847 5848fi 5849 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 5851$as_echo_n "checking for library containing inet_pton... " >&6; } 5852if ${ac_cv_search_inet_pton+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 ac_func_search_save_LIBS=$LIBS 5856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858 5859/* Override any GCC internal prototype to avoid an error. 5860 Use char because int might match the return type of a GCC 5861 builtin and then its argument prototype would still apply. */ 5862#ifdef __cplusplus 5863extern "C" 5864#endif 5865char inet_pton (); 5866int 5867main () 5868{ 5869return inet_pton (); 5870 ; 5871 return 0; 5872} 5873_ACEOF 5874for ac_lib in '' nsl; do 5875 if test -z "$ac_lib"; then 5876 ac_res="none required" 5877 else 5878 ac_res=-l$ac_lib 5879 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5880 fi 5881 if ac_fn_c_try_link "$LINENO"; then : 5882 ac_cv_search_inet_pton=$ac_res 5883fi 5884rm -f core conftest.err conftest.$ac_objext \ 5885 conftest$ac_exeext 5886 if ${ac_cv_search_inet_pton+:} false; then : 5887 break 5888fi 5889done 5890if ${ac_cv_search_inet_pton+:} false; then : 5891 5892else 5893 ac_cv_search_inet_pton=no 5894fi 5895rm conftest.$ac_ext 5896LIBS=$ac_func_search_save_LIBS 5897fi 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 5899$as_echo "$ac_cv_search_inet_pton" >&6; } 5900ac_res=$ac_cv_search_inet_pton 5901if test "$ac_res" != no; then : 5902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5903 5904fi 5905 5906 5907 5908 5909# Check whether --with-drill was given. 5910if test "${with_drill+set}" = set; then : 5911 withval=$with_drill; 5912else 5913 with_drill="no" 5914fi 5915 5916if test x_$with_drill != x_no ; then 5917 DRILL=drill 5918 5919 INSTALL_DRILL=install-drill 5920 5921 UNINSTALL_DRILL=uninstall-drill 5922 5923 CLEAN_DRILL=clean-drill 5924 5925 LINT_DRILL=lint-drill 5926 5927 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then 5928 as_fn_error $? " 5929A config.h was detected in the drill subdirectory. 5930This does not work with the --with-drill option. 5931Please remove the config.h from the drill subdirectory 5932or do not use the --with-drill option." "$LINENO" 5 5933 fi 5934else 5935 DRILL="" 5936 5937 INSTALL_DRILL="" 5938 5939 UNINSTALL_DRILL="" 5940 5941 CLEAN_DRILL="" 5942 5943 LINT_DRILL="" 5944 5945fi 5946 5947 5948 5949# Check whether --with-examples was given. 5950if test "${with_examples+set}" = set; then : 5951 withval=$with_examples; 5952else 5953 with_examples="no" 5954fi 5955 5956if test x_$with_examples != x_no ; then 5957 EXAMPLES=examples 5958 5959 INSTALL_EXAMPLES=install-examples 5960 5961 UNINSTALL_EXAMPLES=uninstall-examples 5962 5963 CLEAN_EXAMPLES=clean-examples 5964 5965 LINT_EXAMPLES=lint-examples 5966 5967 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then 5968 as_fn_error $? " 5969A config.h was detected in the examples subdirectory. 5970This does not work with the --with-examples option. 5971Please remove the config.h from the examples subdirectory 5972or do not use the --with-examples option." "$LINENO" 5 5973 fi 5974else 5975 EXAMPLES="" 5976 5977 INSTALL_EXAMPLES="" 5978 5979 UNINSTALL_EXAMPLES="" 5980 5981 CLEAN_EXAMPLES="" 5982 5983 LINT_EXAMPLES="" 5984 5985fi 5986 5987# add option to disable installation of ldns-config script 5988# Check whether --enable-ldns-config was given. 5989if test "${enable_ldns_config+set}" = set; then : 5990 enableval=$enable_ldns_config; enable_ldns_config=$enableval 5991else 5992 enable_ldns_config=yes 5993fi 5994 5995if test "x$enable_ldns_config" = xyes; then 5996 INSTALL_CONFIG=install-config 5997 5998 INSTALL_CONFIG_MANPAGE=install-config-manpage 5999 6000 UNINSTALL_CONFIG=uninstall-config 6001 6002 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage 6003 6004else 6005 INSTALL_CONFIG="" 6006 6007 INSTALL_CONFIG_MANPAGE="" 6008 6009 UNINSTALL_CONFIG="" 6010 6011 UNINSTALL_CONFIG_MANPAGE="" 6012 6013fi 6014 6015# check for python 6016PYTHON_X_CFLAGS="" 6017ldns_with_pyldns=no 6018ldns_with_pyldnsx=no 6019 6020# Check whether --with-pyldns was given. 6021if test "${with_pyldns+set}" = set; then : 6022 withval=$with_pyldns; 6023else 6024 withval="no" 6025fi 6026 6027ldns_have_python=no 6028if test x_$withval != x_no; then 6029 # =========================================================================== 6030# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html 6031# =========================================================================== 6032# 6033# SYNOPSIS 6034# 6035# AX_PYTHON_DEVEL([version]) 6036# 6037# DESCRIPTION 6038# 6039# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it 6040# in your configure.ac. 6041# 6042# This macro checks for Python and tries to get the include path to 6043# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS) 6044# output variables. It also exports $(PYTHON_EXTRA_LIBS) and 6045# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. 6046# 6047# You can search for some particular version of Python by passing a 6048# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please 6049# note that you *have* to pass also an operator along with the version to 6050# match, and pay special attention to the single quotes surrounding the 6051# version number. Don't use "PYTHON_VERSION" for this: that environment 6052# variable is declared as precious and thus reserved for the end-user. 6053# 6054# This macro should work for all versions of Python >= 2.1.0. As an end 6055# user, you can disable the check for the python version by setting the 6056# PYTHON_NOVERSIONCHECK environment variable to something else than the 6057# empty string. 6058# 6059# If you need to use this macro for an older Python version, please 6060# contact the authors. We're always open for feedback. 6061# 6062# LICENSE 6063# 6064# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de> 6065# Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca> 6066# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net> 6067# Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za> 6068# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org> 6069# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org> 6070# 6071# This program is free software: you can redistribute it and/or modify it 6072# under the terms of the GNU General Public License as published by the 6073# Free Software Foundation, either version 3 of the License, or (at your 6074# option) any later version. 6075# 6076# This program is distributed in the hope that it will be useful, but 6077# WITHOUT ANY WARRANTY; without even the implied warranty of 6078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 6079# Public License for more details. 6080# 6081# You should have received a copy of the GNU General Public License along 6082# with this program. If not, see <http://www.gnu.org/licenses/>. 6083# 6084# As a special exception, the respective Autoconf Macro's copyright owner 6085# gives unlimited permission to copy, distribute and modify the configure 6086# scripts that are the output of Autoconf when processing the Macro. You 6087# need not follow the terms of the GNU General Public License when using 6088# or distributing such scripts, even though portions of the text of the 6089# Macro appear in them. The GNU General Public License (GPL) does govern 6090# all other use of the material that constitutes the Autoconf Macro. 6091# 6092# This special exception to the GPL applies to versions of the Autoconf 6093# Macro released by the Autoconf Archive. When you make and distribute a 6094# modified version of the Autoconf Macro, you may extend this special 6095# exception to the GPL to apply to your modified version as well. 6096 6097#serial 8 6098 6099# This is what autoupdate's m4 run will expand. It fires 6100# the warning (with _au_warn_XXX), outputs it into the 6101# updated configure.ac (with AC_DIAGNOSE), and then outputs 6102# the replacement expansion. 6103 6104 6105# This is an auxiliary macro that is also run when 6106# autoupdate runs m4. It simply calls m4_warning, but 6107# we need a wrapper so that each warning is emitted only 6108# once. We break the quoting in m4_warning's argument in 6109# order to expand this macro's arguments, not AU_DEFUN's. 6110 6111 6112# Finally, this is the expansion that is picked up by 6113# autoconf. It tells the user to run autoupdate, and 6114# then outputs the replacement expansion. We do not care 6115# about autoupdate's warning because that contains 6116# information on what to do *after* running autoupdate. 6117 6118 6119 6120 ac_save_LIBS="$LIBS" 6121 6122 # 6123 # Allow the use of a (user set) custom python version 6124 # 6125 6126 6127 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 6128set dummy python$PYTHON_VERSION; ac_word=$2 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130$as_echo_n "checking for $ac_word... " >&6; } 6131if ${ac_cv_path_PYTHON+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 case $PYTHON in 6135 [\\/]* | ?:[\\/]*) 6136 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 6137 ;; 6138 *) 6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 test -z "$as_dir" && as_dir=. 6144 for ac_exec_ext in '' $ac_executable_extensions; do 6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6146 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6148 break 2 6149 fi 6150done 6151 done 6152IFS=$as_save_IFS 6153 6154 ;; 6155esac 6156fi 6157PYTHON=$ac_cv_path_PYTHON 6158if test -n "$PYTHON"; then 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 6160$as_echo "$PYTHON" >&6; } 6161else 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6163$as_echo "no" >&6; } 6164fi 6165 6166 6167 if test -z "$PYTHON"; then 6168 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 6169 PYTHON_VERSION="" 6170 fi 6171 6172 # 6173 # Check for a version of Python >= 2.1.0 6174 # 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 6176$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 6177 ac_supports_python_ver=`$PYTHON -c "import sys; \ 6178 ver = sys.version.split ()[0]; \ 6179 print (ver >= '2.1.0')"` 6180 if test "$ac_supports_python_ver" != "True"; then 6181 if test -z "$PYTHON_NOVERSIONCHECK"; then 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6183$as_echo "no" >&6; } 6184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6186as_fn_error $? " 6187This version of the AC_PYTHON_DEVEL macro 6188doesn't work properly with versions of Python before 61892.1.0. You may need to re-run configure, setting the 6190variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 6191PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 6192Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 6193to something else than an empty string. 6194 6195See \`config.log' for more details" "$LINENO" 5; } 6196 else 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 6198$as_echo "skip at user request" >&6; } 6199 fi 6200 else 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6202$as_echo "yes" >&6; } 6203 fi 6204 6205 # 6206 # if the macro parameter ``version'' is set, honour it 6207 # 6208 if test -n ">= '2.4.0'"; then 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5 6210$as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; } 6211 ac_supports_python_ver=`$PYTHON -c "import sys; \ 6212 ver = sys.version.split ()[0]; \ 6213 print (ver >= '2.4.0')"` 6214 if test "$ac_supports_python_ver" = "True"; then 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6216$as_echo "yes" >&6; } 6217 else 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6219$as_echo "no" >&6; } 6220 as_fn_error $? "this package requires Python >= '2.4.0'. 6221If you have it installed, but it isn't the default Python 6222interpreter in your system path, please pass the PYTHON_VERSION 6223variable to configure. See \`\`configure --help'' for reference. 6224" "$LINENO" 5 6225 PYTHON_VERSION="" 6226 fi 6227 fi 6228 6229 # 6230 # Check if you have distutils, else fail 6231 # 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 6233$as_echo_n "checking for the distutils Python package... " >&6; } 6234 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 6235 if test -z "$ac_distutils_result"; 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 $? "cannot import Python module \"distutils\". 6242Please check your Python installation. The error was: 6243$ac_distutils_result" "$LINENO" 5 6244 PYTHON_VERSION="" 6245 fi 6246 6247 # 6248 # Check for Python include path 6249 # 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 6251$as_echo_n "checking for Python include path... " >&6; } 6252 if test -z "$PYTHON_CPPFLAGS"; then 6253 python_path=`$PYTHON -c "import distutils.sysconfig; \ 6254 print (distutils.sysconfig.get_python_inc ());"` 6255 if test -n "${python_path}"; then 6256 python_path="-I$python_path" 6257 fi 6258 PYTHON_CPPFLAGS=$python_path 6259 fi 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 6261$as_echo "$PYTHON_CPPFLAGS" >&6; } 6262 6263 6264 # 6265 # Check for Python library path 6266 # 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 6268$as_echo_n "checking for Python library path... " >&6; } 6269 if test -z "$PYTHON_LDFLAGS"; then 6270 # (makes two attempts to ensure we've got a version number 6271 # from the interpreter) 6272 ac_python_version=`cat<<EOD | $PYTHON - 6273 6274# join all versioning strings, on some systems 6275# major/minor numbers could be in different list elements 6276from distutils.sysconfig import * 6277ret = '' 6278for e in get_config_vars ('VERSION'): 6279 if (e != None): 6280 ret += e 6281print (ret) 6282EOD 6283` 6284 6285 if test -z "$ac_python_version"; then 6286 if test -n "$PYTHON_VERSION"; then 6287 ac_python_version=$PYTHON_VERSION 6288 else 6289 ac_python_version=`$PYTHON -c "import sys; \ 6290 print (sys.version[:3])"` 6291 fi 6292 fi 6293 6294 # Make the versioning information available to the compiler 6295 6296cat >>confdefs.h <<_ACEOF 6297#define HAVE_PYTHON "$ac_python_version" 6298_ACEOF 6299 6300 6301 # First, the library directory: 6302 ac_python_libdir=`cat<<EOD | $PYTHON - 6303 6304# There should be only one 6305import distutils.sysconfig 6306for e in distutils.sysconfig.get_config_vars ('LIBDIR'): 6307 if e != None: 6308 print (e) 6309 break 6310EOD 6311` 6312 6313 # Before checking for libpythonX.Y, we need to know 6314 # the extension the OS we're on uses for libraries 6315 # (we take the first one, if there's more than one fix me!): 6316 ac_python_soext=`$PYTHON -c \ 6317 "import distutils.sysconfig; \ 6318 print (distutils.sysconfig.get_config_vars('SO')[0])"` 6319 6320 # Now, for the library: 6321 ac_python_soname=`$PYTHON -c \ 6322 "import distutils.sysconfig; \ 6323 print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"` 6324 6325 # Strip away extension from the end to canonicalize its name: 6326 ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"` 6327 6328 # This small piece shamelessly adapted from PostgreSQL python macro; 6329 # credits goes to momjian, I think. I'd like to put the right name 6330 # in the credits, if someone can point me in the right direction... ? 6331 # 6332 if test -n "$ac_python_libdir" -a -n "$ac_python_library" \ 6333 -a x"$ac_python_library" != x"$ac_python_soname" 6334 then 6335 # use the official shared library 6336 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 6337 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 6338 else 6339 # old way: use libpython from python_configdir 6340 ac_python_libdir=`$PYTHON -c \ 6341 "from distutils.sysconfig import get_python_lib as f; \ 6342 import os; \ 6343 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 6344 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 6345 fi 6346 6347 if test -z "PYTHON_LDFLAGS"; then 6348 as_fn_error $? " 6349 Cannot determine location of your Python DSO. Please check it was installed with 6350 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 6351 " "$LINENO" 5 6352 fi 6353 fi 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 6355$as_echo "$PYTHON_LDFLAGS" >&6; } 6356 6357 6358 # 6359 # Check for site packages 6360 # 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 6362$as_echo_n "checking for Python site-packages path... " >&6; } 6363 if test -z "$PYTHON_SITE_PKG"; then 6364 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 6365 print (distutils.sysconfig.get_python_lib(1,0));"` 6366 fi 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 6368$as_echo "$PYTHON_SITE_PKG" >&6; } 6369 6370 6371 # 6372 # libraries which must be linked in when embedding 6373 # 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 6375$as_echo_n "checking python extra libraries... " >&6; } 6376 if test -z "$PYTHON_EXTRA_LIBS"; then 6377 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 6378 conf = distutils.sysconfig.get_config_var; \ 6379 print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"` 6380 fi 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 6382$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 6383 6384 6385 # 6386 # linking flags needed when embedding 6387 # 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 6389$as_echo_n "checking python extra linking flags... " >&6; } 6390 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 6391 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 6392 conf = distutils.sysconfig.get_config_var; \ 6393 print (conf('LINKFORSHARED'))"` 6394 fi 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 6396$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 6397 6398 6399 # 6400 # final check to see if everything compiles alright 6401 # 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 6403$as_echo_n "checking consistency of all components of python development environment... " >&6; } 6404 # save current global flags 6405 ac_save_LIBS="$LIBS" 6406 ac_save_CPPFLAGS="$CPPFLAGS" 6407 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 6408 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 6409 ac_ext=c 6410ac_cpp='$CPP $CPPFLAGS' 6411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6413ac_compiler_gnu=$ac_cv_c_compiler_gnu 6414 6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6416/* end confdefs.h. */ 6417 6418 #include <Python.h> 6419int 6420main () 6421{ 6422Py_Initialize(); 6423 ; 6424 return 0; 6425} 6426 6427_ACEOF 6428if ac_fn_c_try_link "$LINENO"; then : 6429 pythonexists=yes 6430else 6431 pythonexists=no 6432fi 6433rm -f core conftest.err conftest.$ac_objext \ 6434 conftest$ac_exeext conftest.$ac_ext 6435 ac_ext=c 6436ac_cpp='$CPP $CPPFLAGS' 6437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6439ac_compiler_gnu=$ac_cv_c_compiler_gnu 6440 6441 # turn back to default flags 6442 CPPFLAGS="$ac_save_CPPFLAGS" 6443 LIBS="$ac_save_LIBS" 6444 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 6446$as_echo "$pythonexists" >&6; } 6447 6448 if test ! "x$pythonexists" = "xyes"; then 6449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6451as_fn_error $? " 6452 Could not link test program to Python. Maybe the main Python library has been 6453 installed in some non-standard library path. If so, pass it to configure, 6454 via the LDFLAGS environment variable. 6455 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 6456 ============================================================================ 6457 ERROR! 6458 You probably have to install the development version of the Python package 6459 for your distribution. The exact name of this package varies among them. 6460 ============================================================================ 6461 6462See \`config.log' for more details" "$LINENO" 5; } 6463 PYTHON_VERSION="" 6464 fi 6465 6466 # 6467 # all done! 6468 # 6469 6470 if test ! -z "$ac_python_version"; then 6471 ldns_have_python=yes 6472 fi 6473 6474 # pass additional Python 3 option to SWIG 6475 if test `$PYTHON -c "import sys; \ 6476 ver = sys.version.split()[0]; \ 6477 print(ver >= '3')"` = "True"; then 6478 SWIGPY3="-py3 -DPY3" 6479 6480 fi 6481 6482 # check for SWIG 6483 if test x_$ldns_have_python != x_no; then 6484 # =========================================================================== 6485# http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html 6486# =========================================================================== 6487# 6488# SYNOPSIS 6489# 6490# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) 6491# 6492# DESCRIPTION 6493# 6494# This macro searches for a SWIG installation on your system. If found, 6495# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is 6496# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. 6497# 6498# You can use the optional first argument to check if the version of the 6499# available SWIG is greater than or equal to the value of the argument. It 6500# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only 6501# the first N is mandatory.) If the version argument is given (e.g. 6502# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number 6503# or higher. 6504# 6505# As usual, action-if-found is executed if SWIG is found, otherwise 6506# action-if-not-found is executed. 6507# 6508# In configure.in, use as: 6509# 6510# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) 6511# AX_SWIG_ENABLE_CXX 6512# AX_SWIG_MULTI_MODULE_SUPPORT 6513# AX_SWIG_PYTHON 6514# 6515# LICENSE 6516# 6517# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> 6518# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> 6519# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> 6520# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> 6521# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com> 6522# 6523# This program is free software; you can redistribute it and/or modify it 6524# under the terms of the GNU General Public License as published by the 6525# Free Software Foundation; either version 2 of the License, or (at your 6526# option) any later version. 6527# 6528# This program is distributed in the hope that it will be useful, but 6529# WITHOUT ANY WARRANTY; without even the implied warranty of 6530# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 6531# Public License for more details. 6532# 6533# You should have received a copy of the GNU General Public License along 6534# with this program. If not, see <http://www.gnu.org/licenses/>. 6535# 6536# As a special exception, the respective Autoconf Macro's copyright owner 6537# gives unlimited permission to copy, distribute and modify the configure 6538# scripts that are the output of Autoconf when processing the Macro. You 6539# need not follow the terms of the GNU General Public License when using 6540# or distributing such scripts, even though portions of the text of the 6541# Macro appear in them. The GNU General Public License (GPL) does govern 6542# all other use of the material that constitutes the Autoconf Macro. 6543# 6544# This special exception to the GPL applies to versions of the Autoconf 6545# Macro released by the Autoconf Archive. When you make and distribute a 6546# modified version of the Autoconf Macro, you may extend this special 6547# exception to the GPL to apply to your modified version as well. 6548 6549#serial 8 6550 6551 6552 6553 6554 # check for >=SWIG-2.0.4 if Python 3.2 used 6555 if test `$PYTHON -c "import sys; \ 6556 ver = sys.version.split()[0]; \ 6557 print(ver >= '3.2')"` = "True"; then 6558 6559 # Ubuntu has swig 2.0 as /usr/bin/swig2.0 6560 for ac_prog in swig2.0 swig 6561do 6562 # Extract the first word of "$ac_prog", so it can be a program name with args. 6563set dummy $ac_prog; ac_word=$2 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6565$as_echo_n "checking for $ac_word... " >&6; } 6566if ${ac_cv_path_SWIG+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 case $SWIG in 6570 [\\/]* | ?:[\\/]*) 6571 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 6572 ;; 6573 *) 6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6581 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6583 break 2 6584 fi 6585done 6586 done 6587IFS=$as_save_IFS 6588 6589 ;; 6590esac 6591fi 6592SWIG=$ac_cv_path_SWIG 6593if test -n "$SWIG"; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 6595$as_echo "$SWIG" >&6; } 6596else 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6598$as_echo "no" >&6; } 6599fi 6600 6601 6602 test -n "$SWIG" && break 6603done 6604 6605 if test -z "$SWIG" ; then 6606 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 6607 elif test -n "2.0.4" ; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 6609$as_echo_n "checking SWIG version... " >&6; } 6610 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'` 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 6612$as_echo "$swig_version" >&6; } 6613 if test -n "$swig_version" ; then 6614 # Calculate the required version number components 6615 required=2.0.4 6616 required_major=`echo $required | sed 's/[^0-9].*//'` 6617 if test -z "$required_major" ; then 6618 required_major=0 6619 fi 6620 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6621 required_minor=`echo $required | sed 's/[^0-9].*//'` 6622 if test -z "$required_minor" ; then 6623 required_minor=0 6624 fi 6625 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6626 required_patch=`echo $required | sed 's/[^0-9].*//'` 6627 if test -z "$required_patch" ; then 6628 required_patch=0 6629 fi 6630 # Calculate the available version number components 6631 available=$swig_version 6632 available_major=`echo $available | sed 's/[^0-9].*//'` 6633 if test -z "$available_major" ; then 6634 available_major=0 6635 fi 6636 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6637 available_minor=`echo $available | sed 's/[^0-9].*//'` 6638 if test -z "$available_minor" ; then 6639 available_minor=0 6640 fi 6641 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6642 available_patch=`echo $available | sed 's/[^0-9].*//'` 6643 if test -z "$available_patch" ; then 6644 available_patch=0 6645 fi 6646 # Convert the version tuple into a single number for easier comparison. 6647 # Using base 100 should be safe since SWIG internally uses BCD values 6648 # to encode its version number. 6649 required_swig_vernum=`expr $required_major \* 10000 \ 6650 \+ $required_minor \* 100 \+ $required_patch` 6651 available_swig_vernum=`expr $available_major \* 10000 \ 6652 \+ $available_minor \* 100 \+ $available_patch` 6653 6654 if test $available_swig_vernum -lt $required_swig_vernum; then 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5 6656$as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;} 6657 SWIG='' 6658 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 6659 else 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 6661$as_echo_n "checking for SWIG library... " >&6; } 6662 SWIG_LIB=`$SWIG -swiglib` 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 6664$as_echo "$SWIG_LIB" >&6; } 6665 6666 fi 6667 else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 6669$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 6670 SWIG='' 6671 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 6672 fi 6673 fi 6674 6675 6676 else 6677 6678 # Ubuntu has swig 2.0 as /usr/bin/swig2.0 6679 for ac_prog in swig2.0 swig 6680do 6681 # Extract the first word of "$ac_prog", so it can be a program name with args. 6682set dummy $ac_prog; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_path_SWIG+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 case $SWIG in 6689 [\\/]* | ?:[\\/]*) 6690 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 6691 ;; 6692 *) 6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6694for as_dir in $PATH 6695do 6696 IFS=$as_save_IFS 6697 test -z "$as_dir" && as_dir=. 6698 for ac_exec_ext in '' $ac_executable_extensions; do 6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6700 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6702 break 2 6703 fi 6704done 6705 done 6706IFS=$as_save_IFS 6707 6708 ;; 6709esac 6710fi 6711SWIG=$ac_cv_path_SWIG 6712if test -n "$SWIG"; then 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 6714$as_echo "$SWIG" >&6; } 6715else 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717$as_echo "no" >&6; } 6718fi 6719 6720 6721 test -n "$SWIG" && break 6722done 6723 6724 if test -z "$SWIG" ; then 6725 : 6726 elif test -n "" ; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 6728$as_echo_n "checking SWIG version... " >&6; } 6729 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'` 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 6731$as_echo "$swig_version" >&6; } 6732 if test -n "$swig_version" ; then 6733 # Calculate the required version number components 6734 required= 6735 required_major=`echo $required | sed 's/[^0-9].*//'` 6736 if test -z "$required_major" ; then 6737 required_major=0 6738 fi 6739 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6740 required_minor=`echo $required | sed 's/[^0-9].*//'` 6741 if test -z "$required_minor" ; then 6742 required_minor=0 6743 fi 6744 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 6745 required_patch=`echo $required | sed 's/[^0-9].*//'` 6746 if test -z "$required_patch" ; then 6747 required_patch=0 6748 fi 6749 # Calculate the available version number components 6750 available=$swig_version 6751 available_major=`echo $available | sed 's/[^0-9].*//'` 6752 if test -z "$available_major" ; then 6753 available_major=0 6754 fi 6755 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6756 available_minor=`echo $available | sed 's/[^0-9].*//'` 6757 if test -z "$available_minor" ; then 6758 available_minor=0 6759 fi 6760 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 6761 available_patch=`echo $available | sed 's/[^0-9].*//'` 6762 if test -z "$available_patch" ; then 6763 available_patch=0 6764 fi 6765 # Convert the version tuple into a single number for easier comparison. 6766 # Using base 100 should be safe since SWIG internally uses BCD values 6767 # to encode its version number. 6768 required_swig_vernum=`expr $required_major \* 10000 \ 6769 \+ $required_minor \* 100 \+ $required_patch` 6770 available_swig_vernum=`expr $available_major \* 10000 \ 6771 \+ $available_minor \* 100 \+ $available_patch` 6772 6773 if test $available_swig_vernum -lt $required_swig_vernum; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 6775$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 6776 SWIG='' 6777 6778 else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 6780$as_echo_n "checking for SWIG library... " >&6; } 6781 SWIG_LIB=`$SWIG -swiglib` 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 6783$as_echo "$SWIG_LIB" >&6; } 6784 6785 fi 6786 else 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 6788$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 6789 SWIG='' 6790 6791 fi 6792 fi 6793 6794 6795 fi 6796 6797 if test ! -x "$SWIG"; then 6798 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5 6799 else 6800 6801$as_echo "#define HAVE_SWIG 1" >>confdefs.h 6802 6803 PYLDNS="pyldns" 6804 6805 swig="$SWIG" 6806 6807 ldns_with_pyldns=yes 6808 fi 6809 else 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5 6811$as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # ' 6812 fi 6813 6814 # xtra cflags for pyldns 6815 if test x_$ldns_have_python != x_no; then 6816 6817 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 6819$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; } 6820cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 6821if eval \${cv_prog_cc_flag_$cache+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823else 6824 6825echo 'void f(){}' >conftest.c 6826if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 6827eval "cv_prog_cc_flag_$cache=yes" 6828else 6829eval "cv_prog_cc_flag_$cache=no" 6830fi 6831rm -f conftest conftest.o conftest.c 6832 6833fi 6834 6835if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6837$as_echo "yes" >&6; } 6838: 6839PYTHON_X_CFLAGS="-fno-strict-aliasing" 6840else 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6842$as_echo "no" >&6; } 6843: 6844 6845fi 6846 6847 6848 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5 6850$as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; } 6851cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'` 6852if eval \${cv_prog_cc_flag_$cache+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 6856echo 'void f(){}' >conftest.c 6857if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then 6858eval "cv_prog_cc_flag_$cache=yes" 6859else 6860eval "cv_prog_cc_flag_$cache=no" 6861fi 6862rm -f conftest conftest.o conftest.c 6863 6864fi 6865 6866if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6868$as_echo "yes" >&6; } 6869: 6870PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS" 6871else 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874: 6875 6876fi 6877 6878 6879 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5 6881$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; } 6882cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'` 6883if eval \${cv_prog_cc_flag_$cache+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 6887echo 'void f(){}' >conftest.c 6888if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then 6889eval "cv_prog_cc_flag_$cache=yes" 6890else 6891eval "cv_prog_cc_flag_$cache=no" 6892fi 6893rm -f conftest conftest.o conftest.c 6894 6895fi 6896 6897if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6899$as_echo "yes" >&6; } 6900: 6901PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS" 6902else 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6904$as_echo "no" >&6; } 6905: 6906 6907fi 6908 6909 6910 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5 6912$as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; } 6913cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'` 6914if eval \${cv_prog_cc_flag_$cache+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 6918echo 'void f(){}' >conftest.c 6919if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then 6920eval "cv_prog_cc_flag_$cache=yes" 6921else 6922eval "cv_prog_cc_flag_$cache=no" 6923fi 6924rm -f conftest conftest.o conftest.c 6925 6926fi 6927 6928if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6930$as_echo "yes" >&6; } 6931: 6932PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS" 6933else 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6935$as_echo "no" >&6; } 6936: 6937 6938fi 6939 6940 fi 6941fi 6942 6943 6944# Check for pyldnsx 6945 6946# Check whether --with-pyldnsx was given. 6947if test "${with_pyldnsx+set}" = set; then : 6948 withval=$with_pyldnsx; 6949else 6950 withval="with_pyldns" 6951fi 6952 6953if test x_$withval != x_no; then 6954 if test x_$ldns_with_pyldns != x_no; then 6955 PYLDNSX="pyldnsx" 6956 6957 ldns_with_pyldnsx=yes 6958 else 6959 if test x_$withval != x_with_pyldns; then 6960 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5 6961 fi 6962 fi 6963fi 6964 6965if test x_$ldns_with_pyldns != x_no; then 6966 PYLDNSINST="install-pyldns" 6967 PYLDNSUNINST="uninstall-pyldns" 6968 6969else 6970 PYLDNSINST="" 6971 PYLDNSUNINST="" 6972 6973fi 6974if test x_$ldns_with_pyldnsx != x_no; then 6975 PYLDNSXINST="install-pyldnsx" 6976 PYLDNSXUNINST="uninstall-pyldnsx" 6977 6978else 6979 PYLDNSXINST="" 6980 PYLDNSXUNINST="" 6981 6982fi 6983 6984 6985# Use libtool 6986 6987# skip these tests, we do not need them. 6988 6989 6990 6991 6992 6993 6994 6995 6996# always use ./libtool unless override from commandline (libtool=mylibtool) 6997if test -z "$libtool"; then 6998 libtool="./libtool" 6999fi 7000 7001# avoid libtool max commandline length test on systems that fork slowly. 7002 7003if echo "$host_os" | grep "sunos4" >/dev/null; then 7004 lt_cv_sys_max_cmd_len=32750; 7005fi 7006if test -n "$ac_tool_prefix"; then 7007 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7008set dummy ${ac_tool_prefix}ar; ac_word=$2 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7010$as_echo_n "checking for $ac_word... " >&6; } 7011if ${ac_cv_path_AR+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 case $AR in 7015 [\\/]* | ?:[\\/]*) 7016 ac_cv_path_AR="$AR" # Let the user override the test with a path. 7017 ;; 7018 *) 7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020for as_dir in $PATH 7021do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7026 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034 ;; 7035esac 7036fi 7037AR=$ac_cv_path_AR 7038if test -n "$AR"; then 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7040$as_echo "$AR" >&6; } 7041else 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7043$as_echo "no" >&6; } 7044fi 7045 7046 7047fi 7048if test -z "$ac_cv_path_AR"; then 7049 ac_pt_AR=$AR 7050 # Extract the first word of "ar", so it can be a program name with args. 7051set dummy ar; ac_word=$2 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7053$as_echo_n "checking for $ac_word... " >&6; } 7054if ${ac_cv_path_ac_pt_AR+:} false; then : 7055 $as_echo_n "(cached) " >&6 7056else 7057 case $ac_pt_AR in 7058 [\\/]* | ?:[\\/]*) 7059 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 7060 ;; 7061 *) 7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_exec_ext in '' $ac_executable_extensions; do 7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7069 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7071 break 2 7072 fi 7073done 7074 done 7075IFS=$as_save_IFS 7076 7077 ;; 7078esac 7079fi 7080ac_pt_AR=$ac_cv_path_ac_pt_AR 7081if test -n "$ac_pt_AR"; then 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 7083$as_echo "$ac_pt_AR" >&6; } 7084else 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7086$as_echo "no" >&6; } 7087fi 7088 7089 if test "x$ac_pt_AR" = x; then 7090 AR="false" 7091 else 7092 case $cross_compiling:$ac_tool_warned in 7093yes:) 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7096ac_tool_warned=yes ;; 7097esac 7098 AR=$ac_pt_AR 7099 fi 7100else 7101 AR="$ac_cv_path_AR" 7102fi 7103 7104if test $AR = false; then 7105 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 7106fi 7107 7108case `pwd` in 7109 *\ * | *\ *) 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7111$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7112esac 7113 7114 7115 7116macro_version='2.4.2' 7117macro_revision='1.3337' 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131ltmain="$ac_aux_dir/ltmain.sh" 7132 7133# Backslashify metacharacters that are still active within 7134# double-quoted strings. 7135sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7136 7137# Same as above, but do not quote variable references. 7138double_quote_subst='s/\(["`\\]\)/\\\1/g' 7139 7140# Sed substitution to delay expansion of an escaped shell variable in a 7141# double_quote_subst'ed string. 7142delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7143 7144# Sed substitution to delay expansion of an escaped single quote. 7145delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7146 7147# Sed substitution to avoid accidental globbing in evaled expressions 7148no_glob_subst='s/\*/\\\*/g' 7149 7150ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7151ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7152ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7153 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7155$as_echo_n "checking how to print strings... " >&6; } 7156# Test print first, because it will be a builtin if present. 7157if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7158 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7159 ECHO='print -r --' 7160elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7161 ECHO='printf %s\n' 7162else 7163 # Use this function as a fallback that always works. 7164 func_fallback_echo () 7165 { 7166 eval 'cat <<_LTECHO_EOF 7167$1 7168_LTECHO_EOF' 7169 } 7170 ECHO='func_fallback_echo' 7171fi 7172 7173# func_echo_all arg... 7174# Invoke $ECHO with all args, space-separated. 7175func_echo_all () 7176{ 7177 $ECHO "" 7178} 7179 7180case "$ECHO" in 7181 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7182$as_echo "printf" >&6; } ;; 7183 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7184$as_echo "print -r" >&6; } ;; 7185 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7186$as_echo "cat" >&6; } ;; 7187esac 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7203$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7204if ${ac_cv_path_SED+:} false; then : 7205 $as_echo_n "(cached) " >&6 7206else 7207 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7208 for ac_i in 1 2 3 4 5 6 7; do 7209 ac_script="$ac_script$as_nl$ac_script" 7210 done 7211 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7212 { ac_script=; unset ac_script;} 7213 if test -z "$SED"; then 7214 ac_path_SED_found=false 7215 # Loop through the user's path and test for each of PROGNAME-LIST 7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_prog in sed gsed; do 7222 for ac_exec_ext in '' $ac_executable_extensions; do 7223 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7224 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 7225# Check for GNU ac_path_SED and select it if it is found. 7226 # Check for GNU $ac_path_SED 7227case `"$ac_path_SED" --version 2>&1` in 7228*GNU*) 7229 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7230*) 7231 ac_count=0 7232 $as_echo_n 0123456789 >"conftest.in" 7233 while : 7234 do 7235 cat "conftest.in" "conftest.in" >"conftest.tmp" 7236 mv "conftest.tmp" "conftest.in" 7237 cp "conftest.in" "conftest.nl" 7238 $as_echo '' >> "conftest.nl" 7239 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7241 as_fn_arith $ac_count + 1 && ac_count=$as_val 7242 if test $ac_count -gt ${ac_path_SED_max-0}; then 7243 # Best one so far, save it but keep looking for a better one 7244 ac_cv_path_SED="$ac_path_SED" 7245 ac_path_SED_max=$ac_count 7246 fi 7247 # 10*(2^10) chars as input seems more than enough 7248 test $ac_count -gt 10 && break 7249 done 7250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7251esac 7252 7253 $ac_path_SED_found && break 3 7254 done 7255 done 7256 done 7257IFS=$as_save_IFS 7258 if test -z "$ac_cv_path_SED"; then 7259 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7260 fi 7261else 7262 ac_cv_path_SED=$SED 7263fi 7264 7265fi 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7267$as_echo "$ac_cv_path_SED" >&6; } 7268 SED="$ac_cv_path_SED" 7269 rm -f conftest.sed 7270 7271test -z "$SED" && SED=sed 7272Xsed="$SED -e 1s/^X//" 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7285$as_echo_n "checking for fgrep... " >&6; } 7286if ${ac_cv_path_FGREP+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7290 then ac_cv_path_FGREP="$GREP -F" 7291 else 7292 if test -z "$FGREP"; then 7293 ac_path_FGREP_found=false 7294 # Loop through the user's path and test for each of PROGNAME-LIST 7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_prog in fgrep; do 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7303 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 7304# Check for GNU ac_path_FGREP and select it if it is found. 7305 # Check for GNU $ac_path_FGREP 7306case `"$ac_path_FGREP" --version 2>&1` in 7307*GNU*) 7308 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7309*) 7310 ac_count=0 7311 $as_echo_n 0123456789 >"conftest.in" 7312 while : 7313 do 7314 cat "conftest.in" "conftest.in" >"conftest.tmp" 7315 mv "conftest.tmp" "conftest.in" 7316 cp "conftest.in" "conftest.nl" 7317 $as_echo 'FGREP' >> "conftest.nl" 7318 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7320 as_fn_arith $ac_count + 1 && ac_count=$as_val 7321 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7322 # Best one so far, save it but keep looking for a better one 7323 ac_cv_path_FGREP="$ac_path_FGREP" 7324 ac_path_FGREP_max=$ac_count 7325 fi 7326 # 10*(2^10) chars as input seems more than enough 7327 test $ac_count -gt 10 && break 7328 done 7329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7330esac 7331 7332 $ac_path_FGREP_found && break 3 7333 done 7334 done 7335 done 7336IFS=$as_save_IFS 7337 if test -z "$ac_cv_path_FGREP"; then 7338 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7339 fi 7340else 7341 ac_cv_path_FGREP=$FGREP 7342fi 7343 7344 fi 7345fi 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7347$as_echo "$ac_cv_path_FGREP" >&6; } 7348 FGREP="$ac_cv_path_FGREP" 7349 7350 7351test -z "$GREP" && GREP=grep 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371# Check whether --with-gnu-ld was given. 7372if test "${with_gnu_ld+set}" = set; then : 7373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7374else 7375 with_gnu_ld=no 7376fi 7377 7378ac_prog=ld 7379if test "$GCC" = yes; then 7380 # Check if gcc -print-prog-name=ld gives a path. 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7382$as_echo_n "checking for ld used by $CC... " >&6; } 7383 case $host in 7384 *-*-mingw*) 7385 # gcc leaves a trailing carriage return which upsets mingw 7386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7387 *) 7388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7389 esac 7390 case $ac_prog in 7391 # Accept absolute paths. 7392 [\\/]* | ?:[\\/]*) 7393 re_direlt='/[^/][^/]*/\.\./' 7394 # Canonicalize the pathname of ld 7395 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7396 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7397 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7398 done 7399 test -z "$LD" && LD="$ac_prog" 7400 ;; 7401 "") 7402 # If it fails, then pretend we aren't using GCC. 7403 ac_prog=ld 7404 ;; 7405 *) 7406 # If it is relative, then search for the first ld in PATH. 7407 with_gnu_ld=unknown 7408 ;; 7409 esac 7410elif test "$with_gnu_ld" = yes; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7412$as_echo_n "checking for GNU ld... " >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7415$as_echo_n "checking for non-GNU ld... " >&6; } 7416fi 7417if ${lt_cv_path_LD+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 if test -z "$LD"; then 7421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7422 for ac_dir in $PATH; do 7423 IFS="$lt_save_ifs" 7424 test -z "$ac_dir" && ac_dir=. 7425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7426 lt_cv_path_LD="$ac_dir/$ac_prog" 7427 # Check to see if the program is GNU ld. I'd rather use --version, 7428 # but apparently some variants of GNU ld only accept -v. 7429 # Break only if it was the GNU/non-GNU ld that we prefer. 7430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7431 *GNU* | *'with BFD'*) 7432 test "$with_gnu_ld" != no && break 7433 ;; 7434 *) 7435 test "$with_gnu_ld" != yes && break 7436 ;; 7437 esac 7438 fi 7439 done 7440 IFS="$lt_save_ifs" 7441else 7442 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7443fi 7444fi 7445 7446LD="$lt_cv_path_LD" 7447if test -n "$LD"; then 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7449$as_echo "$LD" >&6; } 7450else 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7452$as_echo "no" >&6; } 7453fi 7454test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7456$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7457if ${lt_cv_prog_gnu_ld+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7461case `$LD -v 2>&1 </dev/null` in 7462*GNU* | *'with BFD'*) 7463 lt_cv_prog_gnu_ld=yes 7464 ;; 7465*) 7466 lt_cv_prog_gnu_ld=no 7467 ;; 7468esac 7469fi 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7471$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7472with_gnu_ld=$lt_cv_prog_gnu_ld 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7483$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7484if ${lt_cv_path_NM+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 if test -n "$NM"; then 7488 # Let the user override the test. 7489 lt_cv_path_NM="$NM" 7490else 7491 lt_nm_to_check="${ac_tool_prefix}nm" 7492 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7493 lt_nm_to_check="$lt_nm_to_check nm" 7494 fi 7495 for lt_tmp_nm in $lt_nm_to_check; do 7496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7497 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7498 IFS="$lt_save_ifs" 7499 test -z "$ac_dir" && ac_dir=. 7500 tmp_nm="$ac_dir/$lt_tmp_nm" 7501 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7502 # Check to see if the nm accepts a BSD-compat flag. 7503 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7504 # nm: unknown option "B" ignored 7505 # Tru64's nm complains that /dev/null is an invalid object file 7506 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7507 */dev/null* | *'Invalid file or object type'*) 7508 lt_cv_path_NM="$tmp_nm -B" 7509 break 7510 ;; 7511 *) 7512 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7513 */dev/null*) 7514 lt_cv_path_NM="$tmp_nm -p" 7515 break 7516 ;; 7517 *) 7518 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7519 continue # so that we can try to find one that supports BSD flags 7520 ;; 7521 esac 7522 ;; 7523 esac 7524 fi 7525 done 7526 IFS="$lt_save_ifs" 7527 done 7528 : ${lt_cv_path_NM=no} 7529fi 7530fi 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7532$as_echo "$lt_cv_path_NM" >&6; } 7533if test "$lt_cv_path_NM" != "no"; then 7534 NM="$lt_cv_path_NM" 7535else 7536 # Didn't find any BSD compatible name lister, look for dumpbin. 7537 if test -n "$DUMPBIN"; then : 7538 # Let the user override the test. 7539 else 7540 if test -n "$ac_tool_prefix"; then 7541 for ac_prog in dumpbin "link -dump" 7542 do 7543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7544set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7546$as_echo_n "checking for $ac_word... " >&6; } 7547if ${ac_cv_prog_DUMPBIN+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 if test -n "$DUMPBIN"; then 7551 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7552else 7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7554for as_dir in $PATH 7555do 7556 IFS=$as_save_IFS 7557 test -z "$as_dir" && as_dir=. 7558 for ac_exec_ext in '' $ac_executable_extensions; do 7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7560 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7562 break 2 7563 fi 7564done 7565 done 7566IFS=$as_save_IFS 7567 7568fi 7569fi 7570DUMPBIN=$ac_cv_prog_DUMPBIN 7571if test -n "$DUMPBIN"; then 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7573$as_echo "$DUMPBIN" >&6; } 7574else 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7576$as_echo "no" >&6; } 7577fi 7578 7579 7580 test -n "$DUMPBIN" && break 7581 done 7582fi 7583if test -z "$DUMPBIN"; then 7584 ac_ct_DUMPBIN=$DUMPBIN 7585 for ac_prog in dumpbin "link -dump" 7586do 7587 # Extract the first word of "$ac_prog", so it can be a program name with args. 7588set dummy $ac_prog; ac_word=$2 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590$as_echo_n "checking for $ac_word... " >&6; } 7591if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 if test -n "$ac_ct_DUMPBIN"; then 7595 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7596else 7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598for as_dir in $PATH 7599do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7604 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608done 7609 done 7610IFS=$as_save_IFS 7611 7612fi 7613fi 7614ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7615if test -n "$ac_ct_DUMPBIN"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7617$as_echo "$ac_ct_DUMPBIN" >&6; } 7618else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620$as_echo "no" >&6; } 7621fi 7622 7623 7624 test -n "$ac_ct_DUMPBIN" && break 7625done 7626 7627 if test "x$ac_ct_DUMPBIN" = x; then 7628 DUMPBIN=":" 7629 else 7630 case $cross_compiling:$ac_tool_warned in 7631yes:) 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7634ac_tool_warned=yes ;; 7635esac 7636 DUMPBIN=$ac_ct_DUMPBIN 7637 fi 7638fi 7639 7640 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7641 *COFF*) 7642 DUMPBIN="$DUMPBIN -symbols" 7643 ;; 7644 *) 7645 DUMPBIN=: 7646 ;; 7647 esac 7648 fi 7649 7650 if test "$DUMPBIN" != ":"; then 7651 NM="$DUMPBIN" 7652 fi 7653fi 7654test -z "$NM" && NM=nm 7655 7656 7657 7658 7659 7660 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7662$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7663if ${lt_cv_nm_interface+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 lt_cv_nm_interface="BSD nm" 7667 echo "int some_variable = 0;" > conftest.$ac_ext 7668 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7669 (eval "$ac_compile" 2>conftest.err) 7670 cat conftest.err >&5 7671 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7672 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7673 cat conftest.err >&5 7674 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7675 cat conftest.out >&5 7676 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7677 lt_cv_nm_interface="MS dumpbin" 7678 fi 7679 rm -f conftest* 7680fi 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7682$as_echo "$lt_cv_nm_interface" >&6; } 7683 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7685$as_echo_n "checking whether ln -s works... " >&6; } 7686LN_S=$as_ln_s 7687if test "$LN_S" = "ln -s"; then 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7689$as_echo "yes" >&6; } 7690else 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7692$as_echo "no, using $LN_S" >&6; } 7693fi 7694 7695# find the maximum length of command line arguments 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7697$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7698if ${lt_cv_sys_max_cmd_len+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 i=0 7702 teststring="ABCD" 7703 7704 case $build_os in 7705 msdosdjgpp*) 7706 # On DJGPP, this test can blow up pretty badly due to problems in libc 7707 # (any single argument exceeding 2000 bytes causes a buffer overrun 7708 # during glob expansion). Even if it were fixed, the result of this 7709 # check would be larger than it should be. 7710 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7711 ;; 7712 7713 gnu*) 7714 # Under GNU Hurd, this test is not required because there is 7715 # no limit to the length of command line arguments. 7716 # Libtool will interpret -1 as no limit whatsoever 7717 lt_cv_sys_max_cmd_len=-1; 7718 ;; 7719 7720 cygwin* | mingw* | cegcc*) 7721 # On Win9x/ME, this test blows up -- it succeeds, but takes 7722 # about 5 minutes as the teststring grows exponentially. 7723 # Worse, since 9x/ME are not pre-emptively multitasking, 7724 # you end up with a "frozen" computer, even though with patience 7725 # the test eventually succeeds (with a max line length of 256k). 7726 # Instead, let's just punt: use the minimum linelength reported by 7727 # all of the supported platforms: 8192 (on NT/2K/XP). 7728 lt_cv_sys_max_cmd_len=8192; 7729 ;; 7730 7731 mint*) 7732 # On MiNT this can take a long time and run out of memory. 7733 lt_cv_sys_max_cmd_len=8192; 7734 ;; 7735 7736 amigaos*) 7737 # On AmigaOS with pdksh, this test takes hours, literally. 7738 # So we just punt and use a minimum line length of 8192. 7739 lt_cv_sys_max_cmd_len=8192; 7740 ;; 7741 7742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7743 # This has been around since 386BSD, at least. Likely further. 7744 if test -x /sbin/sysctl; then 7745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7746 elif test -x /usr/sbin/sysctl; then 7747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7748 else 7749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7750 fi 7751 # And add a safety zone 7752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7754 ;; 7755 7756 interix*) 7757 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7758 lt_cv_sys_max_cmd_len=196608 7759 ;; 7760 7761 os2*) 7762 # The test takes a long time on OS/2. 7763 lt_cv_sys_max_cmd_len=8192 7764 ;; 7765 7766 osf*) 7767 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7768 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7769 # nice to cause kernel panics so lets avoid the loop below. 7770 # First set a reasonable default. 7771 lt_cv_sys_max_cmd_len=16384 7772 # 7773 if test -x /sbin/sysconfig; then 7774 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7775 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7776 esac 7777 fi 7778 ;; 7779 sco3.2v5*) 7780 lt_cv_sys_max_cmd_len=102400 7781 ;; 7782 sysv5* | sco5v6* | sysv4.2uw2*) 7783 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7784 if test -n "$kargmax"; then 7785 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7786 else 7787 lt_cv_sys_max_cmd_len=32768 7788 fi 7789 ;; 7790 *) 7791 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7792 if test -n "$lt_cv_sys_max_cmd_len"; then 7793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7795 else 7796 # Make teststring a little bigger before we do anything with it. 7797 # a 1K string should be a reasonable start. 7798 for i in 1 2 3 4 5 6 7 8 ; do 7799 teststring=$teststring$teststring 7800 done 7801 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7802 # If test is not a shell built-in, we'll probably end up computing a 7803 # maximum length that is only half of the actual maximum length, but 7804 # we can't tell. 7805 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7806 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7807 test $i != 17 # 1/2 MB should be enough 7808 do 7809 i=`expr $i + 1` 7810 teststring=$teststring$teststring 7811 done 7812 # Only check the string length outside the loop. 7813 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7814 teststring= 7815 # Add a significant safety factor because C++ compilers can tack on 7816 # massive amounts of additional arguments before passing them to the 7817 # linker. It appears as though 1/2 is a usable value. 7818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7819 fi 7820 ;; 7821 esac 7822 7823fi 7824 7825if test -n $lt_cv_sys_max_cmd_len ; then 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7827$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7828else 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7830$as_echo "none" >&6; } 7831fi 7832max_cmd_len=$lt_cv_sys_max_cmd_len 7833 7834 7835 7836 7837 7838 7839: ${CP="cp -f"} 7840: ${MV="mv -f"} 7841: ${RM="rm -f"} 7842 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7844$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7845# Try some XSI features 7846xsi_shell=no 7847( _lt_dummy="a/b/c" 7848 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7849 = c,a/b,b/c, \ 7850 && eval 'test $(( 1 + 1 )) -eq 2 \ 7851 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7852 && xsi_shell=yes 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7854$as_echo "$xsi_shell" >&6; } 7855 7856 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7858$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7859lt_shell_append=no 7860( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7861 >/dev/null 2>&1 \ 7862 && lt_shell_append=yes 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7864$as_echo "$lt_shell_append" >&6; } 7865 7866 7867if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7868 lt_unset=unset 7869else 7870 lt_unset=false 7871fi 7872 7873 7874 7875 7876 7877# test EBCDIC or ASCII 7878case `echo X|tr X '\101'` in 7879 A) # ASCII based system 7880 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7881 lt_SP2NL='tr \040 \012' 7882 lt_NL2SP='tr \015\012 \040\040' 7883 ;; 7884 *) # EBCDIC based system 7885 lt_SP2NL='tr \100 \n' 7886 lt_NL2SP='tr \r\n \100\100' 7887 ;; 7888esac 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7899$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7900if ${lt_cv_to_host_file_cmd+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 case $host in 7904 *-*-mingw* ) 7905 case $build in 7906 *-*-mingw* ) # actually msys 7907 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7908 ;; 7909 *-*-cygwin* ) 7910 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7911 ;; 7912 * ) # otherwise, assume *nix 7913 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7914 ;; 7915 esac 7916 ;; 7917 *-*-cygwin* ) 7918 case $build in 7919 *-*-mingw* ) # actually msys 7920 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7921 ;; 7922 *-*-cygwin* ) 7923 lt_cv_to_host_file_cmd=func_convert_file_noop 7924 ;; 7925 * ) # otherwise, assume *nix 7926 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7927 ;; 7928 esac 7929 ;; 7930 * ) # unhandled hosts (and "normal" native builds) 7931 lt_cv_to_host_file_cmd=func_convert_file_noop 7932 ;; 7933esac 7934 7935fi 7936 7937to_host_file_cmd=$lt_cv_to_host_file_cmd 7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7939$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7940 7941 7942 7943 7944 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7946$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7947if ${lt_cv_to_tool_file_cmd+:} false; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 #assume ordinary cross tools, or native build. 7951lt_cv_to_tool_file_cmd=func_convert_file_noop 7952case $host in 7953 *-*-mingw* ) 7954 case $build in 7955 *-*-mingw* ) # actually msys 7956 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7957 ;; 7958 esac 7959 ;; 7960esac 7961 7962fi 7963 7964to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7966$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7967 7968 7969 7970 7971 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7973$as_echo_n "checking for $LD option to reload object files... " >&6; } 7974if ${lt_cv_ld_reload_flag+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 lt_cv_ld_reload_flag='-r' 7978fi 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7980$as_echo "$lt_cv_ld_reload_flag" >&6; } 7981reload_flag=$lt_cv_ld_reload_flag 7982case $reload_flag in 7983"" | " "*) ;; 7984*) reload_flag=" $reload_flag" ;; 7985esac 7986reload_cmds='$LD$reload_flag -o $output$reload_objs' 7987case $host_os in 7988 cygwin* | mingw* | pw32* | cegcc*) 7989 if test "$GCC" != yes; then 7990 reload_cmds=false 7991 fi 7992 ;; 7993 darwin*) 7994 if test "$GCC" = yes; then 7995 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7996 else 7997 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7998 fi 7999 ;; 8000esac 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010if test -n "$ac_tool_prefix"; then 8011 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8012set dummy ${ac_tool_prefix}objdump; ac_word=$2 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8014$as_echo_n "checking for $ac_word... " >&6; } 8015if ${ac_cv_prog_OBJDUMP+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017else 8018 if test -n "$OBJDUMP"; then 8019 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8020else 8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8022for as_dir in $PATH 8023do 8024 IFS=$as_save_IFS 8025 test -z "$as_dir" && as_dir=. 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8028 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032done 8033 done 8034IFS=$as_save_IFS 8035 8036fi 8037fi 8038OBJDUMP=$ac_cv_prog_OBJDUMP 8039if test -n "$OBJDUMP"; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8041$as_echo "$OBJDUMP" >&6; } 8042else 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8044$as_echo "no" >&6; } 8045fi 8046 8047 8048fi 8049if test -z "$ac_cv_prog_OBJDUMP"; then 8050 ac_ct_OBJDUMP=$OBJDUMP 8051 # Extract the first word of "objdump", so it can be a program name with args. 8052set dummy objdump; ac_word=$2 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8054$as_echo_n "checking for $ac_word... " >&6; } 8055if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 if test -n "$ac_ct_OBJDUMP"; then 8059 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8060else 8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8062for as_dir in $PATH 8063do 8064 IFS=$as_save_IFS 8065 test -z "$as_dir" && as_dir=. 8066 for ac_exec_ext in '' $ac_executable_extensions; do 8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8068 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8070 break 2 8071 fi 8072done 8073 done 8074IFS=$as_save_IFS 8075 8076fi 8077fi 8078ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8079if test -n "$ac_ct_OBJDUMP"; then 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8081$as_echo "$ac_ct_OBJDUMP" >&6; } 8082else 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8084$as_echo "no" >&6; } 8085fi 8086 8087 if test "x$ac_ct_OBJDUMP" = x; then 8088 OBJDUMP="false" 8089 else 8090 case $cross_compiling:$ac_tool_warned in 8091yes:) 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8094ac_tool_warned=yes ;; 8095esac 8096 OBJDUMP=$ac_ct_OBJDUMP 8097 fi 8098else 8099 OBJDUMP="$ac_cv_prog_OBJDUMP" 8100fi 8101 8102test -z "$OBJDUMP" && OBJDUMP=objdump 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8113$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8114if ${lt_cv_deplibs_check_method+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 lt_cv_file_magic_cmd='$MAGIC_CMD' 8118lt_cv_file_magic_test_file= 8119lt_cv_deplibs_check_method='unknown' 8120# Need to set the preceding variable on all platforms that support 8121# interlibrary dependencies. 8122# 'none' -- dependencies not supported. 8123# `unknown' -- same as none, but documents that we really don't know. 8124# 'pass_all' -- all dependencies passed with no checks. 8125# 'test_compile' -- check by making test program. 8126# 'file_magic [[regex]]' -- check by looking for files in library path 8127# which responds to the $file_magic_cmd with a given extended regex. 8128# If you have `file' or equivalent on your system and you're not sure 8129# whether `pass_all' will *always* work, you probably want this one. 8130 8131case $host_os in 8132aix[4-9]*) 8133 lt_cv_deplibs_check_method=pass_all 8134 ;; 8135 8136beos*) 8137 lt_cv_deplibs_check_method=pass_all 8138 ;; 8139 8140bsdi[45]*) 8141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8142 lt_cv_file_magic_cmd='/usr/bin/file -L' 8143 lt_cv_file_magic_test_file=/shlib/libc.so 8144 ;; 8145 8146cygwin*) 8147 # func_win32_libid is a shell function defined in ltmain.sh 8148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8149 lt_cv_file_magic_cmd='func_win32_libid' 8150 ;; 8151 8152mingw* | pw32*) 8153 # Base MSYS/MinGW do not provide the 'file' command needed by 8154 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8155 # unless we find 'file', for example because we are cross-compiling. 8156 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8157 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8158 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8159 lt_cv_file_magic_cmd='func_win32_libid' 8160 else 8161 # Keep this pattern in sync with the one in func_win32_libid. 8162 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8163 lt_cv_file_magic_cmd='$OBJDUMP -f' 8164 fi 8165 ;; 8166 8167cegcc*) 8168 # use the weaker test based on 'objdump'. See mingw*. 8169 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8170 lt_cv_file_magic_cmd='$OBJDUMP -f' 8171 ;; 8172 8173darwin* | rhapsody*) 8174 lt_cv_deplibs_check_method=pass_all 8175 ;; 8176 8177freebsd* | dragonfly*) 8178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8179 case $host_cpu in 8180 i*86 ) 8181 # Not sure whether the presence of OpenBSD here was a mistake. 8182 # Let's accept both of them until this is cleared up. 8183 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8184 lt_cv_file_magic_cmd=/usr/bin/file 8185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8186 ;; 8187 esac 8188 else 8189 lt_cv_deplibs_check_method=pass_all 8190 fi 8191 ;; 8192 8193gnu*) 8194 lt_cv_deplibs_check_method=pass_all 8195 ;; 8196 8197haiku*) 8198 lt_cv_deplibs_check_method=pass_all 8199 ;; 8200 8201hpux10.20* | hpux11*) 8202 lt_cv_file_magic_cmd=/usr/bin/file 8203 case $host_cpu in 8204 ia64*) 8205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8206 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8207 ;; 8208 hppa*64*) 8209 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]' 8210 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8211 ;; 8212 *) 8213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8214 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8215 ;; 8216 esac 8217 ;; 8218 8219interix[3-9]*) 8220 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8222 ;; 8223 8224irix5* | irix6* | nonstopux*) 8225 case $LD in 8226 *-32|*"-32 ") libmagic=32-bit;; 8227 *-n32|*"-n32 ") libmagic=N32;; 8228 *-64|*"-64 ") libmagic=64-bit;; 8229 *) libmagic=never-match;; 8230 esac 8231 lt_cv_deplibs_check_method=pass_all 8232 ;; 8233 8234# This must be glibc/ELF. 8235linux* | k*bsd*-gnu | kopensolaris*-gnu) 8236 lt_cv_deplibs_check_method=pass_all 8237 ;; 8238 8239netbsd* | netbsdelf*-gnu) 8240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8242 else 8243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8244 fi 8245 ;; 8246 8247newos6*) 8248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8249 lt_cv_file_magic_cmd=/usr/bin/file 8250 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8251 ;; 8252 8253*nto* | *qnx*) 8254 lt_cv_deplibs_check_method=pass_all 8255 ;; 8256 8257openbsd*) 8258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8260 else 8261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8262 fi 8263 ;; 8264 8265osf3* | osf4* | osf5*) 8266 lt_cv_deplibs_check_method=pass_all 8267 ;; 8268 8269rdos*) 8270 lt_cv_deplibs_check_method=pass_all 8271 ;; 8272 8273solaris*) 8274 lt_cv_deplibs_check_method=pass_all 8275 ;; 8276 8277sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8278 lt_cv_deplibs_check_method=pass_all 8279 ;; 8280 8281sysv4 | sysv4.3*) 8282 case $host_vendor in 8283 motorola) 8284 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]' 8285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8286 ;; 8287 ncr) 8288 lt_cv_deplibs_check_method=pass_all 8289 ;; 8290 sequent) 8291 lt_cv_file_magic_cmd='/bin/file' 8292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8293 ;; 8294 sni) 8295 lt_cv_file_magic_cmd='/bin/file' 8296 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8297 lt_cv_file_magic_test_file=/lib/libc.so 8298 ;; 8299 siemens) 8300 lt_cv_deplibs_check_method=pass_all 8301 ;; 8302 pc) 8303 lt_cv_deplibs_check_method=pass_all 8304 ;; 8305 esac 8306 ;; 8307 8308tpf*) 8309 lt_cv_deplibs_check_method=pass_all 8310 ;; 8311esac 8312 8313fi 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8315$as_echo "$lt_cv_deplibs_check_method" >&6; } 8316 8317file_magic_glob= 8318want_nocaseglob=no 8319if test "$build" = "$host"; then 8320 case $host_os in 8321 mingw* | pw32*) 8322 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8323 want_nocaseglob=yes 8324 else 8325 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8326 fi 8327 ;; 8328 esac 8329fi 8330 8331file_magic_cmd=$lt_cv_file_magic_cmd 8332deplibs_check_method=$lt_cv_deplibs_check_method 8333test -z "$deplibs_check_method" && deplibs_check_method=unknown 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356if test -n "$ac_tool_prefix"; then 8357 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8358set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360$as_echo_n "checking for $ac_word... " >&6; } 8361if ${ac_cv_prog_DLLTOOL+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 if test -n "$DLLTOOL"; then 8365 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 test -z "$as_dir" && as_dir=. 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8374 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8376 break 2 8377 fi 8378done 8379 done 8380IFS=$as_save_IFS 8381 8382fi 8383fi 8384DLLTOOL=$ac_cv_prog_DLLTOOL 8385if test -n "$DLLTOOL"; then 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8387$as_echo "$DLLTOOL" >&6; } 8388else 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391fi 8392 8393 8394fi 8395if test -z "$ac_cv_prog_DLLTOOL"; then 8396 ac_ct_DLLTOOL=$DLLTOOL 8397 # Extract the first word of "dlltool", so it can be a program name with args. 8398set dummy dlltool; ac_word=$2 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8400$as_echo_n "checking for $ac_word... " >&6; } 8401if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403else 8404 if test -n "$ac_ct_DLLTOOL"; then 8405 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8406else 8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8408for as_dir in $PATH 8409do 8410 IFS=$as_save_IFS 8411 test -z "$as_dir" && as_dir=. 8412 for ac_exec_ext in '' $ac_executable_extensions; do 8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8414 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8416 break 2 8417 fi 8418done 8419 done 8420IFS=$as_save_IFS 8421 8422fi 8423fi 8424ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8425if test -n "$ac_ct_DLLTOOL"; then 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8427$as_echo "$ac_ct_DLLTOOL" >&6; } 8428else 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8430$as_echo "no" >&6; } 8431fi 8432 8433 if test "x$ac_ct_DLLTOOL" = x; then 8434 DLLTOOL="false" 8435 else 8436 case $cross_compiling:$ac_tool_warned in 8437yes:) 8438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8440ac_tool_warned=yes ;; 8441esac 8442 DLLTOOL=$ac_ct_DLLTOOL 8443 fi 8444else 8445 DLLTOOL="$ac_cv_prog_DLLTOOL" 8446fi 8447 8448test -z "$DLLTOOL" && DLLTOOL=dlltool 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8460$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8461if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 lt_cv_sharedlib_from_linklib_cmd='unknown' 8465 8466case $host_os in 8467cygwin* | mingw* | pw32* | cegcc*) 8468 # two different shell functions defined in ltmain.sh 8469 # decide which to use based on capabilities of $DLLTOOL 8470 case `$DLLTOOL --help 2>&1` in 8471 *--identify-strict*) 8472 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8473 ;; 8474 *) 8475 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8476 ;; 8477 esac 8478 ;; 8479*) 8480 # fallback: assume linklib IS sharedlib 8481 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8482 ;; 8483esac 8484 8485fi 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8487$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8488sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8489test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8490 8491 8492 8493 8494 8495 8496 8497if test -n "$ac_tool_prefix"; then 8498 for ac_prog in ar 8499 do 8500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8501set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8503$as_echo_n "checking for $ac_word... " >&6; } 8504if ${ac_cv_prog_AR+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506else 8507 if test -n "$AR"; then 8508 ac_cv_prog_AR="$AR" # Let the user override the test. 8509else 8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8511for as_dir in $PATH 8512do 8513 IFS=$as_save_IFS 8514 test -z "$as_dir" && as_dir=. 8515 for ac_exec_ext in '' $ac_executable_extensions; do 8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8517 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8519 break 2 8520 fi 8521done 8522 done 8523IFS=$as_save_IFS 8524 8525fi 8526fi 8527AR=$ac_cv_prog_AR 8528if test -n "$AR"; then 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8530$as_echo "$AR" >&6; } 8531else 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8533$as_echo "no" >&6; } 8534fi 8535 8536 8537 test -n "$AR" && break 8538 done 8539fi 8540if test -z "$AR"; then 8541 ac_ct_AR=$AR 8542 for ac_prog in ar 8543do 8544 # Extract the first word of "$ac_prog", so it can be a program name with args. 8545set dummy $ac_prog; ac_word=$2 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8547$as_echo_n "checking for $ac_word... " >&6; } 8548if ${ac_cv_prog_ac_ct_AR+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 if test -n "$ac_ct_AR"; then 8552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8553else 8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8555for as_dir in $PATH 8556do 8557 IFS=$as_save_IFS 8558 test -z "$as_dir" && as_dir=. 8559 for ac_exec_ext in '' $ac_executable_extensions; do 8560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8561 ac_cv_prog_ac_ct_AR="$ac_prog" 8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8563 break 2 8564 fi 8565done 8566 done 8567IFS=$as_save_IFS 8568 8569fi 8570fi 8571ac_ct_AR=$ac_cv_prog_ac_ct_AR 8572if test -n "$ac_ct_AR"; then 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8574$as_echo "$ac_ct_AR" >&6; } 8575else 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8577$as_echo "no" >&6; } 8578fi 8579 8580 8581 test -n "$ac_ct_AR" && break 8582done 8583 8584 if test "x$ac_ct_AR" = x; then 8585 AR="false" 8586 else 8587 case $cross_compiling:$ac_tool_warned in 8588yes:) 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8591ac_tool_warned=yes ;; 8592esac 8593 AR=$ac_ct_AR 8594 fi 8595fi 8596 8597: ${AR=ar} 8598: ${AR_FLAGS=cru} 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8611$as_echo_n "checking for archiver @FILE support... " >&6; } 8612if ${lt_cv_ar_at_file+:} false; then : 8613 $as_echo_n "(cached) " >&6 8614else 8615 lt_cv_ar_at_file=no 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618 8619int 8620main () 8621{ 8622 8623 ; 8624 return 0; 8625} 8626_ACEOF 8627if ac_fn_c_try_compile "$LINENO"; then : 8628 echo conftest.$ac_objext > conftest.lst 8629 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8631 (eval $lt_ar_try) 2>&5 8632 ac_status=$? 8633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8634 test $ac_status = 0; } 8635 if test "$ac_status" -eq 0; then 8636 # Ensure the archiver fails upon bogus file names. 8637 rm -f conftest.$ac_objext libconftest.a 8638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8639 (eval $lt_ar_try) 2>&5 8640 ac_status=$? 8641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8642 test $ac_status = 0; } 8643 if test "$ac_status" -ne 0; then 8644 lt_cv_ar_at_file=@ 8645 fi 8646 fi 8647 rm -f conftest.* libconftest.a 8648 8649fi 8650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8651 8652fi 8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8654$as_echo "$lt_cv_ar_at_file" >&6; } 8655 8656if test "x$lt_cv_ar_at_file" = xno; then 8657 archiver_list_spec= 8658else 8659 archiver_list_spec=$lt_cv_ar_at_file 8660fi 8661 8662 8663 8664 8665 8666 8667 8668if test -n "$ac_tool_prefix"; then 8669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8670set dummy ${ac_tool_prefix}strip; ac_word=$2 8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8672$as_echo_n "checking for $ac_word... " >&6; } 8673if ${ac_cv_prog_STRIP+:} false; then : 8674 $as_echo_n "(cached) " >&6 8675else 8676 if test -n "$STRIP"; then 8677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8678else 8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8680for as_dir in $PATH 8681do 8682 IFS=$as_save_IFS 8683 test -z "$as_dir" && as_dir=. 8684 for ac_exec_ext in '' $ac_executable_extensions; do 8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8686 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8688 break 2 8689 fi 8690done 8691 done 8692IFS=$as_save_IFS 8693 8694fi 8695fi 8696STRIP=$ac_cv_prog_STRIP 8697if test -n "$STRIP"; then 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8699$as_echo "$STRIP" >&6; } 8700else 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8702$as_echo "no" >&6; } 8703fi 8704 8705 8706fi 8707if test -z "$ac_cv_prog_STRIP"; then 8708 ac_ct_STRIP=$STRIP 8709 # Extract the first word of "strip", so it can be a program name with args. 8710set dummy strip; ac_word=$2 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8712$as_echo_n "checking for $ac_word... " >&6; } 8713if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 if test -n "$ac_ct_STRIP"; then 8717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8718else 8719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8720for as_dir in $PATH 8721do 8722 IFS=$as_save_IFS 8723 test -z "$as_dir" && as_dir=. 8724 for ac_exec_ext in '' $ac_executable_extensions; do 8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8726 ac_cv_prog_ac_ct_STRIP="strip" 8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8728 break 2 8729 fi 8730done 8731 done 8732IFS=$as_save_IFS 8733 8734fi 8735fi 8736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8737if test -n "$ac_ct_STRIP"; then 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8739$as_echo "$ac_ct_STRIP" >&6; } 8740else 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8742$as_echo "no" >&6; } 8743fi 8744 8745 if test "x$ac_ct_STRIP" = x; then 8746 STRIP=":" 8747 else 8748 case $cross_compiling:$ac_tool_warned in 8749yes:) 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8752ac_tool_warned=yes ;; 8753esac 8754 STRIP=$ac_ct_STRIP 8755 fi 8756else 8757 STRIP="$ac_cv_prog_STRIP" 8758fi 8759 8760test -z "$STRIP" && STRIP=: 8761 8762 8763 8764 8765 8766 8767if test -n "$ac_tool_prefix"; then 8768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8769set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8771$as_echo_n "checking for $ac_word... " >&6; } 8772if ${ac_cv_prog_RANLIB+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 if test -n "$RANLIB"; then 8776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8777else 8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8779for as_dir in $PATH 8780do 8781 IFS=$as_save_IFS 8782 test -z "$as_dir" && as_dir=. 8783 for ac_exec_ext in '' $ac_executable_extensions; do 8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8787 break 2 8788 fi 8789done 8790 done 8791IFS=$as_save_IFS 8792 8793fi 8794fi 8795RANLIB=$ac_cv_prog_RANLIB 8796if test -n "$RANLIB"; then 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8798$as_echo "$RANLIB" >&6; } 8799else 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8801$as_echo "no" >&6; } 8802fi 8803 8804 8805fi 8806if test -z "$ac_cv_prog_RANLIB"; then 8807 ac_ct_RANLIB=$RANLIB 8808 # Extract the first word of "ranlib", so it can be a program name with args. 8809set dummy ranlib; ac_word=$2 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8811$as_echo_n "checking for $ac_word... " >&6; } 8812if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 if test -n "$ac_ct_RANLIB"; then 8816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8817else 8818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8819for as_dir in $PATH 8820do 8821 IFS=$as_save_IFS 8822 test -z "$as_dir" && as_dir=. 8823 for ac_exec_ext in '' $ac_executable_extensions; do 8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8825 ac_cv_prog_ac_ct_RANLIB="ranlib" 8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8827 break 2 8828 fi 8829done 8830 done 8831IFS=$as_save_IFS 8832 8833fi 8834fi 8835ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8836if test -n "$ac_ct_RANLIB"; then 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8838$as_echo "$ac_ct_RANLIB" >&6; } 8839else 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8841$as_echo "no" >&6; } 8842fi 8843 8844 if test "x$ac_ct_RANLIB" = x; then 8845 RANLIB=":" 8846 else 8847 case $cross_compiling:$ac_tool_warned in 8848yes:) 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8851ac_tool_warned=yes ;; 8852esac 8853 RANLIB=$ac_ct_RANLIB 8854 fi 8855else 8856 RANLIB="$ac_cv_prog_RANLIB" 8857fi 8858 8859test -z "$RANLIB" && RANLIB=: 8860 8861 8862 8863 8864 8865 8866# Determine commands to create old-style static archives. 8867old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8868old_postinstall_cmds='chmod 644 $oldlib' 8869old_postuninstall_cmds= 8870 8871if test -n "$RANLIB"; then 8872 case $host_os in 8873 openbsd*) 8874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8875 ;; 8876 *) 8877 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8878 ;; 8879 esac 8880 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8881fi 8882 8883case $host_os in 8884 darwin*) 8885 lock_old_archive_extraction=yes ;; 8886 *) 8887 lock_old_archive_extraction=no ;; 8888esac 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910for ac_prog in gawk mawk nawk awk 8911do 8912 # Extract the first word of "$ac_prog", so it can be a program name with args. 8913set dummy $ac_prog; ac_word=$2 8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8915$as_echo_n "checking for $ac_word... " >&6; } 8916if ${ac_cv_prog_AWK+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 if test -n "$AWK"; then 8920 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8921else 8922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8923for as_dir in $PATH 8924do 8925 IFS=$as_save_IFS 8926 test -z "$as_dir" && as_dir=. 8927 for ac_exec_ext in '' $ac_executable_extensions; do 8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8929 ac_cv_prog_AWK="$ac_prog" 8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8931 break 2 8932 fi 8933done 8934 done 8935IFS=$as_save_IFS 8936 8937fi 8938fi 8939AWK=$ac_cv_prog_AWK 8940if test -n "$AWK"; then 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8942$as_echo "$AWK" >&6; } 8943else 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8945$as_echo "no" >&6; } 8946fi 8947 8948 8949 test -n "$AWK" && break 8950done 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970# If no C compiler was specified, use CC. 8971LTCC=${LTCC-"$CC"} 8972 8973# If no C compiler flags were specified, use CFLAGS. 8974LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8975 8976# Allow CC to be a program name with arguments. 8977compiler=$CC 8978 8979 8980# Check for command to grab the raw symbol name followed by C symbol from nm. 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8982$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8983if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 8987# These are sane defaults that work on at least a few old systems. 8988# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8989 8990# Character class describing NM global symbol codes. 8991symcode='[BCDEGRST]' 8992 8993# Regexp to match symbols that can be accessed directly from C. 8994sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8995 8996# Define system-specific variables. 8997case $host_os in 8998aix*) 8999 symcode='[BCDT]' 9000 ;; 9001cygwin* | mingw* | pw32* | cegcc*) 9002 symcode='[ABCDGISTW]' 9003 ;; 9004hpux*) 9005 if test "$host_cpu" = ia64; then 9006 symcode='[ABCDEGRST]' 9007 fi 9008 ;; 9009irix* | nonstopux*) 9010 symcode='[BCDEGRST]' 9011 ;; 9012osf*) 9013 symcode='[BCDEGQRST]' 9014 ;; 9015solaris*) 9016 symcode='[BDRT]' 9017 ;; 9018sco3.2v5*) 9019 symcode='[DT]' 9020 ;; 9021sysv4.2uw2*) 9022 symcode='[DT]' 9023 ;; 9024sysv5* | sco5v6* | unixware* | OpenUNIX*) 9025 symcode='[ABDT]' 9026 ;; 9027sysv4) 9028 symcode='[DFNSTU]' 9029 ;; 9030esac 9031 9032# If we're using GNU nm, then use its standard symbol codes. 9033case `$NM -V 2>&1` in 9034*GNU* | *'with BFD'*) 9035 symcode='[ABCDGIRSTW]' ;; 9036esac 9037 9038# Transform an extracted symbol line into a proper C declaration. 9039# Some systems (esp. on ia64) link data and code symbols differently, 9040# so use this general approach. 9041lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9042 9043# Transform an extracted symbol line into symbol name and symbol address 9044lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9045lt_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'" 9046 9047# Handle CRLF in mingw tool chain 9048opt_cr= 9049case $build_os in 9050mingw*) 9051 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9052 ;; 9053esac 9054 9055# Try without a prefix underscore, then with it. 9056for ac_symprfx in "" "_"; do 9057 9058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9059 symxfrm="\\1 $ac_symprfx\\2 \\2" 9060 9061 # Write the raw and C identifiers. 9062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9063 # Fake it for dumpbin and say T for any non-static function 9064 # and D for any global variable. 9065 # Also find C++ and __fastcall symbols from MSVC++, 9066 # which start with @ or ?. 9067 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9068" {last_section=section; section=\$ 3};"\ 9069" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9070" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9071" \$ 0!~/External *\|/{next};"\ 9072" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9073" {if(hide[section]) next};"\ 9074" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9075" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9076" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9077" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9078" ' prfx=^$ac_symprfx" 9079 else 9080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9081 fi 9082 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9083 9084 # Check to see that the pipe works correctly. 9085 pipe_works=no 9086 9087 rm -f conftest* 9088 cat > conftest.$ac_ext <<_LT_EOF 9089#ifdef __cplusplus 9090extern "C" { 9091#endif 9092char nm_test_var; 9093void nm_test_func(void); 9094void nm_test_func(void){} 9095#ifdef __cplusplus 9096} 9097#endif 9098int main(){nm_test_var='a';nm_test_func();return(0);} 9099_LT_EOF 9100 9101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9102 (eval $ac_compile) 2>&5 9103 ac_status=$? 9104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9105 test $ac_status = 0; }; then 9106 # Now try to grab the symbols. 9107 nlist=conftest.nm 9108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9109 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9110 ac_status=$? 9111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9112 test $ac_status = 0; } && test -s "$nlist"; then 9113 # Try sorting and uniquifying the output. 9114 if sort "$nlist" | uniq > "$nlist"T; then 9115 mv -f "$nlist"T "$nlist" 9116 else 9117 rm -f "$nlist"T 9118 fi 9119 9120 # Make sure that we snagged all the symbols we need. 9121 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9122 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9123 cat <<_LT_EOF > conftest.$ac_ext 9124/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9125#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9126/* DATA imports from DLLs on WIN32 con't be const, because runtime 9127 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9128# define LT_DLSYM_CONST 9129#elif defined(__osf__) 9130/* This system does not cope well with relocations in const data. */ 9131# define LT_DLSYM_CONST 9132#else 9133# define LT_DLSYM_CONST const 9134#endif 9135 9136#ifdef __cplusplus 9137extern "C" { 9138#endif 9139 9140_LT_EOF 9141 # Now generate the symbol file. 9142 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9143 9144 cat <<_LT_EOF >> conftest.$ac_ext 9145 9146/* The mapping between symbol names and symbols. */ 9147LT_DLSYM_CONST struct { 9148 const char *name; 9149 void *address; 9150} 9151lt__PROGRAM__LTX_preloaded_symbols[] = 9152{ 9153 { "@PROGRAM@", (void *) 0 }, 9154_LT_EOF 9155 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9156 cat <<\_LT_EOF >> conftest.$ac_ext 9157 {0, (void *) 0} 9158}; 9159 9160/* This works around a problem in FreeBSD linker */ 9161#ifdef FREEBSD_WORKAROUND 9162static const void *lt_preloaded_setup() { 9163 return lt__PROGRAM__LTX_preloaded_symbols; 9164} 9165#endif 9166 9167#ifdef __cplusplus 9168} 9169#endif 9170_LT_EOF 9171 # Now try linking the two files. 9172 mv conftest.$ac_objext conftstm.$ac_objext 9173 lt_globsym_save_LIBS=$LIBS 9174 lt_globsym_save_CFLAGS=$CFLAGS 9175 LIBS="conftstm.$ac_objext" 9176 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9178 (eval $ac_link) 2>&5 9179 ac_status=$? 9180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9181 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9182 pipe_works=yes 9183 fi 9184 LIBS=$lt_globsym_save_LIBS 9185 CFLAGS=$lt_globsym_save_CFLAGS 9186 else 9187 echo "cannot find nm_test_func in $nlist" >&5 9188 fi 9189 else 9190 echo "cannot find nm_test_var in $nlist" >&5 9191 fi 9192 else 9193 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9194 fi 9195 else 9196 echo "$progname: failed program was:" >&5 9197 cat conftest.$ac_ext >&5 9198 fi 9199 rm -rf conftest* conftst* 9200 9201 # Do not use the global_symbol_pipe unless it works. 9202 if test "$pipe_works" = yes; then 9203 break 9204 else 9205 lt_cv_sys_global_symbol_pipe= 9206 fi 9207done 9208 9209fi 9210 9211if test -z "$lt_cv_sys_global_symbol_pipe"; then 9212 lt_cv_sys_global_symbol_to_cdecl= 9213fi 9214if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9216$as_echo "failed" >&6; } 9217else 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9219$as_echo "ok" >&6; } 9220fi 9221 9222# Response file support. 9223if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9224 nm_file_list_spec='@' 9225elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9226 nm_file_list_spec='@' 9227fi 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9256$as_echo_n "checking for sysroot... " >&6; } 9257 9258# Check whether --with-sysroot was given. 9259if test "${with_sysroot+set}" = set; then : 9260 withval=$with_sysroot; 9261else 9262 with_sysroot=no 9263fi 9264 9265 9266lt_sysroot= 9267case ${with_sysroot} in #( 9268 yes) 9269 if test "$GCC" = yes; then 9270 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9271 fi 9272 ;; #( 9273 /*) 9274 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9275 ;; #( 9276 no|'') 9277 ;; #( 9278 *) 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9280$as_echo "${with_sysroot}" >&6; } 9281 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9282 ;; 9283esac 9284 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9286$as_echo "${lt_sysroot:-no}" >&6; } 9287 9288 9289 9290 9291 9292# Check whether --enable-libtool-lock was given. 9293if test "${enable_libtool_lock+set}" = set; then : 9294 enableval=$enable_libtool_lock; 9295fi 9296 9297test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9298 9299# Some flags need to be propagated to the compiler or linker for good 9300# libtool support. 9301case $host in 9302ia64-*-hpux*) 9303 # Find out which ABI we are using. 9304 echo 'int i;' > conftest.$ac_ext 9305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9306 (eval $ac_compile) 2>&5 9307 ac_status=$? 9308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9309 test $ac_status = 0; }; then 9310 case `/usr/bin/file conftest.$ac_objext` in 9311 *ELF-32*) 9312 HPUX_IA64_MODE="32" 9313 ;; 9314 *ELF-64*) 9315 HPUX_IA64_MODE="64" 9316 ;; 9317 esac 9318 fi 9319 rm -rf conftest* 9320 ;; 9321*-*-irix6*) 9322 # Find out which ABI we are using. 9323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9325 (eval $ac_compile) 2>&5 9326 ac_status=$? 9327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9328 test $ac_status = 0; }; then 9329 if test "$lt_cv_prog_gnu_ld" = yes; then 9330 case `/usr/bin/file conftest.$ac_objext` in 9331 *32-bit*) 9332 LD="${LD-ld} -melf32bsmip" 9333 ;; 9334 *N32*) 9335 LD="${LD-ld} -melf32bmipn32" 9336 ;; 9337 *64-bit*) 9338 LD="${LD-ld} -melf64bmip" 9339 ;; 9340 esac 9341 else 9342 case `/usr/bin/file conftest.$ac_objext` in 9343 *32-bit*) 9344 LD="${LD-ld} -32" 9345 ;; 9346 *N32*) 9347 LD="${LD-ld} -n32" 9348 ;; 9349 *64-bit*) 9350 LD="${LD-ld} -64" 9351 ;; 9352 esac 9353 fi 9354 fi 9355 rm -rf conftest* 9356 ;; 9357 9358x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9359s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9360 # Find out which ABI we are using. 9361 echo 'int i;' > conftest.$ac_ext 9362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9363 (eval $ac_compile) 2>&5 9364 ac_status=$? 9365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9366 test $ac_status = 0; }; then 9367 case `/usr/bin/file conftest.o` in 9368 *32-bit*) 9369 case $host in 9370 x86_64-*kfreebsd*-gnu) 9371 LD="${LD-ld} -m elf_i386_fbsd" 9372 ;; 9373 x86_64-*linux*) 9374 LD="${LD-ld} -m elf_i386" 9375 ;; 9376 ppc64-*linux*|powerpc64-*linux*) 9377 LD="${LD-ld} -m elf32ppclinux" 9378 ;; 9379 s390x-*linux*) 9380 LD="${LD-ld} -m elf_s390" 9381 ;; 9382 sparc64-*linux*) 9383 LD="${LD-ld} -m elf32_sparc" 9384 ;; 9385 esac 9386 ;; 9387 *64-bit*) 9388 case $host in 9389 x86_64-*kfreebsd*-gnu) 9390 LD="${LD-ld} -m elf_x86_64_fbsd" 9391 ;; 9392 x86_64-*linux*) 9393 LD="${LD-ld} -m elf_x86_64" 9394 ;; 9395 ppc*-*linux*|powerpc*-*linux*) 9396 LD="${LD-ld} -m elf64ppc" 9397 ;; 9398 s390*-*linux*|s390*-*tpf*) 9399 LD="${LD-ld} -m elf64_s390" 9400 ;; 9401 sparc*-*linux*) 9402 LD="${LD-ld} -m elf64_sparc" 9403 ;; 9404 esac 9405 ;; 9406 esac 9407 fi 9408 rm -rf conftest* 9409 ;; 9410 9411*-*-sco3.2v5*) 9412 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9413 SAVE_CFLAGS="$CFLAGS" 9414 CFLAGS="$CFLAGS -belf" 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9416$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9417if ${lt_cv_cc_needs_belf+:} false; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 ac_ext=c 9421ac_cpp='$CPP $CPPFLAGS' 9422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9424ac_compiler_gnu=$ac_cv_c_compiler_gnu 9425 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428 9429int 9430main () 9431{ 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437if ac_fn_c_try_link "$LINENO"; then : 9438 lt_cv_cc_needs_belf=yes 9439else 9440 lt_cv_cc_needs_belf=no 9441fi 9442rm -f core conftest.err conftest.$ac_objext \ 9443 conftest$ac_exeext conftest.$ac_ext 9444 ac_ext=c 9445ac_cpp='$CPP $CPPFLAGS' 9446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9448ac_compiler_gnu=$ac_cv_c_compiler_gnu 9449 9450fi 9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9452$as_echo "$lt_cv_cc_needs_belf" >&6; } 9453 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9454 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9455 CFLAGS="$SAVE_CFLAGS" 9456 fi 9457 ;; 9458*-*solaris*) 9459 # Find out which ABI we are using. 9460 echo 'int i;' > conftest.$ac_ext 9461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9462 (eval $ac_compile) 2>&5 9463 ac_status=$? 9464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9465 test $ac_status = 0; }; then 9466 case `/usr/bin/file conftest.o` in 9467 *64-bit*) 9468 case $lt_cv_prog_gnu_ld in 9469 yes*) 9470 case $host in 9471 i?86-*-solaris*) 9472 LD="${LD-ld} -m elf_x86_64" 9473 ;; 9474 sparc*-*-solaris*) 9475 LD="${LD-ld} -m elf64_sparc" 9476 ;; 9477 esac 9478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9480 LD="${LD-ld}_sol2" 9481 fi 9482 ;; 9483 *) 9484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9485 LD="${LD-ld} -64" 9486 fi 9487 ;; 9488 esac 9489 ;; 9490 esac 9491 fi 9492 rm -rf conftest* 9493 ;; 9494esac 9495 9496need_locks="$enable_libtool_lock" 9497 9498if test -n "$ac_tool_prefix"; then 9499 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9500set dummy ${ac_tool_prefix}mt; ac_word=$2 9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9502$as_echo_n "checking for $ac_word... " >&6; } 9503if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9504 $as_echo_n "(cached) " >&6 9505else 9506 if test -n "$MANIFEST_TOOL"; then 9507 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9508else 9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9510for as_dir in $PATH 9511do 9512 IFS=$as_save_IFS 9513 test -z "$as_dir" && as_dir=. 9514 for ac_exec_ext in '' $ac_executable_extensions; do 9515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9516 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9518 break 2 9519 fi 9520done 9521 done 9522IFS=$as_save_IFS 9523 9524fi 9525fi 9526MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9527if test -n "$MANIFEST_TOOL"; then 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9529$as_echo "$MANIFEST_TOOL" >&6; } 9530else 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9532$as_echo "no" >&6; } 9533fi 9534 9535 9536fi 9537if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9538 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9539 # Extract the first word of "mt", so it can be a program name with args. 9540set dummy mt; ac_word=$2 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9542$as_echo_n "checking for $ac_word... " >&6; } 9543if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545else 9546 if test -n "$ac_ct_MANIFEST_TOOL"; then 9547 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9548else 9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9550for as_dir in $PATH 9551do 9552 IFS=$as_save_IFS 9553 test -z "$as_dir" && as_dir=. 9554 for ac_exec_ext in '' $ac_executable_extensions; do 9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9558 break 2 9559 fi 9560done 9561 done 9562IFS=$as_save_IFS 9563 9564fi 9565fi 9566ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9567if test -n "$ac_ct_MANIFEST_TOOL"; then 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9569$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9570else 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9572$as_echo "no" >&6; } 9573fi 9574 9575 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9576 MANIFEST_TOOL=":" 9577 else 9578 case $cross_compiling:$ac_tool_warned in 9579yes:) 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9582ac_tool_warned=yes ;; 9583esac 9584 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9585 fi 9586else 9587 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9588fi 9589 9590test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9592$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9593if ${lt_cv_path_mainfest_tool+:} false; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 lt_cv_path_mainfest_tool=no 9597 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9598 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9599 cat conftest.err >&5 9600 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9601 lt_cv_path_mainfest_tool=yes 9602 fi 9603 rm -f conftest* 9604fi 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9606$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9607if test "x$lt_cv_path_mainfest_tool" != xyes; then 9608 MANIFEST_TOOL=: 9609fi 9610 9611 9612 9613 9614 9615 9616 case $host_os in 9617 rhapsody* | darwin*) 9618 if test -n "$ac_tool_prefix"; then 9619 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9620set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9622$as_echo_n "checking for $ac_word... " >&6; } 9623if ${ac_cv_prog_DSYMUTIL+:} false; then : 9624 $as_echo_n "(cached) " >&6 9625else 9626 if test -n "$DSYMUTIL"; then 9627 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9628else 9629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9630for as_dir in $PATH 9631do 9632 IFS=$as_save_IFS 9633 test -z "$as_dir" && as_dir=. 9634 for ac_exec_ext in '' $ac_executable_extensions; do 9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9636 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9638 break 2 9639 fi 9640done 9641 done 9642IFS=$as_save_IFS 9643 9644fi 9645fi 9646DSYMUTIL=$ac_cv_prog_DSYMUTIL 9647if test -n "$DSYMUTIL"; then 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9649$as_echo "$DSYMUTIL" >&6; } 9650else 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9652$as_echo "no" >&6; } 9653fi 9654 9655 9656fi 9657if test -z "$ac_cv_prog_DSYMUTIL"; then 9658 ac_ct_DSYMUTIL=$DSYMUTIL 9659 # Extract the first word of "dsymutil", so it can be a program name with args. 9660set dummy dsymutil; ac_word=$2 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9662$as_echo_n "checking for $ac_word... " >&6; } 9663if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 if test -n "$ac_ct_DSYMUTIL"; then 9667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9668else 9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9670for as_dir in $PATH 9671do 9672 IFS=$as_save_IFS 9673 test -z "$as_dir" && as_dir=. 9674 for ac_exec_ext in '' $ac_executable_extensions; do 9675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9676 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9678 break 2 9679 fi 9680done 9681 done 9682IFS=$as_save_IFS 9683 9684fi 9685fi 9686ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9687if test -n "$ac_ct_DSYMUTIL"; then 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9689$as_echo "$ac_ct_DSYMUTIL" >&6; } 9690else 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9692$as_echo "no" >&6; } 9693fi 9694 9695 if test "x$ac_ct_DSYMUTIL" = x; then 9696 DSYMUTIL=":" 9697 else 9698 case $cross_compiling:$ac_tool_warned in 9699yes:) 9700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9702ac_tool_warned=yes ;; 9703esac 9704 DSYMUTIL=$ac_ct_DSYMUTIL 9705 fi 9706else 9707 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9708fi 9709 9710 if test -n "$ac_tool_prefix"; then 9711 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9712set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9714$as_echo_n "checking for $ac_word... " >&6; } 9715if ${ac_cv_prog_NMEDIT+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 if test -n "$NMEDIT"; then 9719 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9720else 9721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9722for as_dir in $PATH 9723do 9724 IFS=$as_save_IFS 9725 test -z "$as_dir" && as_dir=. 9726 for ac_exec_ext in '' $ac_executable_extensions; do 9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9728 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9730 break 2 9731 fi 9732done 9733 done 9734IFS=$as_save_IFS 9735 9736fi 9737fi 9738NMEDIT=$ac_cv_prog_NMEDIT 9739if test -n "$NMEDIT"; then 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9741$as_echo "$NMEDIT" >&6; } 9742else 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9744$as_echo "no" >&6; } 9745fi 9746 9747 9748fi 9749if test -z "$ac_cv_prog_NMEDIT"; then 9750 ac_ct_NMEDIT=$NMEDIT 9751 # Extract the first word of "nmedit", so it can be a program name with args. 9752set dummy nmedit; ac_word=$2 9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9754$as_echo_n "checking for $ac_word... " >&6; } 9755if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9756 $as_echo_n "(cached) " >&6 9757else 9758 if test -n "$ac_ct_NMEDIT"; then 9759 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9760else 9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9762for as_dir in $PATH 9763do 9764 IFS=$as_save_IFS 9765 test -z "$as_dir" && as_dir=. 9766 for ac_exec_ext in '' $ac_executable_extensions; do 9767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9768 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9770 break 2 9771 fi 9772done 9773 done 9774IFS=$as_save_IFS 9775 9776fi 9777fi 9778ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9779if test -n "$ac_ct_NMEDIT"; then 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9781$as_echo "$ac_ct_NMEDIT" >&6; } 9782else 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9784$as_echo "no" >&6; } 9785fi 9786 9787 if test "x$ac_ct_NMEDIT" = x; then 9788 NMEDIT=":" 9789 else 9790 case $cross_compiling:$ac_tool_warned in 9791yes:) 9792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9794ac_tool_warned=yes ;; 9795esac 9796 NMEDIT=$ac_ct_NMEDIT 9797 fi 9798else 9799 NMEDIT="$ac_cv_prog_NMEDIT" 9800fi 9801 9802 if test -n "$ac_tool_prefix"; then 9803 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9804set dummy ${ac_tool_prefix}lipo; ac_word=$2 9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9806$as_echo_n "checking for $ac_word... " >&6; } 9807if ${ac_cv_prog_LIPO+:} false; then : 9808 $as_echo_n "(cached) " >&6 9809else 9810 if test -n "$LIPO"; then 9811 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9812else 9813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9814for as_dir in $PATH 9815do 9816 IFS=$as_save_IFS 9817 test -z "$as_dir" && as_dir=. 9818 for ac_exec_ext in '' $ac_executable_extensions; do 9819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9820 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9822 break 2 9823 fi 9824done 9825 done 9826IFS=$as_save_IFS 9827 9828fi 9829fi 9830LIPO=$ac_cv_prog_LIPO 9831if test -n "$LIPO"; then 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9833$as_echo "$LIPO" >&6; } 9834else 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9836$as_echo "no" >&6; } 9837fi 9838 9839 9840fi 9841if test -z "$ac_cv_prog_LIPO"; then 9842 ac_ct_LIPO=$LIPO 9843 # Extract the first word of "lipo", so it can be a program name with args. 9844set dummy lipo; ac_word=$2 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9846$as_echo_n "checking for $ac_word... " >&6; } 9847if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 if test -n "$ac_ct_LIPO"; then 9851 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9852else 9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9854for as_dir in $PATH 9855do 9856 IFS=$as_save_IFS 9857 test -z "$as_dir" && as_dir=. 9858 for ac_exec_ext in '' $ac_executable_extensions; do 9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9860 ac_cv_prog_ac_ct_LIPO="lipo" 9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9862 break 2 9863 fi 9864done 9865 done 9866IFS=$as_save_IFS 9867 9868fi 9869fi 9870ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9871if test -n "$ac_ct_LIPO"; then 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9873$as_echo "$ac_ct_LIPO" >&6; } 9874else 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9876$as_echo "no" >&6; } 9877fi 9878 9879 if test "x$ac_ct_LIPO" = x; then 9880 LIPO=":" 9881 else 9882 case $cross_compiling:$ac_tool_warned in 9883yes:) 9884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9886ac_tool_warned=yes ;; 9887esac 9888 LIPO=$ac_ct_LIPO 9889 fi 9890else 9891 LIPO="$ac_cv_prog_LIPO" 9892fi 9893 9894 if test -n "$ac_tool_prefix"; then 9895 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9896set dummy ${ac_tool_prefix}otool; ac_word=$2 9897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9898$as_echo_n "checking for $ac_word... " >&6; } 9899if ${ac_cv_prog_OTOOL+:} false; then : 9900 $as_echo_n "(cached) " >&6 9901else 9902 if test -n "$OTOOL"; then 9903 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9904else 9905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9906for as_dir in $PATH 9907do 9908 IFS=$as_save_IFS 9909 test -z "$as_dir" && as_dir=. 9910 for ac_exec_ext in '' $ac_executable_extensions; do 9911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9912 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9914 break 2 9915 fi 9916done 9917 done 9918IFS=$as_save_IFS 9919 9920fi 9921fi 9922OTOOL=$ac_cv_prog_OTOOL 9923if test -n "$OTOOL"; then 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9925$as_echo "$OTOOL" >&6; } 9926else 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9928$as_echo "no" >&6; } 9929fi 9930 9931 9932fi 9933if test -z "$ac_cv_prog_OTOOL"; then 9934 ac_ct_OTOOL=$OTOOL 9935 # Extract the first word of "otool", so it can be a program name with args. 9936set dummy otool; ac_word=$2 9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9938$as_echo_n "checking for $ac_word... " >&6; } 9939if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9940 $as_echo_n "(cached) " >&6 9941else 9942 if test -n "$ac_ct_OTOOL"; then 9943 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9944else 9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9946for as_dir in $PATH 9947do 9948 IFS=$as_save_IFS 9949 test -z "$as_dir" && as_dir=. 9950 for ac_exec_ext in '' $ac_executable_extensions; do 9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9952 ac_cv_prog_ac_ct_OTOOL="otool" 9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9954 break 2 9955 fi 9956done 9957 done 9958IFS=$as_save_IFS 9959 9960fi 9961fi 9962ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9963if test -n "$ac_ct_OTOOL"; then 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9965$as_echo "$ac_ct_OTOOL" >&6; } 9966else 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9968$as_echo "no" >&6; } 9969fi 9970 9971 if test "x$ac_ct_OTOOL" = x; then 9972 OTOOL=":" 9973 else 9974 case $cross_compiling:$ac_tool_warned in 9975yes:) 9976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9978ac_tool_warned=yes ;; 9979esac 9980 OTOOL=$ac_ct_OTOOL 9981 fi 9982else 9983 OTOOL="$ac_cv_prog_OTOOL" 9984fi 9985 9986 if test -n "$ac_tool_prefix"; then 9987 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9988set dummy ${ac_tool_prefix}otool64; ac_word=$2 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9990$as_echo_n "checking for $ac_word... " >&6; } 9991if ${ac_cv_prog_OTOOL64+:} false; then : 9992 $as_echo_n "(cached) " >&6 9993else 9994 if test -n "$OTOOL64"; then 9995 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9996else 9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9998for as_dir in $PATH 9999do 10000 IFS=$as_save_IFS 10001 test -z "$as_dir" && as_dir=. 10002 for ac_exec_ext in '' $ac_executable_extensions; do 10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10004 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10006 break 2 10007 fi 10008done 10009 done 10010IFS=$as_save_IFS 10011 10012fi 10013fi 10014OTOOL64=$ac_cv_prog_OTOOL64 10015if test -n "$OTOOL64"; then 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10017$as_echo "$OTOOL64" >&6; } 10018else 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10020$as_echo "no" >&6; } 10021fi 10022 10023 10024fi 10025if test -z "$ac_cv_prog_OTOOL64"; then 10026 ac_ct_OTOOL64=$OTOOL64 10027 # Extract the first word of "otool64", so it can be a program name with args. 10028set dummy otool64; ac_word=$2 10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10030$as_echo_n "checking for $ac_word... " >&6; } 10031if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 if test -n "$ac_ct_OTOOL64"; then 10035 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10036else 10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10038for as_dir in $PATH 10039do 10040 IFS=$as_save_IFS 10041 test -z "$as_dir" && as_dir=. 10042 for ac_exec_ext in '' $ac_executable_extensions; do 10043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10044 ac_cv_prog_ac_ct_OTOOL64="otool64" 10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10046 break 2 10047 fi 10048done 10049 done 10050IFS=$as_save_IFS 10051 10052fi 10053fi 10054ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10055if test -n "$ac_ct_OTOOL64"; then 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10057$as_echo "$ac_ct_OTOOL64" >&6; } 10058else 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10060$as_echo "no" >&6; } 10061fi 10062 10063 if test "x$ac_ct_OTOOL64" = x; then 10064 OTOOL64=":" 10065 else 10066 case $cross_compiling:$ac_tool_warned in 10067yes:) 10068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10070ac_tool_warned=yes ;; 10071esac 10072 OTOOL64=$ac_ct_OTOOL64 10073 fi 10074else 10075 OTOOL64="$ac_cv_prog_OTOOL64" 10076fi 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10105$as_echo_n "checking for -single_module linker flag... " >&6; } 10106if ${lt_cv_apple_cc_single_mod+:} false; then : 10107 $as_echo_n "(cached) " >&6 10108else 10109 lt_cv_apple_cc_single_mod=no 10110 if test -z "${LT_MULTI_MODULE}"; then 10111 # By default we will add the -single_module flag. You can override 10112 # by either setting the environment variable LT_MULTI_MODULE 10113 # non-empty at configure time, or by adding -multi_module to the 10114 # link flags. 10115 rm -rf libconftest.dylib* 10116 echo "int foo(void){return 1;}" > conftest.c 10117 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10118-dynamiclib -Wl,-single_module conftest.c" >&5 10119 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10120 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10121 _lt_result=$? 10122 # If there is a non-empty error log, and "single_module" 10123 # appears in it, assume the flag caused a linker warning 10124 if test -s conftest.err && $GREP single_module conftest.err; then 10125 cat conftest.err >&5 10126 # Otherwise, if the output was created with a 0 exit code from 10127 # the compiler, it worked. 10128 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 10129 lt_cv_apple_cc_single_mod=yes 10130 else 10131 cat conftest.err >&5 10132 fi 10133 rm -rf libconftest.dylib* 10134 rm -f conftest.* 10135 fi 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10138$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10139 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10141$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10142if ${lt_cv_ld_exported_symbols_list+:} false; then : 10143 $as_echo_n "(cached) " >&6 10144else 10145 lt_cv_ld_exported_symbols_list=no 10146 save_LDFLAGS=$LDFLAGS 10147 echo "_main" > conftest.sym 10148 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10150/* end confdefs.h. */ 10151 10152int 10153main () 10154{ 10155 10156 ; 10157 return 0; 10158} 10159_ACEOF 10160if ac_fn_c_try_link "$LINENO"; then : 10161 lt_cv_ld_exported_symbols_list=yes 10162else 10163 lt_cv_ld_exported_symbols_list=no 10164fi 10165rm -f core conftest.err conftest.$ac_objext \ 10166 conftest$ac_exeext conftest.$ac_ext 10167 LDFLAGS="$save_LDFLAGS" 10168 10169fi 10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10171$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10172 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10174$as_echo_n "checking for -force_load linker flag... " >&6; } 10175if ${lt_cv_ld_force_load+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177else 10178 lt_cv_ld_force_load=no 10179 cat > conftest.c << _LT_EOF 10180int forced_loaded() { return 2;} 10181_LT_EOF 10182 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10183 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10184 echo "$AR cru libconftest.a conftest.o" >&5 10185 $AR cru libconftest.a conftest.o 2>&5 10186 echo "$RANLIB libconftest.a" >&5 10187 $RANLIB libconftest.a 2>&5 10188 cat > conftest.c << _LT_EOF 10189int main() { return 0;} 10190_LT_EOF 10191 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10192 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10193 _lt_result=$? 10194 if test -s conftest.err && $GREP force_load conftest.err; then 10195 cat conftest.err >&5 10196 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 10197 lt_cv_ld_force_load=yes 10198 else 10199 cat conftest.err >&5 10200 fi 10201 rm -f conftest.err libconftest.a conftest conftest.c 10202 rm -rf conftest.dSYM 10203 10204fi 10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10206$as_echo "$lt_cv_ld_force_load" >&6; } 10207 case $host_os in 10208 rhapsody* | darwin1.[012]) 10209 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10210 darwin1.*) 10211 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10212 darwin*) # darwin 5.x on 10213 # if running on 10.5 or later, the deployment target defaults 10214 # to the OS version, if on x86, and 10.4, the deployment 10215 # target defaults to 10.4. Don't you love it? 10216 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10217 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10218 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10219 10.[012]*) 10220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10221 10.*) 10222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10223 esac 10224 ;; 10225 esac 10226 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10227 _lt_dar_single_mod='$single_module' 10228 fi 10229 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10230 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10231 else 10232 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10233 fi 10234 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10235 _lt_dsymutil='~$DSYMUTIL $lib || :' 10236 else 10237 _lt_dsymutil= 10238 fi 10239 ;; 10240 esac 10241 10242for ac_header in dlfcn.h 10243do : 10244 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10245" 10246if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10247 cat >>confdefs.h <<_ACEOF 10248#define HAVE_DLFCN_H 1 10249_ACEOF 10250 10251fi 10252 10253done 10254 10255 10256 10257 10258 10259 10260 10261# Set options 10262 10263 10264 10265 enable_dlopen=no 10266 10267 10268 enable_win32_dll=no 10269 10270 10271 # Check whether --enable-shared was given. 10272if test "${enable_shared+set}" = set; then : 10273 enableval=$enable_shared; p=${PACKAGE-default} 10274 case $enableval in 10275 yes) enable_shared=yes ;; 10276 no) enable_shared=no ;; 10277 *) 10278 enable_shared=no 10279 # Look at the argument we got. We use all the common list separators. 10280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10281 for pkg in $enableval; do 10282 IFS="$lt_save_ifs" 10283 if test "X$pkg" = "X$p"; then 10284 enable_shared=yes 10285 fi 10286 done 10287 IFS="$lt_save_ifs" 10288 ;; 10289 esac 10290else 10291 enable_shared=yes 10292fi 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 # Check whether --enable-static was given. 10303if test "${enable_static+set}" = set; then : 10304 enableval=$enable_static; p=${PACKAGE-default} 10305 case $enableval in 10306 yes) enable_static=yes ;; 10307 no) enable_static=no ;; 10308 *) 10309 enable_static=no 10310 # Look at the argument we got. We use all the common list separators. 10311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10312 for pkg in $enableval; do 10313 IFS="$lt_save_ifs" 10314 if test "X$pkg" = "X$p"; then 10315 enable_static=yes 10316 fi 10317 done 10318 IFS="$lt_save_ifs" 10319 ;; 10320 esac 10321else 10322 enable_static=yes 10323fi 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334# Check whether --with-pic was given. 10335if test "${with_pic+set}" = set; then : 10336 withval=$with_pic; lt_p=${PACKAGE-default} 10337 case $withval in 10338 yes|no) pic_mode=$withval ;; 10339 *) 10340 pic_mode=default 10341 # Look at the argument we got. We use all the common list separators. 10342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10343 for lt_pkg in $withval; do 10344 IFS="$lt_save_ifs" 10345 if test "X$lt_pkg" = "X$lt_p"; then 10346 pic_mode=yes 10347 fi 10348 done 10349 IFS="$lt_save_ifs" 10350 ;; 10351 esac 10352else 10353 pic_mode=default 10354fi 10355 10356 10357test -z "$pic_mode" && pic_mode=default 10358 10359 10360 10361 10362 10363 10364 10365 # Check whether --enable-fast-install was given. 10366if test "${enable_fast_install+set}" = set; then : 10367 enableval=$enable_fast_install; p=${PACKAGE-default} 10368 case $enableval in 10369 yes) enable_fast_install=yes ;; 10370 no) enable_fast_install=no ;; 10371 *) 10372 enable_fast_install=no 10373 # Look at the argument we got. We use all the common list separators. 10374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10375 for pkg in $enableval; do 10376 IFS="$lt_save_ifs" 10377 if test "X$pkg" = "X$p"; then 10378 enable_fast_install=yes 10379 fi 10380 done 10381 IFS="$lt_save_ifs" 10382 ;; 10383 esac 10384else 10385 enable_fast_install=yes 10386fi 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398# This can be used to rebuild libtool when needed 10399LIBTOOL_DEPS="$ltmain" 10400 10401# Always use our own libtool. 10402LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433test -z "$LN_S" && LN_S="ln -s" 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448if test -n "${ZSH_VERSION+set}" ; then 10449 setopt NO_GLOB_SUBST 10450fi 10451 10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10453$as_echo_n "checking for objdir... " >&6; } 10454if ${lt_cv_objdir+:} false; then : 10455 $as_echo_n "(cached) " >&6 10456else 10457 rm -f .libs 2>/dev/null 10458mkdir .libs 2>/dev/null 10459if test -d .libs; then 10460 lt_cv_objdir=.libs 10461else 10462 # MS-DOS does not allow filenames that begin with a dot. 10463 lt_cv_objdir=_libs 10464fi 10465rmdir .libs 2>/dev/null 10466fi 10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10468$as_echo "$lt_cv_objdir" >&6; } 10469objdir=$lt_cv_objdir 10470 10471 10472 10473 10474 10475cat >>confdefs.h <<_ACEOF 10476#define LT_OBJDIR "$lt_cv_objdir/" 10477_ACEOF 10478 10479 10480 10481 10482case $host_os in 10483aix3*) 10484 # AIX sometimes has problems with the GCC collect2 program. For some 10485 # reason, if we set the COLLECT_NAMES environment variable, the problems 10486 # vanish in a puff of smoke. 10487 if test "X${COLLECT_NAMES+set}" != Xset; then 10488 COLLECT_NAMES= 10489 export COLLECT_NAMES 10490 fi 10491 ;; 10492esac 10493 10494# Global variables: 10495ofile=libtool 10496can_build_shared=yes 10497 10498# All known linkers require a `.a' archive for static linking (except MSVC, 10499# which needs '.lib'). 10500libext=a 10501 10502with_gnu_ld="$lt_cv_prog_gnu_ld" 10503 10504old_CC="$CC" 10505old_CFLAGS="$CFLAGS" 10506 10507# Set sane defaults for various variables 10508test -z "$CC" && CC=cc 10509test -z "$LTCC" && LTCC=$CC 10510test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10511test -z "$LD" && LD=ld 10512test -z "$ac_objext" && ac_objext=o 10513 10514for cc_temp in $compiler""; do 10515 case $cc_temp in 10516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10518 \-*) ;; 10519 *) break;; 10520 esac 10521done 10522cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10523 10524 10525# Only perform the check for file, if the check method requires it 10526test -z "$MAGIC_CMD" && MAGIC_CMD=file 10527case $deplibs_check_method in 10528file_magic*) 10529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10531$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10532if ${lt_cv_path_MAGIC_CMD+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534else 10535 case $MAGIC_CMD in 10536[\\/*] | ?:[\\/]*) 10537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10538 ;; 10539*) 10540 lt_save_MAGIC_CMD="$MAGIC_CMD" 10541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10543 for ac_dir in $ac_dummy; do 10544 IFS="$lt_save_ifs" 10545 test -z "$ac_dir" && ac_dir=. 10546 if test -f $ac_dir/${ac_tool_prefix}file; then 10547 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10548 if test -n "$file_magic_test_file"; then 10549 case $deplibs_check_method in 10550 "file_magic "*) 10551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10554 $EGREP "$file_magic_regex" > /dev/null; then 10555 : 10556 else 10557 cat <<_LT_EOF 1>&2 10558 10559*** Warning: the command libtool uses to detect shared libraries, 10560*** $file_magic_cmd, produces output that libtool cannot recognize. 10561*** The result is that libtool may fail to recognize shared libraries 10562*** as such. This will affect the creation of libtool libraries that 10563*** depend on shared libraries, but programs linked with such libtool 10564*** libraries will work regardless of this problem. Nevertheless, you 10565*** may want to report the problem to your system manager and/or to 10566*** bug-libtool@gnu.org 10567 10568_LT_EOF 10569 fi ;; 10570 esac 10571 fi 10572 break 10573 fi 10574 done 10575 IFS="$lt_save_ifs" 10576 MAGIC_CMD="$lt_save_MAGIC_CMD" 10577 ;; 10578esac 10579fi 10580 10581MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10582if test -n "$MAGIC_CMD"; then 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10584$as_echo "$MAGIC_CMD" >&6; } 10585else 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10587$as_echo "no" >&6; } 10588fi 10589 10590 10591 10592 10593 10594if test -z "$lt_cv_path_MAGIC_CMD"; then 10595 if test -n "$ac_tool_prefix"; then 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10597$as_echo_n "checking for file... " >&6; } 10598if ${lt_cv_path_MAGIC_CMD+:} false; then : 10599 $as_echo_n "(cached) " >&6 10600else 10601 case $MAGIC_CMD in 10602[\\/*] | ?:[\\/]*) 10603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10604 ;; 10605*) 10606 lt_save_MAGIC_CMD="$MAGIC_CMD" 10607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10609 for ac_dir in $ac_dummy; do 10610 IFS="$lt_save_ifs" 10611 test -z "$ac_dir" && ac_dir=. 10612 if test -f $ac_dir/file; then 10613 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10614 if test -n "$file_magic_test_file"; then 10615 case $deplibs_check_method in 10616 "file_magic "*) 10617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10620 $EGREP "$file_magic_regex" > /dev/null; then 10621 : 10622 else 10623 cat <<_LT_EOF 1>&2 10624 10625*** Warning: the command libtool uses to detect shared libraries, 10626*** $file_magic_cmd, produces output that libtool cannot recognize. 10627*** The result is that libtool may fail to recognize shared libraries 10628*** as such. This will affect the creation of libtool libraries that 10629*** depend on shared libraries, but programs linked with such libtool 10630*** libraries will work regardless of this problem. Nevertheless, you 10631*** may want to report the problem to your system manager and/or to 10632*** bug-libtool@gnu.org 10633 10634_LT_EOF 10635 fi ;; 10636 esac 10637 fi 10638 break 10639 fi 10640 done 10641 IFS="$lt_save_ifs" 10642 MAGIC_CMD="$lt_save_MAGIC_CMD" 10643 ;; 10644esac 10645fi 10646 10647MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10648if test -n "$MAGIC_CMD"; then 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10650$as_echo "$MAGIC_CMD" >&6; } 10651else 10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10653$as_echo "no" >&6; } 10654fi 10655 10656 10657 else 10658 MAGIC_CMD=: 10659 fi 10660fi 10661 10662 fi 10663 ;; 10664esac 10665 10666# Use C for the default configuration in the libtool script 10667 10668lt_save_CC="$CC" 10669ac_ext=c 10670ac_cpp='$CPP $CPPFLAGS' 10671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10673ac_compiler_gnu=$ac_cv_c_compiler_gnu 10674 10675 10676# Source file extension for C test sources. 10677ac_ext=c 10678 10679# Object file extension for compiled C test sources. 10680objext=o 10681objext=$objext 10682 10683# Code to be used in simple compile tests 10684lt_simple_compile_test_code="int some_variable = 0;" 10685 10686# Code to be used in simple link tests 10687lt_simple_link_test_code='int main(){return(0);}' 10688 10689 10690 10691 10692 10693 10694 10695# If no C compiler was specified, use CC. 10696LTCC=${LTCC-"$CC"} 10697 10698# If no C compiler flags were specified, use CFLAGS. 10699LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10700 10701# Allow CC to be a program name with arguments. 10702compiler=$CC 10703 10704# Save the default compiler, since it gets overwritten when the other 10705# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10706compiler_DEFAULT=$CC 10707 10708# save warnings/boilerplate of simple test code 10709ac_outfile=conftest.$ac_objext 10710echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10711eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10712_lt_compiler_boilerplate=`cat conftest.err` 10713$RM conftest* 10714 10715ac_outfile=conftest.$ac_objext 10716echo "$lt_simple_link_test_code" >conftest.$ac_ext 10717eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10718_lt_linker_boilerplate=`cat conftest.err` 10719$RM -r conftest* 10720 10721 10722if test -n "$compiler"; then 10723 10724lt_prog_compiler_no_builtin_flag= 10725 10726if test "$GCC" = yes; then 10727 case $cc_basename in 10728 nvcc*) 10729 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10730 *) 10731 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10732 esac 10733 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10735$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10736if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10737 $as_echo_n "(cached) " >&6 10738else 10739 lt_cv_prog_compiler_rtti_exceptions=no 10740 ac_outfile=conftest.$ac_objext 10741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10742 lt_compiler_flag="-fno-rtti -fno-exceptions" 10743 # Insert the option either (1) after the last *FLAGS variable, or 10744 # (2) before a word containing "conftest.", or (3) at the end. 10745 # Note that $ac_compile itself does not contain backslashes and begins 10746 # with a dollar sign (not a hyphen), so the echo should work correctly. 10747 # The option is referenced via a variable to avoid confusing sed. 10748 lt_compile=`echo "$ac_compile" | $SED \ 10749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10751 -e 's:$: $lt_compiler_flag:'` 10752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10753 (eval "$lt_compile" 2>conftest.err) 10754 ac_status=$? 10755 cat conftest.err >&5 10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10757 if (exit $ac_status) && test -s "$ac_outfile"; then 10758 # The compiler can only warn and ignore the option if not recognized 10759 # So say no if there are warnings other than the usual output. 10760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10763 lt_cv_prog_compiler_rtti_exceptions=yes 10764 fi 10765 fi 10766 $RM conftest* 10767 10768fi 10769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10770$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10771 10772if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10773 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10774else 10775 : 10776fi 10777 10778fi 10779 10780 10781 10782 10783 10784 10785 lt_prog_compiler_wl= 10786lt_prog_compiler_pic= 10787lt_prog_compiler_static= 10788 10789 10790 if test "$GCC" = yes; then 10791 lt_prog_compiler_wl='-Wl,' 10792 lt_prog_compiler_static='-static' 10793 10794 case $host_os in 10795 aix*) 10796 # All AIX code is PIC. 10797 if test "$host_cpu" = ia64; then 10798 # AIX 5 now supports IA64 processor 10799 lt_prog_compiler_static='-Bstatic' 10800 fi 10801 ;; 10802 10803 amigaos*) 10804 case $host_cpu in 10805 powerpc) 10806 # see comment about AmigaOS4 .so support 10807 lt_prog_compiler_pic='-fPIC' 10808 ;; 10809 m68k) 10810 # FIXME: we need at least 68020 code to build shared libraries, but 10811 # adding the `-m68020' flag to GCC prevents building anything better, 10812 # like `-m68040'. 10813 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10814 ;; 10815 esac 10816 ;; 10817 10818 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10819 # PIC is the default for these OSes. 10820 ;; 10821 10822 mingw* | cygwin* | pw32* | os2* | cegcc*) 10823 # This hack is so that the source file can tell whether it is being 10824 # built for inclusion in a dll (and should export symbols for example). 10825 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10826 # (--disable-auto-import) libraries 10827 lt_prog_compiler_pic='-DDLL_EXPORT' 10828 ;; 10829 10830 darwin* | rhapsody*) 10831 # PIC is the default on this platform 10832 # Common symbols not allowed in MH_DYLIB files 10833 lt_prog_compiler_pic='-fno-common' 10834 ;; 10835 10836 haiku*) 10837 # PIC is the default for Haiku. 10838 # The "-static" flag exists, but is broken. 10839 lt_prog_compiler_static= 10840 ;; 10841 10842 hpux*) 10843 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10844 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10845 # sets the default TLS model and affects inlining. 10846 case $host_cpu in 10847 hppa*64*) 10848 # +Z the default 10849 ;; 10850 *) 10851 lt_prog_compiler_pic='-fPIC' 10852 ;; 10853 esac 10854 ;; 10855 10856 interix[3-9]*) 10857 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10858 # Instead, we relocate shared libraries at runtime. 10859 ;; 10860 10861 msdosdjgpp*) 10862 # Just because we use GCC doesn't mean we suddenly get shared libraries 10863 # on systems that don't support them. 10864 lt_prog_compiler_can_build_shared=no 10865 enable_shared=no 10866 ;; 10867 10868 *nto* | *qnx*) 10869 # QNX uses GNU C++, but need to define -shared option too, otherwise 10870 # it will coredump. 10871 lt_prog_compiler_pic='-fPIC -shared' 10872 ;; 10873 10874 sysv4*MP*) 10875 if test -d /usr/nec; then 10876 lt_prog_compiler_pic=-Kconform_pic 10877 fi 10878 ;; 10879 10880 *) 10881 lt_prog_compiler_pic='-fPIC' 10882 ;; 10883 esac 10884 10885 case $cc_basename in 10886 nvcc*) # Cuda Compiler Driver 2.2 10887 lt_prog_compiler_wl='-Xlinker ' 10888 if test -n "$lt_prog_compiler_pic"; then 10889 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10890 fi 10891 ;; 10892 esac 10893 else 10894 # PORTME Check for flag to pass linker flags through the system compiler. 10895 case $host_os in 10896 aix*) 10897 lt_prog_compiler_wl='-Wl,' 10898 if test "$host_cpu" = ia64; then 10899 # AIX 5 now supports IA64 processor 10900 lt_prog_compiler_static='-Bstatic' 10901 else 10902 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10903 fi 10904 ;; 10905 10906 mingw* | cygwin* | pw32* | os2* | cegcc*) 10907 # This hack is so that the source file can tell whether it is being 10908 # built for inclusion in a dll (and should export symbols for example). 10909 lt_prog_compiler_pic='-DDLL_EXPORT' 10910 ;; 10911 10912 hpux9* | hpux10* | hpux11*) 10913 lt_prog_compiler_wl='-Wl,' 10914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10915 # not for PA HP-UX. 10916 case $host_cpu in 10917 hppa*64*|ia64*) 10918 # +Z the default 10919 ;; 10920 *) 10921 lt_prog_compiler_pic='+Z' 10922 ;; 10923 esac 10924 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10925 lt_prog_compiler_static='${wl}-a ${wl}archive' 10926 ;; 10927 10928 irix5* | irix6* | nonstopux*) 10929 lt_prog_compiler_wl='-Wl,' 10930 # PIC (with -KPIC) is the default. 10931 lt_prog_compiler_static='-non_shared' 10932 ;; 10933 10934 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10935 case $cc_basename in 10936 # old Intel for x86_64 which still supported -KPIC. 10937 ecc*) 10938 lt_prog_compiler_wl='-Wl,' 10939 lt_prog_compiler_pic='-KPIC' 10940 lt_prog_compiler_static='-static' 10941 ;; 10942 # icc used to be incompatible with GCC. 10943 # ICC 10 doesn't accept -KPIC any more. 10944 icc* | ifort*) 10945 lt_prog_compiler_wl='-Wl,' 10946 lt_prog_compiler_pic='-fPIC' 10947 lt_prog_compiler_static='-static' 10948 ;; 10949 # Lahey Fortran 8.1. 10950 lf95*) 10951 lt_prog_compiler_wl='-Wl,' 10952 lt_prog_compiler_pic='--shared' 10953 lt_prog_compiler_static='--static' 10954 ;; 10955 nagfor*) 10956 # NAG Fortran compiler 10957 lt_prog_compiler_wl='-Wl,-Wl,,' 10958 lt_prog_compiler_pic='-PIC' 10959 lt_prog_compiler_static='-Bstatic' 10960 ;; 10961 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10962 # Portland Group compilers (*not* the Pentium gcc compiler, 10963 # which looks to be a dead project) 10964 lt_prog_compiler_wl='-Wl,' 10965 lt_prog_compiler_pic='-fpic' 10966 lt_prog_compiler_static='-Bstatic' 10967 ;; 10968 ccc*) 10969 lt_prog_compiler_wl='-Wl,' 10970 # All Alpha code is PIC. 10971 lt_prog_compiler_static='-non_shared' 10972 ;; 10973 xl* | bgxl* | bgf* | mpixl*) 10974 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10975 lt_prog_compiler_wl='-Wl,' 10976 lt_prog_compiler_pic='-qpic' 10977 lt_prog_compiler_static='-qstaticlink' 10978 ;; 10979 *) 10980 case `$CC -V 2>&1 | sed 5q` in 10981 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10982 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10983 lt_prog_compiler_pic='-KPIC' 10984 lt_prog_compiler_static='-Bstatic' 10985 lt_prog_compiler_wl='' 10986 ;; 10987 *Sun\ F* | *Sun*Fortran*) 10988 lt_prog_compiler_pic='-KPIC' 10989 lt_prog_compiler_static='-Bstatic' 10990 lt_prog_compiler_wl='-Qoption ld ' 10991 ;; 10992 *Sun\ C*) 10993 # Sun C 5.9 10994 lt_prog_compiler_pic='-KPIC' 10995 lt_prog_compiler_static='-Bstatic' 10996 lt_prog_compiler_wl='-Wl,' 10997 ;; 10998 *Intel*\ [CF]*Compiler*) 10999 lt_prog_compiler_wl='-Wl,' 11000 lt_prog_compiler_pic='-fPIC' 11001 lt_prog_compiler_static='-static' 11002 ;; 11003 *Portland\ Group*) 11004 lt_prog_compiler_wl='-Wl,' 11005 lt_prog_compiler_pic='-fpic' 11006 lt_prog_compiler_static='-Bstatic' 11007 ;; 11008 esac 11009 ;; 11010 esac 11011 ;; 11012 11013 newsos6) 11014 lt_prog_compiler_pic='-KPIC' 11015 lt_prog_compiler_static='-Bstatic' 11016 ;; 11017 11018 *nto* | *qnx*) 11019 # QNX uses GNU C++, but need to define -shared option too, otherwise 11020 # it will coredump. 11021 lt_prog_compiler_pic='-fPIC -shared' 11022 ;; 11023 11024 osf3* | osf4* | osf5*) 11025 lt_prog_compiler_wl='-Wl,' 11026 # All OSF/1 code is PIC. 11027 lt_prog_compiler_static='-non_shared' 11028 ;; 11029 11030 rdos*) 11031 lt_prog_compiler_static='-non_shared' 11032 ;; 11033 11034 solaris*) 11035 lt_prog_compiler_pic='-KPIC' 11036 lt_prog_compiler_static='-Bstatic' 11037 case $cc_basename in 11038 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11039 lt_prog_compiler_wl='-Qoption ld ';; 11040 *) 11041 lt_prog_compiler_wl='-Wl,';; 11042 esac 11043 ;; 11044 11045 sunos4*) 11046 lt_prog_compiler_wl='-Qoption ld ' 11047 lt_prog_compiler_pic='-PIC' 11048 lt_prog_compiler_static='-Bstatic' 11049 ;; 11050 11051 sysv4 | sysv4.2uw2* | sysv4.3*) 11052 lt_prog_compiler_wl='-Wl,' 11053 lt_prog_compiler_pic='-KPIC' 11054 lt_prog_compiler_static='-Bstatic' 11055 ;; 11056 11057 sysv4*MP*) 11058 if test -d /usr/nec ;then 11059 lt_prog_compiler_pic='-Kconform_pic' 11060 lt_prog_compiler_static='-Bstatic' 11061 fi 11062 ;; 11063 11064 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11065 lt_prog_compiler_wl='-Wl,' 11066 lt_prog_compiler_pic='-KPIC' 11067 lt_prog_compiler_static='-Bstatic' 11068 ;; 11069 11070 unicos*) 11071 lt_prog_compiler_wl='-Wl,' 11072 lt_prog_compiler_can_build_shared=no 11073 ;; 11074 11075 uts4*) 11076 lt_prog_compiler_pic='-pic' 11077 lt_prog_compiler_static='-Bstatic' 11078 ;; 11079 11080 *) 11081 lt_prog_compiler_can_build_shared=no 11082 ;; 11083 esac 11084 fi 11085 11086case $host_os in 11087 # For platforms which do not support PIC, -DPIC is meaningless: 11088 *djgpp*) 11089 lt_prog_compiler_pic= 11090 ;; 11091 *) 11092 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11093 ;; 11094esac 11095 11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11097$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11098if ${lt_cv_prog_compiler_pic+:} false; then : 11099 $as_echo_n "(cached) " >&6 11100else 11101 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11102fi 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11104$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11105lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11106 11107# 11108# Check to make sure the PIC flag actually works. 11109# 11110if test -n "$lt_prog_compiler_pic"; then 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11112$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11113if ${lt_cv_prog_compiler_pic_works+:} false; then : 11114 $as_echo_n "(cached) " >&6 11115else 11116 lt_cv_prog_compiler_pic_works=no 11117 ac_outfile=conftest.$ac_objext 11118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11119 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11120 # Insert the option either (1) after the last *FLAGS variable, or 11121 # (2) before a word containing "conftest.", or (3) at the end. 11122 # Note that $ac_compile itself does not contain backslashes and begins 11123 # with a dollar sign (not a hyphen), so the echo should work correctly. 11124 # The option is referenced via a variable to avoid confusing sed. 11125 lt_compile=`echo "$ac_compile" | $SED \ 11126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11128 -e 's:$: $lt_compiler_flag:'` 11129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11130 (eval "$lt_compile" 2>conftest.err) 11131 ac_status=$? 11132 cat conftest.err >&5 11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11134 if (exit $ac_status) && test -s "$ac_outfile"; then 11135 # The compiler can only warn and ignore the option if not recognized 11136 # So say no if there are warnings other than the usual output. 11137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11140 lt_cv_prog_compiler_pic_works=yes 11141 fi 11142 fi 11143 $RM conftest* 11144 11145fi 11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11147$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11148 11149if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11150 case $lt_prog_compiler_pic in 11151 "" | " "*) ;; 11152 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11153 esac 11154else 11155 lt_prog_compiler_pic= 11156 lt_prog_compiler_can_build_shared=no 11157fi 11158 11159fi 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171# 11172# Check to make sure the static flag actually works. 11173# 11174wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11176$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11177if ${lt_cv_prog_compiler_static_works+:} false; then : 11178 $as_echo_n "(cached) " >&6 11179else 11180 lt_cv_prog_compiler_static_works=no 11181 save_LDFLAGS="$LDFLAGS" 11182 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11183 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11185 # The linker can only warn and ignore the option if not recognized 11186 # So say no if there are warnings 11187 if test -s conftest.err; then 11188 # Append any errors to the config.log. 11189 cat conftest.err 1>&5 11190 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11192 if diff conftest.exp conftest.er2 >/dev/null; then 11193 lt_cv_prog_compiler_static_works=yes 11194 fi 11195 else 11196 lt_cv_prog_compiler_static_works=yes 11197 fi 11198 fi 11199 $RM -r conftest* 11200 LDFLAGS="$save_LDFLAGS" 11201 11202fi 11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11204$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11205 11206if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11207 : 11208else 11209 lt_prog_compiler_static= 11210fi 11211 11212 11213 11214 11215 11216 11217 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11219$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11220if ${lt_cv_prog_compiler_c_o+:} false; then : 11221 $as_echo_n "(cached) " >&6 11222else 11223 lt_cv_prog_compiler_c_o=no 11224 $RM -r conftest 2>/dev/null 11225 mkdir conftest 11226 cd conftest 11227 mkdir out 11228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11229 11230 lt_compiler_flag="-o out/conftest2.$ac_objext" 11231 # Insert the option either (1) after the last *FLAGS variable, or 11232 # (2) before a word containing "conftest.", or (3) at the end. 11233 # Note that $ac_compile itself does not contain backslashes and begins 11234 # with a dollar sign (not a hyphen), so the echo should work correctly. 11235 lt_compile=`echo "$ac_compile" | $SED \ 11236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11238 -e 's:$: $lt_compiler_flag:'` 11239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11240 (eval "$lt_compile" 2>out/conftest.err) 11241 ac_status=$? 11242 cat out/conftest.err >&5 11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11244 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11245 then 11246 # The compiler can only warn and ignore the option if not recognized 11247 # So say no if there are warnings 11248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11249 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11250 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11251 lt_cv_prog_compiler_c_o=yes 11252 fi 11253 fi 11254 chmod u+w . 2>&5 11255 $RM conftest* 11256 # SGI C++ compiler will create directory out/ii_files/ for 11257 # template instantiation 11258 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11259 $RM out/* && rmdir out 11260 cd .. 11261 $RM -r conftest 11262 $RM conftest* 11263 11264fi 11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11266$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11267 11268 11269 11270 11271 11272 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11274$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11275if ${lt_cv_prog_compiler_c_o+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 lt_cv_prog_compiler_c_o=no 11279 $RM -r conftest 2>/dev/null 11280 mkdir conftest 11281 cd conftest 11282 mkdir out 11283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11284 11285 lt_compiler_flag="-o out/conftest2.$ac_objext" 11286 # Insert the option either (1) after the last *FLAGS variable, or 11287 # (2) before a word containing "conftest.", or (3) at the end. 11288 # Note that $ac_compile itself does not contain backslashes and begins 11289 # with a dollar sign (not a hyphen), so the echo should work correctly. 11290 lt_compile=`echo "$ac_compile" | $SED \ 11291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11293 -e 's:$: $lt_compiler_flag:'` 11294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11295 (eval "$lt_compile" 2>out/conftest.err) 11296 ac_status=$? 11297 cat out/conftest.err >&5 11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11299 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11300 then 11301 # The compiler can only warn and ignore the option if not recognized 11302 # So say no if there are warnings 11303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11306 lt_cv_prog_compiler_c_o=yes 11307 fi 11308 fi 11309 chmod u+w . 2>&5 11310 $RM conftest* 11311 # SGI C++ compiler will create directory out/ii_files/ for 11312 # template instantiation 11313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11314 $RM out/* && rmdir out 11315 cd .. 11316 $RM -r conftest 11317 $RM conftest* 11318 11319fi 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11321$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11322 11323 11324 11325 11326hard_links="nottested" 11327if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11328 # do not overwrite the value of need_locks provided by the user 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11330$as_echo_n "checking if we can lock with hard links... " >&6; } 11331 hard_links=yes 11332 $RM conftest* 11333 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11334 touch conftest.a 11335 ln conftest.a conftest.b 2>&5 || hard_links=no 11336 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11338$as_echo "$hard_links" >&6; } 11339 if test "$hard_links" = no; then 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11341$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11342 need_locks=warn 11343 fi 11344else 11345 need_locks=no 11346fi 11347 11348 11349 11350 11351 11352 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11354$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11355 11356 runpath_var= 11357 allow_undefined_flag= 11358 always_export_symbols=no 11359 archive_cmds= 11360 archive_expsym_cmds= 11361 compiler_needs_object=no 11362 enable_shared_with_static_runtimes=no 11363 export_dynamic_flag_spec= 11364 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11365 hardcode_automatic=no 11366 hardcode_direct=no 11367 hardcode_direct_absolute=no 11368 hardcode_libdir_flag_spec= 11369 hardcode_libdir_separator= 11370 hardcode_minus_L=no 11371 hardcode_shlibpath_var=unsupported 11372 inherit_rpath=no 11373 link_all_deplibs=unknown 11374 module_cmds= 11375 module_expsym_cmds= 11376 old_archive_from_new_cmds= 11377 old_archive_from_expsyms_cmds= 11378 thread_safe_flag_spec= 11379 whole_archive_flag_spec= 11380 # include_expsyms should be a list of space-separated symbols to be *always* 11381 # included in the symbol list 11382 include_expsyms= 11383 # exclude_expsyms can be an extended regexp of symbols to exclude 11384 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11385 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11386 # as well as any symbol that contains `d'. 11387 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11388 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11389 # platforms (ab)use it in PIC code, but their linkers get confused if 11390 # the symbol is explicitly referenced. Since portable code cannot 11391 # rely on this symbol name, it's probably fine to never include it in 11392 # preloaded symbol tables. 11393 # Exclude shared library initialization/finalization symbols. 11394 extract_expsyms_cmds= 11395 11396 case $host_os in 11397 cygwin* | mingw* | pw32* | cegcc*) 11398 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11399 # When not using gcc, we currently assume that we are using 11400 # Microsoft Visual C++. 11401 if test "$GCC" != yes; then 11402 with_gnu_ld=no 11403 fi 11404 ;; 11405 interix*) 11406 # we just hope/assume this is gcc and not c89 (= MSVC++) 11407 with_gnu_ld=yes 11408 ;; 11409 openbsd*) 11410 with_gnu_ld=no 11411 ;; 11412 linux* | k*bsd*-gnu | gnu*) 11413 link_all_deplibs=no 11414 ;; 11415 esac 11416 11417 ld_shlibs=yes 11418 11419 # On some targets, GNU ld is compatible enough with the native linker 11420 # that we're better off using the native interface for both. 11421 lt_use_gnu_ld_interface=no 11422 if test "$with_gnu_ld" = yes; then 11423 case $host_os in 11424 aix*) 11425 # The AIX port of GNU ld has always aspired to compatibility 11426 # with the native linker. However, as the warning in the GNU ld 11427 # block says, versions before 2.19.5* couldn't really create working 11428 # shared libraries, regardless of the interface used. 11429 case `$LD -v 2>&1` in 11430 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11431 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11432 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11433 *) 11434 lt_use_gnu_ld_interface=yes 11435 ;; 11436 esac 11437 ;; 11438 *) 11439 lt_use_gnu_ld_interface=yes 11440 ;; 11441 esac 11442 fi 11443 11444 if test "$lt_use_gnu_ld_interface" = yes; then 11445 # If archive_cmds runs LD, not CC, wlarc should be empty 11446 wlarc='${wl}' 11447 11448 # Set some defaults for GNU ld with shared library support. These 11449 # are reset later if shared libraries are not supported. Putting them 11450 # here allows them to be overridden if necessary. 11451 runpath_var=LD_RUN_PATH 11452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11453 export_dynamic_flag_spec='${wl}--export-dynamic' 11454 # ancient GNU ld didn't support --whole-archive et. al. 11455 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11457 else 11458 whole_archive_flag_spec= 11459 fi 11460 supports_anon_versioning=no 11461 case `$LD -v 2>&1` in 11462 *GNU\ gold*) supports_anon_versioning=yes ;; 11463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11466 *\ 2.11.*) ;; # other 2.11 versions 11467 *) supports_anon_versioning=yes ;; 11468 esac 11469 11470 # See if GNU ld supports shared libraries. 11471 case $host_os in 11472 aix[3-9]*) 11473 # On AIX/PPC, the GNU linker is very broken 11474 if test "$host_cpu" != ia64; then 11475 ld_shlibs=no 11476 cat <<_LT_EOF 1>&2 11477 11478*** Warning: the GNU linker, at least up to release 2.19, is reported 11479*** to be unable to reliably create shared libraries on AIX. 11480*** Therefore, libtool is disabling shared libraries support. If you 11481*** really care for shared libraries, you may want to install binutils 11482*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11483*** You will then need to restart the configuration process. 11484 11485_LT_EOF 11486 fi 11487 ;; 11488 11489 amigaos*) 11490 case $host_cpu in 11491 powerpc) 11492 # see comment about AmigaOS4 .so support 11493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11494 archive_expsym_cmds='' 11495 ;; 11496 m68k) 11497 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)' 11498 hardcode_libdir_flag_spec='-L$libdir' 11499 hardcode_minus_L=yes 11500 ;; 11501 esac 11502 ;; 11503 11504 beos*) 11505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11506 allow_undefined_flag=unsupported 11507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11508 # support --undefined. This deserves some investigation. FIXME 11509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11510 else 11511 ld_shlibs=no 11512 fi 11513 ;; 11514 11515 cygwin* | mingw* | pw32* | cegcc*) 11516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11517 # as there is no search path for DLLs. 11518 hardcode_libdir_flag_spec='-L$libdir' 11519 export_dynamic_flag_spec='${wl}--export-all-symbols' 11520 allow_undefined_flag=unsupported 11521 always_export_symbols=no 11522 enable_shared_with_static_runtimes=yes 11523 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' 11524 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11525 11526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11528 # If the export-symbols file already is a .def file (1st line 11529 # is EXPORTS), use it as is; otherwise, prepend... 11530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11531 cp $export_symbols $output_objdir/$soname.def; 11532 else 11533 echo EXPORTS > $output_objdir/$soname.def; 11534 cat $export_symbols >> $output_objdir/$soname.def; 11535 fi~ 11536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11537 else 11538 ld_shlibs=no 11539 fi 11540 ;; 11541 11542 haiku*) 11543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11544 link_all_deplibs=yes 11545 ;; 11546 11547 interix[3-9]*) 11548 hardcode_direct=no 11549 hardcode_shlibpath_var=no 11550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11551 export_dynamic_flag_spec='${wl}-E' 11552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11553 # Instead, shared libraries are loaded at an image base (0x10000000 by 11554 # default) and relocated if they conflict, which is a slow very memory 11555 # consuming and fragmenting process. To avoid this, we pick a random, 11556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11557 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11559 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' 11560 ;; 11561 11562 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11563 tmp_diet=no 11564 if test "$host_os" = linux-dietlibc; then 11565 case $cc_basename in 11566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11567 esac 11568 fi 11569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11570 && test "$tmp_diet" = no 11571 then 11572 tmp_addflag=' $pic_flag' 11573 tmp_sharedflag='-shared' 11574 case $cc_basename,$host_cpu in 11575 pgcc*) # Portland Group C compiler 11576 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' 11577 tmp_addflag=' $pic_flag' 11578 ;; 11579 pgf77* | pgf90* | pgf95* | pgfortran*) 11580 # Portland Group f77 and f90 compilers 11581 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' 11582 tmp_addflag=' $pic_flag -Mnomain' ;; 11583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11584 tmp_addflag=' -i_dynamic' ;; 11585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11586 tmp_addflag=' -i_dynamic -nofor_main' ;; 11587 ifc* | ifort*) # Intel Fortran compiler 11588 tmp_addflag=' -nofor_main' ;; 11589 lf95*) # Lahey Fortran 8.1 11590 whole_archive_flag_spec= 11591 tmp_sharedflag='--shared' ;; 11592 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11593 tmp_sharedflag='-qmkshrobj' 11594 tmp_addflag= ;; 11595 nvcc*) # Cuda Compiler Driver 2.2 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 compiler_needs_object=yes 11598 ;; 11599 esac 11600 case `$CC -V 2>&1 | sed 5q` in 11601 *Sun\ C*) # Sun C 5.9 11602 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' 11603 compiler_needs_object=yes 11604 tmp_sharedflag='-G' ;; 11605 *Sun\ F*) # Sun Fortran 8.3 11606 tmp_sharedflag='-G' ;; 11607 esac 11608 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11609 11610 if test "x$supports_anon_versioning" = xyes; then 11611 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11613 echo "local: *; };" >> $output_objdir/$libname.ver~ 11614 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11615 fi 11616 11617 case $cc_basename in 11618 xlf* | bgf* | bgxlf* | mpixlf*) 11619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11620 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11622 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11623 if test "x$supports_anon_versioning" = xyes; then 11624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11626 echo "local: *; };" >> $output_objdir/$libname.ver~ 11627 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11628 fi 11629 ;; 11630 esac 11631 else 11632 ld_shlibs=no 11633 fi 11634 ;; 11635 11636 netbsd* | netbsdelf*-gnu) 11637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11639 wlarc= 11640 else 11641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11643 fi 11644 ;; 11645 11646 solaris*) 11647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11648 ld_shlibs=no 11649 cat <<_LT_EOF 1>&2 11650 11651*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11652*** create shared libraries on Solaris systems. Therefore, libtool 11653*** is disabling shared libraries support. We urge you to upgrade GNU 11654*** binutils to release 2.9.1 or newer. Another option is to modify 11655*** your PATH or compiler configuration so that the native linker is 11656*** used, and then restart. 11657 11658_LT_EOF 11659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11662 else 11663 ld_shlibs=no 11664 fi 11665 ;; 11666 11667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11668 case `$LD -v 2>&1` in 11669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11670 ld_shlibs=no 11671 cat <<_LT_EOF 1>&2 11672 11673*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11674*** reliably create shared libraries on SCO systems. Therefore, libtool 11675*** is disabling shared libraries support. We urge you to upgrade GNU 11676*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11677*** your PATH or compiler configuration so that the native linker is 11678*** used, and then restart. 11679 11680_LT_EOF 11681 ;; 11682 *) 11683 # For security reasons, it is highly recommended that you always 11684 # use absolute paths for naming shared libraries, and exclude the 11685 # DT_RUNPATH tag from executables and libraries. But doing so 11686 # requires that you compile everything twice, which is a pain. 11687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11691 else 11692 ld_shlibs=no 11693 fi 11694 ;; 11695 esac 11696 ;; 11697 11698 sunos4*) 11699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11700 wlarc= 11701 hardcode_direct=yes 11702 hardcode_shlibpath_var=no 11703 ;; 11704 11705 *) 11706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11709 else 11710 ld_shlibs=no 11711 fi 11712 ;; 11713 esac 11714 11715 if test "$ld_shlibs" = no; then 11716 runpath_var= 11717 hardcode_libdir_flag_spec= 11718 export_dynamic_flag_spec= 11719 whole_archive_flag_spec= 11720 fi 11721 else 11722 # PORTME fill in a description of your system's linker (not GNU ld) 11723 case $host_os in 11724 aix3*) 11725 allow_undefined_flag=unsupported 11726 always_export_symbols=yes 11727 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' 11728 # Note: this linker hardcodes the directories in LIBPATH if there 11729 # are no directories specified by -L. 11730 hardcode_minus_L=yes 11731 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11732 # Neither direct hardcoding nor static linking is supported with a 11733 # broken collect2. 11734 hardcode_direct=unsupported 11735 fi 11736 ;; 11737 11738 aix[4-9]*) 11739 if test "$host_cpu" = ia64; then 11740 # On IA64, the linker does run time linking by default, so we don't 11741 # have to do anything special. 11742 aix_use_runtimelinking=no 11743 exp_sym_flag='-Bexport' 11744 no_entry_flag="" 11745 else 11746 # If we're using GNU nm, then we don't want the "-C" option. 11747 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11748 # Also, AIX nm treats weak defined symbols like other global 11749 # defined symbols, whereas GNU nm marks them as "W". 11750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11751 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' 11752 else 11753 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' 11754 fi 11755 aix_use_runtimelinking=no 11756 11757 # Test if we are trying to use run time linking or normal 11758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11759 # need to do runtime linking. 11760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11761 for ld_flag in $LDFLAGS; do 11762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11763 aix_use_runtimelinking=yes 11764 break 11765 fi 11766 done 11767 ;; 11768 esac 11769 11770 exp_sym_flag='-bexport' 11771 no_entry_flag='-bnoentry' 11772 fi 11773 11774 # When large executables or shared objects are built, AIX ld can 11775 # have problems creating the table of contents. If linking a library 11776 # or program results in "error TOC overflow" add -mminimal-toc to 11777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11779 11780 archive_cmds='' 11781 hardcode_direct=yes 11782 hardcode_direct_absolute=yes 11783 hardcode_libdir_separator=':' 11784 link_all_deplibs=yes 11785 file_list_spec='${wl}-f,' 11786 11787 if test "$GCC" = yes; then 11788 case $host_os in aix4.[012]|aix4.[012].*) 11789 # We only want to do this on AIX 4.2 and lower, the check 11790 # below for broken collect2 doesn't work under 4.3+ 11791 collect2name=`${CC} -print-prog-name=collect2` 11792 if test -f "$collect2name" && 11793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11794 then 11795 # We have reworked collect2 11796 : 11797 else 11798 # We have old collect2 11799 hardcode_direct=unsupported 11800 # It fails to find uninstalled libraries when the uninstalled 11801 # path is not listed in the libpath. Setting hardcode_minus_L 11802 # to unsupported forces relinking 11803 hardcode_minus_L=yes 11804 hardcode_libdir_flag_spec='-L$libdir' 11805 hardcode_libdir_separator= 11806 fi 11807 ;; 11808 esac 11809 shared_flag='-shared' 11810 if test "$aix_use_runtimelinking" = yes; then 11811 shared_flag="$shared_flag "'${wl}-G' 11812 fi 11813 link_all_deplibs=no 11814 else 11815 # not using gcc 11816 if test "$host_cpu" = ia64; then 11817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11818 # chokes on -Wl,-G. The following line is correct: 11819 shared_flag='-G' 11820 else 11821 if test "$aix_use_runtimelinking" = yes; then 11822 shared_flag='${wl}-G' 11823 else 11824 shared_flag='${wl}-bM:SRE' 11825 fi 11826 fi 11827 fi 11828 11829 export_dynamic_flag_spec='${wl}-bexpall' 11830 # It seems that -bexpall does not export symbols beginning with 11831 # underscore (_), so it is better to generate a list of symbols to export. 11832 always_export_symbols=yes 11833 if test "$aix_use_runtimelinking" = yes; then 11834 # Warning - without using the other runtime loading flags (-brtl), 11835 # -berok will link without error, but may produce a broken library. 11836 allow_undefined_flag='-berok' 11837 # Determine the default libpath from the value encoded in an 11838 # empty executable. 11839 if test "${lt_cv_aix_libpath+set}" = set; then 11840 aix_libpath=$lt_cv_aix_libpath 11841else 11842 if ${lt_cv_aix_libpath_+:} false; then : 11843 $as_echo_n "(cached) " >&6 11844else 11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11846/* end confdefs.h. */ 11847 11848int 11849main () 11850{ 11851 11852 ; 11853 return 0; 11854} 11855_ACEOF 11856if ac_fn_c_try_link "$LINENO"; then : 11857 11858 lt_aix_libpath_sed=' 11859 /Import File Strings/,/^$/ { 11860 /^0/ { 11861 s/^0 *\([^ ]*\) *$/\1/ 11862 p 11863 } 11864 }' 11865 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11866 # Check for a 64-bit object if we didn't find anything. 11867 if test -z "$lt_cv_aix_libpath_"; then 11868 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11869 fi 11870fi 11871rm -f core conftest.err conftest.$ac_objext \ 11872 conftest$ac_exeext conftest.$ac_ext 11873 if test -z "$lt_cv_aix_libpath_"; then 11874 lt_cv_aix_libpath_="/usr/lib:/lib" 11875 fi 11876 11877fi 11878 11879 aix_libpath=$lt_cv_aix_libpath_ 11880fi 11881 11882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11883 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" 11884 else 11885 if test "$host_cpu" = ia64; then 11886 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11887 allow_undefined_flag="-z nodefs" 11888 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" 11889 else 11890 # Determine the default libpath from the value encoded in an 11891 # empty executable. 11892 if test "${lt_cv_aix_libpath+set}" = set; then 11893 aix_libpath=$lt_cv_aix_libpath 11894else 11895 if ${lt_cv_aix_libpath_+:} false; then : 11896 $as_echo_n "(cached) " >&6 11897else 11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11899/* end confdefs.h. */ 11900 11901int 11902main () 11903{ 11904 11905 ; 11906 return 0; 11907} 11908_ACEOF 11909if ac_fn_c_try_link "$LINENO"; then : 11910 11911 lt_aix_libpath_sed=' 11912 /Import File Strings/,/^$/ { 11913 /^0/ { 11914 s/^0 *\([^ ]*\) *$/\1/ 11915 p 11916 } 11917 }' 11918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11919 # Check for a 64-bit object if we didn't find anything. 11920 if test -z "$lt_cv_aix_libpath_"; then 11921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11922 fi 11923fi 11924rm -f core conftest.err conftest.$ac_objext \ 11925 conftest$ac_exeext conftest.$ac_ext 11926 if test -z "$lt_cv_aix_libpath_"; then 11927 lt_cv_aix_libpath_="/usr/lib:/lib" 11928 fi 11929 11930fi 11931 11932 aix_libpath=$lt_cv_aix_libpath_ 11933fi 11934 11935 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11936 # Warning - without using the other run time loading flags, 11937 # -berok will link without error, but may produce a broken library. 11938 no_undefined_flag=' ${wl}-bernotok' 11939 allow_undefined_flag=' ${wl}-berok' 11940 if test "$with_gnu_ld" = yes; then 11941 # We only use this code for GNU lds that support --whole-archive. 11942 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11943 else 11944 # Exported symbols can be pulled into shared objects from archives 11945 whole_archive_flag_spec='$convenience' 11946 fi 11947 archive_cmds_need_lc=yes 11948 # This is similar to how AIX traditionally builds its shared libraries. 11949 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' 11950 fi 11951 fi 11952 ;; 11953 11954 amigaos*) 11955 case $host_cpu in 11956 powerpc) 11957 # see comment about AmigaOS4 .so support 11958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11959 archive_expsym_cmds='' 11960 ;; 11961 m68k) 11962 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)' 11963 hardcode_libdir_flag_spec='-L$libdir' 11964 hardcode_minus_L=yes 11965 ;; 11966 esac 11967 ;; 11968 11969 bsdi[45]*) 11970 export_dynamic_flag_spec=-rdynamic 11971 ;; 11972 11973 cygwin* | mingw* | pw32* | cegcc*) 11974 # When not using gcc, we currently assume that we are using 11975 # Microsoft Visual C++. 11976 # hardcode_libdir_flag_spec is actually meaningless, as there is 11977 # no search path for DLLs. 11978 case $cc_basename in 11979 cl*) 11980 # Native MSVC 11981 hardcode_libdir_flag_spec=' ' 11982 allow_undefined_flag=unsupported 11983 always_export_symbols=yes 11984 file_list_spec='@' 11985 # Tell ltmain to make .lib files, not .a files. 11986 libext=lib 11987 # Tell ltmain to make .dll files, not .so files. 11988 shrext_cmds=".dll" 11989 # FIXME: Setting linknames here is a bad hack. 11990 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11992 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11993 else 11994 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11995 fi~ 11996 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11997 linknames=' 11998 # The linker will not automatically build a static lib if we build a DLL. 11999 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12000 enable_shared_with_static_runtimes=yes 12001 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12002 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12003 # Don't use ranlib 12004 old_postinstall_cmds='chmod 644 $oldlib' 12005 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12006 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12007 case $lt_outputfile in 12008 *.exe|*.EXE) ;; 12009 *) 12010 lt_outputfile="$lt_outputfile.exe" 12011 lt_tool_outputfile="$lt_tool_outputfile.exe" 12012 ;; 12013 esac~ 12014 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12015 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12016 $RM "$lt_outputfile.manifest"; 12017 fi' 12018 ;; 12019 *) 12020 # Assume MSVC wrapper 12021 hardcode_libdir_flag_spec=' ' 12022 allow_undefined_flag=unsupported 12023 # Tell ltmain to make .lib files, not .a files. 12024 libext=lib 12025 # Tell ltmain to make .dll files, not .so files. 12026 shrext_cmds=".dll" 12027 # FIXME: Setting linknames here is a bad hack. 12028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12029 # The linker will automatically build a .lib file if we build a DLL. 12030 old_archive_from_new_cmds='true' 12031 # FIXME: Should let the user specify the lib program. 12032 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12033 enable_shared_with_static_runtimes=yes 12034 ;; 12035 esac 12036 ;; 12037 12038 darwin* | rhapsody*) 12039 12040 12041 archive_cmds_need_lc=no 12042 hardcode_direct=no 12043 hardcode_automatic=yes 12044 hardcode_shlibpath_var=unsupported 12045 if test "$lt_cv_ld_force_load" = "yes"; then 12046 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\"`' 12047 12048 else 12049 whole_archive_flag_spec='' 12050 fi 12051 link_all_deplibs=yes 12052 allow_undefined_flag="$_lt_dar_allow_undefined" 12053 case $cc_basename in 12054 ifort*) _lt_dar_can_shared=yes ;; 12055 *) _lt_dar_can_shared=$GCC ;; 12056 esac 12057 if test "$_lt_dar_can_shared" = "yes"; then 12058 output_verbose_link_cmd=func_echo_all 12059 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12060 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12061 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}" 12062 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}" 12063 12064 else 12065 ld_shlibs=no 12066 fi 12067 12068 ;; 12069 12070 dgux*) 12071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12072 hardcode_libdir_flag_spec='-L$libdir' 12073 hardcode_shlibpath_var=no 12074 ;; 12075 12076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12077 # support. Future versions do this automatically, but an explicit c++rt0.o 12078 # does not break anything, and helps significantly (at the cost of a little 12079 # extra space). 12080 freebsd2.2*) 12081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12082 hardcode_libdir_flag_spec='-R$libdir' 12083 hardcode_direct=yes 12084 hardcode_shlibpath_var=no 12085 ;; 12086 12087 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12088 freebsd2.*) 12089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12090 hardcode_direct=yes 12091 hardcode_minus_L=yes 12092 hardcode_shlibpath_var=no 12093 ;; 12094 12095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12096 freebsd* | dragonfly*) 12097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12098 hardcode_libdir_flag_spec='-R$libdir' 12099 hardcode_direct=yes 12100 hardcode_shlibpath_var=no 12101 ;; 12102 12103 hpux9*) 12104 if test "$GCC" = yes; then 12105 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' 12106 else 12107 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' 12108 fi 12109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12110 hardcode_libdir_separator=: 12111 hardcode_direct=yes 12112 12113 # hardcode_minus_L: Not really in the search PATH, 12114 # but as the default location of the library. 12115 hardcode_minus_L=yes 12116 export_dynamic_flag_spec='${wl}-E' 12117 ;; 12118 12119 hpux10*) 12120 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12121 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12122 else 12123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12124 fi 12125 if test "$with_gnu_ld" = no; then 12126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12127 hardcode_libdir_separator=: 12128 hardcode_direct=yes 12129 hardcode_direct_absolute=yes 12130 export_dynamic_flag_spec='${wl}-E' 12131 # hardcode_minus_L: Not really in the search PATH, 12132 # but as the default location of the library. 12133 hardcode_minus_L=yes 12134 fi 12135 ;; 12136 12137 hpux11*) 12138 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12139 case $host_cpu in 12140 hppa*64*) 12141 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12142 ;; 12143 ia64*) 12144 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12145 ;; 12146 *) 12147 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12148 ;; 12149 esac 12150 else 12151 case $host_cpu in 12152 hppa*64*) 12153 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12154 ;; 12155 ia64*) 12156 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12157 ;; 12158 *) 12159 12160 # Older versions of the 11.00 compiler do not understand -b yet 12161 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12163$as_echo_n "checking if $CC understands -b... " >&6; } 12164if ${lt_cv_prog_compiler__b+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166else 12167 lt_cv_prog_compiler__b=no 12168 save_LDFLAGS="$LDFLAGS" 12169 LDFLAGS="$LDFLAGS -b" 12170 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12172 # The linker can only warn and ignore the option if not recognized 12173 # So say no if there are warnings 12174 if test -s conftest.err; then 12175 # Append any errors to the config.log. 12176 cat conftest.err 1>&5 12177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12179 if diff conftest.exp conftest.er2 >/dev/null; then 12180 lt_cv_prog_compiler__b=yes 12181 fi 12182 else 12183 lt_cv_prog_compiler__b=yes 12184 fi 12185 fi 12186 $RM -r conftest* 12187 LDFLAGS="$save_LDFLAGS" 12188 12189fi 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12191$as_echo "$lt_cv_prog_compiler__b" >&6; } 12192 12193if test x"$lt_cv_prog_compiler__b" = xyes; then 12194 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12195else 12196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12197fi 12198 12199 ;; 12200 esac 12201 fi 12202 if test "$with_gnu_ld" = no; then 12203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12204 hardcode_libdir_separator=: 12205 12206 case $host_cpu in 12207 hppa*64*|ia64*) 12208 hardcode_direct=no 12209 hardcode_shlibpath_var=no 12210 ;; 12211 *) 12212 hardcode_direct=yes 12213 hardcode_direct_absolute=yes 12214 export_dynamic_flag_spec='${wl}-E' 12215 12216 # hardcode_minus_L: Not really in the search PATH, 12217 # but as the default location of the library. 12218 hardcode_minus_L=yes 12219 ;; 12220 esac 12221 fi 12222 ;; 12223 12224 irix5* | irix6* | nonstopux*) 12225 if test "$GCC" = yes; then 12226 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' 12227 # Try to use the -exported_symbol ld option, if it does not 12228 # work, assume that -exports_file does not work either and 12229 # implicitly export all symbols. 12230 # This should be the same for all languages, so no per-tag cache variable. 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12232$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12233if ${lt_cv_irix_exported_symbol+:} false; then : 12234 $as_echo_n "(cached) " >&6 12235else 12236 save_LDFLAGS="$LDFLAGS" 12237 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12239/* end confdefs.h. */ 12240int foo (void) { return 0; } 12241_ACEOF 12242if ac_fn_c_try_link "$LINENO"; then : 12243 lt_cv_irix_exported_symbol=yes 12244else 12245 lt_cv_irix_exported_symbol=no 12246fi 12247rm -f core conftest.err conftest.$ac_objext \ 12248 conftest$ac_exeext conftest.$ac_ext 12249 LDFLAGS="$save_LDFLAGS" 12250fi 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12252$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12253 if test "$lt_cv_irix_exported_symbol" = yes; then 12254 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' 12255 fi 12256 else 12257 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' 12258 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' 12259 fi 12260 archive_cmds_need_lc='no' 12261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12262 hardcode_libdir_separator=: 12263 inherit_rpath=yes 12264 link_all_deplibs=yes 12265 ;; 12266 12267 netbsd* | netbsdelf*-gnu) 12268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12270 else 12271 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12272 fi 12273 hardcode_libdir_flag_spec='-R$libdir' 12274 hardcode_direct=yes 12275 hardcode_shlibpath_var=no 12276 ;; 12277 12278 newsos6) 12279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12280 hardcode_direct=yes 12281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12282 hardcode_libdir_separator=: 12283 hardcode_shlibpath_var=no 12284 ;; 12285 12286 *nto* | *qnx*) 12287 ;; 12288 12289 openbsd*) 12290 if test -f /usr/libexec/ld.so; then 12291 hardcode_direct=yes 12292 hardcode_shlibpath_var=no 12293 hardcode_direct_absolute=yes 12294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12296 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12298 export_dynamic_flag_spec='${wl}-E' 12299 else 12300 case $host_os in 12301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12303 hardcode_libdir_flag_spec='-R$libdir' 12304 ;; 12305 *) 12306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12308 ;; 12309 esac 12310 fi 12311 else 12312 ld_shlibs=no 12313 fi 12314 ;; 12315 12316 os2*) 12317 hardcode_libdir_flag_spec='-L$libdir' 12318 hardcode_minus_L=yes 12319 allow_undefined_flag=unsupported 12320 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' 12321 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12322 ;; 12323 12324 osf3*) 12325 if test "$GCC" = yes; then 12326 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12327 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' 12328 else 12329 allow_undefined_flag=' -expect_unresolved \*' 12330 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' 12331 fi 12332 archive_cmds_need_lc='no' 12333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12334 hardcode_libdir_separator=: 12335 ;; 12336 12337 osf4* | osf5*) # as osf3* with the addition of -msym flag 12338 if test "$GCC" = yes; then 12339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12340 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' 12341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12342 else 12343 allow_undefined_flag=' -expect_unresolved \*' 12344 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' 12345 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~ 12346 $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' 12347 12348 # Both c and cxx compiler support -rpath directly 12349 hardcode_libdir_flag_spec='-rpath $libdir' 12350 fi 12351 archive_cmds_need_lc='no' 12352 hardcode_libdir_separator=: 12353 ;; 12354 12355 solaris*) 12356 no_undefined_flag=' -z defs' 12357 if test "$GCC" = yes; then 12358 wlarc='${wl}' 12359 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12360 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12361 $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' 12362 else 12363 case `$CC -V 2>&1` in 12364 *"Compilers 5.0"*) 12365 wlarc='' 12366 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12368 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12369 ;; 12370 *) 12371 wlarc='${wl}' 12372 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12374 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12375 ;; 12376 esac 12377 fi 12378 hardcode_libdir_flag_spec='-R$libdir' 12379 hardcode_shlibpath_var=no 12380 case $host_os in 12381 solaris2.[0-5] | solaris2.[0-5].*) ;; 12382 *) 12383 # The compiler driver will combine and reorder linker options, 12384 # but understands `-z linker_flag'. GCC discards it without `$wl', 12385 # but is careful enough not to reorder. 12386 # Supported since Solaris 2.6 (maybe 2.5.1?) 12387 if test "$GCC" = yes; then 12388 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12389 else 12390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12391 fi 12392 ;; 12393 esac 12394 link_all_deplibs=yes 12395 ;; 12396 12397 sunos4*) 12398 if test "x$host_vendor" = xsequent; then 12399 # Use $CC to link under sequent, because it throws in some extra .o 12400 # files that make .init and .fini sections work. 12401 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12402 else 12403 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12404 fi 12405 hardcode_libdir_flag_spec='-L$libdir' 12406 hardcode_direct=yes 12407 hardcode_minus_L=yes 12408 hardcode_shlibpath_var=no 12409 ;; 12410 12411 sysv4) 12412 case $host_vendor in 12413 sni) 12414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12415 hardcode_direct=yes # is this really true??? 12416 ;; 12417 siemens) 12418 ## LD is ld it makes a PLAMLIB 12419 ## CC just makes a GrossModule. 12420 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12421 reload_cmds='$CC -r -o $output$reload_objs' 12422 hardcode_direct=no 12423 ;; 12424 motorola) 12425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12426 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12427 ;; 12428 esac 12429 runpath_var='LD_RUN_PATH' 12430 hardcode_shlibpath_var=no 12431 ;; 12432 12433 sysv4.3*) 12434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12435 hardcode_shlibpath_var=no 12436 export_dynamic_flag_spec='-Bexport' 12437 ;; 12438 12439 sysv4*MP*) 12440 if test -d /usr/nec; then 12441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12442 hardcode_shlibpath_var=no 12443 runpath_var=LD_RUN_PATH 12444 hardcode_runpath_var=yes 12445 ld_shlibs=yes 12446 fi 12447 ;; 12448 12449 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12450 no_undefined_flag='${wl}-z,text' 12451 archive_cmds_need_lc=no 12452 hardcode_shlibpath_var=no 12453 runpath_var='LD_RUN_PATH' 12454 12455 if test "$GCC" = yes; then 12456 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12457 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12458 else 12459 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12460 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12461 fi 12462 ;; 12463 12464 sysv5* | sco3.2v5* | sco5v6*) 12465 # Note: We can NOT use -z defs as we might desire, because we do not 12466 # link with -lc, and that would cause any symbols used from libc to 12467 # always be unresolved, which means just about no library would 12468 # ever link correctly. If we're not using GNU ld we use -z text 12469 # though, which does catch some bad symbols but isn't as heavy-handed 12470 # as -z defs. 12471 no_undefined_flag='${wl}-z,text' 12472 allow_undefined_flag='${wl}-z,nodefs' 12473 archive_cmds_need_lc=no 12474 hardcode_shlibpath_var=no 12475 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12476 hardcode_libdir_separator=':' 12477 link_all_deplibs=yes 12478 export_dynamic_flag_spec='${wl}-Bexport' 12479 runpath_var='LD_RUN_PATH' 12480 12481 if test "$GCC" = yes; then 12482 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12483 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12484 else 12485 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12486 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12487 fi 12488 ;; 12489 12490 uts4*) 12491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12492 hardcode_libdir_flag_spec='-L$libdir' 12493 hardcode_shlibpath_var=no 12494 ;; 12495 12496 *) 12497 ld_shlibs=no 12498 ;; 12499 esac 12500 12501 if test x$host_vendor = xsni; then 12502 case $host in 12503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12504 export_dynamic_flag_spec='${wl}-Blargedynsym' 12505 ;; 12506 esac 12507 fi 12508 fi 12509 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12511$as_echo "$ld_shlibs" >&6; } 12512test "$ld_shlibs" = no && can_build_shared=no 12513 12514with_gnu_ld=$with_gnu_ld 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530# 12531# Do we need to explicitly link libc? 12532# 12533case "x$archive_cmds_need_lc" in 12534x|xyes) 12535 # Assume -lc should be added 12536 archive_cmds_need_lc=yes 12537 12538 if test "$enable_shared" = yes && test "$GCC" = yes; then 12539 case $archive_cmds in 12540 *'~'*) 12541 # FIXME: we may have to deal with multi-command sequences. 12542 ;; 12543 '$CC '*) 12544 # Test whether the compiler implicitly links with -lc since on some 12545 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12546 # to ld, don't add -lc before -lgcc. 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12548$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12549if ${lt_cv_archive_cmds_need_lc+:} false; then : 12550 $as_echo_n "(cached) " >&6 12551else 12552 $RM conftest* 12553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12554 12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12556 (eval $ac_compile) 2>&5 12557 ac_status=$? 12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12559 test $ac_status = 0; } 2>conftest.err; then 12560 soname=conftest 12561 lib=conftest 12562 libobjs=conftest.$ac_objext 12563 deplibs= 12564 wl=$lt_prog_compiler_wl 12565 pic_flag=$lt_prog_compiler_pic 12566 compiler_flags=-v 12567 linker_flags=-v 12568 verstring= 12569 output_objdir=. 12570 libname=conftest 12571 lt_save_allow_undefined_flag=$allow_undefined_flag 12572 allow_undefined_flag= 12573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12574 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12575 ac_status=$? 12576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12577 test $ac_status = 0; } 12578 then 12579 lt_cv_archive_cmds_need_lc=no 12580 else 12581 lt_cv_archive_cmds_need_lc=yes 12582 fi 12583 allow_undefined_flag=$lt_save_allow_undefined_flag 12584 else 12585 cat conftest.err 1>&5 12586 fi 12587 $RM conftest* 12588 12589fi 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12591$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12592 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12593 ;; 12594 esac 12595 fi 12596 ;; 12597esac 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12751$as_echo_n "checking dynamic linker characteristics... " >&6; } 12752 12753if test "$GCC" = yes; then 12754 case $host_os in 12755 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12756 *) lt_awk_arg="/^libraries:/" ;; 12757 esac 12758 case $host_os in 12759 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12760 *) lt_sed_strip_eq="s,=/,/,g" ;; 12761 esac 12762 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12763 case $lt_search_path_spec in 12764 *\;*) 12765 # if the path contains ";" then we assume it to be the separator 12766 # otherwise default to the standard path separator (i.e. ":") - it is 12767 # assumed that no part of a normal pathname contains ";" but that should 12768 # okay in the real world where ";" in dirpaths is itself problematic. 12769 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12770 ;; 12771 *) 12772 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12773 ;; 12774 esac 12775 # Ok, now we have the path, separated by spaces, we can step through it 12776 # and add multilib dir if necessary. 12777 lt_tmp_lt_search_path_spec= 12778 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12779 for lt_sys_path in $lt_search_path_spec; do 12780 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12781 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12782 else 12783 test -d "$lt_sys_path" && \ 12784 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12785 fi 12786 done 12787 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12788BEGIN {RS=" "; FS="/|\n";} { 12789 lt_foo=""; 12790 lt_count=0; 12791 for (lt_i = NF; lt_i > 0; lt_i--) { 12792 if ($lt_i != "" && $lt_i != ".") { 12793 if ($lt_i == "..") { 12794 lt_count++; 12795 } else { 12796 if (lt_count == 0) { 12797 lt_foo="/" $lt_i lt_foo; 12798 } else { 12799 lt_count--; 12800 } 12801 } 12802 } 12803 } 12804 if (lt_foo != "") { lt_freq[lt_foo]++; } 12805 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12806}'` 12807 # AWK program above erroneously prepends '/' to C:/dos/paths 12808 # for these hosts. 12809 case $host_os in 12810 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12811 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12812 esac 12813 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12814else 12815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12816fi 12817library_names_spec= 12818libname_spec='lib$name' 12819soname_spec= 12820shrext_cmds=".so" 12821postinstall_cmds= 12822postuninstall_cmds= 12823finish_cmds= 12824finish_eval= 12825shlibpath_var= 12826shlibpath_overrides_runpath=unknown 12827version_type=none 12828dynamic_linker="$host_os ld.so" 12829sys_lib_dlsearch_path_spec="/lib /usr/lib" 12830need_lib_prefix=unknown 12831hardcode_into_libs=no 12832 12833# when you set need_version to no, make sure it does not cause -set_version 12834# flags to be left without arguments 12835need_version=unknown 12836 12837case $host_os in 12838aix3*) 12839 version_type=linux # correct to gnu/linux during the next big refactor 12840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12841 shlibpath_var=LIBPATH 12842 12843 # AIX 3 has no versioning support, so we append a major version to the name. 12844 soname_spec='${libname}${release}${shared_ext}$major' 12845 ;; 12846 12847aix[4-9]*) 12848 version_type=linux # correct to gnu/linux during the next big refactor 12849 need_lib_prefix=no 12850 need_version=no 12851 hardcode_into_libs=yes 12852 if test "$host_cpu" = ia64; then 12853 # AIX 5 supports IA64 12854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12855 shlibpath_var=LD_LIBRARY_PATH 12856 else 12857 # With GCC up to 2.95.x, collect2 would create an import file 12858 # for dependence libraries. The import file would start with 12859 # the line `#! .'. This would cause the generated library to 12860 # depend on `.', always an invalid library. This was fixed in 12861 # development snapshots of GCC prior to 3.0. 12862 case $host_os in 12863 aix4 | aix4.[01] | aix4.[01].*) 12864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12865 echo ' yes ' 12866 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12867 : 12868 else 12869 can_build_shared=no 12870 fi 12871 ;; 12872 esac 12873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12874 # soname into executable. Probably we can add versioning support to 12875 # collect2, so additional links can be useful in future. 12876 if test "$aix_use_runtimelinking" = yes; then 12877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12878 # instead of lib<name>.a to let people know that these are not 12879 # typical AIX shared libraries. 12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12881 else 12882 # We preserve .a as extension for shared libraries through AIX4.2 12883 # and later when we are not doing run time linking. 12884 library_names_spec='${libname}${release}.a $libname.a' 12885 soname_spec='${libname}${release}${shared_ext}$major' 12886 fi 12887 shlibpath_var=LIBPATH 12888 fi 12889 ;; 12890 12891amigaos*) 12892 case $host_cpu in 12893 powerpc) 12894 # Since July 2007 AmigaOS4 officially supports .so libraries. 12895 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12897 ;; 12898 m68k) 12899 library_names_spec='$libname.ixlibrary $libname.a' 12900 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12901 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' 12902 ;; 12903 esac 12904 ;; 12905 12906beos*) 12907 library_names_spec='${libname}${shared_ext}' 12908 dynamic_linker="$host_os ld.so" 12909 shlibpath_var=LIBRARY_PATH 12910 ;; 12911 12912bsdi[45]*) 12913 version_type=linux # correct to gnu/linux during the next big refactor 12914 need_version=no 12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12916 soname_spec='${libname}${release}${shared_ext}$major' 12917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12918 shlibpath_var=LD_LIBRARY_PATH 12919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12921 # the default ld.so.conf also contains /usr/contrib/lib and 12922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12923 # libtool to hard-code these into programs 12924 ;; 12925 12926cygwin* | mingw* | pw32* | cegcc*) 12927 version_type=windows 12928 shrext_cmds=".dll" 12929 need_version=no 12930 need_lib_prefix=no 12931 12932 case $GCC,$cc_basename in 12933 yes,*) 12934 # gcc 12935 library_names_spec='$libname.dll.a' 12936 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12937 postinstall_cmds='base_file=`basename \${file}`~ 12938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12939 dldir=$destdir/`dirname \$dlpath`~ 12940 test -d \$dldir || mkdir -p \$dldir~ 12941 $install_prog $dir/$dlname \$dldir/$dlname~ 12942 chmod a+x \$dldir/$dlname~ 12943 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12944 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12945 fi' 12946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12947 dlpath=$dir/\$dldll~ 12948 $RM \$dlpath' 12949 shlibpath_overrides_runpath=yes 12950 12951 case $host_os in 12952 cygwin*) 12953 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12955 12956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12957 ;; 12958 mingw* | cegcc*) 12959 # MinGW DLLs use traditional 'lib' prefix 12960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12961 ;; 12962 pw32*) 12963 # pw32 DLLs use 'pw' prefix rather than 'lib' 12964 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12965 ;; 12966 esac 12967 dynamic_linker='Win32 ld.exe' 12968 ;; 12969 12970 *,cl*) 12971 # Native MSVC 12972 libname_spec='$name' 12973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12974 library_names_spec='${libname}.dll.lib' 12975 12976 case $build_os in 12977 mingw*) 12978 sys_lib_search_path_spec= 12979 lt_save_ifs=$IFS 12980 IFS=';' 12981 for lt_path in $LIB 12982 do 12983 IFS=$lt_save_ifs 12984 # Let DOS variable expansion print the short 8.3 style file name. 12985 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12986 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12987 done 12988 IFS=$lt_save_ifs 12989 # Convert to MSYS style. 12990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12991 ;; 12992 cygwin*) 12993 # Convert to unix form, then to dos form, then back to unix form 12994 # but this time dos style (no spaces!) so that the unix form looks 12995 # like /cygdrive/c/PROGRA~1:/cygdr... 12996 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12997 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12998 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12999 ;; 13000 *) 13001 sys_lib_search_path_spec="$LIB" 13002 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13003 # It is most probably a Windows format PATH. 13004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13005 else 13006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13007 fi 13008 # FIXME: find the short name or the path components, as spaces are 13009 # common. (e.g. "Program Files" -> "PROGRA~1") 13010 ;; 13011 esac 13012 13013 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13014 postinstall_cmds='base_file=`basename \${file}`~ 13015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13016 dldir=$destdir/`dirname \$dlpath`~ 13017 test -d \$dldir || mkdir -p \$dldir~ 13018 $install_prog $dir/$dlname \$dldir/$dlname' 13019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13020 dlpath=$dir/\$dldll~ 13021 $RM \$dlpath' 13022 shlibpath_overrides_runpath=yes 13023 dynamic_linker='Win32 link.exe' 13024 ;; 13025 13026 *) 13027 # Assume MSVC wrapper 13028 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13029 dynamic_linker='Win32 ld.exe' 13030 ;; 13031 esac 13032 # FIXME: first we should search . and the directory the executable is in 13033 shlibpath_var=PATH 13034 ;; 13035 13036darwin* | rhapsody*) 13037 dynamic_linker="$host_os dyld" 13038 version_type=darwin 13039 need_lib_prefix=no 13040 need_version=no 13041 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13042 soname_spec='${libname}${release}${major}$shared_ext' 13043 shlibpath_overrides_runpath=yes 13044 shlibpath_var=DYLD_LIBRARY_PATH 13045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13046 13047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13049 ;; 13050 13051dgux*) 13052 version_type=linux # correct to gnu/linux during the next big refactor 13053 need_lib_prefix=no 13054 need_version=no 13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13056 soname_spec='${libname}${release}${shared_ext}$major' 13057 shlibpath_var=LD_LIBRARY_PATH 13058 ;; 13059 13060freebsd* | dragonfly*) 13061 # DragonFly does not have aout. When/if they implement a new 13062 # versioning mechanism, adjust this. 13063 if test -x /usr/bin/objformat; then 13064 objformat=`/usr/bin/objformat` 13065 else 13066 case $host_os in 13067 freebsd[23].*) objformat=aout ;; 13068 *) objformat=elf ;; 13069 esac 13070 fi 13071 version_type=freebsd-$objformat 13072 case $version_type in 13073 freebsd-elf*) 13074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13075 need_version=no 13076 need_lib_prefix=no 13077 ;; 13078 freebsd-*) 13079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13080 need_version=yes 13081 ;; 13082 esac 13083 shlibpath_var=LD_LIBRARY_PATH 13084 case $host_os in 13085 freebsd2.*) 13086 shlibpath_overrides_runpath=yes 13087 ;; 13088 freebsd3.[01]* | freebsdelf3.[01]*) 13089 shlibpath_overrides_runpath=yes 13090 hardcode_into_libs=yes 13091 ;; 13092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13094 shlibpath_overrides_runpath=no 13095 hardcode_into_libs=yes 13096 ;; 13097 *) # from 4.6 on, and DragonFly 13098 shlibpath_overrides_runpath=yes 13099 hardcode_into_libs=yes 13100 ;; 13101 esac 13102 ;; 13103 13104gnu*) 13105 version_type=linux # correct to gnu/linux during the next big refactor 13106 need_lib_prefix=no 13107 need_version=no 13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13109 soname_spec='${libname}${release}${shared_ext}$major' 13110 shlibpath_var=LD_LIBRARY_PATH 13111 shlibpath_overrides_runpath=no 13112 hardcode_into_libs=yes 13113 ;; 13114 13115haiku*) 13116 version_type=linux # correct to gnu/linux during the next big refactor 13117 need_lib_prefix=no 13118 need_version=no 13119 dynamic_linker="$host_os runtime_loader" 13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13121 soname_spec='${libname}${release}${shared_ext}$major' 13122 shlibpath_var=LIBRARY_PATH 13123 shlibpath_overrides_runpath=yes 13124 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13125 hardcode_into_libs=yes 13126 ;; 13127 13128hpux9* | hpux10* | hpux11*) 13129 # Give a soname corresponding to the major version so that dld.sl refuses to 13130 # link against other versions. 13131 version_type=sunos 13132 need_lib_prefix=no 13133 need_version=no 13134 case $host_cpu in 13135 ia64*) 13136 shrext_cmds='.so' 13137 hardcode_into_libs=yes 13138 dynamic_linker="$host_os dld.so" 13139 shlibpath_var=LD_LIBRARY_PATH 13140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13142 soname_spec='${libname}${release}${shared_ext}$major' 13143 if test "X$HPUX_IA64_MODE" = X32; then 13144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13145 else 13146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13147 fi 13148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13149 ;; 13150 hppa*64*) 13151 shrext_cmds='.sl' 13152 hardcode_into_libs=yes 13153 dynamic_linker="$host_os dld.sl" 13154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13157 soname_spec='${libname}${release}${shared_ext}$major' 13158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13160 ;; 13161 *) 13162 shrext_cmds='.sl' 13163 dynamic_linker="$host_os dld.sl" 13164 shlibpath_var=SHLIB_PATH 13165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13167 soname_spec='${libname}${release}${shared_ext}$major' 13168 ;; 13169 esac 13170 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13171 postinstall_cmds='chmod 555 $lib' 13172 # or fails outright, so override atomically: 13173 install_override_mode=555 13174 ;; 13175 13176interix[3-9]*) 13177 version_type=linux # correct to gnu/linux during the next big refactor 13178 need_lib_prefix=no 13179 need_version=no 13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13181 soname_spec='${libname}${release}${shared_ext}$major' 13182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13183 shlibpath_var=LD_LIBRARY_PATH 13184 shlibpath_overrides_runpath=no 13185 hardcode_into_libs=yes 13186 ;; 13187 13188irix5* | irix6* | nonstopux*) 13189 case $host_os in 13190 nonstopux*) version_type=nonstopux ;; 13191 *) 13192 if test "$lt_cv_prog_gnu_ld" = yes; then 13193 version_type=linux # correct to gnu/linux during the next big refactor 13194 else 13195 version_type=irix 13196 fi ;; 13197 esac 13198 need_lib_prefix=no 13199 need_version=no 13200 soname_spec='${libname}${release}${shared_ext}$major' 13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13202 case $host_os in 13203 irix5* | nonstopux*) 13204 libsuff= shlibsuff= 13205 ;; 13206 *) 13207 case $LD in # libtool.m4 will add one of these switches to LD 13208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13209 libsuff= shlibsuff= libmagic=32-bit;; 13210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13211 libsuff=32 shlibsuff=N32 libmagic=N32;; 13212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13213 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13214 *) libsuff= shlibsuff= libmagic=never-match;; 13215 esac 13216 ;; 13217 esac 13218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13219 shlibpath_overrides_runpath=no 13220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13222 hardcode_into_libs=yes 13223 ;; 13224 13225# No shared lib support for Linux oldld, aout, or coff. 13226linux*oldld* | linux*aout* | linux*coff*) 13227 dynamic_linker=no 13228 ;; 13229 13230# This must be glibc/ELF. 13231linux* | k*bsd*-gnu | kopensolaris*-gnu) 13232 version_type=linux # correct to gnu/linux during the next big refactor 13233 need_lib_prefix=no 13234 need_version=no 13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13236 soname_spec='${libname}${release}${shared_ext}$major' 13237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13238 shlibpath_var=LD_LIBRARY_PATH 13239 shlibpath_overrides_runpath=no 13240 13241 # Some binutils ld are patched to set DT_RUNPATH 13242 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13243 $as_echo_n "(cached) " >&6 13244else 13245 lt_cv_shlibpath_overrides_runpath=no 13246 save_LDFLAGS=$LDFLAGS 13247 save_libdir=$libdir 13248 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13249 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252 13253int 13254main () 13255{ 13256 13257 ; 13258 return 0; 13259} 13260_ACEOF 13261if ac_fn_c_try_link "$LINENO"; then : 13262 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13263 lt_cv_shlibpath_overrides_runpath=yes 13264fi 13265fi 13266rm -f core conftest.err conftest.$ac_objext \ 13267 conftest$ac_exeext conftest.$ac_ext 13268 LDFLAGS=$save_LDFLAGS 13269 libdir=$save_libdir 13270 13271fi 13272 13273 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13274 13275 # This implies no fast_install, which is unacceptable. 13276 # Some rework will be needed to allow for fast_install 13277 # before this can be enabled. 13278 hardcode_into_libs=yes 13279 13280 # Append ld.so.conf contents to the search path 13281 if test -f /etc/ld.so.conf; then 13282 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' ' '` 13283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13284 fi 13285 13286 # We used to test for /lib/ld.so.1 and disable shared libraries on 13287 # powerpc, because MkLinux only supported shared libraries with the 13288 # GNU dynamic linker. Since this was broken with cross compilers, 13289 # most powerpc-linux boxes support dynamic linking these days and 13290 # people can always --disable-shared, the test was removed, and we 13291 # assume the GNU/Linux dynamic linker is in use. 13292 dynamic_linker='GNU/Linux ld.so' 13293 ;; 13294 13295netbsdelf*-gnu) 13296 version_type=linux 13297 need_lib_prefix=no 13298 need_version=no 13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13300 soname_spec='${libname}${release}${shared_ext}$major' 13301 shlibpath_var=LD_LIBRARY_PATH 13302 shlibpath_overrides_runpath=no 13303 hardcode_into_libs=yes 13304 dynamic_linker='NetBSD ld.elf_so' 13305 ;; 13306 13307netbsd*) 13308 version_type=sunos 13309 need_lib_prefix=no 13310 need_version=no 13311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13314 dynamic_linker='NetBSD (a.out) ld.so' 13315 else 13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13317 soname_spec='${libname}${release}${shared_ext}$major' 13318 dynamic_linker='NetBSD ld.elf_so' 13319 fi 13320 shlibpath_var=LD_LIBRARY_PATH 13321 shlibpath_overrides_runpath=yes 13322 hardcode_into_libs=yes 13323 ;; 13324 13325newsos6) 13326 version_type=linux # correct to gnu/linux during the next big refactor 13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13328 shlibpath_var=LD_LIBRARY_PATH 13329 shlibpath_overrides_runpath=yes 13330 ;; 13331 13332*nto* | *qnx*) 13333 version_type=qnx 13334 need_lib_prefix=no 13335 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 13339 shlibpath_overrides_runpath=no 13340 hardcode_into_libs=yes 13341 dynamic_linker='ldqnx.so' 13342 ;; 13343 13344openbsd*) 13345 version_type=sunos 13346 sys_lib_dlsearch_path_spec="/usr/lib" 13347 need_lib_prefix=no 13348 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13349 case $host_os in 13350 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13351 *) need_version=no ;; 13352 esac 13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13355 shlibpath_var=LD_LIBRARY_PATH 13356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13357 case $host_os in 13358 openbsd2.[89] | openbsd2.[89].*) 13359 shlibpath_overrides_runpath=no 13360 ;; 13361 *) 13362 shlibpath_overrides_runpath=yes 13363 ;; 13364 esac 13365 else 13366 shlibpath_overrides_runpath=yes 13367 fi 13368 ;; 13369 13370os2*) 13371 libname_spec='$name' 13372 shrext_cmds=".dll" 13373 need_lib_prefix=no 13374 library_names_spec='$libname${shared_ext} $libname.a' 13375 dynamic_linker='OS/2 ld.exe' 13376 shlibpath_var=LIBPATH 13377 ;; 13378 13379osf3* | osf4* | osf5*) 13380 version_type=osf 13381 need_lib_prefix=no 13382 need_version=no 13383 soname_spec='${libname}${release}${shared_ext}$major' 13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13385 shlibpath_var=LD_LIBRARY_PATH 13386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13388 ;; 13389 13390rdos*) 13391 dynamic_linker=no 13392 ;; 13393 13394solaris*) 13395 version_type=linux # correct to gnu/linux during the next big refactor 13396 need_lib_prefix=no 13397 need_version=no 13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13399 soname_spec='${libname}${release}${shared_ext}$major' 13400 shlibpath_var=LD_LIBRARY_PATH 13401 shlibpath_overrides_runpath=yes 13402 hardcode_into_libs=yes 13403 # ldd complains unless libraries are executable 13404 postinstall_cmds='chmod +x $lib' 13405 ;; 13406 13407sunos4*) 13408 version_type=sunos 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13411 shlibpath_var=LD_LIBRARY_PATH 13412 shlibpath_overrides_runpath=yes 13413 if test "$with_gnu_ld" = yes; then 13414 need_lib_prefix=no 13415 fi 13416 need_version=yes 13417 ;; 13418 13419sysv4 | sysv4.3*) 13420 version_type=linux # correct to gnu/linux during the next big refactor 13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13422 soname_spec='${libname}${release}${shared_ext}$major' 13423 shlibpath_var=LD_LIBRARY_PATH 13424 case $host_vendor in 13425 sni) 13426 shlibpath_overrides_runpath=no 13427 need_lib_prefix=no 13428 runpath_var=LD_RUN_PATH 13429 ;; 13430 siemens) 13431 need_lib_prefix=no 13432 ;; 13433 motorola) 13434 need_lib_prefix=no 13435 need_version=no 13436 shlibpath_overrides_runpath=no 13437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13438 ;; 13439 esac 13440 ;; 13441 13442sysv4*MP*) 13443 if test -d /usr/nec ;then 13444 version_type=linux # correct to gnu/linux during the next big refactor 13445 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13446 soname_spec='$libname${shared_ext}.$major' 13447 shlibpath_var=LD_LIBRARY_PATH 13448 fi 13449 ;; 13450 13451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13452 version_type=freebsd-elf 13453 need_lib_prefix=no 13454 need_version=no 13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13456 soname_spec='${libname}${release}${shared_ext}$major' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 shlibpath_overrides_runpath=yes 13459 hardcode_into_libs=yes 13460 if test "$with_gnu_ld" = yes; then 13461 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13462 else 13463 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13464 case $host_os in 13465 sco3.2v5*) 13466 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13467 ;; 13468 esac 13469 fi 13470 sys_lib_dlsearch_path_spec='/usr/lib' 13471 ;; 13472 13473tpf*) 13474 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13475 version_type=linux # correct to gnu/linux during the next big refactor 13476 need_lib_prefix=no 13477 need_version=no 13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13479 shlibpath_var=LD_LIBRARY_PATH 13480 shlibpath_overrides_runpath=no 13481 hardcode_into_libs=yes 13482 ;; 13483 13484uts4*) 13485 version_type=linux # correct to gnu/linux during the next big refactor 13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13487 soname_spec='${libname}${release}${shared_ext}$major' 13488 shlibpath_var=LD_LIBRARY_PATH 13489 ;; 13490 13491*) 13492 dynamic_linker=no 13493 ;; 13494esac 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13496$as_echo "$dynamic_linker" >&6; } 13497test "$dynamic_linker" = no && can_build_shared=no 13498 13499variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13500if test "$GCC" = yes; then 13501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13502fi 13503 13504if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13505 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13506fi 13507if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13508 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13509fi 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13603$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13604hardcode_action= 13605if test -n "$hardcode_libdir_flag_spec" || 13606 test -n "$runpath_var" || 13607 test "X$hardcode_automatic" = "Xyes" ; then 13608 13609 # We can hardcode non-existent directories. 13610 if test "$hardcode_direct" != no && 13611 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13612 # have to relink, otherwise we might link with an installed library 13613 # when we should be linking with a yet-to-be-installed one 13614 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13615 test "$hardcode_minus_L" != no; then 13616 # Linking always hardcodes the temporary library directory. 13617 hardcode_action=relink 13618 else 13619 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13620 hardcode_action=immediate 13621 fi 13622else 13623 # We cannot hardcode anything, or else we can only hardcode existing 13624 # directories. 13625 hardcode_action=unsupported 13626fi 13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13628$as_echo "$hardcode_action" >&6; } 13629 13630if test "$hardcode_action" = relink || 13631 test "$inherit_rpath" = yes; then 13632 # Fast installation is not supported 13633 enable_fast_install=no 13634elif test "$shlibpath_overrides_runpath" = yes || 13635 test "$enable_shared" = no; then 13636 # Fast installation is not necessary 13637 enable_fast_install=needless 13638fi 13639 13640 13641 13642 13643 13644 13645 if test "x$enable_dlopen" != xyes; then 13646 enable_dlopen=unknown 13647 enable_dlopen_self=unknown 13648 enable_dlopen_self_static=unknown 13649else 13650 lt_cv_dlopen=no 13651 lt_cv_dlopen_libs= 13652 13653 case $host_os in 13654 beos*) 13655 lt_cv_dlopen="load_add_on" 13656 lt_cv_dlopen_libs= 13657 lt_cv_dlopen_self=yes 13658 ;; 13659 13660 mingw* | pw32* | cegcc*) 13661 lt_cv_dlopen="LoadLibrary" 13662 lt_cv_dlopen_libs= 13663 ;; 13664 13665 cygwin*) 13666 lt_cv_dlopen="dlopen" 13667 lt_cv_dlopen_libs= 13668 ;; 13669 13670 darwin*) 13671 # if libdl is installed we need to link against it 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13673$as_echo_n "checking for dlopen in -ldl... " >&6; } 13674if ${ac_cv_lib_dl_dlopen+:} false; then : 13675 $as_echo_n "(cached) " >&6 13676else 13677 ac_check_lib_save_LIBS=$LIBS 13678LIBS="-ldl $LIBS" 13679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13680/* end confdefs.h. */ 13681 13682/* Override any GCC internal prototype to avoid an error. 13683 Use char because int might match the return type of a GCC 13684 builtin and then its argument prototype would still apply. */ 13685#ifdef __cplusplus 13686extern "C" 13687#endif 13688char dlopen (); 13689int 13690main () 13691{ 13692return dlopen (); 13693 ; 13694 return 0; 13695} 13696_ACEOF 13697if ac_fn_c_try_link "$LINENO"; then : 13698 ac_cv_lib_dl_dlopen=yes 13699else 13700 ac_cv_lib_dl_dlopen=no 13701fi 13702rm -f core conftest.err conftest.$ac_objext \ 13703 conftest$ac_exeext conftest.$ac_ext 13704LIBS=$ac_check_lib_save_LIBS 13705fi 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13707$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13708if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13710else 13711 13712 lt_cv_dlopen="dyld" 13713 lt_cv_dlopen_libs= 13714 lt_cv_dlopen_self=yes 13715 13716fi 13717 13718 ;; 13719 13720 *) 13721 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13722if test "x$ac_cv_func_shl_load" = xyes; then : 13723 lt_cv_dlopen="shl_load" 13724else 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13726$as_echo_n "checking for shl_load in -ldld... " >&6; } 13727if ${ac_cv_lib_dld_shl_load+:} false; then : 13728 $as_echo_n "(cached) " >&6 13729else 13730 ac_check_lib_save_LIBS=$LIBS 13731LIBS="-ldld $LIBS" 13732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13733/* end confdefs.h. */ 13734 13735/* Override any GCC internal prototype to avoid an error. 13736 Use char because int might match the return type of a GCC 13737 builtin and then its argument prototype would still apply. */ 13738#ifdef __cplusplus 13739extern "C" 13740#endif 13741char shl_load (); 13742int 13743main () 13744{ 13745return shl_load (); 13746 ; 13747 return 0; 13748} 13749_ACEOF 13750if ac_fn_c_try_link "$LINENO"; then : 13751 ac_cv_lib_dld_shl_load=yes 13752else 13753 ac_cv_lib_dld_shl_load=no 13754fi 13755rm -f core conftest.err conftest.$ac_objext \ 13756 conftest$ac_exeext conftest.$ac_ext 13757LIBS=$ac_check_lib_save_LIBS 13758fi 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13760$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13761if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13762 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13763else 13764 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13765if test "x$ac_cv_func_dlopen" = xyes; then : 13766 lt_cv_dlopen="dlopen" 13767else 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13769$as_echo_n "checking for dlopen in -ldl... " >&6; } 13770if ${ac_cv_lib_dl_dlopen+:} false; then : 13771 $as_echo_n "(cached) " >&6 13772else 13773 ac_check_lib_save_LIBS=$LIBS 13774LIBS="-ldl $LIBS" 13775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13776/* end confdefs.h. */ 13777 13778/* Override any GCC internal prototype to avoid an error. 13779 Use char because int might match the return type of a GCC 13780 builtin and then its argument prototype would still apply. */ 13781#ifdef __cplusplus 13782extern "C" 13783#endif 13784char dlopen (); 13785int 13786main () 13787{ 13788return dlopen (); 13789 ; 13790 return 0; 13791} 13792_ACEOF 13793if ac_fn_c_try_link "$LINENO"; then : 13794 ac_cv_lib_dl_dlopen=yes 13795else 13796 ac_cv_lib_dl_dlopen=no 13797fi 13798rm -f core conftest.err conftest.$ac_objext \ 13799 conftest$ac_exeext conftest.$ac_ext 13800LIBS=$ac_check_lib_save_LIBS 13801fi 13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13803$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13804if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13806else 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13808$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13809if ${ac_cv_lib_svld_dlopen+:} false; then : 13810 $as_echo_n "(cached) " >&6 13811else 13812 ac_check_lib_save_LIBS=$LIBS 13813LIBS="-lsvld $LIBS" 13814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816 13817/* Override any GCC internal prototype to avoid an error. 13818 Use char because int might match the return type of a GCC 13819 builtin and then its argument prototype would still apply. */ 13820#ifdef __cplusplus 13821extern "C" 13822#endif 13823char dlopen (); 13824int 13825main () 13826{ 13827return dlopen (); 13828 ; 13829 return 0; 13830} 13831_ACEOF 13832if ac_fn_c_try_link "$LINENO"; then : 13833 ac_cv_lib_svld_dlopen=yes 13834else 13835 ac_cv_lib_svld_dlopen=no 13836fi 13837rm -f core conftest.err conftest.$ac_objext \ 13838 conftest$ac_exeext conftest.$ac_ext 13839LIBS=$ac_check_lib_save_LIBS 13840fi 13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13842$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13843if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13845else 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13847$as_echo_n "checking for dld_link in -ldld... " >&6; } 13848if ${ac_cv_lib_dld_dld_link+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850else 13851 ac_check_lib_save_LIBS=$LIBS 13852LIBS="-ldld $LIBS" 13853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13854/* end confdefs.h. */ 13855 13856/* Override any GCC internal prototype to avoid an error. 13857 Use char because int might match the return type of a GCC 13858 builtin and then its argument prototype would still apply. */ 13859#ifdef __cplusplus 13860extern "C" 13861#endif 13862char dld_link (); 13863int 13864main () 13865{ 13866return dld_link (); 13867 ; 13868 return 0; 13869} 13870_ACEOF 13871if ac_fn_c_try_link "$LINENO"; then : 13872 ac_cv_lib_dld_dld_link=yes 13873else 13874 ac_cv_lib_dld_dld_link=no 13875fi 13876rm -f core conftest.err conftest.$ac_objext \ 13877 conftest$ac_exeext conftest.$ac_ext 13878LIBS=$ac_check_lib_save_LIBS 13879fi 13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13881$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13882if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13883 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13884fi 13885 13886 13887fi 13888 13889 13890fi 13891 13892 13893fi 13894 13895 13896fi 13897 13898 13899fi 13900 13901 ;; 13902 esac 13903 13904 if test "x$lt_cv_dlopen" != xno; then 13905 enable_dlopen=yes 13906 else 13907 enable_dlopen=no 13908 fi 13909 13910 case $lt_cv_dlopen in 13911 dlopen) 13912 save_CPPFLAGS="$CPPFLAGS" 13913 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13914 13915 save_LDFLAGS="$LDFLAGS" 13916 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13917 13918 save_LIBS="$LIBS" 13919 LIBS="$lt_cv_dlopen_libs $LIBS" 13920 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13922$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13923if ${lt_cv_dlopen_self+:} false; then : 13924 $as_echo_n "(cached) " >&6 13925else 13926 if test "$cross_compiling" = yes; then : 13927 lt_cv_dlopen_self=cross 13928else 13929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13930 lt_status=$lt_dlunknown 13931 cat > conftest.$ac_ext <<_LT_EOF 13932#line $LINENO "configure" 13933#include "confdefs.h" 13934 13935#if HAVE_DLFCN_H 13936#include <dlfcn.h> 13937#endif 13938 13939#include <stdio.h> 13940 13941#ifdef RTLD_GLOBAL 13942# define LT_DLGLOBAL RTLD_GLOBAL 13943#else 13944# ifdef DL_GLOBAL 13945# define LT_DLGLOBAL DL_GLOBAL 13946# else 13947# define LT_DLGLOBAL 0 13948# endif 13949#endif 13950 13951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13952 find out it does not work in some platform. */ 13953#ifndef LT_DLLAZY_OR_NOW 13954# ifdef RTLD_LAZY 13955# define LT_DLLAZY_OR_NOW RTLD_LAZY 13956# else 13957# ifdef DL_LAZY 13958# define LT_DLLAZY_OR_NOW DL_LAZY 13959# else 13960# ifdef RTLD_NOW 13961# define LT_DLLAZY_OR_NOW RTLD_NOW 13962# else 13963# ifdef DL_NOW 13964# define LT_DLLAZY_OR_NOW DL_NOW 13965# else 13966# define LT_DLLAZY_OR_NOW 0 13967# endif 13968# endif 13969# endif 13970# endif 13971#endif 13972 13973/* When -fvisbility=hidden is used, assume the code has been annotated 13974 correspondingly for the symbols needed. */ 13975#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13976int fnord () __attribute__((visibility("default"))); 13977#endif 13978 13979int fnord () { return 42; } 13980int main () 13981{ 13982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13983 int status = $lt_dlunknown; 13984 13985 if (self) 13986 { 13987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13988 else 13989 { 13990 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13991 else puts (dlerror ()); 13992 } 13993 /* dlclose (self); */ 13994 } 13995 else 13996 puts (dlerror ()); 13997 13998 return status; 13999} 14000_LT_EOF 14001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14002 (eval $ac_link) 2>&5 14003 ac_status=$? 14004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14005 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14006 (./conftest; exit; ) >&5 2>/dev/null 14007 lt_status=$? 14008 case x$lt_status in 14009 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14010 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14011 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14012 esac 14013 else : 14014 # compilation failed 14015 lt_cv_dlopen_self=no 14016 fi 14017fi 14018rm -fr conftest* 14019 14020 14021fi 14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14023$as_echo "$lt_cv_dlopen_self" >&6; } 14024 14025 if test "x$lt_cv_dlopen_self" = xyes; then 14026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14028$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14029if ${lt_cv_dlopen_self_static+:} false; then : 14030 $as_echo_n "(cached) " >&6 14031else 14032 if test "$cross_compiling" = yes; then : 14033 lt_cv_dlopen_self_static=cross 14034else 14035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14036 lt_status=$lt_dlunknown 14037 cat > conftest.$ac_ext <<_LT_EOF 14038#line $LINENO "configure" 14039#include "confdefs.h" 14040 14041#if HAVE_DLFCN_H 14042#include <dlfcn.h> 14043#endif 14044 14045#include <stdio.h> 14046 14047#ifdef RTLD_GLOBAL 14048# define LT_DLGLOBAL RTLD_GLOBAL 14049#else 14050# ifdef DL_GLOBAL 14051# define LT_DLGLOBAL DL_GLOBAL 14052# else 14053# define LT_DLGLOBAL 0 14054# endif 14055#endif 14056 14057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14058 find out it does not work in some platform. */ 14059#ifndef LT_DLLAZY_OR_NOW 14060# ifdef RTLD_LAZY 14061# define LT_DLLAZY_OR_NOW RTLD_LAZY 14062# else 14063# ifdef DL_LAZY 14064# define LT_DLLAZY_OR_NOW DL_LAZY 14065# else 14066# ifdef RTLD_NOW 14067# define LT_DLLAZY_OR_NOW RTLD_NOW 14068# else 14069# ifdef DL_NOW 14070# define LT_DLLAZY_OR_NOW DL_NOW 14071# else 14072# define LT_DLLAZY_OR_NOW 0 14073# endif 14074# endif 14075# endif 14076# endif 14077#endif 14078 14079/* When -fvisbility=hidden is used, assume the code has been annotated 14080 correspondingly for the symbols needed. */ 14081#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14082int fnord () __attribute__((visibility("default"))); 14083#endif 14084 14085int fnord () { return 42; } 14086int main () 14087{ 14088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14089 int status = $lt_dlunknown; 14090 14091 if (self) 14092 { 14093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14094 else 14095 { 14096 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14097 else puts (dlerror ()); 14098 } 14099 /* dlclose (self); */ 14100 } 14101 else 14102 puts (dlerror ()); 14103 14104 return status; 14105} 14106_LT_EOF 14107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14108 (eval $ac_link) 2>&5 14109 ac_status=$? 14110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14111 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14112 (./conftest; exit; ) >&5 2>/dev/null 14113 lt_status=$? 14114 case x$lt_status in 14115 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14116 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14117 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14118 esac 14119 else : 14120 # compilation failed 14121 lt_cv_dlopen_self_static=no 14122 fi 14123fi 14124rm -fr conftest* 14125 14126 14127fi 14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14129$as_echo "$lt_cv_dlopen_self_static" >&6; } 14130 fi 14131 14132 CPPFLAGS="$save_CPPFLAGS" 14133 LDFLAGS="$save_LDFLAGS" 14134 LIBS="$save_LIBS" 14135 ;; 14136 esac 14137 14138 case $lt_cv_dlopen_self in 14139 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14140 *) enable_dlopen_self=unknown ;; 14141 esac 14142 14143 case $lt_cv_dlopen_self_static in 14144 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14145 *) enable_dlopen_self_static=unknown ;; 14146 esac 14147fi 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165striplib= 14166old_striplib= 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14168$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14169if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14170 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14171 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14173$as_echo "yes" >&6; } 14174else 14175# FIXME - insert some real tests, host_os isn't really good enough 14176 case $host_os in 14177 darwin*) 14178 if test -n "$STRIP" ; then 14179 striplib="$STRIP -x" 14180 old_striplib="$STRIP -S" 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14182$as_echo "yes" >&6; } 14183 else 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14185$as_echo "no" >&6; } 14186 fi 14187 ;; 14188 *) 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14190$as_echo "no" >&6; } 14191 ;; 14192 esac 14193fi 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 # Report which library types will actually be built 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14208$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14210$as_echo "$can_build_shared" >&6; } 14211 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14213$as_echo_n "checking whether to build shared libraries... " >&6; } 14214 test "$can_build_shared" = "no" && enable_shared=no 14215 14216 # On AIX, shared libraries and static libraries use the same namespace, and 14217 # are all built from PIC. 14218 case $host_os in 14219 aix3*) 14220 test "$enable_shared" = yes && enable_static=no 14221 if test -n "$RANLIB"; then 14222 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14223 postinstall_cmds='$RANLIB $lib' 14224 fi 14225 ;; 14226 14227 aix[4-9]*) 14228 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14229 test "$enable_shared" = yes && enable_static=no 14230 fi 14231 ;; 14232 esac 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14234$as_echo "$enable_shared" >&6; } 14235 14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14237$as_echo_n "checking whether to build static libraries... " >&6; } 14238 # Make sure either enable_shared or enable_static is yes. 14239 test "$enable_shared" = yes || enable_static=yes 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14241$as_echo "$enable_static" >&6; } 14242 14243 14244 14245 14246fi 14247ac_ext=c 14248ac_cpp='$CPP $CPPFLAGS' 14249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14251ac_compiler_gnu=$ac_cv_c_compiler_gnu 14252 14253CC="$lt_save_CC" 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 ac_config_commands="$ac_config_commands libtool" 14270 14271 14272 14273 14274# Only expand once: 14275 14276 14277 14278 14279tmp_CPPFLAGS=$CPPFLAGS 14280tmp_LDFLAGS=$LDFLAGS 14281tmp_LIBS=$LIBS 14282 14283 14284 14285# Check whether --with-ssl was given. 14286if test "${with_ssl+set}" = set; then : 14287 withval=$with_ssl; 14288 14289else 14290 14291 withval="yes" 14292 14293fi 14294 14295 14296 withval=$withval 14297 if test x_$withval != x_no; then 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 14299$as_echo_n "checking for SSL... " >&6; } 14300 if test x_$withval = x_ -o x_$withval = x_yes; then 14301 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 14302 fi 14303 for dir in $withval; do 14304 ssldir="$dir" 14305 if test -f "$dir/include/openssl/ssl.h"; then 14306 found_ssl="yes" 14307 14308cat >>confdefs.h <<_ACEOF 14309#define HAVE_SSL /**/ 14310_ACEOF 14311 14312 if test "$ssldir" != "/usr"; then 14313 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 14314 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 14315 fi 14316 break; 14317 fi 14318 done 14319 if test x_$found_ssl != x_yes; then 14320 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 14321 else 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 14323$as_echo "found in $ssldir" >&6; } 14324 HAVE_SSL=yes 14325 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 14326 LDFLAGS="$LDFLAGS -L$ssldir/lib" 14327 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 14328 14329 if test "x$enable_rpath" = xyes; then 14330 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 14331 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 14332 fi 14333 fi 14334 14335 fi 14336 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 14338$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 14339 LIBS="$LIBS -lcrypto" 14340 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14342/* end confdefs.h. */ 14343 14344int 14345main () 14346{ 14347 14348 int HMAC_CTX_init(void); 14349 (void)HMAC_CTX_init(); 14350 14351 ; 14352 return 0; 14353} 14354_ACEOF 14355if ac_fn_c_try_link "$LINENO"; then : 14356 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14358$as_echo "yes" >&6; } 14359 14360$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14361 14362 14363else 14364 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14366$as_echo "no" >&6; } 14367 # check if -lwsock32 or -lgdi32 are needed. 14368 BAKLIBS="$LIBS" 14369 BAKSSLLIBS="$LIBSSL_LIBS" 14370 LIBS="$LIBS -lgdi32" 14371 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 14373$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14375/* end confdefs.h. */ 14376 14377int 14378main () 14379{ 14380 14381 int HMAC_CTX_init(void); 14382 (void)HMAC_CTX_init(); 14383 14384 ; 14385 return 0; 14386} 14387_ACEOF 14388if ac_fn_c_try_link "$LINENO"; then : 14389 14390 14391$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14392 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14394$as_echo "yes" >&6; } 14395 14396else 14397 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14399$as_echo "no" >&6; } 14400 LIBS="$BAKLIBS" 14401 LIBSSL_LIBS="$BAKSSLLIBS" 14402 LIBS="$LIBS -ldl" 14403 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 14405$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14407/* end confdefs.h. */ 14408 14409int 14410main () 14411{ 14412 14413 int HMAC_CTX_init(void); 14414 (void)HMAC_CTX_init(); 14415 14416 ; 14417 return 0; 14418} 14419_ACEOF 14420if ac_fn_c_try_link "$LINENO"; then : 14421 14422 14423$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14424 14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14426$as_echo "yes" >&6; } 14427 14428else 14429 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14431$as_echo "no" >&6; } 14432 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 14433 14434fi 14435rm -f core conftest.err conftest.$ac_objext \ 14436 conftest$ac_exeext conftest.$ac_ext 14437 14438fi 14439rm -f core conftest.err conftest.$ac_objext \ 14440 conftest$ac_exeext conftest.$ac_ext 14441 14442fi 14443rm -f core conftest.err conftest.$ac_objext \ 14444 conftest$ac_exeext conftest.$ac_ext 14445 fi 14446 14447 14448 # openssl engine functionality needs dlopen(). 14449 BAKLIBS="$LIBS" 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14451$as_echo_n "checking for library containing dlopen... " >&6; } 14452if ${ac_cv_search_dlopen+:} false; then : 14453 $as_echo_n "(cached) " >&6 14454else 14455 ac_func_search_save_LIBS=$LIBS 14456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14457/* end confdefs.h. */ 14458 14459/* Override any GCC internal prototype to avoid an error. 14460 Use char because int might match the return type of a GCC 14461 builtin and then its argument prototype would still apply. */ 14462#ifdef __cplusplus 14463extern "C" 14464#endif 14465char dlopen (); 14466int 14467main () 14468{ 14469return dlopen (); 14470 ; 14471 return 0; 14472} 14473_ACEOF 14474for ac_lib in '' dl; do 14475 if test -z "$ac_lib"; then 14476 ac_res="none required" 14477 else 14478 ac_res=-l$ac_lib 14479 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14480 fi 14481 if ac_fn_c_try_link "$LINENO"; then : 14482 ac_cv_search_dlopen=$ac_res 14483fi 14484rm -f core conftest.err conftest.$ac_objext \ 14485 conftest$ac_exeext 14486 if ${ac_cv_search_dlopen+:} false; then : 14487 break 14488fi 14489done 14490if ${ac_cv_search_dlopen+:} false; then : 14491 14492else 14493 ac_cv_search_dlopen=no 14494fi 14495rm conftest.$ac_ext 14496LIBS=$ac_func_search_save_LIBS 14497fi 14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14499$as_echo "$ac_cv_search_dlopen" >&6; } 14500ac_res=$ac_cv_search_dlopen 14501if test "$ac_res" != no; then : 14502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14503 14504fi 14505 14506 if test "$LIBS" != "$BAKLIBS"; then 14507 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 14508 fi 14509 fi 14510for ac_header in openssl/ssl.h 14511do : 14512 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 14513" 14514if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 14515 cat >>confdefs.h <<_ACEOF 14516#define HAVE_OPENSSL_SSL_H 1 14517_ACEOF 14518 14519fi 14520 14521done 14522 14523for ac_header in openssl/err.h 14524do : 14525 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 14526" 14527if test "x$ac_cv_header_openssl_err_h" = xyes; then : 14528 cat >>confdefs.h <<_ACEOF 14529#define HAVE_OPENSSL_ERR_H 1 14530_ACEOF 14531 14532fi 14533 14534done 14535 14536for ac_header in openssl/rand.h 14537do : 14538 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 14539" 14540if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 14541 cat >>confdefs.h <<_ACEOF 14542#define HAVE_OPENSSL_RAND_H 1 14543_ACEOF 14544 14545fi 14546 14547done 14548 14549 14550 14551 14552for ac_func in EVP_sha256 14553do : 14554 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 14555if test "x$ac_cv_func_EVP_sha256" = xyes; then : 14556 cat >>confdefs.h <<_ACEOF 14557#define HAVE_EVP_SHA256 1 14558_ACEOF 14559 14560fi 14561done 14562 14563 14564# for macosx, see if glibtool exists and use that 14565# BSD's need to know the version... 14566#AC_CHECK_PROG(glibtool, glibtool, [glibtool], ) 14567#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool]) 14568 14569# Check whether --enable-sha2 was given. 14570if test "${enable_sha2+set}" = set; then : 14571 enableval=$enable_sha2; 14572fi 14573 14574case "$enable_sha2" in 14575 no) 14576 ;; 14577 yes|*) 14578 if test "x$HAVE_SSL" != "xyes"; then 14579 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5 14580 fi 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5 14582$as_echo_n "checking for SHA256 and SHA512... " >&6; } 14583 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init" 14584if test "x$ac_cv_func_SHA256_Init" = xyes; then : 14585 14586else 14587 14588 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5 14589 14590fi 14591 14592 14593cat >>confdefs.h <<_ACEOF 14594#define USE_SHA2 1 14595_ACEOF 14596 14597 ;; 14598esac 14599 14600# Check whether --enable-gost was given. 14601if test "${enable_gost+set}" = set; then : 14602 enableval=$enable_gost; 14603fi 14604 14605case "$enable_gost" in 14606 no) 14607 ;; 14608 *) if test "x$HAVE_SSL" != "xyes"; then 14609 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5 14610 fi 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5 14612$as_echo_n "checking for GOST... " >&6; } 14613 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 14614if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 14615 14616else 14617 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5 14618fi 14619 14620 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 14621if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 14622 14623else 14624 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5 14625fi 14626 14627 14628cat >>confdefs.h <<_ACEOF 14629#define USE_GOST 1 14630_ACEOF 14631 14632 ;; 14633esac 14634 14635# Check whether --enable-ecdsa was given. 14636if test "${enable_ecdsa+set}" = set; then : 14637 enableval=$enable_ecdsa; 14638fi 14639 14640case "$enable_ecdsa" in 14641 no) 14642 ;; 14643 *) if test "x$HAVE_SSL" != "xyes"; then 14644 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5 14645 fi 14646 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 14647if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 14648 14649else 14650 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14651fi 14652 14653 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 14654if test "x$ac_cv_func_SHA384_Init" = xyes; then : 14655 14656else 14657 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14658fi 14659 14660 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 14661#include <openssl/evp.h> 14662 14663" 14664if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 14665 ac_have_decl=1 14666else 14667 ac_have_decl=0 14668fi 14669 14670cat >>confdefs.h <<_ACEOF 14671#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 14672_ACEOF 14673if test $ac_have_decl = 1; then : 14674 14675else 14676 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14677fi 14678ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 14679#include <openssl/evp.h> 14680 14681" 14682if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 14683 ac_have_decl=1 14684else 14685 ac_have_decl=0 14686fi 14687 14688cat >>confdefs.h <<_ACEOF 14689#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 14690_ACEOF 14691if test $ac_have_decl = 1; then : 14692 14693else 14694 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14695fi 14696 14697 # we now know we have ECDSA and the required curves. 14698 14699cat >>confdefs.h <<_ACEOF 14700#define USE_ECDSA 1 14701_ACEOF 14702 14703 ;; 14704esac 14705 14706 14707 14708 14709CPPFLAGS=$tmp_CPPFLAGS 14710LDFLAGS=$tmp_LDFLAGS 14711LIBS=$tmp_LIBS 14712 14713 14714# add option to disable the evil rpath 14715 14716# Check whether --enable-rpath was given. 14717if test "${enable_rpath+set}" = set; then : 14718 enableval=$enable_rpath; enable_rpath=$enableval 14719else 14720 enable_rpath=yes 14721fi 14722 14723if test "x$enable_rpath" = xno; then 14724 ac_config_commands="$ac_config_commands disable-rpath" 14725 14726fi 14727 14728 14729#AC_RUN_IFELSE([AC_LANG_SOURCE( 14730#[ 14731#int main() 14732#{ 14733#short one = 1; 14734#char *cp = (char*)&one; 14735#if ( *cp == 0 ) 14736#return(0); 14737#else 14738#return(1); 14739#} 14740#])], [],[ 14741#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian]) 14742#],[]) 14743 14744# should define WORDS_BIGENDIAN if the system is big-endian 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14746$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14747if ${ac_cv_c_bigendian+:} false; then : 14748 $as_echo_n "(cached) " >&6 14749else 14750 ac_cv_c_bigendian=unknown 14751 # See if we're dealing with a universal compiler. 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754#ifndef __APPLE_CC__ 14755 not a universal capable compiler 14756 #endif 14757 typedef int dummy; 14758 14759_ACEOF 14760if ac_fn_c_try_compile "$LINENO"; then : 14761 14762 # Check for potential -arch flags. It is not universal unless 14763 # there are at least two -arch flags with different values. 14764 ac_arch= 14765 ac_prev= 14766 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14767 if test -n "$ac_prev"; then 14768 case $ac_word in 14769 i?86 | x86_64 | ppc | ppc64) 14770 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14771 ac_arch=$ac_word 14772 else 14773 ac_cv_c_bigendian=universal 14774 break 14775 fi 14776 ;; 14777 esac 14778 ac_prev= 14779 elif test "x$ac_word" = "x-arch"; then 14780 ac_prev=arch 14781 fi 14782 done 14783fi 14784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14785 if test $ac_cv_c_bigendian = unknown; then 14786 # See if sys/param.h defines the BYTE_ORDER macro. 14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14788/* end confdefs.h. */ 14789#include <sys/types.h> 14790 #include <sys/param.h> 14791 14792int 14793main () 14794{ 14795#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14796 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14797 && LITTLE_ENDIAN) 14798 bogus endian macros 14799 #endif 14800 14801 ; 14802 return 0; 14803} 14804_ACEOF 14805if ac_fn_c_try_compile "$LINENO"; then : 14806 # It does; now see whether it defined to BIG_ENDIAN or not. 14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14808/* end confdefs.h. */ 14809#include <sys/types.h> 14810 #include <sys/param.h> 14811 14812int 14813main () 14814{ 14815#if BYTE_ORDER != BIG_ENDIAN 14816 not big endian 14817 #endif 14818 14819 ; 14820 return 0; 14821} 14822_ACEOF 14823if ac_fn_c_try_compile "$LINENO"; then : 14824 ac_cv_c_bigendian=yes 14825else 14826 ac_cv_c_bigendian=no 14827fi 14828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14829fi 14830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14831 fi 14832 if test $ac_cv_c_bigendian = unknown; then 14833 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14835/* end confdefs.h. */ 14836#include <limits.h> 14837 14838int 14839main () 14840{ 14841#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14842 bogus endian macros 14843 #endif 14844 14845 ; 14846 return 0; 14847} 14848_ACEOF 14849if ac_fn_c_try_compile "$LINENO"; then : 14850 # It does; now see whether it defined to _BIG_ENDIAN or not. 14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14852/* end confdefs.h. */ 14853#include <limits.h> 14854 14855int 14856main () 14857{ 14858#ifndef _BIG_ENDIAN 14859 not big endian 14860 #endif 14861 14862 ; 14863 return 0; 14864} 14865_ACEOF 14866if ac_fn_c_try_compile "$LINENO"; then : 14867 ac_cv_c_bigendian=yes 14868else 14869 ac_cv_c_bigendian=no 14870fi 14871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14872fi 14873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14874 fi 14875 if test $ac_cv_c_bigendian = unknown; then 14876 # Compile a test program. 14877 if test "$cross_compiling" = yes; then : 14878 # Try to guess by grepping values from an object file. 14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14880/* end confdefs.h. */ 14881short int ascii_mm[] = 14882 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14883 short int ascii_ii[] = 14884 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14885 int use_ascii (int i) { 14886 return ascii_mm[i] + ascii_ii[i]; 14887 } 14888 short int ebcdic_ii[] = 14889 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14890 short int ebcdic_mm[] = 14891 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14892 int use_ebcdic (int i) { 14893 return ebcdic_mm[i] + ebcdic_ii[i]; 14894 } 14895 extern int foo; 14896 14897int 14898main () 14899{ 14900return use_ascii (foo) == use_ebcdic (foo); 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905if ac_fn_c_try_compile "$LINENO"; then : 14906 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14907 ac_cv_c_bigendian=yes 14908 fi 14909 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14910 if test "$ac_cv_c_bigendian" = unknown; then 14911 ac_cv_c_bigendian=no 14912 else 14913 # finding both strings is unlikely to happen, but who knows? 14914 ac_cv_c_bigendian=unknown 14915 fi 14916 fi 14917fi 14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14919else 14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14921/* end confdefs.h. */ 14922$ac_includes_default 14923int 14924main () 14925{ 14926 14927 /* Are we little or big endian? From Harbison&Steele. */ 14928 union 14929 { 14930 long int l; 14931 char c[sizeof (long int)]; 14932 } u; 14933 u.l = 1; 14934 return u.c[sizeof (long int) - 1] == 1; 14935 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_run "$LINENO"; then : 14941 ac_cv_c_bigendian=no 14942else 14943 ac_cv_c_bigendian=yes 14944fi 14945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14946 conftest.$ac_objext conftest.beam conftest.$ac_ext 14947fi 14948 14949 fi 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14952$as_echo "$ac_cv_c_bigendian" >&6; } 14953 case $ac_cv_c_bigendian in #( 14954 yes) 14955 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14956;; #( 14957 no) 14958 ;; #( 14959 universal) 14960 14961$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14962 14963 ;; #( 14964 *) 14965 as_fn_error $? "unknown endianness 14966 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14967 esac 14968 14969 14970# Checks for header files. 14971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14972$as_echo_n "checking for ANSI C header files... " >&6; } 14973if ${ac_cv_header_stdc+:} false; then : 14974 $as_echo_n "(cached) " >&6 14975else 14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14977/* end confdefs.h. */ 14978#include <stdlib.h> 14979#include <stdarg.h> 14980#include <string.h> 14981#include <float.h> 14982 14983int 14984main () 14985{ 14986 14987 ; 14988 return 0; 14989} 14990_ACEOF 14991if ac_fn_c_try_compile "$LINENO"; then : 14992 ac_cv_header_stdc=yes 14993else 14994 ac_cv_header_stdc=no 14995fi 14996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14997 14998if test $ac_cv_header_stdc = yes; then 14999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15001/* end confdefs.h. */ 15002#include <string.h> 15003 15004_ACEOF 15005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15006 $EGREP "memchr" >/dev/null 2>&1; then : 15007 15008else 15009 ac_cv_header_stdc=no 15010fi 15011rm -f conftest* 15012 15013fi 15014 15015if test $ac_cv_header_stdc = yes; then 15016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15018/* end confdefs.h. */ 15019#include <stdlib.h> 15020 15021_ACEOF 15022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15023 $EGREP "free" >/dev/null 2>&1; then : 15024 15025else 15026 ac_cv_header_stdc=no 15027fi 15028rm -f conftest* 15029 15030fi 15031 15032if test $ac_cv_header_stdc = yes; then 15033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15034 if test "$cross_compiling" = yes; then : 15035 : 15036else 15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038/* end confdefs.h. */ 15039#include <ctype.h> 15040#include <stdlib.h> 15041#if ((' ' & 0x0FF) == 0x020) 15042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15044#else 15045# define ISLOWER(c) \ 15046 (('a' <= (c) && (c) <= 'i') \ 15047 || ('j' <= (c) && (c) <= 'r') \ 15048 || ('s' <= (c) && (c) <= 'z')) 15049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15050#endif 15051 15052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15053int 15054main () 15055{ 15056 int i; 15057 for (i = 0; i < 256; i++) 15058 if (XOR (islower (i), ISLOWER (i)) 15059 || toupper (i) != TOUPPER (i)) 15060 return 2; 15061 return 0; 15062} 15063_ACEOF 15064if ac_fn_c_try_run "$LINENO"; then : 15065 15066else 15067 ac_cv_header_stdc=no 15068fi 15069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15070 conftest.$ac_objext conftest.beam conftest.$ac_ext 15071fi 15072 15073fi 15074fi 15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15076$as_echo "$ac_cv_header_stdc" >&6; } 15077if test $ac_cv_header_stdc = yes; then 15078 15079$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15080 15081fi 15082 15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 15084$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 15085if ${ac_cv_header_stdbool_h+:} false; then : 15086 $as_echo_n "(cached) " >&6 15087else 15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15089/* end confdefs.h. */ 15090 15091#include <stdbool.h> 15092#ifndef bool 15093 "error: bool is not defined" 15094#endif 15095#ifndef false 15096 "error: false is not defined" 15097#endif 15098#if false 15099 "error: false is not 0" 15100#endif 15101#ifndef true 15102 "error: true is not defined" 15103#endif 15104#if true != 1 15105 "error: true is not 1" 15106#endif 15107#ifndef __bool_true_false_are_defined 15108 "error: __bool_true_false_are_defined is not defined" 15109#endif 15110 15111 struct s { _Bool s: 1; _Bool t; } s; 15112 15113 char a[true == 1 ? 1 : -1]; 15114 char b[false == 0 ? 1 : -1]; 15115 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 15116 char d[(bool) 0.5 == true ? 1 : -1]; 15117 /* See body of main program for 'e'. */ 15118 char f[(_Bool) 0.0 == false ? 1 : -1]; 15119 char g[true]; 15120 char h[sizeof (_Bool)]; 15121 char i[sizeof s.t]; 15122 enum { j = false, k = true, l = false * true, m = true * 256 }; 15123 /* The following fails for 15124 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 15125 _Bool n[m]; 15126 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 15127 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 15128 /* Catch a bug in an HP-UX C compiler. See 15129 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 15130 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 15131 */ 15132 _Bool q = true; 15133 _Bool *pq = &q; 15134 15135int 15136main () 15137{ 15138 15139 bool e = &s; 15140 *pq |= q; 15141 *pq |= ! q; 15142 /* Refer to every declared value, to avoid compiler optimizations. */ 15143 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 15144 + !m + !n + !o + !p + !q + !pq); 15145 15146 ; 15147 return 0; 15148} 15149_ACEOF 15150if ac_fn_c_try_compile "$LINENO"; then : 15151 ac_cv_header_stdbool_h=yes 15152else 15153 ac_cv_header_stdbool_h=no 15154fi 15155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15156fi 15157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 15158$as_echo "$ac_cv_header_stdbool_h" >&6; } 15159ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 15160if test "x$ac_cv_type__Bool" = xyes; then : 15161 15162cat >>confdefs.h <<_ACEOF 15163#define HAVE__BOOL 1 15164_ACEOF 15165 15166 15167fi 15168 15169if test $ac_cv_header_stdbool_h = yes; then 15170 15171$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 15172 15173fi 15174 15175#AC_HEADER_SYS_WAIT 15176#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h]) 15177# do the very minimum - we can always extend this 15178for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h 15179do : 15180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15181ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15182" 15183if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15184 cat >>confdefs.h <<_ACEOF 15185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15186_ACEOF 15187 15188fi 15189 15190done 15191 15192for ac_header in sys/param.h sys/mount.h 15193do : 15194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15195ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15196 15197 #if HAVE_SYS_PARAM_H 15198 # include <sys/param.h> 15199 #endif 15200 15201 15202" 15203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15204 cat >>confdefs.h <<_ACEOF 15205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15206_ACEOF 15207 15208fi 15209 15210done 15211 15212ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 15213 15214 #if HAVE_SYS_PARAM_H 15215 # include <sys/param.h> 15216 #endif 15217 15218 15219" 15220if test "x$ac_cv_header_sys_socket_h" = xyes; then : 15221 15222include_sys_socket_h='#include <sys/socket.h>' 15223 15224$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 15225 15226 15227else 15228 15229include_sys_socket_h='' 15230 15231fi 15232 15233 15234 15235ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default 15236 15237" 15238if test "x$ac_cv_header_inttypes_h" = xyes; then : 15239 15240include_inttypes_h='#include <inttypes.h>' 15241 15242$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 15243 15244ldns_build_config_have_inttypes_h=1 15245 15246 15247else 15248 15249include_inttypes_h='' 15250ldns_build_config_have_inttypes_h=0 15251 15252 15253fi 15254 15255 15256 15257ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default 15258 15259" 15260if test "x$ac_cv_header_sys_types_h" = xyes; then : 15261 15262include_systypes_h='#include <sys/types.h>' 15263 15264$as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 15265 15266 15267else 15268 15269include_systypes_h='' 15270 15271fi 15272 15273 15274 15275ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 15276 15277" 15278if test "x$ac_cv_header_unistd_h" = xyes; then : 15279 15280include_unistd_h='#include <unistd.h>' 15281 15282$as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h 15283 15284 15285else 15286 15287include_unistd_h='' 15288 15289fi 15290 15291 15292 15293 15294# The cast to long int works around a bug in the HP C Compiler 15295# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15296# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15297# This bug is HP SR number 8606223364. 15298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15299$as_echo_n "checking size of time_t... " >&6; } 15300if ${ac_cv_sizeof_time_t+:} false; then : 15301 $as_echo_n "(cached) " >&6 15302else 15303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15304$ac_includes_default 15305#ifdef TIME_WITH_SYS_TIME 15306# include <sys/time.h> 15307# include <time.h> 15308#else 15309# ifdef HAVE_SYS_TIME_H 15310# include <sys/time.h> 15311# else 15312# include <time.h> 15313# endif 15314#endif 15315 15316"; then : 15317 15318else 15319 if test "$ac_cv_type_time_t" = yes; then 15320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15322as_fn_error 77 "cannot compute sizeof (time_t) 15323See \`config.log' for more details" "$LINENO" 5; } 15324 else 15325 ac_cv_sizeof_time_t=0 15326 fi 15327fi 15328 15329fi 15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15331$as_echo "$ac_cv_sizeof_time_t" >&6; } 15332 15333 15334 15335cat >>confdefs.h <<_ACEOF 15336#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15337_ACEOF 15338 15339 15340 15341if test x_$with_examples != x_no; then 15342for ac_header in pcap.h 15343do : 15344 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" 15345if test "x$ac_cv_header_pcap_h" = xyes; then : 15346 cat >>confdefs.h <<_ACEOF 15347#define HAVE_PCAP_H 1 15348_ACEOF 15349 15350else 15351 $ac_includes_default 15352fi 15353 15354done 15355 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5 15357$as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; } 15358if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then : 15359 $as_echo_n "(cached) " >&6 15360else 15361 ac_check_lib_save_LIBS=$LIBS 15362LIBS="-lpcap $LIBS" 15363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15364/* end confdefs.h. */ 15365 15366/* Override any GCC internal prototype to avoid an error. 15367 Use char because int might match the return type of a GCC 15368 builtin and then its argument prototype would still apply. */ 15369#ifdef __cplusplus 15370extern "C" 15371#endif 15372char pcap_open_offline (); 15373int 15374main () 15375{ 15376return pcap_open_offline (); 15377 ; 15378 return 0; 15379} 15380_ACEOF 15381if ac_fn_c_try_link "$LINENO"; then : 15382 ac_cv_lib_pcap_pcap_open_offline=yes 15383else 15384 ac_cv_lib_pcap_pcap_open_offline=no 15385fi 15386rm -f core conftest.err conftest.$ac_objext \ 15387 conftest$ac_exeext conftest.$ac_ext 15388LIBS=$ac_check_lib_save_LIBS 15389fi 15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5 15391$as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; } 15392if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then : 15393 15394 15395$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h 15396 LIBPCAP_LIBS=-lpcap 15397 15398 15399else 15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5 15402$as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;} 15403 15404 15405fi 15406 15407for 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 15408do : 15409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15410ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 15411$ac_includes_default 15412#ifdef HAVE_NETINET_IN_SYSTM_H 15413#include <netinet/in_systm.h> 15414#endif 15415#ifdef HAVE_NETINET_IN_H 15416#include <netinet/in.h> 15417#endif 15418#ifdef HAVE_SYS_SOCKET_H 15419#include <sys/socket.h> 15420#endif 15421#ifdef HAVE_NET_IF_H 15422#include <net/if.h> 15423#endif 15424" 15425if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15426 cat >>confdefs.h <<_ACEOF 15427#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15428_ACEOF 15429 15430fi 15431 15432done 15433 15434fi 15435 15436 15437ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15438$ac_includes_default 15439#ifdef HAVE_SYS_SOCKET_H 15440# include <sys/socket.h> 15441#endif 15442#ifdef HAVE_WS2TCPIP_H 15443# include <ws2tcpip.h> 15444#endif 15445 15446" 15447if test "x$ac_cv_type_socklen_t" = xyes; then : 15448 15449else 15450 15451$as_echo "#define socklen_t int" >>confdefs.h 15452 15453fi 15454 15455ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15456if test "x$ac_cv_type_size_t" = xyes; then : 15457 15458else 15459 15460cat >>confdefs.h <<_ACEOF 15461#define size_t unsigned int 15462_ACEOF 15463 15464fi 15465 15466ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15467if test "x$ac_cv_type_ssize_t" = xyes; then : 15468 15469else 15470 15471cat >>confdefs.h <<_ACEOF 15472#define ssize_t int 15473_ACEOF 15474 15475fi 15476 15477 15478 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 15479if test "x$ac_cv_type_intptr_t" = xyes; then : 15480 15481$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 15482 15483else 15484 for ac_type in 'int' 'long int' 'long long int'; do 15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15486/* end confdefs.h. */ 15487$ac_includes_default 15488int 15489main () 15490{ 15491static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15492test_array [0] = 0 15493 15494 ; 15495 return 0; 15496} 15497_ACEOF 15498if ac_fn_c_try_compile "$LINENO"; then : 15499 15500cat >>confdefs.h <<_ACEOF 15501#define intptr_t $ac_type 15502_ACEOF 15503 15504 ac_type= 15505fi 15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15507 test -z "$ac_type" && break 15508 done 15509fi 15510 15511 15512ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 15513#if HAVE_SYS_TYPES_H 15514# include <sys/types.h> 15515#endif 15516#if HAVE_NETINET_IN_H 15517# include <netinet/in.h> 15518#endif 15519" 15520if test "x$ac_cv_type_in_addr_t" = xyes; then : 15521 15522else 15523 15524$as_echo "#define in_addr_t uint32_t" >>confdefs.h 15525 15526fi 15527 15528ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 15529#if HAVE_SYS_TYPES_H 15530# include <sys/types.h> 15531#endif 15532#if HAVE_NETINET_IN_H 15533# include <netinet/in.h> 15534#endif 15535" 15536if test "x$ac_cv_type_in_port_t" = xyes; then : 15537 15538else 15539 15540$as_echo "#define in_port_t uint16_t" >>confdefs.h 15541 15542fi 15543 15544ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 15545#ifdef HAVE_NETINET_IN_H 15546#include <netinet/in.h> 15547#endif 15548#ifdef HAVE_SYS_SOCKET_H 15549#include <sys/socket.h> 15550#endif 15551#ifdef HAVE_NETDB_H 15552#include <netdb.h> 15553#endif 15554#ifdef HAVE_ARPA_INET_H 15555#include <arpa/inet.h> 15556#endif 15557 15558" 15559if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 15560 15561else 15562 15563 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 15564#ifdef HAVE_NETINET_IN_H 15565#include <netinet/in.h> 15566#endif 15567#ifdef HAVE_SYS_SOCKET_H 15568#include <sys/socket.h> 15569#endif 15570#ifdef HAVE_NETDB_H 15571#include <netdb.h> 15572#endif 15573#ifdef HAVE_ARPA_INET_H 15574#include <arpa/inet.h> 15575#endif 15576 15577" 15578if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 15579 15580 15581$as_echo "#define ss_family __ss_family" >>confdefs.h 15582 15583 15584fi 15585 15586 15587fi 15588 15589 15590for ac_header in stdlib.h 15591do : 15592 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15593if test "x$ac_cv_header_stdlib_h" = xyes; then : 15594 cat >>confdefs.h <<_ACEOF 15595#define HAVE_STDLIB_H 1 15596_ACEOF 15597 15598fi 15599 15600done 15601 15602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15603$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15604if ${ac_cv_func_malloc_0_nonnull+:} false; then : 15605 $as_echo_n "(cached) " >&6 15606else 15607 if test "$cross_compiling" = yes; then : 15608 ac_cv_func_malloc_0_nonnull=no 15609else 15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611/* end confdefs.h. */ 15612#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15613# include <stdlib.h> 15614#else 15615char *malloc (); 15616#endif 15617 15618int 15619main () 15620{ 15621return ! malloc (0); 15622 ; 15623 return 0; 15624} 15625_ACEOF 15626if ac_fn_c_try_run "$LINENO"; then : 15627 ac_cv_func_malloc_0_nonnull=yes 15628else 15629 ac_cv_func_malloc_0_nonnull=no 15630fi 15631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15632 conftest.$ac_objext conftest.beam conftest.$ac_ext 15633fi 15634 15635fi 15636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 15637$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 15638if test $ac_cv_func_malloc_0_nonnull = yes; then : 15639 15640$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15641 15642else 15643 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 15644 15645 case " $LIBOBJS " in 15646 *" malloc.$ac_objext "* ) ;; 15647 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15648 ;; 15649esac 15650 15651 15652$as_echo "#define malloc rpl_malloc" >>confdefs.h 15653 15654fi 15655 15656 15657for ac_header in stdlib.h 15658do : 15659 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15660if test "x$ac_cv_header_stdlib_h" = xyes; then : 15661 cat >>confdefs.h <<_ACEOF 15662#define HAVE_STDLIB_H 1 15663_ACEOF 15664 15665fi 15666 15667done 15668 15669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 15670$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 15671if ${ac_cv_func_realloc_0_nonnull+:} false; then : 15672 $as_echo_n "(cached) " >&6 15673else 15674 if test "$cross_compiling" = yes; then : 15675 ac_cv_func_realloc_0_nonnull=no 15676else 15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678/* end confdefs.h. */ 15679#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15680# include <stdlib.h> 15681#else 15682char *realloc (); 15683#endif 15684 15685int 15686main () 15687{ 15688return ! realloc (0, 0); 15689 ; 15690 return 0; 15691} 15692_ACEOF 15693if ac_fn_c_try_run "$LINENO"; then : 15694 ac_cv_func_realloc_0_nonnull=yes 15695else 15696 ac_cv_func_realloc_0_nonnull=no 15697fi 15698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15699 conftest.$ac_objext conftest.beam conftest.$ac_ext 15700fi 15701 15702fi 15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 15704$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 15705if test $ac_cv_func_realloc_0_nonnull = yes; then : 15706 15707$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 15708 15709else 15710 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 15711 15712 case " $LIBOBJS " in 15713 *" realloc.$ac_objext "* ) ;; 15714 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 15715 ;; 15716esac 15717 15718 15719$as_echo "#define realloc rpl_realloc" >>confdefs.h 15720 15721fi 15722 15723 15724 15725ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 15726if test "x$ac_cv_func_b64_pton" = xyes; then : 15727 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h 15728 15729else 15730 case " $LIBOBJS " in 15731 *" b64_pton.$ac_objext "* ) ;; 15732 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 15733 ;; 15734esac 15735 15736fi 15737 15738 15739ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 15740if test "x$ac_cv_func_b64_ntop" = xyes; then : 15741 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h 15742 15743else 15744 case " $LIBOBJS " in 15745 *" b64_ntop.$ac_objext "* ) ;; 15746 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 15747 ;; 15748esac 15749 15750fi 15751 15752 15753ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton" 15754if test "x$ac_cv_func_b32_pton" = xyes; then : 15755 $as_echo "#define HAVE_B32_PTON 1" >>confdefs.h 15756 15757else 15758 case " $LIBOBJS " in 15759 *" b32_pton.$ac_objext "* ) ;; 15760 *) LIBOBJS="$LIBOBJS b32_pton.$ac_objext" 15761 ;; 15762esac 15763 15764fi 15765 15766 15767ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop" 15768if test "x$ac_cv_func_b32_ntop" = xyes; then : 15769 $as_echo "#define HAVE_B32_NTOP 1" >>confdefs.h 15770 15771else 15772 case " $LIBOBJS " in 15773 *" b32_ntop.$ac_objext "* ) ;; 15774 *) LIBOBJS="$LIBOBJS b32_ntop.$ac_objext" 15775 ;; 15776esac 15777 15778fi 15779 15780 15781ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 15782if test "x$ac_cv_func_calloc" = xyes; then : 15783 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h 15784 15785else 15786 case " $LIBOBJS " in 15787 *" calloc.$ac_objext "* ) ;; 15788 *) LIBOBJS="$LIBOBJS calloc.$ac_objext" 15789 ;; 15790esac 15791 15792fi 15793 15794 15795ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 15796if test "x$ac_cv_func_timegm" = xyes; then : 15797 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h 15798 15799else 15800 case " $LIBOBJS " in 15801 *" timegm.$ac_objext "* ) ;; 15802 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 15803 ;; 15804esac 15805 15806fi 15807 15808 15809ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 15810if test "x$ac_cv_func_gmtime_r" = xyes; then : 15811 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 15812 15813else 15814 case " $LIBOBJS " in 15815 *" gmtime_r.$ac_objext "* ) ;; 15816 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 15817 ;; 15818esac 15819 15820fi 15821 15822 15823ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 15824if test "x$ac_cv_func_ctime_r" = xyes; then : 15825 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 15826 15827else 15828 case " $LIBOBJS " in 15829 *" ctime_r.$ac_objext "* ) ;; 15830 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 15831 ;; 15832esac 15833 15834fi 15835 15836 15837ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 15838if test "x$ac_cv_func_localtime_r" = xyes; then : 15839 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 15840 15841else 15842 case " $LIBOBJS " in 15843 *" localtime_r.$ac_objext "* ) ;; 15844 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 15845 ;; 15846esac 15847 15848fi 15849 15850 15851ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 15852if test "x$ac_cv_func_isblank" = xyes; then : 15853 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 15854 15855else 15856 case " $LIBOBJS " in 15857 *" isblank.$ac_objext "* ) ;; 15858 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 15859 ;; 15860esac 15861 15862fi 15863 15864 15865ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 15866if test "x$ac_cv_func_isascii" = xyes; then : 15867 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h 15868 15869else 15870 case " $LIBOBJS " in 15871 *" isascii.$ac_objext "* ) ;; 15872 *) LIBOBJS="$LIBOBJS isascii.$ac_objext" 15873 ;; 15874esac 15875 15876fi 15877 15878 15879ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 15880if test "x$ac_cv_func_inet_aton" = xyes; then : 15881 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 15882 15883else 15884 case " $LIBOBJS " in 15885 *" inet_aton.$ac_objext "* ) ;; 15886 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 15887 ;; 15888esac 15889 15890fi 15891 15892 15893ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 15894if test "x$ac_cv_func_inet_pton" = xyes; then : 15895 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 15896 15897else 15898 case " $LIBOBJS " in 15899 *" inet_pton.$ac_objext "* ) ;; 15900 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 15901 ;; 15902esac 15903 15904fi 15905 15906 15907ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 15908if test "x$ac_cv_func_inet_ntop" = xyes; then : 15909 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 15910 15911else 15912 case " $LIBOBJS " in 15913 *" inet_ntop.$ac_objext "* ) ;; 15914 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 15915 ;; 15916esac 15917 15918fi 15919 15920 15921ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 15922if test "x$ac_cv_func_snprintf" = xyes; then : 15923 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 15924 15925else 15926 case " $LIBOBJS " in 15927 *" snprintf.$ac_objext "* ) ;; 15928 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 15929 ;; 15930esac 15931 15932fi 15933 15934 15935ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15936if test "x$ac_cv_func_strlcpy" = xyes; then : 15937 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 15938 15939else 15940 case " $LIBOBJS " in 15941 *" strlcpy.$ac_objext "* ) ;; 15942 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15943 ;; 15944esac 15945 15946fi 15947 15948 15949ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 15950if test "x$ac_cv_func_memmove" = xyes; then : 15951 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 15952 15953else 15954 case " $LIBOBJS " in 15955 *" memmove.$ac_objext "* ) ;; 15956 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 15957 ;; 15958esac 15959 15960fi 15961 15962 15963ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15964if test "x$ac_cv_type_pid_t" = xyes; then : 15965 15966else 15967 15968cat >>confdefs.h <<_ACEOF 15969#define pid_t int 15970_ACEOF 15971 15972fi 15973 15974for ac_header in vfork.h 15975do : 15976 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15977if test "x$ac_cv_header_vfork_h" = xyes; then : 15978 cat >>confdefs.h <<_ACEOF 15979#define HAVE_VFORK_H 1 15980_ACEOF 15981 15982fi 15983 15984done 15985 15986for ac_func in fork vfork 15987do : 15988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15989ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15990if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15991 cat >>confdefs.h <<_ACEOF 15992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15993_ACEOF 15994 15995fi 15996done 15997 15998if test "x$ac_cv_func_fork" = xyes; then 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 16000$as_echo_n "checking for working fork... " >&6; } 16001if ${ac_cv_func_fork_works+:} false; then : 16002 $as_echo_n "(cached) " >&6 16003else 16004 if test "$cross_compiling" = yes; then : 16005 ac_cv_func_fork_works=cross 16006else 16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16008/* end confdefs.h. */ 16009$ac_includes_default 16010int 16011main () 16012{ 16013 16014 /* By Ruediger Kuhlmann. */ 16015 return fork () < 0; 16016 16017 ; 16018 return 0; 16019} 16020_ACEOF 16021if ac_fn_c_try_run "$LINENO"; then : 16022 ac_cv_func_fork_works=yes 16023else 16024 ac_cv_func_fork_works=no 16025fi 16026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16027 conftest.$ac_objext conftest.beam conftest.$ac_ext 16028fi 16029 16030fi 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 16032$as_echo "$ac_cv_func_fork_works" >&6; } 16033 16034else 16035 ac_cv_func_fork_works=$ac_cv_func_fork 16036fi 16037if test "x$ac_cv_func_fork_works" = xcross; then 16038 case $host in 16039 *-*-amigaos* | *-*-msdosdjgpp*) 16040 # Override, as these systems have only a dummy fork() stub 16041 ac_cv_func_fork_works=no 16042 ;; 16043 *) 16044 ac_cv_func_fork_works=yes 16045 ;; 16046 esac 16047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 16048$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 16049fi 16050ac_cv_func_vfork_works=$ac_cv_func_vfork 16051if test "x$ac_cv_func_vfork" = xyes; then 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 16053$as_echo_n "checking for working vfork... " >&6; } 16054if ${ac_cv_func_vfork_works+:} false; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 if test "$cross_compiling" = yes; then : 16058 ac_cv_func_vfork_works=cross 16059else 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062/* Thanks to Paul Eggert for this test. */ 16063$ac_includes_default 16064#include <sys/wait.h> 16065#ifdef HAVE_VFORK_H 16066# include <vfork.h> 16067#endif 16068/* On some sparc systems, changes by the child to local and incoming 16069 argument registers are propagated back to the parent. The compiler 16070 is told about this with #include <vfork.h>, but some compilers 16071 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 16072 static variable whose address is put into a register that is 16073 clobbered by the vfork. */ 16074static void 16075#ifdef __cplusplus 16076sparc_address_test (int arg) 16077# else 16078sparc_address_test (arg) int arg; 16079#endif 16080{ 16081 static pid_t child; 16082 if (!child) { 16083 child = vfork (); 16084 if (child < 0) { 16085 perror ("vfork"); 16086 _exit(2); 16087 } 16088 if (!child) { 16089 arg = getpid(); 16090 write(-1, "", 0); 16091 _exit (arg); 16092 } 16093 } 16094} 16095 16096int 16097main () 16098{ 16099 pid_t parent = getpid (); 16100 pid_t child; 16101 16102 sparc_address_test (0); 16103 16104 child = vfork (); 16105 16106 if (child == 0) { 16107 /* Here is another test for sparc vfork register problems. This 16108 test uses lots of local variables, at least as many local 16109 variables as main has allocated so far including compiler 16110 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 16111 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 16112 reuse the register of parent for one of the local variables, 16113 since it will think that parent can't possibly be used any more 16114 in this routine. Assigning to the local variable will thus 16115 munge parent in the parent process. */ 16116 pid_t 16117 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 16118 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 16119 /* Convince the compiler that p..p7 are live; otherwise, it might 16120 use the same hardware register for all 8 local variables. */ 16121 if (p != p1 || p != p2 || p != p3 || p != p4 16122 || p != p5 || p != p6 || p != p7) 16123 _exit(1); 16124 16125 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 16126 from child file descriptors. If the child closes a descriptor 16127 before it execs or exits, this munges the parent's descriptor 16128 as well. Test for this by closing stdout in the child. */ 16129 _exit(close(fileno(stdout)) != 0); 16130 } else { 16131 int status; 16132 struct stat st; 16133 16134 while (wait(&status) != child) 16135 ; 16136 return ( 16137 /* Was there some problem with vforking? */ 16138 child < 0 16139 16140 /* Did the child fail? (This shouldn't happen.) */ 16141 || status 16142 16143 /* Did the vfork/compiler bug occur? */ 16144 || parent != getpid() 16145 16146 /* Did the file descriptor bug occur? */ 16147 || fstat(fileno(stdout), &st) != 0 16148 ); 16149 } 16150} 16151_ACEOF 16152if ac_fn_c_try_run "$LINENO"; then : 16153 ac_cv_func_vfork_works=yes 16154else 16155 ac_cv_func_vfork_works=no 16156fi 16157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16158 conftest.$ac_objext conftest.beam conftest.$ac_ext 16159fi 16160 16161fi 16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 16163$as_echo "$ac_cv_func_vfork_works" >&6; } 16164 16165fi; 16166if test "x$ac_cv_func_fork_works" = xcross; then 16167 ac_cv_func_vfork_works=$ac_cv_func_vfork 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 16169$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 16170fi 16171 16172if test "x$ac_cv_func_vfork_works" = xyes; then 16173 16174$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 16175 16176else 16177 16178$as_echo "#define vfork fork" >>confdefs.h 16179 16180fi 16181if test "x$ac_cv_func_fork_works" = xyes; then 16182 16183$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 16184 16185fi 16186 16187for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset 16188do : 16189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16190ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16191if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16192 cat >>confdefs.h <<_ACEOF 16193#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16194_ACEOF 16195 16196fi 16197done 16198 16199 16200 16201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 16202$as_echo_n "checking for getaddrinfo... " >&6; } 16203ac_cv_func_getaddrinfo=no 16204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16205/* end confdefs.h. */ 16206 16207#ifdef __cplusplus 16208extern "C" 16209{ 16210#endif 16211char* getaddrinfo(); 16212char* (*f) () = getaddrinfo; 16213#ifdef __cplusplus 16214} 16215#endif 16216int main() { 16217 ; 16218 return 0; 16219} 16220 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO"; then : 16223 ac_cv_func_getaddrinfo="yes" 16224if test "$ac_cv_header_windows_h" = "yes"; then 16225 16226$as_echo "#define USE_WINSOCK 1" >>confdefs.h 16227 16228 USE_WINSOCK="1" 16229 LIBS="$LIBS -lws2_32" 16230fi 16231 16232else 16233 ORIGLIBS="$LIBS" 16234LIBS="$LIBS -lws2_32" 16235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16236/* end confdefs.h. */ 16237 16238#ifdef HAVE_WS2TCPIP_H 16239#include <ws2tcpip.h> 16240#endif 16241 16242int 16243main () 16244{ 16245 16246 (void)getaddrinfo(NULL, NULL, NULL, NULL); 16247 16248 16249 ; 16250 return 0; 16251} 16252_ACEOF 16253if ac_fn_c_try_link "$LINENO"; then : 16254 16255ac_cv_func_getaddrinfo="yes" 16256 16257$as_echo "#define USE_WINSOCK 1" >>confdefs.h 16258 16259USE_WINSOCK="1" 16260 16261else 16262 16263ac_cv_func_getaddrinfo="no" 16264LIBS="$ORIGLIBS" 16265 16266fi 16267rm -f core conftest.err conftest.$ac_objext \ 16268 conftest$ac_exeext conftest.$ac_ext 16269 16270fi 16271rm -f core conftest.err conftest.$ac_objext \ 16272 conftest$ac_exeext conftest.$ac_ext 16273 16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 16275$as_echo "$ac_cv_func_getaddrinfo" >&6; } 16276if test $ac_cv_func_getaddrinfo = yes; then 16277 16278$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 16279 16280fi 16281 16282if test $ac_cv_func_getaddrinfo = no; then 16283 case " $LIBOBJS " in 16284 *" fake-rfc2553.$ac_objext "* ) ;; 16285 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 16286 ;; 16287esac 16288 16289fi 16290if test "$USE_WINSOCK" = 1; then 16291 if test -n "$ac_tool_prefix"; then 16292 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 16293set dummy ${ac_tool_prefix}windres; ac_word=$2 16294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16295$as_echo_n "checking for $ac_word... " >&6; } 16296if ${ac_cv_prog_WINDRES+:} false; then : 16297 $as_echo_n "(cached) " >&6 16298else 16299 if test -n "$WINDRES"; then 16300 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 16301else 16302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16303for as_dir in $PATH 16304do 16305 IFS=$as_save_IFS 16306 test -z "$as_dir" && as_dir=. 16307 for ac_exec_ext in '' $ac_executable_extensions; do 16308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16309 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16311 break 2 16312 fi 16313done 16314 done 16315IFS=$as_save_IFS 16316 16317fi 16318fi 16319WINDRES=$ac_cv_prog_WINDRES 16320if test -n "$WINDRES"; then 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 16322$as_echo "$WINDRES" >&6; } 16323else 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16325$as_echo "no" >&6; } 16326fi 16327 16328 16329fi 16330if test -z "$ac_cv_prog_WINDRES"; then 16331 ac_ct_WINDRES=$WINDRES 16332 # Extract the first word of "windres", so it can be a program name with args. 16333set dummy windres; ac_word=$2 16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16335$as_echo_n "checking for $ac_word... " >&6; } 16336if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 16337 $as_echo_n "(cached) " >&6 16338else 16339 if test -n "$ac_ct_WINDRES"; then 16340 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 16341else 16342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16343for as_dir in $PATH 16344do 16345 IFS=$as_save_IFS 16346 test -z "$as_dir" && as_dir=. 16347 for ac_exec_ext in '' $ac_executable_extensions; do 16348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16349 ac_cv_prog_ac_ct_WINDRES="windres" 16350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16351 break 2 16352 fi 16353done 16354 done 16355IFS=$as_save_IFS 16356 16357fi 16358fi 16359ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 16360if test -n "$ac_ct_WINDRES"; then 16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 16362$as_echo "$ac_ct_WINDRES" >&6; } 16363else 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16365$as_echo "no" >&6; } 16366fi 16367 16368 if test "x$ac_ct_WINDRES" = x; then 16369 WINDRES="" 16370 else 16371 case $cross_compiling:$ac_tool_warned in 16372yes:) 16373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16375ac_tool_warned=yes ;; 16376esac 16377 WINDRES=$ac_ct_WINDRES 16378 fi 16379else 16380 WINDRES="$ac_cv_prog_WINDRES" 16381fi 16382 16383fi 16384 16385# check ioctlsocket 16386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 16387$as_echo_n "checking for ioctlsocket... " >&6; } 16388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16389/* end confdefs.h. */ 16390 16391#ifdef HAVE_WINSOCK2_H 16392#include <winsock2.h> 16393#endif 16394 16395int 16396main () 16397{ 16398 16399 (void)ioctlsocket(0, 0, NULL); 16400 16401 ; 16402 return 0; 16403} 16404_ACEOF 16405if ac_fn_c_try_link "$LINENO"; then : 16406 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16408$as_echo "yes" >&6; } 16409 16410$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 16411 16412 16413else 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16415$as_echo "no" >&6; } 16416fi 16417rm -f core conftest.err conftest.$ac_objext \ 16418 conftest$ac_exeext conftest.$ac_ext 16419 16420 16421#AC_SEARCH_LIBS(RSA_new, [crypto]) 16422 16423 16424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 16425$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 16426if ${ac_cv_c_format_attribute+:} false; then : 16427 $as_echo_n "(cached) " >&6 16428else 16429 ac_cv_c_format_attribute=no 16430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16431/* end confdefs.h. */ 16432#include <stdio.h> 16433void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 16434void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 16435 16436int 16437main () 16438{ 16439 16440 f ("%s", "str"); 16441 16442 ; 16443 return 0; 16444} 16445_ACEOF 16446if ac_fn_c_try_compile "$LINENO"; then : 16447 ac_cv_c_format_attribute="yes" 16448else 16449 ac_cv_c_format_attribute="no" 16450fi 16451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16452 16453fi 16454 16455 16456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 16457$as_echo "$ac_cv_c_format_attribute" >&6; } 16458if test $ac_cv_c_format_attribute = yes; then 16459 16460$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 16461 16462fi 16463 16464 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 16466$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 16467if ${ac_cv_c_unused_attribute+:} false; then : 16468 $as_echo_n "(cached) " >&6 16469else 16470 ac_cv_c_unused_attribute=no 16471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16472/* end confdefs.h. */ 16473#include <stdio.h> 16474void f (char *u __attribute__((unused))); 16475 16476int 16477main () 16478{ 16479 16480 f ("x"); 16481 16482 ; 16483 return 0; 16484} 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 ac_cv_c_unused_attribute="yes" 16488else 16489 ac_cv_c_unused_attribute="no" 16490fi 16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16492 16493fi 16494 16495 16496 16497 16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 16499$as_echo "$ac_cv_c_unused_attribute" >&6; } 16500if test $ac_cv_c_unused_attribute = yes; then 16501 16502$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 16503 16504fi 16505 16506 16507# check OSX deployment target which is needed 16508if echo $build_os | grep darwin > /dev/null; then 16509 export MACOSX_DEPLOYMENT_TARGET="10.4" 16510fi 16511 16512 16513$as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h 16514 16515 16516 16517 16518 16519 16520if test "x$HAVE_SSL" = "xyes"; then 16521 ldns_build_config_have_ssl=1 16522 16523else 16524 ldns_build_config_have_ssl=0 16525 16526fi 16527if test "x$ac_cv_c_format_attribute" = "xyes"; then 16528 ldns_build_config_have_attr_format=1 16529 16530else 16531 ldns_build_config_have_attr_format=0 16532 16533fi 16534if test "x$ac_cv_c_unused_attribute" = "xyes"; then 16535 ldns_build_config_have_attr_unused=1 16536 16537else 16538 ldns_build_config_have_attr_unused=0 16539 16540fi 16541 16542ac_config_files="$ac_config_files Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config" 16543 16544 16545ac_config_headers="$ac_config_headers ldns/config.h" 16546 16547cat >confcache <<\_ACEOF 16548# This file is a shell script that caches the results of configure 16549# tests run on this system so they can be shared between configure 16550# scripts and configure runs, see configure's option --config-cache. 16551# It is not useful on other systems. If it contains results you don't 16552# want to keep, you may remove or edit it. 16553# 16554# config.status only pays attention to the cache file if you give it 16555# the --recheck option to rerun configure. 16556# 16557# `ac_cv_env_foo' variables (set or unset) will be overridden when 16558# loading this file, other *unset* `ac_cv_foo' will be assigned the 16559# following values. 16560 16561_ACEOF 16562 16563# The following way of writing the cache mishandles newlines in values, 16564# but we know of no workaround that is simple, portable, and efficient. 16565# So, we kill variables containing newlines. 16566# Ultrix sh set writes to stderr and can't be redirected directly, 16567# and sets the high bit in the cache file unless we assign to the vars. 16568( 16569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16570 eval ac_val=\$$ac_var 16571 case $ac_val in #( 16572 *${as_nl}*) 16573 case $ac_var in #( 16574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16575$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16576 esac 16577 case $ac_var in #( 16578 _ | IFS | as_nl) ;; #( 16579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16580 *) { eval $ac_var=; unset $ac_var;} ;; 16581 esac ;; 16582 esac 16583 done 16584 16585 (set) 2>&1 | 16586 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16587 *${as_nl}ac_space=\ *) 16588 # `set' does not quote correctly, so add quotes: double-quote 16589 # substitution turns \\\\ into \\, and sed turns \\ into \. 16590 sed -n \ 16591 "s/'/'\\\\''/g; 16592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16593 ;; #( 16594 *) 16595 # `set' quotes correctly as required by POSIX, so do not add quotes. 16596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16597 ;; 16598 esac | 16599 sort 16600) | 16601 sed ' 16602 /^ac_cv_env_/b end 16603 t clear 16604 :clear 16605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16606 t end 16607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16608 :end' >>confcache 16609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16610 if test -w "$cache_file"; then 16611 if test "x$cache_file" != "x/dev/null"; then 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16613$as_echo "$as_me: updating cache $cache_file" >&6;} 16614 if test ! -f "$cache_file" || test -h "$cache_file"; then 16615 cat confcache >"$cache_file" 16616 else 16617 case $cache_file in #( 16618 */* | ?:*) 16619 mv -f confcache "$cache_file"$$ && 16620 mv -f "$cache_file"$$ "$cache_file" ;; #( 16621 *) 16622 mv -f confcache "$cache_file" ;; 16623 esac 16624 fi 16625 fi 16626 else 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16628$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16629 fi 16630fi 16631rm -f confcache 16632 16633test "x$prefix" = xNONE && prefix=$ac_default_prefix 16634# Let make expand exec_prefix. 16635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16636 16637DEFS=-DHAVE_CONFIG_H 16638 16639ac_libobjs= 16640ac_ltlibobjs= 16641U= 16642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16643 # 1. Remove the extension, and $U if already installed. 16644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16647 # will be set to the directory where LIBOBJS objects are built. 16648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16650done 16651LIBOBJS=$ac_libobjs 16652 16653LTLIBOBJS=$ac_ltlibobjs 16654 16655 16656 16657 16658: "${CONFIG_STATUS=./config.status}" 16659ac_write_fail=0 16660ac_clean_files_save=$ac_clean_files 16661ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16663$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16664as_write_fail=0 16665cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16666#! $SHELL 16667# Generated by $as_me. 16668# Run this file to recreate the current configuration. 16669# Compiler output produced by configure, useful for debugging 16670# configure, is in config.log if it exists. 16671 16672debug=false 16673ac_cs_recheck=false 16674ac_cs_silent=false 16675 16676SHELL=\${CONFIG_SHELL-$SHELL} 16677export SHELL 16678_ASEOF 16679cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16680## -------------------- ## 16681## M4sh Initialization. ## 16682## -------------------- ## 16683 16684# Be more Bourne compatible 16685DUALCASE=1; export DUALCASE # for MKS sh 16686if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16687 emulate sh 16688 NULLCMD=: 16689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16690 # is contrary to our usage. Disable this feature. 16691 alias -g '${1+"$@"}'='"$@"' 16692 setopt NO_GLOB_SUBST 16693else 16694 case `(set -o) 2>/dev/null` in #( 16695 *posix*) : 16696 set -o posix ;; #( 16697 *) : 16698 ;; 16699esac 16700fi 16701 16702 16703as_nl=' 16704' 16705export as_nl 16706# Printing a long string crashes Solaris 7 /usr/bin/printf. 16707as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16708as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16709as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16710# Prefer a ksh shell builtin over an external printf program on Solaris, 16711# but without wasting forks for bash or zsh. 16712if test -z "$BASH_VERSION$ZSH_VERSION" \ 16713 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16714 as_echo='print -r --' 16715 as_echo_n='print -rn --' 16716elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16717 as_echo='printf %s\n' 16718 as_echo_n='printf %s' 16719else 16720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16722 as_echo_n='/usr/ucb/echo -n' 16723 else 16724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16725 as_echo_n_body='eval 16726 arg=$1; 16727 case $arg in #( 16728 *"$as_nl"*) 16729 expr "X$arg" : "X\\(.*\\)$as_nl"; 16730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16731 esac; 16732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16733 ' 16734 export as_echo_n_body 16735 as_echo_n='sh -c $as_echo_n_body as_echo' 16736 fi 16737 export as_echo_body 16738 as_echo='sh -c $as_echo_body as_echo' 16739fi 16740 16741# The user is always right. 16742if test "${PATH_SEPARATOR+set}" != set; then 16743 PATH_SEPARATOR=: 16744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16746 PATH_SEPARATOR=';' 16747 } 16748fi 16749 16750 16751# IFS 16752# We need space, tab and new line, in precisely that order. Quoting is 16753# there to prevent editors from complaining about space-tab. 16754# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16755# splitting by setting IFS to empty value.) 16756IFS=" "" $as_nl" 16757 16758# Find who we are. Look in the path if we contain no directory separator. 16759as_myself= 16760case $0 in #(( 16761 *[\\/]* ) as_myself=$0 ;; 16762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16763for as_dir in $PATH 16764do 16765 IFS=$as_save_IFS 16766 test -z "$as_dir" && as_dir=. 16767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16768 done 16769IFS=$as_save_IFS 16770 16771 ;; 16772esac 16773# We did not find ourselves, most probably we were run as `sh COMMAND' 16774# in which case we are not to be found in the path. 16775if test "x$as_myself" = x; then 16776 as_myself=$0 16777fi 16778if test ! -f "$as_myself"; then 16779 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16780 exit 1 16781fi 16782 16783# Unset variables that we do not need and which cause bugs (e.g. in 16784# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16785# suppresses any "Segmentation fault" message there. '((' could 16786# trigger a bug in pdksh 5.2.14. 16787for as_var in BASH_ENV ENV MAIL MAILPATH 16788do eval test x\${$as_var+set} = xset \ 16789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16790done 16791PS1='$ ' 16792PS2='> ' 16793PS4='+ ' 16794 16795# NLS nuisances. 16796LC_ALL=C 16797export LC_ALL 16798LANGUAGE=C 16799export LANGUAGE 16800 16801# CDPATH. 16802(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16803 16804 16805# as_fn_error STATUS ERROR [LINENO LOG_FD] 16806# ---------------------------------------- 16807# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16808# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16809# script with STATUS, using 1 if that was 0. 16810as_fn_error () 16811{ 16812 as_status=$1; test $as_status -eq 0 && as_status=1 16813 if test "$4"; then 16814 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16815 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16816 fi 16817 $as_echo "$as_me: error: $2" >&2 16818 as_fn_exit $as_status 16819} # as_fn_error 16820 16821 16822# as_fn_set_status STATUS 16823# ----------------------- 16824# Set $? to STATUS, without forking. 16825as_fn_set_status () 16826{ 16827 return $1 16828} # as_fn_set_status 16829 16830# as_fn_exit STATUS 16831# ----------------- 16832# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16833as_fn_exit () 16834{ 16835 set +e 16836 as_fn_set_status $1 16837 exit $1 16838} # as_fn_exit 16839 16840# as_fn_unset VAR 16841# --------------- 16842# Portably unset VAR. 16843as_fn_unset () 16844{ 16845 { eval $1=; unset $1;} 16846} 16847as_unset=as_fn_unset 16848# as_fn_append VAR VALUE 16849# ---------------------- 16850# Append the text in VALUE to the end of the definition contained in VAR. Take 16851# advantage of any shell optimizations that allow amortized linear growth over 16852# repeated appends, instead of the typical quadratic growth present in naive 16853# implementations. 16854if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16855 eval 'as_fn_append () 16856 { 16857 eval $1+=\$2 16858 }' 16859else 16860 as_fn_append () 16861 { 16862 eval $1=\$$1\$2 16863 } 16864fi # as_fn_append 16865 16866# as_fn_arith ARG... 16867# ------------------ 16868# Perform arithmetic evaluation on the ARGs, and store the result in the 16869# global $as_val. Take advantage of shells that can avoid forks. The arguments 16870# must be portable across $(()) and expr. 16871if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16872 eval 'as_fn_arith () 16873 { 16874 as_val=$(( $* )) 16875 }' 16876else 16877 as_fn_arith () 16878 { 16879 as_val=`expr "$@" || test $? -eq 1` 16880 } 16881fi # as_fn_arith 16882 16883 16884if expr a : '\(a\)' >/dev/null 2>&1 && 16885 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16886 as_expr=expr 16887else 16888 as_expr=false 16889fi 16890 16891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16892 as_basename=basename 16893else 16894 as_basename=false 16895fi 16896 16897if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16898 as_dirname=dirname 16899else 16900 as_dirname=false 16901fi 16902 16903as_me=`$as_basename -- "$0" || 16904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16905 X"$0" : 'X\(//\)$' \| \ 16906 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16907$as_echo X/"$0" | 16908 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\/\(\/\/\)$/{ 16913 s//\1/ 16914 q 16915 } 16916 /^X\/\(\/\).*/{ 16917 s//\1/ 16918 q 16919 } 16920 s/.*/./; q'` 16921 16922# Avoid depending upon Character Ranges. 16923as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16925as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16926as_cr_digits='0123456789' 16927as_cr_alnum=$as_cr_Letters$as_cr_digits 16928 16929ECHO_C= ECHO_N= ECHO_T= 16930case `echo -n x` in #((((( 16931-n*) 16932 case `echo 'xy\c'` in 16933 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16934 xy) ECHO_C='\c';; 16935 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16936 ECHO_T=' ';; 16937 esac;; 16938*) 16939 ECHO_N='-n';; 16940esac 16941 16942rm -f conf$$ conf$$.exe conf$$.file 16943if test -d conf$$.dir; then 16944 rm -f conf$$.dir/conf$$.file 16945else 16946 rm -f conf$$.dir 16947 mkdir conf$$.dir 2>/dev/null 16948fi 16949if (echo >conf$$.file) 2>/dev/null; then 16950 if ln -s conf$$.file conf$$ 2>/dev/null; then 16951 as_ln_s='ln -s' 16952 # ... but there are two gotchas: 16953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16955 # In both cases, we have to default to `cp -p'. 16956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16957 as_ln_s='cp -p' 16958 elif ln conf$$.file conf$$ 2>/dev/null; then 16959 as_ln_s=ln 16960 else 16961 as_ln_s='cp -p' 16962 fi 16963else 16964 as_ln_s='cp -p' 16965fi 16966rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16967rmdir conf$$.dir 2>/dev/null 16968 16969 16970# as_fn_mkdir_p 16971# ------------- 16972# Create "$as_dir" as a directory, including parents if necessary. 16973as_fn_mkdir_p () 16974{ 16975 16976 case $as_dir in #( 16977 -*) as_dir=./$as_dir;; 16978 esac 16979 test -d "$as_dir" || eval $as_mkdir_p || { 16980 as_dirs= 16981 while :; do 16982 case $as_dir in #( 16983 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16984 *) as_qdir=$as_dir;; 16985 esac 16986 as_dirs="'$as_qdir' $as_dirs" 16987 as_dir=`$as_dirname -- "$as_dir" || 16988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16989 X"$as_dir" : 'X\(//\)[^/]' \| \ 16990 X"$as_dir" : 'X\(//\)$' \| \ 16991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16992$as_echo X"$as_dir" | 16993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16994 s//\1/ 16995 q 16996 } 16997 /^X\(\/\/\)[^/].*/{ 16998 s//\1/ 16999 q 17000 } 17001 /^X\(\/\/\)$/{ 17002 s//\1/ 17003 q 17004 } 17005 /^X\(\/\).*/{ 17006 s//\1/ 17007 q 17008 } 17009 s/.*/./; q'` 17010 test -d "$as_dir" && break 17011 done 17012 test -z "$as_dirs" || eval "mkdir $as_dirs" 17013 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17014 17015 17016} # as_fn_mkdir_p 17017if mkdir -p . 2>/dev/null; then 17018 as_mkdir_p='mkdir -p "$as_dir"' 17019else 17020 test -d ./-p && rmdir ./-p 17021 as_mkdir_p=false 17022fi 17023 17024if test -x / >/dev/null 2>&1; then 17025 as_test_x='test -x' 17026else 17027 if ls -dL / >/dev/null 2>&1; then 17028 as_ls_L_option=L 17029 else 17030 as_ls_L_option= 17031 fi 17032 as_test_x=' 17033 eval sh -c '\'' 17034 if test -d "$1"; then 17035 test -d "$1/."; 17036 else 17037 case $1 in #( 17038 -*)set "./$1";; 17039 esac; 17040 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17041 ???[sx]*):;;*)false;;esac;fi 17042 '\'' sh 17043 ' 17044fi 17045as_executable_p=$as_test_x 17046 17047# Sed expression to map a string onto a valid CPP name. 17048as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17049 17050# Sed expression to map a string onto a valid variable name. 17051as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17052 17053 17054exec 6>&1 17055## ----------------------------------- ## 17056## Main body of $CONFIG_STATUS script. ## 17057## ----------------------------------- ## 17058_ASEOF 17059test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17060 17061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17062# Save the log message, to keep $0 and so on meaningful, and to 17063# report actual input values of CONFIG_FILES etc. instead of their 17064# values after options handling. 17065ac_log=" 17066This file was extended by ldns $as_me 1.6.13, which was 17067generated by GNU Autoconf 2.68. Invocation command line was 17068 17069 CONFIG_FILES = $CONFIG_FILES 17070 CONFIG_HEADERS = $CONFIG_HEADERS 17071 CONFIG_LINKS = $CONFIG_LINKS 17072 CONFIG_COMMANDS = $CONFIG_COMMANDS 17073 $ $0 $@ 17074 17075on `(hostname || uname -n) 2>/dev/null | sed 1q` 17076" 17077 17078_ACEOF 17079 17080case $ac_config_files in *" 17081"*) set x $ac_config_files; shift; ac_config_files=$*;; 17082esac 17083 17084case $ac_config_headers in *" 17085"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17086esac 17087 17088 17089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17090# Files that config.status was made for. 17091config_files="$ac_config_files" 17092config_headers="$ac_config_headers" 17093config_commands="$ac_config_commands" 17094 17095_ACEOF 17096 17097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17098ac_cs_usage="\ 17099\`$as_me' instantiates files and other configuration actions 17100from templates according to the current configuration. Unless the files 17101and actions are specified as TAGs, all are instantiated by default. 17102 17103Usage: $0 [OPTION]... [TAG]... 17104 17105 -h, --help print this help, then exit 17106 -V, --version print version number and configuration settings, then exit 17107 --config print configuration, then exit 17108 -q, --quiet, --silent 17109 do not print progress messages 17110 -d, --debug don't remove temporary files 17111 --recheck update $as_me by reconfiguring in the same conditions 17112 --file=FILE[:TEMPLATE] 17113 instantiate the configuration file FILE 17114 --header=FILE[:TEMPLATE] 17115 instantiate the configuration header FILE 17116 17117Configuration files: 17118$config_files 17119 17120Configuration headers: 17121$config_headers 17122 17123Configuration commands: 17124$config_commands 17125 17126Report bugs to <libdns@nlnetlabs.nl>." 17127 17128_ACEOF 17129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17130ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17131ac_cs_version="\\ 17132ldns config.status 1.6.13 17133configured by $0, generated by GNU Autoconf 2.68, 17134 with options \\"\$ac_cs_config\\" 17135 17136Copyright (C) 2010 Free Software Foundation, Inc. 17137This config.status script is free software; the Free Software Foundation 17138gives unlimited permission to copy, distribute and modify it." 17139 17140ac_pwd='$ac_pwd' 17141srcdir='$srcdir' 17142AWK='$AWK' 17143test -n "\$AWK" || AWK=awk 17144_ACEOF 17145 17146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17147# The default lists apply if the user does not specify any file. 17148ac_need_defaults=: 17149while test $# != 0 17150do 17151 case $1 in 17152 --*=?*) 17153 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17155 ac_shift=: 17156 ;; 17157 --*=) 17158 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17159 ac_optarg= 17160 ac_shift=: 17161 ;; 17162 *) 17163 ac_option=$1 17164 ac_optarg=$2 17165 ac_shift=shift 17166 ;; 17167 esac 17168 17169 case $ac_option in 17170 # Handling of the options. 17171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17172 ac_cs_recheck=: ;; 17173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17174 $as_echo "$ac_cs_version"; exit ;; 17175 --config | --confi | --conf | --con | --co | --c ) 17176 $as_echo "$ac_cs_config"; exit ;; 17177 --debug | --debu | --deb | --de | --d | -d ) 17178 debug=: ;; 17179 --file | --fil | --fi | --f ) 17180 $ac_shift 17181 case $ac_optarg in 17182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17183 '') as_fn_error $? "missing file argument" ;; 17184 esac 17185 as_fn_append CONFIG_FILES " '$ac_optarg'" 17186 ac_need_defaults=false;; 17187 --header | --heade | --head | --hea ) 17188 $ac_shift 17189 case $ac_optarg in 17190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17191 esac 17192 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17193 ac_need_defaults=false;; 17194 --he | --h) 17195 # Conflict between --help and --header 17196 as_fn_error $? "ambiguous option: \`$1' 17197Try \`$0 --help' for more information.";; 17198 --help | --hel | -h ) 17199 $as_echo "$ac_cs_usage"; exit ;; 17200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17201 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17202 ac_cs_silent=: ;; 17203 17204 # This is an error. 17205 -*) as_fn_error $? "unrecognized option: \`$1' 17206Try \`$0 --help' for more information." ;; 17207 17208 *) as_fn_append ac_config_targets " $1" 17209 ac_need_defaults=false ;; 17210 17211 esac 17212 shift 17213done 17214 17215ac_configure_extra_args= 17216 17217if $ac_cs_silent; then 17218 exec 6>/dev/null 17219 ac_configure_extra_args="$ac_configure_extra_args --silent" 17220fi 17221 17222_ACEOF 17223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17224if \$ac_cs_recheck; then 17225 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17226 shift 17227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17228 CONFIG_SHELL='$SHELL' 17229 export CONFIG_SHELL 17230 exec "\$@" 17231fi 17232 17233_ACEOF 17234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17235exec 5>>config.log 17236{ 17237 echo 17238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17239## Running $as_me. ## 17240_ASBOX 17241 $as_echo "$ac_log" 17242} >&5 17243 17244_ACEOF 17245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17246# 17247# INIT-COMMANDS 17248# 17249 17250 17251# The HP-UX ksh and POSIX shell print the target directory to stdout 17252# if CDPATH is set. 17253(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17254 17255sed_quote_subst='$sed_quote_subst' 17256double_quote_subst='$double_quote_subst' 17257delay_variable_subst='$delay_variable_subst' 17258macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17259macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17260enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17261enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17262pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17263enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17264SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17265ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17266PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17267host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17268host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17269host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17270build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17271build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17272build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17273SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17274Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17275GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17276EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17277FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17278LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17279NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17280LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17281max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17282ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17283exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17284lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17285lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17286lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17287lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17288lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17289reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17290reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17291OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17292deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17293file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17294file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17295want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17296DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17297sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17298AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17299AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17300archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17301STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17302RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17303old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17304old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17305old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17306lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17307CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17308CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17309compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17310GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17311lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17312lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17313lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17314lt_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"`' 17315nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17316lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17317objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17318MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17319lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17320lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17321lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17322lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17323lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17324need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17325MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17326DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17327NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17328LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17329OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17330OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17331libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17332shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17333extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17334archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17335enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17336export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17337whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17338compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17339old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17340old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17341archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17342archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17343module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17344module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17345with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17346allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17347no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17348hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17349hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17350hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17351hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17352hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17353hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17354hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17355inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17356link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17357always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17358export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17359exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17360include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17361prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17362postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17363file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17364variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17365need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17366need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17367version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17368runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17369shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17370shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17371libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17372library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17373soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17374install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17375postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17376postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17377finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17378finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17379hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17380sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17381sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17382hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17383enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17384enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17385enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17386old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17387striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17388 17389LTCC='$LTCC' 17390LTCFLAGS='$LTCFLAGS' 17391compiler='$compiler_DEFAULT' 17392 17393# A function that is used when there is no print builtin or printf. 17394func_fallback_echo () 17395{ 17396 eval 'cat <<_LTECHO_EOF 17397\$1 17398_LTECHO_EOF' 17399} 17400 17401# Quote evaled strings. 17402for var in SHELL \ 17403ECHO \ 17404PATH_SEPARATOR \ 17405SED \ 17406GREP \ 17407EGREP \ 17408FGREP \ 17409LD \ 17410NM \ 17411LN_S \ 17412lt_SP2NL \ 17413lt_NL2SP \ 17414reload_flag \ 17415OBJDUMP \ 17416deplibs_check_method \ 17417file_magic_cmd \ 17418file_magic_glob \ 17419want_nocaseglob \ 17420DLLTOOL \ 17421sharedlib_from_linklib_cmd \ 17422AR \ 17423AR_FLAGS \ 17424archiver_list_spec \ 17425STRIP \ 17426RANLIB \ 17427CC \ 17428CFLAGS \ 17429compiler \ 17430lt_cv_sys_global_symbol_pipe \ 17431lt_cv_sys_global_symbol_to_cdecl \ 17432lt_cv_sys_global_symbol_to_c_name_address \ 17433lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17434nm_file_list_spec \ 17435lt_prog_compiler_no_builtin_flag \ 17436lt_prog_compiler_pic \ 17437lt_prog_compiler_wl \ 17438lt_prog_compiler_static \ 17439lt_cv_prog_compiler_c_o \ 17440need_locks \ 17441MANIFEST_TOOL \ 17442DSYMUTIL \ 17443NMEDIT \ 17444LIPO \ 17445OTOOL \ 17446OTOOL64 \ 17447shrext_cmds \ 17448export_dynamic_flag_spec \ 17449whole_archive_flag_spec \ 17450compiler_needs_object \ 17451with_gnu_ld \ 17452allow_undefined_flag \ 17453no_undefined_flag \ 17454hardcode_libdir_flag_spec \ 17455hardcode_libdir_separator \ 17456exclude_expsyms \ 17457include_expsyms \ 17458file_list_spec \ 17459variables_saved_for_relink \ 17460libname_spec \ 17461library_names_spec \ 17462soname_spec \ 17463install_override_mode \ 17464finish_eval \ 17465old_striplib \ 17466striplib; do 17467 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17468 *[\\\\\\\`\\"\\\$]*) 17469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17470 ;; 17471 *) 17472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17473 ;; 17474 esac 17475done 17476 17477# Double-quote double-evaled strings. 17478for var in reload_cmds \ 17479old_postinstall_cmds \ 17480old_postuninstall_cmds \ 17481old_archive_cmds \ 17482extract_expsyms_cmds \ 17483old_archive_from_new_cmds \ 17484old_archive_from_expsyms_cmds \ 17485archive_cmds \ 17486archive_expsym_cmds \ 17487module_cmds \ 17488module_expsym_cmds \ 17489export_symbols_cmds \ 17490prelink_cmds \ 17491postlink_cmds \ 17492postinstall_cmds \ 17493postuninstall_cmds \ 17494finish_cmds \ 17495sys_lib_search_path_spec \ 17496sys_lib_dlsearch_path_spec; do 17497 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17498 *[\\\\\\\`\\"\\\$]*) 17499 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17500 ;; 17501 *) 17502 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17503 ;; 17504 esac 17505done 17506 17507ac_aux_dir='$ac_aux_dir' 17508xsi_shell='$xsi_shell' 17509lt_shell_append='$lt_shell_append' 17510 17511# See if we are running on zsh, and set the options which allow our 17512# commands through without removal of \ escapes INIT. 17513if test -n "\${ZSH_VERSION+set}" ; then 17514 setopt NO_GLOB_SUBST 17515fi 17516 17517 17518 PACKAGE='$PACKAGE' 17519 VERSION='$VERSION' 17520 TIMESTAMP='$TIMESTAMP' 17521 RM='$RM' 17522 ofile='$ofile' 17523 17524 17525 17526 17527_ACEOF 17528 17529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17530 17531# Handling of arguments. 17532for ac_config_target in $ac_config_targets 17533do 17534 case $ac_config_target in 17535 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17536 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 17537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17538 "ldns/common.h") CONFIG_FILES="$CONFIG_FILES ldns/common.h" ;; 17539 "ldns/net.h") CONFIG_FILES="$CONFIG_FILES ldns/net.h" ;; 17540 "ldns/util.h") CONFIG_FILES="$CONFIG_FILES ldns/util.h" ;; 17541 "packaging/libldns.pc") CONFIG_FILES="$CONFIG_FILES packaging/libldns.pc" ;; 17542 "packaging/ldns-config") CONFIG_FILES="$CONFIG_FILES packaging/ldns-config" ;; 17543 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;; 17544 17545 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17546 esac 17547done 17548 17549 17550# If the user did not use the arguments to specify the items to instantiate, 17551# then the envvar interface is used. Set only those that are not. 17552# We use the long form for the default assignment because of an extremely 17553# bizarre bug on SunOS 4.1.3. 17554if $ac_need_defaults; then 17555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17557 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17558fi 17559 17560# Have a temporary directory for convenience. Make it in the build tree 17561# simply because there is no reason against having it here, and in addition, 17562# creating and moving files from /tmp can sometimes cause problems. 17563# Hook for its removal unless debugging. 17564# Note that there is a small window in which the directory will not be cleaned: 17565# after its creation but before its name has been assigned to `$tmp'. 17566$debug || 17567{ 17568 tmp= ac_tmp= 17569 trap 'exit_status=$? 17570 : "${ac_tmp:=$tmp}" 17571 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17572' 0 17573 trap 'as_fn_exit 1' 1 2 13 15 17574} 17575# Create a (secure) tmp directory for tmp files. 17576 17577{ 17578 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17579 test -d "$tmp" 17580} || 17581{ 17582 tmp=./conf$$-$RANDOM 17583 (umask 077 && mkdir "$tmp") 17584} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17585ac_tmp=$tmp 17586 17587# Set up the scripts for CONFIG_FILES section. 17588# No need to generate them if there are no CONFIG_FILES. 17589# This happens for instance with `./config.status config.h'. 17590if test -n "$CONFIG_FILES"; then 17591 17592 17593ac_cr=`echo X | tr X '\015'` 17594# On cygwin, bash can eat \r inside `` if the user requested igncr. 17595# But we know of no other shell where ac_cr would be empty at this 17596# point, so we can use a bashism as a fallback. 17597if test "x$ac_cr" = x; then 17598 eval ac_cr=\$\'\\r\' 17599fi 17600ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17601if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17602 ac_cs_awk_cr='\\r' 17603else 17604 ac_cs_awk_cr=$ac_cr 17605fi 17606 17607echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17608_ACEOF 17609 17610 17611{ 17612 echo "cat >conf$$subs.awk <<_ACEOF" && 17613 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17614 echo "_ACEOF" 17615} >conf$$subs.sh || 17616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17617ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17618ac_delim='%!_!# ' 17619for ac_last_try in false false false false false :; do 17620 . ./conf$$subs.sh || 17621 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17622 17623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17624 if test $ac_delim_n = $ac_delim_num; then 17625 break 17626 elif $ac_last_try; then 17627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17628 else 17629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17630 fi 17631done 17632rm -f conf$$subs.sh 17633 17634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17635cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17636_ACEOF 17637sed -n ' 17638h 17639s/^/S["/; s/!.*/"]=/ 17640p 17641g 17642s/^[^!]*!// 17643:repl 17644t repl 17645s/'"$ac_delim"'$// 17646t delim 17647:nl 17648h 17649s/\(.\{148\}\)..*/\1/ 17650t more1 17651s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17652p 17653n 17654b repl 17655:more1 17656s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17657p 17658g 17659s/.\{148\}// 17660t nl 17661:delim 17662h 17663s/\(.\{148\}\)..*/\1/ 17664t more2 17665s/["\\]/\\&/g; s/^/"/; s/$/"/ 17666p 17667b 17668:more2 17669s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17670p 17671g 17672s/.\{148\}// 17673t delim 17674' <conf$$subs.awk | sed ' 17675/^[^""]/{ 17676 N 17677 s/\n// 17678} 17679' >>$CONFIG_STATUS || ac_write_fail=1 17680rm -f conf$$subs.awk 17681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17682_ACAWK 17683cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17684 for (key in S) S_is_set[key] = 1 17685 FS = "" 17686 17687} 17688{ 17689 line = $ 0 17690 nfields = split(line, field, "@") 17691 substed = 0 17692 len = length(field[1]) 17693 for (i = 2; i < nfields; i++) { 17694 key = field[i] 17695 keylen = length(key) 17696 if (S_is_set[key]) { 17697 value = S[key] 17698 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17699 len += length(value) + length(field[++i]) 17700 substed = 1 17701 } else 17702 len += 1 + keylen 17703 } 17704 17705 print line 17706} 17707 17708_ACAWK 17709_ACEOF 17710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17711if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17712 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17713else 17714 cat 17715fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17716 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17717_ACEOF 17718 17719# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17720# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17721# trailing colons and then remove the whole line if VPATH becomes empty 17722# (actually we leave an empty line to preserve line numbers). 17723if test "x$srcdir" = x.; then 17724 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17725h 17726s/// 17727s/^/:/ 17728s/[ ]*$/:/ 17729s/:\$(srcdir):/:/g 17730s/:\${srcdir}:/:/g 17731s/:@srcdir@:/:/g 17732s/^:*// 17733s/:*$// 17734x 17735s/\(=[ ]*\).*/\1/ 17736G 17737s/\n// 17738s/^[^=]*=[ ]*$// 17739}' 17740fi 17741 17742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17743fi # test -n "$CONFIG_FILES" 17744 17745# Set up the scripts for CONFIG_HEADERS section. 17746# No need to generate them if there are no CONFIG_HEADERS. 17747# This happens for instance with `./config.status Makefile'. 17748if test -n "$CONFIG_HEADERS"; then 17749cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17750BEGIN { 17751_ACEOF 17752 17753# Transform confdefs.h into an awk script `defines.awk', embedded as 17754# here-document in config.status, that substitutes the proper values into 17755# config.h.in to produce config.h. 17756 17757# Create a delimiter string that does not exist in confdefs.h, to ease 17758# handling of long lines. 17759ac_delim='%!_!# ' 17760for ac_last_try in false false :; do 17761 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17762 if test -z "$ac_tt"; then 17763 break 17764 elif $ac_last_try; then 17765 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17766 else 17767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17768 fi 17769done 17770 17771# For the awk script, D is an array of macro values keyed by name, 17772# likewise P contains macro parameters if any. Preserve backslash 17773# newline sequences. 17774 17775ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17776sed -n ' 17777s/.\{148\}/&'"$ac_delim"'/g 17778t rset 17779:rset 17780s/^[ ]*#[ ]*define[ ][ ]*/ / 17781t def 17782d 17783:def 17784s/\\$// 17785t bsnl 17786s/["\\]/\\&/g 17787s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17788D["\1"]=" \3"/p 17789s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17790d 17791:bsnl 17792s/["\\]/\\&/g 17793s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17794D["\1"]=" \3\\\\\\n"\\/p 17795t cont 17796s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17797t cont 17798d 17799:cont 17800n 17801s/.\{148\}/&'"$ac_delim"'/g 17802t clear 17803:clear 17804s/\\$// 17805t bsnlc 17806s/["\\]/\\&/g; s/^/"/; s/$/"/p 17807d 17808:bsnlc 17809s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17810b cont 17811' <confdefs.h | sed ' 17812s/'"$ac_delim"'/"\\\ 17813"/g' >>$CONFIG_STATUS || ac_write_fail=1 17814 17815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17816 for (key in D) D_is_set[key] = 1 17817 FS = "" 17818} 17819/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17820 line = \$ 0 17821 split(line, arg, " ") 17822 if (arg[1] == "#") { 17823 defundef = arg[2] 17824 mac1 = arg[3] 17825 } else { 17826 defundef = substr(arg[1], 2) 17827 mac1 = arg[2] 17828 } 17829 split(mac1, mac2, "(") #) 17830 macro = mac2[1] 17831 prefix = substr(line, 1, index(line, defundef) - 1) 17832 if (D_is_set[macro]) { 17833 # Preserve the white space surrounding the "#". 17834 print prefix "define", macro P[macro] D[macro] 17835 next 17836 } else { 17837 # Replace #undef with comments. This is necessary, for example, 17838 # in the case of _POSIX_SOURCE, which is predefined and required 17839 # on some systems where configure will not decide to define it. 17840 if (defundef == "undef") { 17841 print "/*", prefix defundef, macro, "*/" 17842 next 17843 } 17844 } 17845} 17846{ print } 17847_ACAWK 17848_ACEOF 17849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17850 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17851fi # test -n "$CONFIG_HEADERS" 17852 17853 17854eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17855shift 17856for ac_tag 17857do 17858 case $ac_tag in 17859 :[FHLC]) ac_mode=$ac_tag; continue;; 17860 esac 17861 case $ac_mode$ac_tag in 17862 :[FHL]*:*);; 17863 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17864 :[FH]-) ac_tag=-:-;; 17865 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17866 esac 17867 ac_save_IFS=$IFS 17868 IFS=: 17869 set x $ac_tag 17870 IFS=$ac_save_IFS 17871 shift 17872 ac_file=$1 17873 shift 17874 17875 case $ac_mode in 17876 :L) ac_source=$1;; 17877 :[FH]) 17878 ac_file_inputs= 17879 for ac_f 17880 do 17881 case $ac_f in 17882 -) ac_f="$ac_tmp/stdin";; 17883 *) # Look for the file first in the build tree, then in the source tree 17884 # (if the path is not absolute). The absolute path cannot be DOS-style, 17885 # because $ac_f cannot contain `:'. 17886 test -f "$ac_f" || 17887 case $ac_f in 17888 [\\/$]*) false;; 17889 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17890 esac || 17891 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17892 esac 17893 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17894 as_fn_append ac_file_inputs " '$ac_f'" 17895 done 17896 17897 # Let's still pretend it is `configure' which instantiates (i.e., don't 17898 # use $as_me), people would be surprised to read: 17899 # /* config.h. Generated by config.status. */ 17900 configure_input='Generated from '` 17901 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17902 `' by configure.' 17903 if test x"$ac_file" != x-; then 17904 configure_input="$ac_file. $configure_input" 17905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17906$as_echo "$as_me: creating $ac_file" >&6;} 17907 fi 17908 # Neutralize special characters interpreted by sed in replacement strings. 17909 case $configure_input in #( 17910 *\&* | *\|* | *\\* ) 17911 ac_sed_conf_input=`$as_echo "$configure_input" | 17912 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17913 *) ac_sed_conf_input=$configure_input;; 17914 esac 17915 17916 case $ac_tag in 17917 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17919 esac 17920 ;; 17921 esac 17922 17923 ac_dir=`$as_dirname -- "$ac_file" || 17924$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17925 X"$ac_file" : 'X\(//\)[^/]' \| \ 17926 X"$ac_file" : 'X\(//\)$' \| \ 17927 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17928$as_echo X"$ac_file" | 17929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17930 s//\1/ 17931 q 17932 } 17933 /^X\(\/\/\)[^/].*/{ 17934 s//\1/ 17935 q 17936 } 17937 /^X\(\/\/\)$/{ 17938 s//\1/ 17939 q 17940 } 17941 /^X\(\/\).*/{ 17942 s//\1/ 17943 q 17944 } 17945 s/.*/./; q'` 17946 as_dir="$ac_dir"; as_fn_mkdir_p 17947 ac_builddir=. 17948 17949case "$ac_dir" in 17950.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17951*) 17952 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17953 # A ".." for each directory in $ac_dir_suffix. 17954 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17955 case $ac_top_builddir_sub in 17956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17958 esac ;; 17959esac 17960ac_abs_top_builddir=$ac_pwd 17961ac_abs_builddir=$ac_pwd$ac_dir_suffix 17962# for backward compatibility: 17963ac_top_builddir=$ac_top_build_prefix 17964 17965case $srcdir in 17966 .) # We are building in place. 17967 ac_srcdir=. 17968 ac_top_srcdir=$ac_top_builddir_sub 17969 ac_abs_top_srcdir=$ac_pwd ;; 17970 [\\/]* | ?:[\\/]* ) # Absolute name. 17971 ac_srcdir=$srcdir$ac_dir_suffix; 17972 ac_top_srcdir=$srcdir 17973 ac_abs_top_srcdir=$srcdir ;; 17974 *) # Relative name. 17975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17976 ac_top_srcdir=$ac_top_build_prefix$srcdir 17977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17978esac 17979ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17980 17981 17982 case $ac_mode in 17983 :F) 17984 # 17985 # CONFIG_FILE 17986 # 17987 17988_ACEOF 17989 17990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17991# If the template does not know about datarootdir, expand it. 17992# FIXME: This hack should be removed a few years after 2.60. 17993ac_datarootdir_hack=; ac_datarootdir_seen= 17994ac_sed_dataroot=' 17995/datarootdir/ { 17996 p 17997 q 17998} 17999/@datadir@/p 18000/@docdir@/p 18001/@infodir@/p 18002/@localedir@/p 18003/@mandir@/p' 18004case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18005*datarootdir*) ac_datarootdir_seen=yes;; 18006*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18008$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18009_ACEOF 18010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18011 ac_datarootdir_hack=' 18012 s&@datadir@&$datadir&g 18013 s&@docdir@&$docdir&g 18014 s&@infodir@&$infodir&g 18015 s&@localedir@&$localedir&g 18016 s&@mandir@&$mandir&g 18017 s&\\\${datarootdir}&$datarootdir&g' ;; 18018esac 18019_ACEOF 18020 18021# Neutralize VPATH when `$srcdir' = `.'. 18022# Shell code in configure.ac might set extrasub. 18023# FIXME: do we really want to maintain this feature? 18024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18025ac_sed_extra="$ac_vpsub 18026$extrasub 18027_ACEOF 18028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18029:t 18030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18031s|@configure_input@|$ac_sed_conf_input|;t t 18032s&@top_builddir@&$ac_top_builddir_sub&;t t 18033s&@top_build_prefix@&$ac_top_build_prefix&;t t 18034s&@srcdir@&$ac_srcdir&;t t 18035s&@abs_srcdir@&$ac_abs_srcdir&;t t 18036s&@top_srcdir@&$ac_top_srcdir&;t t 18037s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18038s&@builddir@&$ac_builddir&;t t 18039s&@abs_builddir@&$ac_abs_builddir&;t t 18040s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18041$ac_datarootdir_hack 18042" 18043eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18044 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18045 18046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18047 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18049 "$ac_tmp/out"`; test -z "$ac_out"; } && 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18051which seems to be undefined. Please make sure it is defined" >&5 18052$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18053which seems to be undefined. Please make sure it is defined" >&2;} 18054 18055 rm -f "$ac_tmp/stdin" 18056 case $ac_file in 18057 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18058 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18059 esac \ 18060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18061 ;; 18062 :H) 18063 # 18064 # CONFIG_HEADER 18065 # 18066 if test x"$ac_file" != x-; then 18067 { 18068 $as_echo "/* $configure_input */" \ 18069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18070 } >"$ac_tmp/config.h" \ 18071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18072 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18073 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18074$as_echo "$as_me: $ac_file is unchanged" >&6;} 18075 else 18076 rm -f "$ac_file" 18077 mv "$ac_tmp/config.h" "$ac_file" \ 18078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18079 fi 18080 else 18081 $as_echo "/* $configure_input */" \ 18082 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18083 || as_fn_error $? "could not create -" "$LINENO" 5 18084 fi 18085 ;; 18086 18087 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18088$as_echo "$as_me: executing $ac_file commands" >&6;} 18089 ;; 18090 esac 18091 18092 18093 case $ac_file$ac_mode in 18094 "libtool":C) 18095 18096 # See if we are running on zsh, and set the options which allow our 18097 # commands through without removal of \ escapes. 18098 if test -n "${ZSH_VERSION+set}" ; then 18099 setopt NO_GLOB_SUBST 18100 fi 18101 18102 cfgfile="${ofile}T" 18103 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18104 $RM "$cfgfile" 18105 18106 cat <<_LT_EOF >> "$cfgfile" 18107#! $SHELL 18108 18109# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18110# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18111# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18112# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18113# 18114# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18115# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18116# Foundation, Inc. 18117# Written by Gordon Matzigkeit, 1996 18118# 18119# This file is part of GNU Libtool. 18120# 18121# GNU Libtool is free software; you can redistribute it and/or 18122# modify it under the terms of the GNU General Public License as 18123# published by the Free Software Foundation; either version 2 of 18124# the License, or (at your option) any later version. 18125# 18126# As a special exception to the GNU General Public License, 18127# if you distribute this file as part of a program or library that 18128# is built using GNU Libtool, you may include this file under the 18129# same distribution terms that you use for the rest of that program. 18130# 18131# GNU Libtool is distributed in the hope that it will be useful, 18132# but WITHOUT ANY WARRANTY; without even the implied warranty of 18133# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18134# GNU General Public License for more details. 18135# 18136# You should have received a copy of the GNU General Public License 18137# along with GNU Libtool; see the file COPYING. If not, a copy 18138# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18139# obtained by writing to the Free Software Foundation, Inc., 18140# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18141 18142 18143# The names of the tagged configurations supported by this script. 18144available_tags="" 18145 18146# ### BEGIN LIBTOOL CONFIG 18147 18148# Which release of libtool.m4 was used? 18149macro_version=$macro_version 18150macro_revision=$macro_revision 18151 18152# Whether or not to build shared libraries. 18153build_libtool_libs=$enable_shared 18154 18155# Whether or not to build static libraries. 18156build_old_libs=$enable_static 18157 18158# What type of objects to build. 18159pic_mode=$pic_mode 18160 18161# Whether or not to optimize for fast installation. 18162fast_install=$enable_fast_install 18163 18164# Shell to use when invoking shell scripts. 18165SHELL=$lt_SHELL 18166 18167# An echo program that protects backslashes. 18168ECHO=$lt_ECHO 18169 18170# The PATH separator for the build system. 18171PATH_SEPARATOR=$lt_PATH_SEPARATOR 18172 18173# The host system. 18174host_alias=$host_alias 18175host=$host 18176host_os=$host_os 18177 18178# The build system. 18179build_alias=$build_alias 18180build=$build 18181build_os=$build_os 18182 18183# A sed program that does not truncate output. 18184SED=$lt_SED 18185 18186# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18187Xsed="\$SED -e 1s/^X//" 18188 18189# A grep program that handles long lines. 18190GREP=$lt_GREP 18191 18192# An ERE matcher. 18193EGREP=$lt_EGREP 18194 18195# A literal string matcher. 18196FGREP=$lt_FGREP 18197 18198# A BSD- or MS-compatible name lister. 18199NM=$lt_NM 18200 18201# Whether we need soft or hard links. 18202LN_S=$lt_LN_S 18203 18204# What is the maximum length of a command? 18205max_cmd_len=$max_cmd_len 18206 18207# Object file suffix (normally "o"). 18208objext=$ac_objext 18209 18210# Executable file suffix (normally ""). 18211exeext=$exeext 18212 18213# whether the shell understands "unset". 18214lt_unset=$lt_unset 18215 18216# turn spaces into newlines. 18217SP2NL=$lt_lt_SP2NL 18218 18219# turn newlines into spaces. 18220NL2SP=$lt_lt_NL2SP 18221 18222# convert \$build file names to \$host format. 18223to_host_file_cmd=$lt_cv_to_host_file_cmd 18224 18225# convert \$build files to toolchain format. 18226to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18227 18228# An object symbol dumper. 18229OBJDUMP=$lt_OBJDUMP 18230 18231# Method to check whether dependent libraries are shared objects. 18232deplibs_check_method=$lt_deplibs_check_method 18233 18234# Command to use when deplibs_check_method = "file_magic". 18235file_magic_cmd=$lt_file_magic_cmd 18236 18237# How to find potential files when deplibs_check_method = "file_magic". 18238file_magic_glob=$lt_file_magic_glob 18239 18240# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18241want_nocaseglob=$lt_want_nocaseglob 18242 18243# DLL creation program. 18244DLLTOOL=$lt_DLLTOOL 18245 18246# Command to associate shared and link libraries. 18247sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18248 18249# The archiver. 18250AR=$lt_AR 18251 18252# Flags to create an archive. 18253AR_FLAGS=$lt_AR_FLAGS 18254 18255# How to feed a file listing to the archiver. 18256archiver_list_spec=$lt_archiver_list_spec 18257 18258# A symbol stripping program. 18259STRIP=$lt_STRIP 18260 18261# Commands used to install an old-style archive. 18262RANLIB=$lt_RANLIB 18263old_postinstall_cmds=$lt_old_postinstall_cmds 18264old_postuninstall_cmds=$lt_old_postuninstall_cmds 18265 18266# Whether to use a lock for old archive extraction. 18267lock_old_archive_extraction=$lock_old_archive_extraction 18268 18269# A C compiler. 18270LTCC=$lt_CC 18271 18272# LTCC compiler flags. 18273LTCFLAGS=$lt_CFLAGS 18274 18275# Take the output of nm and produce a listing of raw symbols and C names. 18276global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18277 18278# Transform the output of nm in a proper C declaration. 18279global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18280 18281# Transform the output of nm in a C name address pair. 18282global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18283 18284# Transform the output of nm in a C name address pair when lib prefix is needed. 18285global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18286 18287# Specify filename containing input files for \$NM. 18288nm_file_list_spec=$lt_nm_file_list_spec 18289 18290# The root where to search for dependent libraries,and in which our libraries should be installed. 18291lt_sysroot=$lt_sysroot 18292 18293# The name of the directory that contains temporary libtool files. 18294objdir=$objdir 18295 18296# Used to examine libraries when file_magic_cmd begins with "file". 18297MAGIC_CMD=$MAGIC_CMD 18298 18299# Must we lock files when doing compilation? 18300need_locks=$lt_need_locks 18301 18302# Manifest tool. 18303MANIFEST_TOOL=$lt_MANIFEST_TOOL 18304 18305# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18306DSYMUTIL=$lt_DSYMUTIL 18307 18308# Tool to change global to local symbols on Mac OS X. 18309NMEDIT=$lt_NMEDIT 18310 18311# Tool to manipulate fat objects and archives on Mac OS X. 18312LIPO=$lt_LIPO 18313 18314# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18315OTOOL=$lt_OTOOL 18316 18317# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18318OTOOL64=$lt_OTOOL64 18319 18320# Old archive suffix (normally "a"). 18321libext=$libext 18322 18323# Shared library suffix (normally ".so"). 18324shrext_cmds=$lt_shrext_cmds 18325 18326# The commands to extract the exported symbol list from a shared archive. 18327extract_expsyms_cmds=$lt_extract_expsyms_cmds 18328 18329# Variables whose values should be saved in libtool wrapper scripts and 18330# restored at link time. 18331variables_saved_for_relink=$lt_variables_saved_for_relink 18332 18333# Do we need the "lib" prefix for modules? 18334need_lib_prefix=$need_lib_prefix 18335 18336# Do we need a version for libraries? 18337need_version=$need_version 18338 18339# Library versioning type. 18340version_type=$version_type 18341 18342# Shared library runtime path variable. 18343runpath_var=$runpath_var 18344 18345# Shared library path variable. 18346shlibpath_var=$shlibpath_var 18347 18348# Is shlibpath searched before the hard-coded library search path? 18349shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18350 18351# Format of library name prefix. 18352libname_spec=$lt_libname_spec 18353 18354# List of archive names. First name is the real one, the rest are links. 18355# The last name is the one that the linker finds with -lNAME 18356library_names_spec=$lt_library_names_spec 18357 18358# The coded name of the library, if different from the real name. 18359soname_spec=$lt_soname_spec 18360 18361# Permission mode override for installation of shared libraries. 18362install_override_mode=$lt_install_override_mode 18363 18364# Command to use after installation of a shared archive. 18365postinstall_cmds=$lt_postinstall_cmds 18366 18367# Command to use after uninstallation of a shared archive. 18368postuninstall_cmds=$lt_postuninstall_cmds 18369 18370# Commands used to finish a libtool library installation in a directory. 18371finish_cmds=$lt_finish_cmds 18372 18373# As "finish_cmds", except a single script fragment to be evaled but 18374# not shown. 18375finish_eval=$lt_finish_eval 18376 18377# Whether we should hardcode library paths into libraries. 18378hardcode_into_libs=$hardcode_into_libs 18379 18380# Compile-time system search path for libraries. 18381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18382 18383# Run-time system search path for libraries. 18384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18385 18386# Whether dlopen is supported. 18387dlopen_support=$enable_dlopen 18388 18389# Whether dlopen of programs is supported. 18390dlopen_self=$enable_dlopen_self 18391 18392# Whether dlopen of statically linked programs is supported. 18393dlopen_self_static=$enable_dlopen_self_static 18394 18395# Commands to strip libraries. 18396old_striplib=$lt_old_striplib 18397striplib=$lt_striplib 18398 18399 18400# The linker used to build libraries. 18401LD=$lt_LD 18402 18403# How to create reloadable object files. 18404reload_flag=$lt_reload_flag 18405reload_cmds=$lt_reload_cmds 18406 18407# Commands used to build an old-style archive. 18408old_archive_cmds=$lt_old_archive_cmds 18409 18410# A language specific compiler. 18411CC=$lt_compiler 18412 18413# Is the compiler the GNU compiler? 18414with_gcc=$GCC 18415 18416# Compiler flag to turn off builtin functions. 18417no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18418 18419# Additional compiler flags for building library objects. 18420pic_flag=$lt_lt_prog_compiler_pic 18421 18422# How to pass a linker flag through the compiler. 18423wl=$lt_lt_prog_compiler_wl 18424 18425# Compiler flag to prevent dynamic linking. 18426link_static_flag=$lt_lt_prog_compiler_static 18427 18428# Does compiler simultaneously support -c and -o options? 18429compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18430 18431# Whether or not to add -lc for building shared libraries. 18432build_libtool_need_lc=$archive_cmds_need_lc 18433 18434# Whether or not to disallow shared libs when runtime libs are static. 18435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18436 18437# Compiler flag to allow reflexive dlopens. 18438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18439 18440# Compiler flag to generate shared objects directly from archives. 18441whole_archive_flag_spec=$lt_whole_archive_flag_spec 18442 18443# Whether the compiler copes with passing no objects directly. 18444compiler_needs_object=$lt_compiler_needs_object 18445 18446# Create an old-style archive from a shared archive. 18447old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18448 18449# Create a temporary old-style archive to link instead of a shared archive. 18450old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18451 18452# Commands used to build a shared archive. 18453archive_cmds=$lt_archive_cmds 18454archive_expsym_cmds=$lt_archive_expsym_cmds 18455 18456# Commands used to build a loadable module if different from building 18457# a shared archive. 18458module_cmds=$lt_module_cmds 18459module_expsym_cmds=$lt_module_expsym_cmds 18460 18461# Whether we are building with GNU ld or not. 18462with_gnu_ld=$lt_with_gnu_ld 18463 18464# Flag that allows shared libraries with undefined symbols to be built. 18465allow_undefined_flag=$lt_allow_undefined_flag 18466 18467# Flag that enforces no undefined symbols. 18468no_undefined_flag=$lt_no_undefined_flag 18469 18470# Flag to hardcode \$libdir into a binary during linking. 18471# This must work even if \$libdir does not exist 18472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18473 18474# Whether we need a single "-rpath" flag with a separated argument. 18475hardcode_libdir_separator=$lt_hardcode_libdir_separator 18476 18477# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18478# DIR into the resulting binary. 18479hardcode_direct=$hardcode_direct 18480 18481# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18482# DIR into the resulting binary and the resulting library dependency is 18483# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18484# library is relocated. 18485hardcode_direct_absolute=$hardcode_direct_absolute 18486 18487# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18488# into the resulting binary. 18489hardcode_minus_L=$hardcode_minus_L 18490 18491# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18492# into the resulting binary. 18493hardcode_shlibpath_var=$hardcode_shlibpath_var 18494 18495# Set to "yes" if building a shared library automatically hardcodes DIR 18496# into the library and all subsequent libraries and executables linked 18497# against it. 18498hardcode_automatic=$hardcode_automatic 18499 18500# Set to yes if linker adds runtime paths of dependent libraries 18501# to runtime path list. 18502inherit_rpath=$inherit_rpath 18503 18504# Whether libtool must link a program against all its dependency libraries. 18505link_all_deplibs=$link_all_deplibs 18506 18507# Set to "yes" if exported symbols are required. 18508always_export_symbols=$always_export_symbols 18509 18510# The commands to list exported symbols. 18511export_symbols_cmds=$lt_export_symbols_cmds 18512 18513# Symbols that should not be listed in the preloaded symbols. 18514exclude_expsyms=$lt_exclude_expsyms 18515 18516# Symbols that must always be exported. 18517include_expsyms=$lt_include_expsyms 18518 18519# Commands necessary for linking programs (against libraries) with templates. 18520prelink_cmds=$lt_prelink_cmds 18521 18522# Commands necessary for finishing linking programs. 18523postlink_cmds=$lt_postlink_cmds 18524 18525# Specify filename containing input files. 18526file_list_spec=$lt_file_list_spec 18527 18528# How to hardcode a shared library path into an executable. 18529hardcode_action=$hardcode_action 18530 18531# ### END LIBTOOL CONFIG 18532 18533_LT_EOF 18534 18535 case $host_os in 18536 aix3*) 18537 cat <<\_LT_EOF >> "$cfgfile" 18538# AIX sometimes has problems with the GCC collect2 program. For some 18539# reason, if we set the COLLECT_NAMES environment variable, the problems 18540# vanish in a puff of smoke. 18541if test "X${COLLECT_NAMES+set}" != Xset; then 18542 COLLECT_NAMES= 18543 export COLLECT_NAMES 18544fi 18545_LT_EOF 18546 ;; 18547 esac 18548 18549 18550ltmain="$ac_aux_dir/ltmain.sh" 18551 18552 18553 # We use sed instead of cat because bash on DJGPP gets confused if 18554 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18555 # text mode, it properly converts lines to CR/LF. This bash problem 18556 # is reportedly fixed, but why not run on old versions too? 18557 sed '$q' "$ltmain" >> "$cfgfile" \ 18558 || (rm -f "$cfgfile"; exit 1) 18559 18560 if test x"$xsi_shell" = xyes; then 18561 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18562func_dirname ()\ 18563{\ 18564\ case ${1} in\ 18565\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18566\ * ) func_dirname_result="${3}" ;;\ 18567\ esac\ 18568} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18569 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18571test 0 -eq $? || _lt_function_replace_fail=: 18572 18573 18574 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18575func_basename ()\ 18576{\ 18577\ func_basename_result="${1##*/}"\ 18578} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18579 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18581test 0 -eq $? || _lt_function_replace_fail=: 18582 18583 18584 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18585func_dirname_and_basename ()\ 18586{\ 18587\ case ${1} in\ 18588\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18589\ * ) func_dirname_result="${3}" ;;\ 18590\ esac\ 18591\ func_basename_result="${1##*/}"\ 18592} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18593 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18594 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18595test 0 -eq $? || _lt_function_replace_fail=: 18596 18597 18598 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18599func_stripname ()\ 18600{\ 18601\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18602\ # positional parameters, so assign one to ordinary parameter first.\ 18603\ func_stripname_result=${3}\ 18604\ func_stripname_result=${func_stripname_result#"${1}"}\ 18605\ func_stripname_result=${func_stripname_result%"${2}"}\ 18606} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18607 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18609test 0 -eq $? || _lt_function_replace_fail=: 18610 18611 18612 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18613func_split_long_opt ()\ 18614{\ 18615\ func_split_long_opt_name=${1%%=*}\ 18616\ func_split_long_opt_arg=${1#*=}\ 18617} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18618 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18620test 0 -eq $? || _lt_function_replace_fail=: 18621 18622 18623 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18624func_split_short_opt ()\ 18625{\ 18626\ func_split_short_opt_arg=${1#??}\ 18627\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18628} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18629 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18631test 0 -eq $? || _lt_function_replace_fail=: 18632 18633 18634 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18635func_lo2o ()\ 18636{\ 18637\ case ${1} in\ 18638\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18639\ *) func_lo2o_result=${1} ;;\ 18640\ esac\ 18641} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18642 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18644test 0 -eq $? || _lt_function_replace_fail=: 18645 18646 18647 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18648func_xform ()\ 18649{\ 18650 func_xform_result=${1%.*}.lo\ 18651} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18652 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18654test 0 -eq $? || _lt_function_replace_fail=: 18655 18656 18657 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18658func_arith ()\ 18659{\ 18660 func_arith_result=$(( $* ))\ 18661} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18662 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18664test 0 -eq $? || _lt_function_replace_fail=: 18665 18666 18667 sed -e '/^func_len ()$/,/^} # func_len /c\ 18668func_len ()\ 18669{\ 18670 func_len_result=${#1}\ 18671} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18672 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18674test 0 -eq $? || _lt_function_replace_fail=: 18675 18676fi 18677 18678if test x"$lt_shell_append" = xyes; then 18679 sed -e '/^func_append ()$/,/^} # func_append /c\ 18680func_append ()\ 18681{\ 18682 eval "${1}+=\\${2}"\ 18683} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18684 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18686test 0 -eq $? || _lt_function_replace_fail=: 18687 18688 18689 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18690func_append_quoted ()\ 18691{\ 18692\ func_quote_for_eval "${2}"\ 18693\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18694} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18695 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18697test 0 -eq $? || _lt_function_replace_fail=: 18698 18699 18700 # Save a `func_append' function call where possible by direct use of '+=' 18701 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18702 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18704 test 0 -eq $? || _lt_function_replace_fail=: 18705else 18706 # Save a `func_append' function call even when '+=' is not available 18707 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18708 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18710 test 0 -eq $? || _lt_function_replace_fail=: 18711fi 18712 18713if test x"$_lt_function_replace_fail" = x":"; then 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18715$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18716fi 18717 18718 18719 mv -f "$cfgfile" "$ofile" || 18720 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18721 chmod +x "$ofile" 18722 18723 ;; 18724 "disable-rpath":C) 18725 sed < libtool > libtool-2 \ 18726 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 18727 mv libtool-2 libtool 18728 chmod 755 libtool 18729 libtool="./libtool" 18730 ;; 18731 18732 esac 18733done # for ac_tag 18734 18735 18736as_fn_exit 0 18737_ACEOF 18738ac_clean_files=$ac_clean_files_save 18739 18740test $ac_write_fail = 0 || 18741 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18742 18743 18744# configure is writing to config.log, and then calls config.status. 18745# config.status does its own redirection, appending to config.log. 18746# Unfortunately, on DOS this fails, as config.log is still kept open 18747# by configure, so config.status won't be able to write to it; its 18748# output is simply discarded. So we exec the FD to /dev/null, 18749# effectively closing config.log, so it can be properly (re)opened and 18750# appended to by config.status. When coming back to configure, we 18751# need to make the FD available again. 18752if test "$no_create" != yes; then 18753 ac_cs_success=: 18754 ac_config_status_args= 18755 test "$silent" = yes && 18756 ac_config_status_args="$ac_config_status_args --quiet" 18757 exec 5>/dev/null 18758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18759 exec 5>>config.log 18760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18761 # would make configure fail if this is the last instruction. 18762 $ac_cs_success || as_fn_exit 1 18763fi 18764if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18766$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18767fi 18768 18769 18770echo "copying header files" 18771 18772for file in $srcdir/ldns//*.h; do 18773 sh $srcdir/install-sh -m 644 $file ldns/ 18774done 18775 18776 18777 18778 18779 18780