1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="nsock_core.c" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624NSOCKTESTDIR 625NBASEDIR 626LIBNBASE_LIBS 627OPENSSL_LIBS 628RANLIB 629LIBPCAP_LIBS 630EGREP 631GREP 632CPP 633OBJEXT 634EXEEXT 635ac_ct_CC 636CPPFLAGS 637LDFLAGS 638CFLAGS 639CC 640host_os 641host_vendor 642host_cpu 643host 644build_os 645build_vendor 646build_cpu 647build 648target_alias 649host_alias 650build_alias 651LIBS 652ECHO_T 653ECHO_N 654ECHO_C 655DEFS 656mandir 657localedir 658libdir 659psdir 660pdfdir 661dvidir 662htmldir 663infodir 664docdir 665oldincludedir 666includedir 667localstatedir 668sharedstatedir 669sysconfdir 670datadir 671datarootdir 672libexecdir 673sbindir 674bindir 675program_transform_name 676prefix 677exec_prefix 678PACKAGE_URL 679PACKAGE_BUGREPORT 680PACKAGE_STRING 681PACKAGE_VERSION 682PACKAGE_TARNAME 683PACKAGE_NAME 684PATH_SEPARATOR 685SHELL' 686ac_subst_files='' 687ac_user_opts=' 688enable_option_checking 689with_localdirs 690with_libpcap 691with_openssl 692with_libnbase 693' 694 ac_precious_vars='build_alias 695host_alias 696target_alias 697CC 698CFLAGS 699LDFLAGS 700LIBS 701CPPFLAGS 702CPP' 703 704 705# Initialize some variables set by options. 706ac_init_help= 707ac_init_version=false 708ac_unrecognized_opts= 709ac_unrecognized_sep= 710# The variables have the same names as the options, with 711# dashes changed to underlines. 712cache_file=/dev/null 713exec_prefix=NONE 714no_create= 715no_recursion= 716prefix=NONE 717program_prefix=NONE 718program_suffix=NONE 719program_transform_name=s,x,x, 720silent= 721site= 722srcdir= 723verbose= 724x_includes=NONE 725x_libraries=NONE 726 727# Installation directory options. 728# These are left unexpanded so users can "make install exec_prefix=/foo" 729# and all the variables that are supposed to be based on exec_prefix 730# by default will actually change. 731# Use braces instead of parens because sh, perl, etc. also accept them. 732# (The list follows the same order as the GNU Coding Standards.) 733bindir='${exec_prefix}/bin' 734sbindir='${exec_prefix}/sbin' 735libexecdir='${exec_prefix}/libexec' 736datarootdir='${prefix}/share' 737datadir='${datarootdir}' 738sysconfdir='${prefix}/etc' 739sharedstatedir='${prefix}/com' 740localstatedir='${prefix}/var' 741includedir='${prefix}/include' 742oldincludedir='/usr/include' 743docdir='${datarootdir}/doc/${PACKAGE}' 744infodir='${datarootdir}/info' 745htmldir='${docdir}' 746dvidir='${docdir}' 747pdfdir='${docdir}' 748psdir='${docdir}' 749libdir='${exec_prefix}/lib' 750localedir='${datarootdir}/locale' 751mandir='${datarootdir}/man' 752 753ac_prev= 754ac_dashdash= 755for ac_option 756do 757 # If the previous option needs an argument, assign it. 758 if test -n "$ac_prev"; then 759 eval $ac_prev=\$ac_option 760 ac_prev= 761 continue 762 fi 763 764 case $ac_option in 765 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 766 *=) ac_optarg= ;; 767 *) ac_optarg=yes ;; 768 esac 769 770 # Accept the important Cygnus configure options, so we can diagnose typos. 771 772 case $ac_dashdash$ac_option in 773 --) 774 ac_dashdash=yes ;; 775 776 -bindir | --bindir | --bindi | --bind | --bin | --bi) 777 ac_prev=bindir ;; 778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 779 bindir=$ac_optarg ;; 780 781 -build | --build | --buil | --bui | --bu) 782 ac_prev=build_alias ;; 783 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 784 build_alias=$ac_optarg ;; 785 786 -cache-file | --cache-file | --cache-fil | --cache-fi \ 787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 788 ac_prev=cache_file ;; 789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 791 cache_file=$ac_optarg ;; 792 793 --config-cache | -C) 794 cache_file=config.cache ;; 795 796 -datadir | --datadir | --datadi | --datad) 797 ac_prev=datadir ;; 798 -datadir=* | --datadir=* | --datadi=* | --datad=*) 799 datadir=$ac_optarg ;; 800 801 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 802 | --dataroo | --dataro | --datar) 803 ac_prev=datarootdir ;; 804 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 805 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 806 datarootdir=$ac_optarg ;; 807 808 -disable-* | --disable-*) 809 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 810 # Reject names that are not valid shell variable names. 811 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 812 as_fn_error $? "invalid feature name: $ac_useropt" 813 ac_useropt_orig=$ac_useropt 814 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 815 case $ac_user_opts in 816 *" 817"enable_$ac_useropt" 818"*) ;; 819 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 820 ac_unrecognized_sep=', ';; 821 esac 822 eval enable_$ac_useropt=no ;; 823 824 -docdir | --docdir | --docdi | --doc | --do) 825 ac_prev=docdir ;; 826 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 827 docdir=$ac_optarg ;; 828 829 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 830 ac_prev=dvidir ;; 831 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 832 dvidir=$ac_optarg ;; 833 834 -enable-* | --enable-*) 835 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 836 # Reject names that are not valid shell variable names. 837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 838 as_fn_error $? "invalid feature name: $ac_useropt" 839 ac_useropt_orig=$ac_useropt 840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 841 case $ac_user_opts in 842 *" 843"enable_$ac_useropt" 844"*) ;; 845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 846 ac_unrecognized_sep=', ';; 847 esac 848 eval enable_$ac_useropt=\$ac_optarg ;; 849 850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 852 | --exec | --exe | --ex) 853 ac_prev=exec_prefix ;; 854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 856 | --exec=* | --exe=* | --ex=*) 857 exec_prefix=$ac_optarg ;; 858 859 -gas | --gas | --ga | --g) 860 # Obsolete; use --with-gas. 861 with_gas=yes ;; 862 863 -help | --help | --hel | --he | -h) 864 ac_init_help=long ;; 865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 866 ac_init_help=recursive ;; 867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 868 ac_init_help=short ;; 869 870 -host | --host | --hos | --ho) 871 ac_prev=host_alias ;; 872 -host=* | --host=* | --hos=* | --ho=*) 873 host_alias=$ac_optarg ;; 874 875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 876 ac_prev=htmldir ;; 877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 878 | --ht=*) 879 htmldir=$ac_optarg ;; 880 881 -includedir | --includedir | --includedi | --included | --include \ 882 | --includ | --inclu | --incl | --inc) 883 ac_prev=includedir ;; 884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 885 | --includ=* | --inclu=* | --incl=* | --inc=*) 886 includedir=$ac_optarg ;; 887 888 -infodir | --infodir | --infodi | --infod | --info | --inf) 889 ac_prev=infodir ;; 890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 891 infodir=$ac_optarg ;; 892 893 -libdir | --libdir | --libdi | --libd) 894 ac_prev=libdir ;; 895 -libdir=* | --libdir=* | --libdi=* | --libd=*) 896 libdir=$ac_optarg ;; 897 898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 899 | --libexe | --libex | --libe) 900 ac_prev=libexecdir ;; 901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 902 | --libexe=* | --libex=* | --libe=*) 903 libexecdir=$ac_optarg ;; 904 905 -localedir | --localedir | --localedi | --localed | --locale) 906 ac_prev=localedir ;; 907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 908 localedir=$ac_optarg ;; 909 910 -localstatedir | --localstatedir | --localstatedi | --localstated \ 911 | --localstate | --localstat | --localsta | --localst | --locals) 912 ac_prev=localstatedir ;; 913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 915 localstatedir=$ac_optarg ;; 916 917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 918 ac_prev=mandir ;; 919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 920 mandir=$ac_optarg ;; 921 922 -nfp | --nfp | --nf) 923 # Obsolete; use --without-fp. 924 with_fp=no ;; 925 926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 927 | --no-cr | --no-c | -n) 928 no_create=yes ;; 929 930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 932 no_recursion=yes ;; 933 934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 936 | --oldin | --oldi | --old | --ol | --o) 937 ac_prev=oldincludedir ;; 938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 941 oldincludedir=$ac_optarg ;; 942 943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 944 ac_prev=prefix ;; 945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 946 prefix=$ac_optarg ;; 947 948 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 949 | --program-pre | --program-pr | --program-p) 950 ac_prev=program_prefix ;; 951 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 953 program_prefix=$ac_optarg ;; 954 955 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 956 | --program-suf | --program-su | --program-s) 957 ac_prev=program_suffix ;; 958 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 960 program_suffix=$ac_optarg ;; 961 962 -program-transform-name | --program-transform-name \ 963 | --program-transform-nam | --program-transform-na \ 964 | --program-transform-n | --program-transform- \ 965 | --program-transform | --program-transfor \ 966 | --program-transfo | --program-transf \ 967 | --program-trans | --program-tran \ 968 | --progr-tra | --program-tr | --program-t) 969 ac_prev=program_transform_name ;; 970 -program-transform-name=* | --program-transform-name=* \ 971 | --program-transform-nam=* | --program-transform-na=* \ 972 | --program-transform-n=* | --program-transform-=* \ 973 | --program-transform=* | --program-transfor=* \ 974 | --program-transfo=* | --program-transf=* \ 975 | --program-trans=* | --program-tran=* \ 976 | --progr-tra=* | --program-tr=* | --program-t=*) 977 program_transform_name=$ac_optarg ;; 978 979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 980 ac_prev=pdfdir ;; 981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 982 pdfdir=$ac_optarg ;; 983 984 -psdir | --psdir | --psdi | --psd | --ps) 985 ac_prev=psdir ;; 986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 987 psdir=$ac_optarg ;; 988 989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 990 | -silent | --silent | --silen | --sile | --sil) 991 silent=yes ;; 992 993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 994 ac_prev=sbindir ;; 995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 996 | --sbi=* | --sb=*) 997 sbindir=$ac_optarg ;; 998 999 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1001 | --sharedst | --shareds | --shared | --share | --shar \ 1002 | --sha | --sh) 1003 ac_prev=sharedstatedir ;; 1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1007 | --sha=* | --sh=*) 1008 sharedstatedir=$ac_optarg ;; 1009 1010 -site | --site | --sit) 1011 ac_prev=site ;; 1012 -site=* | --site=* | --sit=*) 1013 site=$ac_optarg ;; 1014 1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1016 ac_prev=srcdir ;; 1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1018 srcdir=$ac_optarg ;; 1019 1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1021 | --syscon | --sysco | --sysc | --sys | --sy) 1022 ac_prev=sysconfdir ;; 1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1025 sysconfdir=$ac_optarg ;; 1026 1027 -target | --target | --targe | --targ | --tar | --ta | --t) 1028 ac_prev=target_alias ;; 1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1030 target_alias=$ac_optarg ;; 1031 1032 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1033 verbose=yes ;; 1034 1035 -version | --version | --versio | --versi | --vers | -V) 1036 ac_init_version=: ;; 1037 1038 -with-* | --with-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 as_fn_error $? "invalid package name: $ac_useropt" 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"with_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval with_$ac_useropt=\$ac_optarg ;; 1053 1054 -without-* | --without-*) 1055 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 as_fn_error $? "invalid package name: $ac_useropt" 1059 ac_useropt_orig=$ac_useropt 1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1061 case $ac_user_opts in 1062 *" 1063"with_$ac_useropt" 1064"*) ;; 1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1066 ac_unrecognized_sep=', ';; 1067 esac 1068 eval with_$ac_useropt=no ;; 1069 1070 --x) 1071 # Obsolete; use --with-x. 1072 with_x=yes ;; 1073 1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1075 | --x-incl | --x-inc | --x-in | --x-i) 1076 ac_prev=x_includes ;; 1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1079 x_includes=$ac_optarg ;; 1080 1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1083 ac_prev=x_libraries ;; 1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1086 x_libraries=$ac_optarg ;; 1087 1088 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1089Try \`$0 --help' for more information" 1090 ;; 1091 1092 *=*) 1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1094 # Reject names that are not valid shell variable names. 1095 case $ac_envvar in #( 1096 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1097 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1098 esac 1099 eval $ac_envvar=\$ac_optarg 1100 export $ac_envvar ;; 1101 1102 *) 1103 # FIXME: should be removed in autoconf 3.0. 1104 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1106 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1107 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1108 ;; 1109 1110 esac 1111done 1112 1113if test -n "$ac_prev"; then 1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1115 as_fn_error $? "missing argument to $ac_option" 1116fi 1117 1118if test -n "$ac_unrecognized_opts"; then 1119 case $enable_option_checking in 1120 no) ;; 1121 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1122 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1123 esac 1124fi 1125 1126# Check all directory arguments for consistency. 1127for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1128 datadir sysconfdir sharedstatedir localstatedir includedir \ 1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1130 libdir localedir mandir 1131do 1132 eval ac_val=\$$ac_var 1133 # Remove trailing slashes. 1134 case $ac_val in 1135 */ ) 1136 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1137 eval $ac_var=\$ac_val;; 1138 esac 1139 # Be sure to have absolute directory names. 1140 case $ac_val in 1141 [\\/$]* | ?:[\\/]* ) continue;; 1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1143 esac 1144 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1145done 1146 1147# There might be people who depend on the old broken behavior: `$host' 1148# used to hold the argument of --host etc. 1149# FIXME: To remove some day. 1150build=$build_alias 1151host=$host_alias 1152target=$target_alias 1153 1154# FIXME: To remove some day. 1155if test "x$host_alias" != x; then 1156 if test "x$build_alias" = x; then 1157 cross_compiling=maybe 1158 elif test "x$build_alias" != "x$host_alias"; then 1159 cross_compiling=yes 1160 fi 1161fi 1162 1163ac_tool_prefix= 1164test -n "$host_alias" && ac_tool_prefix=$host_alias- 1165 1166test "$silent" = yes && exec 6>/dev/null 1167 1168 1169ac_pwd=`pwd` && test -n "$ac_pwd" && 1170ac_ls_di=`ls -di .` && 1171ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1172 as_fn_error $? "working directory cannot be determined" 1173test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1174 as_fn_error $? "pwd does not report name of working directory" 1175 1176 1177# Find the source files, if location was not specified. 1178if test -z "$srcdir"; then 1179 ac_srcdir_defaulted=yes 1180 # Try the directory containing this script, then the parent directory. 1181 ac_confdir=`$as_dirname -- "$as_myself" || 1182$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1183 X"$as_myself" : 'X\(//\)[^/]' \| \ 1184 X"$as_myself" : 'X\(//\)$' \| \ 1185 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1186$as_echo X"$as_myself" | 1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\/\)[^/].*/{ 1192 s//\1/ 1193 q 1194 } 1195 /^X\(\/\/\)$/{ 1196 s//\1/ 1197 q 1198 } 1199 /^X\(\/\).*/{ 1200 s//\1/ 1201 q 1202 } 1203 s/.*/./; q'` 1204 srcdir=$ac_confdir 1205 if test ! -r "$srcdir/$ac_unique_file"; then 1206 srcdir=.. 1207 fi 1208else 1209 ac_srcdir_defaulted=no 1210fi 1211if test ! -r "$srcdir/$ac_unique_file"; then 1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1213 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1214fi 1215ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1216ac_abs_confdir=`( 1217 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1218 pwd)` 1219# When building in place, set srcdir=. 1220if test "$ac_abs_confdir" = "$ac_pwd"; then 1221 srcdir=. 1222fi 1223# Remove unnecessary trailing slashes from srcdir. 1224# Double slashes in file names in object file debugging info 1225# mess up M-x gdb in Emacs. 1226case $srcdir in 1227*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1228esac 1229for ac_var in $ac_precious_vars; do 1230 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1231 eval ac_env_${ac_var}_value=\$${ac_var} 1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1233 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1234done 1235 1236# 1237# Report the --help message. 1238# 1239if test "$ac_init_help" = "long"; then 1240 # Omit some internal or obsolete options to make the list less imposing. 1241 # This message is too long to be a string in the A/UX 3.1 sh. 1242 cat <<_ACEOF 1243\`configure' configures this package to adapt to many kinds of systems. 1244 1245Usage: $0 [OPTION]... [VAR=VALUE]... 1246 1247To assign environment variables (e.g., CC, CFLAGS...), specify them as 1248VAR=VALUE. See below for descriptions of some of the useful variables. 1249 1250Defaults for the options are specified in brackets. 1251 1252Configuration: 1253 -h, --help display this help and exit 1254 --help=short display options specific to this package 1255 --help=recursive display the short help of all the included packages 1256 -V, --version display version information and exit 1257 -q, --quiet, --silent do not print \`checking ...' messages 1258 --cache-file=FILE cache test results in FILE [disabled] 1259 -C, --config-cache alias for \`--cache-file=config.cache' 1260 -n, --no-create do not create output files 1261 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1262 1263Installation directories: 1264 --prefix=PREFIX install architecture-independent files in PREFIX 1265 [$ac_default_prefix] 1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1267 [PREFIX] 1268 1269By default, \`make install' will install all the files in 1270\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1271an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1272for instance \`--prefix=\$HOME'. 1273 1274For better control, use the options below. 1275 1276Fine tuning of the installation directories: 1277 --bindir=DIR user executables [EPREFIX/bin] 1278 --sbindir=DIR system admin executables [EPREFIX/sbin] 1279 --libexecdir=DIR program executables [EPREFIX/libexec] 1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1283 --libdir=DIR object code libraries [EPREFIX/lib] 1284 --includedir=DIR C header files [PREFIX/include] 1285 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1288 --infodir=DIR info documentation [DATAROOTDIR/info] 1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1290 --mandir=DIR man documentation [DATAROOTDIR/man] 1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1292 --htmldir=DIR html documentation [DOCDIR] 1293 --dvidir=DIR dvi documentation [DOCDIR] 1294 --pdfdir=DIR pdf documentation [DOCDIR] 1295 --psdir=DIR ps documentation [DOCDIR] 1296_ACEOF 1297 1298 cat <<\_ACEOF 1299 1300System types: 1301 --build=BUILD configure for building on BUILD [guessed] 1302 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1303_ACEOF 1304fi 1305 1306if test -n "$ac_init_help"; then 1307 1308 cat <<\_ACEOF 1309 1310Optional Packages: 1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1313 --with-localdirs Explicitly ask compiler to use /usr/local/{include,libs} if they exist 1314 --with-libpcap=DIR Look for pcap headers in DIR/include. 1315 --with-libpcap=included Always use version included with Nmap 1316 --without-libpcap Disable pcap functions. 1317 --with-openssl=DIR Use optional openssl libs and includes from 1318 [DIR]/lib/ and [DIR]/include/openssl/) 1319 --with-libnbase=DIR Look for nbase include/libs in DIR 1320 1321Some influential environment variables: 1322 CC C compiler command 1323 CFLAGS C compiler flags 1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1325 nonstandard directory <lib dir> 1326 LIBS libraries to pass to the linker, e.g. -l<library> 1327 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1328 you have headers in a nonstandard directory <include dir> 1329 CPP C preprocessor 1330 1331Use these variables to override the choices made by `configure' or to help 1332it to find libraries and programs with nonstandard names/locations. 1333 1334Report bugs to the package provider. 1335_ACEOF 1336ac_status=$? 1337fi 1338 1339if test "$ac_init_help" = "recursive"; then 1340 # If there are subdirs, report their specific --help. 1341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1342 test -d "$ac_dir" || 1343 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1344 continue 1345 ac_builddir=. 1346 1347case "$ac_dir" in 1348.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1349*) 1350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1351 # A ".." for each directory in $ac_dir_suffix. 1352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1353 case $ac_top_builddir_sub in 1354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1356 esac ;; 1357esac 1358ac_abs_top_builddir=$ac_pwd 1359ac_abs_builddir=$ac_pwd$ac_dir_suffix 1360# for backward compatibility: 1361ac_top_builddir=$ac_top_build_prefix 1362 1363case $srcdir in 1364 .) # We are building in place. 1365 ac_srcdir=. 1366 ac_top_srcdir=$ac_top_builddir_sub 1367 ac_abs_top_srcdir=$ac_pwd ;; 1368 [\\/]* | ?:[\\/]* ) # Absolute name. 1369 ac_srcdir=$srcdir$ac_dir_suffix; 1370 ac_top_srcdir=$srcdir 1371 ac_abs_top_srcdir=$srcdir ;; 1372 *) # Relative name. 1373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1374 ac_top_srcdir=$ac_top_build_prefix$srcdir 1375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1376esac 1377ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1378 1379 cd "$ac_dir" || { ac_status=$?; continue; } 1380 # Check for guested configure. 1381 if test -f "$ac_srcdir/configure.gnu"; then 1382 echo && 1383 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1384 elif test -f "$ac_srcdir/configure"; then 1385 echo && 1386 $SHELL "$ac_srcdir/configure" --help=recursive 1387 else 1388 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1389 fi || ac_status=$? 1390 cd "$ac_pwd" || { ac_status=$?; break; } 1391 done 1392fi 1393 1394test -n "$ac_init_help" && exit $ac_status 1395if $ac_init_version; then 1396 cat <<\_ACEOF 1397configure 1398generated by GNU Autoconf 2.69 1399 1400Copyright (C) 2012 Free Software Foundation, Inc. 1401This configure script is free software; the Free Software Foundation 1402gives unlimited permission to copy, distribute and modify it. 1403_ACEOF 1404 exit 1405fi 1406 1407## ------------------------ ## 1408## Autoconf initialization. ## 1409## ------------------------ ## 1410 1411# ac_fn_c_try_compile LINENO 1412# -------------------------- 1413# Try to compile conftest.$ac_ext, and return whether this succeeded. 1414ac_fn_c_try_compile () 1415{ 1416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1417 rm -f conftest.$ac_objext 1418 if { { ac_try="$ac_compile" 1419case "(($ac_try" in 1420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1421 *) ac_try_echo=$ac_try;; 1422esac 1423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1424$as_echo "$ac_try_echo"; } >&5 1425 (eval "$ac_compile") 2>conftest.err 1426 ac_status=$? 1427 if test -s conftest.err; then 1428 grep -v '^ *+' conftest.err >conftest.er1 1429 cat conftest.er1 >&5 1430 mv -f conftest.er1 conftest.err 1431 fi 1432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1433 test $ac_status = 0; } && { 1434 test -z "$ac_c_werror_flag" || 1435 test ! -s conftest.err 1436 } && test -s conftest.$ac_objext; then : 1437 ac_retval=0 1438else 1439 $as_echo "$as_me: failed program was:" >&5 1440sed 's/^/| /' conftest.$ac_ext >&5 1441 1442 ac_retval=1 1443fi 1444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1445 as_fn_set_status $ac_retval 1446 1447} # ac_fn_c_try_compile 1448 1449# ac_fn_c_try_cpp LINENO 1450# ---------------------- 1451# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1452ac_fn_c_try_cpp () 1453{ 1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1455 if { { ac_try="$ac_cpp conftest.$ac_ext" 1456case "(($ac_try" in 1457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1458 *) ac_try_echo=$ac_try;; 1459esac 1460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1461$as_echo "$ac_try_echo"; } >&5 1462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1463 ac_status=$? 1464 if test -s conftest.err; then 1465 grep -v '^ *+' conftest.err >conftest.er1 1466 cat conftest.er1 >&5 1467 mv -f conftest.er1 conftest.err 1468 fi 1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1470 test $ac_status = 0; } > conftest.i && { 1471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1472 test ! -s conftest.err 1473 }; then : 1474 ac_retval=0 1475else 1476 $as_echo "$as_me: failed program was:" >&5 1477sed 's/^/| /' conftest.$ac_ext >&5 1478 1479 ac_retval=1 1480fi 1481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1482 as_fn_set_status $ac_retval 1483 1484} # ac_fn_c_try_cpp 1485 1486# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1487# ------------------------------------------------------- 1488# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1489# the include files in INCLUDES and setting the cache variable VAR 1490# accordingly. 1491ac_fn_c_check_header_mongrel () 1492{ 1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1494 if eval \${$3+:} false; then : 1495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1496$as_echo_n "checking for $2... " >&6; } 1497if eval \${$3+:} false; then : 1498 $as_echo_n "(cached) " >&6 1499fi 1500eval ac_res=\$$3 1501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1502$as_echo "$ac_res" >&6; } 1503else 1504 # Is the header compilable? 1505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1506$as_echo_n "checking $2 usability... " >&6; } 1507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1508/* end confdefs.h. */ 1509$4 1510#include <$2> 1511_ACEOF 1512if ac_fn_c_try_compile "$LINENO"; then : 1513 ac_header_compiler=yes 1514else 1515 ac_header_compiler=no 1516fi 1517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1519$as_echo "$ac_header_compiler" >&6; } 1520 1521# Is the header present? 1522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1523$as_echo_n "checking $2 presence... " >&6; } 1524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1525/* end confdefs.h. */ 1526#include <$2> 1527_ACEOF 1528if ac_fn_c_try_cpp "$LINENO"; then : 1529 ac_header_preproc=yes 1530else 1531 ac_header_preproc=no 1532fi 1533rm -f conftest.err conftest.i conftest.$ac_ext 1534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1535$as_echo "$ac_header_preproc" >&6; } 1536 1537# So? What about this header? 1538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1539 yes:no: ) 1540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1541$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1543$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1544 ;; 1545 no:yes:* ) 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1547$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1549$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1551$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1553$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1555$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1556 ;; 1557esac 1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1559$as_echo_n "checking for $2... " >&6; } 1560if eval \${$3+:} false; then : 1561 $as_echo_n "(cached) " >&6 1562else 1563 eval "$3=\$ac_header_compiler" 1564fi 1565eval ac_res=\$$3 1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1567$as_echo "$ac_res" >&6; } 1568fi 1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1570 1571} # ac_fn_c_check_header_mongrel 1572 1573# ac_fn_c_try_run LINENO 1574# ---------------------- 1575# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1576# that executables *can* be run. 1577ac_fn_c_try_run () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 if { { ac_try="$ac_link" 1581case "(($ac_try" in 1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1583 *) ac_try_echo=$ac_try;; 1584esac 1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1586$as_echo "$ac_try_echo"; } >&5 1587 (eval "$ac_link") 2>&5 1588 ac_status=$? 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1591 { { case "(($ac_try" in 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *) ac_try_echo=$ac_try;; 1594esac 1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596$as_echo "$ac_try_echo"; } >&5 1597 (eval "$ac_try") 2>&5 1598 ac_status=$? 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; }; }; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: program exited with status $ac_status" >&5 1604 $as_echo "$as_me: failed program was:" >&5 1605sed 's/^/| /' conftest.$ac_ext >&5 1606 1607 ac_retval=$ac_status 1608fi 1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_run 1614 1615# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1616# ------------------------------------------------------- 1617# Tests whether HEADER exists and can be compiled using the include files in 1618# INCLUDES, setting the cache variable VAR accordingly. 1619ac_fn_c_check_header_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1623$as_echo_n "checking for $2... " >&6; } 1624if eval \${$3+:} false; then : 1625 $as_echo_n "(cached) " >&6 1626else 1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1628/* end confdefs.h. */ 1629$4 1630#include <$2> 1631_ACEOF 1632if ac_fn_c_try_compile "$LINENO"; then : 1633 eval "$3=yes" 1634else 1635 eval "$3=no" 1636fi 1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1638fi 1639eval ac_res=\$$3 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1641$as_echo "$ac_res" >&6; } 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 1644} # ac_fn_c_check_header_compile 1645 1646# ac_fn_c_try_link LINENO 1647# ----------------------- 1648# Try to link conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_link () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext conftest$ac_exeext 1653 if { { ac_try="$ac_link" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_link") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest$ac_exeext && { 1672 test "$cross_compiling" = yes || 1673 test -x conftest$ac_exeext 1674 }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1684 # interfere with the next link command; also delete a directory that is 1685 # left behind by Apple's compiler. We do this before executing the actions. 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_link 1691 1692# ac_fn_c_check_func LINENO FUNC VAR 1693# ---------------------------------- 1694# Tests whether FUNC exists, setting the cache variable VAR accordingly 1695ac_fn_c_check_func () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699$as_echo_n "checking for $2... " >&6; } 1700if eval \${$3+:} false; then : 1701 $as_echo_n "(cached) " >&6 1702else 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1706 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1707#define $2 innocuous_$2 1708 1709/* System header to define __stub macros and hopefully few prototypes, 1710 which can conflict with char $2 (); below. 1711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1712 <limits.h> exists even on freestanding compilers. */ 1713 1714#ifdef __STDC__ 1715# include <limits.h> 1716#else 1717# include <assert.h> 1718#endif 1719 1720#undef $2 1721 1722/* Override any GCC internal prototype to avoid an error. 1723 Use char because int might match the return type of a GCC 1724 builtin and then its argument prototype would still apply. */ 1725#ifdef __cplusplus 1726extern "C" 1727#endif 1728char $2 (); 1729/* The GNU C library defines this for functions which it implements 1730 to always fail with ENOSYS. Some functions are actually named 1731 something starting with __ and the normal name is an alias. */ 1732#if defined __stub_$2 || defined __stub___$2 1733choke me 1734#endif 1735 1736int 1737main () 1738{ 1739return $2 (); 1740 ; 1741 return 0; 1742} 1743_ACEOF 1744if ac_fn_c_try_link "$LINENO"; then : 1745 eval "$3=yes" 1746else 1747 eval "$3=no" 1748fi 1749rm -f core conftest.err conftest.$ac_objext \ 1750 conftest$ac_exeext conftest.$ac_ext 1751fi 1752eval ac_res=\$$3 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1754$as_echo "$ac_res" >&6; } 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 1757} # ac_fn_c_check_func 1758cat >config.log <<_ACEOF 1759This file contains any messages produced by compilers while 1760running configure, to aid debugging if configure makes a mistake. 1761 1762It was created by $as_me, which was 1763generated by GNU Autoconf 2.69. Invocation command line was 1764 1765 $ $0 $@ 1766 1767_ACEOF 1768exec 5>>config.log 1769{ 1770cat <<_ASUNAME 1771## --------- ## 1772## Platform. ## 1773## --------- ## 1774 1775hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1776uname -m = `(uname -m) 2>/dev/null || echo unknown` 1777uname -r = `(uname -r) 2>/dev/null || echo unknown` 1778uname -s = `(uname -s) 2>/dev/null || echo unknown` 1779uname -v = `(uname -v) 2>/dev/null || echo unknown` 1780 1781/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1782/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1783 1784/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1785/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1786/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1787/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1788/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1789/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1790/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1791 1792_ASUNAME 1793 1794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1795for as_dir in $PATH 1796do 1797 IFS=$as_save_IFS 1798 test -z "$as_dir" && as_dir=. 1799 $as_echo "PATH: $as_dir" 1800 done 1801IFS=$as_save_IFS 1802 1803} >&5 1804 1805cat >&5 <<_ACEOF 1806 1807 1808## ----------- ## 1809## Core tests. ## 1810## ----------- ## 1811 1812_ACEOF 1813 1814 1815# Keep a trace of the command line. 1816# Strip out --no-create and --no-recursion so they do not pile up. 1817# Strip out --silent because we don't want to record it for future runs. 1818# Also quote any args containing shell meta-characters. 1819# Make two passes to allow for proper duplicate-argument suppression. 1820ac_configure_args= 1821ac_configure_args0= 1822ac_configure_args1= 1823ac_must_keep_next=false 1824for ac_pass in 1 2 1825do 1826 for ac_arg 1827 do 1828 case $ac_arg in 1829 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1831 | -silent | --silent | --silen | --sile | --sil) 1832 continue ;; 1833 *\'*) 1834 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1835 esac 1836 case $ac_pass in 1837 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1838 2) 1839 as_fn_append ac_configure_args1 " '$ac_arg'" 1840 if test $ac_must_keep_next = true; then 1841 ac_must_keep_next=false # Got value, back to normal. 1842 else 1843 case $ac_arg in 1844 *=* | --config-cache | -C | -disable-* | --disable-* \ 1845 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1846 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1847 | -with-* | --with-* | -without-* | --without-* | --x) 1848 case "$ac_configure_args0 " in 1849 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1850 esac 1851 ;; 1852 -* ) ac_must_keep_next=true ;; 1853 esac 1854 fi 1855 as_fn_append ac_configure_args " '$ac_arg'" 1856 ;; 1857 esac 1858 done 1859done 1860{ ac_configure_args0=; unset ac_configure_args0;} 1861{ ac_configure_args1=; unset ac_configure_args1;} 1862 1863# When interrupted or exit'd, cleanup temporary files, and complete 1864# config.log. We remove comments because anyway the quotes in there 1865# would cause problems or look ugly. 1866# WARNING: Use '\'' to represent an apostrophe within the trap. 1867# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1868trap 'exit_status=$? 1869 # Save into config.log some information that might help in debugging. 1870 { 1871 echo 1872 1873 $as_echo "## ---------------- ## 1874## Cache variables. ## 1875## ---------------- ##" 1876 echo 1877 # The following way of writing the cache mishandles newlines in values, 1878( 1879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1880 eval ac_val=\$$ac_var 1881 case $ac_val in #( 1882 *${as_nl}*) 1883 case $ac_var in #( 1884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1885$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1886 esac 1887 case $ac_var in #( 1888 _ | IFS | as_nl) ;; #( 1889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1890 *) { eval $ac_var=; unset $ac_var;} ;; 1891 esac ;; 1892 esac 1893 done 1894 (set) 2>&1 | 1895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1896 *${as_nl}ac_space=\ *) 1897 sed -n \ 1898 "s/'\''/'\''\\\\'\'''\''/g; 1899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1900 ;; #( 1901 *) 1902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1903 ;; 1904 esac | 1905 sort 1906) 1907 echo 1908 1909 $as_echo "## ----------------- ## 1910## Output variables. ## 1911## ----------------- ##" 1912 echo 1913 for ac_var in $ac_subst_vars 1914 do 1915 eval ac_val=\$$ac_var 1916 case $ac_val in 1917 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1918 esac 1919 $as_echo "$ac_var='\''$ac_val'\''" 1920 done | sort 1921 echo 1922 1923 if test -n "$ac_subst_files"; then 1924 $as_echo "## ------------------- ## 1925## File substitutions. ## 1926## ------------------- ##" 1927 echo 1928 for ac_var in $ac_subst_files 1929 do 1930 eval ac_val=\$$ac_var 1931 case $ac_val in 1932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1933 esac 1934 $as_echo "$ac_var='\''$ac_val'\''" 1935 done | sort 1936 echo 1937 fi 1938 1939 if test -s confdefs.h; then 1940 $as_echo "## ----------- ## 1941## confdefs.h. ## 1942## ----------- ##" 1943 echo 1944 cat confdefs.h 1945 echo 1946 fi 1947 test "$ac_signal" != 0 && 1948 $as_echo "$as_me: caught signal $ac_signal" 1949 $as_echo "$as_me: exit $exit_status" 1950 } >&5 1951 rm -f core *.core core.conftest.* && 1952 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1953 exit $exit_status 1954' 0 1955for ac_signal in 1 2 13 15; do 1956 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1957done 1958ac_signal=0 1959 1960# confdefs.h avoids OS command line length limits that DEFS can exceed. 1961rm -f -r conftest* confdefs.h 1962 1963$as_echo "/* confdefs.h */" > confdefs.h 1964 1965# Predefined preprocessor variables. 1966 1967cat >>confdefs.h <<_ACEOF 1968#define PACKAGE_NAME "$PACKAGE_NAME" 1969_ACEOF 1970 1971cat >>confdefs.h <<_ACEOF 1972#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1973_ACEOF 1974 1975cat >>confdefs.h <<_ACEOF 1976#define PACKAGE_VERSION "$PACKAGE_VERSION" 1977_ACEOF 1978 1979cat >>confdefs.h <<_ACEOF 1980#define PACKAGE_STRING "$PACKAGE_STRING" 1981_ACEOF 1982 1983cat >>confdefs.h <<_ACEOF 1984#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1985_ACEOF 1986 1987cat >>confdefs.h <<_ACEOF 1988#define PACKAGE_URL "$PACKAGE_URL" 1989_ACEOF 1990 1991 1992# Let the site file select an alternate cache file if it wants to. 1993# Prefer an explicitly selected file to automatically selected ones. 1994ac_site_file1=NONE 1995ac_site_file2=NONE 1996if test -n "$CONFIG_SITE"; then 1997 # We do not want a PATH search for config.site. 1998 case $CONFIG_SITE in #(( 1999 -*) ac_site_file1=./$CONFIG_SITE;; 2000 */*) ac_site_file1=$CONFIG_SITE;; 2001 *) ac_site_file1=./$CONFIG_SITE;; 2002 esac 2003elif test "x$prefix" != xNONE; then 2004 ac_site_file1=$prefix/share/config.site 2005 ac_site_file2=$prefix/etc/config.site 2006else 2007 ac_site_file1=$ac_default_prefix/share/config.site 2008 ac_site_file2=$ac_default_prefix/etc/config.site 2009fi 2010for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2011do 2012 test "x$ac_site_file" = xNONE && continue 2013 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2015$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2016 sed 's/^/| /' "$ac_site_file" >&5 2017 . "$ac_site_file" \ 2018 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2020as_fn_error $? "failed to load site script $ac_site_file 2021See \`config.log' for more details" "$LINENO" 5; } 2022 fi 2023done 2024 2025if test -r "$cache_file"; then 2026 # Some versions of bash will fail to source /dev/null (special files 2027 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2030$as_echo "$as_me: loading cache $cache_file" >&6;} 2031 case $cache_file in 2032 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2033 *) . "./$cache_file";; 2034 esac 2035 fi 2036else 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2038$as_echo "$as_me: creating cache $cache_file" >&6;} 2039 >$cache_file 2040fi 2041 2042# Check that the precious variables saved in the cache have kept the same 2043# value. 2044ac_cache_corrupted=false 2045for ac_var in $ac_precious_vars; do 2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2047 eval ac_new_set=\$ac_env_${ac_var}_set 2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2049 eval ac_new_val=\$ac_env_${ac_var}_value 2050 case $ac_old_set,$ac_new_set in 2051 set,) 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2053$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2054 ac_cache_corrupted=: ;; 2055 ,set) 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2057$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2058 ac_cache_corrupted=: ;; 2059 ,);; 2060 *) 2061 if test "x$ac_old_val" != "x$ac_new_val"; then 2062 # differences in whitespace do not lead to failure. 2063 ac_old_val_w=`echo x $ac_old_val` 2064 ac_new_val_w=`echo x $ac_new_val` 2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2067$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2068 ac_cache_corrupted=: 2069 else 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2071$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2072 eval $ac_var=\$ac_old_val 2073 fi 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2075$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2077$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2078 fi;; 2079 esac 2080 # Pass precious variables to config.status. 2081 if test "$ac_new_set" = set; then 2082 case $ac_new_val in 2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2084 *) ac_arg=$ac_var=$ac_new_val ;; 2085 esac 2086 case " $ac_configure_args " in 2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2089 esac 2090 fi 2091done 2092if $ac_cache_corrupted; then 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2096$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2097 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2098fi 2099## -------------------- ## 2100## Main body of script. ## 2101## -------------------- ## 2102 2103ac_ext=c 2104ac_cpp='$CPP $CPPFLAGS' 2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2107ac_compiler_gnu=$ac_cv_c_compiler_gnu 2108 2109 2110 2111if test "${top_nmap_srcdir+set}" != set; then 2112 top_nmap_srcdir=../.. 2113 export top_nmap_srcdir 2114fi 2115 2116ac_config_files="$ac_config_files Makefile ../tests/Makefile" 2117 2118 2119ac_config_headers="$ac_config_headers ../include/nsock_config.h" 2120 2121 2122ac_aux_dir= 2123for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2124 if test -f "$ac_dir/install-sh"; then 2125 ac_aux_dir=$ac_dir 2126 ac_install_sh="$ac_aux_dir/install-sh -c" 2127 break 2128 elif test -f "$ac_dir/install.sh"; then 2129 ac_aux_dir=$ac_dir 2130 ac_install_sh="$ac_aux_dir/install.sh -c" 2131 break 2132 elif test -f "$ac_dir/shtool"; then 2133 ac_aux_dir=$ac_dir 2134 ac_install_sh="$ac_aux_dir/shtool install -c" 2135 break 2136 fi 2137done 2138if test -z "$ac_aux_dir"; then 2139 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2140fi 2141 2142# These three variables are undocumented and unsupported, 2143# and are intended to be withdrawn in a future Autoconf release. 2144# They can cause serious problems if a builder's source tree is in a directory 2145# whose full name contains unusual characters. 2146ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2147ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2148ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2149 2150 2151# Make sure we can run config.sub. 2152$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2153 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2154 2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2156$as_echo_n "checking build system type... " >&6; } 2157if ${ac_cv_build+:} false; then : 2158 $as_echo_n "(cached) " >&6 2159else 2160 ac_build_alias=$build_alias 2161test "x$ac_build_alias" = x && 2162 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2163test "x$ac_build_alias" = x && 2164 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2165ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2166 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2167 2168fi 2169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2170$as_echo "$ac_cv_build" >&6; } 2171case $ac_cv_build in 2172*-*-*) ;; 2173*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2174esac 2175build=$ac_cv_build 2176ac_save_IFS=$IFS; IFS='-' 2177set x $ac_cv_build 2178shift 2179build_cpu=$1 2180build_vendor=$2 2181shift; shift 2182# Remember, the first character of IFS is used to create $*, 2183# except with old shells: 2184build_os=$* 2185IFS=$ac_save_IFS 2186case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2187 2188 2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2190$as_echo_n "checking host system type... " >&6; } 2191if ${ac_cv_host+:} false; then : 2192 $as_echo_n "(cached) " >&6 2193else 2194 if test "x$host_alias" = x; then 2195 ac_cv_host=$ac_cv_build 2196else 2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2198 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2199fi 2200 2201fi 2202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2203$as_echo "$ac_cv_host" >&6; } 2204case $ac_cv_host in 2205*-*-*) ;; 2206*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2207esac 2208host=$ac_cv_host 2209ac_save_IFS=$IFS; IFS='-' 2210set x $ac_cv_host 2211shift 2212host_cpu=$1 2213host_vendor=$2 2214shift; shift 2215# Remember, the first character of IFS is used to create $*, 2216# except with old shells: 2217host_os=$* 2218IFS=$ac_save_IFS 2219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2220 2221 2222 2223 2224 2225 2226case "$host" in 2227 *alpha-dec-osf*) 2228 2229$as_echo "#define DEC 1" >>confdefs.h 2230 2231 ;; 2232 *-netbsd* | *-knetbsd*-gnu) 2233 2234$as_echo "#define NETBSD 1" >>confdefs.h 2235 2236 ;; 2237 *-openbsd*) 2238 2239$as_echo "#define OPENBSD 1" >>confdefs.h 2240 2241 ;; 2242 *-sgi-irix5*) 2243 $as_echo "#define IRIX 1" >>confdefs.h 2244 2245 ;; 2246 *-sgi-irix6*) 2247 $as_echo "#define IRIX 1" >>confdefs.h 2248 2249 ;; 2250 *-hpux*) 2251 2252$as_echo "#define HPUX 1" >>confdefs.h 2253 2254 ;; 2255 *-solaris2.1[1-9]*) 2256 $as_echo "#define SOLARIS 1" >>confdefs.h 2257 2258 # Solaris 11 and later use BPF packet capture rather than DLPI. 2259 2260$as_echo "#define SOLARIS_BPF_PCAP_CAPTURE 1" >>confdefs.h 2261 2262 ;; 2263 *-solaris2.0*) 2264 $as_echo "#define SOLARIS 1" >>confdefs.h 2265 2266 ;; 2267 *-solaris2.[1-9][0-9]*) 2268 $as_echo "#define SOLARIS 1" >>confdefs.h 2269 2270 ;; 2271 *-solaris2.1*) 2272 $as_echo "#define SOLARIS 1" >>confdefs.h 2273 2274 ;; 2275 *-solaris2.2*) 2276 $as_echo "#define SOLARIS 1" >>confdefs.h 2277 2278 ;; 2279 *-solaris2.3*) 2280 $as_echo "#define SOLARIS 1" >>confdefs.h 2281 2282 ;; 2283 *-solaris2.4*) 2284 $as_echo "#define SOLARIS 1" >>confdefs.h 2285 2286 ;; 2287 *-solaris2.5.1) 2288 $as_echo "#define SOLARIS 1" >>confdefs.h 2289 2290 ;; 2291 *-solaris*) 2292 $as_echo "#define SOLARIS 1" >>confdefs.h 2293 2294 ;; 2295 *-sunos4*) 2296 2297$as_echo "#define SUNOS 1" >>confdefs.h 2298 2299 ;; 2300 *-linux*) 2301 2302$as_echo "#define LINUX 1" >>confdefs.h 2303 2304 ;; 2305 *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*) 2306 2307$as_echo "#define FREEBSD 1" >>confdefs.h 2308 2309 ;; 2310 *-bsdi*) 2311 2312$as_echo "#define BSDI 1" >>confdefs.h 2313 2314 ;; 2315 *-apple-darwin*) 2316 2317$as_echo "#define MACOSX 1" >>confdefs.h 2318 2319 ;; 2320esac 2321 2322 2323 2324# Check whether --with-localdirs was given. 2325if test "${with_localdirs+set}" = set; then : 2326 withval=$with_localdirs; case "$with_localdirs" in 2327 yes) 2328 user_localdirs=1 2329 ;; 2330 no) 2331 user_localdirs=0 2332 ;; 2333 esac 2334 2335else 2336 user_localdirs=0 2337fi 2338 2339 2340if test "$user_localdirs" = 1; then 2341 if test -d /usr/local/lib; then 2342 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2343 fi 2344 if test -d /usr/local/include; then 2345 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 2346 fi 2347fi 2348 2349have_libpcap=no 2350 2351# By default, search for pcap library 2352test "${with_libpcap+set}" != "set" && with_libpcap=yes 2353 2354ac_ext=c 2355ac_cpp='$CPP $CPPFLAGS' 2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2358ac_compiler_gnu=$ac_cv_c_compiler_gnu 2359if test -n "$ac_tool_prefix"; then 2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2361set dummy ${ac_tool_prefix}gcc; ac_word=$2 2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2363$as_echo_n "checking for $ac_word... " >&6; } 2364if ${ac_cv_prog_CC+:} false; then : 2365 $as_echo_n "(cached) " >&6 2366else 2367 if test -n "$CC"; then 2368 ac_cv_prog_CC="$CC" # Let the user override the test. 2369else 2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2371for as_dir in $PATH 2372do 2373 IFS=$as_save_IFS 2374 test -z "$as_dir" && as_dir=. 2375 for ac_exec_ext in '' $ac_executable_extensions; do 2376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2377 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2379 break 2 2380 fi 2381done 2382 done 2383IFS=$as_save_IFS 2384 2385fi 2386fi 2387CC=$ac_cv_prog_CC 2388if test -n "$CC"; then 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2390$as_echo "$CC" >&6; } 2391else 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2393$as_echo "no" >&6; } 2394fi 2395 2396 2397fi 2398if test -z "$ac_cv_prog_CC"; then 2399 ac_ct_CC=$CC 2400 # Extract the first word of "gcc", so it can be a program name with args. 2401set dummy gcc; ac_word=$2 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2403$as_echo_n "checking for $ac_word... " >&6; } 2404if ${ac_cv_prog_ac_ct_CC+:} false; then : 2405 $as_echo_n "(cached) " >&6 2406else 2407 if test -n "$ac_ct_CC"; then 2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2409else 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 for ac_exec_ext in '' $ac_executable_extensions; do 2416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2417 ac_cv_prog_ac_ct_CC="gcc" 2418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2419 break 2 2420 fi 2421done 2422 done 2423IFS=$as_save_IFS 2424 2425fi 2426fi 2427ac_ct_CC=$ac_cv_prog_ac_ct_CC 2428if test -n "$ac_ct_CC"; then 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2430$as_echo "$ac_ct_CC" >&6; } 2431else 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2433$as_echo "no" >&6; } 2434fi 2435 2436 if test "x$ac_ct_CC" = x; then 2437 CC="" 2438 else 2439 case $cross_compiling:$ac_tool_warned in 2440yes:) 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2443ac_tool_warned=yes ;; 2444esac 2445 CC=$ac_ct_CC 2446 fi 2447else 2448 CC="$ac_cv_prog_CC" 2449fi 2450 2451if test -z "$CC"; then 2452 if test -n "$ac_tool_prefix"; then 2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2454set dummy ${ac_tool_prefix}cc; ac_word=$2 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if ${ac_cv_prog_CC+:} false; then : 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$CC"; then 2461 ac_cv_prog_CC="$CC" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2470 ac_cv_prog_CC="${ac_tool_prefix}cc" 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475 done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480CC=$ac_cv_prog_CC 2481if test -n "$CC"; then 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2483$as_echo "$CC" >&6; } 2484else 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 2490 fi 2491fi 2492if test -z "$CC"; then 2493 # Extract the first word of "cc", so it can be a program name with args. 2494set dummy cc; ac_word=$2 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2496$as_echo_n "checking for $ac_word... " >&6; } 2497if ${ac_cv_prog_CC+:} false; then : 2498 $as_echo_n "(cached) " >&6 2499else 2500 if test -n "$CC"; then 2501 ac_cv_prog_CC="$CC" # Let the user override the test. 2502else 2503 ac_prog_rejected=no 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505for as_dir in $PATH 2506do 2507 IFS=$as_save_IFS 2508 test -z "$as_dir" && as_dir=. 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2512 ac_prog_rejected=yes 2513 continue 2514 fi 2515 ac_cv_prog_CC="cc" 2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2517 break 2 2518 fi 2519done 2520 done 2521IFS=$as_save_IFS 2522 2523if test $ac_prog_rejected = yes; then 2524 # We found a bogon in the path, so make sure we never use it. 2525 set dummy $ac_cv_prog_CC 2526 shift 2527 if test $# != 0; then 2528 # We chose a different compiler from the bogus one. 2529 # However, it has the same basename, so the bogon will be chosen 2530 # first if we set CC to just the basename; use the full file name. 2531 shift 2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2533 fi 2534fi 2535fi 2536fi 2537CC=$ac_cv_prog_CC 2538if test -n "$CC"; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2540$as_echo "$CC" >&6; } 2541else 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2543$as_echo "no" >&6; } 2544fi 2545 2546 2547fi 2548if test -z "$CC"; then 2549 if test -n "$ac_tool_prefix"; then 2550 for ac_prog in cl.exe 2551 do 2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2553set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2555$as_echo_n "checking for $ac_word... " >&6; } 2556if ${ac_cv_prog_CC+:} false; then : 2557 $as_echo_n "(cached) " >&6 2558else 2559 if test -n "$CC"; then 2560 ac_cv_prog_CC="$CC" # Let the user override the test. 2561else 2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563for as_dir in $PATH 2564do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 for ac_exec_ext in '' $ac_executable_extensions; do 2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2571 break 2 2572 fi 2573done 2574 done 2575IFS=$as_save_IFS 2576 2577fi 2578fi 2579CC=$ac_cv_prog_CC 2580if test -n "$CC"; then 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2582$as_echo "$CC" >&6; } 2583else 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2585$as_echo "no" >&6; } 2586fi 2587 2588 2589 test -n "$CC" && break 2590 done 2591fi 2592if test -z "$CC"; then 2593 ac_ct_CC=$CC 2594 for ac_prog in cl.exe 2595do 2596 # Extract the first word of "$ac_prog", so it can be a program name with args. 2597set dummy $ac_prog; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if ${ac_cv_prog_ac_ct_CC+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$ac_ct_CC"; then 2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2613 ac_cv_prog_ac_ct_CC="$ac_prog" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623ac_ct_CC=$ac_cv_prog_ac_ct_CC 2624if test -n "$ac_ct_CC"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2626$as_echo "$ac_ct_CC" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 2633 test -n "$ac_ct_CC" && break 2634done 2635 2636 if test "x$ac_ct_CC" = x; then 2637 CC="" 2638 else 2639 case $cross_compiling:$ac_tool_warned in 2640yes:) 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2643ac_tool_warned=yes ;; 2644esac 2645 CC=$ac_ct_CC 2646 fi 2647fi 2648 2649fi 2650 2651 2652test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2654as_fn_error $? "no acceptable C compiler found in \$PATH 2655See \`config.log' for more details" "$LINENO" 5; } 2656 2657# Provide some information about the compiler. 2658$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2659set X $ac_compile 2660ac_compiler=$2 2661for ac_option in --version -v -V -qversion; do 2662 { { ac_try="$ac_compiler $ac_option >&5" 2663case "(($ac_try" in 2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2665 *) ac_try_echo=$ac_try;; 2666esac 2667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2668$as_echo "$ac_try_echo"; } >&5 2669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2670 ac_status=$? 2671 if test -s conftest.err; then 2672 sed '10a\ 2673... rest of stderr output deleted ... 2674 10q' conftest.err >conftest.er1 2675 cat conftest.er1 >&5 2676 fi 2677 rm -f conftest.er1 conftest.err 2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2679 test $ac_status = 0; } 2680done 2681 2682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2683/* end confdefs.h. */ 2684 2685int 2686main () 2687{ 2688 2689 ; 2690 return 0; 2691} 2692_ACEOF 2693ac_clean_files_save=$ac_clean_files 2694ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2695# Try to create an executable without -o first, disregard a.out. 2696# It will help us diagnose broken compilers, and finding out an intuition 2697# of exeext. 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2699$as_echo_n "checking whether the C compiler works... " >&6; } 2700ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2701 2702# The possible output files: 2703ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2704 2705ac_rmfiles= 2706for ac_file in $ac_files 2707do 2708 case $ac_file in 2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2711 esac 2712done 2713rm -f $ac_rmfiles 2714 2715if { { ac_try="$ac_link_default" 2716case "(($ac_try" in 2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2718 *) ac_try_echo=$ac_try;; 2719esac 2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2721$as_echo "$ac_try_echo"; } >&5 2722 (eval "$ac_link_default") 2>&5 2723 ac_status=$? 2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2725 test $ac_status = 0; }; then : 2726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2727# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2728# in a Makefile. We should not override ac_cv_exeext if it was cached, 2729# so that the user can short-circuit this test for compilers unknown to 2730# Autoconf. 2731for ac_file in $ac_files '' 2732do 2733 test -f "$ac_file" || continue 2734 case $ac_file in 2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2736 ;; 2737 [ab].out ) 2738 # We found the default executable, but exeext='' is most 2739 # certainly right. 2740 break;; 2741 *.* ) 2742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2743 then :; else 2744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2745 fi 2746 # We set ac_cv_exeext here because the later test for it is not 2747 # safe: cross compilers may not add the suffix if given an `-o' 2748 # argument, so we may need to know it at that point already. 2749 # Even if this section looks crufty: it has the advantage of 2750 # actually working. 2751 break;; 2752 * ) 2753 break;; 2754 esac 2755done 2756test "$ac_cv_exeext" = no && ac_cv_exeext= 2757 2758else 2759 ac_file='' 2760fi 2761if test -z "$ac_file"; then : 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2763$as_echo "no" >&6; } 2764$as_echo "$as_me: failed program was:" >&5 2765sed 's/^/| /' conftest.$ac_ext >&5 2766 2767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2769as_fn_error 77 "C compiler cannot create executables 2770See \`config.log' for more details" "$LINENO" 5; } 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2773$as_echo "yes" >&6; } 2774fi 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2776$as_echo_n "checking for C compiler default output file name... " >&6; } 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2778$as_echo "$ac_file" >&6; } 2779ac_exeext=$ac_cv_exeext 2780 2781rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2782ac_clean_files=$ac_clean_files_save 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2784$as_echo_n "checking for suffix of executables... " >&6; } 2785if { { ac_try="$ac_link" 2786case "(($ac_try" in 2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2788 *) ac_try_echo=$ac_try;; 2789esac 2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2791$as_echo "$ac_try_echo"; } >&5 2792 (eval "$ac_link") 2>&5 2793 ac_status=$? 2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2795 test $ac_status = 0; }; then : 2796 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2798# work properly (i.e., refer to `conftest.exe'), while it won't with 2799# `rm'. 2800for ac_file in conftest.exe conftest conftest.*; do 2801 test -f "$ac_file" || continue 2802 case $ac_file in 2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2805 break;; 2806 * ) break;; 2807 esac 2808done 2809else 2810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2812as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2813See \`config.log' for more details" "$LINENO" 5; } 2814fi 2815rm -f conftest conftest$ac_cv_exeext 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2817$as_echo "$ac_cv_exeext" >&6; } 2818 2819rm -f conftest.$ac_ext 2820EXEEXT=$ac_cv_exeext 2821ac_exeext=$EXEEXT 2822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2823/* end confdefs.h. */ 2824#include <stdio.h> 2825int 2826main () 2827{ 2828FILE *f = fopen ("conftest.out", "w"); 2829 return ferror (f) || fclose (f) != 0; 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835ac_clean_files="$ac_clean_files conftest.out" 2836# Check that the compiler produces executables we can run. If not, either 2837# the compiler is broken, or we cross compile. 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2839$as_echo_n "checking whether we are cross compiling... " >&6; } 2840if test "$cross_compiling" != yes; then 2841 { { ac_try="$ac_link" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2847$as_echo "$ac_try_echo"; } >&5 2848 (eval "$ac_link") 2>&5 2849 ac_status=$? 2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2851 test $ac_status = 0; } 2852 if { ac_try='./conftest$ac_cv_exeext' 2853 { { case "(($ac_try" in 2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2855 *) ac_try_echo=$ac_try;; 2856esac 2857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2858$as_echo "$ac_try_echo"; } >&5 2859 (eval "$ac_try") 2>&5 2860 ac_status=$? 2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2862 test $ac_status = 0; }; }; then 2863 cross_compiling=no 2864 else 2865 if test "$cross_compiling" = maybe; then 2866 cross_compiling=yes 2867 else 2868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2870as_fn_error $? "cannot run C compiled programs. 2871If you meant to cross compile, use \`--host'. 2872See \`config.log' for more details" "$LINENO" 5; } 2873 fi 2874 fi 2875fi 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2877$as_echo "$cross_compiling" >&6; } 2878 2879rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2880ac_clean_files=$ac_clean_files_save 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2882$as_echo_n "checking for suffix of object files... " >&6; } 2883if ${ac_cv_objext+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2887/* end confdefs.h. */ 2888 2889int 2890main () 2891{ 2892 2893 ; 2894 return 0; 2895} 2896_ACEOF 2897rm -f conftest.o conftest.obj 2898if { { ac_try="$ac_compile" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2904$as_echo "$ac_try_echo"; } >&5 2905 (eval "$ac_compile") 2>&5 2906 ac_status=$? 2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2908 test $ac_status = 0; }; then : 2909 for ac_file in conftest.o conftest.obj conftest.*; do 2910 test -f "$ac_file" || continue; 2911 case $ac_file in 2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2914 break;; 2915 esac 2916done 2917else 2918 $as_echo "$as_me: failed program was:" >&5 2919sed 's/^/| /' conftest.$ac_ext >&5 2920 2921{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2923as_fn_error $? "cannot compute suffix of object files: cannot compile 2924See \`config.log' for more details" "$LINENO" 5; } 2925fi 2926rm -f conftest.$ac_cv_objext conftest.$ac_ext 2927fi 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2929$as_echo "$ac_cv_objext" >&6; } 2930OBJEXT=$ac_cv_objext 2931ac_objext=$OBJEXT 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2933$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2934if ${ac_cv_c_compiler_gnu+:} false; then : 2935 $as_echo_n "(cached) " >&6 2936else 2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2938/* end confdefs.h. */ 2939 2940int 2941main () 2942{ 2943#ifndef __GNUC__ 2944 choke me 2945#endif 2946 2947 ; 2948 return 0; 2949} 2950_ACEOF 2951if ac_fn_c_try_compile "$LINENO"; then : 2952 ac_compiler_gnu=yes 2953else 2954 ac_compiler_gnu=no 2955fi 2956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2957ac_cv_c_compiler_gnu=$ac_compiler_gnu 2958 2959fi 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2961$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2962if test $ac_compiler_gnu = yes; then 2963 GCC=yes 2964else 2965 GCC= 2966fi 2967ac_test_CFLAGS=${CFLAGS+set} 2968ac_save_CFLAGS=$CFLAGS 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2970$as_echo_n "checking whether $CC accepts -g... " >&6; } 2971if ${ac_cv_prog_cc_g+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 ac_save_c_werror_flag=$ac_c_werror_flag 2975 ac_c_werror_flag=yes 2976 ac_cv_prog_cc_g=no 2977 CFLAGS="-g" 2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2979/* end confdefs.h. */ 2980 2981int 2982main () 2983{ 2984 2985 ; 2986 return 0; 2987} 2988_ACEOF 2989if ac_fn_c_try_compile "$LINENO"; then : 2990 ac_cv_prog_cc_g=yes 2991else 2992 CFLAGS="" 2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2994/* end confdefs.h. */ 2995 2996int 2997main () 2998{ 2999 3000 ; 3001 return 0; 3002} 3003_ACEOF 3004if ac_fn_c_try_compile "$LINENO"; then : 3005 3006else 3007 ac_c_werror_flag=$ac_save_c_werror_flag 3008 CFLAGS="-g" 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010/* end confdefs.h. */ 3011 3012int 3013main () 3014{ 3015 3016 ; 3017 return 0; 3018} 3019_ACEOF 3020if ac_fn_c_try_compile "$LINENO"; then : 3021 ac_cv_prog_cc_g=yes 3022fi 3023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3024fi 3025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3026fi 3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3028 ac_c_werror_flag=$ac_save_c_werror_flag 3029fi 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3031$as_echo "$ac_cv_prog_cc_g" >&6; } 3032if test "$ac_test_CFLAGS" = set; then 3033 CFLAGS=$ac_save_CFLAGS 3034elif test $ac_cv_prog_cc_g = yes; then 3035 if test "$GCC" = yes; then 3036 CFLAGS="-g -O2" 3037 else 3038 CFLAGS="-g" 3039 fi 3040else 3041 if test "$GCC" = yes; then 3042 CFLAGS="-O2" 3043 else 3044 CFLAGS= 3045 fi 3046fi 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3048$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3049if ${ac_cv_prog_cc_c89+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 ac_cv_prog_cc_c89=no 3053ac_save_CC=$CC 3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3055/* end confdefs.h. */ 3056#include <stdarg.h> 3057#include <stdio.h> 3058struct stat; 3059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3060struct buf { int x; }; 3061FILE * (*rcsopen) (struct buf *, struct stat *, int); 3062static char *e (p, i) 3063 char **p; 3064 int i; 3065{ 3066 return p[i]; 3067} 3068static char *f (char * (*g) (char **, int), char **p, ...) 3069{ 3070 char *s; 3071 va_list v; 3072 va_start (v,p); 3073 s = g (p, va_arg (v,int)); 3074 va_end (v); 3075 return s; 3076} 3077 3078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3079 function prototypes and stuff, but not '\xHH' hex character constants. 3080 These don't provoke an error unfortunately, instead are silently treated 3081 as 'x'. The following induces an error, until -std is added to get 3082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3083 array size at least. It's necessary to write '\x00'==0 to get something 3084 that's true only with -std. */ 3085int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3086 3087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3088 inside strings and character constants. */ 3089#define FOO(x) 'x' 3090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3091 3092int test (int i, double x); 3093struct s1 {int (*f) (int a);}; 3094struct s2 {int (*f) (double a);}; 3095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3096int argc; 3097char **argv; 3098int 3099main () 3100{ 3101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3102 ; 3103 return 0; 3104} 3105_ACEOF 3106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3108do 3109 CC="$ac_save_CC $ac_arg" 3110 if ac_fn_c_try_compile "$LINENO"; then : 3111 ac_cv_prog_cc_c89=$ac_arg 3112fi 3113rm -f core conftest.err conftest.$ac_objext 3114 test "x$ac_cv_prog_cc_c89" != "xno" && break 3115done 3116rm -f conftest.$ac_ext 3117CC=$ac_save_CC 3118 3119fi 3120# AC_CACHE_VAL 3121case "x$ac_cv_prog_cc_c89" in 3122 x) 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3124$as_echo "none needed" >&6; } ;; 3125 xno) 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3127$as_echo "unsupported" >&6; } ;; 3128 *) 3129 CC="$CC $ac_cv_prog_cc_c89" 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3132esac 3133if test "x$ac_cv_prog_cc_c89" != xno; then : 3134 3135fi 3136 3137ac_ext=c 3138ac_cpp='$CPP $CPPFLAGS' 3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3141ac_compiler_gnu=$ac_cv_c_compiler_gnu 3142 3143 3144ac_ext=c 3145ac_cpp='$CPP $CPPFLAGS' 3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3148ac_compiler_gnu=$ac_cv_c_compiler_gnu 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3150$as_echo_n "checking how to run the C preprocessor... " >&6; } 3151# On Suns, sometimes $CPP names a directory. 3152if test -n "$CPP" && test -d "$CPP"; then 3153 CPP= 3154fi 3155if test -z "$CPP"; then 3156 if ${ac_cv_prog_CPP+:} false; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 # Double quotes because CPP needs to be expanded 3160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3161 do 3162 ac_preproc_ok=false 3163for ac_c_preproc_warn_flag in '' yes 3164do 3165 # Use a header file that comes with gcc, so configuring glibc 3166 # with a fresh cross-compiler works. 3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3168 # <limits.h> exists even on freestanding compilers. 3169 # On the NeXT, cc -E runs the code through the compiler's parser, 3170 # not just through cpp. "Syntax error" is here to catch this case. 3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3172/* end confdefs.h. */ 3173#ifdef __STDC__ 3174# include <limits.h> 3175#else 3176# include <assert.h> 3177#endif 3178 Syntax error 3179_ACEOF 3180if ac_fn_c_try_cpp "$LINENO"; then : 3181 3182else 3183 # Broken: fails on valid input. 3184continue 3185fi 3186rm -f conftest.err conftest.i conftest.$ac_ext 3187 3188 # OK, works on sane cases. Now check whether nonexistent headers 3189 # can be detected and how. 3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3191/* end confdefs.h. */ 3192#include <ac_nonexistent.h> 3193_ACEOF 3194if ac_fn_c_try_cpp "$LINENO"; then : 3195 # Broken: success on invalid input. 3196continue 3197else 3198 # Passes both tests. 3199ac_preproc_ok=: 3200break 3201fi 3202rm -f conftest.err conftest.i conftest.$ac_ext 3203 3204done 3205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3206rm -f conftest.i conftest.err conftest.$ac_ext 3207if $ac_preproc_ok; then : 3208 break 3209fi 3210 3211 done 3212 ac_cv_prog_CPP=$CPP 3213 3214fi 3215 CPP=$ac_cv_prog_CPP 3216else 3217 ac_cv_prog_CPP=$CPP 3218fi 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3220$as_echo "$CPP" >&6; } 3221ac_preproc_ok=false 3222for ac_c_preproc_warn_flag in '' yes 3223do 3224 # Use a header file that comes with gcc, so configuring glibc 3225 # with a fresh cross-compiler works. 3226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3227 # <limits.h> exists even on freestanding compilers. 3228 # On the NeXT, cc -E runs the code through the compiler's parser, 3229 # not just through cpp. "Syntax error" is here to catch this case. 3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3231/* end confdefs.h. */ 3232#ifdef __STDC__ 3233# include <limits.h> 3234#else 3235# include <assert.h> 3236#endif 3237 Syntax error 3238_ACEOF 3239if ac_fn_c_try_cpp "$LINENO"; then : 3240 3241else 3242 # Broken: fails on valid input. 3243continue 3244fi 3245rm -f conftest.err conftest.i conftest.$ac_ext 3246 3247 # OK, works on sane cases. Now check whether nonexistent headers 3248 # can be detected and how. 3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251#include <ac_nonexistent.h> 3252_ACEOF 3253if ac_fn_c_try_cpp "$LINENO"; then : 3254 # Broken: success on invalid input. 3255continue 3256else 3257 # Passes both tests. 3258ac_preproc_ok=: 3259break 3260fi 3261rm -f conftest.err conftest.i conftest.$ac_ext 3262 3263done 3264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3265rm -f conftest.i conftest.err conftest.$ac_ext 3266if $ac_preproc_ok; then : 3267 3268else 3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3271as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3272See \`config.log' for more details" "$LINENO" 5; } 3273fi 3274 3275ac_ext=c 3276ac_cpp='$CPP $CPPFLAGS' 3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3279ac_compiler_gnu=$ac_cv_c_compiler_gnu 3280 3281 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3283$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3284if ${ac_cv_path_GREP+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 if test -z "$GREP"; then 3288 ac_path_GREP_found=false 3289 # Loop through the user's path and test for each of PROGNAME-LIST 3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_prog in grep ggrep; do 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3298 as_fn_executable_p "$ac_path_GREP" || continue 3299# Check for GNU ac_path_GREP and select it if it is found. 3300 # Check for GNU $ac_path_GREP 3301case `"$ac_path_GREP" --version 2>&1` in 3302*GNU*) 3303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3304*) 3305 ac_count=0 3306 $as_echo_n 0123456789 >"conftest.in" 3307 while : 3308 do 3309 cat "conftest.in" "conftest.in" >"conftest.tmp" 3310 mv "conftest.tmp" "conftest.in" 3311 cp "conftest.in" "conftest.nl" 3312 $as_echo 'GREP' >> "conftest.nl" 3313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3315 as_fn_arith $ac_count + 1 && ac_count=$as_val 3316 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3317 # Best one so far, save it but keep looking for a better one 3318 ac_cv_path_GREP="$ac_path_GREP" 3319 ac_path_GREP_max=$ac_count 3320 fi 3321 # 10*(2^10) chars as input seems more than enough 3322 test $ac_count -gt 10 && break 3323 done 3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3325esac 3326 3327 $ac_path_GREP_found && break 3 3328 done 3329 done 3330 done 3331IFS=$as_save_IFS 3332 if test -z "$ac_cv_path_GREP"; then 3333 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3334 fi 3335else 3336 ac_cv_path_GREP=$GREP 3337fi 3338 3339fi 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3341$as_echo "$ac_cv_path_GREP" >&6; } 3342 GREP="$ac_cv_path_GREP" 3343 3344 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3346$as_echo_n "checking for egrep... " >&6; } 3347if ${ac_cv_path_EGREP+:} false; then : 3348 $as_echo_n "(cached) " >&6 3349else 3350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3351 then ac_cv_path_EGREP="$GREP -E" 3352 else 3353 if test -z "$EGREP"; then 3354 ac_path_EGREP_found=false 3355 # Loop through the user's path and test for each of PROGNAME-LIST 3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_prog in egrep; do 3362 for ac_exec_ext in '' $ac_executable_extensions; do 3363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3364 as_fn_executable_p "$ac_path_EGREP" || continue 3365# Check for GNU ac_path_EGREP and select it if it is found. 3366 # Check for GNU $ac_path_EGREP 3367case `"$ac_path_EGREP" --version 2>&1` in 3368*GNU*) 3369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3370*) 3371 ac_count=0 3372 $as_echo_n 0123456789 >"conftest.in" 3373 while : 3374 do 3375 cat "conftest.in" "conftest.in" >"conftest.tmp" 3376 mv "conftest.tmp" "conftest.in" 3377 cp "conftest.in" "conftest.nl" 3378 $as_echo 'EGREP' >> "conftest.nl" 3379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3381 as_fn_arith $ac_count + 1 && ac_count=$as_val 3382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3383 # Best one so far, save it but keep looking for a better one 3384 ac_cv_path_EGREP="$ac_path_EGREP" 3385 ac_path_EGREP_max=$ac_count 3386 fi 3387 # 10*(2^10) chars as input seems more than enough 3388 test $ac_count -gt 10 && break 3389 done 3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3391esac 3392 3393 $ac_path_EGREP_found && break 3 3394 done 3395 done 3396 done 3397IFS=$as_save_IFS 3398 if test -z "$ac_cv_path_EGREP"; then 3399 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3400 fi 3401else 3402 ac_cv_path_EGREP=$EGREP 3403fi 3404 3405 fi 3406fi 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3408$as_echo "$ac_cv_path_EGREP" >&6; } 3409 EGREP="$ac_cv_path_EGREP" 3410 3411 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3413$as_echo_n "checking for ANSI C header files... " >&6; } 3414if ${ac_cv_header_stdc+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418/* end confdefs.h. */ 3419#include <stdlib.h> 3420#include <stdarg.h> 3421#include <string.h> 3422#include <float.h> 3423 3424int 3425main () 3426{ 3427 3428 ; 3429 return 0; 3430} 3431_ACEOF 3432if ac_fn_c_try_compile "$LINENO"; then : 3433 ac_cv_header_stdc=yes 3434else 3435 ac_cv_header_stdc=no 3436fi 3437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3438 3439if test $ac_cv_header_stdc = yes; then 3440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442/* end confdefs.h. */ 3443#include <string.h> 3444 3445_ACEOF 3446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3447 $EGREP "memchr" >/dev/null 2>&1; then : 3448 3449else 3450 ac_cv_header_stdc=no 3451fi 3452rm -f conftest* 3453 3454fi 3455 3456if test $ac_cv_header_stdc = yes; then 3457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3459/* end confdefs.h. */ 3460#include <stdlib.h> 3461 3462_ACEOF 3463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3464 $EGREP "free" >/dev/null 2>&1; then : 3465 3466else 3467 ac_cv_header_stdc=no 3468fi 3469rm -f conftest* 3470 3471fi 3472 3473if test $ac_cv_header_stdc = yes; then 3474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3475 if test "$cross_compiling" = yes; then : 3476 : 3477else 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480#include <ctype.h> 3481#include <stdlib.h> 3482#if ((' ' & 0x0FF) == 0x020) 3483# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3484# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3485#else 3486# define ISLOWER(c) \ 3487 (('a' <= (c) && (c) <= 'i') \ 3488 || ('j' <= (c) && (c) <= 'r') \ 3489 || ('s' <= (c) && (c) <= 'z')) 3490# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3491#endif 3492 3493#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3494int 3495main () 3496{ 3497 int i; 3498 for (i = 0; i < 256; i++) 3499 if (XOR (islower (i), ISLOWER (i)) 3500 || toupper (i) != TOUPPER (i)) 3501 return 2; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_run "$LINENO"; then : 3506 3507else 3508 ac_cv_header_stdc=no 3509fi 3510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3511 conftest.$ac_objext conftest.beam conftest.$ac_ext 3512fi 3513 3514fi 3515fi 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3517$as_echo "$ac_cv_header_stdc" >&6; } 3518if test $ac_cv_header_stdc = yes; then 3519 3520$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3521 3522fi 3523 3524# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3526 inttypes.h stdint.h unistd.h 3527do : 3528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3529ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3530" 3531if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3532 cat >>confdefs.h <<_ACEOF 3533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3534_ACEOF 3535 3536fi 3537 3538done 3539 3540 3541 3542# Check whether --with-libpcap was given. 3543if test "${with_libpcap+set}" = set; then : 3544 withval=$with_libpcap; case "$with_libpcap" in 3545 yes) 3546 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" 3547if test "x$ac_cv_header_pcap_h" = xyes; then : 3548 3549 have_libpcap=yes 3550 LIBPCAP_LIBS=-lpcap 3551fi 3552 3553 3554 ;; 3555 included) 3556 have_libpcap=no 3557 ;; 3558 no) 3559 ;; 3560 *) 3561 _cppflags=$CPPFLAGS 3562 _ldflags=$LDFLAGS 3563 3564 CPPFLAGS="-I$with_libpcap/include $CPPFLAGS" 3565 LDFLAGS="-L$with_libpcap/lib $LDFLAGS" 3566 3567 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" 3568if test "x$ac_cv_header_pcap_h" = xyes; then : 3569 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink in -lpcap" >&5 3571$as_echo_n "checking for pcap_datalink in -lpcap... " >&6; } 3572if ${ac_cv_lib_pcap_pcap_datalink+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 ac_check_lib_save_LIBS=$LIBS 3576LIBS="-lpcap $LIBS" 3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579 3580/* Override any GCC internal prototype to avoid an error. 3581 Use char because int might match the return type of a GCC 3582 builtin and then its argument prototype would still apply. */ 3583#ifdef __cplusplus 3584extern "C" 3585#endif 3586char pcap_datalink (); 3587int 3588main () 3589{ 3590return pcap_datalink (); 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_link "$LINENO"; then : 3596 ac_cv_lib_pcap_pcap_datalink=yes 3597else 3598 ac_cv_lib_pcap_pcap_datalink=no 3599fi 3600rm -f core conftest.err conftest.$ac_objext \ 3601 conftest$ac_exeext conftest.$ac_ext 3602LIBS=$ac_check_lib_save_LIBS 3603fi 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_datalink" >&5 3605$as_echo "$ac_cv_lib_pcap_pcap_datalink" >&6; } 3606if test "x$ac_cv_lib_pcap_pcap_datalink" = xyes; then : 3607 have_libpcap=yes 3608 LIBPCAP_LIBS=-lpcap 3609 LIBPCAP_INC=$with_libpcap/include 3610 LIBPCAP_LIB=$with_libpcap/lib 3611fi 3612 3613fi 3614 3615 3616 3617 LDFLAGS=$_ldflags 3618 CPPFLAGS=$_cppflags 3619 ;; 3620 esac 3621 3622fi 3623 3624 3625if test "$with_libpcap" != "no" -a "$have_libpcap" = "no"; then 3626 LIBPCAP_INC=${top_nmap_srcdir}/libpcap 3627 LIBPCAP_LIB=${top_nmap_srcdir}/libpcap 3628 LIBPCAP_LIBS=${LIBPCAP_LIB}/libpcap.a 3629 have_libpcap=yes 3630fi 3631if test "$have_libpcap" != "no"; then 3632 3633$as_echo "#define HAVE_PCAP 1" >>confdefs.h 3634 3635 if test "${LIBPCAP_INC+set}" = "set"; then 3636 CPPFLAGS="-I$LIBPCAP_INC $CPPFLAGS" 3637 LDFLAGS="-L$LIBPCAP_LIB $LDFLAGS" 3638 fi 3639fi 3640 3641 3642 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap" >&5 3644$as_echo_n "checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap... " >&6; } 3645 if ${ac_cv_have_pcap_netmask_unknown+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3649/* end confdefs.h. */ 3650 3651 #include <pcap.h> 3652 3653int 3654main () 3655{ 3656 3657 int i = PCAP_NETMASK_UNKNOWN; 3658 3659 ; 3660 return 0; 3661} 3662_ACEOF 3663if ac_fn_c_try_compile "$LINENO"; then : 3664 ac_cv_have_pcap_netmask_unknown=yes 3665else 3666 ac_cv_have_pcap_netmask_unknown=no 3667fi 3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3669fi 3670 3671 if test $ac_cv_have_pcap_netmask_unknown = no; then 3672 3673$as_echo "#define PCAP_NETMASK_UNKNOWN 0" >>confdefs.h 3674 3675 fi 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcap_netmask_unknown" >&5 3677$as_echo "$ac_cv_have_pcap_netmask_unknown" >&6; } 3678 3679 3680 ax_have_epoll_cppflags="${CPPFLAGS}" 3681 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 3682if test "x$ac_cv_header_linux_version_h" = xyes; then : 3683 CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H" 3684fi 3685 3686 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5 3688$as_echo_n "checking for Linux epoll(7) interface... " >&6; } 3689 if ${ax_cv_have_epoll+:} false; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 #include <sys/epoll.h> 3695#ifdef HAVE_LINUX_VERSION_H 3696# include <linux/version.h> 3697# if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) 3698# error linux kernel version is too old to have epoll 3699# endif 3700#endif 3701 3702int 3703main () 3704{ 3705int fd, rc; 3706struct epoll_event ev; 3707fd = epoll_create(128); 3708rc = epoll_wait(fd, &ev, 1, 0); 3709 ; 3710 return 0; 3711} 3712_ACEOF 3713if ac_fn_c_try_link "$LINENO"; then : 3714 ax_cv_have_epoll=yes 3715else 3716 ax_cv_have_epoll=no 3717fi 3718rm -f core conftest.err conftest.$ac_objext \ 3719 conftest$ac_exeext conftest.$ac_ext 3720fi 3721 3722 CPPFLAGS="${ax_have_epoll_cppflags}" 3723 if test "${ax_cv_have_epoll}" = "yes"; then : 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3725$as_echo "yes" >&6; } 3726 3727$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 3728 3729else 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731$as_echo "no" >&6; } 3732 3733fi 3734 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5 3736$as_echo_n "checking for poll(2)... " >&6; } 3737 if ${ax_cv_have_poll+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 #include <poll.h> 3743int 3744main () 3745{ 3746int rc; rc = poll((struct pollfd *)(0), 0, 0); 3747 ; 3748 return 0; 3749} 3750_ACEOF 3751if ac_fn_c_try_link "$LINENO"; then : 3752 ax_cv_have_poll=yes 3753else 3754 ax_cv_have_poll=no 3755fi 3756rm -f core conftest.err conftest.$ac_objext \ 3757 conftest$ac_exeext conftest.$ac_ext 3758fi 3759 3760 if test "${ax_cv_have_poll}" = "yes"; then : 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3762$as_echo "yes" >&6; } 3763 3764$as_echo "#define HAVE_POLL 1" >>confdefs.h 3765 3766else 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768$as_echo "no" >&6; } 3769 3770fi 3771 3772for ac_func in kqueue kevent 3773do : 3774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 3775ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 3776if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 3777 cat >>confdefs.h <<_ACEOF 3778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 3779_ACEOF 3780 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 3781 3782fi 3783done 3784 3785 3786ac_ext=c 3787ac_cpp='$CPP $CPPFLAGS' 3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790ac_compiler_gnu=$ac_cv_c_compiler_gnu 3791if test -n "$ac_tool_prefix"; then 3792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3793set dummy ${ac_tool_prefix}gcc; ac_word=$2 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3795$as_echo_n "checking for $ac_word... " >&6; } 3796if ${ac_cv_prog_CC+:} false; then : 3797 $as_echo_n "(cached) " >&6 3798else 3799 if test -n "$CC"; then 3800 ac_cv_prog_CC="$CC" # Let the user override the test. 3801else 3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3803for as_dir in $PATH 3804do 3805 IFS=$as_save_IFS 3806 test -z "$as_dir" && as_dir=. 3807 for ac_exec_ext in '' $ac_executable_extensions; do 3808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3809 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3811 break 2 3812 fi 3813done 3814 done 3815IFS=$as_save_IFS 3816 3817fi 3818fi 3819CC=$ac_cv_prog_CC 3820if test -n "$CC"; then 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3822$as_echo "$CC" >&6; } 3823else 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825$as_echo "no" >&6; } 3826fi 3827 3828 3829fi 3830if test -z "$ac_cv_prog_CC"; then 3831 ac_ct_CC=$CC 3832 # Extract the first word of "gcc", so it can be a program name with args. 3833set dummy gcc; ac_word=$2 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3835$as_echo_n "checking for $ac_word... " >&6; } 3836if ${ac_cv_prog_ac_ct_CC+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 if test -n "$ac_ct_CC"; then 3840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3841else 3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3843for as_dir in $PATH 3844do 3845 IFS=$as_save_IFS 3846 test -z "$as_dir" && as_dir=. 3847 for ac_exec_ext in '' $ac_executable_extensions; do 3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3849 ac_cv_prog_ac_ct_CC="gcc" 3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3851 break 2 3852 fi 3853done 3854 done 3855IFS=$as_save_IFS 3856 3857fi 3858fi 3859ac_ct_CC=$ac_cv_prog_ac_ct_CC 3860if test -n "$ac_ct_CC"; then 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3862$as_echo "$ac_ct_CC" >&6; } 3863else 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3865$as_echo "no" >&6; } 3866fi 3867 3868 if test "x$ac_ct_CC" = x; then 3869 CC="" 3870 else 3871 case $cross_compiling:$ac_tool_warned in 3872yes:) 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3875ac_tool_warned=yes ;; 3876esac 3877 CC=$ac_ct_CC 3878 fi 3879else 3880 CC="$ac_cv_prog_CC" 3881fi 3882 3883if test -z "$CC"; then 3884 if test -n "$ac_tool_prefix"; then 3885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3886set dummy ${ac_tool_prefix}cc; ac_word=$2 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3888$as_echo_n "checking for $ac_word... " >&6; } 3889if ${ac_cv_prog_CC+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 if test -n "$CC"; then 3893 ac_cv_prog_CC="$CC" # Let the user override the test. 3894else 3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896for as_dir in $PATH 3897do 3898 IFS=$as_save_IFS 3899 test -z "$as_dir" && as_dir=. 3900 for ac_exec_ext in '' $ac_executable_extensions; do 3901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3902 ac_cv_prog_CC="${ac_tool_prefix}cc" 3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3904 break 2 3905 fi 3906done 3907 done 3908IFS=$as_save_IFS 3909 3910fi 3911fi 3912CC=$ac_cv_prog_CC 3913if test -n "$CC"; then 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3915$as_echo "$CC" >&6; } 3916else 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3918$as_echo "no" >&6; } 3919fi 3920 3921 3922 fi 3923fi 3924if test -z "$CC"; then 3925 # Extract the first word of "cc", so it can be a program name with args. 3926set dummy cc; ac_word=$2 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3928$as_echo_n "checking for $ac_word... " >&6; } 3929if ${ac_cv_prog_CC+:} false; then : 3930 $as_echo_n "(cached) " >&6 3931else 3932 if test -n "$CC"; then 3933 ac_cv_prog_CC="$CC" # Let the user override the test. 3934else 3935 ac_prog_rejected=no 3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3937for as_dir in $PATH 3938do 3939 IFS=$as_save_IFS 3940 test -z "$as_dir" && as_dir=. 3941 for ac_exec_ext in '' $ac_executable_extensions; do 3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3944 ac_prog_rejected=yes 3945 continue 3946 fi 3947 ac_cv_prog_CC="cc" 3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3949 break 2 3950 fi 3951done 3952 done 3953IFS=$as_save_IFS 3954 3955if test $ac_prog_rejected = yes; then 3956 # We found a bogon in the path, so make sure we never use it. 3957 set dummy $ac_cv_prog_CC 3958 shift 3959 if test $# != 0; then 3960 # We chose a different compiler from the bogus one. 3961 # However, it has the same basename, so the bogon will be chosen 3962 # first if we set CC to just the basename; use the full file name. 3963 shift 3964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3965 fi 3966fi 3967fi 3968fi 3969CC=$ac_cv_prog_CC 3970if test -n "$CC"; then 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3972$as_echo "$CC" >&6; } 3973else 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3975$as_echo "no" >&6; } 3976fi 3977 3978 3979fi 3980if test -z "$CC"; then 3981 if test -n "$ac_tool_prefix"; then 3982 for ac_prog in cl.exe 3983 do 3984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3987$as_echo_n "checking for $ac_word... " >&6; } 3988if ${ac_cv_prog_CC+:} false; then : 3989 $as_echo_n "(cached) " >&6 3990else 3991 if test -n "$CC"; then 3992 ac_cv_prog_CC="$CC" # Let the user override the test. 3993else 3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3995for as_dir in $PATH 3996do 3997 IFS=$as_save_IFS 3998 test -z "$as_dir" && as_dir=. 3999 for ac_exec_ext in '' $ac_executable_extensions; do 4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4003 break 2 4004 fi 4005done 4006 done 4007IFS=$as_save_IFS 4008 4009fi 4010fi 4011CC=$ac_cv_prog_CC 4012if test -n "$CC"; then 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4014$as_echo "$CC" >&6; } 4015else 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4017$as_echo "no" >&6; } 4018fi 4019 4020 4021 test -n "$CC" && break 4022 done 4023fi 4024if test -z "$CC"; then 4025 ac_ct_CC=$CC 4026 for ac_prog in cl.exe 4027do 4028 # Extract the first word of "$ac_prog", so it can be a program name with args. 4029set dummy $ac_prog; ac_word=$2 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4031$as_echo_n "checking for $ac_word... " >&6; } 4032if ${ac_cv_prog_ac_ct_CC+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 if test -n "$ac_ct_CC"; then 4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4037else 4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4039for as_dir in $PATH 4040do 4041 IFS=$as_save_IFS 4042 test -z "$as_dir" && as_dir=. 4043 for ac_exec_ext in '' $ac_executable_extensions; do 4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4045 ac_cv_prog_ac_ct_CC="$ac_prog" 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4047 break 2 4048 fi 4049done 4050 done 4051IFS=$as_save_IFS 4052 4053fi 4054fi 4055ac_ct_CC=$ac_cv_prog_ac_ct_CC 4056if test -n "$ac_ct_CC"; then 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4058$as_echo "$ac_ct_CC" >&6; } 4059else 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4061$as_echo "no" >&6; } 4062fi 4063 4064 4065 test -n "$ac_ct_CC" && break 4066done 4067 4068 if test "x$ac_ct_CC" = x; then 4069 CC="" 4070 else 4071 case $cross_compiling:$ac_tool_warned in 4072yes:) 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4075ac_tool_warned=yes ;; 4076esac 4077 CC=$ac_ct_CC 4078 fi 4079fi 4080 4081fi 4082 4083 4084test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4086as_fn_error $? "no acceptable C compiler found in \$PATH 4087See \`config.log' for more details" "$LINENO" 5; } 4088 4089# Provide some information about the compiler. 4090$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4091set X $ac_compile 4092ac_compiler=$2 4093for ac_option in --version -v -V -qversion; do 4094 { { ac_try="$ac_compiler $ac_option >&5" 4095case "(($ac_try" in 4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4097 *) ac_try_echo=$ac_try;; 4098esac 4099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4100$as_echo "$ac_try_echo"; } >&5 4101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4102 ac_status=$? 4103 if test -s conftest.err; then 4104 sed '10a\ 4105... rest of stderr output deleted ... 4106 10q' conftest.err >conftest.er1 4107 cat conftest.er1 >&5 4108 fi 4109 rm -f conftest.er1 conftest.err 4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4111 test $ac_status = 0; } 4112done 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4115$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4116if ${ac_cv_c_compiler_gnu+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121 4122int 4123main () 4124{ 4125#ifndef __GNUC__ 4126 choke me 4127#endif 4128 4129 ; 4130 return 0; 4131} 4132_ACEOF 4133if ac_fn_c_try_compile "$LINENO"; then : 4134 ac_compiler_gnu=yes 4135else 4136 ac_compiler_gnu=no 4137fi 4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4139ac_cv_c_compiler_gnu=$ac_compiler_gnu 4140 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4143$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4144if test $ac_compiler_gnu = yes; then 4145 GCC=yes 4146else 4147 GCC= 4148fi 4149ac_test_CFLAGS=${CFLAGS+set} 4150ac_save_CFLAGS=$CFLAGS 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4152$as_echo_n "checking whether $CC accepts -g... " >&6; } 4153if ${ac_cv_prog_cc_g+:} false; then : 4154 $as_echo_n "(cached) " >&6 4155else 4156 ac_save_c_werror_flag=$ac_c_werror_flag 4157 ac_c_werror_flag=yes 4158 ac_cv_prog_cc_g=no 4159 CFLAGS="-g" 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162 4163int 4164main () 4165{ 4166 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171if ac_fn_c_try_compile "$LINENO"; then : 4172 ac_cv_prog_cc_g=yes 4173else 4174 CFLAGS="" 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4176/* end confdefs.h. */ 4177 4178int 4179main () 4180{ 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186if ac_fn_c_try_compile "$LINENO"; then : 4187 4188else 4189 ac_c_werror_flag=$ac_save_c_werror_flag 4190 CFLAGS="-g" 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202if ac_fn_c_try_compile "$LINENO"; then : 4203 ac_cv_prog_cc_g=yes 4204fi 4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4208fi 4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4210 ac_c_werror_flag=$ac_save_c_werror_flag 4211fi 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4213$as_echo "$ac_cv_prog_cc_g" >&6; } 4214if test "$ac_test_CFLAGS" = set; then 4215 CFLAGS=$ac_save_CFLAGS 4216elif test $ac_cv_prog_cc_g = yes; then 4217 if test "$GCC" = yes; then 4218 CFLAGS="-g -O2" 4219 else 4220 CFLAGS="-g" 4221 fi 4222else 4223 if test "$GCC" = yes; then 4224 CFLAGS="-O2" 4225 else 4226 CFLAGS= 4227 fi 4228fi 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4230$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4231if ${ac_cv_prog_cc_c89+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 ac_cv_prog_cc_c89=no 4235ac_save_CC=$CC 4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#include <stdarg.h> 4239#include <stdio.h> 4240struct stat; 4241/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4242struct buf { int x; }; 4243FILE * (*rcsopen) (struct buf *, struct stat *, int); 4244static char *e (p, i) 4245 char **p; 4246 int i; 4247{ 4248 return p[i]; 4249} 4250static char *f (char * (*g) (char **, int), char **p, ...) 4251{ 4252 char *s; 4253 va_list v; 4254 va_start (v,p); 4255 s = g (p, va_arg (v,int)); 4256 va_end (v); 4257 return s; 4258} 4259 4260/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4261 function prototypes and stuff, but not '\xHH' hex character constants. 4262 These don't provoke an error unfortunately, instead are silently treated 4263 as 'x'. The following induces an error, until -std is added to get 4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4265 array size at least. It's necessary to write '\x00'==0 to get something 4266 that's true only with -std. */ 4267int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4268 4269/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4270 inside strings and character constants. */ 4271#define FOO(x) 'x' 4272int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4273 4274int test (int i, double x); 4275struct s1 {int (*f) (int a);}; 4276struct s2 {int (*f) (double a);}; 4277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4278int argc; 4279char **argv; 4280int 4281main () 4282{ 4283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4290do 4291 CC="$ac_save_CC $ac_arg" 4292 if ac_fn_c_try_compile "$LINENO"; then : 4293 ac_cv_prog_cc_c89=$ac_arg 4294fi 4295rm -f core conftest.err conftest.$ac_objext 4296 test "x$ac_cv_prog_cc_c89" != "xno" && break 4297done 4298rm -f conftest.$ac_ext 4299CC=$ac_save_CC 4300 4301fi 4302# AC_CACHE_VAL 4303case "x$ac_cv_prog_cc_c89" in 4304 x) 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4306$as_echo "none needed" >&6; } ;; 4307 xno) 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4309$as_echo "unsupported" >&6; } ;; 4310 *) 4311 CC="$CC $ac_cv_prog_cc_c89" 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4313$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4314esac 4315if test "x$ac_cv_prog_cc_c89" != xno; then : 4316 4317fi 4318 4319ac_ext=c 4320ac_cpp='$CPP $CPPFLAGS' 4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4323ac_compiler_gnu=$ac_cv_c_compiler_gnu 4324 4325 if test -n "$GCC"; then 4326 CFLAGS="$CFLAGS -Wall " 4327 fi 4328if test -n "$ac_tool_prefix"; then 4329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4330set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4332$as_echo_n "checking for $ac_word... " >&6; } 4333if ${ac_cv_prog_RANLIB+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 if test -n "$RANLIB"; then 4337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4338else 4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4340for as_dir in $PATH 4341do 4342 IFS=$as_save_IFS 4343 test -z "$as_dir" && as_dir=. 4344 for ac_exec_ext in '' $ac_executable_extensions; do 4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4346 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4348 break 2 4349 fi 4350done 4351 done 4352IFS=$as_save_IFS 4353 4354fi 4355fi 4356RANLIB=$ac_cv_prog_RANLIB 4357if test -n "$RANLIB"; then 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4359$as_echo "$RANLIB" >&6; } 4360else 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4362$as_echo "no" >&6; } 4363fi 4364 4365 4366fi 4367if test -z "$ac_cv_prog_RANLIB"; then 4368 ac_ct_RANLIB=$RANLIB 4369 # Extract the first word of "ranlib", so it can be a program name with args. 4370set dummy ranlib; ac_word=$2 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4372$as_echo_n "checking for $ac_word... " >&6; } 4373if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4374 $as_echo_n "(cached) " >&6 4375else 4376 if test -n "$ac_ct_RANLIB"; then 4377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4378else 4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4380for as_dir in $PATH 4381do 4382 IFS=$as_save_IFS 4383 test -z "$as_dir" && as_dir=. 4384 for ac_exec_ext in '' $ac_executable_extensions; do 4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4386 ac_cv_prog_ac_ct_RANLIB="ranlib" 4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4388 break 2 4389 fi 4390done 4391 done 4392IFS=$as_save_IFS 4393 4394fi 4395fi 4396ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4397if test -n "$ac_ct_RANLIB"; then 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4399$as_echo "$ac_ct_RANLIB" >&6; } 4400else 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4402$as_echo "no" >&6; } 4403fi 4404 4405 if test "x$ac_ct_RANLIB" = x; then 4406 RANLIB=":" 4407 else 4408 case $cross_compiling:$ac_tool_warned in 4409yes:) 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4412ac_tool_warned=yes ;; 4413esac 4414 RANLIB=$ac_ct_RANLIB 4415 fi 4416else 4417 RANLIB="$ac_cv_prog_RANLIB" 4418fi 4419 4420 4421 4422ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 4423if test "x$ac_cv_func_gethostent" = xyes; then : 4424 4425else 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5 4427$as_echo_n "checking for gethostent in -lnsl... " >&6; } 4428if ${ac_cv_lib_nsl_gethostent+:} false; then : 4429 $as_echo_n "(cached) " >&6 4430else 4431 ac_check_lib_save_LIBS=$LIBS 4432LIBS="-lnsl $LIBS" 4433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434/* end confdefs.h. */ 4435 4436/* Override any GCC internal prototype to avoid an error. 4437 Use char because int might match the return type of a GCC 4438 builtin and then its argument prototype would still apply. */ 4439#ifdef __cplusplus 4440extern "C" 4441#endif 4442char gethostent (); 4443int 4444main () 4445{ 4446return gethostent (); 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_c_try_link "$LINENO"; then : 4452 ac_cv_lib_nsl_gethostent=yes 4453else 4454 ac_cv_lib_nsl_gethostent=no 4455fi 4456rm -f core conftest.err conftest.$ac_objext \ 4457 conftest$ac_exeext conftest.$ac_ext 4458LIBS=$ac_check_lib_save_LIBS 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5 4461$as_echo "$ac_cv_lib_nsl_gethostent" >&6; } 4462if test "x$ac_cv_lib_nsl_gethostent" = xyes; then : 4463 cat >>confdefs.h <<_ACEOF 4464#define HAVE_LIBNSL 1 4465_ACEOF 4466 4467 LIBS="-lnsl $LIBS" 4468 4469fi 4470 4471fi 4472 4473ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 4474if test "x$ac_cv_func_setsockopt" = xyes; then : 4475 4476else 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 4478$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 4479if ${ac_cv_lib_socket_setsockopt+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 ac_check_lib_save_LIBS=$LIBS 4483LIBS="-lsocket $LIBS" 4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4485/* end confdefs.h. */ 4486 4487/* Override any GCC internal prototype to avoid an error. 4488 Use char because int might match the return type of a GCC 4489 builtin and then its argument prototype would still apply. */ 4490#ifdef __cplusplus 4491extern "C" 4492#endif 4493char setsockopt (); 4494int 4495main () 4496{ 4497return setsockopt (); 4498 ; 4499 return 0; 4500} 4501_ACEOF 4502if ac_fn_c_try_link "$LINENO"; then : 4503 ac_cv_lib_socket_setsockopt=yes 4504else 4505 ac_cv_lib_socket_setsockopt=no 4506fi 4507rm -f core conftest.err conftest.$ac_objext \ 4508 conftest$ac_exeext conftest.$ac_ext 4509LIBS=$ac_check_lib_save_LIBS 4510fi 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 4512$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 4513if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 4514 cat >>confdefs.h <<_ACEOF 4515#define HAVE_LIBSOCKET 1 4516_ACEOF 4517 4518 LIBS="-lsocket $LIBS" 4519 4520fi 4521 4522fi 4523 4524 4525ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 4526if test "x$ac_cv_func_nanosleep" = xyes; then : 4527 4528else 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 4530$as_echo_n "checking for nanosleep in -lposix4... " >&6; } 4531if ${ac_cv_lib_posix4_nanosleep+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 ac_check_lib_save_LIBS=$LIBS 4535LIBS="-lposix4 $LIBS" 4536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538 4539/* Override any GCC internal prototype to avoid an error. 4540 Use char because int might match the return type of a GCC 4541 builtin and then its argument prototype would still apply. */ 4542#ifdef __cplusplus 4543extern "C" 4544#endif 4545char nanosleep (); 4546int 4547main () 4548{ 4549return nanosleep (); 4550 ; 4551 return 0; 4552} 4553_ACEOF 4554if ac_fn_c_try_link "$LINENO"; then : 4555 ac_cv_lib_posix4_nanosleep=yes 4556else 4557 ac_cv_lib_posix4_nanosleep=no 4558fi 4559rm -f core conftest.err conftest.$ac_objext \ 4560 conftest$ac_exeext conftest.$ac_ext 4561LIBS=$ac_check_lib_save_LIBS 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 4564$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } 4565if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : 4566 cat >>confdefs.h <<_ACEOF 4567#define HAVE_LIBPOSIX4 1 4568_ACEOF 4569 4570 LIBS="-lposix4 $LIBS" 4571 4572fi 4573 4574fi 4575 4576 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4578$as_echo_n "checking for ANSI C header files... " >&6; } 4579if ${ac_cv_header_stdc+:} false; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584#include <stdlib.h> 4585#include <stdarg.h> 4586#include <string.h> 4587#include <float.h> 4588 4589int 4590main () 4591{ 4592 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597if ac_fn_c_try_compile "$LINENO"; then : 4598 ac_cv_header_stdc=yes 4599else 4600 ac_cv_header_stdc=no 4601fi 4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4603 4604if test $ac_cv_header_stdc = yes; then 4605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4607/* end confdefs.h. */ 4608#include <string.h> 4609 4610_ACEOF 4611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4612 $EGREP "memchr" >/dev/null 2>&1; then : 4613 4614else 4615 ac_cv_header_stdc=no 4616fi 4617rm -f conftest* 4618 4619fi 4620 4621if test $ac_cv_header_stdc = yes; then 4622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4624/* end confdefs.h. */ 4625#include <stdlib.h> 4626 4627_ACEOF 4628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4629 $EGREP "free" >/dev/null 2>&1; then : 4630 4631else 4632 ac_cv_header_stdc=no 4633fi 4634rm -f conftest* 4635 4636fi 4637 4638if test $ac_cv_header_stdc = yes; then 4639 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4640 if test "$cross_compiling" = yes; then : 4641 : 4642else 4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4644/* end confdefs.h. */ 4645#include <ctype.h> 4646#include <stdlib.h> 4647#if ((' ' & 0x0FF) == 0x020) 4648# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4649# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4650#else 4651# define ISLOWER(c) \ 4652 (('a' <= (c) && (c) <= 'i') \ 4653 || ('j' <= (c) && (c) <= 'r') \ 4654 || ('s' <= (c) && (c) <= 'z')) 4655# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4656#endif 4657 4658#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4659int 4660main () 4661{ 4662 int i; 4663 for (i = 0; i < 256; i++) 4664 if (XOR (islower (i), ISLOWER (i)) 4665 || toupper (i) != TOUPPER (i)) 4666 return 2; 4667 return 0; 4668} 4669_ACEOF 4670if ac_fn_c_try_run "$LINENO"; then : 4671 4672else 4673 ac_cv_header_stdc=no 4674fi 4675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4676 conftest.$ac_objext conftest.beam conftest.$ac_ext 4677fi 4678 4679fi 4680fi 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4682$as_echo "$ac_cv_header_stdc" >&6; } 4683if test $ac_cv_header_stdc = yes; then 4684 4685$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4686 4687fi 4688 4689for ac_header in net/bpf.h sys/ioctl.h sys/un.h netdb.h 4690do : 4691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4692ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4694 cat >>confdefs.h <<_ACEOF 4695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4696_ACEOF 4697 4698fi 4699 4700done 4701 4702 4703# We test whether they specified openssl desires explicitly 4704use_openssl="yes" 4705specialssldir="" 4706 4707# Check whether --with-openssl was given. 4708if test "${with_openssl+set}" = set; then : 4709 withval=$with_openssl; case "$with_openssl" in 4710 yes) 4711 ;; 4712 no) 4713 use_openssl="no" 4714 ;; 4715 *) 4716 specialssldir="$with_openssl" 4717 CPPFLAGS="$CPPFLAGS -I$with_openssl/include" 4718 LDFLAGS="$LDFLAGS -L$with_openssl/lib" 4719 ;; 4720 esac 4721 4722fi 4723 4724 4725# If they didn't specify it, we try to find it 4726if test "$use_openssl" = "yes" -a -z "$specialssldir"; then 4727 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 4728if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 4729 4730else 4731 use_openssl="no" 4732 if test "$with_openssl" = "yes"; then 4733 as_fn_error $? "OpenSSL was explicitly requested but openssl/ssl.h was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5 4734 fi 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5 4736$as_echo "$as_me: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;} 4737 4738fi 4739 4740 4741 4742# use_openssl="yes" given explicitly in next 2 rules to avoid adding lib to $LIBS 4743 if test "$use_openssl" = "yes"; then 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_int_ctrl in -lcrypto" >&5 4745$as_echo_n "checking for BIO_int_ctrl in -lcrypto... " >&6; } 4746if ${ac_cv_lib_crypto_BIO_int_ctrl+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748else 4749 ac_check_lib_save_LIBS=$LIBS 4750LIBS="-lcrypto $LIBS" 4751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753 4754/* Override any GCC internal prototype to avoid an error. 4755 Use char because int might match the return type of a GCC 4756 builtin and then its argument prototype would still apply. */ 4757#ifdef __cplusplus 4758extern "C" 4759#endif 4760char BIO_int_ctrl (); 4761int 4762main () 4763{ 4764return BIO_int_ctrl (); 4765 ; 4766 return 0; 4767} 4768_ACEOF 4769if ac_fn_c_try_link "$LINENO"; then : 4770 ac_cv_lib_crypto_BIO_int_ctrl=yes 4771else 4772 ac_cv_lib_crypto_BIO_int_ctrl=no 4773fi 4774rm -f core conftest.err conftest.$ac_objext \ 4775 conftest$ac_exeext conftest.$ac_ext 4776LIBS=$ac_check_lib_save_LIBS 4777fi 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_int_ctrl" >&5 4779$as_echo "$ac_cv_lib_crypto_BIO_int_ctrl" >&6; } 4780if test "x$ac_cv_lib_crypto_BIO_int_ctrl" = xyes; then : 4781 use_openssl="yes" 4782else 4783 use_openssl="no" 4784 if test "$with_openssl" = "yes"; then 4785 as_fn_error $? "OpenSSL was explicitly requested but libcrypto was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5 4786 fi 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5 4788$as_echo "$as_me: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;} 4789 4790fi 4791 4792 fi 4793 4794 if test "$use_openssl" = "yes"; then 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 4796$as_echo_n "checking for SSL_new in -lssl... " >&6; } 4797if ${ac_cv_lib_ssl_SSL_new+:} false; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 ac_check_lib_save_LIBS=$LIBS 4801LIBS="-lssl -lcrypto $LIBS" 4802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803/* end confdefs.h. */ 4804 4805/* Override any GCC internal prototype to avoid an error. 4806 Use char because int might match the return type of a GCC 4807 builtin and then its argument prototype would still apply. */ 4808#ifdef __cplusplus 4809extern "C" 4810#endif 4811char SSL_new (); 4812int 4813main () 4814{ 4815return SSL_new (); 4816 ; 4817 return 0; 4818} 4819_ACEOF 4820if ac_fn_c_try_link "$LINENO"; then : 4821 ac_cv_lib_ssl_SSL_new=yes 4822else 4823 ac_cv_lib_ssl_SSL_new=no 4824fi 4825rm -f core conftest.err conftest.$ac_objext \ 4826 conftest$ac_exeext conftest.$ac_ext 4827LIBS=$ac_check_lib_save_LIBS 4828fi 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 4830$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } 4831if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : 4832 use_openssl="yes" 4833else 4834 use_openssl="no" 4835 if test "$with_openssl" = "yes"; then 4836 as_fn_error $? "OpenSSL was explicitly requested but libssl was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5 4837 fi 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libssl so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5 4839$as_echo "$as_me: WARNING: Failed to find libssl so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;} 4840fi 4841 4842 fi 4843fi 4844 4845# OpenSSL requires dlopen on some platforms 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 4847$as_echo_n "checking for library containing dlopen... " >&6; } 4848if ${ac_cv_search_dlopen+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 ac_func_search_save_LIBS=$LIBS 4852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4853/* end confdefs.h. */ 4854 4855/* Override any GCC internal prototype to avoid an error. 4856 Use char because int might match the return type of a GCC 4857 builtin and then its argument prototype would still apply. */ 4858#ifdef __cplusplus 4859extern "C" 4860#endif 4861char dlopen (); 4862int 4863main () 4864{ 4865return dlopen (); 4866 ; 4867 return 0; 4868} 4869_ACEOF 4870for ac_lib in '' dl; do 4871 if test -z "$ac_lib"; then 4872 ac_res="none required" 4873 else 4874 ac_res=-l$ac_lib 4875 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4876 fi 4877 if ac_fn_c_try_link "$LINENO"; then : 4878 ac_cv_search_dlopen=$ac_res 4879fi 4880rm -f core conftest.err conftest.$ac_objext \ 4881 conftest$ac_exeext 4882 if ${ac_cv_search_dlopen+:} false; then : 4883 break 4884fi 4885done 4886if ${ac_cv_search_dlopen+:} false; then : 4887 4888else 4889 ac_cv_search_dlopen=no 4890fi 4891rm conftest.$ac_ext 4892LIBS=$ac_func_search_save_LIBS 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 4895$as_echo "$ac_cv_search_dlopen" >&6; } 4896ac_res=$ac_cv_search_dlopen 4897if test "$ac_res" != no; then : 4898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4899 4900fi 4901 4902 4903OPENSSL_LIBS= 4904if test "$use_openssl" = "yes"; then 4905 4906$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 4907 4908 OPENSSL_LIBS="-lssl -lcrypto" 4909 LIBS_TMP="$LIBS" 4910 LIBS="$OPENSSL_LIBS $LIBS" 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_set_tlsext_host_name" >&5 4912$as_echo_n "checking for SSL_set_tlsext_host_name... " >&6; } 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915#include <openssl/ssl.h> 4916int 4917main () 4918{ 4919SSL_set_tlsext_host_name(NULL, NULL) 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924if ac_fn_c_try_link "$LINENO"; then : 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4926$as_echo "yes" >&6; }; 4927$as_echo "#define HAVE_SSL_SET_TLSEXT_HOST_NAME 1" >>confdefs.h 4928 4929else 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4931$as_echo "no" >&6; } 4932fi 4933rm -f core conftest.err conftest.$ac_objext \ 4934 conftest$ac_exeext conftest.$ac_ext 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTLS_client_method" >&5 4936$as_echo_n "checking for DTLS_client_method... " >&6; } 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938/* end confdefs.h. */ 4939#include <openssl/ssl.h> 4940int 4941main () 4942{ 4943DTLS_client_method() 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948if ac_fn_c_try_link "$LINENO"; then : 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4950$as_echo "yes" >&6; }; 4951$as_echo "#define HAVE_DTLS_CLIENT_METHOD 1" >>confdefs.h 4952 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955$as_echo "no" >&6; } 4956fi 4957rm -f core conftest.err conftest.$ac_objext \ 4958 conftest$ac_exeext conftest.$ac_ext 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_set_alpn_protos" >&5 4960$as_echo_n "checking for SSL_set_alpn_protos... " >&6; } 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963#include <openssl/ssl.h> 4964int 4965main () 4966{ 4967SSL_set_alpn_protos(NULL, NULL, 0) 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972if ac_fn_c_try_link "$LINENO"; then : 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4974$as_echo "yes" >&6; }; 4975$as_echo "#define HAVE_ALPN_SUPPORT 1" >>confdefs.h 4976 4977else 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979$as_echo "no" >&6; } 4980fi 4981rm -f core conftest.err conftest.$ac_objext \ 4982 conftest$ac_exeext conftest.$ac_ext 4983 LIBS="$LIBS_TMP" 4984 4985fi 4986 4987 4988 4989 4990 4991# Check whether --with-libnbase was given. 4992if test "${with_libnbase+set}" = set; then : 4993 withval=$with_libnbase; case "$with_libnbase" in 4994 yes) 4995 ;; 4996 *) 4997 NBASEDIR="$with_libnbase" 4998 ;; 4999 esac 5000else 5001 NBASEDIR="${top_nmap_srcdir}/nbase" 5002 5003fi 5004 5005 5006NSOCKTESTDIR="../tests" 5007 5008LDFLAGS="$LDFLAGS -L$NBASEDIR" 5009CPPFLAGS="$CPPFLAGS -I$NBASEDIR" 5010LIBNBASE_LIBS="$LIBS -lnbase" 5011 5012 5013 5014 5015 5016 5017 5018cat >confcache <<\_ACEOF 5019# This file is a shell script that caches the results of configure 5020# tests run on this system so they can be shared between configure 5021# scripts and configure runs, see configure's option --config-cache. 5022# It is not useful on other systems. If it contains results you don't 5023# want to keep, you may remove or edit it. 5024# 5025# config.status only pays attention to the cache file if you give it 5026# the --recheck option to rerun configure. 5027# 5028# `ac_cv_env_foo' variables (set or unset) will be overridden when 5029# loading this file, other *unset* `ac_cv_foo' will be assigned the 5030# following values. 5031 5032_ACEOF 5033 5034# The following way of writing the cache mishandles newlines in values, 5035# but we know of no workaround that is simple, portable, and efficient. 5036# So, we kill variables containing newlines. 5037# Ultrix sh set writes to stderr and can't be redirected directly, 5038# and sets the high bit in the cache file unless we assign to the vars. 5039( 5040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5041 eval ac_val=\$$ac_var 5042 case $ac_val in #( 5043 *${as_nl}*) 5044 case $ac_var in #( 5045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5047 esac 5048 case $ac_var in #( 5049 _ | IFS | as_nl) ;; #( 5050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5051 *) { eval $ac_var=; unset $ac_var;} ;; 5052 esac ;; 5053 esac 5054 done 5055 5056 (set) 2>&1 | 5057 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5058 *${as_nl}ac_space=\ *) 5059 # `set' does not quote correctly, so add quotes: double-quote 5060 # substitution turns \\\\ into \\, and sed turns \\ into \. 5061 sed -n \ 5062 "s/'/'\\\\''/g; 5063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5064 ;; #( 5065 *) 5066 # `set' quotes correctly as required by POSIX, so do not add quotes. 5067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5068 ;; 5069 esac | 5070 sort 5071) | 5072 sed ' 5073 /^ac_cv_env_/b end 5074 t clear 5075 :clear 5076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5077 t end 5078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5079 :end' >>confcache 5080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5081 if test -w "$cache_file"; then 5082 if test "x$cache_file" != "x/dev/null"; then 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5084$as_echo "$as_me: updating cache $cache_file" >&6;} 5085 if test ! -f "$cache_file" || test -h "$cache_file"; then 5086 cat confcache >"$cache_file" 5087 else 5088 case $cache_file in #( 5089 */* | ?:*) 5090 mv -f confcache "$cache_file"$$ && 5091 mv -f "$cache_file"$$ "$cache_file" ;; #( 5092 *) 5093 mv -f confcache "$cache_file" ;; 5094 esac 5095 fi 5096 fi 5097 else 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5099$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5100 fi 5101fi 5102rm -f confcache 5103 5104test "x$prefix" = xNONE && prefix=$ac_default_prefix 5105# Let make expand exec_prefix. 5106test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5107 5108DEFS=-DHAVE_CONFIG_H 5109 5110ac_libobjs= 5111ac_ltlibobjs= 5112U= 5113for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5114 # 1. Remove the extension, and $U if already installed. 5115 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5116 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5117 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5118 # will be set to the directory where LIBOBJS objects are built. 5119 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5120 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5121done 5122LIBOBJS=$ac_libobjs 5123 5124LTLIBOBJS=$ac_ltlibobjs 5125 5126 5127 5128: "${CONFIG_STATUS=./config.status}" 5129ac_write_fail=0 5130ac_clean_files_save=$ac_clean_files 5131ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5133$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5134as_write_fail=0 5135cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5136#! $SHELL 5137# Generated by $as_me. 5138# Run this file to recreate the current configuration. 5139# Compiler output produced by configure, useful for debugging 5140# configure, is in config.log if it exists. 5141 5142debug=false 5143ac_cs_recheck=false 5144ac_cs_silent=false 5145 5146SHELL=\${CONFIG_SHELL-$SHELL} 5147export SHELL 5148_ASEOF 5149cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5150## -------------------- ## 5151## M4sh Initialization. ## 5152## -------------------- ## 5153 5154# Be more Bourne compatible 5155DUALCASE=1; export DUALCASE # for MKS sh 5156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5157 emulate sh 5158 NULLCMD=: 5159 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5160 # is contrary to our usage. Disable this feature. 5161 alias -g '${1+"$@"}'='"$@"' 5162 setopt NO_GLOB_SUBST 5163else 5164 case `(set -o) 2>/dev/null` in #( 5165 *posix*) : 5166 set -o posix ;; #( 5167 *) : 5168 ;; 5169esac 5170fi 5171 5172 5173as_nl=' 5174' 5175export as_nl 5176# Printing a long string crashes Solaris 7 /usr/bin/printf. 5177as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5180# Prefer a ksh shell builtin over an external printf program on Solaris, 5181# but without wasting forks for bash or zsh. 5182if test -z "$BASH_VERSION$ZSH_VERSION" \ 5183 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5184 as_echo='print -r --' 5185 as_echo_n='print -rn --' 5186elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5187 as_echo='printf %s\n' 5188 as_echo_n='printf %s' 5189else 5190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5192 as_echo_n='/usr/ucb/echo -n' 5193 else 5194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5195 as_echo_n_body='eval 5196 arg=$1; 5197 case $arg in #( 5198 *"$as_nl"*) 5199 expr "X$arg" : "X\\(.*\\)$as_nl"; 5200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5201 esac; 5202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5203 ' 5204 export as_echo_n_body 5205 as_echo_n='sh -c $as_echo_n_body as_echo' 5206 fi 5207 export as_echo_body 5208 as_echo='sh -c $as_echo_body as_echo' 5209fi 5210 5211# The user is always right. 5212if test "${PATH_SEPARATOR+set}" != set; then 5213 PATH_SEPARATOR=: 5214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5216 PATH_SEPARATOR=';' 5217 } 5218fi 5219 5220 5221# IFS 5222# We need space, tab and new line, in precisely that order. Quoting is 5223# there to prevent editors from complaining about space-tab. 5224# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5225# splitting by setting IFS to empty value.) 5226IFS=" "" $as_nl" 5227 5228# Find who we are. Look in the path if we contain no directory separator. 5229as_myself= 5230case $0 in #(( 5231 *[\\/]* ) as_myself=$0 ;; 5232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH 5234do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5238 done 5239IFS=$as_save_IFS 5240 5241 ;; 5242esac 5243# We did not find ourselves, most probably we were run as `sh COMMAND' 5244# in which case we are not to be found in the path. 5245if test "x$as_myself" = x; then 5246 as_myself=$0 5247fi 5248if test ! -f "$as_myself"; then 5249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5250 exit 1 5251fi 5252 5253# Unset variables that we do not need and which cause bugs (e.g. in 5254# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5255# suppresses any "Segmentation fault" message there. '((' could 5256# trigger a bug in pdksh 5.2.14. 5257for as_var in BASH_ENV ENV MAIL MAILPATH 5258do eval test x\${$as_var+set} = xset \ 5259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5260done 5261PS1='$ ' 5262PS2='> ' 5263PS4='+ ' 5264 5265# NLS nuisances. 5266LC_ALL=C 5267export LC_ALL 5268LANGUAGE=C 5269export LANGUAGE 5270 5271# CDPATH. 5272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5273 5274 5275# as_fn_error STATUS ERROR [LINENO LOG_FD] 5276# ---------------------------------------- 5277# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5278# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5279# script with STATUS, using 1 if that was 0. 5280as_fn_error () 5281{ 5282 as_status=$1; test $as_status -eq 0 && as_status=1 5283 if test "$4"; then 5284 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5286 fi 5287 $as_echo "$as_me: error: $2" >&2 5288 as_fn_exit $as_status 5289} # as_fn_error 5290 5291 5292# as_fn_set_status STATUS 5293# ----------------------- 5294# Set $? to STATUS, without forking. 5295as_fn_set_status () 5296{ 5297 return $1 5298} # as_fn_set_status 5299 5300# as_fn_exit STATUS 5301# ----------------- 5302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5303as_fn_exit () 5304{ 5305 set +e 5306 as_fn_set_status $1 5307 exit $1 5308} # as_fn_exit 5309 5310# as_fn_unset VAR 5311# --------------- 5312# Portably unset VAR. 5313as_fn_unset () 5314{ 5315 { eval $1=; unset $1;} 5316} 5317as_unset=as_fn_unset 5318# as_fn_append VAR VALUE 5319# ---------------------- 5320# Append the text in VALUE to the end of the definition contained in VAR. Take 5321# advantage of any shell optimizations that allow amortized linear growth over 5322# repeated appends, instead of the typical quadratic growth present in naive 5323# implementations. 5324if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5325 eval 'as_fn_append () 5326 { 5327 eval $1+=\$2 5328 }' 5329else 5330 as_fn_append () 5331 { 5332 eval $1=\$$1\$2 5333 } 5334fi # as_fn_append 5335 5336# as_fn_arith ARG... 5337# ------------------ 5338# Perform arithmetic evaluation on the ARGs, and store the result in the 5339# global $as_val. Take advantage of shells that can avoid forks. The arguments 5340# must be portable across $(()) and expr. 5341if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5342 eval 'as_fn_arith () 5343 { 5344 as_val=$(( $* )) 5345 }' 5346else 5347 as_fn_arith () 5348 { 5349 as_val=`expr "$@" || test $? -eq 1` 5350 } 5351fi # as_fn_arith 5352 5353 5354if expr a : '\(a\)' >/dev/null 2>&1 && 5355 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5356 as_expr=expr 5357else 5358 as_expr=false 5359fi 5360 5361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5362 as_basename=basename 5363else 5364 as_basename=false 5365fi 5366 5367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5368 as_dirname=dirname 5369else 5370 as_dirname=false 5371fi 5372 5373as_me=`$as_basename -- "$0" || 5374$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5375 X"$0" : 'X\(//\)$' \| \ 5376 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5377$as_echo X/"$0" | 5378 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5379 s//\1/ 5380 q 5381 } 5382 /^X\/\(\/\/\)$/{ 5383 s//\1/ 5384 q 5385 } 5386 /^X\/\(\/\).*/{ 5387 s//\1/ 5388 q 5389 } 5390 s/.*/./; q'` 5391 5392# Avoid depending upon Character Ranges. 5393as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5395as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5396as_cr_digits='0123456789' 5397as_cr_alnum=$as_cr_Letters$as_cr_digits 5398 5399ECHO_C= ECHO_N= ECHO_T= 5400case `echo -n x` in #((((( 5401-n*) 5402 case `echo 'xy\c'` in 5403 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5404 xy) ECHO_C='\c';; 5405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5406 ECHO_T=' ';; 5407 esac;; 5408*) 5409 ECHO_N='-n';; 5410esac 5411 5412rm -f conf$$ conf$$.exe conf$$.file 5413if test -d conf$$.dir; then 5414 rm -f conf$$.dir/conf$$.file 5415else 5416 rm -f conf$$.dir 5417 mkdir conf$$.dir 2>/dev/null 5418fi 5419if (echo >conf$$.file) 2>/dev/null; then 5420 if ln -s conf$$.file conf$$ 2>/dev/null; then 5421 as_ln_s='ln -s' 5422 # ... but there are two gotchas: 5423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5425 # In both cases, we have to default to `cp -pR'. 5426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5427 as_ln_s='cp -pR' 5428 elif ln conf$$.file conf$$ 2>/dev/null; then 5429 as_ln_s=ln 5430 else 5431 as_ln_s='cp -pR' 5432 fi 5433else 5434 as_ln_s='cp -pR' 5435fi 5436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5437rmdir conf$$.dir 2>/dev/null 5438 5439 5440# as_fn_mkdir_p 5441# ------------- 5442# Create "$as_dir" as a directory, including parents if necessary. 5443as_fn_mkdir_p () 5444{ 5445 5446 case $as_dir in #( 5447 -*) as_dir=./$as_dir;; 5448 esac 5449 test -d "$as_dir" || eval $as_mkdir_p || { 5450 as_dirs= 5451 while :; do 5452 case $as_dir in #( 5453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5454 *) as_qdir=$as_dir;; 5455 esac 5456 as_dirs="'$as_qdir' $as_dirs" 5457 as_dir=`$as_dirname -- "$as_dir" || 5458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5459 X"$as_dir" : 'X\(//\)[^/]' \| \ 5460 X"$as_dir" : 'X\(//\)$' \| \ 5461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5462$as_echo X"$as_dir" | 5463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5464 s//\1/ 5465 q 5466 } 5467 /^X\(\/\/\)[^/].*/{ 5468 s//\1/ 5469 q 5470 } 5471 /^X\(\/\/\)$/{ 5472 s//\1/ 5473 q 5474 } 5475 /^X\(\/\).*/{ 5476 s//\1/ 5477 q 5478 } 5479 s/.*/./; q'` 5480 test -d "$as_dir" && break 5481 done 5482 test -z "$as_dirs" || eval "mkdir $as_dirs" 5483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5484 5485 5486} # as_fn_mkdir_p 5487if mkdir -p . 2>/dev/null; then 5488 as_mkdir_p='mkdir -p "$as_dir"' 5489else 5490 test -d ./-p && rmdir ./-p 5491 as_mkdir_p=false 5492fi 5493 5494 5495# as_fn_executable_p FILE 5496# ----------------------- 5497# Test if FILE is an executable regular file. 5498as_fn_executable_p () 5499{ 5500 test -f "$1" && test -x "$1" 5501} # as_fn_executable_p 5502as_test_x='test -x' 5503as_executable_p=as_fn_executable_p 5504 5505# Sed expression to map a string onto a valid CPP name. 5506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5507 5508# Sed expression to map a string onto a valid variable name. 5509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5510 5511 5512exec 6>&1 5513## ----------------------------------- ## 5514## Main body of $CONFIG_STATUS script. ## 5515## ----------------------------------- ## 5516_ASEOF 5517test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5518 5519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5520# Save the log message, to keep $0 and so on meaningful, and to 5521# report actual input values of CONFIG_FILES etc. instead of their 5522# values after options handling. 5523ac_log=" 5524This file was extended by $as_me, which was 5525generated by GNU Autoconf 2.69. Invocation command line was 5526 5527 CONFIG_FILES = $CONFIG_FILES 5528 CONFIG_HEADERS = $CONFIG_HEADERS 5529 CONFIG_LINKS = $CONFIG_LINKS 5530 CONFIG_COMMANDS = $CONFIG_COMMANDS 5531 $ $0 $@ 5532 5533on `(hostname || uname -n) 2>/dev/null | sed 1q` 5534" 5535 5536_ACEOF 5537 5538case $ac_config_files in *" 5539"*) set x $ac_config_files; shift; ac_config_files=$*;; 5540esac 5541 5542case $ac_config_headers in *" 5543"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5544esac 5545 5546 5547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5548# Files that config.status was made for. 5549config_files="$ac_config_files" 5550config_headers="$ac_config_headers" 5551 5552_ACEOF 5553 5554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5555ac_cs_usage="\ 5556\`$as_me' instantiates files and other configuration actions 5557from templates according to the current configuration. Unless the files 5558and actions are specified as TAGs, all are instantiated by default. 5559 5560Usage: $0 [OPTION]... [TAG]... 5561 5562 -h, --help print this help, then exit 5563 -V, --version print version number and configuration settings, then exit 5564 --config print configuration, then exit 5565 -q, --quiet, --silent 5566 do not print progress messages 5567 -d, --debug don't remove temporary files 5568 --recheck update $as_me by reconfiguring in the same conditions 5569 --file=FILE[:TEMPLATE] 5570 instantiate the configuration file FILE 5571 --header=FILE[:TEMPLATE] 5572 instantiate the configuration header FILE 5573 5574Configuration files: 5575$config_files 5576 5577Configuration headers: 5578$config_headers 5579 5580Report bugs to the package provider." 5581 5582_ACEOF 5583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5584ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5585ac_cs_version="\\ 5586config.status 5587configured by $0, generated by GNU Autoconf 2.69, 5588 with options \\"\$ac_cs_config\\" 5589 5590Copyright (C) 2012 Free Software Foundation, Inc. 5591This config.status script is free software; the Free Software Foundation 5592gives unlimited permission to copy, distribute and modify it." 5593 5594ac_pwd='$ac_pwd' 5595srcdir='$srcdir' 5596test -n "\$AWK" || AWK=awk 5597_ACEOF 5598 5599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5600# The default lists apply if the user does not specify any file. 5601ac_need_defaults=: 5602while test $# != 0 5603do 5604 case $1 in 5605 --*=?*) 5606 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5608 ac_shift=: 5609 ;; 5610 --*=) 5611 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5612 ac_optarg= 5613 ac_shift=: 5614 ;; 5615 *) 5616 ac_option=$1 5617 ac_optarg=$2 5618 ac_shift=shift 5619 ;; 5620 esac 5621 5622 case $ac_option in 5623 # Handling of the options. 5624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5625 ac_cs_recheck=: ;; 5626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5627 $as_echo "$ac_cs_version"; exit ;; 5628 --config | --confi | --conf | --con | --co | --c ) 5629 $as_echo "$ac_cs_config"; exit ;; 5630 --debug | --debu | --deb | --de | --d | -d ) 5631 debug=: ;; 5632 --file | --fil | --fi | --f ) 5633 $ac_shift 5634 case $ac_optarg in 5635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5636 '') as_fn_error $? "missing file argument" ;; 5637 esac 5638 as_fn_append CONFIG_FILES " '$ac_optarg'" 5639 ac_need_defaults=false;; 5640 --header | --heade | --head | --hea ) 5641 $ac_shift 5642 case $ac_optarg in 5643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5644 esac 5645 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5646 ac_need_defaults=false;; 5647 --he | --h) 5648 # Conflict between --help and --header 5649 as_fn_error $? "ambiguous option: \`$1' 5650Try \`$0 --help' for more information.";; 5651 --help | --hel | -h ) 5652 $as_echo "$ac_cs_usage"; exit ;; 5653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5654 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5655 ac_cs_silent=: ;; 5656 5657 # This is an error. 5658 -*) as_fn_error $? "unrecognized option: \`$1' 5659Try \`$0 --help' for more information." ;; 5660 5661 *) as_fn_append ac_config_targets " $1" 5662 ac_need_defaults=false ;; 5663 5664 esac 5665 shift 5666done 5667 5668ac_configure_extra_args= 5669 5670if $ac_cs_silent; then 5671 exec 6>/dev/null 5672 ac_configure_extra_args="$ac_configure_extra_args --silent" 5673fi 5674 5675_ACEOF 5676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5677if \$ac_cs_recheck; then 5678 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5679 shift 5680 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5681 CONFIG_SHELL='$SHELL' 5682 export CONFIG_SHELL 5683 exec "\$@" 5684fi 5685 5686_ACEOF 5687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5688exec 5>>config.log 5689{ 5690 echo 5691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5692## Running $as_me. ## 5693_ASBOX 5694 $as_echo "$ac_log" 5695} >&5 5696 5697_ACEOF 5698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5699_ACEOF 5700 5701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5702 5703# Handling of arguments. 5704for ac_config_target in $ac_config_targets 5705do 5706 case $ac_config_target in 5707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5708 "../tests/Makefile") CONFIG_FILES="$CONFIG_FILES ../tests/Makefile" ;; 5709 "../include/nsock_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ../include/nsock_config.h" ;; 5710 5711 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5712 esac 5713done 5714 5715 5716# If the user did not use the arguments to specify the items to instantiate, 5717# then the envvar interface is used. Set only those that are not. 5718# We use the long form for the default assignment because of an extremely 5719# bizarre bug on SunOS 4.1.3. 5720if $ac_need_defaults; then 5721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5723fi 5724 5725# Have a temporary directory for convenience. Make it in the build tree 5726# simply because there is no reason against having it here, and in addition, 5727# creating and moving files from /tmp can sometimes cause problems. 5728# Hook for its removal unless debugging. 5729# Note that there is a small window in which the directory will not be cleaned: 5730# after its creation but before its name has been assigned to `$tmp'. 5731$debug || 5732{ 5733 tmp= ac_tmp= 5734 trap 'exit_status=$? 5735 : "${ac_tmp:=$tmp}" 5736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5737' 0 5738 trap 'as_fn_exit 1' 1 2 13 15 5739} 5740# Create a (secure) tmp directory for tmp files. 5741 5742{ 5743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5744 test -d "$tmp" 5745} || 5746{ 5747 tmp=./conf$$-$RANDOM 5748 (umask 077 && mkdir "$tmp") 5749} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5750ac_tmp=$tmp 5751 5752# Set up the scripts for CONFIG_FILES section. 5753# No need to generate them if there are no CONFIG_FILES. 5754# This happens for instance with `./config.status config.h'. 5755if test -n "$CONFIG_FILES"; then 5756 5757 5758ac_cr=`echo X | tr X '\015'` 5759# On cygwin, bash can eat \r inside `` if the user requested igncr. 5760# But we know of no other shell where ac_cr would be empty at this 5761# point, so we can use a bashism as a fallback. 5762if test "x$ac_cr" = x; then 5763 eval ac_cr=\$\'\\r\' 5764fi 5765ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5766if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5767 ac_cs_awk_cr='\\r' 5768else 5769 ac_cs_awk_cr=$ac_cr 5770fi 5771 5772echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 5773_ACEOF 5774 5775 5776{ 5777 echo "cat >conf$$subs.awk <<_ACEOF" && 5778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5779 echo "_ACEOF" 5780} >conf$$subs.sh || 5781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5782ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5783ac_delim='%!_!# ' 5784for ac_last_try in false false false false false :; do 5785 . ./conf$$subs.sh || 5786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5787 5788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5789 if test $ac_delim_n = $ac_delim_num; then 5790 break 5791 elif $ac_last_try; then 5792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5793 else 5794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5795 fi 5796done 5797rm -f conf$$subs.sh 5798 5799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5800cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 5801_ACEOF 5802sed -n ' 5803h 5804s/^/S["/; s/!.*/"]=/ 5805p 5806g 5807s/^[^!]*!// 5808:repl 5809t repl 5810s/'"$ac_delim"'$// 5811t delim 5812:nl 5813h 5814s/\(.\{148\}\)..*/\1/ 5815t more1 5816s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5817p 5818n 5819b repl 5820:more1 5821s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5822p 5823g 5824s/.\{148\}// 5825t nl 5826:delim 5827h 5828s/\(.\{148\}\)..*/\1/ 5829t more2 5830s/["\\]/\\&/g; s/^/"/; s/$/"/ 5831p 5832b 5833:more2 5834s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5835p 5836g 5837s/.\{148\}// 5838t delim 5839' <conf$$subs.awk | sed ' 5840/^[^""]/{ 5841 N 5842 s/\n// 5843} 5844' >>$CONFIG_STATUS || ac_write_fail=1 5845rm -f conf$$subs.awk 5846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5847_ACAWK 5848cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5849 for (key in S) S_is_set[key] = 1 5850 FS = "" 5851 5852} 5853{ 5854 line = $ 0 5855 nfields = split(line, field, "@") 5856 substed = 0 5857 len = length(field[1]) 5858 for (i = 2; i < nfields; i++) { 5859 key = field[i] 5860 keylen = length(key) 5861 if (S_is_set[key]) { 5862 value = S[key] 5863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5864 len += length(value) + length(field[++i]) 5865 substed = 1 5866 } else 5867 len += 1 + keylen 5868 } 5869 5870 print line 5871} 5872 5873_ACAWK 5874_ACEOF 5875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5876if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5878else 5879 cat 5880fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5882_ACEOF 5883 5884# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5885# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5886# trailing colons and then remove the whole line if VPATH becomes empty 5887# (actually we leave an empty line to preserve line numbers). 5888if test "x$srcdir" = x.; then 5889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5890h 5891s/// 5892s/^/:/ 5893s/[ ]*$/:/ 5894s/:\$(srcdir):/:/g 5895s/:\${srcdir}:/:/g 5896s/:@srcdir@:/:/g 5897s/^:*// 5898s/:*$// 5899x 5900s/\(=[ ]*\).*/\1/ 5901G 5902s/\n// 5903s/^[^=]*=[ ]*$// 5904}' 5905fi 5906 5907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5908fi # test -n "$CONFIG_FILES" 5909 5910# Set up the scripts for CONFIG_HEADERS section. 5911# No need to generate them if there are no CONFIG_HEADERS. 5912# This happens for instance with `./config.status Makefile'. 5913if test -n "$CONFIG_HEADERS"; then 5914cat >"$ac_tmp/defines.awk" <<\_ACAWK || 5915BEGIN { 5916_ACEOF 5917 5918# Transform confdefs.h into an awk script `defines.awk', embedded as 5919# here-document in config.status, that substitutes the proper values into 5920# config.h.in to produce config.h. 5921 5922# Create a delimiter string that does not exist in confdefs.h, to ease 5923# handling of long lines. 5924ac_delim='%!_!# ' 5925for ac_last_try in false false :; do 5926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 5927 if test -z "$ac_tt"; then 5928 break 5929 elif $ac_last_try; then 5930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5931 else 5932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5933 fi 5934done 5935 5936# For the awk script, D is an array of macro values keyed by name, 5937# likewise P contains macro parameters if any. Preserve backslash 5938# newline sequences. 5939 5940ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5941sed -n ' 5942s/.\{148\}/&'"$ac_delim"'/g 5943t rset 5944:rset 5945s/^[ ]*#[ ]*define[ ][ ]*/ / 5946t def 5947d 5948:def 5949s/\\$// 5950t bsnl 5951s/["\\]/\\&/g 5952s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5953D["\1"]=" \3"/p 5954s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5955d 5956:bsnl 5957s/["\\]/\\&/g 5958s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5959D["\1"]=" \3\\\\\\n"\\/p 5960t cont 5961s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5962t cont 5963d 5964:cont 5965n 5966s/.\{148\}/&'"$ac_delim"'/g 5967t clear 5968:clear 5969s/\\$// 5970t bsnlc 5971s/["\\]/\\&/g; s/^/"/; s/$/"/p 5972d 5973:bsnlc 5974s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5975b cont 5976' <confdefs.h | sed ' 5977s/'"$ac_delim"'/"\\\ 5978"/g' >>$CONFIG_STATUS || ac_write_fail=1 5979 5980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5981 for (key in D) D_is_set[key] = 1 5982 FS = "" 5983} 5984/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5985 line = \$ 0 5986 split(line, arg, " ") 5987 if (arg[1] == "#") { 5988 defundef = arg[2] 5989 mac1 = arg[3] 5990 } else { 5991 defundef = substr(arg[1], 2) 5992 mac1 = arg[2] 5993 } 5994 split(mac1, mac2, "(") #) 5995 macro = mac2[1] 5996 prefix = substr(line, 1, index(line, defundef) - 1) 5997 if (D_is_set[macro]) { 5998 # Preserve the white space surrounding the "#". 5999 print prefix "define", macro P[macro] D[macro] 6000 next 6001 } else { 6002 # Replace #undef with comments. This is necessary, for example, 6003 # in the case of _POSIX_SOURCE, which is predefined and required 6004 # on some systems where configure will not decide to define it. 6005 if (defundef == "undef") { 6006 print "/*", prefix defundef, macro, "*/" 6007 next 6008 } 6009 } 6010} 6011{ print } 6012_ACAWK 6013_ACEOF 6014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6016fi # test -n "$CONFIG_HEADERS" 6017 6018 6019eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 6020shift 6021for ac_tag 6022do 6023 case $ac_tag in 6024 :[FHLC]) ac_mode=$ac_tag; continue;; 6025 esac 6026 case $ac_mode$ac_tag in 6027 :[FHL]*:*);; 6028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6029 :[FH]-) ac_tag=-:-;; 6030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6031 esac 6032 ac_save_IFS=$IFS 6033 IFS=: 6034 set x $ac_tag 6035 IFS=$ac_save_IFS 6036 shift 6037 ac_file=$1 6038 shift 6039 6040 case $ac_mode in 6041 :L) ac_source=$1;; 6042 :[FH]) 6043 ac_file_inputs= 6044 for ac_f 6045 do 6046 case $ac_f in 6047 -) ac_f="$ac_tmp/stdin";; 6048 *) # Look for the file first in the build tree, then in the source tree 6049 # (if the path is not absolute). The absolute path cannot be DOS-style, 6050 # because $ac_f cannot contain `:'. 6051 test -f "$ac_f" || 6052 case $ac_f in 6053 [\\/$]*) false;; 6054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6055 esac || 6056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6057 esac 6058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6059 as_fn_append ac_file_inputs " '$ac_f'" 6060 done 6061 6062 # Let's still pretend it is `configure' which instantiates (i.e., don't 6063 # use $as_me), people would be surprised to read: 6064 # /* config.h. Generated by config.status. */ 6065 configure_input='Generated from '` 6066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6067 `' by configure.' 6068 if test x"$ac_file" != x-; then 6069 configure_input="$ac_file. $configure_input" 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6071$as_echo "$as_me: creating $ac_file" >&6;} 6072 fi 6073 # Neutralize special characters interpreted by sed in replacement strings. 6074 case $configure_input in #( 6075 *\&* | *\|* | *\\* ) 6076 ac_sed_conf_input=`$as_echo "$configure_input" | 6077 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6078 *) ac_sed_conf_input=$configure_input;; 6079 esac 6080 6081 case $ac_tag in 6082 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6084 esac 6085 ;; 6086 esac 6087 6088 ac_dir=`$as_dirname -- "$ac_file" || 6089$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6090 X"$ac_file" : 'X\(//\)[^/]' \| \ 6091 X"$ac_file" : 'X\(//\)$' \| \ 6092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6093$as_echo X"$ac_file" | 6094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6095 s//\1/ 6096 q 6097 } 6098 /^X\(\/\/\)[^/].*/{ 6099 s//\1/ 6100 q 6101 } 6102 /^X\(\/\/\)$/{ 6103 s//\1/ 6104 q 6105 } 6106 /^X\(\/\).*/{ 6107 s//\1/ 6108 q 6109 } 6110 s/.*/./; q'` 6111 as_dir="$ac_dir"; as_fn_mkdir_p 6112 ac_builddir=. 6113 6114case "$ac_dir" in 6115.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6116*) 6117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6118 # A ".." for each directory in $ac_dir_suffix. 6119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6120 case $ac_top_builddir_sub in 6121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6123 esac ;; 6124esac 6125ac_abs_top_builddir=$ac_pwd 6126ac_abs_builddir=$ac_pwd$ac_dir_suffix 6127# for backward compatibility: 6128ac_top_builddir=$ac_top_build_prefix 6129 6130case $srcdir in 6131 .) # We are building in place. 6132 ac_srcdir=. 6133 ac_top_srcdir=$ac_top_builddir_sub 6134 ac_abs_top_srcdir=$ac_pwd ;; 6135 [\\/]* | ?:[\\/]* ) # Absolute name. 6136 ac_srcdir=$srcdir$ac_dir_suffix; 6137 ac_top_srcdir=$srcdir 6138 ac_abs_top_srcdir=$srcdir ;; 6139 *) # Relative name. 6140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6141 ac_top_srcdir=$ac_top_build_prefix$srcdir 6142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6143esac 6144ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6145 6146 6147 case $ac_mode in 6148 :F) 6149 # 6150 # CONFIG_FILE 6151 # 6152 6153_ACEOF 6154 6155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6156# If the template does not know about datarootdir, expand it. 6157# FIXME: This hack should be removed a few years after 2.60. 6158ac_datarootdir_hack=; ac_datarootdir_seen= 6159ac_sed_dataroot=' 6160/datarootdir/ { 6161 p 6162 q 6163} 6164/@datadir@/p 6165/@docdir@/p 6166/@infodir@/p 6167/@localedir@/p 6168/@mandir@/p' 6169case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6170*datarootdir*) ac_datarootdir_seen=yes;; 6171*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6173$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6174_ACEOF 6175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6176 ac_datarootdir_hack=' 6177 s&@datadir@&$datadir&g 6178 s&@docdir@&$docdir&g 6179 s&@infodir@&$infodir&g 6180 s&@localedir@&$localedir&g 6181 s&@mandir@&$mandir&g 6182 s&\\\${datarootdir}&$datarootdir&g' ;; 6183esac 6184_ACEOF 6185 6186# Neutralize VPATH when `$srcdir' = `.'. 6187# Shell code in configure.ac might set extrasub. 6188# FIXME: do we really want to maintain this feature? 6189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6190ac_sed_extra="$ac_vpsub 6191$extrasub 6192_ACEOF 6193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6194:t 6195/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6196s|@configure_input@|$ac_sed_conf_input|;t t 6197s&@top_builddir@&$ac_top_builddir_sub&;t t 6198s&@top_build_prefix@&$ac_top_build_prefix&;t t 6199s&@srcdir@&$ac_srcdir&;t t 6200s&@abs_srcdir@&$ac_abs_srcdir&;t t 6201s&@top_srcdir@&$ac_top_srcdir&;t t 6202s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6203s&@builddir@&$ac_builddir&;t t 6204s&@abs_builddir@&$ac_abs_builddir&;t t 6205s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6206$ac_datarootdir_hack 6207" 6208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6209 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6210 6211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6212 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6214 "$ac_tmp/out"`; test -z "$ac_out"; } && 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6216which seems to be undefined. Please make sure it is defined" >&5 6217$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6218which seems to be undefined. Please make sure it is defined" >&2;} 6219 6220 rm -f "$ac_tmp/stdin" 6221 case $ac_file in 6222 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6223 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6224 esac \ 6225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6226 ;; 6227 :H) 6228 # 6229 # CONFIG_HEADER 6230 # 6231 if test x"$ac_file" != x-; then 6232 { 6233 $as_echo "/* $configure_input */" \ 6234 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6235 } >"$ac_tmp/config.h" \ 6236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6237 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6239$as_echo "$as_me: $ac_file is unchanged" >&6;} 6240 else 6241 rm -f "$ac_file" 6242 mv "$ac_tmp/config.h" "$ac_file" \ 6243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6244 fi 6245 else 6246 $as_echo "/* $configure_input */" \ 6247 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6248 || as_fn_error $? "could not create -" "$LINENO" 5 6249 fi 6250 ;; 6251 6252 6253 esac 6254 6255done # for ac_tag 6256 6257 6258as_fn_exit 0 6259_ACEOF 6260ac_clean_files=$ac_clean_files_save 6261 6262test $ac_write_fail = 0 || 6263 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6264 6265 6266# configure is writing to config.log, and then calls config.status. 6267# config.status does its own redirection, appending to config.log. 6268# Unfortunately, on DOS this fails, as config.log is still kept open 6269# by configure, so config.status won't be able to write to it; its 6270# output is simply discarded. So we exec the FD to /dev/null, 6271# effectively closing config.log, so it can be properly (re)opened and 6272# appended to by config.status. When coming back to configure, we 6273# need to make the FD available again. 6274if test "$no_create" != yes; then 6275 ac_cs_success=: 6276 ac_config_status_args= 6277 test "$silent" = yes && 6278 ac_config_status_args="$ac_config_status_args --quiet" 6279 exec 5>/dev/null 6280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6281 exec 5>>config.log 6282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6283 # would make configure fail if this is the last instruction. 6284 $ac_cs_success || as_fn_exit 1 6285fi 6286if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6288$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6289fi 6290 6291