1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for netperf 2.7.0. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1" 176 if (eval "$as_required") 2>/dev/null; then : 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 182 183else 184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 185as_found=false 186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 187do 188 IFS=$as_save_IFS 189 test -z "$as_dir" && as_dir=. 190 as_found=: 191 case $as_dir in #( 192 /*) 193 for as_base in sh bash ksh sh5; do 194 # Try only shells that exist, to save several forks. 195 as_shell=$as_dir/$as_base 196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 198 CONFIG_SHELL=$as_shell as_have_required=yes 199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 break 2 201fi 202fi 203 done;; 204 esac 205 as_found=false 206done 207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 209 CONFIG_SHELL=$SHELL as_have_required=yes 210fi; } 211IFS=$as_save_IFS 212 213 214 if test "x$CONFIG_SHELL" != x; then : 215 # We cannot yet assume a decent shell, so we have to provide a 216 # neutralization value for shells without unset; and this also 217 # works around shells that cannot unset nonexistent variables. 218 # Preserve -v and -x to the replacement shell. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 case $- in # (((( 224 *v*x* | *x*v* ) as_opts=-vx ;; 225 *v* ) as_opts=-v ;; 226 *x* ) as_opts=-x ;; 227 * ) as_opts= ;; 228 esac 229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 230fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 240$0: including any error possibly output before this 241$0: message. Then install a modern shell, or manually run 242$0: the script under such a shell if you do have one." 243 fi 244 exit 1 245fi 246fi 247fi 248SHELL=${CONFIG_SHELL-/bin/sh} 249export SHELL 250# Unset more variables known to interfere with behavior of common tools. 251CLICOLOR_FORCE= GREP_OPTIONS= 252unset CLICOLOR_FORCE GREP_OPTIONS 253 254## --------------------- ## 255## M4sh Shell Functions. ## 256## --------------------- ## 257# as_fn_unset VAR 258# --------------- 259# Portably unset VAR. 260as_fn_unset () 261{ 262 { eval $1=; unset $1;} 263} 264as_unset=as_fn_unset 265 266# as_fn_set_status STATUS 267# ----------------------- 268# Set $? to STATUS, without forking. 269as_fn_set_status () 270{ 271 return $1 272} # as_fn_set_status 273 274# as_fn_exit STATUS 275# ----------------- 276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 277as_fn_exit () 278{ 279 set +e 280 as_fn_set_status $1 281 exit $1 282} # as_fn_exit 283 284# as_fn_mkdir_p 285# ------------- 286# Create "$as_dir" as a directory, including parents if necessary. 287as_fn_mkdir_p () 288{ 289 290 case $as_dir in #( 291 -*) as_dir=./$as_dir;; 292 esac 293 test -d "$as_dir" || eval $as_mkdir_p || { 294 as_dirs= 295 while :; do 296 case $as_dir in #( 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 298 *) as_qdir=$as_dir;; 299 esac 300 as_dirs="'$as_qdir' $as_dirs" 301 as_dir=`$as_dirname -- "$as_dir" || 302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 303 X"$as_dir" : 'X\(//\)[^/]' \| \ 304 X"$as_dir" : 'X\(//\)$' \| \ 305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 306$as_echo X"$as_dir" | 307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)[^/].*/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\).*/{ 320 s//\1/ 321 q 322 } 323 s/.*/./; q'` 324 test -d "$as_dir" && break 325 done 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 328 329 330} # as_fn_mkdir_p 331# as_fn_append VAR VALUE 332# ---------------------- 333# Append the text in VALUE to the end of the definition contained in VAR. Take 334# advantage of any shell optimizations that allow amortized linear growth over 335# repeated appends, instead of the typical quadratic growth present in naive 336# implementations. 337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 338 eval 'as_fn_append () 339 { 340 eval $1+=\$2 341 }' 342else 343 as_fn_append () 344 { 345 eval $1=\$$1\$2 346 } 347fi # as_fn_append 348 349# as_fn_arith ARG... 350# ------------------ 351# Perform arithmetic evaluation on the ARGs, and store the result in the 352# global $as_val. Take advantage of shells that can avoid forks. The arguments 353# must be portable across $(()) and expr. 354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 355 eval 'as_fn_arith () 356 { 357 as_val=$(( $* )) 358 }' 359else 360 as_fn_arith () 361 { 362 as_val=`expr "$@" || test $? -eq 1` 363 } 364fi # as_fn_arith 365 366 367# as_fn_error STATUS ERROR [LINENO LOG_FD] 368# ---------------------------------------- 369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 371# script with STATUS, using 1 if that was 0. 372as_fn_error () 373{ 374 as_status=$1; test $as_status -eq 0 && as_status=1 375 if test "$4"; then 376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 378 fi 379 $as_echo "$as_me: error: $2" >&2 380 as_fn_exit $as_status 381} # as_fn_error 382 383if expr a : '\(a\)' >/dev/null 2>&1 && 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 385 as_expr=expr 386else 387 as_expr=false 388fi 389 390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 391 as_basename=basename 392else 393 as_basename=false 394fi 395 396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 397 as_dirname=dirname 398else 399 as_dirname=false 400fi 401 402as_me=`$as_basename -- "$0" || 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 404 X"$0" : 'X\(//\)$' \| \ 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 406$as_echo X/"$0" | 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\/\)$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\).*/{ 416 s//\1/ 417 q 418 } 419 s/.*/./; q'` 420 421# Avoid depending upon Character Ranges. 422as_cr_letters='abcdefghijklmnopqrstuvwxyz' 423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 424as_cr_Letters=$as_cr_letters$as_cr_LETTERS 425as_cr_digits='0123456789' 426as_cr_alnum=$as_cr_Letters$as_cr_digits 427 428 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO 430 as_lineno_2=$LINENO as_lineno_2a=$LINENO 431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 451 452 # Don't try to exec as it changes $[0], causing all sort of problems 453 # (the dirname of $[0] is not the place where we might find the 454 # original and so on. Autoconf is especially sensitive to this). 455 . "./$as_me.lineno" 456 # Exit status is that of the last command. 457 exit 458} 459 460ECHO_C= ECHO_N= ECHO_T= 461case `echo -n x` in #((((( 462-n*) 463 case `echo 'xy\c'` in 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 465 xy) ECHO_C='\c';; 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 467 ECHO_T=' ';; 468 esac;; 469*) 470 ECHO_N='-n';; 471esac 472 473rm -f conf$$ conf$$.exe conf$$.file 474if test -d conf$$.dir; then 475 rm -f conf$$.dir/conf$$.file 476else 477 rm -f conf$$.dir 478 mkdir conf$$.dir 2>/dev/null 479fi 480if (echo >conf$$.file) 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s='ln -s' 483 # ... but there are two gotchas: 484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 486 # In both cases, we have to default to `cp -p'. 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 488 as_ln_s='cp -p' 489 elif ln conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s=ln 491 else 492 as_ln_s='cp -p' 493 fi 494else 495 as_ln_s='cp -p' 496fi 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 498rmdir conf$$.dir 2>/dev/null 499 500if mkdir -p . 2>/dev/null; then 501 as_mkdir_p='mkdir -p "$as_dir"' 502else 503 test -d ./-p && rmdir ./-p 504 as_mkdir_p=false 505fi 506 507if test -x / >/dev/null 2>&1; then 508 as_test_x='test -x' 509else 510 if ls -dL / >/dev/null 2>&1; then 511 as_ls_L_option=L 512 else 513 as_ls_L_option= 514 fi 515 as_test_x=' 516 eval sh -c '\'' 517 if test -d "$1"; then 518 test -d "$1/."; 519 else 520 case $1 in #( 521 -*)set "./$1";; 522 esac; 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 524 ???[sx]*):;;*)false;;esac;fi 525 '\'' sh 526 ' 527fi 528as_executable_p=$as_test_x 529 530# Sed expression to map a string onto a valid CPP name. 531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532 533# Sed expression to map a string onto a valid variable name. 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535 536 537test -n "$DJDIR" || exec 7<&0 </dev/null 538exec 6>&1 539 540# Name of the host. 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 542# so uname gets run too. 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 544 545# 546# Initializations. 547# 548ac_default_prefix=/usr/local 549ac_clean_files= 550ac_config_libobj_dir=. 551LIBOBJS= 552cross_compiling=no 553subdirs= 554MFLAGS= 555MAKEFLAGS= 556 557# Identity of this package. 558PACKAGE_NAME='netperf' 559PACKAGE_TARNAME='netperf' 560PACKAGE_VERSION='2.7.0' 561PACKAGE_STRING='netperf 2.7.0' 562PACKAGE_BUGREPORT='' 563PACKAGE_URL='' 564 565ac_unique_file="src/hist.h" 566ac_config_libobj_dir=src/missing 567# Factoring default headers for most tests. 568ac_includes_default="\ 569#include <stdio.h> 570#ifdef HAVE_SYS_TYPES_H 571# include <sys/types.h> 572#endif 573#ifdef HAVE_SYS_STAT_H 574# include <sys/stat.h> 575#endif 576#ifdef STDC_HEADERS 577# include <stdlib.h> 578# include <stddef.h> 579#else 580# ifdef HAVE_STDLIB_H 581# include <stdlib.h> 582# endif 583#endif 584#ifdef HAVE_STRING_H 585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 586# include <memory.h> 587# endif 588# include <string.h> 589#endif 590#ifdef HAVE_STRINGS_H 591# include <strings.h> 592#endif 593#ifdef HAVE_INTTYPES_H 594# include <inttypes.h> 595#endif 596#ifdef HAVE_STDINT_H 597# include <stdint.h> 598#endif 599#ifdef HAVE_UNISTD_H 600# include <unistd.h> 601#endif" 602 603ac_header_list= 604ac_subst_vars='am__EXEEXT_FALSE 605am__EXEEXT_TRUE 606LTLIBOBJS 607NETCPU_SOURCE 608NEED_LIBCOMPAT_FALSE 609NEED_LIBCOMPAT_TRUE 610LIBOBJS 611EGREP 612GREP 613CPP 614RANLIB 615am__fastdepCC_FALSE 616am__fastdepCC_TRUE 617CCDEPMODE 618am__nodep 619AMDEPBACKSLASH 620AMDEP_FALSE 621AMDEP_TRUE 622am__quote 623am__include 624DEPDIR 625OBJEXT 626EXEEXT 627ac_ct_CC 628CPPFLAGS 629LDFLAGS 630CFLAGS 631CC 632am__untar 633am__tar 634AMTAR 635am__leading_dot 636SET_MAKE 637AWK 638mkdir_p 639MKDIR_P 640INSTALL_STRIP_PROGRAM 641STRIP 642install_sh 643MAKEINFO 644AUTOHEADER 645AUTOMAKE 646AUTOCONF 647ACLOCAL 648VERSION 649PACKAGE 650CYGPATH_W 651am__isrc 652INSTALL_DATA 653INSTALL_SCRIPT 654INSTALL_PROGRAM 655target_os 656target_vendor 657target_cpu 658target 659host_os 660host_vendor 661host_cpu 662host 663build_os 664build_vendor 665build_cpu 666build 667target_alias 668host_alias 669build_alias 670LIBS 671ECHO_T 672ECHO_N 673ECHO_C 674DEFS 675mandir 676localedir 677libdir 678psdir 679pdfdir 680dvidir 681htmldir 682infodir 683docdir 684oldincludedir 685includedir 686localstatedir 687sharedstatedir 688sysconfdir 689datadir 690datarootdir 691libexecdir 692sbindir 693bindir 694program_transform_name 695prefix 696exec_prefix 697PACKAGE_URL 698PACKAGE_BUGREPORT 699PACKAGE_STRING 700PACKAGE_VERSION 701PACKAGE_TARNAME 702PACKAGE_NAME 703PATH_SEPARATOR 704SHELL' 705ac_subst_files='' 706ac_user_opts=' 707enable_option_checking 708enable_dependency_tracking 709enable_largefile 710enable_histogram 711enable_dirty 712enable_demo 713enable_unixdomain 714enable_dlpi 715enable_dccp 716enable_omni 717enable_xti 718enable_sdp 719enable_exs 720enable_sctp 721enable_intervals 722enable_spin 723enable_burst 724enable_cpuutil 725' 726 ac_precious_vars='build_alias 727host_alias 728target_alias 729CC 730CFLAGS 731LDFLAGS 732LIBS 733CPPFLAGS 734CPP' 735 736 737# Initialize some variables set by options. 738ac_init_help= 739ac_init_version=false 740ac_unrecognized_opts= 741ac_unrecognized_sep= 742# The variables have the same names as the options, with 743# dashes changed to underlines. 744cache_file=/dev/null 745exec_prefix=NONE 746no_create= 747no_recursion= 748prefix=NONE 749program_prefix=NONE 750program_suffix=NONE 751program_transform_name=s,x,x, 752silent= 753site= 754srcdir= 755verbose= 756x_includes=NONE 757x_libraries=NONE 758 759# Installation directory options. 760# These are left unexpanded so users can "make install exec_prefix=/foo" 761# and all the variables that are supposed to be based on exec_prefix 762# by default will actually change. 763# Use braces instead of parens because sh, perl, etc. also accept them. 764# (The list follows the same order as the GNU Coding Standards.) 765bindir='${exec_prefix}/bin' 766sbindir='${exec_prefix}/sbin' 767libexecdir='${exec_prefix}/libexec' 768datarootdir='${prefix}/share' 769datadir='${datarootdir}' 770sysconfdir='${prefix}/etc' 771sharedstatedir='${prefix}/com' 772localstatedir='${prefix}/var' 773includedir='${prefix}/include' 774oldincludedir='/usr/include' 775docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 776infodir='${datarootdir}/info' 777htmldir='${docdir}' 778dvidir='${docdir}' 779pdfdir='${docdir}' 780psdir='${docdir}' 781libdir='${exec_prefix}/lib' 782localedir='${datarootdir}/locale' 783mandir='${datarootdir}/man' 784 785ac_prev= 786ac_dashdash= 787for ac_option 788do 789 # If the previous option needs an argument, assign it. 790 if test -n "$ac_prev"; then 791 eval $ac_prev=\$ac_option 792 ac_prev= 793 continue 794 fi 795 796 case $ac_option in 797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 798 *=) ac_optarg= ;; 799 *) ac_optarg=yes ;; 800 esac 801 802 # Accept the important Cygnus configure options, so we can diagnose typos. 803 804 case $ac_dashdash$ac_option in 805 --) 806 ac_dashdash=yes ;; 807 808 -bindir | --bindir | --bindi | --bind | --bin | --bi) 809 ac_prev=bindir ;; 810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 811 bindir=$ac_optarg ;; 812 813 -build | --build | --buil | --bui | --bu) 814 ac_prev=build_alias ;; 815 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 816 build_alias=$ac_optarg ;; 817 818 -cache-file | --cache-file | --cache-fil | --cache-fi \ 819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 820 ac_prev=cache_file ;; 821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 823 cache_file=$ac_optarg ;; 824 825 --config-cache | -C) 826 cache_file=config.cache ;; 827 828 -datadir | --datadir | --datadi | --datad) 829 ac_prev=datadir ;; 830 -datadir=* | --datadir=* | --datadi=* | --datad=*) 831 datadir=$ac_optarg ;; 832 833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 834 | --dataroo | --dataro | --datar) 835 ac_prev=datarootdir ;; 836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 838 datarootdir=$ac_optarg ;; 839 840 -disable-* | --disable-*) 841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 842 # Reject names that are not valid shell variable names. 843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 844 as_fn_error $? "invalid feature name: $ac_useropt" 845 ac_useropt_orig=$ac_useropt 846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 847 case $ac_user_opts in 848 *" 849"enable_$ac_useropt" 850"*) ;; 851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 852 ac_unrecognized_sep=', ';; 853 esac 854 eval enable_$ac_useropt=no ;; 855 856 -docdir | --docdir | --docdi | --doc | --do) 857 ac_prev=docdir ;; 858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 859 docdir=$ac_optarg ;; 860 861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 862 ac_prev=dvidir ;; 863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 864 dvidir=$ac_optarg ;; 865 866 -enable-* | --enable-*) 867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 868 # Reject names that are not valid shell variable names. 869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 870 as_fn_error $? "invalid feature name: $ac_useropt" 871 ac_useropt_orig=$ac_useropt 872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 873 case $ac_user_opts in 874 *" 875"enable_$ac_useropt" 876"*) ;; 877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 878 ac_unrecognized_sep=', ';; 879 esac 880 eval enable_$ac_useropt=\$ac_optarg ;; 881 882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 884 | --exec | --exe | --ex) 885 ac_prev=exec_prefix ;; 886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 888 | --exec=* | --exe=* | --ex=*) 889 exec_prefix=$ac_optarg ;; 890 891 -gas | --gas | --ga | --g) 892 # Obsolete; use --with-gas. 893 with_gas=yes ;; 894 895 -help | --help | --hel | --he | -h) 896 ac_init_help=long ;; 897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 898 ac_init_help=recursive ;; 899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 900 ac_init_help=short ;; 901 902 -host | --host | --hos | --ho) 903 ac_prev=host_alias ;; 904 -host=* | --host=* | --hos=* | --ho=*) 905 host_alias=$ac_optarg ;; 906 907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 908 ac_prev=htmldir ;; 909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 910 | --ht=*) 911 htmldir=$ac_optarg ;; 912 913 -includedir | --includedir | --includedi | --included | --include \ 914 | --includ | --inclu | --incl | --inc) 915 ac_prev=includedir ;; 916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 917 | --includ=* | --inclu=* | --incl=* | --inc=*) 918 includedir=$ac_optarg ;; 919 920 -infodir | --infodir | --infodi | --infod | --info | --inf) 921 ac_prev=infodir ;; 922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 923 infodir=$ac_optarg ;; 924 925 -libdir | --libdir | --libdi | --libd) 926 ac_prev=libdir ;; 927 -libdir=* | --libdir=* | --libdi=* | --libd=*) 928 libdir=$ac_optarg ;; 929 930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 931 | --libexe | --libex | --libe) 932 ac_prev=libexecdir ;; 933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 934 | --libexe=* | --libex=* | --libe=*) 935 libexecdir=$ac_optarg ;; 936 937 -localedir | --localedir | --localedi | --localed | --locale) 938 ac_prev=localedir ;; 939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 940 localedir=$ac_optarg ;; 941 942 -localstatedir | --localstatedir | --localstatedi | --localstated \ 943 | --localstate | --localstat | --localsta | --localst | --locals) 944 ac_prev=localstatedir ;; 945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 947 localstatedir=$ac_optarg ;; 948 949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 950 ac_prev=mandir ;; 951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 952 mandir=$ac_optarg ;; 953 954 -nfp | --nfp | --nf) 955 # Obsolete; use --without-fp. 956 with_fp=no ;; 957 958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 959 | --no-cr | --no-c | -n) 960 no_create=yes ;; 961 962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 964 no_recursion=yes ;; 965 966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 968 | --oldin | --oldi | --old | --ol | --o) 969 ac_prev=oldincludedir ;; 970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 973 oldincludedir=$ac_optarg ;; 974 975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 976 ac_prev=prefix ;; 977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 978 prefix=$ac_optarg ;; 979 980 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 981 | --program-pre | --program-pr | --program-p) 982 ac_prev=program_prefix ;; 983 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 985 program_prefix=$ac_optarg ;; 986 987 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 988 | --program-suf | --program-su | --program-s) 989 ac_prev=program_suffix ;; 990 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 992 program_suffix=$ac_optarg ;; 993 994 -program-transform-name | --program-transform-name \ 995 | --program-transform-nam | --program-transform-na \ 996 | --program-transform-n | --program-transform- \ 997 | --program-transform | --program-transfor \ 998 | --program-transfo | --program-transf \ 999 | --program-trans | --program-tran \ 1000 | --progr-tra | --program-tr | --program-t) 1001 ac_prev=program_transform_name ;; 1002 -program-transform-name=* | --program-transform-name=* \ 1003 | --program-transform-nam=* | --program-transform-na=* \ 1004 | --program-transform-n=* | --program-transform-=* \ 1005 | --program-transform=* | --program-transfor=* \ 1006 | --program-transfo=* | --program-transf=* \ 1007 | --program-trans=* | --program-tran=* \ 1008 | --progr-tra=* | --program-tr=* | --program-t=*) 1009 program_transform_name=$ac_optarg ;; 1010 1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1012 ac_prev=pdfdir ;; 1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1014 pdfdir=$ac_optarg ;; 1015 1016 -psdir | --psdir | --psdi | --psd | --ps) 1017 ac_prev=psdir ;; 1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1019 psdir=$ac_optarg ;; 1020 1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1022 | -silent | --silent | --silen | --sile | --sil) 1023 silent=yes ;; 1024 1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1026 ac_prev=sbindir ;; 1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1028 | --sbi=* | --sb=*) 1029 sbindir=$ac_optarg ;; 1030 1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1033 | --sharedst | --shareds | --shared | --share | --shar \ 1034 | --sha | --sh) 1035 ac_prev=sharedstatedir ;; 1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1039 | --sha=* | --sh=*) 1040 sharedstatedir=$ac_optarg ;; 1041 1042 -site | --site | --sit) 1043 ac_prev=site ;; 1044 -site=* | --site=* | --sit=*) 1045 site=$ac_optarg ;; 1046 1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1048 ac_prev=srcdir ;; 1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1050 srcdir=$ac_optarg ;; 1051 1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1053 | --syscon | --sysco | --sysc | --sys | --sy) 1054 ac_prev=sysconfdir ;; 1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1057 sysconfdir=$ac_optarg ;; 1058 1059 -target | --target | --targe | --targ | --tar | --ta | --t) 1060 ac_prev=target_alias ;; 1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1062 target_alias=$ac_optarg ;; 1063 1064 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1065 verbose=yes ;; 1066 1067 -version | --version | --versio | --versi | --vers | -V) 1068 ac_init_version=: ;; 1069 1070 -with-* | --with-*) 1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1074 as_fn_error $? "invalid package name: $ac_useropt" 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079"with_$ac_useropt" 1080"*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval with_$ac_useropt=\$ac_optarg ;; 1085 1086 -without-* | --without-*) 1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1090 as_fn_error $? "invalid package name: $ac_useropt" 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"with_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval with_$ac_useropt=no ;; 1101 1102 --x) 1103 # Obsolete; use --with-x. 1104 with_x=yes ;; 1105 1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1107 | --x-incl | --x-inc | --x-in | --x-i) 1108 ac_prev=x_includes ;; 1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1111 x_includes=$ac_optarg ;; 1112 1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1115 ac_prev=x_libraries ;; 1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1118 x_libraries=$ac_optarg ;; 1119 1120 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1121Try \`$0 --help' for more information" 1122 ;; 1123 1124 *=*) 1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1126 # Reject names that are not valid shell variable names. 1127 case $ac_envvar in #( 1128 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1130 esac 1131 eval $ac_envvar=\$ac_optarg 1132 export $ac_envvar ;; 1133 1134 *) 1135 # FIXME: should be removed in autoconf 3.0. 1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1140 ;; 1141 1142 esac 1143done 1144 1145if test -n "$ac_prev"; then 1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1147 as_fn_error $? "missing argument to $ac_option" 1148fi 1149 1150if test -n "$ac_unrecognized_opts"; then 1151 case $enable_option_checking in 1152 no) ;; 1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1155 esac 1156fi 1157 1158# Check all directory arguments for consistency. 1159for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1160 datadir sysconfdir sharedstatedir localstatedir includedir \ 1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1162 libdir localedir mandir 1163do 1164 eval ac_val=\$$ac_var 1165 # Remove trailing slashes. 1166 case $ac_val in 1167 */ ) 1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1169 eval $ac_var=\$ac_val;; 1170 esac 1171 # Be sure to have absolute directory names. 1172 case $ac_val in 1173 [\\/$]* | ?:[\\/]* ) continue;; 1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1175 esac 1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1177done 1178 1179# There might be people who depend on the old broken behavior: `$host' 1180# used to hold the argument of --host etc. 1181# FIXME: To remove some day. 1182build=$build_alias 1183host=$host_alias 1184target=$target_alias 1185 1186# FIXME: To remove some day. 1187if test "x$host_alias" != x; then 1188 if test "x$build_alias" = x; then 1189 cross_compiling=maybe 1190 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1191 If a cross compiler is detected then cross compile mode will be used" >&2 1192 elif test "x$build_alias" != "x$host_alias"; then 1193 cross_compiling=yes 1194 fi 1195fi 1196 1197ac_tool_prefix= 1198test -n "$host_alias" && ac_tool_prefix=$host_alias- 1199 1200test "$silent" = yes && exec 6>/dev/null 1201 1202 1203ac_pwd=`pwd` && test -n "$ac_pwd" && 1204ac_ls_di=`ls -di .` && 1205ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1206 as_fn_error $? "working directory cannot be determined" 1207test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1208 as_fn_error $? "pwd does not report name of working directory" 1209 1210 1211# Find the source files, if location was not specified. 1212if test -z "$srcdir"; then 1213 ac_srcdir_defaulted=yes 1214 # Try the directory containing this script, then the parent directory. 1215 ac_confdir=`$as_dirname -- "$as_myself" || 1216$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1217 X"$as_myself" : 'X\(//\)[^/]' \| \ 1218 X"$as_myself" : 'X\(//\)$' \| \ 1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1220$as_echo X"$as_myself" | 1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1222 s//\1/ 1223 q 1224 } 1225 /^X\(\/\/\)[^/].*/{ 1226 s//\1/ 1227 q 1228 } 1229 /^X\(\/\/\)$/{ 1230 s//\1/ 1231 q 1232 } 1233 /^X\(\/\).*/{ 1234 s//\1/ 1235 q 1236 } 1237 s/.*/./; q'` 1238 srcdir=$ac_confdir 1239 if test ! -r "$srcdir/$ac_unique_file"; then 1240 srcdir=.. 1241 fi 1242else 1243 ac_srcdir_defaulted=no 1244fi 1245if test ! -r "$srcdir/$ac_unique_file"; then 1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1247 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1248fi 1249ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1250ac_abs_confdir=`( 1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1252 pwd)` 1253# When building in place, set srcdir=. 1254if test "$ac_abs_confdir" = "$ac_pwd"; then 1255 srcdir=. 1256fi 1257# Remove unnecessary trailing slashes from srcdir. 1258# Double slashes in file names in object file debugging info 1259# mess up M-x gdb in Emacs. 1260case $srcdir in 1261*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1262esac 1263for ac_var in $ac_precious_vars; do 1264 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1265 eval ac_env_${ac_var}_value=\$${ac_var} 1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1267 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1268done 1269 1270# 1271# Report the --help message. 1272# 1273if test "$ac_init_help" = "long"; then 1274 # Omit some internal or obsolete options to make the list less imposing. 1275 # This message is too long to be a string in the A/UX 3.1 sh. 1276 cat <<_ACEOF 1277\`configure' configures netperf 2.7.0 to adapt to many kinds of systems. 1278 1279Usage: $0 [OPTION]... [VAR=VALUE]... 1280 1281To assign environment variables (e.g., CC, CFLAGS...), specify them as 1282VAR=VALUE. See below for descriptions of some of the useful variables. 1283 1284Defaults for the options are specified in brackets. 1285 1286Configuration: 1287 -h, --help display this help and exit 1288 --help=short display options specific to this package 1289 --help=recursive display the short help of all the included packages 1290 -V, --version display version information and exit 1291 -q, --quiet, --silent do not print \`checking ...' messages 1292 --cache-file=FILE cache test results in FILE [disabled] 1293 -C, --config-cache alias for \`--cache-file=config.cache' 1294 -n, --no-create do not create output files 1295 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1296 1297Installation directories: 1298 --prefix=PREFIX install architecture-independent files in PREFIX 1299 [$ac_default_prefix] 1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1301 [PREFIX] 1302 1303By default, \`make install' will install all the files in 1304\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1305an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1306for instance \`--prefix=\$HOME'. 1307 1308For better control, use the options below. 1309 1310Fine tuning of the installation directories: 1311 --bindir=DIR user executables [EPREFIX/bin] 1312 --sbindir=DIR system admin executables [EPREFIX/sbin] 1313 --libexecdir=DIR program executables [EPREFIX/libexec] 1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1317 --libdir=DIR object code libraries [EPREFIX/lib] 1318 --includedir=DIR C header files [PREFIX/include] 1319 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1322 --infodir=DIR info documentation [DATAROOTDIR/info] 1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1324 --mandir=DIR man documentation [DATAROOTDIR/man] 1325 --docdir=DIR documentation root [DATAROOTDIR/doc/netperf] 1326 --htmldir=DIR html documentation [DOCDIR] 1327 --dvidir=DIR dvi documentation [DOCDIR] 1328 --pdfdir=DIR pdf documentation [DOCDIR] 1329 --psdir=DIR ps documentation [DOCDIR] 1330_ACEOF 1331 1332 cat <<\_ACEOF 1333 1334Program names: 1335 --program-prefix=PREFIX prepend PREFIX to installed program names 1336 --program-suffix=SUFFIX append SUFFIX to installed program names 1337 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1338 1339System types: 1340 --build=BUILD configure for building on BUILD [guessed] 1341 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1342 --target=TARGET configure for building compilers for TARGET [HOST] 1343_ACEOF 1344fi 1345 1346if test -n "$ac_init_help"; then 1347 case $ac_init_help in 1348 short | recursive ) echo "Configuration of netperf 2.7.0:";; 1349 esac 1350 cat <<\_ACEOF 1351 1352Optional Features: 1353 --disable-option-checking ignore unrecognized --enable/--with options 1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1356 --disable-dependency-tracking speeds up one-time build 1357 --enable-dependency-tracking do not reject slow dependency extractors 1358 --disable-largefile omit support for large files 1359 --enable-histogram include individual op timing, may affect result 1360 --enable-dirty write to buffers each time, may affect result 1361 --enable-demo emit interim results during the run. May affect 1362 results. 1363 --enable-unixdomain include Unix Domain socket tests 1364 --enable-dlpi include DLPI (link-layer) tests 1365 --enable-dccp include DCCP tests 1366 --enable-omni include OMNI tests 1367 --enable-xti include XTI socket tests 1368 --enable-sdp include SDP socket tests 1369 --enable-exs include ICSC async sockets tests 1370 --enable-sctp include tests to measure SCTP performance 1371 --enable-intervals include ability to pace operations, may affect 1372 result 1373 --enable-spin paced operations (--enable-intervals) should sit and 1374 spin - WILL affect result 1375 --enable-burst include intial request burst ability in _RR tests, 1376 may affect result 1377 --enable-cpuutil include code to measure CPU utilization using 1378 specified mechanism 1379 1380Some influential environment variables: 1381 CC C compiler command 1382 CFLAGS C compiler flags 1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1384 nonstandard directory <lib dir> 1385 LIBS libraries to pass to the linker, e.g. -l<library> 1386 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1387 you have headers in a nonstandard directory <include dir> 1388 CPP C preprocessor 1389 1390Use these variables to override the choices made by `configure' or to help 1391it to find libraries and programs with nonstandard names/locations. 1392 1393Report bugs to the package provider. 1394_ACEOF 1395ac_status=$? 1396fi 1397 1398if test "$ac_init_help" = "recursive"; then 1399 # If there are subdirs, report their specific --help. 1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1401 test -d "$ac_dir" || 1402 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1403 continue 1404 ac_builddir=. 1405 1406case "$ac_dir" in 1407.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1408*) 1409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1410 # A ".." for each directory in $ac_dir_suffix. 1411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1412 case $ac_top_builddir_sub in 1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1415 esac ;; 1416esac 1417ac_abs_top_builddir=$ac_pwd 1418ac_abs_builddir=$ac_pwd$ac_dir_suffix 1419# for backward compatibility: 1420ac_top_builddir=$ac_top_build_prefix 1421 1422case $srcdir in 1423 .) # We are building in place. 1424 ac_srcdir=. 1425 ac_top_srcdir=$ac_top_builddir_sub 1426 ac_abs_top_srcdir=$ac_pwd ;; 1427 [\\/]* | ?:[\\/]* ) # Absolute name. 1428 ac_srcdir=$srcdir$ac_dir_suffix; 1429 ac_top_srcdir=$srcdir 1430 ac_abs_top_srcdir=$srcdir ;; 1431 *) # Relative name. 1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1433 ac_top_srcdir=$ac_top_build_prefix$srcdir 1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1435esac 1436ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1437 1438 cd "$ac_dir" || { ac_status=$?; continue; } 1439 # Check for guested configure. 1440 if test -f "$ac_srcdir/configure.gnu"; then 1441 echo && 1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1443 elif test -f "$ac_srcdir/configure"; then 1444 echo && 1445 $SHELL "$ac_srcdir/configure" --help=recursive 1446 else 1447 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1448 fi || ac_status=$? 1449 cd "$ac_pwd" || { ac_status=$?; break; } 1450 done 1451fi 1452 1453test -n "$ac_init_help" && exit $ac_status 1454if $ac_init_version; then 1455 cat <<\_ACEOF 1456netperf configure 2.7.0 1457generated by GNU Autoconf 2.68 1458 1459Copyright (C) 2010 Free Software Foundation, Inc. 1460This configure script is free software; the Free Software Foundation 1461gives unlimited permission to copy, distribute and modify it. 1462_ACEOF 1463 exit 1464fi 1465 1466## ------------------------ ## 1467## Autoconf initialization. ## 1468## ------------------------ ## 1469 1470# ac_fn_c_try_compile LINENO 1471# -------------------------- 1472# Try to compile conftest.$ac_ext, and return whether this succeeded. 1473ac_fn_c_try_compile () 1474{ 1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1476 rm -f conftest.$ac_objext 1477 if { { ac_try="$ac_compile" 1478case "(($ac_try" in 1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1480 *) ac_try_echo=$ac_try;; 1481esac 1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1483$as_echo "$ac_try_echo"; } >&5 1484 (eval "$ac_compile") 2>conftest.err 1485 ac_status=$? 1486 if test -s conftest.err; then 1487 grep -v '^ *+' conftest.err >conftest.er1 1488 cat conftest.er1 >&5 1489 mv -f conftest.er1 conftest.err 1490 fi 1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1492 test $ac_status = 0; } && { 1493 test -z "$ac_c_werror_flag" || 1494 test ! -s conftest.err 1495 } && test -s conftest.$ac_objext; then : 1496 ac_retval=0 1497else 1498 $as_echo "$as_me: failed program was:" >&5 1499sed 's/^/| /' conftest.$ac_ext >&5 1500 1501 ac_retval=1 1502fi 1503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1504 as_fn_set_status $ac_retval 1505 1506} # ac_fn_c_try_compile 1507 1508# ac_fn_c_try_link LINENO 1509# ----------------------- 1510# Try to link conftest.$ac_ext, and return whether this succeeded. 1511ac_fn_c_try_link () 1512{ 1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1514 rm -f conftest.$ac_objext conftest$ac_exeext 1515 if { { ac_try="$ac_link" 1516case "(($ac_try" in 1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1518 *) ac_try_echo=$ac_try;; 1519esac 1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1521$as_echo "$ac_try_echo"; } >&5 1522 (eval "$ac_link") 2>conftest.err 1523 ac_status=$? 1524 if test -s conftest.err; then 1525 grep -v '^ *+' conftest.err >conftest.er1 1526 cat conftest.er1 >&5 1527 mv -f conftest.er1 conftest.err 1528 fi 1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1530 test $ac_status = 0; } && { 1531 test -z "$ac_c_werror_flag" || 1532 test ! -s conftest.err 1533 } && test -s conftest$ac_exeext && { 1534 test "$cross_compiling" = yes || 1535 $as_test_x conftest$ac_exeext 1536 }; then : 1537 ac_retval=0 1538else 1539 $as_echo "$as_me: failed program was:" >&5 1540sed 's/^/| /' conftest.$ac_ext >&5 1541 1542 ac_retval=1 1543fi 1544 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1545 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1546 # interfere with the next link command; also delete a directory that is 1547 # left behind by Apple's compiler. We do this before executing the actions. 1548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550 as_fn_set_status $ac_retval 1551 1552} # ac_fn_c_try_link 1553 1554# ac_fn_c_try_cpp LINENO 1555# ---------------------- 1556# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1557ac_fn_c_try_cpp () 1558{ 1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1560 if { { ac_try="$ac_cpp conftest.$ac_ext" 1561case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564esac 1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566$as_echo "$ac_try_echo"; } >&5 1567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } > conftest.i && { 1576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 }; then : 1579 ac_retval=0 1580else 1581 $as_echo "$as_me: failed program was:" >&5 1582sed 's/^/| /' conftest.$ac_ext >&5 1583 1584 ac_retval=1 1585fi 1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1587 as_fn_set_status $ac_retval 1588 1589} # ac_fn_c_try_cpp 1590 1591# ac_fn_c_try_run LINENO 1592# ---------------------- 1593# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1594# that executables *can* be run. 1595ac_fn_c_try_run () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 if { { ac_try="$ac_link" 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_link") 2>&5 1606 ac_status=$? 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1609 { { case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_try") 2>&5 1616 ac_status=$? 1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1618 test $ac_status = 0; }; }; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: program exited with status $ac_status" >&5 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=$ac_status 1626fi 1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631} # ac_fn_c_try_run 1632 1633# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1634# ------------------------------------------------------- 1635# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1636# the include files in INCLUDES and setting the cache variable VAR 1637# accordingly. 1638ac_fn_c_check_header_mongrel () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 if eval \${$3+:} false; then : 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1643$as_echo_n "checking for $2... " >&6; } 1644if eval \${$3+:} false; then : 1645 $as_echo_n "(cached) " >&6 1646fi 1647eval ac_res=\$$3 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1649$as_echo "$ac_res" >&6; } 1650else 1651 # Is the header compilable? 1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1653$as_echo_n "checking $2 usability... " >&6; } 1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1655/* end confdefs.h. */ 1656$4 1657#include <$2> 1658_ACEOF 1659if ac_fn_c_try_compile "$LINENO"; then : 1660 ac_header_compiler=yes 1661else 1662 ac_header_compiler=no 1663fi 1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1666$as_echo "$ac_header_compiler" >&6; } 1667 1668# Is the header present? 1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1670$as_echo_n "checking $2 presence... " >&6; } 1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672/* end confdefs.h. */ 1673#include <$2> 1674_ACEOF 1675if ac_fn_c_try_cpp "$LINENO"; then : 1676 ac_header_preproc=yes 1677else 1678 ac_header_preproc=no 1679fi 1680rm -f conftest.err conftest.i conftest.$ac_ext 1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1682$as_echo "$ac_header_preproc" >&6; } 1683 1684# So? What about this header? 1685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1686 yes:no: ) 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1688$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1691 ;; 1692 no:yes:* ) 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1694$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1696$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1698$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1700$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1703 ;; 1704esac 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1706$as_echo_n "checking for $2... " >&6; } 1707if eval \${$3+:} false; then : 1708 $as_echo_n "(cached) " >&6 1709else 1710 eval "$3=\$ac_header_compiler" 1711fi 1712eval ac_res=\$$3 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1714$as_echo "$ac_res" >&6; } 1715fi 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 1718} # ac_fn_c_check_header_mongrel 1719 1720# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists and can be compiled using the include files in 1723# INCLUDES, setting the cache variable VAR accordingly. 1724ac_fn_c_check_header_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734$4 1735#include <$2> 1736_ACEOF 1737if ac_fn_c_try_compile "$LINENO"; then : 1738 eval "$3=yes" 1739else 1740 eval "$3=no" 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_header_compile 1750 1751# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1752# ------------------------------------------- 1753# Tests whether TYPE exists after having included INCLUDES, setting cache 1754# variable VAR accordingly. 1755ac_fn_c_check_type () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 eval "$3=no" 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766$4 1767int 1768main () 1769{ 1770if (sizeof ($2)) 1771 return 0; 1772 ; 1773 return 0; 1774} 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO"; then : 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779$4 1780int 1781main () 1782{ 1783if (sizeof (($2))) 1784 return 0; 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_compile "$LINENO"; then : 1790 1791else 1792 eval "$3=yes" 1793fi 1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_type 1804 1805# ac_fn_c_check_func LINENO FUNC VAR 1806# ---------------------------------- 1807# Tests whether FUNC exists, setting the cache variable VAR accordingly 1808ac_fn_c_check_func () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1820#define $2 innocuous_$2 1821 1822/* System header to define __stub macros and hopefully few prototypes, 1823 which can conflict with char $2 (); below. 1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1825 <limits.h> exists even on freestanding compilers. */ 1826 1827#ifdef __STDC__ 1828# include <limits.h> 1829#else 1830# include <assert.h> 1831#endif 1832 1833#undef $2 1834 1835/* Override any GCC internal prototype to avoid an error. 1836 Use char because int might match the return type of a GCC 1837 builtin and then its argument prototype would still apply. */ 1838#ifdef __cplusplus 1839extern "C" 1840#endif 1841char $2 (); 1842/* The GNU C library defines this for functions which it implements 1843 to always fail with ENOSYS. Some functions are actually named 1844 something starting with __ and the normal name is an alias. */ 1845#if defined __stub_$2 || defined __stub___$2 1846choke me 1847#endif 1848 1849int 1850main () 1851{ 1852return $2 (); 1853 ; 1854 return 0; 1855} 1856_ACEOF 1857if ac_fn_c_try_link "$LINENO"; then : 1858 eval "$3=yes" 1859else 1860 eval "$3=no" 1861fi 1862rm -f core conftest.err conftest.$ac_objext \ 1863 conftest$ac_exeext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_func 1871 1872# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1873# ---------------------------------------------------- 1874# Tries to find if the field MEMBER exists in type AGGR, after including 1875# INCLUDES, setting cache variable VAR accordingly. 1876ac_fn_c_check_member () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1880$as_echo_n "checking for $2.$3... " >&6; } 1881if eval \${$4+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$5 1887int 1888main () 1889{ 1890static $2 ac_aggr; 1891if (ac_aggr.$3) 1892return 0; 1893 ; 1894 return 0; 1895} 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 eval "$4=yes" 1899else 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$5 1903int 1904main () 1905{ 1906static $2 ac_aggr; 1907if (sizeof ac_aggr.$3) 1908return 0; 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_compile "$LINENO"; then : 1914 eval "$4=yes" 1915else 1916 eval "$4=no" 1917fi 1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1919fi 1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1921fi 1922eval ac_res=\$$4 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924$as_echo "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927} # ac_fn_c_check_member 1928cat >config.log <<_ACEOF 1929This file contains any messages produced by compilers while 1930running configure, to aid debugging if configure makes a mistake. 1931 1932It was created by netperf $as_me 2.7.0, which was 1933generated by GNU Autoconf 2.68. Invocation command line was 1934 1935 $ $0 $@ 1936 1937_ACEOF 1938exec 5>>config.log 1939{ 1940cat <<_ASUNAME 1941## --------- ## 1942## Platform. ## 1943## --------- ## 1944 1945hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1946uname -m = `(uname -m) 2>/dev/null || echo unknown` 1947uname -r = `(uname -r) 2>/dev/null || echo unknown` 1948uname -s = `(uname -s) 2>/dev/null || echo unknown` 1949uname -v = `(uname -v) 2>/dev/null || echo unknown` 1950 1951/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1952/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1953 1954/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1955/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1956/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1957/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1958/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1959/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1960/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1961 1962_ASUNAME 1963 1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1965for as_dir in $PATH 1966do 1967 IFS=$as_save_IFS 1968 test -z "$as_dir" && as_dir=. 1969 $as_echo "PATH: $as_dir" 1970 done 1971IFS=$as_save_IFS 1972 1973} >&5 1974 1975cat >&5 <<_ACEOF 1976 1977 1978## ----------- ## 1979## Core tests. ## 1980## ----------- ## 1981 1982_ACEOF 1983 1984 1985# Keep a trace of the command line. 1986# Strip out --no-create and --no-recursion so they do not pile up. 1987# Strip out --silent because we don't want to record it for future runs. 1988# Also quote any args containing shell meta-characters. 1989# Make two passes to allow for proper duplicate-argument suppression. 1990ac_configure_args= 1991ac_configure_args0= 1992ac_configure_args1= 1993ac_must_keep_next=false 1994for ac_pass in 1 2 1995do 1996 for ac_arg 1997 do 1998 case $ac_arg in 1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2001 | -silent | --silent | --silen | --sile | --sil) 2002 continue ;; 2003 *\'*) 2004 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2005 esac 2006 case $ac_pass in 2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2008 2) 2009 as_fn_append ac_configure_args1 " '$ac_arg'" 2010 if test $ac_must_keep_next = true; then 2011 ac_must_keep_next=false # Got value, back to normal. 2012 else 2013 case $ac_arg in 2014 *=* | --config-cache | -C | -disable-* | --disable-* \ 2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2017 | -with-* | --with-* | -without-* | --without-* | --x) 2018 case "$ac_configure_args0 " in 2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2020 esac 2021 ;; 2022 -* ) ac_must_keep_next=true ;; 2023 esac 2024 fi 2025 as_fn_append ac_configure_args " '$ac_arg'" 2026 ;; 2027 esac 2028 done 2029done 2030{ ac_configure_args0=; unset ac_configure_args0;} 2031{ ac_configure_args1=; unset ac_configure_args1;} 2032 2033# When interrupted or exit'd, cleanup temporary files, and complete 2034# config.log. We remove comments because anyway the quotes in there 2035# would cause problems or look ugly. 2036# WARNING: Use '\'' to represent an apostrophe within the trap. 2037# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2038trap 'exit_status=$? 2039 # Save into config.log some information that might help in debugging. 2040 { 2041 echo 2042 2043 $as_echo "## ---------------- ## 2044## Cache variables. ## 2045## ---------------- ##" 2046 echo 2047 # The following way of writing the cache mishandles newlines in values, 2048( 2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in #( 2052 *${as_nl}*) 2053 case $ac_var in #( 2054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2055$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2056 esac 2057 case $ac_var in #( 2058 _ | IFS | as_nl) ;; #( 2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2060 *) { eval $ac_var=; unset $ac_var;} ;; 2061 esac ;; 2062 esac 2063 done 2064 (set) 2>&1 | 2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2066 *${as_nl}ac_space=\ *) 2067 sed -n \ 2068 "s/'\''/'\''\\\\'\'''\''/g; 2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2070 ;; #( 2071 *) 2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2073 ;; 2074 esac | 2075 sort 2076) 2077 echo 2078 2079 $as_echo "## ----------------- ## 2080## Output variables. ## 2081## ----------------- ##" 2082 echo 2083 for ac_var in $ac_subst_vars 2084 do 2085 eval ac_val=\$$ac_var 2086 case $ac_val in 2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2088 esac 2089 $as_echo "$ac_var='\''$ac_val'\''" 2090 done | sort 2091 echo 2092 2093 if test -n "$ac_subst_files"; then 2094 $as_echo "## ------------------- ## 2095## File substitutions. ## 2096## ------------------- ##" 2097 echo 2098 for ac_var in $ac_subst_files 2099 do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in 2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2103 esac 2104 $as_echo "$ac_var='\''$ac_val'\''" 2105 done | sort 2106 echo 2107 fi 2108 2109 if test -s confdefs.h; then 2110 $as_echo "## ----------- ## 2111## confdefs.h. ## 2112## ----------- ##" 2113 echo 2114 cat confdefs.h 2115 echo 2116 fi 2117 test "$ac_signal" != 0 && 2118 $as_echo "$as_me: caught signal $ac_signal" 2119 $as_echo "$as_me: exit $exit_status" 2120 } >&5 2121 rm -f core *.core core.conftest.* && 2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2123 exit $exit_status 2124' 0 2125for ac_signal in 1 2 13 15; do 2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2127done 2128ac_signal=0 2129 2130# confdefs.h avoids OS command line length limits that DEFS can exceed. 2131rm -f -r conftest* confdefs.h 2132 2133$as_echo "/* confdefs.h */" > confdefs.h 2134 2135# Predefined preprocessor variables. 2136 2137cat >>confdefs.h <<_ACEOF 2138#define PACKAGE_NAME "$PACKAGE_NAME" 2139_ACEOF 2140 2141cat >>confdefs.h <<_ACEOF 2142#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2143_ACEOF 2144 2145cat >>confdefs.h <<_ACEOF 2146#define PACKAGE_VERSION "$PACKAGE_VERSION" 2147_ACEOF 2148 2149cat >>confdefs.h <<_ACEOF 2150#define PACKAGE_STRING "$PACKAGE_STRING" 2151_ACEOF 2152 2153cat >>confdefs.h <<_ACEOF 2154#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2155_ACEOF 2156 2157cat >>confdefs.h <<_ACEOF 2158#define PACKAGE_URL "$PACKAGE_URL" 2159_ACEOF 2160 2161 2162# Let the site file select an alternate cache file if it wants to. 2163# Prefer an explicitly selected file to automatically selected ones. 2164ac_site_file1=NONE 2165ac_site_file2=NONE 2166if test -n "$CONFIG_SITE"; then 2167 # We do not want a PATH search for config.site. 2168 case $CONFIG_SITE in #(( 2169 -*) ac_site_file1=./$CONFIG_SITE;; 2170 */*) ac_site_file1=$CONFIG_SITE;; 2171 *) ac_site_file1=./$CONFIG_SITE;; 2172 esac 2173elif test "x$prefix" != xNONE; then 2174 ac_site_file1=$prefix/share/config.site 2175 ac_site_file2=$prefix/etc/config.site 2176else 2177 ac_site_file1=$ac_default_prefix/share/config.site 2178 ac_site_file2=$ac_default_prefix/etc/config.site 2179fi 2180for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2181do 2182 test "x$ac_site_file" = xNONE && continue 2183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2185$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2186 sed 's/^/| /' "$ac_site_file" >&5 2187 . "$ac_site_file" \ 2188 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2190as_fn_error $? "failed to load site script $ac_site_file 2191See \`config.log' for more details" "$LINENO" 5; } 2192 fi 2193done 2194 2195if test -r "$cache_file"; then 2196 # Some versions of bash will fail to source /dev/null (special files 2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2200$as_echo "$as_me: loading cache $cache_file" >&6;} 2201 case $cache_file in 2202 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2203 *) . "./$cache_file";; 2204 esac 2205 fi 2206else 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2208$as_echo "$as_me: creating cache $cache_file" >&6;} 2209 >$cache_file 2210fi 2211 2212as_fn_append ac_header_list " stdlib.h" 2213as_fn_append ac_header_list " unistd.h" 2214as_fn_append ac_header_list " sys/param.h" 2215# Check that the precious variables saved in the cache have kept the same 2216# value. 2217ac_cache_corrupted=false 2218for ac_var in $ac_precious_vars; do 2219 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2220 eval ac_new_set=\$ac_env_${ac_var}_set 2221 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2222 eval ac_new_val=\$ac_env_${ac_var}_value 2223 case $ac_old_set,$ac_new_set in 2224 set,) 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2226$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2227 ac_cache_corrupted=: ;; 2228 ,set) 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2230$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2231 ac_cache_corrupted=: ;; 2232 ,);; 2233 *) 2234 if test "x$ac_old_val" != "x$ac_new_val"; then 2235 # differences in whitespace do not lead to failure. 2236 ac_old_val_w=`echo x $ac_old_val` 2237 ac_new_val_w=`echo x $ac_new_val` 2238 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2240$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2241 ac_cache_corrupted=: 2242 else 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2244$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2245 eval $ac_var=\$ac_old_val 2246 fi 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2248$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2250$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2251 fi;; 2252 esac 2253 # Pass precious variables to config.status. 2254 if test "$ac_new_set" = set; then 2255 case $ac_new_val in 2256 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2257 *) ac_arg=$ac_var=$ac_new_val ;; 2258 esac 2259 case " $ac_configure_args " in 2260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2261 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2262 esac 2263 fi 2264done 2265if $ac_cache_corrupted; then 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2269$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2270 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2271fi 2272## -------------------- ## 2273## Main body of script. ## 2274## -------------------- ## 2275 2276ac_ext=c 2277ac_cpp='$CPP $CPPFLAGS' 2278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2280ac_compiler_gnu=$ac_cv_c_compiler_gnu 2281 2282 2283 2284# Inherit compiler flags from the environment... 2285CFLAGS="${CFLAGS:=}" 2286CXXFLAGS="${CXXFLAGS:=}" 2287 2288# use the target version rather than host - one day we may want cross-compile 2289ac_aux_dir= 2290for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2291 if test -f "$ac_dir/install-sh"; then 2292 ac_aux_dir=$ac_dir 2293 ac_install_sh="$ac_aux_dir/install-sh -c" 2294 break 2295 elif test -f "$ac_dir/install.sh"; then 2296 ac_aux_dir=$ac_dir 2297 ac_install_sh="$ac_aux_dir/install.sh -c" 2298 break 2299 elif test -f "$ac_dir/shtool"; then 2300 ac_aux_dir=$ac_dir 2301 ac_install_sh="$ac_aux_dir/shtool install -c" 2302 break 2303 fi 2304done 2305if test -z "$ac_aux_dir"; then 2306 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2307fi 2308 2309# These three variables are undocumented and unsupported, 2310# and are intended to be withdrawn in a future Autoconf release. 2311# They can cause serious problems if a builder's source tree is in a directory 2312# whose full name contains unusual characters. 2313ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2314ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2315ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2316 2317 2318# Make sure we can run config.sub. 2319$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2320 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2321 2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2323$as_echo_n "checking build system type... " >&6; } 2324if ${ac_cv_build+:} false; then : 2325 $as_echo_n "(cached) " >&6 2326else 2327 ac_build_alias=$build_alias 2328test "x$ac_build_alias" = x && 2329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2330test "x$ac_build_alias" = x && 2331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2332ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2334 2335fi 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2337$as_echo "$ac_cv_build" >&6; } 2338case $ac_cv_build in 2339*-*-*) ;; 2340*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2341esac 2342build=$ac_cv_build 2343ac_save_IFS=$IFS; IFS='-' 2344set x $ac_cv_build 2345shift 2346build_cpu=$1 2347build_vendor=$2 2348shift; shift 2349# Remember, the first character of IFS is used to create $*, 2350# except with old shells: 2351build_os=$* 2352IFS=$ac_save_IFS 2353case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2354 2355 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2357$as_echo_n "checking host system type... " >&6; } 2358if ${ac_cv_host+:} false; then : 2359 $as_echo_n "(cached) " >&6 2360else 2361 if test "x$host_alias" = x; then 2362 ac_cv_host=$ac_cv_build 2363else 2364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2366fi 2367 2368fi 2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2370$as_echo "$ac_cv_host" >&6; } 2371case $ac_cv_host in 2372*-*-*) ;; 2373*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2374esac 2375host=$ac_cv_host 2376ac_save_IFS=$IFS; IFS='-' 2377set x $ac_cv_host 2378shift 2379host_cpu=$1 2380host_vendor=$2 2381shift; shift 2382# Remember, the first character of IFS is used to create $*, 2383# except with old shells: 2384host_os=$* 2385IFS=$ac_save_IFS 2386case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2387 2388 2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2390$as_echo_n "checking target system type... " >&6; } 2391if ${ac_cv_target+:} false; then : 2392 $as_echo_n "(cached) " >&6 2393else 2394 if test "x$target_alias" = x; then 2395 ac_cv_target=$ac_cv_host 2396else 2397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2399fi 2400 2401fi 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2403$as_echo "$ac_cv_target" >&6; } 2404case $ac_cv_target in 2405*-*-*) ;; 2406*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2407esac 2408target=$ac_cv_target 2409ac_save_IFS=$IFS; IFS='-' 2410set x $ac_cv_target 2411shift 2412target_cpu=$1 2413target_vendor=$2 2414shift; shift 2415# Remember, the first character of IFS is used to create $*, 2416# except with old shells: 2417target_os=$* 2418IFS=$ac_save_IFS 2419case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2420 2421 2422# The aliases save the names the user supplied, while $host etc. 2423# will get canonicalized. 2424test -n "$target_alias" && 2425 test "$program_prefix$program_suffix$program_transform_name" = \ 2426 NONENONEs,x,x, && 2427 program_prefix=${target_alias}- 2428 2429am__api_version='1.11' 2430 2431# Find a good install program. We prefer a C program (faster), 2432# so one script is as good as another. But avoid the broken or 2433# incompatible versions: 2434# SysV /etc/install, /usr/sbin/install 2435# SunOS /usr/etc/install 2436# IRIX /sbin/install 2437# AIX /bin/install 2438# AmigaOS /C/install, which installs bootblocks on floppy discs 2439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2440# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2442# OS/2's system install, which has a completely different semantic 2443# ./install, which can be erroneously created by make from ./install.sh. 2444# Reject install programs that cannot install multiple files. 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2446$as_echo_n "checking for a BSD-compatible install... " >&6; } 2447if test -z "$INSTALL"; then 2448if ${ac_cv_path_install+:} false; then : 2449 $as_echo_n "(cached) " >&6 2450else 2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2452for as_dir in $PATH 2453do 2454 IFS=$as_save_IFS 2455 test -z "$as_dir" && as_dir=. 2456 # Account for people who put trailing slashes in PATH elements. 2457case $as_dir/ in #(( 2458 ./ | .// | /[cC]/* | \ 2459 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2460 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2461 /usr/ucb/* ) ;; 2462 *) 2463 # OSF1 and SCO ODT 3.0 have their own names for install. 2464 # Don't use installbsd from OSF since it installs stuff as root 2465 # by default. 2466 for ac_prog in ginstall scoinst install; do 2467 for ac_exec_ext in '' $ac_executable_extensions; do 2468 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2469 if test $ac_prog = install && 2470 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2471 # AIX install. It has an incompatible calling convention. 2472 : 2473 elif test $ac_prog = install && 2474 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2475 # program-specific install script used by HP pwplus--don't use. 2476 : 2477 else 2478 rm -rf conftest.one conftest.two conftest.dir 2479 echo one > conftest.one 2480 echo two > conftest.two 2481 mkdir conftest.dir 2482 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2483 test -s conftest.one && test -s conftest.two && 2484 test -s conftest.dir/conftest.one && 2485 test -s conftest.dir/conftest.two 2486 then 2487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2488 break 3 2489 fi 2490 fi 2491 fi 2492 done 2493 done 2494 ;; 2495esac 2496 2497 done 2498IFS=$as_save_IFS 2499 2500rm -rf conftest.one conftest.two conftest.dir 2501 2502fi 2503 if test "${ac_cv_path_install+set}" = set; then 2504 INSTALL=$ac_cv_path_install 2505 else 2506 # As a last resort, use the slow shell script. Don't cache a 2507 # value for INSTALL within a source directory, because that will 2508 # break other packages using the cache if that directory is 2509 # removed, or if the value is a relative name. 2510 INSTALL=$ac_install_sh 2511 fi 2512fi 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2514$as_echo "$INSTALL" >&6; } 2515 2516# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2517# It thinks the first close brace ends the variable substitution. 2518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2519 2520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2521 2522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2523 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2525$as_echo_n "checking whether build environment is sane... " >&6; } 2526# Just in case 2527sleep 1 2528echo timestamp > conftest.file 2529# Reject unsafe characters in $srcdir or the absolute working directory 2530# name. Accept space and tab only in the latter. 2531am_lf=' 2532' 2533case `pwd` in 2534 *[\\\"\#\$\&\'\`$am_lf]*) 2535 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2536esac 2537case $srcdir in 2538 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2539 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2540esac 2541 2542# Do `set' in a subshell so we don't clobber the current shell's 2543# arguments. Must try -L first in case configure is actually a 2544# symlink; some systems play weird games with the mod time of symlinks 2545# (eg FreeBSD returns the mod time of the symlink's containing 2546# directory). 2547if ( 2548 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2549 if test "$*" = "X"; then 2550 # -L didn't work. 2551 set X `ls -t "$srcdir/configure" conftest.file` 2552 fi 2553 rm -f conftest.file 2554 if test "$*" != "X $srcdir/configure conftest.file" \ 2555 && test "$*" != "X conftest.file $srcdir/configure"; then 2556 2557 # If neither matched, then we have a broken ls. This can happen 2558 # if, for instance, CONFIG_SHELL is bash and it inherits a 2559 # broken ls alias from the environment. This has actually 2560 # happened. Such a system could not be considered "sane". 2561 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2562alias in your environment" "$LINENO" 5 2563 fi 2564 2565 test "$2" = conftest.file 2566 ) 2567then 2568 # Ok. 2569 : 2570else 2571 as_fn_error $? "newly created file is older than distributed files! 2572Check your system clock" "$LINENO" 5 2573fi 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2575$as_echo "yes" >&6; } 2576test "$program_prefix" != NONE && 2577 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2578# Use a double $ so make ignores it. 2579test "$program_suffix" != NONE && 2580 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2581# Double any \ or $. 2582# By default was `s,x,x', remove it if useless. 2583ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2584program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2585 2586# expand $ac_aux_dir to an absolute path 2587am_aux_dir=`cd $ac_aux_dir && pwd` 2588 2589if test x"${MISSING+set}" != xset; then 2590 case $am_aux_dir in 2591 *\ * | *\ *) 2592 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2593 *) 2594 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2595 esac 2596fi 2597# Use eval to expand $SHELL 2598if eval "$MISSING --run true"; then 2599 am_missing_run="$MISSING --run " 2600else 2601 am_missing_run= 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2603$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2604fi 2605 2606if test x"${install_sh}" != xset; then 2607 case $am_aux_dir in 2608 *\ * | *\ *) 2609 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2610 *) 2611 install_sh="\${SHELL} $am_aux_dir/install-sh" 2612 esac 2613fi 2614 2615# Installed binaries are usually stripped using `strip' when the user 2616# run `make install-strip'. However `strip' might not be the right 2617# tool to use in cross-compilation environments, therefore Automake 2618# will honor the `STRIP' environment variable to overrule this program. 2619if test "$cross_compiling" != no; then 2620 if test -n "$ac_tool_prefix"; then 2621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2622set dummy ${ac_tool_prefix}strip; ac_word=$2 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2624$as_echo_n "checking for $ac_word... " >&6; } 2625if ${ac_cv_prog_STRIP+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 if test -n "$STRIP"; then 2629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2630else 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2638 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642done 2643 done 2644IFS=$as_save_IFS 2645 2646fi 2647fi 2648STRIP=$ac_cv_prog_STRIP 2649if test -n "$STRIP"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2651$as_echo "$STRIP" >&6; } 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654$as_echo "no" >&6; } 2655fi 2656 2657 2658fi 2659if test -z "$ac_cv_prog_STRIP"; then 2660 ac_ct_STRIP=$STRIP 2661 # Extract the first word of "strip", so it can be a program name with args. 2662set dummy strip; ac_word=$2 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2664$as_echo_n "checking for $ac_word... " >&6; } 2665if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 if test -n "$ac_ct_STRIP"; then 2669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2670else 2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 test -z "$as_dir" && as_dir=. 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2678 ac_cv_prog_ac_ct_STRIP="strip" 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2689if test -n "$ac_ct_STRIP"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2691$as_echo "$ac_ct_STRIP" >&6; } 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694$as_echo "no" >&6; } 2695fi 2696 2697 if test "x$ac_ct_STRIP" = x; then 2698 STRIP=":" 2699 else 2700 case $cross_compiling:$ac_tool_warned in 2701yes:) 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2704ac_tool_warned=yes ;; 2705esac 2706 STRIP=$ac_ct_STRIP 2707 fi 2708else 2709 STRIP="$ac_cv_prog_STRIP" 2710fi 2711 2712fi 2713INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2714 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2716$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2717if test -z "$MKDIR_P"; then 2718 if ${ac_cv_path_mkdir+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_prog in mkdir gmkdir; do 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2729 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2730 'mkdir (GNU coreutils) '* | \ 2731 'mkdir (coreutils) '* | \ 2732 'mkdir (fileutils) '4.1*) 2733 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2734 break 3;; 2735 esac 2736 done 2737 done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742 2743 test -d ./--version && rmdir ./--version 2744 if test "${ac_cv_path_mkdir+set}" = set; then 2745 MKDIR_P="$ac_cv_path_mkdir -p" 2746 else 2747 # As a last resort, use the slow shell script. Don't cache a 2748 # value for MKDIR_P within a source directory, because that will 2749 # break other packages using the cache if that directory is 2750 # removed, or if the value is a relative name. 2751 MKDIR_P="$ac_install_sh -d" 2752 fi 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2755$as_echo "$MKDIR_P" >&6; } 2756 2757mkdir_p="$MKDIR_P" 2758case $mkdir_p in 2759 [\\/$]* | ?:[\\/]*) ;; 2760 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2761esac 2762 2763for ac_prog in gawk mawk nawk awk 2764do 2765 # Extract the first word of "$ac_prog", so it can be a program name with args. 2766set dummy $ac_prog; ac_word=$2 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768$as_echo_n "checking for $ac_word... " >&6; } 2769if ${ac_cv_prog_AWK+:} false; then : 2770 $as_echo_n "(cached) " >&6 2771else 2772 if test -n "$AWK"; then 2773 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2782 ac_cv_prog_AWK="$ac_prog" 2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 break 2 2785 fi 2786done 2787 done 2788IFS=$as_save_IFS 2789 2790fi 2791fi 2792AWK=$ac_cv_prog_AWK 2793if test -n "$AWK"; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2795$as_echo "$AWK" >&6; } 2796else 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798$as_echo "no" >&6; } 2799fi 2800 2801 2802 test -n "$AWK" && break 2803done 2804 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2806$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2807set x ${MAKE-make} 2808ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2809if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811else 2812 cat >conftest.make <<\_ACEOF 2813SHELL = /bin/sh 2814all: 2815 @echo '@@@%%%=$(MAKE)=@@@%%%' 2816_ACEOF 2817# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2818case `${MAKE-make} -f conftest.make 2>/dev/null` in 2819 *@@@%%%=?*=@@@%%%*) 2820 eval ac_cv_prog_make_${ac_make}_set=yes;; 2821 *) 2822 eval ac_cv_prog_make_${ac_make}_set=no;; 2823esac 2824rm -f conftest.make 2825fi 2826if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2828$as_echo "yes" >&6; } 2829 SET_MAKE= 2830else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832$as_echo "no" >&6; } 2833 SET_MAKE="MAKE=${MAKE-make}" 2834fi 2835 2836rm -rf .tst 2>/dev/null 2837mkdir .tst 2>/dev/null 2838if test -d .tst; then 2839 am__leading_dot=. 2840else 2841 am__leading_dot=_ 2842fi 2843rmdir .tst 2>/dev/null 2844 2845if test "`cd $srcdir && pwd`" != "`pwd`"; then 2846 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2847 # is not polluted with repeated "-I." 2848 am__isrc=' -I$(srcdir)' 2849 # test to see if srcdir already configured 2850 if test -f $srcdir/config.status; then 2851 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2852 fi 2853fi 2854 2855# test whether we have cygpath 2856if test -z "$CYGPATH_W"; then 2857 if (cygpath --version) >/dev/null 2>/dev/null; then 2858 CYGPATH_W='cygpath -w' 2859 else 2860 CYGPATH_W=echo 2861 fi 2862fi 2863 2864 2865# Define the identity of the package. 2866 PACKAGE='netperf' 2867 VERSION='2.7.0' 2868 2869 2870cat >>confdefs.h <<_ACEOF 2871#define PACKAGE "$PACKAGE" 2872_ACEOF 2873 2874 2875cat >>confdefs.h <<_ACEOF 2876#define VERSION "$VERSION" 2877_ACEOF 2878 2879# Some tools Automake needs. 2880 2881ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2882 2883 2884AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2885 2886 2887AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2888 2889 2890AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2891 2892 2893MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2894 2895# We need awk for the "check" target. The system "awk" is bad on 2896# some platforms. 2897# Always define AMTAR for backward compatibility. Yes, it's still used 2898# in the wild :-( We should find a proper way to deprecate it ... 2899AMTAR='$${TAR-tar}' 2900 2901am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2902 2903 2904 2905 2906 2907ac_config_headers="$ac_config_headers config.h" 2908 2909# AC_CONFIG_HEADER(config.h) 2910 2911 2912 2913# make sure we build netperf_version.h 2914touch ${ac_top_srcdir}src/netperf_version.h.in 2915 2916# Checks for programs. 2917ac_ext=c 2918ac_cpp='$CPP $CPPFLAGS' 2919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2921ac_compiler_gnu=$ac_cv_c_compiler_gnu 2922if test -n "$ac_tool_prefix"; then 2923 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2924set dummy ${ac_tool_prefix}gcc; ac_word=$2 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2926$as_echo_n "checking for $ac_word... " >&6; } 2927if ${ac_cv_prog_CC+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 if test -n "$CC"; then 2931 ac_cv_prog_CC="$CC" # Let the user override the test. 2932else 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2940 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950CC=$ac_cv_prog_CC 2951if test -n "$CC"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2953$as_echo "$CC" >&6; } 2954else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956$as_echo "no" >&6; } 2957fi 2958 2959 2960fi 2961if test -z "$ac_cv_prog_CC"; then 2962 ac_ct_CC=$CC 2963 # Extract the first word of "gcc", so it can be a program name with args. 2964set dummy gcc; ac_word=$2 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966$as_echo_n "checking for $ac_word... " >&6; } 2967if ${ac_cv_prog_ac_ct_CC+:} false; then : 2968 $as_echo_n "(cached) " >&6 2969else 2970 if test -n "$ac_ct_CC"; then 2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2972else 2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2980 ac_cv_prog_ac_ct_CC="gcc" 2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985 done 2986IFS=$as_save_IFS 2987 2988fi 2989fi 2990ac_ct_CC=$ac_cv_prog_ac_ct_CC 2991if test -n "$ac_ct_CC"; then 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2993$as_echo "$ac_ct_CC" >&6; } 2994else 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996$as_echo "no" >&6; } 2997fi 2998 2999 if test "x$ac_ct_CC" = x; then 3000 CC="" 3001 else 3002 case $cross_compiling:$ac_tool_warned in 3003yes:) 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3006ac_tool_warned=yes ;; 3007esac 3008 CC=$ac_ct_CC 3009 fi 3010else 3011 CC="$ac_cv_prog_CC" 3012fi 3013 3014if test -z "$CC"; then 3015 if test -n "$ac_tool_prefix"; then 3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3017set dummy ${ac_tool_prefix}cc; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if ${ac_cv_prog_CC+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$CC"; then 3024 ac_cv_prog_CC="$CC" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3033 ac_cv_prog_CC="${ac_tool_prefix}cc" 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043CC=$ac_cv_prog_CC 3044if test -n "$CC"; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3046$as_echo "$CC" >&6; } 3047else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049$as_echo "no" >&6; } 3050fi 3051 3052 3053 fi 3054fi 3055if test -z "$CC"; then 3056 # Extract the first word of "cc", so it can be a program name with args. 3057set dummy cc; ac_word=$2 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3059$as_echo_n "checking for $ac_word... " >&6; } 3060if ${ac_cv_prog_CC+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 if test -n "$CC"; then 3064 ac_cv_prog_CC="$CC" # Let the user override the test. 3065else 3066 ac_prog_rejected=no 3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3068for as_dir in $PATH 3069do 3070 IFS=$as_save_IFS 3071 test -z "$as_dir" && as_dir=. 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3075 ac_prog_rejected=yes 3076 continue 3077 fi 3078 ac_cv_prog_CC="cc" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086if test $ac_prog_rejected = yes; then 3087 # We found a bogon in the path, so make sure we never use it. 3088 set dummy $ac_cv_prog_CC 3089 shift 3090 if test $# != 0; then 3091 # We chose a different compiler from the bogus one. 3092 # However, it has the same basename, so the bogon will be chosen 3093 # first if we set CC to just the basename; use the full file name. 3094 shift 3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3096 fi 3097fi 3098fi 3099fi 3100CC=$ac_cv_prog_CC 3101if test -n "$CC"; then 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3103$as_echo "$CC" >&6; } 3104else 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3106$as_echo "no" >&6; } 3107fi 3108 3109 3110fi 3111if test -z "$CC"; then 3112 if test -n "$ac_tool_prefix"; then 3113 for ac_prog in cl.exe 3114 do 3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3116set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3118$as_echo_n "checking for $ac_word... " >&6; } 3119if ${ac_cv_prog_CC+:} false; then : 3120 $as_echo_n "(cached) " >&6 3121else 3122 if test -n "$CC"; then 3123 ac_cv_prog_CC="$CC" # Let the user override the test. 3124else 3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137 done 3138IFS=$as_save_IFS 3139 3140fi 3141fi 3142CC=$ac_cv_prog_CC 3143if test -n "$CC"; then 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3145$as_echo "$CC" >&6; } 3146else 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148$as_echo "no" >&6; } 3149fi 3150 3151 3152 test -n "$CC" && break 3153 done 3154fi 3155if test -z "$CC"; then 3156 ac_ct_CC=$CC 3157 for ac_prog in cl.exe 3158do 3159 # Extract the first word of "$ac_prog", so it can be a program name with args. 3160set dummy $ac_prog; ac_word=$2 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3162$as_echo_n "checking for $ac_word... " >&6; } 3163if ${ac_cv_prog_ac_ct_CC+:} false; then : 3164 $as_echo_n "(cached) " >&6 3165else 3166 if test -n "$ac_ct_CC"; then 3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3168else 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3170for as_dir in $PATH 3171do 3172 IFS=$as_save_IFS 3173 test -z "$as_dir" && as_dir=. 3174 for ac_exec_ext in '' $ac_executable_extensions; do 3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3176 ac_cv_prog_ac_ct_CC="$ac_prog" 3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3178 break 2 3179 fi 3180done 3181 done 3182IFS=$as_save_IFS 3183 3184fi 3185fi 3186ac_ct_CC=$ac_cv_prog_ac_ct_CC 3187if test -n "$ac_ct_CC"; then 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3189$as_echo "$ac_ct_CC" >&6; } 3190else 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192$as_echo "no" >&6; } 3193fi 3194 3195 3196 test -n "$ac_ct_CC" && break 3197done 3198 3199 if test "x$ac_ct_CC" = x; then 3200 CC="" 3201 else 3202 case $cross_compiling:$ac_tool_warned in 3203yes:) 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3206ac_tool_warned=yes ;; 3207esac 3208 CC=$ac_ct_CC 3209 fi 3210fi 3211 3212fi 3213 3214 3215test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3217as_fn_error $? "no acceptable C compiler found in \$PATH 3218See \`config.log' for more details" "$LINENO" 5; } 3219 3220# Provide some information about the compiler. 3221$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3222set X $ac_compile 3223ac_compiler=$2 3224for ac_option in --version -v -V -qversion; do 3225 { { ac_try="$ac_compiler $ac_option >&5" 3226case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229esac 3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3231$as_echo "$ac_try_echo"; } >&5 3232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3233 ac_status=$? 3234 if test -s conftest.err; then 3235 sed '10a\ 3236... rest of stderr output deleted ... 3237 10q' conftest.err >conftest.er1 3238 cat conftest.er1 >&5 3239 fi 3240 rm -f conftest.er1 conftest.err 3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; } 3243done 3244 3245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3246/* end confdefs.h. */ 3247 3248int 3249main () 3250{ 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256ac_clean_files_save=$ac_clean_files 3257ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3258# Try to create an executable without -o first, disregard a.out. 3259# It will help us diagnose broken compilers, and finding out an intuition 3260# of exeext. 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3262$as_echo_n "checking whether the C compiler works... " >&6; } 3263ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3264 3265# The possible output files: 3266ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3267 3268ac_rmfiles= 3269for ac_file in $ac_files 3270do 3271 case $ac_file in 3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3273 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3274 esac 3275done 3276rm -f $ac_rmfiles 3277 3278if { { ac_try="$ac_link_default" 3279case "(($ac_try" in 3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281 *) ac_try_echo=$ac_try;; 3282esac 3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3284$as_echo "$ac_try_echo"; } >&5 3285 (eval "$ac_link_default") 2>&5 3286 ac_status=$? 3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3288 test $ac_status = 0; }; then : 3289 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3290# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3291# in a Makefile. We should not override ac_cv_exeext if it was cached, 3292# so that the user can short-circuit this test for compilers unknown to 3293# Autoconf. 3294for ac_file in $ac_files '' 3295do 3296 test -f "$ac_file" || continue 3297 case $ac_file in 3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3299 ;; 3300 [ab].out ) 3301 # We found the default executable, but exeext='' is most 3302 # certainly right. 3303 break;; 3304 *.* ) 3305 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3306 then :; else 3307 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3308 fi 3309 # We set ac_cv_exeext here because the later test for it is not 3310 # safe: cross compilers may not add the suffix if given an `-o' 3311 # argument, so we may need to know it at that point already. 3312 # Even if this section looks crufty: it has the advantage of 3313 # actually working. 3314 break;; 3315 * ) 3316 break;; 3317 esac 3318done 3319test "$ac_cv_exeext" = no && ac_cv_exeext= 3320 3321else 3322 ac_file='' 3323fi 3324if test -z "$ac_file"; then : 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3326$as_echo "no" >&6; } 3327$as_echo "$as_me: failed program was:" >&5 3328sed 's/^/| /' conftest.$ac_ext >&5 3329 3330{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3332as_fn_error 77 "C compiler cannot create executables 3333See \`config.log' for more details" "$LINENO" 5; } 3334else 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3336$as_echo "yes" >&6; } 3337fi 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3339$as_echo_n "checking for C compiler default output file name... " >&6; } 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3341$as_echo "$ac_file" >&6; } 3342ac_exeext=$ac_cv_exeext 3343 3344rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3345ac_clean_files=$ac_clean_files_save 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3347$as_echo_n "checking for suffix of executables... " >&6; } 3348if { { ac_try="$ac_link" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3354$as_echo "$ac_try_echo"; } >&5 3355 (eval "$ac_link") 2>&5 3356 ac_status=$? 3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3358 test $ac_status = 0; }; then : 3359 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3360# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3361# work properly (i.e., refer to `conftest.exe'), while it won't with 3362# `rm'. 3363for ac_file in conftest.exe conftest conftest.*; do 3364 test -f "$ac_file" || continue 3365 case $ac_file in 3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3367 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3368 break;; 3369 * ) break;; 3370 esac 3371done 3372else 3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3375as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3376See \`config.log' for more details" "$LINENO" 5; } 3377fi 3378rm -f conftest conftest$ac_cv_exeext 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3380$as_echo "$ac_cv_exeext" >&6; } 3381 3382rm -f conftest.$ac_ext 3383EXEEXT=$ac_cv_exeext 3384ac_exeext=$EXEEXT 3385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3386/* end confdefs.h. */ 3387#include <stdio.h> 3388int 3389main () 3390{ 3391FILE *f = fopen ("conftest.out", "w"); 3392 return ferror (f) || fclose (f) != 0; 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398ac_clean_files="$ac_clean_files conftest.out" 3399# Check that the compiler produces executables we can run. If not, either 3400# the compiler is broken, or we cross compile. 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3402$as_echo_n "checking whether we are cross compiling... " >&6; } 3403if test "$cross_compiling" != yes; then 3404 { { ac_try="$ac_link" 3405case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408esac 3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3410$as_echo "$ac_try_echo"; } >&5 3411 (eval "$ac_link") 2>&5 3412 ac_status=$? 3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3414 test $ac_status = 0; } 3415 if { ac_try='./conftest$ac_cv_exeext' 3416 { { case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421$as_echo "$ac_try_echo"; } >&5 3422 (eval "$ac_try") 2>&5 3423 ac_status=$? 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; }; }; then 3426 cross_compiling=no 3427 else 3428 if test "$cross_compiling" = maybe; then 3429 cross_compiling=yes 3430 else 3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3433as_fn_error $? "cannot run C compiled programs. 3434If you meant to cross compile, use \`--host'. 3435See \`config.log' for more details" "$LINENO" 5; } 3436 fi 3437 fi 3438fi 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3440$as_echo "$cross_compiling" >&6; } 3441 3442rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3443ac_clean_files=$ac_clean_files_save 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3445$as_echo_n "checking for suffix of object files... " >&6; } 3446if ${ac_cv_objext+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451 3452int 3453main () 3454{ 3455 3456 ; 3457 return 0; 3458} 3459_ACEOF 3460rm -f conftest.o conftest.obj 3461if { { ac_try="$ac_compile" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_compile") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; then : 3472 for ac_file in conftest.o conftest.obj conftest.*; do 3473 test -f "$ac_file" || continue; 3474 case $ac_file in 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3477 break;; 3478 esac 3479done 3480else 3481 $as_echo "$as_me: failed program was:" >&5 3482sed 's/^/| /' conftest.$ac_ext >&5 3483 3484{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3486as_fn_error $? "cannot compute suffix of object files: cannot compile 3487See \`config.log' for more details" "$LINENO" 5; } 3488fi 3489rm -f conftest.$ac_cv_objext conftest.$ac_ext 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3492$as_echo "$ac_cv_objext" >&6; } 3493OBJEXT=$ac_cv_objext 3494ac_objext=$OBJEXT 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3496$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3497if ${ac_cv_c_compiler_gnu+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506#ifndef __GNUC__ 3507 choke me 3508#endif 3509 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514if ac_fn_c_try_compile "$LINENO"; then : 3515 ac_compiler_gnu=yes 3516else 3517 ac_compiler_gnu=no 3518fi 3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3520ac_cv_c_compiler_gnu=$ac_compiler_gnu 3521 3522fi 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3524$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3525if test $ac_compiler_gnu = yes; then 3526 GCC=yes 3527else 3528 GCC= 3529fi 3530ac_test_CFLAGS=${CFLAGS+set} 3531ac_save_CFLAGS=$CFLAGS 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3533$as_echo_n "checking whether $CC accepts -g... " >&6; } 3534if ${ac_cv_prog_cc_g+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 ac_save_c_werror_flag=$ac_c_werror_flag 3538 ac_c_werror_flag=yes 3539 ac_cv_prog_cc_g=no 3540 CFLAGS="-g" 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543 3544int 3545main () 3546{ 3547 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552if ac_fn_c_try_compile "$LINENO"; then : 3553 ac_cv_prog_cc_g=yes 3554else 3555 CFLAGS="" 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557/* end confdefs.h. */ 3558 3559int 3560main () 3561{ 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567if ac_fn_c_try_compile "$LINENO"; then : 3568 3569else 3570 ac_c_werror_flag=$ac_save_c_werror_flag 3571 CFLAGS="-g" 3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573/* end confdefs.h. */ 3574 3575int 3576main () 3577{ 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583if ac_fn_c_try_compile "$LINENO"; then : 3584 ac_cv_prog_cc_g=yes 3585fi 3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3587fi 3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591 ac_c_werror_flag=$ac_save_c_werror_flag 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3594$as_echo "$ac_cv_prog_cc_g" >&6; } 3595if test "$ac_test_CFLAGS" = set; then 3596 CFLAGS=$ac_save_CFLAGS 3597elif test $ac_cv_prog_cc_g = yes; then 3598 if test "$GCC" = yes; then 3599 CFLAGS="-g -O2" 3600 else 3601 CFLAGS="-g" 3602 fi 3603else 3604 if test "$GCC" = yes; then 3605 CFLAGS="-O2" 3606 else 3607 CFLAGS= 3608 fi 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3611$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3612if ${ac_cv_prog_cc_c89+:} false; then : 3613 $as_echo_n "(cached) " >&6 3614else 3615 ac_cv_prog_cc_c89=no 3616ac_save_CC=$CC 3617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619#include <stdarg.h> 3620#include <stdio.h> 3621#include <sys/types.h> 3622#include <sys/stat.h> 3623/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3624struct buf { int x; }; 3625FILE * (*rcsopen) (struct buf *, struct stat *, int); 3626static char *e (p, i) 3627 char **p; 3628 int i; 3629{ 3630 return p[i]; 3631} 3632static char *f (char * (*g) (char **, int), char **p, ...) 3633{ 3634 char *s; 3635 va_list v; 3636 va_start (v,p); 3637 s = g (p, va_arg (v,int)); 3638 va_end (v); 3639 return s; 3640} 3641 3642/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3643 function prototypes and stuff, but not '\xHH' hex character constants. 3644 These don't provoke an error unfortunately, instead are silently treated 3645 as 'x'. The following induces an error, until -std is added to get 3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3647 array size at least. It's necessary to write '\x00'==0 to get something 3648 that's true only with -std. */ 3649int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3650 3651/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3652 inside strings and character constants. */ 3653#define FOO(x) 'x' 3654int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3655 3656int test (int i, double x); 3657struct s1 {int (*f) (int a);}; 3658struct s2 {int (*f) (double a);}; 3659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3660int argc; 3661char **argv; 3662int 3663main () 3664{ 3665return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3672do 3673 CC="$ac_save_CC $ac_arg" 3674 if ac_fn_c_try_compile "$LINENO"; then : 3675 ac_cv_prog_cc_c89=$ac_arg 3676fi 3677rm -f core conftest.err conftest.$ac_objext 3678 test "x$ac_cv_prog_cc_c89" != "xno" && break 3679done 3680rm -f conftest.$ac_ext 3681CC=$ac_save_CC 3682 3683fi 3684# AC_CACHE_VAL 3685case "x$ac_cv_prog_cc_c89" in 3686 x) 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3688$as_echo "none needed" >&6; } ;; 3689 xno) 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3691$as_echo "unsupported" >&6; } ;; 3692 *) 3693 CC="$CC $ac_cv_prog_cc_c89" 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3695$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3696esac 3697if test "x$ac_cv_prog_cc_c89" != xno; then : 3698 3699fi 3700 3701ac_ext=c 3702ac_cpp='$CPP $CPPFLAGS' 3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3705ac_compiler_gnu=$ac_cv_c_compiler_gnu 3706DEPDIR="${am__leading_dot}deps" 3707 3708ac_config_commands="$ac_config_commands depfiles" 3709 3710 3711am_make=${MAKE-make} 3712cat > confinc << 'END' 3713am__doit: 3714 @echo this is the am__doit target 3715.PHONY: am__doit 3716END 3717# If we don't find an include directive, just comment out the code. 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3719$as_echo_n "checking for style of include used by $am_make... " >&6; } 3720am__include="#" 3721am__quote= 3722_am_result=none 3723# First try GNU make style include. 3724echo "include confinc" > confmf 3725# Ignore all kinds of additional output from `make'. 3726case `$am_make -s -f confmf 2> /dev/null` in #( 3727*the\ am__doit\ target*) 3728 am__include=include 3729 am__quote= 3730 _am_result=GNU 3731 ;; 3732esac 3733# Now try BSD make style include. 3734if test "$am__include" = "#"; then 3735 echo '.include "confinc"' > confmf 3736 case `$am_make -s -f confmf 2> /dev/null` in #( 3737 *the\ am__doit\ target*) 3738 am__include=.include 3739 am__quote="\"" 3740 _am_result=BSD 3741 ;; 3742 esac 3743fi 3744 3745 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3747$as_echo "$_am_result" >&6; } 3748rm -f confinc confmf 3749 3750# Check whether --enable-dependency-tracking was given. 3751if test "${enable_dependency_tracking+set}" = set; then : 3752 enableval=$enable_dependency_tracking; 3753fi 3754 3755if test "x$enable_dependency_tracking" != xno; then 3756 am_depcomp="$ac_aux_dir/depcomp" 3757 AMDEPBACKSLASH='\' 3758 am__nodep='_no' 3759fi 3760 if test "x$enable_dependency_tracking" != xno; then 3761 AMDEP_TRUE= 3762 AMDEP_FALSE='#' 3763else 3764 AMDEP_TRUE='#' 3765 AMDEP_FALSE= 3766fi 3767 3768 3769 3770depcc="$CC" am_compiler_list= 3771 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3773$as_echo_n "checking dependency style of $depcc... " >&6; } 3774if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3778 # We make a subdir and do the tests there. Otherwise we can end up 3779 # making bogus files that we don't know about and never remove. For 3780 # instance it was reported that on HP-UX the gcc test will end up 3781 # making a dummy file named `D' -- because `-MD' means `put the output 3782 # in D'. 3783 rm -rf conftest.dir 3784 mkdir conftest.dir 3785 # Copy depcomp to subdir because otherwise we won't find it if we're 3786 # using a relative directory. 3787 cp "$am_depcomp" conftest.dir 3788 cd conftest.dir 3789 # We will build objects and dependencies in a subdirectory because 3790 # it helps to detect inapplicable dependency modes. For instance 3791 # both Tru64's cc and ICC support -MD to output dependencies as a 3792 # side effect of compilation, but ICC will put the dependencies in 3793 # the current directory while Tru64 will put them in the object 3794 # directory. 3795 mkdir sub 3796 3797 am_cv_CC_dependencies_compiler_type=none 3798 if test "$am_compiler_list" = ""; then 3799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3800 fi 3801 am__universal=false 3802 case " $depcc " in #( 3803 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3804 esac 3805 3806 for depmode in $am_compiler_list; do 3807 # Setup a source with many dependencies, because some compilers 3808 # like to wrap large dependency lists on column 80 (with \), and 3809 # we should not choose a depcomp mode which is confused by this. 3810 # 3811 # We need to recreate these files for each test, as the compiler may 3812 # overwrite some of them when testing with obscure command lines. 3813 # This happens at least with the AIX C compiler. 3814 : > sub/conftest.c 3815 for i in 1 2 3 4 5 6; do 3816 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3818 # Solaris 8's {/usr,}/bin/sh. 3819 touch sub/conftst$i.h 3820 done 3821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3822 3823 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3824 # mode. It turns out that the SunPro C++ compiler does not properly 3825 # handle `-M -o', and we need to detect this. Also, some Intel 3826 # versions had trouble with output in subdirs 3827 am__obj=sub/conftest.${OBJEXT-o} 3828 am__minus_obj="-o $am__obj" 3829 case $depmode in 3830 gcc) 3831 # This depmode causes a compiler race in universal mode. 3832 test "$am__universal" = false || continue 3833 ;; 3834 nosideeffect) 3835 # after this tag, mechanisms are not by side-effect, so they'll 3836 # only be used when explicitly requested 3837 if test "x$enable_dependency_tracking" = xyes; then 3838 continue 3839 else 3840 break 3841 fi 3842 ;; 3843 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3844 # This compiler won't grok `-c -o', but also, the minuso test has 3845 # not run yet. These depmodes are late enough in the game, and 3846 # so weak that their functioning should not be impacted. 3847 am__obj=conftest.${OBJEXT-o} 3848 am__minus_obj= 3849 ;; 3850 none) break ;; 3851 esac 3852 if depmode=$depmode \ 3853 source=sub/conftest.c object=$am__obj \ 3854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3855 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3856 >/dev/null 2>conftest.err && 3857 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3859 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3861 # icc doesn't choke on unknown options, it will just issue warnings 3862 # or remarks (even with -Werror). So we grep stderr for any message 3863 # that says an option was ignored or not supported. 3864 # When given -MP, icc 7.0 and 7.1 complain thusly: 3865 # icc: Command line warning: ignoring option '-M'; no argument required 3866 # The diagnosis changed in icc 8.0: 3867 # icc: Command line remark: option '-MP' not supported 3868 if (grep 'ignoring option' conftest.err || 3869 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3870 am_cv_CC_dependencies_compiler_type=$depmode 3871 break 3872 fi 3873 fi 3874 done 3875 3876 cd .. 3877 rm -rf conftest.dir 3878else 3879 am_cv_CC_dependencies_compiler_type=none 3880fi 3881 3882fi 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3884$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3885CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3886 3887 if 3888 test "x$enable_dependency_tracking" != xno \ 3889 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3890 am__fastdepCC_TRUE= 3891 am__fastdepCC_FALSE='#' 3892else 3893 am__fastdepCC_TRUE='#' 3894 am__fastdepCC_FALSE= 3895fi 3896 3897 3898if test -n "$ac_tool_prefix"; then 3899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3900set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3902$as_echo_n "checking for $ac_word... " >&6; } 3903if ${ac_cv_prog_RANLIB+:} false; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 if test -n "$RANLIB"; then 3907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3908else 3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3910for as_dir in $PATH 3911do 3912 IFS=$as_save_IFS 3913 test -z "$as_dir" && as_dir=. 3914 for ac_exec_ext in '' $ac_executable_extensions; do 3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3918 break 2 3919 fi 3920done 3921 done 3922IFS=$as_save_IFS 3923 3924fi 3925fi 3926RANLIB=$ac_cv_prog_RANLIB 3927if test -n "$RANLIB"; then 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3929$as_echo "$RANLIB" >&6; } 3930else 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3932$as_echo "no" >&6; } 3933fi 3934 3935 3936fi 3937if test -z "$ac_cv_prog_RANLIB"; then 3938 ac_ct_RANLIB=$RANLIB 3939 # Extract the first word of "ranlib", so it can be a program name with args. 3940set dummy ranlib; ac_word=$2 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3942$as_echo_n "checking for $ac_word... " >&6; } 3943if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 if test -n "$ac_ct_RANLIB"; then 3947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3948else 3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3950for as_dir in $PATH 3951do 3952 IFS=$as_save_IFS 3953 test -z "$as_dir" && as_dir=. 3954 for ac_exec_ext in '' $ac_executable_extensions; do 3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3956 ac_cv_prog_ac_ct_RANLIB="ranlib" 3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3958 break 2 3959 fi 3960done 3961 done 3962IFS=$as_save_IFS 3963 3964fi 3965fi 3966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3967if test -n "$ac_ct_RANLIB"; then 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3969$as_echo "$ac_ct_RANLIB" >&6; } 3970else 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3972$as_echo "no" >&6; } 3973fi 3974 3975 if test "x$ac_ct_RANLIB" = x; then 3976 RANLIB=":" 3977 else 3978 case $cross_compiling:$ac_tool_warned in 3979yes:) 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3982ac_tool_warned=yes ;; 3983esac 3984 RANLIB=$ac_ct_RANLIB 3985 fi 3986else 3987 RANLIB="$ac_cv_prog_RANLIB" 3988fi 3989 3990 3991 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 3993$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 3994if ${ac_cv_c_const+:} false; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999 4000int 4001main () 4002{ 4003/* FIXME: Include the comments suggested by Paul. */ 4004#ifndef __cplusplus 4005 /* Ultrix mips cc rejects this. */ 4006 typedef int charset[2]; 4007 const charset cs; 4008 /* SunOS 4.1.1 cc rejects this. */ 4009 char const *const *pcpcc; 4010 char **ppc; 4011 /* NEC SVR4.0.2 mips cc rejects this. */ 4012 struct point {int x, y;}; 4013 static struct point const zero = {0,0}; 4014 /* AIX XL C 1.02.0.0 rejects this. 4015 It does not let you subtract one const X* pointer from another in 4016 an arm of an if-expression whose if-part is not a constant 4017 expression */ 4018 const char *g = "string"; 4019 pcpcc = &g + (g ? g-g : 0); 4020 /* HPUX 7.0 cc rejects these. */ 4021 ++pcpcc; 4022 ppc = (char**) pcpcc; 4023 pcpcc = (char const *const *) ppc; 4024 { /* SCO 3.2v4 cc rejects this. */ 4025 char *t; 4026 char const *s = 0 ? (char *) 0 : (char const *) 0; 4027 4028 *t++ = 0; 4029 if (s) return 0; 4030 } 4031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4032 int x[] = {25, 17}; 4033 const int *foo = &x[0]; 4034 ++foo; 4035 } 4036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4037 typedef const int *iptr; 4038 iptr p = 0; 4039 ++p; 4040 } 4041 { /* AIX XL C 1.02.0.0 rejects this saying 4042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4043 struct s { int j; const int *ap[3]; }; 4044 struct s *b; b->j = 5; 4045 } 4046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4047 const int foo = 10; 4048 if (!foo) return 0; 4049 } 4050 return !cs[0] && !zero.x; 4051#endif 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057if ac_fn_c_try_compile "$LINENO"; then : 4058 ac_cv_c_const=yes 4059else 4060 ac_cv_c_const=no 4061fi 4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4065$as_echo "$ac_cv_c_const" >&6; } 4066if test $ac_cv_c_const = no; then 4067 4068$as_echo "#define const /**/" >>confdefs.h 4069 4070fi 4071 4072 4073# Checks for libraries. 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 4075$as_echo_n "checking for main in -lm... " >&6; } 4076if ${ac_cv_lib_m_main+:} false; then : 4077 $as_echo_n "(cached) " >&6 4078else 4079 ac_check_lib_save_LIBS=$LIBS 4080LIBS="-lm $LIBS" 4081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083 4084 4085int 4086main () 4087{ 4088return main (); 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093if ac_fn_c_try_link "$LINENO"; then : 4094 ac_cv_lib_m_main=yes 4095else 4096 ac_cv_lib_m_main=no 4097fi 4098rm -f core conftest.err conftest.$ac_objext \ 4099 conftest$ac_exeext conftest.$ac_ext 4100LIBS=$ac_check_lib_save_LIBS 4101fi 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 4103$as_echo "$ac_cv_lib_m_main" >&6; } 4104if test "x$ac_cv_lib_m_main" = xyes; then : 4105 cat >>confdefs.h <<_ACEOF 4106#define HAVE_LIBM 1 4107_ACEOF 4108 4109 LIBS="-lm $LIBS" 4110 4111fi 4112ac_cv_lib_m=ac_cv_lib_m_main 4113 4114 4115# Checks for header files. 4116ac_ext=c 4117ac_cpp='$CPP $CPPFLAGS' 4118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4120ac_compiler_gnu=$ac_cv_c_compiler_gnu 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4122$as_echo_n "checking how to run the C preprocessor... " >&6; } 4123# On Suns, sometimes $CPP names a directory. 4124if test -n "$CPP" && test -d "$CPP"; then 4125 CPP= 4126fi 4127if test -z "$CPP"; then 4128 if ${ac_cv_prog_CPP+:} false; then : 4129 $as_echo_n "(cached) " >&6 4130else 4131 # Double quotes because CPP needs to be expanded 4132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4133 do 4134 ac_preproc_ok=false 4135for ac_c_preproc_warn_flag in '' yes 4136do 4137 # Use a header file that comes with gcc, so configuring glibc 4138 # with a fresh cross-compiler works. 4139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4140 # <limits.h> exists even on freestanding compilers. 4141 # On the NeXT, cc -E runs the code through the compiler's parser, 4142 # not just through cpp. "Syntax error" is here to catch this case. 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145#ifdef __STDC__ 4146# include <limits.h> 4147#else 4148# include <assert.h> 4149#endif 4150 Syntax error 4151_ACEOF 4152if ac_fn_c_try_cpp "$LINENO"; then : 4153 4154else 4155 # Broken: fails on valid input. 4156continue 4157fi 4158rm -f conftest.err conftest.i conftest.$ac_ext 4159 4160 # OK, works on sane cases. Now check whether nonexistent headers 4161 # can be detected and how. 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164#include <ac_nonexistent.h> 4165_ACEOF 4166if ac_fn_c_try_cpp "$LINENO"; then : 4167 # Broken: success on invalid input. 4168continue 4169else 4170 # Passes both tests. 4171ac_preproc_ok=: 4172break 4173fi 4174rm -f conftest.err conftest.i conftest.$ac_ext 4175 4176done 4177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4178rm -f conftest.i conftest.err conftest.$ac_ext 4179if $ac_preproc_ok; then : 4180 break 4181fi 4182 4183 done 4184 ac_cv_prog_CPP=$CPP 4185 4186fi 4187 CPP=$ac_cv_prog_CPP 4188else 4189 ac_cv_prog_CPP=$CPP 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4192$as_echo "$CPP" >&6; } 4193ac_preproc_ok=false 4194for ac_c_preproc_warn_flag in '' yes 4195do 4196 # Use a header file that comes with gcc, so configuring glibc 4197 # with a fresh cross-compiler works. 4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4199 # <limits.h> exists even on freestanding compilers. 4200 # On the NeXT, cc -E runs the code through the compiler's parser, 4201 # not just through cpp. "Syntax error" is here to catch this case. 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204#ifdef __STDC__ 4205# include <limits.h> 4206#else 4207# include <assert.h> 4208#endif 4209 Syntax error 4210_ACEOF 4211if ac_fn_c_try_cpp "$LINENO"; then : 4212 4213else 4214 # Broken: fails on valid input. 4215continue 4216fi 4217rm -f conftest.err conftest.i conftest.$ac_ext 4218 4219 # OK, works on sane cases. Now check whether nonexistent headers 4220 # can be detected and how. 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222/* end confdefs.h. */ 4223#include <ac_nonexistent.h> 4224_ACEOF 4225if ac_fn_c_try_cpp "$LINENO"; then : 4226 # Broken: success on invalid input. 4227continue 4228else 4229 # Passes both tests. 4230ac_preproc_ok=: 4231break 4232fi 4233rm -f conftest.err conftest.i conftest.$ac_ext 4234 4235done 4236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4237rm -f conftest.i conftest.err conftest.$ac_ext 4238if $ac_preproc_ok; then : 4239 4240else 4241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4243as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4244See \`config.log' for more details" "$LINENO" 5; } 4245fi 4246 4247ac_ext=c 4248ac_cpp='$CPP $CPPFLAGS' 4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4251ac_compiler_gnu=$ac_cv_c_compiler_gnu 4252 4253 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4255$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4256if ${ac_cv_path_GREP+:} false; then : 4257 $as_echo_n "(cached) " >&6 4258else 4259 if test -z "$GREP"; then 4260 ac_path_GREP_found=false 4261 # Loop through the user's path and test for each of PROGNAME-LIST 4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4263for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4264do 4265 IFS=$as_save_IFS 4266 test -z "$as_dir" && as_dir=. 4267 for ac_prog in grep ggrep; do 4268 for ac_exec_ext in '' $ac_executable_extensions; do 4269 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4270 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4271# Check for GNU ac_path_GREP and select it if it is found. 4272 # Check for GNU $ac_path_GREP 4273case `"$ac_path_GREP" --version 2>&1` in 4274*GNU*) 4275 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4276*) 4277 ac_count=0 4278 $as_echo_n 0123456789 >"conftest.in" 4279 while : 4280 do 4281 cat "conftest.in" "conftest.in" >"conftest.tmp" 4282 mv "conftest.tmp" "conftest.in" 4283 cp "conftest.in" "conftest.nl" 4284 $as_echo 'GREP' >> "conftest.nl" 4285 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4287 as_fn_arith $ac_count + 1 && ac_count=$as_val 4288 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4289 # Best one so far, save it but keep looking for a better one 4290 ac_cv_path_GREP="$ac_path_GREP" 4291 ac_path_GREP_max=$ac_count 4292 fi 4293 # 10*(2^10) chars as input seems more than enough 4294 test $ac_count -gt 10 && break 4295 done 4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4297esac 4298 4299 $ac_path_GREP_found && break 3 4300 done 4301 done 4302 done 4303IFS=$as_save_IFS 4304 if test -z "$ac_cv_path_GREP"; then 4305 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4306 fi 4307else 4308 ac_cv_path_GREP=$GREP 4309fi 4310 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4313$as_echo "$ac_cv_path_GREP" >&6; } 4314 GREP="$ac_cv_path_GREP" 4315 4316 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4318$as_echo_n "checking for egrep... " >&6; } 4319if ${ac_cv_path_EGREP+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4323 then ac_cv_path_EGREP="$GREP -E" 4324 else 4325 if test -z "$EGREP"; then 4326 ac_path_EGREP_found=false 4327 # Loop through the user's path and test for each of PROGNAME-LIST 4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4329for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4330do 4331 IFS=$as_save_IFS 4332 test -z "$as_dir" && as_dir=. 4333 for ac_prog in egrep; do 4334 for ac_exec_ext in '' $ac_executable_extensions; do 4335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4336 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4337# Check for GNU ac_path_EGREP and select it if it is found. 4338 # Check for GNU $ac_path_EGREP 4339case `"$ac_path_EGREP" --version 2>&1` in 4340*GNU*) 4341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4342*) 4343 ac_count=0 4344 $as_echo_n 0123456789 >"conftest.in" 4345 while : 4346 do 4347 cat "conftest.in" "conftest.in" >"conftest.tmp" 4348 mv "conftest.tmp" "conftest.in" 4349 cp "conftest.in" "conftest.nl" 4350 $as_echo 'EGREP' >> "conftest.nl" 4351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4353 as_fn_arith $ac_count + 1 && ac_count=$as_val 4354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4355 # Best one so far, save it but keep looking for a better one 4356 ac_cv_path_EGREP="$ac_path_EGREP" 4357 ac_path_EGREP_max=$ac_count 4358 fi 4359 # 10*(2^10) chars as input seems more than enough 4360 test $ac_count -gt 10 && break 4361 done 4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4363esac 4364 4365 $ac_path_EGREP_found && break 3 4366 done 4367 done 4368 done 4369IFS=$as_save_IFS 4370 if test -z "$ac_cv_path_EGREP"; then 4371 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4372 fi 4373else 4374 ac_cv_path_EGREP=$EGREP 4375fi 4376 4377 fi 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4380$as_echo "$ac_cv_path_EGREP" >&6; } 4381 EGREP="$ac_cv_path_EGREP" 4382 4383 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4385$as_echo_n "checking for ANSI C header files... " >&6; } 4386if ${ac_cv_header_stdc+:} false; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391#include <stdlib.h> 4392#include <stdarg.h> 4393#include <string.h> 4394#include <float.h> 4395 4396int 4397main () 4398{ 4399 4400 ; 4401 return 0; 4402} 4403_ACEOF 4404if ac_fn_c_try_compile "$LINENO"; then : 4405 ac_cv_header_stdc=yes 4406else 4407 ac_cv_header_stdc=no 4408fi 4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4410 4411if test $ac_cv_header_stdc = yes; then 4412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4414/* end confdefs.h. */ 4415#include <string.h> 4416 4417_ACEOF 4418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4419 $EGREP "memchr" >/dev/null 2>&1; then : 4420 4421else 4422 ac_cv_header_stdc=no 4423fi 4424rm -f conftest* 4425 4426fi 4427 4428if test $ac_cv_header_stdc = yes; then 4429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431/* end confdefs.h. */ 4432#include <stdlib.h> 4433 4434_ACEOF 4435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4436 $EGREP "free" >/dev/null 2>&1; then : 4437 4438else 4439 ac_cv_header_stdc=no 4440fi 4441rm -f conftest* 4442 4443fi 4444 4445if test $ac_cv_header_stdc = yes; then 4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4447 if test "$cross_compiling" = yes; then : 4448 : 4449else 4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4451/* end confdefs.h. */ 4452#include <ctype.h> 4453#include <stdlib.h> 4454#if ((' ' & 0x0FF) == 0x020) 4455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4457#else 4458# define ISLOWER(c) \ 4459 (('a' <= (c) && (c) <= 'i') \ 4460 || ('j' <= (c) && (c) <= 'r') \ 4461 || ('s' <= (c) && (c) <= 'z')) 4462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4463#endif 4464 4465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4466int 4467main () 4468{ 4469 int i; 4470 for (i = 0; i < 256; i++) 4471 if (XOR (islower (i), ISLOWER (i)) 4472 || toupper (i) != TOUPPER (i)) 4473 return 2; 4474 return 0; 4475} 4476_ACEOF 4477if ac_fn_c_try_run "$LINENO"; then : 4478 4479else 4480 ac_cv_header_stdc=no 4481fi 4482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4483 conftest.$ac_objext conftest.beam conftest.$ac_ext 4484fi 4485 4486fi 4487fi 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4489$as_echo "$ac_cv_header_stdc" >&6; } 4490if test $ac_cv_header_stdc = yes; then 4491 4492$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4493 4494fi 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4497$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4498if ${ac_cv_header_sys_wait_h+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503#include <sys/types.h> 4504#include <sys/wait.h> 4505#ifndef WEXITSTATUS 4506# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4507#endif 4508#ifndef WIFEXITED 4509# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4510#endif 4511 4512int 4513main () 4514{ 4515 int s; 4516 wait (&s); 4517 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4518 ; 4519 return 0; 4520} 4521_ACEOF 4522if ac_fn_c_try_compile "$LINENO"; then : 4523 ac_cv_header_sys_wait_h=yes 4524else 4525 ac_cv_header_sys_wait_h=no 4526fi 4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4530$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4531if test $ac_cv_header_sys_wait_h = yes; then 4532 4533$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4534 4535fi 4536 4537 4538# lets keep this in some semblence of alphabetical order 4539# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4541 inttypes.h stdint.h unistd.h 4542do : 4543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4544ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4545" 4546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4547 cat >>confdefs.h <<_ACEOF 4548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4549_ACEOF 4550 4551fi 4552 4553done 4554 4555 4556for ac_header in arpa/inet.h endian.h errno.h fcntl.h ifaddrs.h limits.h linux/tcp.h linux/socket.h malloc.h netdb.h netinet/in.h netinet/sctp.h sched.h signal.h stdlib.h string.h strings.h syscall.h sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/stat.h sys/time.h sys/wait.h sys/ipc.h sys/sockio.h sys/sysinfo.h sys/wait.h stdlib.h unistd.h netinet/in_systm.h netinet/ip.h 4557do : 4558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4561 cat >>confdefs.h <<_ACEOF 4562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4563_ACEOF 4564 4565fi 4566 4567done 4568 4569 4570# Some platforms require these. There may be a better way. 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 4572$as_echo_n "checking for main in -lsocket... " >&6; } 4573if ${ac_cv_lib_socket_main+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 ac_check_lib_save_LIBS=$LIBS 4577LIBS="-lsocket $LIBS" 4578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4579/* end confdefs.h. */ 4580 4581 4582int 4583main () 4584{ 4585return main (); 4586 ; 4587 return 0; 4588} 4589_ACEOF 4590if ac_fn_c_try_link "$LINENO"; then : 4591 ac_cv_lib_socket_main=yes 4592else 4593 ac_cv_lib_socket_main=no 4594fi 4595rm -f core conftest.err conftest.$ac_objext \ 4596 conftest$ac_exeext conftest.$ac_ext 4597LIBS=$ac_check_lib_save_LIBS 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 4600$as_echo "$ac_cv_lib_socket_main" >&6; } 4601if test "x$ac_cv_lib_socket_main" = xyes; then : 4602 cat >>confdefs.h <<_ACEOF 4603#define HAVE_LIBSOCKET 1 4604_ACEOF 4605 4606 LIBS="-lsocket $LIBS" 4607 4608fi 4609ac_cv_lib_socket=ac_cv_lib_socket_main 4610 4611if test "$ac_cv_lib_socket_main" = yes ; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 4613$as_echo_n "checking for main in -lnsl... " >&6; } 4614if ${ac_cv_lib_nsl_main+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 ac_check_lib_save_LIBS=$LIBS 4618LIBS="-lnsl $LIBS" 4619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4620/* end confdefs.h. */ 4621 4622 4623int 4624main () 4625{ 4626return main (); 4627 ; 4628 return 0; 4629} 4630_ACEOF 4631if ac_fn_c_try_link "$LINENO"; then : 4632 ac_cv_lib_nsl_main=yes 4633else 4634 ac_cv_lib_nsl_main=no 4635fi 4636rm -f core conftest.err conftest.$ac_objext \ 4637 conftest$ac_exeext conftest.$ac_ext 4638LIBS=$ac_check_lib_save_LIBS 4639fi 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 4641$as_echo "$ac_cv_lib_nsl_main" >&6; } 4642if test "x$ac_cv_lib_nsl_main" = xyes; then : 4643 cat >>confdefs.h <<_ACEOF 4644#define HAVE_LIBNSL 1 4645_ACEOF 4646 4647 LIBS="-lnsl $LIBS" 4648 4649fi 4650ac_cv_lib_nsl=ac_cv_lib_nsl_main 4651 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5 4653$as_echo_n "checking for main in -lsendfile... " >&6; } 4654if ${ac_cv_lib_sendfile_main+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 ac_check_lib_save_LIBS=$LIBS 4658LIBS="-lsendfile $LIBS" 4659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661 4662 4663int 4664main () 4665{ 4666return main (); 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671if ac_fn_c_try_link "$LINENO"; then : 4672 ac_cv_lib_sendfile_main=yes 4673else 4674 ac_cv_lib_sendfile_main=no 4675fi 4676rm -f core conftest.err conftest.$ac_objext \ 4677 conftest$ac_exeext conftest.$ac_ext 4678LIBS=$ac_check_lib_save_LIBS 4679fi 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5 4681$as_echo "$ac_cv_lib_sendfile_main" >&6; } 4682if test "x$ac_cv_lib_sendfile_main" = xyes; then : 4683 cat >>confdefs.h <<_ACEOF 4684#define HAVE_LIBSENDFILE 1 4685_ACEOF 4686 4687 LIBS="-lsendfile $LIBS" 4688 4689fi 4690ac_cv_lib_sendfile=ac_cv_lib_sendfile_main 4691 4692 # Check whether --enable-largefile was given. 4693if test "${enable_largefile+set}" = set; then : 4694 enableval=$enable_largefile; 4695fi 4696 4697if test "$enable_largefile" != no; then 4698 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4700$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4701if ${ac_cv_sys_largefile_CC+:} false; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 ac_cv_sys_largefile_CC=no 4705 if test "$GCC" != yes; then 4706 ac_save_CC=$CC 4707 while :; do 4708 # IRIX 6.2 and later do not support large files by default, 4709 # so use the C compiler's -n32 option if that helps. 4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4711/* end confdefs.h. */ 4712#include <sys/types.h> 4713 /* Check that off_t can represent 2**63 - 1 correctly. 4714 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4715 since some C++ compilers masquerading as C compilers 4716 incorrectly reject 9223372036854775807. */ 4717#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4719 && LARGE_OFF_T % 2147483647 == 1) 4720 ? 1 : -1]; 4721int 4722main () 4723{ 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729 if ac_fn_c_try_compile "$LINENO"; then : 4730 break 4731fi 4732rm -f core conftest.err conftest.$ac_objext 4733 CC="$CC -n32" 4734 if ac_fn_c_try_compile "$LINENO"; then : 4735 ac_cv_sys_largefile_CC=' -n32'; break 4736fi 4737rm -f core conftest.err conftest.$ac_objext 4738 break 4739 done 4740 CC=$ac_save_CC 4741 rm -f conftest.$ac_ext 4742 fi 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4745$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4746 if test "$ac_cv_sys_largefile_CC" != no; then 4747 CC=$CC$ac_cv_sys_largefile_CC 4748 fi 4749 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4751$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4752if ${ac_cv_sys_file_offset_bits+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 while :; do 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758#include <sys/types.h> 4759 /* Check that off_t can represent 2**63 - 1 correctly. 4760 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4761 since some C++ compilers masquerading as C compilers 4762 incorrectly reject 9223372036854775807. */ 4763#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4765 && LARGE_OFF_T % 2147483647 == 1) 4766 ? 1 : -1]; 4767int 4768main () 4769{ 4770 4771 ; 4772 return 0; 4773} 4774_ACEOF 4775if ac_fn_c_try_compile "$LINENO"; then : 4776 ac_cv_sys_file_offset_bits=no; break 4777fi 4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781#define _FILE_OFFSET_BITS 64 4782#include <sys/types.h> 4783 /* Check that off_t can represent 2**63 - 1 correctly. 4784 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4785 since some C++ compilers masquerading as C compilers 4786 incorrectly reject 9223372036854775807. */ 4787#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4789 && LARGE_OFF_T % 2147483647 == 1) 4790 ? 1 : -1]; 4791int 4792main () 4793{ 4794 4795 ; 4796 return 0; 4797} 4798_ACEOF 4799if ac_fn_c_try_compile "$LINENO"; then : 4800 ac_cv_sys_file_offset_bits=64; break 4801fi 4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4803 ac_cv_sys_file_offset_bits=unknown 4804 break 4805done 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4808$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4809case $ac_cv_sys_file_offset_bits in #( 4810 no | unknown) ;; 4811 *) 4812cat >>confdefs.h <<_ACEOF 4813#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4814_ACEOF 4815;; 4816esac 4817rm -rf conftest* 4818 if test $ac_cv_sys_file_offset_bits = unknown; then 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4820$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4821if ${ac_cv_sys_large_files+:} false; then : 4822 $as_echo_n "(cached) " >&6 4823else 4824 while :; do 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827#include <sys/types.h> 4828 /* Check that off_t can represent 2**63 - 1 correctly. 4829 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4830 since some C++ compilers masquerading as C compilers 4831 incorrectly reject 9223372036854775807. */ 4832#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4834 && LARGE_OFF_T % 2147483647 == 1) 4835 ? 1 : -1]; 4836int 4837main () 4838{ 4839 4840 ; 4841 return 0; 4842} 4843_ACEOF 4844if ac_fn_c_try_compile "$LINENO"; then : 4845 ac_cv_sys_large_files=no; break 4846fi 4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4849/* end confdefs.h. */ 4850#define _LARGE_FILES 1 4851#include <sys/types.h> 4852 /* Check that off_t can represent 2**63 - 1 correctly. 4853 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4854 since some C++ compilers masquerading as C compilers 4855 incorrectly reject 9223372036854775807. */ 4856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4858 && LARGE_OFF_T % 2147483647 == 1) 4859 ? 1 : -1]; 4860int 4861main () 4862{ 4863 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868if ac_fn_c_try_compile "$LINENO"; then : 4869 ac_cv_sys_large_files=1; break 4870fi 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872 ac_cv_sys_large_files=unknown 4873 break 4874done 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4877$as_echo "$ac_cv_sys_large_files" >&6; } 4878case $ac_cv_sys_large_files in #( 4879 no | unknown) ;; 4880 *) 4881cat >>confdefs.h <<_ACEOF 4882#define _LARGE_FILES $ac_cv_sys_large_files 4883_ACEOF 4884;; 4885esac 4886rm -rf conftest* 4887 fi 4888fi 4889 4890fi 4891 4892# this one is for Tru64 and bind_to_cpu_id 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmach" >&5 4894$as_echo_n "checking for main in -lmach... " >&6; } 4895if ${ac_cv_lib_mach_main+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 ac_check_lib_save_LIBS=$LIBS 4899LIBS="-lmach $LIBS" 4900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902 4903 4904int 4905main () 4906{ 4907return main (); 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912if ac_fn_c_try_link "$LINENO"; then : 4913 ac_cv_lib_mach_main=yes 4914else 4915 ac_cv_lib_mach_main=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext \ 4918 conftest$ac_exeext conftest.$ac_ext 4919LIBS=$ac_check_lib_save_LIBS 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mach_main" >&5 4922$as_echo "$ac_cv_lib_mach_main" >&6; } 4923if test "x$ac_cv_lib_mach_main" = xyes; then : 4924 cat >>confdefs.h <<_ACEOF 4925#define HAVE_LIBMACH 1 4926_ACEOF 4927 4928 LIBS="-lmach $LIBS" 4929 4930fi 4931ac_cv_lib_mach=ac_cv_lib_mach_main 4932 4933 4934# Checks for typedefs, structures, and compiler characteristics. 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4936$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4937if ${ac_cv_c_const+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942 4943int 4944main () 4945{ 4946/* FIXME: Include the comments suggested by Paul. */ 4947#ifndef __cplusplus 4948 /* Ultrix mips cc rejects this. */ 4949 typedef int charset[2]; 4950 const charset cs; 4951 /* SunOS 4.1.1 cc rejects this. */ 4952 char const *const *pcpcc; 4953 char **ppc; 4954 /* NEC SVR4.0.2 mips cc rejects this. */ 4955 struct point {int x, y;}; 4956 static struct point const zero = {0,0}; 4957 /* AIX XL C 1.02.0.0 rejects this. 4958 It does not let you subtract one const X* pointer from another in 4959 an arm of an if-expression whose if-part is not a constant 4960 expression */ 4961 const char *g = "string"; 4962 pcpcc = &g + (g ? g-g : 0); 4963 /* HPUX 7.0 cc rejects these. */ 4964 ++pcpcc; 4965 ppc = (char**) pcpcc; 4966 pcpcc = (char const *const *) ppc; 4967 { /* SCO 3.2v4 cc rejects this. */ 4968 char *t; 4969 char const *s = 0 ? (char *) 0 : (char const *) 0; 4970 4971 *t++ = 0; 4972 if (s) return 0; 4973 } 4974 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4975 int x[] = {25, 17}; 4976 const int *foo = &x[0]; 4977 ++foo; 4978 } 4979 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4980 typedef const int *iptr; 4981 iptr p = 0; 4982 ++p; 4983 } 4984 { /* AIX XL C 1.02.0.0 rejects this saying 4985 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4986 struct s { int j; const int *ap[3]; }; 4987 struct s *b; b->j = 5; 4988 } 4989 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4990 const int foo = 10; 4991 if (!foo) return 0; 4992 } 4993 return !cs[0] && !zero.x; 4994#endif 4995 4996 ; 4997 return 0; 4998} 4999_ACEOF 5000if ac_fn_c_try_compile "$LINENO"; then : 5001 ac_cv_c_const=yes 5002else 5003 ac_cv_c_const=no 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006fi 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5008$as_echo "$ac_cv_c_const" >&6; } 5009if test $ac_cv_c_const = no; then 5010 5011$as_echo "#define const /**/" >>confdefs.h 5012 5013fi 5014 5015ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5016if test "x$ac_cv_type_off_t" = xyes; then : 5017 5018else 5019 5020cat >>confdefs.h <<_ACEOF 5021#define off_t long int 5022_ACEOF 5023 5024fi 5025 5026ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5027if test "x$ac_cv_type_size_t" = xyes; then : 5028 5029else 5030 5031cat >>confdefs.h <<_ACEOF 5032#define size_t unsigned int 5033_ACEOF 5034 5035fi 5036 5037# AC_TYPE_SOCKLEN_T 5038 5039 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 5041$as_echo_n "checking for socklen_t equivalent... " >&6; } 5042 if ${curl_cv_socklen_t_equiv+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 5046 # Systems have either "struct sockaddr *" or 5047 # "void *" as the second argument to getpeername 5048 curl_cv_socklen_t_equiv= 5049 for arg2 in "struct sockaddr" void; do 5050 for t in int size_t unsigned long "unsigned long" socklen_t; do 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053 5054 #ifdef HAVE_SYS_TYPES_H 5055 #include <sys/types.h> 5056 #endif 5057 #ifdef HAVE_SYS_SOCKET_H 5058 #include <sys/socket.h> 5059 #endif 5060 5061 extern int getpeername (int, $arg2 *, $t *); 5062 5063int 5064main () 5065{ 5066 5067 $t len; 5068 getpeername(0,0,&len); 5069 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074if ac_fn_c_try_compile "$LINENO"; then : 5075 5076 curl_cv_socklen_t_equiv="$t" 5077 break 2 5078 5079fi 5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5081 done 5082 done 5083 5084 if test "x$curl_cv_socklen_t_equiv" = x; then 5085 # take a wild guess 5086 curl_cv_socklen_t_equiv="socklen_t" 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t, guessing socklen_t" >&5 5088$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t, guessing socklen_t" >&2;} 5089 fi 5090 5091fi 5092 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 5094$as_echo "$curl_cv_socklen_t_equiv" >&6; } 5095 5096cat >>confdefs.h <<_ACEOF 5097#define netperf_socklen_t $curl_cv_socklen_t_equiv 5098_ACEOF 5099 5100 5101 5102# AC_TYPE_IN_PORT_T 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno declaration in netdb.h" >&5 5104$as_echo_n "checking for h_errno declaration in netdb.h... " >&6; } 5105if ${ac_cv_decl_h_errno+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110 5111#include <netdb.h> 5112int 5113main () 5114{ 5115 5116h_errno = 0; 5117 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122if ac_fn_c_try_compile "$LINENO"; then : 5123 ac_cv_decl_h_errno=yes 5124else 5125 ac_cv_decl_h_errno=no 5126fi 5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5128fi 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5 5130$as_echo "$ac_cv_decl_h_errno" >&6; } 5131if test "$ac_cv_decl_h_errno" = yes; then 5132 5133$as_echo "#define H_ERRNO_DECLARED 1" >>confdefs.h 5134 5135fi 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 5137$as_echo_n "checking for struct sockaddr_storage... " >&6; } 5138if ${ac_cv_struct_sockaddr_storage+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140else 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143 5144#include <sys/types.h> 5145#include <sys/socket.h> 5146#include <netinet/in.h> 5147int 5148main () 5149{ 5150 5151struct sockaddr_storage address; 5152 5153 ; 5154 return 0; 5155} 5156_ACEOF 5157if ac_fn_c_try_compile "$LINENO"; then : 5158 ac_cv_struct_sockaddr_storage=yes 5159else 5160 ac_cv_struct_sockaddr_storage=no 5161fi 5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5163fi 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 5165$as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 5166if test "$ac_cv_struct_sockaddr_storage" = yes; then 5167 5168$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 5169 5170fi 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5172$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5173if ${ac_cv_header_time+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178#include <sys/types.h> 5179#include <sys/time.h> 5180#include <time.h> 5181 5182int 5183main () 5184{ 5185if ((struct tm *) 0) 5186return 0; 5187 ; 5188 return 0; 5189} 5190_ACEOF 5191if ac_fn_c_try_compile "$LINENO"; then : 5192 ac_cv_header_time=yes 5193else 5194 ac_cv_header_time=no 5195fi 5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5197fi 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5199$as_echo "$ac_cv_header_time" >&6; } 5200if test $ac_cv_header_time = yes; then 5201 5202$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5203 5204fi 5205 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 5207$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 5208if ${ac_cv_header_stdbool_h+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213 5214#include <stdbool.h> 5215#ifndef bool 5216 "error: bool is not defined" 5217#endif 5218#ifndef false 5219 "error: false is not defined" 5220#endif 5221#if false 5222 "error: false is not 0" 5223#endif 5224#ifndef true 5225 "error: true is not defined" 5226#endif 5227#if true != 1 5228 "error: true is not 1" 5229#endif 5230#ifndef __bool_true_false_are_defined 5231 "error: __bool_true_false_are_defined is not defined" 5232#endif 5233 5234 struct s { _Bool s: 1; _Bool t; } s; 5235 5236 char a[true == 1 ? 1 : -1]; 5237 char b[false == 0 ? 1 : -1]; 5238 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 5239 char d[(bool) 0.5 == true ? 1 : -1]; 5240 /* See body of main program for 'e'. */ 5241 char f[(_Bool) 0.0 == false ? 1 : -1]; 5242 char g[true]; 5243 char h[sizeof (_Bool)]; 5244 char i[sizeof s.t]; 5245 enum { j = false, k = true, l = false * true, m = true * 256 }; 5246 /* The following fails for 5247 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 5248 _Bool n[m]; 5249 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 5250 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 5251 /* Catch a bug in an HP-UX C compiler. See 5252 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 5253 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 5254 */ 5255 _Bool q = true; 5256 _Bool *pq = &q; 5257 5258int 5259main () 5260{ 5261 5262 bool e = &s; 5263 *pq |= q; 5264 *pq |= ! q; 5265 /* Refer to every declared value, to avoid compiler optimizations. */ 5266 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 5267 + !m + !n + !o + !p + !q + !pq); 5268 5269 ; 5270 return 0; 5271} 5272_ACEOF 5273if ac_fn_c_try_compile "$LINENO"; then : 5274 ac_cv_header_stdbool_h=yes 5275else 5276 ac_cv_header_stdbool_h=no 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 5281$as_echo "$ac_cv_header_stdbool_h" >&6; } 5282ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 5283if test "x$ac_cv_type__Bool" = xyes; then : 5284 5285cat >>confdefs.h <<_ACEOF 5286#define HAVE__BOOL 1 5287_ACEOF 5288 5289 5290fi 5291 5292if test $ac_cv_header_stdbool_h = yes; then 5293 5294$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 5295 5296fi 5297 5298 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has sa_len member" >&5 5300$as_echo_n "checking if sockaddr struct has sa_len member... " >&6; } 5301 if ${ac_cv_sockaddr_has_sa_len+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306 5307# include <sys/types.h> 5308# include <sys/socket.h> 5309int 5310main () 5311{ 5312u_int i = sizeof(((struct sockaddr *)0)->sa_len) 5313 ; 5314 return 0; 5315} 5316_ACEOF 5317if ac_fn_c_try_compile "$LINENO"; then : 5318 ac_cv_sockaddr_has_sa_len=yes 5319else 5320 ac_cv_sockaddr_has_sa_len=no 5321fi 5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5323fi 5324 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5 5326$as_echo "$ac_cv_sockaddr_has_sa_len" >&6; } 5327 if test $ac_cv_sockaddr_has_sa_len = yes ; then 5328 5329$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 5330 5331 fi 5332 5333 5334# Checks for library functions. 5335# AC_FUNC_ERROR_AT_LINE 5336ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 5337if test "x$ac_cv_type_pid_t" = xyes; then : 5338 5339else 5340 5341cat >>confdefs.h <<_ACEOF 5342#define pid_t int 5343_ACEOF 5344 5345fi 5346 5347for ac_header in vfork.h 5348do : 5349 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 5350if test "x$ac_cv_header_vfork_h" = xyes; then : 5351 cat >>confdefs.h <<_ACEOF 5352#define HAVE_VFORK_H 1 5353_ACEOF 5354 5355fi 5356 5357done 5358 5359for ac_func in fork vfork 5360do : 5361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5362ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5363if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5364 cat >>confdefs.h <<_ACEOF 5365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5366_ACEOF 5367 5368fi 5369done 5370 5371if test "x$ac_cv_func_fork" = xyes; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 5373$as_echo_n "checking for working fork... " >&6; } 5374if ${ac_cv_func_fork_works+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376else 5377 if test "$cross_compiling" = yes; then : 5378 ac_cv_func_fork_works=cross 5379else 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381/* end confdefs.h. */ 5382$ac_includes_default 5383int 5384main () 5385{ 5386 5387 /* By Ruediger Kuhlmann. */ 5388 return fork () < 0; 5389 5390 ; 5391 return 0; 5392} 5393_ACEOF 5394if ac_fn_c_try_run "$LINENO"; then : 5395 ac_cv_func_fork_works=yes 5396else 5397 ac_cv_func_fork_works=no 5398fi 5399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5400 conftest.$ac_objext conftest.beam conftest.$ac_ext 5401fi 5402 5403fi 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 5405$as_echo "$ac_cv_func_fork_works" >&6; } 5406 5407else 5408 ac_cv_func_fork_works=$ac_cv_func_fork 5409fi 5410if test "x$ac_cv_func_fork_works" = xcross; then 5411 case $host in 5412 *-*-amigaos* | *-*-msdosdjgpp*) 5413 # Override, as these systems have only a dummy fork() stub 5414 ac_cv_func_fork_works=no 5415 ;; 5416 *) 5417 ac_cv_func_fork_works=yes 5418 ;; 5419 esac 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 5421$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 5422fi 5423ac_cv_func_vfork_works=$ac_cv_func_vfork 5424if test "x$ac_cv_func_vfork" = xyes; then 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 5426$as_echo_n "checking for working vfork... " >&6; } 5427if ${ac_cv_func_vfork_works+:} false; then : 5428 $as_echo_n "(cached) " >&6 5429else 5430 if test "$cross_compiling" = yes; then : 5431 ac_cv_func_vfork_works=cross 5432else 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435/* Thanks to Paul Eggert for this test. */ 5436$ac_includes_default 5437#include <sys/wait.h> 5438#ifdef HAVE_VFORK_H 5439# include <vfork.h> 5440#endif 5441/* On some sparc systems, changes by the child to local and incoming 5442 argument registers are propagated back to the parent. The compiler 5443 is told about this with #include <vfork.h>, but some compilers 5444 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 5445 static variable whose address is put into a register that is 5446 clobbered by the vfork. */ 5447static void 5448#ifdef __cplusplus 5449sparc_address_test (int arg) 5450# else 5451sparc_address_test (arg) int arg; 5452#endif 5453{ 5454 static pid_t child; 5455 if (!child) { 5456 child = vfork (); 5457 if (child < 0) { 5458 perror ("vfork"); 5459 _exit(2); 5460 } 5461 if (!child) { 5462 arg = getpid(); 5463 write(-1, "", 0); 5464 _exit (arg); 5465 } 5466 } 5467} 5468 5469int 5470main () 5471{ 5472 pid_t parent = getpid (); 5473 pid_t child; 5474 5475 sparc_address_test (0); 5476 5477 child = vfork (); 5478 5479 if (child == 0) { 5480 /* Here is another test for sparc vfork register problems. This 5481 test uses lots of local variables, at least as many local 5482 variables as main has allocated so far including compiler 5483 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 5484 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 5485 reuse the register of parent for one of the local variables, 5486 since it will think that parent can't possibly be used any more 5487 in this routine. Assigning to the local variable will thus 5488 munge parent in the parent process. */ 5489 pid_t 5490 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 5491 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 5492 /* Convince the compiler that p..p7 are live; otherwise, it might 5493 use the same hardware register for all 8 local variables. */ 5494 if (p != p1 || p != p2 || p != p3 || p != p4 5495 || p != p5 || p != p6 || p != p7) 5496 _exit(1); 5497 5498 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 5499 from child file descriptors. If the child closes a descriptor 5500 before it execs or exits, this munges the parent's descriptor 5501 as well. Test for this by closing stdout in the child. */ 5502 _exit(close(fileno(stdout)) != 0); 5503 } else { 5504 int status; 5505 struct stat st; 5506 5507 while (wait(&status) != child) 5508 ; 5509 return ( 5510 /* Was there some problem with vforking? */ 5511 child < 0 5512 5513 /* Did the child fail? (This shouldn't happen.) */ 5514 || status 5515 5516 /* Did the vfork/compiler bug occur? */ 5517 || parent != getpid() 5518 5519 /* Did the file descriptor bug occur? */ 5520 || fstat(fileno(stdout), &st) != 0 5521 ); 5522 } 5523} 5524_ACEOF 5525if ac_fn_c_try_run "$LINENO"; then : 5526 ac_cv_func_vfork_works=yes 5527else 5528 ac_cv_func_vfork_works=no 5529fi 5530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5531 conftest.$ac_objext conftest.beam conftest.$ac_ext 5532fi 5533 5534fi 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 5536$as_echo "$ac_cv_func_vfork_works" >&6; } 5537 5538fi; 5539if test "x$ac_cv_func_fork_works" = xcross; then 5540 ac_cv_func_vfork_works=$ac_cv_func_vfork 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 5542$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 5543fi 5544 5545if test "x$ac_cv_func_vfork_works" = xyes; then 5546 5547$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 5548 5549else 5550 5551$as_echo "#define vfork fork" >>confdefs.h 5552 5553fi 5554if test "x$ac_cv_func_fork_works" = xyes; then 5555 5556$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 5557 5558fi 5559 5560# AC_FUNC_MALLOC 5561 5562 5563 5564 for ac_header in $ac_header_list 5565do : 5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5567ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5568" 5569if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5570 cat >>confdefs.h <<_ACEOF 5571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5572_ACEOF 5573 5574fi 5575 5576done 5577 5578 5579 5580 5581 5582 5583 5584 5585for ac_func in getpagesize 5586do : 5587 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 5588if test "x$ac_cv_func_getpagesize" = xyes; then : 5589 cat >>confdefs.h <<_ACEOF 5590#define HAVE_GETPAGESIZE 1 5591_ACEOF 5592 5593fi 5594done 5595 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 5597$as_echo_n "checking for working mmap... " >&6; } 5598if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 if test "$cross_compiling" = yes; then : 5602 ac_cv_func_mmap_fixed_mapped=no 5603else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606$ac_includes_default 5607/* malloc might have been renamed as rpl_malloc. */ 5608#undef malloc 5609 5610/* Thanks to Mike Haertel and Jim Avera for this test. 5611 Here is a matrix of mmap possibilities: 5612 mmap private not fixed 5613 mmap private fixed at somewhere currently unmapped 5614 mmap private fixed at somewhere already mapped 5615 mmap shared not fixed 5616 mmap shared fixed at somewhere currently unmapped 5617 mmap shared fixed at somewhere already mapped 5618 For private mappings, we should verify that changes cannot be read() 5619 back from the file, nor mmap's back from the file at a different 5620 address. (There have been systems where private was not correctly 5621 implemented like the infamous i386 svr4.0, and systems where the 5622 VM page cache was not coherent with the file system buffer cache 5623 like early versions of FreeBSD and possibly contemporary NetBSD.) 5624 For shared mappings, we should conversely verify that changes get 5625 propagated back to all the places they're supposed to be. 5626 5627 Grep wants private fixed already mapped. 5628 The main things grep needs to know about mmap are: 5629 * does it exist and is it safe to write into the mmap'd area 5630 * how to use it (BSD variants) */ 5631 5632#include <fcntl.h> 5633#include <sys/mman.h> 5634 5635#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 5636char *malloc (); 5637#endif 5638 5639/* This mess was copied from the GNU getpagesize.h. */ 5640#ifndef HAVE_GETPAGESIZE 5641# ifdef _SC_PAGESIZE 5642# define getpagesize() sysconf(_SC_PAGESIZE) 5643# else /* no _SC_PAGESIZE */ 5644# ifdef HAVE_SYS_PARAM_H 5645# include <sys/param.h> 5646# ifdef EXEC_PAGESIZE 5647# define getpagesize() EXEC_PAGESIZE 5648# else /* no EXEC_PAGESIZE */ 5649# ifdef NBPG 5650# define getpagesize() NBPG * CLSIZE 5651# ifndef CLSIZE 5652# define CLSIZE 1 5653# endif /* no CLSIZE */ 5654# else /* no NBPG */ 5655# ifdef NBPC 5656# define getpagesize() NBPC 5657# else /* no NBPC */ 5658# ifdef PAGESIZE 5659# define getpagesize() PAGESIZE 5660# endif /* PAGESIZE */ 5661# endif /* no NBPC */ 5662# endif /* no NBPG */ 5663# endif /* no EXEC_PAGESIZE */ 5664# else /* no HAVE_SYS_PARAM_H */ 5665# define getpagesize() 8192 /* punt totally */ 5666# endif /* no HAVE_SYS_PARAM_H */ 5667# endif /* no _SC_PAGESIZE */ 5668 5669#endif /* no HAVE_GETPAGESIZE */ 5670 5671int 5672main () 5673{ 5674 char *data, *data2, *data3; 5675 const char *cdata2; 5676 int i, pagesize; 5677 int fd, fd2; 5678 5679 pagesize = getpagesize (); 5680 5681 /* First, make a file with some known garbage in it. */ 5682 data = (char *) malloc (pagesize); 5683 if (!data) 5684 return 1; 5685 for (i = 0; i < pagesize; ++i) 5686 *(data + i) = rand (); 5687 umask (0); 5688 fd = creat ("conftest.mmap", 0600); 5689 if (fd < 0) 5690 return 2; 5691 if (write (fd, data, pagesize) != pagesize) 5692 return 3; 5693 close (fd); 5694 5695 /* Next, check that the tail of a page is zero-filled. File must have 5696 non-zero length, otherwise we risk SIGBUS for entire page. */ 5697 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 5698 if (fd2 < 0) 5699 return 4; 5700 cdata2 = ""; 5701 if (write (fd2, cdata2, 1) != 1) 5702 return 5; 5703 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 5704 if (data2 == MAP_FAILED) 5705 return 6; 5706 for (i = 0; i < pagesize; ++i) 5707 if (*(data2 + i)) 5708 return 7; 5709 close (fd2); 5710 if (munmap (data2, pagesize)) 5711 return 8; 5712 5713 /* Next, try to mmap the file at a fixed address which already has 5714 something else allocated at it. If we can, also make sure that 5715 we see the same garbage. */ 5716 fd = open ("conftest.mmap", O_RDWR); 5717 if (fd < 0) 5718 return 9; 5719 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5720 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5721 return 10; 5722 for (i = 0; i < pagesize; ++i) 5723 if (*(data + i) != *(data2 + i)) 5724 return 11; 5725 5726 /* Finally, make sure that changes to the mapped area do not 5727 percolate back to the file as seen by read(). (This is a bug on 5728 some variants of i386 svr4.0.) */ 5729 for (i = 0; i < pagesize; ++i) 5730 *(data2 + i) = *(data2 + i) + 1; 5731 data3 = (char *) malloc (pagesize); 5732 if (!data3) 5733 return 12; 5734 if (read (fd, data3, pagesize) != pagesize) 5735 return 13; 5736 for (i = 0; i < pagesize; ++i) 5737 if (*(data + i) != *(data3 + i)) 5738 return 14; 5739 close (fd); 5740 return 0; 5741} 5742_ACEOF 5743if ac_fn_c_try_run "$LINENO"; then : 5744 ac_cv_func_mmap_fixed_mapped=yes 5745else 5746 ac_cv_func_mmap_fixed_mapped=no 5747fi 5748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5749 conftest.$ac_objext conftest.beam conftest.$ac_ext 5750fi 5751 5752fi 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 5754$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 5755if test $ac_cv_func_mmap_fixed_mapped = yes; then 5756 5757$as_echo "#define HAVE_MMAP 1" >>confdefs.h 5758 5759fi 5760rm -f conftest.mmap conftest.txt 5761 5762for ac_header in sys/select.h sys/socket.h 5763do : 5764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5765ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5767 cat >>confdefs.h <<_ACEOF 5768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5769_ACEOF 5770 5771fi 5772 5773done 5774 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 5776$as_echo_n "checking types of arguments for select... " >&6; } 5777if ${ac_cv_func_select_args+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 5781 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 5782 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785$ac_includes_default 5786#ifdef HAVE_SYS_SELECT_H 5787# include <sys/select.h> 5788#endif 5789#ifdef HAVE_SYS_SOCKET_H 5790# include <sys/socket.h> 5791#endif 5792 5793int 5794main () 5795{ 5796extern int select ($ac_arg1, 5797 $ac_arg234, $ac_arg234, $ac_arg234, 5798 $ac_arg5); 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803if ac_fn_c_try_compile "$LINENO"; then : 5804 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 5805fi 5806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5807 done 5808 done 5809done 5810# Provide a safe default value. 5811: "${ac_cv_func_select_args=int,int *,struct timeval *}" 5812 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 5815$as_echo "$ac_cv_func_select_args" >&6; } 5816ac_save_IFS=$IFS; IFS=',' 5817set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 5818IFS=$ac_save_IFS 5819shift 5820 5821cat >>confdefs.h <<_ACEOF 5822#define SELECT_TYPE_ARG1 $1 5823_ACEOF 5824 5825 5826cat >>confdefs.h <<_ACEOF 5827#define SELECT_TYPE_ARG234 ($2) 5828_ACEOF 5829 5830 5831cat >>confdefs.h <<_ACEOF 5832#define SELECT_TYPE_ARG5 ($3) 5833_ACEOF 5834 5835rm -f conftest* 5836 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 5838$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 5839if ${ac_cv_func_setpgrp_void+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 if test "$cross_compiling" = yes; then : 5843 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 5844else 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847$ac_includes_default 5848int 5849main () 5850{ 5851/* If this system has a BSD-style setpgrp which takes arguments, 5852 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 5853 exit successfully. */ 5854 return setpgrp (1,1) != -1; 5855 ; 5856 return 0; 5857} 5858_ACEOF 5859if ac_fn_c_try_run "$LINENO"; then : 5860 ac_cv_func_setpgrp_void=no 5861else 5862 ac_cv_func_setpgrp_void=yes 5863fi 5864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5865 conftest.$ac_objext conftest.beam conftest.$ac_ext 5866fi 5867 5868fi 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 5870$as_echo "$ac_cv_func_setpgrp_void" >&6; } 5871if test $ac_cv_func_setpgrp_void = yes; then 5872 5873$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 5874 5875fi 5876 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5878$as_echo_n "checking return type of signal handlers... " >&6; } 5879if ${ac_cv_type_signal+:} false; then : 5880 $as_echo_n "(cached) " >&6 5881else 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5883/* end confdefs.h. */ 5884#include <sys/types.h> 5885#include <signal.h> 5886 5887int 5888main () 5889{ 5890return *(signal (0, 0)) (0) == 1; 5891 ; 5892 return 0; 5893} 5894_ACEOF 5895if ac_fn_c_try_compile "$LINENO"; then : 5896 ac_cv_type_signal=int 5897else 5898 ac_cv_type_signal=void 5899fi 5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5901fi 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5903$as_echo "$ac_cv_type_signal" >&6; } 5904 5905cat >>confdefs.h <<_ACEOF 5906#define RETSIGTYPE $ac_cv_type_signal 5907_ACEOF 5908 5909 5910# AC_FUNC_STAT 5911# remove pstat_getdynamic (at least for now) since we don't do 5912# anything conditional with the check anyway... 5913for ac_func in alarm bzero daemon gethostbyname gethrtime gettimeofday inet_ntoa memset memcpy munmap select setsid socket sqrt strcasecmp strchr strstr strtoul uname toupper 5914do : 5915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5916ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5917if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5918 cat >>confdefs.h <<_ACEOF 5919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5920_ACEOF 5921 5922fi 5923done 5924 5925 5926#AC_CONFIG_SUBDIRS(src/missing) 5927 5928# does this platform need the replacement getaddrinfo 5929for ac_func in getnameinfo getaddrinfo inet_ntop getifaddrs 5930do : 5931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5932ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5933if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5934 cat >>confdefs.h <<_ACEOF 5935#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5936_ACEOF 5937 5938fi 5939done 5940 5941# AC_REPLACE_FUNCS([getaddrinfo]) 5942 5943 5944if test "$ac_cv_func_getaddrinfo$ac_cv_func_getnameinfo" != yesyes ; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: Requesting replacement getaddrinfo/getnameinfo" >&5 5946$as_echo "$as_me: Requesting replacement getaddrinfo/getnameinfo" >&6;} 5947 case " $LIBOBJS " in 5948 *" getaddrinfo.$ac_objext "* ) ;; 5949 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 5950 ;; 5951esac 5952 5953 HAVE_MISSING=yes 5954fi 5955if test "$ac_cv_func_inet_ntop" != yes ; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: Requesting replacement inet_ntop" >&5 5957$as_echo "$as_me: Requesting replacement inet_ntop" >&6;} 5958 case " $LIBOBJS " in 5959 *" inet_ntop.$ac_objext "* ) ;; 5960 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 5961 ;; 5962esac 5963 5964 HAVE_MISSING=yes 5965fi 5966 if test "$HAVE_MISSING" = "yes"; then 5967 NEED_LIBCOMPAT_TRUE= 5968 NEED_LIBCOMPAT_FALSE='#' 5969else 5970 NEED_LIBCOMPAT_TRUE='#' 5971 NEED_LIBCOMPAT_FALSE= 5972fi 5973 5974 5975for ac_func in sendfile 5976do : 5977 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 5978if test "x$ac_cv_func_sendfile" = xyes; then : 5979 cat >>confdefs.h <<_ACEOF 5980#define HAVE_SENDFILE 1 5981_ACEOF 5982 5983fi 5984done 5985 5986 5987for ac_func in uname 5988do : 5989 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 5990if test "x$ac_cv_func_uname" = xyes; then : 5991 cat >>confdefs.h <<_ACEOF 5992#define HAVE_UNAME 1 5993_ACEOF 5994 5995fi 5996done 5997 5998 5999# check for the various CPU binding calls 6000for ac_func in mpctl processor_bind sched_setaffinity bind_to_cpu_id bindprocessor 6001do : 6002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6003ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6004if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6005 cat >>confdefs.h <<_ACEOF 6006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6007_ACEOF 6008 6009fi 6010done 6011 6012 6013# see if we should be enabling histogram support 6014 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include histogram support" >&5 6016$as_echo_n "checking whether to include histogram support... " >&6; } 6017 6018# Check whether --enable-histogram was given. 6019if test "${enable_histogram+set}" = set; then : 6020 enableval=$enable_histogram; 6021fi 6022 6023 6024case "$enable_histogram" in 6025 yes) 6026 use_histogram=true 6027 ;; 6028 no) 6029 use_histogram=false 6030 ;; 6031 '') 6032 # whatever 6033 use_histogram=false 6034 ;; 6035 *) 6036 as_fn_error $? "--enable-histogram takes yes or no" "$LINENO" 5 6037 ;; 6038esac 6039 6040if $use_histogram 6041then 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6043$as_echo "yes" >&6; } 6044else 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6046$as_echo "no" >&6; } 6047fi 6048 6049if $use_histogram 6050then 6051 6052$as_echo "#define WANT_HISTOGRAM /**/" >>confdefs.h 6053 6054fi 6055# see if we should be enabling histogram support 6056 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dirty support" >&5 6058$as_echo_n "checking whether to include dirty support... " >&6; } 6059 6060# Check whether --enable-dirty was given. 6061if test "${enable_dirty+set}" = set; then : 6062 enableval=$enable_dirty; 6063fi 6064 6065 6066case "$enable_dirty" in 6067 yes) 6068 use_dirty=true 6069 ;; 6070 no) 6071 use_dirty=false 6072 ;; 6073 '') 6074 # whatever 6075 use_dirty=false 6076 ;; 6077 *) 6078 as_fn_error $? "--enable-dirty takes yes or no" "$LINENO" 5 6079 ;; 6080esac 6081 6082if $use_dirty 6083then 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6085$as_echo "yes" >&6; } 6086else 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091if $use_dirty 6092then 6093 6094$as_echo "#define DIRTY /**/" >>confdefs.h 6095 6096fi 6097 6098# see if we should be enabling demo support 6099 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include demo support" >&5 6101$as_echo_n "checking whether to include demo support... " >&6; } 6102 6103# Check whether --enable-demo was given. 6104if test "${enable_demo+set}" = set; then : 6105 enableval=$enable_demo; 6106fi 6107 6108 6109case "$enable_demo" in 6110 yes) 6111 use_demo=true 6112 ;; 6113 no) 6114 use_demo=false 6115 ;; 6116 '') 6117 # whatever 6118 use_demo=false 6119 ;; 6120 *) 6121 as_fn_error $? "--enable-demo takes yes or no" "$LINENO" 5 6122 ;; 6123esac 6124 6125if $use_demo 6126then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6128$as_echo "yes" >&6; } 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133 6134if $use_demo 6135then 6136 6137$as_echo "#define WANT_DEMO /**/" >>confdefs.h 6138 6139fi 6140 6141# see if we should be including the AF_UNIX tests 6142 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Unix-domain socket tests" >&5 6144$as_echo_n "checking whether to include Unix-domain socket tests... " >&6; } 6145 6146# Check whether --enable-unixdomain was given. 6147if test "${enable_unixdomain+set}" = set; then : 6148 enableval=$enable_unixdomain; 6149fi 6150 6151 6152case "$enable_unixdomain" in 6153 yes) 6154 use_unixdomain=true 6155 ;; 6156 no) 6157 use_unixdomain=false 6158 ;; 6159 '') 6160 use_unixdomain=false 6161 ;; 6162 *) 6163 as_fn_error $? "--enable-unixdomain takes yes or no" "$LINENO" 5 6164 ;; 6165esac 6166 6167if $use_unixdomain 6168then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6170$as_echo "yes" >&6; } 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173$as_echo "no" >&6; } 6174fi 6175 6176if $use_unixdomain 6177then 6178 6179$as_echo "#define WANT_UNIX /**/" >>confdefs.h 6180 6181fi 6182 6183# see if we should be including the DLPI tests 6184 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DLPI tests" >&5 6186$as_echo_n "checking whether to include DLPI tests... " >&6; } 6187 6188# Check whether --enable-dlpi was given. 6189if test "${enable_dlpi+set}" = set; then : 6190 enableval=$enable_dlpi; 6191fi 6192 6193 6194case "$enable_dlpi" in 6195 yes) 6196 use_dlpi=true 6197 ;; 6198 no) 6199 use_dlpi=false 6200 ;; 6201 '') 6202 use_dlpi=false 6203 ;; 6204 *) 6205 as_fn_error $? "--enable-dlpi takes yes or no" "$LINENO" 5 6206 ;; 6207esac 6208 6209if $use_dlpi 6210then 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6212$as_echo "yes" >&6; } 6213else 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6215$as_echo "no" >&6; } 6216fi 6217 6218if $use_dlpi 6219then 6220 6221$as_echo "#define WANT_DLPI /**/" >>confdefs.h 6222 6223fi 6224 6225# see if we should be including the DCCP tests 6226 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DCCP tests" >&5 6228$as_echo_n "checking whether to include DCCP tests... " >&6; } 6229 6230# Check whether --enable-dccp was given. 6231if test "${enable_dccp+set}" = set; then : 6232 enableval=$enable_dccp; 6233fi 6234 6235 6236case "$enable_dccp" in 6237 yes) 6238 use_dccp=true 6239 ;; 6240 no) 6241 use_dccp=false 6242 ;; 6243 '') 6244 use_dccp=false 6245 ;; 6246 *) 6247 as_fn_error $? "--enable-dccp takes yes or no" "$LINENO" 5 6248 ;; 6249esac 6250 6251if $use_dccp 6252then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6254$as_echo "yes" >&6; } 6255else 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6257$as_echo "no" >&6; } 6258fi 6259 6260if $use_dccp 6261then 6262 6263$as_echo "#define WANT_DCCP /**/" >>confdefs.h 6264 6265fi 6266 6267# see if we should be including the OMNI tests 6268 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include OMNI tests" >&5 6270$as_echo_n "checking whether to include OMNI tests... " >&6; } 6271 6272# Check whether --enable-omni was given. 6273if test "${enable_omni+set}" = set; then : 6274 enableval=$enable_omni; 6275fi 6276 6277 6278case "$enable_omni" in 6279 yes) 6280 use_omni=true 6281 ;; 6282 no) 6283 use_omni=false 6284 ;; 6285 '') 6286 use_omni=true 6287 ;; 6288 *) 6289 as_fn_error $? "--enable-omni takes yes or no" "$LINENO" 5 6290 ;; 6291esac 6292 6293if $use_omni 6294then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6296$as_echo "yes" >&6; } 6297else 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6299$as_echo "no" >&6; } 6300fi 6301 6302if $use_omni 6303then 6304 6305$as_echo "#define WANT_OMNI /**/" >>confdefs.h 6306 6307 6308$as_echo "#define WANT_MIGRATION /**/" >>confdefs.h 6309 6310fi 6311 6312 6313# see if we should be including the XTI tests 6314 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XTI tests" >&5 6316$as_echo_n "checking whether to include XTI tests... " >&6; } 6317 6318# Check whether --enable-xti was given. 6319if test "${enable_xti+set}" = set; then : 6320 enableval=$enable_xti; 6321fi 6322 6323 6324case "$enable_xti" in 6325 yes) 6326 use_xti=true 6327 ;; 6328 no) 6329 use_xti=false 6330 ;; 6331 '') 6332 use_xti=false 6333 ;; 6334 *) 6335 as_fn_error $? "--enable-xti takes yes or no" "$LINENO" 5 6336 ;; 6337esac 6338 6339if $use_xti 6340then 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6342$as_echo "yes" >&6; } 6343else 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6345$as_echo "no" >&6; } 6346fi 6347 6348if $use_xti 6349then 6350 6351$as_echo "#define WANT_XTI /**/" >>confdefs.h 6352 6353fi 6354 6355# see if we should be including the SDP tests 6356 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SDP tests" >&5 6358$as_echo_n "checking whether to include SDP tests... " >&6; } 6359 6360# Check whether --enable-sdp was given. 6361if test "${enable_sdp+set}" = set; then : 6362 enableval=$enable_sdp; 6363fi 6364 6365 6366case "$enable_sdp" in 6367 yes) 6368 # probably need to be a bit more sophisticated here 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lsdp" >&5 6370$as_echo_n "checking for t_open in -lsdp... " >&6; } 6371if ${ac_cv_lib_sdp_t_open+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373else 6374 ac_check_lib_save_LIBS=$LIBS 6375LIBS="-lsdp $LIBS" 6376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6377/* end confdefs.h. */ 6378 6379/* Override any GCC internal prototype to avoid an error. 6380 Use char because int might match the return type of a GCC 6381 builtin and then its argument prototype would still apply. */ 6382#ifdef __cplusplus 6383extern "C" 6384#endif 6385char t_open (); 6386int 6387main () 6388{ 6389return t_open (); 6390 ; 6391 return 0; 6392} 6393_ACEOF 6394if ac_fn_c_try_link "$LINENO"; then : 6395 ac_cv_lib_sdp_t_open=yes 6396else 6397 ac_cv_lib_sdp_t_open=no 6398fi 6399rm -f core conftest.err conftest.$ac_objext \ 6400 conftest$ac_exeext conftest.$ac_ext 6401LIBS=$ac_check_lib_save_LIBS 6402fi 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sdp_t_open" >&5 6404$as_echo "$ac_cv_lib_sdp_t_open" >&6; } 6405if test "x$ac_cv_lib_sdp_t_open" = xyes; then : 6406 cat >>confdefs.h <<_ACEOF 6407#define HAVE_LIBSDP 1 6408_ACEOF 6409 6410 LIBS="-lsdp $LIBS" 6411 6412fi 6413 6414 use_sdp=true 6415 ;; 6416 no) 6417 use_sdp=false 6418 ;; 6419 '') 6420 use_sdp=false 6421 ;; 6422 *) 6423 as_fn_error $? "--enable-sdp takes yes or no" "$LINENO" 5 6424 ;; 6425esac 6426 6427if $use_sdp 6428then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6430$as_echo "yes" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6433$as_echo "no" >&6; } 6434fi 6435 6436if $use_sdp 6437then 6438 6439$as_echo "#define WANT_SDP /**/" >>confdefs.h 6440 6441fi 6442 6443# see if we should be including the ICSC-EXS tests 6444 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include ICSC-EXS tests" >&5 6446$as_echo_n "checking whether to include ICSC-EXS tests... " >&6; } 6447 6448# Check whether --enable-exs was given. 6449if test "${enable_exs+set}" = set; then : 6450 enableval=$enable_exs; 6451fi 6452 6453 6454case "$enable_exs" in 6455 yes) 6456 use_exs=true 6457 ac_fn_c_check_header_mongrel "$LINENO" "sys/exs.h" "ac_cv_header_sys_exs_h" "$ac_includes_default" 6458if test "x$ac_cv_header_sys_exs_h" = xyes; then : 6459 6460else 6461 use_exs=false 6462fi 6463 6464 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exs_init in -lexs" >&5 6466$as_echo_n "checking for exs_init in -lexs... " >&6; } 6467if ${ac_cv_lib_exs_exs_init+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469else 6470 ac_check_lib_save_LIBS=$LIBS 6471LIBS="-lexs $LIBS" 6472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474 6475/* Override any GCC internal prototype to avoid an error. 6476 Use char because int might match the return type of a GCC 6477 builtin and then its argument prototype would still apply. */ 6478#ifdef __cplusplus 6479extern "C" 6480#endif 6481char exs_init (); 6482int 6483main () 6484{ 6485return exs_init (); 6486 ; 6487 return 0; 6488} 6489_ACEOF 6490if ac_fn_c_try_link "$LINENO"; then : 6491 ac_cv_lib_exs_exs_init=yes 6492else 6493 ac_cv_lib_exs_exs_init=no 6494fi 6495rm -f core conftest.err conftest.$ac_objext \ 6496 conftest$ac_exeext conftest.$ac_ext 6497LIBS=$ac_check_lib_save_LIBS 6498fi 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exs_exs_init" >&5 6500$as_echo "$ac_cv_lib_exs_exs_init" >&6; } 6501if test "x$ac_cv_lib_exs_exs_init" = xyes; then : 6502 cat >>confdefs.h <<_ACEOF 6503#define HAVE_LIBEXS 1 6504_ACEOF 6505 6506 LIBS="-lexs $LIBS" 6507 6508else 6509 use_exs=false 6510fi 6511 6512 ;; 6513 no) 6514 use_exs=false 6515 ;; 6516 '') 6517 use_exs=false 6518 ;; 6519 *) 6520 as_fn_error $? "--enable-exs takes yes or no" "$LINENO" 5 6521 ;; 6522esac 6523 6524if $use_exs 6525then 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6527$as_echo "yes" >&6; } 6528else 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530$as_echo "no" >&6; } 6531fi 6532 6533if $use_exs 6534then 6535 6536$as_echo "#define HAVE_ICSC_EXS /**/" >>confdefs.h 6537 6538fi 6539 6540# see if we should be enabling SCTP support 6541 6542 6543# Check whether --enable-sctp was given. 6544if test "${enable_sctp+set}" = set; then : 6545 enableval=$enable_sctp; 6546fi 6547 6548 6549case "$enable_sctp" in 6550 yes) 6551 use_sctp=true 6552 for ac_header in netinet/sctp.h 6553do : 6554 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" " 6555#include <sys/socket.h> 6556 6557" 6558if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 6559 cat >>confdefs.h <<_ACEOF 6560#define HAVE_NETINET_SCTP_H 1 6561_ACEOF 6562 6563else 6564 use_sctp=false 6565fi 6566 6567done 6568 6569 case "$host" in 6570 *-*-freebsd78.*) 6571 # FreeBSD 7.x and later SCTP support doesn't need -lsctp. 6572 ;; 6573 *) 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsctp" >&5 6575$as_echo_n "checking for main in -lsctp... " >&6; } 6576if ${ac_cv_lib_sctp_main+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 ac_check_lib_save_LIBS=$LIBS 6580LIBS="-lsctp $LIBS" 6581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583 6584 6585int 6586main () 6587{ 6588return main (); 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO"; then : 6594 ac_cv_lib_sctp_main=yes 6595else 6596 ac_cv_lib_sctp_main=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600LIBS=$ac_check_lib_save_LIBS 6601fi 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_main" >&5 6603$as_echo "$ac_cv_lib_sctp_main" >&6; } 6604if test "x$ac_cv_lib_sctp_main" = xyes; then : 6605 cat >>confdefs.h <<_ACEOF 6606#define HAVE_LIBSCTP 1 6607_ACEOF 6608 6609 LIBS="-lsctp $LIBS" 6610 6611else 6612 use_sctp=false 6613fi 6614ac_cv_lib_sctp=ac_cv_lib_sctp_main 6615 6616 ;; 6617 esac 6618 ac_fn_c_check_member "$LINENO" "struct sctp_event_subscribe" "sctp_adaptation_layer_event" "ac_cv_member_struct_sctp_event_subscribe_sctp_adaptation_layer_event" "#include <netinet/sctp.h> 6619" 6620if test "x$ac_cv_member_struct_sctp_event_subscribe_sctp_adaptation_layer_event" = xyes; then : 6621 6622fi 6623 6624 if test "$ac_cv_member_struct_sctp_event_subscribe_sctp_adaptation_layer_event" = "yes"; then 6625 6626$as_echo "#define HAVE_SCTP_ADAPTATION_LAYER_EVENT 1" >>confdefs.h 6627 6628 fi 6629 ;; 6630 no) 6631 use_sctp=false 6632 ;; 6633 '') 6634 # whatever 6635 use_sctp=false 6636 ;; 6637 *) 6638 as_fn_error $? "--enable-sctp takes yes or no" "$LINENO" 5 6639 ;; 6640esac 6641 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SCTP tests" >&5 6643$as_echo_n "checking whether to include SCTP tests... " >&6; } 6644 6645if $use_sctp 6646then 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6648$as_echo "yes" >&6; } 6649else 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6651$as_echo "no" >&6; } 6652fi 6653 6654if $use_sctp 6655then 6656 6657$as_echo "#define WANT_SCTP /**/" >>confdefs.h 6658 6659fi 6660 6661# see if we should be enabling paced sends 6662 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include paced send (intervals) support" >&5 6664$as_echo_n "checking whether to include paced send (intervals) support... " >&6; } 6665 6666# Check whether --enable-intervals was given. 6667if test "${enable_intervals+set}" = set; then : 6668 enableval=$enable_intervals; 6669fi 6670 6671 6672case "$enable_intervals" in 6673 yes) 6674 use_intervals=true 6675 ;; 6676 no) 6677 use_intervals=false 6678 ;; 6679 '') 6680 use_intervals=false 6681 ;; 6682 *) 6683 as_fn_error $? "--enable-intervals takes yes or no" "$LINENO" 5 6684 ;; 6685esac 6686 6687if $use_intervals 6688then 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6690$as_echo "yes" >&6; } 6691else 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6693$as_echo "no" >&6; } 6694fi 6695 6696if $use_intervals 6697then 6698 6699$as_echo "#define WANT_INTERVALS /**/" >>confdefs.h 6700 6701fi 6702 6703# see if paced sends should wait and spin 6704 6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether paced sends should spin" >&5 6706$as_echo_n "checking whether paced sends should spin... " >&6; } 6707 6708# Check whether --enable-spin was given. 6709if test "${enable_spin+set}" = set; then : 6710 enableval=$enable_spin; 6711fi 6712 6713 6714case "$enable_spin" in 6715 yes) 6716 use_spin=true 6717 ;; 6718 no) 6719 use_spin=false 6720 ;; 6721 '') 6722 use_spin=false 6723 ;; 6724 *) 6725 as_fn_error $? "--enable-spin takes yes or no" "$LINENO" 5 6726 ;; 6727esac 6728 6729if $use_spin 6730then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6732$as_echo "yes" >&6; } 6733else 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6735$as_echo "no" >&6; } 6736fi 6737 6738if $use_spin 6739then 6740 6741$as_echo "#define WANT_INTERVALS /**/" >>confdefs.h 6742 6743 6744$as_echo "#define WANT_SPIN /**/" >>confdefs.h 6745 6746fi 6747 6748# see if we should be enabling initial request bursts 6749 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include initial burst support in _RR tests" >&5 6751$as_echo_n "checking whether to include initial burst support in _RR tests... " >&6; } 6752 6753# Check whether --enable-burst was given. 6754if test "${enable_burst+set}" = set; then : 6755 enableval=$enable_burst; 6756fi 6757 6758 6759case "$enable_burst" in 6760 yes) 6761 use_burst=true 6762 ;; 6763 no) 6764 use_burst=false 6765 ;; 6766 '') 6767 use_burst=true 6768 ;; 6769 *) 6770 as_fn_error $? "--enable-burst takes yes or no" "$LINENO" 5 6771 ;; 6772esac 6773 6774if $use_burst 6775then 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6777$as_echo "yes" >&6; } 6778else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6780$as_echo "no" >&6; } 6781fi 6782 6783if $use_burst 6784then 6785 6786$as_echo "#define WANT_FIRST_BURST /**/" >>confdefs.h 6787 6788fi 6789 6790# time to see about CPU utilization measurements 6791 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which CPU utilization measurement type to use" >&5 6793$as_echo_n "checking which CPU utilization measurement type to use... " >&6; } 6794 6795# Check whether --enable-cpuutil was given. 6796if test "${enable_cpuutil+set}" = set; then : 6797 enableval=$enable_cpuutil; 6798fi 6799 6800 6801NETCPU_SOURCE="$enable_cpuutil" 6802case "$enable_cpuutil" in 6803 pstat) 6804 use_cpuutil=true 6805 6806$as_echo "#define USE_PSTAT /**/" >>confdefs.h 6807 6808 ;; 6809 pstatnew) 6810 use_cpuutil=true 6811 6812$as_echo "#define USE_PSTAT /**/" >>confdefs.h 6813 6814 ;; 6815 perfstat) 6816 use_cpuutil=true 6817 6818$as_echo "#define USE_PERFSTAT /**/" >>confdefs.h 6819 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lperfstat" >&5 6821$as_echo_n "checking for main in -lperfstat... " >&6; } 6822if ${ac_cv_lib_perfstat_main+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824else 6825 ac_check_lib_save_LIBS=$LIBS 6826LIBS="-lperfstat $LIBS" 6827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829 6830 6831int 6832main () 6833{ 6834return main (); 6835 ; 6836 return 0; 6837} 6838_ACEOF 6839if ac_fn_c_try_link "$LINENO"; then : 6840 ac_cv_lib_perfstat_main=yes 6841else 6842 ac_cv_lib_perfstat_main=no 6843fi 6844rm -f core conftest.err conftest.$ac_objext \ 6845 conftest$ac_exeext conftest.$ac_ext 6846LIBS=$ac_check_lib_save_LIBS 6847fi 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_main" >&5 6849$as_echo "$ac_cv_lib_perfstat_main" >&6; } 6850if test "x$ac_cv_lib_perfstat_main" = xyes; then : 6851 cat >>confdefs.h <<_ACEOF 6852#define HAVE_LIBPERFSTAT 1 6853_ACEOF 6854 6855 LIBS="-lperfstat $LIBS" 6856 6857fi 6858ac_cv_lib_perfstat=ac_cv_lib_perfstat_main 6859 6860 ;; 6861 6862 looper) 6863 use_cpuutil=true 6864 6865$as_echo "#define USE_LOOPER /**/" >>confdefs.h 6866 6867 ;; 6868 procstat) 6869 use_cpuutil=true 6870 6871$as_echo "#define USE_PROC_STAT /**/" >>confdefs.h 6872 6873 ;; 6874 kstat) 6875 use_cpuutil=true 6876 6877$as_echo "#define USE_KSTAT /**/" >>confdefs.h 6878 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 6880$as_echo_n "checking for main in -lkstat... " >&6; } 6881if ${ac_cv_lib_kstat_main+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 ac_check_lib_save_LIBS=$LIBS 6885LIBS="-lkstat $LIBS" 6886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888 6889 6890int 6891main () 6892{ 6893return main (); 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_link "$LINENO"; then : 6899 ac_cv_lib_kstat_main=yes 6900else 6901 ac_cv_lib_kstat_main=no 6902fi 6903rm -f core conftest.err conftest.$ac_objext \ 6904 conftest$ac_exeext conftest.$ac_ext 6905LIBS=$ac_check_lib_save_LIBS 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 6908$as_echo "$ac_cv_lib_kstat_main" >&6; } 6909if test "x$ac_cv_lib_kstat_main" = xyes; then : 6910 cat >>confdefs.h <<_ACEOF 6911#define HAVE_LIBKSTAT 1 6912_ACEOF 6913 6914 LIBS="-lkstat $LIBS" 6915 6916fi 6917ac_cv_lib_kstat=ac_cv_lib_kstat_main 6918 6919 ;; 6920 kstat10) 6921 use_cpuutil=true 6922 6923$as_echo "#define USE_KSTAT /**/" >>confdefs.h 6924 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 6926$as_echo_n "checking for main in -lkstat... " >&6; } 6927if ${ac_cv_lib_kstat_main+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 ac_check_lib_save_LIBS=$LIBS 6931LIBS="-lkstat $LIBS" 6932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934 6935 6936int 6937main () 6938{ 6939return main (); 6940 ; 6941 return 0; 6942} 6943_ACEOF 6944if ac_fn_c_try_link "$LINENO"; then : 6945 ac_cv_lib_kstat_main=yes 6946else 6947 ac_cv_lib_kstat_main=no 6948fi 6949rm -f core conftest.err conftest.$ac_objext \ 6950 conftest$ac_exeext conftest.$ac_ext 6951LIBS=$ac_check_lib_save_LIBS 6952fi 6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 6954$as_echo "$ac_cv_lib_kstat_main" >&6; } 6955if test "x$ac_cv_lib_kstat_main" = xyes; then : 6956 cat >>confdefs.h <<_ACEOF 6957#define HAVE_LIBKSTAT 1 6958_ACEOF 6959 6960 LIBS="-lkstat $LIBS" 6961 6962fi 6963ac_cv_lib_kstat=ac_cv_lib_kstat_main 6964 6965 ;; 6966 osx) 6967 use_cpuutil=true 6968 6969$as_echo "#define USE_OSX /**/" >>confdefs.h 6970 6971 ;; 6972 '') 6973# ia64-hp-hpux11.23 6974# i386-pc-solaris2.10 6975# guess it automagically in a nice big case statement 6976 case $target in 6977 *-*-linux*) 6978 use_cpuutil=true 6979 6980$as_echo "#define USE_PROC_STAT /**/" >>confdefs.h 6981 6982 enable_cpuutil="procstat - auto" 6983 NETCPU_SOURCE="procstat" 6984 ;; 6985 *-*-hpux11.23 | *-*-hpux11.31) 6986 use_cpuutil=true 6987 6988$as_echo "#define USE_PSTAT /**/" >>confdefs.h 6989 6990 enable_cpuutil="pstatnew - auto" 6991 NETCPU_SOURCE="pstatnew" 6992 ;; 6993 *-*-hpux11* | *-*-hpux10*) 6994 use_cpuutil=true 6995 6996$as_echo "#define USE_PSTAT /**/" >>confdefs.h 6997 6998 enable_cpuutil="pstat - auto" 6999 NETCPU_SOURCE="pstat" 7000 ;; 7001 *-*-aix5.* | *-*-aix6.*) 7002 use_puutil=true 7003 7004$as_echo "#define USE_PERFSTAT /**/" >>confdefs.h 7005 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lperfstat" >&5 7007$as_echo_n "checking for main in -lperfstat... " >&6; } 7008if ${ac_cv_lib_perfstat_main+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 ac_check_lib_save_LIBS=$LIBS 7012LIBS="-lperfstat $LIBS" 7013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015 7016 7017int 7018main () 7019{ 7020return main (); 7021 ; 7022 return 0; 7023} 7024_ACEOF 7025if ac_fn_c_try_link "$LINENO"; then : 7026 ac_cv_lib_perfstat_main=yes 7027else 7028 ac_cv_lib_perfstat_main=no 7029fi 7030rm -f core conftest.err conftest.$ac_objext \ 7031 conftest$ac_exeext conftest.$ac_ext 7032LIBS=$ac_check_lib_save_LIBS 7033fi 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_main" >&5 7035$as_echo "$ac_cv_lib_perfstat_main" >&6; } 7036if test "x$ac_cv_lib_perfstat_main" = xyes; then : 7037 cat >>confdefs.h <<_ACEOF 7038#define HAVE_LIBPERFSTAT 1 7039_ACEOF 7040 7041 LIBS="-lperfstat $LIBS" 7042 7043fi 7044ac_cv_lib_perfstat=ac_cv_lib_perfstat_main 7045 7046 enable_cpuutil="perfstat - auto" 7047 NETCPU_SOURCE="perfstat" 7048 ;; 7049 *-*-solaris2.1*) 7050 use_cpuutil=true 7051 7052$as_echo "#define USE_KSTAT /**/" >>confdefs.h 7053 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 7055$as_echo_n "checking for main in -lkstat... " >&6; } 7056if ${ac_cv_lib_kstat_main+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 ac_check_lib_save_LIBS=$LIBS 7060LIBS="-lkstat $LIBS" 7061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063 7064 7065int 7066main () 7067{ 7068return main (); 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073if ac_fn_c_try_link "$LINENO"; then : 7074 ac_cv_lib_kstat_main=yes 7075else 7076 ac_cv_lib_kstat_main=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext \ 7079 conftest$ac_exeext conftest.$ac_ext 7080LIBS=$ac_check_lib_save_LIBS 7081fi 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 7083$as_echo "$ac_cv_lib_kstat_main" >&6; } 7084if test "x$ac_cv_lib_kstat_main" = xyes; then : 7085 cat >>confdefs.h <<_ACEOF 7086#define HAVE_LIBKSTAT 1 7087_ACEOF 7088 7089 LIBS="-lkstat $LIBS" 7090 7091fi 7092ac_cv_lib_kstat=ac_cv_lib_kstat_main 7093 7094 enable_cpuutil="kstat10 - auto" 7095 NETCPU_SOURCE="kstat10" 7096 ;; 7097 *-*-solaris2.*) 7098 use_cpuutil=true 7099 7100$as_echo "#define USE_KSTAT /**/" >>confdefs.h 7101 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 7103$as_echo_n "checking for main in -lkstat... " >&6; } 7104if ${ac_cv_lib_kstat_main+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 ac_check_lib_save_LIBS=$LIBS 7108LIBS="-lkstat $LIBS" 7109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7110/* end confdefs.h. */ 7111 7112 7113int 7114main () 7115{ 7116return main (); 7117 ; 7118 return 0; 7119} 7120_ACEOF 7121if ac_fn_c_try_link "$LINENO"; then : 7122 ac_cv_lib_kstat_main=yes 7123else 7124 ac_cv_lib_kstat_main=no 7125fi 7126rm -f core conftest.err conftest.$ac_objext \ 7127 conftest$ac_exeext conftest.$ac_ext 7128LIBS=$ac_check_lib_save_LIBS 7129fi 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 7131$as_echo "$ac_cv_lib_kstat_main" >&6; } 7132if test "x$ac_cv_lib_kstat_main" = xyes; then : 7133 cat >>confdefs.h <<_ACEOF 7134#define HAVE_LIBKSTAT 1 7135_ACEOF 7136 7137 LIBS="-lkstat $LIBS" 7138 7139fi 7140ac_cv_lib_kstat=ac_cv_lib_kstat_main 7141 7142 enable_cpuutil="kstat - auto" 7143 NETCPU_SOURCE="kstat" 7144 ;; 7145 *-*-freebsd[4-8].* | *-*-netbsd[1-9].* ) 7146 use_cpuutil=true 7147 7148$as_echo "#define USE_SYSCTL /**/" >>confdefs.h 7149 7150 enable_cpuutil="sysctl - auto" 7151 NETCPU_SOURCE="sysctl" 7152 ;; 7153 *-*-darwin*) 7154 use_cpuutil=true 7155 7156$as_echo "#define USE_OSX /**/" >>confdefs.h 7157 7158 enable_cpuutil="osx - auto" 7159 NETCPU_SOURCE="osx" 7160 ;; 7161 *) 7162 use_cpuutil=false 7163 NETCPU_SOURCE="none" 7164 enable_cpuutil="none. Consider teaching configure about your platform." 7165 ;; 7166 esac 7167 ;; 7168 none) 7169 use_cpuutil=false 7170 ;; 7171 *) 7172 as_fn_error $? "--enable-cpuutil takes kstat, kstat10, looper, osx, perfstat, procstat, pstat, pstatnew, sysctl or none" "$LINENO" 5 7173 ;; 7174esac 7175 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$enable_cpuutil\"" >&5 7177$as_echo "\"$enable_cpuutil\"" >&6; } 7178 7179 7180 7181 7182# now spit it all out 7183ac_config_files="$ac_config_files Makefile src/netperf_version.h src/Makefile src/missing/Makefile src/missing/m4/Makefile doc/Makefile doc/examples/Makefile netperf.spec" 7184 7185 7186cat >confcache <<\_ACEOF 7187# This file is a shell script that caches the results of configure 7188# tests run on this system so they can be shared between configure 7189# scripts and configure runs, see configure's option --config-cache. 7190# It is not useful on other systems. If it contains results you don't 7191# want to keep, you may remove or edit it. 7192# 7193# config.status only pays attention to the cache file if you give it 7194# the --recheck option to rerun configure. 7195# 7196# `ac_cv_env_foo' variables (set or unset) will be overridden when 7197# loading this file, other *unset* `ac_cv_foo' will be assigned the 7198# following values. 7199 7200_ACEOF 7201 7202# The following way of writing the cache mishandles newlines in values, 7203# but we know of no workaround that is simple, portable, and efficient. 7204# So, we kill variables containing newlines. 7205# Ultrix sh set writes to stderr and can't be redirected directly, 7206# and sets the high bit in the cache file unless we assign to the vars. 7207( 7208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7209 eval ac_val=\$$ac_var 7210 case $ac_val in #( 7211 *${as_nl}*) 7212 case $ac_var in #( 7213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7215 esac 7216 case $ac_var in #( 7217 _ | IFS | as_nl) ;; #( 7218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7219 *) { eval $ac_var=; unset $ac_var;} ;; 7220 esac ;; 7221 esac 7222 done 7223 7224 (set) 2>&1 | 7225 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7226 *${as_nl}ac_space=\ *) 7227 # `set' does not quote correctly, so add quotes: double-quote 7228 # substitution turns \\\\ into \\, and sed turns \\ into \. 7229 sed -n \ 7230 "s/'/'\\\\''/g; 7231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7232 ;; #( 7233 *) 7234 # `set' quotes correctly as required by POSIX, so do not add quotes. 7235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7236 ;; 7237 esac | 7238 sort 7239) | 7240 sed ' 7241 /^ac_cv_env_/b end 7242 t clear 7243 :clear 7244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7245 t end 7246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7247 :end' >>confcache 7248if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7249 if test -w "$cache_file"; then 7250 if test "x$cache_file" != "x/dev/null"; then 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7252$as_echo "$as_me: updating cache $cache_file" >&6;} 7253 if test ! -f "$cache_file" || test -h "$cache_file"; then 7254 cat confcache >"$cache_file" 7255 else 7256 case $cache_file in #( 7257 */* | ?:*) 7258 mv -f confcache "$cache_file"$$ && 7259 mv -f "$cache_file"$$ "$cache_file" ;; #( 7260 *) 7261 mv -f confcache "$cache_file" ;; 7262 esac 7263 fi 7264 fi 7265 else 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7267$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7268 fi 7269fi 7270rm -f confcache 7271 7272test "x$prefix" = xNONE && prefix=$ac_default_prefix 7273# Let make expand exec_prefix. 7274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7275 7276DEFS=-DHAVE_CONFIG_H 7277 7278ac_libobjs= 7279ac_ltlibobjs= 7280U= 7281for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7282 # 1. Remove the extension, and $U if already installed. 7283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7286 # will be set to the directory where LIBOBJS objects are built. 7287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7289done 7290LIBOBJS=$ac_libobjs 7291 7292LTLIBOBJS=$ac_ltlibobjs 7293 7294 7295 if test -n "$EXEEXT"; then 7296 am__EXEEXT_TRUE= 7297 am__EXEEXT_FALSE='#' 7298else 7299 am__EXEEXT_TRUE='#' 7300 am__EXEEXT_FALSE= 7301fi 7302 7303if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 7304 as_fn_error $? "conditional \"AMDEP\" was never defined. 7305Usually this means the macro was only invoked conditionally." "$LINENO" 5 7306fi 7307if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 7308 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 7309Usually this means the macro was only invoked conditionally." "$LINENO" 5 7310fi 7311if test -z "${NEED_LIBCOMPAT_TRUE}" && test -z "${NEED_LIBCOMPAT_FALSE}"; then 7312 as_fn_error $? "conditional \"NEED_LIBCOMPAT\" was never defined. 7313Usually this means the macro was only invoked conditionally." "$LINENO" 5 7314fi 7315 7316: "${CONFIG_STATUS=./config.status}" 7317ac_write_fail=0 7318ac_clean_files_save=$ac_clean_files 7319ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7321$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7322as_write_fail=0 7323cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7324#! $SHELL 7325# Generated by $as_me. 7326# Run this file to recreate the current configuration. 7327# Compiler output produced by configure, useful for debugging 7328# configure, is in config.log if it exists. 7329 7330debug=false 7331ac_cs_recheck=false 7332ac_cs_silent=false 7333 7334SHELL=\${CONFIG_SHELL-$SHELL} 7335export SHELL 7336_ASEOF 7337cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7338## -------------------- ## 7339## M4sh Initialization. ## 7340## -------------------- ## 7341 7342# Be more Bourne compatible 7343DUALCASE=1; export DUALCASE # for MKS sh 7344if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7345 emulate sh 7346 NULLCMD=: 7347 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7348 # is contrary to our usage. Disable this feature. 7349 alias -g '${1+"$@"}'='"$@"' 7350 setopt NO_GLOB_SUBST 7351else 7352 case `(set -o) 2>/dev/null` in #( 7353 *posix*) : 7354 set -o posix ;; #( 7355 *) : 7356 ;; 7357esac 7358fi 7359 7360 7361as_nl=' 7362' 7363export as_nl 7364# Printing a long string crashes Solaris 7 /usr/bin/printf. 7365as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7366as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7367as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7368# Prefer a ksh shell builtin over an external printf program on Solaris, 7369# but without wasting forks for bash or zsh. 7370if test -z "$BASH_VERSION$ZSH_VERSION" \ 7371 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7372 as_echo='print -r --' 7373 as_echo_n='print -rn --' 7374elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7375 as_echo='printf %s\n' 7376 as_echo_n='printf %s' 7377else 7378 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7379 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7380 as_echo_n='/usr/ucb/echo -n' 7381 else 7382 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7383 as_echo_n_body='eval 7384 arg=$1; 7385 case $arg in #( 7386 *"$as_nl"*) 7387 expr "X$arg" : "X\\(.*\\)$as_nl"; 7388 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7389 esac; 7390 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7391 ' 7392 export as_echo_n_body 7393 as_echo_n='sh -c $as_echo_n_body as_echo' 7394 fi 7395 export as_echo_body 7396 as_echo='sh -c $as_echo_body as_echo' 7397fi 7398 7399# The user is always right. 7400if test "${PATH_SEPARATOR+set}" != set; then 7401 PATH_SEPARATOR=: 7402 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7403 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7404 PATH_SEPARATOR=';' 7405 } 7406fi 7407 7408 7409# IFS 7410# We need space, tab and new line, in precisely that order. Quoting is 7411# there to prevent editors from complaining about space-tab. 7412# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7413# splitting by setting IFS to empty value.) 7414IFS=" "" $as_nl" 7415 7416# Find who we are. Look in the path if we contain no directory separator. 7417as_myself= 7418case $0 in #(( 7419 *[\\/]* ) as_myself=$0 ;; 7420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7421for as_dir in $PATH 7422do 7423 IFS=$as_save_IFS 7424 test -z "$as_dir" && as_dir=. 7425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7426 done 7427IFS=$as_save_IFS 7428 7429 ;; 7430esac 7431# We did not find ourselves, most probably we were run as `sh COMMAND' 7432# in which case we are not to be found in the path. 7433if test "x$as_myself" = x; then 7434 as_myself=$0 7435fi 7436if test ! -f "$as_myself"; then 7437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7438 exit 1 7439fi 7440 7441# Unset variables that we do not need and which cause bugs (e.g. in 7442# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7443# suppresses any "Segmentation fault" message there. '((' could 7444# trigger a bug in pdksh 5.2.14. 7445for as_var in BASH_ENV ENV MAIL MAILPATH 7446do eval test x\${$as_var+set} = xset \ 7447 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7448done 7449PS1='$ ' 7450PS2='> ' 7451PS4='+ ' 7452 7453# NLS nuisances. 7454LC_ALL=C 7455export LC_ALL 7456LANGUAGE=C 7457export LANGUAGE 7458 7459# CDPATH. 7460(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7461 7462 7463# as_fn_error STATUS ERROR [LINENO LOG_FD] 7464# ---------------------------------------- 7465# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7466# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7467# script with STATUS, using 1 if that was 0. 7468as_fn_error () 7469{ 7470 as_status=$1; test $as_status -eq 0 && as_status=1 7471 if test "$4"; then 7472 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7473 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7474 fi 7475 $as_echo "$as_me: error: $2" >&2 7476 as_fn_exit $as_status 7477} # as_fn_error 7478 7479 7480# as_fn_set_status STATUS 7481# ----------------------- 7482# Set $? to STATUS, without forking. 7483as_fn_set_status () 7484{ 7485 return $1 7486} # as_fn_set_status 7487 7488# as_fn_exit STATUS 7489# ----------------- 7490# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7491as_fn_exit () 7492{ 7493 set +e 7494 as_fn_set_status $1 7495 exit $1 7496} # as_fn_exit 7497 7498# as_fn_unset VAR 7499# --------------- 7500# Portably unset VAR. 7501as_fn_unset () 7502{ 7503 { eval $1=; unset $1;} 7504} 7505as_unset=as_fn_unset 7506# as_fn_append VAR VALUE 7507# ---------------------- 7508# Append the text in VALUE to the end of the definition contained in VAR. Take 7509# advantage of any shell optimizations that allow amortized linear growth over 7510# repeated appends, instead of the typical quadratic growth present in naive 7511# implementations. 7512if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7513 eval 'as_fn_append () 7514 { 7515 eval $1+=\$2 7516 }' 7517else 7518 as_fn_append () 7519 { 7520 eval $1=\$$1\$2 7521 } 7522fi # as_fn_append 7523 7524# as_fn_arith ARG... 7525# ------------------ 7526# Perform arithmetic evaluation on the ARGs, and store the result in the 7527# global $as_val. Take advantage of shells that can avoid forks. The arguments 7528# must be portable across $(()) and expr. 7529if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7530 eval 'as_fn_arith () 7531 { 7532 as_val=$(( $* )) 7533 }' 7534else 7535 as_fn_arith () 7536 { 7537 as_val=`expr "$@" || test $? -eq 1` 7538 } 7539fi # as_fn_arith 7540 7541 7542if expr a : '\(a\)' >/dev/null 2>&1 && 7543 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7544 as_expr=expr 7545else 7546 as_expr=false 7547fi 7548 7549if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7550 as_basename=basename 7551else 7552 as_basename=false 7553fi 7554 7555if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7556 as_dirname=dirname 7557else 7558 as_dirname=false 7559fi 7560 7561as_me=`$as_basename -- "$0" || 7562$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7563 X"$0" : 'X\(//\)$' \| \ 7564 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7565$as_echo X/"$0" | 7566 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7567 s//\1/ 7568 q 7569 } 7570 /^X\/\(\/\/\)$/{ 7571 s//\1/ 7572 q 7573 } 7574 /^X\/\(\/\).*/{ 7575 s//\1/ 7576 q 7577 } 7578 s/.*/./; q'` 7579 7580# Avoid depending upon Character Ranges. 7581as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7582as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7583as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7584as_cr_digits='0123456789' 7585as_cr_alnum=$as_cr_Letters$as_cr_digits 7586 7587ECHO_C= ECHO_N= ECHO_T= 7588case `echo -n x` in #((((( 7589-n*) 7590 case `echo 'xy\c'` in 7591 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7592 xy) ECHO_C='\c';; 7593 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7594 ECHO_T=' ';; 7595 esac;; 7596*) 7597 ECHO_N='-n';; 7598esac 7599 7600rm -f conf$$ conf$$.exe conf$$.file 7601if test -d conf$$.dir; then 7602 rm -f conf$$.dir/conf$$.file 7603else 7604 rm -f conf$$.dir 7605 mkdir conf$$.dir 2>/dev/null 7606fi 7607if (echo >conf$$.file) 2>/dev/null; then 7608 if ln -s conf$$.file conf$$ 2>/dev/null; then 7609 as_ln_s='ln -s' 7610 # ... but there are two gotchas: 7611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7613 # In both cases, we have to default to `cp -p'. 7614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7615 as_ln_s='cp -p' 7616 elif ln conf$$.file conf$$ 2>/dev/null; then 7617 as_ln_s=ln 7618 else 7619 as_ln_s='cp -p' 7620 fi 7621else 7622 as_ln_s='cp -p' 7623fi 7624rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7625rmdir conf$$.dir 2>/dev/null 7626 7627 7628# as_fn_mkdir_p 7629# ------------- 7630# Create "$as_dir" as a directory, including parents if necessary. 7631as_fn_mkdir_p () 7632{ 7633 7634 case $as_dir in #( 7635 -*) as_dir=./$as_dir;; 7636 esac 7637 test -d "$as_dir" || eval $as_mkdir_p || { 7638 as_dirs= 7639 while :; do 7640 case $as_dir in #( 7641 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7642 *) as_qdir=$as_dir;; 7643 esac 7644 as_dirs="'$as_qdir' $as_dirs" 7645 as_dir=`$as_dirname -- "$as_dir" || 7646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7647 X"$as_dir" : 'X\(//\)[^/]' \| \ 7648 X"$as_dir" : 'X\(//\)$' \| \ 7649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7650$as_echo X"$as_dir" | 7651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7652 s//\1/ 7653 q 7654 } 7655 /^X\(\/\/\)[^/].*/{ 7656 s//\1/ 7657 q 7658 } 7659 /^X\(\/\/\)$/{ 7660 s//\1/ 7661 q 7662 } 7663 /^X\(\/\).*/{ 7664 s//\1/ 7665 q 7666 } 7667 s/.*/./; q'` 7668 test -d "$as_dir" && break 7669 done 7670 test -z "$as_dirs" || eval "mkdir $as_dirs" 7671 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7672 7673 7674} # as_fn_mkdir_p 7675if mkdir -p . 2>/dev/null; then 7676 as_mkdir_p='mkdir -p "$as_dir"' 7677else 7678 test -d ./-p && rmdir ./-p 7679 as_mkdir_p=false 7680fi 7681 7682if test -x / >/dev/null 2>&1; then 7683 as_test_x='test -x' 7684else 7685 if ls -dL / >/dev/null 2>&1; then 7686 as_ls_L_option=L 7687 else 7688 as_ls_L_option= 7689 fi 7690 as_test_x=' 7691 eval sh -c '\'' 7692 if test -d "$1"; then 7693 test -d "$1/."; 7694 else 7695 case $1 in #( 7696 -*)set "./$1";; 7697 esac; 7698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 7699 ???[sx]*):;;*)false;;esac;fi 7700 '\'' sh 7701 ' 7702fi 7703as_executable_p=$as_test_x 7704 7705# Sed expression to map a string onto a valid CPP name. 7706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7707 7708# Sed expression to map a string onto a valid variable name. 7709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7710 7711 7712exec 6>&1 7713## ----------------------------------- ## 7714## Main body of $CONFIG_STATUS script. ## 7715## ----------------------------------- ## 7716_ASEOF 7717test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7718 7719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7720# Save the log message, to keep $0 and so on meaningful, and to 7721# report actual input values of CONFIG_FILES etc. instead of their 7722# values after options handling. 7723ac_log=" 7724This file was extended by netperf $as_me 2.7.0, which was 7725generated by GNU Autoconf 2.68. Invocation command line was 7726 7727 CONFIG_FILES = $CONFIG_FILES 7728 CONFIG_HEADERS = $CONFIG_HEADERS 7729 CONFIG_LINKS = $CONFIG_LINKS 7730 CONFIG_COMMANDS = $CONFIG_COMMANDS 7731 $ $0 $@ 7732 7733on `(hostname || uname -n) 2>/dev/null | sed 1q` 7734" 7735 7736_ACEOF 7737 7738case $ac_config_files in *" 7739"*) set x $ac_config_files; shift; ac_config_files=$*;; 7740esac 7741 7742case $ac_config_headers in *" 7743"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7744esac 7745 7746 7747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7748# Files that config.status was made for. 7749config_files="$ac_config_files" 7750config_headers="$ac_config_headers" 7751config_commands="$ac_config_commands" 7752 7753_ACEOF 7754 7755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7756ac_cs_usage="\ 7757\`$as_me' instantiates files and other configuration actions 7758from templates according to the current configuration. Unless the files 7759and actions are specified as TAGs, all are instantiated by default. 7760 7761Usage: $0 [OPTION]... [TAG]... 7762 7763 -h, --help print this help, then exit 7764 -V, --version print version number and configuration settings, then exit 7765 --config print configuration, then exit 7766 -q, --quiet, --silent 7767 do not print progress messages 7768 -d, --debug don't remove temporary files 7769 --recheck update $as_me by reconfiguring in the same conditions 7770 --file=FILE[:TEMPLATE] 7771 instantiate the configuration file FILE 7772 --header=FILE[:TEMPLATE] 7773 instantiate the configuration header FILE 7774 7775Configuration files: 7776$config_files 7777 7778Configuration headers: 7779$config_headers 7780 7781Configuration commands: 7782$config_commands 7783 7784Report bugs to the package provider." 7785 7786_ACEOF 7787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7789ac_cs_version="\\ 7790netperf config.status 2.7.0 7791configured by $0, generated by GNU Autoconf 2.68, 7792 with options \\"\$ac_cs_config\\" 7793 7794Copyright (C) 2010 Free Software Foundation, Inc. 7795This config.status script is free software; the Free Software Foundation 7796gives unlimited permission to copy, distribute and modify it." 7797 7798ac_pwd='$ac_pwd' 7799srcdir='$srcdir' 7800INSTALL='$INSTALL' 7801MKDIR_P='$MKDIR_P' 7802AWK='$AWK' 7803test -n "\$AWK" || AWK=awk 7804_ACEOF 7805 7806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7807# The default lists apply if the user does not specify any file. 7808ac_need_defaults=: 7809while test $# != 0 7810do 7811 case $1 in 7812 --*=?*) 7813 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7815 ac_shift=: 7816 ;; 7817 --*=) 7818 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7819 ac_optarg= 7820 ac_shift=: 7821 ;; 7822 *) 7823 ac_option=$1 7824 ac_optarg=$2 7825 ac_shift=shift 7826 ;; 7827 esac 7828 7829 case $ac_option in 7830 # Handling of the options. 7831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7832 ac_cs_recheck=: ;; 7833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7834 $as_echo "$ac_cs_version"; exit ;; 7835 --config | --confi | --conf | --con | --co | --c ) 7836 $as_echo "$ac_cs_config"; exit ;; 7837 --debug | --debu | --deb | --de | --d | -d ) 7838 debug=: ;; 7839 --file | --fil | --fi | --f ) 7840 $ac_shift 7841 case $ac_optarg in 7842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7843 '') as_fn_error $? "missing file argument" ;; 7844 esac 7845 as_fn_append CONFIG_FILES " '$ac_optarg'" 7846 ac_need_defaults=false;; 7847 --header | --heade | --head | --hea ) 7848 $ac_shift 7849 case $ac_optarg in 7850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7851 esac 7852 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7853 ac_need_defaults=false;; 7854 --he | --h) 7855 # Conflict between --help and --header 7856 as_fn_error $? "ambiguous option: \`$1' 7857Try \`$0 --help' for more information.";; 7858 --help | --hel | -h ) 7859 $as_echo "$ac_cs_usage"; exit ;; 7860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7861 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7862 ac_cs_silent=: ;; 7863 7864 # This is an error. 7865 -*) as_fn_error $? "unrecognized option: \`$1' 7866Try \`$0 --help' for more information." ;; 7867 7868 *) as_fn_append ac_config_targets " $1" 7869 ac_need_defaults=false ;; 7870 7871 esac 7872 shift 7873done 7874 7875ac_configure_extra_args= 7876 7877if $ac_cs_silent; then 7878 exec 6>/dev/null 7879 ac_configure_extra_args="$ac_configure_extra_args --silent" 7880fi 7881 7882_ACEOF 7883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7884if \$ac_cs_recheck; then 7885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7886 shift 7887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7888 CONFIG_SHELL='$SHELL' 7889 export CONFIG_SHELL 7890 exec "\$@" 7891fi 7892 7893_ACEOF 7894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7895exec 5>>config.log 7896{ 7897 echo 7898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7899## Running $as_me. ## 7900_ASBOX 7901 $as_echo "$ac_log" 7902} >&5 7903 7904_ACEOF 7905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7906# 7907# INIT-COMMANDS 7908# 7909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 7910 7911_ACEOF 7912 7913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7914 7915# Handling of arguments. 7916for ac_config_target in $ac_config_targets 7917do 7918 case $ac_config_target in 7919 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7920 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 7921 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7922 "src/netperf_version.h") CONFIG_FILES="$CONFIG_FILES src/netperf_version.h" ;; 7923 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 7924 "src/missing/Makefile") CONFIG_FILES="$CONFIG_FILES src/missing/Makefile" ;; 7925 "src/missing/m4/Makefile") CONFIG_FILES="$CONFIG_FILES src/missing/m4/Makefile" ;; 7926 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 7927 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;; 7928 "netperf.spec") CONFIG_FILES="$CONFIG_FILES netperf.spec" ;; 7929 7930 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7931 esac 7932done 7933 7934 7935# If the user did not use the arguments to specify the items to instantiate, 7936# then the envvar interface is used. Set only those that are not. 7937# We use the long form for the default assignment because of an extremely 7938# bizarre bug on SunOS 4.1.3. 7939if $ac_need_defaults; then 7940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7943fi 7944 7945# Have a temporary directory for convenience. Make it in the build tree 7946# simply because there is no reason against having it here, and in addition, 7947# creating and moving files from /tmp can sometimes cause problems. 7948# Hook for its removal unless debugging. 7949# Note that there is a small window in which the directory will not be cleaned: 7950# after its creation but before its name has been assigned to `$tmp'. 7951$debug || 7952{ 7953 tmp= ac_tmp= 7954 trap 'exit_status=$? 7955 : "${ac_tmp:=$tmp}" 7956 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7957' 0 7958 trap 'as_fn_exit 1' 1 2 13 15 7959} 7960# Create a (secure) tmp directory for tmp files. 7961 7962{ 7963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7964 test -d "$tmp" 7965} || 7966{ 7967 tmp=./conf$$-$RANDOM 7968 (umask 077 && mkdir "$tmp") 7969} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7970ac_tmp=$tmp 7971 7972# Set up the scripts for CONFIG_FILES section. 7973# No need to generate them if there are no CONFIG_FILES. 7974# This happens for instance with `./config.status config.h'. 7975if test -n "$CONFIG_FILES"; then 7976 7977 7978ac_cr=`echo X | tr X '\015'` 7979# On cygwin, bash can eat \r inside `` if the user requested igncr. 7980# But we know of no other shell where ac_cr would be empty at this 7981# point, so we can use a bashism as a fallback. 7982if test "x$ac_cr" = x; then 7983 eval ac_cr=\$\'\\r\' 7984fi 7985ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7986if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7987 ac_cs_awk_cr='\\r' 7988else 7989 ac_cs_awk_cr=$ac_cr 7990fi 7991 7992echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7993_ACEOF 7994 7995 7996{ 7997 echo "cat >conf$$subs.awk <<_ACEOF" && 7998 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7999 echo "_ACEOF" 8000} >conf$$subs.sh || 8001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8002ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8003ac_delim='%!_!# ' 8004for ac_last_try in false false false false false :; do 8005 . ./conf$$subs.sh || 8006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8007 8008 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8009 if test $ac_delim_n = $ac_delim_num; then 8010 break 8011 elif $ac_last_try; then 8012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8013 else 8014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8015 fi 8016done 8017rm -f conf$$subs.sh 8018 8019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8020cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8021_ACEOF 8022sed -n ' 8023h 8024s/^/S["/; s/!.*/"]=/ 8025p 8026g 8027s/^[^!]*!// 8028:repl 8029t repl 8030s/'"$ac_delim"'$// 8031t delim 8032:nl 8033h 8034s/\(.\{148\}\)..*/\1/ 8035t more1 8036s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8037p 8038n 8039b repl 8040:more1 8041s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8042p 8043g 8044s/.\{148\}// 8045t nl 8046:delim 8047h 8048s/\(.\{148\}\)..*/\1/ 8049t more2 8050s/["\\]/\\&/g; s/^/"/; s/$/"/ 8051p 8052b 8053:more2 8054s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8055p 8056g 8057s/.\{148\}// 8058t delim 8059' <conf$$subs.awk | sed ' 8060/^[^""]/{ 8061 N 8062 s/\n// 8063} 8064' >>$CONFIG_STATUS || ac_write_fail=1 8065rm -f conf$$subs.awk 8066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8067_ACAWK 8068cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8069 for (key in S) S_is_set[key] = 1 8070 FS = "" 8071 8072} 8073{ 8074 line = $ 0 8075 nfields = split(line, field, "@") 8076 substed = 0 8077 len = length(field[1]) 8078 for (i = 2; i < nfields; i++) { 8079 key = field[i] 8080 keylen = length(key) 8081 if (S_is_set[key]) { 8082 value = S[key] 8083 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8084 len += length(value) + length(field[++i]) 8085 substed = 1 8086 } else 8087 len += 1 + keylen 8088 } 8089 8090 print line 8091} 8092 8093_ACAWK 8094_ACEOF 8095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8096if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8097 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8098else 8099 cat 8100fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8101 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8102_ACEOF 8103 8104# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8105# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8106# trailing colons and then remove the whole line if VPATH becomes empty 8107# (actually we leave an empty line to preserve line numbers). 8108if test "x$srcdir" = x.; then 8109 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8110h 8111s/// 8112s/^/:/ 8113s/[ ]*$/:/ 8114s/:\$(srcdir):/:/g 8115s/:\${srcdir}:/:/g 8116s/:@srcdir@:/:/g 8117s/^:*// 8118s/:*$// 8119x 8120s/\(=[ ]*\).*/\1/ 8121G 8122s/\n// 8123s/^[^=]*=[ ]*$// 8124}' 8125fi 8126 8127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8128fi # test -n "$CONFIG_FILES" 8129 8130# Set up the scripts for CONFIG_HEADERS section. 8131# No need to generate them if there are no CONFIG_HEADERS. 8132# This happens for instance with `./config.status Makefile'. 8133if test -n "$CONFIG_HEADERS"; then 8134cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8135BEGIN { 8136_ACEOF 8137 8138# Transform confdefs.h into an awk script `defines.awk', embedded as 8139# here-document in config.status, that substitutes the proper values into 8140# config.h.in to produce config.h. 8141 8142# Create a delimiter string that does not exist in confdefs.h, to ease 8143# handling of long lines. 8144ac_delim='%!_!# ' 8145for ac_last_try in false false :; do 8146 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8147 if test -z "$ac_tt"; then 8148 break 8149 elif $ac_last_try; then 8150 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8151 else 8152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8153 fi 8154done 8155 8156# For the awk script, D is an array of macro values keyed by name, 8157# likewise P contains macro parameters if any. Preserve backslash 8158# newline sequences. 8159 8160ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8161sed -n ' 8162s/.\{148\}/&'"$ac_delim"'/g 8163t rset 8164:rset 8165s/^[ ]*#[ ]*define[ ][ ]*/ / 8166t def 8167d 8168:def 8169s/\\$// 8170t bsnl 8171s/["\\]/\\&/g 8172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8173D["\1"]=" \3"/p 8174s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8175d 8176:bsnl 8177s/["\\]/\\&/g 8178s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8179D["\1"]=" \3\\\\\\n"\\/p 8180t cont 8181s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8182t cont 8183d 8184:cont 8185n 8186s/.\{148\}/&'"$ac_delim"'/g 8187t clear 8188:clear 8189s/\\$// 8190t bsnlc 8191s/["\\]/\\&/g; s/^/"/; s/$/"/p 8192d 8193:bsnlc 8194s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8195b cont 8196' <confdefs.h | sed ' 8197s/'"$ac_delim"'/"\\\ 8198"/g' >>$CONFIG_STATUS || ac_write_fail=1 8199 8200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8201 for (key in D) D_is_set[key] = 1 8202 FS = "" 8203} 8204/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8205 line = \$ 0 8206 split(line, arg, " ") 8207 if (arg[1] == "#") { 8208 defundef = arg[2] 8209 mac1 = arg[3] 8210 } else { 8211 defundef = substr(arg[1], 2) 8212 mac1 = arg[2] 8213 } 8214 split(mac1, mac2, "(") #) 8215 macro = mac2[1] 8216 prefix = substr(line, 1, index(line, defundef) - 1) 8217 if (D_is_set[macro]) { 8218 # Preserve the white space surrounding the "#". 8219 print prefix "define", macro P[macro] D[macro] 8220 next 8221 } else { 8222 # Replace #undef with comments. This is necessary, for example, 8223 # in the case of _POSIX_SOURCE, which is predefined and required 8224 # on some systems where configure will not decide to define it. 8225 if (defundef == "undef") { 8226 print "/*", prefix defundef, macro, "*/" 8227 next 8228 } 8229 } 8230} 8231{ print } 8232_ACAWK 8233_ACEOF 8234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8235 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8236fi # test -n "$CONFIG_HEADERS" 8237 8238 8239eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 8240shift 8241for ac_tag 8242do 8243 case $ac_tag in 8244 :[FHLC]) ac_mode=$ac_tag; continue;; 8245 esac 8246 case $ac_mode$ac_tag in 8247 :[FHL]*:*);; 8248 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8249 :[FH]-) ac_tag=-:-;; 8250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8251 esac 8252 ac_save_IFS=$IFS 8253 IFS=: 8254 set x $ac_tag 8255 IFS=$ac_save_IFS 8256 shift 8257 ac_file=$1 8258 shift 8259 8260 case $ac_mode in 8261 :L) ac_source=$1;; 8262 :[FH]) 8263 ac_file_inputs= 8264 for ac_f 8265 do 8266 case $ac_f in 8267 -) ac_f="$ac_tmp/stdin";; 8268 *) # Look for the file first in the build tree, then in the source tree 8269 # (if the path is not absolute). The absolute path cannot be DOS-style, 8270 # because $ac_f cannot contain `:'. 8271 test -f "$ac_f" || 8272 case $ac_f in 8273 [\\/$]*) false;; 8274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8275 esac || 8276 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8277 esac 8278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8279 as_fn_append ac_file_inputs " '$ac_f'" 8280 done 8281 8282 # Let's still pretend it is `configure' which instantiates (i.e., don't 8283 # use $as_me), people would be surprised to read: 8284 # /* config.h. Generated by config.status. */ 8285 configure_input='Generated from '` 8286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8287 `' by configure.' 8288 if test x"$ac_file" != x-; then 8289 configure_input="$ac_file. $configure_input" 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8291$as_echo "$as_me: creating $ac_file" >&6;} 8292 fi 8293 # Neutralize special characters interpreted by sed in replacement strings. 8294 case $configure_input in #( 8295 *\&* | *\|* | *\\* ) 8296 ac_sed_conf_input=`$as_echo "$configure_input" | 8297 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8298 *) ac_sed_conf_input=$configure_input;; 8299 esac 8300 8301 case $ac_tag in 8302 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8304 esac 8305 ;; 8306 esac 8307 8308 ac_dir=`$as_dirname -- "$ac_file" || 8309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8310 X"$ac_file" : 'X\(//\)[^/]' \| \ 8311 X"$ac_file" : 'X\(//\)$' \| \ 8312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8313$as_echo X"$ac_file" | 8314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8315 s//\1/ 8316 q 8317 } 8318 /^X\(\/\/\)[^/].*/{ 8319 s//\1/ 8320 q 8321 } 8322 /^X\(\/\/\)$/{ 8323 s//\1/ 8324 q 8325 } 8326 /^X\(\/\).*/{ 8327 s//\1/ 8328 q 8329 } 8330 s/.*/./; q'` 8331 as_dir="$ac_dir"; as_fn_mkdir_p 8332 ac_builddir=. 8333 8334case "$ac_dir" in 8335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8336*) 8337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8338 # A ".." for each directory in $ac_dir_suffix. 8339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8340 case $ac_top_builddir_sub in 8341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8343 esac ;; 8344esac 8345ac_abs_top_builddir=$ac_pwd 8346ac_abs_builddir=$ac_pwd$ac_dir_suffix 8347# for backward compatibility: 8348ac_top_builddir=$ac_top_build_prefix 8349 8350case $srcdir in 8351 .) # We are building in place. 8352 ac_srcdir=. 8353 ac_top_srcdir=$ac_top_builddir_sub 8354 ac_abs_top_srcdir=$ac_pwd ;; 8355 [\\/]* | ?:[\\/]* ) # Absolute name. 8356 ac_srcdir=$srcdir$ac_dir_suffix; 8357 ac_top_srcdir=$srcdir 8358 ac_abs_top_srcdir=$srcdir ;; 8359 *) # Relative name. 8360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8361 ac_top_srcdir=$ac_top_build_prefix$srcdir 8362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8363esac 8364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8365 8366 8367 case $ac_mode in 8368 :F) 8369 # 8370 # CONFIG_FILE 8371 # 8372 8373 case $INSTALL in 8374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8376 esac 8377 ac_MKDIR_P=$MKDIR_P 8378 case $MKDIR_P in 8379 [\\/$]* | ?:[\\/]* ) ;; 8380 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 8381 esac 8382_ACEOF 8383 8384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8385# If the template does not know about datarootdir, expand it. 8386# FIXME: This hack should be removed a few years after 2.60. 8387ac_datarootdir_hack=; ac_datarootdir_seen= 8388ac_sed_dataroot=' 8389/datarootdir/ { 8390 p 8391 q 8392} 8393/@datadir@/p 8394/@docdir@/p 8395/@infodir@/p 8396/@localedir@/p 8397/@mandir@/p' 8398case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8399*datarootdir*) ac_datarootdir_seen=yes;; 8400*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8402$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8403_ACEOF 8404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8405 ac_datarootdir_hack=' 8406 s&@datadir@&$datadir&g 8407 s&@docdir@&$docdir&g 8408 s&@infodir@&$infodir&g 8409 s&@localedir@&$localedir&g 8410 s&@mandir@&$mandir&g 8411 s&\\\${datarootdir}&$datarootdir&g' ;; 8412esac 8413_ACEOF 8414 8415# Neutralize VPATH when `$srcdir' = `.'. 8416# Shell code in configure.ac might set extrasub. 8417# FIXME: do we really want to maintain this feature? 8418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8419ac_sed_extra="$ac_vpsub 8420$extrasub 8421_ACEOF 8422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8423:t 8424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8425s|@configure_input@|$ac_sed_conf_input|;t t 8426s&@top_builddir@&$ac_top_builddir_sub&;t t 8427s&@top_build_prefix@&$ac_top_build_prefix&;t t 8428s&@srcdir@&$ac_srcdir&;t t 8429s&@abs_srcdir@&$ac_abs_srcdir&;t t 8430s&@top_srcdir@&$ac_top_srcdir&;t t 8431s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8432s&@builddir@&$ac_builddir&;t t 8433s&@abs_builddir@&$ac_abs_builddir&;t t 8434s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8435s&@INSTALL@&$ac_INSTALL&;t t 8436s&@MKDIR_P@&$ac_MKDIR_P&;t t 8437$ac_datarootdir_hack 8438" 8439eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8440 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8441 8442test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8443 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8445 "$ac_tmp/out"`; test -z "$ac_out"; } && 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8447which seems to be undefined. Please make sure it is defined" >&5 8448$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8449which seems to be undefined. Please make sure it is defined" >&2;} 8450 8451 rm -f "$ac_tmp/stdin" 8452 case $ac_file in 8453 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8454 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8455 esac \ 8456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8457 ;; 8458 :H) 8459 # 8460 # CONFIG_HEADER 8461 # 8462 if test x"$ac_file" != x-; then 8463 { 8464 $as_echo "/* $configure_input */" \ 8465 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8466 } >"$ac_tmp/config.h" \ 8467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8468 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8470$as_echo "$as_me: $ac_file is unchanged" >&6;} 8471 else 8472 rm -f "$ac_file" 8473 mv "$ac_tmp/config.h" "$ac_file" \ 8474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8475 fi 8476 else 8477 $as_echo "/* $configure_input */" \ 8478 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8479 || as_fn_error $? "could not create -" "$LINENO" 5 8480 fi 8481# Compute "$ac_file"'s index in $config_headers. 8482_am_arg="$ac_file" 8483_am_stamp_count=1 8484for _am_header in $config_headers :; do 8485 case $_am_header in 8486 $_am_arg | $_am_arg:* ) 8487 break ;; 8488 * ) 8489 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 8490 esac 8491done 8492echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 8493$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8494 X"$_am_arg" : 'X\(//\)[^/]' \| \ 8495 X"$_am_arg" : 'X\(//\)$' \| \ 8496 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 8497$as_echo X"$_am_arg" | 8498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8499 s//\1/ 8500 q 8501 } 8502 /^X\(\/\/\)[^/].*/{ 8503 s//\1/ 8504 q 8505 } 8506 /^X\(\/\/\)$/{ 8507 s//\1/ 8508 q 8509 } 8510 /^X\(\/\).*/{ 8511 s//\1/ 8512 q 8513 } 8514 s/.*/./; q'`/stamp-h$_am_stamp_count 8515 ;; 8516 8517 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8518$as_echo "$as_me: executing $ac_file commands" >&6;} 8519 ;; 8520 esac 8521 8522 8523 case $ac_file$ac_mode in 8524 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 8525 # Autoconf 2.62 quotes --file arguments for eval, but not when files 8526 # are listed without --file. Let's play safe and only enable the eval 8527 # if we detect the quoting. 8528 case $CONFIG_FILES in 8529 *\'*) eval set x "$CONFIG_FILES" ;; 8530 *) set x $CONFIG_FILES ;; 8531 esac 8532 shift 8533 for mf 8534 do 8535 # Strip MF so we end up with the name of the file. 8536 mf=`echo "$mf" | sed -e 's/:.*$//'` 8537 # Check whether this is an Automake generated Makefile or not. 8538 # We used to match only the files named `Makefile.in', but 8539 # some people rename them; so instead we look at the file content. 8540 # Grep'ing the first line is not enough: some people post-process 8541 # each Makefile.in and add a new line on top of each file to say so. 8542 # Grep'ing the whole file is not good either: AIX grep has a line 8543 # limit of 2048, but all sed's we know have understand at least 4000. 8544 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 8545 dirpart=`$as_dirname -- "$mf" || 8546$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8547 X"$mf" : 'X\(//\)[^/]' \| \ 8548 X"$mf" : 'X\(//\)$' \| \ 8549 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 8550$as_echo X"$mf" | 8551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8552 s//\1/ 8553 q 8554 } 8555 /^X\(\/\/\)[^/].*/{ 8556 s//\1/ 8557 q 8558 } 8559 /^X\(\/\/\)$/{ 8560 s//\1/ 8561 q 8562 } 8563 /^X\(\/\).*/{ 8564 s//\1/ 8565 q 8566 } 8567 s/.*/./; q'` 8568 else 8569 continue 8570 fi 8571 # Extract the definition of DEPDIR, am__include, and am__quote 8572 # from the Makefile without running `make'. 8573 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 8574 test -z "$DEPDIR" && continue 8575 am__include=`sed -n 's/^am__include = //p' < "$mf"` 8576 test -z "am__include" && continue 8577 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 8578 # When using ansi2knr, U may be empty or an underscore; expand it 8579 U=`sed -n 's/^U = //p' < "$mf"` 8580 # Find all dependency output files, they are included files with 8581 # $(DEPDIR) in their names. We invoke sed twice because it is the 8582 # simplest approach to changing $(DEPDIR) to its actual value in the 8583 # expansion. 8584 for file in `sed -n " 8585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 8586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 8587 # Make sure the directory exists. 8588 test -f "$dirpart/$file" && continue 8589 fdir=`$as_dirname -- "$file" || 8590$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8591 X"$file" : 'X\(//\)[^/]' \| \ 8592 X"$file" : 'X\(//\)$' \| \ 8593 X"$file" : 'X\(/\)' \| . 2>/dev/null || 8594$as_echo X"$file" | 8595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8596 s//\1/ 8597 q 8598 } 8599 /^X\(\/\/\)[^/].*/{ 8600 s//\1/ 8601 q 8602 } 8603 /^X\(\/\/\)$/{ 8604 s//\1/ 8605 q 8606 } 8607 /^X\(\/\).*/{ 8608 s//\1/ 8609 q 8610 } 8611 s/.*/./; q'` 8612 as_dir=$dirpart/$fdir; as_fn_mkdir_p 8613 # echo "creating $dirpart/$file" 8614 echo '# dummy' > "$dirpart/$file" 8615 done 8616 done 8617} 8618 ;; 8619 8620 esac 8621done # for ac_tag 8622 8623 8624as_fn_exit 0 8625_ACEOF 8626ac_clean_files=$ac_clean_files_save 8627 8628test $ac_write_fail = 0 || 8629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8630 8631 8632# configure is writing to config.log, and then calls config.status. 8633# config.status does its own redirection, appending to config.log. 8634# Unfortunately, on DOS this fails, as config.log is still kept open 8635# by configure, so config.status won't be able to write to it; its 8636# output is simply discarded. So we exec the FD to /dev/null, 8637# effectively closing config.log, so it can be properly (re)opened and 8638# appended to by config.status. When coming back to configure, we 8639# need to make the FD available again. 8640if test "$no_create" != yes; then 8641 ac_cs_success=: 8642 ac_config_status_args= 8643 test "$silent" = yes && 8644 ac_config_status_args="$ac_config_status_args --quiet" 8645 exec 5>/dev/null 8646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8647 exec 5>>config.log 8648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8649 # would make configure fail if this is the last instruction. 8650 $ac_cs_success || as_fn_exit 1 8651fi 8652if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8654$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8655fi 8656 8657