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