1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libclick 2.1. 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='libclick' 579PACKAGE_TARNAME='libclick' 580PACKAGE_VERSION='2.1' 581PACKAGE_STRING='libclick 2.1' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="click-buildtool.in" 586ac_header_list= 587# Factoring default headers for most tests. 588ac_includes_default="\ 589#include <stdio.h> 590#ifdef HAVE_SYS_TYPES_H 591# include <sys/types.h> 592#endif 593#ifdef HAVE_SYS_STAT_H 594# include <sys/stat.h> 595#endif 596#ifdef STDC_HEADERS 597# include <stdlib.h> 598# include <stddef.h> 599#else 600# ifdef HAVE_STDLIB_H 601# include <stdlib.h> 602# endif 603#endif 604#ifdef HAVE_STRING_H 605# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 606# include <memory.h> 607# endif 608# include <string.h> 609#endif 610#ifdef HAVE_STRINGS_H 611# include <strings.h> 612#endif 613#ifdef HAVE_INTTYPES_H 614# include <inttypes.h> 615#endif 616#ifdef HAVE_STDINT_H 617# include <stdint.h> 618#endif 619#ifdef HAVE_UNISTD_H 620# include <unistd.h> 621#endif" 622 623ac_subst_vars='LTLIBOBJS 624provisions 625clickbuild_sbindir 626clickbuild_libdir 627clickbuild_includedir 628clickbuild_datadir 629clickbuild_clickdatadir 630clickbuild_bindir 631clickdatadir 632POD2MAN 633TEXI2DVI 634MAKEINFO 635INSTALL_INFO 636MD5SUM 637AWK 638PERL 639localperl5 640perl5 641AUTOCONF 642GMAKE 643SUBMAKE 644CLICK_BUILD_INSTALL_IF_CHANGED 645CLICK_BUILD_INSTALL 646CLICKINSTALL 647INSTALL_IF_CHANGED 648INSTALL_DATA 649INSTALL_SCRIPT 650INSTALL_PROGRAM 651EXPAT_LIBS 652EXPAT_INCLUDES 653XML2CLICK 654PROPER_LIBS 655PROPER_INCLUDES 656NETMAP_INCLUDES 657PCAP_LIBS 658PCAP_INCLUDES 659EXTRA_TOOL_OBJS 660EXTRA_DRIVER_OBJS 661SOCKET_LIBS 662SOSUFFIX 663LDMODULEFLAGS 664DL_LDFLAGS 665DL_LIBS 666POSIX_CLOCK_LIBS 667LIBOBJS 668element_groups 669PTHREAD_LIBS 670AR_CREATEFLAGS 671STRIP 672RANLIB 673LD 674AR 675CXXCPP 676ac_ct_CXX 677CXXFLAGS 678EGREP 679GREP 680CPP 681DEPDIRFLAG 682DEPCFLAGS 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CXX 690CC 691target_os 692target_vendor 693target_cpu 694target 695host_os 696host_vendor 697host_cpu 698host 699build_os 700build_vendor 701build_cpu 702build 703conf_auxdir 704CLICK_VERSION 705ac_configure_args 706target_alias 707host_alias 708build_alias 709LIBS 710ECHO_T 711ECHO_N 712ECHO_C 713DEFS 714mandir 715localedir 716libdir 717psdir 718pdfdir 719dvidir 720htmldir 721infodir 722docdir 723oldincludedir 724includedir 725localstatedir 726sharedstatedir 727sysconfdir 728datadir 729datarootdir 730libexecdir 731sbindir 732bindir 733program_transform_name 734prefix 735exec_prefix 736PACKAGE_URL 737PACKAGE_BUGREPORT 738PACKAGE_STRING 739PACKAGE_VERSION 740PACKAGE_TARNAME 741PACKAGE_NAME 742PATH_SEPARATOR 743SHELL' 744ac_subst_files='' 745ac_user_opts=' 746enable_option_checking 747enable_user_multithread 748enable_select 749enable_poll 750enable_kqueue 751enable_all_elements 752enable_ip6 753enable_ipsec 754enable_experimental 755enable_smaller_code 756enable_int64 757enable_nanotimestamp 758enable_bound_port_transfer 759enable_dynamic_linking 760enable_stats 761enable_stride 762enable_task_heap 763enable_dmalloc 764enable_valgrind 765enable_schedule_debugging 766enable_intel_cpu 767with_netmap 768with_proper 769with_expat 770' 771 ac_precious_vars='build_alias 772host_alias 773target_alias 774CC 775CFLAGS 776LDFLAGS 777LIBS 778CPPFLAGS 779CPP 780CXX 781CXXFLAGS 782CCC 783CXXCPP' 784 785 786# Initialize some variables set by options. 787ac_init_help= 788ac_init_version=false 789ac_unrecognized_opts= 790ac_unrecognized_sep= 791# The variables have the same names as the options, with 792# dashes changed to underlines. 793cache_file=/dev/null 794exec_prefix=NONE 795no_create= 796no_recursion= 797prefix=NONE 798program_prefix=NONE 799program_suffix=NONE 800program_transform_name=s,x,x, 801silent= 802site= 803srcdir= 804verbose= 805x_includes=NONE 806x_libraries=NONE 807 808# Installation directory options. 809# These are left unexpanded so users can "make install exec_prefix=/foo" 810# and all the variables that are supposed to be based on exec_prefix 811# by default will actually change. 812# Use braces instead of parens because sh, perl, etc. also accept them. 813# (The list follows the same order as the GNU Coding Standards.) 814bindir='${exec_prefix}/bin' 815sbindir='${exec_prefix}/sbin' 816libexecdir='${exec_prefix}/libexec' 817datarootdir='${prefix}/share' 818datadir='${datarootdir}' 819sysconfdir='${prefix}/etc' 820sharedstatedir='${prefix}/com' 821localstatedir='${prefix}/var' 822includedir='${prefix}/include' 823oldincludedir='/usr/include' 824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 825infodir='${datarootdir}/info' 826htmldir='${docdir}' 827dvidir='${docdir}' 828pdfdir='${docdir}' 829psdir='${docdir}' 830libdir='${exec_prefix}/lib' 831localedir='${datarootdir}/locale' 832mandir='${datarootdir}/man' 833 834ac_prev= 835ac_dashdash= 836for ac_option 837do 838 # If the previous option needs an argument, assign it. 839 if test -n "$ac_prev"; then 840 eval $ac_prev=\$ac_option 841 ac_prev= 842 continue 843 fi 844 845 case $ac_option in 846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 847 *=) ac_optarg= ;; 848 *) ac_optarg=yes ;; 849 esac 850 851 # Accept the important Cygnus configure options, so we can diagnose typos. 852 853 case $ac_dashdash$ac_option in 854 --) 855 ac_dashdash=yes ;; 856 857 -bindir | --bindir | --bindi | --bind | --bin | --bi) 858 ac_prev=bindir ;; 859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 860 bindir=$ac_optarg ;; 861 862 -build | --build | --buil | --bui | --bu) 863 ac_prev=build_alias ;; 864 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 865 build_alias=$ac_optarg ;; 866 867 -cache-file | --cache-file | --cache-fil | --cache-fi \ 868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 869 ac_prev=cache_file ;; 870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 872 cache_file=$ac_optarg ;; 873 874 --config-cache | -C) 875 cache_file=config.cache ;; 876 877 -datadir | --datadir | --datadi | --datad) 878 ac_prev=datadir ;; 879 -datadir=* | --datadir=* | --datadi=* | --datad=*) 880 datadir=$ac_optarg ;; 881 882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 883 | --dataroo | --dataro | --datar) 884 ac_prev=datarootdir ;; 885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 887 datarootdir=$ac_optarg ;; 888 889 -disable-* | --disable-*) 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 891 # Reject names that are not valid shell variable names. 892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 893 as_fn_error $? "invalid feature name: $ac_useropt" 894 ac_useropt_orig=$ac_useropt 895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 896 case $ac_user_opts in 897 *" 898"enable_$ac_useropt" 899"*) ;; 900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 901 ac_unrecognized_sep=', ';; 902 esac 903 eval enable_$ac_useropt=no ;; 904 905 -docdir | --docdir | --docdi | --doc | --do) 906 ac_prev=docdir ;; 907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 908 docdir=$ac_optarg ;; 909 910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 911 ac_prev=dvidir ;; 912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 913 dvidir=$ac_optarg ;; 914 915 -enable-* | --enable-*) 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 917 # Reject names that are not valid shell variable names. 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919 as_fn_error $? "invalid feature name: $ac_useropt" 920 ac_useropt_orig=$ac_useropt 921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 922 case $ac_user_opts in 923 *" 924"enable_$ac_useropt" 925"*) ;; 926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 927 ac_unrecognized_sep=', ';; 928 esac 929 eval enable_$ac_useropt=\$ac_optarg ;; 930 931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 933 | --exec | --exe | --ex) 934 ac_prev=exec_prefix ;; 935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 937 | --exec=* | --exe=* | --ex=*) 938 exec_prefix=$ac_optarg ;; 939 940 -gas | --gas | --ga | --g) 941 # Obsolete; use --with-gas. 942 with_gas=yes ;; 943 944 -help | --help | --hel | --he | -h) 945 ac_init_help=long ;; 946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 947 ac_init_help=recursive ;; 948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 949 ac_init_help=short ;; 950 951 -host | --host | --hos | --ho) 952 ac_prev=host_alias ;; 953 -host=* | --host=* | --hos=* | --ho=*) 954 host_alias=$ac_optarg ;; 955 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 957 ac_prev=htmldir ;; 958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 959 | --ht=*) 960 htmldir=$ac_optarg ;; 961 962 -includedir | --includedir | --includedi | --included | --include \ 963 | --includ | --inclu | --incl | --inc) 964 ac_prev=includedir ;; 965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 966 | --includ=* | --inclu=* | --incl=* | --inc=*) 967 includedir=$ac_optarg ;; 968 969 -infodir | --infodir | --infodi | --infod | --info | --inf) 970 ac_prev=infodir ;; 971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 972 infodir=$ac_optarg ;; 973 974 -libdir | --libdir | --libdi | --libd) 975 ac_prev=libdir ;; 976 -libdir=* | --libdir=* | --libdi=* | --libd=*) 977 libdir=$ac_optarg ;; 978 979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 980 | --libexe | --libex | --libe) 981 ac_prev=libexecdir ;; 982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 983 | --libexe=* | --libex=* | --libe=*) 984 libexecdir=$ac_optarg ;; 985 986 -localedir | --localedir | --localedi | --localed | --locale) 987 ac_prev=localedir ;; 988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 989 localedir=$ac_optarg ;; 990 991 -localstatedir | --localstatedir | --localstatedi | --localstated \ 992 | --localstate | --localstat | --localsta | --localst | --locals) 993 ac_prev=localstatedir ;; 994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 996 localstatedir=$ac_optarg ;; 997 998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 999 ac_prev=mandir ;; 1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1001 mandir=$ac_optarg ;; 1002 1003 -nfp | --nfp | --nf) 1004 # Obsolete; use --without-fp. 1005 with_fp=no ;; 1006 1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1008 | --no-cr | --no-c | -n) 1009 no_create=yes ;; 1010 1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1013 no_recursion=yes ;; 1014 1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1017 | --oldin | --oldi | --old | --ol | --o) 1018 ac_prev=oldincludedir ;; 1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1022 oldincludedir=$ac_optarg ;; 1023 1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1025 ac_prev=prefix ;; 1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1027 prefix=$ac_optarg ;; 1028 1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1030 | --program-pre | --program-pr | --program-p) 1031 ac_prev=program_prefix ;; 1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1034 program_prefix=$ac_optarg ;; 1035 1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1037 | --program-suf | --program-su | --program-s) 1038 ac_prev=program_suffix ;; 1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1041 program_suffix=$ac_optarg ;; 1042 1043 -program-transform-name | --program-transform-name \ 1044 | --program-transform-nam | --program-transform-na \ 1045 | --program-transform-n | --program-transform- \ 1046 | --program-transform | --program-transfor \ 1047 | --program-transfo | --program-transf \ 1048 | --program-trans | --program-tran \ 1049 | --progr-tra | --program-tr | --program-t) 1050 ac_prev=program_transform_name ;; 1051 -program-transform-name=* | --program-transform-name=* \ 1052 | --program-transform-nam=* | --program-transform-na=* \ 1053 | --program-transform-n=* | --program-transform-=* \ 1054 | --program-transform=* | --program-transfor=* \ 1055 | --program-transfo=* | --program-transf=* \ 1056 | --program-trans=* | --program-tran=* \ 1057 | --progr-tra=* | --program-tr=* | --program-t=*) 1058 program_transform_name=$ac_optarg ;; 1059 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1061 ac_prev=pdfdir ;; 1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1063 pdfdir=$ac_optarg ;; 1064 1065 -psdir | --psdir | --psdi | --psd | --ps) 1066 ac_prev=psdir ;; 1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1068 psdir=$ac_optarg ;; 1069 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 silent=yes ;; 1073 1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1075 ac_prev=sbindir ;; 1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1077 | --sbi=* | --sb=*) 1078 sbindir=$ac_optarg ;; 1079 1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1082 | --sharedst | --shareds | --shared | --share | --shar \ 1083 | --sha | --sh) 1084 ac_prev=sharedstatedir ;; 1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1088 | --sha=* | --sh=*) 1089 sharedstatedir=$ac_optarg ;; 1090 1091 -site | --site | --sit) 1092 ac_prev=site ;; 1093 -site=* | --site=* | --sit=*) 1094 site=$ac_optarg ;; 1095 1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1097 ac_prev=srcdir ;; 1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1099 srcdir=$ac_optarg ;; 1100 1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1102 | --syscon | --sysco | --sysc | --sys | --sy) 1103 ac_prev=sysconfdir ;; 1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1106 sysconfdir=$ac_optarg ;; 1107 1108 -target | --target | --targe | --targ | --tar | --ta | --t) 1109 ac_prev=target_alias ;; 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1111 target_alias=$ac_optarg ;; 1112 1113 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1114 verbose=yes ;; 1115 1116 -version | --version | --versio | --versi | --vers | -V) 1117 ac_init_version=: ;; 1118 1119 -with-* | --with-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=\$ac_optarg ;; 1134 1135 -without-* | --without-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=no ;; 1150 1151 --x) 1152 # Obsolete; use --with-x. 1153 with_x=yes ;; 1154 1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1156 | --x-incl | --x-inc | --x-in | --x-i) 1157 ac_prev=x_includes ;; 1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1160 x_includes=$ac_optarg ;; 1161 1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1164 ac_prev=x_libraries ;; 1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1167 x_libraries=$ac_optarg ;; 1168 1169 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1170Try \`$0 --help' for more information" 1171 ;; 1172 1173 *=*) 1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1175 # Reject names that are not valid shell variable names. 1176 case $ac_envvar in #( 1177 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1179 esac 1180 eval $ac_envvar=\$ac_optarg 1181 export $ac_envvar ;; 1182 1183 *) 1184 # FIXME: should be removed in autoconf 3.0. 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1189 ;; 1190 1191 esac 1192done 1193 1194if test -n "$ac_prev"; then 1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1196 as_fn_error $? "missing argument to $ac_option" 1197fi 1198 1199if test -n "$ac_unrecognized_opts"; then 1200 case $enable_option_checking in 1201 no) ;; 1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1204 esac 1205fi 1206 1207# Check all directory arguments for consistency. 1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1209 datadir sysconfdir sharedstatedir localstatedir includedir \ 1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1211 libdir localedir mandir 1212do 1213 eval ac_val=\$$ac_var 1214 # Remove trailing slashes. 1215 case $ac_val in 1216 */ ) 1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1218 eval $ac_var=\$ac_val;; 1219 esac 1220 # Be sure to have absolute directory names. 1221 case $ac_val in 1222 [\\/$]* | ?:[\\/]* ) continue;; 1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1224 esac 1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1226done 1227 1228# There might be people who depend on the old broken behavior: `$host' 1229# used to hold the argument of --host etc. 1230# FIXME: To remove some day. 1231build=$build_alias 1232host=$host_alias 1233target=$target_alias 1234 1235# FIXME: To remove some day. 1236if test "x$host_alias" != x; then 1237 if test "x$build_alias" = x; then 1238 cross_compiling=maybe 1239 elif test "x$build_alias" != "x$host_alias"; then 1240 cross_compiling=yes 1241 fi 1242fi 1243 1244ac_tool_prefix= 1245test -n "$host_alias" && ac_tool_prefix=$host_alias- 1246 1247test "$silent" = yes && exec 6>/dev/null 1248 1249 1250ac_pwd=`pwd` && test -n "$ac_pwd" && 1251ac_ls_di=`ls -di .` && 1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1253 as_fn_error $? "working directory cannot be determined" 1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1255 as_fn_error $? "pwd does not report name of working directory" 1256 1257 1258# Find the source files, if location was not specified. 1259if test -z "$srcdir"; then 1260 ac_srcdir_defaulted=yes 1261 # Try the directory containing this script, then the parent directory. 1262 ac_confdir=`$as_dirname -- "$as_myself" || 1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264 X"$as_myself" : 'X\(//\)[^/]' \| \ 1265 X"$as_myself" : 'X\(//\)$' \| \ 1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1267$as_echo X"$as_myself" | 1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)[^/].*/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\).*/{ 1281 s//\1/ 1282 q 1283 } 1284 s/.*/./; q'` 1285 srcdir=$ac_confdir 1286 if test ! -r "$srcdir/$ac_unique_file"; then 1287 srcdir=.. 1288 fi 1289else 1290 ac_srcdir_defaulted=no 1291fi 1292if test ! -r "$srcdir/$ac_unique_file"; then 1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1295fi 1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1297ac_abs_confdir=`( 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1299 pwd)` 1300# When building in place, set srcdir=. 1301if test "$ac_abs_confdir" = "$ac_pwd"; then 1302 srcdir=. 1303fi 1304# Remove unnecessary trailing slashes from srcdir. 1305# Double slashes in file names in object file debugging info 1306# mess up M-x gdb in Emacs. 1307case $srcdir in 1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1309esac 1310for ac_var in $ac_precious_vars; do 1311 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_env_${ac_var}_value=\$${ac_var} 1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1315done 1316 1317# 1318# Report the --help message. 1319# 1320if test "$ac_init_help" = "long"; then 1321 # Omit some internal or obsolete options to make the list less imposing. 1322 # This message is too long to be a string in the A/UX 3.1 sh. 1323 cat <<_ACEOF 1324\`configure' configures libclick 2.1 to adapt to many kinds of systems. 1325 1326Usage: $0 [OPTION]... [VAR=VALUE]... 1327 1328To assign environment variables (e.g., CC, CFLAGS...), specify them as 1329VAR=VALUE. See below for descriptions of some of the useful variables. 1330 1331Defaults for the options are specified in brackets. 1332 1333Configuration: 1334 -h, --help display this help and exit 1335 --help=short display options specific to this package 1336 --help=recursive display the short help of all the included packages 1337 -V, --version display version information and exit 1338 -q, --quiet, --silent do not print \`checking ...' messages 1339 --cache-file=FILE cache test results in FILE [disabled] 1340 -C, --config-cache alias for \`--cache-file=config.cache' 1341 -n, --no-create do not create output files 1342 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1343 1344Installation directories: 1345 --prefix=PREFIX install architecture-independent files in PREFIX 1346 [$ac_default_prefix] 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1348 [PREFIX] 1349 1350By default, \`make install' will install all the files in 1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1352an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1353for instance \`--prefix=\$HOME'. 1354 1355For better control, use the options below. 1356 1357Fine tuning of the installation directories: 1358 --bindir=DIR user executables [EPREFIX/bin] 1359 --sbindir=DIR system admin executables [EPREFIX/sbin] 1360 --libexecdir=DIR program executables [EPREFIX/libexec] 1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libclick] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381System types: 1382 --build=BUILD configure for building on BUILD [guessed] 1383 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1384 --target=TARGET configure for building compilers for TARGET [HOST] 1385_ACEOF 1386fi 1387 1388if test -n "$ac_init_help"; then 1389 case $ac_init_help in 1390 short | recursive ) echo "Configuration of libclick 2.1:";; 1391 esac 1392 cat <<\_ACEOF 1393 1394Optional Features: 1395 --disable-option-checking ignore unrecognized --enable/--with options 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1398 --enable-user-multithread 1399 support userlevel multithreading 1400 --enable-select=[select|poll|kqueue] 1401 set file descriptor wait mechanism 1402 --disable-select do not use select() 1403 --disable-poll do not use poll() 1404 --disable-kqueue do not use kqueue() 1405 --enable-all-elements include all provided element groups 1406 --enable-ip6 include IPv6 elements 1407 --enable-ipsec include IP security elements 1408 --enable-experimental enable experimental elements in normal groups 1409 --enable-smaller-code generate smaller code (sometimes slower) 1410 --disable-int64 disable 64-bit integer support 1411 --enable-nanotimestamp enable nanosecond timestamps 1412 --enable-bound-port-transfer enable port transfer function ptr optimization 1413 --disable-dynamic-linking disable dynamic linking 1414 --enable-stats[=LEVEL] enable statistics collection 1415 --disable-stride disable stride scheduler 1416 --enable-task-heap use heap for task list 1417 --enable-dmalloc enable debugging malloc 1418 --enable-valgrind extra support for debugging with valgrind 1419 --enable-schedule-debugging[=WHAT] enable Click scheduler debugging 1420 (no/yes/extra) [yes] 1421 --enable-intel-cpu enable Intel-specific machine instructions 1422 1423Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-netmap enable netmap [no] 1427 --with-proper[=PREFIX] use PlanetLab Proper library (optional) 1428 --with-expat[=PREFIX] locate expat XML library (optional) 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 CPP C preprocessor 1439 CXX C++ compiler command 1440 CXXFLAGS C++ compiler flags 1441 CXXCPP C++ preprocessor 1442 1443Use these variables to override the choices made by `configure' or to help 1444it to find libraries and programs with nonstandard names/locations. 1445 1446Report bugs to the package provider. 1447_ACEOF 1448ac_status=$? 1449fi 1450 1451if test "$ac_init_help" = "recursive"; then 1452 # If there are subdirs, report their specific --help. 1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1454 test -d "$ac_dir" || 1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1456 continue 1457 ac_builddir=. 1458 1459case "$ac_dir" in 1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461*) 1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1463 # A ".." for each directory in $ac_dir_suffix. 1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1465 case $ac_top_builddir_sub in 1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1468 esac ;; 1469esac 1470ac_abs_top_builddir=$ac_pwd 1471ac_abs_builddir=$ac_pwd$ac_dir_suffix 1472# for backward compatibility: 1473ac_top_builddir=$ac_top_build_prefix 1474 1475case $srcdir in 1476 .) # We are building in place. 1477 ac_srcdir=. 1478 ac_top_srcdir=$ac_top_builddir_sub 1479 ac_abs_top_srcdir=$ac_pwd ;; 1480 [\\/]* | ?:[\\/]* ) # Absolute name. 1481 ac_srcdir=$srcdir$ac_dir_suffix; 1482 ac_top_srcdir=$srcdir 1483 ac_abs_top_srcdir=$srcdir ;; 1484 *) # Relative name. 1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1486 ac_top_srcdir=$ac_top_build_prefix$srcdir 1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1488esac 1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1490 1491 cd "$ac_dir" || { ac_status=$?; continue; } 1492 # Check for guested configure. 1493 if test -f "$ac_srcdir/configure.gnu"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1496 elif test -f "$ac_srcdir/configure"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure" --help=recursive 1499 else 1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1501 fi || ac_status=$? 1502 cd "$ac_pwd" || { ac_status=$?; break; } 1503 done 1504fi 1505 1506test -n "$ac_init_help" && exit $ac_status 1507if $ac_init_version; then 1508 cat <<\_ACEOF 1509libclick configure 2.1 1510generated by GNU Autoconf 2.69 1511 1512Copyright (C) 2012 Free Software Foundation, Inc. 1513This configure script is free software; the Free Software Foundation 1514gives unlimited permission to copy, distribute and modify it. 1515_ACEOF 1516 exit 1517fi 1518 1519## ------------------------ ## 1520## Autoconf initialization. ## 1521## ------------------------ ## 1522 1523# ac_fn_c_try_compile LINENO 1524# -------------------------- 1525# Try to compile conftest.$ac_ext, and return whether this succeeded. 1526ac_fn_c_try_compile () 1527{ 1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1529 rm -f conftest.$ac_objext 1530 if { { ac_try="$ac_compile" 1531case "(($ac_try" in 1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533 *) ac_try_echo=$ac_try;; 1534esac 1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536$as_echo "$ac_try_echo"; } >&5 1537 (eval "$ac_compile") 2>conftest.err 1538 ac_status=$? 1539 if test -s conftest.err; then 1540 grep -v '^ *+' conftest.err >conftest.er1 1541 cat conftest.er1 >&5 1542 mv -f conftest.er1 conftest.err 1543 fi 1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1545 test $ac_status = 0; } && { 1546 test -z "$ac_c_werror_flag" || 1547 test ! -s conftest.err 1548 } && test -s conftest.$ac_objext; then : 1549 ac_retval=0 1550else 1551 $as_echo "$as_me: failed program was:" >&5 1552sed 's/^/| /' conftest.$ac_ext >&5 1553 1554 ac_retval=1 1555fi 1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1557 as_fn_set_status $ac_retval 1558 1559} # ac_fn_c_try_compile 1560 1561# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1562# ------------------------------------------------------- 1563# Tests whether HEADER exists and can be compiled using the include files in 1564# INCLUDES, setting the cache variable VAR accordingly. 1565ac_fn_c_check_header_compile () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1569$as_echo_n "checking for $2... " >&6; } 1570if eval \${$3+:} false; then : 1571 $as_echo_n "(cached) " >&6 1572else 1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1574/* end confdefs.h. */ 1575$4 1576#include <$2> 1577_ACEOF 1578if ac_fn_c_try_compile "$LINENO"; then : 1579 eval "$3=yes" 1580else 1581 eval "$3=no" 1582fi 1583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1584fi 1585eval ac_res=\$$3 1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1587$as_echo "$ac_res" >&6; } 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 1590} # ac_fn_c_check_header_compile 1591 1592# ac_fn_c_try_cpp LINENO 1593# ---------------------- 1594# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1595ac_fn_c_try_cpp () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 if { { ac_try="$ac_cpp conftest.$ac_ext" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1606 ac_status=$? 1607 if test -s conftest.err; then 1608 grep -v '^ *+' conftest.err >conftest.er1 1609 cat conftest.er1 >&5 1610 mv -f conftest.er1 conftest.err 1611 fi 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } > conftest.i && { 1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1615 test ! -s conftest.err 1616 }; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=1 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_cpp 1628 1629# ac_fn_c_try_run LINENO 1630# ---------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1632# that executables *can* be run. 1633ac_fn_c_try_run () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>&5 1644 ac_status=$? 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1647 { { case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_try") 2>&5 1654 ac_status=$? 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; }; }; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: program exited with status $ac_status" >&5 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=$ac_status 1664fi 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_run 1670 1671# ac_fn_cxx_try_compile LINENO 1672# ---------------------------- 1673# Try to compile conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_cxx_try_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext 1678 if { { ac_try="$ac_compile" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_compile") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_cxx_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest.$ac_objext; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_cxx_try_compile 1708 1709# ac_fn_cxx_try_link LINENO 1710# ------------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. 1712ac_fn_cxx_try_link () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 rm -f conftest.$ac_objext conftest$ac_exeext 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { 1732 test -z "$ac_cxx_werror_flag" || 1733 test ! -s conftest.err 1734 } && test -s conftest$ac_exeext && { 1735 test "$cross_compiling" = yes || 1736 test -x conftest$ac_exeext 1737 }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1747 # interfere with the next link command; also delete a directory that is 1748 # left behind by Apple's compiler. We do this before executing the actions. 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_cxx_try_link 1754 1755# ac_fn_cxx_try_cpp LINENO 1756# ------------------------ 1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1758ac_fn_cxx_try_cpp () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 if { { ac_try="$ac_cpp conftest.$ac_ext" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1769 ac_status=$? 1770 if test -s conftest.err; then 1771 grep -v '^ *+' conftest.err >conftest.er1 1772 cat conftest.er1 >&5 1773 mv -f conftest.er1 conftest.err 1774 fi 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } > conftest.i && { 1777 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1778 test ! -s conftest.err 1779 }; then : 1780 ac_retval=0 1781else 1782 $as_echo "$as_me: failed program was:" >&5 1783sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 ac_retval=1 1786fi 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_cxx_try_cpp 1791 1792# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1793# --------------------------------------------------------- 1794# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1795# the include files in INCLUDES and setting the cache variable VAR 1796# accordingly. 1797ac_fn_cxx_check_header_mongrel () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 if eval \${$3+:} false; then : 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802$as_echo_n "checking for $2... " >&6; } 1803if eval \${$3+:} false; then : 1804 $as_echo_n "(cached) " >&6 1805fi 1806eval ac_res=\$$3 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808$as_echo "$ac_res" >&6; } 1809else 1810 # Is the header compilable? 1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1812$as_echo_n "checking $2 usability... " >&6; } 1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816#include <$2> 1817_ACEOF 1818if ac_fn_cxx_try_compile "$LINENO"; then : 1819 ac_header_compiler=yes 1820else 1821 ac_header_compiler=no 1822fi 1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1825$as_echo "$ac_header_compiler" >&6; } 1826 1827# Is the header present? 1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1829$as_echo_n "checking $2 presence... " >&6; } 1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832#include <$2> 1833_ACEOF 1834if ac_fn_cxx_try_cpp "$LINENO"; then : 1835 ac_header_preproc=yes 1836else 1837 ac_header_preproc=no 1838fi 1839rm -f conftest.err conftest.i conftest.$ac_ext 1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1841$as_echo "$ac_header_preproc" >&6; } 1842 1843# So? What about this header? 1844case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1845 yes:no: ) 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1847$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1850 ;; 1851 no:yes:* ) 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1853$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1855$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1857$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1859$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1862 ;; 1863esac 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865$as_echo_n "checking for $2... " >&6; } 1866if eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868else 1869 eval "$3=\$ac_header_compiler" 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874fi 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_cxx_check_header_mongrel 1878 1879# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 1880# ----------------------------------------------- 1881# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1882# accordingly. 1883ac_fn_cxx_check_decl () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 as_decl_name=`echo $2|sed 's/ *(.*//'` 1887 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1889$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1890if eval \${$3+:} false; then : 1891 $as_echo_n "(cached) " >&6 1892else 1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894/* end confdefs.h. */ 1895$4 1896int 1897main () 1898{ 1899#ifndef $as_decl_name 1900#ifdef __cplusplus 1901 (void) $as_decl_use; 1902#else 1903 (void) $as_decl_name; 1904#endif 1905#endif 1906 1907 ; 1908 return 0; 1909} 1910_ACEOF 1911if ac_fn_cxx_try_compile "$LINENO"; then : 1912 eval "$3=yes" 1913else 1914 eval "$3=no" 1915fi 1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1917fi 1918eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920$as_echo "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_cxx_check_decl 1924 1925# ac_fn_c_try_link LINENO 1926# ----------------------- 1927# Try to link conftest.$ac_ext, and return whether this succeeded. 1928ac_fn_c_try_link () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 rm -f conftest.$ac_objext conftest$ac_exeext 1932 if { { ac_try="$ac_link" 1933case "(($ac_try" in 1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1935 *) ac_try_echo=$ac_try;; 1936esac 1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1938$as_echo "$ac_try_echo"; } >&5 1939 (eval "$ac_link") 2>conftest.err 1940 ac_status=$? 1941 if test -s conftest.err; then 1942 grep -v '^ *+' conftest.err >conftest.er1 1943 cat conftest.er1 >&5 1944 mv -f conftest.er1 conftest.err 1945 fi 1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1947 test $ac_status = 0; } && { 1948 test -z "$ac_c_werror_flag" || 1949 test ! -s conftest.err 1950 } && test -s conftest$ac_exeext && { 1951 test "$cross_compiling" = yes || 1952 test -x conftest$ac_exeext 1953 }; then : 1954 ac_retval=0 1955else 1956 $as_echo "$as_me: failed program was:" >&5 1957sed 's/^/| /' conftest.$ac_ext >&5 1958 1959 ac_retval=1 1960fi 1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1963 # interfere with the next link command; also delete a directory that is 1964 # left behind by Apple's compiler. We do this before executing the actions. 1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 as_fn_set_status $ac_retval 1968 1969} # ac_fn_c_try_link 1970 1971# ac_fn_c_check_func LINENO FUNC VAR 1972# ---------------------------------- 1973# Tests whether FUNC exists, setting the cache variable VAR accordingly 1974ac_fn_c_check_func () 1975{ 1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981else 1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1983/* end confdefs.h. */ 1984/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1985 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1986#define $2 innocuous_$2 1987 1988/* System header to define __stub macros and hopefully few prototypes, 1989 which can conflict with char $2 (); below. 1990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1991 <limits.h> exists even on freestanding compilers. */ 1992 1993#ifdef __STDC__ 1994# include <limits.h> 1995#else 1996# include <assert.h> 1997#endif 1998 1999#undef $2 2000 2001/* Override any GCC internal prototype to avoid an error. 2002 Use char because int might match the return type of a GCC 2003 builtin and then its argument prototype would still apply. */ 2004#ifdef __cplusplus 2005extern "C" 2006#endif 2007char $2 (); 2008/* The GNU C library defines this for functions which it implements 2009 to always fail with ENOSYS. Some functions are actually named 2010 something starting with __ and the normal name is an alias. */ 2011#if defined __stub_$2 || defined __stub___$2 2012choke me 2013#endif 2014 2015int 2016main () 2017{ 2018return $2 (); 2019 ; 2020 return 0; 2021} 2022_ACEOF 2023if ac_fn_c_try_link "$LINENO"; then : 2024 eval "$3=yes" 2025else 2026 eval "$3=no" 2027fi 2028rm -f core conftest.err conftest.$ac_objext \ 2029 conftest$ac_exeext conftest.$ac_ext 2030fi 2031eval ac_res=\$$3 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2033$as_echo "$ac_res" >&6; } 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 2036} # ac_fn_c_check_func 2037 2038# ac_fn_cxx_try_run LINENO 2039# ------------------------ 2040# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2041# that executables *can* be run. 2042ac_fn_cxx_try_run () 2043{ 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2045 if { { ac_try="$ac_link" 2046case "(($ac_try" in 2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2048 *) ac_try_echo=$ac_try;; 2049esac 2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2051$as_echo "$ac_try_echo"; } >&5 2052 (eval "$ac_link") 2>&5 2053 ac_status=$? 2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2055 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2056 { { case "(($ac_try" in 2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2058 *) ac_try_echo=$ac_try;; 2059esac 2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2061$as_echo "$ac_try_echo"; } >&5 2062 (eval "$ac_try") 2>&5 2063 ac_status=$? 2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2065 test $ac_status = 0; }; }; then : 2066 ac_retval=0 2067else 2068 $as_echo "$as_me: program exited with status $ac_status" >&5 2069 $as_echo "$as_me: failed program was:" >&5 2070sed 's/^/| /' conftest.$ac_ext >&5 2071 2072 ac_retval=$ac_status 2073fi 2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 as_fn_set_status $ac_retval 2077 2078} # ac_fn_cxx_try_run 2079 2080# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2081# ---------------------------------------------- 2082# Tries to find the compile-time value of EXPR in a program that includes 2083# INCLUDES, setting VAR accordingly. Returns whether the value could be 2084# computed 2085ac_fn_cxx_compute_int () 2086{ 2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2088 if test "$cross_compiling" = yes; then 2089 # Depending upon the size, compute the lo and hi bounds. 2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092$4 2093int 2094main () 2095{ 2096static int test_array [1 - 2 * !(($2) >= 0)]; 2097test_array [0] = 0; 2098return test_array [0]; 2099 2100 ; 2101 return 0; 2102} 2103_ACEOF 2104if ac_fn_cxx_try_compile "$LINENO"; then : 2105 ac_lo=0 ac_mid=0 2106 while :; do 2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2108/* end confdefs.h. */ 2109$4 2110int 2111main () 2112{ 2113static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2114test_array [0] = 0; 2115return test_array [0]; 2116 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_cxx_try_compile "$LINENO"; then : 2122 ac_hi=$ac_mid; break 2123else 2124 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2125 if test $ac_lo -le $ac_mid; then 2126 ac_lo= ac_hi= 2127 break 2128 fi 2129 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2132 done 2133else 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137int 2138main () 2139{ 2140static int test_array [1 - 2 * !(($2) < 0)]; 2141test_array [0] = 0; 2142return test_array [0]; 2143 2144 ; 2145 return 0; 2146} 2147_ACEOF 2148if ac_fn_cxx_try_compile "$LINENO"; then : 2149 ac_hi=-1 ac_mid=-1 2150 while :; do 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2158test_array [0] = 0; 2159return test_array [0]; 2160 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_cxx_try_compile "$LINENO"; then : 2166 ac_lo=$ac_mid; break 2167else 2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2169 if test $ac_mid -le $ac_hi; then 2170 ac_lo= ac_hi= 2171 break 2172 fi 2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2174fi 2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2176 done 2177else 2178 ac_lo= ac_hi= 2179fi 2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183# Binary search between lo and hi bounds. 2184while test "x$ac_lo" != "x$ac_hi"; do 2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2187/* end confdefs.h. */ 2188$4 2189int 2190main () 2191{ 2192static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2193test_array [0] = 0; 2194return test_array [0]; 2195 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200if ac_fn_cxx_try_compile "$LINENO"; then : 2201 ac_hi=$ac_mid 2202else 2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2204fi 2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2206done 2207case $ac_lo in #(( 2208?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2209'') ac_retval=1 ;; 2210esac 2211 else 2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2213/* end confdefs.h. */ 2214$4 2215static long int longval () { return $2; } 2216static unsigned long int ulongval () { return $2; } 2217#include <stdio.h> 2218#include <stdlib.h> 2219int 2220main () 2221{ 2222 2223 FILE *f = fopen ("conftest.val", "w"); 2224 if (! f) 2225 return 1; 2226 if (($2) < 0) 2227 { 2228 long int i = longval (); 2229 if (i != ($2)) 2230 return 1; 2231 fprintf (f, "%ld", i); 2232 } 2233 else 2234 { 2235 unsigned long int i = ulongval (); 2236 if (i != ($2)) 2237 return 1; 2238 fprintf (f, "%lu", i); 2239 } 2240 /* Do not output a trailing newline, as this causes \r\n confusion 2241 on some platforms. */ 2242 return ferror (f) || fclose (f) != 0; 2243 2244 ; 2245 return 0; 2246} 2247_ACEOF 2248if ac_fn_cxx_try_run "$LINENO"; then : 2249 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2250else 2251 ac_retval=1 2252fi 2253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2254 conftest.$ac_objext conftest.beam conftest.$ac_ext 2255rm -f conftest.val 2256 2257 fi 2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2259 as_fn_set_status $ac_retval 2260 2261} # ac_fn_cxx_compute_int 2262 2263# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2264# --------------------------------------------- 2265# Tests whether TYPE exists after having included INCLUDES, setting cache 2266# variable VAR accordingly. 2267ac_fn_cxx_check_type () 2268{ 2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2271$as_echo_n "checking for $2... " >&6; } 2272if eval \${$3+:} false; then : 2273 $as_echo_n "(cached) " >&6 2274else 2275 eval "$3=no" 2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2277/* end confdefs.h. */ 2278$4 2279int 2280main () 2281{ 2282if (sizeof ($2)) 2283 return 0; 2284 ; 2285 return 0; 2286} 2287_ACEOF 2288if ac_fn_cxx_try_compile "$LINENO"; then : 2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2290/* end confdefs.h. */ 2291$4 2292int 2293main () 2294{ 2295if (sizeof (($2))) 2296 return 0; 2297 ; 2298 return 0; 2299} 2300_ACEOF 2301if ac_fn_cxx_try_compile "$LINENO"; then : 2302 2303else 2304 eval "$3=yes" 2305fi 2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2307fi 2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2309fi 2310eval ac_res=\$$3 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2312$as_echo "$ac_res" >&6; } 2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2314 2315} # ac_fn_cxx_check_type 2316 2317# ac_fn_cxx_check_func LINENO FUNC VAR 2318# ------------------------------------ 2319# Tests whether FUNC exists, setting the cache variable VAR accordingly 2320ac_fn_cxx_check_func () 2321{ 2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2324$as_echo_n "checking for $2... " >&6; } 2325if eval \${$3+:} false; then : 2326 $as_echo_n "(cached) " >&6 2327else 2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2329/* end confdefs.h. */ 2330/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2331 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2332#define $2 innocuous_$2 2333 2334/* System header to define __stub macros and hopefully few prototypes, 2335 which can conflict with char $2 (); below. 2336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2337 <limits.h> exists even on freestanding compilers. */ 2338 2339#ifdef __STDC__ 2340# include <limits.h> 2341#else 2342# include <assert.h> 2343#endif 2344 2345#undef $2 2346 2347/* Override any GCC internal prototype to avoid an error. 2348 Use char because int might match the return type of a GCC 2349 builtin and then its argument prototype would still apply. */ 2350#ifdef __cplusplus 2351extern "C" 2352#endif 2353char $2 (); 2354/* The GNU C library defines this for functions which it implements 2355 to always fail with ENOSYS. Some functions are actually named 2356 something starting with __ and the normal name is an alias. */ 2357#if defined __stub_$2 || defined __stub___$2 2358choke me 2359#endif 2360 2361int 2362main () 2363{ 2364return $2 (); 2365 ; 2366 return 0; 2367} 2368_ACEOF 2369if ac_fn_cxx_try_link "$LINENO"; then : 2370 eval "$3=yes" 2371else 2372 eval "$3=no" 2373fi 2374rm -f core conftest.err conftest.$ac_objext \ 2375 conftest$ac_exeext conftest.$ac_ext 2376fi 2377eval ac_res=\$$3 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2379$as_echo "$ac_res" >&6; } 2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2381 2382} # ac_fn_cxx_check_func 2383 2384# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2385# -------------------------------------------- 2386# Tries to find the compile-time value of EXPR in a program that includes 2387# INCLUDES, setting VAR accordingly. Returns whether the value could be 2388# computed 2389ac_fn_c_compute_int () 2390{ 2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2392 if test "$cross_compiling" = yes; then 2393 # Depending upon the size, compute the lo and hi bounds. 2394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2395/* end confdefs.h. */ 2396$4 2397int 2398main () 2399{ 2400static int test_array [1 - 2 * !(($2) >= 0)]; 2401test_array [0] = 0; 2402return test_array [0]; 2403 2404 ; 2405 return 0; 2406} 2407_ACEOF 2408if ac_fn_c_try_compile "$LINENO"; then : 2409 ac_lo=0 ac_mid=0 2410 while :; do 2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2412/* end confdefs.h. */ 2413$4 2414int 2415main () 2416{ 2417static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2418test_array [0] = 0; 2419return test_array [0]; 2420 2421 ; 2422 return 0; 2423} 2424_ACEOF 2425if ac_fn_c_try_compile "$LINENO"; then : 2426 ac_hi=$ac_mid; break 2427else 2428 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2429 if test $ac_lo -le $ac_mid; then 2430 ac_lo= ac_hi= 2431 break 2432 fi 2433 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2434fi 2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2436 done 2437else 2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2439/* end confdefs.h. */ 2440$4 2441int 2442main () 2443{ 2444static int test_array [1 - 2 * !(($2) < 0)]; 2445test_array [0] = 0; 2446return test_array [0]; 2447 2448 ; 2449 return 0; 2450} 2451_ACEOF 2452if ac_fn_c_try_compile "$LINENO"; then : 2453 ac_hi=-1 ac_mid=-1 2454 while :; do 2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2456/* end confdefs.h. */ 2457$4 2458int 2459main () 2460{ 2461static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2462test_array [0] = 0; 2463return test_array [0]; 2464 2465 ; 2466 return 0; 2467} 2468_ACEOF 2469if ac_fn_c_try_compile "$LINENO"; then : 2470 ac_lo=$ac_mid; break 2471else 2472 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2473 if test $ac_mid -le $ac_hi; then 2474 ac_lo= ac_hi= 2475 break 2476 fi 2477 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2478fi 2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2480 done 2481else 2482 ac_lo= ac_hi= 2483fi 2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2485fi 2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2487# Binary search between lo and hi bounds. 2488while test "x$ac_lo" != "x$ac_hi"; do 2489 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2491/* end confdefs.h. */ 2492$4 2493int 2494main () 2495{ 2496static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2497test_array [0] = 0; 2498return test_array [0]; 2499 2500 ; 2501 return 0; 2502} 2503_ACEOF 2504if ac_fn_c_try_compile "$LINENO"; then : 2505 ac_hi=$ac_mid 2506else 2507 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2508fi 2509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2510done 2511case $ac_lo in #(( 2512?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2513'') ac_retval=1 ;; 2514esac 2515 else 2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2517/* end confdefs.h. */ 2518$4 2519static long int longval () { return $2; } 2520static unsigned long int ulongval () { return $2; } 2521#include <stdio.h> 2522#include <stdlib.h> 2523int 2524main () 2525{ 2526 2527 FILE *f = fopen ("conftest.val", "w"); 2528 if (! f) 2529 return 1; 2530 if (($2) < 0) 2531 { 2532 long int i = longval (); 2533 if (i != ($2)) 2534 return 1; 2535 fprintf (f, "%ld", i); 2536 } 2537 else 2538 { 2539 unsigned long int i = ulongval (); 2540 if (i != ($2)) 2541 return 1; 2542 fprintf (f, "%lu", i); 2543 } 2544 /* Do not output a trailing newline, as this causes \r\n confusion 2545 on some platforms. */ 2546 return ferror (f) || fclose (f) != 0; 2547 2548 ; 2549 return 0; 2550} 2551_ACEOF 2552if ac_fn_c_try_run "$LINENO"; then : 2553 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2554else 2555 ac_retval=1 2556fi 2557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2558 conftest.$ac_objext conftest.beam conftest.$ac_ext 2559rm -f conftest.val 2560 2561 fi 2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2563 as_fn_set_status $ac_retval 2564 2565} # ac_fn_c_compute_int 2566 2567# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2568# ------------------------------------------------------- 2569# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2570# the include files in INCLUDES and setting the cache variable VAR 2571# accordingly. 2572ac_fn_c_check_header_mongrel () 2573{ 2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2575 if eval \${$3+:} false; then : 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2577$as_echo_n "checking for $2... " >&6; } 2578if eval \${$3+:} false; then : 2579 $as_echo_n "(cached) " >&6 2580fi 2581eval ac_res=\$$3 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2583$as_echo "$ac_res" >&6; } 2584else 2585 # Is the header compilable? 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2587$as_echo_n "checking $2 usability... " >&6; } 2588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2589/* end confdefs.h. */ 2590$4 2591#include <$2> 2592_ACEOF 2593if ac_fn_c_try_compile "$LINENO"; then : 2594 ac_header_compiler=yes 2595else 2596 ac_header_compiler=no 2597fi 2598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2600$as_echo "$ac_header_compiler" >&6; } 2601 2602# Is the header present? 2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2604$as_echo_n "checking $2 presence... " >&6; } 2605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2606/* end confdefs.h. */ 2607#include <$2> 2608_ACEOF 2609if ac_fn_c_try_cpp "$LINENO"; then : 2610 ac_header_preproc=yes 2611else 2612 ac_header_preproc=no 2613fi 2614rm -f conftest.err conftest.i conftest.$ac_ext 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2616$as_echo "$ac_header_preproc" >&6; } 2617 2618# So? What about this header? 2619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2620 yes:no: ) 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2622$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2624$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2625 ;; 2626 no:yes:* ) 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2628$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2630$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2632$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2634$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2636$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2637 ;; 2638esac 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2640$as_echo_n "checking for $2... " >&6; } 2641if eval \${$3+:} false; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 eval "$3=\$ac_header_compiler" 2645fi 2646eval ac_res=\$$3 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2648$as_echo "$ac_res" >&6; } 2649fi 2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2651 2652} # ac_fn_c_check_header_mongrel 2653cat >config.log <<_ACEOF 2654This file contains any messages produced by compilers while 2655running configure, to aid debugging if configure makes a mistake. 2656 2657It was created by libclick $as_me 2.1, which was 2658generated by GNU Autoconf 2.69. Invocation command line was 2659 2660 $ $0 $@ 2661 2662_ACEOF 2663exec 5>>config.log 2664{ 2665cat <<_ASUNAME 2666## --------- ## 2667## Platform. ## 2668## --------- ## 2669 2670hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2671uname -m = `(uname -m) 2>/dev/null || echo unknown` 2672uname -r = `(uname -r) 2>/dev/null || echo unknown` 2673uname -s = `(uname -s) 2>/dev/null || echo unknown` 2674uname -v = `(uname -v) 2>/dev/null || echo unknown` 2675 2676/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2677/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2678 2679/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2680/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2681/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2682/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2683/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2684/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2685/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2686 2687_ASUNAME 2688 2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690for as_dir in $PATH 2691do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 $as_echo "PATH: $as_dir" 2695 done 2696IFS=$as_save_IFS 2697 2698} >&5 2699 2700cat >&5 <<_ACEOF 2701 2702 2703## ----------- ## 2704## Core tests. ## 2705## ----------- ## 2706 2707_ACEOF 2708 2709 2710# Keep a trace of the command line. 2711# Strip out --no-create and --no-recursion so they do not pile up. 2712# Strip out --silent because we don't want to record it for future runs. 2713# Also quote any args containing shell meta-characters. 2714# Make two passes to allow for proper duplicate-argument suppression. 2715ac_configure_args= 2716ac_configure_args0= 2717ac_configure_args1= 2718ac_must_keep_next=false 2719for ac_pass in 1 2 2720do 2721 for ac_arg 2722 do 2723 case $ac_arg in 2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2726 | -silent | --silent | --silen | --sile | --sil) 2727 continue ;; 2728 *\'*) 2729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2730 esac 2731 case $ac_pass in 2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2733 2) 2734 as_fn_append ac_configure_args1 " '$ac_arg'" 2735 if test $ac_must_keep_next = true; then 2736 ac_must_keep_next=false # Got value, back to normal. 2737 else 2738 case $ac_arg in 2739 *=* | --config-cache | -C | -disable-* | --disable-* \ 2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2742 | -with-* | --with-* | -without-* | --without-* | --x) 2743 case "$ac_configure_args0 " in 2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2745 esac 2746 ;; 2747 -* ) ac_must_keep_next=true ;; 2748 esac 2749 fi 2750 as_fn_append ac_configure_args " '$ac_arg'" 2751 ;; 2752 esac 2753 done 2754done 2755{ ac_configure_args0=; unset ac_configure_args0;} 2756{ ac_configure_args1=; unset ac_configure_args1;} 2757 2758# When interrupted or exit'd, cleanup temporary files, and complete 2759# config.log. We remove comments because anyway the quotes in there 2760# would cause problems or look ugly. 2761# WARNING: Use '\'' to represent an apostrophe within the trap. 2762# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2763trap 'exit_status=$? 2764 # Save into config.log some information that might help in debugging. 2765 { 2766 echo 2767 2768 $as_echo "## ---------------- ## 2769## Cache variables. ## 2770## ---------------- ##" 2771 echo 2772 # The following way of writing the cache mishandles newlines in values, 2773( 2774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2775 eval ac_val=\$$ac_var 2776 case $ac_val in #( 2777 *${as_nl}*) 2778 case $ac_var in #( 2779 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2780$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2781 esac 2782 case $ac_var in #( 2783 _ | IFS | as_nl) ;; #( 2784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2785 *) { eval $ac_var=; unset $ac_var;} ;; 2786 esac ;; 2787 esac 2788 done 2789 (set) 2>&1 | 2790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2791 *${as_nl}ac_space=\ *) 2792 sed -n \ 2793 "s/'\''/'\''\\\\'\'''\''/g; 2794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2795 ;; #( 2796 *) 2797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2798 ;; 2799 esac | 2800 sort 2801) 2802 echo 2803 2804 $as_echo "## ----------------- ## 2805## Output variables. ## 2806## ----------------- ##" 2807 echo 2808 for ac_var in $ac_subst_vars 2809 do 2810 eval ac_val=\$$ac_var 2811 case $ac_val in 2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2813 esac 2814 $as_echo "$ac_var='\''$ac_val'\''" 2815 done | sort 2816 echo 2817 2818 if test -n "$ac_subst_files"; then 2819 $as_echo "## ------------------- ## 2820## File substitutions. ## 2821## ------------------- ##" 2822 echo 2823 for ac_var in $ac_subst_files 2824 do 2825 eval ac_val=\$$ac_var 2826 case $ac_val in 2827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2828 esac 2829 $as_echo "$ac_var='\''$ac_val'\''" 2830 done | sort 2831 echo 2832 fi 2833 2834 if test -s confdefs.h; then 2835 $as_echo "## ----------- ## 2836## confdefs.h. ## 2837## ----------- ##" 2838 echo 2839 cat confdefs.h 2840 echo 2841 fi 2842 test "$ac_signal" != 0 && 2843 $as_echo "$as_me: caught signal $ac_signal" 2844 $as_echo "$as_me: exit $exit_status" 2845 } >&5 2846 rm -f core *.core core.conftest.* && 2847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2848 exit $exit_status 2849' 0 2850for ac_signal in 1 2 13 15; do 2851 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2852done 2853ac_signal=0 2854 2855# confdefs.h avoids OS command line length limits that DEFS can exceed. 2856rm -f -r conftest* confdefs.h 2857 2858$as_echo "/* confdefs.h */" > confdefs.h 2859 2860# Predefined preprocessor variables. 2861 2862cat >>confdefs.h <<_ACEOF 2863#define PACKAGE_NAME "$PACKAGE_NAME" 2864_ACEOF 2865 2866cat >>confdefs.h <<_ACEOF 2867#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2868_ACEOF 2869 2870cat >>confdefs.h <<_ACEOF 2871#define PACKAGE_VERSION "$PACKAGE_VERSION" 2872_ACEOF 2873 2874cat >>confdefs.h <<_ACEOF 2875#define PACKAGE_STRING "$PACKAGE_STRING" 2876_ACEOF 2877 2878cat >>confdefs.h <<_ACEOF 2879#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2880_ACEOF 2881 2882cat >>confdefs.h <<_ACEOF 2883#define PACKAGE_URL "$PACKAGE_URL" 2884_ACEOF 2885 2886 2887# Let the site file select an alternate cache file if it wants to. 2888# Prefer an explicitly selected file to automatically selected ones. 2889ac_site_file1=NONE 2890ac_site_file2=NONE 2891if test -n "$CONFIG_SITE"; then 2892 # We do not want a PATH search for config.site. 2893 case $CONFIG_SITE in #(( 2894 -*) ac_site_file1=./$CONFIG_SITE;; 2895 */*) ac_site_file1=$CONFIG_SITE;; 2896 *) ac_site_file1=./$CONFIG_SITE;; 2897 esac 2898elif test "x$prefix" != xNONE; then 2899 ac_site_file1=$prefix/share/config.site 2900 ac_site_file2=$prefix/etc/config.site 2901else 2902 ac_site_file1=$ac_default_prefix/share/config.site 2903 ac_site_file2=$ac_default_prefix/etc/config.site 2904fi 2905for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2906do 2907 test "x$ac_site_file" = xNONE && continue 2908 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2910$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2911 sed 's/^/| /' "$ac_site_file" >&5 2912 . "$ac_site_file" \ 2913 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2915as_fn_error $? "failed to load site script $ac_site_file 2916See \`config.log' for more details" "$LINENO" 5; } 2917 fi 2918done 2919 2920if test -r "$cache_file"; then 2921 # Some versions of bash will fail to source /dev/null (special files 2922 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2923 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2925$as_echo "$as_me: loading cache $cache_file" >&6;} 2926 case $cache_file in 2927 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2928 *) . "./$cache_file";; 2929 esac 2930 fi 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2933$as_echo "$as_me: creating cache $cache_file" >&6;} 2934 >$cache_file 2935fi 2936 2937as_fn_append ac_header_list " sys/types.h" 2938as_fn_append ac_header_list " unistd.h" 2939as_fn_append ac_header_list " stdint.h" 2940as_fn_append ac_header_list " inttypes.h" 2941as_fn_append ac_header_list " endian.h" 2942as_fn_append ac_header_list " machine/endian.h" 2943as_fn_append ac_header_list " byteswap.h" 2944as_fn_append ac_header_list " strings.h" 2945as_fn_append ac_header_list " time.h" 2946as_fn_append ac_header_list " termio.h" 2947as_fn_append ac_header_list " netdb.h" 2948as_fn_append ac_header_list " sys/event.h" 2949as_fn_append ac_header_list " pwd.h" 2950as_fn_append ac_header_list " grp.h" 2951as_fn_append ac_header_list " execinfo.h" 2952as_fn_append ac_header_list " poll.h" 2953as_fn_append ac_header_list " dlfcn.h" 2954as_fn_append ac_header_list " sys/mman.h" 2955as_fn_append ac_header_list " stdlib.h" 2956as_fn_append ac_header_list " sys/param.h" 2957as_fn_append ac_header_list " ifaddrs.h" 2958as_fn_append ac_header_list " linux/if_tun.h" 2959as_fn_append ac_header_list " net/if_dl.h" 2960as_fn_append ac_header_list " net/if_tap.h" 2961as_fn_append ac_header_list " net/if_tun.h" 2962as_fn_append ac_header_list " net/if_types.h" 2963as_fn_append ac_header_list " net/bpf.h" 2964as_fn_append ac_header_list " netpacket/packet.h" 2965# Check that the precious variables saved in the cache have kept the same 2966# value. 2967ac_cache_corrupted=false 2968for ac_var in $ac_precious_vars; do 2969 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2970 eval ac_new_set=\$ac_env_${ac_var}_set 2971 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2972 eval ac_new_val=\$ac_env_${ac_var}_value 2973 case $ac_old_set,$ac_new_set in 2974 set,) 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2976$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2977 ac_cache_corrupted=: ;; 2978 ,set) 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2980$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2981 ac_cache_corrupted=: ;; 2982 ,);; 2983 *) 2984 if test "x$ac_old_val" != "x$ac_new_val"; then 2985 # differences in whitespace do not lead to failure. 2986 ac_old_val_w=`echo x $ac_old_val` 2987 ac_new_val_w=`echo x $ac_new_val` 2988 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2990$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2991 ac_cache_corrupted=: 2992 else 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2994$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2995 eval $ac_var=\$ac_old_val 2996 fi 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2998$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3000$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3001 fi;; 3002 esac 3003 # Pass precious variables to config.status. 3004 if test "$ac_new_set" = set; then 3005 case $ac_new_val in 3006 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3007 *) ac_arg=$ac_var=$ac_new_val ;; 3008 esac 3009 case " $ac_configure_args " in 3010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3011 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3012 esac 3013 fi 3014done 3015if $ac_cache_corrupted; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3019$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3020 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3021fi 3022## -------------------- ## 3023## Main body of script. ## 3024## -------------------- ## 3025 3026ac_ext=c 3027ac_cpp='$CPP $CPPFLAGS' 3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3030ac_compiler_gnu=$ac_cv_c_compiler_gnu 3031 3032 3033 3034ac_config_headers="$ac_config_headers include/click/config.h:config.h.in include/click/pathvars.h:pathvars.h.in include/click/config-userlevel.h:config-userlevel.h.in" 3035 3036 3037 3038CLICK_VERSION=$PACKAGE_VERSION 3039 3040 3041cat >>confdefs.h <<_ACEOF 3042#define CLICK_VERSION "$CLICK_VERSION" 3043_ACEOF 3044 3045 3046 3047click_version_code_in=`echo "$CLICK_VERSION" | sed -e 's/[a-z].*//' | sed -e 's/$/.0/' | tr . , | sed -e 's/^\([0-9]*,[0-9]*,[0-9]\).*/\1/'` 3048cat >>confdefs.h <<_ACEOF 3049#define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE($click_version_code_in) 3050_ACEOF 3051 3052 3053 3054 ac_user_cc=${CC+y} 3055 ac_user_cflags=${CFLAGS+y} 3056 ac_user_kernel_cc=${KERNEL_CC+y} 3057 ac_user_kernel_cflags=${KERNEL_CFLAGS+y} 3058 ac_user_cxx=${CXX+y} 3059 ac_user_cxxflags=${CXXFLAGS+y} 3060 ac_user_kernel_cxx=${KERNEL_CXX+y} 3061 ac_user_kernel_cxxflags=${KERNEL_CXXFLAGS+y} 3062 ac_user_build_cxx=${BUILD_CXX+y} 3063 ac_user_depcflags=${DEPCFLAGS+y} 3064 ac_user_depdirflag=${DEPDIRFLAG+y} 3065 ac_compile_with_warnings=y 3066 3067 conf_auxdir='$(top_srcdir)' 3068 3069 3070 3071 3072 3073ac_aux_dir= 3074for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3075 if test -f "$ac_dir/install-sh"; then 3076 ac_aux_dir=$ac_dir 3077 ac_install_sh="$ac_aux_dir/install-sh -c" 3078 break 3079 elif test -f "$ac_dir/install.sh"; then 3080 ac_aux_dir=$ac_dir 3081 ac_install_sh="$ac_aux_dir/install.sh -c" 3082 break 3083 elif test -f "$ac_dir/shtool"; then 3084 ac_aux_dir=$ac_dir 3085 ac_install_sh="$ac_aux_dir/shtool install -c" 3086 break 3087 fi 3088done 3089if test -z "$ac_aux_dir"; then 3090 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3091fi 3092 3093# These three variables are undocumented and unsupported, 3094# and are intended to be withdrawn in a future Autoconf release. 3095# They can cause serious problems if a builder's source tree is in a directory 3096# whose full name contains unusual characters. 3097ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3098ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3099ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3100 3101 3102# Make sure we can run config.sub. 3103$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3104 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3105 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3107$as_echo_n "checking build system type... " >&6; } 3108if ${ac_cv_build+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 ac_build_alias=$build_alias 3112test "x$ac_build_alias" = x && 3113 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3114test "x$ac_build_alias" = x && 3115 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3116ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3117 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3118 3119fi 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3121$as_echo "$ac_cv_build" >&6; } 3122case $ac_cv_build in 3123*-*-*) ;; 3124*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3125esac 3126build=$ac_cv_build 3127ac_save_IFS=$IFS; IFS='-' 3128set x $ac_cv_build 3129shift 3130build_cpu=$1 3131build_vendor=$2 3132shift; shift 3133# Remember, the first character of IFS is used to create $*, 3134# except with old shells: 3135build_os=$* 3136IFS=$ac_save_IFS 3137case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3138 3139 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3141$as_echo_n "checking host system type... " >&6; } 3142if ${ac_cv_host+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 if test "x$host_alias" = x; then 3146 ac_cv_host=$ac_cv_build 3147else 3148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3149 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3150fi 3151 3152fi 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3154$as_echo "$ac_cv_host" >&6; } 3155case $ac_cv_host in 3156*-*-*) ;; 3157*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3158esac 3159host=$ac_cv_host 3160ac_save_IFS=$IFS; IFS='-' 3161set x $ac_cv_host 3162shift 3163host_cpu=$1 3164host_vendor=$2 3165shift; shift 3166# Remember, the first character of IFS is used to create $*, 3167# except with old shells: 3168host_os=$* 3169IFS=$ac_save_IFS 3170case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3171 3172 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3174$as_echo_n "checking target system type... " >&6; } 3175if ${ac_cv_target+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 if test "x$target_alias" = x; then 3179 ac_cv_target=$ac_cv_host 3180else 3181 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3182 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3183fi 3184 3185fi 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3187$as_echo "$ac_cv_target" >&6; } 3188case $ac_cv_target in 3189*-*-*) ;; 3190*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3191esac 3192target=$ac_cv_target 3193ac_save_IFS=$IFS; IFS='-' 3194set x $ac_cv_target 3195shift 3196target_cpu=$1 3197target_vendor=$2 3198shift; shift 3199# Remember, the first character of IFS is used to create $*, 3200# except with old shells: 3201target_os=$* 3202IFS=$ac_save_IFS 3203case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3204 3205 3206# The aliases save the names the user supplied, while $host etc. 3207# will get canonicalized. 3208test -n "$target_alias" && 3209 test "$program_prefix$program_suffix$program_transform_name" = \ 3210 NONENONEs,x,x, && 3211 program_prefix=${target_alias}- 3212 3213 3214if test -n "$ac_tool_prefix"; then 3215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3216set dummy ${ac_tool_prefix}gcc; ac_word=$2 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3218$as_echo_n "checking for $ac_word... " >&6; } 3219if ${ac_cv_prog_CC+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 if test -n "$CC"; then 3223 ac_cv_prog_CC="$CC" # Let the user override the test. 3224else 3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH 3227do 3228 IFS=$as_save_IFS 3229 test -z "$as_dir" && as_dir=. 3230 for ac_exec_ext in '' $ac_executable_extensions; do 3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3232 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3234 break 2 3235 fi 3236done 3237 done 3238IFS=$as_save_IFS 3239 3240fi 3241fi 3242CC=$ac_cv_prog_CC 3243if test -n "$CC"; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3245$as_echo "$CC" >&6; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248$as_echo "no" >&6; } 3249fi 3250 3251 3252fi 3253if test -z "$ac_cv_prog_CC"; then 3254 ac_ct_CC=$CC 3255 # Extract the first word of "gcc", so it can be a program name with args. 3256set dummy gcc; ac_word=$2 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258$as_echo_n "checking for $ac_word... " >&6; } 3259if ${ac_cv_prog_ac_ct_CC+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if test -n "$ac_ct_CC"; then 3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3272 ac_cv_prog_ac_ct_CC="gcc" 3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 break 2 3275 fi 3276done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281fi 3282ac_ct_CC=$ac_cv_prog_ac_ct_CC 3283if test -n "$ac_ct_CC"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3285$as_echo "$ac_ct_CC" >&6; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289fi 3290 3291 if test "x$ac_ct_CC" = x; then 3292 CC="" 3293 else 3294 case $cross_compiling:$ac_tool_warned in 3295yes:) 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3298ac_tool_warned=yes ;; 3299esac 3300 CC=$ac_ct_CC 3301 fi 3302else 3303 CC="$ac_cv_prog_CC" 3304fi 3305 3306if test -n "$ac_tool_prefix"; then 3307 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 3308set dummy ${ac_tool_prefix}g++; ac_word=$2 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310$as_echo_n "checking for $ac_word... " >&6; } 3311if ${ac_cv_prog_CXX+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if test -n "$CXX"; then 3315 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3316else 3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3318for as_dir in $PATH 3319do 3320 IFS=$as_save_IFS 3321 test -z "$as_dir" && as_dir=. 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3324 ac_cv_prog_CXX="${ac_tool_prefix}g++" 3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3326 break 2 3327 fi 3328done 3329 done 3330IFS=$as_save_IFS 3331 3332fi 3333fi 3334CXX=$ac_cv_prog_CXX 3335if test -n "$CXX"; then 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3337$as_echo "$CXX" >&6; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340$as_echo "no" >&6; } 3341fi 3342 3343 3344fi 3345if test -z "$ac_cv_prog_CXX"; then 3346 ac_ct_CXX=$CXX 3347 # Extract the first word of "g++", so it can be a program name with args. 3348set dummy g++; ac_word=$2 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3350$as_echo_n "checking for $ac_word... " >&6; } 3351if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3352 $as_echo_n "(cached) " >&6 3353else 3354 if test -n "$ac_ct_CXX"; then 3355 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3356else 3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3358for as_dir in $PATH 3359do 3360 IFS=$as_save_IFS 3361 test -z "$as_dir" && as_dir=. 3362 for ac_exec_ext in '' $ac_executable_extensions; do 3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3364 ac_cv_prog_ac_ct_CXX="g++" 3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3366 break 2 3367 fi 3368done 3369 done 3370IFS=$as_save_IFS 3371 3372fi 3373fi 3374ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3375if test -n "$ac_ct_CXX"; then 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3377$as_echo "$ac_ct_CXX" >&6; } 3378else 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3380$as_echo "no" >&6; } 3381fi 3382 3383 if test "x$ac_ct_CXX" = x; then 3384 CXX="" 3385 else 3386 case $cross_compiling:$ac_tool_warned in 3387yes:) 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3390ac_tool_warned=yes ;; 3391esac 3392 CXX=$ac_ct_CXX 3393 fi 3394else 3395 CXX="$ac_cv_prog_CXX" 3396fi 3397 3398 3399ac_ext=c 3400ac_cpp='$CPP $CPPFLAGS' 3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3403ac_compiler_gnu=$ac_cv_c_compiler_gnu 3404if test -n "$ac_tool_prefix"; then 3405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3406set dummy ${ac_tool_prefix}gcc; ac_word=$2 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3408$as_echo_n "checking for $ac_word... " >&6; } 3409if ${ac_cv_prog_CC+:} false; then : 3410 $as_echo_n "(cached) " >&6 3411else 3412 if test -n "$CC"; then 3413 ac_cv_prog_CC="$CC" # Let the user override the test. 3414else 3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3416for as_dir in $PATH 3417do 3418 IFS=$as_save_IFS 3419 test -z "$as_dir" && as_dir=. 3420 for ac_exec_ext in '' $ac_executable_extensions; do 3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3422 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3424 break 2 3425 fi 3426done 3427 done 3428IFS=$as_save_IFS 3429 3430fi 3431fi 3432CC=$ac_cv_prog_CC 3433if test -n "$CC"; then 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3435$as_echo "$CC" >&6; } 3436else 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3438$as_echo "no" >&6; } 3439fi 3440 3441 3442fi 3443if test -z "$ac_cv_prog_CC"; then 3444 ac_ct_CC=$CC 3445 # Extract the first word of "gcc", so it can be a program name with args. 3446set dummy gcc; ac_word=$2 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3448$as_echo_n "checking for $ac_word... " >&6; } 3449if ${ac_cv_prog_ac_ct_CC+:} false; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 if test -n "$ac_ct_CC"; then 3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3454else 3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3456for as_dir in $PATH 3457do 3458 IFS=$as_save_IFS 3459 test -z "$as_dir" && as_dir=. 3460 for ac_exec_ext in '' $ac_executable_extensions; do 3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3462 ac_cv_prog_ac_ct_CC="gcc" 3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3464 break 2 3465 fi 3466done 3467 done 3468IFS=$as_save_IFS 3469 3470fi 3471fi 3472ac_ct_CC=$ac_cv_prog_ac_ct_CC 3473if test -n "$ac_ct_CC"; then 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3475$as_echo "$ac_ct_CC" >&6; } 3476else 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3478$as_echo "no" >&6; } 3479fi 3480 3481 if test "x$ac_ct_CC" = x; then 3482 CC="" 3483 else 3484 case $cross_compiling:$ac_tool_warned in 3485yes:) 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3488ac_tool_warned=yes ;; 3489esac 3490 CC=$ac_ct_CC 3491 fi 3492else 3493 CC="$ac_cv_prog_CC" 3494fi 3495 3496if test -z "$CC"; then 3497 if test -n "$ac_tool_prefix"; then 3498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3499set dummy ${ac_tool_prefix}cc; ac_word=$2 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501$as_echo_n "checking for $ac_word... " >&6; } 3502if ${ac_cv_prog_CC+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 if test -n "$CC"; then 3506 ac_cv_prog_CC="$CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3515 ac_cv_prog_CC="${ac_tool_prefix}cc" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523fi 3524fi 3525CC=$ac_cv_prog_CC 3526if test -n "$CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3528$as_echo "$CC" >&6; } 3529else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531$as_echo "no" >&6; } 3532fi 3533 3534 3535 fi 3536fi 3537if test -z "$CC"; then 3538 # Extract the first word of "cc", so it can be a program name with args. 3539set dummy cc; ac_word=$2 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3541$as_echo_n "checking for $ac_word... " >&6; } 3542if ${ac_cv_prog_CC+:} false; then : 3543 $as_echo_n "(cached) " >&6 3544else 3545 if test -n "$CC"; then 3546 ac_cv_prog_CC="$CC" # Let the user override the test. 3547else 3548 ac_prog_rejected=no 3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550for as_dir in $PATH 3551do 3552 IFS=$as_save_IFS 3553 test -z "$as_dir" && as_dir=. 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3557 ac_prog_rejected=yes 3558 continue 3559 fi 3560 ac_cv_prog_CC="cc" 3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3562 break 2 3563 fi 3564done 3565 done 3566IFS=$as_save_IFS 3567 3568if test $ac_prog_rejected = yes; then 3569 # We found a bogon in the path, so make sure we never use it. 3570 set dummy $ac_cv_prog_CC 3571 shift 3572 if test $# != 0; then 3573 # We chose a different compiler from the bogus one. 3574 # However, it has the same basename, so the bogon will be chosen 3575 # first if we set CC to just the basename; use the full file name. 3576 shift 3577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3578 fi 3579fi 3580fi 3581fi 3582CC=$ac_cv_prog_CC 3583if test -n "$CC"; then 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3585$as_echo "$CC" >&6; } 3586else 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3588$as_echo "no" >&6; } 3589fi 3590 3591 3592fi 3593if test -z "$CC"; then 3594 if test -n "$ac_tool_prefix"; then 3595 for ac_prog in cl.exe 3596 do 3597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3598set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if ${ac_cv_prog_CC+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 if test -n "$CC"; then 3605 ac_cv_prog_CC="$CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624CC=$ac_cv_prog_CC 3625if test -n "$CC"; then 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3627$as_echo "$CC" >&6; } 3628else 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630$as_echo "no" >&6; } 3631fi 3632 3633 3634 test -n "$CC" && break 3635 done 3636fi 3637if test -z "$CC"; then 3638 ac_ct_CC=$CC 3639 for ac_prog in cl.exe 3640do 3641 # Extract the first word of "$ac_prog", so it can be a program name with args. 3642set dummy $ac_prog; ac_word=$2 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644$as_echo_n "checking for $ac_word... " >&6; } 3645if ${ac_cv_prog_ac_ct_CC+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 if test -n "$ac_ct_CC"; then 3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3650else 3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652for as_dir in $PATH 3653do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 for ac_exec_ext in '' $ac_executable_extensions; do 3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3658 ac_cv_prog_ac_ct_CC="$ac_prog" 3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3660 break 2 3661 fi 3662done 3663 done 3664IFS=$as_save_IFS 3665 3666fi 3667fi 3668ac_ct_CC=$ac_cv_prog_ac_ct_CC 3669if test -n "$ac_ct_CC"; then 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3671$as_echo "$ac_ct_CC" >&6; } 3672else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674$as_echo "no" >&6; } 3675fi 3676 3677 3678 test -n "$ac_ct_CC" && break 3679done 3680 3681 if test "x$ac_ct_CC" = x; then 3682 CC="" 3683 else 3684 case $cross_compiling:$ac_tool_warned in 3685yes:) 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3688ac_tool_warned=yes ;; 3689esac 3690 CC=$ac_ct_CC 3691 fi 3692fi 3693 3694fi 3695 3696 3697test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3699as_fn_error $? "no acceptable C compiler found in \$PATH 3700See \`config.log' for more details" "$LINENO" 5; } 3701 3702# Provide some information about the compiler. 3703$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3704set X $ac_compile 3705ac_compiler=$2 3706for ac_option in --version -v -V -qversion; do 3707 { { ac_try="$ac_compiler $ac_option >&5" 3708case "(($ac_try" in 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3710 *) ac_try_echo=$ac_try;; 3711esac 3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3713$as_echo "$ac_try_echo"; } >&5 3714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3715 ac_status=$? 3716 if test -s conftest.err; then 3717 sed '10a\ 3718... rest of stderr output deleted ... 3719 10q' conftest.err >conftest.er1 3720 cat conftest.er1 >&5 3721 fi 3722 rm -f conftest.er1 conftest.err 3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3724 test $ac_status = 0; } 3725done 3726 3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738ac_clean_files_save=$ac_clean_files 3739ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3740# Try to create an executable without -o first, disregard a.out. 3741# It will help us diagnose broken compilers, and finding out an intuition 3742# of exeext. 3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3744$as_echo_n "checking whether the C compiler works... " >&6; } 3745ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3746 3747# The possible output files: 3748ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3749 3750ac_rmfiles= 3751for ac_file in $ac_files 3752do 3753 case $ac_file in 3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3755 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3756 esac 3757done 3758rm -f $ac_rmfiles 3759 3760if { { ac_try="$ac_link_default" 3761case "(($ac_try" in 3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3763 *) ac_try_echo=$ac_try;; 3764esac 3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3766$as_echo "$ac_try_echo"; } >&5 3767 (eval "$ac_link_default") 2>&5 3768 ac_status=$? 3769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3770 test $ac_status = 0; }; then : 3771 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3772# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3773# in a Makefile. We should not override ac_cv_exeext if it was cached, 3774# so that the user can short-circuit this test for compilers unknown to 3775# Autoconf. 3776for ac_file in $ac_files '' 3777do 3778 test -f "$ac_file" || continue 3779 case $ac_file in 3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3781 ;; 3782 [ab].out ) 3783 # We found the default executable, but exeext='' is most 3784 # certainly right. 3785 break;; 3786 *.* ) 3787 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3788 then :; else 3789 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3790 fi 3791 # We set ac_cv_exeext here because the later test for it is not 3792 # safe: cross compilers may not add the suffix if given an `-o' 3793 # argument, so we may need to know it at that point already. 3794 # Even if this section looks crufty: it has the advantage of 3795 # actually working. 3796 break;; 3797 * ) 3798 break;; 3799 esac 3800done 3801test "$ac_cv_exeext" = no && ac_cv_exeext= 3802 3803else 3804 ac_file='' 3805fi 3806if test -z "$ac_file"; then : 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808$as_echo "no" >&6; } 3809$as_echo "$as_me: failed program was:" >&5 3810sed 's/^/| /' conftest.$ac_ext >&5 3811 3812{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3814as_fn_error 77 "C compiler cannot create executables 3815See \`config.log' for more details" "$LINENO" 5; } 3816else 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3818$as_echo "yes" >&6; } 3819fi 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3821$as_echo_n "checking for C compiler default output file name... " >&6; } 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3823$as_echo "$ac_file" >&6; } 3824ac_exeext=$ac_cv_exeext 3825 3826rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3827ac_clean_files=$ac_clean_files_save 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3829$as_echo_n "checking for suffix of executables... " >&6; } 3830if { { ac_try="$ac_link" 3831case "(($ac_try" in 3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3833 *) ac_try_echo=$ac_try;; 3834esac 3835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3836$as_echo "$ac_try_echo"; } >&5 3837 (eval "$ac_link") 2>&5 3838 ac_status=$? 3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3840 test $ac_status = 0; }; then : 3841 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3842# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3843# work properly (i.e., refer to `conftest.exe'), while it won't with 3844# `rm'. 3845for ac_file in conftest.exe conftest conftest.*; do 3846 test -f "$ac_file" || continue 3847 case $ac_file in 3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3850 break;; 3851 * ) break;; 3852 esac 3853done 3854else 3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3857as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3858See \`config.log' for more details" "$LINENO" 5; } 3859fi 3860rm -f conftest conftest$ac_cv_exeext 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3862$as_echo "$ac_cv_exeext" >&6; } 3863 3864rm -f conftest.$ac_ext 3865EXEEXT=$ac_cv_exeext 3866ac_exeext=$EXEEXT 3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#include <stdio.h> 3870int 3871main () 3872{ 3873FILE *f = fopen ("conftest.out", "w"); 3874 return ferror (f) || fclose (f) != 0; 3875 3876 ; 3877 return 0; 3878} 3879_ACEOF 3880ac_clean_files="$ac_clean_files conftest.out" 3881# Check that the compiler produces executables we can run. If not, either 3882# the compiler is broken, or we cross compile. 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3884$as_echo_n "checking whether we are cross compiling... " >&6; } 3885if test "$cross_compiling" != yes; then 3886 { { ac_try="$ac_link" 3887case "(($ac_try" in 3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3889 *) ac_try_echo=$ac_try;; 3890esac 3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3892$as_echo "$ac_try_echo"; } >&5 3893 (eval "$ac_link") 2>&5 3894 ac_status=$? 3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3896 test $ac_status = 0; } 3897 if { ac_try='./conftest$ac_cv_exeext' 3898 { { case "(($ac_try" in 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *) ac_try_echo=$ac_try;; 3901esac 3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3903$as_echo "$ac_try_echo"; } >&5 3904 (eval "$ac_try") 2>&5 3905 ac_status=$? 3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3907 test $ac_status = 0; }; }; then 3908 cross_compiling=no 3909 else 3910 if test "$cross_compiling" = maybe; then 3911 cross_compiling=yes 3912 else 3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3915as_fn_error $? "cannot run C compiled programs. 3916If you meant to cross compile, use \`--host'. 3917See \`config.log' for more details" "$LINENO" 5; } 3918 fi 3919 fi 3920fi 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3922$as_echo "$cross_compiling" >&6; } 3923 3924rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3925ac_clean_files=$ac_clean_files_save 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3927$as_echo_n "checking for suffix of object files... " >&6; } 3928if ${ac_cv_objext+:} false; then : 3929 $as_echo_n "(cached) " >&6 3930else 3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932/* end confdefs.h. */ 3933 3934int 3935main () 3936{ 3937 3938 ; 3939 return 0; 3940} 3941_ACEOF 3942rm -f conftest.o conftest.obj 3943if { { ac_try="$ac_compile" 3944case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947esac 3948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3949$as_echo "$ac_try_echo"; } >&5 3950 (eval "$ac_compile") 2>&5 3951 ac_status=$? 3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3953 test $ac_status = 0; }; then : 3954 for ac_file in conftest.o conftest.obj conftest.*; do 3955 test -f "$ac_file" || continue; 3956 case $ac_file in 3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3958 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3959 break;; 3960 esac 3961done 3962else 3963 $as_echo "$as_me: failed program was:" >&5 3964sed 's/^/| /' conftest.$ac_ext >&5 3965 3966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3968as_fn_error $? "cannot compute suffix of object files: cannot compile 3969See \`config.log' for more details" "$LINENO" 5; } 3970fi 3971rm -f conftest.$ac_cv_objext conftest.$ac_ext 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3974$as_echo "$ac_cv_objext" >&6; } 3975OBJEXT=$ac_cv_objext 3976ac_objext=$OBJEXT 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3978$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3979if ${ac_cv_c_compiler_gnu+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985int 3986main () 3987{ 3988#ifndef __GNUC__ 3989 choke me 3990#endif 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996if ac_fn_c_try_compile "$LINENO"; then : 3997 ac_compiler_gnu=yes 3998else 3999 ac_compiler_gnu=no 4000fi 4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4002ac_cv_c_compiler_gnu=$ac_compiler_gnu 4003 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4006$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4007if test $ac_compiler_gnu = yes; then 4008 GCC=yes 4009else 4010 GCC= 4011fi 4012ac_test_CFLAGS=${CFLAGS+set} 4013ac_save_CFLAGS=$CFLAGS 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4015$as_echo_n "checking whether $CC accepts -g... " >&6; } 4016if ${ac_cv_prog_cc_g+:} false; then : 4017 $as_echo_n "(cached) " >&6 4018else 4019 ac_save_c_werror_flag=$ac_c_werror_flag 4020 ac_c_werror_flag=yes 4021 ac_cv_prog_cc_g=no 4022 CFLAGS="-g" 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025 4026int 4027main () 4028{ 4029 4030 ; 4031 return 0; 4032} 4033_ACEOF 4034if ac_fn_c_try_compile "$LINENO"; then : 4035 ac_cv_prog_cc_g=yes 4036else 4037 CFLAGS="" 4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040 4041int 4042main () 4043{ 4044 4045 ; 4046 return 0; 4047} 4048_ACEOF 4049if ac_fn_c_try_compile "$LINENO"; then : 4050 4051else 4052 ac_c_werror_flag=$ac_save_c_werror_flag 4053 CFLAGS="-g" 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main () 4059{ 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065if ac_fn_c_try_compile "$LINENO"; then : 4066 ac_cv_prog_cc_g=yes 4067fi 4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4069fi 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071fi 4072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4073 ac_c_werror_flag=$ac_save_c_werror_flag 4074fi 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4076$as_echo "$ac_cv_prog_cc_g" >&6; } 4077if test "$ac_test_CFLAGS" = set; then 4078 CFLAGS=$ac_save_CFLAGS 4079elif test $ac_cv_prog_cc_g = yes; then 4080 if test "$GCC" = yes; then 4081 CFLAGS="-g -O2" 4082 else 4083 CFLAGS="-g" 4084 fi 4085else 4086 if test "$GCC" = yes; then 4087 CFLAGS="-O2" 4088 else 4089 CFLAGS= 4090 fi 4091fi 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4093$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4094if ${ac_cv_prog_cc_c89+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 ac_cv_prog_cc_c89=no 4098ac_save_CC=$CC 4099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101#include <stdarg.h> 4102#include <stdio.h> 4103struct stat; 4104/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4105struct buf { int x; }; 4106FILE * (*rcsopen) (struct buf *, struct stat *, int); 4107static char *e (p, i) 4108 char **p; 4109 int i; 4110{ 4111 return p[i]; 4112} 4113static char *f (char * (*g) (char **, int), char **p, ...) 4114{ 4115 char *s; 4116 va_list v; 4117 va_start (v,p); 4118 s = g (p, va_arg (v,int)); 4119 va_end (v); 4120 return s; 4121} 4122 4123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4124 function prototypes and stuff, but not '\xHH' hex character constants. 4125 These don't provoke an error unfortunately, instead are silently treated 4126 as 'x'. The following induces an error, until -std is added to get 4127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4128 array size at least. It's necessary to write '\x00'==0 to get something 4129 that's true only with -std. */ 4130int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4131 4132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4133 inside strings and character constants. */ 4134#define FOO(x) 'x' 4135int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4136 4137int test (int i, double x); 4138struct s1 {int (*f) (int a);}; 4139struct s2 {int (*f) (double a);}; 4140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4141int argc; 4142char **argv; 4143int 4144main () 4145{ 4146return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4153do 4154 CC="$ac_save_CC $ac_arg" 4155 if ac_fn_c_try_compile "$LINENO"; then : 4156 ac_cv_prog_cc_c89=$ac_arg 4157fi 4158rm -f core conftest.err conftest.$ac_objext 4159 test "x$ac_cv_prog_cc_c89" != "xno" && break 4160done 4161rm -f conftest.$ac_ext 4162CC=$ac_save_CC 4163 4164fi 4165# AC_CACHE_VAL 4166case "x$ac_cv_prog_cc_c89" in 4167 x) 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4169$as_echo "none needed" >&6; } ;; 4170 xno) 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4172$as_echo "unsupported" >&6; } ;; 4173 *) 4174 CC="$CC $ac_cv_prog_cc_c89" 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4176$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4177esac 4178if test "x$ac_cv_prog_cc_c89" != xno; then : 4179 4180fi 4181 4182ac_ext=c 4183ac_cpp='$CPP $CPPFLAGS' 4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4186ac_compiler_gnu=$ac_cv_c_compiler_gnu 4187 4188 4189ac_ext=c 4190ac_cpp='$CPP $CPPFLAGS' 4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4193ac_compiler_gnu=$ac_cv_c_compiler_gnu 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4195$as_echo_n "checking how to run the C preprocessor... " >&6; } 4196# On Suns, sometimes $CPP names a directory. 4197if test -n "$CPP" && test -d "$CPP"; then 4198 CPP= 4199fi 4200if test -z "$CPP"; then 4201 if ${ac_cv_prog_CPP+:} false; then : 4202 $as_echo_n "(cached) " >&6 4203else 4204 # Double quotes because CPP needs to be expanded 4205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4206 do 4207 ac_preproc_ok=false 4208for ac_c_preproc_warn_flag in '' yes 4209do 4210 # Use a header file that comes with gcc, so configuring glibc 4211 # with a fresh cross-compiler works. 4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4213 # <limits.h> exists even on freestanding compilers. 4214 # On the NeXT, cc -E runs the code through the compiler's parser, 4215 # not just through cpp. "Syntax error" is here to catch this case. 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218#ifdef __STDC__ 4219# include <limits.h> 4220#else 4221# include <assert.h> 4222#endif 4223 Syntax error 4224_ACEOF 4225if ac_fn_c_try_cpp "$LINENO"; then : 4226 4227else 4228 # Broken: fails on valid input. 4229continue 4230fi 4231rm -f conftest.err conftest.i conftest.$ac_ext 4232 4233 # OK, works on sane cases. Now check whether nonexistent headers 4234 # can be detected and how. 4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4236/* end confdefs.h. */ 4237#include <ac_nonexistent.h> 4238_ACEOF 4239if ac_fn_c_try_cpp "$LINENO"; then : 4240 # Broken: success on invalid input. 4241continue 4242else 4243 # Passes both tests. 4244ac_preproc_ok=: 4245break 4246fi 4247rm -f conftest.err conftest.i conftest.$ac_ext 4248 4249done 4250# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4251rm -f conftest.i conftest.err conftest.$ac_ext 4252if $ac_preproc_ok; then : 4253 break 4254fi 4255 4256 done 4257 ac_cv_prog_CPP=$CPP 4258 4259fi 4260 CPP=$ac_cv_prog_CPP 4261else 4262 ac_cv_prog_CPP=$CPP 4263fi 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4265$as_echo "$CPP" >&6; } 4266ac_preproc_ok=false 4267for ac_c_preproc_warn_flag in '' yes 4268do 4269 # Use a header file that comes with gcc, so configuring glibc 4270 # with a fresh cross-compiler works. 4271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4272 # <limits.h> exists even on freestanding compilers. 4273 # On the NeXT, cc -E runs the code through the compiler's parser, 4274 # not just through cpp. "Syntax error" is here to catch this case. 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277#ifdef __STDC__ 4278# include <limits.h> 4279#else 4280# include <assert.h> 4281#endif 4282 Syntax error 4283_ACEOF 4284if ac_fn_c_try_cpp "$LINENO"; then : 4285 4286else 4287 # Broken: fails on valid input. 4288continue 4289fi 4290rm -f conftest.err conftest.i conftest.$ac_ext 4291 4292 # OK, works on sane cases. Now check whether nonexistent headers 4293 # can be detected and how. 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296#include <ac_nonexistent.h> 4297_ACEOF 4298if ac_fn_c_try_cpp "$LINENO"; then : 4299 # Broken: success on invalid input. 4300continue 4301else 4302 # Passes both tests. 4303ac_preproc_ok=: 4304break 4305fi 4306rm -f conftest.err conftest.i conftest.$ac_ext 4307 4308done 4309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4310rm -f conftest.i conftest.err conftest.$ac_ext 4311if $ac_preproc_ok; then : 4312 4313else 4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4316as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4317See \`config.log' for more details" "$LINENO" 5; } 4318fi 4319 4320ac_ext=c 4321ac_cpp='$CPP $CPPFLAGS' 4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4324ac_compiler_gnu=$ac_cv_c_compiler_gnu 4325 4326 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4328$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4329if ${ac_cv_path_GREP+:} false; then : 4330 $as_echo_n "(cached) " >&6 4331else 4332 if test -z "$GREP"; then 4333 ac_path_GREP_found=false 4334 # Loop through the user's path and test for each of PROGNAME-LIST 4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4336for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4337do 4338 IFS=$as_save_IFS 4339 test -z "$as_dir" && as_dir=. 4340 for ac_prog in grep ggrep; do 4341 for ac_exec_ext in '' $ac_executable_extensions; do 4342 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4343 as_fn_executable_p "$ac_path_GREP" || continue 4344# Check for GNU ac_path_GREP and select it if it is found. 4345 # Check for GNU $ac_path_GREP 4346case `"$ac_path_GREP" --version 2>&1` in 4347*GNU*) 4348 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4349*) 4350 ac_count=0 4351 $as_echo_n 0123456789 >"conftest.in" 4352 while : 4353 do 4354 cat "conftest.in" "conftest.in" >"conftest.tmp" 4355 mv "conftest.tmp" "conftest.in" 4356 cp "conftest.in" "conftest.nl" 4357 $as_echo 'GREP' >> "conftest.nl" 4358 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4360 as_fn_arith $ac_count + 1 && ac_count=$as_val 4361 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4362 # Best one so far, save it but keep looking for a better one 4363 ac_cv_path_GREP="$ac_path_GREP" 4364 ac_path_GREP_max=$ac_count 4365 fi 4366 # 10*(2^10) chars as input seems more than enough 4367 test $ac_count -gt 10 && break 4368 done 4369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4370esac 4371 4372 $ac_path_GREP_found && break 3 4373 done 4374 done 4375 done 4376IFS=$as_save_IFS 4377 if test -z "$ac_cv_path_GREP"; then 4378 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4379 fi 4380else 4381 ac_cv_path_GREP=$GREP 4382fi 4383 4384fi 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4386$as_echo "$ac_cv_path_GREP" >&6; } 4387 GREP="$ac_cv_path_GREP" 4388 4389 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4391$as_echo_n "checking for egrep... " >&6; } 4392if ${ac_cv_path_EGREP+:} false; then : 4393 $as_echo_n "(cached) " >&6 4394else 4395 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4396 then ac_cv_path_EGREP="$GREP -E" 4397 else 4398 if test -z "$EGREP"; then 4399 ac_path_EGREP_found=false 4400 # Loop through the user's path and test for each of PROGNAME-LIST 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_prog in egrep; do 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4409 as_fn_executable_p "$ac_path_EGREP" || continue 4410# Check for GNU ac_path_EGREP and select it if it is found. 4411 # Check for GNU $ac_path_EGREP 4412case `"$ac_path_EGREP" --version 2>&1` in 4413*GNU*) 4414 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4415*) 4416 ac_count=0 4417 $as_echo_n 0123456789 >"conftest.in" 4418 while : 4419 do 4420 cat "conftest.in" "conftest.in" >"conftest.tmp" 4421 mv "conftest.tmp" "conftest.in" 4422 cp "conftest.in" "conftest.nl" 4423 $as_echo 'EGREP' >> "conftest.nl" 4424 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4426 as_fn_arith $ac_count + 1 && ac_count=$as_val 4427 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4428 # Best one so far, save it but keep looking for a better one 4429 ac_cv_path_EGREP="$ac_path_EGREP" 4430 ac_path_EGREP_max=$ac_count 4431 fi 4432 # 10*(2^10) chars as input seems more than enough 4433 test $ac_count -gt 10 && break 4434 done 4435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4436esac 4437 4438 $ac_path_EGREP_found && break 3 4439 done 4440 done 4441 done 4442IFS=$as_save_IFS 4443 if test -z "$ac_cv_path_EGREP"; then 4444 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4445 fi 4446else 4447 ac_cv_path_EGREP=$EGREP 4448fi 4449 4450 fi 4451fi 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4453$as_echo "$ac_cv_path_EGREP" >&6; } 4454 EGREP="$ac_cv_path_EGREP" 4455 4456 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4458$as_echo_n "checking for ANSI C header files... " >&6; } 4459if ${ac_cv_header_stdc+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4463/* end confdefs.h. */ 4464#include <stdlib.h> 4465#include <stdarg.h> 4466#include <string.h> 4467#include <float.h> 4468 4469int 4470main () 4471{ 4472 4473 ; 4474 return 0; 4475} 4476_ACEOF 4477if ac_fn_c_try_compile "$LINENO"; then : 4478 ac_cv_header_stdc=yes 4479else 4480 ac_cv_header_stdc=no 4481fi 4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4483 4484if test $ac_cv_header_stdc = yes; then 4485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487/* end confdefs.h. */ 4488#include <string.h> 4489 4490_ACEOF 4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4492 $EGREP "memchr" >/dev/null 2>&1; then : 4493 4494else 4495 ac_cv_header_stdc=no 4496fi 4497rm -f conftest* 4498 4499fi 4500 4501if test $ac_cv_header_stdc = yes; then 4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505#include <stdlib.h> 4506 4507_ACEOF 4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4509 $EGREP "free" >/dev/null 2>&1; then : 4510 4511else 4512 ac_cv_header_stdc=no 4513fi 4514rm -f conftest* 4515 4516fi 4517 4518if test $ac_cv_header_stdc = yes; then 4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4520 if test "$cross_compiling" = yes; then : 4521 : 4522else 4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4524/* end confdefs.h. */ 4525#include <ctype.h> 4526#include <stdlib.h> 4527#if ((' ' & 0x0FF) == 0x020) 4528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4530#else 4531# define ISLOWER(c) \ 4532 (('a' <= (c) && (c) <= 'i') \ 4533 || ('j' <= (c) && (c) <= 'r') \ 4534 || ('s' <= (c) && (c) <= 'z')) 4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4536#endif 4537 4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4539int 4540main () 4541{ 4542 int i; 4543 for (i = 0; i < 256; i++) 4544 if (XOR (islower (i), ISLOWER (i)) 4545 || toupper (i) != TOUPPER (i)) 4546 return 2; 4547 return 0; 4548} 4549_ACEOF 4550if ac_fn_c_try_run "$LINENO"; then : 4551 4552else 4553 ac_cv_header_stdc=no 4554fi 4555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4556 conftest.$ac_objext conftest.beam conftest.$ac_ext 4557fi 4558 4559fi 4560fi 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4562$as_echo "$ac_cv_header_stdc" >&6; } 4563if test $ac_cv_header_stdc = yes; then 4564 4565$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4566 4567fi 4568 4569# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4570for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4571 inttypes.h stdint.h unistd.h 4572do : 4573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4574ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4575" 4576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4577 cat >>confdefs.h <<_ACEOF 4578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4579_ACEOF 4580 4581fi 4582 4583done 4584 4585 4586 4587 4588 4589 for ac_header in $ac_header_list 4590do : 4591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4593" 4594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4595 cat >>confdefs.h <<_ACEOF 4596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4597_ACEOF 4598 4599fi 4600 4601done 4602 4603 4604 4605 4606 4607 4608 4609 4610 ac_base_cc="$CC" 4611 ac_base_cflags="$CFLAGS" 4612 4613 test -z "$ac_user_cflags" -a -n "$GCC" -a -n "$ac_compile_with_warnings" -a -z "$ac_user_depcflags" && \ 4614 DEPCFLAGS="-MD -MP" 4615 4616 test -z "$ac_user_cflags" -a -n "$GCC" -a -n "$ac_compile_with_warnings" -a -z "$ac_user_depdirflag" && \ 4617 DEPDIRFLAG='-MF $(DEPDIR)/$*.d' 4618 4619 4620 save_cflags="$CFLAGS" 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -W -Wall" >&5 4622$as_echo_n "checking whether the C compiler accepts -W -Wall... " >&6; } 4623if ${ac_cv_c_w_wall+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 4627 CFLAGS="$CFLAGS -W -Wall" 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630int f(int x) { return x; } 4631int 4632main () 4633{ 4634 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639if ac_fn_c_try_compile "$LINENO"; then : 4640 ac_cv_c_w_wall=yes 4641else 4642 ac_cv_c_w_wall=no 4643fi 4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4645fi 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_w_wall" >&5 4647$as_echo "$ac_cv_c_w_wall" >&6; } 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -Werror" >&5 4649$as_echo_n "checking whether the C compiler accepts -Werror... " >&6; } 4650if ${ac_cv_c_werror+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 4654 CFLAGS="$CFLAGS -Werror" 4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4656/* end confdefs.h. */ 4657int f(int x) { return x; } 4658int 4659main () 4660{ 4661 4662 ; 4663 return 0; 4664} 4665_ACEOF 4666if ac_fn_c_try_compile "$LINENO"; then : 4667 ac_cv_c_werror=yes 4668else 4669 ac_cv_c_werror=no 4670fi 4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_werror" >&5 4674$as_echo "$ac_cv_c_werror" >&6; } 4675 CFLAGS="$save_cflags" 4676 4677 WARNING_CFLAGS= 4678 test -n "$ac_cv_c_w_wall" -a -n "$ac_compile_with_warnings" && \ 4679 WARNING_CFLAGS=" -W -Wall" 4680 4681 test -z "$ac_user_cflags" && \ 4682 CFLAGS="$CFLAGS$WARNING_CFLAGS" 4683 4684 4685 4686ac_ext=c 4687ac_cpp='$CPP $CPPFLAGS' 4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4690ac_compiler_gnu=$ac_cv_c_compiler_gnu 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4692$as_echo_n "checking how to run the C preprocessor... " >&6; } 4693# On Suns, sometimes $CPP names a directory. 4694if test -n "$CPP" && test -d "$CPP"; then 4695 CPP= 4696fi 4697if test -z "$CPP"; then 4698 if ${ac_cv_prog_CPP+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700else 4701 # Double quotes because CPP needs to be expanded 4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4703 do 4704 ac_preproc_ok=false 4705for ac_c_preproc_warn_flag in '' yes 4706do 4707 # Use a header file that comes with gcc, so configuring glibc 4708 # with a fresh cross-compiler works. 4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4710 # <limits.h> exists even on freestanding compilers. 4711 # On the NeXT, cc -E runs the code through the compiler's parser, 4712 # not just through cpp. "Syntax error" is here to catch this case. 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714/* end confdefs.h. */ 4715#ifdef __STDC__ 4716# include <limits.h> 4717#else 4718# include <assert.h> 4719#endif 4720 Syntax error 4721_ACEOF 4722if ac_fn_c_try_cpp "$LINENO"; then : 4723 4724else 4725 # Broken: fails on valid input. 4726continue 4727fi 4728rm -f conftest.err conftest.i conftest.$ac_ext 4729 4730 # OK, works on sane cases. Now check whether nonexistent headers 4731 # can be detected and how. 4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733/* end confdefs.h. */ 4734#include <ac_nonexistent.h> 4735_ACEOF 4736if ac_fn_c_try_cpp "$LINENO"; then : 4737 # Broken: success on invalid input. 4738continue 4739else 4740 # Passes both tests. 4741ac_preproc_ok=: 4742break 4743fi 4744rm -f conftest.err conftest.i conftest.$ac_ext 4745 4746done 4747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4748rm -f conftest.i conftest.err conftest.$ac_ext 4749if $ac_preproc_ok; then : 4750 break 4751fi 4752 4753 done 4754 ac_cv_prog_CPP=$CPP 4755 4756fi 4757 CPP=$ac_cv_prog_CPP 4758else 4759 ac_cv_prog_CPP=$CPP 4760fi 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4762$as_echo "$CPP" >&6; } 4763ac_preproc_ok=false 4764for ac_c_preproc_warn_flag in '' yes 4765do 4766 # Use a header file that comes with gcc, so configuring glibc 4767 # with a fresh cross-compiler works. 4768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4769 # <limits.h> exists even on freestanding compilers. 4770 # On the NeXT, cc -E runs the code through the compiler's parser, 4771 # not just through cpp. "Syntax error" is here to catch this case. 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774#ifdef __STDC__ 4775# include <limits.h> 4776#else 4777# include <assert.h> 4778#endif 4779 Syntax error 4780_ACEOF 4781if ac_fn_c_try_cpp "$LINENO"; then : 4782 4783else 4784 # Broken: fails on valid input. 4785continue 4786fi 4787rm -f conftest.err conftest.i conftest.$ac_ext 4788 4789 # OK, works on sane cases. Now check whether nonexistent headers 4790 # can be detected and how. 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <ac_nonexistent.h> 4794_ACEOF 4795if ac_fn_c_try_cpp "$LINENO"; then : 4796 # Broken: success on invalid input. 4797continue 4798else 4799 # Passes both tests. 4800ac_preproc_ok=: 4801break 4802fi 4803rm -f conftest.err conftest.i conftest.$ac_ext 4804 4805done 4806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4807rm -f conftest.i conftest.err conftest.$ac_ext 4808if $ac_preproc_ok; then : 4809 4810else 4811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4813as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4814See \`config.log' for more details" "$LINENO" 5; } 4815fi 4816 4817ac_ext=c 4818ac_cpp='$CPP $CPPFLAGS' 4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4821ac_compiler_gnu=$ac_cv_c_compiler_gnu 4822 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4824$as_echo_n "checking for inline... " >&6; } 4825if ${ac_cv_c_inline+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 ac_cv_c_inline=no 4829for ac_kw in inline __inline__ __inline; do 4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4831/* end confdefs.h. */ 4832#ifndef __cplusplus 4833typedef int foo_t; 4834static $ac_kw foo_t static_foo () {return 0; } 4835$ac_kw foo_t foo () {return 0; } 4836#endif 4837 4838_ACEOF 4839if ac_fn_c_try_compile "$LINENO"; then : 4840 ac_cv_c_inline=$ac_kw 4841fi 4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4843 test "$ac_cv_c_inline" != no && break 4844done 4845 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4848$as_echo "$ac_cv_c_inline" >&6; } 4849 4850case $ac_cv_c_inline in 4851 inline | yes) ;; 4852 *) 4853 case $ac_cv_c_inline in 4854 no) ac_val=;; 4855 *) ac_val=$ac_cv_c_inline;; 4856 esac 4857 cat >>confdefs.h <<_ACEOF 4858#ifndef __cplusplus 4859#define inline $ac_val 4860#endif 4861_ACEOF 4862 ;; 4863esac 4864 4865 4866ac_ext=cpp 4867ac_cpp='$CXXCPP $CPPFLAGS' 4868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4871if test -z "$CXX"; then 4872 if test -n "$CCC"; then 4873 CXX=$CCC 4874 else 4875 if test -n "$ac_tool_prefix"; then 4876 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4877 do 4878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4879set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4881$as_echo_n "checking for $ac_word... " >&6; } 4882if ${ac_cv_prog_CXX+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 if test -n "$CXX"; then 4886 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4887else 4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889for as_dir in $PATH 4890do 4891 IFS=$as_save_IFS 4892 test -z "$as_dir" && as_dir=. 4893 for ac_exec_ext in '' $ac_executable_extensions; do 4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4895 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4897 break 2 4898 fi 4899done 4900 done 4901IFS=$as_save_IFS 4902 4903fi 4904fi 4905CXX=$ac_cv_prog_CXX 4906if test -n "$CXX"; then 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4908$as_echo "$CXX" >&6; } 4909else 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4911$as_echo "no" >&6; } 4912fi 4913 4914 4915 test -n "$CXX" && break 4916 done 4917fi 4918if test -z "$CXX"; then 4919 ac_ct_CXX=$CXX 4920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4921do 4922 # Extract the first word of "$ac_prog", so it can be a program name with args. 4923set dummy $ac_prog; ac_word=$2 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4925$as_echo_n "checking for $ac_word... " >&6; } 4926if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 if test -n "$ac_ct_CXX"; then 4930 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4931else 4932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4933for as_dir in $PATH 4934do 4935 IFS=$as_save_IFS 4936 test -z "$as_dir" && as_dir=. 4937 for ac_exec_ext in '' $ac_executable_extensions; do 4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4939 ac_cv_prog_ac_ct_CXX="$ac_prog" 4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4941 break 2 4942 fi 4943done 4944 done 4945IFS=$as_save_IFS 4946 4947fi 4948fi 4949ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4950if test -n "$ac_ct_CXX"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4952$as_echo "$ac_ct_CXX" >&6; } 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955$as_echo "no" >&6; } 4956fi 4957 4958 4959 test -n "$ac_ct_CXX" && break 4960done 4961 4962 if test "x$ac_ct_CXX" = x; then 4963 CXX="g++" 4964 else 4965 case $cross_compiling:$ac_tool_warned in 4966yes:) 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4969ac_tool_warned=yes ;; 4970esac 4971 CXX=$ac_ct_CXX 4972 fi 4973fi 4974 4975 fi 4976fi 4977# Provide some information about the compiler. 4978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4979set X $ac_compile 4980ac_compiler=$2 4981for ac_option in --version -v -V -qversion; do 4982 { { ac_try="$ac_compiler $ac_option >&5" 4983case "(($ac_try" in 4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4985 *) ac_try_echo=$ac_try;; 4986esac 4987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4988$as_echo "$ac_try_echo"; } >&5 4989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4990 ac_status=$? 4991 if test -s conftest.err; then 4992 sed '10a\ 4993... rest of stderr output deleted ... 4994 10q' conftest.err >conftest.er1 4995 cat conftest.er1 >&5 4996 fi 4997 rm -f conftest.er1 conftest.err 4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4999 test $ac_status = 0; } 5000done 5001 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5003$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5004if ${ac_cv_cxx_compiler_gnu+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009 5010int 5011main () 5012{ 5013#ifndef __GNUC__ 5014 choke me 5015#endif 5016 5017 ; 5018 return 0; 5019} 5020_ACEOF 5021if ac_fn_cxx_try_compile "$LINENO"; then : 5022 ac_compiler_gnu=yes 5023else 5024 ac_compiler_gnu=no 5025fi 5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5027ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5028 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5031$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5032if test $ac_compiler_gnu = yes; then 5033 GXX=yes 5034else 5035 GXX= 5036fi 5037ac_test_CXXFLAGS=${CXXFLAGS+set} 5038ac_save_CXXFLAGS=$CXXFLAGS 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5040$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5041if ${ac_cv_prog_cxx_g+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5045 ac_cxx_werror_flag=yes 5046 ac_cv_prog_cxx_g=no 5047 CXXFLAGS="-g" 5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049/* end confdefs.h. */ 5050 5051int 5052main () 5053{ 5054 5055 ; 5056 return 0; 5057} 5058_ACEOF 5059if ac_fn_cxx_try_compile "$LINENO"; then : 5060 ac_cv_prog_cxx_g=yes 5061else 5062 CXXFLAGS="" 5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5064/* end confdefs.h. */ 5065 5066int 5067main () 5068{ 5069 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074if ac_fn_cxx_try_compile "$LINENO"; then : 5075 5076else 5077 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5078 CXXFLAGS="-g" 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_cxx_try_compile "$LINENO"; then : 5091 ac_cv_prog_cxx_g=yes 5092fi 5093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5094fi 5095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5096fi 5097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5098 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5099fi 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5101$as_echo "$ac_cv_prog_cxx_g" >&6; } 5102if test "$ac_test_CXXFLAGS" = set; then 5103 CXXFLAGS=$ac_save_CXXFLAGS 5104elif test $ac_cv_prog_cxx_g = yes; then 5105 if test "$GXX" = yes; then 5106 CXXFLAGS="-g -O2" 5107 else 5108 CXXFLAGS="-g" 5109 fi 5110else 5111 if test "$GXX" = yes; then 5112 CXXFLAGS="-O2" 5113 else 5114 CXXFLAGS= 5115 fi 5116fi 5117ac_ext=c 5118ac_cpp='$CPP $CPPFLAGS' 5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5121ac_compiler_gnu=$ac_cv_c_compiler_gnu 5122 5123 5124 5125 5126 5127 if grep __cplusplus confdefs.h >/dev/null 2>&1; then 5128 sed 's/#ifdef __cplusplus/#if defined(__cplusplus) \&\& !defined(__KERNEL__)/' < confdefs.h > confdefs.h~ 5129 mv confdefs.h~ confdefs.h 5130 fi 5131 5132 if test -z "$GXX"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 5134========================================= 5135 5136Your C++ compiler ($CXX) is not a GNU C++ compiler! 5137Either set the 'CXX' environment variable to tell me where 5138a GNU C++ compiler is, or compile at your own risk. 5139(This code uses a few GCC extensions and GCC-specific compiler options, 5140and Linux header files are GCC-specific.) 5141 5142=========================================" >&5 5143$as_echo "$as_me: WARNING: 5144========================================= 5145 5146Your C++ compiler ($CXX) is not a GNU C++ compiler! 5147Either set the 'CXX' environment variable to tell me where 5148a GNU C++ compiler is, or compile at your own risk. 5149(This code uses a few GCC extensions and GCC-specific compiler options, 5150and Linux header files are GCC-specific.) 5151 5152=========================================" >&2;} 5153 fi 5154 5155 ac_ext=cpp 5156ac_cpp='$CXXCPP $CPPFLAGS' 5157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5160 5161 5162 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <new> works" >&5 5164$as_echo_n "checking whether <new> works... " >&6; } 5165if ${ac_cv_good_new_hdr+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171#include <new> 5172int 5173main () 5174{ 5175 5176 int a; 5177 int *b = new(&a) int; 5178 return 0; 5179 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184if ac_fn_cxx_try_link "$LINENO"; then : 5185 ac_cv_good_new_hdr=yes 5186else 5187 ac_cv_good_new_hdr=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext \ 5190 conftest$ac_exeext conftest.$ac_ext 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_hdr" >&5 5193$as_echo "$ac_cv_good_new_hdr" >&6; } 5194 if test "$ac_cv_good_new_hdr" = yes; then 5195 5196$as_echo "#define HAVE_NEW_HDR 1" >>confdefs.h 5197 5198 else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <new.h> works" >&5 5200$as_echo_n "checking whether <new.h> works... " >&6; } 5201if ${ac_cv_good_new_h+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206/* end confdefs.h. */ 5207#include <new.h> 5208int 5209main () 5210{ 5211 5212 int a; 5213 int *b = new(&a) int; 5214 return 0; 5215 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220if ac_fn_cxx_try_link "$LINENO"; then : 5221 ac_cv_good_new_h=yes 5222else 5223 ac_cv_good_new_h=no 5224fi 5225rm -f core conftest.err conftest.$ac_objext \ 5226 conftest$ac_exeext conftest.$ac_ext 5227fi 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_h" >&5 5229$as_echo "$ac_cv_good_new_h" >&6; } 5230 if test "$ac_cv_good_new_h" = yes; then 5231 5232$as_echo "#define HAVE_NEW_H 1" >>confdefs.h 5233 5234 fi 5235 fi 5236 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands 'auto'" >&5 5238$as_echo_n "checking whether the C++ compiler understands 'auto'... " >&6; } 5239if ${ac_cv_cxx_auto+:} false; then : 5240 $as_echo_n "(cached) " >&6 5241else 5242 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245struct s { int a; }; int f(s x) { auto &y = x; return y.a; } 5246int 5247main () 5248{ 5249 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_cxx_try_compile "$LINENO"; then : 5255 ac_cv_cxx_auto=yes 5256else 5257 ac_cv_cxx_auto=no 5258fi 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5260fi 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5 5262$as_echo "$ac_cv_cxx_auto" >&6; } 5263 if test "$ac_cv_cxx_auto" != yes -a -z "$ac_user_cxx"; then 5264 CXX="${CXX} -std=gnu++0x" 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler with -std=gnu++0x understands 'auto'" >&5 5266$as_echo_n "checking whether the C++ compiler with -std=gnu++0x understands 'auto'... " >&6; } 5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268/* end confdefs.h. */ 5269struct s { int a; }; int f(s x) { auto &y = x; return y.a; } 5270int 5271main () 5272{ 5273 5274 ; 5275 return 0; 5276} 5277_ACEOF 5278if ac_fn_cxx_try_compile "$LINENO"; then : 5279 ac_cv_cxx_auto=yes 5280else 5281 ac_cv_cxx_auto=no 5282fi 5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5 5285$as_echo "$ac_cv_cxx_auto" >&6; } 5286 fi 5287 5288 save_cxxflags="$CXXFLAGS" 5289 test -n "$ac_cv_c_w_wall" && CXXFLAGS="$CXXFLAGS -W -Wall" 5290 test -n "$ac_cv_c_werror" && CXXFLAGS="$CXXFLAGS -Werror" 5291 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands constexpr" >&5 5293$as_echo_n "checking whether the C++ compiler understands constexpr... " >&6; } 5294if ${ac_cv_cxx_constexpr+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5299/* end confdefs.h. */ 5300constexpr int f(int x) { return x + 1; } 5301int 5302main () 5303{ 5304 5305 ; 5306 return 0; 5307} 5308_ACEOF 5309if ac_fn_cxx_try_compile "$LINENO"; then : 5310 ac_cv_cxx_constexpr=yes 5311else 5312 ac_cv_cxx_constexpr=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5315fi 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_constexpr" >&5 5317$as_echo "$ac_cv_cxx_constexpr" >&6; } 5318 if test "$ac_cv_cxx_constexpr" = yes; then 5319 5320$as_echo "#define HAVE_CXX_CONSTEXPR 1" >>confdefs.h 5321 5322 fi 5323 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands rvalue references" >&5 5325$as_echo_n "checking whether the C++ compiler understands rvalue references... " >&6; } 5326if ${ac_cv_cxx_rvalue_references+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332int f(int &) { return 1; } int f(int &&) { return 0; } 5333int 5334main () 5335{ 5336return f(int()); 5337 ; 5338 return 0; 5339} 5340_ACEOF 5341if ac_fn_cxx_try_compile "$LINENO"; then : 5342 ac_cv_cxx_rvalue_references=yes 5343else 5344 ac_cv_cxx_rvalue_references=no 5345fi 5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5347fi 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_rvalue_references" >&5 5349$as_echo "$ac_cv_cxx_rvalue_references" >&6; } 5350 if test "$ac_cv_cxx_rvalue_references" = yes; then 5351 5352$as_echo "#define HAVE_CXX_RVALUE_REFERENCES 1" >>confdefs.h 5353 5354 fi 5355 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands static_assert" >&5 5357$as_echo_n "checking whether the C++ compiler understands static_assert... " >&6; } 5358if ${ac_cv_cxx_static_assert+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363/* end confdefs.h. */ 5364const int f = 2; 5365int 5366main () 5367{ 5368static_assert(f == 2, "f should be 2"); 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373if ac_fn_cxx_try_compile "$LINENO"; then : 5374 ac_cv_cxx_static_assert=yes 5375else 5376 ac_cv_cxx_static_assert=no 5377fi 5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5379fi 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5 5381$as_echo "$ac_cv_cxx_static_assert" >&6; } 5382 if test "$ac_cv_cxx_static_assert" = yes; then 5383 5384$as_echo "#define HAVE_CXX_STATIC_ASSERT 1" >>confdefs.h 5385 5386 fi 5387 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands template alias" >&5 5389$as_echo_n "checking whether the C++ compiler understands template alias... " >&6; } 5390if ${ac_cv_cxx_template_alias+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396template <typename T> struct X { typedef T type; }; template <typename T> using Y = X<T>; int f(int x) { return x; } 5397int 5398main () 5399{ 5400return f(Y<int>::type()); 5401 ; 5402 return 0; 5403} 5404_ACEOF 5405if ac_fn_cxx_try_compile "$LINENO"; then : 5406 ac_cv_cxx_template_alias=yes 5407else 5408 ac_cv_cxx_template_alias=no 5409fi 5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5411fi 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_alias" >&5 5413$as_echo "$ac_cv_cxx_template_alias" >&6; } 5414 if test "$ac_cv_cxx_template_alias" = yes; then 5415 5416$as_echo "#define HAVE_CXX_TEMPLATE_ALIAS 1" >>confdefs.h 5417 5418 fi 5419 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands #pragma interface" >&5 5421$as_echo_n "checking whether the C++ compiler understands #pragma interface... " >&6; } 5422if ${ac_cv_cxx_pragma_interface+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5427/* end confdefs.h. */ 5428#pragma interface "foo.c" 5429#pragma implementation "foo.c" 5430int 5431main () 5432{ 5433 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438if ac_fn_cxx_try_compile "$LINENO"; then : 5439 ac_cv_cxx_pragma_interface=yes 5440else 5441 ac_cv_cxx_pragma_interface=no 5442fi 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_pragma_interface" >&5 5446$as_echo "$ac_cv_cxx_pragma_interface" >&6; } 5447 if test "$ac_cv_cxx_pragma_interface" = yes; then 5448 5449$as_echo "#define HAVE_CXX_PRAGMA_INTERFACE 1" >>confdefs.h 5450 5451 fi 5452 5453 CXXFLAGS="$save_cxxflags" 5454 5455 5456 ac_base_cxx="$CXX" 5457 ac_base_cxxflags="$CXXFLAGS" 5458 5459 test -z "$ac_user_cxxflags" -a -n "$GXX" && \ 5460 CXXFLAGS="$CXXFLAGS$WARNING_CFLAGS" 5461 5462ac_ext=cpp 5463ac_cpp='$CXXCPP $CPPFLAGS' 5464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5468$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5469if test -z "$CXXCPP"; then 5470 if ${ac_cv_prog_CXXCPP+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 # Double quotes because CXXCPP needs to be expanded 5474 for CXXCPP in "$CXX -E" "/lib/cpp" 5475 do 5476 ac_preproc_ok=false 5477for ac_cxx_preproc_warn_flag in '' yes 5478do 5479 # Use a header file that comes with gcc, so configuring glibc 5480 # with a fresh cross-compiler works. 5481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5482 # <limits.h> exists even on freestanding compilers. 5483 # On the NeXT, cc -E runs the code through the compiler's parser, 5484 # not just through cpp. "Syntax error" is here to catch this case. 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487#ifdef __STDC__ 5488# include <limits.h> 5489#else 5490# include <assert.h> 5491#endif 5492 Syntax error 5493_ACEOF 5494if ac_fn_cxx_try_cpp "$LINENO"; then : 5495 5496else 5497 # Broken: fails on valid input. 5498continue 5499fi 5500rm -f conftest.err conftest.i conftest.$ac_ext 5501 5502 # OK, works on sane cases. Now check whether nonexistent headers 5503 # can be detected and how. 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506#include <ac_nonexistent.h> 5507_ACEOF 5508if ac_fn_cxx_try_cpp "$LINENO"; then : 5509 # Broken: success on invalid input. 5510continue 5511else 5512 # Passes both tests. 5513ac_preproc_ok=: 5514break 5515fi 5516rm -f conftest.err conftest.i conftest.$ac_ext 5517 5518done 5519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5520rm -f conftest.i conftest.err conftest.$ac_ext 5521if $ac_preproc_ok; then : 5522 break 5523fi 5524 5525 done 5526 ac_cv_prog_CXXCPP=$CXXCPP 5527 5528fi 5529 CXXCPP=$ac_cv_prog_CXXCPP 5530else 5531 ac_cv_prog_CXXCPP=$CXXCPP 5532fi 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5534$as_echo "$CXXCPP" >&6; } 5535ac_preproc_ok=false 5536for ac_cxx_preproc_warn_flag in '' yes 5537do 5538 # Use a header file that comes with gcc, so configuring glibc 5539 # with a fresh cross-compiler works. 5540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5541 # <limits.h> exists even on freestanding compilers. 5542 # On the NeXT, cc -E runs the code through the compiler's parser, 5543 # not just through cpp. "Syntax error" is here to catch this case. 5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5545/* end confdefs.h. */ 5546#ifdef __STDC__ 5547# include <limits.h> 5548#else 5549# include <assert.h> 5550#endif 5551 Syntax error 5552_ACEOF 5553if ac_fn_cxx_try_cpp "$LINENO"; then : 5554 5555else 5556 # Broken: fails on valid input. 5557continue 5558fi 5559rm -f conftest.err conftest.i conftest.$ac_ext 5560 5561 # OK, works on sane cases. Now check whether nonexistent headers 5562 # can be detected and how. 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565#include <ac_nonexistent.h> 5566_ACEOF 5567if ac_fn_cxx_try_cpp "$LINENO"; then : 5568 # Broken: success on invalid input. 5569continue 5570else 5571 # Passes both tests. 5572ac_preproc_ok=: 5573break 5574fi 5575rm -f conftest.err conftest.i conftest.$ac_ext 5576 5577done 5578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5579rm -f conftest.i conftest.err conftest.$ac_ext 5580if $ac_preproc_ok; then : 5581 5582else 5583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5585as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5586See \`config.log' for more details" "$LINENO" 5; } 5587fi 5588 5589ac_ext=cpp 5590ac_cpp='$CXXCPP $CPPFLAGS' 5591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5594 5595 5596ac_preset_ar="$AR" 5597if test -n "$ac_tool_prefix"; then 5598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5599set dummy ${ac_tool_prefix}ar; ac_word=$2 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5601$as_echo_n "checking for $ac_word... " >&6; } 5602if ${ac_cv_prog_AR+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 if test -n "$AR"; then 5606 ac_cv_prog_AR="$AR" # Let the user override the test. 5607else 5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609for as_dir in $PATH 5610do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5615 ac_cv_prog_AR="${ac_tool_prefix}ar" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619done 5620 done 5621IFS=$as_save_IFS 5622 5623fi 5624fi 5625AR=$ac_cv_prog_AR 5626if test -n "$AR"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5628$as_echo "$AR" >&6; } 5629else 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631$as_echo "no" >&6; } 5632fi 5633 5634 5635fi 5636if test -z "$ac_cv_prog_AR"; then 5637 ac_ct_AR=$AR 5638 # Extract the first word of "ar", so it can be a program name with args. 5639set dummy ar; ac_word=$2 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641$as_echo_n "checking for $ac_word... " >&6; } 5642if ${ac_cv_prog_ac_ct_AR+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 if test -n "$ac_ct_AR"; then 5646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5647else 5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5649for as_dir in $PATH 5650do 5651 IFS=$as_save_IFS 5652 test -z "$as_dir" && as_dir=. 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5655 ac_cv_prog_ac_ct_AR="ar" 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 break 2 5658 fi 5659done 5660 done 5661IFS=$as_save_IFS 5662 5663fi 5664fi 5665ac_ct_AR=$ac_cv_prog_ac_ct_AR 5666if test -n "$ac_ct_AR"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5668$as_echo "$ac_ct_AR" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 if test "x$ac_ct_AR" = x; then 5675 AR="" 5676 else 5677 case $cross_compiling:$ac_tool_warned in 5678yes:) 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5681ac_tool_warned=yes ;; 5682esac 5683 AR=$ac_ct_AR 5684 fi 5685else 5686 AR="$ac_cv_prog_AR" 5687fi 5688 5689if test -n "$ac_tool_prefix"; then 5690 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 5691set dummy ${ac_tool_prefix}ld; ac_word=$2 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5693$as_echo_n "checking for $ac_word... " >&6; } 5694if ${ac_cv_prog_LD+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 if test -n "$LD"; then 5698 ac_cv_prog_LD="$LD" # Let the user override the test. 5699else 5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5701for as_dir in $PATH 5702do 5703 IFS=$as_save_IFS 5704 test -z "$as_dir" && as_dir=. 5705 for ac_exec_ext in '' $ac_executable_extensions; do 5706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5707 ac_cv_prog_LD="${ac_tool_prefix}ld" 5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5709 break 2 5710 fi 5711done 5712 done 5713IFS=$as_save_IFS 5714 5715fi 5716fi 5717LD=$ac_cv_prog_LD 5718if test -n "$LD"; then 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5720$as_echo "$LD" >&6; } 5721else 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5723$as_echo "no" >&6; } 5724fi 5725 5726 5727fi 5728if test -z "$ac_cv_prog_LD"; then 5729 ac_ct_LD=$LD 5730 # Extract the first word of "ld", so it can be a program name with args. 5731set dummy ld; ac_word=$2 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5733$as_echo_n "checking for $ac_word... " >&6; } 5734if ${ac_cv_prog_ac_ct_LD+:} false; then : 5735 $as_echo_n "(cached) " >&6 5736else 5737 if test -n "$ac_ct_LD"; then 5738 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 5739else 5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741for as_dir in $PATH 5742do 5743 IFS=$as_save_IFS 5744 test -z "$as_dir" && as_dir=. 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5747 ac_cv_prog_ac_ct_LD="ld" 5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5749 break 2 5750 fi 5751done 5752 done 5753IFS=$as_save_IFS 5754 5755fi 5756fi 5757ac_ct_LD=$ac_cv_prog_ac_ct_LD 5758if test -n "$ac_ct_LD"; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 5760$as_echo "$ac_ct_LD" >&6; } 5761else 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5763$as_echo "no" >&6; } 5764fi 5765 5766 if test "x$ac_ct_LD" = x; then 5767 LD="" 5768 else 5769 case $cross_compiling:$ac_tool_warned in 5770yes:) 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5773ac_tool_warned=yes ;; 5774esac 5775 LD=$ac_ct_LD 5776 fi 5777else 5778 LD="$ac_cv_prog_LD" 5779fi 5780 5781if test -n "$ac_tool_prefix"; then 5782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5783set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5785$as_echo_n "checking for $ac_word... " >&6; } 5786if ${ac_cv_prog_RANLIB+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 if test -n "$RANLIB"; then 5790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5791else 5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5793for as_dir in $PATH 5794do 5795 IFS=$as_save_IFS 5796 test -z "$as_dir" && as_dir=. 5797 for ac_exec_ext in '' $ac_executable_extensions; do 5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5801 break 2 5802 fi 5803done 5804 done 5805IFS=$as_save_IFS 5806 5807fi 5808fi 5809RANLIB=$ac_cv_prog_RANLIB 5810if test -n "$RANLIB"; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5812$as_echo "$RANLIB" >&6; } 5813else 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5815$as_echo "no" >&6; } 5816fi 5817 5818 5819fi 5820if test -z "$ac_cv_prog_RANLIB"; then 5821 ac_ct_RANLIB=$RANLIB 5822 # Extract the first word of "ranlib", so it can be a program name with args. 5823set dummy ranlib; ac_word=$2 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5825$as_echo_n "checking for $ac_word... " >&6; } 5826if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 if test -n "$ac_ct_RANLIB"; then 5830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5839 ac_cv_prog_ac_ct_RANLIB="ranlib" 5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844 done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5850if test -n "$ac_ct_RANLIB"; then 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5852$as_echo "$ac_ct_RANLIB" >&6; } 5853else 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855$as_echo "no" >&6; } 5856fi 5857 5858 if test "x$ac_ct_RANLIB" = x; then 5859 RANLIB=":" 5860 else 5861 case $cross_compiling:$ac_tool_warned in 5862yes:) 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5865ac_tool_warned=yes ;; 5866esac 5867 RANLIB=$ac_ct_RANLIB 5868 fi 5869else 5870 RANLIB="$ac_cv_prog_RANLIB" 5871fi 5872 5873if test -n "$ac_tool_prefix"; then 5874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5875set dummy ${ac_tool_prefix}strip; ac_word=$2 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5877$as_echo_n "checking for $ac_word... " >&6; } 5878if ${ac_cv_prog_STRIP+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 if test -n "$STRIP"; then 5882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5883else 5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5885for as_dir in $PATH 5886do 5887 IFS=$as_save_IFS 5888 test -z "$as_dir" && as_dir=. 5889 for ac_exec_ext in '' $ac_executable_extensions; do 5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5891 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5893 break 2 5894 fi 5895done 5896 done 5897IFS=$as_save_IFS 5898 5899fi 5900fi 5901STRIP=$ac_cv_prog_STRIP 5902if test -n "$STRIP"; then 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5904$as_echo "$STRIP" >&6; } 5905else 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5907$as_echo "no" >&6; } 5908fi 5909 5910 5911fi 5912if test -z "$ac_cv_prog_STRIP"; then 5913 ac_ct_STRIP=$STRIP 5914 # Extract the first word of "strip", so it can be a program name with args. 5915set dummy strip; ac_word=$2 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5917$as_echo_n "checking for $ac_word... " >&6; } 5918if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5919 $as_echo_n "(cached) " >&6 5920else 5921 if test -n "$ac_ct_STRIP"; then 5922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5923else 5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5925for as_dir in $PATH 5926do 5927 IFS=$as_save_IFS 5928 test -z "$as_dir" && as_dir=. 5929 for ac_exec_ext in '' $ac_executable_extensions; do 5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5931 ac_cv_prog_ac_ct_STRIP="strip" 5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5933 break 2 5934 fi 5935done 5936 done 5937IFS=$as_save_IFS 5938 5939fi 5940fi 5941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5942if test -n "$ac_ct_STRIP"; then 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5944$as_echo "$ac_ct_STRIP" >&6; } 5945else 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947$as_echo "no" >&6; } 5948fi 5949 5950 if test "x$ac_ct_STRIP" = x; then 5951 STRIP=":" 5952 else 5953 case $cross_compiling:$ac_tool_warned in 5954yes:) 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5957ac_tool_warned=yes ;; 5958esac 5959 STRIP=$ac_ct_STRIP 5960 fi 5961else 5962 STRIP="$ac_cv_prog_STRIP" 5963fi 5964 5965 5966conf_auxdir='$(top_srcdir)' 5967 5968 5969test -z "$AR_CREATEFLAGS" && AR_CREATEFLAGS=cru 5970 5971 5972 5973 5974 5975# Check whether --enable-user-multithread was given. 5976if test "${enable_user_multithread+set}" = set; then : 5977 enableval=$enable_user_multithread; : 5978else 5979 enable_user_multithread=no 5980fi 5981 5982 5983PTHREAD_LIBS="" 5984 5985 5986if test "x$enable_user_multithread" = xyes; then 5987 SAVE_LIBS="$LIBS" 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 5989$as_echo_n "checking for library containing pthread_create... " >&6; } 5990if ${ac_cv_search_pthread_create+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 ac_func_search_save_LIBS=$LIBS 5994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996 5997/* Override any GCC internal prototype to avoid an error. 5998 Use char because int might match the return type of a GCC 5999 builtin and then its argument prototype would still apply. */ 6000#ifdef __cplusplus 6001extern "C" 6002#endif 6003char pthread_create (); 6004int 6005main () 6006{ 6007return pthread_create (); 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012for ac_lib in '' pthread; do 6013 if test -z "$ac_lib"; then 6014 ac_res="none required" 6015 else 6016 ac_res=-l$ac_lib 6017 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6018 fi 6019 if ac_fn_cxx_try_link "$LINENO"; then : 6020 ac_cv_search_pthread_create=$ac_res 6021fi 6022rm -f core conftest.err conftest.$ac_objext \ 6023 conftest$ac_exeext 6024 if ${ac_cv_search_pthread_create+:} false; then : 6025 break 6026fi 6027done 6028if ${ac_cv_search_pthread_create+:} false; then : 6029 6030else 6031 ac_cv_search_pthread_create=no 6032fi 6033rm conftest.$ac_ext 6034LIBS=$ac_func_search_save_LIBS 6035fi 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 6037$as_echo "$ac_cv_search_pthread_create" >&6; } 6038ac_res=$ac_cv_search_pthread_create 6039if test "$ac_res" != no; then : 6040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6041 ac_have_libpthread=yes 6042else 6043 ac_have_libpthread=no 6044fi 6045 6046 6047for ac_header in pthread.h 6048do : 6049 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 6050if test "x$ac_cv_header_pthread_h" = xyes; then : 6051 cat >>confdefs.h <<_ACEOF 6052#define HAVE_PTHREAD_H 1 6053_ACEOF 6054 ac_have_pthread_h=yes 6055else 6056 ac_have_pthread_h=no 6057fi 6058 6059done 6060 6061 if test "$ac_have_libpthread$ac_have_pthread_h" = yesyes; then 6062 $as_echo "#define HAVE_USER_MULTITHREAD 1" >>confdefs.h 6063 6064 ac_fn_cxx_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "#define _GNU_SOURCE 6065#include <pthread.h> 6066" 6067if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes; then : 6068 ac_have_decl=1 6069else 6070 ac_have_decl=0 6071fi 6072 6073cat >>confdefs.h <<_ACEOF 6074#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl 6075_ACEOF 6076 6077 if echo "$LIBS" | grep -e -lpthread >/dev/null 2>&1; then 6078 PTHREAD_LIBS="-lpthread" 6079 fi 6080 else 6081 as_fn_error $? " 6082========================================= 6083 6084Can't find -lpthread and/or <pthread.h>, so I can't compile with 6085--enable-user-multithread. 6086 6087=========================================" "$LINENO" 5 6088 fi 6089 LIBS="$SAVE_LIBS" 6090fi 6091 6092# Check whether --enable-select was given. 6093if test "${enable_select+set}" = set; then : 6094 enableval=$enable_select; : 6095else 6096 enable_select="select poll kqueue" 6097fi 6098 6099# Check whether --enable-poll was given. 6100if test "${enable_poll+set}" = set; then : 6101 enableval=$enable_poll; : 6102else 6103 enable_poll=yes 6104fi 6105 6106# Check whether --enable-kqueue was given. 6107if test "${enable_kqueue+set}" = set; then : 6108 enableval=$enable_kqueue; : 6109else 6110 enable_kqueue=yes 6111fi 6112 6113 6114if test "$enable_select" = yes; then 6115 enable_select='select poll kqueue' 6116elif test "$enable_select" = no; then 6117 enable_select='poll kqueue' 6118fi 6119if echo "$enable_select" | grep select >/dev/null 2>&1; then 6120 6121$as_echo "#define HAVE_ALLOW_SELECT 1" >>confdefs.h 6122 6123fi 6124if echo "$enable_select" | grep poll >/dev/null 2>&1 && test "$enable_poll" = yes; then 6125 6126$as_echo "#define HAVE_ALLOW_POLL 1" >>confdefs.h 6127 6128fi 6129if echo "$enable_select" | grep kqueue >/dev/null 2>&1 && test "$enable_kqueue" = yes; then 6130 6131$as_echo "#define HAVE_ALLOW_KQUEUE 1" >>confdefs.h 6132 6133fi 6134 6135 6136 6137# Check whether --enable-all-elements was given. 6138if test "${enable_all_elements+set}" = set; then : 6139 enableval=$enable_all_elements; 6140fi 6141 6142 6143element_groups="" 6144 6145 6146 6147# Check whether --enable-ip6 was given. 6148if test "${enable_ip6+set}" = set; then : 6149 enableval=$enable_ip6; 6150else 6151 enable_ip6=NO 6152fi 6153test "x$enable_all_elements" = xyes -a \( "x$enable_ip6" = xNO -o "x$enable_ip6" = x \) && enable_ip6=yes 6154if test "x$enable_ip6" = xyes; then 6155 : 6156 $as_echo "#define HAVE_IP6 1" >>confdefs.h 6157 6158fi 6159# Check whether --enable-ipsec was given. 6160if test "${enable_ipsec+set}" = set; then : 6161 enableval=$enable_ipsec; 6162else 6163 enable_ipsec=NO 6164fi 6165test "x$enable_all_elements" = xyes -a \( "x$enable_ipsec" = xNO -o "x$enable_ipsec" = x \) && enable_ipsec=yes 6166if test "x$enable_ipsec" = xyes; then 6167 : 6168 $as_echo "#define HAVE_IPSEC 1" >>confdefs.h 6169 6170fi 6171# Check whether --enable-experimental was given. 6172if test "${enable_experimental+set}" = set; then : 6173 enableval=$enable_experimental; : 6174else 6175 enable_experimental=no 6176fi 6177 6178 6179 6180 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are compiling for Linux" >&5 6182$as_echo_n "checking whether we are compiling for Linux... " >&6; } 6183if ${ac_cv_under_linux+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188 6189int 6190main () 6191{ 6192#ifndef __linux__ 6193#error "fuckers! fuckers!" 6194#endif 6195return 0; 6196 ; 6197 return 0; 6198} 6199_ACEOF 6200if ac_fn_cxx_try_compile "$LINENO"; then : 6201 ac_cv_under_linux=yes 6202else 6203 ac_cv_under_linux=no 6204fi 6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6206fi 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_under_linux" >&5 6208$as_echo "$ac_cv_under_linux" >&6; } 6209 6210 6211 6212ac_ext=c 6213ac_cpp='$CPP $CPPFLAGS' 6214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6216ac_compiler_gnu=$ac_cv_c_compiler_gnu 6217 6218ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 6219if test "x$ac_cv_func_strerror" = xyes; then : 6220 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 6221 6222else 6223 case " $LIBOBJS " in 6224 *" strerror.$ac_objext "* ) ;; 6225 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 6226 ;; 6227esac 6228 6229fi 6230 6231 6232for ac_func in random snprintf strnlen strtof strtold strtoul tcgetpgrp vsnprintf 6233do : 6234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6235ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6236if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6237 cat >>confdefs.h <<_ACEOF 6238#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6239_ACEOF 6240 6241fi 6242done 6243 6244ac_ext=cpp 6245ac_cpp='$CXXCPP $CPPFLAGS' 6246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6249 6250 6251 6252 6253# Check whether --enable-smaller-code was given. 6254if test "${enable_smaller_code+set}" = set; then : 6255 enableval=$enable_smaller_code; : 6256else 6257 enable_smaller_code=no 6258fi 6259 6260if test "x$enable_smaller_code" = xyes; then 6261 6262$as_echo "#define CLICK_OPTIMIZE_SIZE 1" >>confdefs.h 6263 6264fi 6265 6266# Check whether --enable-int64 was given. 6267if test "${enable_int64+set}" = set; then : 6268 enableval=$enable_int64; : 6269else 6270 enable_int64=yes 6271fi 6272 6273 6274# The cast to long int works around a bug in the HP C Compiler 6275# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6276# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6277# This bug is HP SR number 8606223364. 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6279$as_echo_n "checking size of int... " >&6; } 6280if ${ac_cv_sizeof_int+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6284 6285else 6286 if test "$ac_cv_type_int" = yes; then 6287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6289as_fn_error 77 "cannot compute sizeof (int) 6290See \`config.log' for more details" "$LINENO" 5; } 6291 else 6292 ac_cv_sizeof_int=0 6293 fi 6294fi 6295 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6298$as_echo "$ac_cv_sizeof_int" >&6; } 6299 6300 6301 6302cat >>confdefs.h <<_ACEOF 6303#define SIZEOF_INT $ac_cv_sizeof_int 6304_ACEOF 6305 6306 6307# The cast to long int works around a bug in the HP C Compiler 6308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6310# This bug is HP SR number 8606223364. 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6312$as_echo_n "checking size of long... " >&6; } 6313if ${ac_cv_sizeof_long+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6317 6318else 6319 if test "$ac_cv_type_long" = yes; then 6320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6322as_fn_error 77 "cannot compute sizeof (long) 6323See \`config.log' for more details" "$LINENO" 5; } 6324 else 6325 ac_cv_sizeof_long=0 6326 fi 6327fi 6328 6329fi 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6331$as_echo "$ac_cv_sizeof_long" >&6; } 6332 6333 6334 6335cat >>confdefs.h <<_ACEOF 6336#define SIZEOF_LONG $ac_cv_sizeof_long 6337_ACEOF 6338 6339 6340# The cast to long int works around a bug in the HP C Compiler 6341# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6342# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6343# This bug is HP SR number 8606223364. 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 6345$as_echo_n "checking size of size_t... " >&6; } 6346if ${ac_cv_sizeof_size_t+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 6350 6351else 6352 if test "$ac_cv_type_size_t" = yes; then 6353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6355as_fn_error 77 "cannot compute sizeof (size_t) 6356See \`config.log' for more details" "$LINENO" 5; } 6357 else 6358 ac_cv_sizeof_size_t=0 6359 fi 6360fi 6361 6362fi 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 6364$as_echo "$ac_cv_sizeof_size_t" >&6; } 6365 6366 6367 6368cat >>confdefs.h <<_ACEOF 6369#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 6370_ACEOF 6371 6372 6373# The cast to long int works around a bug in the HP C Compiler 6374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6376# This bug is HP SR number 8606223364. 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 6378$as_echo_n "checking size of ptrdiff_t... " >&6; } 6379if ${ac_cv_sizeof_ptrdiff_t+:} false; then : 6380 $as_echo_n "(cached) " >&6 6381else 6382 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : 6383 6384else 6385 if test "$ac_cv_type_ptrdiff_t" = yes; then 6386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6388as_fn_error 77 "cannot compute sizeof (ptrdiff_t) 6389See \`config.log' for more details" "$LINENO" 5; } 6390 else 6391 ac_cv_sizeof_ptrdiff_t=0 6392 fi 6393fi 6394 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 6397$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } 6398 6399 6400 6401cat >>confdefs.h <<_ACEOF 6402#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t 6403_ACEOF 6404 6405 6406# The cast to long int works around a bug in the HP C Compiler 6407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6409# This bug is HP SR number 8606223364. 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6411$as_echo_n "checking size of void *... " >&6; } 6412if ${ac_cv_sizeof_void_p+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 6416 6417else 6418 if test "$ac_cv_type_void_p" = yes; then 6419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6421as_fn_error 77 "cannot compute sizeof (void *) 6422See \`config.log' for more details" "$LINENO" 5; } 6423 else 6424 ac_cv_sizeof_void_p=0 6425 fi 6426fi 6427 6428fi 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6430$as_echo "$ac_cv_sizeof_void_p" >&6; } 6431 6432 6433 6434cat >>confdefs.h <<_ACEOF 6435#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 6436_ACEOF 6437 6438 6439 6440 6441 6442 6443 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 6445$as_echo_n "checking whether char is unsigned... " >&6; } 6446if ${ac_cv_c_char_unsigned+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6450/* end confdefs.h. */ 6451$ac_includes_default 6452int 6453main () 6454{ 6455static int test_array [1 - 2 * !(((char) -1) < 0)]; 6456test_array [0] = 0; 6457return test_array [0]; 6458 6459 ; 6460 return 0; 6461} 6462_ACEOF 6463if ac_fn_cxx_try_compile "$LINENO"; then : 6464 ac_cv_c_char_unsigned=no 6465else 6466 ac_cv_c_char_unsigned=yes 6467fi 6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6469fi 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 6471$as_echo "$ac_cv_c_char_unsigned" >&6; } 6472if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 6473 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 6474 6475fi 6476 6477 6478 6479 if test x$ac_cv_header_inttypes_h = xno; then 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t typedefs" >&5 6481$as_echo_n "checking for uintXX_t typedefs... " >&6; } 6482if ${ac_cv_uint_t+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486/* end confdefs.h. */ 6487#include <sys/types.h> 6488 6489_ACEOF 6490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6491 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6492 ac_cv_uint_t=yes 6493else 6494 ac_cv_uint_t=no 6495fi 6496rm -f conftest* 6497 6498fi 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_uint_t" >&5 6500$as_echo "$ac_cv_uint_t" >&6; } 6501 fi 6502 if test x$ac_cv_header_inttypes_h = xno -a "$ac_cv_uint_t" = no; then 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t typedefs" >&5 6504$as_echo_n "checking for u_intXX_t typedefs... " >&6; } 6505if ${ac_cv_u_int_t+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510#include <sys/types.h> 6511 6512_ACEOF 6513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6514 $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6515 ac_cv_u_int_t=yes 6516else 6517 ac_cv_u_int_t=no 6518fi 6519rm -f conftest* 6520 6521fi 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u_int_t" >&5 6523$as_echo "$ac_cv_u_int_t" >&6; } 6524 fi 6525 if test x$ac_cv_header_inttypes_h = xyes -o "$ac_cv_uint_t" = yes; then : 6526 elif test "$ac_cv_u_int_t" = yes; then 6527 6528$as_echo "#define HAVE_U_INT_TYPES 1" >>confdefs.h 6529 6530 else 6531 as_fn_error $? " 6532========================================= 6533 6534Neither uint32_t nor u_int32_t defined by <inttypes.h> or <sys/types.h>! 6535 6536=========================================" "$LINENO" 5 6537 fi 6538 6539 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether machine is indifferent to alignment" >&5 6541$as_echo_n "checking whether machine is indifferent to alignment... " >&6; } 6542if ${ac_cv_alignment_indifferent+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 if test "x$ac_cv_header_inttypes_h" = xyes; then inttypes_hdr='inttypes.h'; else inttypes_hdr='sys/types.h'; fi 6546 6547 if test "$cross_compiling" = yes; then : 6548 ac_cv_alignment_indifferent=no 6549else 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552#include <$inttypes_hdr> 6553#include <stdlib.h> 6554void get_value(char *buf, int offset, int32_t *value) { 6555 int i; 6556 for (i = 0; i < 4; i++) 6557 buf[i + offset] = i; 6558 *value = *((int32_t *)(buf + offset)); 6559} 6560int main(int argc, char *argv[]) { 6561 char buf[12]; 6562 int i; 6563 int32_t value, try_value; 6564 get_value(buf, 0, &value); 6565 for (i = 1; i < 4; i++) { 6566 get_value(buf, i, &try_value); 6567 if (value != try_value) 6568 exit(1); 6569 } 6570 exit(0); 6571} 6572_ACEOF 6573if ac_fn_cxx_try_run "$LINENO"; then : 6574 ac_cv_alignment_indifferent=yes 6575else 6576 ac_cv_alignment_indifferent=no 6577fi 6578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6579 conftest.$ac_objext conftest.beam conftest.$ac_ext 6580fi 6581 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignment_indifferent" >&5 6584$as_echo "$ac_cv_alignment_indifferent" >&6; } 6585 if test "x$ac_cv_alignment_indifferent" = xyes; then 6586 6587$as_echo "#define HAVE_INDIFFERENT_ALIGNMENT 1" >>confdefs.h 6588 6589 fi 6590if test "x$enable_int64" = xyes; then 6591 # The cast to long int works around a bug in the HP C Compiler 6592# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6593# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6594# This bug is HP SR number 8606223364. 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6596$as_echo_n "checking size of long long... " >&6; } 6597if ${ac_cv_sizeof_long_long+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6601 6602else 6603 if test "$ac_cv_type_long_long" = yes; then 6604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6606as_fn_error 77 "cannot compute sizeof (long long) 6607See \`config.log' for more details" "$LINENO" 5; } 6608 else 6609 ac_cv_sizeof_long_long=0 6610 fi 6611fi 6612 6613fi 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6615$as_echo "$ac_cv_sizeof_long_long" >&6; } 6616 6617 6618 6619cat >>confdefs.h <<_ACEOF 6620#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6621_ACEOF 6622 6623 6624 6625 6626 if test "x$ac_cv_header_inttypes_h" = xyes; then 6627 inttypes_hdr='inttypes.h' 6628 else 6629 inttypes_hdr='sys/types.h' 6630 fi 6631 6632 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 6633if test "x$ac_cv_type_long_long" = xyes; then : 6634 6635cat >>confdefs.h <<_ACEOF 6636#define HAVE_LONG_LONG 1 6637_ACEOF 6638 6639 6640fi 6641 6642 ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "#include <$inttypes_hdr> 6643" 6644if test "x$ac_cv_type_int64_t" = xyes; then : 6645 6646cat >>confdefs.h <<_ACEOF 6647#define HAVE_INT64_T 1 6648_ACEOF 6649 6650ac_cv_int64_t=yes 6651else 6652 ac_cv_int64_t=no 6653fi 6654 6655 ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <$inttypes_hdr> 6656" 6657if test "x$ac_cv_type_uint64_t" = xyes; then : 6658 6659cat >>confdefs.h <<_ACEOF 6660#define HAVE_UINT64_T 1 6661_ACEOF 6662 6663ac_cv_uint64_t=yes 6664else 6665 ac_cv_uint64_t=no 6666fi 6667 6668 6669 have_int64_types= 6670 if test $ac_cv_int64_t = no -o $ac_cv_uint64_t = no; then 6671 as_fn_error $? " 6672========================================= 6673 6674int64_t types not defined by $inttypes_hdr! 6675Compile with '--disable-int64'. 6676 6677=========================================" "$LINENO" 5 6678 else 6679 6680$as_echo "#define HAVE_INT64_TYPES 1" >>confdefs.h 6681 6682 have_int64_types=yes 6683 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long and int64_t are the same type" >&5 6685$as_echo_n "checking whether long and int64_t are the same type... " >&6; } 6686if ${ac_cv_long_64+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 ac_ext=cpp 6690ac_cpp='$CXXCPP $CPPFLAGS' 6691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6694 6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6696/* end confdefs.h. */ 6697#include <$inttypes_hdr> 6698void f1(long) { 6699} 6700void f1(int64_t) { // will fail if long and int64_t are the same type 6701} 6702int 6703main () 6704{ 6705 6706 ; 6707 return 0; 6708} 6709_ACEOF 6710if ac_fn_cxx_try_compile "$LINENO"; then : 6711 ac_cv_long_64=no 6712else 6713 ac_cv_long_64=yes 6714fi 6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6716fi 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_64" >&5 6718$as_echo "$ac_cv_long_64" >&6; } 6719 if test $ac_cv_long_64 = yes; then 6720 6721$as_echo "#define HAVE_INT64_IS_LONG_USERLEVEL 1" >>confdefs.h 6722 6723 fi 6724 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long and int64_t are the same type" >&5 6726$as_echo_n "checking whether long long and int64_t are the same type... " >&6; } 6727if ${ac_cv_long_long_64+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 ac_ext=cpp 6731ac_cpp='$CXXCPP $CPPFLAGS' 6732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6735 6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6737/* end confdefs.h. */ 6738#include <$inttypes_hdr> 6739void f1(long long) { 6740} 6741void f1(int64_t) { // will fail if long long and int64_t are the same type 6742} 6743int 6744main () 6745{ 6746 6747 ; 6748 return 0; 6749} 6750_ACEOF 6751if ac_fn_cxx_try_compile "$LINENO"; then : 6752 ac_cv_long_long_64=no 6753else 6754 ac_cv_long_long_64=yes 6755fi 6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6757fi 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long_64" >&5 6759$as_echo "$ac_cv_long_long_64" >&6; } 6760 if test $ac_cv_long_long_64 = yes; then 6761 6762$as_echo "#define HAVE_INT64_IS_LONG_LONG_USERLEVEL 1" >>confdefs.h 6763 6764 fi 6765 fi 6766fi 6767 6768 6769 6770 6771 6772 6773 6774 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6776$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6777if ${ac_cv_c_bigendian+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 ac_cv_c_bigendian=unknown 6781 # See if we're dealing with a universal compiler. 6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6783/* end confdefs.h. */ 6784#ifndef __APPLE_CC__ 6785 not a universal capable compiler 6786 #endif 6787 typedef int dummy; 6788 6789_ACEOF 6790if ac_fn_cxx_try_compile "$LINENO"; then : 6791 6792 # Check for potential -arch flags. It is not universal unless 6793 # there are at least two -arch flags with different values. 6794 ac_arch= 6795 ac_prev= 6796 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6797 if test -n "$ac_prev"; then 6798 case $ac_word in 6799 i?86 | x86_64 | ppc | ppc64) 6800 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6801 ac_arch=$ac_word 6802 else 6803 ac_cv_c_bigendian=universal 6804 break 6805 fi 6806 ;; 6807 esac 6808 ac_prev= 6809 elif test "x$ac_word" = "x-arch"; then 6810 ac_prev=arch 6811 fi 6812 done 6813fi 6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6815 if test $ac_cv_c_bigendian = unknown; then 6816 # See if sys/param.h defines the BYTE_ORDER macro. 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819#include <sys/types.h> 6820 #include <sys/param.h> 6821 6822int 6823main () 6824{ 6825#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6826 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6827 && LITTLE_ENDIAN) 6828 bogus endian macros 6829 #endif 6830 6831 ; 6832 return 0; 6833} 6834_ACEOF 6835if ac_fn_cxx_try_compile "$LINENO"; then : 6836 # It does; now see whether it defined to BIG_ENDIAN or not. 6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6838/* end confdefs.h. */ 6839#include <sys/types.h> 6840 #include <sys/param.h> 6841 6842int 6843main () 6844{ 6845#if BYTE_ORDER != BIG_ENDIAN 6846 not big endian 6847 #endif 6848 6849 ; 6850 return 0; 6851} 6852_ACEOF 6853if ac_fn_cxx_try_compile "$LINENO"; then : 6854 ac_cv_c_bigendian=yes 6855else 6856 ac_cv_c_bigendian=no 6857fi 6858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6861 fi 6862 if test $ac_cv_c_bigendian = unknown; then 6863 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865/* end confdefs.h. */ 6866#include <limits.h> 6867 6868int 6869main () 6870{ 6871#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6872 bogus endian macros 6873 #endif 6874 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879if ac_fn_cxx_try_compile "$LINENO"; then : 6880 # It does; now see whether it defined to _BIG_ENDIAN or not. 6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883#include <limits.h> 6884 6885int 6886main () 6887{ 6888#ifndef _BIG_ENDIAN 6889 not big endian 6890 #endif 6891 6892 ; 6893 return 0; 6894} 6895_ACEOF 6896if ac_fn_cxx_try_compile "$LINENO"; then : 6897 ac_cv_c_bigendian=yes 6898else 6899 ac_cv_c_bigendian=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6904 fi 6905 if test $ac_cv_c_bigendian = unknown; then 6906 # Compile a test program. 6907 if test "$cross_compiling" = yes; then : 6908 # Try to guess by grepping values from an object file. 6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6910/* end confdefs.h. */ 6911short int ascii_mm[] = 6912 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6913 short int ascii_ii[] = 6914 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6915 int use_ascii (int i) { 6916 return ascii_mm[i] + ascii_ii[i]; 6917 } 6918 short int ebcdic_ii[] = 6919 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6920 short int ebcdic_mm[] = 6921 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6922 int use_ebcdic (int i) { 6923 return ebcdic_mm[i] + ebcdic_ii[i]; 6924 } 6925 extern int foo; 6926 6927int 6928main () 6929{ 6930return use_ascii (foo) == use_ebcdic (foo); 6931 ; 6932 return 0; 6933} 6934_ACEOF 6935if ac_fn_cxx_try_compile "$LINENO"; then : 6936 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6937 ac_cv_c_bigendian=yes 6938 fi 6939 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6940 if test "$ac_cv_c_bigendian" = unknown; then 6941 ac_cv_c_bigendian=no 6942 else 6943 # finding both strings is unlikely to happen, but who knows? 6944 ac_cv_c_bigendian=unknown 6945 fi 6946 fi 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949else 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952$ac_includes_default 6953int 6954main () 6955{ 6956 6957 /* Are we little or big endian? From Harbison&Steele. */ 6958 union 6959 { 6960 long int l; 6961 char c[sizeof (long int)]; 6962 } u; 6963 u.l = 1; 6964 return u.c[sizeof (long int) - 1] == 1; 6965 6966 ; 6967 return 0; 6968} 6969_ACEOF 6970if ac_fn_cxx_try_run "$LINENO"; then : 6971 ac_cv_c_bigendian=no 6972else 6973 ac_cv_c_bigendian=yes 6974fi 6975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6976 conftest.$ac_objext conftest.beam conftest.$ac_ext 6977fi 6978 6979 fi 6980fi 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6982$as_echo "$ac_cv_c_bigendian" >&6; } 6983 case $ac_cv_c_bigendian in #( 6984 yes) 6985 endian=CLICK_BIG_ENDIAN;; #( 6986 no) 6987 endian=CLICK_LITTLE_ENDIAN ;; #( 6988 universal) 6989 endian=CLICK_NO_ENDIAN 6990 ;; #( 6991 *) 6992 endian=CLICK_NO_ENDIAN ;; 6993 esac 6994 6995 6996cat >>confdefs.h <<_ACEOF 6997#define CLICK_BYTE_ORDER $endian 6998_ACEOF 6999 7000 7001 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signed right shift is arithmetic" >&5 7003$as_echo_n "checking whether signed right shift is arithmetic... " >&6; } 7004if ${ac_cv_arithmetic_right_shift+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008/* end confdefs.h. */ 7009int f(int x[((int) -1) >> 15]) { return x[0]; } 7010int 7011main () 7012{ 7013 7014 ; 7015 return 0; 7016} 7017_ACEOF 7018if ac_fn_cxx_try_compile "$LINENO"; then : 7019 ac_cv_arithmetic_right_shift=no 7020else 7021 ac_cv_arithmetic_right_shift=yes 7022fi 7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arithmetic_right_shift" >&5 7026$as_echo "$ac_cv_arithmetic_right_shift" >&6; } 7027 if test $ac_cv_arithmetic_right_shift = yes; then 7028 7029$as_echo "#define HAVE_ARITHMETIC_RIGHT_SHIFT 1" >>confdefs.h 7030 7031 fi 7032 7033 ac_ext=cpp 7034ac_cpp='$CXXCPP $CPPFLAGS' 7035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7038 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addressable va_list type" >&5 7040$as_echo_n "checking for addressable va_list type... " >&6; } 7041if ${ac_cv_va_list_addr+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043else 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046#include <stdarg.h> 7047void f(va_list *) { 7048} 7049void g(va_list val) { 7050 f(&val); 7051} 7052void h(int a, ...) { 7053 va_list val; 7054 va_start(val, a); 7055 g(val); 7056 va_end(val); 7057} 7058int 7059main () 7060{ 7061h(2, 3, 4); 7062 ; 7063 return 0; 7064} 7065_ACEOF 7066if ac_fn_cxx_try_compile "$LINENO"; then : 7067 ac_cv_va_list_addr=yes 7068else 7069 ac_cv_va_list_addr=no 7070fi 7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7072fi 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_va_list_addr" >&5 7074$as_echo "$ac_cv_va_list_addr" >&6; } 7075 if test "x$ac_cv_va_list_addr" = xyes; then 7076 7077$as_echo "#define HAVE_ADDRESSABLE_VA_LIST 1" >>confdefs.h 7078 7079 fi 7080 7081 7082 7083 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 7085$as_echo_n "checking for __builtin_clz... " >&6; } 7086if ${ac_cv_have___builtin_clz+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090/* end confdefs.h. */ 7091volatile int x = 11; 7092int 7093main () 7094{ 7095int y = __builtin_clz(x); 7096 ; 7097 return 0; 7098} 7099_ACEOF 7100if ac_fn_cxx_try_compile "$LINENO"; then : 7101 ac_cv_have___builtin_clz=yes 7102else 7103 ac_cv_have___builtin_clz=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7106fi 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5 7108$as_echo "$ac_cv_have___builtin_clz" >&6; } 7109 if test $ac_cv_have___builtin_clz = yes; then 7110 7111$as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h 7112 7113 fi 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5 7115$as_echo_n "checking for __builtin_clzl... " >&6; } 7116if ${ac_cv_have___builtin_clzl+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121volatile long x = 11; 7122int 7123main () 7124{ 7125int y = __builtin_clzl(x); 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130if ac_fn_cxx_try_compile "$LINENO"; then : 7131 ac_cv_have___builtin_clzl=yes 7132else 7133 ac_cv_have___builtin_clzl=no 7134fi 7135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7136fi 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzl" >&5 7138$as_echo "$ac_cv_have___builtin_clzl" >&6; } 7139 if test $ac_cv_have___builtin_clzl = yes; then 7140 7141$as_echo "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h 7142 7143 fi 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 7145$as_echo_n "checking for __builtin_clzll... " >&6; } 7146if ${ac_cv_have___builtin_clzll+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151volatile long long x = 11; 7152int 7153main () 7154{ 7155int y = __builtin_clzll(x); 7156 ; 7157 return 0; 7158} 7159_ACEOF 7160if ac_fn_cxx_try_compile "$LINENO"; then : 7161 ac_cv_have___builtin_clzll=yes 7162else 7163 ac_cv_have___builtin_clzll=no 7164fi 7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7166fi 7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzll" >&5 7168$as_echo "$ac_cv_have___builtin_clzll" >&6; } 7169 if test $ac_cv_have___builtin_clzll = yes; then 7170 7171$as_echo "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h 7172 7173 fi 7174 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5 7176$as_echo_n "checking for __builtin_ffs... " >&6; } 7177if ${ac_cv_have___builtin_ffs+:} false; then : 7178 $as_echo_n "(cached) " >&6 7179else 7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181/* end confdefs.h. */ 7182volatile int x = 11; 7183int 7184main () 7185{ 7186int y = __builtin_ffs(x); 7187 ; 7188 return 0; 7189} 7190_ACEOF 7191if ac_fn_cxx_try_compile "$LINENO"; then : 7192 ac_cv_have___builtin_ffs=yes 7193else 7194 ac_cv_have___builtin_ffs=no 7195fi 7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7197fi 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffs" >&5 7199$as_echo "$ac_cv_have___builtin_ffs" >&6; } 7200 if test $ac_cv_have___builtin_ffs = yes; then 7201 7202$as_echo "#define HAVE___BUILTIN_FFS 1" >>confdefs.h 7203 7204 fi 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsl" >&5 7206$as_echo_n "checking for __builtin_ffsl... " >&6; } 7207if ${ac_cv_have___builtin_ffsl+:} false; then : 7208 $as_echo_n "(cached) " >&6 7209else 7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211/* end confdefs.h. */ 7212volatile long x = 11; 7213int 7214main () 7215{ 7216int y = __builtin_ffsl(x); 7217 ; 7218 return 0; 7219} 7220_ACEOF 7221if ac_fn_cxx_try_compile "$LINENO"; then : 7222 ac_cv_have___builtin_ffsl=yes 7223else 7224 ac_cv_have___builtin_ffsl=no 7225fi 7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7227fi 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffsl" >&5 7229$as_echo "$ac_cv_have___builtin_ffsl" >&6; } 7230 if test $ac_cv_have___builtin_ffsl = yes; then 7231 7232$as_echo "#define HAVE___BUILTIN_FFSL 1" >>confdefs.h 7233 7234 fi 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsll" >&5 7236$as_echo_n "checking for __builtin_ffsll... " >&6; } 7237if ${ac_cv_have___builtin_ffsll+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242volatile long long x = 11; 7243int 7244main () 7245{ 7246int y = __builtin_ffsll(x); 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251if ac_fn_cxx_try_compile "$LINENO"; then : 7252 ac_cv_have___builtin_ffsll=yes 7253else 7254 ac_cv_have___builtin_ffsll=no 7255fi 7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7257fi 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ffsll" >&5 7259$as_echo "$ac_cv_have___builtin_ffsll" >&6; } 7260 if test $ac_cv_have___builtin_ffsll = yes; then 7261 7262$as_echo "#define HAVE___BUILTIN_FFSLL 1" >>confdefs.h 7263 7264 fi 7265 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_synchronize" >&5 7267$as_echo_n "checking for __sync_synchronize... " >&6; } 7268if ${ac_cv_have___sync_synchronize+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273long x = 11; 7274int 7275main () 7276{ 7277long *y = &x; __sync_synchronize(); 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_cxx_try_compile "$LINENO"; then : 7283 ac_cv_have___sync_synchronize=yes 7284else 7285 ac_cv_have___sync_synchronize=no 7286fi 7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7288fi 7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize" >&5 7290$as_echo "$ac_cv_have___sync_synchronize" >&6; } 7291 if test $ac_cv_have___sync_synchronize = yes; then 7292 7293$as_echo "#define HAVE___SYNC_SYNCHRONIZE 1" >>confdefs.h 7294 7295 fi 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __sync_synchronize supports arguments" >&5 7297$as_echo_n "checking whether __sync_synchronize supports arguments... " >&6; } 7298if ${ac_cv_have___sync_synchronize_args+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302/* end confdefs.h. */ 7303long x = 11; 7304int 7305main () 7306{ 7307long *y = &x; __sync_synchronize(*y); 7308 ; 7309 return 0; 7310} 7311_ACEOF 7312if ac_fn_cxx_try_compile "$LINENO"; then : 7313 ac_cv_have___sync_synchronize_args=yes 7314else 7315 ac_cv_have___sync_synchronize_args=no 7316fi 7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize_args" >&5 7320$as_echo "$ac_cv_have___sync_synchronize_args" >&6; } 7321 if test $ac_cv_have___sync_synchronize_args = yes; then 7322 7323$as_echo "#define HAVE___SYNC_SYNCHRONIZE_ARGUMENTS 1" >>confdefs.h 7324 7325 fi 7326 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __has_trivial_copy" >&5 7328$as_echo_n "checking for __has_trivial_copy... " >&6; } 7329if ${ac_cv_have___has_trivial_copy+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334 7335int 7336main () 7337{ 7338long x = 1; if (__has_trivial_copy(long)) x = 0; 7339 ; 7340 return 0; 7341} 7342_ACEOF 7343if ac_fn_cxx_try_compile "$LINENO"; then : 7344 ac_cv_have___has_trivial_copy=yes 7345else 7346 ac_cv_have___has_trivial_copy=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7349fi 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___has_trivial_copy" >&5 7351$as_echo "$ac_cv_have___has_trivial_copy" >&6; } 7352 if test $ac_cv_have___has_trivial_copy = yes; then 7353 7354$as_echo "#define HAVE___HAS_TRIVIAL_COPY 1" >>confdefs.h 7355 7356 fi 7357 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread storage class support" >&5 7359$as_echo_n "checking for __thread storage class support... " >&6; } 7360if ${ac_cv_have___thread+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364/* end confdefs.h. */ 7365__thread long x; 7366int 7367main () 7368{ 7369x == 1; 7370 ; 7371 return 0; 7372} 7373_ACEOF 7374if ac_fn_cxx_try_compile "$LINENO"; then : 7375 ac_cv_have___thread=yes 7376else 7377 ac_cv_have___thread=no 7378fi 7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7380fi 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___thread" >&5 7382$as_echo "$ac_cv_have___thread" >&6; } 7383 if test $ac_cv_have___thread = yes; then 7384 7385$as_echo "#define HAVE___THREAD_STORAGE_CLASS 1" >>confdefs.h 7386 7387 fi 7388 7389 7390 for ac_func in ffs ffsl ffsll 7391do : 7392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7393ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 7394if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7395 cat >>confdefs.h <<_ACEOF 7396#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7397_ACEOF 7398 7399fi 7400done 7401 7402 7403 7404 7405 7406 7407 7408 7409# The cast to long int works around a bug in the HP C Compiler 7410# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7411# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7412# This bug is HP SR number 8606223364. 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct timeval" >&5 7414$as_echo_n "checking size of struct timeval... " >&6; } 7415if ${ac_cv_sizeof_struct_timeval+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417else 7418 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (struct timeval))" "ac_cv_sizeof_struct_timeval" "$ac_includes_default"; then : 7419 7420else 7421 if test "$ac_cv_type_struct_timeval" = yes; then 7422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7424as_fn_error 77 "cannot compute sizeof (struct timeval) 7425See \`config.log' for more details" "$LINENO" 5; } 7426 else 7427 ac_cv_sizeof_struct_timeval=0 7428 fi 7429fi 7430 7431fi 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timeval" >&5 7433$as_echo "$ac_cv_sizeof_struct_timeval" >&6; } 7434 7435 7436 7437cat >>confdefs.h <<_ACEOF 7438#define SIZEOF_STRUCT_TIMEVAL $ac_cv_sizeof_struct_timeval 7439_ACEOF 7440 7441 7442ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default 7443#ifdef HAVE_TIME_H 7444# include <time.h> 7445#endif 7446" 7447if test "x$ac_cv_type_struct_timespec" = xyes; then : 7448 7449cat >>confdefs.h <<_ACEOF 7450#define HAVE_STRUCT_TIMESPEC 1 7451_ACEOF 7452 7453have_timespec=yes 7454else 7455 have_timespec=no 7456fi 7457 7458if test "x$have_timespec" = xyes; then 7459 # The cast to long int works around a bug in the HP C Compiler 7460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7462# This bug is HP SR number 8606223364. 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct timespec" >&5 7464$as_echo_n "checking size of struct timespec... " >&6; } 7465if ${ac_cv_sizeof_struct_timespec+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (struct timespec))" "ac_cv_sizeof_struct_timespec" "$ac_includes_default"; then : 7469 7470else 7471 if test "$ac_cv_type_struct_timespec" = yes; then 7472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7474as_fn_error 77 "cannot compute sizeof (struct timespec) 7475See \`config.log' for more details" "$LINENO" 5; } 7476 else 7477 ac_cv_sizeof_struct_timespec=0 7478 fi 7479fi 7480 7481fi 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timespec" >&5 7483$as_echo "$ac_cv_sizeof_struct_timespec" >&6; } 7484 7485 7486 7487cat >>confdefs.h <<_ACEOF 7488#define SIZEOF_STRUCT_TIMESPEC $ac_cv_sizeof_struct_timespec 7489_ACEOF 7490 7491 7492fi 7493 7494 have_clock_gettime=yes; POSIX_CLOCK_LIBS= 7495 ac_fn_cxx_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#ifdef HAVE_TIME_H 7496# include <time.h> 7497#endif 7498" 7499if test "x$ac_cv_have_decl_clock_gettime" = xyes; then : 7500 ac_have_decl=1 7501else 7502 ac_have_decl=0 7503fi 7504 7505cat >>confdefs.h <<_ACEOF 7506#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl 7507_ACEOF 7508 7509 SAVELIBS="$LIBS" 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 7511$as_echo_n "checking for library containing clock_gettime... " >&6; } 7512if ${ac_cv_search_clock_gettime+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 ac_func_search_save_LIBS=$LIBS 7516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517/* end confdefs.h. */ 7518 7519/* Override any GCC internal prototype to avoid an error. 7520 Use char because int might match the return type of a GCC 7521 builtin and then its argument prototype would still apply. */ 7522#ifdef __cplusplus 7523extern "C" 7524#endif 7525char clock_gettime (); 7526int 7527main () 7528{ 7529return clock_gettime (); 7530 ; 7531 return 0; 7532} 7533_ACEOF 7534for ac_lib in '' rt; do 7535 if test -z "$ac_lib"; then 7536 ac_res="none required" 7537 else 7538 ac_res=-l$ac_lib 7539 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7540 fi 7541 if ac_fn_cxx_try_link "$LINENO"; then : 7542 ac_cv_search_clock_gettime=$ac_res 7543fi 7544rm -f core conftest.err conftest.$ac_objext \ 7545 conftest$ac_exeext 7546 if ${ac_cv_search_clock_gettime+:} false; then : 7547 break 7548fi 7549done 7550if ${ac_cv_search_clock_gettime+:} false; then : 7551 7552else 7553 ac_cv_search_clock_gettime=no 7554fi 7555rm conftest.$ac_ext 7556LIBS=$ac_func_search_save_LIBS 7557fi 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 7559$as_echo "$ac_cv_search_clock_gettime" >&6; } 7560ac_res=$ac_cv_search_clock_gettime 7561if test "$ac_res" != no; then : 7562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7563 : 7564else 7565 have_clock_gettime=no 7566fi 7567 7568 if test "x$have_clock_gettime" = xyes; then 7569 POSIX_CLOCK_LIBS="$LIBS" 7570 fi 7571 7572 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 7573if test "x$ac_cv_func_clock_gettime" = xyes; then : 7574 : 7575else 7576 have_clock_gettime=no 7577fi 7578 7579 LIBS="$SAVELIBS" 7580 if test "x$have_clock_gettime" = xyes; then 7581 7582$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 7583 7584 fi 7585 7586 7587# Check whether --enable-nanotimestamp was given. 7588if test "${enable_nanotimestamp+set}" = set; then : 7589 enableval=$enable_nanotimestamp; 7590fi 7591 7592# Default to nanosecond-precision timestamps if clock_gettime is available. 7593if test "x$enable_nanotimestamp" = x -a "x$have_clock_gettime" = xyes; then 7594 enable_nanotimestamp=yes 7595fi 7596if test "x$enable_nanotimestamp" = xyes; then 7597 7598$as_echo "#define HAVE_NANOTIMESTAMP_ENABLED 1" >>confdefs.h 7599 7600fi 7601 7602 7603 7604# Check whether --enable-bound-port-transfer was given. 7605if test "${enable_bound_port_transfer+set}" = set; then : 7606 enableval=$enable_bound_port_transfer; : 7607else 7608 enable_bound_port_transfer=no 7609fi 7610 7611 7612if test "$enable_bound_port_transfer" = yes; then 7613 7614$as_echo "#define HAVE_BOUND_PORT_TRANSFER 1" >>confdefs.h 7615 7616 CXXFLAGS="$CXXFLAGS -Wno-pmf-conversions" 7617fi 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 if test x"$ac_cv_header_poll_h" = xyes; then 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <poll.h> is emulated" >&5 7640$as_echo_n "checking whether <poll.h> is emulated... " >&6; } 7641if ${ac_cv_emulated_poll_h+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646#include <poll.h> 7647#ifdef _POLL_EMUL_H_ 7648# error "error" 7649#endif 7650 7651int 7652main () 7653{ 7654 7655 ; 7656 return 0; 7657} 7658_ACEOF 7659if ac_fn_cxx_try_compile "$LINENO"; then : 7660 ac_cv_emulated_poll_h=no 7661else 7662 ac_cv_emulated_poll_h=yes 7663fi 7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7665fi 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_emulated_poll_h" >&5 7667$as_echo "$ac_cv_emulated_poll_h" >&6; } 7668 if test "x$ac_cv_emulated_poll_h" = xno; then 7669 7670$as_echo "#define HAVE_POLL_H 1" >>confdefs.h 7671 7672 fi 7673 fi 7674 7675for ac_func in pselect sigaction 7676do : 7677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7678ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 7679if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7680 cat >>confdefs.h <<_ACEOF 7681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7682_ACEOF 7683 7684fi 7685done 7686 7687 7688for ac_func in kqueue 7689do : 7690 ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 7691if test "x$ac_cv_func_kqueue" = xyes; then : 7692 cat >>confdefs.h <<_ACEOF 7693#define HAVE_KQUEUE 1 7694_ACEOF 7695 have_kqueue=yes 7696fi 7697done 7698 7699if test "x$have_kqueue" = xyes; then 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EV_SET last argument is void *" >&5 7701$as_echo_n "checking whether EV_SET last argument is void *... " >&6; } 7702if ${ac_cv_ev_set_udata_pointer+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7706/* end confdefs.h. */ 7707#include <sys/types.h> 7708#include <sys/event.h> 7709#include <sys/time.h> 7710int 7711main () 7712{ 7713struct kevent kev; EV_SET(&kev, 1, EVFILT_WRITE, EV_ADD, 0, 0, (void *) &kev); 7714 ; 7715 return 0; 7716} 7717_ACEOF 7718if ac_fn_cxx_try_compile "$LINENO"; then : 7719 ac_cv_ev_set_udata_pointer=yes 7720else 7721 ac_cv_ev_set_udata_pointer=no 7722fi 7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7724fi 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ev_set_udata_pointer" >&5 7726$as_echo "$ac_cv_ev_set_udata_pointer" >&6; } 7727 if test $ac_cv_ev_set_udata_pointer = yes; then 7728 7729$as_echo "#define HAVE_EV_SET_UDATA_POINTER 1" >>confdefs.h 7730 7731 fi 7732fi 7733 7734# Check whether --enable-dynamic-linking was given. 7735if test "${enable_dynamic_linking+set}" = set; then : 7736 enableval=$enable_dynamic_linking; : 7737else 7738 enable_dynamic_linking=yes 7739fi 7740 7741 7742if test "x$enable_dynamic_linking" = xyes; then 7743 7744 7745 7746 DL_LIBS= 7747 7748 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 7749if test "x$ac_cv_func_dlopen" = xyes; then : 7750 ac_have_dlopen=yes 7751else 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7753$as_echo_n "checking for dlopen in -ldl... " >&6; } 7754if ${ac_cv_lib_dl_dlopen+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 ac_check_lib_save_LIBS=$LIBS 7758LIBS="-ldl $LIBS" 7759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761 7762/* Override any GCC internal prototype to avoid an error. 7763 Use char because int might match the return type of a GCC 7764 builtin and then its argument prototype would still apply. */ 7765#ifdef __cplusplus 7766extern "C" 7767#endif 7768char dlopen (); 7769int 7770main () 7771{ 7772return dlopen (); 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777if ac_fn_cxx_try_link "$LINENO"; then : 7778 ac_cv_lib_dl_dlopen=yes 7779else 7780 ac_cv_lib_dl_dlopen=no 7781fi 7782rm -f core conftest.err conftest.$ac_objext \ 7783 conftest$ac_exeext conftest.$ac_ext 7784LIBS=$ac_check_lib_save_LIBS 7785fi 7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7787$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7788if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7789 ac_have_dlopen=yes; DL_LIBS="-ldl" 7790else 7791 ac_have_dlopen=no 7792fi 7793 7794fi 7795 7796 if test "x$ac_have_dlopen" = xyes -a "x$ac_cv_header_dlfcn_h" = xyes; then 7797 7798$as_echo "#define HAVE_DYNAMIC_LINKING 1" >>confdefs.h 7799 7800 ac_have_dynamic_linking=yes 7801 fi 7802 7803 7804 DL_LDFLAGS= 7805 save_ldflags="$LDFLAGS"; LDFLAGS="$LDFLAGS -rdynamic" 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts the -rdynamic flag" >&5 7807$as_echo_n "checking whether linker accepts the -rdynamic flag... " >&6; } 7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810 7811int 7812main () 7813{ 7814return 0; 7815 ; 7816 return 0; 7817} 7818_ACEOF 7819if ac_fn_cxx_try_link "$LINENO"; then : 7820 ac_cv_rdynamic=yes; DL_LDFLAGS=-rdynamic 7821else 7822 ac_cv_rdynamic=no 7823fi 7824rm -f core conftest.err conftest.$ac_objext \ 7825 conftest$ac_exeext conftest.$ac_ext 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5 7827$as_echo "$ac_cv_rdynamic" >&6; } 7828 LDFLAGS="$save_ldflags" 7829 7830 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for building loadable modules" >&5 7832$as_echo_n "checking compiler flags for building loadable modules... " >&6; } 7833 LDMODULEFLAGS=-shared 7834 SOSUFFIX=so 7835 if test "x$ac_have_dynamic_linking" = xyes; then 7836 if echo "$ac_cv_target" | grep apple-darwin >/dev/null 2>&1; then 7837 LDMODULEFLAGS='-dynamiclib -flat_namespace -undefined suppress' 7838 SOSUFFIX=dylib 7839 fi 7840 fi 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDMODULEFLAGS" >&5 7842$as_echo "$LDMODULEFLAGS" >&6; } 7843 7844 7845 7846fi 7847 7848 7849 7850ac_ext=c 7851ac_cpp='$CPP $CPPFLAGS' 7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7854ac_compiler_gnu=$ac_cv_c_compiler_gnu 7855 7856SOCKET_LIBS= 7857 savelibs="$LIBS"; LIBS= 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 7859$as_echo_n "checking for library containing gethostbyname... " >&6; } 7860if ${ac_cv_search_gethostbyname+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 ac_func_search_save_LIBS=$LIBS 7864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7865/* end confdefs.h. */ 7866 7867/* Override any GCC internal prototype to avoid an error. 7868 Use char because int might match the return type of a GCC 7869 builtin and then its argument prototype would still apply. */ 7870#ifdef __cplusplus 7871extern "C" 7872#endif 7873char gethostbyname (); 7874int 7875main () 7876{ 7877return gethostbyname (); 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882for ac_lib in '' nsl; do 7883 if test -z "$ac_lib"; then 7884 ac_res="none required" 7885 else 7886 ac_res=-l$ac_lib 7887 LIBS="-l$ac_lib $savelibs $ac_func_search_save_LIBS" 7888 fi 7889 if ac_fn_c_try_link "$LINENO"; then : 7890 ac_cv_search_gethostbyname=$ac_res 7891fi 7892rm -f core conftest.err conftest.$ac_objext \ 7893 conftest$ac_exeext 7894 if ${ac_cv_search_gethostbyname+:} false; then : 7895 break 7896fi 7897done 7898if ${ac_cv_search_gethostbyname+:} false; then : 7899 7900else 7901 ac_cv_search_gethostbyname=no 7902fi 7903rm conftest.$ac_ext 7904LIBS=$ac_func_search_save_LIBS 7905fi 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 7907$as_echo "$ac_cv_search_gethostbyname" >&6; } 7908ac_res=$ac_cv_search_gethostbyname 7909if test "$ac_res" != no; then : 7910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7911 7912fi 7913 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 7915$as_echo_n "checking for library containing connect... " >&6; } 7916if ${ac_cv_search_connect+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 ac_func_search_save_LIBS=$LIBS 7920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7921/* end confdefs.h. */ 7922 7923/* Override any GCC internal prototype to avoid an error. 7924 Use char because int might match the return type of a GCC 7925 builtin and then its argument prototype would still apply. */ 7926#ifdef __cplusplus 7927extern "C" 7928#endif 7929char connect (); 7930int 7931main () 7932{ 7933return connect (); 7934 ; 7935 return 0; 7936} 7937_ACEOF 7938for ac_lib in '' socket; do 7939 if test -z "$ac_lib"; then 7940 ac_res="none required" 7941 else 7942 ac_res=-l$ac_lib 7943 LIBS="-l$ac_lib $savelibs $ac_func_search_save_LIBS" 7944 fi 7945 if ac_fn_c_try_link "$LINENO"; then : 7946 ac_cv_search_connect=$ac_res 7947fi 7948rm -f core conftest.err conftest.$ac_objext \ 7949 conftest$ac_exeext 7950 if ${ac_cv_search_connect+:} false; then : 7951 break 7952fi 7953done 7954if ${ac_cv_search_connect+:} false; then : 7955 7956else 7957 ac_cv_search_connect=no 7958fi 7959rm conftest.$ac_ext 7960LIBS=$ac_func_search_save_LIBS 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 7963$as_echo "$ac_cv_search_connect" >&6; } 7964ac_res=$ac_cv_search_connect 7965if test "$ac_res" != no; then : 7966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7967 7968fi 7969 7970 SOCKET_LIBS="$LIBS"; LIBS="$savelibs" 7971 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether accept() uses socklen_t" >&5 7973$as_echo_n "checking whether accept() uses socklen_t... " >&6; } 7974if ${ac_cv_accept_socklen_t+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979#include <sys/types.h> 7980#include <sys/socket.h> 7981 7982int 7983main () 7984{ 7985socklen_t sl; (void) accept(0, (struct sockaddr *) 0, &sl); 7986 ; 7987 return 0; 7988} 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO"; then : 7991 ac_cv_accept_socklen_t=yes 7992else 7993 ac_cv_accept_socklen_t=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7996fi 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept_socklen_t" >&5 7998$as_echo "$ac_cv_accept_socklen_t" >&6; } 7999 if test "$ac_cv_accept_socklen_t" = yes; then 8000 8001$as_echo "#define HAVE_ACCEPT_SOCKLEN_T 1" >>confdefs.h 8002 8003 fi 8004 8005ac_ext=cpp 8006ac_cpp='$CXXCPP $CPPFLAGS' 8007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8010 8011 8012 8013 8014 8015 ac_ext=c 8016ac_cpp='$CPP $CPPFLAGS' 8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8019ac_compiler_gnu=$ac_cv_c_compiler_gnu 8020 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file support in C library" >&5 8022$as_echo_n "checking for large file support in C library... " >&6; } 8023if ${ac_cv_large_file_support+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8027/* end confdefs.h. */ 8028#define _LARGEFILE_SOURCE 1 8029#define _FILE_OFFSET_BITS 64 8030#include <unistd.h> 8031#include <sys/types.h> 8032#include <sys/stat.h> 8033#include <fcntl.h> 8034void h(off_t a) { 8035 int fd = open("/tmp/whatever", 0); 8036 lseek(fd, a, 0); 8037} 8038int 8039main () 8040{ 8041h(15); 8042 ; 8043 return 0; 8044} 8045_ACEOF 8046if ac_fn_c_try_compile "$LINENO"; then : 8047 ac_cv_large_file_support=yes 8048else 8049 ac_cv_large_file_support=no 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_large_file_support" >&5 8054$as_echo "$ac_cv_large_file_support" >&6; } 8055 if test "x$ac_cv_large_file_support" = xyes; then 8056 8057$as_echo "#define HAVE_LARGE_FILE_SUPPORT 1" >>confdefs.h 8058 8059 fi 8060 8061 # The cast to long int works around a bug in the HP C Compiler 8062# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8063# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8064# This bug is HP SR number 8606223364. 8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 8066$as_echo_n "checking size of off_t... " >&6; } 8067if ${ac_cv_sizeof_off_t+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "#if HAVE_LARGE_FILE_SUPPORT && HAVE_INT64_TYPES 8071# define _LARGEFILE_SOURCE 1 8072# define _FILE_OFFSET_BITS 64 8073#endif 8074#include <stdio.h> 8075#include <sys/types.h> 8076"; then : 8077 8078else 8079 if test "$ac_cv_type_off_t" = yes; then 8080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8082as_fn_error 77 "cannot compute sizeof (off_t) 8083See \`config.log' for more details" "$LINENO" 5; } 8084 else 8085 ac_cv_sizeof_off_t=0 8086 fi 8087fi 8088 8089fi 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 8091$as_echo "$ac_cv_sizeof_off_t" >&6; } 8092 8093 8094 8095cat >>confdefs.h <<_ACEOF 8096#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8097_ACEOF 8098 8099 8100 8101 8102 8103 8104ac_ext=c 8105ac_cpp='$CPP $CPPFLAGS' 8106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8108ac_compiler_gnu=$ac_cv_c_compiler_gnu 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118for ac_func in getpagesize 8119do : 8120 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 8121if test "x$ac_cv_func_getpagesize" = xyes; then : 8122 cat >>confdefs.h <<_ACEOF 8123#define HAVE_GETPAGESIZE 1 8124_ACEOF 8125 8126fi 8127done 8128 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 8130$as_echo_n "checking for working mmap... " >&6; } 8131if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133else 8134 if test "$cross_compiling" = yes; then : 8135 ac_cv_func_mmap_fixed_mapped=no 8136else 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139$ac_includes_default 8140/* malloc might have been renamed as rpl_malloc. */ 8141#undef malloc 8142 8143/* Thanks to Mike Haertel and Jim Avera for this test. 8144 Here is a matrix of mmap possibilities: 8145 mmap private not fixed 8146 mmap private fixed at somewhere currently unmapped 8147 mmap private fixed at somewhere already mapped 8148 mmap shared not fixed 8149 mmap shared fixed at somewhere currently unmapped 8150 mmap shared fixed at somewhere already mapped 8151 For private mappings, we should verify that changes cannot be read() 8152 back from the file, nor mmap's back from the file at a different 8153 address. (There have been systems where private was not correctly 8154 implemented like the infamous i386 svr4.0, and systems where the 8155 VM page cache was not coherent with the file system buffer cache 8156 like early versions of FreeBSD and possibly contemporary NetBSD.) 8157 For shared mappings, we should conversely verify that changes get 8158 propagated back to all the places they're supposed to be. 8159 8160 Grep wants private fixed already mapped. 8161 The main things grep needs to know about mmap are: 8162 * does it exist and is it safe to write into the mmap'd area 8163 * how to use it (BSD variants) */ 8164 8165#include <fcntl.h> 8166#include <sys/mman.h> 8167 8168#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 8169char *malloc (); 8170#endif 8171 8172/* This mess was copied from the GNU getpagesize.h. */ 8173#ifndef HAVE_GETPAGESIZE 8174# ifdef _SC_PAGESIZE 8175# define getpagesize() sysconf(_SC_PAGESIZE) 8176# else /* no _SC_PAGESIZE */ 8177# ifdef HAVE_SYS_PARAM_H 8178# include <sys/param.h> 8179# ifdef EXEC_PAGESIZE 8180# define getpagesize() EXEC_PAGESIZE 8181# else /* no EXEC_PAGESIZE */ 8182# ifdef NBPG 8183# define getpagesize() NBPG * CLSIZE 8184# ifndef CLSIZE 8185# define CLSIZE 1 8186# endif /* no CLSIZE */ 8187# else /* no NBPG */ 8188# ifdef NBPC 8189# define getpagesize() NBPC 8190# else /* no NBPC */ 8191# ifdef PAGESIZE 8192# define getpagesize() PAGESIZE 8193# endif /* PAGESIZE */ 8194# endif /* no NBPC */ 8195# endif /* no NBPG */ 8196# endif /* no EXEC_PAGESIZE */ 8197# else /* no HAVE_SYS_PARAM_H */ 8198# define getpagesize() 8192 /* punt totally */ 8199# endif /* no HAVE_SYS_PARAM_H */ 8200# endif /* no _SC_PAGESIZE */ 8201 8202#endif /* no HAVE_GETPAGESIZE */ 8203 8204int 8205main () 8206{ 8207 char *data, *data2, *data3; 8208 const char *cdata2; 8209 int i, pagesize; 8210 int fd, fd2; 8211 8212 pagesize = getpagesize (); 8213 8214 /* First, make a file with some known garbage in it. */ 8215 data = (char *) malloc (pagesize); 8216 if (!data) 8217 return 1; 8218 for (i = 0; i < pagesize; ++i) 8219 *(data + i) = rand (); 8220 umask (0); 8221 fd = creat ("conftest.mmap", 0600); 8222 if (fd < 0) 8223 return 2; 8224 if (write (fd, data, pagesize) != pagesize) 8225 return 3; 8226 close (fd); 8227 8228 /* Next, check that the tail of a page is zero-filled. File must have 8229 non-zero length, otherwise we risk SIGBUS for entire page. */ 8230 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 8231 if (fd2 < 0) 8232 return 4; 8233 cdata2 = ""; 8234 if (write (fd2, cdata2, 1) != 1) 8235 return 5; 8236 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 8237 if (data2 == MAP_FAILED) 8238 return 6; 8239 for (i = 0; i < pagesize; ++i) 8240 if (*(data2 + i)) 8241 return 7; 8242 close (fd2); 8243 if (munmap (data2, pagesize)) 8244 return 8; 8245 8246 /* Next, try to mmap the file at a fixed address which already has 8247 something else allocated at it. If we can, also make sure that 8248 we see the same garbage. */ 8249 fd = open ("conftest.mmap", O_RDWR); 8250 if (fd < 0) 8251 return 9; 8252 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8253 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8254 return 10; 8255 for (i = 0; i < pagesize; ++i) 8256 if (*(data + i) != *(data2 + i)) 8257 return 11; 8258 8259 /* Finally, make sure that changes to the mapped area do not 8260 percolate back to the file as seen by read(). (This is a bug on 8261 some variants of i386 svr4.0.) */ 8262 for (i = 0; i < pagesize; ++i) 8263 *(data2 + i) = *(data2 + i) + 1; 8264 data3 = (char *) malloc (pagesize); 8265 if (!data3) 8266 return 12; 8267 if (read (fd, data3, pagesize) != pagesize) 8268 return 13; 8269 for (i = 0; i < pagesize; ++i) 8270 if (*(data + i) != *(data3 + i)) 8271 return 14; 8272 close (fd); 8273 return 0; 8274} 8275_ACEOF 8276if ac_fn_c_try_run "$LINENO"; then : 8277 ac_cv_func_mmap_fixed_mapped=yes 8278else 8279 ac_cv_func_mmap_fixed_mapped=no 8280fi 8281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8282 conftest.$ac_objext conftest.beam conftest.$ac_ext 8283fi 8284 8285fi 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 8287$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 8288if test $ac_cv_func_mmap_fixed_mapped = yes; then 8289 8290$as_echo "#define HAVE_MMAP 1" >>confdefs.h 8291 8292fi 8293rm -f conftest.mmap conftest.txt 8294 8295ac_ext=cpp 8296ac_cpp='$CXXCPP $CPPFLAGS' 8297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8300 8301for ac_func in madvise 8302do : 8303 ac_fn_cxx_check_func "$LINENO" "madvise" "ac_cv_func_madvise" 8304if test "x$ac_cv_func_madvise" = xyes; then : 8305 cat >>confdefs.h <<_ACEOF 8306#define HAVE_MADVISE 1 8307_ACEOF 8308 8309fi 8310done 8311 8312ac_fn_cxx_check_decl "$LINENO" "madvise" "ac_cv_have_decl_madvise" "#if HAVE_SYS_MMAN_H 8313#include <sys/types.h> 8314#include <sys/mman.h> 8315#endif 8316" 8317if test "x$ac_cv_have_decl_madvise" = xyes; then : 8318 ac_have_decl=1 8319else 8320 ac_have_decl=0 8321fi 8322 8323cat >>confdefs.h <<_ACEOF 8324#define HAVE_DECL_MADVISE $ac_have_decl 8325_ACEOF 8326 8327 8328 8329 8330EXTRA_DRIVER_OBJS= 8331EXTRA_TOOL_OBJS= 8332if test "x$enable_ip6" = xyes; then 8333 EXTRA_DRIVER_OBJS="ip6address.o ip6flowid.o ip6table.o $EXTRA_DRIVER_OBJS" 8334 EXTRA_TOOL_OBJS="ip6address.o $EXTRA_TOOL_OBJS" 8335fi 8336 8337 8338 8339 8340 8341 8342# Check whether --enable-stats was given. 8343if test "${enable_stats+set}" = set; then : 8344 enableval=$enable_stats; : 8345else 8346 enable_stats=no 8347fi 8348 8349if test "$enable_stats" = no; then enable_stats=0; fi 8350if test "$enable_stats" = yes; then enable_stats=1; fi 8351if test "$enable_stats" -ge 0 > /dev/null 2>&1; then 8352 cat >>confdefs.h <<_ACEOF 8353#define CLICK_STATS $enable_stats 8354_ACEOF 8355 8356else 8357 as_fn_error $? " 8358========================================= 8359 8360--enable-stats takes an integer, \"yes\", or \"no\". 8361 8362=========================================" "$LINENO" 5 8363fi 8364 8365 8366# Check whether --enable-stride was given. 8367if test "${enable_stride+set}" = set; then : 8368 enableval=$enable_stride; : 8369else 8370 enable_stride=yes 8371fi 8372 8373if test $enable_stride = yes; then 8374 $as_echo "#define HAVE_STRIDE_SCHED 1" >>confdefs.h 8375 8376fi 8377 8378# Check whether --enable-task-heap was given. 8379if test "${enable_task_heap+set}" = set; then : 8380 enableval=$enable_task_heap; : 8381else 8382 enable_task_heap=no 8383fi 8384 8385if test $enable_task_heap = yes -a $enable_stride = yes; then 8386 $as_echo "#define HAVE_TASK_HEAP 1" >>confdefs.h 8387 8388elif test $enable_task_heap = yes; then 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8390========================================= 8391 8392Ignoring --enable-task-heap, which is incompatible with --disable-stride. 8393 8394=========================================" >&5 8395$as_echo "$as_me: WARNING: 8396========================================= 8397 8398Ignoring --enable-task-heap, which is incompatible with --disable-stride. 8399 8400=========================================" >&2;} 8401fi 8402 8403 8404 8405# Check whether --enable-dmalloc was given. 8406if test "${enable_dmalloc+set}" = set; then : 8407 enableval=$enable_dmalloc; : 8408else 8409 enable_dmalloc=no 8410fi 8411 8412if test $enable_dmalloc = yes; then 8413 8414$as_echo "#define CLICK_DMALLOC 1" >>confdefs.h 8415 8416fi 8417 8418 8419 8420# Check whether --enable-valgrind was given. 8421if test "${enable_valgrind+set}" = set; then : 8422 enableval=$enable_valgrind; : 8423else 8424 enable_valgrind=no 8425fi 8426 8427if test $enable_valgrind = yes; then 8428 for ac_header in valgrind/memcheck.h 8429do : 8430 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" 8431if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : 8432 cat >>confdefs.h <<_ACEOF 8433#define HAVE_VALGRIND_MEMCHECK_H 1 8434_ACEOF 8435 ac_found_valgrind_memcheck_h=yes 8436else 8437 ac_found_valgrind_memcheck_h=no 8438fi 8439 8440done 8441 8442 if test $ac_found_valgrind_memcheck_h = no; then 8443 as_fn_error $? " 8444========================================= 8445 8446Can't find Valgrind header file 'valgrind/memcheck.h'. 8447Try again without '--enable-valgrind'. 8448 8449=========================================" "$LINENO" 5 8450 fi 8451 8452$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h 8453 8454fi 8455 8456 8457 8458# Check whether --enable-schedule-debugging was given. 8459if test "${enable_schedule_debugging+set}" = set; then : 8460 enableval=$enable_schedule_debugging; : 8461else 8462 enable_schedule_debugging=no 8463fi 8464 8465value=0 8466if test "$enable_schedule_debugging" = yes; then 8467 value=1 8468elif test "$enable_schedule_debugging" = extra; then 8469 value=2 8470fi 8471if test "$value" != 0; then 8472 8473cat >>confdefs.h <<_ACEOF 8474#define CLICK_DEBUG_SCHEDULING $value 8475_ACEOF 8476 8477fi 8478 8479 8480 8481# Check whether --enable-intel-cpu was given. 8482if test "${enable_intel_cpu+set}" = set; then : 8483 enableval=$enable_intel_cpu; : 8484else 8485 enable_intel_cpu=no 8486fi 8487 8488if test $enable_intel_cpu = yes; then 8489 $as_echo "#define HAVE_INTEL_CPU 1" >>confdefs.h 8490 8491fi 8492 8493 8494 8495shell_expand () { 8496 val=`eval echo '$'"$1"` 8497 while echo "x$val" | grep '\$' >/dev/null 2>&1; do val=`eval echo "$val"`; done 8498 val=`echo "$val" | sed 's,//*,/,g'` 8499 eval "$1='$val'" 8500} 8501 8502shell_mkbuild () { 8503 val=`eval echo '$'"$1"` 8504 pval="$prefix" 8505 while test -n "$pval" -a -n "$val"; do 8506 component=`echo "$val" | sed 's,^\(/[^/]*\).*,\1,'` 8507 pcomponent=`echo "$pval" | sed 's,^\(/[^/]*\).*,\1,'` 8508 if test "$component" != "$pcomponent"; then break; fi 8509 val=`echo "$val" | sed 's,^/[^/]*,,'` 8510 pval=`echo "$pval" | sed 's,^/[^/]*,,'` 8511 done 8512 while test -n "$pval"; do 8513 val="/..$val" 8514 pval=`echo "$pval" | sed 's,^/[^/]*,,'` 8515 done 8516 eval "clickbuild_$1='"'$'"{clickbuild_prefix}$val'" 8517} 8518 8519test "x$prefix" = xNONE && prefix=$ac_default_prefix 8520test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8521 8522clickdatadir="$datadir/click" 8523 8524for i in bin clickdata data dataroot include lib sbin; do 8525 shell_expand ${i}dir 8526 shell_mkbuild ${i}dir 8527done 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 HAVE_PCAP=yes 8555 if test "${PCAP_INCLUDES-NO}" = NO; then 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5 8557$as_echo_n "checking for pcap.h... " >&6; } 8558if ${ac_cv_pcap_header_path+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560else 8561 8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8563/* end confdefs.h. */ 8564#include <pcap.h> 8565_ACEOF 8566if ac_fn_cxx_try_cpp "$LINENO"; then : 8567 ac_cv_pcap_header_path="found" 8568else 8569 ac_cv_pcap_header_path='not found' 8570 test -r /usr/local/include/pcap/pcap.h && \ 8571 ac_cv_pcap_header_path='-I/usr/local/include/pcap' 8572 test -r /usr/include/pcap/pcap.h && \ 8573 ac_cv_pcap_header_path='-I/usr/include/pcap' 8574fi 8575rm -f conftest.err conftest.i conftest.$ac_ext 8576fi 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_header_path" >&5 8578$as_echo "$ac_cv_pcap_header_path" >&6; } 8579 if test "$ac_cv_pcap_header_path" = 'not found'; then 8580 HAVE_PCAP= 8581 elif test "$ac_cv_pcap_header_path" != 'found'; then 8582 PCAP_INCLUDES="$ac_cv_pcap_header_path" 8583 fi 8584 fi 8585 8586 if test "$HAVE_PCAP" = yes; then 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap.h works" >&5 8588$as_echo_n "checking whether pcap.h works... " >&6; } 8589if ${ac_cv_working_pcap_h+:} false; then : 8590 $as_echo_n "(cached) " >&6 8591else 8592 8593 saveflags="$CPPFLAGS" 8594 CPPFLAGS="$saveflags $PCAP_INCLUDES" 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597#include <pcap.h> 8598_ACEOF 8599if ac_fn_cxx_try_cpp "$LINENO"; then : 8600 ac_cv_working_pcap_h=yes 8601else 8602 ac_cv_working_pcap_h=no 8603fi 8604rm -f conftest.err conftest.i conftest.$ac_ext 8605 CPPFLAGS="$saveflags" 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_pcap_h" >&5 8608$as_echo "$ac_cv_working_pcap_h" >&6; } 8609 test "$ac_cv_working_pcap_h" != yes && HAVE_PCAP= 8610 fi 8611 8612 if test "$HAVE_PCAP" = yes; then 8613 saveflags="$CPPFLAGS" 8614 CPPFLAGS="$saveflags $PCAP_INCLUDES" 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bpf_timeval in pcap.h" >&5 8616$as_echo_n "checking for bpf_timeval in pcap.h... " >&6; } 8617if ${ac_cv_bpf_timeval+:} false; then : 8618 $as_echo_n "(cached) " >&6 8619else 8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621/* end confdefs.h. */ 8622#include <pcap.h> 8623 8624_ACEOF 8625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8626 $EGREP "bpf_timeval" >/dev/null 2>&1; then : 8627 ac_cv_bpf_timeval=yes 8628else 8629 ac_cv_bpf_timeval=no 8630fi 8631rm -f conftest* 8632 8633fi 8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_bpf_timeval" >&5 8635$as_echo "$ac_cv_bpf_timeval" >&6; } 8636 if test "$ac_cv_bpf_timeval" = yes; then 8637 8638$as_echo "#define HAVE_BPF_TIMEVAL 1" >>confdefs.h 8639 8640 fi 8641 ac_fn_cxx_check_decl "$LINENO" "pcap_setnonblock" "ac_cv_have_decl_pcap_setnonblock" "#include <pcap.h> 8642" 8643if test "x$ac_cv_have_decl_pcap_setnonblock" = xyes; then : 8644 ac_have_decl=1 8645else 8646 ac_have_decl=0 8647fi 8648 8649cat >>confdefs.h <<_ACEOF 8650#define HAVE_DECL_PCAP_SETNONBLOCK $ac_have_decl 8651_ACEOF 8652 8653 CPPFLAGS="$saveflags" 8654 fi 8655 8656 test "$HAVE_PCAP" != yes && PCAP_INCLUDES= 8657 8658 8659 8660 8661 if test "$HAVE_PCAP" = yes; then 8662 if test "${PCAP_LIBS-NO}" = NO; then 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpcap" >&5 8664$as_echo_n "checking for -lpcap... " >&6; } 8665if ${ac_cv_pcap_library_path+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 8669 saveflags="$LDFLAGS" 8670 savelibs="$LIBS" 8671 LIBS="$savelibs -lpcap $SOCKET_LIBS" 8672 ac_ext=c 8673ac_cpp='$CPP $CPPFLAGS' 8674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8676ac_compiler_gnu=$ac_cv_c_compiler_gnu 8677 8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8679/* end confdefs.h. */ 8680 8681/* Override any GCC internal prototype to avoid an error. 8682 Use char because int might match the return type of a GCC 8683 builtin and then its argument prototype would still apply. */ 8684#ifdef __cplusplus 8685extern "C" 8686#endif 8687char pcap_open_live (); 8688int 8689main () 8690{ 8691return pcap_open_live (); 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696if ac_fn_c_try_link "$LINENO"; then : 8697 ac_cv_pcap_library_path="found" 8698else 8699 LDFLAGS="$saveflags -L/usr/local/lib" 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702 8703/* Override any GCC internal prototype to avoid an error. 8704 Use char because int might match the return type of a GCC 8705 builtin and then its argument prototype would still apply. */ 8706#ifdef __cplusplus 8707extern "C" 8708#endif 8709char pcap_open_live (); 8710int 8711main () 8712{ 8713return pcap_open_live (); 8714 ; 8715 return 0; 8716} 8717_ACEOF 8718if ac_fn_c_try_link "$LINENO"; then : 8719 ac_cv_pcap_library_path="-L/usr/local/lib" 8720else 8721 ac_cv_pcap_library_path="not found" 8722fi 8723rm -f core conftest.err conftest.$ac_objext \ 8724 conftest$ac_exeext conftest.$ac_ext 8725fi 8726rm -f core conftest.err conftest.$ac_objext \ 8727 conftest$ac_exeext conftest.$ac_ext 8728 LDFLAGS="$saveflags" 8729 LIBS="$savelibs" 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_library_path" >&5 8732$as_echo "$ac_cv_pcap_library_path" >&6; } 8733 else 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpcap in \"$PCAP_LIBS\"" >&5 8735$as_echo_n "checking for -lpcap in \"$PCAP_LIBS\"... " >&6; } 8736if ${ac_cv_pcap_library_path+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 8740 saveflags="$LDFLAGS" 8741 LDFLAGS="$saveflags $PCAP_LIBS" 8742 savelibs="$LIBS" 8743 LIBS="$savelibs -lpcap $SOCKET_LIBS" 8744 ac_ext=c 8745ac_cpp='$CPP $CPPFLAGS' 8746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8748ac_compiler_gnu=$ac_cv_c_compiler_gnu 8749 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752 8753/* Override any GCC internal prototype to avoid an error. 8754 Use char because int might match the return type of a GCC 8755 builtin and then its argument prototype would still apply. */ 8756#ifdef __cplusplus 8757extern "C" 8758#endif 8759char pcap_open_live (); 8760int 8761main () 8762{ 8763return pcap_open_live (); 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768if ac_fn_c_try_link "$LINENO"; then : 8769 ac_cv_pcap_library_path="$PCAP_LIBS" 8770else 8771 ac_cv_pcap_library_path="not found" 8772fi 8773rm -f core conftest.err conftest.$ac_objext \ 8774 conftest$ac_exeext conftest.$ac_ext 8775 LDFLAGS="$saveflags" 8776 LIBS="$savelibs" 8777fi 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcap_library_path" >&5 8779$as_echo "$ac_cv_pcap_library_path" >&6; } 8780 fi 8781 if test "$ac_cv_pcap_library_path" = "found"; then 8782 PCAP_LIBS='-lpcap' 8783 elif test "$ac_cv_pcap_library_path" != "not found"; then 8784 PCAP_LIBS="$ac_cv_pcap_library_path -lpcap" 8785 else 8786 HAVE_PCAP= 8787 fi 8788 fi 8789 8790 test "$HAVE_PCAP" != yes && PCAP_LIBS= 8791 8792 8793 if test "$HAVE_PCAP" = yes; then 8794 8795$as_echo "#define HAVE_PCAP 1" >>confdefs.h 8796 8797 8798 savelibs="$LIBS" 8799 LIBS="$savelibs $PCAP_LIBS" 8800 for ac_func in pcap_inject pcap_sendpacket pcap_setdirection pcap_setnonblock pcap_set_immediate_mode 8801do : 8802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8803ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8804if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8805 cat >>confdefs.h <<_ACEOF 8806#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8807_ACEOF 8808 8809fi 8810done 8811 8812 LIBS="$savelibs" 8813 fi 8814 8815 8816 8817# Check whether --with-netmap was given. 8818if test "${with_netmap+set}" = set; then : 8819 withval=$with_netmap; use_netmap=$withval 8820else 8821 use_netmap=no 8822fi 8823 8824 8825 if test "$use_netmap" != "yes" -a "$use_netmap" != "no"; then 8826 if test "${NETMAP_INCLUDES-NO}" != NO; then 8827 : 8828 elif test -f "$use_netmap/net/netmap.h"; then 8829 NETMAP_INCLUDES="-I$use_netmap" 8830 elif test -f "$use_netmap/include/net/netmap.h"; then 8831 NETMAP_INCLUDES="-I$use_netmap/include" 8832 fi 8833 fi 8834 saveflags="$CPPFLAGS" 8835 CPPFLAGS="$saveflags $NETMAP_INCLUDES" 8836 8837 HAVE_NETMAP=no 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net/netmap.h" >&5 8839$as_echo_n "checking for net/netmap.h... " >&6; } 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842#include <net/netmap.h> 8843_ACEOF 8844if ac_fn_c_try_cpp "$LINENO"; then : 8845 ac_cv_net_netmap_header_path="found" 8846else 8847 ac_cv_net_netmap_header_path="not found" 8848fi 8849rm -f conftest.err conftest.i conftest.$ac_ext 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_header_path" >&5 8851$as_echo "$ac_cv_net_netmap_header_path" >&6; } 8852 8853 if test "$ac_cv_net_netmap_header_path" = "found"; then 8854 HAVE_NETMAP=yes 8855 fi 8856 8857 if test "$HAVE_NETMAP" = yes; then 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/netmap.h works" >&5 8859$as_echo_n "checking whether net/netmap.h works... " >&6; } 8860if ${ac_cv_working_net_netmap_h+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866#include <net/netmap.h> 8867_ACEOF 8868if ac_fn_c_try_cpp "$LINENO"; then : 8869 ac_cv_working_net_netmap_h=yes 8870else 8871 ac_cv_working_net_netmap_h=no 8872fi 8873rm -f conftest.err conftest.i conftest.$ac_ext 8874fi 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_net_netmap_h" >&5 8876$as_echo "$ac_cv_working_net_netmap_h" >&6; } 8877 test "$ac_cv_working_net_netmap_h" != yes && HAVE_NETMAP= 8878 fi 8879 8880 CPPFLAGS="$saveflags" 8881 if test "$HAVE_NETMAP" = yes -a "$use_netmap" != no; then 8882 8883$as_echo "#define HAVE_NET_NETMAP_H 1" >>confdefs.h 8884 8885 fi 8886 8887 8888 if test "$HAVE_PCAP" != yes -a "$HAVE_NETMAP" != yes -a "$ac_cv_under_linux" != yes; then 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8890========================================= 8891 8892pcap.h and/or -lpcap not found; user-level driver can't steal packets. 8893 8894=========================================" >&5 8895$as_echo "$as_me: WARNING: 8896========================================= 8897 8898pcap.h and/or -lpcap not found; user-level driver can't steal packets. 8899 8900=========================================" >&2;} 8901 fi 8902 DRIVERS="$DRIVERS userlevel" 8903 $as_echo "#define HAVE_USERLEVEL_DRIVER 1" >>confdefs.h 8904 8905 HAVE_USERLEVEL_DRIVER=1 8906 8907 8908 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct if_data has ifi_datalen" >&5 8910$as_echo_n "checking whether struct if_data has ifi_datalen... " >&6; } 8911if ${ac_cv_if_data_ifi_datalen+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915/* end confdefs.h. */ 8916#include <net/if.h> 8917#include <net/if_var.h> 8918 8919int 8920main () 8921{ 8922struct if_msghdr ifm; ifm.ifm_data.ifi_datalen = 0; 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927if ac_fn_c_try_compile "$LINENO"; then : 8928 ac_cv_if_data_ifi_datalen=yes 8929else 8930 ac_cv_if_data_ifi_datalen=no 8931fi 8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8933fi 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_if_data_ifi_datalen" >&5 8935$as_echo "$ac_cv_if_data_ifi_datalen" >&6; } 8936if test "x$ac_cv_if_data_ifi_datalen" = xyes; then 8937 8938$as_echo "#define HAVE_IF_DATA_IFI_DATALEN 1" >>confdefs.h 8939 8940fi 8941 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in has sin_len" >&5 8943$as_echo_n "checking whether struct sockaddr_in has sin_len... " >&6; } 8944if ${ac_cv_sockaddr_in_sin_len+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948/* end confdefs.h. */ 8949#include <sys/socket.h> 8950#include <netinet/in.h> 8951 8952int 8953main () 8954{ 8955struct sockaddr_in sin; sin.sin_len = 0; 8956 ; 8957 return 0; 8958} 8959_ACEOF 8960if ac_fn_c_try_compile "$LINENO"; then : 8961 ac_cv_sockaddr_in_sin_len=yes 8962else 8963 ac_cv_sockaddr_in_sin_len=no 8964fi 8965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_in_sin_len" >&5 8968$as_echo "$ac_cv_sockaddr_in_sin_len" >&6; } 8969if test "x$ac_cv_sockaddr_in_sin_len" = xyes; then 8970 8971$as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h 8972 8973fi 8974 8975 8976 8977explicit_proper=yes 8978 8979# Check whether --with-proper was given. 8980if test "${with_proper+set}" = set; then : 8981 withval=$with_proper; properprefix=$withval; if test -z "$withval" -o "$withval" = yes; then properprefix=; fi 8982else 8983 properprefix=no; explicit_proper=no 8984fi 8985 8986if test "$properprefix" != no; then 8987 8988 saveflags="$CPPFLAGS"; test -n "$properprefix" && CPPFLAGS="$CPPFLAGS -I$properprefix/include" 8989 ac_fn_c_check_header_mongrel "$LINENO" "prop.h" "ac_cv_header_prop_h" "$ac_includes_default" 8990if test "x$ac_cv_header_prop_h" = xyes; then : 8991 have_prop_h=yes 8992else 8993 have_prop_h=no 8994fi 8995 8996 8997 CPPFLAGS="$saveflags" 8998 8999 ac_ext=c 9000ac_cpp='$CPP $CPPFLAGS' 9001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9003ac_compiler_gnu=$ac_cv_c_compiler_gnu 9004 9005 saveflags="$LDFLAGS"; test -n "$properprefix" && LDFLAGS="$LDFLAGS -L$properprefix/lib" 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_open in -lproper" >&5 9007$as_echo_n "checking for prop_open in -lproper... " >&6; } 9008if ${ac_cv_lib_proper_prop_open+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 ac_check_lib_save_LIBS=$LIBS 9012LIBS="-lproper $LIBS" 9013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015 9016/* Override any GCC internal prototype to avoid an error. 9017 Use char because int might match the return type of a GCC 9018 builtin and then its argument prototype would still apply. */ 9019#ifdef __cplusplus 9020extern "C" 9021#endif 9022char prop_open (); 9023int 9024main () 9025{ 9026return prop_open (); 9027 ; 9028 return 0; 9029} 9030_ACEOF 9031if ac_fn_c_try_link "$LINENO"; then : 9032 ac_cv_lib_proper_prop_open=yes 9033else 9034 ac_cv_lib_proper_prop_open=no 9035fi 9036rm -f core conftest.err conftest.$ac_objext \ 9037 conftest$ac_exeext conftest.$ac_ext 9038LIBS=$ac_check_lib_save_LIBS 9039fi 9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proper_prop_open" >&5 9041$as_echo "$ac_cv_lib_proper_prop_open" >&6; } 9042if test "x$ac_cv_lib_proper_prop_open" = xyes; then : 9043 have_libproper=yes 9044else 9045 have_libproper=no 9046fi 9047 9048 LDFLAGS="$saveflags" 9049 ac_ext=cpp 9050ac_cpp='$CXXCPP $CPPFLAGS' 9051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9054 9055 9056 if test $have_prop_h = yes -a $have_libproper = yes; then 9057 $as_echo "#define HAVE_PROPER 1" >>confdefs.h 9058 9059 test -n "$properprefix" && PROPER_INCLUDES="-I$properprefix/include" && PROPER_LIBS="-L$properprefix/lib" 9060 PROPER_LIBS="$PROPER_LIBS -lproper" 9061 elif test $explicit_proper = yes; then 9062 PROPER_INCLUDES= PROPER_LIBS= 9063 as_fn_error $? " 9064========================================= 9065 9066You explicitly specified --with-proper, but the proper headers and/or 9067libraries are not where you said they would be. Run again supplying 9068--without-proper or --with-proper=PREFIX. 9069 9070=========================================" "$LINENO" 5 9071 fi 9072fi 9073 9074 9075 9076 9077 9078explicit_expat=yes 9079 9080# Check whether --with-expat was given. 9081if test "${with_expat+set}" = set; then : 9082 withval=$with_expat; expatprefix=$withval; if test -z "$withval" -o "$withval" = yes; then expatprefix=; fi 9083else 9084 expatprefix=; explicit_expat=no 9085fi 9086 9087 9088XML2CLICK= 9089if test "$expatprefix" != no; then 9090 saveflags="$CPPFLAGS"; test -n "$expatprefix" && CPPFLAGS="$CPPFLAGS -I$expatprefix/include" 9091 ac_fn_cxx_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 9092if test "x$ac_cv_header_expat_h" = xyes; then : 9093 have_expat_h=yes 9094else 9095 have_expat_h=no 9096fi 9097 9098 9099 CPPFLAGS="$saveflags" 9100 9101 ac_ext=c 9102ac_cpp='$CPP $CPPFLAGS' 9103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9105ac_compiler_gnu=$ac_cv_c_compiler_gnu 9106 9107 saveflags="$LDFLAGS"; test -n "$expatprefix" && LDFLAGS="$LDFLAGS -L$expatprefix/lib" 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreateNS in -lexpat" >&5 9109$as_echo_n "checking for XML_ParserCreateNS in -lexpat... " >&6; } 9110if ${ac_cv_lib_expat_XML_ParserCreateNS+:} false; then : 9111 $as_echo_n "(cached) " >&6 9112else 9113 ac_check_lib_save_LIBS=$LIBS 9114LIBS="-lexpat $LIBS" 9115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117 9118/* Override any GCC internal prototype to avoid an error. 9119 Use char because int might match the return type of a GCC 9120 builtin and then its argument prototype would still apply. */ 9121#ifdef __cplusplus 9122extern "C" 9123#endif 9124char XML_ParserCreateNS (); 9125int 9126main () 9127{ 9128return XML_ParserCreateNS (); 9129 ; 9130 return 0; 9131} 9132_ACEOF 9133if ac_fn_c_try_link "$LINENO"; then : 9134 ac_cv_lib_expat_XML_ParserCreateNS=yes 9135else 9136 ac_cv_lib_expat_XML_ParserCreateNS=no 9137fi 9138rm -f core conftest.err conftest.$ac_objext \ 9139 conftest$ac_exeext conftest.$ac_ext 9140LIBS=$ac_check_lib_save_LIBS 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreateNS" >&5 9143$as_echo "$ac_cv_lib_expat_XML_ParserCreateNS" >&6; } 9144if test "x$ac_cv_lib_expat_XML_ParserCreateNS" = xyes; then : 9145 have_libexpat=yes 9146else 9147 have_libexpat=no 9148fi 9149 9150 LDFLAGS="$saveflags" 9151 9152 if test $have_expat_h = yes -a $have_libexpat = yes; then 9153 $as_echo "#define HAVE_EXPAT 1" >>confdefs.h 9154 9155 XML2CLICK=xml2click 9156 test -n "$expatprefix" && EXPAT_INCLUDES="-I$expatprefix/include" && EXPAT_LIBS="-L$expatprefix/lib" 9157 EXPAT_LIBS="$EXPAT_LIBS -lexpat" 9158 elif test $explicit_expat = yes; then 9159 EXPAT_INCLUDES= EXPAT_LIBS= 9160 as_fn_error $? " 9161========================================= 9162 9163You explicitly specified --with-expat, but the expat headers and/or libraries 9164are not where you said they would be. Run again supplying --without-expat 9165or --with-expat=PREFIX. 9166 9167=========================================" "$LINENO" 5 9168 fi 9169fi 9170 9171 9172 9173 9174 9175 9176# Find a good install program. We prefer a C program (faster), 9177# so one script is as good as another. But avoid the broken or 9178# incompatible versions: 9179# SysV /etc/install, /usr/sbin/install 9180# SunOS /usr/etc/install 9181# IRIX /sbin/install 9182# AIX /bin/install 9183# AmigaOS /C/install, which installs bootblocks on floppy discs 9184# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9185# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9186# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9187# OS/2's system install, which has a completely different semantic 9188# ./install, which can be erroneously created by make from ./install.sh. 9189# Reject install programs that cannot install multiple files. 9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9191$as_echo_n "checking for a BSD-compatible install... " >&6; } 9192if test -z "$INSTALL"; then 9193if ${ac_cv_path_install+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9197for as_dir in $PATH 9198do 9199 IFS=$as_save_IFS 9200 test -z "$as_dir" && as_dir=. 9201 # Account for people who put trailing slashes in PATH elements. 9202case $as_dir/ in #(( 9203 ./ | .// | /[cC]/* | \ 9204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9205 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9206 /usr/ucb/* ) ;; 9207 *) 9208 # OSF1 and SCO ODT 3.0 have their own names for install. 9209 # Don't use installbsd from OSF since it installs stuff as root 9210 # by default. 9211 for ac_prog in ginstall scoinst install; do 9212 for ac_exec_ext in '' $ac_executable_extensions; do 9213 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9214 if test $ac_prog = install && 9215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9216 # AIX install. It has an incompatible calling convention. 9217 : 9218 elif test $ac_prog = install && 9219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9220 # program-specific install script used by HP pwplus--don't use. 9221 : 9222 else 9223 rm -rf conftest.one conftest.two conftest.dir 9224 echo one > conftest.one 9225 echo two > conftest.two 9226 mkdir conftest.dir 9227 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9228 test -s conftest.one && test -s conftest.two && 9229 test -s conftest.dir/conftest.one && 9230 test -s conftest.dir/conftest.two 9231 then 9232 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9233 break 3 9234 fi 9235 fi 9236 fi 9237 done 9238 done 9239 ;; 9240esac 9241 9242 done 9243IFS=$as_save_IFS 9244 9245rm -rf conftest.one conftest.two conftest.dir 9246 9247fi 9248 if test "${ac_cv_path_install+set}" = set; then 9249 INSTALL=$ac_cv_path_install 9250 else 9251 # As a last resort, use the slow shell script. Don't cache a 9252 # value for INSTALL within a source directory, because that will 9253 # break other packages using the cache if that directory is 9254 # removed, or if the value is a relative name. 9255 INSTALL=$ac_install_sh 9256 fi 9257fi 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9259$as_echo "$INSTALL" >&6; } 9260 9261# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9262# It thinks the first close brace ends the variable substitution. 9263test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9264 9265test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9266 9267test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9268 9269 9270 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether install accepts -C" >&5 9272$as_echo_n "checking whether install accepts -C... " >&6; } 9273 echo X > conftest.1 9274 if $INSTALL -C conftest.1 conftest.2 >/dev/null 2>&1; then 9275 INSTALL_IF_CHANGED='${INSTALL} -C' 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9277$as_echo "yes" >&6; } 9278 else 9279 INSTALL_IF_CHANGED='${top_builddir}/installch' 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9281$as_echo "no" >&6; } 9282 fi 9283 rm -f conftest.1 conftest.2 9284 9285 CLICKINSTALL=`echo "$INSTALL" | sed 's|^\$(.*)/|\${clickdatadir}/|'` 9286 9287 CLICK_BUILD_INSTALL="$INSTALL" 9288 9289 CLICK_BUILD_INSTALL_IF_CHANGED="`echo "$INSTALL_IF_CHANGED" | sed 's|{INSTALL}|{CLICK_BUILD_INSTALL}|'`" 9290 9291 9292 9293 if test "${GMAKE-NO}" = NO; then 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 9295$as_echo_n "checking for GNU make... " >&6; } 9296if ${ac_cv_gnu_make+:} false; then : 9297 $as_echo_n "(cached) " >&6 9298else 9299 if /bin/sh -c 'make -f /dev/null -n --version | grep GNU' >/dev/null 2>&1; then 9300 ac_cv_gnu_make='make' 9301 elif /bin/sh -c 'gmake -f /dev/null -n --version | grep GNU' >/dev/null 2>&1; then 9302 ac_cv_gnu_make='gmake' 9303 else 9304 ac_cv_gnu_make='not found' 9305 fi 9306fi 9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_make" >&5 9308$as_echo "$ac_cv_gnu_make" >&6; } 9309 test "$ac_cv_gnu_make" != 'not found' && GMAKE="$ac_cv_gnu_make" 9310 else 9311 /bin/sh -c '$GMAKE -f /dev/null -n --version | grep GNU' >/dev/null 2>&1 || GMAKE='' 9312 fi 9313 9314 SUBMAKE='' 9315 test -n "$GMAKE" -a "$GMAKE" != make && SUBMAKE="MAKE = $GMAKE" 9316 9317 9318 9319 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 9321$as_echo_n "checking for working autoconf... " >&6; } 9322 AUTOCONF="${AUTOCONF-autoconf}" 9323 if ($AUTOCONF --version) < /dev/null > conftest.out 2>&1; then 9324 if test `head -n 1 conftest.out | sed 's/.*2\.\([0-9]*\).*/\1/'` -ge 13 2>/dev/null; then 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 9326$as_echo "found" >&6; } 9327 else 9328 AUTOCONF='$(conf_auxdir)/missing autoconf' 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5 9330$as_echo "old" >&6; } 9331 fi 9332 else 9333 AUTOCONF='$(conf_auxdir)/missing autoconf' 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 9335$as_echo "missing" >&6; } 9336 fi 9337 9338 9339 9340 ac_foo=`echo 'exit($A<5);' | tr A \135` 9341 9342 if test "${PERL-NO}" = NO; then 9343 for ac_prog in perl5 perl 9344do 9345 # Extract the first word of "$ac_prog", so it can be a program name with args. 9346set dummy $ac_prog; ac_word=$2 9347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9348$as_echo_n "checking for $ac_word... " >&6; } 9349if ${ac_cv_prog_perl5+:} false; then : 9350 $as_echo_n "(cached) " >&6 9351else 9352 if test -n "$perl5"; then 9353 ac_cv_prog_perl5="$perl5" # Let the user override the test. 9354else 9355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9356for as_dir in $PATH 9357do 9358 IFS=$as_save_IFS 9359 test -z "$as_dir" && as_dir=. 9360 for ac_exec_ext in '' $ac_executable_extensions; do 9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9362 ac_cv_prog_perl5="$ac_prog" 9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9364 break 2 9365 fi 9366done 9367 done 9368IFS=$as_save_IFS 9369 9370fi 9371fi 9372perl5=$ac_cv_prog_perl5 9373if test -n "$perl5"; then 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl5" >&5 9375$as_echo "$perl5" >&6; } 9376else 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9378$as_echo "no" >&6; } 9379fi 9380 9381 9382 test -n "$perl5" && break 9383done 9384test -n "$perl5" || perl5="missing" 9385 9386 test "$perl5" != missing && $perl5 -e "$ac_foo" && perl5=missing 9387 if test "$perl5" = missing; then 9388 for ac_prog in perl5 perl 9389do 9390 # Extract the first word of "$ac_prog", so it can be a program name with args. 9391set dummy $ac_prog; ac_word=$2 9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9393$as_echo_n "checking for $ac_word... " >&6; } 9394if ${ac_cv_prog_localperl5+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396else 9397 if test -n "$localperl5"; then 9398 ac_cv_prog_localperl5="$localperl5" # Let the user override the test. 9399else 9400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9401for as_dir in /usr/local/bin 9402do 9403 IFS=$as_save_IFS 9404 test -z "$as_dir" && as_dir=. 9405 for ac_exec_ext in '' $ac_executable_extensions; do 9406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9407 ac_cv_prog_localperl5="$ac_prog" 9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9409 break 2 9410 fi 9411done 9412 done 9413IFS=$as_save_IFS 9414 9415fi 9416fi 9417localperl5=$ac_cv_prog_localperl5 9418if test -n "$localperl5"; then 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $localperl5" >&5 9420$as_echo "$localperl5" >&6; } 9421else 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9423$as_echo "no" >&6; } 9424fi 9425 9426 9427 test -n "$localperl5" && break 9428done 9429test -n "$localperl5" || localperl5="missing" 9430 9431 test "$localperl5" != missing && \ 9432 perl5="/usr/local/bin/$localperl5" 9433 fi 9434 else 9435 perl5="$PERL" 9436 fi 9437 9438 test "$perl5" != missing && $perl5 -e "$ac_foo" && perl5=missing 9439 9440 if test "$perl5" = "missing"; then 9441 PERL='$(conf_auxdir)/missing perl' 9442 else 9443 PERL="$perl5" 9444 fi 9445 9446 9447for ac_prog in gawk mawk nawk awk 9448do 9449 # Extract the first word of "$ac_prog", so it can be a program name with args. 9450set dummy $ac_prog; ac_word=$2 9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9452$as_echo_n "checking for $ac_word... " >&6; } 9453if ${ac_cv_prog_AWK+:} false; then : 9454 $as_echo_n "(cached) " >&6 9455else 9456 if test -n "$AWK"; then 9457 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9458else 9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9460for as_dir in $PATH 9461do 9462 IFS=$as_save_IFS 9463 test -z "$as_dir" && as_dir=. 9464 for ac_exec_ext in '' $ac_executable_extensions; do 9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9466 ac_cv_prog_AWK="$ac_prog" 9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9468 break 2 9469 fi 9470done 9471 done 9472IFS=$as_save_IFS 9473 9474fi 9475fi 9476AWK=$ac_cv_prog_AWK 9477if test -n "$AWK"; then 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9479$as_echo "$AWK" >&6; } 9480else 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9482$as_echo "no" >&6; } 9483fi 9484 9485 9486 test -n "$AWK" && break 9487done 9488 9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 9490$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 9491if ${ac_cv_path_GREP+:} false; then : 9492 $as_echo_n "(cached) " >&6 9493else 9494 if test -z "$GREP"; then 9495 ac_path_GREP_found=false 9496 # Loop through the user's path and test for each of PROGNAME-LIST 9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9499do 9500 IFS=$as_save_IFS 9501 test -z "$as_dir" && as_dir=. 9502 for ac_prog in grep ggrep; do 9503 for ac_exec_ext in '' $ac_executable_extensions; do 9504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 9505 as_fn_executable_p "$ac_path_GREP" || continue 9506# Check for GNU ac_path_GREP and select it if it is found. 9507 # Check for GNU $ac_path_GREP 9508case `"$ac_path_GREP" --version 2>&1` in 9509*GNU*) 9510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 9511*) 9512 ac_count=0 9513 $as_echo_n 0123456789 >"conftest.in" 9514 while : 9515 do 9516 cat "conftest.in" "conftest.in" >"conftest.tmp" 9517 mv "conftest.tmp" "conftest.in" 9518 cp "conftest.in" "conftest.nl" 9519 $as_echo 'GREP' >> "conftest.nl" 9520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9522 as_fn_arith $ac_count + 1 && ac_count=$as_val 9523 if test $ac_count -gt ${ac_path_GREP_max-0}; then 9524 # Best one so far, save it but keep looking for a better one 9525 ac_cv_path_GREP="$ac_path_GREP" 9526 ac_path_GREP_max=$ac_count 9527 fi 9528 # 10*(2^10) chars as input seems more than enough 9529 test $ac_count -gt 10 && break 9530 done 9531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9532esac 9533 9534 $ac_path_GREP_found && break 3 9535 done 9536 done 9537 done 9538IFS=$as_save_IFS 9539 if test -z "$ac_cv_path_GREP"; then 9540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9541 fi 9542else 9543 ac_cv_path_GREP=$GREP 9544fi 9545 9546fi 9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 9548$as_echo "$ac_cv_path_GREP" >&6; } 9549 GREP="$ac_cv_path_GREP" 9550 9551 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 9553$as_echo_n "checking for egrep... " >&6; } 9554if ${ac_cv_path_EGREP+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 9558 then ac_cv_path_EGREP="$GREP -E" 9559 else 9560 if test -z "$EGREP"; then 9561 ac_path_EGREP_found=false 9562 # Loop through the user's path and test for each of PROGNAME-LIST 9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9565do 9566 IFS=$as_save_IFS 9567 test -z "$as_dir" && as_dir=. 9568 for ac_prog in egrep; do 9569 for ac_exec_ext in '' $ac_executable_extensions; do 9570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 9571 as_fn_executable_p "$ac_path_EGREP" || continue 9572# Check for GNU ac_path_EGREP and select it if it is found. 9573 # Check for GNU $ac_path_EGREP 9574case `"$ac_path_EGREP" --version 2>&1` in 9575*GNU*) 9576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 9577*) 9578 ac_count=0 9579 $as_echo_n 0123456789 >"conftest.in" 9580 while : 9581 do 9582 cat "conftest.in" "conftest.in" >"conftest.tmp" 9583 mv "conftest.tmp" "conftest.in" 9584 cp "conftest.in" "conftest.nl" 9585 $as_echo 'EGREP' >> "conftest.nl" 9586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9588 as_fn_arith $ac_count + 1 && ac_count=$as_val 9589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 9590 # Best one so far, save it but keep looking for a better one 9591 ac_cv_path_EGREP="$ac_path_EGREP" 9592 ac_path_EGREP_max=$ac_count 9593 fi 9594 # 10*(2^10) chars as input seems more than enough 9595 test $ac_count -gt 10 && break 9596 done 9597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9598esac 9599 9600 $ac_path_EGREP_found && break 3 9601 done 9602 done 9603 done 9604IFS=$as_save_IFS 9605 if test -z "$ac_cv_path_EGREP"; then 9606 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9607 fi 9608else 9609 ac_cv_path_EGREP=$EGREP 9610fi 9611 9612 fi 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 9615$as_echo "$ac_cv_path_EGREP" >&6; } 9616 EGREP="$ac_cv_path_EGREP" 9617 9618 9619for ac_prog in md5sum md5 9620do 9621 # Extract the first word of "$ac_prog", so it can be a program name with args. 9622set dummy $ac_prog; ac_word=$2 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9624$as_echo_n "checking for $ac_word... " >&6; } 9625if ${ac_cv_prog_MD5SUM+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 if test -n "$MD5SUM"; then 9629 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test. 9630else 9631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9632for as_dir in $PATH 9633do 9634 IFS=$as_save_IFS 9635 test -z "$as_dir" && as_dir=. 9636 for ac_exec_ext in '' $ac_executable_extensions; do 9637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9638 ac_cv_prog_MD5SUM="$ac_prog" 9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9640 break 2 9641 fi 9642done 9643 done 9644IFS=$as_save_IFS 9645 9646fi 9647fi 9648MD5SUM=$ac_cv_prog_MD5SUM 9649if test -n "$MD5SUM"; then 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5 9651$as_echo "$MD5SUM" >&6; } 9652else 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9654$as_echo "no" >&6; } 9655fi 9656 9657 9658 test -n "$MD5SUM" && break 9659done 9660 9661 9662if test -z "$GMAKE"; then 9663 as_fn_error $? " 9664============================================== 9665 9666Can't find GNU make. Either put 'gmake' on your PATH and 9667rerun './configure', or set the GMAKE environment variable to 9668GNU make's pathname. 9669 9670==============================================" "$LINENO" 5 9671fi 9672 9673 9674 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working makeinfo" >&5 9676$as_echo_n "checking for working makeinfo... " >&6; } 9677MAKEINFO=${MAKEINFO-makeinfo} 9678if ($MAKEINFO --version) < /dev/null > conftest.out 2>&1; then 9679 if test `head -n 1 conftest.out | sed 's/^.* \([0-9][0-9]*\).*$/\1/'` -ge 4; then 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 9681$as_echo "found" >&6; } 9682 else 9683 MAKEINFO='$(conf_auxdir)/missing makeinfo' 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5 9685$as_echo "old" >&6; } 9686 fi 9687else 9688 MAKEINFO='$(conf_auxdir)/missing makeinfo' 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 9690$as_echo "missing" >&6; } 9691fi 9692 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working texi2dvi" >&5 9694$as_echo_n "checking for working texi2dvi... " >&6; } 9695TEXI2DVI=${TEXI2DVI-texi2dvi} 9696if ($TEXI2DVI --version) < /dev/null > conftest.out 2>&1; then 9697 if test `head -n 1 conftest.out | sed 's/.*Texinfo \([0-9][0-9]*\).*/\1/'` -ge 4; then 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 9699$as_echo "found" >&6; } 9700 else 9701 TEXI2DVI='$(conf_auxdir)/missing texi2dvi' 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5 9703$as_echo "old" >&6; } 9704 fi 9705else 9706 TEXI2DVI='$(conf_auxdir)/missing texi2dvi' 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 9708$as_echo "missing" >&6; } 9709fi 9710 9711if test ${INSTALL_INFO-xxx} = xxx; then 9712 # Extract the first word of "install-info", so it can be a program name with args. 9713set dummy install-info; ac_word=$2 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9715$as_echo_n "checking for $ac_word... " >&6; } 9716if ${ac_cv_path_INSTALL_INFO+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 case $INSTALL_INFO in 9720 [\\/]* | ?:[\\/]*) 9721 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 9722 ;; 9723 *) 9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9725as_dummy="$PATH:/sbin:/usr/sbin:/usr/local/sbin" 9726for as_dir in $as_dummy 9727do 9728 IFS=$as_save_IFS 9729 test -z "$as_dir" && as_dir=. 9730 for ac_exec_ext in '' $ac_executable_extensions; do 9731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9732 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9734 break 2 9735 fi 9736done 9737 done 9738IFS=$as_save_IFS 9739 9740 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="'$(conf_auxdir)/missing install-info'" 9741 ;; 9742esac 9743fi 9744INSTALL_INFO=$ac_cv_path_INSTALL_INFO 9745if test -n "$INSTALL_INFO"; then 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 9747$as_echo "$INSTALL_INFO" >&6; } 9748else 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9750$as_echo "no" >&6; } 9751fi 9752 9753 9754fi 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working install-info" >&5 9756$as_echo_n "checking for working install-info... " >&6; } 9757if ($INSTALL_INFO --version) < /dev/null > conftest.out 2>&1; then 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 9759$as_echo "found" >&6; } 9760else 9761 INSTALL_INFO='$(conf_auxdir)/missing install-info' 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 9763$as_echo "missing" >&6; } 9764fi 9765 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working pod2man" >&5 9767$as_echo_n "checking for working pod2man... " >&6; } 9768POD2MAN=${POD2MAN-pod2man} 9769if ($POD2MAN --help) < /dev/null > conftest.out 2>&1 && grep pod2man conftest.out >/dev/null 2>&1; then 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 9771$as_echo "found" >&6; } 9772else 9773 POD2MAN='$(conf_auxdir)/missing pod2man' 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 9775$as_echo "missing" >&6; } 9776fi 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787cat >>confdefs.h <<_ACEOF 9788#define CLICK_BINDIR "$bindir" 9789_ACEOF 9790 9791 9792cat >>confdefs.h <<_ACEOF 9793#define CLICK_LIBDIR "$libdir" 9794_ACEOF 9795 9796 9797cat >>confdefs.h <<_ACEOF 9798#define CLICK_DATADIR "$clickdatadir" 9799_ACEOF 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812provisions="$target_cpu" 9813case "$target_cpu" in 9814 i386) :;; 9815 i486|i586) provisions="$provisions i386";; 9816 i686|i786) provisions="$provisions i386 i586";; 9817esac 9818 9819if test "x$enable_analysis" = xyes; then 9820 provisions="$provisions analysis" 9821fi 9822 9823if test "x$enable_experimental" = xyes; then 9824 provisions="$provisions experimental" 9825fi 9826 9827if test "x$have_int64_types" = xyes; then 9828 provisions="$provisions int64" 9829fi 9830 9831if test "x$enable_ip6" = xyes; then 9832 provisions="$provisions ip6" 9833fi 9834 9835if test "x$ac_cv_under_linux" = xyes; then 9836 provisions="$provisions linux" 9837fi 9838 9839if test "x$HAVE_NETMAP" = xyes; then 9840 provisions="$provisions netmap" 9841fi 9842 9843if test "x$HAVE_PCAP" = xyes; then 9844 provisions="$provisions pcap" 9845fi 9846 9847if test "x$enable_user_multithread" = xyes; then 9848 provisions="$provisions umultithread" 9849fi 9850 9851if test "x$enable_wifi" = xyes; then 9852 provisions="$provisions wifi" 9853fi 9854 9855 9856 9857 9858config_files="Makefile click-buildtool libsrc/Makefile" 9859for ac_dir in include; do 9860 test ! -d "$ac_dir" && mkdir "$ac_dir" 9861done 9862 9863ac_config_commands="$ac_config_commands default-1" 9864 9865ac_config_files="$ac_config_files $config_files" 9866 9867cat >confcache <<\_ACEOF 9868# This file is a shell script that caches the results of configure 9869# tests run on this system so they can be shared between configure 9870# scripts and configure runs, see configure's option --config-cache. 9871# It is not useful on other systems. If it contains results you don't 9872# want to keep, you may remove or edit it. 9873# 9874# config.status only pays attention to the cache file if you give it 9875# the --recheck option to rerun configure. 9876# 9877# `ac_cv_env_foo' variables (set or unset) will be overridden when 9878# loading this file, other *unset* `ac_cv_foo' will be assigned the 9879# following values. 9880 9881_ACEOF 9882 9883# The following way of writing the cache mishandles newlines in values, 9884# but we know of no workaround that is simple, portable, and efficient. 9885# So, we kill variables containing newlines. 9886# Ultrix sh set writes to stderr and can't be redirected directly, 9887# and sets the high bit in the cache file unless we assign to the vars. 9888( 9889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9890 eval ac_val=\$$ac_var 9891 case $ac_val in #( 9892 *${as_nl}*) 9893 case $ac_var in #( 9894 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9895$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9896 esac 9897 case $ac_var in #( 9898 _ | IFS | as_nl) ;; #( 9899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9900 *) { eval $ac_var=; unset $ac_var;} ;; 9901 esac ;; 9902 esac 9903 done 9904 9905 (set) 2>&1 | 9906 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9907 *${as_nl}ac_space=\ *) 9908 # `set' does not quote correctly, so add quotes: double-quote 9909 # substitution turns \\\\ into \\, and sed turns \\ into \. 9910 sed -n \ 9911 "s/'/'\\\\''/g; 9912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9913 ;; #( 9914 *) 9915 # `set' quotes correctly as required by POSIX, so do not add quotes. 9916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9917 ;; 9918 esac | 9919 sort 9920) | 9921 sed ' 9922 /^ac_cv_env_/b end 9923 t clear 9924 :clear 9925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9926 t end 9927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9928 :end' >>confcache 9929if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9930 if test -w "$cache_file"; then 9931 if test "x$cache_file" != "x/dev/null"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9933$as_echo "$as_me: updating cache $cache_file" >&6;} 9934 if test ! -f "$cache_file" || test -h "$cache_file"; then 9935 cat confcache >"$cache_file" 9936 else 9937 case $cache_file in #( 9938 */* | ?:*) 9939 mv -f confcache "$cache_file"$$ && 9940 mv -f "$cache_file"$$ "$cache_file" ;; #( 9941 *) 9942 mv -f confcache "$cache_file" ;; 9943 esac 9944 fi 9945 fi 9946 else 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9948$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9949 fi 9950fi 9951rm -f confcache 9952 9953test "x$prefix" = xNONE && prefix=$ac_default_prefix 9954# Let make expand exec_prefix. 9955test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9956 9957DEFS=-DHAVE_CONFIG_H 9958 9959ac_libobjs= 9960ac_ltlibobjs= 9961U= 9962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9963 # 1. Remove the extension, and $U if already installed. 9964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9967 # will be set to the directory where LIBOBJS objects are built. 9968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9970done 9971LIBOBJS=$ac_libobjs 9972 9973LTLIBOBJS=$ac_ltlibobjs 9974 9975 9976 9977: "${CONFIG_STATUS=./config.status}" 9978ac_write_fail=0 9979ac_clean_files_save=$ac_clean_files 9980ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9981{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9982$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9983as_write_fail=0 9984cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9985#! $SHELL 9986# Generated by $as_me. 9987# Run this file to recreate the current configuration. 9988# Compiler output produced by configure, useful for debugging 9989# configure, is in config.log if it exists. 9990 9991debug=false 9992ac_cs_recheck=false 9993ac_cs_silent=false 9994 9995SHELL=\${CONFIG_SHELL-$SHELL} 9996export SHELL 9997_ASEOF 9998cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9999## -------------------- ## 10000## M4sh Initialization. ## 10001## -------------------- ## 10002 10003# Be more Bourne compatible 10004DUALCASE=1; export DUALCASE # for MKS sh 10005if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10006 emulate sh 10007 NULLCMD=: 10008 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10009 # is contrary to our usage. Disable this feature. 10010 alias -g '${1+"$@"}'='"$@"' 10011 setopt NO_GLOB_SUBST 10012else 10013 case `(set -o) 2>/dev/null` in #( 10014 *posix*) : 10015 set -o posix ;; #( 10016 *) : 10017 ;; 10018esac 10019fi 10020 10021 10022as_nl=' 10023' 10024export as_nl 10025# Printing a long string crashes Solaris 7 /usr/bin/printf. 10026as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10027as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10028as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10029# Prefer a ksh shell builtin over an external printf program on Solaris, 10030# but without wasting forks for bash or zsh. 10031if test -z "$BASH_VERSION$ZSH_VERSION" \ 10032 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10033 as_echo='print -r --' 10034 as_echo_n='print -rn --' 10035elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10036 as_echo='printf %s\n' 10037 as_echo_n='printf %s' 10038else 10039 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10040 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10041 as_echo_n='/usr/ucb/echo -n' 10042 else 10043 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10044 as_echo_n_body='eval 10045 arg=$1; 10046 case $arg in #( 10047 *"$as_nl"*) 10048 expr "X$arg" : "X\\(.*\\)$as_nl"; 10049 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10050 esac; 10051 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10052 ' 10053 export as_echo_n_body 10054 as_echo_n='sh -c $as_echo_n_body as_echo' 10055 fi 10056 export as_echo_body 10057 as_echo='sh -c $as_echo_body as_echo' 10058fi 10059 10060# The user is always right. 10061if test "${PATH_SEPARATOR+set}" != set; then 10062 PATH_SEPARATOR=: 10063 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10064 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10065 PATH_SEPARATOR=';' 10066 } 10067fi 10068 10069 10070# IFS 10071# We need space, tab and new line, in precisely that order. Quoting is 10072# there to prevent editors from complaining about space-tab. 10073# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10074# splitting by setting IFS to empty value.) 10075IFS=" "" $as_nl" 10076 10077# Find who we are. Look in the path if we contain no directory separator. 10078as_myself= 10079case $0 in #(( 10080 *[\\/]* ) as_myself=$0 ;; 10081 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10082for as_dir in $PATH 10083do 10084 IFS=$as_save_IFS 10085 test -z "$as_dir" && as_dir=. 10086 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10087 done 10088IFS=$as_save_IFS 10089 10090 ;; 10091esac 10092# We did not find ourselves, most probably we were run as `sh COMMAND' 10093# in which case we are not to be found in the path. 10094if test "x$as_myself" = x; then 10095 as_myself=$0 10096fi 10097if test ! -f "$as_myself"; then 10098 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10099 exit 1 10100fi 10101 10102# Unset variables that we do not need and which cause bugs (e.g. in 10103# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10104# suppresses any "Segmentation fault" message there. '((' could 10105# trigger a bug in pdksh 5.2.14. 10106for as_var in BASH_ENV ENV MAIL MAILPATH 10107do eval test x\${$as_var+set} = xset \ 10108 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10109done 10110PS1='$ ' 10111PS2='> ' 10112PS4='+ ' 10113 10114# NLS nuisances. 10115LC_ALL=C 10116export LC_ALL 10117LANGUAGE=C 10118export LANGUAGE 10119 10120# CDPATH. 10121(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10122 10123 10124# as_fn_error STATUS ERROR [LINENO LOG_FD] 10125# ---------------------------------------- 10126# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10127# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10128# script with STATUS, using 1 if that was 0. 10129as_fn_error () 10130{ 10131 as_status=$1; test $as_status -eq 0 && as_status=1 10132 if test "$4"; then 10133 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10134 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10135 fi 10136 $as_echo "$as_me: error: $2" >&2 10137 as_fn_exit $as_status 10138} # as_fn_error 10139 10140 10141# as_fn_set_status STATUS 10142# ----------------------- 10143# Set $? to STATUS, without forking. 10144as_fn_set_status () 10145{ 10146 return $1 10147} # as_fn_set_status 10148 10149# as_fn_exit STATUS 10150# ----------------- 10151# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10152as_fn_exit () 10153{ 10154 set +e 10155 as_fn_set_status $1 10156 exit $1 10157} # as_fn_exit 10158 10159# as_fn_unset VAR 10160# --------------- 10161# Portably unset VAR. 10162as_fn_unset () 10163{ 10164 { eval $1=; unset $1;} 10165} 10166as_unset=as_fn_unset 10167# as_fn_append VAR VALUE 10168# ---------------------- 10169# Append the text in VALUE to the end of the definition contained in VAR. Take 10170# advantage of any shell optimizations that allow amortized linear growth over 10171# repeated appends, instead of the typical quadratic growth present in naive 10172# implementations. 10173if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10174 eval 'as_fn_append () 10175 { 10176 eval $1+=\$2 10177 }' 10178else 10179 as_fn_append () 10180 { 10181 eval $1=\$$1\$2 10182 } 10183fi # as_fn_append 10184 10185# as_fn_arith ARG... 10186# ------------------ 10187# Perform arithmetic evaluation on the ARGs, and store the result in the 10188# global $as_val. Take advantage of shells that can avoid forks. The arguments 10189# must be portable across $(()) and expr. 10190if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10191 eval 'as_fn_arith () 10192 { 10193 as_val=$(( $* )) 10194 }' 10195else 10196 as_fn_arith () 10197 { 10198 as_val=`expr "$@" || test $? -eq 1` 10199 } 10200fi # as_fn_arith 10201 10202 10203if expr a : '\(a\)' >/dev/null 2>&1 && 10204 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10205 as_expr=expr 10206else 10207 as_expr=false 10208fi 10209 10210if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10211 as_basename=basename 10212else 10213 as_basename=false 10214fi 10215 10216if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10217 as_dirname=dirname 10218else 10219 as_dirname=false 10220fi 10221 10222as_me=`$as_basename -- "$0" || 10223$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10224 X"$0" : 'X\(//\)$' \| \ 10225 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10226$as_echo X/"$0" | 10227 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10228 s//\1/ 10229 q 10230 } 10231 /^X\/\(\/\/\)$/{ 10232 s//\1/ 10233 q 10234 } 10235 /^X\/\(\/\).*/{ 10236 s//\1/ 10237 q 10238 } 10239 s/.*/./; q'` 10240 10241# Avoid depending upon Character Ranges. 10242as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10243as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10244as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10245as_cr_digits='0123456789' 10246as_cr_alnum=$as_cr_Letters$as_cr_digits 10247 10248ECHO_C= ECHO_N= ECHO_T= 10249case `echo -n x` in #((((( 10250-n*) 10251 case `echo 'xy\c'` in 10252 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10253 xy) ECHO_C='\c';; 10254 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10255 ECHO_T=' ';; 10256 esac;; 10257*) 10258 ECHO_N='-n';; 10259esac 10260 10261rm -f conf$$ conf$$.exe conf$$.file 10262if test -d conf$$.dir; then 10263 rm -f conf$$.dir/conf$$.file 10264else 10265 rm -f conf$$.dir 10266 mkdir conf$$.dir 2>/dev/null 10267fi 10268if (echo >conf$$.file) 2>/dev/null; then 10269 if ln -s conf$$.file conf$$ 2>/dev/null; then 10270 as_ln_s='ln -s' 10271 # ... but there are two gotchas: 10272 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10273 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10274 # In both cases, we have to default to `cp -pR'. 10275 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10276 as_ln_s='cp -pR' 10277 elif ln conf$$.file conf$$ 2>/dev/null; then 10278 as_ln_s=ln 10279 else 10280 as_ln_s='cp -pR' 10281 fi 10282else 10283 as_ln_s='cp -pR' 10284fi 10285rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10286rmdir conf$$.dir 2>/dev/null 10287 10288 10289# as_fn_mkdir_p 10290# ------------- 10291# Create "$as_dir" as a directory, including parents if necessary. 10292as_fn_mkdir_p () 10293{ 10294 10295 case $as_dir in #( 10296 -*) as_dir=./$as_dir;; 10297 esac 10298 test -d "$as_dir" || eval $as_mkdir_p || { 10299 as_dirs= 10300 while :; do 10301 case $as_dir in #( 10302 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10303 *) as_qdir=$as_dir;; 10304 esac 10305 as_dirs="'$as_qdir' $as_dirs" 10306 as_dir=`$as_dirname -- "$as_dir" || 10307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10308 X"$as_dir" : 'X\(//\)[^/]' \| \ 10309 X"$as_dir" : 'X\(//\)$' \| \ 10310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10311$as_echo X"$as_dir" | 10312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10313 s//\1/ 10314 q 10315 } 10316 /^X\(\/\/\)[^/].*/{ 10317 s//\1/ 10318 q 10319 } 10320 /^X\(\/\/\)$/{ 10321 s//\1/ 10322 q 10323 } 10324 /^X\(\/\).*/{ 10325 s//\1/ 10326 q 10327 } 10328 s/.*/./; q'` 10329 test -d "$as_dir" && break 10330 done 10331 test -z "$as_dirs" || eval "mkdir $as_dirs" 10332 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10333 10334 10335} # as_fn_mkdir_p 10336if mkdir -p . 2>/dev/null; then 10337 as_mkdir_p='mkdir -p "$as_dir"' 10338else 10339 test -d ./-p && rmdir ./-p 10340 as_mkdir_p=false 10341fi 10342 10343 10344# as_fn_executable_p FILE 10345# ----------------------- 10346# Test if FILE is an executable regular file. 10347as_fn_executable_p () 10348{ 10349 test -f "$1" && test -x "$1" 10350} # as_fn_executable_p 10351as_test_x='test -x' 10352as_executable_p=as_fn_executable_p 10353 10354# Sed expression to map a string onto a valid CPP name. 10355as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10356 10357# Sed expression to map a string onto a valid variable name. 10358as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10359 10360 10361exec 6>&1 10362## ----------------------------------- ## 10363## Main body of $CONFIG_STATUS script. ## 10364## ----------------------------------- ## 10365_ASEOF 10366test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10367 10368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10369# Save the log message, to keep $0 and so on meaningful, and to 10370# report actual input values of CONFIG_FILES etc. instead of their 10371# values after options handling. 10372ac_log=" 10373This file was extended by libclick $as_me 2.1, which was 10374generated by GNU Autoconf 2.69. Invocation command line was 10375 10376 CONFIG_FILES = $CONFIG_FILES 10377 CONFIG_HEADERS = $CONFIG_HEADERS 10378 CONFIG_LINKS = $CONFIG_LINKS 10379 CONFIG_COMMANDS = $CONFIG_COMMANDS 10380 $ $0 $@ 10381 10382on `(hostname || uname -n) 2>/dev/null | sed 1q` 10383" 10384 10385_ACEOF 10386 10387case $ac_config_files in *" 10388"*) set x $ac_config_files; shift; ac_config_files=$*;; 10389esac 10390 10391case $ac_config_headers in *" 10392"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10393esac 10394 10395 10396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10397# Files that config.status was made for. 10398config_files="$ac_config_files" 10399config_headers="$ac_config_headers" 10400config_commands="$ac_config_commands" 10401 10402_ACEOF 10403 10404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10405ac_cs_usage="\ 10406\`$as_me' instantiates files and other configuration actions 10407from templates according to the current configuration. Unless the files 10408and actions are specified as TAGs, all are instantiated by default. 10409 10410Usage: $0 [OPTION]... [TAG]... 10411 10412 -h, --help print this help, then exit 10413 -V, --version print version number and configuration settings, then exit 10414 --config print configuration, then exit 10415 -q, --quiet, --silent 10416 do not print progress messages 10417 -d, --debug don't remove temporary files 10418 --recheck update $as_me by reconfiguring in the same conditions 10419 --file=FILE[:TEMPLATE] 10420 instantiate the configuration file FILE 10421 --header=FILE[:TEMPLATE] 10422 instantiate the configuration header FILE 10423 10424Configuration files: 10425$config_files 10426 10427Configuration headers: 10428$config_headers 10429 10430Configuration commands: 10431$config_commands 10432 10433Report bugs to the package provider." 10434 10435_ACEOF 10436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10437ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10438ac_cs_version="\\ 10439libclick config.status 2.1 10440configured by $0, generated by GNU Autoconf 2.69, 10441 with options \\"\$ac_cs_config\\" 10442 10443Copyright (C) 2012 Free Software Foundation, Inc. 10444This config.status script is free software; the Free Software Foundation 10445gives unlimited permission to copy, distribute and modify it." 10446 10447ac_pwd='$ac_pwd' 10448srcdir='$srcdir' 10449INSTALL='$INSTALL' 10450AWK='$AWK' 10451test -n "\$AWK" || AWK=awk 10452_ACEOF 10453 10454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10455# The default lists apply if the user does not specify any file. 10456ac_need_defaults=: 10457while test $# != 0 10458do 10459 case $1 in 10460 --*=?*) 10461 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10462 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10463 ac_shift=: 10464 ;; 10465 --*=) 10466 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10467 ac_optarg= 10468 ac_shift=: 10469 ;; 10470 *) 10471 ac_option=$1 10472 ac_optarg=$2 10473 ac_shift=shift 10474 ;; 10475 esac 10476 10477 case $ac_option in 10478 # Handling of the options. 10479 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10480 ac_cs_recheck=: ;; 10481 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10482 $as_echo "$ac_cs_version"; exit ;; 10483 --config | --confi | --conf | --con | --co | --c ) 10484 $as_echo "$ac_cs_config"; exit ;; 10485 --debug | --debu | --deb | --de | --d | -d ) 10486 debug=: ;; 10487 --file | --fil | --fi | --f ) 10488 $ac_shift 10489 case $ac_optarg in 10490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10491 '') as_fn_error $? "missing file argument" ;; 10492 esac 10493 as_fn_append CONFIG_FILES " '$ac_optarg'" 10494 ac_need_defaults=false;; 10495 --header | --heade | --head | --hea ) 10496 $ac_shift 10497 case $ac_optarg in 10498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10499 esac 10500 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10501 ac_need_defaults=false;; 10502 --he | --h) 10503 # Conflict between --help and --header 10504 as_fn_error $? "ambiguous option: \`$1' 10505Try \`$0 --help' for more information.";; 10506 --help | --hel | -h ) 10507 $as_echo "$ac_cs_usage"; exit ;; 10508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10509 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10510 ac_cs_silent=: ;; 10511 10512 # This is an error. 10513 -*) as_fn_error $? "unrecognized option: \`$1' 10514Try \`$0 --help' for more information." ;; 10515 10516 *) as_fn_append ac_config_targets " $1" 10517 ac_need_defaults=false ;; 10518 10519 esac 10520 shift 10521done 10522 10523ac_configure_extra_args= 10524 10525if $ac_cs_silent; then 10526 exec 6>/dev/null 10527 ac_configure_extra_args="$ac_configure_extra_args --silent" 10528fi 10529 10530_ACEOF 10531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10532if \$ac_cs_recheck; then 10533 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10534 shift 10535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10536 CONFIG_SHELL='$SHELL' 10537 export CONFIG_SHELL 10538 exec "\$@" 10539fi 10540 10541_ACEOF 10542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10543exec 5>>config.log 10544{ 10545 echo 10546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10547## Running $as_me. ## 10548_ASBOX 10549 $as_echo "$ac_log" 10550} >&5 10551 10552_ACEOF 10553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10554# 10555# INIT-COMMANDS 10556# 10557GMAKE="$GMAKE" 10558 10559_ACEOF 10560 10561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10562 10563# Handling of arguments. 10564for ac_config_target in $ac_config_targets 10565do 10566 case $ac_config_target in 10567 "include/click/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/click/config.h:config.h.in" ;; 10568 "include/click/pathvars.h") CONFIG_HEADERS="$CONFIG_HEADERS include/click/pathvars.h:pathvars.h.in" ;; 10569 "include/click/config-userlevel.h") CONFIG_HEADERS="$CONFIG_HEADERS include/click/config-userlevel.h:config-userlevel.h.in" ;; 10570 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 10571 "$config_files") CONFIG_FILES="$CONFIG_FILES $config_files" ;; 10572 10573 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10574 esac 10575done 10576 10577 10578# If the user did not use the arguments to specify the items to instantiate, 10579# then the envvar interface is used. Set only those that are not. 10580# We use the long form for the default assignment because of an extremely 10581# bizarre bug on SunOS 4.1.3. 10582if $ac_need_defaults; then 10583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10586fi 10587 10588# Have a temporary directory for convenience. Make it in the build tree 10589# simply because there is no reason against having it here, and in addition, 10590# creating and moving files from /tmp can sometimes cause problems. 10591# Hook for its removal unless debugging. 10592# Note that there is a small window in which the directory will not be cleaned: 10593# after its creation but before its name has been assigned to `$tmp'. 10594$debug || 10595{ 10596 tmp= ac_tmp= 10597 trap 'exit_status=$? 10598 : "${ac_tmp:=$tmp}" 10599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10600' 0 10601 trap 'as_fn_exit 1' 1 2 13 15 10602} 10603# Create a (secure) tmp directory for tmp files. 10604 10605{ 10606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10607 test -d "$tmp" 10608} || 10609{ 10610 tmp=./conf$$-$RANDOM 10611 (umask 077 && mkdir "$tmp") 10612} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10613ac_tmp=$tmp 10614 10615# Set up the scripts for CONFIG_FILES section. 10616# No need to generate them if there are no CONFIG_FILES. 10617# This happens for instance with `./config.status config.h'. 10618if test -n "$CONFIG_FILES"; then 10619 10620 10621ac_cr=`echo X | tr X '\015'` 10622# On cygwin, bash can eat \r inside `` if the user requested igncr. 10623# But we know of no other shell where ac_cr would be empty at this 10624# point, so we can use a bashism as a fallback. 10625if test "x$ac_cr" = x; then 10626 eval ac_cr=\$\'\\r\' 10627fi 10628ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10629if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10630 ac_cs_awk_cr='\\r' 10631else 10632 ac_cs_awk_cr=$ac_cr 10633fi 10634 10635echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10636_ACEOF 10637 10638 10639{ 10640 echo "cat >conf$$subs.awk <<_ACEOF" && 10641 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10642 echo "_ACEOF" 10643} >conf$$subs.sh || 10644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10645ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10646ac_delim='%!_!# ' 10647for ac_last_try in false false false false false :; do 10648 . ./conf$$subs.sh || 10649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10650 10651 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10652 if test $ac_delim_n = $ac_delim_num; then 10653 break 10654 elif $ac_last_try; then 10655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10656 else 10657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10658 fi 10659done 10660rm -f conf$$subs.sh 10661 10662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10663cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10664_ACEOF 10665sed -n ' 10666h 10667s/^/S["/; s/!.*/"]=/ 10668p 10669g 10670s/^[^!]*!// 10671:repl 10672t repl 10673s/'"$ac_delim"'$// 10674t delim 10675:nl 10676h 10677s/\(.\{148\}\)..*/\1/ 10678t more1 10679s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10680p 10681n 10682b repl 10683:more1 10684s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10685p 10686g 10687s/.\{148\}// 10688t nl 10689:delim 10690h 10691s/\(.\{148\}\)..*/\1/ 10692t more2 10693s/["\\]/\\&/g; s/^/"/; s/$/"/ 10694p 10695b 10696:more2 10697s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10698p 10699g 10700s/.\{148\}// 10701t delim 10702' <conf$$subs.awk | sed ' 10703/^[^""]/{ 10704 N 10705 s/\n// 10706} 10707' >>$CONFIG_STATUS || ac_write_fail=1 10708rm -f conf$$subs.awk 10709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10710_ACAWK 10711cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10712 for (key in S) S_is_set[key] = 1 10713 FS = "" 10714 10715} 10716{ 10717 line = $ 0 10718 nfields = split(line, field, "@") 10719 substed = 0 10720 len = length(field[1]) 10721 for (i = 2; i < nfields; i++) { 10722 key = field[i] 10723 keylen = length(key) 10724 if (S_is_set[key]) { 10725 value = S[key] 10726 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10727 len += length(value) + length(field[++i]) 10728 substed = 1 10729 } else 10730 len += 1 + keylen 10731 } 10732 10733 print line 10734} 10735 10736_ACAWK 10737_ACEOF 10738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10739if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10740 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10741else 10742 cat 10743fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10744 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10745_ACEOF 10746 10747# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10748# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10749# trailing colons and then remove the whole line if VPATH becomes empty 10750# (actually we leave an empty line to preserve line numbers). 10751if test "x$srcdir" = x.; then 10752 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10753h 10754s/// 10755s/^/:/ 10756s/[ ]*$/:/ 10757s/:\$(srcdir):/:/g 10758s/:\${srcdir}:/:/g 10759s/:@srcdir@:/:/g 10760s/^:*// 10761s/:*$// 10762x 10763s/\(=[ ]*\).*/\1/ 10764G 10765s/\n// 10766s/^[^=]*=[ ]*$// 10767}' 10768fi 10769 10770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10771fi # test -n "$CONFIG_FILES" 10772 10773# Set up the scripts for CONFIG_HEADERS section. 10774# No need to generate them if there are no CONFIG_HEADERS. 10775# This happens for instance with `./config.status Makefile'. 10776if test -n "$CONFIG_HEADERS"; then 10777cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10778BEGIN { 10779_ACEOF 10780 10781# Transform confdefs.h into an awk script `defines.awk', embedded as 10782# here-document in config.status, that substitutes the proper values into 10783# config.h.in to produce config.h. 10784 10785# Create a delimiter string that does not exist in confdefs.h, to ease 10786# handling of long lines. 10787ac_delim='%!_!# ' 10788for ac_last_try in false false :; do 10789 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10790 if test -z "$ac_tt"; then 10791 break 10792 elif $ac_last_try; then 10793 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10794 else 10795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10796 fi 10797done 10798 10799# For the awk script, D is an array of macro values keyed by name, 10800# likewise P contains macro parameters if any. Preserve backslash 10801# newline sequences. 10802 10803ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10804sed -n ' 10805s/.\{148\}/&'"$ac_delim"'/g 10806t rset 10807:rset 10808s/^[ ]*#[ ]*define[ ][ ]*/ / 10809t def 10810d 10811:def 10812s/\\$// 10813t bsnl 10814s/["\\]/\\&/g 10815s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10816D["\1"]=" \3"/p 10817s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10818d 10819:bsnl 10820s/["\\]/\\&/g 10821s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10822D["\1"]=" \3\\\\\\n"\\/p 10823t cont 10824s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10825t cont 10826d 10827:cont 10828n 10829s/.\{148\}/&'"$ac_delim"'/g 10830t clear 10831:clear 10832s/\\$// 10833t bsnlc 10834s/["\\]/\\&/g; s/^/"/; s/$/"/p 10835d 10836:bsnlc 10837s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10838b cont 10839' <confdefs.h | sed ' 10840s/'"$ac_delim"'/"\\\ 10841"/g' >>$CONFIG_STATUS || ac_write_fail=1 10842 10843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10844 for (key in D) D_is_set[key] = 1 10845 FS = "" 10846} 10847/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10848 line = \$ 0 10849 split(line, arg, " ") 10850 if (arg[1] == "#") { 10851 defundef = arg[2] 10852 mac1 = arg[3] 10853 } else { 10854 defundef = substr(arg[1], 2) 10855 mac1 = arg[2] 10856 } 10857 split(mac1, mac2, "(") #) 10858 macro = mac2[1] 10859 prefix = substr(line, 1, index(line, defundef) - 1) 10860 if (D_is_set[macro]) { 10861 # Preserve the white space surrounding the "#". 10862 print prefix "define", macro P[macro] D[macro] 10863 next 10864 } else { 10865 # Replace #undef with comments. This is necessary, for example, 10866 # in the case of _POSIX_SOURCE, which is predefined and required 10867 # on some systems where configure will not decide to define it. 10868 if (defundef == "undef") { 10869 print "/*", prefix defundef, macro, "*/" 10870 next 10871 } 10872 } 10873} 10874{ print } 10875_ACAWK 10876_ACEOF 10877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10878 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10879fi # test -n "$CONFIG_HEADERS" 10880 10881 10882eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10883shift 10884for ac_tag 10885do 10886 case $ac_tag in 10887 :[FHLC]) ac_mode=$ac_tag; continue;; 10888 esac 10889 case $ac_mode$ac_tag in 10890 :[FHL]*:*);; 10891 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10892 :[FH]-) ac_tag=-:-;; 10893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10894 esac 10895 ac_save_IFS=$IFS 10896 IFS=: 10897 set x $ac_tag 10898 IFS=$ac_save_IFS 10899 shift 10900 ac_file=$1 10901 shift 10902 10903 case $ac_mode in 10904 :L) ac_source=$1;; 10905 :[FH]) 10906 ac_file_inputs= 10907 for ac_f 10908 do 10909 case $ac_f in 10910 -) ac_f="$ac_tmp/stdin";; 10911 *) # Look for the file first in the build tree, then in the source tree 10912 # (if the path is not absolute). The absolute path cannot be DOS-style, 10913 # because $ac_f cannot contain `:'. 10914 test -f "$ac_f" || 10915 case $ac_f in 10916 [\\/$]*) false;; 10917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10918 esac || 10919 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10920 esac 10921 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10922 as_fn_append ac_file_inputs " '$ac_f'" 10923 done 10924 10925 # Let's still pretend it is `configure' which instantiates (i.e., don't 10926 # use $as_me), people would be surprised to read: 10927 # /* config.h. Generated by config.status. */ 10928 configure_input='Generated from '` 10929 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10930 `' by configure.' 10931 if test x"$ac_file" != x-; then 10932 configure_input="$ac_file. $configure_input" 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10934$as_echo "$as_me: creating $ac_file" >&6;} 10935 fi 10936 # Neutralize special characters interpreted by sed in replacement strings. 10937 case $configure_input in #( 10938 *\&* | *\|* | *\\* ) 10939 ac_sed_conf_input=`$as_echo "$configure_input" | 10940 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10941 *) ac_sed_conf_input=$configure_input;; 10942 esac 10943 10944 case $ac_tag in 10945 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10947 esac 10948 ;; 10949 esac 10950 10951 ac_dir=`$as_dirname -- "$ac_file" || 10952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10953 X"$ac_file" : 'X\(//\)[^/]' \| \ 10954 X"$ac_file" : 'X\(//\)$' \| \ 10955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10956$as_echo X"$ac_file" | 10957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10958 s//\1/ 10959 q 10960 } 10961 /^X\(\/\/\)[^/].*/{ 10962 s//\1/ 10963 q 10964 } 10965 /^X\(\/\/\)$/{ 10966 s//\1/ 10967 q 10968 } 10969 /^X\(\/\).*/{ 10970 s//\1/ 10971 q 10972 } 10973 s/.*/./; q'` 10974 as_dir="$ac_dir"; as_fn_mkdir_p 10975 ac_builddir=. 10976 10977case "$ac_dir" in 10978.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10979*) 10980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10981 # A ".." for each directory in $ac_dir_suffix. 10982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10983 case $ac_top_builddir_sub in 10984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10986 esac ;; 10987esac 10988ac_abs_top_builddir=$ac_pwd 10989ac_abs_builddir=$ac_pwd$ac_dir_suffix 10990# for backward compatibility: 10991ac_top_builddir=$ac_top_build_prefix 10992 10993case $srcdir in 10994 .) # We are building in place. 10995 ac_srcdir=. 10996 ac_top_srcdir=$ac_top_builddir_sub 10997 ac_abs_top_srcdir=$ac_pwd ;; 10998 [\\/]* | ?:[\\/]* ) # Absolute name. 10999 ac_srcdir=$srcdir$ac_dir_suffix; 11000 ac_top_srcdir=$srcdir 11001 ac_abs_top_srcdir=$srcdir ;; 11002 *) # Relative name. 11003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11004 ac_top_srcdir=$ac_top_build_prefix$srcdir 11005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11006esac 11007ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11008 11009 11010 case $ac_mode in 11011 :F) 11012 # 11013 # CONFIG_FILE 11014 # 11015 11016 case $INSTALL in 11017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11018 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11019 esac 11020_ACEOF 11021 11022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11023# If the template does not know about datarootdir, expand it. 11024# FIXME: This hack should be removed a few years after 2.60. 11025ac_datarootdir_hack=; ac_datarootdir_seen= 11026ac_sed_dataroot=' 11027/datarootdir/ { 11028 p 11029 q 11030} 11031/@datadir@/p 11032/@docdir@/p 11033/@infodir@/p 11034/@localedir@/p 11035/@mandir@/p' 11036case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11037*datarootdir*) ac_datarootdir_seen=yes;; 11038*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11040$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11041_ACEOF 11042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11043 ac_datarootdir_hack=' 11044 s&@datadir@&$datadir&g 11045 s&@docdir@&$docdir&g 11046 s&@infodir@&$infodir&g 11047 s&@localedir@&$localedir&g 11048 s&@mandir@&$mandir&g 11049 s&\\\${datarootdir}&$datarootdir&g' ;; 11050esac 11051_ACEOF 11052 11053# Neutralize VPATH when `$srcdir' = `.'. 11054# Shell code in configure.ac might set extrasub. 11055# FIXME: do we really want to maintain this feature? 11056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11057ac_sed_extra="$ac_vpsub 11058$extrasub 11059_ACEOF 11060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11061:t 11062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11063s|@configure_input@|$ac_sed_conf_input|;t t 11064s&@top_builddir@&$ac_top_builddir_sub&;t t 11065s&@top_build_prefix@&$ac_top_build_prefix&;t t 11066s&@srcdir@&$ac_srcdir&;t t 11067s&@abs_srcdir@&$ac_abs_srcdir&;t t 11068s&@top_srcdir@&$ac_top_srcdir&;t t 11069s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11070s&@builddir@&$ac_builddir&;t t 11071s&@abs_builddir@&$ac_abs_builddir&;t t 11072s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11073s&@INSTALL@&$ac_INSTALL&;t t 11074$ac_datarootdir_hack 11075" 11076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11077 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11078 11079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11080 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11082 "$ac_tmp/out"`; test -z "$ac_out"; } && 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11084which seems to be undefined. Please make sure it is defined" >&5 11085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11086which seems to be undefined. Please make sure it is defined" >&2;} 11087 11088 rm -f "$ac_tmp/stdin" 11089 case $ac_file in 11090 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11091 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11092 esac \ 11093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11094 ;; 11095 :H) 11096 # 11097 # CONFIG_HEADER 11098 # 11099 if test x"$ac_file" != x-; then 11100 { 11101 $as_echo "/* $configure_input */" \ 11102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11103 } >"$ac_tmp/config.h" \ 11104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11105 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11107$as_echo "$as_me: $ac_file is unchanged" >&6;} 11108 else 11109 rm -f "$ac_file" 11110 mv "$ac_tmp/config.h" "$ac_file" \ 11111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11112 fi 11113 else 11114 $as_echo "/* $configure_input */" \ 11115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11116 || as_fn_error $? "could not create -" "$LINENO" 5 11117 fi 11118 ;; 11119 11120 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11121$as_echo "$as_me: executing $ac_file commands" >&6;} 11122 ;; 11123 esac 11124 11125 11126 case $ac_file$ac_mode in 11127 "default-1":C) for ac_file in $CONFIG_HEADERS; do 11128 test $ac_file = include/click/config.h:config.h.in && echo > stamp-h 11129done 11130for ac_file in $CONFIG_FILES; do 11131 test $ac_file = click-buildtool && chmod +x click-buildtool 11132 test -z "$GMAKE" && echo $ac_file | grep Makefile >/dev/null && $ac_given_srcdir/missing gmake $ac_file 11133done ;; 11134 11135 esac 11136done # for ac_tag 11137 11138 11139as_fn_exit 0 11140_ACEOF 11141ac_clean_files=$ac_clean_files_save 11142 11143test $ac_write_fail = 0 || 11144 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11145 11146 11147# configure is writing to config.log, and then calls config.status. 11148# config.status does its own redirection, appending to config.log. 11149# Unfortunately, on DOS this fails, as config.log is still kept open 11150# by configure, so config.status won't be able to write to it; its 11151# output is simply discarded. So we exec the FD to /dev/null, 11152# effectively closing config.log, so it can be properly (re)opened and 11153# appended to by config.status. When coming back to configure, we 11154# need to make the FD available again. 11155if test "$no_create" != yes; then 11156 ac_cs_success=: 11157 ac_config_status_args= 11158 test "$silent" = yes && 11159 ac_config_status_args="$ac_config_status_args --quiet" 11160 exec 5>/dev/null 11161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11162 exec 5>>config.log 11163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11164 # would make configure fail if this is the last instruction. 11165 $ac_cs_success || as_fn_exit 1 11166fi 11167if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11169$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11170fi 11171 11172