1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="lib.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os YACC LEX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837 --target=TARGET configure for building compilers for TARGET [HOST] 838_ACEOF 839fi 840 841if test -n "$ac_init_help"; then 842 843 cat <<\_ACEOF 844 845Optional Features: 846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 848--disable-shaper Don not compile shaper module 849--disable-ssl Don not compile encryption module 850--disable-zlib Don not compile ZLIB compression module 851--disable-lzo Don not compile LZO compression module 852--enable-socks Compile with SOCKS support 853--disable-nathack Do not enable Nat Hack code 854 855Optional Packages: 856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 858--with-ssl-headers=DIR Crypto Include files location 859--with-ssl-lib=DIR Crypto Library location 860--with-lzo-headers=DIR LZO Include files location 861--with-lzo-lib=DIR LZO Library location 862--with-blowfish-headers=DIR Blowfish Include files location 863--with-socks-lib=DIR SOCKS Library location 864 865Some influential environment variables: 866 CC C compiler command 867 CFLAGS C compiler flags 868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 869 nonstandard directory <lib dir> 870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 871 headers in a nonstandard directory <include dir> 872 CPP C preprocessor 873 874Use these variables to override the choices made by `configure' or to help 875it to find libraries and programs with nonstandard names/locations. 876 877_ACEOF 878fi 879 880if test "$ac_init_help" = "recursive"; then 881 # If there are subdirs, report their specific --help. 882 ac_popdir=`pwd` 883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 884 test -d $ac_dir || continue 885 ac_builddir=. 886 887if test "$ac_dir" != .; then 888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 889 # A "../" for each directory in $ac_dir_suffix. 890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 891else 892 ac_dir_suffix= ac_top_builddir= 893fi 894 895case $srcdir in 896 .) # No --srcdir option. We are building in place. 897 ac_srcdir=. 898 if test -z "$ac_top_builddir"; then 899 ac_top_srcdir=. 900 else 901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 902 fi ;; 903 [\\/]* | ?:[\\/]* ) # Absolute path. 904 ac_srcdir=$srcdir$ac_dir_suffix; 905 ac_top_srcdir=$srcdir ;; 906 *) # Relative path. 907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 908 ac_top_srcdir=$ac_top_builddir$srcdir ;; 909esac 910 911# Do not use `cd foo && pwd` to compute absolute paths, because 912# the directories may not exist. 913case `pwd` in 914.) ac_abs_builddir="$ac_dir";; 915*) 916 case "$ac_dir" in 917 .) ac_abs_builddir=`pwd`;; 918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 919 *) ac_abs_builddir=`pwd`/"$ac_dir";; 920 esac;; 921esac 922case $ac_abs_builddir in 923.) ac_abs_top_builddir=${ac_top_builddir}.;; 924*) 925 case ${ac_top_builddir}. in 926 .) ac_abs_top_builddir=$ac_abs_builddir;; 927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 929 esac;; 930esac 931case $ac_abs_builddir in 932.) ac_abs_srcdir=$ac_srcdir;; 933*) 934 case $ac_srcdir in 935 .) ac_abs_srcdir=$ac_abs_builddir;; 936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 938 esac;; 939esac 940case $ac_abs_builddir in 941.) ac_abs_top_srcdir=$ac_top_srcdir;; 942*) 943 case $ac_top_srcdir in 944 .) ac_abs_top_srcdir=$ac_abs_builddir;; 945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 947 esac;; 948esac 949 950 cd $ac_dir 951 # Check for guested configure; otherwise get Cygnus style configure. 952 if test -f $ac_srcdir/configure.gnu; then 953 echo 954 $SHELL $ac_srcdir/configure.gnu --help=recursive 955 elif test -f $ac_srcdir/configure; then 956 echo 957 $SHELL $ac_srcdir/configure --help=recursive 958 elif test -f $ac_srcdir/configure.ac || 959 test -f $ac_srcdir/configure.in; then 960 echo 961 $ac_configure --help 962 else 963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 964 fi 965 cd $ac_popdir 966 done 967fi 968 969test -n "$ac_init_help" && exit 0 970if $ac_init_version; then 971 cat <<\_ACEOF 972 973Copyright (C) 2003 Free Software Foundation, Inc. 974This configure script is free software; the Free Software Foundation 975gives unlimited permission to copy, distribute and modify it. 976_ACEOF 977 exit 0 978fi 979exec 5>config.log 980cat >&5 <<_ACEOF 981This file contains any messages produced by compilers while 982running configure, to aid debugging if configure makes a mistake. 983 984It was created by $as_me, which was 985generated by GNU Autoconf 2.59. Invocation command line was 986 987 $ $0 $@ 988 989_ACEOF 990{ 991cat <<_ASUNAME 992## --------- ## 993## Platform. ## 994## --------- ## 995 996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 997uname -m = `(uname -m) 2>/dev/null || echo unknown` 998uname -r = `(uname -r) 2>/dev/null || echo unknown` 999uname -s = `(uname -s) 2>/dev/null || echo unknown` 1000uname -v = `(uname -v) 2>/dev/null || echo unknown` 1001 1002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1003/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1004 1005/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1006/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1008hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1009/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1010/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1011/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1012 1013_ASUNAME 1014 1015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1016for as_dir in $PATH 1017do 1018 IFS=$as_save_IFS 1019 test -z "$as_dir" && as_dir=. 1020 echo "PATH: $as_dir" 1021done 1022 1023} >&5 1024 1025cat >&5 <<_ACEOF 1026 1027 1028## ----------- ## 1029## Core tests. ## 1030## ----------- ## 1031 1032_ACEOF 1033 1034 1035# Keep a trace of the command line. 1036# Strip out --no-create and --no-recursion so they do not pile up. 1037# Strip out --silent because we don't want to record it for future runs. 1038# Also quote any args containing shell meta-characters. 1039# Make two passes to allow for proper duplicate-argument suppression. 1040ac_configure_args= 1041ac_configure_args0= 1042ac_configure_args1= 1043ac_sep= 1044ac_must_keep_next=false 1045for ac_pass in 1 2 1046do 1047 for ac_arg 1048 do 1049 case $ac_arg in 1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1052 | -silent | --silent | --silen | --sile | --sil) 1053 continue ;; 1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1056 esac 1057 case $ac_pass in 1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1059 2) 1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1061 if test $ac_must_keep_next = true; then 1062 ac_must_keep_next=false # Got value, back to normal. 1063 else 1064 case $ac_arg in 1065 *=* | --config-cache | -C | -disable-* | --disable-* \ 1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1068 | -with-* | --with-* | -without-* | --without-* | --x) 1069 case "$ac_configure_args0 " in 1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1071 esac 1072 ;; 1073 -* ) ac_must_keep_next=true ;; 1074 esac 1075 fi 1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1077 # Get rid of the leading space. 1078 ac_sep=" " 1079 ;; 1080 esac 1081 done 1082done 1083$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1084$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1085 1086# When interrupted or exit'd, cleanup temporary files, and complete 1087# config.log. We remove comments because anyway the quotes in there 1088# would cause problems or look ugly. 1089# WARNING: Be sure not to use single quotes in there, as some shells, 1090# such as our DU 5.0 friend, will then `close' the trap. 1091trap 'exit_status=$? 1092 # Save into config.log some information that might help in debugging. 1093 { 1094 echo 1095 1096 cat <<\_ASBOX 1097## ---------------- ## 1098## Cache variables. ## 1099## ---------------- ## 1100_ASBOX 1101 echo 1102 # The following way of writing the cache mishandles newlines in values, 1103{ 1104 (set) 2>&1 | 1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1106 *ac_space=\ *) 1107 sed -n \ 1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1110 ;; 1111 *) 1112 sed -n \ 1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1114 ;; 1115 esac; 1116} 1117 echo 1118 1119 cat <<\_ASBOX 1120## ----------------- ## 1121## Output variables. ## 1122## ----------------- ## 1123_ASBOX 1124 echo 1125 for ac_var in $ac_subst_vars 1126 do 1127 eval ac_val=$`echo $ac_var` 1128 echo "$ac_var='"'"'$ac_val'"'"'" 1129 done | sort 1130 echo 1131 1132 if test -n "$ac_subst_files"; then 1133 cat <<\_ASBOX 1134## ------------- ## 1135## Output files. ## 1136## ------------- ## 1137_ASBOX 1138 echo 1139 for ac_var in $ac_subst_files 1140 do 1141 eval ac_val=$`echo $ac_var` 1142 echo "$ac_var='"'"'$ac_val'"'"'" 1143 done | sort 1144 echo 1145 fi 1146 1147 if test -s confdefs.h; then 1148 cat <<\_ASBOX 1149## ----------- ## 1150## confdefs.h. ## 1151## ----------- ## 1152_ASBOX 1153 echo 1154 sed "/^$/d" confdefs.h | sort 1155 echo 1156 fi 1157 test "$ac_signal" != 0 && 1158 echo "$as_me: caught signal $ac_signal" 1159 echo "$as_me: exit $exit_status" 1160 } >&5 1161 rm -f core *.core && 1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1163 exit $exit_status 1164 ' 0 1165for ac_signal in 1 2 13 15; do 1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1167done 1168ac_signal=0 1169 1170# confdefs.h avoids OS command line length limits that DEFS can exceed. 1171rm -rf conftest* confdefs.h 1172# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1173echo >confdefs.h 1174 1175# Predefined preprocessor variables. 1176 1177cat >>confdefs.h <<_ACEOF 1178#define PACKAGE_NAME "$PACKAGE_NAME" 1179_ACEOF 1180 1181 1182cat >>confdefs.h <<_ACEOF 1183#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1184_ACEOF 1185 1186 1187cat >>confdefs.h <<_ACEOF 1188#define PACKAGE_VERSION "$PACKAGE_VERSION" 1189_ACEOF 1190 1191 1192cat >>confdefs.h <<_ACEOF 1193#define PACKAGE_STRING "$PACKAGE_STRING" 1194_ACEOF 1195 1196 1197cat >>confdefs.h <<_ACEOF 1198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1199_ACEOF 1200 1201 1202# Let the site file select an alternate cache file if it wants to. 1203# Prefer explicitly selected file to automatically selected ones. 1204if test -z "$CONFIG_SITE"; then 1205 if test "x$prefix" != xNONE; then 1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1207 else 1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1209 fi 1210fi 1211for ac_site_file in $CONFIG_SITE; do 1212 if test -r "$ac_site_file"; then 1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1214echo "$as_me: loading site script $ac_site_file" >&6;} 1215 sed 's/^/| /' "$ac_site_file" >&5 1216 . "$ac_site_file" 1217 fi 1218done 1219 1220if test -r "$cache_file"; then 1221 # Some versions of bash will fail to source /dev/null (special 1222 # files actually), so we avoid doing that. 1223 if test -f "$cache_file"; then 1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1225echo "$as_me: loading cache $cache_file" >&6;} 1226 case $cache_file in 1227 [\\/]* | ?:[\\/]* ) . $cache_file;; 1228 *) . ./$cache_file;; 1229 esac 1230 fi 1231else 1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1233echo "$as_me: creating cache $cache_file" >&6;} 1234 >$cache_file 1235fi 1236 1237# Check that the precious variables saved in the cache have kept the same 1238# value. 1239ac_cache_corrupted=false 1240for ac_var in `(set) 2>&1 | 1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1243 eval ac_new_set=\$ac_env_${ac_var}_set 1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1245 eval ac_new_val="\$ac_env_${ac_var}_value" 1246 case $ac_old_set,$ac_new_set in 1247 set,) 1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1249echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1250 ac_cache_corrupted=: ;; 1251 ,set) 1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1253echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1254 ac_cache_corrupted=: ;; 1255 ,);; 1256 *) 1257 if test "x$ac_old_val" != "x$ac_new_val"; then 1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1259echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1261echo "$as_me: former value: $ac_old_val" >&2;} 1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1263echo "$as_me: current value: $ac_new_val" >&2;} 1264 ac_cache_corrupted=: 1265 fi;; 1266 esac 1267 # Pass precious variables to config.status. 1268 if test "$ac_new_set" = set; then 1269 case $ac_new_val in 1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1272 *) ac_arg=$ac_var=$ac_new_val ;; 1273 esac 1274 case " $ac_configure_args " in 1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1277 esac 1278 fi 1279done 1280if $ac_cache_corrupted; then 1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1282echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1284echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1285 { (exit 1); exit 1; }; } 1286fi 1287 1288ac_ext=c 1289ac_cpp='$CPP $CPPFLAGS' 1290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1292ac_compiler_gnu=$ac_cv_c_compiler_gnu 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 ac_config_headers="$ac_config_headers config.h" 1313 1314 1315# Check whether --enable-shaper or --disable-shaper was given. 1316if test "${enable_shaper+set}" = set; then 1317 enableval="$enable_shaper" 1318 SHAPER=$enableval 1319else 1320 SHAPER=yes 1321 1322fi; 1323# Check whether --enable-ssl or --disable-ssl was given. 1324if test "${enable_ssl+set}" = set; then 1325 enableval="$enable_ssl" 1326 SSL=$enableval 1327else 1328 SSL=yes 1329 1330fi; 1331# Check whether --enable-zlib or --disable-zlib was given. 1332if test "${enable_zlib+set}" = set; then 1333 enableval="$enable_zlib" 1334 ZLIB=$enableval 1335else 1336 ZLIB=yes 1337 1338fi; 1339# Check whether --enable-lzo or --disable-lzo was given. 1340if test "${enable_lzo+set}" = set; then 1341 enableval="$enable_lzo" 1342 LZO=$enableval 1343else 1344 LZO=yes 1345 1346fi; 1347# Check whether --enable-socks or --disable-socks was given. 1348if test "${enable_socks+set}" = set; then 1349 enableval="$enable_socks" 1350 SOCKS=$enableval 1351else 1352 SOCKS=no 1353 1354fi; 1355 1356# Check whether --enable-nathack or --disable-nathack was given. 1357if test "${enable_nathack+set}" = set; then 1358 enableval="$enable_nathack" 1359 NATHACK=$enableval 1360else 1361 NATHACK=yes 1362 1363fi; 1364 1365 1366# Check whether --with-ssl-headers or --without-ssl-headers was given. 1367if test "${with_ssl_headers+set}" = set; then 1368 withval="$with_ssl_headers" 1369 SSL_HDR_DIR="$withval" 1370 CPPFLAGS="$CPPFLAGS -I$withval" 1371 1372fi; 1373 1374# Check whether --with-ssl-lib or --without-ssl-lib was given. 1375if test "${with_ssl_lib+set}" = set; then 1376 withval="$with_ssl_lib" 1377 LIBS="$LIBS -L$withval" 1378 1379fi; 1380 1381 1382# Check whether --with-lzo-headers or --without-lzo-headers was given. 1383if test "${with_lzo_headers+set}" = set; then 1384 withval="$with_lzo_headers" 1385 LZO_HDR_DIR="$withval" 1386 1387fi; 1388 1389# Check whether --with-lzo-lib or --without-lzo-lib was given. 1390if test "${with_lzo_lib+set}" = set; then 1391 withval="$with_lzo_lib" 1392 LIBS="$LIBS -L$withval" 1393 1394fi; 1395 1396 1397# Check whether --with-blowfish-headers or --without-blowfish-headers was given. 1398if test "${with_blowfish_headers+set}" = set; then 1399 withval="$with_blowfish_headers" 1400 BLOWFISH_HDR_DIR="$withval" 1401 1402fi; 1403 1404 1405# Check whether --with-socks-lib or --without-socks-lib was given. 1406if test "${with_socks_lib+set}" = set; then 1407 withval="$with_socks_lib" 1408 LIBS="$LIBS -L$withval" 1409 1410fi; 1411 1412ac_aux_dir= 1413for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1414 if test -f $ac_dir/install-sh; then 1415 ac_aux_dir=$ac_dir 1416 ac_install_sh="$ac_aux_dir/install-sh -c" 1417 break 1418 elif test -f $ac_dir/install.sh; then 1419 ac_aux_dir=$ac_dir 1420 ac_install_sh="$ac_aux_dir/install.sh -c" 1421 break 1422 elif test -f $ac_dir/shtool; then 1423 ac_aux_dir=$ac_dir 1424 ac_install_sh="$ac_aux_dir/shtool install -c" 1425 break 1426 fi 1427done 1428if test -z "$ac_aux_dir"; then 1429 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1430echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1431 { (exit 1); exit 1; }; } 1432fi 1433ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1434ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1435ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1436 1437# Make sure we can run config.sub. 1438$ac_config_sub sun4 >/dev/null 2>&1 || 1439 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1440echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1441 { (exit 1); exit 1; }; } 1442 1443echo "$as_me:$LINENO: checking build system type" >&5 1444echo $ECHO_N "checking build system type... $ECHO_C" >&6 1445if test "${ac_cv_build+set}" = set; then 1446 echo $ECHO_N "(cached) $ECHO_C" >&6 1447else 1448 ac_cv_build_alias=$build_alias 1449test -z "$ac_cv_build_alias" && 1450 ac_cv_build_alias=`$ac_config_guess` 1451test -z "$ac_cv_build_alias" && 1452 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1453echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1454 { (exit 1); exit 1; }; } 1455ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1457echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1458 { (exit 1); exit 1; }; } 1459 1460fi 1461echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1462echo "${ECHO_T}$ac_cv_build" >&6 1463build=$ac_cv_build 1464build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1465build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1466build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1467 1468 1469echo "$as_me:$LINENO: checking host system type" >&5 1470echo $ECHO_N "checking host system type... $ECHO_C" >&6 1471if test "${ac_cv_host+set}" = set; then 1472 echo $ECHO_N "(cached) $ECHO_C" >&6 1473else 1474 ac_cv_host_alias=$host_alias 1475test -z "$ac_cv_host_alias" && 1476 ac_cv_host_alias=$ac_cv_build_alias 1477ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1479echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1480 { (exit 1); exit 1; }; } 1481 1482fi 1483echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1484echo "${ECHO_T}$ac_cv_host" >&6 1485host=$ac_cv_host 1486host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1487host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1488host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1489 1490 1491echo "$as_me:$LINENO: checking target system type" >&5 1492echo $ECHO_N "checking target system type... $ECHO_C" >&6 1493if test "${ac_cv_target+set}" = set; then 1494 echo $ECHO_N "(cached) $ECHO_C" >&6 1495else 1496 ac_cv_target_alias=$target_alias 1497test "x$ac_cv_target_alias" = "x" && 1498 ac_cv_target_alias=$ac_cv_host_alias 1499ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1500 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1501echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1502 { (exit 1); exit 1; }; } 1503 1504fi 1505echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1506echo "${ECHO_T}$ac_cv_target" >&6 1507target=$ac_cv_target 1508target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1509target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1510target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1511 1512 1513# The aliases save the names the user supplied, while $host etc. 1514# will get canonicalized. 1515test -n "$target_alias" && 1516 test "$program_prefix$program_suffix$program_transform_name" = \ 1517 NONENONEs,x,x, && 1518 program_prefix=${target_alias}- 1519 1520for ac_prog in 'bison -y' byacc 1521do 1522 # Extract the first word of "$ac_prog", so it can be a program name with args. 1523set dummy $ac_prog; ac_word=$2 1524echo "$as_me:$LINENO: checking for $ac_word" >&5 1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1526if test "${ac_cv_prog_YACC+set}" = set; then 1527 echo $ECHO_N "(cached) $ECHO_C" >&6 1528else 1529 if test -n "$YACC"; then 1530 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1531else 1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1533for as_dir in $PATH 1534do 1535 IFS=$as_save_IFS 1536 test -z "$as_dir" && as_dir=. 1537 for ac_exec_ext in '' $ac_executable_extensions; do 1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1539 ac_cv_prog_YACC="$ac_prog" 1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1541 break 2 1542 fi 1543done 1544done 1545 1546fi 1547fi 1548YACC=$ac_cv_prog_YACC 1549if test -n "$YACC"; then 1550 echo "$as_me:$LINENO: result: $YACC" >&5 1551echo "${ECHO_T}$YACC" >&6 1552else 1553 echo "$as_me:$LINENO: result: no" >&5 1554echo "${ECHO_T}no" >&6 1555fi 1556 1557 test -n "$YACC" && break 1558done 1559test -n "$YACC" || YACC="yacc" 1560 1561ac_ext=c 1562ac_cpp='$CPP $CPPFLAGS' 1563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1565ac_compiler_gnu=$ac_cv_c_compiler_gnu 1566if test -n "$ac_tool_prefix"; then 1567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1568set dummy ${ac_tool_prefix}gcc; ac_word=$2 1569echo "$as_me:$LINENO: checking for $ac_word" >&5 1570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1571if test "${ac_cv_prog_CC+set}" = set; then 1572 echo $ECHO_N "(cached) $ECHO_C" >&6 1573else 1574 if test -n "$CC"; then 1575 ac_cv_prog_CC="$CC" # Let the user override the test. 1576else 1577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1578for as_dir in $PATH 1579do 1580 IFS=$as_save_IFS 1581 test -z "$as_dir" && as_dir=. 1582 for ac_exec_ext in '' $ac_executable_extensions; do 1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1584 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1586 break 2 1587 fi 1588done 1589done 1590 1591fi 1592fi 1593CC=$ac_cv_prog_CC 1594if test -n "$CC"; then 1595 echo "$as_me:$LINENO: result: $CC" >&5 1596echo "${ECHO_T}$CC" >&6 1597else 1598 echo "$as_me:$LINENO: result: no" >&5 1599echo "${ECHO_T}no" >&6 1600fi 1601 1602fi 1603if test -z "$ac_cv_prog_CC"; then 1604 ac_ct_CC=$CC 1605 # Extract the first word of "gcc", so it can be a program name with args. 1606set dummy gcc; ac_word=$2 1607echo "$as_me:$LINENO: checking for $ac_word" >&5 1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1610 echo $ECHO_N "(cached) $ECHO_C" >&6 1611else 1612 if test -n "$ac_ct_CC"; then 1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1614else 1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1616for as_dir in $PATH 1617do 1618 IFS=$as_save_IFS 1619 test -z "$as_dir" && as_dir=. 1620 for ac_exec_ext in '' $ac_executable_extensions; do 1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1622 ac_cv_prog_ac_ct_CC="gcc" 1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1624 break 2 1625 fi 1626done 1627done 1628 1629fi 1630fi 1631ac_ct_CC=$ac_cv_prog_ac_ct_CC 1632if test -n "$ac_ct_CC"; then 1633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1634echo "${ECHO_T}$ac_ct_CC" >&6 1635else 1636 echo "$as_me:$LINENO: result: no" >&5 1637echo "${ECHO_T}no" >&6 1638fi 1639 1640 CC=$ac_ct_CC 1641else 1642 CC="$ac_cv_prog_CC" 1643fi 1644 1645if test -z "$CC"; then 1646 if test -n "$ac_tool_prefix"; then 1647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1648set dummy ${ac_tool_prefix}cc; ac_word=$2 1649echo "$as_me:$LINENO: checking for $ac_word" >&5 1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1651if test "${ac_cv_prog_CC+set}" = set; then 1652 echo $ECHO_N "(cached) $ECHO_C" >&6 1653else 1654 if test -n "$CC"; then 1655 ac_cv_prog_CC="$CC" # Let the user override the test. 1656else 1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1658for as_dir in $PATH 1659do 1660 IFS=$as_save_IFS 1661 test -z "$as_dir" && as_dir=. 1662 for ac_exec_ext in '' $ac_executable_extensions; do 1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1664 ac_cv_prog_CC="${ac_tool_prefix}cc" 1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1666 break 2 1667 fi 1668done 1669done 1670 1671fi 1672fi 1673CC=$ac_cv_prog_CC 1674if test -n "$CC"; then 1675 echo "$as_me:$LINENO: result: $CC" >&5 1676echo "${ECHO_T}$CC" >&6 1677else 1678 echo "$as_me:$LINENO: result: no" >&5 1679echo "${ECHO_T}no" >&6 1680fi 1681 1682fi 1683if test -z "$ac_cv_prog_CC"; then 1684 ac_ct_CC=$CC 1685 # Extract the first word of "cc", so it can be a program name with args. 1686set dummy cc; ac_word=$2 1687echo "$as_me:$LINENO: checking for $ac_word" >&5 1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1690 echo $ECHO_N "(cached) $ECHO_C" >&6 1691else 1692 if test -n "$ac_ct_CC"; then 1693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1694else 1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1696for as_dir in $PATH 1697do 1698 IFS=$as_save_IFS 1699 test -z "$as_dir" && as_dir=. 1700 for ac_exec_ext in '' $ac_executable_extensions; do 1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1702 ac_cv_prog_ac_ct_CC="cc" 1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1704 break 2 1705 fi 1706done 1707done 1708 1709fi 1710fi 1711ac_ct_CC=$ac_cv_prog_ac_ct_CC 1712if test -n "$ac_ct_CC"; then 1713 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1714echo "${ECHO_T}$ac_ct_CC" >&6 1715else 1716 echo "$as_me:$LINENO: result: no" >&5 1717echo "${ECHO_T}no" >&6 1718fi 1719 1720 CC=$ac_ct_CC 1721else 1722 CC="$ac_cv_prog_CC" 1723fi 1724 1725fi 1726if test -z "$CC"; then 1727 # Extract the first word of "cc", so it can be a program name with args. 1728set dummy cc; ac_word=$2 1729echo "$as_me:$LINENO: checking for $ac_word" >&5 1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1731if test "${ac_cv_prog_CC+set}" = set; then 1732 echo $ECHO_N "(cached) $ECHO_C" >&6 1733else 1734 if test -n "$CC"; then 1735 ac_cv_prog_CC="$CC" # Let the user override the test. 1736else 1737 ac_prog_rejected=no 1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1739for as_dir in $PATH 1740do 1741 IFS=$as_save_IFS 1742 test -z "$as_dir" && as_dir=. 1743 for ac_exec_ext in '' $ac_executable_extensions; do 1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1745 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1746 ac_prog_rejected=yes 1747 continue 1748 fi 1749 ac_cv_prog_CC="cc" 1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1751 break 2 1752 fi 1753done 1754done 1755 1756if test $ac_prog_rejected = yes; then 1757 # We found a bogon in the path, so make sure we never use it. 1758 set dummy $ac_cv_prog_CC 1759 shift 1760 if test $# != 0; then 1761 # We chose a different compiler from the bogus one. 1762 # However, it has the same basename, so the bogon will be chosen 1763 # first if we set CC to just the basename; use the full file name. 1764 shift 1765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1766 fi 1767fi 1768fi 1769fi 1770CC=$ac_cv_prog_CC 1771if test -n "$CC"; then 1772 echo "$as_me:$LINENO: result: $CC" >&5 1773echo "${ECHO_T}$CC" >&6 1774else 1775 echo "$as_me:$LINENO: result: no" >&5 1776echo "${ECHO_T}no" >&6 1777fi 1778 1779fi 1780if test -z "$CC"; then 1781 if test -n "$ac_tool_prefix"; then 1782 for ac_prog in cl 1783 do 1784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1785set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1786echo "$as_me:$LINENO: checking for $ac_word" >&5 1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1788if test "${ac_cv_prog_CC+set}" = set; then 1789 echo $ECHO_N "(cached) $ECHO_C" >&6 1790else 1791 if test -n "$CC"; then 1792 ac_cv_prog_CC="$CC" # Let the user override the test. 1793else 1794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1795for as_dir in $PATH 1796do 1797 IFS=$as_save_IFS 1798 test -z "$as_dir" && as_dir=. 1799 for ac_exec_ext in '' $ac_executable_extensions; do 1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1803 break 2 1804 fi 1805done 1806done 1807 1808fi 1809fi 1810CC=$ac_cv_prog_CC 1811if test -n "$CC"; then 1812 echo "$as_me:$LINENO: result: $CC" >&5 1813echo "${ECHO_T}$CC" >&6 1814else 1815 echo "$as_me:$LINENO: result: no" >&5 1816echo "${ECHO_T}no" >&6 1817fi 1818 1819 test -n "$CC" && break 1820 done 1821fi 1822if test -z "$CC"; then 1823 ac_ct_CC=$CC 1824 for ac_prog in cl 1825do 1826 # Extract the first word of "$ac_prog", so it can be a program name with args. 1827set dummy $ac_prog; ac_word=$2 1828echo "$as_me:$LINENO: checking for $ac_word" >&5 1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1831 echo $ECHO_N "(cached) $ECHO_C" >&6 1832else 1833 if test -n "$ac_ct_CC"; then 1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1835else 1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1837for as_dir in $PATH 1838do 1839 IFS=$as_save_IFS 1840 test -z "$as_dir" && as_dir=. 1841 for ac_exec_ext in '' $ac_executable_extensions; do 1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1843 ac_cv_prog_ac_ct_CC="$ac_prog" 1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1845 break 2 1846 fi 1847done 1848done 1849 1850fi 1851fi 1852ac_ct_CC=$ac_cv_prog_ac_ct_CC 1853if test -n "$ac_ct_CC"; then 1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1855echo "${ECHO_T}$ac_ct_CC" >&6 1856else 1857 echo "$as_me:$LINENO: result: no" >&5 1858echo "${ECHO_T}no" >&6 1859fi 1860 1861 test -n "$ac_ct_CC" && break 1862done 1863 1864 CC=$ac_ct_CC 1865fi 1866 1867fi 1868 1869 1870test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1871See \`config.log' for more details." >&5 1872echo "$as_me: error: no acceptable C compiler found in \$PATH 1873See \`config.log' for more details." >&2;} 1874 { (exit 1); exit 1; }; } 1875 1876# Provide some information about the compiler. 1877echo "$as_me:$LINENO:" \ 1878 "checking for C compiler version" >&5 1879ac_compiler=`set X $ac_compile; echo $2` 1880{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1881 (eval $ac_compiler --version </dev/null >&5) 2>&5 1882 ac_status=$? 1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1884 (exit $ac_status); } 1885{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1886 (eval $ac_compiler -v </dev/null >&5) 2>&5 1887 ac_status=$? 1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1889 (exit $ac_status); } 1890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1891 (eval $ac_compiler -V </dev/null >&5) 2>&5 1892 ac_status=$? 1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1894 (exit $ac_status); } 1895 1896cat >conftest.$ac_ext <<_ACEOF 1897/* confdefs.h. */ 1898_ACEOF 1899cat confdefs.h >>conftest.$ac_ext 1900cat >>conftest.$ac_ext <<_ACEOF 1901/* end confdefs.h. */ 1902 1903int 1904main () 1905{ 1906 1907 ; 1908 return 0; 1909} 1910_ACEOF 1911ac_clean_files_save=$ac_clean_files 1912ac_clean_files="$ac_clean_files a.out a.exe b.out" 1913# Try to create an executable without -o first, disregard a.out. 1914# It will help us diagnose broken compilers, and finding out an intuition 1915# of exeext. 1916echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1917echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1918ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1919if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1920 (eval $ac_link_default) 2>&5 1921 ac_status=$? 1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1923 (exit $ac_status); }; then 1924 # Find the output, starting from the most likely. This scheme is 1925# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1926# resort. 1927 1928# Be careful to initialize this variable, since it used to be cached. 1929# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1930ac_cv_exeext= 1931# b.out is created by i960 compilers. 1932for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1933do 1934 test -f "$ac_file" || continue 1935 case $ac_file in 1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1937 ;; 1938 conftest.$ac_ext ) 1939 # This is the source file. 1940 ;; 1941 [ab].out ) 1942 # We found the default executable, but exeext='' is most 1943 # certainly right. 1944 break;; 1945 *.* ) 1946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1947 # FIXME: I believe we export ac_cv_exeext for Libtool, 1948 # but it would be cool to find out if it's true. Does anybody 1949 # maintain Libtool? --akim. 1950 export ac_cv_exeext 1951 break;; 1952 * ) 1953 break;; 1954 esac 1955done 1956else 1957 echo "$as_me: failed program was:" >&5 1958sed 's/^/| /' conftest.$ac_ext >&5 1959 1960{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1961See \`config.log' for more details." >&5 1962echo "$as_me: error: C compiler cannot create executables 1963See \`config.log' for more details." >&2;} 1964 { (exit 77); exit 77; }; } 1965fi 1966 1967ac_exeext=$ac_cv_exeext 1968echo "$as_me:$LINENO: result: $ac_file" >&5 1969echo "${ECHO_T}$ac_file" >&6 1970 1971# Check the compiler produces executables we can run. If not, either 1972# the compiler is broken, or we cross compile. 1973echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1974echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1975# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1976# If not cross compiling, check that we can run a simple program. 1977if test "$cross_compiling" != yes; then 1978 if { ac_try='./$ac_file' 1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1980 (eval $ac_try) 2>&5 1981 ac_status=$? 1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1983 (exit $ac_status); }; }; then 1984 cross_compiling=no 1985 else 1986 if test "$cross_compiling" = maybe; then 1987 cross_compiling=yes 1988 else 1989 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1990If you meant to cross compile, use \`--host'. 1991See \`config.log' for more details." >&5 1992echo "$as_me: error: cannot run C compiled programs. 1993If you meant to cross compile, use \`--host'. 1994See \`config.log' for more details." >&2;} 1995 { (exit 1); exit 1; }; } 1996 fi 1997 fi 1998fi 1999echo "$as_me:$LINENO: result: yes" >&5 2000echo "${ECHO_T}yes" >&6 2001 2002rm -f a.out a.exe conftest$ac_cv_exeext b.out 2003ac_clean_files=$ac_clean_files_save 2004# Check the compiler produces executables we can run. If not, either 2005# the compiler is broken, or we cross compile. 2006echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2007echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2008echo "$as_me:$LINENO: result: $cross_compiling" >&5 2009echo "${ECHO_T}$cross_compiling" >&6 2010 2011echo "$as_me:$LINENO: checking for suffix of executables" >&5 2012echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2014 (eval $ac_link) 2>&5 2015 ac_status=$? 2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2017 (exit $ac_status); }; then 2018 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2019# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2020# work properly (i.e., refer to `conftest.exe'), while it won't with 2021# `rm'. 2022for ac_file in conftest.exe conftest conftest.*; do 2023 test -f "$ac_file" || continue 2024 case $ac_file in 2025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2027 export ac_cv_exeext 2028 break;; 2029 * ) break;; 2030 esac 2031done 2032else 2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2034See \`config.log' for more details." >&5 2035echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2036See \`config.log' for more details." >&2;} 2037 { (exit 1); exit 1; }; } 2038fi 2039 2040rm -f conftest$ac_cv_exeext 2041echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2042echo "${ECHO_T}$ac_cv_exeext" >&6 2043 2044rm -f conftest.$ac_ext 2045EXEEXT=$ac_cv_exeext 2046ac_exeext=$EXEEXT 2047echo "$as_me:$LINENO: checking for suffix of object files" >&5 2048echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2049if test "${ac_cv_objext+set}" = set; then 2050 echo $ECHO_N "(cached) $ECHO_C" >&6 2051else 2052 cat >conftest.$ac_ext <<_ACEOF 2053/* confdefs.h. */ 2054_ACEOF 2055cat confdefs.h >>conftest.$ac_ext 2056cat >>conftest.$ac_ext <<_ACEOF 2057/* end confdefs.h. */ 2058 2059int 2060main () 2061{ 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067rm -f conftest.o conftest.obj 2068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2069 (eval $ac_compile) 2>&5 2070 ac_status=$? 2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2072 (exit $ac_status); }; then 2073 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2074 case $ac_file in 2075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2077 break;; 2078 esac 2079done 2080else 2081 echo "$as_me: failed program was:" >&5 2082sed 's/^/| /' conftest.$ac_ext >&5 2083 2084{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2085See \`config.log' for more details." >&5 2086echo "$as_me: error: cannot compute suffix of object files: cannot compile 2087See \`config.log' for more details." >&2;} 2088 { (exit 1); exit 1; }; } 2089fi 2090 2091rm -f conftest.$ac_cv_objext conftest.$ac_ext 2092fi 2093echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2094echo "${ECHO_T}$ac_cv_objext" >&6 2095OBJEXT=$ac_cv_objext 2096ac_objext=$OBJEXT 2097echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2098echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2099if test "${ac_cv_c_compiler_gnu+set}" = set; then 2100 echo $ECHO_N "(cached) $ECHO_C" >&6 2101else 2102 cat >conftest.$ac_ext <<_ACEOF 2103/* confdefs.h. */ 2104_ACEOF 2105cat confdefs.h >>conftest.$ac_ext 2106cat >>conftest.$ac_ext <<_ACEOF 2107/* end confdefs.h. */ 2108 2109int 2110main () 2111{ 2112#ifndef __GNUC__ 2113 choke me 2114#endif 2115 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120rm -f conftest.$ac_objext 2121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2122 (eval $ac_compile) 2>conftest.er1 2123 ac_status=$? 2124 grep -v '^ *+' conftest.er1 >conftest.err 2125 rm -f conftest.er1 2126 cat conftest.err >&5 2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2128 (exit $ac_status); } && 2129 { ac_try='test -z "$ac_c_werror_flag" 2130 || test ! -s conftest.err' 2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2132 (eval $ac_try) 2>&5 2133 ac_status=$? 2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2135 (exit $ac_status); }; } && 2136 { ac_try='test -s conftest.$ac_objext' 2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2138 (eval $ac_try) 2>&5 2139 ac_status=$? 2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2141 (exit $ac_status); }; }; then 2142 ac_compiler_gnu=yes 2143else 2144 echo "$as_me: failed program was:" >&5 2145sed 's/^/| /' conftest.$ac_ext >&5 2146 2147ac_compiler_gnu=no 2148fi 2149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2150ac_cv_c_compiler_gnu=$ac_compiler_gnu 2151 2152fi 2153echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2154echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2155GCC=`test $ac_compiler_gnu = yes && echo yes` 2156ac_test_CFLAGS=${CFLAGS+set} 2157ac_save_CFLAGS=$CFLAGS 2158CFLAGS="-g" 2159echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2160echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2161if test "${ac_cv_prog_cc_g+set}" = set; then 2162 echo $ECHO_N "(cached) $ECHO_C" >&6 2163else 2164 cat >conftest.$ac_ext <<_ACEOF 2165/* confdefs.h. */ 2166_ACEOF 2167cat confdefs.h >>conftest.$ac_ext 2168cat >>conftest.$ac_ext <<_ACEOF 2169/* end confdefs.h. */ 2170 2171int 2172main () 2173{ 2174 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179rm -f conftest.$ac_objext 2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2181 (eval $ac_compile) 2>conftest.er1 2182 ac_status=$? 2183 grep -v '^ *+' conftest.er1 >conftest.err 2184 rm -f conftest.er1 2185 cat conftest.err >&5 2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2187 (exit $ac_status); } && 2188 { ac_try='test -z "$ac_c_werror_flag" 2189 || test ! -s conftest.err' 2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2191 (eval $ac_try) 2>&5 2192 ac_status=$? 2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2194 (exit $ac_status); }; } && 2195 { ac_try='test -s conftest.$ac_objext' 2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2197 (eval $ac_try) 2>&5 2198 ac_status=$? 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); }; }; then 2201 ac_cv_prog_cc_g=yes 2202else 2203 echo "$as_me: failed program was:" >&5 2204sed 's/^/| /' conftest.$ac_ext >&5 2205 2206ac_cv_prog_cc_g=no 2207fi 2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2212if test "$ac_test_CFLAGS" = set; then 2213 CFLAGS=$ac_save_CFLAGS 2214elif test $ac_cv_prog_cc_g = yes; then 2215 if test "$GCC" = yes; then 2216 CFLAGS="-g -O2" 2217 else 2218 CFLAGS="-g" 2219 fi 2220else 2221 if test "$GCC" = yes; then 2222 CFLAGS="-O2" 2223 else 2224 CFLAGS= 2225 fi 2226fi 2227echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2228echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2229if test "${ac_cv_prog_cc_stdc+set}" = set; then 2230 echo $ECHO_N "(cached) $ECHO_C" >&6 2231else 2232 ac_cv_prog_cc_stdc=no 2233ac_save_CC=$CC 2234cat >conftest.$ac_ext <<_ACEOF 2235/* confdefs.h. */ 2236_ACEOF 2237cat confdefs.h >>conftest.$ac_ext 2238cat >>conftest.$ac_ext <<_ACEOF 2239/* end confdefs.h. */ 2240#include <stdarg.h> 2241#include <stdio.h> 2242#include <sys/types.h> 2243#include <sys/stat.h> 2244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2245struct buf { int x; }; 2246FILE * (*rcsopen) (struct buf *, struct stat *, int); 2247static char *e (p, i) 2248 char **p; 2249 int i; 2250{ 2251 return p[i]; 2252} 2253static char *f (char * (*g) (char **, int), char **p, ...) 2254{ 2255 char *s; 2256 va_list v; 2257 va_start (v,p); 2258 s = g (p, va_arg (v,int)); 2259 va_end (v); 2260 return s; 2261} 2262 2263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2264 function prototypes and stuff, but not '\xHH' hex character constants. 2265 These don't provoke an error unfortunately, instead are silently treated 2266 as 'x'. The following induces an error, until -std1 is added to get 2267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2268 array size at least. It's necessary to write '\x00'==0 to get something 2269 that's true only with -std1. */ 2270int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2271 2272int test (int i, double x); 2273struct s1 {int (*f) (int a);}; 2274struct s2 {int (*f) (double a);}; 2275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2276int argc; 2277char **argv; 2278int 2279main () 2280{ 2281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2282 ; 2283 return 0; 2284} 2285_ACEOF 2286# Don't try gcc -ansi; that turns off useful extensions and 2287# breaks some systems' header files. 2288# AIX -qlanglvl=ansi 2289# Ultrix and OSF/1 -std1 2290# HP-UX 10.20 and later -Ae 2291# HP-UX older versions -Aa -D_HPUX_SOURCE 2292# SVR4 -Xc -D__EXTENSIONS__ 2293for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2294do 2295 CC="$ac_save_CC $ac_arg" 2296 rm -f conftest.$ac_objext 2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2298 (eval $ac_compile) 2>conftest.er1 2299 ac_status=$? 2300 grep -v '^ *+' conftest.er1 >conftest.err 2301 rm -f conftest.er1 2302 cat conftest.err >&5 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); } && 2305 { ac_try='test -z "$ac_c_werror_flag" 2306 || test ! -s conftest.err' 2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2308 (eval $ac_try) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); }; } && 2312 { ac_try='test -s conftest.$ac_objext' 2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2314 (eval $ac_try) 2>&5 2315 ac_status=$? 2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2317 (exit $ac_status); }; }; then 2318 ac_cv_prog_cc_stdc=$ac_arg 2319break 2320else 2321 echo "$as_me: failed program was:" >&5 2322sed 's/^/| /' conftest.$ac_ext >&5 2323 2324fi 2325rm -f conftest.err conftest.$ac_objext 2326done 2327rm -f conftest.$ac_ext conftest.$ac_objext 2328CC=$ac_save_CC 2329 2330fi 2331 2332case "x$ac_cv_prog_cc_stdc" in 2333 x|xno) 2334 echo "$as_me:$LINENO: result: none needed" >&5 2335echo "${ECHO_T}none needed" >&6 ;; 2336 *) 2337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2338echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2339 CC="$CC $ac_cv_prog_cc_stdc" ;; 2340esac 2341 2342# Some people use a C++ compiler to compile C. Since we use `exit', 2343# in C++ we need to declare it. In case someone uses the same compiler 2344# for both compiling C and C++ we need to have the C++ compiler decide 2345# the declaration of exit, since it's the most demanding environment. 2346cat >conftest.$ac_ext <<_ACEOF 2347#ifndef __cplusplus 2348 choke me 2349#endif 2350_ACEOF 2351rm -f conftest.$ac_objext 2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2353 (eval $ac_compile) 2>conftest.er1 2354 ac_status=$? 2355 grep -v '^ *+' conftest.er1 >conftest.err 2356 rm -f conftest.er1 2357 cat conftest.err >&5 2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 (exit $ac_status); } && 2360 { ac_try='test -z "$ac_c_werror_flag" 2361 || test ! -s conftest.err' 2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2363 (eval $ac_try) 2>&5 2364 ac_status=$? 2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2366 (exit $ac_status); }; } && 2367 { ac_try='test -s conftest.$ac_objext' 2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2369 (eval $ac_try) 2>&5 2370 ac_status=$? 2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2372 (exit $ac_status); }; }; then 2373 for ac_declaration in \ 2374 '' \ 2375 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2376 'extern "C" void std::exit (int); using std::exit;' \ 2377 'extern "C" void exit (int) throw ();' \ 2378 'extern "C" void exit (int);' \ 2379 'void exit (int);' 2380do 2381 cat >conftest.$ac_ext <<_ACEOF 2382/* confdefs.h. */ 2383_ACEOF 2384cat confdefs.h >>conftest.$ac_ext 2385cat >>conftest.$ac_ext <<_ACEOF 2386/* end confdefs.h. */ 2387$ac_declaration 2388#include <stdlib.h> 2389int 2390main () 2391{ 2392exit (42); 2393 ; 2394 return 0; 2395} 2396_ACEOF 2397rm -f conftest.$ac_objext 2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2399 (eval $ac_compile) 2>conftest.er1 2400 ac_status=$? 2401 grep -v '^ *+' conftest.er1 >conftest.err 2402 rm -f conftest.er1 2403 cat conftest.err >&5 2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2405 (exit $ac_status); } && 2406 { ac_try='test -z "$ac_c_werror_flag" 2407 || test ! -s conftest.err' 2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2409 (eval $ac_try) 2>&5 2410 ac_status=$? 2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2412 (exit $ac_status); }; } && 2413 { ac_try='test -s conftest.$ac_objext' 2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2415 (eval $ac_try) 2>&5 2416 ac_status=$? 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); }; }; then 2419 : 2420else 2421 echo "$as_me: failed program was:" >&5 2422sed 's/^/| /' conftest.$ac_ext >&5 2423 2424continue 2425fi 2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2427 cat >conftest.$ac_ext <<_ACEOF 2428/* confdefs.h. */ 2429_ACEOF 2430cat confdefs.h >>conftest.$ac_ext 2431cat >>conftest.$ac_ext <<_ACEOF 2432/* end confdefs.h. */ 2433$ac_declaration 2434int 2435main () 2436{ 2437exit (42); 2438 ; 2439 return 0; 2440} 2441_ACEOF 2442rm -f conftest.$ac_objext 2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2444 (eval $ac_compile) 2>conftest.er1 2445 ac_status=$? 2446 grep -v '^ *+' conftest.er1 >conftest.err 2447 rm -f conftest.er1 2448 cat conftest.err >&5 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); } && 2451 { ac_try='test -z "$ac_c_werror_flag" 2452 || test ! -s conftest.err' 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2454 (eval $ac_try) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); }; } && 2458 { ac_try='test -s conftest.$ac_objext' 2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2460 (eval $ac_try) 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; }; then 2464 break 2465else 2466 echo "$as_me: failed program was:" >&5 2467sed 's/^/| /' conftest.$ac_ext >&5 2468 2469fi 2470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2471done 2472rm -f conftest* 2473if test -n "$ac_declaration"; then 2474 echo '#ifdef __cplusplus' >>confdefs.h 2475 echo $ac_declaration >>confdefs.h 2476 echo '#endif' >>confdefs.h 2477fi 2478 2479else 2480 echo "$as_me: failed program was:" >&5 2481sed 's/^/| /' conftest.$ac_ext >&5 2482 2483fi 2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2485ac_ext=c 2486ac_cpp='$CPP $CPPFLAGS' 2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2489ac_compiler_gnu=$ac_cv_c_compiler_gnu 2490 2491 2492for ac_prog in flex lex 2493do 2494 # Extract the first word of "$ac_prog", so it can be a program name with args. 2495set dummy $ac_prog; ac_word=$2 2496echo "$as_me:$LINENO: checking for $ac_word" >&5 2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2498if test "${ac_cv_prog_LEX+set}" = set; then 2499 echo $ECHO_N "(cached) $ECHO_C" >&6 2500else 2501 if test -n "$LEX"; then 2502 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2503else 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505for as_dir in $PATH 2506do 2507 IFS=$as_save_IFS 2508 test -z "$as_dir" && as_dir=. 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2511 ac_cv_prog_LEX="$ac_prog" 2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2513 break 2 2514 fi 2515done 2516done 2517 2518fi 2519fi 2520LEX=$ac_cv_prog_LEX 2521if test -n "$LEX"; then 2522 echo "$as_me:$LINENO: result: $LEX" >&5 2523echo "${ECHO_T}$LEX" >&6 2524else 2525 echo "$as_me:$LINENO: result: no" >&5 2526echo "${ECHO_T}no" >&6 2527fi 2528 2529 test -n "$LEX" && break 2530done 2531test -n "$LEX" || LEX=":" 2532 2533if test -z "$LEXLIB" 2534then 2535 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 2536echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 2537if test "${ac_cv_lib_fl_yywrap+set}" = set; then 2538 echo $ECHO_N "(cached) $ECHO_C" >&6 2539else 2540 ac_check_lib_save_LIBS=$LIBS 2541LIBS="-lfl $LIBS" 2542cat >conftest.$ac_ext <<_ACEOF 2543/* confdefs.h. */ 2544_ACEOF 2545cat confdefs.h >>conftest.$ac_ext 2546cat >>conftest.$ac_ext <<_ACEOF 2547/* end confdefs.h. */ 2548 2549/* Override any gcc2 internal prototype to avoid an error. */ 2550#ifdef __cplusplus 2551extern "C" 2552#endif 2553/* We use char because int might match the return type of a gcc2 2554 builtin and then its argument prototype would still apply. */ 2555char yywrap (); 2556int 2557main () 2558{ 2559yywrap (); 2560 ; 2561 return 0; 2562} 2563_ACEOF 2564rm -f conftest.$ac_objext conftest$ac_exeext 2565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2566 (eval $ac_link) 2>conftest.er1 2567 ac_status=$? 2568 grep -v '^ *+' conftest.er1 >conftest.err 2569 rm -f conftest.er1 2570 cat conftest.err >&5 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } && 2573 { ac_try='test -z "$ac_c_werror_flag" 2574 || test ! -s conftest.err' 2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2576 (eval $ac_try) 2>&5 2577 ac_status=$? 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2579 (exit $ac_status); }; } && 2580 { ac_try='test -s conftest$ac_exeext' 2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2582 (eval $ac_try) 2>&5 2583 ac_status=$? 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); }; }; then 2586 ac_cv_lib_fl_yywrap=yes 2587else 2588 echo "$as_me: failed program was:" >&5 2589sed 's/^/| /' conftest.$ac_ext >&5 2590 2591ac_cv_lib_fl_yywrap=no 2592fi 2593rm -f conftest.err conftest.$ac_objext \ 2594 conftest$ac_exeext conftest.$ac_ext 2595LIBS=$ac_check_lib_save_LIBS 2596fi 2597echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 2598echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 2599if test $ac_cv_lib_fl_yywrap = yes; then 2600 LEXLIB="-lfl" 2601else 2602 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 2603echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 2604if test "${ac_cv_lib_l_yywrap+set}" = set; then 2605 echo $ECHO_N "(cached) $ECHO_C" >&6 2606else 2607 ac_check_lib_save_LIBS=$LIBS 2608LIBS="-ll $LIBS" 2609cat >conftest.$ac_ext <<_ACEOF 2610/* confdefs.h. */ 2611_ACEOF 2612cat confdefs.h >>conftest.$ac_ext 2613cat >>conftest.$ac_ext <<_ACEOF 2614/* end confdefs.h. */ 2615 2616/* Override any gcc2 internal prototype to avoid an error. */ 2617#ifdef __cplusplus 2618extern "C" 2619#endif 2620/* We use char because int might match the return type of a gcc2 2621 builtin and then its argument prototype would still apply. */ 2622char yywrap (); 2623int 2624main () 2625{ 2626yywrap (); 2627 ; 2628 return 0; 2629} 2630_ACEOF 2631rm -f conftest.$ac_objext conftest$ac_exeext 2632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2633 (eval $ac_link) 2>conftest.er1 2634 ac_status=$? 2635 grep -v '^ *+' conftest.er1 >conftest.err 2636 rm -f conftest.er1 2637 cat conftest.err >&5 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); } && 2640 { ac_try='test -z "$ac_c_werror_flag" 2641 || test ! -s conftest.err' 2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2643 (eval $ac_try) 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; } && 2647 { ac_try='test -s conftest$ac_exeext' 2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2649 (eval $ac_try) 2>&5 2650 ac_status=$? 2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); }; }; then 2653 ac_cv_lib_l_yywrap=yes 2654else 2655 echo "$as_me: failed program was:" >&5 2656sed 's/^/| /' conftest.$ac_ext >&5 2657 2658ac_cv_lib_l_yywrap=no 2659fi 2660rm -f conftest.err conftest.$ac_objext \ 2661 conftest$ac_exeext conftest.$ac_ext 2662LIBS=$ac_check_lib_save_LIBS 2663fi 2664echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 2665echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 2666if test $ac_cv_lib_l_yywrap = yes; then 2667 LEXLIB="-ll" 2668fi 2669 2670fi 2671 2672fi 2673 2674if test "x$LEX" != "x:"; then 2675 echo "$as_me:$LINENO: checking lex output file root" >&5 2676echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 2677if test "${ac_cv_prog_lex_root+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 # The minimal lex program is just a single line: %%. But some broken lexes 2681# (Solaris, I think it was) want two %% lines, so accommodate them. 2682cat >conftest.l <<_ACEOF 2683%% 2684%% 2685_ACEOF 2686{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 2687 (eval $LEX conftest.l) 2>&5 2688 ac_status=$? 2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2690 (exit $ac_status); } 2691if test -f lex.yy.c; then 2692 ac_cv_prog_lex_root=lex.yy 2693elif test -f lexyy.c; then 2694 ac_cv_prog_lex_root=lexyy 2695else 2696 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 2697echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 2698 { (exit 1); exit 1; }; } 2699fi 2700fi 2701echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 2702echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 2703rm -f conftest.l 2704LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 2705 2706echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 2707echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 2708if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 # POSIX says lex can declare yytext either as a pointer or an array; the 2712# default is implementation-dependent. Figure out which it is, since 2713# not all implementations provide the %pointer and %array declarations. 2714ac_cv_prog_lex_yytext_pointer=no 2715echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 2716ac_save_LIBS=$LIBS 2717LIBS="$LIBS $LEXLIB" 2718cat >conftest.$ac_ext <<_ACEOF 2719`cat $LEX_OUTPUT_ROOT.c` 2720_ACEOF 2721rm -f conftest.$ac_objext conftest$ac_exeext 2722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2723 (eval $ac_link) 2>conftest.er1 2724 ac_status=$? 2725 grep -v '^ *+' conftest.er1 >conftest.err 2726 rm -f conftest.er1 2727 cat conftest.err >&5 2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2729 (exit $ac_status); } && 2730 { ac_try='test -z "$ac_c_werror_flag" 2731 || test ! -s conftest.err' 2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2733 (eval $ac_try) 2>&5 2734 ac_status=$? 2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2736 (exit $ac_status); }; } && 2737 { ac_try='test -s conftest$ac_exeext' 2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2739 (eval $ac_try) 2>&5 2740 ac_status=$? 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); }; }; then 2743 ac_cv_prog_lex_yytext_pointer=yes 2744else 2745 echo "$as_me: failed program was:" >&5 2746sed 's/^/| /' conftest.$ac_ext >&5 2747 2748fi 2749rm -f conftest.err conftest.$ac_objext \ 2750 conftest$ac_exeext conftest.$ac_ext 2751LIBS=$ac_save_LIBS 2752rm -f "${LEX_OUTPUT_ROOT}.c" 2753 2754fi 2755echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 2756echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 2757if test $ac_cv_prog_lex_yytext_pointer = yes; then 2758 2759cat >>confdefs.h <<\_ACEOF 2760#define YYTEXT_POINTER 1 2761_ACEOF 2762 2763fi 2764 2765fi 2766ac_ext=c 2767ac_cpp='$CPP $CPPFLAGS' 2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2770ac_compiler_gnu=$ac_cv_c_compiler_gnu 2771if test -n "$ac_tool_prefix"; then 2772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2773set dummy ${ac_tool_prefix}gcc; ac_word=$2 2774echo "$as_me:$LINENO: checking for $ac_word" >&5 2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2776if test "${ac_cv_prog_CC+set}" = set; then 2777 echo $ECHO_N "(cached) $ECHO_C" >&6 2778else 2779 if test -n "$CC"; then 2780 ac_cv_prog_CC="$CC" # Let the user override the test. 2781else 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2789 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793done 2794done 2795 2796fi 2797fi 2798CC=$ac_cv_prog_CC 2799if test -n "$CC"; then 2800 echo "$as_me:$LINENO: result: $CC" >&5 2801echo "${ECHO_T}$CC" >&6 2802else 2803 echo "$as_me:$LINENO: result: no" >&5 2804echo "${ECHO_T}no" >&6 2805fi 2806 2807fi 2808if test -z "$ac_cv_prog_CC"; then 2809 ac_ct_CC=$CC 2810 # Extract the first word of "gcc", so it can be a program name with args. 2811set dummy gcc; ac_word=$2 2812echo "$as_me:$LINENO: checking for $ac_word" >&5 2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2814if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2815 echo $ECHO_N "(cached) $ECHO_C" >&6 2816else 2817 if test -n "$ac_ct_CC"; then 2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 ac_cv_prog_ac_ct_CC="gcc" 2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832done 2833 2834fi 2835fi 2836ac_ct_CC=$ac_cv_prog_ac_ct_CC 2837if test -n "$ac_ct_CC"; then 2838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2839echo "${ECHO_T}$ac_ct_CC" >&6 2840else 2841 echo "$as_me:$LINENO: result: no" >&5 2842echo "${ECHO_T}no" >&6 2843fi 2844 2845 CC=$ac_ct_CC 2846else 2847 CC="$ac_cv_prog_CC" 2848fi 2849 2850if test -z "$CC"; then 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2853set dummy ${ac_tool_prefix}cc; ac_word=$2 2854echo "$as_me:$LINENO: checking for $ac_word" >&5 2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2856if test "${ac_cv_prog_CC+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858else 2859 if test -n "$CC"; then 2860 ac_cv_prog_CC="$CC" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_CC="${ac_tool_prefix}cc" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874done 2875 2876fi 2877fi 2878CC=$ac_cv_prog_CC 2879if test -n "$CC"; then 2880 echo "$as_me:$LINENO: result: $CC" >&5 2881echo "${ECHO_T}$CC" >&6 2882else 2883 echo "$as_me:$LINENO: result: no" >&5 2884echo "${ECHO_T}no" >&6 2885fi 2886 2887fi 2888if test -z "$ac_cv_prog_CC"; then 2889 ac_ct_CC=$CC 2890 # Extract the first word of "cc", so it can be a program name with args. 2891set dummy cc; ac_word=$2 2892echo "$as_me:$LINENO: checking for $ac_word" >&5 2893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2894if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2895 echo $ECHO_N "(cached) $ECHO_C" >&6 2896else 2897 if test -n "$ac_ct_CC"; then 2898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2899else 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_ac_ct_CC="cc" 2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912done 2913 2914fi 2915fi 2916ac_ct_CC=$ac_cv_prog_ac_ct_CC 2917if test -n "$ac_ct_CC"; then 2918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2919echo "${ECHO_T}$ac_ct_CC" >&6 2920else 2921 echo "$as_me:$LINENO: result: no" >&5 2922echo "${ECHO_T}no" >&6 2923fi 2924 2925 CC=$ac_ct_CC 2926else 2927 CC="$ac_cv_prog_CC" 2928fi 2929 2930fi 2931if test -z "$CC"; then 2932 # Extract the first word of "cc", so it can be a program name with args. 2933set dummy cc; ac_word=$2 2934echo "$as_me:$LINENO: checking for $ac_word" >&5 2935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2936if test "${ac_cv_prog_CC+set}" = set; then 2937 echo $ECHO_N "(cached) $ECHO_C" >&6 2938else 2939 if test -n "$CC"; then 2940 ac_cv_prog_CC="$CC" # Let the user override the test. 2941else 2942 ac_prog_rejected=no 2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2944for as_dir in $PATH 2945do 2946 IFS=$as_save_IFS 2947 test -z "$as_dir" && as_dir=. 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2951 ac_prog_rejected=yes 2952 continue 2953 fi 2954 ac_cv_prog_CC="cc" 2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2956 break 2 2957 fi 2958done 2959done 2960 2961if test $ac_prog_rejected = yes; then 2962 # We found a bogon in the path, so make sure we never use it. 2963 set dummy $ac_cv_prog_CC 2964 shift 2965 if test $# != 0; then 2966 # We chose a different compiler from the bogus one. 2967 # However, it has the same basename, so the bogon will be chosen 2968 # first if we set CC to just the basename; use the full file name. 2969 shift 2970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2971 fi 2972fi 2973fi 2974fi 2975CC=$ac_cv_prog_CC 2976if test -n "$CC"; then 2977 echo "$as_me:$LINENO: result: $CC" >&5 2978echo "${ECHO_T}$CC" >&6 2979else 2980 echo "$as_me:$LINENO: result: no" >&5 2981echo "${ECHO_T}no" >&6 2982fi 2983 2984fi 2985if test -z "$CC"; then 2986 if test -n "$ac_tool_prefix"; then 2987 for ac_prog in cl 2988 do 2989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2990set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2991echo "$as_me:$LINENO: checking for $ac_word" >&5 2992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2993if test "${ac_cv_prog_CC+set}" = set; then 2994 echo $ECHO_N "(cached) $ECHO_C" >&6 2995else 2996 if test -n "$CC"; then 2997 ac_cv_prog_CC="$CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011done 3012 3013fi 3014fi 3015CC=$ac_cv_prog_CC 3016if test -n "$CC"; then 3017 echo "$as_me:$LINENO: result: $CC" >&5 3018echo "${ECHO_T}$CC" >&6 3019else 3020 echo "$as_me:$LINENO: result: no" >&5 3021echo "${ECHO_T}no" >&6 3022fi 3023 3024 test -n "$CC" && break 3025 done 3026fi 3027if test -z "$CC"; then 3028 ac_ct_CC=$CC 3029 for ac_prog in cl 3030do 3031 # Extract the first word of "$ac_prog", so it can be a program name with args. 3032set dummy $ac_prog; ac_word=$2 3033echo "$as_me:$LINENO: checking for $ac_word" >&5 3034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3035if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3036 echo $ECHO_N "(cached) $ECHO_C" >&6 3037else 3038 if test -n "$ac_ct_CC"; then 3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3040else 3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042for as_dir in $PATH 3043do 3044 IFS=$as_save_IFS 3045 test -z "$as_dir" && as_dir=. 3046 for ac_exec_ext in '' $ac_executable_extensions; do 3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3048 ac_cv_prog_ac_ct_CC="$ac_prog" 3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3050 break 2 3051 fi 3052done 3053done 3054 3055fi 3056fi 3057ac_ct_CC=$ac_cv_prog_ac_ct_CC 3058if test -n "$ac_ct_CC"; then 3059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3060echo "${ECHO_T}$ac_ct_CC" >&6 3061else 3062 echo "$as_me:$LINENO: result: no" >&5 3063echo "${ECHO_T}no" >&6 3064fi 3065 3066 test -n "$ac_ct_CC" && break 3067done 3068 3069 CC=$ac_ct_CC 3070fi 3071 3072fi 3073 3074 3075test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3076See \`config.log' for more details." >&5 3077echo "$as_me: error: no acceptable C compiler found in \$PATH 3078See \`config.log' for more details." >&2;} 3079 { (exit 1); exit 1; }; } 3080 3081# Provide some information about the compiler. 3082echo "$as_me:$LINENO:" \ 3083 "checking for C compiler version" >&5 3084ac_compiler=`set X $ac_compile; echo $2` 3085{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3086 (eval $ac_compiler --version </dev/null >&5) 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } 3090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3091 (eval $ac_compiler -v </dev/null >&5) 2>&5 3092 ac_status=$? 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); } 3095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3096 (eval $ac_compiler -V </dev/null >&5) 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); } 3100 3101echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3102echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3103if test "${ac_cv_c_compiler_gnu+set}" = set; then 3104 echo $ECHO_N "(cached) $ECHO_C" >&6 3105else 3106 cat >conftest.$ac_ext <<_ACEOF 3107/* confdefs.h. */ 3108_ACEOF 3109cat confdefs.h >>conftest.$ac_ext 3110cat >>conftest.$ac_ext <<_ACEOF 3111/* end confdefs.h. */ 3112 3113int 3114main () 3115{ 3116#ifndef __GNUC__ 3117 choke me 3118#endif 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124rm -f conftest.$ac_objext 3125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3126 (eval $ac_compile) 2>conftest.er1 3127 ac_status=$? 3128 grep -v '^ *+' conftest.er1 >conftest.err 3129 rm -f conftest.er1 3130 cat conftest.err >&5 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132 (exit $ac_status); } && 3133 { ac_try='test -z "$ac_c_werror_flag" 3134 || test ! -s conftest.err' 3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3136 (eval $ac_try) 2>&5 3137 ac_status=$? 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 (exit $ac_status); }; } && 3140 { ac_try='test -s conftest.$ac_objext' 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3142 (eval $ac_try) 2>&5 3143 ac_status=$? 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); }; }; then 3146 ac_compiler_gnu=yes 3147else 3148 echo "$as_me: failed program was:" >&5 3149sed 's/^/| /' conftest.$ac_ext >&5 3150 3151ac_compiler_gnu=no 3152fi 3153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3154ac_cv_c_compiler_gnu=$ac_compiler_gnu 3155 3156fi 3157echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3158echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3159GCC=`test $ac_compiler_gnu = yes && echo yes` 3160ac_test_CFLAGS=${CFLAGS+set} 3161ac_save_CFLAGS=$CFLAGS 3162CFLAGS="-g" 3163echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3164echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3165if test "${ac_cv_prog_cc_g+set}" = set; then 3166 echo $ECHO_N "(cached) $ECHO_C" >&6 3167else 3168 cat >conftest.$ac_ext <<_ACEOF 3169/* confdefs.h. */ 3170_ACEOF 3171cat confdefs.h >>conftest.$ac_ext 3172cat >>conftest.$ac_ext <<_ACEOF 3173/* end confdefs.h. */ 3174 3175int 3176main () 3177{ 3178 3179 ; 3180 return 0; 3181} 3182_ACEOF 3183rm -f conftest.$ac_objext 3184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3185 (eval $ac_compile) 2>conftest.er1 3186 ac_status=$? 3187 grep -v '^ *+' conftest.er1 >conftest.err 3188 rm -f conftest.er1 3189 cat conftest.err >&5 3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 (exit $ac_status); } && 3192 { ac_try='test -z "$ac_c_werror_flag" 3193 || test ! -s conftest.err' 3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 (eval $ac_try) 2>&5 3196 ac_status=$? 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); }; } && 3199 { ac_try='test -s conftest.$ac_objext' 3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3201 (eval $ac_try) 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); }; }; then 3205 ac_cv_prog_cc_g=yes 3206else 3207 echo "$as_me: failed program was:" >&5 3208sed 's/^/| /' conftest.$ac_ext >&5 3209 3210ac_cv_prog_cc_g=no 3211fi 3212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3213fi 3214echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3215echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3216if test "$ac_test_CFLAGS" = set; then 3217 CFLAGS=$ac_save_CFLAGS 3218elif test $ac_cv_prog_cc_g = yes; then 3219 if test "$GCC" = yes; then 3220 CFLAGS="-g -O2" 3221 else 3222 CFLAGS="-g" 3223 fi 3224else 3225 if test "$GCC" = yes; then 3226 CFLAGS="-O2" 3227 else 3228 CFLAGS= 3229 fi 3230fi 3231echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3232echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3233if test "${ac_cv_prog_cc_stdc+set}" = set; then 3234 echo $ECHO_N "(cached) $ECHO_C" >&6 3235else 3236 ac_cv_prog_cc_stdc=no 3237ac_save_CC=$CC 3238cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244#include <stdarg.h> 3245#include <stdio.h> 3246#include <sys/types.h> 3247#include <sys/stat.h> 3248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3249struct buf { int x; }; 3250FILE * (*rcsopen) (struct buf *, struct stat *, int); 3251static char *e (p, i) 3252 char **p; 3253 int i; 3254{ 3255 return p[i]; 3256} 3257static char *f (char * (*g) (char **, int), char **p, ...) 3258{ 3259 char *s; 3260 va_list v; 3261 va_start (v,p); 3262 s = g (p, va_arg (v,int)); 3263 va_end (v); 3264 return s; 3265} 3266 3267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3268 function prototypes and stuff, but not '\xHH' hex character constants. 3269 These don't provoke an error unfortunately, instead are silently treated 3270 as 'x'. The following induces an error, until -std1 is added to get 3271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3272 array size at least. It's necessary to write '\x00'==0 to get something 3273 that's true only with -std1. */ 3274int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3275 3276int test (int i, double x); 3277struct s1 {int (*f) (int a);}; 3278struct s2 {int (*f) (double a);}; 3279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3280int argc; 3281char **argv; 3282int 3283main () 3284{ 3285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3286 ; 3287 return 0; 3288} 3289_ACEOF 3290# Don't try gcc -ansi; that turns off useful extensions and 3291# breaks some systems' header files. 3292# AIX -qlanglvl=ansi 3293# Ultrix and OSF/1 -std1 3294# HP-UX 10.20 and later -Ae 3295# HP-UX older versions -Aa -D_HPUX_SOURCE 3296# SVR4 -Xc -D__EXTENSIONS__ 3297for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3298do 3299 CC="$ac_save_CC $ac_arg" 3300 rm -f conftest.$ac_objext 3301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3302 (eval $ac_compile) 2>conftest.er1 3303 ac_status=$? 3304 grep -v '^ *+' conftest.er1 >conftest.err 3305 rm -f conftest.er1 3306 cat conftest.err >&5 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && 3309 { ac_try='test -z "$ac_c_werror_flag" 3310 || test ! -s conftest.err' 3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3312 (eval $ac_try) 2>&5 3313 ac_status=$? 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); }; } && 3316 { ac_try='test -s conftest.$ac_objext' 3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3318 (eval $ac_try) 2>&5 3319 ac_status=$? 3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3321 (exit $ac_status); }; }; then 3322 ac_cv_prog_cc_stdc=$ac_arg 3323break 3324else 3325 echo "$as_me: failed program was:" >&5 3326sed 's/^/| /' conftest.$ac_ext >&5 3327 3328fi 3329rm -f conftest.err conftest.$ac_objext 3330done 3331rm -f conftest.$ac_ext conftest.$ac_objext 3332CC=$ac_save_CC 3333 3334fi 3335 3336case "x$ac_cv_prog_cc_stdc" in 3337 x|xno) 3338 echo "$as_me:$LINENO: result: none needed" >&5 3339echo "${ECHO_T}none needed" >&6 ;; 3340 *) 3341 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3342echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3343 CC="$CC $ac_cv_prog_cc_stdc" ;; 3344esac 3345 3346# Some people use a C++ compiler to compile C. Since we use `exit', 3347# in C++ we need to declare it. In case someone uses the same compiler 3348# for both compiling C and C++ we need to have the C++ compiler decide 3349# the declaration of exit, since it's the most demanding environment. 3350cat >conftest.$ac_ext <<_ACEOF 3351#ifndef __cplusplus 3352 choke me 3353#endif 3354_ACEOF 3355rm -f conftest.$ac_objext 3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3357 (eval $ac_compile) 2>conftest.er1 3358 ac_status=$? 3359 grep -v '^ *+' conftest.er1 >conftest.err 3360 rm -f conftest.er1 3361 cat conftest.err >&5 3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3363 (exit $ac_status); } && 3364 { ac_try='test -z "$ac_c_werror_flag" 3365 || test ! -s conftest.err' 3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3367 (eval $ac_try) 2>&5 3368 ac_status=$? 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); }; } && 3371 { ac_try='test -s conftest.$ac_objext' 3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3373 (eval $ac_try) 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); }; }; then 3377 for ac_declaration in \ 3378 '' \ 3379 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3380 'extern "C" void std::exit (int); using std::exit;' \ 3381 'extern "C" void exit (int) throw ();' \ 3382 'extern "C" void exit (int);' \ 3383 'void exit (int);' 3384do 3385 cat >conftest.$ac_ext <<_ACEOF 3386/* confdefs.h. */ 3387_ACEOF 3388cat confdefs.h >>conftest.$ac_ext 3389cat >>conftest.$ac_ext <<_ACEOF 3390/* end confdefs.h. */ 3391$ac_declaration 3392#include <stdlib.h> 3393int 3394main () 3395{ 3396exit (42); 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401rm -f conftest.$ac_objext 3402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3403 (eval $ac_compile) 2>conftest.er1 3404 ac_status=$? 3405 grep -v '^ *+' conftest.er1 >conftest.err 3406 rm -f conftest.er1 3407 cat conftest.err >&5 3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3409 (exit $ac_status); } && 3410 { ac_try='test -z "$ac_c_werror_flag" 3411 || test ! -s conftest.err' 3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3413 (eval $ac_try) 2>&5 3414 ac_status=$? 3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3416 (exit $ac_status); }; } && 3417 { ac_try='test -s conftest.$ac_objext' 3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3419 (eval $ac_try) 2>&5 3420 ac_status=$? 3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); }; }; then 3423 : 3424else 3425 echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428continue 3429fi 3430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3431 cat >conftest.$ac_ext <<_ACEOF 3432/* confdefs.h. */ 3433_ACEOF 3434cat confdefs.h >>conftest.$ac_ext 3435cat >>conftest.$ac_ext <<_ACEOF 3436/* end confdefs.h. */ 3437$ac_declaration 3438int 3439main () 3440{ 3441exit (42); 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446rm -f conftest.$ac_objext 3447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3448 (eval $ac_compile) 2>conftest.er1 3449 ac_status=$? 3450 grep -v '^ *+' conftest.er1 >conftest.err 3451 rm -f conftest.er1 3452 cat conftest.err >&5 3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); } && 3455 { ac_try='test -z "$ac_c_werror_flag" 3456 || test ! -s conftest.err' 3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3458 (eval $ac_try) 2>&5 3459 ac_status=$? 3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3461 (exit $ac_status); }; } && 3462 { ac_try='test -s conftest.$ac_objext' 3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3464 (eval $ac_try) 2>&5 3465 ac_status=$? 3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3467 (exit $ac_status); }; }; then 3468 break 3469else 3470 echo "$as_me: failed program was:" >&5 3471sed 's/^/| /' conftest.$ac_ext >&5 3472 3473fi 3474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3475done 3476rm -f conftest* 3477if test -n "$ac_declaration"; then 3478 echo '#ifdef __cplusplus' >>confdefs.h 3479 echo $ac_declaration >>confdefs.h 3480 echo '#endif' >>confdefs.h 3481fi 3482 3483else 3484 echo "$as_me: failed program was:" >&5 3485sed 's/^/| /' conftest.$ac_ext >&5 3486 3487fi 3488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3489ac_ext=c 3490ac_cpp='$CPP $CPPFLAGS' 3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3493ac_compiler_gnu=$ac_cv_c_compiler_gnu 3494 3495# Find a good install program. We prefer a C program (faster), 3496# so one script is as good as another. But avoid the broken or 3497# incompatible versions: 3498# SysV /etc/install, /usr/sbin/install 3499# SunOS /usr/etc/install 3500# IRIX /sbin/install 3501# AIX /bin/install 3502# AmigaOS /C/install, which installs bootblocks on floppy discs 3503# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3504# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3505# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3506# OS/2's system install, which has a completely different semantic 3507# ./install, which can be erroneously created by make from ./install.sh. 3508echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3509echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3510if test -z "$INSTALL"; then 3511if test "${ac_cv_path_install+set}" = set; then 3512 echo $ECHO_N "(cached) $ECHO_C" >&6 3513else 3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 # Account for people who put trailing slashes in PATH elements. 3520case $as_dir/ in 3521 ./ | .// | /cC/* | \ 3522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3524 /usr/ucb/* ) ;; 3525 *) 3526 # OSF1 and SCO ODT 3.0 have their own names for install. 3527 # Don't use installbsd from OSF since it installs stuff as root 3528 # by default. 3529 for ac_prog in ginstall scoinst install; do 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3532 if test $ac_prog = install && 3533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3534 # AIX install. It has an incompatible calling convention. 3535 : 3536 elif test $ac_prog = install && 3537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3538 # program-specific install script used by HP pwplus--don't use. 3539 : 3540 else 3541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3542 break 3 3543 fi 3544 fi 3545 done 3546 done 3547 ;; 3548esac 3549done 3550 3551 3552fi 3553 if test "${ac_cv_path_install+set}" = set; then 3554 INSTALL=$ac_cv_path_install 3555 else 3556 # As a last resort, use the slow shell script. We don't cache a 3557 # path for INSTALL within a source directory, because that will 3558 # break other packages using the cache if that directory is 3559 # removed, or if the path is relative. 3560 INSTALL=$ac_install_sh 3561 fi 3562fi 3563echo "$as_me:$LINENO: result: $INSTALL" >&5 3564echo "${ECHO_T}$INSTALL" >&6 3565 3566# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3567# It thinks the first close brace ends the variable substitution. 3568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3569 3570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3571 3572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3573 3574 3575echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3576echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3577if test "${ac_cv_c_const+set}" = set; then 3578 echo $ECHO_N "(cached) $ECHO_C" >&6 3579else 3580 cat >conftest.$ac_ext <<_ACEOF 3581/* confdefs.h. */ 3582_ACEOF 3583cat confdefs.h >>conftest.$ac_ext 3584cat >>conftest.$ac_ext <<_ACEOF 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590/* FIXME: Include the comments suggested by Paul. */ 3591#ifndef __cplusplus 3592 /* Ultrix mips cc rejects this. */ 3593 typedef int charset[2]; 3594 const charset x; 3595 /* SunOS 4.1.1 cc rejects this. */ 3596 char const *const *ccp; 3597 char **p; 3598 /* NEC SVR4.0.2 mips cc rejects this. */ 3599 struct point {int x, y;}; 3600 static struct point const zero = {0,0}; 3601 /* AIX XL C 1.02.0.0 rejects this. 3602 It does not let you subtract one const X* pointer from another in 3603 an arm of an if-expression whose if-part is not a constant 3604 expression */ 3605 const char *g = "string"; 3606 ccp = &g + (g ? g-g : 0); 3607 /* HPUX 7.0 cc rejects these. */ 3608 ++ccp; 3609 p = (char**) ccp; 3610 ccp = (char const *const *) p; 3611 { /* SCO 3.2v4 cc rejects this. */ 3612 char *t; 3613 char const *s = 0 ? (char *) 0 : (char const *) 0; 3614 3615 *t++ = 0; 3616 } 3617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3618 int x[] = {25, 17}; 3619 const int *foo = &x[0]; 3620 ++foo; 3621 } 3622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3623 typedef const int *iptr; 3624 iptr p = 0; 3625 ++p; 3626 } 3627 { /* AIX XL C 1.02.0.0 rejects this saying 3628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3629 struct s { int j; const int *ap[3]; }; 3630 struct s *b; b->j = 5; 3631 } 3632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3633 const int foo = 10; 3634 } 3635#endif 3636 3637 ; 3638 return 0; 3639} 3640_ACEOF 3641rm -f conftest.$ac_objext 3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3643 (eval $ac_compile) 2>conftest.er1 3644 ac_status=$? 3645 grep -v '^ *+' conftest.er1 >conftest.err 3646 rm -f conftest.er1 3647 cat conftest.err >&5 3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3649 (exit $ac_status); } && 3650 { ac_try='test -z "$ac_c_werror_flag" 3651 || test ! -s conftest.err' 3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3653 (eval $ac_try) 2>&5 3654 ac_status=$? 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); }; } && 3657 { ac_try='test -s conftest.$ac_objext' 3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3659 (eval $ac_try) 2>&5 3660 ac_status=$? 3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3662 (exit $ac_status); }; }; then 3663 ac_cv_c_const=yes 3664else 3665 echo "$as_me: failed program was:" >&5 3666sed 's/^/| /' conftest.$ac_ext >&5 3667 3668ac_cv_c_const=no 3669fi 3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3671fi 3672echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3673echo "${ECHO_T}$ac_cv_c_const" >&6 3674if test $ac_cv_c_const = no; then 3675 3676cat >>confdefs.h <<\_ACEOF 3677#define const 3678_ACEOF 3679 3680fi 3681 3682echo "$as_me:$LINENO: checking for inline" >&5 3683echo $ECHO_N "checking for inline... $ECHO_C" >&6 3684if test "${ac_cv_c_inline+set}" = set; then 3685 echo $ECHO_N "(cached) $ECHO_C" >&6 3686else 3687 ac_cv_c_inline=no 3688for ac_kw in inline __inline__ __inline; do 3689 cat >conftest.$ac_ext <<_ACEOF 3690/* confdefs.h. */ 3691_ACEOF 3692cat confdefs.h >>conftest.$ac_ext 3693cat >>conftest.$ac_ext <<_ACEOF 3694/* end confdefs.h. */ 3695#ifndef __cplusplus 3696typedef int foo_t; 3697static $ac_kw foo_t static_foo () {return 0; } 3698$ac_kw foo_t foo () {return 0; } 3699#endif 3700 3701_ACEOF 3702rm -f conftest.$ac_objext 3703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3704 (eval $ac_compile) 2>conftest.er1 3705 ac_status=$? 3706 grep -v '^ *+' conftest.er1 >conftest.err 3707 rm -f conftest.er1 3708 cat conftest.err >&5 3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3710 (exit $ac_status); } && 3711 { ac_try='test -z "$ac_c_werror_flag" 3712 || test ! -s conftest.err' 3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3714 (eval $ac_try) 2>&5 3715 ac_status=$? 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3717 (exit $ac_status); }; } && 3718 { ac_try='test -s conftest.$ac_objext' 3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3720 (eval $ac_try) 2>&5 3721 ac_status=$? 3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3723 (exit $ac_status); }; }; then 3724 ac_cv_c_inline=$ac_kw; break 3725else 3726 echo "$as_me: failed program was:" >&5 3727sed 's/^/| /' conftest.$ac_ext >&5 3728 3729fi 3730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3731done 3732 3733fi 3734echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3735echo "${ECHO_T}$ac_cv_c_inline" >&6 3736 3737 3738case $ac_cv_c_inline in 3739 inline | yes) ;; 3740 *) 3741 case $ac_cv_c_inline in 3742 no) ac_val=;; 3743 *) ac_val=$ac_cv_c_inline;; 3744 esac 3745 cat >>confdefs.h <<_ACEOF 3746#ifndef __cplusplus 3747#define inline $ac_val 3748#endif 3749_ACEOF 3750 ;; 3751esac 3752 3753 3754ac_ext=c 3755ac_cpp='$CPP $CPPFLAGS' 3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3758ac_compiler_gnu=$ac_cv_c_compiler_gnu 3759echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3760echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3761# On Suns, sometimes $CPP names a directory. 3762if test -n "$CPP" && test -d "$CPP"; then 3763 CPP= 3764fi 3765if test -z "$CPP"; then 3766 if test "${ac_cv_prog_CPP+set}" = set; then 3767 echo $ECHO_N "(cached) $ECHO_C" >&6 3768else 3769 # Double quotes because CPP needs to be expanded 3770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3771 do 3772 ac_preproc_ok=false 3773for ac_c_preproc_warn_flag in '' yes 3774do 3775 # Use a header file that comes with gcc, so configuring glibc 3776 # with a fresh cross-compiler works. 3777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3778 # <limits.h> exists even on freestanding compilers. 3779 # On the NeXT, cc -E runs the code through the compiler's parser, 3780 # not just through cpp. "Syntax error" is here to catch this case. 3781 cat >conftest.$ac_ext <<_ACEOF 3782/* confdefs.h. */ 3783_ACEOF 3784cat confdefs.h >>conftest.$ac_ext 3785cat >>conftest.$ac_ext <<_ACEOF 3786/* end confdefs.h. */ 3787#ifdef __STDC__ 3788# include <limits.h> 3789#else 3790# include <assert.h> 3791#endif 3792 Syntax error 3793_ACEOF 3794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3796 ac_status=$? 3797 grep -v '^ *+' conftest.er1 >conftest.err 3798 rm -f conftest.er1 3799 cat conftest.err >&5 3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3801 (exit $ac_status); } >/dev/null; then 3802 if test -s conftest.err; then 3803 ac_cpp_err=$ac_c_preproc_warn_flag 3804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3805 else 3806 ac_cpp_err= 3807 fi 3808else 3809 ac_cpp_err=yes 3810fi 3811if test -z "$ac_cpp_err"; then 3812 : 3813else 3814 echo "$as_me: failed program was:" >&5 3815sed 's/^/| /' conftest.$ac_ext >&5 3816 3817 # Broken: fails on valid input. 3818continue 3819fi 3820rm -f conftest.err conftest.$ac_ext 3821 3822 # OK, works on sane cases. Now check whether non-existent headers 3823 # can be detected and how. 3824 cat >conftest.$ac_ext <<_ACEOF 3825/* confdefs.h. */ 3826_ACEOF 3827cat confdefs.h >>conftest.$ac_ext 3828cat >>conftest.$ac_ext <<_ACEOF 3829/* end confdefs.h. */ 3830#include <ac_nonexistent.h> 3831_ACEOF 3832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3834 ac_status=$? 3835 grep -v '^ *+' conftest.er1 >conftest.err 3836 rm -f conftest.er1 3837 cat conftest.err >&5 3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3839 (exit $ac_status); } >/dev/null; then 3840 if test -s conftest.err; then 3841 ac_cpp_err=$ac_c_preproc_warn_flag 3842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3843 else 3844 ac_cpp_err= 3845 fi 3846else 3847 ac_cpp_err=yes 3848fi 3849if test -z "$ac_cpp_err"; then 3850 # Broken: success on invalid input. 3851continue 3852else 3853 echo "$as_me: failed program was:" >&5 3854sed 's/^/| /' conftest.$ac_ext >&5 3855 3856 # Passes both tests. 3857ac_preproc_ok=: 3858break 3859fi 3860rm -f conftest.err conftest.$ac_ext 3861 3862done 3863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3864rm -f conftest.err conftest.$ac_ext 3865if $ac_preproc_ok; then 3866 break 3867fi 3868 3869 done 3870 ac_cv_prog_CPP=$CPP 3871 3872fi 3873 CPP=$ac_cv_prog_CPP 3874else 3875 ac_cv_prog_CPP=$CPP 3876fi 3877echo "$as_me:$LINENO: result: $CPP" >&5 3878echo "${ECHO_T}$CPP" >&6 3879ac_preproc_ok=false 3880for ac_c_preproc_warn_flag in '' yes 3881do 3882 # Use a header file that comes with gcc, so configuring glibc 3883 # with a fresh cross-compiler works. 3884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3885 # <limits.h> exists even on freestanding compilers. 3886 # On the NeXT, cc -E runs the code through the compiler's parser, 3887 # not just through cpp. "Syntax error" is here to catch this case. 3888 cat >conftest.$ac_ext <<_ACEOF 3889/* confdefs.h. */ 3890_ACEOF 3891cat confdefs.h >>conftest.$ac_ext 3892cat >>conftest.$ac_ext <<_ACEOF 3893/* end confdefs.h. */ 3894#ifdef __STDC__ 3895# include <limits.h> 3896#else 3897# include <assert.h> 3898#endif 3899 Syntax error 3900_ACEOF 3901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3903 ac_status=$? 3904 grep -v '^ *+' conftest.er1 >conftest.err 3905 rm -f conftest.er1 3906 cat conftest.err >&5 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } >/dev/null; then 3909 if test -s conftest.err; then 3910 ac_cpp_err=$ac_c_preproc_warn_flag 3911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3912 else 3913 ac_cpp_err= 3914 fi 3915else 3916 ac_cpp_err=yes 3917fi 3918if test -z "$ac_cpp_err"; then 3919 : 3920else 3921 echo "$as_me: failed program was:" >&5 3922sed 's/^/| /' conftest.$ac_ext >&5 3923 3924 # Broken: fails on valid input. 3925continue 3926fi 3927rm -f conftest.err conftest.$ac_ext 3928 3929 # OK, works on sane cases. Now check whether non-existent headers 3930 # can be detected and how. 3931 cat >conftest.$ac_ext <<_ACEOF 3932/* confdefs.h. */ 3933_ACEOF 3934cat confdefs.h >>conftest.$ac_ext 3935cat >>conftest.$ac_ext <<_ACEOF 3936/* end confdefs.h. */ 3937#include <ac_nonexistent.h> 3938_ACEOF 3939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3941 ac_status=$? 3942 grep -v '^ *+' conftest.er1 >conftest.err 3943 rm -f conftest.er1 3944 cat conftest.err >&5 3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3946 (exit $ac_status); } >/dev/null; then 3947 if test -s conftest.err; then 3948 ac_cpp_err=$ac_c_preproc_warn_flag 3949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3950 else 3951 ac_cpp_err= 3952 fi 3953else 3954 ac_cpp_err=yes 3955fi 3956if test -z "$ac_cpp_err"; then 3957 # Broken: success on invalid input. 3958continue 3959else 3960 echo "$as_me: failed program was:" >&5 3961sed 's/^/| /' conftest.$ac_ext >&5 3962 3963 # Passes both tests. 3964ac_preproc_ok=: 3965break 3966fi 3967rm -f conftest.err conftest.$ac_ext 3968 3969done 3970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3971rm -f conftest.err conftest.$ac_ext 3972if $ac_preproc_ok; then 3973 : 3974else 3975 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3976See \`config.log' for more details." >&5 3977echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3978See \`config.log' for more details." >&2;} 3979 { (exit 1); exit 1; }; } 3980fi 3981 3982ac_ext=c 3983ac_cpp='$CPP $CPPFLAGS' 3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3986ac_compiler_gnu=$ac_cv_c_compiler_gnu 3987 3988 3989echo "$as_me:$LINENO: checking for egrep" >&5 3990echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3991if test "${ac_cv_prog_egrep+set}" = set; then 3992 echo $ECHO_N "(cached) $ECHO_C" >&6 3993else 3994 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3995 then ac_cv_prog_egrep='grep -E' 3996 else ac_cv_prog_egrep='egrep' 3997 fi 3998fi 3999echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4000echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4001 EGREP=$ac_cv_prog_egrep 4002 4003 4004echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4005echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4006if test "${ac_cv_header_stdc+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 cat >conftest.$ac_ext <<_ACEOF 4010/* confdefs.h. */ 4011_ACEOF 4012cat confdefs.h >>conftest.$ac_ext 4013cat >>conftest.$ac_ext <<_ACEOF 4014/* end confdefs.h. */ 4015#include <stdlib.h> 4016#include <stdarg.h> 4017#include <string.h> 4018#include <float.h> 4019 4020int 4021main () 4022{ 4023 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028rm -f conftest.$ac_objext 4029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4030 (eval $ac_compile) 2>conftest.er1 4031 ac_status=$? 4032 grep -v '^ *+' conftest.er1 >conftest.err 4033 rm -f conftest.er1 4034 cat conftest.err >&5 4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4036 (exit $ac_status); } && 4037 { ac_try='test -z "$ac_c_werror_flag" 4038 || test ! -s conftest.err' 4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4040 (eval $ac_try) 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); }; } && 4044 { ac_try='test -s conftest.$ac_objext' 4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4046 (eval $ac_try) 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); }; }; then 4050 ac_cv_header_stdc=yes 4051else 4052 echo "$as_me: failed program was:" >&5 4053sed 's/^/| /' conftest.$ac_ext >&5 4054 4055ac_cv_header_stdc=no 4056fi 4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4058 4059if test $ac_cv_header_stdc = yes; then 4060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4061 cat >conftest.$ac_ext <<_ACEOF 4062/* confdefs.h. */ 4063_ACEOF 4064cat confdefs.h >>conftest.$ac_ext 4065cat >>conftest.$ac_ext <<_ACEOF 4066/* end confdefs.h. */ 4067#include <string.h> 4068 4069_ACEOF 4070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4071 $EGREP "memchr" >/dev/null 2>&1; then 4072 : 4073else 4074 ac_cv_header_stdc=no 4075fi 4076rm -f conftest* 4077 4078fi 4079 4080if test $ac_cv_header_stdc = yes; then 4081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4082 cat >conftest.$ac_ext <<_ACEOF 4083/* confdefs.h. */ 4084_ACEOF 4085cat confdefs.h >>conftest.$ac_ext 4086cat >>conftest.$ac_ext <<_ACEOF 4087/* end confdefs.h. */ 4088#include <stdlib.h> 4089 4090_ACEOF 4091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4092 $EGREP "free" >/dev/null 2>&1; then 4093 : 4094else 4095 ac_cv_header_stdc=no 4096fi 4097rm -f conftest* 4098 4099fi 4100 4101if test $ac_cv_header_stdc = yes; then 4102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4103 if test "$cross_compiling" = yes; then 4104 : 4105else 4106 cat >conftest.$ac_ext <<_ACEOF 4107/* confdefs.h. */ 4108_ACEOF 4109cat confdefs.h >>conftest.$ac_ext 4110cat >>conftest.$ac_ext <<_ACEOF 4111/* end confdefs.h. */ 4112#include <ctype.h> 4113#if ((' ' & 0x0FF) == 0x020) 4114# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4115# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4116#else 4117# define ISLOWER(c) \ 4118 (('a' <= (c) && (c) <= 'i') \ 4119 || ('j' <= (c) && (c) <= 'r') \ 4120 || ('s' <= (c) && (c) <= 'z')) 4121# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4122#endif 4123 4124#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4125int 4126main () 4127{ 4128 int i; 4129 for (i = 0; i < 256; i++) 4130 if (XOR (islower (i), ISLOWER (i)) 4131 || toupper (i) != TOUPPER (i)) 4132 exit(2); 4133 exit (0); 4134} 4135_ACEOF 4136rm -f conftest$ac_exeext 4137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4138 (eval $ac_link) 2>&5 4139 ac_status=$? 4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4143 (eval $ac_try) 2>&5 4144 ac_status=$? 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); }; }; then 4147 : 4148else 4149 echo "$as_me: program exited with status $ac_status" >&5 4150echo "$as_me: failed program was:" >&5 4151sed 's/^/| /' conftest.$ac_ext >&5 4152 4153( exit $ac_status ) 4154ac_cv_header_stdc=no 4155fi 4156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4157fi 4158fi 4159fi 4160echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4161echo "${ECHO_T}$ac_cv_header_stdc" >&6 4162if test $ac_cv_header_stdc = yes; then 4163 4164cat >>confdefs.h <<\_ACEOF 4165#define STDC_HEADERS 1 4166_ACEOF 4167 4168fi 4169 4170# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4181 inttypes.h stdint.h unistd.h 4182do 4183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4184echo "$as_me:$LINENO: checking for $ac_header" >&5 4185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4186if eval "test \"\${$as_ac_Header+set}\" = set"; then 4187 echo $ECHO_N "(cached) $ECHO_C" >&6 4188else 4189 cat >conftest.$ac_ext <<_ACEOF 4190/* confdefs.h. */ 4191_ACEOF 4192cat confdefs.h >>conftest.$ac_ext 4193cat >>conftest.$ac_ext <<_ACEOF 4194/* end confdefs.h. */ 4195$ac_includes_default 4196 4197#include <$ac_header> 4198_ACEOF 4199rm -f conftest.$ac_objext 4200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4201 (eval $ac_compile) 2>conftest.er1 4202 ac_status=$? 4203 grep -v '^ *+' conftest.er1 >conftest.err 4204 rm -f conftest.er1 4205 cat conftest.err >&5 4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4207 (exit $ac_status); } && 4208 { ac_try='test -z "$ac_c_werror_flag" 4209 || test ! -s conftest.err' 4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4211 (eval $ac_try) 2>&5 4212 ac_status=$? 4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4214 (exit $ac_status); }; } && 4215 { ac_try='test -s conftest.$ac_objext' 4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4217 (eval $ac_try) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); }; }; then 4221 eval "$as_ac_Header=yes" 4222else 4223 echo "$as_me: failed program was:" >&5 4224sed 's/^/| /' conftest.$ac_ext >&5 4225 4226eval "$as_ac_Header=no" 4227fi 4228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4229fi 4230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4232if test `eval echo '${'$as_ac_Header'}'` = yes; then 4233 cat >>confdefs.h <<_ACEOF 4234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4235_ACEOF 4236 4237fi 4238 4239done 4240 4241 4242 4243 4244 4245 4246 4247for ac_header in sys/resource.h netdb.h sched.h resolv.h arpa/inet.h 4248do 4249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4250if eval "test \"\${$as_ac_Header+set}\" = set"; then 4251 echo "$as_me:$LINENO: checking for $ac_header" >&5 4252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4253if eval "test \"\${$as_ac_Header+set}\" = set"; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255fi 4256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4258else 4259 # Is the header compilable? 4260echo "$as_me:$LINENO: checking $ac_header usability" >&5 4261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4262cat >conftest.$ac_ext <<_ACEOF 4263/* confdefs.h. */ 4264_ACEOF 4265cat confdefs.h >>conftest.$ac_ext 4266cat >>conftest.$ac_ext <<_ACEOF 4267/* end confdefs.h. */ 4268$ac_includes_default 4269#include <$ac_header> 4270_ACEOF 4271rm -f conftest.$ac_objext 4272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4273 (eval $ac_compile) 2>conftest.er1 4274 ac_status=$? 4275 grep -v '^ *+' conftest.er1 >conftest.err 4276 rm -f conftest.er1 4277 cat conftest.err >&5 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); } && 4280 { ac_try='test -z "$ac_c_werror_flag" 4281 || test ! -s conftest.err' 4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4283 (eval $ac_try) 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); }; } && 4287 { ac_try='test -s conftest.$ac_objext' 4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4289 (eval $ac_try) 2>&5 4290 ac_status=$? 4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4292 (exit $ac_status); }; }; then 4293 ac_header_compiler=yes 4294else 4295 echo "$as_me: failed program was:" >&5 4296sed 's/^/| /' conftest.$ac_ext >&5 4297 4298ac_header_compiler=no 4299fi 4300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4302echo "${ECHO_T}$ac_header_compiler" >&6 4303 4304# Is the header present? 4305echo "$as_me:$LINENO: checking $ac_header presence" >&5 4306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4307cat >conftest.$ac_ext <<_ACEOF 4308/* confdefs.h. */ 4309_ACEOF 4310cat confdefs.h >>conftest.$ac_ext 4311cat >>conftest.$ac_ext <<_ACEOF 4312/* end confdefs.h. */ 4313#include <$ac_header> 4314_ACEOF 4315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4317 ac_status=$? 4318 grep -v '^ *+' conftest.er1 >conftest.err 4319 rm -f conftest.er1 4320 cat conftest.err >&5 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); } >/dev/null; then 4323 if test -s conftest.err; then 4324 ac_cpp_err=$ac_c_preproc_warn_flag 4325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4326 else 4327 ac_cpp_err= 4328 fi 4329else 4330 ac_cpp_err=yes 4331fi 4332if test -z "$ac_cpp_err"; then 4333 ac_header_preproc=yes 4334else 4335 echo "$as_me: failed program was:" >&5 4336sed 's/^/| /' conftest.$ac_ext >&5 4337 4338 ac_header_preproc=no 4339fi 4340rm -f conftest.err conftest.$ac_ext 4341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4342echo "${ECHO_T}$ac_header_preproc" >&6 4343 4344# So? What about this header? 4345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4346 yes:no: ) 4347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4351 ac_header_preproc=yes 4352 ;; 4353 no:yes:* ) 4354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4366 ( 4367 cat <<\_ASBOX 4368## ------------------------------------------ ## 4369## Report this to the AC_PACKAGE_NAME lists. ## 4370## ------------------------------------------ ## 4371_ASBOX 4372 ) | 4373 sed "s/^/$as_me: WARNING: /" >&2 4374 ;; 4375esac 4376echo "$as_me:$LINENO: checking for $ac_header" >&5 4377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4378if eval "test \"\${$as_ac_Header+set}\" = set"; then 4379 echo $ECHO_N "(cached) $ECHO_C" >&6 4380else 4381 eval "$as_ac_Header=\$ac_header_preproc" 4382fi 4383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4385 4386fi 4387if test `eval echo '${'$as_ac_Header'}'` = yes; then 4388 cat >>confdefs.h <<_ACEOF 4389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4390_ACEOF 4391 4392fi 4393 4394done 4395 4396 4397 4398 4399 4400for ac_header in netinet/ip.h netinet/in.h netinet/tcp.h netinet/in_systm.h 4401do 4402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4403if eval "test \"\${$as_ac_Header+set}\" = set"; then 4404 echo "$as_me:$LINENO: checking for $ac_header" >&5 4405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4406if eval "test \"\${$as_ac_Header+set}\" = set"; then 4407 echo $ECHO_N "(cached) $ECHO_C" >&6 4408fi 4409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4411else 4412 # Is the header compilable? 4413echo "$as_me:$LINENO: checking $ac_header usability" >&5 4414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4415cat >conftest.$ac_ext <<_ACEOF 4416/* confdefs.h. */ 4417_ACEOF 4418cat confdefs.h >>conftest.$ac_ext 4419cat >>conftest.$ac_ext <<_ACEOF 4420/* end confdefs.h. */ 4421$ac_includes_default 4422#include <$ac_header> 4423_ACEOF 4424rm -f conftest.$ac_objext 4425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4426 (eval $ac_compile) 2>conftest.er1 4427 ac_status=$? 4428 grep -v '^ *+' conftest.er1 >conftest.err 4429 rm -f conftest.er1 4430 cat conftest.err >&5 4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4432 (exit $ac_status); } && 4433 { ac_try='test -z "$ac_c_werror_flag" 4434 || test ! -s conftest.err' 4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4436 (eval $ac_try) 2>&5 4437 ac_status=$? 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); }; } && 4440 { ac_try='test -s conftest.$ac_objext' 4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4442 (eval $ac_try) 2>&5 4443 ac_status=$? 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); }; }; then 4446 ac_header_compiler=yes 4447else 4448 echo "$as_me: failed program was:" >&5 4449sed 's/^/| /' conftest.$ac_ext >&5 4450 4451ac_header_compiler=no 4452fi 4453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4455echo "${ECHO_T}$ac_header_compiler" >&6 4456 4457# Is the header present? 4458echo "$as_me:$LINENO: checking $ac_header presence" >&5 4459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4460cat >conftest.$ac_ext <<_ACEOF 4461/* confdefs.h. */ 4462_ACEOF 4463cat confdefs.h >>conftest.$ac_ext 4464cat >>conftest.$ac_ext <<_ACEOF 4465/* end confdefs.h. */ 4466#include <$ac_header> 4467_ACEOF 4468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4470 ac_status=$? 4471 grep -v '^ *+' conftest.er1 >conftest.err 4472 rm -f conftest.er1 4473 cat conftest.err >&5 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } >/dev/null; then 4476 if test -s conftest.err; then 4477 ac_cpp_err=$ac_c_preproc_warn_flag 4478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4479 else 4480 ac_cpp_err= 4481 fi 4482else 4483 ac_cpp_err=yes 4484fi 4485if test -z "$ac_cpp_err"; then 4486 ac_header_preproc=yes 4487else 4488 echo "$as_me: failed program was:" >&5 4489sed 's/^/| /' conftest.$ac_ext >&5 4490 4491 ac_header_preproc=no 4492fi 4493rm -f conftest.err conftest.$ac_ext 4494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4495echo "${ECHO_T}$ac_header_preproc" >&6 4496 4497# So? What about this header? 4498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4499 yes:no: ) 4500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4504 ac_header_preproc=yes 4505 ;; 4506 no:yes:* ) 4507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4519 ( 4520 cat <<\_ASBOX 4521## ------------------------------------------ ## 4522## Report this to the AC_PACKAGE_NAME lists. ## 4523## ------------------------------------------ ## 4524_ASBOX 4525 ) | 4526 sed "s/^/$as_me: WARNING: /" >&2 4527 ;; 4528esac 4529echo "$as_me:$LINENO: checking for $ac_header" >&5 4530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4531if eval "test \"\${$as_ac_Header+set}\" = set"; then 4532 echo $ECHO_N "(cached) $ECHO_C" >&6 4533else 4534 eval "$as_ac_Header=\$ac_header_preproc" 4535fi 4536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4538 4539fi 4540if test `eval echo '${'$as_ac_Header'}'` = yes; then 4541 cat >>confdefs.h <<_ACEOF 4542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4543_ACEOF 4544 4545fi 4546 4547done 4548 4549 4550 4551for ac_header in libutil.h sys/sockio.h 4552do 4553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4554if eval "test \"\${$as_ac_Header+set}\" = set"; then 4555 echo "$as_me:$LINENO: checking for $ac_header" >&5 4556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4557if eval "test \"\${$as_ac_Header+set}\" = set"; then 4558 echo $ECHO_N "(cached) $ECHO_C" >&6 4559fi 4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4562else 4563 # Is the header compilable? 4564echo "$as_me:$LINENO: checking $ac_header usability" >&5 4565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4566cat >conftest.$ac_ext <<_ACEOF 4567/* confdefs.h. */ 4568_ACEOF 4569cat confdefs.h >>conftest.$ac_ext 4570cat >>conftest.$ac_ext <<_ACEOF 4571/* end confdefs.h. */ 4572$ac_includes_default 4573#include <$ac_header> 4574_ACEOF 4575rm -f conftest.$ac_objext 4576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4577 (eval $ac_compile) 2>conftest.er1 4578 ac_status=$? 4579 grep -v '^ *+' conftest.er1 >conftest.err 4580 rm -f conftest.er1 4581 cat conftest.err >&5 4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4583 (exit $ac_status); } && 4584 { ac_try='test -z "$ac_c_werror_flag" 4585 || test ! -s conftest.err' 4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4587 (eval $ac_try) 2>&5 4588 ac_status=$? 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); }; } && 4591 { ac_try='test -s conftest.$ac_objext' 4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4593 (eval $ac_try) 2>&5 4594 ac_status=$? 4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4596 (exit $ac_status); }; }; then 4597 ac_header_compiler=yes 4598else 4599 echo "$as_me: failed program was:" >&5 4600sed 's/^/| /' conftest.$ac_ext >&5 4601 4602ac_header_compiler=no 4603fi 4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4606echo "${ECHO_T}$ac_header_compiler" >&6 4607 4608# Is the header present? 4609echo "$as_me:$LINENO: checking $ac_header presence" >&5 4610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4611cat >conftest.$ac_ext <<_ACEOF 4612/* confdefs.h. */ 4613_ACEOF 4614cat confdefs.h >>conftest.$ac_ext 4615cat >>conftest.$ac_ext <<_ACEOF 4616/* end confdefs.h. */ 4617#include <$ac_header> 4618_ACEOF 4619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } >/dev/null; then 4627 if test -s conftest.err; then 4628 ac_cpp_err=$ac_c_preproc_warn_flag 4629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4630 else 4631 ac_cpp_err= 4632 fi 4633else 4634 ac_cpp_err=yes 4635fi 4636if test -z "$ac_cpp_err"; then 4637 ac_header_preproc=yes 4638else 4639 echo "$as_me: failed program was:" >&5 4640sed 's/^/| /' conftest.$ac_ext >&5 4641 4642 ac_header_preproc=no 4643fi 4644rm -f conftest.err conftest.$ac_ext 4645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4646echo "${ECHO_T}$ac_header_preproc" >&6 4647 4648# So? What about this header? 4649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4650 yes:no: ) 4651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4655 ac_header_preproc=yes 4656 ;; 4657 no:yes:* ) 4658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4670 ( 4671 cat <<\_ASBOX 4672## ------------------------------------------ ## 4673## Report this to the AC_PACKAGE_NAME lists. ## 4674## ------------------------------------------ ## 4675_ASBOX 4676 ) | 4677 sed "s/^/$as_me: WARNING: /" >&2 4678 ;; 4679esac 4680echo "$as_me:$LINENO: checking for $ac_header" >&5 4681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4682if eval "test \"\${$as_ac_Header+set}\" = set"; then 4683 echo $ECHO_N "(cached) $ECHO_C" >&6 4684else 4685 eval "$as_ac_Header=\$ac_header_preproc" 4686fi 4687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4689 4690fi 4691if test `eval echo '${'$as_ac_Header'}'` = yes; then 4692 cat >>confdefs.h <<_ACEOF 4693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4694_ACEOF 4695 4696fi 4697 4698done 4699 4700 4701echo "$as_me:$LINENO: checking for library containing socket" >&5 4702echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 4703if test "${ac_cv_search_socket+set}" = set; then 4704 echo $ECHO_N "(cached) $ECHO_C" >&6 4705else 4706 ac_func_search_save_LIBS=$LIBS 4707ac_cv_search_socket=no 4708cat >conftest.$ac_ext <<_ACEOF 4709/* confdefs.h. */ 4710_ACEOF 4711cat confdefs.h >>conftest.$ac_ext 4712cat >>conftest.$ac_ext <<_ACEOF 4713/* end confdefs.h. */ 4714 4715/* Override any gcc2 internal prototype to avoid an error. */ 4716#ifdef __cplusplus 4717extern "C" 4718#endif 4719/* We use char because int might match the return type of a gcc2 4720 builtin and then its argument prototype would still apply. */ 4721char socket (); 4722int 4723main () 4724{ 4725socket (); 4726 ; 4727 return 0; 4728} 4729_ACEOF 4730rm -f conftest.$ac_objext conftest$ac_exeext 4731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4732 (eval $ac_link) 2>conftest.er1 4733 ac_status=$? 4734 grep -v '^ *+' conftest.er1 >conftest.err 4735 rm -f conftest.er1 4736 cat conftest.err >&5 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); } && 4739 { ac_try='test -z "$ac_c_werror_flag" 4740 || test ! -s conftest.err' 4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4742 (eval $ac_try) 2>&5 4743 ac_status=$? 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); }; } && 4746 { ac_try='test -s conftest$ac_exeext' 4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4748 (eval $ac_try) 2>&5 4749 ac_status=$? 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 (exit $ac_status); }; }; then 4752 ac_cv_search_socket="none required" 4753else 4754 echo "$as_me: failed program was:" >&5 4755sed 's/^/| /' conftest.$ac_ext >&5 4756 4757fi 4758rm -f conftest.err conftest.$ac_objext \ 4759 conftest$ac_exeext conftest.$ac_ext 4760if test "$ac_cv_search_socket" = no; then 4761 for ac_lib in socket; do 4762 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4763 cat >conftest.$ac_ext <<_ACEOF 4764/* confdefs.h. */ 4765_ACEOF 4766cat confdefs.h >>conftest.$ac_ext 4767cat >>conftest.$ac_ext <<_ACEOF 4768/* end confdefs.h. */ 4769 4770/* Override any gcc2 internal prototype to avoid an error. */ 4771#ifdef __cplusplus 4772extern "C" 4773#endif 4774/* We use char because int might match the return type of a gcc2 4775 builtin and then its argument prototype would still apply. */ 4776char socket (); 4777int 4778main () 4779{ 4780socket (); 4781 ; 4782 return 0; 4783} 4784_ACEOF 4785rm -f conftest.$ac_objext conftest$ac_exeext 4786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4787 (eval $ac_link) 2>conftest.er1 4788 ac_status=$? 4789 grep -v '^ *+' conftest.er1 >conftest.err 4790 rm -f conftest.er1 4791 cat conftest.err >&5 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4793 (exit $ac_status); } && 4794 { ac_try='test -z "$ac_c_werror_flag" 4795 || test ! -s conftest.err' 4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4797 (eval $ac_try) 2>&5 4798 ac_status=$? 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); }; } && 4801 { ac_try='test -s conftest$ac_exeext' 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4803 (eval $ac_try) 2>&5 4804 ac_status=$? 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); }; }; then 4807 ac_cv_search_socket="-l$ac_lib" 4808break 4809else 4810 echo "$as_me: failed program was:" >&5 4811sed 's/^/| /' conftest.$ac_ext >&5 4812 4813fi 4814rm -f conftest.err conftest.$ac_objext \ 4815 conftest$ac_exeext conftest.$ac_ext 4816 done 4817fi 4818LIBS=$ac_func_search_save_LIBS 4819fi 4820echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 4821echo "${ECHO_T}$ac_cv_search_socket" >&6 4822if test "$ac_cv_search_socket" != no; then 4823 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 4824 4825fi 4826 4827 4828echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 4829echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6 4830if test "${ac_cv_search_inet_ntoa+set}" = set; then 4831 echo $ECHO_N "(cached) $ECHO_C" >&6 4832else 4833 ac_func_search_save_LIBS=$LIBS 4834ac_cv_search_inet_ntoa=no 4835cat >conftest.$ac_ext <<_ACEOF 4836/* confdefs.h. */ 4837_ACEOF 4838cat confdefs.h >>conftest.$ac_ext 4839cat >>conftest.$ac_ext <<_ACEOF 4840/* end confdefs.h. */ 4841 4842/* Override any gcc2 internal prototype to avoid an error. */ 4843#ifdef __cplusplus 4844extern "C" 4845#endif 4846/* We use char because int might match the return type of a gcc2 4847 builtin and then its argument prototype would still apply. */ 4848char inet_ntoa (); 4849int 4850main () 4851{ 4852inet_ntoa (); 4853 ; 4854 return 0; 4855} 4856_ACEOF 4857rm -f conftest.$ac_objext conftest$ac_exeext 4858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4859 (eval $ac_link) 2>conftest.er1 4860 ac_status=$? 4861 grep -v '^ *+' conftest.er1 >conftest.err 4862 rm -f conftest.er1 4863 cat conftest.err >&5 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); } && 4866 { ac_try='test -z "$ac_c_werror_flag" 4867 || test ! -s conftest.err' 4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4869 (eval $ac_try) 2>&5 4870 ac_status=$? 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); }; } && 4873 { ac_try='test -s conftest$ac_exeext' 4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4875 (eval $ac_try) 2>&5 4876 ac_status=$? 4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4878 (exit $ac_status); }; }; then 4879 ac_cv_search_inet_ntoa="none required" 4880else 4881 echo "$as_me: failed program was:" >&5 4882sed 's/^/| /' conftest.$ac_ext >&5 4883 4884fi 4885rm -f conftest.err conftest.$ac_objext \ 4886 conftest$ac_exeext conftest.$ac_ext 4887if test "$ac_cv_search_inet_ntoa" = no; then 4888 for ac_lib in nsl; do 4889 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4890 cat >conftest.$ac_ext <<_ACEOF 4891/* confdefs.h. */ 4892_ACEOF 4893cat confdefs.h >>conftest.$ac_ext 4894cat >>conftest.$ac_ext <<_ACEOF 4895/* end confdefs.h. */ 4896 4897/* Override any gcc2 internal prototype to avoid an error. */ 4898#ifdef __cplusplus 4899extern "C" 4900#endif 4901/* We use char because int might match the return type of a gcc2 4902 builtin and then its argument prototype would still apply. */ 4903char inet_ntoa (); 4904int 4905main () 4906{ 4907inet_ntoa (); 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912rm -f conftest.$ac_objext conftest$ac_exeext 4913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4914 (eval $ac_link) 2>conftest.er1 4915 ac_status=$? 4916 grep -v '^ *+' conftest.er1 >conftest.err 4917 rm -f conftest.er1 4918 cat conftest.err >&5 4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4920 (exit $ac_status); } && 4921 { ac_try='test -z "$ac_c_werror_flag" 4922 || test ! -s conftest.err' 4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4924 (eval $ac_try) 2>&5 4925 ac_status=$? 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); }; } && 4928 { ac_try='test -s conftest$ac_exeext' 4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4930 (eval $ac_try) 2>&5 4931 ac_status=$? 4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4933 (exit $ac_status); }; }; then 4934 ac_cv_search_inet_ntoa="-l$ac_lib" 4935break 4936else 4937 echo "$as_me: failed program was:" >&5 4938sed 's/^/| /' conftest.$ac_ext >&5 4939 4940fi 4941rm -f conftest.err conftest.$ac_objext \ 4942 conftest$ac_exeext conftest.$ac_ext 4943 done 4944fi 4945LIBS=$ac_func_search_save_LIBS 4946fi 4947echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 4948echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6 4949if test "$ac_cv_search_inet_ntoa" != no; then 4950 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS" 4951 4952fi 4953 4954 4955echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 4956echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 4957if test "${ac_cv_search_gethostbyname+set}" = set; then 4958 echo $ECHO_N "(cached) $ECHO_C" >&6 4959else 4960 ac_func_search_save_LIBS=$LIBS 4961ac_cv_search_gethostbyname=no 4962cat >conftest.$ac_ext <<_ACEOF 4963/* confdefs.h. */ 4964_ACEOF 4965cat confdefs.h >>conftest.$ac_ext 4966cat >>conftest.$ac_ext <<_ACEOF 4967/* end confdefs.h. */ 4968 4969/* Override any gcc2 internal prototype to avoid an error. */ 4970#ifdef __cplusplus 4971extern "C" 4972#endif 4973/* We use char because int might match the return type of a gcc2 4974 builtin and then its argument prototype would still apply. */ 4975char gethostbyname (); 4976int 4977main () 4978{ 4979gethostbyname (); 4980 ; 4981 return 0; 4982} 4983_ACEOF 4984rm -f conftest.$ac_objext conftest$ac_exeext 4985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4986 (eval $ac_link) 2>conftest.er1 4987 ac_status=$? 4988 grep -v '^ *+' conftest.er1 >conftest.err 4989 rm -f conftest.er1 4990 cat conftest.err >&5 4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4992 (exit $ac_status); } && 4993 { ac_try='test -z "$ac_c_werror_flag" 4994 || test ! -s conftest.err' 4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4996 (eval $ac_try) 2>&5 4997 ac_status=$? 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; } && 5000 { ac_try='test -s conftest$ac_exeext' 5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5002 (eval $ac_try) 2>&5 5003 ac_status=$? 5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5005 (exit $ac_status); }; }; then 5006 ac_cv_search_gethostbyname="none required" 5007else 5008 echo "$as_me: failed program was:" >&5 5009sed 's/^/| /' conftest.$ac_ext >&5 5010 5011fi 5012rm -f conftest.err conftest.$ac_objext \ 5013 conftest$ac_exeext conftest.$ac_ext 5014if test "$ac_cv_search_gethostbyname" = no; then 5015 for ac_lib in resolv nsl; do 5016 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5017 cat >conftest.$ac_ext <<_ACEOF 5018/* confdefs.h. */ 5019_ACEOF 5020cat confdefs.h >>conftest.$ac_ext 5021cat >>conftest.$ac_ext <<_ACEOF 5022/* end confdefs.h. */ 5023 5024/* Override any gcc2 internal prototype to avoid an error. */ 5025#ifdef __cplusplus 5026extern "C" 5027#endif 5028/* We use char because int might match the return type of a gcc2 5029 builtin and then its argument prototype would still apply. */ 5030char gethostbyname (); 5031int 5032main () 5033{ 5034gethostbyname (); 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039rm -f conftest.$ac_objext conftest$ac_exeext 5040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5041 (eval $ac_link) 2>conftest.er1 5042 ac_status=$? 5043 grep -v '^ *+' conftest.er1 >conftest.err 5044 rm -f conftest.er1 5045 cat conftest.err >&5 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5047 (exit $ac_status); } && 5048 { ac_try='test -z "$ac_c_werror_flag" 5049 || test ! -s conftest.err' 5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5051 (eval $ac_try) 2>&5 5052 ac_status=$? 5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5054 (exit $ac_status); }; } && 5055 { ac_try='test -s conftest$ac_exeext' 5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5057 (eval $ac_try) 2>&5 5058 ac_status=$? 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); }; }; then 5061 ac_cv_search_gethostbyname="-l$ac_lib" 5062break 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067fi 5068rm -f conftest.err conftest.$ac_objext \ 5069 conftest$ac_exeext conftest.$ac_ext 5070 done 5071fi 5072LIBS=$ac_func_search_save_LIBS 5073fi 5074echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 5075echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 5076if test "$ac_cv_search_gethostbyname" != no; then 5077 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 5078 5079fi 5080 5081 5082echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 5083echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 5084if test "${ac_cv_search_nanosleep+set}" = set; then 5085 echo $ECHO_N "(cached) $ECHO_C" >&6 5086else 5087 ac_func_search_save_LIBS=$LIBS 5088ac_cv_search_nanosleep=no 5089cat >conftest.$ac_ext <<_ACEOF 5090/* confdefs.h. */ 5091_ACEOF 5092cat confdefs.h >>conftest.$ac_ext 5093cat >>conftest.$ac_ext <<_ACEOF 5094/* end confdefs.h. */ 5095 5096/* Override any gcc2 internal prototype to avoid an error. */ 5097#ifdef __cplusplus 5098extern "C" 5099#endif 5100/* We use char because int might match the return type of a gcc2 5101 builtin and then its argument prototype would still apply. */ 5102char nanosleep (); 5103int 5104main () 5105{ 5106nanosleep (); 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111rm -f conftest.$ac_objext conftest$ac_exeext 5112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5113 (eval $ac_link) 2>conftest.er1 5114 ac_status=$? 5115 grep -v '^ *+' conftest.er1 >conftest.err 5116 rm -f conftest.er1 5117 cat conftest.err >&5 5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5119 (exit $ac_status); } && 5120 { ac_try='test -z "$ac_c_werror_flag" 5121 || test ! -s conftest.err' 5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5123 (eval $ac_try) 2>&5 5124 ac_status=$? 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); }; } && 5127 { ac_try='test -s conftest$ac_exeext' 5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5129 (eval $ac_try) 2>&5 5130 ac_status=$? 5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5132 (exit $ac_status); }; }; then 5133 ac_cv_search_nanosleep="none required" 5134else 5135 echo "$as_me: failed program was:" >&5 5136sed 's/^/| /' conftest.$ac_ext >&5 5137 5138fi 5139rm -f conftest.err conftest.$ac_objext \ 5140 conftest$ac_exeext conftest.$ac_ext 5141if test "$ac_cv_search_nanosleep" = no; then 5142 for ac_lib in rt posix4; do 5143 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5144 cat >conftest.$ac_ext <<_ACEOF 5145/* confdefs.h. */ 5146_ACEOF 5147cat confdefs.h >>conftest.$ac_ext 5148cat >>conftest.$ac_ext <<_ACEOF 5149/* end confdefs.h. */ 5150 5151/* Override any gcc2 internal prototype to avoid an error. */ 5152#ifdef __cplusplus 5153extern "C" 5154#endif 5155/* We use char because int might match the return type of a gcc2 5156 builtin and then its argument prototype would still apply. */ 5157char nanosleep (); 5158int 5159main () 5160{ 5161nanosleep (); 5162 ; 5163 return 0; 5164} 5165_ACEOF 5166rm -f conftest.$ac_objext conftest$ac_exeext 5167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5168 (eval $ac_link) 2>conftest.er1 5169 ac_status=$? 5170 grep -v '^ *+' conftest.er1 >conftest.err 5171 rm -f conftest.er1 5172 cat conftest.err >&5 5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5174 (exit $ac_status); } && 5175 { ac_try='test -z "$ac_c_werror_flag" 5176 || test ! -s conftest.err' 5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5178 (eval $ac_try) 2>&5 5179 ac_status=$? 5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5181 (exit $ac_status); }; } && 5182 { ac_try='test -s conftest$ac_exeext' 5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5184 (eval $ac_try) 2>&5 5185 ac_status=$? 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5187 (exit $ac_status); }; }; then 5188 ac_cv_search_nanosleep="-l$ac_lib" 5189break 5190else 5191 echo "$as_me: failed program was:" >&5 5192sed 's/^/| /' conftest.$ac_ext >&5 5193 5194fi 5195rm -f conftest.err conftest.$ac_objext \ 5196 conftest$ac_exeext conftest.$ac_ext 5197 done 5198fi 5199LIBS=$ac_func_search_save_LIBS 5200fi 5201echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 5202echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 5203if test "$ac_cv_search_nanosleep" != no; then 5204 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" 5205 5206fi 5207 5208 5209echo "$as_me:$LINENO: checking for library containing setproctitle" >&5 5210echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6 5211if test "${ac_cv_search_setproctitle+set}" = set; then 5212 echo $ECHO_N "(cached) $ECHO_C" >&6 5213else 5214 ac_func_search_save_LIBS=$LIBS 5215ac_cv_search_setproctitle=no 5216cat >conftest.$ac_ext <<_ACEOF 5217/* confdefs.h. */ 5218_ACEOF 5219cat confdefs.h >>conftest.$ac_ext 5220cat >>conftest.$ac_ext <<_ACEOF 5221/* end confdefs.h. */ 5222 5223/* Override any gcc2 internal prototype to avoid an error. */ 5224#ifdef __cplusplus 5225extern "C" 5226#endif 5227/* We use char because int might match the return type of a gcc2 5228 builtin and then its argument prototype would still apply. */ 5229char setproctitle (); 5230int 5231main () 5232{ 5233setproctitle (); 5234 ; 5235 return 0; 5236} 5237_ACEOF 5238rm -f conftest.$ac_objext conftest$ac_exeext 5239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5240 (eval $ac_link) 2>conftest.er1 5241 ac_status=$? 5242 grep -v '^ *+' conftest.er1 >conftest.err 5243 rm -f conftest.er1 5244 cat conftest.err >&5 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } && 5247 { ac_try='test -z "$ac_c_werror_flag" 5248 || test ! -s conftest.err' 5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5250 (eval $ac_try) 2>&5 5251 ac_status=$? 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); }; } && 5254 { ac_try='test -s conftest$ac_exeext' 5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5256 (eval $ac_try) 2>&5 5257 ac_status=$? 5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 (exit $ac_status); }; }; then 5260 ac_cv_search_setproctitle="none required" 5261else 5262 echo "$as_me: failed program was:" >&5 5263sed 's/^/| /' conftest.$ac_ext >&5 5264 5265fi 5266rm -f conftest.err conftest.$ac_objext \ 5267 conftest$ac_exeext conftest.$ac_ext 5268if test "$ac_cv_search_setproctitle" = no; then 5269 for ac_lib in util bsd; do 5270 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5271 cat >conftest.$ac_ext <<_ACEOF 5272/* confdefs.h. */ 5273_ACEOF 5274cat confdefs.h >>conftest.$ac_ext 5275cat >>conftest.$ac_ext <<_ACEOF 5276/* end confdefs.h. */ 5277 5278/* Override any gcc2 internal prototype to avoid an error. */ 5279#ifdef __cplusplus 5280extern "C" 5281#endif 5282/* We use char because int might match the return type of a gcc2 5283 builtin and then its argument prototype would still apply. */ 5284char setproctitle (); 5285int 5286main () 5287{ 5288setproctitle (); 5289 ; 5290 return 0; 5291} 5292_ACEOF 5293rm -f conftest.$ac_objext conftest$ac_exeext 5294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5295 (eval $ac_link) 2>conftest.er1 5296 ac_status=$? 5297 grep -v '^ *+' conftest.er1 >conftest.err 5298 rm -f conftest.er1 5299 cat conftest.err >&5 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); } && 5302 { ac_try='test -z "$ac_c_werror_flag" 5303 || test ! -s conftest.err' 5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5305 (eval $ac_try) 2>&5 5306 ac_status=$? 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); }; } && 5309 { ac_try='test -s conftest$ac_exeext' 5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5311 (eval $ac_try) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); }; }; then 5315 ac_cv_search_setproctitle="-l$ac_lib" 5316break 5317else 5318 echo "$as_me: failed program was:" >&5 5319sed 's/^/| /' conftest.$ac_ext >&5 5320 5321fi 5322rm -f conftest.err conftest.$ac_objext \ 5323 conftest$ac_exeext conftest.$ac_ext 5324 done 5325fi 5326LIBS=$ac_func_search_save_LIBS 5327fi 5328echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5 5329echo "${ECHO_T}$ac_cv_search_setproctitle" >&6 5330if test "$ac_cv_search_setproctitle" != no; then 5331 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS" 5332 cat >>confdefs.h <<\_ACEOF 5333#define HAVE_SETPROC_TITLE 1 5334_ACEOF 5335 5336fi 5337 5338 5339if test "$SHAPER" = "yes"; then 5340 cat >>confdefs.h <<\_ACEOF 5341#define HAVE_SHAPER 1 5342_ACEOF 5343 5344fi 5345 5346if test "$ZLIB" = "yes"; then 5347 echo "$as_me:$LINENO: result: " >&5 5348echo "${ECHO_T}" >&6 5349 { echo "$as_me:$LINENO: checking for ZLIB Library and Header files ... ..." >&5 5350echo "$as_me: checking for ZLIB Library and Header files ... ..." >&6;} 5351 echo "$as_me:$LINENO: checking for deflate in -lz" >&5 5352echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 5353if test "${ac_cv_lib_z_deflate+set}" = set; then 5354 echo $ECHO_N "(cached) $ECHO_C" >&6 5355else 5356 ac_check_lib_save_LIBS=$LIBS 5357LIBS="-lz $LIBS" 5358cat >conftest.$ac_ext <<_ACEOF 5359/* confdefs.h. */ 5360_ACEOF 5361cat confdefs.h >>conftest.$ac_ext 5362cat >>conftest.$ac_ext <<_ACEOF 5363/* end confdefs.h. */ 5364 5365/* Override any gcc2 internal prototype to avoid an error. */ 5366#ifdef __cplusplus 5367extern "C" 5368#endif 5369/* We use char because int might match the return type of a gcc2 5370 builtin and then its argument prototype would still apply. */ 5371char deflate (); 5372int 5373main () 5374{ 5375deflate (); 5376 ; 5377 return 0; 5378} 5379_ACEOF 5380rm -f conftest.$ac_objext conftest$ac_exeext 5381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5382 (eval $ac_link) 2>conftest.er1 5383 ac_status=$? 5384 grep -v '^ *+' conftest.er1 >conftest.err 5385 rm -f conftest.er1 5386 cat conftest.err >&5 5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5388 (exit $ac_status); } && 5389 { ac_try='test -z "$ac_c_werror_flag" 5390 || test ! -s conftest.err' 5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5392 (eval $ac_try) 2>&5 5393 ac_status=$? 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); }; } && 5396 { ac_try='test -s conftest$ac_exeext' 5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5398 (eval $ac_try) 2>&5 5399 ac_status=$? 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); }; }; then 5402 ac_cv_lib_z_deflate=yes 5403else 5404 echo "$as_me: failed program was:" >&5 5405sed 's/^/| /' conftest.$ac_ext >&5 5406 5407ac_cv_lib_z_deflate=no 5408fi 5409rm -f conftest.err conftest.$ac_objext \ 5410 conftest$ac_exeext conftest.$ac_ext 5411LIBS=$ac_check_lib_save_LIBS 5412fi 5413echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 5414echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 5415if test $ac_cv_lib_z_deflate = yes; then 5416 LIBS="$LIBS -lz" 5417 cat >>confdefs.h <<\_ACEOF 5418#define HAVE_ZLIB 1 5419_ACEOF 5420 5421else 5422 { { echo "$as_me:$LINENO: error: Zlib library not found." >&5 5423echo "$as_me: error: Zlib library not found." >&2;} 5424 { (exit 1); exit 1; }; } 5425 5426fi 5427 5428fi 5429 5430if test "$LZO" = "yes"; then 5431 LZOCHK="" 5432 echo "$as_me:$LINENO: result: " >&5 5433echo "${ECHO_T}" >&6 5434 { echo "$as_me:$LINENO: checking for LZO Library and Header files ... ..." >&5 5435echo "$as_me: checking for LZO Library and Header files ... ..." >&6;} 5436 5437 echo "$as_me:$LINENO: checking \"for lzo_asm.h\"" >&5 5438echo $ECHO_N "checking \"for lzo_asm.h\"... $ECHO_C" >&6 5439 ac_hdr_found=no 5440 for p in $LZO_HDR_DIR /usr/include/lzo "" /usr/local/include; do 5441 if test -n "$p"; then 5442 dir="$p" 5443 else 5444 dir="/usr/include" 5445 fi 5446 5447 ac_file_found=yes 5448 for f in lzo_asm.h; do 5449 if test ! -f $dir/$f; then 5450 ac_file_found=no 5451 break; 5452 fi 5453 done 5454 5455 if test "$ac_file_found" = "yes" ; then 5456 5457 ac_hdr_found=yes 5458 break 5459 5460 5461 else 5462 : 5463 fi 5464 5465 done 5466 if test "$ac_hdr_found" = "yes" ; then 5467 if test -n "$p"; then 5468 CPPFLAGS="$CPPFLAGS -I$p" 5469 fi 5470 echo "$as_me:$LINENO: result: ($dir) yes " >&5 5471echo "${ECHO_T}($dir) yes " >&6 5472 LZOCHK="lzo2 lzo" 5473 else 5474 echo "$as_me:$LINENO: result: \"no\"" >&5 5475echo "${ECHO_T}\"no\"" >&6 5476 5477 echo "$as_me:$LINENO: checking \"for lzo1x.h\"" >&5 5478echo $ECHO_N "checking \"for lzo1x.h\"... $ECHO_C" >&6 5479 ac_hdr_found=no 5480 for p in $LZO_HDR_DIR /usr/include/lzo "" /usr/local/include; do 5481 if test -n "$p"; then 5482 dir="$p" 5483 else 5484 dir="/usr/include" 5485 fi 5486 5487 ac_file_found=yes 5488 for f in lzo1x.h; do 5489 if test ! -f $dir/$f; then 5490 ac_file_found=no 5491 break; 5492 fi 5493 done 5494 5495 if test "$ac_file_found" = "yes" ; then 5496 5497 ac_hdr_found=yes 5498 break 5499 5500 5501 else 5502 : 5503 fi 5504 5505 done 5506 if test "$ac_hdr_found" = "yes" ; then 5507 if test -n "$p"; then 5508 CPPFLAGS="$CPPFLAGS -I$p" 5509 fi 5510 echo "$as_me:$LINENO: result: ($dir) yes " >&5 5511echo "${ECHO_T}($dir) yes " >&6 5512 LZOCHK="lzo" 5513 else 5514 echo "$as_me:$LINENO: result: \"no\"" >&5 5515echo "${ECHO_T}\"no\"" >&6 5516 { { echo "$as_me:$LINENO: error: LZO library not found. " >&5 5517echo "$as_me: error: LZO library not found. " >&2;} 5518 { (exit 1); exit 1; }; } 5519 5520 fi 5521 5522 5523 fi 5524 5525 5526 if test -n "$LZOCHK"; then 5527 havelzo=0; 5528 for I in $LZOCHK ; do 5529 if test $havelzo = 0; then 5530 as_ac_Lib=`echo "ac_cv_lib_$I''_lzo1x_decompress" | $as_tr_sh` 5531echo "$as_me:$LINENO: checking for lzo1x_decompress in -l$I" >&5 5532echo $ECHO_N "checking for lzo1x_decompress in -l$I... $ECHO_C" >&6 5533if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5534 echo $ECHO_N "(cached) $ECHO_C" >&6 5535else 5536 ac_check_lib_save_LIBS=$LIBS 5537LIBS="-l$I $LIBS" 5538cat >conftest.$ac_ext <<_ACEOF 5539/* confdefs.h. */ 5540_ACEOF 5541cat confdefs.h >>conftest.$ac_ext 5542cat >>conftest.$ac_ext <<_ACEOF 5543/* end confdefs.h. */ 5544 5545/* Override any gcc2 internal prototype to avoid an error. */ 5546#ifdef __cplusplus 5547extern "C" 5548#endif 5549/* We use char because int might match the return type of a gcc2 5550 builtin and then its argument prototype would still apply. */ 5551char lzo1x_decompress (); 5552int 5553main () 5554{ 5555lzo1x_decompress (); 5556 ; 5557 return 0; 5558} 5559_ACEOF 5560rm -f conftest.$ac_objext conftest$ac_exeext 5561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5562 (eval $ac_link) 2>conftest.er1 5563 ac_status=$? 5564 grep -v '^ *+' conftest.er1 >conftest.err 5565 rm -f conftest.er1 5566 cat conftest.err >&5 5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); } && 5569 { ac_try='test -z "$ac_c_werror_flag" 5570 || test ! -s conftest.err' 5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5572 (eval $ac_try) 2>&5 5573 ac_status=$? 5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5575 (exit $ac_status); }; } && 5576 { ac_try='test -s conftest$ac_exeext' 5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5578 (eval $ac_try) 2>&5 5579 ac_status=$? 5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5581 (exit $ac_status); }; }; then 5582 eval "$as_ac_Lib=yes" 5583else 5584 echo "$as_me: failed program was:" >&5 5585sed 's/^/| /' conftest.$ac_ext >&5 5586 5587eval "$as_ac_Lib=no" 5588fi 5589rm -f conftest.err conftest.$ac_objext \ 5590 conftest$ac_exeext conftest.$ac_ext 5591LIBS=$ac_check_lib_save_LIBS 5592fi 5593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5594echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5595if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5596 5597 LIBS="$LIBS -l"$I 5598 cat >>confdefs.h <<\_ACEOF 5599#define HAVE_LZO 1 5600_ACEOF 5601 5602 havelzo=1 5603 5604 5605fi 5606 5607 fi 5608 done 5609 if test $havelzo = 0; then 5610 { { echo "$as_me:$LINENO: error: LZO library not found. " >&5 5611echo "$as_me: error: LZO library not found. " >&2;} 5612 { (exit 1); exit 1; }; } 5613 fi 5614 else 5615 { { echo "$as_me:$LINENO: error: LZO headers not found. " >&5 5616echo "$as_me: error: LZO headers not found. " >&2;} 5617 { (exit 1); exit 1; }; } 5618 fi 5619fi 5620 5621if test "$SSL" = "yes"; then 5622 echo "$as_me:$LINENO: result: " >&5 5623echo "${ECHO_T}" >&6 5624 { echo "$as_me:$LINENO: checking for md5 Library and Header files ... ..." >&5 5625echo "$as_me: checking for md5 Library and Header files ... ..." >&6;} 5626 5627 echo "$as_me:$LINENO: checking \"for md5.h\"" >&5 5628echo $ECHO_N "checking \"for md5.h\"... $ECHO_C" >&6 5629 ac_hdr_found=no 5630 for p in $SSL_HDR_DIR $SSL_HDR_DIR/openssl /usr/include/openssl "" /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include /usr/include/sys; do 5631 if test -n "$p"; then 5632 dir="$p" 5633 else 5634 dir="/usr/include" 5635 fi 5636 5637 ac_file_found=yes 5638 for f in md5.h; do 5639 if test ! -f $dir/$f; then 5640 ac_file_found=no 5641 break; 5642 fi 5643 done 5644 5645 if test "$ac_file_found" = "yes" ; then 5646 5647 ac_hdr_found=yes 5648 break 5649 5650 5651 else 5652 : 5653 fi 5654 5655 done 5656 if test "$ac_hdr_found" = "yes" ; then 5657 if test -n "$p"; then 5658 CPPFLAGS="$CPPFLAGS -I$p" 5659 fi 5660 echo "$as_me:$LINENO: result: ($dir) yes " >&5 5661echo "${ECHO_T}($dir) yes " >&6 5662 : 5663 else 5664 echo "$as_me:$LINENO: result: \"no\"" >&5 5665echo "${ECHO_T}\"no\"" >&6 5666 { { echo "$as_me:$LINENO: error: SSL headers not found. " >&5 5667echo "$as_me: error: SSL headers not found. " >&2;} 5668 { (exit 1); exit 1; }; } 5669 5670 fi 5671 5672fi 5673 5674if test "$SSL" = "yes"; then 5675 echo "$as_me:$LINENO: result: " >&5 5676echo "${ECHO_T}" >&6 5677 { echo "$as_me:$LINENO: checking for blowfish Library and Header files ... ..." >&5 5678echo "$as_me: checking for blowfish Library and Header files ... ..." >&6;} 5679 5680 echo "$as_me:$LINENO: checking \"for blowfish.h\"" >&5 5681echo $ECHO_N "checking \"for blowfish.h\"... $ECHO_C" >&6 5682 ac_hdr_found=no 5683 for p in $BLOWFISH_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto; do 5684 if test -n "$p"; then 5685 dir="$p" 5686 else 5687 dir="/usr/include" 5688 fi 5689 5690 ac_file_found=yes 5691 for f in blowfish.h; do 5692 if test ! -f $dir/$f; then 5693 ac_file_found=no 5694 break; 5695 fi 5696 done 5697 5698 if test "$ac_file_found" = "yes" ; then 5699 5700 ac_hdr_found=yes 5701 break 5702 5703 5704 else 5705 : 5706 fi 5707 5708 done 5709 if test "$ac_hdr_found" = "yes" ; then 5710 if test -n "$p"; then 5711 CPPFLAGS="$CPPFLAGS -I$p" 5712 fi 5713 echo "$as_me:$LINENO: result: ($dir) yes " >&5 5714echo "${ECHO_T}($dir) yes " >&6 5715 echo "$as_me:$LINENO: checking for BF_set_key in -lcrypto" >&5 5716echo $ECHO_N "checking for BF_set_key in -lcrypto... $ECHO_C" >&6 5717if test "${ac_cv_lib_crypto_BF_set_key+set}" = set; then 5718 echo $ECHO_N "(cached) $ECHO_C" >&6 5719else 5720 ac_check_lib_save_LIBS=$LIBS 5721LIBS="-lcrypto $LIBS" 5722cat >conftest.$ac_ext <<_ACEOF 5723/* confdefs.h. */ 5724_ACEOF 5725cat confdefs.h >>conftest.$ac_ext 5726cat >>conftest.$ac_ext <<_ACEOF 5727/* end confdefs.h. */ 5728 5729/* Override any gcc2 internal prototype to avoid an error. */ 5730#ifdef __cplusplus 5731extern "C" 5732#endif 5733/* We use char because int might match the return type of a gcc2 5734 builtin and then its argument prototype would still apply. */ 5735char BF_set_key (); 5736int 5737main () 5738{ 5739BF_set_key (); 5740 ; 5741 return 0; 5742} 5743_ACEOF 5744rm -f conftest.$ac_objext conftest$ac_exeext 5745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5746 (eval $ac_link) 2>conftest.er1 5747 ac_status=$? 5748 grep -v '^ *+' conftest.er1 >conftest.err 5749 rm -f conftest.er1 5750 cat conftest.err >&5 5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5752 (exit $ac_status); } && 5753 { ac_try='test -z "$ac_c_werror_flag" 5754 || test ! -s conftest.err' 5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5756 (eval $ac_try) 2>&5 5757 ac_status=$? 5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); }; } && 5760 { ac_try='test -s conftest$ac_exeext' 5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5762 (eval $ac_try) 2>&5 5763 ac_status=$? 5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5765 (exit $ac_status); }; }; then 5766 ac_cv_lib_crypto_BF_set_key=yes 5767else 5768 echo "$as_me: failed program was:" >&5 5769sed 's/^/| /' conftest.$ac_ext >&5 5770 5771ac_cv_lib_crypto_BF_set_key=no 5772fi 5773rm -f conftest.err conftest.$ac_objext \ 5774 conftest$ac_exeext conftest.$ac_ext 5775LIBS=$ac_check_lib_save_LIBS 5776fi 5777echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BF_set_key" >&5 5778echo "${ECHO_T}$ac_cv_lib_crypto_BF_set_key" >&6 5779if test $ac_cv_lib_crypto_BF_set_key = yes; then 5780 5781 LIBS="$LIBS -lcrypto" 5782 cat >>confdefs.h <<\_ACEOF 5783#define HAVE_SSL 1 5784_ACEOF 5785 5786 cat >>confdefs.h <<\_ACEOF 5787#define HAVE_SSL_BLOWFISH 1 5788_ACEOF 5789 5790 5791else 5792 { { echo "$as_me:$LINENO: error: SSL library not found. " >&5 5793echo "$as_me: error: SSL library not found. " >&2;} 5794 { (exit 1); exit 1; }; } 5795 5796fi 5797 5798 else 5799 echo "$as_me:$LINENO: result: \"no\"" >&5 5800echo "${ECHO_T}\"no\"" >&6 5801 { { echo "$as_me:$LINENO: error: SSL headers not found. " >&5 5802echo "$as_me: error: SSL headers not found. " >&2;} 5803 { (exit 1); exit 1; }; } 5804 5805 fi 5806 5807fi 5808 5809if test "$SSL" = "yes"; then 5810 echo "$as_me:$LINENO: result: " >&5 5811echo "${ECHO_T}" >&6 5812 { echo "$as_me:$LINENO: checking for AES Library and Header files ... ..." >&5 5813echo "$as_me: checking for AES Library and Header files ... ..." >&6;} 5814 5815 echo "$as_me:$LINENO: checking \"for aes.h\"" >&5 5816echo $ECHO_N "checking \"for aes.h\"... $ECHO_C" >&6 5817 ac_hdr_found=no 5818 for p in $SSL_HDR_DIR $SSL_HDR_DIR/openssl /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto; do 5819 if test -n "$p"; then 5820 dir="$p" 5821 else 5822 dir="/usr/include" 5823 fi 5824 5825 ac_file_found=yes 5826 for f in aes.h; do 5827 if test ! -f $dir/$f; then 5828 ac_file_found=no 5829 break; 5830 fi 5831 done 5832 5833 if test "$ac_file_found" = "yes" ; then 5834 5835 ac_hdr_found=yes 5836 break 5837 5838 5839 else 5840 : 5841 fi 5842 5843 done 5844 if test "$ac_hdr_found" = "yes" ; then 5845 if test -n "$p"; then 5846 CPPFLAGS="$CPPFLAGS -I$p" 5847 fi 5848 echo "$as_me:$LINENO: result: ($dir) yes " >&5 5849echo "${ECHO_T}($dir) yes " >&6 5850 echo "$as_me:$LINENO: checking for AES_set_encrypt_key in -lcrypto" >&5 5851echo $ECHO_N "checking for AES_set_encrypt_key in -lcrypto... $ECHO_C" >&6 5852if test "${ac_cv_lib_crypto_AES_set_encrypt_key+set}" = set; then 5853 echo $ECHO_N "(cached) $ECHO_C" >&6 5854else 5855 ac_check_lib_save_LIBS=$LIBS 5856LIBS="-lcrypto $LIBS" 5857cat >conftest.$ac_ext <<_ACEOF 5858/* confdefs.h. */ 5859_ACEOF 5860cat confdefs.h >>conftest.$ac_ext 5861cat >>conftest.$ac_ext <<_ACEOF 5862/* end confdefs.h. */ 5863 5864/* Override any gcc2 internal prototype to avoid an error. */ 5865#ifdef __cplusplus 5866extern "C" 5867#endif 5868/* We use char because int might match the return type of a gcc2 5869 builtin and then its argument prototype would still apply. */ 5870char AES_set_encrypt_key (); 5871int 5872main () 5873{ 5874AES_set_encrypt_key (); 5875 ; 5876 return 0; 5877} 5878_ACEOF 5879rm -f conftest.$ac_objext conftest$ac_exeext 5880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5881 (eval $ac_link) 2>conftest.er1 5882 ac_status=$? 5883 grep -v '^ *+' conftest.er1 >conftest.err 5884 rm -f conftest.er1 5885 cat conftest.err >&5 5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5887 (exit $ac_status); } && 5888 { ac_try='test -z "$ac_c_werror_flag" 5889 || test ! -s conftest.err' 5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5891 (eval $ac_try) 2>&5 5892 ac_status=$? 5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5894 (exit $ac_status); }; } && 5895 { ac_try='test -s conftest$ac_exeext' 5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5897 (eval $ac_try) 2>&5 5898 ac_status=$? 5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); }; }; then 5901 ac_cv_lib_crypto_AES_set_encrypt_key=yes 5902else 5903 echo "$as_me: failed program was:" >&5 5904sed 's/^/| /' conftest.$ac_ext >&5 5905 5906ac_cv_lib_crypto_AES_set_encrypt_key=no 5907fi 5908rm -f conftest.err conftest.$ac_objext \ 5909 conftest$ac_exeext conftest.$ac_ext 5910LIBS=$ac_check_lib_save_LIBS 5911fi 5912echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_set_encrypt_key" >&5 5913echo "${ECHO_T}$ac_cv_lib_crypto_AES_set_encrypt_key" >&6 5914if test $ac_cv_lib_crypto_AES_set_encrypt_key = yes; then 5915 5916 cat >>confdefs.h <<\_ACEOF 5917#define HAVE_SSL_AES 1 5918_ACEOF 5919 5920 5921else 5922 { { echo "$as_me:$LINENO: error: AES library not found. " >&5 5923echo "$as_me: error: AES library not found. " >&2;} 5924 { (exit 1); exit 1; }; } 5925 5926fi 5927 5928 else 5929 echo "$as_me:$LINENO: result: \"no\"" >&5 5930echo "${ECHO_T}\"no\"" >&6 5931 { { echo "$as_me:$LINENO: error: AES headers not found. " >&5 5932echo "$as_me: error: AES headers not found. " >&2;} 5933 { (exit 1); exit 1; }; } 5934 5935 fi 5936 5937fi 5938 5939if test "$SSL" = "yes"; then 5940 echo "$as_me:$LINENO: result: " >&5 5941echo "${ECHO_T}" >&6 5942 { echo "$as_me:$LINENO: checking for EVP Library and Header files ... ..." >&5 5943echo "$as_me: checking for EVP Library and Header files ... ..." >&6;} 5944 5945 echo "$as_me:$LINENO: checking \"for evp.h\"" >&5 5946echo $ECHO_N "checking \"for evp.h\"... $ECHO_C" >&6 5947 ac_hdr_found=no 5948 for p in $SSL_HDR_DIR $SSL_HDR_DIR/openssl /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto; do 5949 if test -n "$p"; then 5950 dir="$p" 5951 else 5952 dir="/usr/include" 5953 fi 5954 5955 ac_file_found=yes 5956 for f in evp.h; do 5957 if test ! -f $dir/$f; then 5958 ac_file_found=no 5959 break; 5960 fi 5961 done 5962 5963 if test "$ac_file_found" = "yes" ; then 5964 5965 ac_hdr_found=yes 5966 break 5967 5968 5969 else 5970 : 5971 fi 5972 5973 done 5974 if test "$ac_hdr_found" = "yes" ; then 5975 if test -n "$p"; then 5976 CPPFLAGS="$CPPFLAGS -I$p" 5977 fi 5978 echo "$as_me:$LINENO: result: ($dir) yes " >&5 5979echo "${ECHO_T}($dir) yes " >&6 5980 echo "$as_me:$LINENO: checking for EVP_EncryptInit in -lcrypto" >&5 5981echo $ECHO_N "checking for EVP_EncryptInit in -lcrypto... $ECHO_C" >&6 5982if test "${ac_cv_lib_crypto_EVP_EncryptInit+set}" = set; then 5983 echo $ECHO_N "(cached) $ECHO_C" >&6 5984else 5985 ac_check_lib_save_LIBS=$LIBS 5986LIBS="-lcrypto $LIBS" 5987cat >conftest.$ac_ext <<_ACEOF 5988/* confdefs.h. */ 5989_ACEOF 5990cat confdefs.h >>conftest.$ac_ext 5991cat >>conftest.$ac_ext <<_ACEOF 5992/* end confdefs.h. */ 5993 5994/* Override any gcc2 internal prototype to avoid an error. */ 5995#ifdef __cplusplus 5996extern "C" 5997#endif 5998/* We use char because int might match the return type of a gcc2 5999 builtin and then its argument prototype would still apply. */ 6000char EVP_EncryptInit (); 6001int 6002main () 6003{ 6004EVP_EncryptInit (); 6005 ; 6006 return 0; 6007} 6008_ACEOF 6009rm -f conftest.$ac_objext conftest$ac_exeext 6010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6011 (eval $ac_link) 2>conftest.er1 6012 ac_status=$? 6013 grep -v '^ *+' conftest.er1 >conftest.err 6014 rm -f conftest.er1 6015 cat conftest.err >&5 6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6017 (exit $ac_status); } && 6018 { ac_try='test -z "$ac_c_werror_flag" 6019 || test ! -s conftest.err' 6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6021 (eval $ac_try) 2>&5 6022 ac_status=$? 6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6024 (exit $ac_status); }; } && 6025 { ac_try='test -s conftest$ac_exeext' 6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6027 (eval $ac_try) 2>&5 6028 ac_status=$? 6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6030 (exit $ac_status); }; }; then 6031 ac_cv_lib_crypto_EVP_EncryptInit=yes 6032else 6033 echo "$as_me: failed program was:" >&5 6034sed 's/^/| /' conftest.$ac_ext >&5 6035 6036ac_cv_lib_crypto_EVP_EncryptInit=no 6037fi 6038rm -f conftest.err conftest.$ac_objext \ 6039 conftest$ac_exeext conftest.$ac_ext 6040LIBS=$ac_check_lib_save_LIBS 6041fi 6042echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 6043echo "${ECHO_T}$ac_cv_lib_crypto_EVP_EncryptInit" >&6 6044if test $ac_cv_lib_crypto_EVP_EncryptInit = yes; then 6045 6046 cat >>confdefs.h <<\_ACEOF 6047#define HAVE_SSL_EVP 1 6048_ACEOF 6049 6050 6051else 6052 { { echo "$as_me:$LINENO: error: EVP library not found. " >&5 6053echo "$as_me: error: EVP library not found. " >&2;} 6054 { (exit 1); exit 1; }; } 6055 6056fi 6057 6058 else 6059 echo "$as_me:$LINENO: result: \"no\"" >&5 6060echo "${ECHO_T}\"no\"" >&6 6061 { { echo "$as_me:$LINENO: error: EVP headers not found. " >&5 6062echo "$as_me: error: EVP headers not found. " >&2;} 6063 { (exit 1); exit 1; }; } 6064 6065 fi 6066 6067fi 6068 6069if test "$NATHACK" = "yes"; then 6070 cat >>confdefs.h <<\_ACEOF 6071#define ENABLE_NAT_HACK 1 6072_ACEOF 6073 6074fi 6075 6076if test "$SOCKS" = "yes"; then 6077 echo "$as_me:$LINENO: result: " >&5 6078echo "${ECHO_T}" >&6 6079 { echo "$as_me:$LINENO: checking for SOCKS Library ... ..." >&5 6080echo "$as_me: checking for SOCKS Library ... ..." >&6;} 6081 echo "$as_me:$LINENO: checking for SOCKSconnect in -lsocks5" >&5 6082echo $ECHO_N "checking for SOCKSconnect in -lsocks5... $ECHO_C" >&6 6083if test "${ac_cv_lib_socks5_SOCKSconnect+set}" = set; then 6084 echo $ECHO_N "(cached) $ECHO_C" >&6 6085else 6086 ac_check_lib_save_LIBS=$LIBS 6087LIBS="-lsocks5 $LIBS" 6088cat >conftest.$ac_ext <<_ACEOF 6089/* confdefs.h. */ 6090_ACEOF 6091cat confdefs.h >>conftest.$ac_ext 6092cat >>conftest.$ac_ext <<_ACEOF 6093/* end confdefs.h. */ 6094 6095/* Override any gcc2 internal prototype to avoid an error. */ 6096#ifdef __cplusplus 6097extern "C" 6098#endif 6099/* We use char because int might match the return type of a gcc2 6100 builtin and then its argument prototype would still apply. */ 6101char SOCKSconnect (); 6102int 6103main () 6104{ 6105SOCKSconnect (); 6106 ; 6107 return 0; 6108} 6109_ACEOF 6110rm -f conftest.$ac_objext conftest$ac_exeext 6111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6112 (eval $ac_link) 2>conftest.er1 6113 ac_status=$? 6114 grep -v '^ *+' conftest.er1 >conftest.err 6115 rm -f conftest.er1 6116 cat conftest.err >&5 6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6118 (exit $ac_status); } && 6119 { ac_try='test -z "$ac_c_werror_flag" 6120 || test ! -s conftest.err' 6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6122 (eval $ac_try) 2>&5 6123 ac_status=$? 6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6125 (exit $ac_status); }; } && 6126 { ac_try='test -s conftest$ac_exeext' 6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6128 (eval $ac_try) 2>&5 6129 ac_status=$? 6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6131 (exit $ac_status); }; }; then 6132 ac_cv_lib_socks5_SOCKSconnect=yes 6133else 6134 echo "$as_me: failed program was:" >&5 6135sed 's/^/| /' conftest.$ac_ext >&5 6136 6137ac_cv_lib_socks5_SOCKSconnect=no 6138fi 6139rm -f conftest.err conftest.$ac_objext \ 6140 conftest$ac_exeext conftest.$ac_ext 6141LIBS=$ac_check_lib_save_LIBS 6142fi 6143echo "$as_me:$LINENO: result: $ac_cv_lib_socks5_SOCKSconnect" >&5 6144echo "${ECHO_T}$ac_cv_lib_socks5_SOCKSconnect" >&6 6145if test $ac_cv_lib_socks5_SOCKSconnect = yes; then 6146 6147 CFLAGS="$CFLAGS -DVTUN_SOCKS=1" 6148 LIBS="$LIBS -lsocks5" 6149 6150else 6151 echo "$as_me:$LINENO: checking for Rconnect in -lsocks" >&5 6152echo $ECHO_N "checking for Rconnect in -lsocks... $ECHO_C" >&6 6153if test "${ac_cv_lib_socks_Rconnect+set}" = set; then 6154 echo $ECHO_N "(cached) $ECHO_C" >&6 6155else 6156 ac_check_lib_save_LIBS=$LIBS 6157LIBS="-lsocks $LIBS" 6158cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ 6164 6165/* Override any gcc2 internal prototype to avoid an error. */ 6166#ifdef __cplusplus 6167extern "C" 6168#endif 6169/* We use char because int might match the return type of a gcc2 6170 builtin and then its argument prototype would still apply. */ 6171char Rconnect (); 6172int 6173main () 6174{ 6175Rconnect (); 6176 ; 6177 return 0; 6178} 6179_ACEOF 6180rm -f conftest.$ac_objext conftest$ac_exeext 6181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6182 (eval $ac_link) 2>conftest.er1 6183 ac_status=$? 6184 grep -v '^ *+' conftest.er1 >conftest.err 6185 rm -f conftest.er1 6186 cat conftest.err >&5 6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6188 (exit $ac_status); } && 6189 { ac_try='test -z "$ac_c_werror_flag" 6190 || test ! -s conftest.err' 6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6192 (eval $ac_try) 2>&5 6193 ac_status=$? 6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6195 (exit $ac_status); }; } && 6196 { ac_try='test -s conftest$ac_exeext' 6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6198 (eval $ac_try) 2>&5 6199 ac_status=$? 6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6201 (exit $ac_status); }; }; then 6202 ac_cv_lib_socks_Rconnect=yes 6203else 6204 echo "$as_me: failed program was:" >&5 6205sed 's/^/| /' conftest.$ac_ext >&5 6206 6207ac_cv_lib_socks_Rconnect=no 6208fi 6209rm -f conftest.err conftest.$ac_objext \ 6210 conftest$ac_exeext conftest.$ac_ext 6211LIBS=$ac_check_lib_save_LIBS 6212fi 6213echo "$as_me:$LINENO: result: $ac_cv_lib_socks_Rconnect" >&5 6214echo "${ECHO_T}$ac_cv_lib_socks_Rconnect" >&6 6215if test $ac_cv_lib_socks_Rconnect = yes; then 6216 6217 CFLAGS="$CFLAGS -DVTUN_SOCKS=2" 6218 LIBS="$LIBS -lsocks" 6219 6220else 6221 { { echo "$as_me:$LINENO: error: SOCKS library not found. " >&5 6222echo "$as_me: error: SOCKS library not found. " >&2;} 6223 { (exit 1); exit 1; }; } 6224 6225fi 6226 6227 6228fi 6229 6230fi 6231 6232echo "$as_me:$LINENO: result: " >&5 6233echo "${ECHO_T}" >&6 6234 6235 6236 6237 6238 6239for ac_func in getpt grantpt unlockpt ptsname 6240do 6241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6242echo "$as_me:$LINENO: checking for $ac_func" >&5 6243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6244if eval "test \"\${$as_ac_var+set}\" = set"; then 6245 echo $ECHO_N "(cached) $ECHO_C" >&6 6246else 6247 cat >conftest.$ac_ext <<_ACEOF 6248/* confdefs.h. */ 6249_ACEOF 6250cat confdefs.h >>conftest.$ac_ext 6251cat >>conftest.$ac_ext <<_ACEOF 6252/* end confdefs.h. */ 6253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6254 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6255#define $ac_func innocuous_$ac_func 6256 6257/* System header to define __stub macros and hopefully few prototypes, 6258 which can conflict with char $ac_func (); below. 6259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6260 <limits.h> exists even on freestanding compilers. */ 6261 6262#ifdef __STDC__ 6263# include <limits.h> 6264#else 6265# include <assert.h> 6266#endif 6267 6268#undef $ac_func 6269 6270/* Override any gcc2 internal prototype to avoid an error. */ 6271#ifdef __cplusplus 6272extern "C" 6273{ 6274#endif 6275/* We use char because int might match the return type of a gcc2 6276 builtin and then its argument prototype would still apply. */ 6277char $ac_func (); 6278/* The GNU C library defines this for functions which it implements 6279 to always fail with ENOSYS. Some functions are actually named 6280 something starting with __ and the normal name is an alias. */ 6281#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6282choke me 6283#else 6284char (*f) () = $ac_func; 6285#endif 6286#ifdef __cplusplus 6287} 6288#endif 6289 6290int 6291main () 6292{ 6293return f != $ac_func; 6294 ; 6295 return 0; 6296} 6297_ACEOF 6298rm -f conftest.$ac_objext conftest$ac_exeext 6299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6300 (eval $ac_link) 2>conftest.er1 6301 ac_status=$? 6302 grep -v '^ *+' conftest.er1 >conftest.err 6303 rm -f conftest.er1 6304 cat conftest.err >&5 6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); } && 6307 { ac_try='test -z "$ac_c_werror_flag" 6308 || test ! -s conftest.err' 6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6310 (eval $ac_try) 2>&5 6311 ac_status=$? 6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6313 (exit $ac_status); }; } && 6314 { ac_try='test -s conftest$ac_exeext' 6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6316 (eval $ac_try) 2>&5 6317 ac_status=$? 6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6319 (exit $ac_status); }; }; then 6320 eval "$as_ac_var=yes" 6321else 6322 echo "$as_me: failed program was:" >&5 6323sed 's/^/| /' conftest.$ac_ext >&5 6324 6325eval "$as_ac_var=no" 6326fi 6327rm -f conftest.err conftest.$ac_objext \ 6328 conftest$ac_exeext conftest.$ac_ext 6329fi 6330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6332if test `eval echo '${'$as_ac_var'}'` = yes; then 6333 cat >>confdefs.h <<_ACEOF 6334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6335_ACEOF 6336 6337fi 6338done 6339 6340 6341OS_REL=`uname -r | tr -d 'A-Za-z\-\_\.'` 6342case $host_os in 6343 *linux*) 6344 OS_DIR="linux" 6345 6346for ac_header in linux/if_tun.h 6347do 6348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6349if eval "test \"\${$as_ac_Header+set}\" = set"; then 6350 echo "$as_me:$LINENO: checking for $ac_header" >&5 6351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6352if eval "test \"\${$as_ac_Header+set}\" = set"; then 6353 echo $ECHO_N "(cached) $ECHO_C" >&6 6354fi 6355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6357else 6358 # Is the header compilable? 6359echo "$as_me:$LINENO: checking $ac_header usability" >&5 6360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6361cat >conftest.$ac_ext <<_ACEOF 6362/* confdefs.h. */ 6363_ACEOF 6364cat confdefs.h >>conftest.$ac_ext 6365cat >>conftest.$ac_ext <<_ACEOF 6366/* end confdefs.h. */ 6367$ac_includes_default 6368#include <$ac_header> 6369_ACEOF 6370rm -f conftest.$ac_objext 6371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6372 (eval $ac_compile) 2>conftest.er1 6373 ac_status=$? 6374 grep -v '^ *+' conftest.er1 >conftest.err 6375 rm -f conftest.er1 6376 cat conftest.err >&5 6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6378 (exit $ac_status); } && 6379 { ac_try='test -z "$ac_c_werror_flag" 6380 || test ! -s conftest.err' 6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6382 (eval $ac_try) 2>&5 6383 ac_status=$? 6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); }; } && 6386 { ac_try='test -s conftest.$ac_objext' 6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6388 (eval $ac_try) 2>&5 6389 ac_status=$? 6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6391 (exit $ac_status); }; }; then 6392 ac_header_compiler=yes 6393else 6394 echo "$as_me: failed program was:" >&5 6395sed 's/^/| /' conftest.$ac_ext >&5 6396 6397ac_header_compiler=no 6398fi 6399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6401echo "${ECHO_T}$ac_header_compiler" >&6 6402 6403# Is the header present? 6404echo "$as_me:$LINENO: checking $ac_header presence" >&5 6405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6406cat >conftest.$ac_ext <<_ACEOF 6407/* confdefs.h. */ 6408_ACEOF 6409cat confdefs.h >>conftest.$ac_ext 6410cat >>conftest.$ac_ext <<_ACEOF 6411/* end confdefs.h. */ 6412#include <$ac_header> 6413_ACEOF 6414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6416 ac_status=$? 6417 grep -v '^ *+' conftest.er1 >conftest.err 6418 rm -f conftest.er1 6419 cat conftest.err >&5 6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6421 (exit $ac_status); } >/dev/null; then 6422 if test -s conftest.err; then 6423 ac_cpp_err=$ac_c_preproc_warn_flag 6424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6425 else 6426 ac_cpp_err= 6427 fi 6428else 6429 ac_cpp_err=yes 6430fi 6431if test -z "$ac_cpp_err"; then 6432 ac_header_preproc=yes 6433else 6434 echo "$as_me: failed program was:" >&5 6435sed 's/^/| /' conftest.$ac_ext >&5 6436 6437 ac_header_preproc=no 6438fi 6439rm -f conftest.err conftest.$ac_ext 6440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6441echo "${ECHO_T}$ac_header_preproc" >&6 6442 6443# So? What about this header? 6444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6445 yes:no: ) 6446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6450 ac_header_preproc=yes 6451 ;; 6452 no:yes:* ) 6453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6465 ( 6466 cat <<\_ASBOX 6467## ------------------------------------------ ## 6468## Report this to the AC_PACKAGE_NAME lists. ## 6469## ------------------------------------------ ## 6470_ASBOX 6471 ) | 6472 sed "s/^/$as_me: WARNING: /" >&2 6473 ;; 6474esac 6475echo "$as_me:$LINENO: checking for $ac_header" >&5 6476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6477if eval "test \"\${$as_ac_Header+set}\" = set"; then 6478 echo $ECHO_N "(cached) $ECHO_C" >&6 6479else 6480 eval "$as_ac_Header=\$ac_header_preproc" 6481fi 6482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6484 6485fi 6486if test `eval echo '${'$as_ac_Header'}'` = yes; then 6487 cat >>confdefs.h <<_ACEOF 6488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6489_ACEOF 6490 6491fi 6492 6493done 6494 6495 ;; 6496 *solaris*) 6497 OS_DIR="svr4" 6498 ;; 6499 *freebsd*) 6500 if test "$OS_REL" -ge "40"; then 6501 OS_DIR="freebsd" 6502 fi 6503 ;; 6504 *openbsd*) 6505 if test "$OS_REL" -ge "25"; then 6506 OS_DIR="openbsd" 6507 fi 6508 ;; 6509esac 6510 6511 echo "$as_me:$LINENO: result: creating driver and protocol links ... " >&5 6512echo "${ECHO_T}creating driver and protocol links ... " >&6 6513 6514 if test "$OS_DIR" != ""; then 6515 6516 for i in `cat vtun.drivers`; do 6517 if test -f $OS_DIR/$i -a ! -f $i; then 6518 echo "$as_me:$LINENO: result: linking $OS_DIR/$i to $i" >&5 6519echo "${ECHO_T}linking $OS_DIR/$i to $i" >&6 6520 ln -f -s $OS_DIR/$i $i 6521 fi 6522 done 6523 6524 fi 6525 6526 for i in `cat vtun.drivers`; do 6527 if test -f generic/$i -a ! -f $i; then 6528 echo "$as_me:$LINENO: result: linking generic/$i to $i" >&5 6529echo "${ECHO_T}linking generic/$i to $i" >&6 6530 ln -f -s generic/$i $i 6531 fi 6532 done 6533 6534 6535 6536echo "$as_me:$LINENO: result: " >&5 6537echo "${ECHO_T}" >&6 6538 6539 6540REL=`echo 'BRANCH-3_X' | tr -d '$: \-' | sed 's/^[A-Za-z]*//' | sed 's/\_/\./'` 6541 6542 6543cat >>confdefs.h <<_ACEOF 6544#define VTUN_VER "$REL `date '+%m/%d/%Y'`" 6545_ACEOF 6546 6547 6548 ac_config_files="$ac_config_files Makefile" 6549cat >confcache <<\_ACEOF 6550# This file is a shell script that caches the results of configure 6551# tests run on this system so they can be shared between configure 6552# scripts and configure runs, see configure's option --config-cache. 6553# It is not useful on other systems. If it contains results you don't 6554# want to keep, you may remove or edit it. 6555# 6556# config.status only pays attention to the cache file if you give it 6557# the --recheck option to rerun configure. 6558# 6559# `ac_cv_env_foo' variables (set or unset) will be overridden when 6560# loading this file, other *unset* `ac_cv_foo' will be assigned the 6561# following values. 6562 6563_ACEOF 6564 6565# The following way of writing the cache mishandles newlines in values, 6566# but we know of no workaround that is simple, portable, and efficient. 6567# So, don't put newlines in cache variables' values. 6568# Ultrix sh set writes to stderr and can't be redirected directly, 6569# and sets the high bit in the cache file unless we assign to the vars. 6570{ 6571 (set) 2>&1 | 6572 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6573 *ac_space=\ *) 6574 # `set' does not quote correctly, so add quotes (double-quote 6575 # substitution turns \\\\ into \\, and sed turns \\ into \). 6576 sed -n \ 6577 "s/'/'\\\\''/g; 6578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6579 ;; 6580 *) 6581 # `set' quotes correctly as required by POSIX, so do not add quotes. 6582 sed -n \ 6583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6584 ;; 6585 esac; 6586} | 6587 sed ' 6588 t clear 6589 : clear 6590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6591 t end 6592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6593 : end' >>confcache 6594if diff $cache_file confcache >/dev/null 2>&1; then :; else 6595 if test -w $cache_file; then 6596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6597 cat confcache >$cache_file 6598 else 6599 echo "not updating unwritable cache $cache_file" 6600 fi 6601fi 6602rm -f confcache 6603 6604test "x$prefix" = xNONE && prefix=$ac_default_prefix 6605# Let make expand exec_prefix. 6606test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6607 6608# VPATH may cause trouble with some makes, so we remove $(srcdir), 6609# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6610# trailing colons and then remove the whole line if VPATH becomes empty 6611# (actually we leave an empty line to preserve line numbers). 6612if test "x$srcdir" = x.; then 6613 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6614s/:*\$(srcdir):*/:/; 6615s/:*\${srcdir}:*/:/; 6616s/:*@srcdir@:*/:/; 6617s/^\([^=]*=[ ]*\):*/\1/; 6618s/:*$//; 6619s/^[^=]*=[ ]*$//; 6620}' 6621fi 6622 6623DEFS=-DHAVE_CONFIG_H 6624 6625ac_libobjs= 6626ac_ltlibobjs= 6627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6628 # 1. Remove the extension, and $U if already installed. 6629 ac_i=`echo "$ac_i" | 6630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6631 # 2. Add them. 6632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6634done 6635LIBOBJS=$ac_libobjs 6636 6637LTLIBOBJS=$ac_ltlibobjs 6638 6639 6640 6641: ${CONFIG_STATUS=./config.status} 6642ac_clean_files_save=$ac_clean_files 6643ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6644{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6645echo "$as_me: creating $CONFIG_STATUS" >&6;} 6646cat >$CONFIG_STATUS <<_ACEOF 6647#! $SHELL 6648# Generated by $as_me. 6649# Run this file to recreate the current configuration. 6650# Compiler output produced by configure, useful for debugging 6651# configure, is in config.log if it exists. 6652 6653debug=false 6654ac_cs_recheck=false 6655ac_cs_silent=false 6656SHELL=\${CONFIG_SHELL-$SHELL} 6657_ACEOF 6658 6659cat >>$CONFIG_STATUS <<\_ACEOF 6660## --------------------- ## 6661## M4sh Initialization. ## 6662## --------------------- ## 6663 6664# Be Bourne compatible 6665if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6666 emulate sh 6667 NULLCMD=: 6668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6669 # is contrary to our usage. Disable this feature. 6670 alias -g '${1+"$@"}'='"$@"' 6671elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 6672 set -o posix 6673fi 6674DUALCASE=1; export DUALCASE # for MKS sh 6675 6676# Support unset when possible. 6677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6678 as_unset=unset 6679else 6680 as_unset=false 6681fi 6682 6683 6684# Work around bugs in pre-3.0 UWIN ksh. 6685$as_unset ENV MAIL MAILPATH 6686PS1='$ ' 6687PS2='> ' 6688PS4='+ ' 6689 6690# NLS nuisances. 6691for as_var in \ 6692 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6693 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6694 LC_TELEPHONE LC_TIME 6695do 6696 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6697 eval $as_var=C; export $as_var 6698 else 6699 $as_unset $as_var 6700 fi 6701done 6702 6703# Required to use basename. 6704if expr a : '\(a\)' >/dev/null 2>&1; then 6705 as_expr=expr 6706else 6707 as_expr=false 6708fi 6709 6710if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6711 as_basename=basename 6712else 6713 as_basename=false 6714fi 6715 6716 6717# Name of the executable. 6718as_me=`$as_basename "$0" || 6719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6720 X"$0" : 'X\(//\)$' \| \ 6721 X"$0" : 'X\(/\)$' \| \ 6722 . : '\(.\)' 2>/dev/null || 6723echo X/"$0" | 6724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6725 /^X\/\(\/\/\)$/{ s//\1/; q; } 6726 /^X\/\(\/\).*/{ s//\1/; q; } 6727 s/.*/./; q'` 6728 6729 6730# PATH needs CR, and LINENO needs CR and PATH. 6731# Avoid depending upon Character Ranges. 6732as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6734as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6735as_cr_digits='0123456789' 6736as_cr_alnum=$as_cr_Letters$as_cr_digits 6737 6738# The user is always right. 6739if test "${PATH_SEPARATOR+set}" != set; then 6740 echo "#! /bin/sh" >conf$$.sh 6741 echo "exit 0" >>conf$$.sh 6742 chmod +x conf$$.sh 6743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6744 PATH_SEPARATOR=';' 6745 else 6746 PATH_SEPARATOR=: 6747 fi 6748 rm -f conf$$.sh 6749fi 6750 6751 6752 as_lineno_1=$LINENO 6753 as_lineno_2=$LINENO 6754 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6755 test "x$as_lineno_1" != "x$as_lineno_2" && 6756 test "x$as_lineno_3" = "x$as_lineno_2" || { 6757 # Find who we are. Look in the path if we contain no path at all 6758 # relative or not. 6759 case $0 in 6760 *[\\/]* ) as_myself=$0 ;; 6761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762for as_dir in $PATH 6763do 6764 IFS=$as_save_IFS 6765 test -z "$as_dir" && as_dir=. 6766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6767done 6768 6769 ;; 6770 esac 6771 # We did not find ourselves, most probably we were run as `sh COMMAND' 6772 # in which case we are not to be found in the path. 6773 if test "x$as_myself" = x; then 6774 as_myself=$0 6775 fi 6776 if test ! -f "$as_myself"; then 6777 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6778echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6779 { (exit 1); exit 1; }; } 6780 fi 6781 case $CONFIG_SHELL in 6782 '') 6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6785do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for as_base in sh bash ksh sh5; do 6789 case $as_dir in 6790 /*) 6791 if ("$as_dir/$as_base" -c ' 6792 as_lineno_1=$LINENO 6793 as_lineno_2=$LINENO 6794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6795 test "x$as_lineno_1" != "x$as_lineno_2" && 6796 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6797 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6798 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6799 CONFIG_SHELL=$as_dir/$as_base 6800 export CONFIG_SHELL 6801 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6802 fi;; 6803 esac 6804 done 6805done 6806;; 6807 esac 6808 6809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6810 # uniformly replaced by the line number. The first 'sed' inserts a 6811 # line-number line before each line; the second 'sed' does the real 6812 # work. The second script uses 'N' to pair each line-number line 6813 # with the numbered line, and appends trailing '-' during 6814 # substitution so that $LINENO is not a special case at line end. 6815 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6816 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6817 sed '=' <$as_myself | 6818 sed ' 6819 N 6820 s,$,-, 6821 : loop 6822 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6823 t loop 6824 s,-$,, 6825 s,^['$as_cr_digits']*\n,, 6826 ' >$as_me.lineno && 6827 chmod +x $as_me.lineno || 6828 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6829echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6830 { (exit 1); exit 1; }; } 6831 6832 # Don't try to exec as it changes $[0], causing all sort of problems 6833 # (the dirname of $[0] is not the place where we might find the 6834 # original and so on. Autoconf is especially sensible to this). 6835 . ./$as_me.lineno 6836 # Exit status is that of the last command. 6837 exit 6838} 6839 6840 6841case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6842 *c*,-n*) ECHO_N= ECHO_C=' 6843' ECHO_T=' ' ;; 6844 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6845 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6846esac 6847 6848if expr a : '\(a\)' >/dev/null 2>&1; then 6849 as_expr=expr 6850else 6851 as_expr=false 6852fi 6853 6854rm -f conf$$ conf$$.exe conf$$.file 6855echo >conf$$.file 6856if ln -s conf$$.file conf$$ 2>/dev/null; then 6857 # We could just check for DJGPP; but this test a) works b) is more generic 6858 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 6859 if test -f conf$$.exe; then 6860 # Don't use ln at all; we don't have any links 6861 as_ln_s='cp -p' 6862 else 6863 as_ln_s='ln -s' 6864 fi 6865elif ln conf$$.file conf$$ 2>/dev/null; then 6866 as_ln_s=ln 6867else 6868 as_ln_s='cp -p' 6869fi 6870rm -f conf$$ conf$$.exe conf$$.file 6871 6872if mkdir -p . 2>/dev/null; then 6873 as_mkdir_p=: 6874else 6875 test -d ./-p && rmdir ./-p 6876 as_mkdir_p=false 6877fi 6878 6879as_executable_p="test -f" 6880 6881# Sed expression to map a string onto a valid CPP name. 6882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6883 6884# Sed expression to map a string onto a valid variable name. 6885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6886 6887 6888# IFS 6889# We need space, tab and new line, in precisely that order. 6890as_nl=' 6891' 6892IFS=" $as_nl" 6893 6894# CDPATH. 6895$as_unset CDPATH 6896 6897exec 6>&1 6898 6899# Open the log real soon, to keep \$[0] and so on meaningful, and to 6900# report actual input values of CONFIG_FILES etc. instead of their 6901# values after options handling. Logging --version etc. is OK. 6902exec 5>>config.log 6903{ 6904 echo 6905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6906## Running $as_me. ## 6907_ASBOX 6908} >&5 6909cat >&5 <<_CSEOF 6910 6911This file was extended by $as_me, which was 6912generated by GNU Autoconf 2.59. Invocation command line was 6913 6914 CONFIG_FILES = $CONFIG_FILES 6915 CONFIG_HEADERS = $CONFIG_HEADERS 6916 CONFIG_LINKS = $CONFIG_LINKS 6917 CONFIG_COMMANDS = $CONFIG_COMMANDS 6918 $ $0 $@ 6919 6920_CSEOF 6921echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6922echo >&5 6923_ACEOF 6924 6925# Files that config.status was made for. 6926if test -n "$ac_config_files"; then 6927 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 6928fi 6929 6930if test -n "$ac_config_headers"; then 6931 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 6932fi 6933 6934if test -n "$ac_config_links"; then 6935 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 6936fi 6937 6938if test -n "$ac_config_commands"; then 6939 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 6940fi 6941 6942cat >>$CONFIG_STATUS <<\_ACEOF 6943 6944ac_cs_usage="\ 6945\`$as_me' instantiates files from templates according to the 6946current configuration. 6947 6948Usage: $0 [OPTIONS] [FILE]... 6949 6950 -h, --help print this help, then exit 6951 -V, --version print version number, then exit 6952 -q, --quiet do not print progress messages 6953 -d, --debug don't remove temporary files 6954 --recheck update $as_me by reconfiguring in the same conditions 6955 --file=FILE[:TEMPLATE] 6956 instantiate the configuration file FILE 6957 --header=FILE[:TEMPLATE] 6958 instantiate the configuration header FILE 6959 6960Configuration files: 6961$config_files 6962 6963Configuration headers: 6964$config_headers 6965 6966Report bugs to <bug-autoconf@gnu.org>." 6967_ACEOF 6968 6969cat >>$CONFIG_STATUS <<_ACEOF 6970ac_cs_version="\\ 6971config.status 6972configured by $0, generated by GNU Autoconf 2.59, 6973 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6974 6975Copyright (C) 2003 Free Software Foundation, Inc. 6976This config.status script is free software; the Free Software Foundation 6977gives unlimited permission to copy, distribute and modify it." 6978srcdir=$srcdir 6979INSTALL="$INSTALL" 6980_ACEOF 6981 6982cat >>$CONFIG_STATUS <<\_ACEOF 6983# If no file are specified by the user, then we need to provide default 6984# value. By we need to know if files were specified by the user. 6985ac_need_defaults=: 6986while test $# != 0 6987do 6988 case $1 in 6989 --*=*) 6990 ac_option=`expr "x$1" : 'x\([^=]*\)='` 6991 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6992 ac_shift=: 6993 ;; 6994 -*) 6995 ac_option=$1 6996 ac_optarg=$2 6997 ac_shift=shift 6998 ;; 6999 *) # This is not an option, so the user has probably given explicit 7000 # arguments. 7001 ac_option=$1 7002 ac_need_defaults=false;; 7003 esac 7004 7005 case $ac_option in 7006 # Handling of the options. 7007_ACEOF 7008cat >>$CONFIG_STATUS <<\_ACEOF 7009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7010 ac_cs_recheck=: ;; 7011 --version | --vers* | -V ) 7012 echo "$ac_cs_version"; exit 0 ;; 7013 --he | --h) 7014 # Conflict between --help and --header 7015 { { echo "$as_me:$LINENO: error: ambiguous option: $1 7016Try \`$0 --help' for more information." >&5 7017echo "$as_me: error: ambiguous option: $1 7018Try \`$0 --help' for more information." >&2;} 7019 { (exit 1); exit 1; }; };; 7020 --help | --hel | -h ) 7021 echo "$ac_cs_usage"; exit 0 ;; 7022 --debug | --d* | -d ) 7023 debug=: ;; 7024 --file | --fil | --fi | --f ) 7025 $ac_shift 7026 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 7027 ac_need_defaults=false;; 7028 --header | --heade | --head | --hea ) 7029 $ac_shift 7030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 7031 ac_need_defaults=false;; 7032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7033 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7034 ac_cs_silent=: ;; 7035 7036 # This is an error. 7037 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 7038Try \`$0 --help' for more information." >&5 7039echo "$as_me: error: unrecognized option: $1 7040Try \`$0 --help' for more information." >&2;} 7041 { (exit 1); exit 1; }; } ;; 7042 7043 *) ac_config_targets="$ac_config_targets $1" ;; 7044 7045 esac 7046 shift 7047done 7048 7049ac_configure_extra_args= 7050 7051if $ac_cs_silent; then 7052 exec 6>/dev/null 7053 ac_configure_extra_args="$ac_configure_extra_args --silent" 7054fi 7055 7056_ACEOF 7057cat >>$CONFIG_STATUS <<_ACEOF 7058if \$ac_cs_recheck; then 7059 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 7060 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7061fi 7062 7063_ACEOF 7064 7065 7066 7067 7068 7069cat >>$CONFIG_STATUS <<\_ACEOF 7070for ac_config_target in $ac_config_targets 7071do 7072 case "$ac_config_target" in 7073 # Handling of arguments. 7074 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7075 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 7077echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7078 { (exit 1); exit 1; }; };; 7079 esac 7080done 7081 7082# If the user did not use the arguments to specify the items to instantiate, 7083# then the envvar interface is used. Set only those that are not. 7084# We use the long form for the default assignment because of an extremely 7085# bizarre bug on SunOS 4.1.3. 7086if $ac_need_defaults; then 7087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7089fi 7090 7091# Have a temporary directory for convenience. Make it in the build tree 7092# simply because there is no reason to put it here, and in addition, 7093# creating and moving files from /tmp can sometimes cause problems. 7094# Create a temporary directory, and hook for its removal unless debugging. 7095$debug || 7096{ 7097 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7098 trap '{ (exit 1); exit 1; }' 1 2 13 15 7099} 7100 7101# Create a (secure) tmp directory for tmp files. 7102 7103{ 7104 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 7105 test -n "$tmp" && test -d "$tmp" 7106} || 7107{ 7108 tmp=./confstat$$-$RANDOM 7109 (umask 077 && mkdir $tmp) 7110} || 7111{ 7112 echo "$me: cannot create a temporary directory in ." >&2 7113 { (exit 1); exit 1; } 7114} 7115 7116_ACEOF 7117 7118cat >>$CONFIG_STATUS <<_ACEOF 7119 7120# 7121# CONFIG_FILES section. 7122# 7123 7124# No need to generate the scripts if there are no CONFIG_FILES. 7125# This happens for instance when ./config.status config.h 7126if test -n "\$CONFIG_FILES"; then 7127 # Protect against being on the right side of a sed subst in config.status. 7128 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7129 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7130s,@SHELL@,$SHELL,;t t 7131s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7132s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7133s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7134s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7135s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7136s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7137s,@exec_prefix@,$exec_prefix,;t t 7138s,@prefix@,$prefix,;t t 7139s,@program_transform_name@,$program_transform_name,;t t 7140s,@bindir@,$bindir,;t t 7141s,@sbindir@,$sbindir,;t t 7142s,@libexecdir@,$libexecdir,;t t 7143s,@datadir@,$datadir,;t t 7144s,@sysconfdir@,$sysconfdir,;t t 7145s,@sharedstatedir@,$sharedstatedir,;t t 7146s,@localstatedir@,$localstatedir,;t t 7147s,@libdir@,$libdir,;t t 7148s,@includedir@,$includedir,;t t 7149s,@oldincludedir@,$oldincludedir,;t t 7150s,@infodir@,$infodir,;t t 7151s,@mandir@,$mandir,;t t 7152s,@build_alias@,$build_alias,;t t 7153s,@host_alias@,$host_alias,;t t 7154s,@target_alias@,$target_alias,;t t 7155s,@DEFS@,$DEFS,;t t 7156s,@ECHO_C@,$ECHO_C,;t t 7157s,@ECHO_N@,$ECHO_N,;t t 7158s,@ECHO_T@,$ECHO_T,;t t 7159s,@LIBS@,$LIBS,;t t 7160s,@build@,$build,;t t 7161s,@build_cpu@,$build_cpu,;t t 7162s,@build_vendor@,$build_vendor,;t t 7163s,@build_os@,$build_os,;t t 7164s,@host@,$host,;t t 7165s,@host_cpu@,$host_cpu,;t t 7166s,@host_vendor@,$host_vendor,;t t 7167s,@host_os@,$host_os,;t t 7168s,@target@,$target,;t t 7169s,@target_cpu@,$target_cpu,;t t 7170s,@target_vendor@,$target_vendor,;t t 7171s,@target_os@,$target_os,;t t 7172s,@YACC@,$YACC,;t t 7173s,@LEX@,$LEX,;t t 7174s,@CC@,$CC,;t t 7175s,@CFLAGS@,$CFLAGS,;t t 7176s,@LDFLAGS@,$LDFLAGS,;t t 7177s,@CPPFLAGS@,$CPPFLAGS,;t t 7178s,@ac_ct_CC@,$ac_ct_CC,;t t 7179s,@EXEEXT@,$EXEEXT,;t t 7180s,@OBJEXT@,$OBJEXT,;t t 7181s,@LEXLIB@,$LEXLIB,;t t 7182s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 7183s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7184s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7185s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7186s,@CPP@,$CPP,;t t 7187s,@EGREP@,$EGREP,;t t 7188s,@LIBOBJS@,$LIBOBJS,;t t 7189s,@LTLIBOBJS@,$LTLIBOBJS,;t t 7190CEOF 7191 7192_ACEOF 7193 7194 cat >>$CONFIG_STATUS <<\_ACEOF 7195 # Split the substitutions into bite-sized pieces for seds with 7196 # small command number limits, like on Digital OSF/1 and HP-UX. 7197 ac_max_sed_lines=48 7198 ac_sed_frag=1 # Number of current file. 7199 ac_beg=1 # First line for current file. 7200 ac_end=$ac_max_sed_lines # Line after last line for current file. 7201 ac_more_lines=: 7202 ac_sed_cmds= 7203 while $ac_more_lines; do 7204 if test $ac_beg -gt 1; then 7205 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7206 else 7207 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7208 fi 7209 if test ! -s $tmp/subs.frag; then 7210 ac_more_lines=false 7211 else 7212 # The purpose of the label and of the branching condition is to 7213 # speed up the sed processing (if there are no `@' at all, there 7214 # is no need to browse any of the substitutions). 7215 # These are the two extra sed commands mentioned above. 7216 (echo ':t 7217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7218 if test -z "$ac_sed_cmds"; then 7219 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7220 else 7221 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7222 fi 7223 ac_sed_frag=`expr $ac_sed_frag + 1` 7224 ac_beg=$ac_end 7225 ac_end=`expr $ac_end + $ac_max_sed_lines` 7226 fi 7227 done 7228 if test -z "$ac_sed_cmds"; then 7229 ac_sed_cmds=cat 7230 fi 7231fi # test -n "$CONFIG_FILES" 7232 7233_ACEOF 7234cat >>$CONFIG_STATUS <<\_ACEOF 7235for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7237 case $ac_file in 7238 - | *:- | *:-:* ) # input from stdin 7239 cat >$tmp/stdin 7240 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7242 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7244 * ) ac_file_in=$ac_file.in ;; 7245 esac 7246 7247 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7248 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7250 X"$ac_file" : 'X\(//\)[^/]' \| \ 7251 X"$ac_file" : 'X\(//\)$' \| \ 7252 X"$ac_file" : 'X\(/\)' \| \ 7253 . : '\(.\)' 2>/dev/null || 7254echo X"$ac_file" | 7255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7256 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7257 /^X\(\/\/\)$/{ s//\1/; q; } 7258 /^X\(\/\).*/{ s//\1/; q; } 7259 s/.*/./; q'` 7260 { if $as_mkdir_p; then 7261 mkdir -p "$ac_dir" 7262 else 7263 as_dir="$ac_dir" 7264 as_dirs= 7265 while test ! -d "$as_dir"; do 7266 as_dirs="$as_dir $as_dirs" 7267 as_dir=`(dirname "$as_dir") 2>/dev/null || 7268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7269 X"$as_dir" : 'X\(//\)[^/]' \| \ 7270 X"$as_dir" : 'X\(//\)$' \| \ 7271 X"$as_dir" : 'X\(/\)' \| \ 7272 . : '\(.\)' 2>/dev/null || 7273echo X"$as_dir" | 7274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7275 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7276 /^X\(\/\/\)$/{ s//\1/; q; } 7277 /^X\(\/\).*/{ s//\1/; q; } 7278 s/.*/./; q'` 7279 done 7280 test ! -n "$as_dirs" || mkdir $as_dirs 7281 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7282echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7283 { (exit 1); exit 1; }; }; } 7284 7285 ac_builddir=. 7286 7287if test "$ac_dir" != .; then 7288 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7289 # A "../" for each directory in $ac_dir_suffix. 7290 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7291else 7292 ac_dir_suffix= ac_top_builddir= 7293fi 7294 7295case $srcdir in 7296 .) # No --srcdir option. We are building in place. 7297 ac_srcdir=. 7298 if test -z "$ac_top_builddir"; then 7299 ac_top_srcdir=. 7300 else 7301 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7302 fi ;; 7303 [\\/]* | ?:[\\/]* ) # Absolute path. 7304 ac_srcdir=$srcdir$ac_dir_suffix; 7305 ac_top_srcdir=$srcdir ;; 7306 *) # Relative path. 7307 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7308 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7309esac 7310 7311# Do not use `cd foo && pwd` to compute absolute paths, because 7312# the directories may not exist. 7313case `pwd` in 7314.) ac_abs_builddir="$ac_dir";; 7315*) 7316 case "$ac_dir" in 7317 .) ac_abs_builddir=`pwd`;; 7318 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7319 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7320 esac;; 7321esac 7322case $ac_abs_builddir in 7323.) ac_abs_top_builddir=${ac_top_builddir}.;; 7324*) 7325 case ${ac_top_builddir}. in 7326 .) ac_abs_top_builddir=$ac_abs_builddir;; 7327 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7328 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7329 esac;; 7330esac 7331case $ac_abs_builddir in 7332.) ac_abs_srcdir=$ac_srcdir;; 7333*) 7334 case $ac_srcdir in 7335 .) ac_abs_srcdir=$ac_abs_builddir;; 7336 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7337 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7338 esac;; 7339esac 7340case $ac_abs_builddir in 7341.) ac_abs_top_srcdir=$ac_top_srcdir;; 7342*) 7343 case $ac_top_srcdir in 7344 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7345 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7346 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7347 esac;; 7348esac 7349 7350 7351 case $INSTALL in 7352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7353 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 7354 esac 7355 7356 if test x"$ac_file" != x-; then 7357 { echo "$as_me:$LINENO: creating $ac_file" >&5 7358echo "$as_me: creating $ac_file" >&6;} 7359 rm -f "$ac_file" 7360 fi 7361 # Let's still pretend it is `configure' which instantiates (i.e., don't 7362 # use $as_me), people would be surprised to read: 7363 # /* config.h. Generated by config.status. */ 7364 if test x"$ac_file" = x-; then 7365 configure_input= 7366 else 7367 configure_input="$ac_file. " 7368 fi 7369 configure_input=$configure_input"Generated from `echo $ac_file_in | 7370 sed 's,.*/,,'` by configure." 7371 7372 # First look for the input files in the build tree, otherwise in the 7373 # src tree. 7374 ac_file_inputs=`IFS=: 7375 for f in $ac_file_in; do 7376 case $f in 7377 -) echo $tmp/stdin ;; 7378 [\\/$]*) 7379 # Absolute (can't be DOS-style, as IFS=:) 7380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7381echo "$as_me: error: cannot find input file: $f" >&2;} 7382 { (exit 1); exit 1; }; } 7383 echo "$f";; 7384 *) # Relative 7385 if test -f "$f"; then 7386 # Build tree 7387 echo "$f" 7388 elif test -f "$srcdir/$f"; then 7389 # Source tree 7390 echo "$srcdir/$f" 7391 else 7392 # /dev/null tree 7393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7394echo "$as_me: error: cannot find input file: $f" >&2;} 7395 { (exit 1); exit 1; }; } 7396 fi;; 7397 esac 7398 done` || { (exit 1); exit 1; } 7399_ACEOF 7400cat >>$CONFIG_STATUS <<_ACEOF 7401 sed "$ac_vpsub 7402$extrasub 7403_ACEOF 7404cat >>$CONFIG_STATUS <<\_ACEOF 7405:t 7406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7407s,@configure_input@,$configure_input,;t t 7408s,@srcdir@,$ac_srcdir,;t t 7409s,@abs_srcdir@,$ac_abs_srcdir,;t t 7410s,@top_srcdir@,$ac_top_srcdir,;t t 7411s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7412s,@builddir@,$ac_builddir,;t t 7413s,@abs_builddir@,$ac_abs_builddir,;t t 7414s,@top_builddir@,$ac_top_builddir,;t t 7415s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 7416s,@INSTALL@,$ac_INSTALL,;t t 7417" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7418 rm -f $tmp/stdin 7419 if test x"$ac_file" != x-; then 7420 mv $tmp/out $ac_file 7421 else 7422 cat $tmp/out 7423 rm -f $tmp/out 7424 fi 7425 7426done 7427_ACEOF 7428cat >>$CONFIG_STATUS <<\_ACEOF 7429 7430# 7431# CONFIG_HEADER section. 7432# 7433 7434# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7435# NAME is the cpp macro being defined and VALUE is the value it is being given. 7436# 7437# ac_d sets the value in "#define NAME VALUE" lines. 7438ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7439ac_dB='[ ].*$,\1#\2' 7440ac_dC=' ' 7441ac_dD=',;t' 7442# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7443ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7444ac_uB='$,\1#\2define\3' 7445ac_uC=' ' 7446ac_uD=',;t' 7447 7448for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 7449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7450 case $ac_file in 7451 - | *:- | *:-:* ) # input from stdin 7452 cat >$tmp/stdin 7453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7457 * ) ac_file_in=$ac_file.in ;; 7458 esac 7459 7460 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 7461echo "$as_me: creating $ac_file" >&6;} 7462 7463 # First look for the input files in the build tree, otherwise in the 7464 # src tree. 7465 ac_file_inputs=`IFS=: 7466 for f in $ac_file_in; do 7467 case $f in 7468 -) echo $tmp/stdin ;; 7469 [\\/$]*) 7470 # Absolute (can't be DOS-style, as IFS=:) 7471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7472echo "$as_me: error: cannot find input file: $f" >&2;} 7473 { (exit 1); exit 1; }; } 7474 # Do quote $f, to prevent DOS paths from being IFS'd. 7475 echo "$f";; 7476 *) # Relative 7477 if test -f "$f"; then 7478 # Build tree 7479 echo "$f" 7480 elif test -f "$srcdir/$f"; then 7481 # Source tree 7482 echo "$srcdir/$f" 7483 else 7484 # /dev/null tree 7485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7486echo "$as_me: error: cannot find input file: $f" >&2;} 7487 { (exit 1); exit 1; }; } 7488 fi;; 7489 esac 7490 done` || { (exit 1); exit 1; } 7491 # Remove the trailing spaces. 7492 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7493 7494_ACEOF 7495 7496# Transform confdefs.h into two sed scripts, `conftest.defines' and 7497# `conftest.undefs', that substitutes the proper values into 7498# config.h.in to produce config.h. The first handles `#define' 7499# templates, and the second `#undef' templates. 7500# And first: Protect against being on the right side of a sed subst in 7501# config.status. Protect against being in an unquoted here document 7502# in config.status. 7503rm -f conftest.defines conftest.undefs 7504# Using a here document instead of a string reduces the quoting nightmare. 7505# Putting comments in sed scripts is not portable. 7506# 7507# `end' is used to avoid that the second main sed command (meant for 7508# 0-ary CPP macros) applies to n-ary macro definitions. 7509# See the Autoconf documentation for `clear'. 7510cat >confdef2sed.sed <<\_ACEOF 7511s/[\\&,]/\\&/g 7512s,[\\$`],\\&,g 7513t clear 7514: clear 7515s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 7516t end 7517s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7518: end 7519_ACEOF 7520# If some macros were called several times there might be several times 7521# the same #defines, which is useless. Nevertheless, we may not want to 7522# sort them, since we want the *last* AC-DEFINE to be honored. 7523uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7524sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7525rm -f confdef2sed.sed 7526 7527# This sed command replaces #undef with comments. This is necessary, for 7528# example, in the case of _POSIX_SOURCE, which is predefined and required 7529# on some systems where configure will not decide to define it. 7530cat >>conftest.undefs <<\_ACEOF 7531s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7532_ACEOF 7533 7534# Break up conftest.defines because some shells have a limit on the size 7535# of here documents, and old seds have small limits too (100 cmds). 7536echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 7537echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 7538echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 7539echo ' :' >>$CONFIG_STATUS 7540rm -f conftest.tail 7541while grep . conftest.defines >/dev/null 7542do 7543 # Write a limited-size here document to $tmp/defines.sed. 7544 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 7545 # Speed up: don't consider the non `#define' lines. 7546 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 7547 # Work around the forget-to-reset-the-flag bug. 7548 echo 't clr' >>$CONFIG_STATUS 7549 echo ': clr' >>$CONFIG_STATUS 7550 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 7551 echo 'CEOF 7552 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7553 rm -f $tmp/in 7554 mv $tmp/out $tmp/in 7555' >>$CONFIG_STATUS 7556 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 7557 rm -f conftest.defines 7558 mv conftest.tail conftest.defines 7559done 7560rm -f conftest.defines 7561echo ' fi # grep' >>$CONFIG_STATUS 7562echo >>$CONFIG_STATUS 7563 7564# Break up conftest.undefs because some shells have a limit on the size 7565# of here documents, and old seds have small limits too (100 cmds). 7566echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 7567rm -f conftest.tail 7568while grep . conftest.undefs >/dev/null 7569do 7570 # Write a limited-size here document to $tmp/undefs.sed. 7571 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 7572 # Speed up: don't consider the non `#undef' 7573 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 7574 # Work around the forget-to-reset-the-flag bug. 7575 echo 't clr' >>$CONFIG_STATUS 7576 echo ': clr' >>$CONFIG_STATUS 7577 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 7578 echo 'CEOF 7579 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7580 rm -f $tmp/in 7581 mv $tmp/out $tmp/in 7582' >>$CONFIG_STATUS 7583 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 7584 rm -f conftest.undefs 7585 mv conftest.tail conftest.undefs 7586done 7587rm -f conftest.undefs 7588 7589cat >>$CONFIG_STATUS <<\_ACEOF 7590 # Let's still pretend it is `configure' which instantiates (i.e., don't 7591 # use $as_me), people would be surprised to read: 7592 # /* config.h. Generated by config.status. */ 7593 if test x"$ac_file" = x-; then 7594 echo "/* Generated by configure. */" >$tmp/config.h 7595 else 7596 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 7597 fi 7598 cat $tmp/in >>$tmp/config.h 7599 rm -f $tmp/in 7600 if test x"$ac_file" != x-; then 7601 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7602 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7603echo "$as_me: $ac_file is unchanged" >&6;} 7604 else 7605 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7607 X"$ac_file" : 'X\(//\)[^/]' \| \ 7608 X"$ac_file" : 'X\(//\)$' \| \ 7609 X"$ac_file" : 'X\(/\)' \| \ 7610 . : '\(.\)' 2>/dev/null || 7611echo X"$ac_file" | 7612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7613 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7614 /^X\(\/\/\)$/{ s//\1/; q; } 7615 /^X\(\/\).*/{ s//\1/; q; } 7616 s/.*/./; q'` 7617 { if $as_mkdir_p; then 7618 mkdir -p "$ac_dir" 7619 else 7620 as_dir="$ac_dir" 7621 as_dirs= 7622 while test ! -d "$as_dir"; do 7623 as_dirs="$as_dir $as_dirs" 7624 as_dir=`(dirname "$as_dir") 2>/dev/null || 7625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7626 X"$as_dir" : 'X\(//\)[^/]' \| \ 7627 X"$as_dir" : 'X\(//\)$' \| \ 7628 X"$as_dir" : 'X\(/\)' \| \ 7629 . : '\(.\)' 2>/dev/null || 7630echo X"$as_dir" | 7631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7632 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7633 /^X\(\/\/\)$/{ s//\1/; q; } 7634 /^X\(\/\).*/{ s//\1/; q; } 7635 s/.*/./; q'` 7636 done 7637 test ! -n "$as_dirs" || mkdir $as_dirs 7638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7639echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7640 { (exit 1); exit 1; }; }; } 7641 7642 rm -f $ac_file 7643 mv $tmp/config.h $ac_file 7644 fi 7645 else 7646 cat $tmp/config.h 7647 rm -f $tmp/config.h 7648 fi 7649done 7650_ACEOF 7651 7652cat >>$CONFIG_STATUS <<\_ACEOF 7653 7654{ (exit 0); exit 0; } 7655_ACEOF 7656chmod +x $CONFIG_STATUS 7657ac_clean_files=$ac_clean_files_save 7658 7659 7660# configure is writing to config.log, and then calls config.status. 7661# config.status does its own redirection, appending to config.log. 7662# Unfortunately, on DOS this fails, as config.log is still kept open 7663# by configure, so config.status won't be able to write to it; its 7664# output is simply discarded. So we exec the FD to /dev/null, 7665# effectively closing config.log, so it can be properly (re)opened and 7666# appended to by config.status. When coming back to configure, we 7667# need to make the FD available again. 7668if test "$no_create" != yes; then 7669 ac_cs_success=: 7670 ac_config_status_args= 7671 test "$silent" = yes && 7672 ac_config_status_args="$ac_config_status_args --quiet" 7673 exec 5>/dev/null 7674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7675 exec 5>>config.log 7676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7677 # would make configure fail if this is the last instruction. 7678 $ac_cs_success || { (exit 1); exit 1; } 7679fi 7680 7681